@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,21 +1,39 @@
|
|
|
1
1
|
import { t as a } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import { Badge as v } from "../Badge/Badge.js";
|
|
3
|
+
import { Card as x } from "../Card/Card.js";
|
|
4
|
+
import { Radio as h } from "../Radio/Radio.js";
|
|
5
|
+
import { radioCardVariants as w } from "./RadioCard.variants.js";
|
|
6
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
7
|
+
var b = ({ wrapperClassName: l, theme: p, labelWrapperClassName: d, checked: r, className: n, content: s, contentClassName: f, description: c, hideIndicator: u = !1, label: i, tag: m, ...C }) => {
|
|
8
|
+
const e = typeof s == "function" ? s(!!r) : s, N = m ? /* @__PURE__ */ t("span", {
|
|
9
|
+
className: "flex items-center gap-2",
|
|
10
|
+
children: [i, /* @__PURE__ */ o(v, {
|
|
11
|
+
variant: "info",
|
|
12
|
+
label: m
|
|
13
|
+
})]
|
|
14
|
+
}) : i;
|
|
15
|
+
return /* @__PURE__ */ t(x, {
|
|
16
|
+
"data-theme": p,
|
|
17
|
+
className: a(w({
|
|
18
|
+
hasContent: !!e,
|
|
19
|
+
className: l
|
|
20
|
+
})),
|
|
21
|
+
wrapperClassName: a("w-max", l),
|
|
22
|
+
isActive: r,
|
|
23
|
+
children: [/* @__PURE__ */ o(h, {
|
|
24
|
+
wrapperClassName: a("w-full h-full p-3 gap-3", d),
|
|
25
|
+
className: a(u && "hidden", n),
|
|
26
|
+
checked: r,
|
|
27
|
+
description: c,
|
|
28
|
+
label: N,
|
|
29
|
+
...C
|
|
30
|
+
}), e ? /* @__PURE__ */ o("div", {
|
|
31
|
+
className: a("relative w-full px-3 pb-3", f),
|
|
32
|
+
children: e
|
|
33
|
+
}) : null]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
b.displayName = "KonstructRadioCard";
|
|
19
37
|
export {
|
|
20
|
-
|
|
38
|
+
b as RadioCard
|
|
21
39
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { t
|
|
2
|
-
var e =
|
|
1
|
+
import { t } from "../../dist-B9GE4SXf.js";
|
|
2
|
+
var e = t([
|
|
3
3
|
"flex",
|
|
4
4
|
"items-center",
|
|
5
5
|
"p-0",
|
|
6
6
|
"border"
|
|
7
|
-
]
|
|
7
|
+
], {
|
|
8
|
+
variants: { hasContent: {
|
|
9
|
+
true: ["flex-col", "items-stretch"],
|
|
10
|
+
false: []
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { hasContent: !1 }
|
|
13
|
+
});
|
|
8
14
|
export {
|
|
9
15
|
e as radioCardVariants
|
|
10
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import { i as v, n as V, r as i, t as S } from "../../dist-
|
|
2
|
+
import { i as v, n as V, r as i, t as S } from "../../dist-fPYIsxyx.js";
|
|
3
3
|
import { rangeOutsideVariants as R, rangeVariants as j, thumbVariants as c, trackVariants as w } from "./Range.variants.js";
|
|
4
4
|
import { forwardRef as y, useEffect as b, useImperativeHandle as k, useRef as C, useState as T } from "react";
|
|
5
5
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as y, t as d } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as M } from "../../Wrapper-
|
|
2
|
+
import { t as M } from "../../Wrapper-BCi_pLOr.js";
|
|
3
3
|
import { SelectProvider as S } from "./contexts/select.provider.js";
|
|
4
|
-
import { n as b } from "../../AdditionalOptions-
|
|
4
|
+
import { n as b } from "../../AdditionalOptions-ClcR_Kf7.js";
|
|
5
5
|
import { forwardRef as E, useId as G, useMemo as H } from "react";
|
|
6
6
|
import { jsx as s, jsxs as P } from "react/jsx-runtime";
|
|
7
7
|
var B = E(({ error: e, errorClassName: m, helperText: l, helperTextClassName: x, highlightSearch: h, id: u, mainWrapperClassName: I, name: r, value: g, options: t, onChange: v, onBlur: n, onValueChange: $, ...N }, O) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { o as $ } from "../../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
2
|
import { t as n } from "../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { t as R } from "../../../../Loading-u8hXrFJR.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { useSelectContext as ee } from "../../contexts/select.hook.js";
|
|
5
|
+
import { n as te, t as re } from "../../../../AdditionalOptions-ClcR_Kf7.js";
|
|
6
|
+
import { listGroupLabelVariants as oe, listVariants as ae } from "./List.variants.js";
|
|
7
|
+
import { t as ne } from "../../../../debounce-dMRJxNsT.js";
|
|
8
8
|
import "../../constants/pagination.js";
|
|
9
9
|
import "../../constants/list.js";
|
|
10
10
|
import { useNavigationUlList as se } from "../../hooks/useNavigationList.js";
|
|
11
11
|
import { ListItem as g } from "../ListItem/ListItem.js";
|
|
12
12
|
import { forwardRef as ie, useEffect as le, useImperativeHandle as ce, useMemo as I, useRef as N, useState as ue } from "react";
|
|
13
13
|
import { jsx as o, jsxs as O } from "react/jsx-runtime";
|
|
14
|
-
var fe = /* @__PURE__ */ $(
|
|
15
|
-
const m = N(null), L = N(null), [v, k] = ue(!1), { canContinueFetching: d, canFilter: y, isOpen: V, isTyping: G, options: H, page: w, searchTerm: a, setCanContinueFetching: z, setOptions: D, setPage: X } =
|
|
14
|
+
var fe = /* @__PURE__ */ $(ne(), 1), ke = ie(({ additionalOptions: P, className: T, groupedOptions: l, id: j, inputRef: c, isLoading: M, itemClassName: u, labelledBy: S, loadingText: C, name: q, searchable: f = !1, listItemSecondRowClassName: p, wrapperInputRef: A, isInfiniteScrollEnabled: h, noOptionsText: E, onFetchMoreOptions: b, visibleItems: F }, U) => {
|
|
15
|
+
const m = N(null), L = N(null), [v, k] = ue(!1), { canContinueFetching: d, canFilter: y, isOpen: V, isTyping: G, options: H, page: w, searchTerm: a, setCanContinueFetching: z, setOptions: D, setPage: X } = ee(), Z = F !== void 0 ? { maxHeight: F * 40 } : void 0;
|
|
16
16
|
ce(U, () => m.current, [m]);
|
|
17
|
-
const s = l.length > 0 &&
|
|
17
|
+
const s = l.length > 0 && te(l[0]), _ = f && y ? H.filter((e) => {
|
|
18
18
|
const t = a.toLowerCase();
|
|
19
19
|
return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(t);
|
|
20
20
|
}) : H, x = I(() => {
|
|
@@ -77,7 +77,7 @@ var fe = /* @__PURE__ */ $(ee(), 1), ke = ie(({ additionalOptions: P, className:
|
|
|
77
77
|
title: q,
|
|
78
78
|
role: "listbox",
|
|
79
79
|
"aria-labelledby": S,
|
|
80
|
-
className: n(
|
|
80
|
+
className: n(ae({ className: T })),
|
|
81
81
|
style: Z,
|
|
82
82
|
"data-state": V ? "open" : "closed",
|
|
83
83
|
children: [
|
|
@@ -106,7 +106,7 @@ var fe = /* @__PURE__ */ $(ee(), 1), ke = ie(({ additionalOptions: P, className:
|
|
|
106
106
|
role: "presentation",
|
|
107
107
|
"aria-hidden": "true",
|
|
108
108
|
"data-action": "true",
|
|
109
|
-
className: n(
|
|
109
|
+
className: n(oe()),
|
|
110
110
|
children: e.groupLabel
|
|
111
111
|
}), e.options.map((t) => /* @__PURE__ */ o(g, {
|
|
112
112
|
className: n("select-none", u),
|
|
@@ -132,7 +132,7 @@ var fe = /* @__PURE__ */ $(ee(), 1), ke = ie(({ additionalOptions: P, className:
|
|
|
132
132
|
onClick: (e) => e.stopPropagation(),
|
|
133
133
|
children: /* @__PURE__ */ o(R, { className: "w-4 h-4 text-aurora-500 select-none" })
|
|
134
134
|
}),
|
|
135
|
-
/* @__PURE__ */ o(
|
|
135
|
+
/* @__PURE__ */ o(re, { additionalOptions: P })
|
|
136
136
|
]
|
|
137
137
|
});
|
|
138
138
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as o } from "../../../Wrapper-
|
|
2
|
-
import { t as i } from "../../../AdditionalOptions-
|
|
1
|
+
import { t as o } from "../../../Wrapper-BCi_pLOr.js";
|
|
2
|
+
import { t as i } from "../../../AdditionalOptions-ClcR_Kf7.js";
|
|
3
3
|
import { EmptyList as p } from "./EmptyList.js";
|
|
4
4
|
import { List as a } from "./List/List.js";
|
|
5
5
|
export {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { ArrowLeftIcon as
|
|
3
|
-
import { ArrowRightIcon as
|
|
4
|
-
import { useSidebarContext as
|
|
1
|
+
import { t as l } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { ArrowLeftIcon as s } from "../../../../assets/icons/components/ArrowLeft.js";
|
|
3
|
+
import { ArrowRightIcon as p } from "../../../../assets/icons/components/ArrowRight.js";
|
|
4
|
+
import { useSidebarContext as d } from "../../contexts/SidebarContext.js";
|
|
5
5
|
import { collapseTriggerVariants as g } from "./CollapseTrigger.variants.js";
|
|
6
|
-
import { jsx as
|
|
7
|
-
var
|
|
8
|
-
const { isCollapsed: r, canToggle:
|
|
9
|
-
return
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
var m = ({ className: o, onToggle: e }) => {
|
|
8
|
+
const { isCollapsed: r, canToggle: t, toggleMode: i } = d();
|
|
9
|
+
return t ? /* @__PURE__ */ a("button", {
|
|
10
10
|
type: "button",
|
|
11
11
|
"data-konstruct-sidebar-collapse-trigger": "",
|
|
12
12
|
"aria-label": r ? "Expand navigation" : "Collapse navigation",
|
|
13
13
|
"aria-expanded": !r,
|
|
14
|
-
className:
|
|
15
|
-
onClick: (
|
|
16
|
-
|
|
14
|
+
className: l(g({ className: o })),
|
|
15
|
+
onClick: (n) => {
|
|
16
|
+
n.stopPropagation(), i(), e?.(r ? "expanded" : "collapsed");
|
|
17
17
|
},
|
|
18
|
-
children: r ? /* @__PURE__ */
|
|
18
|
+
children: r ? /* @__PURE__ */ a(p, {
|
|
19
19
|
size: 24,
|
|
20
20
|
"aria-hidden": "true"
|
|
21
|
-
}) : /* @__PURE__ */
|
|
21
|
+
}) : /* @__PURE__ */ a(s, {
|
|
22
22
|
size: 24,
|
|
23
23
|
"aria-hidden": "true"
|
|
24
24
|
})
|
|
25
25
|
}) : null;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
m.displayName = "KonstructSidebarCollapseTrigger";
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
m as CollapseTrigger
|
|
30
30
|
};
|
|
@@ -1,58 +1,82 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { a as
|
|
3
|
-
import { useSidebarContext as
|
|
4
|
-
import { NavigationOptionContext as
|
|
5
|
-
import { navigationOptionVariants as
|
|
6
|
-
import { Children as
|
|
7
|
-
import { jsx as t, jsxs as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
return
|
|
1
|
+
import { t as T } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { a as B, i as M, n as z, o as K, r as U, t as Y } from "../../../../dist-vUCyiTQy.js";
|
|
3
|
+
import { useSidebarContext as $ } from "../../contexts/SidebarContext.js";
|
|
4
|
+
import { NavigationOptionContext as q } from "./NavigationOption.context.js";
|
|
5
|
+
import { navigationOptionVariants as G } from "./NavigationOption.variants.js";
|
|
6
|
+
import { Children as I, isValidElement as J, useCallback as a, useEffect as Q, useMemo as W, useRef as X, useState as Z } from "react";
|
|
7
|
+
import { Fragment as tt, jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
var et = (o) => {
|
|
9
|
+
const n = I.toArray(o);
|
|
10
|
+
return n.length === 1 && J(n[0]) ? n[0] : /* @__PURE__ */ t("span", {
|
|
11
11
|
className: "flex w-full items-center justify-center gap-2",
|
|
12
|
-
children:
|
|
12
|
+
children: o
|
|
13
13
|
});
|
|
14
|
-
},
|
|
15
|
-
const { isCollapsed:
|
|
16
|
-
|
|
17
|
-
}, []),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
}, ot = 80, nt = ({ badge: o, children: n, className: x, closeDrawerOnClick: b = !0, intentDelay: d = ot, isVisible: k = !0, isActive: p, role: m, tooltip: N, onIntent: r, tooltipBgClassName: w = "bg-kubefirst-dark-blue-900", tooltipArrowClassName: O = "fill-kubefirst-dark-blue-900", tooltipTextClassName: y = "text-white", tooltipClassName: E, ...l }) => {
|
|
15
|
+
const { isCollapsed: P, expandOnHover: S, closeDrawer: A } = $(), c = P && S, [D, F] = Z(null), u = X(void 0), e = a(() => {
|
|
16
|
+
clearTimeout(u.current), u.current = void 0;
|
|
17
|
+
}, []), i = a(() => {
|
|
18
|
+
e(), r?.();
|
|
19
|
+
}, [e, r]), j = a(() => {
|
|
20
|
+
r && (e(), u.current = setTimeout(i, d));
|
|
21
|
+
}, [
|
|
22
|
+
e,
|
|
23
|
+
i,
|
|
24
|
+
d,
|
|
25
|
+
r
|
|
26
|
+
]);
|
|
27
|
+
Q(() => e, [e]);
|
|
28
|
+
const f = a((_) => {
|
|
29
|
+
F(_);
|
|
30
|
+
}, []), H = W(() => ({
|
|
31
|
+
hasOwnTooltip: c,
|
|
32
|
+
registerTooltipContent: f
|
|
33
|
+
}), [c, f]);
|
|
34
|
+
if (!k) return null;
|
|
35
|
+
const L = "onClick" in l ? l.onClick : void 0, h = () => {
|
|
36
|
+
b && A(), L?.();
|
|
37
|
+
}, g = N ?? D, R = c && !!g, V = r ? {
|
|
38
|
+
onPointerEnter: j,
|
|
39
|
+
onPointerLeave: e,
|
|
40
|
+
onPointerDown: i,
|
|
41
|
+
onTouchStart: i,
|
|
42
|
+
onFocus: i
|
|
43
|
+
} : {}, C = o ? /* @__PURE__ */ t("span", {
|
|
44
|
+
className: "ml-auto flex shrink-0 items-center group-data-[mode=collapsed]/sidebar:hidden",
|
|
45
|
+
children: o
|
|
46
|
+
}) : null, v = R ? /* @__PURE__ */ t(B, {
|
|
25
47
|
delayDuration: 0,
|
|
26
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ s(Y, { children: [/* @__PURE__ */ t(K, {
|
|
27
49
|
asChild: !0,
|
|
28
|
-
children:
|
|
29
|
-
}), /* @__PURE__ */ t(
|
|
50
|
+
children: et(n)
|
|
51
|
+
}), /* @__PURE__ */ t(M, { children: /* @__PURE__ */ s(U, {
|
|
30
52
|
side: "right",
|
|
31
53
|
sideOffset: 12,
|
|
32
|
-
className:
|
|
33
|
-
children: [
|
|
54
|
+
className: T("z-60 flex w-fit items-center gap-2 rounded px-3 py-2 text-sm shadow-lg whitespace-nowrap", "animate-in fade-in-0", w, y, E),
|
|
55
|
+
children: [g, /* @__PURE__ */ t(z, { className: O })]
|
|
34
56
|
}) })] })
|
|
35
|
-
}) :
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
37
|
-
value:
|
|
57
|
+
}) : n;
|
|
58
|
+
return /* @__PURE__ */ t(q.Provider, {
|
|
59
|
+
value: H,
|
|
38
60
|
children: /* @__PURE__ */ t("li", {
|
|
39
|
-
...
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
61
|
+
...l,
|
|
62
|
+
...V,
|
|
63
|
+
"data-active": p ? "true" : void 0,
|
|
64
|
+
onClick: m === "button" ? void 0 : h,
|
|
65
|
+
className: T(G({
|
|
66
|
+
className: x,
|
|
67
|
+
isActive: p,
|
|
68
|
+
hasBadge: !!o
|
|
45
69
|
})),
|
|
46
|
-
children:
|
|
70
|
+
children: m === "button" ? /* @__PURE__ */ s("button", {
|
|
47
71
|
type: "button",
|
|
48
|
-
onClick:
|
|
72
|
+
onClick: h,
|
|
49
73
|
className: "flex w-full cursor-pointer items-center gap-2",
|
|
50
|
-
children:
|
|
51
|
-
}) :
|
|
74
|
+
children: [v, C]
|
|
75
|
+
}) : /* @__PURE__ */ s(tt, { children: [v, C] })
|
|
52
76
|
})
|
|
53
77
|
});
|
|
54
78
|
};
|
|
55
|
-
|
|
79
|
+
nt.displayName = "KonstructSidebarNavigationOption";
|
|
56
80
|
export {
|
|
57
|
-
|
|
81
|
+
nt as NavigationOption
|
|
58
82
|
};
|
|
@@ -24,10 +24,16 @@ var t = e([
|
|
|
24
24
|
"selection:bg-powder-500",
|
|
25
25
|
"selection:text-white"
|
|
26
26
|
], {
|
|
27
|
-
variants: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
variants: {
|
|
28
|
+
isActive: {
|
|
29
|
+
true: "",
|
|
30
|
+
false: ""
|
|
31
|
+
},
|
|
32
|
+
hasBadge: {
|
|
33
|
+
true: ["[&>a]:flex-1", "[&>a]:min-w-0"],
|
|
34
|
+
false: ""
|
|
35
|
+
}
|
|
36
|
+
},
|
|
31
37
|
compoundVariants: [{
|
|
32
38
|
isActive: !0,
|
|
33
39
|
class: ["data-[active=true]:text-white", "data-[active=true]:bg-kubefirst-dark-blue-800"]
|
|
@@ -1,122 +1,127 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { Drawer as
|
|
4
|
-
import { SidebarContext as
|
|
5
|
-
import { useSidebarMode as
|
|
6
|
-
import { dragVariants as
|
|
7
|
-
import { useCallback as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
var
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { t as re } from "../../../../HamburgerTrigger-BgeS_nBA.js";
|
|
2
|
+
import { t as u } from "../../../../utils-DnIJruo0.js";
|
|
3
|
+
import { Drawer as te } from "../../../Drawer/Drawer.js";
|
|
4
|
+
import { SidebarContext as I } from "../../contexts/SidebarContext.js";
|
|
5
|
+
import { useSidebarMode as ne } from "../../hooks/useSidebarMode.js";
|
|
6
|
+
import { dragVariants as oe, wrapperSiderbarVariants as N } from "../../Sidebar.variants.js";
|
|
7
|
+
import { useCallback as v, useEffect as o, useRef as s, useState as b } from "react";
|
|
8
|
+
import { Fragment as se, jsx as d, jsxs as P } from "react/jsx-runtime";
|
|
9
|
+
var de = 280, ae = ({ animateOnHover: _ = !0, canResize: $ = !0, children: D, dividerClassName: j, drawerBreakpoint: U, drawerClassNames: p, drawerMaxWidth: R = de, expandedBreakpoint: X, expandOnHover: C = !0, initialMode: W, initialWidth: L = 256, maxWith: a = 300, minWith: c = 240, mode: q = "auto", separatorClassName: E, style: O, theme: S, triggerClassName: B, openNavigationLabel: G, wrapperClassName: z, onModeChange: w }) => {
|
|
10
|
+
const e = ne(q, X, U, W), [T, g] = b(!1), [H, J] = b(null), [f, V] = b(null), m = e === "drawer" ? "drawer" : f ?? e, n = s(null), t = s(null), h = s(!1), k = s(!1), M = s(w), A = s(e);
|
|
11
|
+
o(() => {
|
|
12
|
+
M.current = w;
|
|
13
|
+
}, [w]), o(() => {
|
|
14
|
+
A.current !== e && (A.current = e, M.current?.(e, "viewport"));
|
|
15
|
+
}, [e]), o(() => {
|
|
16
|
+
if (e !== "drawer") return;
|
|
17
|
+
const r = () => {
|
|
18
|
+
J(window.innerWidth);
|
|
15
19
|
};
|
|
16
|
-
return
|
|
17
|
-
window.removeEventListener("resize",
|
|
20
|
+
return r(), window.addEventListener("resize", r), () => {
|
|
21
|
+
window.removeEventListener("resize", r);
|
|
18
22
|
};
|
|
19
|
-
}, [
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
23
|
+
}, [e]);
|
|
24
|
+
const x = v((r) => {
|
|
25
|
+
if (!h.current) {
|
|
22
26
|
n.current && (n.current.style.opacity = "0");
|
|
23
27
|
return;
|
|
24
28
|
}
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
|
|
29
|
-
}, [
|
|
30
|
-
|
|
29
|
+
let i = r.clientX;
|
|
30
|
+
i < c && (i = c), i > a && (i = a), t.current && n.current && (t.current.style.width = `${i}px`, n.current.classList.add("opacity-100"));
|
|
31
|
+
}, [a, c]), F = v(() => {
|
|
32
|
+
h.current = !1, n.current && n.current.classList.remove("opacity-100"), t.current && t.current.classList.remove("transition-none"), document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", F);
|
|
33
|
+
}, [x]), K = (r) => {
|
|
34
|
+
r.preventDefault(), r.stopPropagation(), h.current = !0, t.current && t.current.classList.add("transition-none"), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", document.addEventListener("mousemove", x), document.addEventListener("mouseup", F);
|
|
31
35
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
|
|
36
|
+
o(() => {
|
|
37
|
+
m !== "expanded" && t.current && (t.current.style.width = "");
|
|
38
|
+
}, [m]), o(() => {
|
|
39
|
+
e !== "drawer" && g(!1), V(null);
|
|
40
|
+
}, [e]), o(() => {
|
|
41
|
+
if (k.current || m !== "expanded" || !t.current) return;
|
|
42
|
+
const r = Math.min(Math.max(L, c), a);
|
|
43
|
+
t.current.style.width = `${r}px`, k.current = !0;
|
|
40
44
|
}, [
|
|
41
|
-
|
|
42
|
-
s,
|
|
45
|
+
L,
|
|
43
46
|
a,
|
|
44
|
-
|
|
47
|
+
c,
|
|
48
|
+
m
|
|
45
49
|
]);
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
}, []),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
const Q = () => {
|
|
51
|
+
g(!0);
|
|
52
|
+
}, y = v(() => {
|
|
53
|
+
g(!1);
|
|
54
|
+
}, []), Y = v(() => {
|
|
55
|
+
const r = (f ?? e) === "collapsed" ? "expanded" : "collapsed";
|
|
56
|
+
V(r), M.current?.(r, "user");
|
|
57
|
+
}, [f, e]);
|
|
58
|
+
if (e === "drawer") return /* @__PURE__ */ P(se, { children: [/* @__PURE__ */ d(re, {
|
|
59
|
+
isOpen: T,
|
|
60
|
+
onClick: Q,
|
|
61
|
+
className: B,
|
|
62
|
+
openNavigationLabel: G
|
|
63
|
+
}), /* @__PURE__ */ d(te, {
|
|
64
|
+
isOpen: T,
|
|
65
|
+
onClose: y,
|
|
61
66
|
position: "left",
|
|
62
|
-
defaultWidth:
|
|
63
|
-
theme:
|
|
67
|
+
defaultWidth: H !== null ? Math.min(H, R) : R,
|
|
68
|
+
theme: S,
|
|
64
69
|
classNames: {
|
|
65
|
-
...
|
|
66
|
-
root:
|
|
67
|
-
panel:
|
|
68
|
-
content:
|
|
70
|
+
...p,
|
|
71
|
+
root: u("z-60", p?.root),
|
|
72
|
+
panel: u(N({ mode: "expanded" }), "h-full border-r-0", z, p?.panel),
|
|
73
|
+
content: u("gap-0", p?.content)
|
|
69
74
|
},
|
|
70
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ d(I.Provider, {
|
|
71
76
|
value: {
|
|
72
77
|
mode: "expanded",
|
|
73
78
|
isCollapsed: !1,
|
|
74
79
|
expandOnHover: !1,
|
|
75
80
|
animateOnHover: !1,
|
|
76
|
-
separatorClassName:
|
|
77
|
-
closeDrawer:
|
|
81
|
+
separatorClassName: E,
|
|
82
|
+
closeDrawer: y,
|
|
78
83
|
canToggle: !1,
|
|
79
84
|
toggleMode: () => {
|
|
80
85
|
}
|
|
81
86
|
},
|
|
82
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ d("div", {
|
|
83
88
|
className: "konstruct-sidebar group/sidebar flex flex-col flex-1 min-h-0",
|
|
84
89
|
"data-mode": "expanded",
|
|
85
|
-
style:
|
|
86
|
-
children:
|
|
90
|
+
style: O,
|
|
91
|
+
children: D
|
|
87
92
|
})
|
|
88
93
|
})
|
|
89
94
|
})] });
|
|
90
|
-
const
|
|
91
|
-
mode:
|
|
92
|
-
isCollapsed:
|
|
93
|
-
expandOnHover:
|
|
94
|
-
animateOnHover:
|
|
95
|
-
separatorClassName:
|
|
96
|
-
closeDrawer:
|
|
95
|
+
const l = f ?? e, Z = $ && l === "expanded", ee = {
|
|
96
|
+
mode: l,
|
|
97
|
+
isCollapsed: l === "collapsed",
|
|
98
|
+
expandOnHover: C,
|
|
99
|
+
animateOnHover: _,
|
|
100
|
+
separatorClassName: E,
|
|
101
|
+
closeDrawer: y,
|
|
97
102
|
canToggle: !0,
|
|
98
|
-
toggleMode:
|
|
103
|
+
toggleMode: Y
|
|
99
104
|
};
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
value:
|
|
102
|
-
children: /* @__PURE__ */
|
|
103
|
-
ref:
|
|
104
|
-
className:
|
|
105
|
-
mode:
|
|
106
|
-
className:
|
|
105
|
+
return /* @__PURE__ */ d(I.Provider, {
|
|
106
|
+
value: ee,
|
|
107
|
+
children: /* @__PURE__ */ P("aside", {
|
|
108
|
+
ref: t,
|
|
109
|
+
className: u("konstruct-sidebar", N({
|
|
110
|
+
mode: l,
|
|
111
|
+
className: z
|
|
107
112
|
})),
|
|
108
|
-
"data-theme":
|
|
109
|
-
"data-mode":
|
|
110
|
-
style:
|
|
111
|
-
children: [
|
|
113
|
+
"data-theme": S,
|
|
114
|
+
"data-mode": l,
|
|
115
|
+
style: O,
|
|
116
|
+
children: [D, Z && /* @__PURE__ */ d("div", {
|
|
112
117
|
ref: n,
|
|
113
|
-
className:
|
|
114
|
-
onMouseDown:
|
|
118
|
+
className: u(oe({ className: j })),
|
|
119
|
+
onMouseDown: K
|
|
115
120
|
})]
|
|
116
121
|
})
|
|
117
122
|
});
|
|
118
123
|
};
|
|
119
|
-
|
|
124
|
+
ae.displayName = "Sidebar.Wrapper";
|
|
120
125
|
export {
|
|
121
|
-
|
|
126
|
+
ae as Wrapper
|
|
122
127
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../HamburgerTrigger-
|
|
1
|
+
import { t as r } from "../../../HamburgerTrigger-BgeS_nBA.js";
|
|
2
2
|
import { CollapseTrigger as m } from "./CollapseTrigger/CollapseTrigger.js";
|
|
3
3
|
import { Footer as p } from "./Footer/Footer.js";
|
|
4
4
|
import { Label as f } from "./Label/Label.js";
|