@deepnoid/ui 0.0.111 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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-RZZWHI6O.mjs → chunk-2HSK6XGZ.mjs} +8 -3
- package/dist/{chunk-TSMVRGDO.mjs → chunk-3AMZ55Y6.mjs} +14 -8
- package/dist/{chunk-VWD26TIQ.mjs → chunk-5IQKKLZY.mjs} +4 -4
- package/dist/{chunk-EYY4CRRR.mjs → chunk-5S4XGPBB.mjs} +15 -17
- package/dist/chunk-6PNKRBUT.mjs +34 -0
- package/dist/{chunk-IZ6II3QA.mjs → chunk-AC6TWLRT.mjs} +1 -13
- package/dist/{chunk-OJ2OEI5B.mjs → chunk-BKE6QF6W.mjs} +7 -0
- package/dist/{chunk-BCN5F2MN.mjs → chunk-CATOSBI7.mjs} +2 -2
- package/dist/{chunk-PXUBPWKU.mjs → chunk-FYJZ7Q5L.mjs} +4 -4
- package/dist/chunk-IE2BRM7Z.mjs +600 -0
- package/dist/chunk-KCYJYS66.mjs +198 -0
- package/dist/chunk-LXHUO6VM.mjs +46 -0
- package/dist/chunk-MW6Y3FSE.mjs +211 -0
- package/dist/{chunk-IOCRFIQF.mjs → chunk-P2TMIZRH.mjs} +131 -30
- package/dist/{chunk-KRI5IALM.mjs → chunk-P5WT7WJO.mjs} +6 -3
- package/dist/{chunk-PO3ADNA5.mjs → chunk-PFYYYUJW.mjs} +1 -1
- package/dist/chunk-PKVQXVCS.mjs +170 -0
- package/dist/{chunk-NGQ3MK2J.mjs → chunk-Q5WACGVP.mjs} +1 -1
- package/dist/{chunk-FDKT4IBP.mjs → chunk-QJHZJRSQ.mjs} +4 -4
- package/dist/{chunk-7HHFRKJU.mjs → chunk-QNA2GDTN.mjs} +2 -2
- package/dist/{chunk-UZL66GNP.mjs → chunk-RQ76IOYC.mjs} +66 -7
- package/dist/chunk-RRL6KBU4.mjs +145 -0
- package/dist/chunk-SE5TU755.mjs +1 -0
- package/dist/{chunk-ZNEEYSIK.mjs → chunk-SK2A72R2.mjs} +10 -4
- package/dist/{chunk-PRLGHYFO.mjs → chunk-UAMIPCUD.mjs} +7 -7
- package/dist/{chunk-2BCJZILI.mjs → chunk-VBFXKJTI.mjs} +13 -7
- package/dist/chunk-VWMXZUR2.mjs +82 -0
- package/dist/chunk-WQBOPCH6.mjs +29 -0
- package/dist/chunk-WSIADHVC.mjs +126 -0
- package/dist/chunk-X2MQCISM.mjs +413 -0
- package/dist/chunk-XAA5KY6A.mjs +63 -0
- package/dist/chunk-XTGRSVYO.mjs +221 -0
- package/dist/{chunk-QGZEHOKA.mjs → chunk-YGOEKSNZ.mjs} +5 -2
- package/dist/chunk-Z74QNVPG.mjs +127 -0
- 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} +463 -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 +845 -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 +354 -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 +360 -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 +4076 -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 +4082 -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 +287 -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 +609 -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 +614 -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 +473 -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 +473 -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 +4209 -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 +4215 -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 +424 -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 +683 -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 +683 -151
- package/dist/components/dateTimePicker/index.mjs +11 -10
- package/dist/components/dateTimePicker/timePicker.js +4227 -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 +0 -1
- package/dist/components/input/index.d.ts +0 -1
- package/dist/components/input/index.js +430 -43
- package/dist/components/input/index.mjs +5 -5
- package/dist/components/input/input.d.mts +23 -180
- package/dist/components/input/input.d.ts +23 -180
- package/dist/components/input/input.js +430 -43
- package/dist/components/input/input.mjs +5 -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 +4170 -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 +299 -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 +4168 -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 +639 -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 +639 -454
- package/dist/components/modal/modal.mjs +10 -7
- package/dist/components/pagination/index.js +4354 -88
- package/dist/components/pagination/index.mjs +8 -3
- package/dist/components/pagination/pagination.d.mts +22 -27
- package/dist/components/pagination/pagination.d.ts +22 -27
- package/dist/components/pagination/pagination.js +4354 -88
- package/dist/components/pagination/pagination.mjs +8 -3
- 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 +433 -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 +433 -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 +446 -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 +440 -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 +446 -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 +563 -161
- package/dist/components/table/index.mjs +9 -9
- package/dist/components/table/table-body.d.mts +4 -5
- package/dist/components/table/table-body.d.ts +4 -5
- package/dist/components/table/table-body.js +560 -161
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.d.mts +2 -3
- package/dist/components/table/table-head.d.ts +2 -3
- package/dist/components/table/table-head.js +433 -127
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.d.mts +14 -354
- package/dist/components/table/table.d.ts +14 -354
- package/dist/components/table/table.js +563 -161
- package/dist/components/table/table.mjs +9 -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 +300 -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 +300 -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 +435 -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 +434 -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 +435 -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 +421 -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 +421 -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 +2291 -2534
- package/dist/index.mjs +59 -770
- 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 +297 -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-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/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 -13205
- package/dist/components/pagination/pagination.test.mjs +0 -33
- 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
package/dist/chunk-J725QONZ.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/utils/tailwind-variants.ts
|
|
4
|
-
import { createTV } from "tailwind-variants";
|
|
5
|
-
var COMMON_SIZE = ["sm", "md", "lg"];
|
|
6
|
-
var COMMON_RADIUS = ["xlg", "xxlg", "none", "full"];
|
|
7
|
-
var COMMON_FONTSIZE = ["h1", "h2", "h3", "h4", "h5"];
|
|
8
|
-
var COMMON_SHADOW = ["inner", "drop"];
|
|
9
|
-
var tv = createTV({
|
|
10
|
-
// twMerge: false,
|
|
11
|
-
twMergeConfig: {
|
|
12
|
-
classGroups: {
|
|
13
|
-
fontSize: [{ text: [...COMMON_SIZE, ...COMMON_FONTSIZE] }],
|
|
14
|
-
borderRadius: [{ rounded: [...COMMON_RADIUS, ...COMMON_SIZE] }],
|
|
15
|
-
boxShadow: [{ shadow: [...COMMON_SHADOW] }],
|
|
16
|
-
padding: [{ p: [...COMMON_SIZE] }],
|
|
17
|
-
gap: [{ gap: [...COMMON_SIZE] }]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
tv
|
|
24
|
-
};
|
package/dist/chunk-L6BQA6GI.mjs
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Icon_default
|
|
4
|
-
} from "./chunk-LCI6RPWE.mjs";
|
|
5
|
-
import {
|
|
6
|
-
mapPropsVariants
|
|
7
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
tv
|
|
10
|
-
} from "./chunk-J725QONZ.mjs";
|
|
11
|
-
|
|
12
|
-
// src/components/accordion/accordionItem.tsx
|
|
13
|
-
import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var AccordionItem = forwardRef((originalProps, ref) => {
|
|
16
|
-
const [props, variantProps] = mapPropsVariants(originalProps, accordionItem.variantKeys);
|
|
17
|
-
const { title, children, startContent, endContent, classNames, isOpen, onToggle } = props;
|
|
18
|
-
const slots = useMemo(
|
|
19
|
-
() => accordionItem({ ...variantProps }),
|
|
20
|
-
[...Object.values(variantProps)]
|
|
21
|
-
);
|
|
22
|
-
const contentRef = useRef(null);
|
|
23
|
-
const [contentHeight, setContentHeight] = useState("0px");
|
|
24
|
-
const disableAnimation = originalProps.disableAnimation === true;
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (contentRef.current) {
|
|
27
|
-
setContentHeight(isOpen ? `${contentRef.current.scrollHeight}px` : "0px");
|
|
28
|
-
}
|
|
29
|
-
}, [isOpen]);
|
|
30
|
-
const getWrapperProps = useCallback(() => {
|
|
31
|
-
return {
|
|
32
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
33
|
-
};
|
|
34
|
-
}, [slots, classNames == null ? void 0 : classNames.base]);
|
|
35
|
-
const getHeaderProps = useCallback(() => {
|
|
36
|
-
return {
|
|
37
|
-
className: slots.header({ class: classNames == null ? void 0 : classNames.header })
|
|
38
|
-
};
|
|
39
|
-
}, [slots, classNames == null ? void 0 : classNames.header]);
|
|
40
|
-
const getHeaderTitleWrapperProps = useCallback(() => {
|
|
41
|
-
return {
|
|
42
|
-
className: slots.headerTitleWrapper({ class: classNames == null ? void 0 : classNames.headerTitleWrapper })
|
|
43
|
-
};
|
|
44
|
-
}, [slots, classNames == null ? void 0 : classNames.headerTitleWrapper]);
|
|
45
|
-
const getHeaderTitleProps = useCallback(() => {
|
|
46
|
-
return {
|
|
47
|
-
className: slots.headerTitle({ class: classNames == null ? void 0 : classNames.headerTitle })
|
|
48
|
-
};
|
|
49
|
-
}, [slots, classNames == null ? void 0 : classNames.headerTitle]);
|
|
50
|
-
const getHeaderArrowIconProps = useCallback(() => {
|
|
51
|
-
return {
|
|
52
|
-
className: slots.headerArrowIcon({ class: classNames == null ? void 0 : classNames.headerArrowIcon })
|
|
53
|
-
};
|
|
54
|
-
}, [slots, classNames == null ? void 0 : classNames.headerArrowIcon]);
|
|
55
|
-
const getContentWrapperProps = useCallback(() => {
|
|
56
|
-
return {
|
|
57
|
-
className: slots.contentWrapper({ class: classNames == null ? void 0 : classNames.contentWrapper })
|
|
58
|
-
};
|
|
59
|
-
}, [slots, classNames == null ? void 0 : classNames.contentWrapper]);
|
|
60
|
-
const getContentProps = useCallback(() => {
|
|
61
|
-
var _a;
|
|
62
|
-
return {
|
|
63
|
-
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
64
|
-
style: disableAnimation ? { maxHeight: isOpen ? `${(_a = contentRef.current) == null ? void 0 : _a.scrollHeight}px` : "0px", opacity: isOpen ? 1 : 0 } : { maxHeight: contentHeight, opacity: isOpen ? 1 : 0 }
|
|
65
|
-
};
|
|
66
|
-
}, [slots, classNames == null ? void 0 : classNames.content, contentHeight, isOpen, disableAnimation]);
|
|
67
|
-
return /* @__PURE__ */ jsxs("div", { ref, ...getWrapperProps(), children: [
|
|
68
|
-
/* @__PURE__ */ jsxs("div", { "data-isOpen": isOpen, ...getHeaderProps(), onClick: onToggle, children: [
|
|
69
|
-
/* @__PURE__ */ jsxs("div", { ...getHeaderTitleWrapperProps(), children: [
|
|
70
|
-
startContent && startContent,
|
|
71
|
-
/* @__PURE__ */ jsx("span", { ...getHeaderTitleProps(), children: title })
|
|
72
|
-
] }),
|
|
73
|
-
endContent && endContent,
|
|
74
|
-
/* @__PURE__ */ jsx(Icon_default, { name: isOpen ? "brace-up" : "brace-down", ...getHeaderArrowIconProps() })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx("div", { ...getContentWrapperProps(), children: /* @__PURE__ */ jsx("div", { ref: contentRef, ...getContentProps(), children }) })
|
|
77
|
-
] });
|
|
78
|
-
});
|
|
79
|
-
AccordionItem.displayName = "AccordionItem";
|
|
80
|
-
var accordionItem_default = AccordionItem;
|
|
81
|
-
var accordionItem = tv({
|
|
82
|
-
slots: {
|
|
83
|
-
base: ["group", "w-full"],
|
|
84
|
-
header: [
|
|
85
|
-
"group",
|
|
86
|
-
"flex",
|
|
87
|
-
"justify-between",
|
|
88
|
-
"items-center",
|
|
89
|
-
"text-foreground",
|
|
90
|
-
"px-[10px]",
|
|
91
|
-
"cursor-pointer",
|
|
92
|
-
"select-none",
|
|
93
|
-
"gap-[10px]"
|
|
94
|
-
],
|
|
95
|
-
headerTitleWrapper: [
|
|
96
|
-
"flex",
|
|
97
|
-
"w-full",
|
|
98
|
-
"gap-[10px]",
|
|
99
|
-
"overflow-hidden",
|
|
100
|
-
"whitespace-nowrap",
|
|
101
|
-
"text-overflow-ellipsis"
|
|
102
|
-
],
|
|
103
|
-
headerTitle: "truncate",
|
|
104
|
-
headerArrowIcon: ["text-neutral-dark"],
|
|
105
|
-
contentWrapper: [],
|
|
106
|
-
content: ["overflow-hidden", "transition-all", "duration-300", "ease-in-out", "max-h-0", "opacity-0"]
|
|
107
|
-
},
|
|
108
|
-
variants: {
|
|
109
|
-
variant: {
|
|
110
|
-
solid: {
|
|
111
|
-
header: ["bg-trans-soft"]
|
|
112
|
-
},
|
|
113
|
-
line: {
|
|
114
|
-
header: ["bg-transparent", "!rounded-none"],
|
|
115
|
-
contentWrapper: ["border-b", "group-last:border-b-0"]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
size: {
|
|
119
|
-
sm: {
|
|
120
|
-
header: "h-[30px] text-sm rounded-sm"
|
|
121
|
-
},
|
|
122
|
-
md: {
|
|
123
|
-
header: "h-[40px] text-md rounded-md"
|
|
124
|
-
},
|
|
125
|
-
lg: {
|
|
126
|
-
header: "h-[50px] text-lg rounded-lg"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
color: {
|
|
130
|
-
primary: {
|
|
131
|
-
header: ["data-[isOpen=true]:bg-primary-soft"],
|
|
132
|
-
headerArrowIcon: ["group-data-[isOpen=true]:text-primary-main"]
|
|
133
|
-
},
|
|
134
|
-
secondary: {
|
|
135
|
-
header: ["data-[isOpen=true]:bg-secondary-soft"],
|
|
136
|
-
headerArrowIcon: ["group-data-[isOpen=true]:text-secondary-main"]
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
isInGroup: {
|
|
140
|
-
true: ""
|
|
141
|
-
},
|
|
142
|
-
disableAnimation: {
|
|
143
|
-
true: {
|
|
144
|
-
content: ["transition-none"]
|
|
145
|
-
},
|
|
146
|
-
false: {}
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
defaultVariants: {
|
|
150
|
-
variant: "solid",
|
|
151
|
-
color: "primary",
|
|
152
|
-
size: "md",
|
|
153
|
-
isInGroup: false,
|
|
154
|
-
disableAnimation: false
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
export {
|
|
159
|
-
accordionItem_default
|
|
160
|
-
};
|
package/dist/chunk-N2JULHST.mjs
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
tv
|
|
4
|
-
} from "./chunk-J725QONZ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/components/progress/progress.tsx
|
|
7
|
-
import { forwardRef, useCallback } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
var Progress = forwardRef((props, ref) => {
|
|
10
|
-
const { base, labelWrapper, label, output, track, indicator } = progress({ ...props });
|
|
11
|
-
const shouldShowLabelWrapper = props.label || props.showValueLabel;
|
|
12
|
-
const normalizedValue = props.value !== void 0 ? Math.min(Math.max(props.value, 0), 100) : 0;
|
|
13
|
-
const getBaseProps = useCallback(
|
|
14
|
-
() => {
|
|
15
|
-
var _a;
|
|
16
|
-
return {
|
|
17
|
-
className: base({ class: (_a = props.classNames) == null ? void 0 : _a.base })
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
[base, props.classNames]
|
|
21
|
-
);
|
|
22
|
-
const getLabelWrapperProps = useCallback(
|
|
23
|
-
() => {
|
|
24
|
-
var _a;
|
|
25
|
-
return {
|
|
26
|
-
className: labelWrapper({ class: (_a = props.classNames) == null ? void 0 : _a.labelWrapper })
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
[labelWrapper, props.classNames]
|
|
30
|
-
);
|
|
31
|
-
const getLabelProps = useCallback(
|
|
32
|
-
() => {
|
|
33
|
-
var _a;
|
|
34
|
-
return {
|
|
35
|
-
className: label({ class: (_a = props.classNames) == null ? void 0 : _a.label })
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
[label, props.classNames]
|
|
39
|
-
);
|
|
40
|
-
const getOutputProps = useCallback(
|
|
41
|
-
() => {
|
|
42
|
-
var _a;
|
|
43
|
-
return {
|
|
44
|
-
className: output({ class: (_a = props.classNames) == null ? void 0 : _a.output })
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
[output, props.classNames]
|
|
48
|
-
);
|
|
49
|
-
const getTrackProps = useCallback(
|
|
50
|
-
() => {
|
|
51
|
-
var _a;
|
|
52
|
-
return {
|
|
53
|
-
className: track({ class: (_a = props.classNames) == null ? void 0 : _a.track })
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
[track, props.classNames]
|
|
57
|
-
);
|
|
58
|
-
const getIndicatorProps = useCallback(
|
|
59
|
-
() => {
|
|
60
|
-
var _a;
|
|
61
|
-
return {
|
|
62
|
-
className: indicator({ class: (_a = props.classNames) == null ? void 0 : _a.indicator }),
|
|
63
|
-
style: {
|
|
64
|
-
width: `${normalizedValue}%`,
|
|
65
|
-
transition: normalizedValue !== 0 && normalizedValue !== 100 ? "width 0.5s linear" : "none"
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
[indicator, normalizedValue, props.classNames]
|
|
70
|
-
);
|
|
71
|
-
return /* @__PURE__ */ jsxs("div", { ref, ...getBaseProps(), "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": normalizedValue, children: [
|
|
72
|
-
shouldShowLabelWrapper && /* @__PURE__ */ jsxs("div", { ...getLabelWrapperProps(), children: [
|
|
73
|
-
/* @__PURE__ */ jsx("span", { ...getLabelProps(), children: props.label }),
|
|
74
|
-
props.showValueLabel && /* @__PURE__ */ jsx("span", { ...getOutputProps(), children: normalizedValue })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx("div", { ...getTrackProps(), children: /* @__PURE__ */ jsx("div", { ...getIndicatorProps() }) })
|
|
77
|
-
] });
|
|
78
|
-
});
|
|
79
|
-
Progress.displayName = "Progress";
|
|
80
|
-
var progress_default = Progress;
|
|
81
|
-
var progress = tv({
|
|
82
|
-
slots: {
|
|
83
|
-
base: ["flex", "flex-col", "gap-2", "w-[200px]"],
|
|
84
|
-
labelWrapper: ["flex", "justify-between"],
|
|
85
|
-
label: ["font-[500]"],
|
|
86
|
-
output: ["font-[500]"],
|
|
87
|
-
track: ["relative", "bg-neutral-soft", "rounded-full", "overflow-hidden"],
|
|
88
|
-
indicator: ["absolute", "h-full", "rounded-full"]
|
|
89
|
-
},
|
|
90
|
-
variants: {
|
|
91
|
-
color: {
|
|
92
|
-
primary: {
|
|
93
|
-
indicator: "bg-primary-main"
|
|
94
|
-
},
|
|
95
|
-
secondary: {
|
|
96
|
-
indicator: "bg-secondary-main"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
size: {
|
|
100
|
-
sm: {
|
|
101
|
-
label: "text-sm",
|
|
102
|
-
output: "text-sm",
|
|
103
|
-
track: "h-[2px]"
|
|
104
|
-
},
|
|
105
|
-
md: {
|
|
106
|
-
label: "text-md",
|
|
107
|
-
output: "text-md",
|
|
108
|
-
track: "h-[4px]"
|
|
109
|
-
},
|
|
110
|
-
lg: {
|
|
111
|
-
label: "text-lg",
|
|
112
|
-
output: "text-lg",
|
|
113
|
-
track: "h-[6px]"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
gradient: {
|
|
117
|
-
true: {
|
|
118
|
-
indicator: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
fullWidth: {
|
|
122
|
-
true: {
|
|
123
|
-
base: "w-full"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
isDisabled: {
|
|
127
|
-
true: {
|
|
128
|
-
base: ["opacity-disabled", "cursor-not-allowed"],
|
|
129
|
-
indicator: ["bg-neutral-light", "from-none", "to-none"]
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
defaultVariants: {
|
|
134
|
-
color: "primary",
|
|
135
|
-
size: "md"
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
progress_default
|
|
141
|
-
};
|
package/dist/chunk-ODMRJXLJ.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/tooltip/tooltip-utils.ts
|
|
4
|
-
var getTooltipPosition = (placement, targetRect, width, height, offset) => {
|
|
5
|
-
let tooltipX = 0, tooltipY = 0;
|
|
6
|
-
switch (placement) {
|
|
7
|
-
case "top":
|
|
8
|
-
tooltipX = targetRect.left + targetRect.width / 2 - width / 2;
|
|
9
|
-
tooltipY = targetRect.top - height - offset;
|
|
10
|
-
break;
|
|
11
|
-
case "left":
|
|
12
|
-
tooltipX = targetRect.left - width - offset;
|
|
13
|
-
tooltipY = targetRect.top + targetRect.height / 2 - height / 2;
|
|
14
|
-
break;
|
|
15
|
-
case "right":
|
|
16
|
-
tooltipX = targetRect.right + offset;
|
|
17
|
-
tooltipY = targetRect.top + targetRect.height / 2 - height / 2;
|
|
18
|
-
break;
|
|
19
|
-
case "bottom":
|
|
20
|
-
tooltipX = targetRect.left + targetRect.width / 2 - width / 2;
|
|
21
|
-
tooltipY = targetRect.bottom + offset;
|
|
22
|
-
break;
|
|
23
|
-
case "top-start":
|
|
24
|
-
tooltipX = targetRect.left;
|
|
25
|
-
tooltipY = targetRect.top - height - offset;
|
|
26
|
-
break;
|
|
27
|
-
case "top-end":
|
|
28
|
-
tooltipX = targetRect.right - width;
|
|
29
|
-
tooltipY = targetRect.top - height - offset;
|
|
30
|
-
break;
|
|
31
|
-
case "bottom-start":
|
|
32
|
-
tooltipX = targetRect.left;
|
|
33
|
-
tooltipY = targetRect.bottom + offset;
|
|
34
|
-
break;
|
|
35
|
-
case "bottom-end":
|
|
36
|
-
tooltipX = targetRect.right - width;
|
|
37
|
-
tooltipY = targetRect.bottom + offset;
|
|
38
|
-
break;
|
|
39
|
-
case "left-start":
|
|
40
|
-
tooltipX = targetRect.left - width - offset;
|
|
41
|
-
tooltipY = targetRect.top;
|
|
42
|
-
break;
|
|
43
|
-
case "left-end":
|
|
44
|
-
tooltipX = targetRect.left - width - offset;
|
|
45
|
-
tooltipY = targetRect.bottom - height;
|
|
46
|
-
break;
|
|
47
|
-
case "right-start":
|
|
48
|
-
tooltipX = targetRect.right + offset;
|
|
49
|
-
tooltipY = targetRect.top;
|
|
50
|
-
break;
|
|
51
|
-
case "right-end":
|
|
52
|
-
tooltipX = targetRect.right + offset;
|
|
53
|
-
tooltipY = targetRect.bottom - height;
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
return { tooltipX, tooltipY };
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
getTooltipPosition
|
|
61
|
-
};
|
package/dist/chunk-QWFOYO3D.mjs
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
mapPropsVariants
|
|
4
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-J725QONZ.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/radio/radio.tsx
|
|
10
|
-
import { forwardRef, useCallback, useMemo } from "react";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
var Radio = forwardRef((originalProps, ref) => {
|
|
13
|
-
const [props, variantProps] = mapPropsVariants(originalProps, radio.variantKeys);
|
|
14
|
-
const { children, classNames, ...inputProps } = props;
|
|
15
|
-
const slots = useMemo(() => radio({ ...variantProps }), [...Object.values(variantProps)]);
|
|
16
|
-
const getBaseProps = useCallback(
|
|
17
|
-
() => ({
|
|
18
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
19
|
-
}),
|
|
20
|
-
[slots, classNames]
|
|
21
|
-
);
|
|
22
|
-
const getInputProps = useCallback(() => {
|
|
23
|
-
return {
|
|
24
|
-
...inputProps,
|
|
25
|
-
type: "radio",
|
|
26
|
-
ref,
|
|
27
|
-
size: 0
|
|
28
|
-
};
|
|
29
|
-
}, [slots, classNames, inputProps]);
|
|
30
|
-
const getIconProps = useCallback(() => {
|
|
31
|
-
return {
|
|
32
|
-
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon })
|
|
33
|
-
};
|
|
34
|
-
}, [slots, classNames]);
|
|
35
|
-
const getLabelProps = useCallback(() => {
|
|
36
|
-
return {
|
|
37
|
-
className: slots.label({ class: classNames == null ? void 0 : classNames.label })
|
|
38
|
-
};
|
|
39
|
-
}, [slots, classNames]);
|
|
40
|
-
const getLabelWrapperProps = useCallback(() => {
|
|
41
|
-
return {
|
|
42
|
-
className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper })
|
|
43
|
-
};
|
|
44
|
-
}, [slots, classNames]);
|
|
45
|
-
return /* @__PURE__ */ jsxs("label", { ...getBaseProps(), children: [
|
|
46
|
-
/* @__PURE__ */ jsx("div", { className: "hidden", children: /* @__PURE__ */ jsx("input", { ...getInputProps() }) }),
|
|
47
|
-
/* @__PURE__ */ jsx("span", { ...getIconProps() }),
|
|
48
|
-
/* @__PURE__ */ jsx("div", { ...getLabelWrapperProps(), children: children && /* @__PURE__ */ jsx("span", { ...getLabelProps(), children }) })
|
|
49
|
-
] });
|
|
50
|
-
});
|
|
51
|
-
Radio.displayName = "Radio";
|
|
52
|
-
var radio_default = Radio;
|
|
53
|
-
var radio = tv({
|
|
54
|
-
slots: {
|
|
55
|
-
base: [
|
|
56
|
-
"group/radio",
|
|
57
|
-
"relative",
|
|
58
|
-
"max-w-fit",
|
|
59
|
-
"inline-flex",
|
|
60
|
-
"items-center",
|
|
61
|
-
"justify-start",
|
|
62
|
-
"cursor-pointer",
|
|
63
|
-
"tap-highlight-transparent"
|
|
64
|
-
],
|
|
65
|
-
icon: [
|
|
66
|
-
"relative",
|
|
67
|
-
"inline-flex",
|
|
68
|
-
"items-center",
|
|
69
|
-
"justify-center",
|
|
70
|
-
"flex-shrink-0",
|
|
71
|
-
"overflow-hidden",
|
|
72
|
-
// 테두리
|
|
73
|
-
"before:content-['']",
|
|
74
|
-
"before:absolute",
|
|
75
|
-
"before:inset-0",
|
|
76
|
-
"before:border-solid",
|
|
77
|
-
"before:border-[1px]",
|
|
78
|
-
"before:box-border",
|
|
79
|
-
"before:rounded-full",
|
|
80
|
-
"before:border-neutral-main",
|
|
81
|
-
// control
|
|
82
|
-
"after:content-['']",
|
|
83
|
-
"after:absolute",
|
|
84
|
-
"after:inset-0",
|
|
85
|
-
"after:rounded-full",
|
|
86
|
-
"after:border-box",
|
|
87
|
-
"after:scale-50",
|
|
88
|
-
"after:opacity-0",
|
|
89
|
-
"after:top-1/2",
|
|
90
|
-
"after:left-1/2",
|
|
91
|
-
"after:-translate-x-1/2",
|
|
92
|
-
"after:-translate-y-1/2",
|
|
93
|
-
"group-has-[:checked]/radio:after:opacity-100",
|
|
94
|
-
"group-has-[:checked]/radio:after:scale-100",
|
|
95
|
-
// hover
|
|
96
|
-
"group-hover/radio:before:bg-neutral-soft",
|
|
97
|
-
"before:transition duration-200",
|
|
98
|
-
// focus ring
|
|
99
|
-
"outline-none",
|
|
100
|
-
"group-focus/radio:z-10",
|
|
101
|
-
"group-focus/radio:ring-2",
|
|
102
|
-
"group-focus/radio:ring-focus",
|
|
103
|
-
"group-focus/radio:ring-offset-2",
|
|
104
|
-
"group-focus/radio:ring-offset-background"
|
|
105
|
-
],
|
|
106
|
-
labelWrapper: "flex flex-col",
|
|
107
|
-
label: "text-foreground select-none"
|
|
108
|
-
},
|
|
109
|
-
variants: {
|
|
110
|
-
color: {
|
|
111
|
-
primary: {
|
|
112
|
-
icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
|
|
113
|
-
},
|
|
114
|
-
secondary: {
|
|
115
|
-
icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
size: {
|
|
119
|
-
sm: {
|
|
120
|
-
icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
|
|
121
|
-
label: "text-sm"
|
|
122
|
-
},
|
|
123
|
-
md: {
|
|
124
|
-
icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
|
|
125
|
-
label: "text-md"
|
|
126
|
-
},
|
|
127
|
-
lg: {
|
|
128
|
-
icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
|
|
129
|
-
label: "text-lg"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
isInvalid: {
|
|
133
|
-
true: {
|
|
134
|
-
icon: [
|
|
135
|
-
"after:bg-danger-main",
|
|
136
|
-
"before:border-danger-main",
|
|
137
|
-
"group-has-[:checked]/radio:before:border-danger-main"
|
|
138
|
-
],
|
|
139
|
-
label: "text-danger-main"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
isDisabled: {
|
|
143
|
-
true: {
|
|
144
|
-
base: ["opacity-disabled", "pointer-events-none"],
|
|
145
|
-
icon: [
|
|
146
|
-
"before:border-neutral-light",
|
|
147
|
-
"before:bg-neutral-soft",
|
|
148
|
-
"after:bg-neutral-light",
|
|
149
|
-
"group-has-[:checked]/radio:before:border-neutral-light"
|
|
150
|
-
],
|
|
151
|
-
label: "text-neutral-light"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
disableAnimation: {
|
|
155
|
-
true: {},
|
|
156
|
-
false: {
|
|
157
|
-
icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
|
|
158
|
-
label: ["transition-colors", "motion-reduce:transition-none"]
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
defaultVariants: {
|
|
163
|
-
color: "primary",
|
|
164
|
-
size: "md",
|
|
165
|
-
isDisabled: false,
|
|
166
|
-
isInvalid: false,
|
|
167
|
-
disableAnimation: false
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
export {
|
|
172
|
-
radio_default
|
|
173
|
-
};
|