@konstructio/ui 0.1.2-alpha.111 → 0.1.2-alpha.113
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/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +27 -27
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +180 -154
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-frCWQhFC.js +0 -76
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { t as D } from "../../../../../../utils-DnIJruo0.js";
|
|
2
2
|
import { Button as s } from "../../../../../Button/Button.js";
|
|
3
|
-
import { t as r } from "../../../../../../react-C685EsYG.js";
|
|
4
|
-
import { t as c } from "../../../../../../AnimatePresence-BsUYG9bm.js";
|
|
5
3
|
import { useCustomDateRangeFilterDropdown as O } from "../../contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.hook.js";
|
|
6
4
|
import { jsx as a, jsxs as I } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { AnimatePresence as r, motion as c } from "motion/react";
|
|
6
|
+
var i = 0.15, B = () => {
|
|
7
|
+
const { animationDuration: l, appliedRangeLabel: p, hasPendingSelection: e, isCollapsed: d, labelApply: h, labelReset: m, revealCalendarOnCustom: u, showsCalendar: y, onApply: f, onReset: g } = O(), n = u && !y, o = n && e && !d, v = n && (o || !!p), t = l / 1e3, A = {
|
|
9
8
|
opacity: 1,
|
|
10
9
|
transition: {
|
|
11
10
|
duration: i,
|
|
@@ -38,9 +37,9 @@ var i = 0.15, F = () => {
|
|
|
38
37
|
opacity: { duration: i }
|
|
39
38
|
}
|
|
40
39
|
};
|
|
41
|
-
return /* @__PURE__ */ a(
|
|
40
|
+
return /* @__PURE__ */ a(r, {
|
|
42
41
|
initial: !1,
|
|
43
|
-
children: v && /* @__PURE__ */ a(
|
|
42
|
+
children: v && /* @__PURE__ */ a(c.div, {
|
|
44
43
|
className: "overflow-hidden",
|
|
45
44
|
initial: {
|
|
46
45
|
height: 0,
|
|
@@ -54,10 +53,10 @@ var i = 0.15, F = () => {
|
|
|
54
53
|
variant: "secondary",
|
|
55
54
|
appearance: "compact",
|
|
56
55
|
onClick: g,
|
|
57
|
-
children:
|
|
58
|
-
}), /* @__PURE__ */ a(
|
|
56
|
+
children: m
|
|
57
|
+
}), /* @__PURE__ */ a(r, {
|
|
59
58
|
initial: !1,
|
|
60
|
-
children: o && /* @__PURE__ */ a(
|
|
59
|
+
children: o && /* @__PURE__ */ a(c.div, {
|
|
61
60
|
initial: { opacity: 0 },
|
|
62
61
|
animate: A,
|
|
63
62
|
exit: C,
|
|
@@ -65,7 +64,7 @@ var i = 0.15, F = () => {
|
|
|
65
64
|
appearance: "compact",
|
|
66
65
|
disabled: !e,
|
|
67
66
|
onClick: f,
|
|
68
|
-
children:
|
|
67
|
+
children: h
|
|
69
68
|
})
|
|
70
69
|
}, "apply")
|
|
71
70
|
})]
|
|
@@ -74,5 +73,5 @@ var i = 0.15, F = () => {
|
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
B as Actions
|
|
78
77
|
};
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLocale as n } from "../../../../hooks/useLocale.js";
|
|
2
2
|
import { useMemo as i } from "react";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
from:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
3
|
+
var u = ({ range: o, countryCode: a = "US" }) => {
|
|
4
|
+
const e = n(a);
|
|
5
|
+
return i(() => {
|
|
6
|
+
if (!o?.from) return {
|
|
7
|
+
appliedRangeLabel: void 0,
|
|
8
|
+
appliedRangeEnds: void 0
|
|
9
|
+
};
|
|
10
|
+
const r = (t) => t.toLocaleDateString(e, {
|
|
11
|
+
day: "numeric",
|
|
12
|
+
month: "short"
|
|
13
|
+
}), m = (t) => {
|
|
14
|
+
const l = t.toLocaleDateString(e, { month: "short" });
|
|
15
|
+
return `${t.getDate()} ${l} ${t.getFullYear()}`;
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
appliedRangeLabel: o.to ? `${r(o.from)} - ${r(o.to)}` : r(o.from),
|
|
19
|
+
appliedRangeEnds: {
|
|
20
|
+
from: m(o.from),
|
|
21
|
+
to: o.to && m(o.to)
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, [o, e]);
|
|
25
|
+
};
|
|
23
26
|
export {
|
|
24
|
-
|
|
27
|
+
u as useFormattedDateRange
|
|
25
28
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { useFilterContext as O } from "../../../../contexts/filter.hook.js";
|
|
2
2
|
import { sendOpenFilterEvent as v } from "../../../../events/index.js";
|
|
3
|
-
import { useFilterDropdownSync as
|
|
4
|
-
import {
|
|
5
|
-
import { useCallback as a, useId as
|
|
6
|
-
var
|
|
7
|
-
const { closeOnApply:
|
|
3
|
+
import { useFilterDropdownSync as g } from "../../../../hooks/useFilterDropdownSync.js";
|
|
4
|
+
import { useLocale as w } from "../../../../hooks/useLocale.js";
|
|
5
|
+
import { useCallback as a, useId as x, useMemo as I, useState as l } from "react";
|
|
6
|
+
var E = ({ onApply: o, countryCode: f = "US" }) => {
|
|
7
|
+
const { closeOnApply: r } = O(), s = x(), [u, e] = l(!1), [n, c] = l(), [i, d] = l(), p = w(f), D = I(() => i?.toLocaleDateString(p, {
|
|
8
8
|
day: "numeric",
|
|
9
9
|
month: "short",
|
|
10
10
|
year: "numeric"
|
|
11
|
-
}), [
|
|
11
|
+
}), [i, p]), y = (t) => {
|
|
12
12
|
t && v(s), e(t);
|
|
13
13
|
}, h = () => {
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
c(void 0),
|
|
14
|
+
d(n), o?.(n), r && e(!1);
|
|
15
|
+
}, S = a((t) => c(t), []), C = a(() => e(!1), []), m = a(() => {
|
|
16
|
+
c(void 0), d(void 0), o?.();
|
|
17
17
|
}, [o]), F = () => {
|
|
18
|
-
m(),
|
|
18
|
+
m(), r && e(!1);
|
|
19
19
|
};
|
|
20
|
-
return
|
|
20
|
+
return g({
|
|
21
21
|
id: s,
|
|
22
|
-
onClose:
|
|
22
|
+
onClose: C,
|
|
23
23
|
onReset: m
|
|
24
24
|
}), {
|
|
25
25
|
id: s,
|
|
26
26
|
appliedDay: D,
|
|
27
|
-
isOpen:
|
|
27
|
+
isOpen: u,
|
|
28
28
|
selectedDay: n,
|
|
29
29
|
handleApply: h,
|
|
30
|
-
handleOpenChange:
|
|
31
|
-
handleSelect:
|
|
30
|
+
handleOpenChange: y,
|
|
31
|
+
handleSelect: S,
|
|
32
32
|
handleReset: F
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
E as useDateFilterDropdown
|
|
37
37
|
};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { useFilterContext as
|
|
2
|
-
import { sendOpenFilterEvent as
|
|
3
|
-
import { useFilterDropdownSync as
|
|
4
|
-
import {
|
|
5
|
-
import { useCallback as a, useId as
|
|
6
|
-
var
|
|
7
|
-
const { closeOnApply: i } =
|
|
1
|
+
import { useFilterContext as v } from "../../../../contexts/filter.hook.js";
|
|
2
|
+
import { sendOpenFilterEvent as w } from "../../../../events/index.js";
|
|
3
|
+
import { useFilterDropdownSync as x } from "../../../../hooks/useFilterDropdownSync.js";
|
|
4
|
+
import { useLocale as y } from "../../../../hooks/useLocale.js";
|
|
5
|
+
import { useCallback as a, useId as I, useMemo as L, useState as l } from "react";
|
|
6
|
+
var M = ({ defaultRange: p, onApply: n, countryCode: u = "US" }) => {
|
|
7
|
+
const { closeOnApply: i } = v(), s = I(), [g, o] = l(!1), [r, c] = l(p), [t, m] = l(), f = y(u), h = L(() => {
|
|
8
8
|
if (!t?.from) return;
|
|
9
|
-
const e = (
|
|
9
|
+
const e = (O) => O.toLocaleDateString(f, {
|
|
10
10
|
day: "numeric",
|
|
11
11
|
month: "short"
|
|
12
12
|
});
|
|
13
13
|
return t.to ? `${e(t.from)} - ${e(t.to)}` : e(t.from);
|
|
14
|
-
}, [t]),
|
|
15
|
-
e &&
|
|
16
|
-
},
|
|
14
|
+
}, [t, f]), R = (e) => {
|
|
15
|
+
e && w(s), o(e);
|
|
16
|
+
}, C = () => {
|
|
17
17
|
const e = {
|
|
18
|
-
from:
|
|
19
|
-
to:
|
|
18
|
+
from: r?.from,
|
|
19
|
+
to: r?.to
|
|
20
20
|
};
|
|
21
21
|
m(e), n?.(e), i && o(!1);
|
|
22
|
-
},
|
|
22
|
+
}, S = a((e) => {
|
|
23
23
|
c({
|
|
24
24
|
from: e.from,
|
|
25
25
|
to: e.to
|
|
26
26
|
});
|
|
27
|
-
}, []),
|
|
27
|
+
}, []), D = a(() => o(!1), []), d = a(() => {
|
|
28
28
|
c(void 0), m(void 0), n?.();
|
|
29
|
-
}, [n]),
|
|
30
|
-
|
|
29
|
+
}, [n]), F = () => {
|
|
30
|
+
d(), i && o(!1);
|
|
31
31
|
};
|
|
32
|
-
return
|
|
33
|
-
id:
|
|
34
|
-
onClose:
|
|
35
|
-
onReset:
|
|
32
|
+
return x({
|
|
33
|
+
id: s,
|
|
34
|
+
onClose: D,
|
|
35
|
+
onReset: d
|
|
36
36
|
}), {
|
|
37
|
-
id:
|
|
38
|
-
appliedRange:
|
|
37
|
+
id: s,
|
|
38
|
+
appliedRange: h,
|
|
39
39
|
isOpen: g,
|
|
40
|
-
selectedRange:
|
|
41
|
-
handleApply:
|
|
42
|
-
handleOpenChange:
|
|
43
|
-
handleRangeChange:
|
|
44
|
-
handleReset:
|
|
40
|
+
selectedRange: r,
|
|
41
|
+
handleApply: C,
|
|
42
|
+
handleOpenChange: R,
|
|
43
|
+
handleRangeChange: S,
|
|
44
|
+
handleReset: F
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
M as useDateRangeFilterDropdown
|
|
49
49
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as l } from "../../../../utils-DnIJruo0.js";
|
|
2
|
-
import { useFilterContext as
|
|
3
|
-
import { a as
|
|
2
|
+
import { useFilterContext as p } from "../../contexts/filter.hook.js";
|
|
3
|
+
import { a as f, i as c, r as h, t as g } from "../../../../dist-CQSCPpFc.js";
|
|
4
4
|
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
var
|
|
6
|
-
const { theme: m } =
|
|
7
|
-
return /* @__PURE__ */ u(
|
|
8
|
-
open:
|
|
5
|
+
var w = ({ isOpen: r, trigger: t, triggerClassName: o, position: a = "left", contentClassName: n, children: s, onOpenChange: i }) => {
|
|
6
|
+
const { theme: m } = p();
|
|
7
|
+
return /* @__PURE__ */ u(g, {
|
|
8
|
+
open: r,
|
|
9
9
|
onOpenChange: i,
|
|
10
|
-
children: [/* @__PURE__ */ e(
|
|
10
|
+
children: [/* @__PURE__ */ e(f, {
|
|
11
11
|
className: o,
|
|
12
|
-
children:
|
|
13
|
-
}), /* @__PURE__ */ e(
|
|
12
|
+
children: t
|
|
13
|
+
}), /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(h, {
|
|
14
14
|
"data-theme": m,
|
|
15
15
|
side: "bottom",
|
|
16
16
|
sideOffset: 4,
|
|
@@ -24,5 +24,5 @@ var j = ({ isOpen: t, trigger: r, triggerClassName: o, position: a = "left", con
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
w as FilterDropdown
|
|
28
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as d } from "../../../../Checkbox-
|
|
1
|
+
import { t as d } from "../../../../Checkbox-DRdyrKjk.js";
|
|
2
2
|
import { t as s } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { Button as m } from "../../../Button/Button.js";
|
|
4
4
|
import { t as y } from "../../../../chevron-down-BODx0Q7h.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getLocale as o, loadLocaleMap as r } from "../utils/index.js";
|
|
2
|
+
import { useEffect as s, useState as l } from "react";
|
|
3
|
+
var u = (t) => {
|
|
4
|
+
const [, a] = l(!1);
|
|
5
|
+
return s(() => {
|
|
6
|
+
let e = !0;
|
|
7
|
+
return r().then(() => {
|
|
8
|
+
e && a(!0);
|
|
9
|
+
}), () => {
|
|
10
|
+
e = !1;
|
|
11
|
+
};
|
|
12
|
+
}, []), o(t);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
u as useLocale
|
|
16
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { t } from "../../../
|
|
1
|
+
import { o as t } from "../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
var l = "en-US", r, e, p = () => (e || (e = import("../../../country-locale-map-DbrJ3bEE.js").then((a) => /* @__PURE__ */ t(a.default, 1)).then((a) => {
|
|
3
|
+
r = a.default;
|
|
4
|
+
})), e), u = (a = "US") => r?.getCountryByAlpha2(a)?.default_locale?.replace("_", "-") ?? l;
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
u as getLocale,
|
|
7
|
+
p as loadLocaleMap
|
|
4
8
|
};
|
|
@@ -1,127 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Typography as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], J = ({ title: n, titleProps: k, labels: u, datasets: i, yAxisFormatter: t, showLegend: b, height: C = 300, smooth: m = !0, axisColor: c = "#9F9FA9", gridColor: e = "#45556C", showGrid: g = !0, lineWidth: f = 2, showAxisBorder: s = !1, tooltipTextColor: d = l("--color-metal-100"), className: S }) => {
|
|
19
|
-
const v = b !== void 0 ? b : i.length > 1, L = h(() => ({
|
|
20
|
-
labels: u,
|
|
21
|
-
datasets: i.map((o, r) => ({
|
|
22
|
-
label: o.label,
|
|
23
|
-
data: o.data,
|
|
24
|
-
borderColor: o.color ?? l(a[r % a.length]),
|
|
25
|
-
backgroundColor: o.color ?? l(a[r % a.length]),
|
|
26
|
-
borderDash: o.borderDash,
|
|
27
|
-
borderWidth: f,
|
|
28
|
-
pointRadius: 0,
|
|
29
|
-
pointHoverRadius: 4,
|
|
30
|
-
tension: m ? 0.3 : 0,
|
|
31
|
-
fill: !1
|
|
32
|
-
}))
|
|
33
|
-
}), [
|
|
34
|
-
u,
|
|
35
|
-
i,
|
|
36
|
-
m,
|
|
37
|
-
f
|
|
38
|
-
]), R = h(() => ({
|
|
39
|
-
responsive: !0,
|
|
40
|
-
maintainAspectRatio: !1,
|
|
41
|
-
onHover: (o, r) => {
|
|
42
|
-
const y = o.native?.target;
|
|
43
|
-
y && (y.style.cursor = r.length > 0 ? "pointer" : "default");
|
|
44
|
-
},
|
|
45
|
-
interaction: {
|
|
46
|
-
mode: "index",
|
|
47
|
-
intersect: !1
|
|
48
|
-
},
|
|
49
|
-
plugins: {
|
|
50
|
-
legend: {
|
|
51
|
-
display: v,
|
|
52
|
-
position: "top",
|
|
53
|
-
align: "end",
|
|
54
|
-
labels: {
|
|
55
|
-
color: "#9FAFBC",
|
|
56
|
-
font: {
|
|
57
|
-
size: 12,
|
|
58
|
-
weight: 500
|
|
59
|
-
},
|
|
60
|
-
usePointStyle: !0,
|
|
61
|
-
pointStyle: "line",
|
|
62
|
-
boxWidth: 24,
|
|
63
|
-
padding: 16
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
tooltip: {
|
|
67
|
-
enabled: !0,
|
|
68
|
-
backgroundColor: l("--color-metal-700"),
|
|
69
|
-
titleColor: d,
|
|
70
|
-
bodyColor: d,
|
|
71
|
-
boxPadding: 6,
|
|
72
|
-
callbacks: { labelTextColor: () => d }
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
scales: {
|
|
76
|
-
x: {
|
|
77
|
-
grid: { color: "transparent" },
|
|
78
|
-
ticks: {
|
|
79
|
-
color: c,
|
|
80
|
-
font: { size: 12 }
|
|
81
|
-
},
|
|
82
|
-
border: {
|
|
83
|
-
display: s,
|
|
84
|
-
color: e
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
y: {
|
|
88
|
-
grid: { color: g ? e : "transparent" },
|
|
89
|
-
ticks: {
|
|
90
|
-
color: c,
|
|
91
|
-
font: { size: 12 },
|
|
92
|
-
callback: t ? (o) => t(o) : void 0
|
|
93
|
-
},
|
|
94
|
-
border: {
|
|
95
|
-
display: s,
|
|
96
|
-
color: e
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}), [
|
|
101
|
-
v,
|
|
102
|
-
t,
|
|
103
|
-
c,
|
|
104
|
-
e,
|
|
105
|
-
g,
|
|
106
|
-
s
|
|
107
|
-
]);
|
|
108
|
-
return /* @__PURE__ */ V("div", {
|
|
109
|
-
className: _("w-full", S),
|
|
110
|
-
children: [n && /* @__PURE__ */ p(z, {
|
|
111
|
-
variant: "subtitle2",
|
|
112
|
-
className: "mb-6",
|
|
113
|
-
...k,
|
|
114
|
-
children: n
|
|
115
|
-
}), /* @__PURE__ */ p("div", {
|
|
116
|
-
style: { height: C },
|
|
117
|
-
children: /* @__PURE__ */ p(H, {
|
|
118
|
-
"aria-label": n ?? "Line chart",
|
|
119
|
-
data: L,
|
|
120
|
-
options: R
|
|
121
|
-
})
|
|
122
|
-
})]
|
|
123
|
-
});
|
|
124
|
-
};
|
|
1
|
+
import { t as n } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { Typography as l } from "../Typography/Typography.js";
|
|
3
|
+
import { Suspense as m, lazy as o } from "react";
|
|
4
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
var h = o(() => import("./components/LineChartContent/LineChartContent.js").then((a) => ({ default: a.LineChartContent }))), c = ({ className: a, height: e = 300, title: t, titleProps: i }) => /* @__PURE__ */ s("div", {
|
|
6
|
+
className: n("w-full", a),
|
|
7
|
+
"aria-busy": "true",
|
|
8
|
+
children: [t && /* @__PURE__ */ r(l, {
|
|
9
|
+
variant: "subtitle2",
|
|
10
|
+
className: "mb-6",
|
|
11
|
+
...i,
|
|
12
|
+
children: t
|
|
13
|
+
}), /* @__PURE__ */ r("div", { style: { height: e } })]
|
|
14
|
+
}), v = (a) => /* @__PURE__ */ r(m, {
|
|
15
|
+
fallback: /* @__PURE__ */ r(c, { ...a }),
|
|
16
|
+
children: /* @__PURE__ */ r(h, { ...a })
|
|
17
|
+
});
|
|
125
18
|
export {
|
|
126
|
-
|
|
19
|
+
v as LineChart
|
|
127
20
|
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { a as l, t as _ } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { Typography as z } from "../../../Typography/Typography.js";
|
|
3
|
+
import { a as P, c as j, d as D, i as E, l as F, n as H, o as N, s as O, u as M } from "../../../../dist-Dg3vyTx9.js";
|
|
4
|
+
import { useMemo as h } from "react";
|
|
5
|
+
import { jsx as p, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
P.register(E, F, M, O, N, j, D);
|
|
7
|
+
var a = [
|
|
8
|
+
"--color-aurora-500",
|
|
9
|
+
"--color-rose-500",
|
|
10
|
+
"--color-violet-500",
|
|
11
|
+
"--color-emerald-500",
|
|
12
|
+
"--color-sky-500",
|
|
13
|
+
"--color-teal-500",
|
|
14
|
+
"--color-amber-500",
|
|
15
|
+
"--color-fuchsia-500",
|
|
16
|
+
"--color-indigo-500",
|
|
17
|
+
"--color-cyan-500"
|
|
18
|
+
], J = ({ title: n, titleProps: C, labels: u, datasets: t, yAxisFormatter: i, showLegend: b, height: k = 300, smooth: m = !0, axisColor: c = "#9F9FA9", gridColor: e = "#45556C", showGrid: g = !0, lineWidth: f = 2, showAxisBorder: s = !1, tooltipTextColor: d = l("--color-metal-100"), className: S }) => {
|
|
19
|
+
const v = b !== void 0 ? b : t.length > 1, L = h(() => ({
|
|
20
|
+
labels: u,
|
|
21
|
+
datasets: t.map((o, r) => ({
|
|
22
|
+
label: o.label,
|
|
23
|
+
data: o.data,
|
|
24
|
+
borderColor: o.color ?? l(a[r % a.length]),
|
|
25
|
+
backgroundColor: o.color ?? l(a[r % a.length]),
|
|
26
|
+
borderDash: o.borderDash,
|
|
27
|
+
borderWidth: f,
|
|
28
|
+
pointRadius: 0,
|
|
29
|
+
pointHoverRadius: 4,
|
|
30
|
+
tension: m ? 0.3 : 0,
|
|
31
|
+
fill: !1
|
|
32
|
+
}))
|
|
33
|
+
}), [
|
|
34
|
+
u,
|
|
35
|
+
t,
|
|
36
|
+
m,
|
|
37
|
+
f
|
|
38
|
+
]), R = h(() => ({
|
|
39
|
+
responsive: !0,
|
|
40
|
+
maintainAspectRatio: !1,
|
|
41
|
+
onHover: (o, r) => {
|
|
42
|
+
const y = o.native?.target;
|
|
43
|
+
y && (y.style.cursor = r.length > 0 ? "pointer" : "default");
|
|
44
|
+
},
|
|
45
|
+
interaction: {
|
|
46
|
+
mode: "index",
|
|
47
|
+
intersect: !1
|
|
48
|
+
},
|
|
49
|
+
plugins: {
|
|
50
|
+
legend: {
|
|
51
|
+
display: v,
|
|
52
|
+
position: "top",
|
|
53
|
+
align: "end",
|
|
54
|
+
labels: {
|
|
55
|
+
color: "#9FAFBC",
|
|
56
|
+
font: {
|
|
57
|
+
size: 12,
|
|
58
|
+
weight: 500
|
|
59
|
+
},
|
|
60
|
+
usePointStyle: !0,
|
|
61
|
+
pointStyle: "line",
|
|
62
|
+
boxWidth: 24,
|
|
63
|
+
padding: 16
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
tooltip: {
|
|
67
|
+
enabled: !0,
|
|
68
|
+
backgroundColor: l("--color-metal-700"),
|
|
69
|
+
titleColor: d,
|
|
70
|
+
bodyColor: d,
|
|
71
|
+
boxPadding: 6,
|
|
72
|
+
callbacks: { labelTextColor: () => d }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
scales: {
|
|
76
|
+
x: {
|
|
77
|
+
grid: { color: "transparent" },
|
|
78
|
+
ticks: {
|
|
79
|
+
color: c,
|
|
80
|
+
font: { size: 12 }
|
|
81
|
+
},
|
|
82
|
+
border: {
|
|
83
|
+
display: s,
|
|
84
|
+
color: e
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
y: {
|
|
88
|
+
grid: { color: g ? e : "transparent" },
|
|
89
|
+
ticks: {
|
|
90
|
+
color: c,
|
|
91
|
+
font: { size: 12 },
|
|
92
|
+
callback: i ? (o) => i(o) : void 0
|
|
93
|
+
},
|
|
94
|
+
border: {
|
|
95
|
+
display: s,
|
|
96
|
+
color: e
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}), [
|
|
101
|
+
v,
|
|
102
|
+
i,
|
|
103
|
+
c,
|
|
104
|
+
e,
|
|
105
|
+
g,
|
|
106
|
+
s
|
|
107
|
+
]);
|
|
108
|
+
return /* @__PURE__ */ V("div", {
|
|
109
|
+
className: _("w-full", S),
|
|
110
|
+
children: [n && /* @__PURE__ */ p(z, {
|
|
111
|
+
variant: "subtitle2",
|
|
112
|
+
className: "mb-6",
|
|
113
|
+
...C,
|
|
114
|
+
children: n
|
|
115
|
+
}), /* @__PURE__ */ p("div", {
|
|
116
|
+
style: { height: k },
|
|
117
|
+
children: /* @__PURE__ */ p(H, {
|
|
118
|
+
"aria-label": n ?? "Line chart",
|
|
119
|
+
data: L,
|
|
120
|
+
options: R
|
|
121
|
+
})
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
J as LineChartContent
|
|
127
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as m } from "../../../../dist-
|
|
1
|
+
import { t as m } from "../../../../dist-CK8FUUUn.js";
|
|
2
2
|
import { t as a } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
4
|
var p = ({ children: r, asChild: o, className: t }) => /* @__PURE__ */ s(o ? m : "div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as m } from "../../../../dist-
|
|
1
|
+
import { t as m } from "../../../../dist-CK8FUUUn.js";
|
|
2
2
|
import { t as a } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
4
|
var p = ({ children: r, asChild: o, className: t }) => /* @__PURE__ */ e(o ? m : "div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as a } from "../../../../dist-
|
|
1
|
+
import { t as a } from "../../../../dist-CK8FUUUn.js";
|
|
2
2
|
import { t as e } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
var p = ({ children: r, asChild: o, className: t }) => /* @__PURE__ */ m(o ? a : "div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as o } from "./Body/Body.js";
|
|
2
2
|
import { Footer as p } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as e } from "./Header/Header.js";
|
|
4
|
-
import { n as i } from "../../../Modal-
|
|
4
|
+
import { n as i } from "../../../Modal-CysTe3zL.js";
|
|
5
5
|
export {
|
|
6
6
|
o as Body,
|
|
7
7
|
p as Footer,
|