@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.114
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/Breadcrumb-CpXRb08J.js +93 -0
- 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/Breadcrumb.js +1 -1
- 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/Radio/Radio.js +16 -16
- package/dist/components/Radio/Radio.variants.js +4 -1
- 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 +32 -32
- 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 +181 -155
- 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/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/Breadcrumb-CHi5-wVa.js +0 -81
- 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-CRPLONv9.js +0 -77
- 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,26 +1,72 @@
|
|
|
1
1
|
import { t as e } from "../../dist-B9GE4SXf.js";
|
|
2
2
|
var r = e([
|
|
3
|
+
"flex",
|
|
4
|
+
"items-center",
|
|
5
|
+
"h-9",
|
|
6
|
+
"border",
|
|
7
|
+
"border-x-0",
|
|
8
|
+
"border-gray-300",
|
|
9
|
+
"bg-white",
|
|
10
|
+
"dark:bg-metal-800",
|
|
11
|
+
"dark:border-metal-700"
|
|
12
|
+
], {
|
|
13
|
+
variants: {
|
|
14
|
+
fullWidth: {
|
|
15
|
+
true: ["flex-1", "w-full"],
|
|
16
|
+
false: []
|
|
17
|
+
},
|
|
18
|
+
hasError: {
|
|
19
|
+
true: ["border-red-600", "dark:border-red-500"],
|
|
20
|
+
false: []
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
true: ["bg-gray-100", "dark:bg-metal-900"],
|
|
24
|
+
false: []
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
fullWidth: !1,
|
|
29
|
+
hasError: !1,
|
|
30
|
+
disabled: !1
|
|
31
|
+
}
|
|
32
|
+
}), t = e([
|
|
3
33
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
4
34
|
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
5
35
|
"[-moz-appearance:textfield]",
|
|
6
36
|
"appearance-none",
|
|
7
|
-
"
|
|
8
|
-
"border-
|
|
37
|
+
"bg-transparent",
|
|
38
|
+
"border-none",
|
|
9
39
|
"focus-visible:outline-none",
|
|
10
40
|
"focus-visible:ring-transparent",
|
|
11
|
-
"h-
|
|
41
|
+
"h-full",
|
|
12
42
|
"max-w-16",
|
|
13
43
|
"text-right",
|
|
14
44
|
"px-3",
|
|
15
|
-
"border-gray-300",
|
|
16
45
|
"text-slate-800",
|
|
17
|
-
"
|
|
18
|
-
"dark:
|
|
19
|
-
"dark:
|
|
20
|
-
|
|
21
|
-
|
|
46
|
+
"disabled:text-slate-400",
|
|
47
|
+
"dark:text-metal-50",
|
|
48
|
+
"dark:disabled:text-metal-400"
|
|
49
|
+
], {
|
|
50
|
+
variants: { fullWidth: {
|
|
51
|
+
true: [
|
|
52
|
+
"max-w-none",
|
|
53
|
+
"flex-1",
|
|
54
|
+
"min-w-0",
|
|
55
|
+
"w-full"
|
|
56
|
+
],
|
|
57
|
+
false: []
|
|
58
|
+
} },
|
|
59
|
+
defaultVariants: { fullWidth: !1 }
|
|
60
|
+
}), l = e([
|
|
61
|
+
"pr-3",
|
|
62
|
+
"text-sm",
|
|
63
|
+
"select-none",
|
|
64
|
+
"text-slate-400",
|
|
65
|
+
"dark:text-slate-500"
|
|
66
|
+
]), d = e([
|
|
22
67
|
"h-9",
|
|
23
68
|
"w-9",
|
|
69
|
+
"shrink-0",
|
|
24
70
|
"flex",
|
|
25
71
|
"items-center",
|
|
26
72
|
"justify-center",
|
|
@@ -43,15 +89,26 @@ var r = e([
|
|
|
43
89
|
"dark:disabled:hover:bg-metal-800",
|
|
44
90
|
"dark:disabled:bg-metal-800",
|
|
45
91
|
"disabled:cursor-not-allowed"
|
|
46
|
-
], {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
92
|
+
], {
|
|
93
|
+
variants: {
|
|
94
|
+
button: {
|
|
95
|
+
left: ["rounded-e"],
|
|
96
|
+
rigth: ["rounded-s"]
|
|
97
|
+
},
|
|
98
|
+
hasError: {
|
|
99
|
+
true: ["border-red-600", "dark:border-red-500"],
|
|
100
|
+
false: []
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
defaultVariants: { hasError: !1 }
|
|
104
|
+
}), s = e(["cursor-pointer"], {
|
|
50
105
|
variants: { variant: { default: "" } },
|
|
51
106
|
defaultVariants: { variant: "default" }
|
|
52
107
|
});
|
|
53
108
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
109
|
+
d as buttonVariants,
|
|
110
|
+
t as counterVariants,
|
|
111
|
+
r as fieldVariants,
|
|
112
|
+
s as labelVariants,
|
|
113
|
+
l as unitVariants
|
|
57
114
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../../../style.css';import '../../../../CalendarPanel.css';/* empty css */
|
|
2
1
|
import { useDateRangePicker as q } from "../../contexts/date-range-picker/date-range-picker.hook.js";
|
|
3
2
|
import { createDisabledMatcher as z } from "../../utils/disabled-dates/disabled-dates.js";
|
|
4
3
|
import "../../../../constants-q2QnJrOb.js";
|
|
5
4
|
import { IndependentModeCalendar as A } from "./components/IndependentModeCalendar/IndependentModeCalendar.js";
|
|
6
5
|
import { TogetherModeCalendar as B } from "./components/TogetherModeCalendar/TogetherModeCalendar.js";
|
|
6
|
+
import '../../../../style.css';import '../../../../CalendarPanel.css';/* empty css */
|
|
7
7
|
import { useMemo as F } from "react";
|
|
8
8
|
import { jsx as x } from "react/jsx-runtime";
|
|
9
9
|
var J = ({ className: t, calendarWidth: a = 550, ariaLabelCalendar: n = "Date range picker calendar", ariaLabelPrevMonth: D = "Previous month", ariaLabelNextMonth: R = "Next month", ariaLabelPrevMonthStart: b = "Previous month for start date", ariaLabelNextMonthStart: k = "Next month for start date", ariaLabelPrevMonthEnd: S = "Previous month for end date", ariaLabelNextMonthEnd: y = "Next month for end date", classNames: o }) => {
|
|
@@ -1,38 +1,30 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */
|
|
1
|
+
import { t as r } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { getMonthName as o } from "../../../../utils/validation/validation.js";
|
|
3
|
+
import { calendarMonthTitleVariants as i } from "../../CalendarPanel.variants.js";
|
|
4
|
+
import "../../../../../../constants-q2QnJrOb.js";
|
|
5
|
+
import { getWeeksInMonth as l } from "../../utils/index.js";
|
|
6
|
+
import { Suspense as m, lazy as s } from "react";
|
|
7
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
var c = s(() => import("./components/CalendarMonthContent/CalendarMonthContent.js").then((t) => ({ default: t.CalendarMonthContent }))), d = (t) => `${o(t.getMonth())} ${t.getFullYear()}`, f = (t) => {
|
|
9
|
+
const { month: a, classNames: n } = t;
|
|
10
|
+
return /* @__PURE__ */ h("div", {
|
|
11
11
|
style: { width: 259 },
|
|
12
|
-
children: [/* @__PURE__ */
|
|
12
|
+
children: [/* @__PURE__ */ e("div", {
|
|
13
13
|
className: "flex items-center justify-center mb-8 h-6",
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
-
className:
|
|
16
|
-
children:
|
|
14
|
+
children: /* @__PURE__ */ e("span", {
|
|
15
|
+
className: r(i(), "flex-1 text-center", n?.monthTitle),
|
|
16
|
+
children: d(a)
|
|
17
17
|
})
|
|
18
|
-
}), /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
onSelect: i,
|
|
25
|
-
month: e,
|
|
26
|
-
numberOfMonths: 1,
|
|
27
|
-
disabled: s || o,
|
|
28
|
-
hideNavigation: !0,
|
|
29
|
-
animate: !1,
|
|
30
|
-
showOutsideDays: m,
|
|
31
|
-
classNames: l
|
|
18
|
+
}), /* @__PURE__ */ e(m, {
|
|
19
|
+
fallback: /* @__PURE__ */ e("div", {
|
|
20
|
+
"aria-busy": "true",
|
|
21
|
+
style: { minHeight: 28 + l(a) * 38 }
|
|
22
|
+
}),
|
|
23
|
+
children: /* @__PURE__ */ e(c, { ...t })
|
|
32
24
|
})]
|
|
33
|
-
}
|
|
25
|
+
});
|
|
34
26
|
};
|
|
35
|
-
|
|
27
|
+
f.displayName = "CalendarMonth";
|
|
36
28
|
export {
|
|
37
|
-
|
|
29
|
+
f as CalendarMonth
|
|
38
30
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as n } from "../../../../../../../../constants-q2QnJrOb.js";
|
|
2
|
+
import { t as d } from "../../../../../../../../DayPicker-BtpJg2q3.js";
|
|
3
|
+
import { useMemo as c } from "react";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
var f = ({ month: r, range: e, onRangeSelect: o, disabled: t, disabledMatcher: m, showOutsideDays: s, classNames: a }) => {
|
|
6
|
+
const i = c(() => n(a?.dayPicker), [a?.dayPicker]);
|
|
7
|
+
return /* @__PURE__ */ l(d, {
|
|
8
|
+
mode: "range",
|
|
9
|
+
selected: {
|
|
10
|
+
from: e.from,
|
|
11
|
+
to: e.to
|
|
12
|
+
},
|
|
13
|
+
onSelect: o,
|
|
14
|
+
month: r,
|
|
15
|
+
numberOfMonths: 1,
|
|
16
|
+
disabled: m || t,
|
|
17
|
+
hideNavigation: !0,
|
|
18
|
+
animate: !1,
|
|
19
|
+
showOutsideDays: s,
|
|
20
|
+
classNames: i
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
f.displayName = "CalendarMonthContent";
|
|
24
|
+
export {
|
|
25
|
+
f as CalendarMonthContent
|
|
26
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as a } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { calendarGridContainerVariants as X, calendarPanelVariants as Y } from "../../CalendarPanel.variants.js";
|
|
2
|
+
import { CalendarDivider as Q } from "../CalendarDivider/CalendarDivider.js";
|
|
3
|
+
import { calendarGridContainerVariants as U, calendarPanelVariants as X } from "../../CalendarPanel.variants.js";
|
|
5
4
|
import "../../../../../../constants-q2QnJrOb.js";
|
|
6
5
|
import { CalendarMonth as s } from "../CalendarMonth/CalendarMonth.js";
|
|
7
|
-
import { useIndependentCarousel as
|
|
6
|
+
import { useIndependentCarousel as Y } from "../../hooks/useIndependentCarousel.js";
|
|
8
7
|
import { NavigationButton as c } from "../NavigationButton/NavigationButton.js";
|
|
9
8
|
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { motion as Z } from "motion/react";
|
|
10
10
|
var O = ({ className: u, calendarWidth: C = 550, ariaLabelCalendar: N = "Date range picker calendar", ariaLabelPrevMonthStart: k = "Previous month for start date", ariaLabelNextMonthStart: b = "Next month for start date", ariaLabelPrevMonthEnd: x = "Previous month for end date", ariaLabelNextMonthEnd: R = "Next month for end date", classNames: t, range: i, onRangeSelect: T, disabled: e, disabledMatcher: r, showOutsideDays: o, hideDisabledNavigation: d, canLeftNavigatePrev: B, canLeftNavigateNext: w, canRightNavigatePrev: z, canRightNavigateNext: A, navigateLeftPrev: L, navigateLeftNext: S, navigateRightPrev: I, navigateRightNext: D, carouselProps: f }) => {
|
|
11
|
-
const { calendarHeight: M, enableLeftTransition: W, enableRightTransition: P, isLeftAnimating: v, isRightAnimating: p, leftAnimateTransform: y, leftCarouselRef: H, leftInternalMonth: j, leftNextMonth: G, leftPrevMonth: V, rightAnimateTransform: _, rightCarouselRef: $, rightInternalMonth: E, rightNextMonth: q, rightPrevMonth: F, getLeftTransform: J, getRightTransform: K } =
|
|
11
|
+
const { calendarHeight: M, enableLeftTransition: W, enableRightTransition: P, isLeftAnimating: v, isRightAnimating: p, leftAnimateTransform: y, leftCarouselRef: H, leftInternalMonth: j, leftNextMonth: G, leftPrevMonth: V, rightAnimateTransform: _, rightCarouselRef: $, rightInternalMonth: E, rightNextMonth: q, rightPrevMonth: F, getLeftTransform: J, getRightTransform: K } = Y(f), l = (g) => {
|
|
12
12
|
g && T({
|
|
13
13
|
from: g.from,
|
|
14
14
|
to: g.to
|
|
@@ -18,11 +18,11 @@ var O = ({ className: u, calendarWidth: C = 550, ariaLabelCalendar: N = "Date ra
|
|
|
18
18
|
dayPicker: t?.dayPicker
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ n("div", {
|
|
21
|
-
className: a(
|
|
21
|
+
className: a(X({ className: u }), t?.root),
|
|
22
22
|
children: /* @__PURE__ */ h("div", {
|
|
23
|
-
className: a(
|
|
23
|
+
className: a(U(), "relative", t?.gridContainer),
|
|
24
24
|
style: { width: C },
|
|
25
|
-
children: [/* @__PURE__ */ n(
|
|
25
|
+
children: [/* @__PURE__ */ n(Q, { className: t?.divider }), /* @__PURE__ */ h(Z.div, {
|
|
26
26
|
className: "flex gap-8",
|
|
27
27
|
role: "application",
|
|
28
28
|
"aria-label": N,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as n } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useTogetherCarousel as S } from "../../hooks/useTogetherCarousel.js";
|
|
2
|
+
import { CalendarDivider as P } from "../CalendarDivider/CalendarDivider.js";
|
|
3
|
+
import { calendarGridContainerVariants as W, calendarPanelVariants as z } from "../../CalendarPanel.variants.js";
|
|
4
|
+
import { CalendarMonth as L } from "../CalendarMonth/CalendarMonth.js";
|
|
5
|
+
import { useTogetherCarousel as R } from "../../hooks/useTogetherCarousel.js";
|
|
7
6
|
import { NavigationButton as d } from "../NavigationButton/NavigationButton.js";
|
|
8
|
-
import { jsx as e, jsxs as
|
|
7
|
+
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
|
8
|
+
import { motion as V } from "motion/react";
|
|
9
9
|
var A = ({ className: m, calendarWidth: h = 550, ariaLabelCalendar: s = "Date range picker calendar", ariaLabelPrevMonth: c = "Previous month", ariaLabelNextMonth: f = "Next month", classNames: a, range: u, onRangeSelect: p, disabled: i, disabledMatcher: v, showOutsideDays: g, hideDisabledNavigation: o, canNavigatePrev: C, canNavigateNext: T, carouselProps: r }) => {
|
|
10
|
-
const { carouselRef: b, isAnimating: l, enableTransition: k, animateTransform: x, calendarHeight: D, carouselTotalWidth: y, monthsToRender: M, handlePrevMonth: N, handleNextMonth: B, getTransform: w } =
|
|
10
|
+
const { carouselRef: b, isAnimating: l, enableTransition: k, animateTransform: x, calendarHeight: D, carouselTotalWidth: y, monthsToRender: M, handlePrevMonth: N, handleNextMonth: B, getTransform: w } = R(r), $ = (t) => {
|
|
11
11
|
t && p({
|
|
12
12
|
from: t.from,
|
|
13
13
|
to: t.to
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
return /* @__PURE__ */ e("div", {
|
|
17
|
-
className: n(
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
className: n(
|
|
17
|
+
className: n(z({ className: m }), a?.root),
|
|
18
|
+
children: /* @__PURE__ */ S("div", {
|
|
19
|
+
className: n(W(), "overflow-hidden relative justify-start!", a?.gridContainer),
|
|
20
20
|
style: { width: h },
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ e(d, {
|
|
@@ -41,8 +41,8 @@ var A = ({ className: m, calendarWidth: h = 550, ariaLabelCalendar: s = "Date ra
|
|
|
41
41
|
disabledClassName: a?.navButtonDisabled,
|
|
42
42
|
ariaLabel: f
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */ e(
|
|
45
|
-
/* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(P, { className: a?.divider }),
|
|
45
|
+
/* @__PURE__ */ e(V.div, {
|
|
46
46
|
ref: b,
|
|
47
47
|
className: n("flex gap-8", k && x && "konstruct-drp-carousel-transition"),
|
|
48
48
|
role: "application",
|
|
@@ -64,7 +64,7 @@ var A = ({ className: m, calendarWidth: h = 550, ariaLabelCalendar: s = "Date ra
|
|
|
64
64
|
transform: w(),
|
|
65
65
|
willChange: "transform"
|
|
66
66
|
},
|
|
67
|
-
children: M.map((t, j) => /* @__PURE__ */ e(
|
|
67
|
+
children: M.map((t, j) => /* @__PURE__ */ e(L, {
|
|
68
68
|
month: t,
|
|
69
69
|
range: u,
|
|
70
70
|
onRangeSelect: $,
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { t as d } from "../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useDateRangePicker as h } from "../../contexts/date-range-picker/date-range-picker.hook.js";
|
|
5
|
-
import { hidesRightPanel as c } from "../../utils/right-panel/right-panel.js";
|
|
2
|
+
import { useDateRangePicker as l } from "../../contexts/date-range-picker/date-range-picker.hook.js";
|
|
3
|
+
import { hidesRightPanel as h } from "../../utils/right-panel/right-panel.js";
|
|
6
4
|
import { jsx as e } from "react/jsx-runtime";
|
|
7
|
-
|
|
5
|
+
import { AnimatePresence as p, motion as c } from "motion/react";
|
|
6
|
+
var i = {
|
|
8
7
|
width: 0,
|
|
9
8
|
height: 0,
|
|
10
9
|
opacity: 0
|
|
11
|
-
},
|
|
10
|
+
}, g = {
|
|
12
11
|
width: "auto",
|
|
13
12
|
height: "auto",
|
|
14
13
|
opacity: 1
|
|
15
|
-
},
|
|
16
|
-
const { animationDuration:
|
|
14
|
+
}, u = ({ children: a, className: t }) => {
|
|
15
|
+
const { animationDuration: n, preset: r, presets: o, revealCalendarOnCustom: s } = l(), m = h(r, o, s);
|
|
17
16
|
return /* @__PURE__ */ e(p, {
|
|
18
17
|
initial: !1,
|
|
19
|
-
children: !m && /* @__PURE__ */ e(
|
|
18
|
+
children: !m && /* @__PURE__ */ e(c.div, {
|
|
20
19
|
className: "overflow-hidden",
|
|
21
|
-
initial:
|
|
22
|
-
animate:
|
|
23
|
-
exit:
|
|
20
|
+
initial: i,
|
|
21
|
+
animate: g,
|
|
22
|
+
exit: i,
|
|
24
23
|
transition: {
|
|
25
|
-
duration:
|
|
24
|
+
duration: n / 1e3,
|
|
26
25
|
ease: "easeInOut"
|
|
27
26
|
},
|
|
28
27
|
children: /* @__PURE__ */ e("div", {
|
|
29
28
|
className: d(t, "w-max"),
|
|
30
|
-
children:
|
|
29
|
+
children: a
|
|
31
30
|
})
|
|
32
31
|
}, "right-panel")
|
|
33
32
|
});
|
|
34
33
|
};
|
|
35
|
-
|
|
34
|
+
u.displayName = "DateRangePickerRightPanel";
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
u as RightPanel
|
|
38
37
|
};
|
|
@@ -1,51 +1,16 @@
|
|
|
1
|
-
import { t } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className: t(k({ className: o })),
|
|
15
|
-
animate: n,
|
|
16
|
-
mode: "single",
|
|
17
|
-
selected: c,
|
|
18
|
-
onSelect: b,
|
|
19
|
-
showOutsideDays: l,
|
|
20
|
-
role: "dialog",
|
|
21
|
-
"aria-label": "Datepicker",
|
|
22
|
-
classNames: {
|
|
23
|
-
chevron: t("cursor-pointer", "text-slate-500", "w-5", "h-5", "text-slate-500", "w-4", "h-4", "dark:text-metal-200"),
|
|
24
|
-
day_button: t("h-7.5", "aria-selected:opacity-100", "font-semibold", "hover:rounded-full", "cursor-pointer", "rounded-full", "w-7.5"),
|
|
25
|
-
day: "text-center text-sm leading-5",
|
|
26
|
-
month_caption: t("text-slate-700", "font-semibold", "text-sm", "pl-1", "h-8", "flex", "items-center", "dark:text-white"),
|
|
27
|
-
months: t("flex", "flex-col", "relative", "px-5", "py-4", "rounded-lg", "shadow-md", "px-6", "py-4", "w-[307px]", "justify-center", "items-center", "border", "border-transparent", "dark:bg-metal-800", "dark:border-metal-700", s),
|
|
28
|
-
month: "flex flex-col gap-4",
|
|
29
|
-
nav: t("absolute", "right-4", "top-3.5", "flex", "justify-center", "items-center", "gap-1", d),
|
|
30
|
-
outside: "text-slate-400 dark:text-metal-500",
|
|
31
|
-
selected: t("[&>button]:bg-blue-600", "[&>button]:text-white", "[&>button]:hover:bg-blue-700", "[&>button]:transition-all", "[&>button]:duration-300", "[&>button]:rounded-full", "dark:[&>button]:bg-aurora-500", "dark:[&>button]:hover:bg-aurora-500", "dark:[&>button]:text-metal-900"),
|
|
32
|
-
weekdays: "text-slate-500 dark:text-metal-300",
|
|
33
|
-
weeks: t("text-slate-700", "[&>tr>td]:border-transparent", "[&>tr>td]:border-r-[8px]", "[&>tr>td]:last:border-r-0", "dark:text-white"),
|
|
34
|
-
weekday: "font-semibold text-sm uppercase text-sm",
|
|
35
|
-
today: "text-blue-600 dark:text-aurora-500 data-[selected=true]:text-white",
|
|
36
|
-
month_grid: t("w-full", "[&>thead]:table-header-group", "[&>thead]:relative", "[&>thead]:after:block", '[&>thead]:after:content-[" "]', "[&>thead]:after:h-4")
|
|
37
|
-
},
|
|
38
|
-
components: { Chevron: ({ className: e, ...r }) => r.orientation === "left" ? /* @__PURE__ */ a(h, {
|
|
39
|
-
className: t(e),
|
|
40
|
-
...r
|
|
41
|
-
}) : /* @__PURE__ */ a(f, {
|
|
42
|
-
className: t(e),
|
|
43
|
-
...r
|
|
44
|
-
}) },
|
|
45
|
-
...u
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
w.displayName = "KonstructDatePicker";
|
|
1
|
+
import { t as r } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { datePickerVariants as t } from "./DatePicker.variants.js";
|
|
3
|
+
import { Suspense as m, lazy as s } from "react";
|
|
4
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
+
var i = s(() => import("./components/DatePickerContent/DatePickerContent.js").then((a) => ({ default: a.DatePickerContent }))), o = (a) => /* @__PURE__ */ e(m, {
|
|
6
|
+
fallback: /* @__PURE__ */ e("div", {
|
|
7
|
+
className: r(t({ className: a.className })),
|
|
8
|
+
"aria-busy": "true",
|
|
9
|
+
children: /* @__PURE__ */ e("div", { className: r("w-[307px]", "min-h-[296px]", "rounded-lg", "shadow-md", "border", "border-transparent", "dark:bg-metal-800", "dark:border-metal-700", a.monthsClassName) })
|
|
10
|
+
}),
|
|
11
|
+
children: /* @__PURE__ */ e(i, { ...a })
|
|
12
|
+
});
|
|
13
|
+
o.displayName = "KonstructDatePicker";
|
|
49
14
|
export {
|
|
50
|
-
|
|
15
|
+
o as DatePicker
|
|
51
16
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { t as h } from "../../../../chevron-left-B1zWfqll.js";
|
|
3
|
+
import { t as f } from "../../../../chevron-right-D4OkgIIT.js";
|
|
4
|
+
import { datePickerVariants as p } from "../../DatePicker.variants.js";
|
|
5
|
+
import '../../../../style.css';/* empty css */
|
|
6
|
+
import { t as k } from "../../../../DayPicker-BtpJg2q3.js";
|
|
7
|
+
import { useState as g } from "react";
|
|
8
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
9
|
+
var w = ({ className: o, showOutsideDays: l = !0, animate: n = !0, arrowClassName: d, monthsClassName: s, defaultSelected: i, onSelect: m, ...u }) => {
|
|
10
|
+
const [c, x] = g(() => i), b = (e) => {
|
|
11
|
+
e && (x(e), m?.(e));
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ a(k, {
|
|
14
|
+
className: t(p({ className: o })),
|
|
15
|
+
animate: n,
|
|
16
|
+
mode: "single",
|
|
17
|
+
selected: c,
|
|
18
|
+
onSelect: b,
|
|
19
|
+
showOutsideDays: l,
|
|
20
|
+
role: "dialog",
|
|
21
|
+
"aria-label": "Datepicker",
|
|
22
|
+
classNames: {
|
|
23
|
+
chevron: t("cursor-pointer", "text-slate-500", "w-5", "h-5", "text-slate-500", "w-4", "h-4", "dark:text-metal-200"),
|
|
24
|
+
day_button: t("h-7.5", "aria-selected:opacity-100", "font-semibold", "hover:rounded-full", "cursor-pointer", "rounded-full", "w-7.5"),
|
|
25
|
+
day: "text-center text-sm leading-5",
|
|
26
|
+
month_caption: t("text-slate-700", "font-semibold", "text-sm", "pl-1", "h-8", "flex", "items-center", "dark:text-white"),
|
|
27
|
+
months: t("flex", "flex-col", "relative", "px-5", "py-4", "rounded-lg", "shadow-md", "px-6", "py-4", "w-[307px]", "justify-center", "items-center", "border", "border-transparent", "dark:bg-metal-800", "dark:border-metal-700", s),
|
|
28
|
+
month: "flex flex-col gap-4",
|
|
29
|
+
nav: t("absolute", "right-4", "top-3.5", "flex", "justify-center", "items-center", "gap-1", d),
|
|
30
|
+
outside: "text-slate-400 dark:text-metal-500",
|
|
31
|
+
selected: t("[&>button]:bg-blue-600", "[&>button]:text-white", "[&>button]:hover:bg-blue-700", "[&>button]:transition-all", "[&>button]:duration-300", "[&>button]:rounded-full", "dark:[&>button]:bg-aurora-500", "dark:[&>button]:hover:bg-aurora-500", "dark:[&>button]:text-metal-900"),
|
|
32
|
+
weekdays: "text-slate-500 dark:text-metal-300",
|
|
33
|
+
weeks: t("text-slate-700", "[&>tr>td]:border-transparent", "[&>tr>td]:border-r-[8px]", "[&>tr>td]:last:border-r-0", "dark:text-white"),
|
|
34
|
+
weekday: "font-semibold text-sm uppercase text-sm",
|
|
35
|
+
today: "text-blue-600 dark:text-aurora-500 data-[selected=true]:text-white",
|
|
36
|
+
month_grid: t("w-full", "[&>thead]:table-header-group", "[&>thead]:relative", "[&>thead]:after:block", '[&>thead]:after:content-[" "]', "[&>thead]:after:h-4")
|
|
37
|
+
},
|
|
38
|
+
components: { Chevron: ({ className: e, ...r }) => r.orientation === "left" ? /* @__PURE__ */ a(h, {
|
|
39
|
+
className: t(e),
|
|
40
|
+
...r
|
|
41
|
+
}) : /* @__PURE__ */ a(f, {
|
|
42
|
+
className: t(e),
|
|
43
|
+
...r
|
|
44
|
+
}) },
|
|
45
|
+
...u
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
w.displayName = "DatePickerContent";
|
|
49
|
+
export {
|
|
50
|
+
w as DatePickerContent
|
|
51
|
+
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as g } from "../../x-Vur_9PXW.js";
|
|
3
|
-
import { t as z } from "../../dist-
|
|
4
|
-
import { t
|
|
3
|
+
import { t as z } from "../../dist-C_jtUTU9.js";
|
|
4
|
+
import { t } from "../../utils-DnIJruo0.js";
|
|
5
5
|
import { t as B } from "../../Combination-CnMM05mt.js";
|
|
6
6
|
import { t as I } from "../../es2015-B_07N-UL.js";
|
|
7
7
|
import { DrawerContext as M } from "./contexts/Drawer.context.js";
|
|
8
8
|
import { Header as j } from "./components/Header/Header.js";
|
|
9
9
|
import { Body as k } from "./components/Body/Body.js";
|
|
10
10
|
import { Footer as A } from "./components/Footer/Footer.js";
|
|
11
|
-
import { buttonCloseVariants as K, drawerVariants as P, overlayVariants as
|
|
11
|
+
import { buttonCloseVariants as K, drawerVariants as P, overlayVariants as T, resizeHandleVariants as _ } from "./Drawer.variants.js";
|
|
12
12
|
import "./constants/index.js";
|
|
13
|
-
import { useDrawer as
|
|
14
|
-
import { useId as
|
|
13
|
+
import { useDrawer as E } from "./hooks/useDrawer.js";
|
|
14
|
+
import { useId as L, useMemo as R } from "react";
|
|
15
15
|
import { createPortal as S } from "react-dom";
|
|
16
16
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
17
|
-
var d = ({ canResize:
|
|
18
|
-
const n =
|
|
19
|
-
canResize:
|
|
17
|
+
var d = ({ canResize: o = !1, children: u, className: c, classNames: r, container: f, defaultWidth: m = 500, isOpen: p, maxWidth: h, minWidth: w, position: a = "right", showCloseButton: y = !0, theme: v, onClose: i }) => {
|
|
18
|
+
const n = L(), { handleKeyDown: b, handleMouseDown: D, isAnimating: s, isVisible: x, translateClass: V, width: H } = E({
|
|
19
|
+
canResize: o,
|
|
20
20
|
defaultWidth: m,
|
|
21
21
|
isOpen: p,
|
|
22
22
|
maxWidth: h,
|
|
23
23
|
minWidth: w,
|
|
24
24
|
position: a,
|
|
25
25
|
onClose: i
|
|
26
|
-
}), C =
|
|
26
|
+
}), C = R(() => ({
|
|
27
27
|
classNames: r,
|
|
28
28
|
headerId: n
|
|
29
29
|
}), [r, n]);
|
|
@@ -31,10 +31,10 @@ var d = ({ canResize: t = !1, children: c, className: u, classNames: r, containe
|
|
|
31
31
|
const F = /* @__PURE__ */ e(M.Provider, {
|
|
32
32
|
value: C,
|
|
33
33
|
children: /* @__PURE__ */ e(B, { children: /* @__PURE__ */ l("div", {
|
|
34
|
-
className:
|
|
34
|
+
className: t("fixed inset-0 z-40", r?.root),
|
|
35
35
|
"data-theme": v,
|
|
36
36
|
children: [/* @__PURE__ */ e("div", {
|
|
37
|
-
className:
|
|
37
|
+
className: t(T(), {
|
|
38
38
|
"opacity-50": s,
|
|
39
39
|
"opacity-0": !s
|
|
40
40
|
}, r?.overlay),
|
|
@@ -45,28 +45,28 @@ var d = ({ canResize: t = !1, children: c, className: u, classNames: r, containe
|
|
|
45
45
|
returnFocus: !0,
|
|
46
46
|
className: "contents",
|
|
47
47
|
children: /* @__PURE__ */ l("div", {
|
|
48
|
-
className:
|
|
49
|
-
style: { width:
|
|
48
|
+
className: t(P({ position: a }), V, r?.panel, c),
|
|
49
|
+
style: { width: o ? H : m },
|
|
50
50
|
role: "dialog",
|
|
51
51
|
"aria-modal": "true",
|
|
52
52
|
"aria-labelledby": n,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
54
|
+
o && /* @__PURE__ */ e("button", {
|
|
55
55
|
type: "button",
|
|
56
56
|
"aria-label": "Resize drawer",
|
|
57
|
-
className:
|
|
57
|
+
className: t(_({ position: a }), r?.resizeHandle),
|
|
58
58
|
onMouseDown: D,
|
|
59
59
|
onKeyDown: b
|
|
60
60
|
}),
|
|
61
61
|
y && /* @__PURE__ */ l("button", {
|
|
62
|
-
className:
|
|
62
|
+
className: t(K(), r?.closeButton),
|
|
63
63
|
onClick: i,
|
|
64
64
|
type: "button",
|
|
65
65
|
children: [/* @__PURE__ */ e(g, { size: 20 }), /* @__PURE__ */ e(z, { children: "Dismiss drawer" })]
|
|
66
66
|
}),
|
|
67
67
|
/* @__PURE__ */ e("div", {
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
68
|
+
className: t("flex flex-1 flex-col h-full overflow-hidden", r?.content),
|
|
69
|
+
children: u
|
|
70
70
|
})
|
|
71
71
|
]
|
|
72
72
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../../Checkbox-
|
|
1
|
+
import { t as o } from "../../../../Checkbox-DRdyrKjk.js";
|
|
2
2
|
import { t as c } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { Button as m } from "../../../Button/Button.js";
|
|
4
4
|
import { t as O } from "../../../../chevron-down-BODx0Q7h.js";
|