@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
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-3OCNT22V.mjs";
|
|
3
|
+
import {
|
|
4
|
+
radarChart_default
|
|
5
|
+
} from "../../chunk-IPP2GKZN.mjs";
|
|
3
6
|
import {
|
|
4
7
|
simpleBarChart_default
|
|
5
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-5TBL2VZ5.mjs";
|
|
6
9
|
import {
|
|
7
10
|
areaChart_default
|
|
8
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-MLMG22I4.mjs";
|
|
9
12
|
import "../../chunk-DQRAFUDA.mjs";
|
|
10
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-YYWOSKGH.mjs";
|
|
11
14
|
import {
|
|
12
15
|
BarChartTooltip,
|
|
13
16
|
barChart_default
|
|
14
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-HDCCDPYL.mjs";
|
|
15
18
|
import {
|
|
16
19
|
circularProgress_default
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
} from "../../chunk-Y3A7PN4Q.mjs";
|
|
21
|
-
import "../../chunk-27Y6K5NK.mjs";
|
|
22
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
20
|
+
} from "../../chunk-TEF3UA4E.mjs";
|
|
21
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
22
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
23
23
|
import "../../chunk-UP6RPQDX.mjs";
|
|
24
24
|
export {
|
|
25
25
|
areaChart_default as AreaChart,
|
|
@@ -4,21 +4,21 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface RadarData {
|
|
8
8
|
name: string;
|
|
9
9
|
value: number;
|
|
10
10
|
fullMark?: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
11
|
+
}
|
|
12
|
+
interface TooltipFormatterParams {
|
|
13
13
|
label: string;
|
|
14
14
|
data: RadarData;
|
|
15
|
-
}
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
interface Props {
|
|
17
17
|
data?: RadarData[];
|
|
18
18
|
label?: string;
|
|
19
19
|
classNames?: SlotsToClasses<RadarChartSlots>;
|
|
20
20
|
tooltipFormatter?: (props: TooltipFormatterParams) => ReactNode;
|
|
21
|
-
}
|
|
21
|
+
}
|
|
22
22
|
type RadarChartProps = Props & RadarChartVariantProps;
|
|
23
23
|
declare const RadarChart: react.ForwardRefExoticComponent<Props & RadarChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
@@ -4,21 +4,21 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface RadarData {
|
|
8
8
|
name: string;
|
|
9
9
|
value: number;
|
|
10
10
|
fullMark?: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
11
|
+
}
|
|
12
|
+
interface TooltipFormatterParams {
|
|
13
13
|
label: string;
|
|
14
14
|
data: RadarData;
|
|
15
|
-
}
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
interface Props {
|
|
17
17
|
data?: RadarData[];
|
|
18
18
|
label?: string;
|
|
19
19
|
classNames?: SlotsToClasses<RadarChartSlots>;
|
|
20
20
|
tooltipFormatter?: (props: TooltipFormatterParams) => ReactNode;
|
|
21
|
-
}
|
|
21
|
+
}
|
|
22
22
|
type RadarChartProps = Props & RadarChartVariantProps;
|
|
23
23
|
declare const RadarChart: react.ForwardRefExoticComponent<Props & RadarChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
@@ -35,16 +35,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
35
35
|
const picked = variantKeys.reduce((acc, key) => {
|
|
36
36
|
if (key in props) {
|
|
37
37
|
return { ...acc, [key]: props[key] };
|
|
38
|
-
} else {
|
|
39
|
-
return acc;
|
|
40
38
|
}
|
|
39
|
+
return acc;
|
|
41
40
|
}, {});
|
|
42
41
|
if (removeVariantProps) {
|
|
43
42
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
44
43
|
return [omitted, picked];
|
|
45
|
-
} else {
|
|
46
|
-
return [props, picked];
|
|
47
44
|
}
|
|
45
|
+
return [props, picked];
|
|
48
46
|
};
|
|
49
47
|
|
|
50
48
|
// src/utils/tailwind-variants.ts
|
|
@@ -119,14 +117,14 @@ var RadarChart = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
119
117
|
if (data.length === 3) return { cx: "50%", cy: "65%" };
|
|
120
118
|
return {};
|
|
121
119
|
}, [data]);
|
|
122
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
123
|
-
label
|
|
124
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%",
|
|
120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
|
|
121
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
|
|
122
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { height: containerHeight, width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
125
123
|
import_recharts.RadarChart,
|
|
126
124
|
{
|
|
127
125
|
data: normalizedData,
|
|
128
|
-
outerRadius,
|
|
129
126
|
margin: chartMargin,
|
|
127
|
+
outerRadius,
|
|
130
128
|
...chartCenter,
|
|
131
129
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
132
130
|
children: [
|
|
@@ -140,22 +138,23 @@ var RadarChart = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
140
138
|
tickSize: 15
|
|
141
139
|
}
|
|
142
140
|
),
|
|
143
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarRadiusAxis, { domain: [0, 100], tick: false, tickCount: 6
|
|
141
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarRadiusAxis, { axisLine: false, domain: [0, 100], tick: false, tickCount: 6 }),
|
|
144
142
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
143
|
import_recharts.Radar,
|
|
146
144
|
{
|
|
147
|
-
|
|
145
|
+
activeDot: false,
|
|
148
146
|
dataKey: "value",
|
|
149
|
-
stroke: "#3F9CF2",
|
|
150
|
-
fill: "#EFF8FF",
|
|
151
|
-
strokeWidth: 1.75,
|
|
152
147
|
dot: false,
|
|
153
|
-
|
|
148
|
+
fill: "#EFF8FF",
|
|
149
|
+
name: label,
|
|
150
|
+
stroke: "#3F9CF2",
|
|
151
|
+
strokeWidth: 1.75
|
|
154
152
|
}
|
|
155
153
|
),
|
|
156
|
-
tooltipFormatter
|
|
154
|
+
tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
157
155
|
import_recharts.Tooltip,
|
|
158
156
|
{
|
|
157
|
+
allowEscapeViewBox: { x: true, y: true },
|
|
159
158
|
content: ({ active, payload, label: tooltipLabel }) => {
|
|
160
159
|
var _a, _b;
|
|
161
160
|
const currentData = data == null ? void 0 : data.find((item) => item.name === tooltipLabel);
|
|
@@ -166,12 +165,11 @@ var RadarChart = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
166
165
|
data: currentData
|
|
167
166
|
}) });
|
|
168
167
|
},
|
|
169
|
-
|
|
170
|
-
allowEscapeViewBox: { x: true, y: true },
|
|
168
|
+
cursor: false,
|
|
171
169
|
isAnimationActive: false,
|
|
172
|
-
|
|
170
|
+
wrapperStyle: { zIndex: 9999 }
|
|
173
171
|
}
|
|
174
|
-
)
|
|
172
|
+
) : null
|
|
175
173
|
]
|
|
176
174
|
}
|
|
177
175
|
) }) })
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
radarChart_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-IPP2GKZN.mjs";
|
|
5
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
6
6
|
import "../../chunk-UP6RPQDX.mjs";
|
|
7
7
|
export {
|
|
8
8
|
radarChart_default as default
|
|
@@ -4,15 +4,15 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface SimpleBarData {
|
|
8
8
|
title: string;
|
|
9
9
|
value: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
interface TooltipFormatterParams {
|
|
12
12
|
value: number;
|
|
13
13
|
label: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
interface Props {
|
|
16
16
|
data?: SimpleBarData[];
|
|
17
17
|
label?: string;
|
|
18
18
|
classNames?: SlotsToClasses<simpleBarChartSlots>;
|
|
@@ -20,7 +20,7 @@ type Props = {
|
|
|
20
20
|
yAxisDomain?: [number, number];
|
|
21
21
|
barGap?: number;
|
|
22
22
|
tooltipFormatter?: (params: TooltipFormatterParams) => ReactNode;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
type simpleBarChartProps = Props & simpleBarChartVariantProps;
|
|
25
25
|
declare const SimpleBarChartComponent: react.ForwardRefExoticComponent<Props & simpleBarChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
|
|
@@ -4,15 +4,15 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface SimpleBarData {
|
|
8
8
|
title: string;
|
|
9
9
|
value: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
interface TooltipFormatterParams {
|
|
12
12
|
value: number;
|
|
13
13
|
label: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
interface Props {
|
|
16
16
|
data?: SimpleBarData[];
|
|
17
17
|
label?: string;
|
|
18
18
|
classNames?: SlotsToClasses<simpleBarChartSlots>;
|
|
@@ -20,7 +20,7 @@ type Props = {
|
|
|
20
20
|
yAxisDomain?: [number, number];
|
|
21
21
|
barGap?: number;
|
|
22
22
|
tooltipFormatter?: (params: TooltipFormatterParams) => ReactNode;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
type simpleBarChartProps = Props & simpleBarChartVariantProps;
|
|
25
25
|
declare const SimpleBarChartComponent: react.ForwardRefExoticComponent<Props & simpleBarChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
|
|
@@ -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/charts/simpleBarChart.tsx
|
|
@@ -152,7 +150,7 @@ var SimpleBarChartComponent = (0, import_react.forwardRef)((originalProps, ref)
|
|
|
152
150
|
const handleMouseLeave = () => {
|
|
153
151
|
setTooltipState(null);
|
|
154
152
|
};
|
|
155
|
-
|
|
153
|
+
function CustomBarShape({ x, y, width, height, fill }) {
|
|
156
154
|
const radius = 4;
|
|
157
155
|
const extraHeight = 10;
|
|
158
156
|
const adjustedHeight = height + extraHeight;
|
|
@@ -164,23 +162,23 @@ var SimpleBarChartComponent = (0, import_react.forwardRef)((originalProps, ref)
|
|
|
164
162
|
d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
|
|
165
163
|
fill
|
|
166
164
|
}
|
|
167
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
|
|
168
|
-
}
|
|
169
|
-
|
|
165
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { fill, height: 0, width, x, y });
|
|
166
|
+
}
|
|
167
|
+
function CustomTick({ x, y, payload }) {
|
|
170
168
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
171
169
|
"text",
|
|
172
170
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
textAnchor: "middle",
|
|
171
|
+
className: "text-body-foreground",
|
|
172
|
+
fill: "currentColor",
|
|
176
173
|
fontSize: 12,
|
|
177
174
|
fontWeight: 700,
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
textAnchor: "middle",
|
|
176
|
+
x,
|
|
177
|
+
y: y + 14,
|
|
180
178
|
children: payload.value
|
|
181
179
|
}
|
|
182
180
|
);
|
|
183
|
-
}
|
|
181
|
+
}
|
|
184
182
|
(0, import_react.useLayoutEffect)(() => {
|
|
185
183
|
if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
|
|
186
184
|
const chartRect = chartRef.current.getBoundingClientRect();
|
|
@@ -199,7 +197,6 @@ var SimpleBarChartComponent = (0, import_react.forwardRef)((originalProps, ref)
|
|
|
199
197
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
200
198
|
"div",
|
|
201
199
|
{
|
|
202
|
-
ref: chartRef,
|
|
203
200
|
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
204
201
|
onMouseLeave: handleMouseLeave,
|
|
205
202
|
onMouseMove: (e) => {
|
|
@@ -208,63 +205,64 @@ var SimpleBarChartComponent = (0, import_react.forwardRef)((originalProps, ref)
|
|
|
208
205
|
setTooltipState(null);
|
|
209
206
|
}
|
|
210
207
|
},
|
|
208
|
+
ref: chartRef,
|
|
211
209
|
children: [
|
|
212
|
-
label
|
|
213
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%",
|
|
210
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
|
|
211
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { height: 140, width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
214
212
|
import_recharts.BarChart,
|
|
215
213
|
{
|
|
216
|
-
data,
|
|
217
|
-
margin: { left: 0, right: 0, top: 0, bottom: 0 },
|
|
218
|
-
barSize: 10,
|
|
219
214
|
barGap,
|
|
215
|
+
barSize: 10,
|
|
220
216
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
217
|
+
data,
|
|
218
|
+
margin: { left: 0, right: 0, top: 0, bottom: 0 },
|
|
221
219
|
children: [
|
|
222
220
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
223
221
|
import_recharts.CartesianGrid,
|
|
224
222
|
{
|
|
225
|
-
|
|
223
|
+
className: "stroke-neutral-light",
|
|
226
224
|
horizontal: false,
|
|
227
225
|
strokeDasharray: "4 4",
|
|
228
|
-
|
|
226
|
+
vertical: true,
|
|
229
227
|
verticalPoints: tickPositions
|
|
230
228
|
}
|
|
231
229
|
),
|
|
232
230
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
233
231
|
import_recharts.CartesianGrid,
|
|
234
232
|
{
|
|
235
|
-
|
|
233
|
+
className: "stroke-neutral-light",
|
|
236
234
|
horizontal: false,
|
|
237
235
|
strokeDasharray: "0",
|
|
238
236
|
strokeWidth: 2,
|
|
239
|
-
|
|
237
|
+
vertical: true,
|
|
240
238
|
verticalPoints: [0]
|
|
241
239
|
}
|
|
242
240
|
),
|
|
243
241
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
244
242
|
import_recharts.XAxis,
|
|
245
243
|
{
|
|
246
|
-
dataKey: "title",
|
|
247
244
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
248
|
-
|
|
245
|
+
dataKey: "title",
|
|
246
|
+
padding: { left: 0, right: 0 },
|
|
249
247
|
tick: CustomTick,
|
|
250
|
-
|
|
248
|
+
tickLine: false
|
|
251
249
|
}
|
|
252
250
|
),
|
|
253
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.YAxis, { hide: true, ticks: yAxisTicks
|
|
251
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.YAxis, { domain: yAxisDomain, hide: true, ticks: yAxisTicks }),
|
|
254
252
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
255
253
|
import_recharts.Bar,
|
|
256
254
|
{
|
|
257
255
|
dataKey: "value",
|
|
258
256
|
fill: "#C7E5FA",
|
|
259
|
-
shape: CustomBarShape,
|
|
260
257
|
onMouseEnter: handleMouseEnter,
|
|
261
|
-
onMouseLeave: handleMouseLeave
|
|
258
|
+
onMouseLeave: handleMouseLeave,
|
|
259
|
+
shape: CustomBarShape
|
|
262
260
|
}
|
|
263
261
|
)
|
|
264
262
|
]
|
|
265
263
|
}
|
|
266
264
|
) }),
|
|
267
|
-
tooltipFormatter
|
|
265
|
+
tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
268
266
|
"div",
|
|
269
267
|
{
|
|
270
268
|
ref: tooltipRef,
|
|
@@ -280,9 +278,9 @@ var SimpleBarChartComponent = (0, import_react.forwardRef)((originalProps, ref)
|
|
|
280
278
|
width: "fit-content",
|
|
281
279
|
whiteSpace: "nowrap"
|
|
282
280
|
},
|
|
283
|
-
children: tooltipState
|
|
281
|
+
children: tooltipState ? tooltipFormatter(tooltipState) : null
|
|
284
282
|
}
|
|
285
|
-
)
|
|
283
|
+
) : null
|
|
286
284
|
]
|
|
287
285
|
}
|
|
288
286
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
simpleBarChart_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-5TBL2VZ5.mjs";
|
|
5
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
6
6
|
import "../../chunk-UP6RPQDX.mjs";
|
|
7
7
|
export {
|
|
8
8
|
simpleBarChart_default as default
|
|
@@ -75,21 +75,19 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
75
75
|
const picked = variantKeys.reduce((acc, key) => {
|
|
76
76
|
if (key in props) {
|
|
77
77
|
return { ...acc, [key]: props[key] };
|
|
78
|
-
} else {
|
|
79
|
-
return acc;
|
|
80
78
|
}
|
|
79
|
+
return acc;
|
|
81
80
|
}, {});
|
|
82
81
|
if (removeVariantProps) {
|
|
83
82
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
84
83
|
return [omitted, picked];
|
|
85
|
-
} else {
|
|
86
|
-
return [props, picked];
|
|
87
84
|
}
|
|
85
|
+
return [props, picked];
|
|
88
86
|
};
|
|
89
87
|
|
|
90
88
|
// src/utils/clsx.ts
|
|
91
89
|
function clsx(...args) {
|
|
92
|
-
|
|
90
|
+
let i = 0, tmp, x, str = "";
|
|
93
91
|
while (i < args.length) {
|
|
94
92
|
if (tmp = args[i++]) {
|
|
95
93
|
if (x = toVal(tmp)) {
|
|
@@ -101,12 +99,12 @@ function clsx(...args) {
|
|
|
101
99
|
return str;
|
|
102
100
|
}
|
|
103
101
|
function toVal(mix) {
|
|
104
|
-
|
|
102
|
+
let k, y, str = "";
|
|
105
103
|
if (typeof mix === "string" || typeof mix === "number") {
|
|
106
104
|
str += mix;
|
|
107
105
|
} else if (typeof mix === "object") {
|
|
108
106
|
if (Array.isArray(mix)) {
|
|
109
|
-
|
|
107
|
+
const len = mix.length;
|
|
110
108
|
for (k = 0; k < len; k++) {
|
|
111
109
|
if (mix[k]) {
|
|
112
110
|
if (y = toVal(mix[k])) {
|
|
@@ -143,23 +141,23 @@ var CheckBox = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
143
141
|
labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
|
|
144
142
|
),
|
|
145
143
|
children: [
|
|
146
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...inputProps, type: "checkbox"
|
|
144
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...inputProps, ref, type: "checkbox" }) }),
|
|
147
145
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
146
|
CheckBoxIcon,
|
|
149
147
|
{
|
|
150
|
-
|
|
148
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
151
149
|
isSelected,
|
|
152
|
-
|
|
150
|
+
size: variantProps.size
|
|
153
151
|
}
|
|
154
152
|
) }),
|
|
155
|
-
children
|
|
153
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) : null
|
|
156
154
|
]
|
|
157
155
|
}
|
|
158
156
|
);
|
|
159
157
|
});
|
|
160
158
|
CheckBox.displayName = "CheckBox";
|
|
161
159
|
var checkbox_default = CheckBox;
|
|
162
|
-
|
|
160
|
+
function CheckBoxIcon({ size, isSelected, className }) {
|
|
163
161
|
const strokeWidth = (0, import_react.useMemo)(() => {
|
|
164
162
|
switch (size) {
|
|
165
163
|
case "sm":
|
|
@@ -174,18 +172,18 @@ var CheckBoxIcon = ({ size, isSelected, className }) => {
|
|
|
174
172
|
return 1.25;
|
|
175
173
|
}
|
|
176
174
|
}, [size]);
|
|
177
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className, fill: "none", viewBox: "0 0 13 13", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
178
176
|
"path",
|
|
179
177
|
{
|
|
180
178
|
d: "M2.16667 6.90123L5.63334 10.1111L10.8333 2.88889",
|
|
181
179
|
stroke: "currentColor",
|
|
182
|
-
strokeWidth,
|
|
183
180
|
strokeLinecap: "round",
|
|
184
181
|
strokeLinejoin: "round",
|
|
182
|
+
strokeWidth,
|
|
185
183
|
style: isSelected ? { transition: "stroke-dashoffset 250ms linear 0.2s" } : {}
|
|
186
184
|
}
|
|
187
185
|
) });
|
|
188
|
-
}
|
|
186
|
+
}
|
|
189
187
|
var checkboxStyle = tv({
|
|
190
188
|
slots: {
|
|
191
189
|
base: ["group", "relative", "inline-flex", "items-center", "cursor-pointer"],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
checkbox_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-RZD3NZIL.mjs";
|
|
5
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
6
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
7
7
|
import "../../chunk-UP6RPQDX.mjs";
|
|
8
8
|
export {
|
|
9
9
|
checkbox_default as default
|
|
@@ -77,21 +77,19 @@ 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/utils/clsx.ts
|
|
93
91
|
function clsx(...args) {
|
|
94
|
-
|
|
92
|
+
let i = 0, tmp, x, str = "";
|
|
95
93
|
while (i < args.length) {
|
|
96
94
|
if (tmp = args[i++]) {
|
|
97
95
|
if (x = toVal(tmp)) {
|
|
@@ -103,12 +101,12 @@ function clsx(...args) {
|
|
|
103
101
|
return str;
|
|
104
102
|
}
|
|
105
103
|
function toVal(mix) {
|
|
106
|
-
|
|
104
|
+
let k, y, str = "";
|
|
107
105
|
if (typeof mix === "string" || typeof mix === "number") {
|
|
108
106
|
str += mix;
|
|
109
107
|
} else if (typeof mix === "object") {
|
|
110
108
|
if (Array.isArray(mix)) {
|
|
111
|
-
|
|
109
|
+
const len = mix.length;
|
|
112
110
|
for (k = 0; k < len; k++) {
|
|
113
111
|
if (mix[k]) {
|
|
114
112
|
if (y = toVal(mix[k])) {
|
|
@@ -145,23 +143,23 @@ var CheckBox = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
145
143
|
labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
|
|
146
144
|
),
|
|
147
145
|
children: [
|
|
148
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...inputProps, type: "checkbox"
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...inputProps, ref, type: "checkbox" }) }),
|
|
149
147
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
150
148
|
CheckBoxIcon,
|
|
151
149
|
{
|
|
152
|
-
|
|
150
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
153
151
|
isSelected,
|
|
154
|
-
|
|
152
|
+
size: variantProps.size
|
|
155
153
|
}
|
|
156
154
|
) }),
|
|
157
|
-
children
|
|
155
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) : null
|
|
158
156
|
]
|
|
159
157
|
}
|
|
160
158
|
);
|
|
161
159
|
});
|
|
162
160
|
CheckBox.displayName = "CheckBox";
|
|
163
161
|
var checkbox_default = CheckBox;
|
|
164
|
-
|
|
162
|
+
function CheckBoxIcon({ size, isSelected, className }) {
|
|
165
163
|
const strokeWidth = (0, import_react.useMemo)(() => {
|
|
166
164
|
switch (size) {
|
|
167
165
|
case "sm":
|
|
@@ -176,18 +174,18 @@ var CheckBoxIcon = ({ size, isSelected, className }) => {
|
|
|
176
174
|
return 1.25;
|
|
177
175
|
}
|
|
178
176
|
}, [size]);
|
|
179
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className, fill: "none", viewBox: "0 0 13 13", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
180
178
|
"path",
|
|
181
179
|
{
|
|
182
180
|
d: "M2.16667 6.90123L5.63334 10.1111L10.8333 2.88889",
|
|
183
181
|
stroke: "currentColor",
|
|
184
|
-
strokeWidth,
|
|
185
182
|
strokeLinecap: "round",
|
|
186
183
|
strokeLinejoin: "round",
|
|
184
|
+
strokeWidth,
|
|
187
185
|
style: isSelected ? { transition: "stroke-dashoffset 250ms linear 0.2s" } : {}
|
|
188
186
|
}
|
|
189
187
|
) });
|
|
190
|
-
}
|
|
188
|
+
}
|
|
191
189
|
var checkboxStyle = tv({
|
|
192
190
|
slots: {
|
|
193
191
|
base: ["group", "relative", "inline-flex", "items-center", "cursor-pointer"],
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
3
3
|
import {
|
|
4
4
|
checkbox_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-RZD3NZIL.mjs";
|
|
6
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
7
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
8
8
|
import "../../chunk-UP6RPQDX.mjs";
|
|
9
9
|
export {
|
|
10
10
|
checkbox_default as CheckBox
|