@rovula/ui 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.css +3220 -1382
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/cjs/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/cjs/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/cjs/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/cjs/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/cjs/types/components/Loading/Loading.d.ts +14 -0
- package/dist/cjs/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/cjs/types/components/Search/Search.d.ts +22 -1
- package/dist/cjs/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/cjs/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/cjs/types/components/Text/Text.d.ts +1 -1
- package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/cjs/types/stories/ColorPreview.d.ts +5 -0
- package/dist/components/ActionButton/ActionButton.js +1 -1
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/ActionButton/ActionButton.styles copy.js +90 -0
- package/dist/components/ActionButton/ActionButton.styles.js +54 -15
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/Button.styles copy.js +210 -0
- package/dist/components/Button/Button.styles.js +203 -43
- package/dist/components/Button/Buttons.stories.js +9 -1
- package/dist/components/Calendar/Calendar.js +39 -2
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapsible/Collapsible.styles.js +6 -3
- package/dist/components/DatePicker/DatePicker.js +13 -2
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +9 -7
- package/dist/components/Dropdown/Dropdown.styles.js +1 -1
- package/dist/components/Input/Input.js +8 -1
- package/dist/components/Input/Input.stories.js +3 -2
- package/dist/components/Input/Input.styles.js +13 -5
- package/dist/components/Loading/Loading.js +23 -0
- package/dist/components/Loading/Loading.stories.js +37 -0
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +22 -0
- package/dist/components/ProgressBar/ProgressBar.stories.js +52 -0
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/Search/Search.js +6 -7
- package/dist/components/Search/Search.stories.js +8 -5
- package/dist/components/Text/Text.js +17 -2
- package/dist/components/Text/Text.stories.js +5 -1
- package/dist/components/TextInput/TextInput.js +14 -5
- package/dist/components/TextInput/TextInput.stories.js +3 -2
- package/dist/components/TextInput/TextInput.styles.js +120 -18
- package/dist/esm/bundle.css +3220 -1382
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/esm/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/esm/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/esm/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/esm/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/esm/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/esm/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/esm/types/components/Loading/Loading.d.ts +14 -0
- package/dist/esm/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/esm/types/components/Search/Search.d.ts +22 -1
- package/dist/esm/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/esm/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/esm/types/components/Text/Text.d.ts +1 -1
- package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/esm/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/esm/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/esm/types/stories/ColorPreview.d.ts +5 -0
- package/dist/index.d.ts +53 -2
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +5078 -918
- package/dist/stories/ColorGroupPreview.js +478 -0
- package/dist/stories/ColorPreview.js +8 -0
- package/dist/theme/global.css +7 -227
- package/dist/theme/main-preset.js +131 -67
- package/dist/theme/plugins/utilities/typography.js +12 -0
- package/dist/theme/presets/colors.js +101 -220
- package/dist/theme/theme.d.ts +69 -0
- package/dist/theme/themes/xspector/baseline.css +7 -0
- package/dist/theme/themes/xspector/color.css +67 -0
- package/dist/theme/themes/xspector/components/action-button.css +98 -0
- package/dist/theme/themes/xspector/components/loading.css +11 -0
- package/dist/theme/themes/xspector/palette.css +122 -0
- package/dist/theme/themes/xspector/state.css +89 -0
- package/dist/theme/themes/xspector/transparent.css +68 -0
- package/dist/theme/themes/xspector/typography.css +27 -0
- package/dist/theme/tokens/baseline.css +10 -0
- package/dist/theme/tokens/color.css +63 -0
- package/dist/theme/tokens/components/action-button.css +127 -0
- package/dist/theme/tokens/components/button.css +512 -0
- package/dist/theme/tokens/components/loading.css +11 -0
- package/dist/theme/tokens/components/navbar.css +8 -0
- package/dist/theme/tokens/components/progress-bar.css +8 -0
- package/dist/theme/tokens/palette.css +122 -0
- package/dist/theme/tokens/state.css +82 -0
- package/dist/theme/tokens/transparent.css +68 -0
- package/dist/theme/tokens/typography.css +178 -0
- package/dist/theme/tokens/variables.css +28 -0
- package/dist/theme/utils.js +98 -0
- package/package.json +1 -1
- package/src/_theme/global copy.css +761 -0
- package/src/_theme/global.css +39 -0
- package/src/_theme/main-preset.js +239 -0
- package/src/_theme/plugins/utilities/typography.js +81 -0
- package/src/_theme/presets/colors copy 2.js +319 -0
- package/src/_theme/presets/colors copy.js +229 -0
- package/src/_theme/presets/colors.js +94 -0
- package/src/_theme/theme.d.ts +69 -0
- package/src/_theme/variables/base/button.css +334 -0
- package/src/_theme/variables/base/components copy.css +19 -0
- package/src/_theme/variables/default/colors.css +292 -0
- package/src/_theme/variables/default/typography.css +178 -0
- package/src/_theme/variables/xspector/colors.css +468 -0
- package/src/_theme/variables/xspector/typography.css +178 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
- package/src/components/ActionButton/ActionButton.styles copy.ts +95 -0
- package/src/components/ActionButton/ActionButton.styles.ts +54 -19
- package/src/components/ActionButton/ActionButton.tsx +1 -1
- package/src/components/AlertDialog/AlertDialog.tsx +2 -2
- package/src/components/Avatar/Avatar.styles.ts +1 -1
- package/src/components/Button/Button.styles copy.ts +214 -0
- package/src/components/Button/Button.styles.ts +203 -47
- package/src/components/Button/Button.tsx +4 -0
- package/src/components/Button/Buttons.stories.tsx +9 -1
- package/src/components/Calendar/Calendar.tsx +49 -7
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Collapsible/Collapsible.styles.ts +6 -3
- package/src/components/DatePicker/DatePicker.tsx +8 -2
- package/src/components/Dialog/Dialog.tsx +5 -5
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -12
- package/src/components/Input/Input.stories.tsx +3 -2
- package/src/components/Input/Input.styles.tsx +13 -6
- package/src/components/Input/Input.tsx +8 -1
- package/src/components/Loading/Loading.stories.tsx +43 -0
- package/src/components/Loading/Loading.tsx +72 -0
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +78 -0
- package/src/components/ProgressBar/ProgressBar.tsx +62 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/Search/Search.stories.tsx +13 -13
- package/src/components/Search/Search.tsx +14 -19
- package/src/components/Text/Text.stories.tsx +6 -4
- package/src/components/Text/Text.tsx +27 -3
- package/src/components/TextInput/TextInput.stories.tsx +3 -2
- package/src/components/TextInput/TextInput.styles.ts +124 -19
- package/src/components/TextInput/TextInput.tsx +34 -4
- package/src/index.ts +3 -0
- package/src/stories/ColorGroupPreview.tsx +494 -0
- package/src/stories/ColorPreview.tsx +45 -0
- package/src/stories/Colors.mdx +14 -0
- package/src/stories/Typography.mdx +7 -151
- package/src/theme/global.css +7 -227
- package/src/theme/main-preset.js +131 -67
- package/src/theme/plugins/utilities/typography.js +12 -0
- package/src/theme/presets/colors.js +101 -220
- package/src/theme/theme.d.ts +69 -0
- package/src/theme/themes/xspector/baseline.css +7 -0
- package/src/theme/themes/xspector/color.css +67 -0
- package/src/theme/themes/xspector/components/action-button.css +98 -0
- package/src/theme/themes/xspector/components/loading.css +11 -0
- package/src/theme/themes/xspector/palette.css +122 -0
- package/src/theme/themes/xspector/state.css +89 -0
- package/src/theme/themes/xspector/transparent.css +68 -0
- package/src/theme/themes/xspector/typography.css +27 -0
- package/src/theme/tokens/baseline.css +10 -0
- package/src/theme/tokens/color.css +63 -0
- package/src/theme/tokens/components/action-button.css +127 -0
- package/src/theme/tokens/components/button.css +512 -0
- package/src/theme/tokens/components/loading.css +11 -0
- package/src/theme/tokens/components/navbar.css +8 -0
- package/src/theme/tokens/components/progress-bar.css +8 -0
- package/src/theme/tokens/palette.css +122 -0
- package/src/theme/tokens/state.css +82 -0
- package/src/theme/tokens/transparent.css +68 -0
- package/src/theme/tokens/typography.css +178 -0
- package/src/theme/tokens/variables.css +28 -0
- package/src/theme/utils.js +98 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
:root[data-theme="xspector"] {
|
|
2
|
+
/* TYPE */
|
|
3
|
+
--h1-family: "Poppins";
|
|
4
|
+
--h1-size: 64px;
|
|
5
|
+
--h1-size-rem: 4rem;
|
|
6
|
+
--h1-weight: 700;
|
|
7
|
+
--h1-style: normal;
|
|
8
|
+
--h1-line-height: 80px;
|
|
9
|
+
--h1-line-height-rem: 5rem;
|
|
10
|
+
--h2-family: "Poppins";
|
|
11
|
+
--h2-size: 48px;
|
|
12
|
+
--h2-size-rem: 3rem;
|
|
13
|
+
--h2-weight: 700;
|
|
14
|
+
--h2-style: normal;
|
|
15
|
+
--h2-line-height: 60px;
|
|
16
|
+
--h2-line-height-rem: 3.75rem;
|
|
17
|
+
--h3-family: "Poppins";
|
|
18
|
+
--h3-size: 32px;
|
|
19
|
+
--h3-size-rem: 2rem;
|
|
20
|
+
--h3-weight: 700;
|
|
21
|
+
--h3-style: normal;
|
|
22
|
+
--h3-line-height: 48px;
|
|
23
|
+
--h3-line-height-rem: 3rem;
|
|
24
|
+
--h4-family: "Poppins";
|
|
25
|
+
--h4-size: 24px;
|
|
26
|
+
--h4-size-rem: 1.5rem;
|
|
27
|
+
--h4-weight: 700;
|
|
28
|
+
--h4-style: normal;
|
|
29
|
+
--h4-line-height: 32px;
|
|
30
|
+
--h4-line-height-rem: 2rem;
|
|
31
|
+
--h5-family: "Poppins";
|
|
32
|
+
--h5-size: 20px;
|
|
33
|
+
--h5-size-rem: 1.25rem;
|
|
34
|
+
--h5-weight: 700;
|
|
35
|
+
--h5-style: normal;
|
|
36
|
+
--h5-line-height: 28px;
|
|
37
|
+
--h5-line-height-rem: 1.75rem;
|
|
38
|
+
--h6-family: "Poppins";
|
|
39
|
+
--h6-size: 18px;
|
|
40
|
+
--h6-size-rem: 1.125rem;
|
|
41
|
+
--h6-weight: 700;
|
|
42
|
+
--h6-style: normal;
|
|
43
|
+
--h6-line-height: 24px;
|
|
44
|
+
--h6-line-height-rem: 1.5rem;
|
|
45
|
+
--subtitle1-family: "Poppins";
|
|
46
|
+
--subtitle1-size: 16px;
|
|
47
|
+
--subtitle1-size-rem: 1rem;
|
|
48
|
+
--subtitle1-weight: 400;
|
|
49
|
+
--subtitle1-style: normal;
|
|
50
|
+
--subtitle1-line-height: 24px;
|
|
51
|
+
--subtitle1-line-height-rem: 1.5rem;
|
|
52
|
+
--subtitle2-family: "Poppins";
|
|
53
|
+
--subtitle2-size: 16px;
|
|
54
|
+
--subtitle2-size-rem: 1rem;
|
|
55
|
+
--subtitle2-weight: 500;
|
|
56
|
+
--subtitle2-style: normal;
|
|
57
|
+
--subtitle2-line-height: 24px;
|
|
58
|
+
--subtitle2-line-height-rem: 1.5rem;
|
|
59
|
+
--subtitle3-family: "Poppins";
|
|
60
|
+
--subtitle3-size: 16px;
|
|
61
|
+
--subtitle3-size-rem: 1rem;
|
|
62
|
+
--subtitle3-weight: 600;
|
|
63
|
+
--subtitle3-style: normal;
|
|
64
|
+
--subtitle3-line-height: 24px;
|
|
65
|
+
--subtitle3-line-height-rem: 1.5rem;
|
|
66
|
+
--subtitle4-family: "Poppins";
|
|
67
|
+
--subtitle4-size: 14px;
|
|
68
|
+
--subtitle4-size-rem: 0.875rem;
|
|
69
|
+
--subtitle4-weight: 400;
|
|
70
|
+
--subtitle4-style: normal;
|
|
71
|
+
--subtitle4-line-height: 22px;
|
|
72
|
+
--subtitle4-line-height-rem: 1.375rem;
|
|
73
|
+
--subtitle5-family: "Poppins";
|
|
74
|
+
--subtitle5-size: 14px;
|
|
75
|
+
--subtitle5-size-rem: 0.875rem;
|
|
76
|
+
--subtitle5-weight: 500;
|
|
77
|
+
--subtitle5-style: normal;
|
|
78
|
+
--subtitle5-line-height: 22px;
|
|
79
|
+
--subtitle5-line-height-rem: 1.375rem;
|
|
80
|
+
--subtitle6-family: "Poppins";
|
|
81
|
+
--subtitle6-size: 14px;
|
|
82
|
+
--subtitle6-size-rem: 0.875rem;
|
|
83
|
+
--subtitle6-weight: 600;
|
|
84
|
+
--subtitle6-style: normal;
|
|
85
|
+
--subtitle6-line-height: 22px;
|
|
86
|
+
--subtitle6-line-height-rem: 1.375rem;
|
|
87
|
+
--body1-family: "Poppins";
|
|
88
|
+
--body1-size: 16px;
|
|
89
|
+
--body1-size-rem: 1rem;
|
|
90
|
+
--body1-weight: 400;
|
|
91
|
+
--body1-style: normal;
|
|
92
|
+
--body1-line-height: 20px;
|
|
93
|
+
--body1-line-height-rem: 1.25rem;
|
|
94
|
+
--body2-family: "Poppins";
|
|
95
|
+
--body2-size: 16px;
|
|
96
|
+
--body2-size-rem: 1rem;
|
|
97
|
+
--body2-weight: 500;
|
|
98
|
+
--body2-style: normal;
|
|
99
|
+
--body2-line-height: 20px;
|
|
100
|
+
--body2-line-height-rem: 1.25rem;
|
|
101
|
+
--body3-family: "Poppins";
|
|
102
|
+
--body3-size: 14px;
|
|
103
|
+
--body3-size-rem: 0.875rem;
|
|
104
|
+
--body3-weight: 400;
|
|
105
|
+
--body3-style: normal;
|
|
106
|
+
--body3-line-height: 18px;
|
|
107
|
+
--body3-line-height-rem: 1.125rem;
|
|
108
|
+
--body4-family: "Poppins";
|
|
109
|
+
--body4-size: 14px;
|
|
110
|
+
--body4-size-rem: 0.875rem;
|
|
111
|
+
--body4-weight: 500;
|
|
112
|
+
--body4-style: normal;
|
|
113
|
+
--body4-line-height: 18px;
|
|
114
|
+
--body4-line-height-rem: 1.125rem;
|
|
115
|
+
--small1-family: "Poppins";
|
|
116
|
+
--small1-size: 12px;
|
|
117
|
+
--small1-size-rem: 0.75rem;
|
|
118
|
+
--small1-weight: 400;
|
|
119
|
+
--small1-style: normal;
|
|
120
|
+
--small1-line-height: 14px;
|
|
121
|
+
--small1-line-height-rem: 0.875rem;
|
|
122
|
+
--small2-family: "Poppins";
|
|
123
|
+
--small2-size: 12px;
|
|
124
|
+
--small2-size-rem: 0.75rem;
|
|
125
|
+
--small2-weight: 500;
|
|
126
|
+
--small2-style: normal;
|
|
127
|
+
--small2-line-height: 14px;
|
|
128
|
+
--small2-line-height-rem: 0.875rem;
|
|
129
|
+
--small3-family: "Poppins";
|
|
130
|
+
--small3-size: 12px;
|
|
131
|
+
--small3-size-rem: 0.75rem;
|
|
132
|
+
--small3-weight: 600;
|
|
133
|
+
--small3-style: normal;
|
|
134
|
+
--small3-line-height: 14px;
|
|
135
|
+
--small3-line-height-rem: 0.875rem;
|
|
136
|
+
--small4-family: "Poppins";
|
|
137
|
+
--small4-size: 10px;
|
|
138
|
+
--small4-size-rem: 0.625rem;
|
|
139
|
+
--small4-weight: 400;
|
|
140
|
+
--small4-style: normal;
|
|
141
|
+
--small4-line-height: 12px;
|
|
142
|
+
--small4-line-height-rem: 0.75rem;
|
|
143
|
+
--small5-family: "Poppins";
|
|
144
|
+
--small5-size: 10px;
|
|
145
|
+
--small5-size-rem: 0.625rem;
|
|
146
|
+
--small5-weight: 500;
|
|
147
|
+
--small5-style: normal;
|
|
148
|
+
--small5-line-height: 12px;
|
|
149
|
+
--small5-line-height-rem: 0.75rem;
|
|
150
|
+
--label-label1-family: "Poppins";
|
|
151
|
+
--label-label1-size: 12px;
|
|
152
|
+
--label-label1-size-rem: 0.75rem;
|
|
153
|
+
--label-label1-weight: 400;
|
|
154
|
+
--label-label1-style: normal;
|
|
155
|
+
--label-label1-line-height: 12px;
|
|
156
|
+
--label-label1-line-height-rem: 0.75rem;
|
|
157
|
+
--label-label2-family: "Poppins";
|
|
158
|
+
--label-label2-size: 10px;
|
|
159
|
+
--label-label2-size-rem: 0.625rem;
|
|
160
|
+
--label-label2-weight: 400;
|
|
161
|
+
--label-label2-style: normal;
|
|
162
|
+
--label-label2-line-height: 10px;
|
|
163
|
+
--label-label2-line-height-rem: 0.625rem;
|
|
164
|
+
--button-button-l-family: "Poppins";
|
|
165
|
+
--button-button-l-size: 16px;
|
|
166
|
+
--button-button-l-size-rem: 1rem;
|
|
167
|
+
--button-button-l-weight: 700;
|
|
168
|
+
--button-button-l-style: normal;
|
|
169
|
+
--button-button-l-line-height: 24px;
|
|
170
|
+
--button-button-l-line-height-rem: 1.5rem;
|
|
171
|
+
--button-button-ms-family: "Poppins";
|
|
172
|
+
--button-button-ms-size: 14px;
|
|
173
|
+
--button-button-ms-size-rem: 0.875rem;
|
|
174
|
+
--button-button-ms-weight: 700;
|
|
175
|
+
--button-button-ms-style: normal;
|
|
176
|
+
--button-button-ms-line-height: 22px;
|
|
177
|
+
--button-button-ms-line-height-rem: 1.375rem;
|
|
178
|
+
}
|
|
@@ -50,7 +50,7 @@ export const Preview = {
|
|
|
50
50
|
...args,
|
|
51
51
|
};
|
|
52
52
|
return (
|
|
53
|
-
<div className="flex flex-col gap-2 w-full
|
|
53
|
+
<div className="flex flex-col gap-2 w-full p-20">
|
|
54
54
|
<div className="flex flex-row justify-between items-center">
|
|
55
55
|
<h6 className="w-[20px] text-white">Default:</h6>
|
|
56
56
|
<div className="flex flex-row gap-2 ">
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
|
|
3
|
+
export const actionButtonVariants = cva(
|
|
4
|
+
["rounded box-border flex items-center justify-center"],
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
solid: [
|
|
9
|
+
"bg-secondary-default border-secondary-default text-secondary-foreground fill-secondary-foreground",
|
|
10
|
+
"hover:bg-secondary-hover hover:border-secondary-hover",
|
|
11
|
+
"active:bg-secondary-pressed active:border-secondary-pressed",
|
|
12
|
+
],
|
|
13
|
+
outline: [
|
|
14
|
+
"border bg-transparent disabled:bg-transparent disabled:border-disable-outline",
|
|
15
|
+
"text-secondary-default fill-secondary-default border-secondary-stroke",
|
|
16
|
+
"hover:bg-secondary-hover-bg hover:border-secondary-hover hover:text-secondary-hover hover:fill-secondary-hover",
|
|
17
|
+
"active:bg-secondary-hover-bg active:border-secondary-pressed active:text-secondary-pressed active:fill-secondary-pressed",
|
|
18
|
+
],
|
|
19
|
+
icon: [
|
|
20
|
+
"bg-transparent disabled:bg-transparent rounded-full",
|
|
21
|
+
"text-secondary-default fill-secondary-default",
|
|
22
|
+
"hover:bg-secondary-hover-bg hover:text-secondary-hover hover:fill-secondary-hover",
|
|
23
|
+
"active:text-secondary-pressed active:fill-secondary-pressed",
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
xs: "p-[2px] w-[18px] h-[18px]",
|
|
28
|
+
sm: "px-2 py-1 w-[38px] h-[30px]",
|
|
29
|
+
md: "px-3 py-2 w-[46px] h-[38px]",
|
|
30
|
+
lg: "px-4 py-3 w-[64px] h-[56px]",
|
|
31
|
+
},
|
|
32
|
+
disabled: {
|
|
33
|
+
false: "",
|
|
34
|
+
},
|
|
35
|
+
active: {
|
|
36
|
+
false: "",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
compoundVariants: [
|
|
40
|
+
{
|
|
41
|
+
variant: "solid",
|
|
42
|
+
active: true,
|
|
43
|
+
className: [
|
|
44
|
+
"bg-primary-default border-primary-default text-primary-foreground fill-primary-foreground",
|
|
45
|
+
"hover:bg-primary-hover hover:border-primary-hover",
|
|
46
|
+
"active:bg-primary-pressed active:border-primary-pressed",
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "outline",
|
|
51
|
+
active: true,
|
|
52
|
+
className: [
|
|
53
|
+
"text-primary-default fill-primary-default border-primary-stroke",
|
|
54
|
+
"hover:bg-primary-hover-bg hover:border-primary-hover hover:text-primary-hover hover:fill-primary-hover",
|
|
55
|
+
"active:bg-primary-hover-bg active:border-primary-pressed active:text-primary-pressed active:fill-primary-pressed",
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
variant: "icon",
|
|
60
|
+
active: true,
|
|
61
|
+
className: [
|
|
62
|
+
"text-primary-default fill-primary-default",
|
|
63
|
+
"hover:bg-primary-hover-bg hover:text-primary-hover hover:fill-primary-hover",
|
|
64
|
+
"active:text-primary-pressed active:fill-primary-pressed",
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
size: "lg",
|
|
69
|
+
variant: "icon",
|
|
70
|
+
className: "w-[56px] h-[56px]",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
size: "md",
|
|
74
|
+
variant: "icon",
|
|
75
|
+
className: "w-[38px] h-[38px]",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
size: "sm",
|
|
79
|
+
variant: "icon",
|
|
80
|
+
className: "w-[30px] h-[30px]",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
disabled: true,
|
|
84
|
+
className:
|
|
85
|
+
"pointer-events-none border-transparent bg-disable-solid text-disable-outline fill-disable-outline",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
size: "md",
|
|
90
|
+
variant: "solid",
|
|
91
|
+
disabled: false,
|
|
92
|
+
active: false,
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
);
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
|
|
3
3
|
export const actionButtonVariants = cva(
|
|
4
|
-
["
|
|
4
|
+
["rounded-md box-border flex items-center justify-center"],
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
solid:
|
|
9
|
-
"
|
|
8
|
+
solid: [
|
|
9
|
+
"bg-action-button-solid-default border-action-button-solid-default text-action-button-solid-default fill-action-button-solid-default",
|
|
10
|
+
"hover:bg-action-button-solid-hover hover:border-action-button-solid-hover hover:text-action-button-solid-hover hover:fill-action-button-solid-hover",
|
|
11
|
+
"active:bg-action-button-solid-pressed active:border-action-button-solid-pressed active:text-action-button-solid-pressed active:fill-action-button-solid-pressed",
|
|
12
|
+
],
|
|
10
13
|
outline: [
|
|
11
|
-
"
|
|
12
|
-
"
|
|
14
|
+
"border",
|
|
15
|
+
"bg-action-button-outline-default border-action-button-outline-default text-action-button-outline-default fill-action-button-outline-default",
|
|
16
|
+
"hover:bg-action-button-outline-hover hover:border-action-button-outline-hover hover:text-action-button-outline-hover hover:fill-action-button-outline-hover",
|
|
17
|
+
"active:bg-action-button-outline-pressed active:border-action-button-outline-pressed active:text-action-button-outline-pressed active:fill-action-button-outline-pressed",
|
|
13
18
|
],
|
|
14
19
|
icon: [
|
|
15
|
-
"rounded-full
|
|
16
|
-
"
|
|
20
|
+
"rounded-full",
|
|
21
|
+
"bg-action-button-icon-default border-action-button-icon-default text-action-button-icon-default fill-action-button-icon-default",
|
|
22
|
+
"hover:bg-action-button-icon-hover hover:border-action-button-icon-hover hover:text-action-button-icon-hover hover:fill-action-button-icon-hover",
|
|
23
|
+
"active:bg-action-button-icon-pressed active:border-action-button-icon-pressed active:text-action-button-icon-pressed active:fill-action-button-icon-pressed",
|
|
17
24
|
],
|
|
18
25
|
},
|
|
19
26
|
size: {
|
|
@@ -23,35 +30,39 @@ export const actionButtonVariants = cva(
|
|
|
23
30
|
lg: "px-4 py-3 w-[64px] h-[56px]",
|
|
24
31
|
},
|
|
25
32
|
disabled: {
|
|
26
|
-
|
|
33
|
+
false: "",
|
|
27
34
|
},
|
|
28
35
|
active: {
|
|
29
36
|
false: "",
|
|
30
37
|
},
|
|
31
38
|
},
|
|
32
39
|
compoundVariants: [
|
|
33
|
-
{
|
|
34
|
-
variant: "solid",
|
|
35
|
-
disabled: true,
|
|
36
|
-
className: "bg-grey2-500 text-textcolor-medium fill-textcolor-medium",
|
|
37
|
-
},
|
|
38
40
|
{
|
|
39
41
|
variant: "solid",
|
|
40
42
|
active: true,
|
|
41
|
-
className:
|
|
42
|
-
"bg-
|
|
43
|
+
className: [
|
|
44
|
+
"bg-action-button-solid-active border-action-button-solid-active text-action-button-solid-active fill-action-button-solid-active",
|
|
45
|
+
"hover:bg-action-button-solid-active-hover hover:border-action-button-solid-active-hover hover:text-action-button-solid-active-hover hover:fill-action-button-solid-active-hover",
|
|
46
|
+
"active:bg-action-button-solid-active-pressed active:border-action-button-solid-active-pressed active:text-action-button-solid-active-pressed active:fill-action-button-solid-active-pressed",
|
|
47
|
+
],
|
|
43
48
|
},
|
|
44
49
|
{
|
|
45
50
|
variant: "outline",
|
|
46
51
|
active: true,
|
|
47
|
-
className:
|
|
48
|
-
"
|
|
52
|
+
className: [
|
|
53
|
+
"bg-action-button-outline-active border-action-button-outline-active text-action-button-outline-active fill-action-button-outline-active",
|
|
54
|
+
"hover:bg-action-button-outline-active-hover hover:border-action-button-outline-active-hover hover:text-action-button-outline-active-hover hover:fill-action-button-outline-active-hover",
|
|
55
|
+
"active:bg-action-button-outline-active-pressed active:border-action-button-outline-active-pressed active:text-action-button-outline-active-pressed active:fill-action-button-outline-active-pressed",
|
|
56
|
+
],
|
|
49
57
|
},
|
|
50
58
|
{
|
|
51
59
|
variant: "icon",
|
|
52
60
|
active: true,
|
|
53
|
-
className:
|
|
54
|
-
"
|
|
61
|
+
className: [
|
|
62
|
+
"bg-action-button-icon-active border-action-button-icon-active text-action-button-icon-active fill-action-button-icon-active",
|
|
63
|
+
"hover:bg-action-button-icon-active-hover hover:border-action-button-icon-active-hover hover:text-action-button-icon-active-hover hover:fill-action-button-icon-active-hover",
|
|
64
|
+
"active:bg-action-button-icon-active-pressed active:border-action-button-icon-active-pressed active:text-action-button-icon-active-pressed active:fill-action-button-icon-active-pressed",
|
|
65
|
+
],
|
|
55
66
|
},
|
|
56
67
|
{
|
|
57
68
|
size: "lg",
|
|
@@ -68,6 +79,30 @@ export const actionButtonVariants = cva(
|
|
|
68
79
|
variant: "icon",
|
|
69
80
|
className: "w-[30px] h-[30px]",
|
|
70
81
|
},
|
|
82
|
+
{
|
|
83
|
+
variant: "solid",
|
|
84
|
+
disabled: true,
|
|
85
|
+
className: [
|
|
86
|
+
"pointer-events-none",
|
|
87
|
+
"bg-action-button-solid-disabled border-action-button-solid-disabled text-action-button-solid-disabled fill-action-button-solid-disabled",
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
variant: "outline",
|
|
92
|
+
disabled: true,
|
|
93
|
+
className: [
|
|
94
|
+
"pointer-events-none",
|
|
95
|
+
"bg-action-button-outline-disabled border-action-button-outline-disabled text-action-button-outline-disabled fill-action-button-outline-disabled",
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
variant: "icon",
|
|
100
|
+
disabled: true,
|
|
101
|
+
className: [
|
|
102
|
+
"pointer-events-none",
|
|
103
|
+
"bg-action-button-icon-disabled border-action-button-icon-disabled text-action-button-icon-disabled fill-action-button-icon-disabled",
|
|
104
|
+
],
|
|
105
|
+
},
|
|
71
106
|
],
|
|
72
107
|
defaultVariants: {
|
|
73
108
|
size: "md",
|
|
@@ -29,7 +29,7 @@ const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>(
|
|
|
29
29
|
aria-disabled={disabled || undefined}
|
|
30
30
|
disabled={disabled}
|
|
31
31
|
tabIndex={disabled ? -1 : 0}
|
|
32
|
-
className={cn(actionButtonClassname, className)}
|
|
32
|
+
className={cn(".action-button", actionButtonClassname, className)}
|
|
33
33
|
>
|
|
34
34
|
{children}
|
|
35
35
|
</button>
|
|
@@ -18,7 +18,7 @@ const AlertDialogOverlay = React.forwardRef<
|
|
|
18
18
|
>(({ className, ...props }, ref) => (
|
|
19
19
|
<AlertDialogPrimitive.Overlay
|
|
20
20
|
className={cn(
|
|
21
|
-
"fixed inset-0 bg-popup-
|
|
21
|
+
"fixed inset-0 bg-base-popup-curtain z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
24
24
|
{...props}
|
|
@@ -37,7 +37,7 @@ const AlertDialogContent = React.forwardRef<
|
|
|
37
37
|
<AlertDialogPrimitive.Content
|
|
38
38
|
ref={ref}
|
|
39
39
|
className={cn(
|
|
40
|
-
"fixed text-
|
|
40
|
+
"fixed text-base-popup-foreground left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 border border-base-popup bg-base-popup p-8 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-md",
|
|
41
41
|
className
|
|
42
42
|
)}
|
|
43
43
|
{...props}
|
|
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
|
|
3
3
|
export const avatarVariants = cva(
|
|
4
4
|
[
|
|
5
|
-
"flex items-center justify-center bg-grey2-700 text-
|
|
5
|
+
"flex items-center justify-center bg-grey2-700 text-foreground typography-subtitile2 truncate",
|
|
6
6
|
],
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
|
|
3
|
+
export const buttonVariants = cva(
|
|
4
|
+
[
|
|
5
|
+
// "inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300",
|
|
6
|
+
// "font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]",
|
|
7
|
+
// "aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed",
|
|
8
|
+
// "gap-2 font-bold text-white hover:bg-opacity-90 active:scale-[98%]",
|
|
9
|
+
"gap-2 font-bold text-white outline-none",
|
|
10
|
+
"transition ease-in-out duration-45",
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
variants: {
|
|
14
|
+
color: {
|
|
15
|
+
primary: [
|
|
16
|
+
"bg-primary-default border-primary-default text-primary-foreground fill-primary-foreground",
|
|
17
|
+
"hover:bg-primary-hover hover:border-primary-hover",
|
|
18
|
+
"active:bg-primary-pressed active:border-primary-pressed",
|
|
19
|
+
],
|
|
20
|
+
secondary: [
|
|
21
|
+
"bg-secondary-default border-secondary-default text-secondary-foreground fill-secondary-foreground",
|
|
22
|
+
"hover:bg-secondary-hover hover:border-secondary-hover",
|
|
23
|
+
"active:bg-secondary-pressed active:border-secondary-pressed",
|
|
24
|
+
],
|
|
25
|
+
tertiary: [
|
|
26
|
+
"bg-tertiary-default border-tertiary-default text-tertiary-foreground fill-tertiary-foreground",
|
|
27
|
+
"hover:bg-tertiary-hover hover:border-tertiary-hover",
|
|
28
|
+
"active:bg-tertiary-pressed active:border-tertiary-pressed",
|
|
29
|
+
],
|
|
30
|
+
success: [
|
|
31
|
+
"bg-success-default border-success-default text-success-foreground fill-success-foreground",
|
|
32
|
+
"hover:bg-success-hover hover:border-success-hover",
|
|
33
|
+
"active:bg-success-pressed active:border-success-pressed",
|
|
34
|
+
],
|
|
35
|
+
info: [
|
|
36
|
+
"bg-info-default border-info-default text-info-foreground fill-info-foreground",
|
|
37
|
+
"hover:bg-info-hover hover:border-info-hover",
|
|
38
|
+
"active:bg-info-pressed active:border-info-pressed",
|
|
39
|
+
],
|
|
40
|
+
warning: [
|
|
41
|
+
"bg-warning-default border-warning-default text-warning-foreground fill-warning-foreground",
|
|
42
|
+
"hover:bg-warning-hover hover:border-warning-hover",
|
|
43
|
+
"active:bg-warning-pressed active:border-warning-pressed",
|
|
44
|
+
],
|
|
45
|
+
error: [
|
|
46
|
+
"bg-error-default border-error-default text-error-foreground fill-error-foreground",
|
|
47
|
+
"hover:bg-error-hover hover:border-error-hover",
|
|
48
|
+
"active:bg-error-pressed active:border-error-pressed",
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
sm: "px-3 py-1 text-sm rounded-sm",
|
|
53
|
+
md: "px-4 py-2 text-sm rounded-md",
|
|
54
|
+
lg: "px-6 py-4 text-base rounded-lg",
|
|
55
|
+
},
|
|
56
|
+
variant: {
|
|
57
|
+
solid: "border",
|
|
58
|
+
outline: "border bg-transparent disabled:border-disable-outline",
|
|
59
|
+
flat: "bg-transparent",
|
|
60
|
+
link: "bg-transparent underline underline-offset-4",
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
true: "pointer-events-none border-transparent bg-disable-solid text-disable-outline fill-disable-outline",
|
|
64
|
+
},
|
|
65
|
+
fullwidth: {
|
|
66
|
+
true: "w-full",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
compoundVariants: [
|
|
70
|
+
// --- Outline ---
|
|
71
|
+
{
|
|
72
|
+
variant: "outline",
|
|
73
|
+
color: "primary",
|
|
74
|
+
className: [
|
|
75
|
+
"text-primary-default fill-primary-default border-primary-stroke",
|
|
76
|
+
"hover:bg-primary-hover-bg hover:border-primary-hover hover:text-primary-hover hover:fill-primary-hover",
|
|
77
|
+
"active:bg-primary-hover-bg active:border-primary-pressed active:text-primary-pressed active:fill-primary-pressed",
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
variant: "outline",
|
|
82
|
+
color: "secondary",
|
|
83
|
+
className: [
|
|
84
|
+
"text-secondary-default fill-secondary-default border-secondary-stroke",
|
|
85
|
+
"hover:bg-secondary-hover-bg hover:border-secondary-hover hover:text-secondary-hover hover:fill-secondary-hover",
|
|
86
|
+
"active:bg-secondary-hover-bg active:border-secondary-pressed active:text-secondary-pressed active:fill-secondary-pressed",
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
variant: "outline",
|
|
91
|
+
color: "tertiary",
|
|
92
|
+
className: [
|
|
93
|
+
"text-tertiary-default fill-tertiary-default border-tertiary-stroke",
|
|
94
|
+
"hover:bg-tertiary-hover-bg hover:border-tertiary-hover hover:text-tertiary-hover hover:fill-tertiary-hover",
|
|
95
|
+
"active:bg-tertiary-hover-bg active:border-tertiary-pressed active:text-tertiary-pressed active:fill-tertiary-pressed",
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
variant: "outline",
|
|
100
|
+
color: "success",
|
|
101
|
+
className: [
|
|
102
|
+
"text-success-default fill-success-default border-success-stroke",
|
|
103
|
+
"hover:bg-success-hover-bg hover:border-success-hover hover:text-success-hover hover:fill-success-hover",
|
|
104
|
+
"active:bg-success-hover-bg active:border-success-pressed active:text-success-pressed active:fill-success-pressed",
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
variant: "outline",
|
|
109
|
+
color: "info",
|
|
110
|
+
className: [
|
|
111
|
+
"text-info-default fill-info-default border-info-stroke",
|
|
112
|
+
"hover:bg-info-hover-bg hover:border-info-hover hover:text-info-hover hover:fill-info-hover",
|
|
113
|
+
"active:bg-info-hover-bg active:border-info-pressed active:text-info-pressed active:fill-info-pressed",
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
variant: "outline",
|
|
118
|
+
color: "warning",
|
|
119
|
+
className: [
|
|
120
|
+
"text-warning-default fill-warning-default border-warning-stroke",
|
|
121
|
+
"hover:bg-warning-hover-bg hover:border-warning-hover hover:text-warning-hover hover:fill-warning-hover",
|
|
122
|
+
"active:bg-warning-hover-bg active:border-warning-pressed active:text-warning-pressed active:fill-warning-pressed",
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
variant: "outline",
|
|
127
|
+
color: "error",
|
|
128
|
+
className: [
|
|
129
|
+
"text-error-default fill-error-default border-error-stroke",
|
|
130
|
+
"hover:bg-error-hover-bg hover:border-error-hover hover:text-error-hover hover:fill-error-hover",
|
|
131
|
+
"active:bg-error-hover-bg active:border-error-pressed active:text-error-pressed active:fill-error-pressed",
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
// --- Flat, link ---
|
|
135
|
+
{
|
|
136
|
+
variant: ["flat", "link"],
|
|
137
|
+
color: "primary",
|
|
138
|
+
className: [
|
|
139
|
+
"text-primary-default fill-primary-default",
|
|
140
|
+
"hover:bg-primary-hover-bg hover:text-primary-hover hover:fill-primary-hover",
|
|
141
|
+
"active:bg-transparent active:text-primary-pressed active:fill-primary-pressed",
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
variant: ["flat", "link"],
|
|
146
|
+
color: "secondary",
|
|
147
|
+
className: [
|
|
148
|
+
"text-secondary-default fill-secondary-default",
|
|
149
|
+
"hover:bg-secondary-hover-bg hover:text-secondary-hover hover:fill-secondary-hover",
|
|
150
|
+
"active:bg-transparent active:text-secondary-pressed active:fill-secondary-pressed",
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
variant: ["flat", "link"],
|
|
155
|
+
color: "tertiary",
|
|
156
|
+
className: [
|
|
157
|
+
"text-tertiary-default fill-tertiary-default",
|
|
158
|
+
"hover:bg-tertiary-hover-bg hover:text-tertiary-hover hover:fill-tertiary-hover",
|
|
159
|
+
"active:bg-transparent active:text-tertiary-pressed active:fill-tertiary-pressed",
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
variant: ["flat", "link"],
|
|
164
|
+
color: "success",
|
|
165
|
+
className: [
|
|
166
|
+
"text-success-default fill-success-default",
|
|
167
|
+
"hover:bg-success-hover-bg hover:text-success-hover hover:fill-success-hover",
|
|
168
|
+
"active:bg-transparent active:text-success-pressed active:fill-success-pressed",
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
variant: ["flat", "link"],
|
|
173
|
+
color: "info",
|
|
174
|
+
className: [
|
|
175
|
+
"text-info-default fill-info-default",
|
|
176
|
+
"hover:bg-info-hover-bg hover:text-info-hover hover:fill-info-hover",
|
|
177
|
+
"active:bg-transparent active:text-info-pressed active:fill-info-pressed",
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
variant: ["flat", "link"],
|
|
182
|
+
color: "warning",
|
|
183
|
+
className: [
|
|
184
|
+
"text-warning-default fill-warning-default",
|
|
185
|
+
"hover:bg-warning-hover-bg hover:text-warning-hover hover:fill-warning-hover",
|
|
186
|
+
"active:bg-transparent active:text-warning-pressed active:fill-warning-pressed",
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
variant: ["flat", "link"],
|
|
191
|
+
color: "error",
|
|
192
|
+
className: [
|
|
193
|
+
"text-error-default fill-error-default",
|
|
194
|
+
"hover:bg-error-hover-bg hover:text-error-hover hover:fill-error-hover",
|
|
195
|
+
"active:bg-transparent active:text-error-pressed active:fill-error-pressed",
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
// --- Disabled --
|
|
199
|
+
{
|
|
200
|
+
variant: ["outline", "flat", "link"],
|
|
201
|
+
disabled: true,
|
|
202
|
+
className: [
|
|
203
|
+
"bg-transtarent border-disabled-outline text-disable-outline fill-disable-outline",
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
defaultVariants: {
|
|
208
|
+
size: "md",
|
|
209
|
+
color: "primary",
|
|
210
|
+
variant: "solid",
|
|
211
|
+
fullwidth: true,
|
|
212
|
+
},
|
|
213
|
+
}
|
|
214
|
+
);
|