@deepnoid/ui 0.0.112 → 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-YRMFIXXC.mjs → chunk-RQ76IOYC.mjs} +29 -6
- 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-JN7EGKJL.mjs → chunk-VBFXKJTI.mjs} +11 -5
- 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 +455 -45
- package/dist/components/pagination/index.mjs +6 -6
- package/dist/components/pagination/pagination.d.mts +21 -27
- package/dist/components/pagination/pagination.d.ts +21 -27
- package/dist/components/pagination/pagination.js +455 -45
- package/dist/components/pagination/pagination.mjs +6 -6
- 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 +2287 -2577
- package/dist/index.mjs +62 -787
- 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 -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,9 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
7
12
|
var __export = (target, all) => {
|
|
8
13
|
for (var name in all)
|
|
9
14
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -16,8 +21,84 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
21
|
}
|
|
17
22
|
return to;
|
|
18
23
|
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
19
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
33
|
|
|
34
|
+
// ../../node_modules/tailwindcss/lib/util/createPlugin.js
|
|
35
|
+
var require_createPlugin = __commonJS({
|
|
36
|
+
"../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
|
|
37
|
+
"use strict";
|
|
38
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports2, "default", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _default;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function createPlugin(plugin2, config) {
|
|
48
|
+
return {
|
|
49
|
+
handler: plugin2,
|
|
50
|
+
config
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
54
|
+
const optionsFunction = function(options) {
|
|
55
|
+
return {
|
|
56
|
+
__options: options,
|
|
57
|
+
handler: pluginFunction(options),
|
|
58
|
+
config: configFunction(options)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
optionsFunction.__isOptionsFunction = true;
|
|
62
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
63
|
+
optionsFunction.__configFunction = configFunction;
|
|
64
|
+
return optionsFunction;
|
|
65
|
+
};
|
|
66
|
+
var _default = createPlugin;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/tailwindcss/lib/public/create-plugin.js
|
|
71
|
+
var require_create_plugin = __commonJS({
|
|
72
|
+
"../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
|
|
73
|
+
"use strict";
|
|
74
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports2, "default", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return _default;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var _default = _createPlugin.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../../node_modules/tailwindcss/plugin.js
|
|
94
|
+
var require_plugin = __commonJS({
|
|
95
|
+
"../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
|
|
96
|
+
"use strict";
|
|
97
|
+
var createPlugin = require_create_plugin();
|
|
98
|
+
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
21
102
|
// src/components/tooltip/tooltip.tsx
|
|
22
103
|
var tooltip_exports = {};
|
|
23
104
|
__export(tooltip_exports, {
|
|
@@ -29,19 +110,226 @@ var import_react_dom = require("react-dom");
|
|
|
29
110
|
|
|
30
111
|
// src/utils/tailwind-variants.ts
|
|
31
112
|
var import_tailwind_variants = require("tailwind-variants");
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
|
|
113
|
+
|
|
114
|
+
// ../tailwind-config/src/plugin.ts
|
|
115
|
+
var import_plugin = __toESM(require_plugin());
|
|
116
|
+
|
|
117
|
+
// ../tailwind-config/src/typography/font.ts
|
|
118
|
+
var fontSize = {
|
|
119
|
+
h1: [
|
|
120
|
+
"40px",
|
|
121
|
+
{
|
|
122
|
+
letterSpacing: "-2%",
|
|
123
|
+
fontWeight: "700"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
h2: [
|
|
127
|
+
"34px",
|
|
128
|
+
{
|
|
129
|
+
letterSpacing: "-2%",
|
|
130
|
+
fontWeight: "700"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
h3: [
|
|
134
|
+
"28px",
|
|
135
|
+
{
|
|
136
|
+
letterSpacing: "-2%",
|
|
137
|
+
fontWeight: "700"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
h4: [
|
|
141
|
+
"24px",
|
|
142
|
+
{
|
|
143
|
+
letterSpacing: "-2%",
|
|
144
|
+
fontWeight: "700"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
h5: [
|
|
148
|
+
"20px",
|
|
149
|
+
{
|
|
150
|
+
letterSpacing: "-2%",
|
|
151
|
+
fontWeight: "600"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
sm: [
|
|
155
|
+
"12px",
|
|
156
|
+
{
|
|
157
|
+
lineHeight: "18px",
|
|
158
|
+
letterSpacing: "-2%",
|
|
159
|
+
fontWeight: "400"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
md: [
|
|
163
|
+
"14px",
|
|
164
|
+
{
|
|
165
|
+
lineHeight: "21px",
|
|
166
|
+
letterSpacing: "-2%",
|
|
167
|
+
fontWeight: "400"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
lg: [
|
|
171
|
+
"16px",
|
|
172
|
+
{
|
|
173
|
+
lineHeight: "24px",
|
|
174
|
+
letterSpacing: "-2%",
|
|
175
|
+
fontWeight: "400"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
xl: [
|
|
179
|
+
"18px",
|
|
180
|
+
{
|
|
181
|
+
lineHeight: "27px",
|
|
182
|
+
letterSpacing: "-2%",
|
|
183
|
+
fontWeight: "400"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
189
|
+
var sliceAnimation = {
|
|
190
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
191
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
192
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
193
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
194
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
195
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
196
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
197
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
198
|
+
};
|
|
199
|
+
var sliceKeyframe = {
|
|
200
|
+
slideInFromTop: {
|
|
201
|
+
"0%": {
|
|
202
|
+
transform: "translateY(-10px)",
|
|
203
|
+
opacity: "0"
|
|
204
|
+
},
|
|
205
|
+
"100%": {
|
|
206
|
+
transform: "translateY(0)",
|
|
207
|
+
opacity: "1"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
slideInFromBottom: {
|
|
211
|
+
"0%": {
|
|
212
|
+
transform: "translateY(10px)",
|
|
213
|
+
opacity: "0"
|
|
214
|
+
},
|
|
215
|
+
"100%": {
|
|
216
|
+
transform: "translateY(0)",
|
|
217
|
+
opacity: "1"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
slideInFromLeft: {
|
|
221
|
+
"0%": {
|
|
222
|
+
transform: "translateX(-10px)",
|
|
223
|
+
opacity: "0"
|
|
224
|
+
},
|
|
225
|
+
"100%": {
|
|
226
|
+
transform: "translateX(0)",
|
|
227
|
+
opacity: "1"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
slideInFromRight: {
|
|
231
|
+
"0%": {
|
|
232
|
+
transform: "translateX(10px)",
|
|
233
|
+
opacity: "0"
|
|
234
|
+
},
|
|
235
|
+
"100%": {
|
|
236
|
+
transform: "translateX(0)",
|
|
237
|
+
opacity: "1"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
slideOutToTop: {
|
|
241
|
+
"0%": {
|
|
242
|
+
transform: "translateY(0)",
|
|
243
|
+
opacity: "1"
|
|
244
|
+
},
|
|
245
|
+
"100%": {
|
|
246
|
+
transform: "translateY(-10px)",
|
|
247
|
+
opacity: "0"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
slideOutToBottom: {
|
|
251
|
+
"0%": {
|
|
252
|
+
transform: "translateY(0)",
|
|
253
|
+
opacity: "1"
|
|
254
|
+
},
|
|
255
|
+
"100%": {
|
|
256
|
+
transform: "translateY(10px)",
|
|
257
|
+
opacity: "0"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
slideOutToLeft: {
|
|
261
|
+
"0%": {
|
|
262
|
+
transform: "translateX(0)",
|
|
263
|
+
opacity: "1"
|
|
264
|
+
},
|
|
265
|
+
"100%": {
|
|
266
|
+
transform: "translateX(-10px)",
|
|
267
|
+
opacity: "0"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
slideOutToRight: {
|
|
271
|
+
"0%": {
|
|
272
|
+
transform: "translateX(0)",
|
|
273
|
+
opacity: "1"
|
|
274
|
+
},
|
|
275
|
+
"100%": {
|
|
276
|
+
transform: "translateX(10px)",
|
|
277
|
+
opacity: "0"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
// ../tailwind-config/src/animation/index.ts
|
|
283
|
+
var animation = { ...sliceAnimation };
|
|
284
|
+
var keyframes = { ...sliceKeyframe };
|
|
285
|
+
|
|
286
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
287
|
+
var boxShadow = {
|
|
288
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
289
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
290
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
291
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
292
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
293
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
294
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
295
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
296
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
297
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
298
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
299
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
// ../tailwind-config/src/border/radius.ts
|
|
303
|
+
var borderRadius = {
|
|
304
|
+
sm: "4px",
|
|
305
|
+
md: "6px",
|
|
306
|
+
lg: "8px",
|
|
307
|
+
xl: "10px",
|
|
308
|
+
none: "0",
|
|
309
|
+
full: "9999px"
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// ../tailwind-config/src/space/gap.ts
|
|
313
|
+
var gap = {
|
|
314
|
+
sm: "4px",
|
|
315
|
+
md: "6px",
|
|
316
|
+
lg: "8px",
|
|
317
|
+
xl: "10px"
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// src/utils/tailwind-variants.ts
|
|
321
|
+
function typedKeys(obj) {
|
|
322
|
+
return Object.keys(obj);
|
|
323
|
+
}
|
|
324
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
36
325
|
var tv = (0, import_tailwind_variants.createTV)({
|
|
37
|
-
// twMerge: false,
|
|
38
326
|
twMergeConfig: {
|
|
39
327
|
classGroups: {
|
|
40
|
-
fontSize: [{ text: [...
|
|
41
|
-
borderRadius: [{ rounded: [...
|
|
42
|
-
boxShadow: [{ shadow: [...
|
|
328
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
329
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
330
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
43
331
|
padding: [{ p: [...COMMON_SIZE] }],
|
|
44
|
-
gap: [{ gap: [...
|
|
332
|
+
gap: [{ gap: [...typedKeys(gap)] }]
|
|
45
333
|
}
|
|
46
334
|
}
|
|
47
335
|
});
|
|
@@ -66,9 +354,6 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
66
354
|
}
|
|
67
355
|
};
|
|
68
356
|
|
|
69
|
-
// src/components/tooltip/useTooltip.ts
|
|
70
|
-
var import_react = require("react");
|
|
71
|
-
|
|
72
357
|
// src/components/tooltip/tooltip-utils.ts
|
|
73
358
|
var getTooltipPosition = (placement, targetRect, width, height, offset) => {
|
|
74
359
|
let tooltipX = 0, tooltipY = 0;
|
|
@@ -124,8 +409,72 @@ var getTooltipPosition = (placement, targetRect, width, height, offset) => {
|
|
|
124
409
|
}
|
|
125
410
|
return { tooltipX, tooltipY };
|
|
126
411
|
};
|
|
412
|
+
var OFFSET = -4;
|
|
413
|
+
var EDGE_GAP = 12;
|
|
414
|
+
var getTailClassName = (placement) => {
|
|
415
|
+
switch (placement) {
|
|
416
|
+
case "top":
|
|
417
|
+
return `bottom-[${OFFSET}px] left-1/2 -translate-x-1/2`;
|
|
418
|
+
case "bottom":
|
|
419
|
+
return `top-[${OFFSET}px] left-1/2 -translate-x-1/2`;
|
|
420
|
+
case "left":
|
|
421
|
+
return `right-[${OFFSET}px] top-1/2 -translate-y-1/2`;
|
|
422
|
+
case "right":
|
|
423
|
+
return `left-[${OFFSET}px] top-1/2 -translate-y-1/2`;
|
|
424
|
+
case "top-start":
|
|
425
|
+
return `bottom-[${OFFSET}px] left-[${EDGE_GAP}px]`;
|
|
426
|
+
case "top-end":
|
|
427
|
+
return `bottom-[${OFFSET}px] right-[${EDGE_GAP}px]`;
|
|
428
|
+
case "bottom-start":
|
|
429
|
+
return `top-[${OFFSET}px] left-[${EDGE_GAP}px]`;
|
|
430
|
+
case "bottom-end":
|
|
431
|
+
return `top-[${OFFSET}px] right-[${EDGE_GAP}px]`;
|
|
432
|
+
case "left-start":
|
|
433
|
+
return `right-[${OFFSET}px] top-[${EDGE_GAP}px]`;
|
|
434
|
+
case "left-end":
|
|
435
|
+
return `right-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
|
|
436
|
+
case "right-start":
|
|
437
|
+
return `left-[${OFFSET}px] top-[${EDGE_GAP}px]`;
|
|
438
|
+
case "right-end":
|
|
439
|
+
return `left-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
|
|
440
|
+
default:
|
|
441
|
+
return "";
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
var getTailStyles = (placement) => {
|
|
445
|
+
switch (placement) {
|
|
446
|
+
case "top":
|
|
447
|
+
return { bottom: OFFSET };
|
|
448
|
+
case "bottom":
|
|
449
|
+
return { top: OFFSET };
|
|
450
|
+
case "left":
|
|
451
|
+
return { right: OFFSET };
|
|
452
|
+
case "right":
|
|
453
|
+
return { left: OFFSET };
|
|
454
|
+
case "top-start":
|
|
455
|
+
return { bottom: OFFSET, left: EDGE_GAP };
|
|
456
|
+
case "top-end":
|
|
457
|
+
return { bottom: OFFSET, right: EDGE_GAP };
|
|
458
|
+
case "bottom-start":
|
|
459
|
+
return { top: OFFSET, left: EDGE_GAP };
|
|
460
|
+
case "bottom-end":
|
|
461
|
+
return { top: OFFSET, right: EDGE_GAP };
|
|
462
|
+
case "left-start":
|
|
463
|
+
return { right: OFFSET, top: EDGE_GAP };
|
|
464
|
+
case "left-end":
|
|
465
|
+
return { right: OFFSET, bottom: EDGE_GAP };
|
|
466
|
+
case "right-start":
|
|
467
|
+
return { left: OFFSET, top: EDGE_GAP };
|
|
468
|
+
case "right-end":
|
|
469
|
+
return { left: OFFSET, bottom: EDGE_GAP };
|
|
470
|
+
default:
|
|
471
|
+
console.warn(`Invalid placement: ${placement}. Returning empty style.`);
|
|
472
|
+
return {};
|
|
473
|
+
}
|
|
474
|
+
};
|
|
127
475
|
|
|
128
476
|
// src/components/tooltip/useTooltip.ts
|
|
477
|
+
var import_react = require("react");
|
|
129
478
|
var useTooltip = ({ placement, offset, targetRect }) => {
|
|
130
479
|
const [tooltipPosition, setTooltipPosition] = (0, import_react.useState)({ x: 0, y: 0 });
|
|
131
480
|
const tooltipRef = (0, import_react.useRef)(null);
|
|
@@ -161,27 +510,27 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
161
510
|
// src/components/tooltip/tooltip.tsx
|
|
162
511
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
163
512
|
var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
164
|
-
const [props, variantProps] = mapPropsVariants(originalProps,
|
|
165
|
-
const { placement = "
|
|
166
|
-
const slots = (0, import_react2.useMemo)(() =>
|
|
513
|
+
const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
|
|
514
|
+
const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
|
|
515
|
+
const slots = (0, import_react2.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
|
|
167
516
|
const [targetRect, setTargetRect] = (0, import_react2.useState)(null);
|
|
168
|
-
const { tooltipPosition, tooltipRef } = useTooltip({
|
|
517
|
+
const { tooltipPosition, tooltipRef } = useTooltip({
|
|
518
|
+
placement,
|
|
519
|
+
offset,
|
|
520
|
+
delay,
|
|
521
|
+
targetRect
|
|
522
|
+
});
|
|
169
523
|
const childrenRef = (0, import_react2.useRef)(null);
|
|
170
|
-
const
|
|
171
|
-
const
|
|
172
|
-
() => ({
|
|
173
|
-
className: slots
|
|
174
|
-
}),
|
|
175
|
-
[slots, classNames == null ? void 0 : classNames.base]
|
|
176
|
-
);
|
|
177
|
-
const getContentProps = (0, import_react2.useCallback)(
|
|
178
|
-
() => ({
|
|
179
|
-
className: slots.content({ class: classNames == null ? void 0 : classNames.content })
|
|
524
|
+
const delayTimeoutRef = (0, import_react2.useRef)(null);
|
|
525
|
+
const getProps = (0, import_react2.useCallback)(
|
|
526
|
+
(slotKey, classNameKey) => ({
|
|
527
|
+
className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
|
|
180
528
|
}),
|
|
181
|
-
[slots, classNames
|
|
529
|
+
[slots, classNames]
|
|
182
530
|
);
|
|
183
|
-
const
|
|
184
|
-
|
|
531
|
+
const getBaseProps = (0, import_react2.useCallback)(() => getProps("base", "base"), [getProps]);
|
|
532
|
+
const getContentProps = (0, import_react2.useCallback)(() => getProps("content", "content"), [getProps]);
|
|
533
|
+
const showTooltip = (0, import_react2.useCallback)(() => {
|
|
185
534
|
if (childrenRef.current) {
|
|
186
535
|
const rect = childrenRef.current.getBoundingClientRect();
|
|
187
536
|
setTargetRect({
|
|
@@ -194,35 +543,53 @@ var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
194
543
|
});
|
|
195
544
|
}
|
|
196
545
|
}, []);
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
546
|
+
const hideTooltip = (0, import_react2.useCallback)(() => {
|
|
547
|
+
if (!persistent) {
|
|
548
|
+
delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
|
|
549
|
+
}
|
|
550
|
+
}, [persistent, delay]);
|
|
551
|
+
(0, import_react2.useEffect)(() => {
|
|
552
|
+
if (persistent) showTooltip();
|
|
553
|
+
}, [persistent, showTooltip]);
|
|
200
554
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
201
555
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
202
556
|
"div",
|
|
203
557
|
{
|
|
204
|
-
ref:
|
|
558
|
+
ref: (node) => {
|
|
559
|
+
if (ref) {
|
|
560
|
+
if (typeof ref === "function") ref(node);
|
|
561
|
+
else ref.current = node;
|
|
562
|
+
}
|
|
563
|
+
childrenRef.current = node;
|
|
564
|
+
},
|
|
205
565
|
...getBaseProps(),
|
|
206
|
-
|
|
207
|
-
|
|
566
|
+
onPointerEnter: !persistent ? showTooltip : void 0,
|
|
567
|
+
onPointerLeave: !persistent ? hideTooltip : void 0,
|
|
208
568
|
children: props.children
|
|
209
569
|
}
|
|
210
570
|
),
|
|
211
571
|
targetRect && (0, import_react_dom.createPortal)(
|
|
212
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
213
573
|
"div",
|
|
214
574
|
{
|
|
215
575
|
ref: tooltipRef,
|
|
216
576
|
...getContentProps(),
|
|
217
|
-
onPointerEnter: () =>
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
onPointerLeave: handleMouseLeave,
|
|
577
|
+
onPointerEnter: !persistent ? () => delayTimeoutRef.current && clearTimeout(delayTimeoutRef.current) : void 0,
|
|
578
|
+
onPointerLeave: !persistent ? hideTooltip : void 0,
|
|
221
579
|
style: {
|
|
222
|
-
visibility:
|
|
580
|
+
visibility: "visible",
|
|
223
581
|
transform: `translate3d(${tooltipPosition.x}px, ${tooltipPosition.y}px, 0)`
|
|
224
582
|
},
|
|
225
|
-
children:
|
|
583
|
+
children: [
|
|
584
|
+
props.content,
|
|
585
|
+
variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
586
|
+
"div",
|
|
587
|
+
{
|
|
588
|
+
className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
|
|
589
|
+
style: getTailStyles(placement)
|
|
590
|
+
}
|
|
591
|
+
)
|
|
592
|
+
]
|
|
226
593
|
}
|
|
227
594
|
),
|
|
228
595
|
document.body
|
|
@@ -231,7 +598,7 @@ var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
231
598
|
});
|
|
232
599
|
Tooltip.displayName = "Tooltip";
|
|
233
600
|
var tooltip_default = Tooltip;
|
|
234
|
-
var
|
|
601
|
+
var tooltipStyle = tv({
|
|
235
602
|
slots: {
|
|
236
603
|
base: ["z-0", "relative", "bg-transparent"],
|
|
237
604
|
content: [
|
|
@@ -242,25 +609,25 @@ var tooltip = tv({
|
|
|
242
609
|
"items-center",
|
|
243
610
|
"justify-center",
|
|
244
611
|
"font-[500]",
|
|
245
|
-
"text-white",
|
|
246
|
-
"bg-
|
|
612
|
+
"text-common-white",
|
|
613
|
+
"bg-common-black"
|
|
247
614
|
]
|
|
248
615
|
},
|
|
249
616
|
variants: {
|
|
250
617
|
size: {
|
|
251
|
-
sm: { content: "text-sm rounded-
|
|
252
|
-
md: { content: "text-md rounded-
|
|
253
|
-
lg: { content: "text-lg rounded-
|
|
618
|
+
sm: { content: ["text-sm", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
619
|
+
md: { content: ["text-md", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
620
|
+
lg: { content: ["text-lg", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
|
|
621
|
+
xl: { content: ["text-xl", "rounded-[5px]", "px-[10px]", "py-[6px]"] }
|
|
254
622
|
},
|
|
255
|
-
|
|
256
|
-
true: {
|
|
257
|
-
|
|
258
|
-
}
|
|
623
|
+
tail: {
|
|
624
|
+
true: { content: [] },
|
|
625
|
+
false: {}
|
|
259
626
|
}
|
|
260
627
|
},
|
|
261
628
|
defaultVariants: {
|
|
262
|
-
color: "default",
|
|
263
629
|
size: "md",
|
|
264
|
-
|
|
630
|
+
placement: "top",
|
|
631
|
+
tail: false
|
|
265
632
|
}
|
|
266
633
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-RRL6KBU4.mjs";
|
|
5
|
+
import "../../chunk-ZMOAFSYE.mjs";
|
|
6
|
+
import "../../chunk-WSIADHVC.mjs";
|
|
7
|
+
import "../../chunk-IE2BRM7Z.mjs";
|
|
7
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-IZ6II3QA.mjs";
|
|
9
|
+
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
tooltip_default as default
|
|
12
12
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { a as TargetRect, u as useTooltip } from '../../tooltip-utils-
|
|
2
|
+
export { a as TargetRect, u as useTooltip } from '../../tooltip-utils-DO3LQaVM.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { a as TargetRect, u as useTooltip } from '../../tooltip-utils-
|
|
2
|
+
export { a as TargetRect, u as useTooltip } from '../../tooltip-utils-DO3LQaVM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useTooltip
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-ZMOAFSYE.mjs";
|
|
5
|
+
import "../../chunk-WSIADHVC.mjs";
|
|
6
|
+
import "../../chunk-AC6TWLRT.mjs";
|
|
7
7
|
export {
|
|
8
8
|
useTooltip
|
|
9
9
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|