@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
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
5
|
+
import {
|
|
6
|
+
clsx
|
|
7
|
+
} from "./chunk-27Y6K5NK.mjs";
|
|
8
|
+
import {
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/radio/radio.tsx
|
|
13
|
+
import { forwardRef, useMemo } from "react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var Radio = forwardRef((originalProps, ref) => {
|
|
16
|
+
const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
|
|
17
|
+
const { children, classNames, labelPosition = "end", ...inputProps } = props;
|
|
18
|
+
const slots = useMemo(() => radioStyle({ ...variantProps }), [variantProps]);
|
|
19
|
+
return /* @__PURE__ */ jsxs(
|
|
20
|
+
"label",
|
|
21
|
+
{
|
|
22
|
+
className: clsx(
|
|
23
|
+
slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
24
|
+
labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
|
|
25
|
+
),
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: "hidden", children: /* @__PURE__ */ jsx("input", { ...inputProps, type: "radio", ref }) }),
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ jsx("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
Radio.displayName = "Radio";
|
|
35
|
+
var radio_default = Radio;
|
|
36
|
+
var radioStyle = tv({
|
|
37
|
+
slots: {
|
|
38
|
+
base: [
|
|
39
|
+
"group/radio",
|
|
40
|
+
"relative",
|
|
41
|
+
"max-w-fit",
|
|
42
|
+
"inline-flex",
|
|
43
|
+
"items-center",
|
|
44
|
+
"justify-start",
|
|
45
|
+
"cursor-pointer",
|
|
46
|
+
"tap-highlight-transparent"
|
|
47
|
+
],
|
|
48
|
+
outerDot: [
|
|
49
|
+
"inline-flex",
|
|
50
|
+
"items-center",
|
|
51
|
+
"justify-center",
|
|
52
|
+
"relative",
|
|
53
|
+
"flex-shrink-0",
|
|
54
|
+
"w-[15px]",
|
|
55
|
+
"h-[15px]",
|
|
56
|
+
"rounded-full",
|
|
57
|
+
"border",
|
|
58
|
+
"border-default",
|
|
59
|
+
"before:content-['']",
|
|
60
|
+
"before:absolute",
|
|
61
|
+
"before:inset-0",
|
|
62
|
+
"before:rounded-full"
|
|
63
|
+
],
|
|
64
|
+
innerDot: [
|
|
65
|
+
"inline-block",
|
|
66
|
+
"w-[8px]",
|
|
67
|
+
"h-[8px]",
|
|
68
|
+
"rounded-full",
|
|
69
|
+
"bg-primary-main",
|
|
70
|
+
"opacity-0",
|
|
71
|
+
"transition-opacity",
|
|
72
|
+
"group-has-[:checked]/radio:opacity-100"
|
|
73
|
+
],
|
|
74
|
+
labelWrapper: ["flex", "flex-col"],
|
|
75
|
+
labelReverse: ["flex-row-reverse"],
|
|
76
|
+
label: ["text-foreground", "select-none"]
|
|
77
|
+
},
|
|
78
|
+
variants: {
|
|
79
|
+
color: {
|
|
80
|
+
primary: {
|
|
81
|
+
outerDot: [
|
|
82
|
+
"group-has-[:checked]/radio:border-primary-main",
|
|
83
|
+
"group-has-[:checked]/radio:border-primary-main",
|
|
84
|
+
"group-hover/radio:border-primary-light",
|
|
85
|
+
"group-hover/radio:bg-primary-soft"
|
|
86
|
+
],
|
|
87
|
+
innerDot: ["bg-primary-main"]
|
|
88
|
+
},
|
|
89
|
+
secondary: {
|
|
90
|
+
outerDot: [
|
|
91
|
+
"group-has-[:checked]/radio:border-secondary-main",
|
|
92
|
+
"group-hover/radio:border-secondary-light",
|
|
93
|
+
"group-hover/radio:bg-secondary-soft"
|
|
94
|
+
],
|
|
95
|
+
innerDot: ["bg-secondary-main"]
|
|
96
|
+
},
|
|
97
|
+
neutral: {
|
|
98
|
+
outerDot: [
|
|
99
|
+
"group-has-[:checked]/radio:border-neutral-main",
|
|
100
|
+
"group-hover/radio:border-neutral-light",
|
|
101
|
+
"group-hover/radio:bg-neutral-soft"
|
|
102
|
+
],
|
|
103
|
+
innerDot: ["bg-neutral-main"]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
size: {
|
|
107
|
+
sm: {
|
|
108
|
+
base: ["gap-[8px]"],
|
|
109
|
+
outerDot: ["w-[12px]", "h-[12px]", "border-sm"],
|
|
110
|
+
innerDot: ["w-[6px]", "h-[6px]"],
|
|
111
|
+
label: ["text-sm"]
|
|
112
|
+
},
|
|
113
|
+
md: {
|
|
114
|
+
base: ["gap-[8px]"],
|
|
115
|
+
outerDot: ["w-[15px]", "h-[15px]", "border-md"],
|
|
116
|
+
innerDot: ["w-[8px]", "h-[8px]"],
|
|
117
|
+
label: ["text-md"]
|
|
118
|
+
},
|
|
119
|
+
lg: {
|
|
120
|
+
base: ["gap-[10px]"],
|
|
121
|
+
outerDot: ["w-[18px]", "h-[18px]", "border-lg"],
|
|
122
|
+
innerDot: ["w-[10px]", "h-[10px]"],
|
|
123
|
+
label: ["text-lg"]
|
|
124
|
+
},
|
|
125
|
+
xl: {
|
|
126
|
+
base: ["gap-[10px]"],
|
|
127
|
+
outerDot: ["w-[21px]", "h-[21px]", "border-xl"],
|
|
128
|
+
innerDot: ["w-[12px]", "h-[12px]"],
|
|
129
|
+
label: ["text-xl"]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
isInvalid: {
|
|
133
|
+
true: {
|
|
134
|
+
outerDot: [
|
|
135
|
+
"border-danger-main",
|
|
136
|
+
"group-has-[:checked]/radio:border-danger-main",
|
|
137
|
+
"group-hover/radio:border-danger-light",
|
|
138
|
+
"group-hover/radio:bg-danger-soft"
|
|
139
|
+
],
|
|
140
|
+
innerDot: ["bg-danger-main"],
|
|
141
|
+
label: ["text-danger-main"]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
isDisabled: {
|
|
145
|
+
true: {
|
|
146
|
+
base: ["opacity-disabled", "cursor-not-allowed", "pointer-events-auto", "text-neutral-light"],
|
|
147
|
+
outerDot: [
|
|
148
|
+
"cursor-not-allowed",
|
|
149
|
+
"border-neutral-light",
|
|
150
|
+
"bg-neutral-soft",
|
|
151
|
+
"group-has-[:checked]/radio:bg-neutral-soft",
|
|
152
|
+
"group-has-[:checked]/radio:border-neutral-light",
|
|
153
|
+
"group-hover/radio:border-neutral-light",
|
|
154
|
+
"group-hover/radio:bg-neutral-soft"
|
|
155
|
+
],
|
|
156
|
+
innerDot: ["bg-neutral-soft"],
|
|
157
|
+
label: ["text-neutral-light"]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
defaultVariants: {
|
|
162
|
+
color: "primary",
|
|
163
|
+
size: "md",
|
|
164
|
+
isDisabled: false
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export {
|
|
169
|
+
radio_default
|
|
170
|
+
};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-P732YGHO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Icon_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-24NQEB73.mjs";
|
|
9
|
+
import {
|
|
10
|
+
tv
|
|
11
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
9
12
|
import {
|
|
10
13
|
mapPropsVariants
|
|
11
14
|
} from "./chunk-E3G5QXSH.mjs";
|
|
12
|
-
import {
|
|
13
|
-
tv
|
|
14
|
-
} from "./chunk-J725QONZ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/dateTimePicker/calendar.tsx
|
|
17
17
|
import React, {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
toast_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FYJZ7Q5L.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -23,7 +23,7 @@ var ToastProvider = ({
|
|
|
23
23
|
}) => {
|
|
24
24
|
const [toasts, setToasts] = useState([]);
|
|
25
25
|
const [containerStyle, setContainerStyle] = useState({});
|
|
26
|
-
const toastRef = useRef();
|
|
26
|
+
const toastRef = useRef(null);
|
|
27
27
|
const addToast = useCallback((content, options) => {
|
|
28
28
|
const id = Date.now() + Math.floor(Math.random() * 1e5);
|
|
29
29
|
const newToast = {
|
|
@@ -3,11 +3,14 @@ import {
|
|
|
3
3
|
usePagination_default
|
|
4
4
|
} from "./chunk-F3HENRVM.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
input_default
|
|
7
|
+
} from "./chunk-SK2A72R2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
tv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
11
|
+
import {
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
14
|
|
|
12
15
|
// src/components/pagination/pagination.tsx
|
|
13
16
|
import { forwardRef, useCallback, useMemo } from "react";
|
|
@@ -21,6 +24,7 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
21
24
|
totalPage,
|
|
22
25
|
showPageNumber = true,
|
|
23
26
|
showPageLabel,
|
|
27
|
+
showPageInput,
|
|
24
28
|
showFirstLastButtons,
|
|
25
29
|
handleChangePage
|
|
26
30
|
} = props;
|
|
@@ -33,8 +37,8 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
33
37
|
const slots = useMemo(() => pagination({ ...variantProps }), [variantProps]);
|
|
34
38
|
const getBaseProps = useCallback(() => ({ className: slots.base({ class: classNames == null ? void 0 : classNames.base }) }), [slots, classNames]);
|
|
35
39
|
const getLabelProps = useCallback(
|
|
36
|
-
() => ({ className: slots.label({ class: classNames == null ? void 0 : classNames.label }) }),
|
|
37
|
-
[slots, classNames]
|
|
40
|
+
() => ({ className: `${slots.label({ class: classNames == null ? void 0 : classNames.label })} + ${showPageInput && " !min-w-[55px]"}` }),
|
|
41
|
+
[slots, classNames, showPageInput]
|
|
38
42
|
);
|
|
39
43
|
const getWrapperProps = useCallback(
|
|
40
44
|
() => ({ className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }) }),
|
|
@@ -45,8 +49,41 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
45
49
|
() => ({ className: slots.button({ class: classNames == null ? void 0 : classNames.button }) }),
|
|
46
50
|
[slots, classNames]
|
|
47
51
|
);
|
|
52
|
+
const getLabelWrapperProps = useCallback(
|
|
53
|
+
() => ({
|
|
54
|
+
className: "flex shrink-0",
|
|
55
|
+
onSubmit: (e) => {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
if (showPageInput && handleChangePage) {
|
|
58
|
+
const formData = new FormData(e.target);
|
|
59
|
+
const page = formData.get("pagination-input");
|
|
60
|
+
if (page) handleChangePage(+page);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
[handleChangePage, showPageInput]
|
|
65
|
+
);
|
|
66
|
+
const getInputProps = useCallback(
|
|
67
|
+
() => ({
|
|
68
|
+
defaultValue: currentPage,
|
|
69
|
+
size: "sm",
|
|
70
|
+
name: "pagination-input",
|
|
71
|
+
type: "number",
|
|
72
|
+
max: totalPage,
|
|
73
|
+
min: 1,
|
|
74
|
+
classNames: { inputWrapper: "!w-[48px] h-[20px] px-[6px]", input: "input-arrow-hide" }
|
|
75
|
+
}),
|
|
76
|
+
[currentPage, totalPage]
|
|
77
|
+
);
|
|
48
78
|
return /* @__PURE__ */ jsxs("div", { ...getBaseProps(), children: [
|
|
49
79
|
showPageLabel && /* @__PURE__ */ jsx("span", { ...getLabelProps(), children: `${currentPage} of ${totalPage}` }),
|
|
80
|
+
/* @__PURE__ */ jsxs("form", { ...getLabelWrapperProps(), children: [
|
|
81
|
+
showPageInput && /* @__PURE__ */ jsx(input_default, { ...getInputProps() }, `${currentPage}+pagination-input`),
|
|
82
|
+
showPageLabel && /* @__PURE__ */ jsxs("span", { ...getLabelProps(), children: [
|
|
83
|
+
!showPageInput && currentPage,
|
|
84
|
+
` of ${totalPage}`
|
|
85
|
+
] })
|
|
86
|
+
] }),
|
|
50
87
|
/* @__PURE__ */ jsxs("div", { ...getWrapperProps(), children: [
|
|
51
88
|
showFirstLastButtons && /* @__PURE__ */ jsx(
|
|
52
89
|
"div",
|
|
@@ -97,7 +134,14 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
97
134
|
onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
|
|
98
135
|
children: ">>"
|
|
99
136
|
}
|
|
100
|
-
)
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ jsxs("form", { ...getLabelWrapperProps(), children: [
|
|
139
|
+
showPageInput && /* @__PURE__ */ jsx(input_default, { ...getInputProps() }, `${currentPage}+pagination-input`),
|
|
140
|
+
showPageLabel && /* @__PURE__ */ jsxs("span", { ...getLabelProps(), children: [
|
|
141
|
+
!showPageInput && currentPage,
|
|
142
|
+
` of ${totalPage}`
|
|
143
|
+
] })
|
|
144
|
+
] })
|
|
101
145
|
] })
|
|
102
146
|
] });
|
|
103
147
|
});
|
|
@@ -108,7 +152,7 @@ var pagination = tv(
|
|
|
108
152
|
slots: {
|
|
109
153
|
base: "flex items-center select-none",
|
|
110
154
|
label: "text-primary-main text-right whitespace-nowrap",
|
|
111
|
-
wrapper: "flex overflow-hidden",
|
|
155
|
+
wrapper: "flex overflow-hidden flex items-center",
|
|
112
156
|
icon: "flex items-center justify-center cursor-pointer",
|
|
113
157
|
button: "flex items-center justify-center cursor-pointer data-[selected=true]:font-[600] transition duration-200"
|
|
114
158
|
},
|
|
@@ -142,6 +186,12 @@ var pagination = tv(
|
|
|
142
186
|
label: "min-w-[105px] text-lg mr-[14px]",
|
|
143
187
|
icon: ["h-[20px] text-lg"],
|
|
144
188
|
button: ["min-w-[37px] h-[20px] text-lg"]
|
|
189
|
+
},
|
|
190
|
+
xl: {
|
|
191
|
+
wrapper: "gap-[10px]",
|
|
192
|
+
label: "min-w-[105px] text-lg mr-[14px]",
|
|
193
|
+
icon: ["h-[20px] text-lg"],
|
|
194
|
+
button: ["min-w-[37px] h-[20px] text-lg"]
|
|
145
195
|
}
|
|
146
196
|
},
|
|
147
197
|
color: {
|
|
@@ -209,6 +259,15 @@ var pagination = tv(
|
|
|
209
259
|
icon: "min-w-[50px] h-[24px] border-l"
|
|
210
260
|
}
|
|
211
261
|
},
|
|
262
|
+
{
|
|
263
|
+
variant: "line",
|
|
264
|
+
size: "xl",
|
|
265
|
+
class: {
|
|
266
|
+
wrapper: "border rounded-lg gap-0",
|
|
267
|
+
button: "!min-w-[50px] h-[24px] border-l",
|
|
268
|
+
icon: "min-w-[50px] h-[24px] border-l"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
212
271
|
{
|
|
213
272
|
variant: "line",
|
|
214
273
|
color: "primary",
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useTooltip
|
|
4
|
+
} from "./chunk-ZMOAFSYE.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getTailClassName,
|
|
7
|
+
getTailStyles
|
|
8
|
+
} from "./chunk-WSIADHVC.mjs";
|
|
9
|
+
import {
|
|
10
|
+
tv
|
|
11
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
12
|
+
import {
|
|
13
|
+
mapPropsVariants
|
|
14
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
15
|
+
|
|
16
|
+
// src/components/tooltip/tooltip.tsx
|
|
17
|
+
import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";
|
|
18
|
+
import { createPortal } from "react-dom";
|
|
19
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
+
var Tooltip = forwardRef((originalProps, ref) => {
|
|
21
|
+
const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
|
|
22
|
+
const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
|
|
23
|
+
const slots = useMemo(() => tooltipStyle({ ...variantProps }), [variantProps]);
|
|
24
|
+
const [targetRect, setTargetRect] = useState(null);
|
|
25
|
+
const { tooltipPosition, tooltipRef } = useTooltip({
|
|
26
|
+
placement,
|
|
27
|
+
offset,
|
|
28
|
+
delay,
|
|
29
|
+
targetRect
|
|
30
|
+
});
|
|
31
|
+
const childrenRef = useRef(null);
|
|
32
|
+
const delayTimeoutRef = useRef(null);
|
|
33
|
+
const getProps = useCallback(
|
|
34
|
+
(slotKey, classNameKey) => ({
|
|
35
|
+
className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
|
|
36
|
+
}),
|
|
37
|
+
[slots, classNames]
|
|
38
|
+
);
|
|
39
|
+
const getBaseProps = useCallback(() => getProps("base", "base"), [getProps]);
|
|
40
|
+
const getContentProps = useCallback(() => getProps("content", "content"), [getProps]);
|
|
41
|
+
const showTooltip = useCallback(() => {
|
|
42
|
+
if (childrenRef.current) {
|
|
43
|
+
const rect = childrenRef.current.getBoundingClientRect();
|
|
44
|
+
setTargetRect({
|
|
45
|
+
width: rect.width,
|
|
46
|
+
height: rect.height,
|
|
47
|
+
left: rect.left,
|
|
48
|
+
top: rect.top,
|
|
49
|
+
right: rect.right,
|
|
50
|
+
bottom: rect.bottom
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}, []);
|
|
54
|
+
const hideTooltip = useCallback(() => {
|
|
55
|
+
if (!persistent) {
|
|
56
|
+
delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
|
|
57
|
+
}
|
|
58
|
+
}, [persistent, delay]);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (persistent) showTooltip();
|
|
61
|
+
}, [persistent, showTooltip]);
|
|
62
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
ref: (node) => {
|
|
67
|
+
if (ref) {
|
|
68
|
+
if (typeof ref === "function") ref(node);
|
|
69
|
+
else ref.current = node;
|
|
70
|
+
}
|
|
71
|
+
childrenRef.current = node;
|
|
72
|
+
},
|
|
73
|
+
...getBaseProps(),
|
|
74
|
+
onPointerEnter: !persistent ? showTooltip : void 0,
|
|
75
|
+
onPointerLeave: !persistent ? hideTooltip : void 0,
|
|
76
|
+
children: props.children
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
targetRect && createPortal(
|
|
80
|
+
/* @__PURE__ */ jsxs(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
ref: tooltipRef,
|
|
84
|
+
...getContentProps(),
|
|
85
|
+
onPointerEnter: !persistent ? () => delayTimeoutRef.current && clearTimeout(delayTimeoutRef.current) : void 0,
|
|
86
|
+
onPointerLeave: !persistent ? hideTooltip : void 0,
|
|
87
|
+
style: {
|
|
88
|
+
visibility: "visible",
|
|
89
|
+
transform: `translate3d(${tooltipPosition.x}px, ${tooltipPosition.y}px, 0)`
|
|
90
|
+
},
|
|
91
|
+
children: [
|
|
92
|
+
props.content,
|
|
93
|
+
variantProps.tail && /* @__PURE__ */ jsx(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
|
|
97
|
+
style: getTailStyles(placement)
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
document.body
|
|
104
|
+
)
|
|
105
|
+
] });
|
|
106
|
+
});
|
|
107
|
+
Tooltip.displayName = "Tooltip";
|
|
108
|
+
var tooltip_default = Tooltip;
|
|
109
|
+
var tooltipStyle = tv({
|
|
110
|
+
slots: {
|
|
111
|
+
base: ["z-0", "relative", "bg-transparent"],
|
|
112
|
+
content: [
|
|
113
|
+
"absolute",
|
|
114
|
+
"top-0",
|
|
115
|
+
"left-0",
|
|
116
|
+
"inline-flex",
|
|
117
|
+
"items-center",
|
|
118
|
+
"justify-center",
|
|
119
|
+
"font-[500]",
|
|
120
|
+
"text-common-white",
|
|
121
|
+
"bg-common-black"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
variants: {
|
|
125
|
+
size: {
|
|
126
|
+
sm: { content: ["text-sm", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
127
|
+
md: { content: ["text-md", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
128
|
+
lg: { content: ["text-lg", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
129
|
+
xl: { content: ["text-xl", "rounded-[5px]", "px-[10px]", "py-[6px]"] }
|
|
130
|
+
},
|
|
131
|
+
tail: {
|
|
132
|
+
true: { content: [] },
|
|
133
|
+
false: {}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
defaultVariants: {
|
|
137
|
+
size: "md",
|
|
138
|
+
placement: "top",
|
|
139
|
+
tail: false
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export {
|
|
144
|
+
tooltip_default
|
|
145
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-24NQEB73.mjs";
|
|
5
|
+
import {
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
5
8
|
import {
|
|
6
9
|
mapPropsVariants
|
|
7
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
tv
|
|
10
|
-
} from "./chunk-J725QONZ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/input/input.tsx
|
|
13
13
|
import React, { forwardRef, useRef, useCallback, useMemo } from "react";
|
|
@@ -199,6 +199,12 @@ var inputStyle = tv({
|
|
|
199
199
|
innerWrapper: ["group-has-[p]/input:gap-[10px]"],
|
|
200
200
|
inputWrapper: ["w-[240px]", "h-[36px]", "rounded-lg", "px-[10px]", "py-[8px]", "gap-[10px]"],
|
|
201
201
|
errorMessage: ["text-lg"]
|
|
202
|
+
},
|
|
203
|
+
xl: {
|
|
204
|
+
base: ["text-xl", "gap-[10px]"],
|
|
205
|
+
innerWrapper: ["group-has-[p]/input:gap-[10px]"],
|
|
206
|
+
inputWrapper: ["w-[240px]", "h-[36px]", "rounded-xl", "px-[10px]", "py-[8px]", "gap-[10px]"],
|
|
207
|
+
errorMessage: ["text-xl"]
|
|
202
208
|
}
|
|
203
209
|
},
|
|
204
210
|
radius: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
button_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X2MQCISM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-24NQEB73.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tv
|
|
10
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
8
11
|
import {
|
|
9
12
|
mapPropsVariants
|
|
10
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-J725QONZ.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/modal/modal.tsx
|
|
16
16
|
import { forwardRef, useCallback, useMemo, useEffect } from "react";
|
|
@@ -126,7 +126,7 @@ var Modal = forwardRef((originalProps, ref) => {
|
|
|
126
126
|
}, [isOpen, isKeyboardDismissDisabled, onCancel]);
|
|
127
127
|
return /* @__PURE__ */ jsx(Fragment, { children: isOpen && createPortal(
|
|
128
128
|
/* @__PURE__ */ jsx("div", { ...getBackdropProps(), children: /* @__PURE__ */ jsxs("div", { ref, ...getModalWrapperProps(), children: [
|
|
129
|
-
typeof icon === "string" ? /* @__PURE__ */ jsx("div", { ...getIconProps(), children: /* @__PURE__ */ jsx(Icon_default, { name: icon, className: "
|
|
129
|
+
typeof icon === "string" ? /* @__PURE__ */ jsx("div", { ...getIconProps(), children: /* @__PURE__ */ jsx(Icon_default, { name: icon, className: "h-[80px] w-[80px]" }) }) : /* @__PURE__ */ jsx("div", { ...getIconProps(), children: icon }),
|
|
130
130
|
/* @__PURE__ */ jsxs("div", { ...getBodyWrapperProps(), children: [
|
|
131
131
|
showCloseButton && /* @__PURE__ */ jsx(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
|
|
132
132
|
/* @__PURE__ */ jsxs("div", { ...getBodyProps(), children: [
|
|
@@ -136,7 +136,7 @@ var Modal = forwardRef((originalProps, ref) => {
|
|
|
136
136
|
] }),
|
|
137
137
|
content && typeof content === "string" ? /* @__PURE__ */ jsx("div", { ...getContentProps(), children: content }) : content,
|
|
138
138
|
(cancelButtonText || confirmButtonText) && /* @__PURE__ */ jsxs("div", { ...getFooterWrapperProps(), children: [
|
|
139
|
-
cancelButtonText && /* @__PURE__ */ jsx(button_default, { variant: "
|
|
139
|
+
cancelButtonText && /* @__PURE__ */ jsx(button_default, { variant: "outline", color: originalProps.color, fullWidth: true, onClick: onCancel, children: cancelButtonText }),
|
|
140
140
|
confirmButtonText && /* @__PURE__ */ jsx(button_default, { size: "md", color: originalProps.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
|
|
141
141
|
] })
|
|
142
142
|
] })
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
option_default
|
|
4
|
+
} from "./chunk-2HSK6XGZ.mjs";
|
|
2
5
|
import {
|
|
3
6
|
useSelect
|
|
4
7
|
} from "./chunk-S3QS5B7F.mjs";
|
|
5
|
-
import {
|
|
6
|
-
option_default
|
|
7
|
-
} from "./chunk-RZZWHI6O.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-24NQEB73.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-IE2BRM7Z.mjs";
|
|
11
14
|
import {
|
|
12
15
|
mapPropsVariants
|
|
13
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
-
import {
|
|
15
|
-
tv
|
|
16
|
-
} from "./chunk-J725QONZ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/select/select.tsx
|
|
19
19
|
import { forwardRef, useMemo, useCallback } from "react";
|
|
@@ -193,6 +193,12 @@ var select = tv({
|
|
|
193
193
|
selectWrapper: "w-[240px] h-[36px] px-[10px] py-[8px] gap-[10px] rounded-lg",
|
|
194
194
|
optionsWrapper: "max-h-[144px] rounded-lg",
|
|
195
195
|
errorMessage: "text-lg"
|
|
196
|
+
},
|
|
197
|
+
xl: {
|
|
198
|
+
base: "text-lg gap-[10px]",
|
|
199
|
+
selectWrapper: "w-[240px] h-[36px] px-[10px] py-[8px] gap-[10px] rounded-xl",
|
|
200
|
+
optionsWrapper: "max-h-[144px] rounded-xl",
|
|
201
|
+
errorMessage: "text-xl"
|
|
196
202
|
}
|
|
197
203
|
},
|
|
198
204
|
radius: {
|