@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,30 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
2
|
+
import "../../chunk-WG2WVMAR.mjs";
|
|
3
3
|
import {
|
|
4
4
|
icon_button_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-APZCX3PY.mjs";
|
|
6
|
+
import {
|
|
7
|
+
image_button_default
|
|
8
|
+
} from "../../chunk-Q3SNUBIS.mjs";
|
|
6
9
|
import {
|
|
7
10
|
text_button_default
|
|
8
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-MS65QLWR.mjs";
|
|
9
12
|
import {
|
|
10
13
|
button_group_default
|
|
11
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-6J6AXUUE.mjs";
|
|
12
15
|
import {
|
|
13
16
|
button_default
|
|
14
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-4FUD3BZV.mjs";
|
|
15
18
|
import "../../chunk-6WSACUIB.mjs";
|
|
16
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-EAFNOTY3.mjs";
|
|
17
20
|
import "../../chunk-SZL743JC.mjs";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-M5PMA3CT.mjs";
|
|
22
|
+
import "../../chunk-C7OETP3D.mjs";
|
|
20
23
|
import "../../chunk-2WAQRWST.mjs";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-QOOYAQJ5.mjs";
|
|
25
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
26
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
24
27
|
import "../../chunk-UP6RPQDX.mjs";
|
|
25
28
|
export {
|
|
26
29
|
button_default as Button,
|
|
27
30
|
button_group_default as ButtonGroup,
|
|
28
31
|
icon_button_default as IconButton,
|
|
32
|
+
image_button_default as ImageButton,
|
|
29
33
|
text_button_default as TextButton
|
|
30
34
|
};
|
|
@@ -67,6 +67,64 @@ var tv = (0, import_tailwind_variants.createTV)({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
+
// src/utils/props.ts
|
|
71
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
72
|
+
if (!variantKeys) {
|
|
73
|
+
return [props, {}];
|
|
74
|
+
}
|
|
75
|
+
const picked = variantKeys.reduce((acc, key) => {
|
|
76
|
+
if (key in props) {
|
|
77
|
+
return { ...acc, [key]: props[key] };
|
|
78
|
+
}
|
|
79
|
+
return acc;
|
|
80
|
+
}, {});
|
|
81
|
+
if (removeVariantProps) {
|
|
82
|
+
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
83
|
+
return [omitted, picked];
|
|
84
|
+
}
|
|
85
|
+
return [props, picked];
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/utils/clsx.ts
|
|
89
|
+
function clsx(...args) {
|
|
90
|
+
let i = 0, tmp, x, str = "";
|
|
91
|
+
while (i < args.length) {
|
|
92
|
+
if (tmp = args[i++]) {
|
|
93
|
+
if (x = toVal(tmp)) {
|
|
94
|
+
str && (str += " ");
|
|
95
|
+
str += x;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return str;
|
|
100
|
+
}
|
|
101
|
+
function toVal(mix) {
|
|
102
|
+
let k, y, str = "";
|
|
103
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
104
|
+
str += mix;
|
|
105
|
+
} else if (typeof mix === "object") {
|
|
106
|
+
if (Array.isArray(mix)) {
|
|
107
|
+
const len = mix.length;
|
|
108
|
+
for (k = 0; k < len; k++) {
|
|
109
|
+
if (mix[k]) {
|
|
110
|
+
if (y = toVal(mix[k])) {
|
|
111
|
+
str && (str += " ");
|
|
112
|
+
str += y;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
} else {
|
|
117
|
+
for (y in mix) {
|
|
118
|
+
if (mix[y]) {
|
|
119
|
+
str && (str += " ");
|
|
120
|
+
str += y;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return str;
|
|
126
|
+
}
|
|
127
|
+
|
|
70
128
|
// src/components/button/button.style.ts
|
|
71
129
|
var buttonBaseStyle = tv({
|
|
72
130
|
slots: {
|
|
@@ -458,66 +516,6 @@ var buttonBaseStyle = tv({
|
|
|
458
516
|
]
|
|
459
517
|
});
|
|
460
518
|
|
|
461
|
-
// src/utils/props.ts
|
|
462
|
-
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
463
|
-
if (!variantKeys) {
|
|
464
|
-
return [props, {}];
|
|
465
|
-
}
|
|
466
|
-
const picked = variantKeys.reduce((acc, key) => {
|
|
467
|
-
if (key in props) {
|
|
468
|
-
return { ...acc, [key]: props[key] };
|
|
469
|
-
} else {
|
|
470
|
-
return acc;
|
|
471
|
-
}
|
|
472
|
-
}, {});
|
|
473
|
-
if (removeVariantProps) {
|
|
474
|
-
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
475
|
-
return [omitted, picked];
|
|
476
|
-
} else {
|
|
477
|
-
return [props, picked];
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
// src/utils/clsx.ts
|
|
482
|
-
function clsx(...args) {
|
|
483
|
-
var i = 0, tmp, x, str = "";
|
|
484
|
-
while (i < args.length) {
|
|
485
|
-
if (tmp = args[i++]) {
|
|
486
|
-
if (x = toVal(tmp)) {
|
|
487
|
-
str && (str += " ");
|
|
488
|
-
str += x;
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
return str;
|
|
493
|
-
}
|
|
494
|
-
function toVal(mix) {
|
|
495
|
-
var k, y, str = "";
|
|
496
|
-
if (typeof mix === "string" || typeof mix === "number") {
|
|
497
|
-
str += mix;
|
|
498
|
-
} else if (typeof mix === "object") {
|
|
499
|
-
if (Array.isArray(mix)) {
|
|
500
|
-
var len = mix.length;
|
|
501
|
-
for (k = 0; k < len; k++) {
|
|
502
|
-
if (mix[k]) {
|
|
503
|
-
if (y = toVal(mix[k])) {
|
|
504
|
-
str && (str += " ");
|
|
505
|
-
str += y;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
} else {
|
|
510
|
-
for (y in mix) {
|
|
511
|
-
if (mix[y]) {
|
|
512
|
-
str && (str += " ");
|
|
513
|
-
str += y;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
return str;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
519
|
// src/components/button/text-button.tsx
|
|
522
520
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
523
521
|
var TextButton = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
@@ -550,16 +548,16 @@ var TextButton = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
550
548
|
"button",
|
|
551
549
|
{
|
|
552
550
|
...buttonProps,
|
|
553
|
-
ref,
|
|
554
|
-
disabled,
|
|
555
551
|
className: clsx(
|
|
556
552
|
slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
557
553
|
variant === "underline" && slots.underline({ class: classNames == null ? void 0 : classNames.underline })
|
|
558
554
|
),
|
|
555
|
+
disabled,
|
|
556
|
+
ref,
|
|
559
557
|
children: [
|
|
560
|
-
startContent
|
|
558
|
+
startContent ? renderContent(startContent) : null,
|
|
561
559
|
children,
|
|
562
|
-
endContent
|
|
560
|
+
endContent ? renderContent(endContent) : null
|
|
563
561
|
]
|
|
564
562
|
}
|
|
565
563
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
text_button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MS65QLWR.mjs";
|
|
5
5
|
import "../../chunk-2WAQRWST.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
7
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
8
8
|
import "../../chunk-UP6RPQDX.mjs";
|
|
9
9
|
export {
|
|
10
10
|
text_button_default as default
|
|
@@ -4,11 +4,11 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface AreaData {
|
|
8
8
|
name: string;
|
|
9
9
|
value: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
interface Props {
|
|
12
12
|
data?: AreaData[];
|
|
13
13
|
label?: string;
|
|
14
14
|
headerContent?: ReactNode;
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
itemWidth?: number;
|
|
17
17
|
chartHeight?: number;
|
|
18
18
|
classNames?: SlotsToClasses<AreaChartSlots>;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
type AreaChartProps = Props & AreaChartVariantProps;
|
|
21
21
|
declare const AreaChartComponent: react.ForwardRefExoticComponent<Props & AreaChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
|
|
@@ -4,11 +4,11 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface AreaData {
|
|
8
8
|
name: string;
|
|
9
9
|
value: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
interface Props {
|
|
12
12
|
data?: AreaData[];
|
|
13
13
|
label?: string;
|
|
14
14
|
headerContent?: ReactNode;
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
itemWidth?: number;
|
|
17
17
|
chartHeight?: number;
|
|
18
18
|
classNames?: SlotsToClasses<AreaChartSlots>;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
type AreaChartProps = Props & AreaChartVariantProps;
|
|
21
21
|
declare const AreaChartComponent: react.ForwardRefExoticComponent<Props & AreaChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
|
|
@@ -25,6 +25,7 @@ __export(areaChart_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(areaChart_exports);
|
|
27
27
|
var import_react = require("react");
|
|
28
|
+
var import_recharts = require("recharts");
|
|
28
29
|
|
|
29
30
|
// src/utils/tailwind-variants.ts
|
|
30
31
|
var import_tailwind_variants = require("tailwind-variants");
|
|
@@ -67,9 +68,6 @@ var tv = (0, import_tailwind_variants.createTV)({
|
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
|
|
70
|
-
// src/components/charts/areaChart.tsx
|
|
71
|
-
var import_recharts = require("recharts");
|
|
72
|
-
|
|
73
71
|
// src/utils/props.ts
|
|
74
72
|
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
75
73
|
if (!variantKeys) {
|
|
@@ -78,16 +76,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
78
76
|
const picked = variantKeys.reduce((acc, key) => {
|
|
79
77
|
if (key in props) {
|
|
80
78
|
return { ...acc, [key]: props[key] };
|
|
81
|
-
} else {
|
|
82
|
-
return acc;
|
|
83
79
|
}
|
|
80
|
+
return acc;
|
|
84
81
|
}, {});
|
|
85
82
|
if (removeVariantProps) {
|
|
86
83
|
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
87
84
|
return [omitted, picked];
|
|
88
|
-
} else {
|
|
89
|
-
return [props, picked];
|
|
90
85
|
}
|
|
86
|
+
return [props, picked];
|
|
91
87
|
};
|
|
92
88
|
|
|
93
89
|
// src/components/scroll/scrollArea.tsx
|
|
@@ -95,7 +91,7 @@ var import_tailwind_variants2 = require("tailwind-variants");
|
|
|
95
91
|
|
|
96
92
|
// src/utils/clsx.ts
|
|
97
93
|
function clsx(...args) {
|
|
98
|
-
|
|
94
|
+
let i = 0, tmp, x, str = "";
|
|
99
95
|
while (i < args.length) {
|
|
100
96
|
if (tmp = args[i++]) {
|
|
101
97
|
if (x = toVal(tmp)) {
|
|
@@ -107,12 +103,12 @@ function clsx(...args) {
|
|
|
107
103
|
return str;
|
|
108
104
|
}
|
|
109
105
|
function toVal(mix) {
|
|
110
|
-
|
|
106
|
+
let k, y, str = "";
|
|
111
107
|
if (typeof mix === "string" || typeof mix === "number") {
|
|
112
108
|
str += mix;
|
|
113
109
|
} else if (typeof mix === "object") {
|
|
114
110
|
if (Array.isArray(mix)) {
|
|
115
|
-
|
|
111
|
+
const len = mix.length;
|
|
116
112
|
for (k = 0; k < len; k++) {
|
|
117
113
|
if (mix[k]) {
|
|
118
114
|
if (y = toVal(mix[k])) {
|
|
@@ -135,9 +131,9 @@ function toVal(mix) {
|
|
|
135
131
|
|
|
136
132
|
// src/components/scroll/scrollArea.tsx
|
|
137
133
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
138
|
-
|
|
134
|
+
function ScrollArea({ children, className, direction, size, variant }) {
|
|
139
135
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size, variant }), className), children });
|
|
140
|
-
}
|
|
136
|
+
}
|
|
141
137
|
ScrollArea.displayName = "ScrollArea";
|
|
142
138
|
var scrollArea_default = ScrollArea;
|
|
143
139
|
var scrollAreaStyle = (0, import_tailwind_variants2.tv)({
|
|
@@ -200,7 +196,7 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
200
196
|
}, [data, startFromZero]);
|
|
201
197
|
const [tickPositions, setTickPositions] = (0, import_react.useState)([]);
|
|
202
198
|
const tickRef = (0, import_react.useRef)([]);
|
|
203
|
-
|
|
199
|
+
function CustomTick({ x, y, payload }) {
|
|
204
200
|
if (x !== void 0) {
|
|
205
201
|
tickRef.current.push(x);
|
|
206
202
|
}
|
|
@@ -210,17 +206,17 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
210
206
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
211
207
|
"text",
|
|
212
208
|
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
textAnchor: "middle",
|
|
209
|
+
className: "text-body-foreground",
|
|
210
|
+
fill: "currentColor",
|
|
216
211
|
fontSize: 12,
|
|
217
212
|
fontWeight: 700,
|
|
218
|
-
|
|
219
|
-
|
|
213
|
+
textAnchor: "middle",
|
|
214
|
+
x,
|
|
215
|
+
y: y + 11,
|
|
220
216
|
children: payload.value
|
|
221
217
|
}
|
|
222
218
|
);
|
|
223
|
-
}
|
|
219
|
+
}
|
|
224
220
|
(0, import_react.useEffect)(() => {
|
|
225
221
|
const raf = requestAnimationFrame(() => {
|
|
226
222
|
const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
|
|
@@ -231,19 +227,21 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
231
227
|
setTickPositions(mids);
|
|
232
228
|
tickRef.current = [];
|
|
233
229
|
});
|
|
234
|
-
return () =>
|
|
230
|
+
return () => {
|
|
231
|
+
cancelAnimationFrame(raf);
|
|
232
|
+
};
|
|
235
233
|
}, [processedData]);
|
|
236
|
-
|
|
234
|
+
function CustomDotWithShadow(props2) {
|
|
237
235
|
const { cx, cy, fill, stroke, payload } = props2;
|
|
238
236
|
if (cx === void 0 || cy === void 0) return null;
|
|
239
237
|
if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
|
|
240
238
|
return null;
|
|
241
239
|
}
|
|
242
240
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
243
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy,
|
|
244
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, r: 3.5,
|
|
241
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, fill, opacity: 0.2, r: 8 }),
|
|
242
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, fill, r: 3.5, stroke, strokeWidth: 2 })
|
|
245
243
|
] });
|
|
246
|
-
}
|
|
244
|
+
}
|
|
247
245
|
const chartContent = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
248
246
|
"div",
|
|
249
247
|
{
|
|
@@ -254,33 +252,33 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
254
252
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
255
253
|
import_recharts.AreaChart,
|
|
256
254
|
{
|
|
257
|
-
|
|
258
|
-
height: chartHeight + 30,
|
|
255
|
+
className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
259
256
|
data: processedData,
|
|
257
|
+
height: chartHeight + 30,
|
|
260
258
|
margin: { left: -30 },
|
|
261
|
-
|
|
259
|
+
width: totalChartWidth || 400,
|
|
262
260
|
children: [
|
|
263
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0",
|
|
261
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
|
264
262
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
265
263
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
266
264
|
] }) }),
|
|
267
265
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
268
266
|
import_recharts.CartesianGrid,
|
|
269
267
|
{
|
|
270
|
-
|
|
268
|
+
className: "stroke-neutral-light",
|
|
271
269
|
horizontal: false,
|
|
272
270
|
strokeDasharray: "4 4",
|
|
273
|
-
|
|
271
|
+
vertical: true,
|
|
274
272
|
verticalPoints: tickPositions
|
|
275
273
|
}
|
|
276
274
|
),
|
|
277
275
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
278
276
|
import_recharts.XAxis,
|
|
279
277
|
{
|
|
280
|
-
dataKey: "name",
|
|
281
278
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
282
|
-
|
|
279
|
+
dataKey: "name",
|
|
283
280
|
tick: CustomTick,
|
|
281
|
+
tickLine: false,
|
|
284
282
|
padding: { left: 35.5, right: 35.5 }
|
|
285
283
|
}
|
|
286
284
|
),
|
|
@@ -288,7 +286,7 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
288
286
|
import_recharts.YAxis,
|
|
289
287
|
{
|
|
290
288
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
291
|
-
|
|
289
|
+
domain: [-6, 110],
|
|
292
290
|
tick: {
|
|
293
291
|
fontSize: 12,
|
|
294
292
|
fontWeight: 700,
|
|
@@ -296,20 +294,20 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
296
294
|
textAnchor: "middle",
|
|
297
295
|
dx: -10
|
|
298
296
|
},
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
tickLine: false,
|
|
298
|
+
ticks: [0, 20, 40, 60, 80, 100]
|
|
301
299
|
}
|
|
302
300
|
),
|
|
303
301
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
304
302
|
import_recharts.Area,
|
|
305
303
|
{
|
|
306
|
-
|
|
304
|
+
activeDot: false,
|
|
307
305
|
dataKey: "value",
|
|
306
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomDotWithShadow, { fill: colorHex, stroke: colorHex }),
|
|
307
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
308
308
|
stroke: colorHex,
|
|
309
309
|
strokeWidth: 2,
|
|
310
|
-
|
|
311
|
-
dot: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
312
|
-
activeDot: false
|
|
310
|
+
type: "monotone"
|
|
313
311
|
}
|
|
314
312
|
)
|
|
315
313
|
]
|
|
@@ -317,8 +315,8 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
317
315
|
)
|
|
318
316
|
}
|
|
319
317
|
);
|
|
320
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", {
|
|
321
|
-
label
|
|
318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
|
|
319
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
|
|
322
320
|
headerContent,
|
|
323
321
|
needsScroll ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
|
|
324
322
|
] });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
areaChart_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MLMG22I4.mjs";
|
|
5
5
|
import "../../chunk-DQRAFUDA.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-YYWOSKGH.mjs";
|
|
7
|
+
import "../../chunk-KJFYLLMP.mjs";
|
|
8
|
+
import "../../chunk-UWT2WB6H.mjs";
|
|
9
9
|
import "../../chunk-UP6RPQDX.mjs";
|
|
10
10
|
export {
|
|
11
11
|
areaChart_default as default
|
|
@@ -5,18 +5,18 @@ import * as react from 'react';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
interface BarData {
|
|
9
9
|
title: string;
|
|
10
10
|
blue: number;
|
|
11
11
|
green: number;
|
|
12
12
|
pink: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
}
|
|
14
|
+
interface TooltipFormatterParams {
|
|
15
15
|
dataKey: string;
|
|
16
16
|
value: number;
|
|
17
17
|
label: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
18
|
+
}
|
|
19
|
+
interface Props {
|
|
20
20
|
data?: BarData[];
|
|
21
21
|
label?: string;
|
|
22
22
|
classNames?: SlotsToClasses<barChartSlots>;
|
|
@@ -25,7 +25,7 @@ type Props = {
|
|
|
25
25
|
yAxisDomain?: [number, number];
|
|
26
26
|
barGap?: number;
|
|
27
27
|
tooltipFormatter?: (params: TooltipFormatterParams) => ReactNode;
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
type barChartProps = Props & barChartVariantProps;
|
|
30
30
|
declare const BarChartComponent: react.ForwardRefExoticComponent<Props & barChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
31
31
|
|
|
@@ -41,10 +41,10 @@ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
|
|
|
41
41
|
}, undefined, unknown, unknown, undefined>>;
|
|
42
42
|
type barChartVariantProps = VariantProps<typeof barChartStyle>;
|
|
43
43
|
type barChartSlots = keyof ReturnType<typeof barChartStyle>;
|
|
44
|
-
|
|
44
|
+
interface BarChartTooltipProps {
|
|
45
45
|
className?: string;
|
|
46
46
|
children: ReactNode;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
declare function BarChartTooltip({ className, children }: BarChartTooltipProps): react_jsx_runtime.JSX.Element;
|
|
49
49
|
|
|
50
50
|
export { BarChartTooltip, type barChartProps, BarChartComponent as default };
|
|
@@ -5,18 +5,18 @@ import * as react from 'react';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
interface BarData {
|
|
9
9
|
title: string;
|
|
10
10
|
blue: number;
|
|
11
11
|
green: number;
|
|
12
12
|
pink: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
}
|
|
14
|
+
interface TooltipFormatterParams {
|
|
15
15
|
dataKey: string;
|
|
16
16
|
value: number;
|
|
17
17
|
label: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
18
|
+
}
|
|
19
|
+
interface Props {
|
|
20
20
|
data?: BarData[];
|
|
21
21
|
label?: string;
|
|
22
22
|
classNames?: SlotsToClasses<barChartSlots>;
|
|
@@ -25,7 +25,7 @@ type Props = {
|
|
|
25
25
|
yAxisDomain?: [number, number];
|
|
26
26
|
barGap?: number;
|
|
27
27
|
tooltipFormatter?: (params: TooltipFormatterParams) => ReactNode;
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
type barChartProps = Props & barChartVariantProps;
|
|
30
30
|
declare const BarChartComponent: react.ForwardRefExoticComponent<Props & barChartVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
31
31
|
|
|
@@ -41,10 +41,10 @@ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
|
|
|
41
41
|
}, undefined, unknown, unknown, undefined>>;
|
|
42
42
|
type barChartVariantProps = VariantProps<typeof barChartStyle>;
|
|
43
43
|
type barChartSlots = keyof ReturnType<typeof barChartStyle>;
|
|
44
|
-
|
|
44
|
+
interface BarChartTooltipProps {
|
|
45
45
|
className?: string;
|
|
46
46
|
children: ReactNode;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
declare function BarChartTooltip({ className, children }: BarChartTooltipProps): react_jsx_runtime.JSX.Element;
|
|
49
49
|
|
|
50
50
|
export { BarChartTooltip, type barChartProps, BarChartComponent as default };
|