@deepnoid/ui 0.1.223 → 1.0.0
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/.turbo/turbo-build.log +266 -251
- package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
- package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
- package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
- package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
- package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
- package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
- package/dist/chunk-63JRWMWN.mjs +215 -0
- package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
- package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
- package/dist/chunk-A6UUVHC6.mjs +38 -0
- package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
- package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
- package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
- package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
- package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
- package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
- package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
- package/dist/chunk-E4VJDQD5.mjs +142 -0
- package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
- package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
- package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
- package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
- package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
- package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
- package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
- package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
- package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
- package/dist/chunk-MV2WCFK7.mjs +1 -0
- package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
- package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
- package/dist/chunk-OK34FKBQ.mjs +224 -0
- package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
- package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
- package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
- package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
- package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
- package/dist/chunk-RFHWRBAB.mjs +105 -0
- package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
- package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
- package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
- package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
- package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
- package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
- package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
- package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
- package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
- package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
- package/dist/chunk-Z4NO7SMY.mjs +460 -0
- package/dist/components/accordion/accordion.js +366 -4
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.js +366 -4
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.js +366 -4
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.js +472 -44
- package/dist/components/avatar/avatar.mjs +3 -3
- package/dist/components/avatar/index.js +472 -44
- package/dist/components/avatar/index.mjs +3 -3
- package/dist/components/backdrop/backdrop.js +366 -4
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +366 -4
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +951 -74
- package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
- package/dist/components/breadcrumb/index.js +951 -74
- package/dist/components/breadcrumb/index.mjs +10 -9
- package/dist/components/button/button-group.js +366 -4
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.d.mts +82 -119
- package/dist/components/button/button.d.ts +82 -119
- package/dist/components/button/button.js +966 -355
- package/dist/components/button/button.mjs +6 -5
- package/dist/components/button/button.style.d.mts +89 -0
- package/dist/components/button/button.style.d.ts +89 -0
- package/dist/components/button/button.style.js +1172 -0
- package/dist/components/button/button.style.mjs +9 -0
- package/dist/components/button/icon-button.d.mts +45 -46
- package/dist/components/button/icon-button.d.ts +45 -46
- package/dist/components/button/icon-button.js +1125 -527
- package/dist/components/button/icon-button.mjs +6 -5
- package/dist/components/button/index.js +1154 -830
- package/dist/components/button/index.mjs +9 -8
- package/dist/components/button/text-button.d.mts +59 -39
- package/dist/components/button/text-button.d.ts +59 -39
- package/dist/components/button/text-button.js +831 -21
- package/dist/components/button/text-button.mjs +3 -2
- package/dist/components/charts/areaChart.js +366 -4
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.js +366 -4
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.js +366 -4
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +366 -4
- package/dist/components/charts/index.mjs +6 -6
- package/dist/components/charts/radarChart.js +366 -4
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/charts/simpleBarChart.js +366 -4
- package/dist/components/charts/simpleBarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.js +376 -42
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +376 -42
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.d.mts +32 -0
- package/dist/components/chip/chip.d.ts +32 -0
- package/dist/components/chip/chip.js +496 -57
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +496 -57
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/drawer/drawer.js +366 -4
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.js +366 -4
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.js +1014 -402
- package/dist/components/fileUpload/fileUpload.mjs +12 -11
- package/dist/components/fileUpload/index.js +1014 -402
- package/dist/components/fileUpload/index.mjs +12 -11
- package/dist/components/icon/Icon.d.mts +23 -10
- package/dist/components/icon/Icon.d.ts +23 -10
- package/dist/components/icon/Icon.js +120 -53
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +120 -53
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +5 -2
- package/dist/components/icon/template.d.ts +5 -2
- package/dist/components/icon/template.js +106 -40
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +511 -82
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +511 -82
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/list/index.js +486 -57
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/list.js +366 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +486 -57
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
- package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
- package/dist/components/modal/GlobalModalProvider.js +1028 -416
- package/dist/components/modal/GlobalModalProvider.mjs +12 -11
- package/dist/components/modal/index.d.mts +2 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1028 -416
- package/dist/components/modal/index.mjs +13 -12
- package/dist/components/modal/modal.d.mts +101 -29
- package/dist/components/modal/modal.d.ts +101 -29
- package/dist/components/modal/modal.js +1028 -416
- package/dist/components/modal/modal.mjs +11 -10
- package/dist/components/modal/useGlobalModal.d.mts +2 -0
- package/dist/components/modal/useGlobalModal.d.ts +2 -0
- package/dist/components/modal/useGlobalModal.mjs +13 -12
- package/dist/components/pagination/index.js +598 -212
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.js +598 -212
- package/dist/components/pagination/pagination.mjs +5 -5
- package/dist/components/picker/datePicker.js +1029 -705
- package/dist/components/picker/datePicker.mjs +12 -11
- package/dist/components/picker/day.js +366 -4
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.js +1027 -703
- package/dist/components/picker/index.mjs +15 -14
- package/dist/components/picker/timePicker/Panel.js +831 -21
- package/dist/components/picker/timePicker/Panel.mjs +10 -9
- package/dist/components/picker/timePicker/index.js +976 -99
- package/dist/components/picker/timePicker/index.mjs +12 -11
- package/dist/components/progress/index.js +381 -18
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.d.mts +21 -18
- package/dist/components/progress/progress.d.ts +21 -18
- package/dist/components/progress/progress.js +381 -18
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.js +389 -41
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.d.mts +33 -48
- package/dist/components/radio/radio.d.ts +33 -48
- package/dist/components/radio/radio.js +389 -41
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +819 -221
- package/dist/components/select/index.mjs +10 -9
- package/dist/components/select/select.js +819 -221
- package/dist/components/select/select.mjs +10 -9
- package/dist/components/slider/index.d.mts +4 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider/index.js +955 -0
- package/dist/components/slider/index.mjs +11 -0
- package/dist/components/slider/slider.d.mts +158 -0
- package/dist/components/slider/slider.d.ts +158 -0
- package/dist/components/slider/slider.js +949 -0
- package/dist/components/slider/slider.mjs +10 -0
- package/dist/components/starRating/index.js +486 -57
- package/dist/components/starRating/index.mjs +4 -4
- package/dist/components/starRating/starRating.js +486 -57
- package/dist/components/starRating/starRating.mjs +4 -4
- package/dist/components/switch/index.js +22 -25
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +0 -18
- package/dist/components/switch/switch.d.ts +0 -18
- package/dist/components/switch/switch.js +22 -25
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/table/definition-table.js +366 -4
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.js +366 -4
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +679 -291
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.js +679 -291
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.js +679 -291
- package/dist/components/table/table-head.mjs +7 -7
- package/dist/components/table/table.d.mts +8 -29
- package/dist/components/table/table.d.ts +8 -29
- package/dist/components/table/table.js +679 -291
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/tabs/index.js +366 -4
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +366 -4
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.js +67 -38
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/textarea/textarea.d.mts +21 -0
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/textarea/textarea.js +67 -38
- package/dist/components/textarea/textarea.mjs +1 -1
- package/dist/components/timePicker/calendar.js +486 -57
- package/dist/components/timePicker/calendar.mjs +3 -3
- package/dist/components/toast/index.js +486 -57
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.js +486 -57
- package/dist/components/toast/toast.mjs +4 -4
- package/dist/components/toast/use-toast.js +486 -57
- package/dist/components/toast/use-toast.mjs +5 -5
- package/dist/components/tooltip/index.js +366 -4
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +366 -4
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +486 -57
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.js +486 -57
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1705 -1281
- package/dist/index.mjs +76 -70
- package/dist/utils/tailwind-variants.js +366 -4
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6AID2NLT.mjs +0 -37
- package/dist/chunk-BBRO35V3.mjs +0 -385
- package/dist/chunk-EVJ46M3U.mjs +0 -141
- package/dist/chunk-SKX5QPUD.mjs +0 -482
|
@@ -115,6 +115,352 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
|
115
115
|
// ../tailwind-config/src/plugin.ts
|
|
116
116
|
var import_plugin = __toESM(require_plugin());
|
|
117
117
|
|
|
118
|
+
// ../tailwind-config/src/colors/primitive-palette.ts
|
|
119
|
+
var primitivePalette = {
|
|
120
|
+
bg: {
|
|
121
|
+
"01": "#040811",
|
|
122
|
+
"02": "#040811",
|
|
123
|
+
"03": "#14161E",
|
|
124
|
+
"04": "#070414",
|
|
125
|
+
"05": "#070C12",
|
|
126
|
+
"06": "#202123"
|
|
127
|
+
},
|
|
128
|
+
gray: {
|
|
129
|
+
cool: {
|
|
130
|
+
50: "#F7F7F8",
|
|
131
|
+
100: "#EEEEF0",
|
|
132
|
+
200: "#D8D9DF",
|
|
133
|
+
300: "#B6B8C3",
|
|
134
|
+
400: "#999CA9",
|
|
135
|
+
500: "#717486",
|
|
136
|
+
600: "#5B5E6E",
|
|
137
|
+
700: "#4A4C5A",
|
|
138
|
+
800: "#40424C",
|
|
139
|
+
900: "#36373F",
|
|
140
|
+
950: "#25252C"
|
|
141
|
+
},
|
|
142
|
+
warm: {
|
|
143
|
+
50: "#F6F6F6",
|
|
144
|
+
100: "#E7E7E7",
|
|
145
|
+
200: "#D1D1D1",
|
|
146
|
+
300: "#B0B0B0",
|
|
147
|
+
400: "#888888",
|
|
148
|
+
500: "#6D6D6D",
|
|
149
|
+
600: "#5D5D5D",
|
|
150
|
+
700: "#525252",
|
|
151
|
+
800: "#454545",
|
|
152
|
+
900: "#3D3D3D",
|
|
153
|
+
950: "#25252C"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
opacity: {
|
|
157
|
+
white: {
|
|
158
|
+
"0": "#FFFFFF, 0",
|
|
159
|
+
5: "#FFFFFF, 5",
|
|
160
|
+
10: "#FFFFFF, 10",
|
|
161
|
+
20: "#FFFFFF, 20",
|
|
162
|
+
30: "#FFFFFF, 30",
|
|
163
|
+
40: "#FFFFFF, 40",
|
|
164
|
+
50: "#FFFFFF, 50",
|
|
165
|
+
60: "#FFFFFF, 60",
|
|
166
|
+
70: "#FFFFFF, 70",
|
|
167
|
+
80: "#FFFFFF, 80",
|
|
168
|
+
90: "#FFFFFF, 90"
|
|
169
|
+
},
|
|
170
|
+
black: {
|
|
171
|
+
"0": "#000000, 0",
|
|
172
|
+
5: "#000000, 5",
|
|
173
|
+
10: "#000000, 10",
|
|
174
|
+
20: "#000000, 20",
|
|
175
|
+
30: "#000000, 30",
|
|
176
|
+
40: "#000000, 40",
|
|
177
|
+
50: "#000000, 50",
|
|
178
|
+
60: "#000000, 60",
|
|
179
|
+
70: "#000000, 70",
|
|
180
|
+
80: "#000000, 80",
|
|
181
|
+
90: "#000000, 90"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
red: {
|
|
185
|
+
50: "#FEF2F2",
|
|
186
|
+
100: "#FEE9E9",
|
|
187
|
+
200: "#FCCFD2",
|
|
188
|
+
300: "#F9A8AC",
|
|
189
|
+
400: "#F57780",
|
|
190
|
+
500: "#EC4757",
|
|
191
|
+
600: "#D82640",
|
|
192
|
+
700: "#B71934",
|
|
193
|
+
800: "#991832",
|
|
194
|
+
900: "#831831",
|
|
195
|
+
950: "#831831"
|
|
196
|
+
},
|
|
197
|
+
rose: {
|
|
198
|
+
50: "#FDF4F6",
|
|
199
|
+
100: "#F9E9EC",
|
|
200
|
+
200: "#F4D8DD",
|
|
201
|
+
300: "#E9B8C2",
|
|
202
|
+
400: "#DF96A6",
|
|
203
|
+
500: "#CB6881",
|
|
204
|
+
600: "#B54969",
|
|
205
|
+
700: "#973957",
|
|
206
|
+
800: "#7F324D",
|
|
207
|
+
900: "#6A2740",
|
|
208
|
+
950: "#3C1523"
|
|
209
|
+
},
|
|
210
|
+
hotPink: {
|
|
211
|
+
50: "#FDF2F7",
|
|
212
|
+
100: "#FDE6F0",
|
|
213
|
+
200: "#FCCEE3",
|
|
214
|
+
300: "#FBA6CA",
|
|
215
|
+
400: "#F76FA6",
|
|
216
|
+
500: "#F04485",
|
|
217
|
+
600: "#E2326C",
|
|
218
|
+
700: "#C21448",
|
|
219
|
+
800: "#A1133C",
|
|
220
|
+
900: "#861535",
|
|
221
|
+
950: "#52051B"
|
|
222
|
+
},
|
|
223
|
+
sepia: {
|
|
224
|
+
50: "#FCF5F4",
|
|
225
|
+
100: "#FAE9E9",
|
|
226
|
+
200: "#F5D6D7",
|
|
227
|
+
300: "#EDB4B6",
|
|
228
|
+
400: "#E28A8F",
|
|
229
|
+
500: "#D45F69",
|
|
230
|
+
600: "#BE4051",
|
|
231
|
+
700: "#9F3142",
|
|
232
|
+
800: "#862B3C",
|
|
233
|
+
900: "#6B2433",
|
|
234
|
+
950: "#320E15"
|
|
235
|
+
},
|
|
236
|
+
orange: {
|
|
237
|
+
50: "#FEF7EE",
|
|
238
|
+
100: "#FDEDD7",
|
|
239
|
+
200: "#F9D8AF",
|
|
240
|
+
300: "#F5BB7C",
|
|
241
|
+
400: "#F09447",
|
|
242
|
+
500: "#EC7723",
|
|
243
|
+
600: "#E15F19",
|
|
244
|
+
700: "#E15F19",
|
|
245
|
+
800: "#92391A",
|
|
246
|
+
900: "#763118",
|
|
247
|
+
950: "#40160A"
|
|
248
|
+
},
|
|
249
|
+
yellow: {
|
|
250
|
+
50: "#F9F2E5",
|
|
251
|
+
100: "#F5E6BC",
|
|
252
|
+
200: "#FFE9BC",
|
|
253
|
+
300: "#FFD174",
|
|
254
|
+
400: "#F8BE4A",
|
|
255
|
+
500: "#EAAD30",
|
|
256
|
+
600: "#D77908",
|
|
257
|
+
700: "#B2550B",
|
|
258
|
+
800: "#91420F",
|
|
259
|
+
900: "#773610",
|
|
260
|
+
950: "#441B04"
|
|
261
|
+
},
|
|
262
|
+
tree: {
|
|
263
|
+
50: "#F5F3F1",
|
|
264
|
+
100: "#E5E1DC",
|
|
265
|
+
200: "#CCC5BC",
|
|
266
|
+
300: "#AFA395",
|
|
267
|
+
400: "#978878",
|
|
268
|
+
500: "#907E6F",
|
|
269
|
+
600: "#756459",
|
|
270
|
+
700: "#5F4F49",
|
|
271
|
+
800: "#524541",
|
|
272
|
+
900: "#483D3B",
|
|
273
|
+
950: "#282120"
|
|
274
|
+
},
|
|
275
|
+
brown: {
|
|
276
|
+
50: "#F6F3F0",
|
|
277
|
+
100: "#F4EDEC",
|
|
278
|
+
200: "#EBDFDD",
|
|
279
|
+
300: "#DCC9C5",
|
|
280
|
+
400: "#C6A9A3",
|
|
281
|
+
500: "#B08983",
|
|
282
|
+
600: "#A27E77",
|
|
283
|
+
700: "#7F5D56",
|
|
284
|
+
800: "#6A4F4A",
|
|
285
|
+
900: "#5B4541",
|
|
286
|
+
950: "#2C1E1C"
|
|
287
|
+
},
|
|
288
|
+
lime: {
|
|
289
|
+
50: "#F7FFE5",
|
|
290
|
+
100: "#ECFFC7",
|
|
291
|
+
200: "#D9FF95",
|
|
292
|
+
300: "#BDFE58",
|
|
293
|
+
400: "#A1F524",
|
|
294
|
+
500: "#82DC06",
|
|
295
|
+
600: "#63B000",
|
|
296
|
+
700: "#4B8506",
|
|
297
|
+
800: "#3E690B",
|
|
298
|
+
900: "#34580F",
|
|
299
|
+
950: "#193102"
|
|
300
|
+
},
|
|
301
|
+
green: {
|
|
302
|
+
50: "#E7F3EB",
|
|
303
|
+
100: "#DFF9EA",
|
|
304
|
+
200: "#CEECDA",
|
|
305
|
+
300: "#9CD4B3",
|
|
306
|
+
400: "#6EC092",
|
|
307
|
+
500: "#3FA46B",
|
|
308
|
+
600: "#209754",
|
|
309
|
+
700: "#1E7745",
|
|
310
|
+
800: "#1D5E3A",
|
|
311
|
+
900: "#194E32",
|
|
312
|
+
950: "#082B19"
|
|
313
|
+
},
|
|
314
|
+
timberGreen: {
|
|
315
|
+
50: "#F1FCF5",
|
|
316
|
+
100: "#DFF9EA",
|
|
317
|
+
200: "#B5DACD",
|
|
318
|
+
300: "#8ABFAF",
|
|
319
|
+
400: "#60A18F",
|
|
320
|
+
500: "#468675",
|
|
321
|
+
600: "#366B5F",
|
|
322
|
+
700: "#2E574D",
|
|
323
|
+
800: "#2A4641",
|
|
324
|
+
900: "#1D2F2B",
|
|
325
|
+
950: "#11221E"
|
|
326
|
+
},
|
|
327
|
+
teal: {
|
|
328
|
+
50: "#E2F1F0",
|
|
329
|
+
100: "#C9EBE8",
|
|
330
|
+
200: "#C7E8E5",
|
|
331
|
+
300: "#8AD0D0",
|
|
332
|
+
400: "#67C4C4",
|
|
333
|
+
500: "#39A6A7",
|
|
334
|
+
600: "#258386",
|
|
335
|
+
700: "#1B666A",
|
|
336
|
+
800: "#1A5255",
|
|
337
|
+
900: "#1A4447",
|
|
338
|
+
950: "#09272A"
|
|
339
|
+
},
|
|
340
|
+
lightBlue: {
|
|
341
|
+
50: "#F2F8FD",
|
|
342
|
+
100: "#E3EFFB",
|
|
343
|
+
200: "#C1E0F6",
|
|
344
|
+
300: "#8BC6EE",
|
|
345
|
+
400: "#3DA2E1",
|
|
346
|
+
500: "#258FD2",
|
|
347
|
+
600: "#1771B2",
|
|
348
|
+
700: "#145A90",
|
|
349
|
+
800: "#154D77",
|
|
350
|
+
900: "#174163",
|
|
351
|
+
950: "#062C2D"
|
|
352
|
+
},
|
|
353
|
+
sea: {
|
|
354
|
+
50: "#F4F6FC",
|
|
355
|
+
100: "#E8EDF6",
|
|
356
|
+
200: "#CBD9EB",
|
|
357
|
+
300: "#9FB9DA",
|
|
358
|
+
400: "#6A93C5",
|
|
359
|
+
500: "#446FA4",
|
|
360
|
+
600: "#375D92",
|
|
361
|
+
700: "#2D4B77",
|
|
362
|
+
800: "#294163",
|
|
363
|
+
900: "#263954",
|
|
364
|
+
950: "#1A2537"
|
|
365
|
+
},
|
|
366
|
+
blue: {
|
|
367
|
+
50: "#F0F6FE",
|
|
368
|
+
100: "#DDEAFC",
|
|
369
|
+
200: "#C2DBFB",
|
|
370
|
+
300: "#98C5F8",
|
|
371
|
+
400: "#68A7F2",
|
|
372
|
+
500: "#377CEB",
|
|
373
|
+
600: "#2F68E1",
|
|
374
|
+
700: "#2754CE",
|
|
375
|
+
800: "#20429E",
|
|
376
|
+
900: "#1C2A52",
|
|
377
|
+
950: "#061132"
|
|
378
|
+
},
|
|
379
|
+
lightPurple: {
|
|
380
|
+
50: "#F6F5FD",
|
|
381
|
+
100: "#EEEDFA",
|
|
382
|
+
200: "#DDDCFD",
|
|
383
|
+
300: "#BDB9EC",
|
|
384
|
+
400: "#AAA1E4",
|
|
385
|
+
500: "#826CE3",
|
|
386
|
+
600: "#7250D7",
|
|
387
|
+
700: "#623DC4",
|
|
388
|
+
800: "#5133A4",
|
|
389
|
+
900: "#442B87",
|
|
390
|
+
950: "#291A5B"
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
// ../tailwind-config/src/colors/semantic-palette.ts
|
|
395
|
+
var semanticPalette = {
|
|
396
|
+
primary: {
|
|
397
|
+
soft: { light: primitivePalette.blue[100], dark: primitivePalette.blue[950] },
|
|
398
|
+
light: { light: primitivePalette.blue[200], dark: primitivePalette.blue[900] },
|
|
399
|
+
main: { light: primitivePalette.blue[600], dark: primitivePalette.blue[600] },
|
|
400
|
+
dark: { light: primitivePalette.blue[800], dark: primitivePalette.blue[500] },
|
|
401
|
+
strong: { light: primitivePalette.blue[900], dark: primitivePalette.blue[200] }
|
|
402
|
+
},
|
|
403
|
+
secondary: {
|
|
404
|
+
soft: { light: primitivePalette.lightPurple[100], dark: primitivePalette.lightPurple[950] },
|
|
405
|
+
light: { light: primitivePalette.lightPurple[200], dark: primitivePalette.lightPurple[900] },
|
|
406
|
+
main: { light: primitivePalette.lightPurple[600], dark: primitivePalette.lightPurple[500] },
|
|
407
|
+
dark: { light: primitivePalette.lightPurple[800], dark: primitivePalette.lightPurple[700] },
|
|
408
|
+
strong: { light: primitivePalette.lightPurple[950], dark: primitivePalette.lightPurple[950] }
|
|
409
|
+
},
|
|
410
|
+
body: {
|
|
411
|
+
foreground: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[50] },
|
|
412
|
+
background: { light: primitivePalette.gray.cool[50], dark: primitivePalette.bg["06"] }
|
|
413
|
+
},
|
|
414
|
+
neutral: {
|
|
415
|
+
soft: { light: primitivePalette.gray.cool[100], dark: primitivePalette.gray.cool[900] },
|
|
416
|
+
light: { light: primitivePalette.gray.cool[200], dark: primitivePalette.gray.cool[700] },
|
|
417
|
+
main: { light: primitivePalette.gray.cool[400], dark: primitivePalette.gray.cool[400] },
|
|
418
|
+
dark: { light: primitivePalette.gray.cool[500], dark: primitivePalette.gray.cool[300] },
|
|
419
|
+
strong: { light: primitivePalette.gray.cool[700], dark: primitivePalette.gray.cool[200] }
|
|
420
|
+
},
|
|
421
|
+
trans: {
|
|
422
|
+
soft: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] },
|
|
423
|
+
light: { light: primitivePalette.opacity.black[10], dark: primitivePalette.opacity.white[10] },
|
|
424
|
+
main: { light: primitivePalette.opacity.black[20], dark: primitivePalette.opacity.white[20] },
|
|
425
|
+
dark: { light: primitivePalette.opacity.black[30], dark: primitivePalette.opacity.white[30] },
|
|
426
|
+
strong: { light: primitivePalette.opacity.black[60], dark: primitivePalette.opacity.black[60] }
|
|
427
|
+
},
|
|
428
|
+
common: {
|
|
429
|
+
black: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[950] },
|
|
430
|
+
white: { light: primitivePalette.gray.cool[50], dark: primitivePalette.gray.cool[50] },
|
|
431
|
+
transparent: { light: primitivePalette.opacity.white["0"], dark: primitivePalette.opacity.black["0"] },
|
|
432
|
+
hover: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] }
|
|
433
|
+
},
|
|
434
|
+
info: {
|
|
435
|
+
soft: { light: primitivePalette.teal[50], dark: primitivePalette.teal[950] },
|
|
436
|
+
light: { light: primitivePalette.teal[100], dark: primitivePalette.teal[900] },
|
|
437
|
+
main: { light: primitivePalette.teal[500], dark: primitivePalette.teal[500] },
|
|
438
|
+
dark: { light: primitivePalette.teal[600], dark: primitivePalette.teal[700] },
|
|
439
|
+
strong: { light: "", dark: "" }
|
|
440
|
+
},
|
|
441
|
+
success: {
|
|
442
|
+
soft: { light: primitivePalette.green[50], dark: primitivePalette.green[950] },
|
|
443
|
+
light: { light: primitivePalette.green[200], dark: primitivePalette.green[900] },
|
|
444
|
+
main: { light: primitivePalette.green[500], dark: primitivePalette.green[600] },
|
|
445
|
+
dark: { light: primitivePalette.green[600], dark: primitivePalette.green[700] },
|
|
446
|
+
strong: { light: "", dark: "" }
|
|
447
|
+
},
|
|
448
|
+
warning: {
|
|
449
|
+
soft: { light: primitivePalette.yellow[50], dark: primitivePalette.yellow[950] },
|
|
450
|
+
light: { light: primitivePalette.yellow[100], dark: primitivePalette.yellow[900] },
|
|
451
|
+
main: { light: primitivePalette.yellow[500], dark: primitivePalette.yellow[600] },
|
|
452
|
+
dark: { light: primitivePalette.yellow[600], dark: primitivePalette.yellow[700] },
|
|
453
|
+
strong: { light: "", dark: "" }
|
|
454
|
+
},
|
|
455
|
+
danger: {
|
|
456
|
+
soft: { light: primitivePalette.hotPink[50], dark: primitivePalette.hotPink[950] },
|
|
457
|
+
light: { light: primitivePalette.hotPink[200], dark: primitivePalette.hotPink[900] },
|
|
458
|
+
main: { light: primitivePalette.hotPink[500], dark: primitivePalette.hotPink[500] },
|
|
459
|
+
dark: { light: primitivePalette.hotPink[600], dark: primitivePalette.hotPink[700] },
|
|
460
|
+
strong: { light: "", dark: "" }
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
|
|
118
464
|
// ../tailwind-config/src/typography/font.ts
|
|
119
465
|
var fontSize = {
|
|
120
466
|
h1: [
|
|
@@ -318,7 +664,7 @@ var boxShadow = {
|
|
|
318
664
|
"drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
|
|
319
665
|
"drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
|
|
320
666
|
"drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
|
|
321
|
-
"drop-xl": "0
|
|
667
|
+
"drop-xl": "0 0px 60px 0 rgba(0, 0, 0, 0.2)"
|
|
322
668
|
};
|
|
323
669
|
|
|
324
670
|
// ../tailwind-config/src/border/radius.ts
|
|
@@ -327,8 +673,19 @@ var borderRadius = {
|
|
|
327
673
|
md: "6px",
|
|
328
674
|
lg: "8px",
|
|
329
675
|
xl: "10px",
|
|
676
|
+
"2xl": "20px",
|
|
330
677
|
none: "0",
|
|
331
|
-
full: "9999px"
|
|
678
|
+
full: "9999px",
|
|
679
|
+
2: "2px",
|
|
680
|
+
5: "5px"
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
// ../tailwind-config/src/border/width.ts
|
|
684
|
+
var borderWidth = {
|
|
685
|
+
sm: "1px",
|
|
686
|
+
md: "1.25px",
|
|
687
|
+
lg: "1.5px",
|
|
688
|
+
xl: "1.75px"
|
|
332
689
|
};
|
|
333
690
|
|
|
334
691
|
// ../tailwind-config/src/space/gap.ts
|
|
@@ -336,7 +693,11 @@ var gap = {
|
|
|
336
693
|
sm: "4px",
|
|
337
694
|
md: "6px",
|
|
338
695
|
lg: "8px",
|
|
339
|
-
xl: "10px"
|
|
696
|
+
xl: "10px",
|
|
697
|
+
5: "5px",
|
|
698
|
+
10: "10px",
|
|
699
|
+
20: "20px",
|
|
700
|
+
30: "30px"
|
|
340
701
|
};
|
|
341
702
|
|
|
342
703
|
// src/utils/tailwind-variants.ts
|
|
@@ -351,7 +712,8 @@ var tv = (0, import_tailwind_variants.createTV)({
|
|
|
351
712
|
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
352
713
|
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
353
714
|
padding: [{ p: [...COMMON_SIZE] }],
|
|
354
|
-
gap: [{ gap: [...typedKeys(gap)] }]
|
|
715
|
+
gap: [{ gap: [...typedKeys(gap)] }],
|
|
716
|
+
borderWidth: [{ border: [...typedKeys(borderWidth)] }]
|
|
355
717
|
}
|
|
356
718
|
}
|
|
357
719
|
});
|
|
@@ -379,6 +741,98 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
379
741
|
// src/components/icon/template.tsx
|
|
380
742
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
381
743
|
var template = {
|
|
744
|
+
left: ({ className }) => {
|
|
745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
746
|
+
"svg",
|
|
747
|
+
{
|
|
748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
749
|
+
width: "21",
|
|
750
|
+
height: "21",
|
|
751
|
+
viewBox: "0 0 21 21",
|
|
752
|
+
fill: "none",
|
|
753
|
+
className,
|
|
754
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
755
|
+
"path",
|
|
756
|
+
{
|
|
757
|
+
d: "M12.8333 15.1667L8.16667 10.5L12.8333 5.83334",
|
|
758
|
+
stroke: "currentColor",
|
|
759
|
+
strokeWidth: "1.25",
|
|
760
|
+
strokeLinecap: "round",
|
|
761
|
+
strokeLinejoin: "round"
|
|
762
|
+
}
|
|
763
|
+
)
|
|
764
|
+
}
|
|
765
|
+
);
|
|
766
|
+
},
|
|
767
|
+
"left-double": ({ className }) => {
|
|
768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
769
|
+
"svg",
|
|
770
|
+
{
|
|
771
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
772
|
+
width: "21",
|
|
773
|
+
height: "21",
|
|
774
|
+
viewBox: "0 0 21 21",
|
|
775
|
+
fill: "none",
|
|
776
|
+
className,
|
|
777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
778
|
+
"path",
|
|
779
|
+
{
|
|
780
|
+
d: "M15.1667 5.83334L9.98148 10.5L15.1667 15.1667M11.0185 5.83334L5.83334 10.5L11.0185 15.1667",
|
|
781
|
+
stroke: "currentColor",
|
|
782
|
+
strokeWidth: "1.25",
|
|
783
|
+
strokeLinecap: "round",
|
|
784
|
+
strokeLinejoin: "round"
|
|
785
|
+
}
|
|
786
|
+
)
|
|
787
|
+
}
|
|
788
|
+
);
|
|
789
|
+
},
|
|
790
|
+
right: ({ className }) => {
|
|
791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
792
|
+
"svg",
|
|
793
|
+
{
|
|
794
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
795
|
+
width: "21",
|
|
796
|
+
height: "21",
|
|
797
|
+
viewBox: "0 0 21 21",
|
|
798
|
+
fill: "none",
|
|
799
|
+
className,
|
|
800
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
801
|
+
"path",
|
|
802
|
+
{
|
|
803
|
+
d: "M8.16666 5.83334L12.8333 10.5L8.16666 15.1667",
|
|
804
|
+
stroke: "currentColor",
|
|
805
|
+
strokeWidth: "1.25",
|
|
806
|
+
strokeLinecap: "round",
|
|
807
|
+
strokeLinejoin: "round"
|
|
808
|
+
}
|
|
809
|
+
)
|
|
810
|
+
}
|
|
811
|
+
);
|
|
812
|
+
},
|
|
813
|
+
"right-double": ({ className }) => {
|
|
814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
815
|
+
"svg",
|
|
816
|
+
{
|
|
817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
818
|
+
width: "21",
|
|
819
|
+
height: "21",
|
|
820
|
+
viewBox: "0 0 21 21",
|
|
821
|
+
fill: "none",
|
|
822
|
+
className,
|
|
823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
824
|
+
"path",
|
|
825
|
+
{
|
|
826
|
+
d: "M5.83334 5.83334L11.0185 10.5L5.83334 15.1667M9.98149 5.83334L15.1667 10.5L9.98149 15.1667",
|
|
827
|
+
stroke: "currentColor",
|
|
828
|
+
strokeWidth: "1.25",
|
|
829
|
+
strokeLinecap: "round",
|
|
830
|
+
strokeLinejoin: "round"
|
|
831
|
+
}
|
|
832
|
+
)
|
|
833
|
+
}
|
|
834
|
+
);
|
|
835
|
+
},
|
|
382
836
|
"left-chevron": ({ className }) => {
|
|
383
837
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
384
838
|
"svg",
|
|
@@ -1764,46 +2218,6 @@ var template = {
|
|
|
1764
2218
|
}
|
|
1765
2219
|
);
|
|
1766
2220
|
},
|
|
1767
|
-
left: ({ className }) => {
|
|
1768
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1769
|
-
"svg",
|
|
1770
|
-
{
|
|
1771
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1772
|
-
width: "22",
|
|
1773
|
-
height: "22",
|
|
1774
|
-
viewBox: "0 0 22 22",
|
|
1775
|
-
fill: "none",
|
|
1776
|
-
className,
|
|
1777
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1778
|
-
"path",
|
|
1779
|
-
{
|
|
1780
|
-
d: "M14.4955 7.21404C14.4957 7.26442 14.4957 7.26442 14.4959 7.31582C14.4962 7.40882 14.4962 7.50182 14.496 7.59482C14.496 7.69521 14.4962 7.79559 14.4965 7.89598C14.4969 8.09257 14.497 8.28915 14.4969 8.48574C14.4968 8.64555 14.4969 8.80536 14.497 8.96516C14.4971 8.98791 14.4971 9.01066 14.4971 9.0341C14.4971 9.08032 14.4972 9.12653 14.4972 9.17275C14.4976 9.60613 14.4975 10.0395 14.4973 10.4729C14.4971 10.8692 14.4975 11.2656 14.4981 11.6619C14.4988 12.069 14.499 12.4761 14.4989 12.8832C14.4989 13.1117 14.4989 13.3402 14.4994 13.5687C14.4998 13.7633 14.4998 13.9578 14.4994 14.1524C14.4992 14.2516 14.4992 14.3508 14.4996 14.45C14.4999 14.5577 14.4997 14.6653 14.4993 14.7729C14.4995 14.8042 14.4997 14.8354 14.5 14.8676C14.4981 15.094 14.4635 15.2952 14.2769 15.4694C14.0633 15.6269 13.8501 15.6664 13.574 15.6667C13.3359 15.6312 13.1607 15.5177 12.9847 15.381C12.9446 15.3506 12.9044 15.3202 12.8642 15.2898C12.8338 15.2666 12.8338 15.2666 12.8028 15.2429C12.7059 15.1692 12.6076 15.0969 12.5094 15.0246C12.4807 15.0034 12.4807 15.0034 12.4515 14.9819C12.3238 14.8875 12.1955 14.7936 12.0669 14.7C11.8604 14.5497 11.6552 14.3982 11.4501 14.2465C11.3539 14.1754 11.2577 14.1043 11.1615 14.0332C11.1231 14.0048 11.0847 13.9765 11.0462 13.9481C11.0177 13.927 11.0177 13.927 10.9886 13.9055C10.1627 13.2955 9.33686 12.6854 8.51098 12.0753C8.49194 12.0613 8.47291 12.0472 8.45329 12.0328C8.41508 12.0045 8.37691 11.9762 8.33878 11.9479C8.23994 11.8746 8.14044 11.8021 8.03961 11.7309C7.56492 11.3929 7.56492 11.3929 7.50676 11.139C7.48169 10.8947 7.5218 10.7077 7.70431 10.5165C7.82684 10.4027 7.96443 10.3072 8.1052 10.2107C8.19396 10.1488 8.27857 10.0845 8.36282 10.0181C8.5044 9.90695 8.65122 9.80273 8.80011 9.69893C8.88704 9.63693 8.97086 9.57289 9.05425 9.50739C9.19583 9.3962 9.34265 9.29198 9.49154 9.18818C9.57847 9.12618 9.6623 9.06214 9.74569 8.99664C9.88726 8.88544 10.0341 8.78123 10.183 8.67742C10.2699 8.61542 10.3537 8.55139 10.4371 8.48589C10.5787 8.37469 10.7255 8.27048 10.8744 8.16667C10.9613 8.10467 11.0452 8.04064 11.1286 7.97514C11.2379 7.88937 11.3491 7.80701 11.464 7.72686C11.676 7.57888 11.881 7.42428 12.0868 7.26992C12.2036 7.18255 12.321 7.09588 12.4386 7.00934C12.5366 6.93723 12.6341 6.8648 12.7311 6.7917C13.3456 6.32986 13.3456 6.32986 13.7814 6.33404C13.9843 6.35117 14.1418 6.41415 14.2854 6.53943C14.4816 6.75169 14.4966 6.95069 14.4955 7.21404Z",
|
|
1781
|
-
fill: "currentColor"
|
|
1782
|
-
}
|
|
1783
|
-
)
|
|
1784
|
-
}
|
|
1785
|
-
);
|
|
1786
|
-
},
|
|
1787
|
-
right: ({ className }) => {
|
|
1788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1789
|
-
"svg",
|
|
1790
|
-
{
|
|
1791
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1792
|
-
width: "22",
|
|
1793
|
-
height: "22",
|
|
1794
|
-
viewBox: "0 0 22 22",
|
|
1795
|
-
fill: "none",
|
|
1796
|
-
className,
|
|
1797
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1798
|
-
"path",
|
|
1799
|
-
{
|
|
1800
|
-
d: "M7.50447 7.21404C7.50428 7.26442 7.50428 7.26442 7.50409 7.31582C7.50381 7.40882 7.50383 7.50182 7.50397 7.59482C7.50405 7.69521 7.50375 7.79559 7.5035 7.89598C7.50308 8.09257 7.50303 8.28915 7.5031 8.48574C7.50316 8.64555 7.5031 8.80536 7.50296 8.96516C7.50294 8.98791 7.50292 9.01066 7.5029 9.0341C7.50286 9.08032 7.50282 9.12653 7.50278 9.17275C7.50243 9.60613 7.5025 10.0395 7.5027 10.4729C7.50287 10.8692 7.5025 11.2656 7.50187 11.6619C7.50123 12.069 7.50096 12.4761 7.50109 12.8832C7.50115 13.1117 7.50107 13.3402 7.5006 13.5687C7.50021 13.7633 7.50016 13.9578 7.50056 14.1524C7.50076 14.2516 7.50079 14.3508 7.5004 14.45C7.50005 14.5577 7.50032 14.6653 7.50074 14.7729C7.50049 14.8042 7.50025 14.8354 7.5 14.8676C7.50185 15.094 7.53645 15.2952 7.72309 15.4694C7.93671 15.6269 8.14985 15.6664 8.42597 15.6667C8.66414 15.6312 8.8393 15.5177 9.01528 15.381C9.05544 15.3506 9.09561 15.3202 9.13579 15.2898C9.16617 15.2666 9.16617 15.2666 9.19716 15.2429C9.29408 15.1692 9.39237 15.0969 9.49064 15.0246C9.51926 15.0034 9.51926 15.0034 9.54847 14.9819C9.67623 14.8875 9.80451 14.7936 9.93307 14.7C10.1396 14.5497 10.3448 14.3982 10.5499 14.2465C10.6461 14.1754 10.7423 14.1043 10.8385 14.0332C10.8769 14.0048 10.9153 13.9765 10.9538 13.9481C10.9823 13.927 10.9823 13.927 11.0114 13.9055C11.8373 13.2955 12.6631 12.6854 13.489 12.0753C13.5081 12.0613 13.5271 12.0472 13.5467 12.0328C13.5849 12.0045 13.6231 11.9762 13.6612 11.9479C13.7601 11.8746 13.8596 11.8021 13.9604 11.7309C14.4351 11.3929 14.4351 11.3929 14.4932 11.139C14.5183 10.8947 14.4782 10.7077 14.2957 10.5165C14.1732 10.4027 14.0356 10.3072 13.8948 10.2107C13.806 10.1488 13.7214 10.0845 13.6372 10.0181C13.4956 9.90695 13.3488 9.80273 13.1999 9.69893C13.113 9.63693 13.0291 9.57289 12.9457 9.50739C12.8042 9.3962 12.6573 9.29198 12.5085 9.18818C12.4215 9.12618 12.3377 9.06214 12.2543 8.99664C12.1127 8.88544 11.9659 8.78123 11.817 8.67742C11.7301 8.61542 11.6463 8.55139 11.5629 8.48589C11.4213 8.37469 11.2745 8.27048 11.1256 8.16667C11.0387 8.10467 10.9548 8.04064 10.8714 7.97514C10.7621 7.88937 10.6509 7.80701 10.536 7.72686C10.324 7.57888 10.119 7.42428 9.9132 7.26992C9.79643 7.18255 9.67897 7.09588 9.56138 7.00934C9.46343 6.93723 9.36586 6.8648 9.26891 6.7917C8.65441 6.32986 8.65441 6.32986 8.21864 6.33404C8.01565 6.35117 7.85817 6.41415 7.7146 6.53943C7.51841 6.75169 7.50343 6.95069 7.50447 7.21404Z",
|
|
1801
|
-
fill: "currentColor"
|
|
1802
|
-
}
|
|
1803
|
-
)
|
|
1804
|
-
}
|
|
1805
|
-
);
|
|
1806
|
-
},
|
|
1807
2221
|
"brace-left": ({ className }) => {
|
|
1808
2222
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1809
2223
|
"svg",
|
|
@@ -2113,6 +2527,20 @@ var template = {
|
|
|
2113
2527
|
}
|
|
2114
2528
|
);
|
|
2115
2529
|
},
|
|
2530
|
+
polygon: ({ className }) => {
|
|
2531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2532
|
+
"svg",
|
|
2533
|
+
{
|
|
2534
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2535
|
+
width: "24",
|
|
2536
|
+
height: "24",
|
|
2537
|
+
viewBox: "0 0 24 24",
|
|
2538
|
+
fill: "none",
|
|
2539
|
+
className,
|
|
2540
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", { points: "12 4 20 9 20 15 12 20 4 15 4 9", stroke: "currentColor", strokeWidth: "2" })
|
|
2541
|
+
}
|
|
2542
|
+
);
|
|
2543
|
+
},
|
|
2116
2544
|
"new-window": ({ className }) => {
|
|
2117
2545
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
2118
2546
|
"svg",
|
|
@@ -5226,25 +5654,26 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
5226
5654
|
var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) => {
|
|
5227
5655
|
const SVGIcon = template[name];
|
|
5228
5656
|
const getInputIconSize = (size2) => {
|
|
5229
|
-
switch (size2) {
|
|
5657
|
+
switch (String(size2)) {
|
|
5230
5658
|
case "sm":
|
|
5231
|
-
return "
|
|
5659
|
+
return "w-[18px] h-[18px]";
|
|
5232
5660
|
case "md":
|
|
5233
|
-
return "
|
|
5661
|
+
return "w-[21px] h-[21px] stroke-[1.25px]";
|
|
5234
5662
|
case "lg":
|
|
5235
|
-
return "
|
|
5663
|
+
return "w-[24px] h-[24px] stroke-[1.5px]";
|
|
5236
5664
|
case "xl":
|
|
5237
|
-
return "
|
|
5665
|
+
return "w-[27px] h-[27px] stroke-[1.5px]";
|
|
5666
|
+
case "20":
|
|
5667
|
+
return "w-[20px] h-[20px] stroke-[1.25px]";
|
|
5668
|
+
case "30":
|
|
5669
|
+
return "w-[30px] h-[30px] stroke-[1.5px]";
|
|
5670
|
+
case "40":
|
|
5671
|
+
return "w-[40px] h-[40px] stroke-[2px]";
|
|
5672
|
+
default:
|
|
5673
|
+
return "w-[21px] h-[21px] stroke-[1.25px]";
|
|
5238
5674
|
}
|
|
5239
5675
|
};
|
|
5240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className:
|
|
5241
|
-
SVGIcon,
|
|
5242
|
-
{
|
|
5243
|
-
fill,
|
|
5244
|
-
className: className ? `${getInputIconSize(size)} ${className}` : `${getInputIconSize(size)}`,
|
|
5245
|
-
...props
|
|
5246
|
-
}
|
|
5247
|
-
) });
|
|
5676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: `m-0 flex items-center justify-center p-0 ${className}`, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SVGIcon, { fill, className: getInputIconSize(size), ...props }) });
|
|
5248
5677
|
};
|
|
5249
5678
|
var Icon_default = Icon;
|
|
5250
5679
|
|
|
@@ -5263,328 +5692,139 @@ var formatStringToDate = (date) => {
|
|
|
5263
5692
|
// src/components/button/button.tsx
|
|
5264
5693
|
var import_react2 = require("react");
|
|
5265
5694
|
|
|
5266
|
-
// src/components/
|
|
5267
|
-
var
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5695
|
+
// src/components/button/button.style.ts
|
|
5696
|
+
var buttonBaseStyle = tv({
|
|
5697
|
+
slots: {
|
|
5698
|
+
base: [
|
|
5699
|
+
"relative",
|
|
5700
|
+
"flex",
|
|
5701
|
+
"items-center",
|
|
5702
|
+
"justify-center",
|
|
5703
|
+
"whitespace-nowrap",
|
|
5704
|
+
"transition",
|
|
5705
|
+
"duration-200",
|
|
5706
|
+
"select-none",
|
|
5707
|
+
"overflow-hidden",
|
|
5708
|
+
"box-border",
|
|
5709
|
+
"border",
|
|
5710
|
+
"border-transparent"
|
|
5711
|
+
]
|
|
5712
|
+
},
|
|
5713
|
+
variants: {
|
|
5714
|
+
variant: {
|
|
5715
|
+
solid: [],
|
|
5716
|
+
soft: [],
|
|
5717
|
+
outline: [],
|
|
5718
|
+
ghost: []
|
|
5719
|
+
},
|
|
5720
|
+
color: {
|
|
5721
|
+
primary: [],
|
|
5722
|
+
secondary: [],
|
|
5723
|
+
neutral: [],
|
|
5724
|
+
info: [],
|
|
5725
|
+
success: [],
|
|
5726
|
+
warning: [],
|
|
5727
|
+
danger: []
|
|
5728
|
+
},
|
|
5729
|
+
disabled: {
|
|
5730
|
+
true: {
|
|
5731
|
+
base: ["!bg-neutral-soft", "!border-neutral-soft", "!text-neutral-light", "pointer-events-none"]
|
|
5300
5732
|
}
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
const [ripples, setRipples] = (0, import_react.useState)([]);
|
|
5311
|
-
const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
|
|
5312
|
-
const onPress = (0, import_react.useCallback)((event) => {
|
|
5313
|
-
const trigger = event.currentTarget;
|
|
5314
|
-
const rect = trigger.getBoundingClientRect();
|
|
5315
|
-
const size = Math.max(trigger.clientWidth, trigger.clientHeight);
|
|
5316
|
-
setRipples((prevRipples) => [
|
|
5317
|
-
...prevRipples,
|
|
5318
|
-
{
|
|
5319
|
-
key: getUniqueID(prevRipples.length.toString()),
|
|
5320
|
-
size,
|
|
5321
|
-
x: event.clientX - rect.left - size / 2,
|
|
5322
|
-
y: event.clientY - rect.top - size / 2
|
|
5323
|
-
}
|
|
5324
|
-
]);
|
|
5325
|
-
}, []);
|
|
5326
|
-
const onClear = (0, import_react.useCallback)((key) => {
|
|
5327
|
-
setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
|
|
5328
|
-
}, []);
|
|
5329
|
-
return { ripples, onClear, onPress, ...props };
|
|
5330
|
-
}
|
|
5331
|
-
|
|
5332
|
-
// src/components/button/button.tsx
|
|
5333
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
5334
|
-
var extractTextFromChildren = (children) => {
|
|
5335
|
-
if (typeof children === "string") {
|
|
5336
|
-
return children;
|
|
5337
|
-
}
|
|
5338
|
-
if (typeof children === "number") {
|
|
5339
|
-
return String(children);
|
|
5340
|
-
}
|
|
5341
|
-
if ((0, import_react2.isValidElement)(children)) {
|
|
5342
|
-
const childProps = children.props;
|
|
5343
|
-
return extractTextFromChildren(childProps.children);
|
|
5344
|
-
}
|
|
5345
|
-
if (Array.isArray(children)) {
|
|
5346
|
-
return children.map((child) => extractTextFromChildren(child)).join(" ");
|
|
5347
|
-
}
|
|
5348
|
-
return "";
|
|
5349
|
-
};
|
|
5350
|
-
var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
5351
|
-
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
5352
|
-
const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
|
|
5353
|
-
const slots = (0, import_react2.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
5354
|
-
const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
|
|
5355
|
-
const autoAriaLabel = (0, import_react2.useMemo)(() => {
|
|
5356
|
-
if (originalProps["aria-label"] || originalProps["aria-labelledby"]) {
|
|
5357
|
-
return void 0;
|
|
5358
|
-
}
|
|
5359
|
-
if (originalProps.isLoading) {
|
|
5360
|
-
const baseText = extractTextFromChildren(children);
|
|
5361
|
-
return baseText ? `${baseText} (loading)` : "loading";
|
|
5362
|
-
}
|
|
5363
|
-
const textContent = extractTextFromChildren(children);
|
|
5364
|
-
return textContent || void 0;
|
|
5365
|
-
}, [originalProps["aria-label"], originalProps["aria-labelledby"], originalProps.isLoading, children]);
|
|
5366
|
-
const handlePress = (0, import_react2.useCallback)(
|
|
5367
|
-
(e) => {
|
|
5368
|
-
if (disableRipple || originalProps.disabled) return;
|
|
5369
|
-
onRipplePressHandler(e);
|
|
5370
|
-
},
|
|
5371
|
-
[disableRipple, originalProps.disabled, onRipplePressHandler]
|
|
5372
|
-
);
|
|
5373
|
-
const mouseDownHandler = (0, import_react2.useCallback)(
|
|
5374
|
-
(e) => {
|
|
5375
|
-
var _a;
|
|
5376
|
-
(_a = buttonProps.onMouseDown) == null ? void 0 : _a.call(buttonProps, e);
|
|
5377
|
-
if (disableRipple || originalProps.disabled) return;
|
|
5378
|
-
handlePress(e);
|
|
5379
|
-
},
|
|
5380
|
-
[buttonProps.onMouseDown, disableRipple, originalProps.disabled, handlePress]
|
|
5381
|
-
);
|
|
5382
|
-
const getRippleProps = (0, import_react2.useCallback)(
|
|
5383
|
-
() => ({ ripples, onClear: onClearRipple }),
|
|
5384
|
-
[ripples, onClearRipple]
|
|
5385
|
-
);
|
|
5386
|
-
const getBaseProps = (0, import_react2.useCallback)(
|
|
5387
|
-
() => ({
|
|
5388
|
-
...buttonProps,
|
|
5389
|
-
onMouseDown: mouseDownHandler,
|
|
5390
|
-
ref,
|
|
5391
|
-
disabled: originalProps.disabled || originalProps.isLoading,
|
|
5392
|
-
"data-loading": originalProps.isLoading,
|
|
5393
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
5394
|
-
"aria-label": originalProps["aria-label"] || autoAriaLabel
|
|
5395
|
-
}),
|
|
5396
|
-
[
|
|
5397
|
-
buttonProps,
|
|
5398
|
-
mouseDownHandler,
|
|
5399
|
-
ref,
|
|
5400
|
-
originalProps.disabled,
|
|
5401
|
-
originalProps.isLoading,
|
|
5402
|
-
originalProps["aria-label"],
|
|
5403
|
-
autoAriaLabel,
|
|
5404
|
-
slots,
|
|
5405
|
-
classNames == null ? void 0 : classNames.base
|
|
5406
|
-
]
|
|
5407
|
-
);
|
|
5408
|
-
const getContentProps = (0, import_react2.useCallback)(
|
|
5409
|
-
() => ({
|
|
5410
|
-
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
5411
|
-
size: originalProps.size
|
|
5412
|
-
}),
|
|
5413
|
-
[slots, classNames, originalProps.size]
|
|
5414
|
-
);
|
|
5415
|
-
const renderContent = (content) => {
|
|
5416
|
-
if ((0, import_react2.isValidElement)(content)) {
|
|
5417
|
-
const _content = content;
|
|
5418
|
-
const existingProps = _content.props;
|
|
5419
|
-
const mergedProps = {
|
|
5420
|
-
...getContentProps(),
|
|
5421
|
-
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5422
|
-
};
|
|
5423
|
-
return (0, import_react2.cloneElement)(content, mergedProps);
|
|
5424
|
-
} else {
|
|
5425
|
-
const contentProps = getContentProps();
|
|
5426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...contentProps, children: content });
|
|
5427
|
-
}
|
|
5428
|
-
};
|
|
5429
|
-
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
5430
|
-
startContent && renderContent(startContent),
|
|
5431
|
-
children,
|
|
5432
|
-
endContent && renderContent(endContent),
|
|
5433
|
-
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
5434
|
-
] }) });
|
|
5435
|
-
if (asChild && (0, import_react2.isValidElement)(children)) {
|
|
5436
|
-
const childElement = children;
|
|
5437
|
-
const baseProps = getBaseProps();
|
|
5438
|
-
const mergedProps = {
|
|
5439
|
-
...childElement.props,
|
|
5440
|
-
...baseProps,
|
|
5441
|
-
className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
|
|
5442
|
-
onClick: (e) => {
|
|
5443
|
-
var _a, _b, _c;
|
|
5444
|
-
(_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
|
|
5445
|
-
(_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
|
|
5446
|
-
},
|
|
5447
|
-
onMouseDown: (e) => {
|
|
5448
|
-
var _a, _b, _c;
|
|
5449
|
-
(_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
|
|
5450
|
-
(_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
|
|
5451
|
-
},
|
|
5452
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
5453
|
-
startContent && renderContent(startContent),
|
|
5454
|
-
childElement.props.children,
|
|
5455
|
-
endContent && renderContent(endContent),
|
|
5456
|
-
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
5457
|
-
] }) })
|
|
5458
|
-
};
|
|
5459
|
-
return (0, import_react2.cloneElement)(childElement, mergedProps);
|
|
5460
|
-
}
|
|
5461
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { ...getBaseProps(), children: buttonContent });
|
|
5462
|
-
});
|
|
5463
|
-
Button.displayName = "Button";
|
|
5464
|
-
var button_default = Button;
|
|
5465
|
-
var buttonStyle = tv({
|
|
5466
|
-
slots: {
|
|
5467
|
-
base: "relative flex items-center justify-center whitespace-nowrap transition duration-200 select-none overflow-hidden box-border border border-transparent",
|
|
5468
|
-
content: ""
|
|
5469
|
-
},
|
|
5470
|
-
variants: {
|
|
5471
|
-
variant: {
|
|
5472
|
-
solid: "",
|
|
5473
|
-
soft: "",
|
|
5474
|
-
outline: "",
|
|
5475
|
-
ghost: ""
|
|
5476
|
-
},
|
|
5477
|
-
color: {
|
|
5478
|
-
primary: "",
|
|
5479
|
-
secondary: "",
|
|
5480
|
-
neutral: "",
|
|
5481
|
-
info: "",
|
|
5482
|
-
success: "",
|
|
5483
|
-
warning: "",
|
|
5484
|
-
danger: ""
|
|
5485
|
-
},
|
|
5486
|
-
size: {
|
|
5487
|
-
sm: {
|
|
5488
|
-
base: "h-[24px] px-[8px] py-[3px] text-sm font-[700] rounded-sm gap-sm"
|
|
5489
|
-
},
|
|
5490
|
-
md: {
|
|
5491
|
-
base: "h-[32px] px-[12px] py-[5.5px] text-md font-[700] rounded-md gap-md"
|
|
5492
|
-
},
|
|
5493
|
-
lg: {
|
|
5494
|
-
base: "h-[40px] px-[16px] py-[8px] text-lg font-[700] rounded-lg gap-lg"
|
|
5495
|
-
},
|
|
5496
|
-
xl: {
|
|
5497
|
-
base: "h-[50px] px-[20px] py-[11.5px] text-xl font-[700] rounded-xl gap-xl"
|
|
5498
|
-
}
|
|
5499
|
-
},
|
|
5500
|
-
radius: {
|
|
5501
|
-
default: {
|
|
5502
|
-
base: ""
|
|
5503
|
-
},
|
|
5504
|
-
full: {
|
|
5505
|
-
base: "rounded-full"
|
|
5506
|
-
},
|
|
5507
|
-
none: {
|
|
5508
|
-
base: "rounded-none"
|
|
5509
|
-
}
|
|
5510
|
-
},
|
|
5511
|
-
full: {
|
|
5512
|
-
true: {
|
|
5513
|
-
base: "w-full"
|
|
5514
|
-
}
|
|
5515
|
-
},
|
|
5516
|
-
isLoading: {
|
|
5517
|
-
true: {}
|
|
5518
|
-
},
|
|
5519
|
-
disabled: {
|
|
5520
|
-
true: {
|
|
5521
|
-
base: "!bg-neutral-soft !border-neutral-soft !text-neutral-light pointer-events-none"
|
|
5522
|
-
}
|
|
5523
|
-
},
|
|
5524
|
-
isInGroup: {
|
|
5525
|
-
true: {
|
|
5526
|
-
base: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none [&:not(:first-child)]:border-l-0"
|
|
5733
|
+
},
|
|
5734
|
+
isInGroup: {
|
|
5735
|
+
true: {
|
|
5736
|
+
base: [
|
|
5737
|
+
"[&:not(:first-child):not(:last-child)]:rounded-none",
|
|
5738
|
+
"first:rounded-r-none",
|
|
5739
|
+
"last:rounded-l-none",
|
|
5740
|
+
"[&:not(:first-child)]:border-l-0"
|
|
5741
|
+
]
|
|
5527
5742
|
}
|
|
5528
5743
|
}
|
|
5529
5744
|
},
|
|
5530
|
-
defaultVariants: {
|
|
5531
|
-
size: "md",
|
|
5532
|
-
variant: "solid",
|
|
5533
|
-
color: "primary",
|
|
5534
|
-
full: false,
|
|
5535
|
-
disabled: false,
|
|
5536
|
-
isLoading: false,
|
|
5537
|
-
isInGroup: false
|
|
5538
|
-
},
|
|
5539
5745
|
compoundVariants: [
|
|
5540
|
-
// solid & color
|
|
5541
5746
|
{
|
|
5542
5747
|
variant: "solid",
|
|
5543
5748
|
color: "primary",
|
|
5544
5749
|
class: {
|
|
5545
|
-
base: [
|
|
5750
|
+
base: [
|
|
5751
|
+
"text-white",
|
|
5752
|
+
"bg-primary-main",
|
|
5753
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-primary-main)]",
|
|
5754
|
+
"active:bg-primary-dark"
|
|
5755
|
+
]
|
|
5546
5756
|
}
|
|
5547
5757
|
},
|
|
5548
5758
|
{
|
|
5549
5759
|
variant: "solid",
|
|
5550
5760
|
color: "secondary",
|
|
5551
5761
|
class: {
|
|
5552
|
-
base: [
|
|
5762
|
+
base: [
|
|
5763
|
+
"text-white",
|
|
5764
|
+
"bg-secondary-main",
|
|
5765
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-secondary-main)]",
|
|
5766
|
+
"active:bg-secondary-dark"
|
|
5767
|
+
]
|
|
5553
5768
|
}
|
|
5554
5769
|
},
|
|
5555
5770
|
{
|
|
5556
5771
|
variant: "solid",
|
|
5557
5772
|
color: "neutral",
|
|
5558
5773
|
class: {
|
|
5559
|
-
base: [
|
|
5774
|
+
base: [
|
|
5775
|
+
"text-white",
|
|
5776
|
+
"bg-neutral-main",
|
|
5777
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-neutral-main)]",
|
|
5778
|
+
"active:bg-neutral-dark"
|
|
5779
|
+
]
|
|
5560
5780
|
}
|
|
5561
5781
|
},
|
|
5562
5782
|
{
|
|
5563
5783
|
variant: "solid",
|
|
5564
5784
|
color: "info",
|
|
5565
5785
|
class: {
|
|
5566
|
-
base: [
|
|
5786
|
+
base: [
|
|
5787
|
+
"text-white",
|
|
5788
|
+
"bg-info-main",
|
|
5789
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-info-main)]",
|
|
5790
|
+
"active:bg-info-dark"
|
|
5791
|
+
]
|
|
5567
5792
|
}
|
|
5568
5793
|
},
|
|
5569
5794
|
{
|
|
5570
5795
|
variant: "solid",
|
|
5571
5796
|
color: "success",
|
|
5572
5797
|
class: {
|
|
5573
|
-
base: [
|
|
5798
|
+
base: [
|
|
5799
|
+
"text-white",
|
|
5800
|
+
"bg-success-main",
|
|
5801
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-success-main)]",
|
|
5802
|
+
"active:bg-success-dark"
|
|
5803
|
+
]
|
|
5574
5804
|
}
|
|
5575
5805
|
},
|
|
5576
5806
|
{
|
|
5577
5807
|
variant: "solid",
|
|
5578
5808
|
color: "warning",
|
|
5579
5809
|
class: {
|
|
5580
|
-
base: [
|
|
5810
|
+
base: [
|
|
5811
|
+
"text-white",
|
|
5812
|
+
"bg-warning-main",
|
|
5813
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-warning-main)]",
|
|
5814
|
+
"active:bg-warning-dark"
|
|
5815
|
+
]
|
|
5581
5816
|
}
|
|
5582
5817
|
},
|
|
5583
5818
|
{
|
|
5584
5819
|
variant: "solid",
|
|
5585
5820
|
color: "danger",
|
|
5586
5821
|
class: {
|
|
5587
|
-
base: [
|
|
5822
|
+
base: [
|
|
5823
|
+
"text-white",
|
|
5824
|
+
"bg-danger-main",
|
|
5825
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-danger-main)]",
|
|
5826
|
+
"active:bg-danger-dark"
|
|
5827
|
+
]
|
|
5588
5828
|
}
|
|
5589
5829
|
},
|
|
5590
5830
|
// soft & color
|
|
@@ -5592,49 +5832,85 @@ var buttonStyle = tv({
|
|
|
5592
5832
|
variant: "soft",
|
|
5593
5833
|
color: "primary",
|
|
5594
5834
|
class: {
|
|
5595
|
-
base: [
|
|
5835
|
+
base: [
|
|
5836
|
+
"text-primary-main",
|
|
5837
|
+
"bg-primary-soft",
|
|
5838
|
+
"border-primary-soft",
|
|
5839
|
+
"hover:border-primary-light",
|
|
5840
|
+
"active:bg-primary-light"
|
|
5841
|
+
]
|
|
5596
5842
|
}
|
|
5597
5843
|
},
|
|
5598
5844
|
{
|
|
5599
5845
|
variant: "soft",
|
|
5600
5846
|
color: "secondary",
|
|
5601
5847
|
class: {
|
|
5602
|
-
base: [
|
|
5848
|
+
base: [
|
|
5849
|
+
"text-secondary-main",
|
|
5850
|
+
"bg-secondary-soft",
|
|
5851
|
+
"border-secondary-soft",
|
|
5852
|
+
"hover:border-secondary-light",
|
|
5853
|
+
"active:bg-secondary-light"
|
|
5854
|
+
]
|
|
5603
5855
|
}
|
|
5604
5856
|
},
|
|
5605
5857
|
{
|
|
5606
5858
|
variant: "soft",
|
|
5607
5859
|
color: "neutral",
|
|
5608
5860
|
class: {
|
|
5609
|
-
base: [
|
|
5861
|
+
base: [
|
|
5862
|
+
"text-neutral-main",
|
|
5863
|
+
"bg-neutral-soft",
|
|
5864
|
+
"border-neutral-soft",
|
|
5865
|
+
"hover:border-neutral-light",
|
|
5866
|
+
"active:bg-neutral-light"
|
|
5867
|
+
]
|
|
5610
5868
|
}
|
|
5611
5869
|
},
|
|
5612
5870
|
{
|
|
5613
5871
|
variant: "soft",
|
|
5614
5872
|
color: "info",
|
|
5615
5873
|
class: {
|
|
5616
|
-
base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light"]
|
|
5874
|
+
base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light", "active:bg-info-light"]
|
|
5617
5875
|
}
|
|
5618
5876
|
},
|
|
5619
5877
|
{
|
|
5620
5878
|
variant: "soft",
|
|
5621
5879
|
color: "success",
|
|
5622
5880
|
class: {
|
|
5623
|
-
base: [
|
|
5881
|
+
base: [
|
|
5882
|
+
"text-success-main",
|
|
5883
|
+
"bg-success-soft",
|
|
5884
|
+
"border-success-soft",
|
|
5885
|
+
"hover:border-success-light",
|
|
5886
|
+
"active:bg-success-light"
|
|
5887
|
+
]
|
|
5624
5888
|
}
|
|
5625
5889
|
},
|
|
5626
5890
|
{
|
|
5627
5891
|
variant: "soft",
|
|
5628
5892
|
color: "warning",
|
|
5629
5893
|
class: {
|
|
5630
|
-
base: [
|
|
5894
|
+
base: [
|
|
5895
|
+
"text-warning-main",
|
|
5896
|
+
"bg-warning-soft",
|
|
5897
|
+
"border-warning-soft",
|
|
5898
|
+
"hover:border-warning-light",
|
|
5899
|
+
"active:bg-warning-light"
|
|
5900
|
+
]
|
|
5631
5901
|
}
|
|
5632
5902
|
},
|
|
5633
5903
|
{
|
|
5634
5904
|
variant: "soft",
|
|
5635
5905
|
color: "danger",
|
|
5636
5906
|
class: {
|
|
5637
|
-
base: [
|
|
5907
|
+
base: [
|
|
5908
|
+
"text-danger-main",
|
|
5909
|
+
"bg-danger-soft",
|
|
5910
|
+
"border-danger-soft",
|
|
5911
|
+
"hover:border-danger-light",
|
|
5912
|
+
"active:bg-danger-light"
|
|
5913
|
+
]
|
|
5638
5914
|
}
|
|
5639
5915
|
},
|
|
5640
5916
|
// outline & color
|
|
@@ -5642,49 +5918,91 @@ var buttonStyle = tv({
|
|
|
5642
5918
|
variant: "outline",
|
|
5643
5919
|
color: "primary",
|
|
5644
5920
|
class: {
|
|
5645
|
-
base: [
|
|
5921
|
+
base: [
|
|
5922
|
+
"bg-body-background",
|
|
5923
|
+
"border-primary-main",
|
|
5924
|
+
"text-primary-main",
|
|
5925
|
+
"hover:bg-primary-soft",
|
|
5926
|
+
"active:bg-primary-light"
|
|
5927
|
+
]
|
|
5646
5928
|
}
|
|
5647
5929
|
},
|
|
5648
5930
|
{
|
|
5649
5931
|
variant: "outline",
|
|
5650
5932
|
color: "secondary",
|
|
5651
5933
|
class: {
|
|
5652
|
-
base: [
|
|
5934
|
+
base: [
|
|
5935
|
+
"bg-body-background",
|
|
5936
|
+
"border-secondary-main",
|
|
5937
|
+
"text-secondary-main",
|
|
5938
|
+
"hover:bg-secondary-soft",
|
|
5939
|
+
"active:bg-secondary-light"
|
|
5940
|
+
]
|
|
5653
5941
|
}
|
|
5654
5942
|
},
|
|
5655
5943
|
{
|
|
5656
5944
|
variant: "outline",
|
|
5657
5945
|
color: "neutral",
|
|
5658
5946
|
class: {
|
|
5659
|
-
base: [
|
|
5947
|
+
base: [
|
|
5948
|
+
"bg-body-background",
|
|
5949
|
+
"border-neutral-main",
|
|
5950
|
+
"text-neutral-main",
|
|
5951
|
+
"hover:bg-neutral-soft",
|
|
5952
|
+
"active:bg-neutral-light"
|
|
5953
|
+
]
|
|
5660
5954
|
}
|
|
5661
5955
|
},
|
|
5662
5956
|
{
|
|
5663
5957
|
variant: "outline",
|
|
5664
5958
|
color: "info",
|
|
5665
5959
|
class: {
|
|
5666
|
-
base: [
|
|
5960
|
+
base: [
|
|
5961
|
+
"bg-body-background",
|
|
5962
|
+
"border-info-main",
|
|
5963
|
+
"text-info-main",
|
|
5964
|
+
"hover:bg-info-soft",
|
|
5965
|
+
"active:bg-info-light"
|
|
5966
|
+
]
|
|
5667
5967
|
}
|
|
5668
5968
|
},
|
|
5669
5969
|
{
|
|
5670
5970
|
variant: "outline",
|
|
5671
5971
|
color: "success",
|
|
5672
5972
|
class: {
|
|
5673
|
-
base: [
|
|
5973
|
+
base: [
|
|
5974
|
+
"bg-body-background",
|
|
5975
|
+
"border-success-main",
|
|
5976
|
+
"text-success-main",
|
|
5977
|
+
"hover:bg-success-soft",
|
|
5978
|
+
"active:bg-success-light"
|
|
5979
|
+
]
|
|
5674
5980
|
}
|
|
5675
5981
|
},
|
|
5676
5982
|
{
|
|
5677
5983
|
variant: "outline",
|
|
5678
5984
|
color: "warning",
|
|
5679
5985
|
class: {
|
|
5680
|
-
base: [
|
|
5986
|
+
base: [
|
|
5987
|
+
"bg-body-background",
|
|
5988
|
+
"border-warning-main",
|
|
5989
|
+
"text-warning-main",
|
|
5990
|
+
"hover:bg-warning-soft",
|
|
5991
|
+
"active:bg-warning-light"
|
|
5992
|
+
]
|
|
5681
5993
|
}
|
|
5682
5994
|
},
|
|
5683
5995
|
{
|
|
5684
5996
|
variant: "outline",
|
|
5685
5997
|
color: "danger",
|
|
5686
5998
|
class: {
|
|
5687
|
-
base: [
|
|
5999
|
+
base: [
|
|
6000
|
+
"bg-body-background",
|
|
6001
|
+
"border-danger-main",
|
|
6002
|
+
"text-danger-main",
|
|
6003
|
+
"hover:bg-danger-soft",
|
|
6004
|
+
"active:bg-danger-light"
|
|
6005
|
+
]
|
|
5688
6006
|
}
|
|
5689
6007
|
},
|
|
5690
6008
|
// ghost & color
|
|
@@ -5692,49 +6010,91 @@ var buttonStyle = tv({
|
|
|
5692
6010
|
variant: "ghost",
|
|
5693
6011
|
color: "primary",
|
|
5694
6012
|
class: {
|
|
5695
|
-
base: [
|
|
6013
|
+
base: [
|
|
6014
|
+
"text-primary-main",
|
|
6015
|
+
"border-transparent",
|
|
6016
|
+
"hover:bg-primary-soft",
|
|
6017
|
+
"active:bg-primary-main",
|
|
6018
|
+
"active:text-common-white"
|
|
6019
|
+
]
|
|
5696
6020
|
}
|
|
5697
6021
|
},
|
|
5698
6022
|
{
|
|
5699
6023
|
variant: "ghost",
|
|
5700
6024
|
color: "secondary",
|
|
5701
6025
|
class: {
|
|
5702
|
-
base: [
|
|
6026
|
+
base: [
|
|
6027
|
+
"text-secondary-main",
|
|
6028
|
+
"border-transparent",
|
|
6029
|
+
"hover:bg-secondary-soft",
|
|
6030
|
+
"active:bg-secondary-main",
|
|
6031
|
+
"active:text-common-white"
|
|
6032
|
+
]
|
|
5703
6033
|
}
|
|
5704
6034
|
},
|
|
5705
6035
|
{
|
|
5706
6036
|
variant: "ghost",
|
|
5707
6037
|
color: "neutral",
|
|
5708
6038
|
class: {
|
|
5709
|
-
base: [
|
|
6039
|
+
base: [
|
|
6040
|
+
"text-neutral-main",
|
|
6041
|
+
"border-transparent",
|
|
6042
|
+
"hover:bg-neutral-soft",
|
|
6043
|
+
"active:bg-neutral-main",
|
|
6044
|
+
"active:text-common-white"
|
|
6045
|
+
]
|
|
5710
6046
|
}
|
|
5711
6047
|
},
|
|
5712
6048
|
{
|
|
5713
6049
|
variant: "ghost",
|
|
5714
6050
|
color: "info",
|
|
5715
6051
|
class: {
|
|
5716
|
-
base: [
|
|
6052
|
+
base: [
|
|
6053
|
+
"text-info-main",
|
|
6054
|
+
"border-transparent",
|
|
6055
|
+
"hover:bg-info-soft",
|
|
6056
|
+
"active:bg-info-main",
|
|
6057
|
+
"active:text-common-white"
|
|
6058
|
+
]
|
|
5717
6059
|
}
|
|
5718
6060
|
},
|
|
5719
6061
|
{
|
|
5720
6062
|
variant: "ghost",
|
|
5721
6063
|
color: "success",
|
|
5722
6064
|
class: {
|
|
5723
|
-
base: [
|
|
6065
|
+
base: [
|
|
6066
|
+
"text-success-main",
|
|
6067
|
+
"border-transparent",
|
|
6068
|
+
"hover:bg-success-soft",
|
|
6069
|
+
"active:bg-success-main",
|
|
6070
|
+
"active:text-common-white"
|
|
6071
|
+
]
|
|
5724
6072
|
}
|
|
5725
6073
|
},
|
|
5726
6074
|
{
|
|
5727
6075
|
variant: "ghost",
|
|
5728
6076
|
color: "warning",
|
|
5729
6077
|
class: {
|
|
5730
|
-
base: [
|
|
6078
|
+
base: [
|
|
6079
|
+
"text-warning-main",
|
|
6080
|
+
"border-transparent",
|
|
6081
|
+
"hover:bg-warning-soft",
|
|
6082
|
+
"active:bg-warning-main",
|
|
6083
|
+
"active:text-common-white"
|
|
6084
|
+
]
|
|
5731
6085
|
}
|
|
5732
6086
|
},
|
|
5733
6087
|
{
|
|
5734
6088
|
variant: "ghost",
|
|
5735
6089
|
color: "danger",
|
|
5736
6090
|
class: {
|
|
5737
|
-
base: [
|
|
6091
|
+
base: [
|
|
6092
|
+
"text-danger-main",
|
|
6093
|
+
"border-transparent",
|
|
6094
|
+
"hover:bg-danger-soft",
|
|
6095
|
+
"active:bg-danger-main",
|
|
6096
|
+
"active:text-common-white"
|
|
6097
|
+
]
|
|
5738
6098
|
}
|
|
5739
6099
|
},
|
|
5740
6100
|
// variant && size
|
|
@@ -5742,28 +6102,28 @@ var buttonStyle = tv({
|
|
|
5742
6102
|
variant: ["soft", "outline"],
|
|
5743
6103
|
size: "sm",
|
|
5744
6104
|
class: {
|
|
5745
|
-
base: "border-
|
|
6105
|
+
base: ["border-sm"]
|
|
5746
6106
|
}
|
|
5747
6107
|
},
|
|
5748
6108
|
{
|
|
5749
6109
|
variant: ["soft", "outline"],
|
|
5750
6110
|
size: "md",
|
|
5751
6111
|
class: {
|
|
5752
|
-
base: "border-
|
|
6112
|
+
base: ["border-md"]
|
|
5753
6113
|
}
|
|
5754
6114
|
},
|
|
5755
6115
|
{
|
|
5756
6116
|
variant: ["soft", "outline"],
|
|
5757
6117
|
size: "lg",
|
|
5758
6118
|
class: {
|
|
5759
|
-
base: "border-
|
|
6119
|
+
base: ["border-lg"]
|
|
5760
6120
|
}
|
|
5761
6121
|
},
|
|
5762
6122
|
{
|
|
5763
6123
|
variant: ["soft", "outline"],
|
|
5764
6124
|
size: "xl",
|
|
5765
6125
|
class: {
|
|
5766
|
-
base: "border-
|
|
6126
|
+
base: ["border-xl"]
|
|
5767
6127
|
}
|
|
5768
6128
|
},
|
|
5769
6129
|
// variant && disabled
|
|
@@ -5771,31 +6131,282 @@ var buttonStyle = tv({
|
|
|
5771
6131
|
variant: ["soft", "ghost"],
|
|
5772
6132
|
disabled: true,
|
|
5773
6133
|
class: {
|
|
5774
|
-
base: "!border-neutral-soft"
|
|
6134
|
+
base: ["!border-neutral-soft"]
|
|
5775
6135
|
}
|
|
5776
6136
|
},
|
|
5777
6137
|
{
|
|
5778
6138
|
variant: ["outline"],
|
|
5779
6139
|
disabled: true,
|
|
5780
6140
|
class: {
|
|
5781
|
-
base: "!border-neutral-light"
|
|
6141
|
+
base: ["!border-neutral-light"]
|
|
5782
6142
|
}
|
|
5783
6143
|
}
|
|
5784
6144
|
]
|
|
5785
6145
|
});
|
|
5786
6146
|
|
|
5787
|
-
// src/components/
|
|
5788
|
-
var
|
|
5789
|
-
var
|
|
5790
|
-
var
|
|
5791
|
-
const [
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
6147
|
+
// src/components/ripple/ripple.tsx
|
|
6148
|
+
var import_framer_motion = require("framer-motion");
|
|
6149
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
6150
|
+
var Ripple = (props) => {
|
|
6151
|
+
const { ripples = [], motionProps, color = "currentColor", style, onClear } = props;
|
|
6152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: ripples.map((ripple) => {
|
|
6153
|
+
const duration = (0, import_framer_motion.clamp)(ripple.size > 100 ? 0.75 : 0.5, 0.01 * ripple.size, 0.2);
|
|
6154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.LazyMotion, { features: import_framer_motion.domAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.AnimatePresence, { mode: "popLayout", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
6155
|
+
import_framer_motion.m.span,
|
|
6156
|
+
{
|
|
6157
|
+
animate: { transform: "scale(2)", opacity: 0 },
|
|
6158
|
+
className: "deepnoidui-ripple",
|
|
6159
|
+
exit: { opacity: 0 },
|
|
6160
|
+
initial: { transform: "scale(0)", opacity: 0.35 },
|
|
6161
|
+
style: {
|
|
6162
|
+
position: "absolute",
|
|
6163
|
+
backgroundColor: color,
|
|
6164
|
+
borderRadius: "100%",
|
|
6165
|
+
transformOrigin: "center",
|
|
6166
|
+
pointerEvents: "none",
|
|
6167
|
+
overflow: "hidden",
|
|
6168
|
+
inset: 0,
|
|
6169
|
+
zIndex: 0,
|
|
6170
|
+
top: ripple.y,
|
|
6171
|
+
left: ripple.x,
|
|
6172
|
+
width: `${ripple.size}px`,
|
|
6173
|
+
height: `${ripple.size}px`,
|
|
6174
|
+
...style
|
|
6175
|
+
},
|
|
6176
|
+
transition: { duration },
|
|
6177
|
+
onAnimationComplete: () => {
|
|
6178
|
+
onClear(ripple.key);
|
|
6179
|
+
},
|
|
6180
|
+
...motionProps
|
|
6181
|
+
}
|
|
6182
|
+
) }) }, ripple.key);
|
|
6183
|
+
}) });
|
|
6184
|
+
};
|
|
6185
|
+
Ripple.displayName = "HeroUI.Ripple";
|
|
6186
|
+
var ripple_default = Ripple;
|
|
6187
|
+
|
|
6188
|
+
// src/components/ripple/useRipple.ts
|
|
6189
|
+
var import_react = require("react");
|
|
6190
|
+
function useRipple(props = {}) {
|
|
6191
|
+
const [ripples, setRipples] = (0, import_react.useState)([]);
|
|
6192
|
+
const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
|
|
6193
|
+
const onPress = (0, import_react.useCallback)((event) => {
|
|
6194
|
+
const trigger = event.currentTarget;
|
|
6195
|
+
const rect = trigger.getBoundingClientRect();
|
|
6196
|
+
const size = Math.max(trigger.clientWidth, trigger.clientHeight);
|
|
6197
|
+
setRipples((prevRipples) => [
|
|
6198
|
+
...prevRipples,
|
|
6199
|
+
{
|
|
6200
|
+
key: getUniqueID(prevRipples.length.toString()),
|
|
6201
|
+
size,
|
|
6202
|
+
x: event.clientX - rect.left - size / 2,
|
|
6203
|
+
y: event.clientY - rect.top - size / 2
|
|
6204
|
+
}
|
|
6205
|
+
]);
|
|
6206
|
+
}, []);
|
|
6207
|
+
const onClear = (0, import_react.useCallback)((key) => {
|
|
6208
|
+
setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
|
|
6209
|
+
}, []);
|
|
6210
|
+
return { ripples, onClear, onPress, ...props };
|
|
6211
|
+
}
|
|
6212
|
+
|
|
6213
|
+
// src/components/button/button.tsx
|
|
6214
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
6215
|
+
var extractTextFromChildren = (children) => {
|
|
6216
|
+
if (typeof children === "string") {
|
|
6217
|
+
return children;
|
|
6218
|
+
}
|
|
6219
|
+
if (typeof children === "number") {
|
|
6220
|
+
return String(children);
|
|
6221
|
+
}
|
|
6222
|
+
if ((0, import_react2.isValidElement)(children)) {
|
|
6223
|
+
const childProps = children.props;
|
|
6224
|
+
return extractTextFromChildren(childProps.children);
|
|
6225
|
+
}
|
|
6226
|
+
if (Array.isArray(children)) {
|
|
6227
|
+
return children.map((child) => extractTextFromChildren(child)).join(" ");
|
|
6228
|
+
}
|
|
6229
|
+
return "";
|
|
6230
|
+
};
|
|
6231
|
+
var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
6232
|
+
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
6233
|
+
const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
|
|
6234
|
+
const slots = (0, import_react2.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
6235
|
+
const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
|
|
6236
|
+
const autoAriaLabel = (0, import_react2.useMemo)(() => {
|
|
6237
|
+
if (originalProps["aria-label"] || originalProps["aria-labelledby"]) {
|
|
6238
|
+
return void 0;
|
|
6239
|
+
}
|
|
6240
|
+
if (originalProps.isLoading) {
|
|
6241
|
+
const baseText = extractTextFromChildren(children);
|
|
6242
|
+
return baseText ? `${baseText} (loading)` : "loading";
|
|
6243
|
+
}
|
|
6244
|
+
const textContent = extractTextFromChildren(children);
|
|
6245
|
+
return textContent || void 0;
|
|
6246
|
+
}, [originalProps["aria-label"], originalProps["aria-labelledby"], originalProps.isLoading, children]);
|
|
6247
|
+
const handlePress = (0, import_react2.useCallback)(
|
|
6248
|
+
(e) => {
|
|
6249
|
+
if (disableRipple || originalProps.disabled) return;
|
|
6250
|
+
onRipplePressHandler(e);
|
|
6251
|
+
},
|
|
6252
|
+
[disableRipple, originalProps.disabled, onRipplePressHandler]
|
|
6253
|
+
);
|
|
6254
|
+
const mouseDownHandler = (0, import_react2.useCallback)(
|
|
6255
|
+
(e) => {
|
|
6256
|
+
var _a;
|
|
6257
|
+
(_a = buttonProps.onMouseDown) == null ? void 0 : _a.call(buttonProps, e);
|
|
6258
|
+
if (disableRipple || originalProps.disabled) return;
|
|
6259
|
+
handlePress(e);
|
|
6260
|
+
},
|
|
6261
|
+
[buttonProps.onMouseDown, disableRipple, originalProps.disabled, handlePress]
|
|
6262
|
+
);
|
|
6263
|
+
const getRippleProps = (0, import_react2.useCallback)(
|
|
6264
|
+
() => ({ ripples, onClear: onClearRipple }),
|
|
6265
|
+
[ripples, onClearRipple]
|
|
6266
|
+
);
|
|
6267
|
+
const getBaseProps = (0, import_react2.useCallback)(
|
|
6268
|
+
() => ({
|
|
6269
|
+
...buttonProps,
|
|
6270
|
+
onMouseDown: mouseDownHandler,
|
|
6271
|
+
ref,
|
|
6272
|
+
disabled: originalProps.disabled || originalProps.isLoading,
|
|
6273
|
+
"data-loading": originalProps.isLoading,
|
|
6274
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
6275
|
+
"aria-label": originalProps["aria-label"] || autoAriaLabel
|
|
6276
|
+
}),
|
|
6277
|
+
[
|
|
6278
|
+
buttonProps,
|
|
6279
|
+
mouseDownHandler,
|
|
6280
|
+
ref,
|
|
6281
|
+
originalProps.disabled,
|
|
6282
|
+
originalProps.isLoading,
|
|
6283
|
+
originalProps["aria-label"],
|
|
6284
|
+
autoAriaLabel,
|
|
6285
|
+
slots,
|
|
6286
|
+
classNames == null ? void 0 : classNames.base
|
|
6287
|
+
]
|
|
6288
|
+
);
|
|
6289
|
+
const getContentProps = (0, import_react2.useCallback)(
|
|
6290
|
+
() => ({
|
|
6291
|
+
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
6292
|
+
size: originalProps.size
|
|
6293
|
+
}),
|
|
6294
|
+
[slots, classNames, originalProps.size]
|
|
6295
|
+
);
|
|
6296
|
+
const renderContent = (content) => {
|
|
6297
|
+
if ((0, import_react2.isValidElement)(content)) {
|
|
6298
|
+
const _content = content;
|
|
6299
|
+
const existingProps = _content.props;
|
|
6300
|
+
const mergedProps = {
|
|
6301
|
+
...getContentProps(),
|
|
6302
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
6303
|
+
};
|
|
6304
|
+
return (0, import_react2.cloneElement)(content, mergedProps);
|
|
6305
|
+
} else {
|
|
6306
|
+
const contentProps = getContentProps();
|
|
6307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...contentProps, children: content });
|
|
6308
|
+
}
|
|
6309
|
+
};
|
|
6310
|
+
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
6311
|
+
startContent && renderContent(startContent),
|
|
6312
|
+
children,
|
|
6313
|
+
endContent && renderContent(endContent),
|
|
6314
|
+
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
6315
|
+
] }) });
|
|
6316
|
+
if (asChild && (0, import_react2.isValidElement)(children)) {
|
|
6317
|
+
const childElement = children;
|
|
6318
|
+
const baseProps = getBaseProps();
|
|
6319
|
+
const mergedProps = {
|
|
6320
|
+
...childElement.props,
|
|
6321
|
+
...baseProps,
|
|
6322
|
+
className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
|
|
6323
|
+
onClick: (e) => {
|
|
6324
|
+
var _a, _b, _c;
|
|
6325
|
+
(_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
|
|
6326
|
+
(_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
|
|
6327
|
+
},
|
|
6328
|
+
onMouseDown: (e) => {
|
|
6329
|
+
var _a, _b, _c;
|
|
6330
|
+
(_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
|
|
6331
|
+
(_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
|
|
6332
|
+
},
|
|
6333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
6334
|
+
startContent && renderContent(startContent),
|
|
6335
|
+
childElement.props.children,
|
|
6336
|
+
endContent && renderContent(endContent),
|
|
6337
|
+
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
6338
|
+
] }) })
|
|
6339
|
+
};
|
|
6340
|
+
return (0, import_react2.cloneElement)(childElement, mergedProps);
|
|
6341
|
+
}
|
|
6342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { ...getBaseProps(), children: buttonContent });
|
|
6343
|
+
});
|
|
6344
|
+
Button.displayName = "Button";
|
|
6345
|
+
var button_default = Button;
|
|
6346
|
+
var buttonStyle = tv({
|
|
6347
|
+
extend: buttonBaseStyle,
|
|
6348
|
+
slots: {
|
|
6349
|
+
base: ["w-fit"],
|
|
6350
|
+
content: []
|
|
6351
|
+
},
|
|
6352
|
+
variants: {
|
|
6353
|
+
size: {
|
|
6354
|
+
sm: {
|
|
6355
|
+
base: ["h-[24px]", "px-[8px]", "py-[3px]", "text-sm", "font-bold", "rounded-sm", "gap-sm"]
|
|
6356
|
+
},
|
|
6357
|
+
md: {
|
|
6358
|
+
base: ["h-[32px]", "px-[12px]", "py-[5.5px]", "text-md", "font-bold", "rounded-md", "gap-md"]
|
|
6359
|
+
},
|
|
6360
|
+
lg: {
|
|
6361
|
+
base: ["h-[40px]", "px-[16px]", "py-[8px]", "text-lg", "font-bold", "rounded-lg", "gap-lg"]
|
|
6362
|
+
},
|
|
6363
|
+
xl: {
|
|
6364
|
+
base: ["h-[50px]", "px-[20px]", "py-[11.5px]", "text-xl", "font-bold", "rounded-xl", "gap-xl"]
|
|
6365
|
+
}
|
|
6366
|
+
},
|
|
6367
|
+
radius: {
|
|
6368
|
+
default: {
|
|
6369
|
+
base: []
|
|
6370
|
+
},
|
|
6371
|
+
full: {
|
|
6372
|
+
base: ["rounded-full"]
|
|
6373
|
+
},
|
|
6374
|
+
none: {
|
|
6375
|
+
base: ["rounded-none"]
|
|
6376
|
+
}
|
|
6377
|
+
},
|
|
6378
|
+
full: {
|
|
6379
|
+
true: {
|
|
6380
|
+
base: ["w-full"]
|
|
6381
|
+
}
|
|
6382
|
+
},
|
|
6383
|
+
isLoading: {
|
|
6384
|
+
true: {}
|
|
6385
|
+
}
|
|
6386
|
+
},
|
|
6387
|
+
defaultVariants: {
|
|
6388
|
+
size: "md",
|
|
6389
|
+
variant: "solid",
|
|
6390
|
+
color: "primary",
|
|
6391
|
+
full: false,
|
|
6392
|
+
disabled: false,
|
|
6393
|
+
isLoading: false,
|
|
6394
|
+
isInGroup: false
|
|
6395
|
+
}
|
|
6396
|
+
});
|
|
6397
|
+
|
|
6398
|
+
// src/components/button/icon-button.tsx
|
|
6399
|
+
var import_react3 = require("react");
|
|
6400
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
6401
|
+
var IconButton = (0, import_react3.forwardRef)((props, ref) => {
|
|
6402
|
+
const [localProps, variantProps] = mapPropsVariants(props, iconButtonStyle.variantKeys);
|
|
6403
|
+
const { classNames, name, disableRipple, disabled, isLoading, size, isInGroup, onMouseDown, ...buttonProps } = {
|
|
6404
|
+
...localProps,
|
|
6405
|
+
...variantProps
|
|
6406
|
+
};
|
|
6407
|
+
const slots = (0, import_react3.useMemo)(() => iconButtonStyle({ ...variantProps }), [variantProps]);
|
|
6408
|
+
const { onPress, onClear, ripples } = useRipple();
|
|
6409
|
+
const handleRipple = (0, import_react3.useCallback)(
|
|
5799
6410
|
(e) => {
|
|
5800
6411
|
if (!disableRipple && !disabled) {
|
|
5801
6412
|
onPress(e);
|
|
@@ -5828,38 +6439,10 @@ var IconButton = (0, import_react3.forwardRef)((props, ref) => {
|
|
|
5828
6439
|
);
|
|
5829
6440
|
});
|
|
5830
6441
|
IconButton.displayName = "IconButton";
|
|
5831
|
-
var icon_button_default = IconButton;
|
|
5832
|
-
var iconButtonStyle = tv({
|
|
5833
|
-
|
|
5834
|
-
base: [
|
|
5835
|
-
"relative",
|
|
5836
|
-
"flex",
|
|
5837
|
-
"items-center",
|
|
5838
|
-
"justify-center",
|
|
5839
|
-
"whitespace-nowrap",
|
|
5840
|
-
"transition",
|
|
5841
|
-
"duration-200",
|
|
5842
|
-
"select-none",
|
|
5843
|
-
"overflow-hidden",
|
|
5844
|
-
"box-border"
|
|
5845
|
-
]
|
|
5846
|
-
},
|
|
6442
|
+
var icon_button_default = IconButton;
|
|
6443
|
+
var iconButtonStyle = tv({
|
|
6444
|
+
extend: buttonBaseStyle,
|
|
5847
6445
|
variants: {
|
|
5848
|
-
variant: {
|
|
5849
|
-
solid: [],
|
|
5850
|
-
soft: [],
|
|
5851
|
-
outline: [],
|
|
5852
|
-
ghost: []
|
|
5853
|
-
},
|
|
5854
|
-
color: {
|
|
5855
|
-
primary: [],
|
|
5856
|
-
secondary: [],
|
|
5857
|
-
neutral: [],
|
|
5858
|
-
info: [],
|
|
5859
|
-
success: [],
|
|
5860
|
-
warning: [],
|
|
5861
|
-
danger: []
|
|
5862
|
-
},
|
|
5863
6446
|
size: {
|
|
5864
6447
|
sm: {
|
|
5865
6448
|
base: ["w-[24px]", "h-[24px]", "rounded-sm"]
|
|
@@ -5874,270 +6457,15 @@ var iconButtonStyle = tv({
|
|
|
5874
6457
|
base: ["w-[50px]", "h-[50px]", "rounded-xl"]
|
|
5875
6458
|
}
|
|
5876
6459
|
},
|
|
5877
|
-
|
|
5878
|
-
true: {}
|
|
5879
|
-
},
|
|
5880
|
-
disabled: {
|
|
6460
|
+
full: {
|
|
5881
6461
|
true: {
|
|
5882
|
-
base: ["
|
|
6462
|
+
base: ["w-full", "h-full"]
|
|
5883
6463
|
}
|
|
5884
6464
|
},
|
|
5885
|
-
|
|
5886
|
-
true: {
|
|
5887
|
-
base: [
|
|
5888
|
-
"[&:not(:first-child):not(:last-child)]:rounded-none",
|
|
5889
|
-
"first:rounded-r-none",
|
|
5890
|
-
"last:rounded-l-none",
|
|
5891
|
-
"[&:not(:first-child)]:border-l-0"
|
|
5892
|
-
]
|
|
5893
|
-
}
|
|
6465
|
+
isLoading: {
|
|
6466
|
+
true: {}
|
|
5894
6467
|
}
|
|
5895
6468
|
},
|
|
5896
|
-
compoundVariants: [
|
|
5897
|
-
{
|
|
5898
|
-
variant: "solid",
|
|
5899
|
-
color: "primary",
|
|
5900
|
-
class: {
|
|
5901
|
-
base: ["text-white", "bg-primary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5902
|
-
}
|
|
5903
|
-
},
|
|
5904
|
-
{
|
|
5905
|
-
variant: "solid",
|
|
5906
|
-
color: "secondary",
|
|
5907
|
-
class: {
|
|
5908
|
-
base: ["text-white", "bg-secondary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5909
|
-
}
|
|
5910
|
-
},
|
|
5911
|
-
{
|
|
5912
|
-
variant: "solid",
|
|
5913
|
-
color: "neutral",
|
|
5914
|
-
class: {
|
|
5915
|
-
base: ["text-white", "bg-neutral-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5916
|
-
}
|
|
5917
|
-
},
|
|
5918
|
-
{
|
|
5919
|
-
variant: "solid",
|
|
5920
|
-
color: "info",
|
|
5921
|
-
class: {
|
|
5922
|
-
base: ["text-white", "bg-info-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5923
|
-
}
|
|
5924
|
-
},
|
|
5925
|
-
{
|
|
5926
|
-
variant: "solid",
|
|
5927
|
-
color: "success",
|
|
5928
|
-
class: {
|
|
5929
|
-
base: ["text-white", "bg-success-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5930
|
-
}
|
|
5931
|
-
},
|
|
5932
|
-
{
|
|
5933
|
-
variant: "solid",
|
|
5934
|
-
color: "warning",
|
|
5935
|
-
class: {
|
|
5936
|
-
base: ["text-white", "bg-warning-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5937
|
-
}
|
|
5938
|
-
},
|
|
5939
|
-
{
|
|
5940
|
-
variant: "solid",
|
|
5941
|
-
color: "danger",
|
|
5942
|
-
class: {
|
|
5943
|
-
base: ["text-white", "bg-danger-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
|
|
5944
|
-
}
|
|
5945
|
-
},
|
|
5946
|
-
// soft
|
|
5947
|
-
{
|
|
5948
|
-
variant: "soft",
|
|
5949
|
-
color: "primary",
|
|
5950
|
-
class: {
|
|
5951
|
-
base: ["text-primary-main", "bg-primary-soft", "!border-primary-soft", "hover:!border-primary-light"]
|
|
5952
|
-
}
|
|
5953
|
-
},
|
|
5954
|
-
{
|
|
5955
|
-
variant: "soft",
|
|
5956
|
-
color: "secondary",
|
|
5957
|
-
class: {
|
|
5958
|
-
base: ["text-secondary-main", "bg-secondary-soft", "!border-secondary-soft", "hover:!border-secondary-light"]
|
|
5959
|
-
}
|
|
5960
|
-
},
|
|
5961
|
-
{
|
|
5962
|
-
variant: "soft",
|
|
5963
|
-
color: "neutral",
|
|
5964
|
-
class: {
|
|
5965
|
-
base: ["text-neutral-main", "bg-neutral-soft", "!border-neutral-soft", "hover:!border-neutral-light"]
|
|
5966
|
-
}
|
|
5967
|
-
},
|
|
5968
|
-
{
|
|
5969
|
-
variant: "soft",
|
|
5970
|
-
color: "info",
|
|
5971
|
-
class: {
|
|
5972
|
-
base: ["text-info-main", "bg-info-soft", "!border-info-soft", "hover:!border-info-light"]
|
|
5973
|
-
}
|
|
5974
|
-
},
|
|
5975
|
-
{
|
|
5976
|
-
variant: "soft",
|
|
5977
|
-
color: "success",
|
|
5978
|
-
class: {
|
|
5979
|
-
base: ["text-success-main", "bg-success-soft", "!border-success-soft", "hover:!border-success-light"]
|
|
5980
|
-
}
|
|
5981
|
-
},
|
|
5982
|
-
{
|
|
5983
|
-
variant: "soft",
|
|
5984
|
-
color: "warning",
|
|
5985
|
-
class: {
|
|
5986
|
-
base: ["text-warning-main", "bg-warning-soft", "!border-warning-soft", "hover:!border-warning-light"]
|
|
5987
|
-
}
|
|
5988
|
-
},
|
|
5989
|
-
{
|
|
5990
|
-
variant: "soft",
|
|
5991
|
-
color: "danger",
|
|
5992
|
-
class: {
|
|
5993
|
-
base: ["text-danger-main", "bg-danger-soft", "!border-danger-soft", "hover:!border-danger-light"]
|
|
5994
|
-
}
|
|
5995
|
-
},
|
|
5996
|
-
// outline
|
|
5997
|
-
{
|
|
5998
|
-
variant: "outline",
|
|
5999
|
-
color: "primary",
|
|
6000
|
-
class: {
|
|
6001
|
-
base: ["bg-body-background", "!border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
|
|
6002
|
-
}
|
|
6003
|
-
},
|
|
6004
|
-
{
|
|
6005
|
-
variant: "outline",
|
|
6006
|
-
color: "secondary",
|
|
6007
|
-
class: {
|
|
6008
|
-
base: ["bg-body-background", "!border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
|
|
6009
|
-
}
|
|
6010
|
-
},
|
|
6011
|
-
{
|
|
6012
|
-
variant: "outline",
|
|
6013
|
-
color: "neutral",
|
|
6014
|
-
class: {
|
|
6015
|
-
base: ["bg-body-background", "!border-neutral-light", "text-neutral-main", "hover:bg-neutral-soft"]
|
|
6016
|
-
}
|
|
6017
|
-
},
|
|
6018
|
-
{
|
|
6019
|
-
variant: "outline",
|
|
6020
|
-
color: "info",
|
|
6021
|
-
class: {
|
|
6022
|
-
base: ["bg-body-background", "!border-info-main", "text-info-main", "hover:bg-info-soft"]
|
|
6023
|
-
}
|
|
6024
|
-
},
|
|
6025
|
-
{
|
|
6026
|
-
variant: "outline",
|
|
6027
|
-
color: "success",
|
|
6028
|
-
class: {
|
|
6029
|
-
base: ["bg-body-background", "!border-success-main", "text-success-main", "hover:bg-success-soft"]
|
|
6030
|
-
}
|
|
6031
|
-
},
|
|
6032
|
-
{
|
|
6033
|
-
variant: "outline",
|
|
6034
|
-
color: "warning",
|
|
6035
|
-
class: {
|
|
6036
|
-
base: ["bg-body-background", "!border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
|
|
6037
|
-
}
|
|
6038
|
-
},
|
|
6039
|
-
{
|
|
6040
|
-
variant: "outline",
|
|
6041
|
-
color: "danger",
|
|
6042
|
-
class: {
|
|
6043
|
-
base: ["bg-body-background", "!border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
|
|
6044
|
-
}
|
|
6045
|
-
},
|
|
6046
|
-
// ghost
|
|
6047
|
-
{
|
|
6048
|
-
variant: "ghost",
|
|
6049
|
-
color: "primary",
|
|
6050
|
-
class: {
|
|
6051
|
-
base: ["text-primary-main", "border-transparent", "hover:bg-primary-soft"]
|
|
6052
|
-
}
|
|
6053
|
-
},
|
|
6054
|
-
{
|
|
6055
|
-
variant: "ghost",
|
|
6056
|
-
color: "secondary",
|
|
6057
|
-
class: {
|
|
6058
|
-
base: ["text-secondary-main", "border-transparent", "hover:bg-secondary-soft"]
|
|
6059
|
-
}
|
|
6060
|
-
},
|
|
6061
|
-
{
|
|
6062
|
-
variant: "ghost",
|
|
6063
|
-
color: "neutral",
|
|
6064
|
-
class: {
|
|
6065
|
-
base: ["text-neutral-main", "border-transparent", "hover:bg-neutral-soft"]
|
|
6066
|
-
}
|
|
6067
|
-
},
|
|
6068
|
-
{
|
|
6069
|
-
variant: "ghost",
|
|
6070
|
-
color: "info",
|
|
6071
|
-
class: {
|
|
6072
|
-
base: ["text-info-main", "border-transparent", "hover:bg-info-soft"]
|
|
6073
|
-
}
|
|
6074
|
-
},
|
|
6075
|
-
{
|
|
6076
|
-
variant: "ghost",
|
|
6077
|
-
color: "success",
|
|
6078
|
-
class: {
|
|
6079
|
-
base: ["text-success-main", "border-transparent", "hover:bg-success-soft"]
|
|
6080
|
-
}
|
|
6081
|
-
},
|
|
6082
|
-
{
|
|
6083
|
-
variant: "ghost",
|
|
6084
|
-
color: "warning",
|
|
6085
|
-
class: {
|
|
6086
|
-
base: ["text-warning-main", "border-transparent", "hover:bg-warning-soft"]
|
|
6087
|
-
}
|
|
6088
|
-
},
|
|
6089
|
-
{
|
|
6090
|
-
variant: "ghost",
|
|
6091
|
-
color: "danger",
|
|
6092
|
-
class: {
|
|
6093
|
-
base: ["text-danger-main", "border-transparent", "hover:bg-danger-soft"]
|
|
6094
|
-
}
|
|
6095
|
-
},
|
|
6096
|
-
// soft/outline + size
|
|
6097
|
-
{
|
|
6098
|
-
variant: ["soft", "outline"],
|
|
6099
|
-
size: "sm",
|
|
6100
|
-
class: {
|
|
6101
|
-
base: ["border-sm"]
|
|
6102
|
-
}
|
|
6103
|
-
},
|
|
6104
|
-
{
|
|
6105
|
-
variant: ["soft", "outline"],
|
|
6106
|
-
size: "md",
|
|
6107
|
-
class: {
|
|
6108
|
-
base: ["border-md"]
|
|
6109
|
-
}
|
|
6110
|
-
},
|
|
6111
|
-
{
|
|
6112
|
-
variant: ["soft", "outline"],
|
|
6113
|
-
size: "lg",
|
|
6114
|
-
class: {
|
|
6115
|
-
base: ["border-lg"]
|
|
6116
|
-
}
|
|
6117
|
-
},
|
|
6118
|
-
{
|
|
6119
|
-
variant: ["soft", "outline"],
|
|
6120
|
-
size: "xl",
|
|
6121
|
-
class: {
|
|
6122
|
-
base: ["border-xl"]
|
|
6123
|
-
}
|
|
6124
|
-
},
|
|
6125
|
-
// disabled + variant
|
|
6126
|
-
{
|
|
6127
|
-
variant: ["soft", "ghost"],
|
|
6128
|
-
disabled: true,
|
|
6129
|
-
class: {
|
|
6130
|
-
base: ["!border-neutral-soft"]
|
|
6131
|
-
}
|
|
6132
|
-
},
|
|
6133
|
-
{
|
|
6134
|
-
variant: ["outline"],
|
|
6135
|
-
disabled: true,
|
|
6136
|
-
class: {
|
|
6137
|
-
base: ["!border-neutral-light"]
|
|
6138
|
-
}
|
|
6139
|
-
}
|
|
6140
|
-
],
|
|
6141
6469
|
defaultVariants: {
|
|
6142
6470
|
size: "md",
|
|
6143
6471
|
variant: "solid",
|
|
@@ -6241,10 +6569,11 @@ var TextButton = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6241
6569
|
TextButton.displayName = "TextButton";
|
|
6242
6570
|
var text_button_default = TextButton;
|
|
6243
6571
|
var textButtonStyle = tv({
|
|
6572
|
+
extend: buttonBaseStyle,
|
|
6244
6573
|
slots: {
|
|
6245
|
-
base: ["
|
|
6574
|
+
base: ["!bg-transparent", "!border-transparent", "active:text-primary-strong", "font-bold"],
|
|
6246
6575
|
content: [],
|
|
6247
|
-
underline: ["underline", "decoration-skip-ink"
|
|
6576
|
+
underline: ["underline", "decoration-skip-ink"]
|
|
6248
6577
|
},
|
|
6249
6578
|
variants: {
|
|
6250
6579
|
variant: {
|
|
@@ -6263,35 +6592,30 @@ var textButtonStyle = tv({
|
|
|
6263
6592
|
size: {
|
|
6264
6593
|
sm: {
|
|
6265
6594
|
base: ["text-sm"],
|
|
6266
|
-
underline: ["decoration-[
|
|
6595
|
+
underline: ["decoration-[0.6px]", "underline-offset-[2.4px]"]
|
|
6267
6596
|
},
|
|
6268
6597
|
md: {
|
|
6269
6598
|
base: ["text-md"],
|
|
6270
|
-
underline: ["decoration-[
|
|
6599
|
+
underline: ["decoration-[0.7px]", "underline-offset-[2.8px]"]
|
|
6271
6600
|
},
|
|
6272
6601
|
lg: {
|
|
6273
6602
|
base: ["text-lg"],
|
|
6274
|
-
underline: ["decoration-[
|
|
6603
|
+
underline: ["decoration-[0.8px]", "underline-offset-[3.2px]"]
|
|
6275
6604
|
},
|
|
6276
6605
|
xl: {
|
|
6277
6606
|
base: ["text-xl"],
|
|
6278
|
-
underline: ["decoration-[
|
|
6607
|
+
underline: ["decoration-[0.9px]", "underline-offset-[3.6px]"]
|
|
6279
6608
|
}
|
|
6280
6609
|
},
|
|
6281
6610
|
disabled: {
|
|
6282
6611
|
true: {
|
|
6283
|
-
base: ["!text-neutral-light", "pointer-events-none"]
|
|
6284
|
-
}
|
|
6612
|
+
base: ["!bg-transparent", "!border-transparent", "!text-neutral-light", "pointer-events-none"]
|
|
6613
|
+
},
|
|
6614
|
+
false: {}
|
|
6285
6615
|
},
|
|
6286
6616
|
isInGroup: {
|
|
6287
|
-
true: {
|
|
6288
|
-
|
|
6289
|
-
"[&:not(:first-child):not(:last-child)]:rounded-none",
|
|
6290
|
-
"first:rounded-r-none",
|
|
6291
|
-
"last:rounded-l-none",
|
|
6292
|
-
"[&:not(:first-child)]:border-l-0"
|
|
6293
|
-
]
|
|
6294
|
-
}
|
|
6617
|
+
true: {},
|
|
6618
|
+
false: {}
|
|
6295
6619
|
}
|
|
6296
6620
|
},
|
|
6297
6621
|
compoundVariants: [
|
|
@@ -6310,7 +6634,7 @@ var textButtonStyle = tv({
|
|
|
6310
6634
|
{
|
|
6311
6635
|
color: "neutral",
|
|
6312
6636
|
class: {
|
|
6313
|
-
base: ["text-
|
|
6637
|
+
base: ["text-body-foreground", "hover:text-neutral-dark", "active:text-neutral-strong"]
|
|
6314
6638
|
}
|
|
6315
6639
|
},
|
|
6316
6640
|
{
|
|
@@ -6528,10 +6852,10 @@ var inputStyle = tv(
|
|
|
6528
6852
|
"placeholder:text-neutral-main",
|
|
6529
6853
|
"outline-none",
|
|
6530
6854
|
"focus:ring-0",
|
|
6531
|
-
"group-
|
|
6532
|
-
"group-
|
|
6533
|
-
"
|
|
6534
|
-
"
|
|
6855
|
+
"group-hover/input:text-neutral-dark",
|
|
6856
|
+
"group-hover/input:placeholder:text-neutral-dark",
|
|
6857
|
+
"focus:text-neutral-dark",
|
|
6858
|
+
"focus:placeholder:text-neutral-dark",
|
|
6535
6859
|
"read-only:!text-body-foreground",
|
|
6536
6860
|
"read-only:placeholder:!text-body-foreground"
|
|
6537
6861
|
],
|
|
@@ -6540,10 +6864,10 @@ var inputStyle = tv(
|
|
|
6540
6864
|
"items-center",
|
|
6541
6865
|
"select-none",
|
|
6542
6866
|
"text-neutral-main",
|
|
6543
|
-
"
|
|
6544
|
-
"
|
|
6867
|
+
"transition-colors",
|
|
6868
|
+
"group-hover/input:text-neutral-dark"
|
|
6545
6869
|
],
|
|
6546
|
-
helperMessage: ["text-neutral-main", "group-
|
|
6870
|
+
helperMessage: ["text-neutral-main", "group-hover/input:text-neutral-dark"],
|
|
6547
6871
|
errorMessage: ["text-danger-main"],
|
|
6548
6872
|
readonlyWrapper: [
|
|
6549
6873
|
"pointer-events-none",
|
|
@@ -6582,46 +6906,46 @@ var inputStyle = tv(
|
|
|
6582
6906
|
},
|
|
6583
6907
|
color: {
|
|
6584
6908
|
primary: {
|
|
6585
|
-
content: ["group-
|
|
6586
|
-
helperMessage: ["group-
|
|
6587
|
-
readonly: ["text-primary-main"]
|
|
6909
|
+
content: ["group-focus-within/input:!text-primary-main"],
|
|
6910
|
+
helperMessage: ["group-focus-within/input:!text-primary-main"],
|
|
6911
|
+
readonly: ["!text-primary-main"]
|
|
6588
6912
|
},
|
|
6589
6913
|
secondary: {
|
|
6590
|
-
content: ["group-
|
|
6591
|
-
helperMessage: ["group-
|
|
6592
|
-
readonly: ["text-secondary-main"]
|
|
6914
|
+
content: ["group-focus-within/input:!text-secondary-main"],
|
|
6915
|
+
helperMessage: ["group-focus-within/input:!text-secondary-main"],
|
|
6916
|
+
readonly: ["!text-secondary-main"]
|
|
6593
6917
|
}
|
|
6594
6918
|
},
|
|
6595
6919
|
size: {
|
|
6596
6920
|
sm: {
|
|
6597
|
-
base: ["text-sm", "gap-
|
|
6921
|
+
base: ["text-sm", "gap-sm"],
|
|
6598
6922
|
label: ["text-sm"],
|
|
6599
|
-
innerWrapper: ["gap-
|
|
6600
|
-
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-
|
|
6923
|
+
innerWrapper: ["gap-sm"],
|
|
6924
|
+
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-xs", "gap-sm"],
|
|
6601
6925
|
helperMessage: ["text-sm"],
|
|
6602
6926
|
errorMessage: ["text-sm"]
|
|
6603
6927
|
},
|
|
6604
6928
|
md: {
|
|
6605
|
-
base: ["text-md", "gap-
|
|
6929
|
+
base: ["text-md", "gap-md"],
|
|
6606
6930
|
label: ["text-md"],
|
|
6607
|
-
innerWrapper: ["gap-
|
|
6608
|
-
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-
|
|
6931
|
+
innerWrapper: ["gap-md"],
|
|
6932
|
+
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-sm", "gap-md"],
|
|
6609
6933
|
helperMessage: ["text-sm"],
|
|
6610
6934
|
errorMessage: ["text-sm"]
|
|
6611
6935
|
},
|
|
6612
6936
|
lg: {
|
|
6613
|
-
base: ["text-lg", "gap-
|
|
6937
|
+
base: ["text-lg", "gap-lg"],
|
|
6614
6938
|
label: ["text-lg"],
|
|
6615
|
-
innerWrapper: ["gap-
|
|
6616
|
-
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-
|
|
6939
|
+
innerWrapper: ["gap-lg"],
|
|
6940
|
+
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-md", "gap-lg"],
|
|
6617
6941
|
helperMessage: ["text-md"],
|
|
6618
6942
|
errorMessage: ["text-md"]
|
|
6619
6943
|
},
|
|
6620
6944
|
xl: {
|
|
6621
|
-
base: ["text-xl", "gap-
|
|
6945
|
+
base: ["text-xl", "gap-xl"],
|
|
6622
6946
|
label: ["text-xl"],
|
|
6623
|
-
innerWrapper: ["gap-
|
|
6624
|
-
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-
|
|
6947
|
+
innerWrapper: ["gap-xl"],
|
|
6948
|
+
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-lg", "gap-xl"],
|
|
6625
6949
|
helperMessage: ["text-md"],
|
|
6626
6950
|
errorMessage: ["text-md"]
|
|
6627
6951
|
}
|