-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(QCheckbox): add labelSize props and redesign #306
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2ec330d
feat(QCheckbox): add label size prop
VasiliyRusin 7d9e53a
feat(QCheckbox): remove neumorphism inner shadows add accent color
VasiliyRusin 00176ea
feat(QCheckbox): fix import type
VasiliyRusin 954b8ee
feat(QCheckbox): rename Label Size type
VasiliyRusin a525bc8
feat(QCheckbox): remove unused vars, add label color, change line-height
VasiliyRusin 785069e
feat(QCheckbox): set label colors exact as in figma
VasiliyRusin 6f2efa8
feat(QCheckbox): add docs for small label
VasiliyRusin ca1fcfc
feat(RCheckbox): fix code style
VasiliyRusin 90709d3
feat(RCheckbox): add indeterminate class
VasiliyRusin d3c3fdc
feat(QCheckbox): fix code style
VasiliyRusin 31e9fed
feat(QCheckbox): add indeterminate class
VasiliyRusin eb26279
Merge remote-tracking branch 'origin/q-checkbox-redesign' into q-chec…
VasiliyRusin c5d8abb
feat(QCheckbox): cast to type Boolean
VasiliyRusin ba131f3
feat(QRadio): fix indeterminate props to isIntermediate computed
VasiliyRusin 0345253
feat(QCheckbox): fix indeterminate props to isIntermediate computed, …
VasiliyRusin 5b11c47
feat(QCheckbox): add types for props and computed for classes
VasiliyRusin 673bebc
Merge branch 'main' into q-checkbox-redesign
VasiliyRusin 0bfb55d
feat(QCheckbox): get ref value
VasiliyRusin d7546d8
feat(QCheckbox): change camelCase to kebab-case at props in story
VasiliyRusin 92e7093
fix(QCheckbox): add story args
VasiliyRusin bbce6c7
Merge branch 'main' of github.com:Qvant-lab/qui-max into q-checkbox-r…
cheesytim a4680d0
fix: default story
cheesytim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
import type { Ref, ComputedRef } from 'vue'; | ||
|
||
import type { Nullable } from '#/helpers'; | ||
import type { Nullable, ClassValue } from '#/helpers'; | ||
|
||
export type QCheckboxPropModelValue = Nullable<boolean>; | ||
export type QCheckboxPropLabel = Nullable<string>; | ||
export type QCheckboxPropIndeterminate = Nullable<boolean>; | ||
export type QCheckboxPropDisabled = Nullable<boolean>; | ||
export type QCheckboxPropRootTag = Nullable<string>; | ||
export type QCheckboxPropValidateEvent = Nullable<boolean>; | ||
export type QCheckboxPropLabelSize = Nullable<'regular' | 'small'>; | ||
|
||
export interface QCheckboxProps { | ||
modelValue: Nullable<boolean>; | ||
label: Nullable<string>; | ||
indeterminate: Nullable<boolean>; | ||
disabled: Nullable<boolean>; | ||
rootTag: Nullable<string>; | ||
validateEvent: Nullable<boolean>; | ||
modelValue: QCheckboxPropModelValue; | ||
label: QCheckboxPropLabel; | ||
indeterminate: QCheckboxPropIndeterminate; | ||
disabled: QCheckboxPropDisabled; | ||
rootTag: QCheckboxPropRootTag; | ||
validateEvent: QCheckboxPropValidateEvent; | ||
labelSize: QCheckboxPropLabelSize; | ||
} | ||
|
||
export interface QCheckboxInstance { | ||
focus: Ref<boolean>; | ||
isChecked: ComputedRef<boolean>; | ||
isIndeterminate: ComputedRef<boolean>; | ||
isLimitDisabled: ComputedRef<boolean>; | ||
isDisabled: ComputedRef<boolean>; | ||
nativeClick: () => void; | ||
handleCheckboxClick: (event: Event) => void; | ||
checkboxInput: Ref<Nullable<HTMLInputElement>>; | ||
labelClass: ComputedRef<ClassValue>; | ||
qCheckboxClasses: ComputedRef<ClassValue>; | ||
qCheckboxInputClasses: ComputedRef<ClassValue>; | ||
qCheckboxInnerIconClasses: ComputedRef<ClassValue>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кебаб