@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,359 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { ComponentPropsWithRef } from 'react';
|
|
6
|
-
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
|
-
|
|
8
|
-
interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size" | "onChange"> {
|
|
9
|
-
label?: string;
|
|
10
|
-
max?: number;
|
|
11
|
-
min?: number;
|
|
12
|
-
value?: number;
|
|
13
|
-
classNames?: SlotsToClasses<SliderSlots>;
|
|
14
|
-
onChange?: (value: number) => void;
|
|
15
|
-
}
|
|
16
|
-
type SliderProps = Props & SliderVariantProps;
|
|
17
|
-
declare const Slider: React.ForwardRefExoticComponent<Props & SliderVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
-
|
|
19
|
-
declare const slider: tailwind_variants.TVReturnType<{
|
|
20
|
-
size: {
|
|
21
|
-
sm: {
|
|
22
|
-
track: string;
|
|
23
|
-
thumb: string[];
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
};
|
|
27
|
-
md: {
|
|
28
|
-
track: string;
|
|
29
|
-
thumb: string[];
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
lg: {
|
|
34
|
-
track: string;
|
|
35
|
-
thumb: string[];
|
|
36
|
-
label: string;
|
|
37
|
-
value: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
color: {
|
|
41
|
-
primary: {
|
|
42
|
-
filter: string;
|
|
43
|
-
thumb: string;
|
|
44
|
-
};
|
|
45
|
-
secondary: {
|
|
46
|
-
filter: string;
|
|
47
|
-
thumb: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
gradient: {
|
|
51
|
-
true: {
|
|
52
|
-
filter: string[];
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
fullWidth: {
|
|
56
|
-
true: {
|
|
57
|
-
base: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
hideThumb: {
|
|
61
|
-
true: {
|
|
62
|
-
thumb: string;
|
|
63
|
-
track: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
isDisabled: {
|
|
67
|
-
false: {
|
|
68
|
-
thumb: string[];
|
|
69
|
-
};
|
|
70
|
-
true: {
|
|
71
|
-
thumb: string[];
|
|
72
|
-
filter: string[];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
}, {
|
|
76
|
-
base: string;
|
|
77
|
-
labelWrapper: string;
|
|
78
|
-
label: string;
|
|
79
|
-
value: string;
|
|
80
|
-
trackWrapper: string;
|
|
81
|
-
track: string[];
|
|
82
|
-
filter: string[];
|
|
83
|
-
thumb: string[];
|
|
84
|
-
}, undefined, {
|
|
85
|
-
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
86
|
-
size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
87
|
-
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
88
|
-
fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
89
|
-
isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
90
|
-
hideThumb?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
91
|
-
gradient?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
} & tailwind_variants_dist_config.TWMConfig & {
|
|
94
|
-
twMergeConfig: {
|
|
95
|
-
classGroups: {
|
|
96
|
-
fontSize: {
|
|
97
|
-
text: string[];
|
|
98
|
-
}[];
|
|
99
|
-
borderRadius: {
|
|
100
|
-
rounded: string[];
|
|
101
|
-
}[];
|
|
102
|
-
boxShadow: {
|
|
103
|
-
shadow: string[];
|
|
104
|
-
}[];
|
|
105
|
-
padding: {
|
|
106
|
-
p: string[];
|
|
107
|
-
}[];
|
|
108
|
-
gap: {
|
|
109
|
-
gap: string[];
|
|
110
|
-
}[];
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
}, {
|
|
114
|
-
size: {
|
|
115
|
-
sm: {
|
|
116
|
-
track: string;
|
|
117
|
-
thumb: string[];
|
|
118
|
-
label: string;
|
|
119
|
-
value: string;
|
|
120
|
-
};
|
|
121
|
-
md: {
|
|
122
|
-
track: string;
|
|
123
|
-
thumb: string[];
|
|
124
|
-
label: string;
|
|
125
|
-
value: string;
|
|
126
|
-
};
|
|
127
|
-
lg: {
|
|
128
|
-
track: string;
|
|
129
|
-
thumb: string[];
|
|
130
|
-
label: string;
|
|
131
|
-
value: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
color: {
|
|
135
|
-
primary: {
|
|
136
|
-
filter: string;
|
|
137
|
-
thumb: string;
|
|
138
|
-
};
|
|
139
|
-
secondary: {
|
|
140
|
-
filter: string;
|
|
141
|
-
thumb: string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
gradient: {
|
|
145
|
-
true: {
|
|
146
|
-
filter: string[];
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
fullWidth: {
|
|
150
|
-
true: {
|
|
151
|
-
base: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
hideThumb: {
|
|
155
|
-
true: {
|
|
156
|
-
thumb: string;
|
|
157
|
-
track: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
isDisabled: {
|
|
161
|
-
false: {
|
|
162
|
-
thumb: string[];
|
|
163
|
-
};
|
|
164
|
-
true: {
|
|
165
|
-
thumb: string[];
|
|
166
|
-
filter: string[];
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
}, {
|
|
170
|
-
base: string;
|
|
171
|
-
labelWrapper: string;
|
|
172
|
-
label: string;
|
|
173
|
-
value: string;
|
|
174
|
-
trackWrapper: string;
|
|
175
|
-
track: string[];
|
|
176
|
-
filter: string[];
|
|
177
|
-
thumb: string[];
|
|
178
|
-
}, tailwind_variants.TVReturnType<{
|
|
179
|
-
size: {
|
|
180
|
-
sm: {
|
|
181
|
-
track: string;
|
|
182
|
-
thumb: string[];
|
|
183
|
-
label: string;
|
|
184
|
-
value: string;
|
|
185
|
-
};
|
|
186
|
-
md: {
|
|
187
|
-
track: string;
|
|
188
|
-
thumb: string[];
|
|
189
|
-
label: string;
|
|
190
|
-
value: string;
|
|
191
|
-
};
|
|
192
|
-
lg: {
|
|
193
|
-
track: string;
|
|
194
|
-
thumb: string[];
|
|
195
|
-
label: string;
|
|
196
|
-
value: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
color: {
|
|
200
|
-
primary: {
|
|
201
|
-
filter: string;
|
|
202
|
-
thumb: string;
|
|
203
|
-
};
|
|
204
|
-
secondary: {
|
|
205
|
-
filter: string;
|
|
206
|
-
thumb: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
gradient: {
|
|
210
|
-
true: {
|
|
211
|
-
filter: string[];
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
fullWidth: {
|
|
215
|
-
true: {
|
|
216
|
-
base: string;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
hideThumb: {
|
|
220
|
-
true: {
|
|
221
|
-
thumb: string;
|
|
222
|
-
track: string;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
isDisabled: {
|
|
226
|
-
false: {
|
|
227
|
-
thumb: string[];
|
|
228
|
-
};
|
|
229
|
-
true: {
|
|
230
|
-
thumb: string[];
|
|
231
|
-
filter: string[];
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
}, {
|
|
235
|
-
base: string;
|
|
236
|
-
labelWrapper: string;
|
|
237
|
-
label: string;
|
|
238
|
-
value: string;
|
|
239
|
-
trackWrapper: string;
|
|
240
|
-
track: string[];
|
|
241
|
-
filter: string[];
|
|
242
|
-
thumb: string[];
|
|
243
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
244
|
-
size: {
|
|
245
|
-
sm: {
|
|
246
|
-
track: string;
|
|
247
|
-
thumb: string[];
|
|
248
|
-
label: string;
|
|
249
|
-
value: string;
|
|
250
|
-
};
|
|
251
|
-
md: {
|
|
252
|
-
track: string;
|
|
253
|
-
thumb: string[];
|
|
254
|
-
label: string;
|
|
255
|
-
value: string;
|
|
256
|
-
};
|
|
257
|
-
lg: {
|
|
258
|
-
track: string;
|
|
259
|
-
thumb: string[];
|
|
260
|
-
label: string;
|
|
261
|
-
value: string;
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
color: {
|
|
265
|
-
primary: {
|
|
266
|
-
filter: string;
|
|
267
|
-
thumb: string;
|
|
268
|
-
};
|
|
269
|
-
secondary: {
|
|
270
|
-
filter: string;
|
|
271
|
-
thumb: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
gradient: {
|
|
275
|
-
true: {
|
|
276
|
-
filter: string[];
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
fullWidth: {
|
|
280
|
-
true: {
|
|
281
|
-
base: string;
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
hideThumb: {
|
|
285
|
-
true: {
|
|
286
|
-
thumb: string;
|
|
287
|
-
track: string;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
isDisabled: {
|
|
291
|
-
false: {
|
|
292
|
-
thumb: string[];
|
|
293
|
-
};
|
|
294
|
-
true: {
|
|
295
|
-
thumb: string[];
|
|
296
|
-
filter: string[];
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
}, {
|
|
300
|
-
size: {
|
|
301
|
-
sm: {
|
|
302
|
-
track: string;
|
|
303
|
-
thumb: string[];
|
|
304
|
-
label: string;
|
|
305
|
-
value: string;
|
|
306
|
-
};
|
|
307
|
-
md: {
|
|
308
|
-
track: string;
|
|
309
|
-
thumb: string[];
|
|
310
|
-
label: string;
|
|
311
|
-
value: string;
|
|
312
|
-
};
|
|
313
|
-
lg: {
|
|
314
|
-
track: string;
|
|
315
|
-
thumb: string[];
|
|
316
|
-
label: string;
|
|
317
|
-
value: string;
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
color: {
|
|
321
|
-
primary: {
|
|
322
|
-
filter: string;
|
|
323
|
-
thumb: string;
|
|
324
|
-
};
|
|
325
|
-
secondary: {
|
|
326
|
-
filter: string;
|
|
327
|
-
thumb: string;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
gradient: {
|
|
331
|
-
true: {
|
|
332
|
-
filter: string[];
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
fullWidth: {
|
|
336
|
-
true: {
|
|
337
|
-
base: string;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
hideThumb: {
|
|
341
|
-
true: {
|
|
342
|
-
thumb: string;
|
|
343
|
-
track: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
isDisabled: {
|
|
347
|
-
false: {
|
|
348
|
-
thumb: string[];
|
|
349
|
-
};
|
|
350
|
-
true: {
|
|
351
|
-
thumb: string[];
|
|
352
|
-
filter: string[];
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
}>, unknown, unknown, undefined>>;
|
|
356
|
-
type SliderVariantProps = VariantProps<typeof slider>;
|
|
357
|
-
type SliderSlots = keyof ReturnType<typeof slider>;
|
|
358
|
-
|
|
359
|
-
export { type Props, type SliderProps, type SliderSlots, type SliderVariantProps, Slider as default, slider };
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/components/slider/slider.tsx
|
|
22
|
-
var slider_exports = {};
|
|
23
|
-
__export(slider_exports, {
|
|
24
|
-
default: () => slider_default,
|
|
25
|
-
slider: () => slider
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(slider_exports);
|
|
28
|
-
var import_react = require("react");
|
|
29
|
-
|
|
30
|
-
// src/utils/tailwind-variants.ts
|
|
31
|
-
var import_tailwind_variants = require("tailwind-variants");
|
|
32
|
-
var COMMON_SIZE = ["sm", "md", "lg"];
|
|
33
|
-
var COMMON_RADIUS = ["xlg", "xxlg", "none", "full"];
|
|
34
|
-
var COMMON_FONTSIZE = ["h1", "h2", "h3", "h4", "h5"];
|
|
35
|
-
var COMMON_SHADOW = ["inner", "drop"];
|
|
36
|
-
var tv = (0, import_tailwind_variants.createTV)({
|
|
37
|
-
// twMerge: false,
|
|
38
|
-
twMergeConfig: {
|
|
39
|
-
classGroups: {
|
|
40
|
-
fontSize: [{ text: [...COMMON_SIZE, ...COMMON_FONTSIZE] }],
|
|
41
|
-
borderRadius: [{ rounded: [...COMMON_RADIUS, ...COMMON_SIZE] }],
|
|
42
|
-
boxShadow: [{ shadow: [...COMMON_SHADOW] }],
|
|
43
|
-
padding: [{ p: [...COMMON_SIZE] }],
|
|
44
|
-
gap: [{ gap: [...COMMON_SIZE] }]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
// src/components/slider/slider.tsx
|
|
50
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
-
var Slider = (0, import_react.forwardRef)((props, ref) => {
|
|
52
|
-
const { size, onChange, ...inputProps } = props;
|
|
53
|
-
const { base, trackWrapper, track, thumb, labelWrapper, label, filter } = slider({ ...props });
|
|
54
|
-
const min = props.min || 0;
|
|
55
|
-
const max = props.max || 0;
|
|
56
|
-
const [value, setValue] = (0, import_react.useState)(props.value || 0);
|
|
57
|
-
const [percentage, setPercentage] = (0, import_react.useState)(props.value || 0);
|
|
58
|
-
const [mouseStatus, setMouseStatus] = (0, import_react.useState)();
|
|
59
|
-
const THUMB_SIZE = props.size === "sm" ? 8 : props.size === "md" ? 10 : 12;
|
|
60
|
-
const trackRef = (0, import_react.useRef)(null);
|
|
61
|
-
const mouseStatusRef = (0, import_react.useRef)();
|
|
62
|
-
(0, import_react.useEffect)(() => {
|
|
63
|
-
const defaultValue = Math.min(Math.max(value, min), max);
|
|
64
|
-
const defaultPercentage = Math.floor(defaultValue / max * 100);
|
|
65
|
-
setPercentage(defaultPercentage);
|
|
66
|
-
}, [max, min, value]);
|
|
67
|
-
const handleMouseDown = () => {
|
|
68
|
-
mouseStatusRef.current = "DOWN";
|
|
69
|
-
setMouseStatus("DOWN");
|
|
70
|
-
};
|
|
71
|
-
const handleClickTrack = (event) => {
|
|
72
|
-
var _a;
|
|
73
|
-
if (!trackRef.current) return;
|
|
74
|
-
if (props.isDisabled) return;
|
|
75
|
-
const trackRect = trackRef.current.getBoundingClientRect();
|
|
76
|
-
const offsetX = event.clientX - trackRect.left;
|
|
77
|
-
const _percentage = Math.min(100, Math.max(0, offsetX / trackRect.width * 100));
|
|
78
|
-
const calculatedValue = Math.floor(_percentage / 100 * (max - min) + min);
|
|
79
|
-
setValue(calculatedValue);
|
|
80
|
-
setPercentage(_percentage);
|
|
81
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, calculatedValue);
|
|
82
|
-
};
|
|
83
|
-
(0, import_react.useEffect)(() => {
|
|
84
|
-
const handleMouseMove = (event) => {
|
|
85
|
-
var _a;
|
|
86
|
-
if (!props.isDisabled) {
|
|
87
|
-
if (mouseStatusRef.current === "DOWN" && trackRef.current) {
|
|
88
|
-
const trackRect = trackRef.current.getBoundingClientRect();
|
|
89
|
-
const offsetX = event.clientX - trackRect.left;
|
|
90
|
-
const _percentage = Math.min(100, Math.max(0, offsetX / trackRect.width * 100));
|
|
91
|
-
const calculatedValue = Math.floor(_percentage / 100 * (max - min) + min);
|
|
92
|
-
setPercentage(_percentage);
|
|
93
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, calculatedValue);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
const handleMouseUp = () => {
|
|
98
|
-
mouseStatusRef.current = "UP";
|
|
99
|
-
setMouseStatus("UP");
|
|
100
|
-
};
|
|
101
|
-
const handleMouseLeave = () => {
|
|
102
|
-
mouseStatusRef.current = "UP";
|
|
103
|
-
setMouseStatus("UP");
|
|
104
|
-
};
|
|
105
|
-
document.addEventListener("mousemove", handleMouseMove);
|
|
106
|
-
document.addEventListener("mouseup", handleMouseUp);
|
|
107
|
-
document.addEventListener("mouseleave", handleMouseLeave);
|
|
108
|
-
return () => {
|
|
109
|
-
document.removeEventListener("mousemove", handleMouseMove);
|
|
110
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
111
|
-
document.removeEventListener("mouseleave", handleMouseLeave);
|
|
112
|
-
};
|
|
113
|
-
}, [props.isDisabled]);
|
|
114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: base(), children: [
|
|
115
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: labelWrapper(), children: props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: label(), children: props.label }) }),
|
|
116
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: trackWrapper(), onMouseDown: handleMouseDown, children: [
|
|
117
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: trackRef, className: track(), onClick: handleClickTrack, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: filter(), style: { width: `${percentage}%` } }) }),
|
|
118
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
-
"div",
|
|
120
|
-
{
|
|
121
|
-
"data-dragging": mouseStatus === "DOWN",
|
|
122
|
-
className: thumb(),
|
|
123
|
-
style: { left: `calc(${percentage}% - ${THUMB_SIZE / 2}px)` }
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
127
|
-
"input",
|
|
128
|
-
{
|
|
129
|
-
ref,
|
|
130
|
-
className: "hidden",
|
|
131
|
-
type: "range",
|
|
132
|
-
min: props.min,
|
|
133
|
-
max: props.max,
|
|
134
|
-
value: props.value,
|
|
135
|
-
...inputProps
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
] })
|
|
139
|
-
] });
|
|
140
|
-
});
|
|
141
|
-
Slider.displayName = "Slider";
|
|
142
|
-
var slider_default = Slider;
|
|
143
|
-
var slider = tv({
|
|
144
|
-
slots: {
|
|
145
|
-
base: "flex flex-col w-[200px]",
|
|
146
|
-
labelWrapper: "flex justify-between items-center",
|
|
147
|
-
label: "",
|
|
148
|
-
value: "",
|
|
149
|
-
trackWrapper: "relative flex flex-direction items-center",
|
|
150
|
-
track: ["flex", "w-full", "relative", "rounded-full", "bg-neutral-soft"],
|
|
151
|
-
filter: ["h-full", "absolute", "rounded-full"],
|
|
152
|
-
thumb: ["absolute", "flex", "justify-center", "items-center", "rounded-full"]
|
|
153
|
-
},
|
|
154
|
-
variants: {
|
|
155
|
-
size: {
|
|
156
|
-
sm: {
|
|
157
|
-
track: "h-[2px]",
|
|
158
|
-
thumb: ["w-[6px] h-[6px]", "hover:shadow-[0px_0px_0px_2px]"],
|
|
159
|
-
label: "text-sm",
|
|
160
|
-
value: "text-sm"
|
|
161
|
-
},
|
|
162
|
-
md: {
|
|
163
|
-
track: "h-[4px]",
|
|
164
|
-
thumb: ["w-[8px] h-[8px]", "hover:shadow-[0px_0px_0px_3px]"],
|
|
165
|
-
label: "text-md",
|
|
166
|
-
value: "text-md"
|
|
167
|
-
},
|
|
168
|
-
lg: {
|
|
169
|
-
track: "h-[6px]",
|
|
170
|
-
thumb: ["w-[12px] h-[12px]", "hover:shadow-[0px_0px_0px_4px]"],
|
|
171
|
-
label: "text-lg",
|
|
172
|
-
value: "text-lg"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
color: {
|
|
176
|
-
primary: {
|
|
177
|
-
filter: "bg-primary-main",
|
|
178
|
-
thumb: "bg-primary-main"
|
|
179
|
-
},
|
|
180
|
-
secondary: {
|
|
181
|
-
filter: "bg-secondary-main",
|
|
182
|
-
thumb: "bg-secondary-main"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
gradient: {
|
|
186
|
-
true: {
|
|
187
|
-
filter: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
fullWidth: {
|
|
191
|
-
true: {
|
|
192
|
-
base: "w-full"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
hideThumb: {
|
|
196
|
-
true: {
|
|
197
|
-
thumb: "sr-only",
|
|
198
|
-
track: "overflow-hidden cursor-pointer"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
isDisabled: {
|
|
202
|
-
false: {
|
|
203
|
-
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
204
|
-
},
|
|
205
|
-
true: {
|
|
206
|
-
thumb: ["bg-neutral-light", "hover:shadow-none", "cursor-default"],
|
|
207
|
-
filter: ["bg-neutral-light", "from-none", "to-none", "cursor-default"]
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
compoundVariants: [
|
|
212
|
-
// filter boxShadow & color
|
|
213
|
-
{
|
|
214
|
-
isDisabled: false,
|
|
215
|
-
color: "primary",
|
|
216
|
-
class: {
|
|
217
|
-
thumb: "hover:shadow-primary-main/20"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
isDisabled: false,
|
|
222
|
-
color: "secondary",
|
|
223
|
-
class: {
|
|
224
|
-
thumb: "data-[dragging=true]:shadow-secondary-main/20"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
defaultVariants: {
|
|
229
|
-
size: "md",
|
|
230
|
-
color: "primary",
|
|
231
|
-
hideThumb: false,
|
|
232
|
-
isDisabled: false
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
236
|
-
0 && (module.exports = {
|
|
237
|
-
slider
|
|
238
|
-
});
|