@deepnoid/ui 1.0.21 → 1.0.23
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/dist/{chunk-N4KPGD2N.mjs → chunk-25LWG2XP.mjs} +20 -20
- package/dist/{chunk-ZOTHPHXA.mjs → chunk-2C4HKBHM.mjs} +4 -4
- package/dist/{chunk-H7D5EBLL.mjs → chunk-32GYEUAB.mjs} +14 -8
- package/dist/{chunk-3K4OTUIB.mjs → chunk-3Z2WSTCH.mjs} +13 -13
- package/dist/{chunk-JGF5TY7M.mjs → chunk-4ALAPTAW.mjs} +10 -10
- package/dist/{chunk-O5VW7CHY.mjs → chunk-4FUD3BZV.mjs} +13 -14
- package/dist/{chunk-WTBRXQFT.mjs → chunk-5TBL2VZ5.mjs} +30 -30
- package/dist/{chunk-LHWHM4LQ.mjs → chunk-6J6AXUUE.mjs} +2 -2
- package/dist/{chunk-WQG4OYM6.mjs → chunk-7K3EB4DC.mjs} +67 -63
- package/dist/{chunk-WS4SOWDZ.mjs → chunk-AHKNFPHN.mjs} +27 -25
- package/dist/{chunk-IOJMTN6X.mjs → chunk-APZCX3PY.mjs} +7 -7
- package/dist/{chunk-KAB3AB67.mjs → chunk-AZ5QZAO6.mjs} +59 -53
- package/dist/{chunk-D7DDV4UN.mjs → chunk-B2LJEDXL.mjs} +22 -14
- package/dist/{chunk-6PN3DGOE.mjs → chunk-BEFT2F7D.mjs} +3 -3
- package/dist/{chunk-BJWYF2WY.mjs → chunk-C6S73EGR.mjs} +15 -17
- package/dist/{chunk-A6UUVHC6.mjs → chunk-C7OETP3D.mjs} +4 -4
- package/dist/{chunk-5RJYESLP.mjs → chunk-EVXLGMV6.mjs} +3 -3
- package/dist/{chunk-3IBJXQTJ.mjs → chunk-GWOMD7ZU.mjs} +1 -1
- package/dist/{chunk-62M6VPFS.mjs → chunk-HDCCDPYL.mjs} +65 -55
- package/dist/{chunk-7OP3JEMA.mjs → chunk-HLO5N6WD.mjs} +1 -1
- package/dist/{chunk-CBIV6KFQ.mjs → chunk-IF6XCBGN.mjs} +6 -6
- package/dist/{chunk-Y3A7PN4Q.mjs → chunk-IPP2GKZN.mjs} +16 -16
- package/dist/{chunk-SXSVNBRO.mjs → chunk-J2URLA5S.mjs} +22 -16
- package/dist/{chunk-ZCJPPLYH.mjs → chunk-JUPZBZ5Q.mjs} +7 -7
- package/dist/{chunk-USZSQXHS.mjs → chunk-KFM54LT4.mjs} +1 -1
- package/dist/{chunk-2J4MNIMS.mjs → chunk-KGRQ3ZYI.mjs} +10 -4
- package/dist/{chunk-27Y6K5NK.mjs → chunk-KJFYLLMP.mjs} +3 -3
- package/dist/{chunk-G6SZN3EK.mjs → chunk-LHEENTLV.mjs} +2 -2
- package/dist/{chunk-MAGZDGUW.mjs → chunk-LIYGCVZ3.mjs} +11 -11
- package/dist/{chunk-O2KC4CDE.mjs → chunk-MLMG22I4.mjs} +33 -31
- package/dist/{chunk-KIINY2GS.mjs → chunk-MS65QLWR.mjs} +6 -6
- package/dist/{chunk-XTMOAGLY.mjs → chunk-MVCUYH2W.mjs} +8 -8
- package/dist/{chunk-LCEFG5IY.mjs → chunk-NATO6PUP.mjs} +7 -7
- package/dist/{chunk-7CTICAGW.mjs → chunk-NMPATSTB.mjs} +2 -2
- package/dist/{chunk-R32BQ3NV.mjs → chunk-NUXN36KF.mjs} +22 -22
- package/dist/{chunk-CXVDES22.mjs → chunk-NYQKX23D.mjs} +12 -8
- package/dist/{chunk-MC7SI5Q7.mjs → chunk-OI5NXYUY.mjs} +8 -6
- package/dist/chunk-PPTFOHMW.mjs +169 -0
- package/dist/chunk-Q3SNUBIS.mjs +114 -0
- package/dist/{chunk-AO6LNH3D.mjs → chunk-QDAHI6GC.mjs} +4 -4
- package/dist/{chunk-AOU4QX7H.mjs → chunk-QOOYAQJ5.mjs} +773 -773
- package/dist/{chunk-D3DKXTTY.mjs → chunk-R6N6IQPN.mjs} +3 -3
- package/dist/{chunk-37BZALDV.mjs → chunk-RZD3NZIL.mjs} +10 -10
- package/dist/{chunk-SR76DO4M.mjs → chunk-SJLO65GQ.mjs} +12 -12
- package/dist/{chunk-PIUOU6LS.mjs → chunk-TEF3UA4E.mjs} +13 -13
- package/dist/{chunk-SLKXMIWY.mjs → chunk-TPWND4RF.mjs} +7 -8
- package/dist/{chunk-E3G5QXSH.mjs → chunk-UWT2WB6H.mjs} +2 -4
- package/dist/{chunk-MT7AFUKT.mjs → chunk-VJ7BQ3PK.mjs} +6 -5
- package/dist/{chunk-VZPVEICG.mjs → chunk-W6CQRLD2.mjs} +37 -29
- package/dist/{chunk-KE26ONWZ.mjs → chunk-YM5JOOTO.mjs} +3 -3
- package/dist/{chunk-FNFQCMB4.mjs → chunk-YNPIAFQ7.mjs} +31 -27
- package/dist/{chunk-QUWWLVCI.mjs → chunk-YUNTNMZ4.mjs} +6 -6
- package/dist/{chunk-XS32UZI3.mjs → chunk-YYWOSKGH.mjs} +3 -3
- package/dist/components/accordion/accordion.js +7 -8
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.js +8 -11
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.js +13 -15
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.js +775 -775
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +775 -775
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.d.mts +4 -4
- package/dist/components/backdrop/backdrop.d.ts +4 -4
- package/dist/components/backdrop/backdrop.js +5 -5
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +5 -5
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.mts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +812 -814
- package/dist/components/breadcrumb/breadcrumb.mjs +13 -12
- package/dist/components/breadcrumb/index.js +812 -814
- package/dist/components/breadcrumb/index.mjs +13 -12
- package/dist/components/button/button-group.js +4 -4
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +2976 -2979
- package/dist/components/button/button.mjs +6 -6
- package/dist/components/button/icon-button.js +2968 -2970
- package/dist/components/button/icon-button.mjs +6 -6
- package/dist/components/button/image-button.d.mts +194 -0
- package/dist/components/button/image-button.d.ts +194 -0
- package/dist/components/button/image-button.js +5572 -0
- package/dist/components/button/image-button.mjs +16 -0
- package/dist/components/button/index.d.mts +1 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +3059 -2969
- package/dist/components/button/index.mjs +15 -11
- package/dist/components/button/text-button.js +62 -64
- package/dist/components/button/text-button.mjs +3 -3
- package/dist/components/charts/areaChart.d.mts +4 -4
- package/dist/components/charts/areaChart.d.ts +4 -4
- package/dist/components/charts/areaChart.js +39 -41
- package/dist/components/charts/areaChart.mjs +4 -4
- package/dist/components/charts/barChart.d.mts +8 -8
- package/dist/components/charts/barChart.d.ts +8 -8
- package/dist/components/charts/barChart.js +66 -58
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.d.mts +2 -2
- package/dist/components/charts/circularProgress.d.ts +2 -2
- package/dist/components/charts/circularProgress.js +14 -16
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +158 -148
- package/dist/components/charts/index.mjs +10 -10
- package/dist/components/charts/radarChart.d.mts +6 -6
- package/dist/components/charts/radarChart.d.ts +6 -6
- package/dist/components/charts/radarChart.js +17 -19
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/charts/simpleBarChart.d.mts +6 -6
- package/dist/components/charts/simpleBarChart.d.ts +6 -6
- package/dist/components/charts/simpleBarChart.js +31 -33
- package/dist/components/charts/simpleBarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.js +13 -15
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.js +13 -15
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.js +782 -784
- package/dist/components/chip/chip.mjs +5 -5
- package/dist/components/chip/index.js +782 -784
- package/dist/components/chip/index.mjs +5 -5
- package/dist/components/drawer/drawer.js +15 -13
- package/dist/components/drawer/drawer.mjs +3 -3
- package/dist/components/drawer/index.js +15 -13
- package/dist/components/drawer/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.d.mts +4 -4
- package/dist/components/fileUpload/fileUpload.d.ts +4 -4
- package/dist/components/fileUpload/fileUpload.js +880 -885
- package/dist/components/fileUpload/fileUpload.mjs +15 -14
- package/dist/components/fileUpload/index.js +880 -885
- package/dist/components/fileUpload/index.mjs +15 -14
- package/dist/components/icon/Icon.d.mts +179 -704
- package/dist/components/icon/Icon.d.ts +179 -704
- package/dist/components/icon/Icon.js +776 -776
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.d.mts +1 -1
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +776 -776
- package/dist/components/icon/index.mjs +3 -3
- package/dist/components/icon/template.d.mts +3 -3
- package/dist/components/icon/template.d.ts +3 -3
- package/dist/components/icon/template.js +773 -773
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +793 -797
- package/dist/components/input/index.mjs +6 -6
- package/dist/components/input/input.js +793 -797
- package/dist/components/input/input.mjs +6 -6
- package/dist/components/list/index.js +786 -788
- package/dist/components/list/index.mjs +9 -9
- package/dist/components/list/list.js +3 -5
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +785 -787
- package/dist/components/list/listItem.mjs +6 -6
- package/dist/components/modal/GlobalModalProvider.js +884 -887
- package/dist/components/modal/GlobalModalProvider.mjs +15 -14
- package/dist/components/modal/index.js +884 -887
- package/dist/components/modal/index.mjs +16 -15
- package/dist/components/modal/modal.js +875 -878
- package/dist/components/modal/modal.mjs +14 -13
- package/dist/components/modal/useGlobalModal.mjs +16 -15
- package/dist/components/pagination/index.js +850 -852
- package/dist/components/pagination/index.mjs +7 -7
- package/dist/components/pagination/pagination.js +850 -852
- package/dist/components/pagination/pagination.mjs +7 -7
- package/dist/components/picker/datePicker.d.mts +2 -2
- package/dist/components/picker/datePicker.d.ts +2 -2
- package/dist/components/picker/datePicker.js +1004 -1005
- package/dist/components/picker/datePicker.mjs +16 -15
- package/dist/components/picker/day.js +3 -5
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.js +1026 -1011
- package/dist/components/picker/index.mjs +19 -18
- package/dist/components/picker/timePicker/Panel.d.mts +2 -2
- package/dist/components/picker/timePicker/Panel.d.ts +2 -2
- package/dist/components/picker/timePicker/Panel.js +116 -106
- package/dist/components/picker/timePicker/Panel.mjs +15 -14
- package/dist/components/picker/timePicker/WheelColumn.d.mts +2 -2
- package/dist/components/picker/timePicker/WheelColumn.d.ts +2 -2
- package/dist/components/picker/timePicker/WheelColumn.js +10 -4
- package/dist/components/picker/timePicker/WheelColumn.mjs +1 -1
- package/dist/components/picker/timePicker/index.js +1573 -1561
- package/dist/components/picker/timePicker/index.mjs +17 -16
- package/dist/components/picker/utils.js +1 -1
- package/dist/components/picker/utils.mjs +1 -1
- package/dist/components/progress/index.js +4 -6
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.d.mts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/progress.js +4 -6
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.js +7 -9
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.js +7 -9
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/ripple/index.js +3 -3
- package/dist/components/ripple/index.mjs +1 -1
- package/dist/components/ripple/ripple.d.mts +1 -1
- package/dist/components/ripple/ripple.d.ts +1 -1
- package/dist/components/ripple/ripple.js +3 -3
- package/dist/components/ripple/ripple.mjs +1 -1
- package/dist/components/ripple/useRipple.d.mts +2 -2
- package/dist/components/ripple/useRipple.d.ts +2 -2
- package/dist/components/scroll/index.js +5 -5
- package/dist/components/scroll/index.mjs +2 -2
- package/dist/components/scroll/scrollArea.d.mts +6 -6
- package/dist/components/scroll/scrollArea.d.ts +6 -6
- package/dist/components/scroll/scrollArea.js +5 -5
- package/dist/components/scroll/scrollArea.mjs +2 -2
- package/dist/components/select/index.js +884 -878
- package/dist/components/select/index.mjs +13 -12
- package/dist/components/select/select.d.mts +2 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.js +884 -878
- package/dist/components/select/select.mjs +13 -12
- package/dist/components/skeleton/index.js +5 -5
- package/dist/components/skeleton/index.mjs +2 -2
- package/dist/components/skeleton/skeleton.d.mts +4 -4
- package/dist/components/skeleton/skeleton.d.ts +4 -4
- package/dist/components/skeleton/skeleton.js +5 -5
- package/dist/components/skeleton/skeleton.mjs +2 -2
- package/dist/components/slider/index.js +8 -10
- package/dist/components/slider/index.mjs +2 -2
- package/dist/components/slider/slider.js +8 -10
- package/dist/components/slider/slider.mjs +2 -2
- package/dist/components/starRating/index.js +798 -792
- package/dist/components/starRating/index.mjs +5 -5
- package/dist/components/starRating/starRating.js +798 -792
- package/dist/components/starRating/starRating.mjs +5 -5
- package/dist/components/switch/index.js +7 -9
- package/dist/components/switch/index.mjs +2 -2
- package/dist/components/switch/switch.js +7 -9
- package/dist/components/switch/switch.mjs +2 -2
- package/dist/components/table/definition-table.d.mts +11 -4
- package/dist/components/table/definition-table.d.ts +11 -4
- package/dist/components/table/definition-table.js +89 -60
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.d.mts +2 -2
- package/dist/components/table/form-table.d.ts +2 -2
- package/dist/components/table/form-table.js +10 -8
- package/dist/components/table/form-table.mjs +10 -8
- package/dist/components/table/index.js +2059 -2028
- package/dist/components/table/index.mjs +14 -14
- package/dist/components/table/table-body.d.mts +1 -1
- package/dist/components/table/table-body.d.ts +1 -1
- package/dist/components/table/table-body.js +1559 -1557
- package/dist/components/table/table-body.mjs +11 -11
- package/dist/components/table/table-head.d.mts +3 -3
- package/dist/components/table/table-head.d.ts +3 -3
- package/dist/components/table/table-head.js +1583 -1581
- package/dist/components/table/table-head.mjs +11 -11
- package/dist/components/table/table.d.mts +6 -6
- package/dist/components/table/table.d.ts +6 -6
- package/dist/components/table/table.js +1910 -1908
- package/dist/components/table/table.mjs +11 -11
- package/dist/components/tabs/index.js +2 -4
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.d.mts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tabs/tabs.js +2 -4
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.js +14 -16
- package/dist/components/textarea/index.mjs +3 -3
- package/dist/components/textarea/textarea.js +14 -16
- package/dist/components/textarea/textarea.mjs +3 -3
- package/dist/components/timePicker/calendar.js +791 -791
- package/dist/components/timePicker/calendar.mjs +19 -17
- package/dist/components/timePicker/useDateTimePicker.d.mts +2 -2
- package/dist/components/timePicker/useDateTimePicker.d.ts +2 -2
- package/dist/components/timePicker/useDateTimePicker.js +3 -1
- package/dist/components/timePicker/useDateTimePicker.mjs +4 -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 +801 -797
- package/dist/components/toast/index.mjs +8 -8
- package/dist/components/toast/toast-utils.js +4 -4
- package/dist/components/toast/toast-utils.mjs +1 -1
- package/dist/components/toast/toast.d.mts +1 -1
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/toast/toast.js +785 -787
- package/dist/components/toast/toast.mjs +6 -6
- package/dist/components/toast/use-toast.d.mts +3 -3
- package/dist/components/toast/use-toast.d.ts +3 -3
- package/dist/components/toast/use-toast.js +801 -797
- package/dist/components/toast/use-toast.mjs +8 -8
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +9 -9
- package/dist/components/tooltip/index.mjs +2 -2
- 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.d.mts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +9 -9
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/components/tree/index.js +799 -799
- package/dist/components/tree/index.mjs +5 -5
- package/dist/components/tree/tree.d.mts +8 -8
- package/dist/components/tree/tree.d.ts +8 -8
- package/dist/components/tree/tree.js +799 -799
- package/dist/components/tree/tree.mjs +5 -5
- package/dist/hooks/useIsMounted.d.mts +2 -2
- package/dist/hooks/useIsMounted.d.ts +2 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2606 -2421
- package/dist/index.mjs +95 -91
- package/dist/{tooltip-utils-DO3LQaVM.d.ts → tooltip-utils-dEqsJ9t8.d.mts} +2 -2
- package/dist/{tooltip-utils-DO3LQaVM.d.mts → tooltip-utils-dEqsJ9t8.d.ts} +2 -2
- package/dist/utils/clsx.js +3 -3
- package/dist/utils/clsx.mjs +1 -1
- package/dist/utils/props.js +2 -4
- package/dist/utils/props.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HXBZB7CW.mjs +0 -140
- package/dist/{chunk-LXHUO6VM.mjs → chunk-EAFNOTY3.mjs} +3 -3
- /package/dist/{chunk-MY5U63QO.mjs → chunk-M5PMA3CT.mjs} +0 -0
- /package/dist/{chunk-ZYIIXWVY.mjs → chunk-WG2WVMAR.mjs} +0 -0
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getCellStyle,
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-AZ5QZAO6.mjs";
|
|
6
6
|
import "../../chunk-7B7LRG5J.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-AHKNFPHN.mjs";
|
|
8
8
|
import "../../chunk-F3HENRVM.mjs";
|
|
9
|
-
import "../../chunk-QZ3LVYJW.mjs";
|
|
10
|
-
import "../../chunk-37BZALDV.mjs";
|
|
11
9
|
import "../../chunk-2GCSFWHD.mjs";
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-C6S73EGR.mjs";
|
|
11
|
+
import "../../chunk-QZ3LVYJW.mjs";
|
|
12
|
+
import "../../chunk-RZD3NZIL.mjs";
|
|
13
13
|
import "../../chunk-DQRAFUDA.mjs";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-YYWOSKGH.mjs";
|
|
15
|
+
import "../../chunk-M5PMA3CT.mjs";
|
|
16
|
+
import "../../chunk-C7OETP3D.mjs";
|
|
17
|
+
import "../../chunk-QOOYAQJ5.mjs";
|
|
18
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
19
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
20
20
|
import "../../chunk-UP6RPQDX.mjs";
|
|
21
21
|
export {
|
|
22
22
|
table_default as default,
|
|
@@ -77,16 +77,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
77
77
|
const picked = variantKeys.reduce((acc, key) => {
|
|
78
78
|
if (key in props) {
|
|
79
79
|
return { ...acc, [key]: props[key] };
|
|
80
|
-
} else {
|
|
81
|
-
return acc;
|
|
82
80
|
}
|
|
81
|
+
return acc;
|
|
83
82
|
}, {});
|
|
84
83
|
if (removeVariantProps) {
|
|
85
84
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
86
85
|
return [omitted, picked];
|
|
87
|
-
} else {
|
|
88
|
-
return [props, picked];
|
|
89
86
|
}
|
|
87
|
+
return [props, picked];
|
|
90
88
|
};
|
|
91
89
|
|
|
92
90
|
// src/components/tabs/tabs.tsx
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../../chunk-3MY6LO7N.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-KFM54LT4.mjs";
|
|
6
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
7
7
|
import "../../chunk-UP6RPQDX.mjs";
|
|
8
8
|
export {
|
|
9
9
|
tabs_default as Tabs
|
|
@@ -9,12 +9,12 @@ interface Props {
|
|
|
9
9
|
classNames?: SlotsToClasses<TabsSlots>;
|
|
10
10
|
}
|
|
11
11
|
type TabsProps = Props & TabsVariantProps;
|
|
12
|
-
|
|
12
|
+
interface TabsDataType {
|
|
13
13
|
key: string;
|
|
14
14
|
title: string;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
component: ReactNode;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
declare const Tabs: react__default.ForwardRefExoticComponent<Props & TabsVariantProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
|
|
20
20
|
declare const tabs: tailwind_variants.TVReturnType<{
|
|
@@ -9,12 +9,12 @@ interface Props {
|
|
|
9
9
|
classNames?: SlotsToClasses<TabsSlots>;
|
|
10
10
|
}
|
|
11
11
|
type TabsProps = Props & TabsVariantProps;
|
|
12
|
-
|
|
12
|
+
interface TabsDataType {
|
|
13
13
|
key: string;
|
|
14
14
|
title: string;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
component: ReactNode;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
declare const Tabs: react__default.ForwardRefExoticComponent<Props & TabsVariantProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
|
|
20
20
|
declare const tabs: tailwind_variants.TVReturnType<{
|
|
@@ -76,16 +76,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
76
76
|
const picked = variantKeys.reduce((acc, key) => {
|
|
77
77
|
if (key in props) {
|
|
78
78
|
return { ...acc, [key]: props[key] };
|
|
79
|
-
} else {
|
|
80
|
-
return acc;
|
|
81
79
|
}
|
|
80
|
+
return acc;
|
|
82
81
|
}, {});
|
|
83
82
|
if (removeVariantProps) {
|
|
84
83
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
85
84
|
return [omitted, picked];
|
|
86
|
-
} else {
|
|
87
|
-
return [props, picked];
|
|
88
85
|
}
|
|
86
|
+
return [props, picked];
|
|
89
87
|
};
|
|
90
88
|
|
|
91
89
|
// src/components/tabs/tabs.tsx
|
|
@@ -37,21 +37,19 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
37
37
|
const picked = variantKeys.reduce((acc, key) => {
|
|
38
38
|
if (key in props) {
|
|
39
39
|
return { ...acc, [key]: props[key] };
|
|
40
|
-
} else {
|
|
41
|
-
return acc;
|
|
42
40
|
}
|
|
41
|
+
return acc;
|
|
43
42
|
}, {});
|
|
44
43
|
if (removeVariantProps) {
|
|
45
44
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
46
45
|
return [omitted, picked];
|
|
47
|
-
} else {
|
|
48
|
-
return [props, picked];
|
|
49
46
|
}
|
|
47
|
+
return [props, picked];
|
|
50
48
|
};
|
|
51
49
|
|
|
52
50
|
// src/utils/clsx.ts
|
|
53
51
|
function clsx(...args) {
|
|
54
|
-
|
|
52
|
+
let i = 0, tmp, x, str = "";
|
|
55
53
|
while (i < args.length) {
|
|
56
54
|
if (tmp = args[i++]) {
|
|
57
55
|
if (x = toVal(tmp)) {
|
|
@@ -63,12 +61,12 @@ function clsx(...args) {
|
|
|
63
61
|
return str;
|
|
64
62
|
}
|
|
65
63
|
function toVal(mix) {
|
|
66
|
-
|
|
64
|
+
let k, y, str = "";
|
|
67
65
|
if (typeof mix === "string" || typeof mix === "number") {
|
|
68
66
|
str += mix;
|
|
69
67
|
} else if (typeof mix === "object") {
|
|
70
68
|
if (Array.isArray(mix)) {
|
|
71
|
-
|
|
69
|
+
const len = mix.length;
|
|
72
70
|
for (k = 0; k < len; k++) {
|
|
73
71
|
if (mix[k]) {
|
|
74
72
|
if (y = toVal(mix[k])) {
|
|
@@ -106,7 +104,7 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
106
104
|
const lineHeight = parseFloat(computed.lineHeight);
|
|
107
105
|
const minRows = el.rows || rows || 1;
|
|
108
106
|
const minHeight = lineHeight * minRows;
|
|
109
|
-
el.style.height = Math.max(el.scrollHeight, minHeight)
|
|
107
|
+
el.style.height = `${Math.max(el.scrollHeight, minHeight)}px`;
|
|
110
108
|
}, [rows]);
|
|
111
109
|
const handleChange = (0, import_react.useCallback)(
|
|
112
110
|
(e) => {
|
|
@@ -129,7 +127,7 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
129
127
|
variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
|
|
130
128
|
),
|
|
131
129
|
children: [
|
|
132
|
-
label
|
|
130
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
|
|
133
131
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
134
132
|
"div",
|
|
135
133
|
{
|
|
@@ -143,14 +141,14 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
143
141
|
{
|
|
144
142
|
ref: innerRef,
|
|
145
143
|
...textareaProps,
|
|
146
|
-
|
|
147
|
-
readOnly: props.readOnly,
|
|
144
|
+
className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea }),
|
|
148
145
|
onChange: handleChange,
|
|
149
|
-
|
|
146
|
+
readOnly: props.readOnly,
|
|
147
|
+
rows
|
|
150
148
|
}
|
|
151
149
|
),
|
|
152
150
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
|
|
153
|
-
helperMessage && errorMessage === void 0
|
|
151
|
+
helperMessage && errorMessage === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
154
152
|
"p",
|
|
155
153
|
{
|
|
156
154
|
className: clsx(
|
|
@@ -159,9 +157,9 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
159
157
|
),
|
|
160
158
|
children: helperMessage
|
|
161
159
|
}
|
|
162
|
-
),
|
|
163
|
-
errorMessage && errorMessage.length > 0
|
|
164
|
-
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", "sr-only")
|
|
160
|
+
) : null,
|
|
161
|
+
errorMessage && errorMessage.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }) : null,
|
|
162
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "aria-hidden": "true", className: clsx("error", "sr-only") }),
|
|
165
163
|
textareaProps.maxLength !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
166
164
|
"p",
|
|
167
165
|
{
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-RRAZM5D3.mjs";
|
|
3
3
|
import {
|
|
4
4
|
textarea_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-LIYGCVZ3.mjs";
|
|
6
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
7
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
8
8
|
export {
|
|
9
9
|
textarea_default as Textarea
|
|
10
10
|
};
|
|
@@ -36,21 +36,19 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
36
36
|
const picked = variantKeys.reduce((acc, key) => {
|
|
37
37
|
if (key in props) {
|
|
38
38
|
return { ...acc, [key]: props[key] };
|
|
39
|
-
} else {
|
|
40
|
-
return acc;
|
|
41
39
|
}
|
|
40
|
+
return acc;
|
|
42
41
|
}, {});
|
|
43
42
|
if (removeVariantProps) {
|
|
44
43
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
45
44
|
return [omitted, picked];
|
|
46
|
-
} else {
|
|
47
|
-
return [props, picked];
|
|
48
45
|
}
|
|
46
|
+
return [props, picked];
|
|
49
47
|
};
|
|
50
48
|
|
|
51
49
|
// src/utils/clsx.ts
|
|
52
50
|
function clsx(...args) {
|
|
53
|
-
|
|
51
|
+
let i = 0, tmp, x, str = "";
|
|
54
52
|
while (i < args.length) {
|
|
55
53
|
if (tmp = args[i++]) {
|
|
56
54
|
if (x = toVal(tmp)) {
|
|
@@ -62,12 +60,12 @@ function clsx(...args) {
|
|
|
62
60
|
return str;
|
|
63
61
|
}
|
|
64
62
|
function toVal(mix) {
|
|
65
|
-
|
|
63
|
+
let k, y, str = "";
|
|
66
64
|
if (typeof mix === "string" || typeof mix === "number") {
|
|
67
65
|
str += mix;
|
|
68
66
|
} else if (typeof mix === "object") {
|
|
69
67
|
if (Array.isArray(mix)) {
|
|
70
|
-
|
|
68
|
+
const len = mix.length;
|
|
71
69
|
for (k = 0; k < len; k++) {
|
|
72
70
|
if (mix[k]) {
|
|
73
71
|
if (y = toVal(mix[k])) {
|
|
@@ -105,7 +103,7 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
105
103
|
const lineHeight = parseFloat(computed.lineHeight);
|
|
106
104
|
const minRows = el.rows || rows || 1;
|
|
107
105
|
const minHeight = lineHeight * minRows;
|
|
108
|
-
el.style.height = Math.max(el.scrollHeight, minHeight)
|
|
106
|
+
el.style.height = `${Math.max(el.scrollHeight, minHeight)}px`;
|
|
109
107
|
}, [rows]);
|
|
110
108
|
const handleChange = (0, import_react.useCallback)(
|
|
111
109
|
(e) => {
|
|
@@ -128,7 +126,7 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
128
126
|
variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
|
|
129
127
|
),
|
|
130
128
|
children: [
|
|
131
|
-
label
|
|
129
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
|
|
132
130
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
133
131
|
"div",
|
|
134
132
|
{
|
|
@@ -142,14 +140,14 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
142
140
|
{
|
|
143
141
|
ref: innerRef,
|
|
144
142
|
...textareaProps,
|
|
145
|
-
|
|
146
|
-
readOnly: props.readOnly,
|
|
143
|
+
className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea }),
|
|
147
144
|
onChange: handleChange,
|
|
148
|
-
|
|
145
|
+
readOnly: props.readOnly,
|
|
146
|
+
rows
|
|
149
147
|
}
|
|
150
148
|
),
|
|
151
149
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
|
|
152
|
-
helperMessage && errorMessage === void 0
|
|
150
|
+
helperMessage && errorMessage === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
151
|
"p",
|
|
154
152
|
{
|
|
155
153
|
className: clsx(
|
|
@@ -158,9 +156,9 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
158
156
|
),
|
|
159
157
|
children: helperMessage
|
|
160
158
|
}
|
|
161
|
-
),
|
|
162
|
-
errorMessage && errorMessage.length > 0
|
|
163
|
-
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", "sr-only")
|
|
159
|
+
) : null,
|
|
160
|
+
errorMessage && errorMessage.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }) : null,
|
|
161
|
+
errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "aria-hidden": "true", className: clsx("error", "sr-only") }),
|
|
164
162
|
textareaProps.maxLength !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
165
163
|
"p",
|
|
166
164
|
{
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
textarea_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-LIYGCVZ3.mjs";
|
|
6
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
7
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
8
8
|
export {
|
|
9
9
|
textarea_default as default
|
|
10
10
|
};
|