@deepnoid/ui 0.0.112 → 0.1.1
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/.eslintrc.cjs +4 -0
- package/.turbo/turbo-build.log +365 -0
- package/babel.config.js +8 -0
- package/dist/NanumSquare_acB-VMSVRKSM.ttf +0 -0
- package/dist/NanumSquare_acEB-HRZ3QLG2.ttf +0 -0
- package/dist/NanumSquare_acL-FSAAP5CK.ttf +0 -0
- package/dist/NanumSquare_acR-RZCHPXSJ.ttf +0 -0
- package/dist/{chunk-LCI6RPWE.mjs → chunk-24NQEB73.mjs} +7 -5
- package/dist/chunk-2TJDQIKB.mjs +82 -0
- package/dist/chunk-2ZT6V4QR.mjs +591 -0
- package/dist/chunk-56VCX2QR.mjs +170 -0
- package/dist/chunk-6PNKRBUT.mjs +34 -0
- package/dist/{chunk-IZ6II3QA.mjs → chunk-AC6TWLRT.mjs} +1 -13
- package/dist/{chunk-PRLGHYFO.mjs → chunk-AMA53H3C.mjs} +7 -7
- package/dist/chunk-AYWI2CRE.mjs +211 -0
- package/dist/{chunk-OJ2OEI5B.mjs → chunk-BKE6QF6W.mjs} +7 -0
- package/dist/chunk-CF6O6TCF.mjs +63 -0
- package/dist/chunk-DUOYMLZL.mjs +283 -0
- package/dist/{chunk-7HHFRKJU.mjs → chunk-GLBASISV.mjs} +2 -2
- package/dist/{chunk-FDKT4IBP.mjs → chunk-HKXUNG3H.mjs} +4 -4
- package/dist/chunk-J5WJD6XZ.mjs +221 -0
- package/dist/chunk-LXHUO6VM.mjs +46 -0
- package/dist/chunk-M2IRRTFM.mjs +79 -0
- package/dist/{chunk-NGQ3MK2J.mjs → chunk-N4F3R6HG.mjs} +1 -1
- package/dist/chunk-ON5SGXHZ.mjs +29 -0
- package/dist/chunk-OQS4LGZK.mjs +27 -0
- package/dist/{chunk-IOCRFIQF.mjs → chunk-P2TMIZRH.mjs} +131 -30
- package/dist/chunk-RCU5MLBU.mjs +198 -0
- package/dist/chunk-RT5NKQX4.mjs +285 -0
- package/dist/chunk-S65S7QZ5.mjs +413 -0
- package/dist/chunk-SE5TU755.mjs +1 -0
- package/dist/chunk-SPX2BHO2.mjs +314 -0
- package/dist/{chunk-TSMVRGDO.mjs → chunk-SSEQSF5F.mjs} +14 -8
- package/dist/chunk-U2YKMXVG.mjs +145 -0
- package/dist/{chunk-JN7EGKJL.mjs → chunk-VRGHUYRU.mjs} +11 -5
- package/dist/{chunk-EYY4CRRR.mjs → chunk-VVOOYDJS.mjs} +15 -17
- package/dist/chunk-WSIADHVC.mjs +126 -0
- package/dist/{chunk-PXUBPWKU.mjs → chunk-XIHAABHB.mjs} +4 -4
- package/dist/{chunk-BCN5F2MN.mjs → chunk-YCMZELLD.mjs} +2 -2
- package/dist/{chunk-RZZWHI6O.mjs → chunk-YZNQ2QGK.mjs} +8 -3
- package/dist/chunk-Z74QNVPG.mjs +127 -0
- package/dist/{chunk-KRI5IALM.mjs → chunk-ZEZ6ZA3N.mjs} +6 -3
- package/dist/{chunk-KCBBBRSF.mjs → chunk-ZMOAFSYE.mjs} +1 -1
- package/dist/components/avatar/avatar.d.mts +80 -0
- package/dist/components/avatar/avatar.d.ts +80 -0
- package/dist/components/{accordion/accordionItem.js → avatar/avatar.js} +454 -213
- package/dist/components/avatar/avatar.mjs +10 -0
- package/dist/components/avatar/index.d.mts +4 -0
- package/dist/components/avatar/index.d.ts +4 -0
- package/dist/components/{accordion → avatar}/index.js +836 -676
- package/dist/components/avatar/index.mjs +11 -0
- package/dist/components/backdrop/backdrop.d.mts +11 -0
- package/dist/components/backdrop/backdrop.d.ts +11 -0
- package/dist/components/backdrop/backdrop.js +345 -0
- package/dist/components/backdrop/backdrop.mjs +9 -0
- package/dist/components/backdrop/index.d.mts +2 -0
- package/dist/components/backdrop/index.d.ts +2 -0
- package/dist/components/backdrop/index.js +351 -0
- package/dist/components/backdrop/index.mjs +10 -0
- package/dist/components/breadcrumb/breadcrumb.d.mts +96 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +96 -0
- package/dist/components/breadcrumb/breadcrumb.js +4067 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +12 -0
- package/dist/components/breadcrumb/index.d.mts +7 -0
- package/dist/components/breadcrumb/index.d.ts +7 -0
- package/dist/components/breadcrumb/index.js +4073 -0
- package/dist/components/breadcrumb/index.mjs +13 -0
- package/dist/components/button/button-group.d.mts +5 -4
- package/dist/components/button/button-group.d.ts +5 -4
- package/dist/components/button/button-group.js +278 -9
- package/dist/components/button/button-group.mjs +3 -3
- package/dist/components/button/button.d.mts +27 -180
- package/dist/components/button/button.d.ts +27 -180
- package/dist/components/button/button.js +600 -426
- package/dist/components/button/button.mjs +8 -5
- package/dist/components/button/index.d.mts +0 -1
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/button/index.js +605 -431
- package/dist/components/button/index.mjs +9 -6
- package/dist/components/checkbox/checkbox.d.mts +50 -206
- package/dist/components/checkbox/checkbox.d.ts +50 -206
- package/dist/components/checkbox/checkbox.js +464 -127
- package/dist/components/checkbox/checkbox.mjs +4 -3
- package/dist/components/checkbox/index.d.mts +0 -1
- package/dist/components/checkbox/index.d.ts +0 -1
- package/dist/components/checkbox/index.js +464 -127
- package/dist/components/checkbox/index.mjs +4 -3
- package/dist/components/chip/chip.d.mts +119 -0
- package/dist/components/chip/chip.d.ts +119 -0
- package/dist/components/chip/chip.js +4200 -0
- package/dist/components/chip/chip.mjs +13 -0
- package/dist/components/chip/index.d.mts +7 -0
- package/dist/components/chip/index.d.ts +7 -0
- package/dist/components/chip/index.js +4206 -0
- package/dist/components/chip/index.mjs +14 -0
- package/dist/components/dateTimePicker/calendar.d.mts +3 -53
- package/dist/components/dateTimePicker/calendar.d.ts +3 -53
- package/dist/components/dateTimePicker/calendar.js +415 -43
- package/dist/components/dateTimePicker/calendar.mjs +5 -5
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +23 -180
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +23 -180
- package/dist/components/dateTimePicker/dateTimePicker.js +674 -151
- package/dist/components/dateTimePicker/dateTimePicker.mjs +11 -10
- package/dist/components/dateTimePicker/index.d.mts +0 -1
- package/dist/components/dateTimePicker/index.d.ts +0 -1
- package/dist/components/dateTimePicker/index.js +674 -151
- package/dist/components/dateTimePicker/index.mjs +11 -10
- package/dist/components/dateTimePicker/timePicker.js +4218 -130
- package/dist/components/dateTimePicker/timePicker.mjs +9 -5
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +4 -4
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +4 -4
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +1 -1
- package/dist/components/dateTimePicker/util.mjs +1 -1
- package/dist/components/icon/Icon.d.mts +30 -5
- package/dist/components/icon/Icon.d.ts +30 -5
- package/dist/components/icon/Icon.js +137 -34
- package/dist/components/icon/Icon.mjs +3 -3
- package/dist/components/icon/index.d.mts +1 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/index.js +137 -34
- package/dist/components/icon/index.mjs +3 -3
- package/dist/components/icon/template.d.mts +7 -1
- package/dist/components/icon/template.d.ts +7 -1
- package/dist/components/icon/template.js +131 -30
- package/dist/components/icon/template.mjs +2 -2
- package/dist/components/input/index.d.mts +1 -2
- package/dist/components/input/index.d.ts +1 -2
- package/dist/components/input/index.js +634 -197
- package/dist/components/input/index.mjs +6 -5
- package/dist/components/input/input.d.mts +114 -256
- package/dist/components/input/input.d.ts +114 -256
- package/dist/components/input/input.js +634 -197
- package/dist/components/input/input.mjs +6 -5
- package/dist/components/list/index.d.mts +5 -2
- package/dist/components/list/index.d.ts +5 -2
- package/dist/components/list/index.js +4161 -73
- package/dist/components/list/index.mjs +8 -4
- package/dist/components/list/list.d.mts +17 -67
- package/dist/components/list/list.d.ts +17 -67
- package/dist/components/list/list.js +290 -23
- package/dist/components/list/list.mjs +3 -3
- package/dist/components/list/listItem.d.mts +108 -113
- package/dist/components/list/listItem.d.ts +108 -113
- package/dist/components/list/listItem.js +4159 -61
- package/dist/components/list/listItem.mjs +7 -3
- package/dist/components/modal/index.d.mts +0 -1
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/index.js +630 -454
- package/dist/components/modal/index.mjs +10 -7
- package/dist/components/modal/modal.d.mts +3 -76
- package/dist/components/modal/modal.d.ts +3 -76
- package/dist/components/modal/modal.js +630 -454
- package/dist/components/modal/modal.mjs +10 -7
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +740 -302
- package/dist/components/pagination/index.mjs +8 -7
- package/dist/components/pagination/pagination.d.mts +50 -112
- package/dist/components/pagination/pagination.d.ts +50 -112
- package/dist/components/pagination/pagination.js +742 -306
- package/dist/components/pagination/pagination.mjs +10 -11
- package/dist/components/pagination/usePagination.mjs +1 -1
- package/dist/components/radio/index.d.mts +0 -1
- package/dist/components/radio/index.d.ts +0 -1
- package/dist/components/radio/index.js +424 -111
- package/dist/components/radio/index.mjs +4 -3
- package/dist/components/radio/radio.d.mts +113 -183
- package/dist/components/radio/radio.d.ts +113 -183
- package/dist/components/radio/radio.js +424 -111
- package/dist/components/radio/radio.mjs +4 -3
- package/dist/components/ripple/index.d.mts +4 -0
- package/dist/components/ripple/index.d.ts +4 -0
- package/dist/components/ripple/index.js +98 -0
- package/dist/components/ripple/index.mjs +13 -0
- package/dist/components/ripple/ripple.d.mts +21 -0
- package/dist/components/ripple/ripple.d.ts +21 -0
- package/dist/components/ripple/ripple.js +65 -0
- package/dist/components/ripple/ripple.mjs +8 -0
- package/dist/components/ripple/useRipple.d.mts +17 -0
- package/dist/components/ripple/useRipple.d.ts +17 -0
- package/dist/components/ripple/useRipple.js +57 -0
- package/dist/components/ripple/useRipple.mjs +10 -0
- package/dist/components/select/index.d.mts +0 -1
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/select/index.js +437 -44
- package/dist/components/select/index.mjs +6 -6
- package/dist/components/select/option.d.mts +2 -3
- package/dist/components/select/option.d.ts +2 -3
- package/dist/components/select/option.js +431 -44
- package/dist/components/select/option.mjs +5 -5
- package/dist/components/select/select.d.mts +19 -180
- package/dist/components/select/select.d.ts +19 -180
- package/dist/components/select/select.js +437 -44
- package/dist/components/select/select.mjs +6 -6
- package/dist/components/select/useSelect.d.mts +3 -4
- package/dist/components/select/useSelect.d.ts +3 -4
- package/dist/components/select/useSelect.mjs +1 -1
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.d.ts +1 -2
- package/dist/components/switch/index.js +54 -77
- package/dist/components/switch/index.mjs +2 -2
- package/dist/components/switch/switch.d.mts +56 -190
- package/dist/components/switch/switch.d.ts +56 -190
- package/dist/components/switch/switch.js +55 -83
- package/dist/components/switch/switch.mjs +4 -6
- package/dist/components/table/index.d.mts +0 -1
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/table/index.js +1730 -910
- package/dist/components/table/index.mjs +14 -9
- package/dist/components/table/table-body.d.mts +9 -16
- package/dist/components/table/table-body.d.ts +9 -16
- package/dist/components/table/table-body.js +517 -3856
- package/dist/components/table/table-body.mjs +4 -7
- package/dist/components/table/table-head.d.mts +6 -9
- package/dist/components/table/table-head.d.ts +6 -9
- package/dist/components/table/table-head.js +430 -162
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.d.mts +98 -578
- package/dist/components/table/table.d.ts +98 -578
- package/dist/components/table/table.js +1730 -910
- package/dist/components/table/table.mjs +14 -9
- package/dist/components/tabs/index.d.mts +0 -1
- package/dist/components/tabs/index.d.ts +0 -1
- package/dist/components/tabs/index.js +291 -9
- package/dist/components/tabs/index.mjs +3 -3
- package/dist/components/tabs/tabs.d.mts +12 -99
- package/dist/components/tabs/tabs.d.ts +12 -99
- package/dist/components/tabs/tabs.js +291 -9
- package/dist/components/tabs/tabs.mjs +3 -3
- package/dist/components/textarea/index.d.mts +0 -1
- package/dist/components/textarea/index.d.ts +0 -1
- package/dist/components/textarea/index.js +7 -0
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.d.mts +19 -271
- package/dist/components/textarea/textarea.d.ts +19 -271
- package/dist/components/textarea/textarea.js +7 -0
- package/dist/components/textarea/textarea.mjs +2 -2
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +426 -44
- package/dist/components/toast/index.mjs +6 -6
- package/dist/components/toast/toast-utils.mjs +1 -1
- package/dist/components/toast/toast.d.mts +4 -87
- package/dist/components/toast/toast.d.ts +4 -87
- package/dist/components/toast/toast.js +425 -43
- package/dist/components/toast/toast.mjs +5 -5
- package/dist/components/toast/use-toast.d.mts +1 -0
- package/dist/components/toast/use-toast.d.ts +1 -0
- package/dist/components/toast/use-toast.js +426 -44
- package/dist/components/toast/use-toast.mjs +6 -6
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.d.ts +1 -2
- package/dist/components/tooltip/index.js +412 -54
- package/dist/components/tooltip/index.mjs +5 -5
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.js +67 -0
- package/dist/components/tooltip/tooltip-utils.mjs +6 -2
- package/dist/components/tooltip/tooltip.d.mts +37 -85
- package/dist/components/tooltip/tooltip.d.ts +37 -85
- package/dist/components/tooltip/tooltip.js +412 -54
- package/dist/components/tooltip/tooltip.mjs +5 -5
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/components/tooltip/useTooltip.mjs +3 -3
- package/dist/fonts/NanumSquare_acB.js +4 -0
- package/dist/fonts/NanumSquare_acB.mjs +8 -0
- package/dist/fonts/NanumSquare_acB.ttf +0 -0
- package/dist/fonts/NanumSquare_acEB.js +4 -0
- package/dist/fonts/NanumSquare_acEB.mjs +8 -0
- package/dist/fonts/NanumSquare_acEB.ttf +0 -0
- package/dist/fonts/NanumSquare_acL.js +4 -0
- package/dist/fonts/NanumSquare_acL.mjs +8 -0
- package/dist/fonts/NanumSquare_acL.ttf +0 -0
- package/dist/fonts/NanumSquare_acR.js +4 -0
- package/dist/fonts/NanumSquare_acR.mjs +8 -0
- package/dist/fonts/NanumSquare_acR.ttf +0 -0
- package/dist/fonts/font.css +36 -0
- package/dist/index.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +3929 -4355
- package/dist/index.mjs +70 -795
- package/dist/tooltip-utils-DO3LQaVM.d.mts +52 -0
- package/dist/tooltip-utils-DO3LQaVM.d.ts +52 -0
- package/dist/utils/clsx.mjs +1 -1
- package/dist/utils/props.mjs +1 -1
- package/dist/utils/tailwind-variants.d.mts +1 -21
- package/dist/utils/tailwind-variants.d.ts +1 -21
- package/dist/utils/tailwind-variants.js +288 -9
- package/dist/utils/tailwind-variants.mjs +2 -2
- package/dist/utils/types.d.mts +5 -4
- package/dist/utils/types.d.ts +5 -4
- package/package.json +34 -37
- package/postcss.config.js +6 -0
- package/tailwind.config.ts +7 -0
- package/tsup.config.ts +8 -0
- package/dist/chunk-2ALY3PH5.mjs +0 -66
- package/dist/chunk-A3RWT3JJ.mjs +0 -197
- package/dist/chunk-ANYPMQH4.mjs +0 -200
- package/dist/chunk-FNPWLOGV.mjs +0 -12875
- package/dist/chunk-H7BLXC5M.mjs +0 -5965
- package/dist/chunk-J725QONZ.mjs +0 -24
- package/dist/chunk-L6BQA6GI.mjs +0 -160
- package/dist/chunk-N2JULHST.mjs +0 -141
- package/dist/chunk-ODMRJXLJ.mjs +0 -61
- package/dist/chunk-PO3ADNA5.mjs +0 -56
- package/dist/chunk-QGZEHOKA.mjs +0 -342
- package/dist/chunk-QWFOYO3D.mjs +0 -173
- package/dist/chunk-S3O52LLG.mjs +0 -151
- package/dist/chunk-S4DTK5GI.mjs +0 -4036
- package/dist/chunk-SWR7E3NU.mjs +0 -78
- package/dist/chunk-U74WK5VI.mjs +0 -123
- package/dist/chunk-UR64ZUAU.mjs +0 -671
- package/dist/chunk-V77MALL4.mjs +0 -112
- package/dist/chunk-VWD26TIQ.mjs +0 -139
- package/dist/chunk-YRMFIXXC.mjs +0 -277
- package/dist/chunk-ZNEEYSIK.mjs +0 -257
- package/dist/components/accordion/accordion.d.mts +0 -154
- package/dist/components/accordion/accordion.d.ts +0 -154
- package/dist/components/accordion/accordion.js +0 -142
- package/dist/components/accordion/accordion.mjs +0 -10
- package/dist/components/accordion/accordion.test.js +0 -13015
- package/dist/components/accordion/accordion.test.mjs +0 -25
- package/dist/components/accordion/accordionItem.d.mts +0 -282
- package/dist/components/accordion/accordionItem.d.ts +0 -282
- package/dist/components/accordion/accordionItem.mjs +0 -13
- package/dist/components/accordion/index.d.mts +0 -6
- package/dist/components/accordion/index.d.ts +0 -6
- package/dist/components/accordion/index.mjs +0 -18
- package/dist/components/button/button-group.test.js +0 -21247
- package/dist/components/button/button-group.test.mjs +0 -57
- package/dist/components/button/button.test.js +0 -23148
- package/dist/components/button/button.test.mjs +0 -52
- package/dist/components/card/card.d.mts +0 -124
- package/dist/components/card/card.d.ts +0 -124
- package/dist/components/card/card.js +0 -103
- package/dist/components/card/card.mjs +0 -9
- package/dist/components/card/card.test.js +0 -12986
- package/dist/components/card/card.test.mjs +0 -24
- package/dist/components/card/index.d.mts +0 -5
- package/dist/components/card/index.d.ts +0 -5
- package/dist/components/card/index.js +0 -109
- package/dist/components/card/index.mjs +0 -10
- package/dist/components/checkbox/checkbox.test.js +0 -17237
- package/dist/components/checkbox/checkbox.test.mjs +0 -100
- package/dist/components/input/input.test.d.mts +0 -2
- package/dist/components/input/input.test.d.ts +0 -2
- package/dist/components/input/input.test.js +0 -22782
- package/dist/components/input/input.test.mjs +0 -99
- package/dist/components/list/list.test.d.mts +0 -2
- package/dist/components/list/list.test.d.ts +0 -2
- package/dist/components/list/list.test.js +0 -12995
- package/dist/components/list/list.test.mjs +0 -25
- package/dist/components/modal/modal.test.d.mts +0 -2
- package/dist/components/modal/modal.test.d.ts +0 -2
- package/dist/components/modal/modal.test.js +0 -17376
- package/dist/components/modal/modal.test.mjs +0 -39
- package/dist/components/pagination/pagination.test.d.mts +0 -2
- package/dist/components/pagination/pagination.test.d.ts +0 -2
- package/dist/components/pagination/pagination.test.js +0 -17051
- package/dist/components/pagination/pagination.test.mjs +0 -38
- package/dist/components/progress/index.d.mts +0 -5
- package/dist/components/progress/index.d.ts +0 -5
- package/dist/components/progress/index.js +0 -184
- package/dist/components/progress/index.mjs +0 -10
- package/dist/components/progress/progress.d.mts +0 -281
- package/dist/components/progress/progress.d.ts +0 -281
- package/dist/components/progress/progress.js +0 -178
- package/dist/components/progress/progress.mjs +0 -9
- package/dist/components/progress/progress.test.d.mts +0 -2
- package/dist/components/progress/progress.test.d.ts +0 -2
- package/dist/components/progress/progress.test.js +0 -13087
- package/dist/components/progress/progress.test.mjs +0 -50
- package/dist/components/radio/radio.test.d.mts +0 -2
- package/dist/components/radio/radio.test.d.ts +0 -2
- package/dist/components/radio/radio.test.js +0 -13147
- package/dist/components/radio/radio.test.mjs +0 -63
- package/dist/components/select/select.test.d.mts +0 -2
- package/dist/components/select/select.test.d.ts +0 -2
- package/dist/components/select/select.test.js +0 -20928
- package/dist/components/select/select.test.mjs +0 -71
- package/dist/components/slider/index.d.mts +0 -5
- package/dist/components/slider/index.d.ts +0 -5
- package/dist/components/slider/index.js +0 -239
- package/dist/components/slider/index.mjs +0 -10
- package/dist/components/slider/slider.d.mts +0 -359
- package/dist/components/slider/slider.d.ts +0 -359
- package/dist/components/slider/slider.js +0 -238
- package/dist/components/slider/slider.mjs +0 -11
- package/dist/components/slider/slider.test.d.mts +0 -2
- package/dist/components/slider/slider.test.d.ts +0 -2
- package/dist/components/slider/slider.test.js +0 -13122
- package/dist/components/slider/slider.test.mjs +0 -30
- package/dist/components/switch/switch.test.d.mts +0 -2
- package/dist/components/switch/switch.test.d.ts +0 -2
- package/dist/components/switch/switch.test.js +0 -13098
- package/dist/components/switch/switch.test.mjs +0 -52
- package/dist/components/table/table.test.d.mts +0 -2
- package/dist/components/table/table.test.d.ts +0 -2
- package/dist/components/table/table.test.js +0 -17256
- package/dist/components/table/table.test.mjs +0 -42
- package/dist/components/tabs/tabs.test.d.mts +0 -2
- package/dist/components/tabs/tabs.test.d.ts +0 -2
- package/dist/components/tabs/tabs.test.js +0 -17223
- package/dist/components/tabs/tabs.test.mjs +0 -70
- package/dist/components/textarea/textarea.test.d.mts +0 -2
- package/dist/components/textarea/textarea.test.d.ts +0 -2
- package/dist/components/textarea/textarea.test.js +0 -19117
- package/dist/components/textarea/textarea.test.mjs +0 -66
- package/dist/components/toast/toast.test.d.mts +0 -2
- package/dist/components/toast/toast.test.d.ts +0 -2
- package/dist/components/toast/toast.test.js +0 -16620
- package/dist/components/toast/toast.test.mjs +0 -28
- package/dist/components/tooltip/tooltip.test.d.mts +0 -2
- package/dist/components/tooltip/tooltip.test.d.ts +0 -2
- package/dist/components/tooltip/tooltip.test.js +0 -17381
- package/dist/components/tooltip/tooltip.test.mjs +0 -39
- package/dist/tooltip-utils-DR0UEfBN.d.mts +0 -31
- package/dist/tooltip-utils-DR0UEfBN.d.ts +0 -31
- /package/dist/{chunk-7VOQKIIK.mjs → chunk-6WSACUIB.mjs} +0 -0
- /package/dist/{chunk-HAOK24MK.mjs → chunk-7DLOYKVC.mjs} +0 -0
- /package/dist/{chunk-MV2WCFK7.mjs → chunk-KYIODWXL.mjs} +0 -0
- /package/dist/{chunk-NMSDSEBD.mjs → chunk-MGEWSREV.mjs} +0 -0
- /package/dist/{components/accordion/accordion.test.d.mts → fonts/NanumSquare_acB.d.mts} +0 -0
- /package/dist/{components/accordion/accordion.test.d.ts → fonts/NanumSquare_acB.d.ts} +0 -0
- /package/dist/{components/button/button-group.test.d.mts → fonts/NanumSquare_acEB.d.mts} +0 -0
- /package/dist/{components/button/button-group.test.d.ts → fonts/NanumSquare_acEB.d.ts} +0 -0
- /package/dist/{components/button/button.test.d.mts → fonts/NanumSquare_acL.d.mts} +0 -0
- /package/dist/{components/button/button.test.d.ts → fonts/NanumSquare_acL.d.ts} +0 -0
- /package/dist/{components/card/card.test.d.mts → fonts/NanumSquare_acR.d.mts} +0 -0
- /package/dist/{components/card/card.test.d.ts → fonts/NanumSquare_acR.d.ts} +0 -0
- /package/dist/{components/checkbox/checkbox.test.d.mts → fonts/font.d.mts} +0 -0
- /package/dist/{components/checkbox/checkbox.test.d.ts → fonts/font.d.ts} +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Icon_default
|
|
4
|
+
} from "./chunk-24NQEB73.mjs";
|
|
5
|
+
import {
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-2ZT6V4QR.mjs";
|
|
8
|
+
import {
|
|
9
|
+
clsx
|
|
10
|
+
} from "./chunk-27Y6K5NK.mjs";
|
|
11
|
+
import {
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
+
|
|
15
|
+
// src/components/input/input.tsx
|
|
16
|
+
import React, { forwardRef, useRef, useCallback, useMemo } from "react";
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var Input = forwardRef((originalProps, ref) => {
|
|
19
|
+
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
20
|
+
const { classNames, label, helperText, errorText, startContent, endContent, ...inputProps } = props;
|
|
21
|
+
const inputRef = useRef(null);
|
|
22
|
+
const slots = useMemo(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
23
|
+
const getContentProps = useCallback(
|
|
24
|
+
() => ({
|
|
25
|
+
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
26
|
+
size: originalProps.size
|
|
27
|
+
}),
|
|
28
|
+
[slots, classNames, originalProps.size]
|
|
29
|
+
);
|
|
30
|
+
const renderStartContent = () => {
|
|
31
|
+
if (React.isValidElement(startContent)) {
|
|
32
|
+
const existingProps = startContent.props;
|
|
33
|
+
const mergedProps = {
|
|
34
|
+
...getContentProps(),
|
|
35
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
36
|
+
};
|
|
37
|
+
return React.cloneElement(startContent, mergedProps);
|
|
38
|
+
} else {
|
|
39
|
+
const contentProps = getContentProps();
|
|
40
|
+
return /* @__PURE__ */ jsx("div", { ...contentProps, children: startContent });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const renderDateTimePickerIcon = () => /* @__PURE__ */ jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
...getContentProps(),
|
|
47
|
+
onClick: () => {
|
|
48
|
+
const target = ref && "current" in ref ? ref.current : inputRef.current;
|
|
49
|
+
target == null ? void 0 : target.focus();
|
|
50
|
+
target == null ? void 0 : target.showPicker();
|
|
51
|
+
},
|
|
52
|
+
children: /* @__PURE__ */ jsx(Icon_default, { name: props.type === "time" ? "clock" : "calendar", size: originalProps.size, className: "cursor-pointer" })
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
const renderContentWithIcon = () => {
|
|
56
|
+
if (React.isValidElement(endContent)) {
|
|
57
|
+
const existingProps = endContent.props;
|
|
58
|
+
const mergedProps = {
|
|
59
|
+
...getContentProps(),
|
|
60
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
61
|
+
};
|
|
62
|
+
return React.cloneElement(endContent, mergedProps);
|
|
63
|
+
} else if (errorText) {
|
|
64
|
+
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
65
|
+
return /* @__PURE__ */ jsx("div", { ...iconProps, children: /* @__PURE__ */ jsx(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
66
|
+
} else {
|
|
67
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const renderEndContent = () => {
|
|
71
|
+
switch (props.type) {
|
|
72
|
+
case "date":
|
|
73
|
+
case "datetime-local":
|
|
74
|
+
case "month":
|
|
75
|
+
case "week":
|
|
76
|
+
case "time":
|
|
77
|
+
return renderDateTimePickerIcon();
|
|
78
|
+
default:
|
|
79
|
+
return renderContentWithIcon();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ jsxs(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
className: clsx(
|
|
86
|
+
slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
87
|
+
variantProps.direction === "vertical" ? slots.vertical({ class: classNames == null ? void 0 : classNames.vertical }) : slots.horizon({ class: classNames == null ? void 0 : classNames.horizon })
|
|
88
|
+
),
|
|
89
|
+
children: [
|
|
90
|
+
label && /* @__PURE__ */ jsx("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
91
|
+
/* @__PURE__ */ jsxs("div", { className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper }), children: [
|
|
92
|
+
/* @__PURE__ */ jsxs(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: clsx(
|
|
96
|
+
slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
|
|
97
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
98
|
+
),
|
|
99
|
+
children: [
|
|
100
|
+
startContent && renderStartContent(),
|
|
101
|
+
/* @__PURE__ */ jsx("input", { ...inputProps, ref: ref || inputRef, className: slots.input({ class: classNames == null ? void 0 : classNames.input }), size: 0 }),
|
|
102
|
+
renderEndContent()
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
helperText && !errorText && /* @__PURE__ */ jsx("p", { className: slots.helperText({ class: classNames == null ? void 0 : classNames.helperText }), children: helperText }),
|
|
107
|
+
errorText && /* @__PURE__ */ jsx("p", { className: clsx("error", slots.errorText({ class: classNames == null ? void 0 : classNames.errorText })), children: errorText })
|
|
108
|
+
] })
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
});
|
|
113
|
+
Input.displayName = "Input";
|
|
114
|
+
var input_default = Input;
|
|
115
|
+
var inputStyle = tv({
|
|
116
|
+
slots: {
|
|
117
|
+
base: ["group/input", "flex"],
|
|
118
|
+
vertical: ["flex-col"],
|
|
119
|
+
horizon: ["flex-row", "gap-0"],
|
|
120
|
+
label: ["flex", "items-center", "font-bold", "text-body-foreground", "w-[80px]"],
|
|
121
|
+
innerWrapper: ["flex", "flex-col"],
|
|
122
|
+
inputWrapper: ["flex", "items-center", "transition", "duration-200", "group-has-[p.error]/input:bg-danger-soft"],
|
|
123
|
+
input: [
|
|
124
|
+
"w-full",
|
|
125
|
+
"h-full",
|
|
126
|
+
"bg-transparent",
|
|
127
|
+
"text-neutral-main",
|
|
128
|
+
"placeholder:text-neutral-main",
|
|
129
|
+
"focus:outline-none",
|
|
130
|
+
"focus:ring-0",
|
|
131
|
+
"group-has-[:hover]/input:text-neutral-dark",
|
|
132
|
+
"group-has-[:hover]/input:placeholder:text-neutral-dark",
|
|
133
|
+
"group-has-[:focus]/input:text-neutral-dark",
|
|
134
|
+
"group-has-[:focus]/input:placeholder:text-neutral-dark",
|
|
135
|
+
"group-has-[p.error]/input:text-danger-main",
|
|
136
|
+
"group-has-[p.error]/input:placeholder:text-danger-main"
|
|
137
|
+
],
|
|
138
|
+
content: [
|
|
139
|
+
"flex",
|
|
140
|
+
"items-center",
|
|
141
|
+
"select-none",
|
|
142
|
+
"text-neutral-main",
|
|
143
|
+
"group-has-[:hover]/input:text-neutral-dark",
|
|
144
|
+
"group-has-[p.error]/input:text-danger-main"
|
|
145
|
+
],
|
|
146
|
+
helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
147
|
+
errorText: ["text-danger-main"],
|
|
148
|
+
readonly: ["pointer-events-none"]
|
|
149
|
+
},
|
|
150
|
+
variants: {
|
|
151
|
+
variant: {
|
|
152
|
+
solid: {
|
|
153
|
+
inputWrapper: ["!border-transparent", "bg-trans-soft", "group-has-[:focus]/input:text-body-foreground"],
|
|
154
|
+
readonly: ["!bg-trans-light"]
|
|
155
|
+
},
|
|
156
|
+
outline: {
|
|
157
|
+
inputWrapper: [
|
|
158
|
+
"border-neutral-light",
|
|
159
|
+
"group-has-[:hover]/input:bg-trans-soft",
|
|
160
|
+
"group-has-[:focus]/input:bg-body-background",
|
|
161
|
+
"group-has-[p.error]/input:border-danger-main"
|
|
162
|
+
],
|
|
163
|
+
readonly: ["!bg-trans-soft"]
|
|
164
|
+
},
|
|
165
|
+
underline: {
|
|
166
|
+
inputWrapper: [
|
|
167
|
+
"bg-transparent",
|
|
168
|
+
"!rounded-none",
|
|
169
|
+
"!border-t-transparent",
|
|
170
|
+
"!border-l-transparent",
|
|
171
|
+
"!border-r-transparent",
|
|
172
|
+
"group-has-[:hover]/input:bg-trans-soft",
|
|
173
|
+
"group-has-[:focus]/input:bg-body-background",
|
|
174
|
+
"group-has-[p.error]/input:border-danger-main"
|
|
175
|
+
],
|
|
176
|
+
readonly: ["!bg-trans-soft"]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
color: {
|
|
180
|
+
primary: {
|
|
181
|
+
content: [
|
|
182
|
+
"group-has-[:focus]/input:text-primary-main",
|
|
183
|
+
"!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
|
|
184
|
+
],
|
|
185
|
+
helperText: [
|
|
186
|
+
"group-has-[:focus]/input:text-primary-main",
|
|
187
|
+
"group-has-[:focus:hover]/input:text-primary-main",
|
|
188
|
+
"group-has-[:focus]/input:hover:text-primary-main"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
secondary: {
|
|
192
|
+
content: [
|
|
193
|
+
"group-has-[:focus]/input:text-secondary-main",
|
|
194
|
+
"!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
|
|
195
|
+
],
|
|
196
|
+
helperText: [
|
|
197
|
+
"group-has-[:focus]/input:text-secondary-main",
|
|
198
|
+
"group-has-[:focus:hover]/input:text-secondary-main",
|
|
199
|
+
"group-has-[:focus]/input:hover:text-secondary-main"
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
size: {
|
|
204
|
+
sm: {
|
|
205
|
+
base: ["text-sm", "gap-[4px]"],
|
|
206
|
+
label: ["text-sm"],
|
|
207
|
+
innerWrapper: ["gap-[4px]"],
|
|
208
|
+
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "border-sm"],
|
|
209
|
+
helperText: ["text-sm"],
|
|
210
|
+
errorText: ["text-sm"]
|
|
211
|
+
},
|
|
212
|
+
md: {
|
|
213
|
+
base: ["text-md", "gap-[6px]"],
|
|
214
|
+
label: ["text-md"],
|
|
215
|
+
innerWrapper: ["gap-[6px]"],
|
|
216
|
+
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "border-md"],
|
|
217
|
+
helperText: ["text-sm"],
|
|
218
|
+
errorText: ["text-sm"]
|
|
219
|
+
},
|
|
220
|
+
lg: {
|
|
221
|
+
base: ["text-lg", "gap-[8px]"],
|
|
222
|
+
label: ["text-lg"],
|
|
223
|
+
innerWrapper: ["gap-[8px]"],
|
|
224
|
+
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "border-lg"],
|
|
225
|
+
helperText: ["text-md"],
|
|
226
|
+
errorText: ["text-md"]
|
|
227
|
+
},
|
|
228
|
+
xl: {
|
|
229
|
+
base: ["text-xl", "gap-[10px]"],
|
|
230
|
+
label: ["text-xl"],
|
|
231
|
+
innerWrapper: ["gap-[10px]"],
|
|
232
|
+
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "border-xl"],
|
|
233
|
+
helperText: ["text-md"],
|
|
234
|
+
errorText: ["text-md"]
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
direction: {
|
|
238
|
+
vertical: "",
|
|
239
|
+
horizon: ""
|
|
240
|
+
},
|
|
241
|
+
full: {
|
|
242
|
+
true: {
|
|
243
|
+
base: ["w-full"],
|
|
244
|
+
innerWrapper: ["flex-1"],
|
|
245
|
+
inputWrapper: ["w-full"]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
disabled: {
|
|
249
|
+
true: {
|
|
250
|
+
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "!group-has-[p.error]/input:text-danger-light"],
|
|
251
|
+
input: [
|
|
252
|
+
"text-neutral-light",
|
|
253
|
+
"placeholder:text-neutral-light",
|
|
254
|
+
"group-has-[p.error]/input:text-danger-light",
|
|
255
|
+
"group-has-[p.error]/input:placeholder:text-danger-light"
|
|
256
|
+
],
|
|
257
|
+
content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
258
|
+
helperText: ["!text-neutral-light"],
|
|
259
|
+
errorText: ["!text-danger-light"]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
compoundVariants: [
|
|
264
|
+
{
|
|
265
|
+
disabled: true,
|
|
266
|
+
variant: ["outline", "underline"],
|
|
267
|
+
class: {
|
|
268
|
+
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:border-danger-light"]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
defaultVariants: {
|
|
273
|
+
variant: "solid",
|
|
274
|
+
color: "primary",
|
|
275
|
+
size: "md",
|
|
276
|
+
direction: "vertical",
|
|
277
|
+
disabled: false,
|
|
278
|
+
readonly: false
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
export {
|
|
283
|
+
input_default,
|
|
284
|
+
inputStyle
|
|
285
|
+
};
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ripple_default
|
|
4
|
+
} from "./chunk-LXHUO6VM.mjs";
|
|
5
|
+
import {
|
|
6
|
+
useRipple
|
|
7
|
+
} from "./chunk-6PNKRBUT.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Icon_default
|
|
10
|
+
} from "./chunk-24NQEB73.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-2ZT6V4QR.mjs";
|
|
14
|
+
import {
|
|
15
|
+
mapPropsVariants
|
|
16
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
17
|
+
|
|
18
|
+
// src/components/button/button.tsx
|
|
19
|
+
import React, { forwardRef, useMemo, useCallback } from "react";
|
|
20
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
var Button = forwardRef((originalProps, ref) => {
|
|
22
|
+
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
23
|
+
const { classNames, startContent, endContent, disableRipple, children, ...buttonProps } = props;
|
|
24
|
+
const slots = useMemo(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
25
|
+
const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
|
|
26
|
+
const handlePress = useCallback(
|
|
27
|
+
(e) => {
|
|
28
|
+
if (disableRipple || originalProps.isDisabled) return;
|
|
29
|
+
onRipplePressHandler(e);
|
|
30
|
+
},
|
|
31
|
+
[disableRipple, originalProps.isDisabled, ref, onRipplePressHandler]
|
|
32
|
+
);
|
|
33
|
+
const mouseDownHandler = useCallback(
|
|
34
|
+
(e) => {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = buttonProps.onMouseDown) == null ? void 0 : _a.call(buttonProps, e);
|
|
37
|
+
if (disableRipple || originalProps.isDisabled) return;
|
|
38
|
+
handlePress(e);
|
|
39
|
+
},
|
|
40
|
+
[buttonProps.onMouseDown, disableRipple, originalProps.isDisabled, ref, onRipplePressHandler]
|
|
41
|
+
);
|
|
42
|
+
const getRippleProps = useCallback(
|
|
43
|
+
() => ({ ripples, onClear: onClearRipple }),
|
|
44
|
+
[ripples, onClearRipple]
|
|
45
|
+
);
|
|
46
|
+
const getBaseProps = useCallback(
|
|
47
|
+
() => ({
|
|
48
|
+
...buttonProps,
|
|
49
|
+
onMouseDown: mouseDownHandler,
|
|
50
|
+
ref,
|
|
51
|
+
disabled: originalProps.isDisabled || originalProps.isLoading,
|
|
52
|
+
"data-loading": originalProps.isLoading,
|
|
53
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
54
|
+
}),
|
|
55
|
+
[buttonProps, ref, originalProps.isDisabled, originalProps.isLoading, slots, classNames == null ? void 0 : classNames.base]
|
|
56
|
+
);
|
|
57
|
+
const getContentProps = useCallback(
|
|
58
|
+
() => ({
|
|
59
|
+
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
60
|
+
size: originalProps.size
|
|
61
|
+
}),
|
|
62
|
+
[slots, classNames, originalProps.size]
|
|
63
|
+
);
|
|
64
|
+
const renderContent = (content) => {
|
|
65
|
+
if (React.isValidElement(content)) {
|
|
66
|
+
const _content = content;
|
|
67
|
+
const existingProps = _content.props;
|
|
68
|
+
const mergedProps = {
|
|
69
|
+
...getContentProps(),
|
|
70
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
71
|
+
};
|
|
72
|
+
return React.cloneElement(content, mergedProps);
|
|
73
|
+
} else {
|
|
74
|
+
const contentProps = getContentProps();
|
|
75
|
+
return /* @__PURE__ */ jsx("div", { ...contentProps, children: content });
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return /* @__PURE__ */ jsx("button", { ...getBaseProps(), children: originalProps.isLoading ? renderContent(/* @__PURE__ */ jsx(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
+
startContent && renderContent(startContent),
|
|
80
|
+
children,
|
|
81
|
+
endContent && renderContent(endContent),
|
|
82
|
+
!disableRipple && /* @__PURE__ */ jsx(ripple_default, { ...getRippleProps() })
|
|
83
|
+
] }) });
|
|
84
|
+
});
|
|
85
|
+
Button.displayName = "Button";
|
|
86
|
+
var button_default = Button;
|
|
87
|
+
var buttonStyle = tv({
|
|
88
|
+
slots: {
|
|
89
|
+
base: "relative flex items-center justify-center whitespace-nowrap transition duration-200 select-none overflow-hidden box-border border border-transparent",
|
|
90
|
+
content: ""
|
|
91
|
+
},
|
|
92
|
+
variants: {
|
|
93
|
+
variant: {
|
|
94
|
+
solid: "",
|
|
95
|
+
soft: "",
|
|
96
|
+
outline: {
|
|
97
|
+
base: "bg-transparent border-transparent"
|
|
98
|
+
},
|
|
99
|
+
ghost: ""
|
|
100
|
+
},
|
|
101
|
+
color: {
|
|
102
|
+
primary: "",
|
|
103
|
+
secondary: "",
|
|
104
|
+
neutral: "",
|
|
105
|
+
info: "",
|
|
106
|
+
success: "",
|
|
107
|
+
warning: "",
|
|
108
|
+
danger: ""
|
|
109
|
+
},
|
|
110
|
+
size: {
|
|
111
|
+
sm: {
|
|
112
|
+
base: "h-[24px] px-[8px] py-[3px] text-sm font-[700] rounded-sm gap-sm"
|
|
113
|
+
},
|
|
114
|
+
md: {
|
|
115
|
+
base: "h-[32px] px-[12px] py-[5.5px] text-md font-[700] rounded-md gap-md"
|
|
116
|
+
},
|
|
117
|
+
lg: {
|
|
118
|
+
base: "h-[40px] px-[16px] py-[8px] text-lg font-[700] rounded-lg gap-lg"
|
|
119
|
+
},
|
|
120
|
+
xl: {
|
|
121
|
+
base: "h-[50px] px-[20px] py-[11.5px] text-xl font-[700] rounded-xl gap-xl"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
radius: {
|
|
125
|
+
default: {
|
|
126
|
+
base: ""
|
|
127
|
+
},
|
|
128
|
+
full: {
|
|
129
|
+
base: "rounded-full"
|
|
130
|
+
},
|
|
131
|
+
none: {
|
|
132
|
+
base: "rounded-none"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
fullWidth: {
|
|
136
|
+
true: {
|
|
137
|
+
base: "w-full"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
isLoading: {
|
|
141
|
+
true: {}
|
|
142
|
+
},
|
|
143
|
+
isDisabled: {
|
|
144
|
+
true: {
|
|
145
|
+
base: "!bg-neutral-soft !border-neutral-soft !text-neutral-light pointer-events-none"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
isInGroup: {
|
|
149
|
+
true: {
|
|
150
|
+
base: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
defaultVariants: {
|
|
155
|
+
size: "md",
|
|
156
|
+
variant: "solid",
|
|
157
|
+
color: "primary",
|
|
158
|
+
fullWidth: false,
|
|
159
|
+
isDisabled: false,
|
|
160
|
+
isLoading: false,
|
|
161
|
+
isInGroup: false
|
|
162
|
+
},
|
|
163
|
+
compoundVariants: [
|
|
164
|
+
// solid & color
|
|
165
|
+
{
|
|
166
|
+
variant: "solid",
|
|
167
|
+
color: "primary",
|
|
168
|
+
class: {
|
|
169
|
+
base: ["text-white", "bg-primary-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
variant: "solid",
|
|
174
|
+
color: "secondary",
|
|
175
|
+
class: {
|
|
176
|
+
base: ["text-white", "bg-secondary-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
variant: "solid",
|
|
181
|
+
color: "neutral",
|
|
182
|
+
class: {
|
|
183
|
+
base: ["text-white", "bg-neutral-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
variant: "solid",
|
|
188
|
+
color: "info",
|
|
189
|
+
class: {
|
|
190
|
+
base: ["text-white", "bg-info-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
variant: "solid",
|
|
195
|
+
color: "success",
|
|
196
|
+
class: {
|
|
197
|
+
base: ["text-white", "bg-success-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
variant: "solid",
|
|
202
|
+
color: "warning",
|
|
203
|
+
class: {
|
|
204
|
+
base: ["text-white", "bg-warning-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
variant: "solid",
|
|
209
|
+
color: "danger",
|
|
210
|
+
class: {
|
|
211
|
+
base: ["text-white", "bg-danger-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
// soft & color
|
|
215
|
+
{
|
|
216
|
+
variant: "soft",
|
|
217
|
+
color: "primary",
|
|
218
|
+
class: {
|
|
219
|
+
base: ["text-primary-main", "bg-primary-soft", "border-primary-soft", "hover:border-primary-light"]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
variant: "soft",
|
|
224
|
+
color: "secondary",
|
|
225
|
+
class: {
|
|
226
|
+
base: ["text-secondary-main", "bg-secondary-soft", "border-secondary-soft", "hover:border-secondary-light"]
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
variant: "soft",
|
|
231
|
+
color: "neutral",
|
|
232
|
+
class: {
|
|
233
|
+
base: ["text-neutral-main", "bg-neutral-soft", "border-neutral-soft", "hover:border-neutral-light"]
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
variant: "soft",
|
|
238
|
+
color: "info",
|
|
239
|
+
class: {
|
|
240
|
+
base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light"]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
variant: "soft",
|
|
245
|
+
color: "success",
|
|
246
|
+
class: {
|
|
247
|
+
base: ["text-success-main", "bg-success-soft", "border-success-soft", "hover:border-success-light"]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
variant: "soft",
|
|
252
|
+
color: "warning",
|
|
253
|
+
class: {
|
|
254
|
+
base: ["text-warning-main", "bg-warning-soft", "border-warning-soft", "hover:border-warning-light"]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
variant: "soft",
|
|
259
|
+
color: "danger",
|
|
260
|
+
class: {
|
|
261
|
+
base: ["text-danger-main", "bg-danger-soft", "border-danger-soft", "hover:border-danger-light"]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
// outline & color
|
|
265
|
+
{
|
|
266
|
+
variant: "outline",
|
|
267
|
+
color: "primary",
|
|
268
|
+
class: {
|
|
269
|
+
base: ["bg-transparent", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
variant: "outline",
|
|
274
|
+
color: "secondary",
|
|
275
|
+
class: {
|
|
276
|
+
base: ["bg-transparent", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
variant: "outline",
|
|
281
|
+
color: "neutral",
|
|
282
|
+
class: {
|
|
283
|
+
base: ["bg-transparent", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
variant: "outline",
|
|
288
|
+
color: "info",
|
|
289
|
+
class: {
|
|
290
|
+
base: ["bg-transparent", "border-info-main", "text-info-main", "hover:bg-info-soft"]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
variant: "outline",
|
|
295
|
+
color: "success",
|
|
296
|
+
class: {
|
|
297
|
+
base: ["bg-transparent", "border-success-main", "text-success-main", "hover:bg-success-soft"]
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
variant: "outline",
|
|
302
|
+
color: "warning",
|
|
303
|
+
class: {
|
|
304
|
+
base: ["bg-transparent", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
variant: "outline",
|
|
309
|
+
color: "danger",
|
|
310
|
+
class: {
|
|
311
|
+
base: ["bg-transparent", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
// ghost & color
|
|
315
|
+
{
|
|
316
|
+
variant: "ghost",
|
|
317
|
+
color: "primary",
|
|
318
|
+
class: {
|
|
319
|
+
base: ["text-primary-main", "border-transparent", "hover:bg-primary-soft"]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
variant: "ghost",
|
|
324
|
+
color: "secondary",
|
|
325
|
+
class: {
|
|
326
|
+
base: ["text-secondary-main", "border-transparent", "hover:bg-secondary-soft"]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
variant: "ghost",
|
|
331
|
+
color: "neutral",
|
|
332
|
+
class: {
|
|
333
|
+
base: ["text-neutral-main", "border-transparent", "hover:bg-neutral-soft"]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
variant: "ghost",
|
|
338
|
+
color: "info",
|
|
339
|
+
class: {
|
|
340
|
+
base: ["text-info-main", "border-transparent", "hover:bg-info-soft"]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
variant: "ghost",
|
|
345
|
+
color: "success",
|
|
346
|
+
class: {
|
|
347
|
+
base: ["text-success-main", "border-transparent", "hover:bg-success-soft"]
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
variant: "ghost",
|
|
352
|
+
color: "warning",
|
|
353
|
+
class: {
|
|
354
|
+
base: ["text-warning-main", "border-transparent", "hover:bg-warning-soft"]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
variant: "ghost",
|
|
359
|
+
color: "danger",
|
|
360
|
+
class: {
|
|
361
|
+
base: ["text-danger-main", "border-transparent", "hover:bg-danger-soft"]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
// variant && size
|
|
365
|
+
{
|
|
366
|
+
variant: ["soft", "outline"],
|
|
367
|
+
size: "sm",
|
|
368
|
+
class: {
|
|
369
|
+
base: "border-[1px]"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
variant: ["soft", "outline"],
|
|
374
|
+
size: "md",
|
|
375
|
+
class: {
|
|
376
|
+
base: "border-[1.25px]"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
variant: ["soft", "outline"],
|
|
381
|
+
size: "lg",
|
|
382
|
+
class: {
|
|
383
|
+
base: "border-[1.5px]"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
variant: ["soft", "outline"],
|
|
388
|
+
size: "xl",
|
|
389
|
+
class: {
|
|
390
|
+
base: "border-[1.75px]"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
// variant && isDisabled
|
|
394
|
+
{
|
|
395
|
+
variant: ["soft", "ghost"],
|
|
396
|
+
isDisabled: true,
|
|
397
|
+
class: {
|
|
398
|
+
base: "!border-neutral-soft"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
variant: ["outline"],
|
|
403
|
+
isDisabled: true,
|
|
404
|
+
class: {
|
|
405
|
+
base: "!border-neutral-light"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
export {
|
|
412
|
+
button_default
|
|
413
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|