-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Radio, Radio List, Checkbox update * Try import on provider * Remove try
- Loading branch information
Showing
25 changed files
with
844 additions
and
30 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
|
||
@import './avatar.css'; | ||
@import './checkbox.css'; | ||
@import './radio.css'; | ||
@import './text-box.css'; |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.radio-color { | ||
&-primary { | ||
@apply radio-primary; | ||
} | ||
|
||
&-secondary { | ||
@apply radio-secondary; | ||
} | ||
|
||
&-accent { | ||
@apply radio-accent; | ||
} | ||
|
||
&-success { | ||
@apply radio-success; | ||
} | ||
|
||
&-warning { | ||
@apply radio-warning; | ||
} | ||
|
||
&-info { | ||
@apply radio-info; | ||
} | ||
|
||
&-error { | ||
@apply radio-error; | ||
} | ||
} | ||
|
||
.radio-size { | ||
&-xs { | ||
@apply radio-xs; | ||
} | ||
|
||
&-sm { | ||
@apply radio-sm; | ||
} | ||
|
||
&-md { | ||
@apply radio-md; | ||
} | ||
|
||
&-lg { | ||
@apply radio-lg; | ||
} | ||
} |
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 +1,10 @@ | ||
export type SizeType = 'xs' | 'sm' | 'md' | 'lg'; | ||
export type ColorType = | ||
| 'primary' | ||
| 'secondary' | ||
| 'accent' | ||
| 'success' | ||
| 'warning' | ||
| 'info' | ||
| 'error'; | ||
export type PositionType = 'left' | 'right'; |
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,24 +1,25 @@ | ||
import type { ErrorType, SizeType } from '@/types'; | ||
import type { ColorType, ErrorType, PositionType, SizeType } from '@/types'; | ||
|
||
export interface CheckboxType extends ErrorType { | ||
export interface CheckboxItemType { | ||
label?: string; | ||
checked?: boolean; | ||
value: string | number; | ||
} | ||
|
||
export interface CheckboxType extends CheckboxItemType, ErrorType { | ||
name: string; | ||
|
||
label?: string; | ||
checked?: boolean; | ||
|
||
position?: 'left' | 'right'; | ||
color?: | ||
| 'primary' | ||
| 'secondary' | ||
| 'accent' | ||
| 'success' | ||
| 'warning' | ||
| 'info' | ||
| 'error'; | ||
position?: PositionType; | ||
color?: ColorType; | ||
|
||
size?: SizeType; | ||
|
||
disabled?: boolean; | ||
|
||
onChange?: (value: CheckboxItemType) => void; | ||
} | ||
|
||
export type CheckboxRef = HTMLInputElement; |
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,3 +1,4 @@ | ||
export type * from './checkbox.types'; | ||
export type * from './dropdown.types'; | ||
export type * from './radio.types'; | ||
export type * from './text-box.types'; |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { ColorType, ErrorType, PositionType, SizeType } from '@/types'; | ||
|
||
export interface RadioItemType { | ||
label?: string; | ||
checked?: boolean; | ||
value?: string | number; | ||
} | ||
|
||
export interface RadioType extends RadioItemType, ErrorType { | ||
name: string; | ||
|
||
label?: string; | ||
checked?: boolean; | ||
|
||
position?: PositionType; | ||
color?: ColorType; | ||
|
||
size?: SizeType; | ||
|
||
disabled?: boolean; | ||
|
||
onChange?: (value: RadioItemType) => void; | ||
} | ||
|
||
export type RadioRef = HTMLInputElement; | ||
|
||
export interface RadioListType extends RadioType { | ||
options: Omit<RadioType, 'name'>[]; | ||
} |
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,3 +1,5 @@ | ||
export * from '@/ui/forms/checkbox'; | ||
export * from '@/ui/forms/dropdown'; | ||
export * from '@/ui/forms/radio'; | ||
export * from '@/ui/forms/radio-list'; | ||
export * from '@/ui/forms/text-box'; |
Oops, something went wrong.