@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
|
@@ -1,54 +1,61 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import * as
|
|
4
|
-
import * as React from 'react';
|
|
3
|
+
import * as react from 'react';
|
|
5
4
|
import { ComponentPropsWithRef } from 'react';
|
|
6
|
-
import { SlotsToClasses } from '../../utils/types.js';
|
|
5
|
+
import { Size, SlotsToClasses } from '../../utils/types.js';
|
|
7
6
|
|
|
8
7
|
interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size"> {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
size?: Size;
|
|
9
|
+
color?: "primary" | "secondary";
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
disableAnimation?: boolean;
|
|
12
|
+
classNames?: SlotsToClasses<SwitchSlots>;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
declare const Switch: React.ForwardRefExoticComponent<Props & ToggleVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
declare const Switch: react.ForwardRefExoticComponent<Props & SwitchVariantProps & react.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
|
|
16
|
-
declare const
|
|
16
|
+
declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
17
17
|
size: {
|
|
18
18
|
sm: {
|
|
19
19
|
outerWrapper: string[];
|
|
20
20
|
wrapper: string[];
|
|
21
21
|
thumb: string[];
|
|
22
|
-
label: string;
|
|
23
22
|
};
|
|
24
23
|
md: {
|
|
25
24
|
outerWrapper: string[];
|
|
26
25
|
wrapper: string[];
|
|
27
26
|
thumb: string[];
|
|
28
|
-
label: string;
|
|
29
27
|
};
|
|
30
28
|
lg: {
|
|
31
29
|
outerWrapper: string[];
|
|
32
30
|
wrapper: string[];
|
|
33
31
|
thumb: string[];
|
|
34
|
-
|
|
32
|
+
};
|
|
33
|
+
xl: {
|
|
34
|
+
outerWrapper: string[];
|
|
35
|
+
wrapper: string[];
|
|
36
|
+
thumb: string[];
|
|
35
37
|
};
|
|
36
38
|
};
|
|
39
|
+
color: {
|
|
40
|
+
primary: {};
|
|
41
|
+
secondary: {};
|
|
42
|
+
};
|
|
37
43
|
isDisabled: {
|
|
38
44
|
true: {
|
|
39
|
-
base: string;
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
base: string[];
|
|
46
|
+
outerWrapper: string[];
|
|
47
|
+
wrapper: string[];
|
|
48
|
+
thumb: string[];
|
|
42
49
|
};
|
|
43
50
|
};
|
|
44
51
|
disableAnimation: {
|
|
45
52
|
true: {
|
|
46
|
-
wrapper: string;
|
|
47
|
-
thumb: string;
|
|
53
|
+
wrapper: string[];
|
|
54
|
+
thumb: string[];
|
|
48
55
|
};
|
|
49
56
|
false: {
|
|
50
|
-
wrapper: string;
|
|
51
|
-
thumb: string;
|
|
57
|
+
wrapper: string[];
|
|
58
|
+
thumb: string[];
|
|
52
59
|
};
|
|
53
60
|
};
|
|
54
61
|
}, {
|
|
@@ -56,119 +63,49 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
56
63
|
outerWrapper: string[];
|
|
57
64
|
wrapper: string[];
|
|
58
65
|
thumb: string[];
|
|
59
|
-
|
|
60
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
66
|
+
}, undefined, {
|
|
61
67
|
size: {
|
|
62
68
|
sm: {
|
|
63
69
|
outerWrapper: string[];
|
|
64
70
|
wrapper: string[];
|
|
65
71
|
thumb: string[];
|
|
66
|
-
label: string;
|
|
67
72
|
};
|
|
68
73
|
md: {
|
|
69
74
|
outerWrapper: string[];
|
|
70
75
|
wrapper: string[];
|
|
71
76
|
thumb: string[];
|
|
72
|
-
label: string;
|
|
73
77
|
};
|
|
74
78
|
lg: {
|
|
75
79
|
outerWrapper: string[];
|
|
76
80
|
wrapper: string[];
|
|
77
81
|
thumb: string[];
|
|
78
|
-
label: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
isDisabled: {
|
|
82
|
-
true: {
|
|
83
|
-
base: string;
|
|
84
|
-
wrapper: string;
|
|
85
|
-
thumb: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
disableAnimation: {
|
|
89
|
-
true: {
|
|
90
|
-
wrapper: string;
|
|
91
|
-
thumb: string;
|
|
92
|
-
};
|
|
93
|
-
false: {
|
|
94
|
-
wrapper: string;
|
|
95
|
-
thumb: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
size: {
|
|
100
|
-
sm: {
|
|
101
|
-
outerWrapper: string[];
|
|
102
|
-
wrapper: string[];
|
|
103
|
-
thumb: string[];
|
|
104
|
-
label: string;
|
|
105
|
-
};
|
|
106
|
-
md: {
|
|
107
|
-
outerWrapper: string[];
|
|
108
|
-
wrapper: string[];
|
|
109
|
-
thumb: string[];
|
|
110
|
-
label: string;
|
|
111
82
|
};
|
|
112
|
-
|
|
83
|
+
xl: {
|
|
113
84
|
outerWrapper: string[];
|
|
114
85
|
wrapper: string[];
|
|
115
86
|
thumb: string[];
|
|
116
|
-
label: string;
|
|
117
87
|
};
|
|
118
88
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
wrapper: string;
|
|
123
|
-
thumb: string;
|
|
124
|
-
};
|
|
89
|
+
color: {
|
|
90
|
+
primary: {};
|
|
91
|
+
secondary: {};
|
|
125
92
|
};
|
|
126
|
-
|
|
93
|
+
isDisabled: {
|
|
127
94
|
true: {
|
|
128
|
-
|
|
129
|
-
thumb: string;
|
|
130
|
-
};
|
|
131
|
-
false: {
|
|
132
|
-
wrapper: string;
|
|
133
|
-
thumb: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
}>, {
|
|
137
|
-
size: {
|
|
138
|
-
sm: {
|
|
139
|
-
outerWrapper: string[];
|
|
140
|
-
wrapper: string[];
|
|
141
|
-
thumb: string[];
|
|
142
|
-
label: string;
|
|
143
|
-
};
|
|
144
|
-
md: {
|
|
145
|
-
outerWrapper: string[];
|
|
146
|
-
wrapper: string[];
|
|
147
|
-
thumb: string[];
|
|
148
|
-
label: string;
|
|
149
|
-
};
|
|
150
|
-
lg: {
|
|
95
|
+
base: string[];
|
|
151
96
|
outerWrapper: string[];
|
|
152
97
|
wrapper: string[];
|
|
153
98
|
thumb: string[];
|
|
154
|
-
label: string;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
isDisabled: {
|
|
158
|
-
true: {
|
|
159
|
-
base: string;
|
|
160
|
-
wrapper: string;
|
|
161
|
-
thumb: string;
|
|
162
99
|
};
|
|
163
100
|
};
|
|
164
101
|
disableAnimation: {
|
|
165
102
|
true: {
|
|
166
|
-
wrapper: string;
|
|
167
|
-
thumb: string;
|
|
103
|
+
wrapper: string[];
|
|
104
|
+
thumb: string[];
|
|
168
105
|
};
|
|
169
106
|
false: {
|
|
170
|
-
wrapper: string;
|
|
171
|
-
thumb: string;
|
|
107
|
+
wrapper: string[];
|
|
108
|
+
thumb: string[];
|
|
172
109
|
};
|
|
173
110
|
};
|
|
174
111
|
}, {
|
|
@@ -176,129 +113,58 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
176
113
|
outerWrapper: string[];
|
|
177
114
|
wrapper: string[];
|
|
178
115
|
thumb: string[];
|
|
179
|
-
label: string[];
|
|
180
116
|
}, tailwind_variants.TVReturnType<{
|
|
181
117
|
size: {
|
|
182
118
|
sm: {
|
|
183
119
|
outerWrapper: string[];
|
|
184
120
|
wrapper: string[];
|
|
185
121
|
thumb: string[];
|
|
186
|
-
label: string;
|
|
187
122
|
};
|
|
188
123
|
md: {
|
|
189
124
|
outerWrapper: string[];
|
|
190
125
|
wrapper: string[];
|
|
191
126
|
thumb: string[];
|
|
192
|
-
label: string;
|
|
193
127
|
};
|
|
194
128
|
lg: {
|
|
195
129
|
outerWrapper: string[];
|
|
196
130
|
wrapper: string[];
|
|
197
131
|
thumb: string[];
|
|
198
|
-
label: string;
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
isDisabled: {
|
|
202
|
-
true: {
|
|
203
|
-
base: string;
|
|
204
|
-
wrapper: string;
|
|
205
|
-
thumb: string;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
disableAnimation: {
|
|
209
|
-
true: {
|
|
210
|
-
wrapper: string;
|
|
211
|
-
thumb: string;
|
|
212
|
-
};
|
|
213
|
-
false: {
|
|
214
|
-
wrapper: string;
|
|
215
|
-
thumb: string;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
}, {
|
|
219
|
-
base: string[];
|
|
220
|
-
outerWrapper: string[];
|
|
221
|
-
wrapper: string[];
|
|
222
|
-
thumb: string[];
|
|
223
|
-
label: string[];
|
|
224
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
225
|
-
size: {
|
|
226
|
-
sm: {
|
|
227
|
-
outerWrapper: string[];
|
|
228
|
-
wrapper: string[];
|
|
229
|
-
thumb: string[];
|
|
230
|
-
label: string;
|
|
231
|
-
};
|
|
232
|
-
md: {
|
|
233
|
-
outerWrapper: string[];
|
|
234
|
-
wrapper: string[];
|
|
235
|
-
thumb: string[];
|
|
236
|
-
label: string;
|
|
237
132
|
};
|
|
238
|
-
|
|
133
|
+
xl: {
|
|
239
134
|
outerWrapper: string[];
|
|
240
135
|
wrapper: string[];
|
|
241
136
|
thumb: string[];
|
|
242
|
-
label: string;
|
|
243
137
|
};
|
|
244
138
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
wrapper: string;
|
|
249
|
-
thumb: string;
|
|
250
|
-
};
|
|
139
|
+
color: {
|
|
140
|
+
primary: {};
|
|
141
|
+
secondary: {};
|
|
251
142
|
};
|
|
252
|
-
|
|
143
|
+
isDisabled: {
|
|
253
144
|
true: {
|
|
254
|
-
|
|
255
|
-
thumb: string;
|
|
256
|
-
};
|
|
257
|
-
false: {
|
|
258
|
-
wrapper: string;
|
|
259
|
-
thumb: string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
}, {
|
|
263
|
-
size: {
|
|
264
|
-
sm: {
|
|
265
|
-
outerWrapper: string[];
|
|
266
|
-
wrapper: string[];
|
|
267
|
-
thumb: string[];
|
|
268
|
-
label: string;
|
|
269
|
-
};
|
|
270
|
-
md: {
|
|
271
|
-
outerWrapper: string[];
|
|
272
|
-
wrapper: string[];
|
|
273
|
-
thumb: string[];
|
|
274
|
-
label: string;
|
|
275
|
-
};
|
|
276
|
-
lg: {
|
|
145
|
+
base: string[];
|
|
277
146
|
outerWrapper: string[];
|
|
278
147
|
wrapper: string[];
|
|
279
148
|
thumb: string[];
|
|
280
|
-
label: string;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
isDisabled: {
|
|
284
|
-
true: {
|
|
285
|
-
base: string;
|
|
286
|
-
wrapper: string;
|
|
287
|
-
thumb: string;
|
|
288
149
|
};
|
|
289
150
|
};
|
|
290
151
|
disableAnimation: {
|
|
291
152
|
true: {
|
|
292
|
-
wrapper: string;
|
|
293
|
-
thumb: string;
|
|
153
|
+
wrapper: string[];
|
|
154
|
+
thumb: string[];
|
|
294
155
|
};
|
|
295
156
|
false: {
|
|
296
|
-
wrapper: string;
|
|
297
|
-
thumb: string;
|
|
157
|
+
wrapper: string[];
|
|
158
|
+
thumb: string[];
|
|
298
159
|
};
|
|
299
160
|
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
161
|
+
}, {
|
|
162
|
+
base: string[];
|
|
163
|
+
outerWrapper: string[];
|
|
164
|
+
wrapper: string[];
|
|
165
|
+
thumb: string[];
|
|
166
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
167
|
+
type SwitchVariantProps = VariantProps<typeof switchStyle>;
|
|
168
|
+
type SwitchSlots = keyof ReturnType<typeof switchStyle>;
|
|
303
169
|
|
|
304
|
-
export { type
|
|
170
|
+
export { type SwitchSlots, type SwitchVariantProps, Switch as default };
|
|
@@ -21,8 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/components/switch/switch.tsx
|
|
22
22
|
var switch_exports = {};
|
|
23
23
|
__export(switch_exports, {
|
|
24
|
-
default: () => switch_default
|
|
25
|
-
toggle: () => toggle
|
|
24
|
+
default: () => switch_default
|
|
26
25
|
});
|
|
27
26
|
module.exports = __toCommonJS(switch_exports);
|
|
28
27
|
var import_react = require("react");
|
|
@@ -51,60 +50,17 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
51
50
|
// src/components/switch/switch.tsx
|
|
52
51
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
53
52
|
var Switch = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
54
|
-
const [
|
|
55
|
-
const {
|
|
56
|
-
const slots = (0, import_react.useMemo)(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}),
|
|
60
|
-
[...Object.values(variantProps)]
|
|
61
|
-
);
|
|
62
|
-
const getBaseProps = () => ({
|
|
63
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
64
|
-
});
|
|
65
|
-
const getOuterWrapperProps = (0, import_react.useCallback)(
|
|
66
|
-
() => ({
|
|
67
|
-
className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper })
|
|
68
|
-
}),
|
|
69
|
-
[slots, classNames == null ? void 0 : classNames.outerWrapper]
|
|
70
|
-
);
|
|
71
|
-
const getWrapperProps = (0, import_react.useCallback)(
|
|
72
|
-
() => ({
|
|
73
|
-
className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper })
|
|
74
|
-
}),
|
|
75
|
-
[slots, classNames]
|
|
76
|
-
);
|
|
77
|
-
const getInputProps = () => ({
|
|
78
|
-
...switchProps,
|
|
79
|
-
type: "checkbox",
|
|
80
|
-
disabled: originalProps.isDisabled,
|
|
81
|
-
ref,
|
|
82
|
-
id: switchProps.id,
|
|
83
|
-
size: 0
|
|
84
|
-
});
|
|
85
|
-
const getThumbProps = (0, import_react.useCallback)(
|
|
86
|
-
(props2 = {}) => ({
|
|
87
|
-
...props2,
|
|
88
|
-
className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb })
|
|
89
|
-
}),
|
|
90
|
-
[slots, classNames == null ? void 0 : classNames.thumb]
|
|
91
|
-
);
|
|
92
|
-
const getLabelProps = (0, import_react.useCallback)(
|
|
93
|
-
(props2 = {}) => ({
|
|
94
|
-
...props2,
|
|
95
|
-
className: slots.label({ class: classNames == null ? void 0 : classNames.label })
|
|
96
|
-
}),
|
|
97
|
-
[slots, classNames == null ? void 0 : classNames.label]
|
|
98
|
-
);
|
|
99
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { ...getBaseProps(), children: [
|
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...getInputProps() }) }),
|
|
101
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ...getOuterWrapperProps(), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ...getWrapperProps(), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ...getThumbProps() }) }) }),
|
|
102
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ...getLabelProps(), children })
|
|
53
|
+
const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
|
|
54
|
+
const { size, color, isDisabled, disableAnimation, id, classNames, ...inputProps } = { ...rawProps, ...variantProps };
|
|
55
|
+
const slots = (0, import_react.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
|
|
103
59
|
] });
|
|
104
60
|
});
|
|
105
61
|
Switch.displayName = "Switch";
|
|
106
62
|
var switch_default = Switch;
|
|
107
|
-
var
|
|
63
|
+
var switchStyle = (0, import_tailwind_variants.tv)({
|
|
108
64
|
slots: {
|
|
109
65
|
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
110
66
|
outerWrapper: [
|
|
@@ -115,8 +71,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
115
71
|
"flex-shrink-0",
|
|
116
72
|
"bg-neutral-soft",
|
|
117
73
|
"overflow-hidden",
|
|
118
|
-
"rounded-full"
|
|
119
|
-
"px-[2px]"
|
|
74
|
+
"rounded-full"
|
|
120
75
|
],
|
|
121
76
|
wrapper: [
|
|
122
77
|
"relative",
|
|
@@ -126,8 +81,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
126
81
|
"flex-shrink-0",
|
|
127
82
|
"overflow-hidden",
|
|
128
83
|
"bg-neutral-light",
|
|
129
|
-
"rounded-full"
|
|
130
|
-
"group-has-[:checked]/switch:bg-primary-main"
|
|
84
|
+
"rounded-full"
|
|
131
85
|
],
|
|
132
86
|
thumb: [
|
|
133
87
|
"z-10",
|
|
@@ -138,56 +92,74 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
138
92
|
"shadow-small",
|
|
139
93
|
"rounded-full",
|
|
140
94
|
"origin-right"
|
|
141
|
-
]
|
|
142
|
-
label: ["relative", "text-foreground", "select-none"]
|
|
95
|
+
]
|
|
143
96
|
},
|
|
144
97
|
variants: {
|
|
145
98
|
size: {
|
|
146
99
|
sm: {
|
|
147
|
-
outerWrapper: ["w-[
|
|
148
|
-
wrapper: ["w-[
|
|
149
|
-
thumb: ["w-[
|
|
150
|
-
label: "text-sm"
|
|
100
|
+
outerWrapper: ["w-[32px]", "h-[16px]", "p-[2px]"],
|
|
101
|
+
wrapper: ["w-[28px]", "h-[12px]", "p-[2px]"],
|
|
102
|
+
thumb: ["w-[8px]", "h-[8px]", "group-has-[:checked]/switch:ml-[16px]"]
|
|
151
103
|
},
|
|
152
104
|
md: {
|
|
153
|
-
outerWrapper: ["w-[
|
|
154
|
-
wrapper: ["w-[
|
|
155
|
-
thumb: ["w-[
|
|
156
|
-
label: "text-md"
|
|
105
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
106
|
+
wrapper: ["w-[42px]", "h-[16px]", "px-[3px]"],
|
|
107
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"]
|
|
157
108
|
},
|
|
158
109
|
lg: {
|
|
159
|
-
outerWrapper: ["w-[
|
|
160
|
-
wrapper: ["w-[
|
|
161
|
-
thumb: ["w-[
|
|
162
|
-
|
|
110
|
+
outerWrapper: ["w-[64px]", "h-[32px]", "px-[4px]"],
|
|
111
|
+
wrapper: ["w-[56px]", "h-[24px]", "px-[4px]"],
|
|
112
|
+
thumb: ["w-[16px]", "h-[16px]", "group-has-[:checked]/switch:ml-[32px]"]
|
|
113
|
+
},
|
|
114
|
+
xl: {
|
|
115
|
+
outerWrapper: ["w-[80px]", "h-[40px]", "px-[5px]"],
|
|
116
|
+
wrapper: ["w-[70px]", "h-[30px]", "px-[5px]"],
|
|
117
|
+
thumb: ["w-[20px]", "h-[20px]", "group-has-[:checked]/switch:ml-[40px]"]
|
|
163
118
|
}
|
|
164
119
|
},
|
|
120
|
+
color: {
|
|
121
|
+
primary: {},
|
|
122
|
+
secondary: {}
|
|
123
|
+
},
|
|
165
124
|
isDisabled: {
|
|
166
125
|
true: {
|
|
167
|
-
base: "pointer-events-none",
|
|
168
|
-
|
|
169
|
-
|
|
126
|
+
base: ["!pointer-events-none"],
|
|
127
|
+
outerWrapper: ["!bg-neutral-soft"],
|
|
128
|
+
wrapper: ["!bg-neutral-light", "!group-has-[:checked]/switch:bg-neutral-light", "!hover:bg-neutral-light"],
|
|
129
|
+
thumb: ["!bg-trans-light"]
|
|
170
130
|
}
|
|
171
131
|
},
|
|
172
132
|
disableAnimation: {
|
|
173
133
|
true: {
|
|
174
|
-
wrapper: "transition-none",
|
|
175
|
-
thumb: "transition-none"
|
|
134
|
+
wrapper: ["transition-none"],
|
|
135
|
+
thumb: ["transition-none"]
|
|
176
136
|
},
|
|
177
137
|
false: {
|
|
178
|
-
wrapper: "transition-background",
|
|
179
|
-
thumb: "transition-all"
|
|
138
|
+
wrapper: ["transition-background"],
|
|
139
|
+
thumb: ["transition-all"]
|
|
180
140
|
}
|
|
181
141
|
}
|
|
182
142
|
},
|
|
143
|
+
compoundVariants: [
|
|
144
|
+
{
|
|
145
|
+
color: "primary",
|
|
146
|
+
class: {
|
|
147
|
+
outerWrapper: ["group-has-[:checked]/switch:bg-primary-light"],
|
|
148
|
+
wrapper: ["group-has-[:checked]/switch:bg-primary-main", "hover:bg-primary-light"]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
color: "secondary",
|
|
153
|
+
class: {
|
|
154
|
+
outerWrapper: ["group-has-[:checked]/switch:bg-secondary-light"],
|
|
155
|
+
wrapper: ["group-has-[:checked]/switch:bg-secondary-main", "hover:bg-secondary-light"]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
183
159
|
defaultVariants: {
|
|
184
160
|
size: "md",
|
|
161
|
+
color: "primary",
|
|
185
162
|
isDisabled: false,
|
|
186
163
|
disableAnimation: false
|
|
187
|
-
}
|
|
188
|
-
compoundVariants: []
|
|
189
|
-
});
|
|
190
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
191
|
-
0 && (module.exports = {
|
|
192
|
-
toggle
|
|
164
|
+
}
|
|
193
165
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
switch_default
|
|
4
|
-
|
|
5
|
-
} from "../../chunk-S3O52LLG.mjs";
|
|
3
|
+
switch_default
|
|
4
|
+
} from "../../chunk-Z74QNVPG.mjs";
|
|
6
5
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-AC6TWLRT.mjs";
|
|
8
7
|
export {
|
|
9
|
-
switch_default as default
|
|
10
|
-
toggle
|
|
8
|
+
switch_default as default
|
|
11
9
|
};
|