@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.107
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/README.md +118 -31
- package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
- package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-ouMGAlJW.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-MrF1Z6w2.js} +3 -3
- package/dist/{Checkbox-B_ngk9Dj.js → Checkbox-8KnRLpQG.js} +60 -61
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-CGnqfudl.js} +4 -4
- package/dist/{Counter-BV680M5r.js → Counter-CDXdP1Af.js} +3 -3
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-D4QlKGg7.js} +7 -7
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-tYZNl-tz.js} +31 -24
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-B_NGSZ2r.js} +20 -20
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-D7HKSXK8.js} +71 -66
- package/dist/Input-is8n7emP.js +195 -0
- package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
- package/dist/{Modal-Dyn088X7.js → Modal-Dq9BHD_9.js} +4 -4
- package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
- package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
- package/dist/Switch-C7286Bcu.js +199 -0
- package/dist/{Toast-3NEz7LLa.js → Toast-jSx3Lao8.js} +8 -7
- package/dist/Wrapper-2AUlYAHQ.js +195 -0
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CyHxGs4E.js} +4 -4
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-a7RVCcrn.js} +248 -242
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
- package/dist/components/Card/Card.js +25 -22
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- 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 +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2 -2
- package/dist/components/Divider/Divider.js +7 -7
- package/dist/components/Drawer/Drawer.js +28 -26
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +43 -41
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- 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/components/Item/Item.js +1 -1
- 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/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- 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 +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +31 -28
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +43 -36
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +78 -67
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +8 -8
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +8 -8
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
- package/dist/components/TextArea/TextArea.js +71 -26
- package/dist/components/TextArea/TextArea.variants.js +49 -13
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +114 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +4 -4
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +12 -12
- package/dist/{components-Cf345jTv.js → components-CaEW5ge4.js} +32 -32
- package/dist/{constants-CxJJRVK3.js → constants-HQIXhj2t.js} +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-DFCz63oC2.js → dist-9WbMf_jT.js} +158 -159
- package/dist/{dist-tGUUcv8n.js → dist-AxOGvL82.js} +114 -115
- package/dist/{dist-DDck_2lb.js → dist-BIBFLVt1.js} +117 -116
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BaPW7qXd2.js → dist-BnCbAI-c.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-CszFjHAP.js} +2 -2
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR.js} +38 -38
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-BlPTJNIm.js → dist-pxvIAJzo.js} +2 -2
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +14 -14
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
- package/dist/lib/components/Card/Card.types.d.ts +1 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +3 -2
- package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
- package/dist/lib/components/Input/Input.types.d.ts +4 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +27 -27
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-7zQ6bvbE.js} +837 -828
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-CWzODR1t.js} +96 -96
- package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/utils/index.js +6 -5
- package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +27 -27
- package/dist/Input-Cf44DzfE.js +0 -188
- package/dist/Switch-aPhL5rNG.js +0 -196
- package/dist/Wrapper-R8fik3ah.js +0 -182
- package/dist/es2015-DigR3dar.js +0 -795
- /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
- /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
- /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
|
@@ -1,112 +1,122 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import { t as n } from "../../../../utils-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { useSelectContext as
|
|
6
|
-
import { n as
|
|
7
|
-
import { listGroupLabelVariants as
|
|
1
|
+
import { o as $ } from "../../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as n } from "../../../../utils-B-6R7kNE.js";
|
|
3
|
+
import { t as R } from "../../../../Loading-DO8JOWBV.js";
|
|
4
|
+
import { t as ee } from "../../../../debounce-BdyZeJQk.js";
|
|
5
|
+
import { useSelectContext as te } from "../../contexts/select.hook.js";
|
|
6
|
+
import { n as re, t as oe } from "../../../../AdditionalOptions-Crcnz0_g.js";
|
|
7
|
+
import { listGroupLabelVariants as ae, listVariants as ne } from "./List.variants.js";
|
|
8
8
|
import "../../constants/pagination.js";
|
|
9
9
|
import "../../constants/list.js";
|
|
10
|
-
import { useNavigationUlList as
|
|
10
|
+
import { useNavigationUlList as se } from "../../hooks/useNavigationList.js";
|
|
11
11
|
import { ListItem as g } from "../ListItem/ListItem.js";
|
|
12
|
-
import {
|
|
13
|
-
import { jsx as o, jsxs as
|
|
14
|
-
var
|
|
15
|
-
const m =
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const t =
|
|
12
|
+
import { forwardRef as ie, useEffect as le, useImperativeHandle as ce, useMemo as I, useRef as N, useState as ue } from "react";
|
|
13
|
+
import { jsx as o, jsxs as O } from "react/jsx-runtime";
|
|
14
|
+
var fe = /* @__PURE__ */ $(ee(), 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 } = te(), Z = F !== void 0 ? { maxHeight: F * 40 } : void 0;
|
|
16
|
+
ce(U, () => m.current, [m]);
|
|
17
|
+
const s = l.length > 0 && re(l[0]), _ = f && y ? H.filter((e) => {
|
|
18
|
+
const t = a.toLowerCase();
|
|
19
19
|
return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(t);
|
|
20
|
-
}) :
|
|
21
|
-
if (!
|
|
20
|
+
}) : H, x = I(() => {
|
|
21
|
+
if (!s) return [];
|
|
22
22
|
const e = l;
|
|
23
|
-
if (!f || !y || !
|
|
24
|
-
const t =
|
|
23
|
+
if (!f || !y || !a) return e;
|
|
24
|
+
const t = a.toLowerCase();
|
|
25
25
|
return e.map((r) => ({
|
|
26
26
|
...r,
|
|
27
27
|
options: r.options.filter((i) => i.label.toLowerCase().includes(t))
|
|
28
28
|
})).filter((r) => r.options.length > 0);
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
s,
|
|
31
31
|
l,
|
|
32
32
|
f,
|
|
33
33
|
y,
|
|
34
|
-
|
|
35
|
-
]);
|
|
36
|
-
|
|
34
|
+
a
|
|
35
|
+
]), B = s ? x.flatMap((e) => e.options) : _;
|
|
36
|
+
se({
|
|
37
37
|
ulRef: m,
|
|
38
|
-
wrapperInputRef:
|
|
38
|
+
wrapperInputRef: A,
|
|
39
39
|
searchable: f,
|
|
40
|
-
filteredOptions:
|
|
40
|
+
filteredOptions: B
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const J = _.filter((e, t, r) => t === r.findIndex((i) => i.value === e.value)), K = s ? x.length === 0 : _.length === 0, Q = I(() => (0, fe.default)(async (e) => {
|
|
43
43
|
const [t] = e;
|
|
44
|
-
if (t.isIntersecting && !
|
|
45
|
-
|
|
46
|
-
const r = w + 1, { data: i, hasMore:
|
|
44
|
+
if (t.isIntersecting && !v && b && d) try {
|
|
45
|
+
k(!0);
|
|
46
|
+
const r = w + 1, { data: i, hasMore: W } = await b({
|
|
47
47
|
page: r,
|
|
48
48
|
pageSize: 10,
|
|
49
|
-
termOfSearch:
|
|
49
|
+
termOfSearch: a
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
X(r), z(W), D((Y) => [...Y, ...i]);
|
|
52
52
|
} catch {
|
|
53
53
|
console.error("Error fetching more options");
|
|
54
54
|
} finally {
|
|
55
|
-
|
|
55
|
+
k(!1);
|
|
56
56
|
}
|
|
57
57
|
}, 100), [
|
|
58
|
+
v,
|
|
58
59
|
b,
|
|
59
|
-
|
|
60
|
-
s,
|
|
60
|
+
a,
|
|
61
61
|
w
|
|
62
62
|
]);
|
|
63
|
-
return
|
|
64
|
-
if (h && d &&
|
|
65
|
-
const e = new IntersectionObserver(
|
|
66
|
-
return e.observe(
|
|
63
|
+
return le(() => {
|
|
64
|
+
if (h && d && L.current && !G) {
|
|
65
|
+
const e = new IntersectionObserver(Q, { threshold: 0.1 });
|
|
66
|
+
return e.observe(L.current), () => e.disconnect();
|
|
67
67
|
}
|
|
68
68
|
}, [
|
|
69
69
|
h,
|
|
70
70
|
d,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
v,
|
|
72
|
+
G,
|
|
73
73
|
w
|
|
74
|
-
]), /* @__PURE__ */
|
|
74
|
+
]), /* @__PURE__ */ O("ul", {
|
|
75
75
|
ref: m,
|
|
76
|
-
|
|
76
|
+
id: j,
|
|
77
|
+
title: q,
|
|
77
78
|
role: "listbox",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
"aria-labelledby": S,
|
|
80
|
+
className: n(ne({ className: T })),
|
|
81
|
+
style: Z,
|
|
82
|
+
"data-state": V ? "open" : "closed",
|
|
81
83
|
children: [
|
|
82
|
-
|
|
84
|
+
M ? /* @__PURE__ */ o(g, {
|
|
83
85
|
className: n("select-none", u),
|
|
84
86
|
isClickable: !1,
|
|
85
87
|
inputRef: c,
|
|
86
|
-
value: "Loading...",
|
|
87
|
-
label: "Loading...",
|
|
88
|
+
value: C ?? "Loading...",
|
|
89
|
+
label: C ?? "Loading...",
|
|
88
90
|
listItemSecondRowClassName: p
|
|
89
|
-
}) :
|
|
91
|
+
}) : K ? /* @__PURE__ */ o(g, {
|
|
90
92
|
isEmpty: !0,
|
|
91
93
|
className: n("select-none", u),
|
|
92
94
|
isClickable: !1,
|
|
93
95
|
inputRef: c,
|
|
94
|
-
value:
|
|
95
|
-
label:
|
|
96
|
+
value: E ?? "",
|
|
97
|
+
label: E ?? "No options",
|
|
96
98
|
listItemSecondRowClassName: p
|
|
97
|
-
}) :
|
|
99
|
+
}) : s ? x.map((e) => /* @__PURE__ */ o("li", {
|
|
98
100
|
role: "presentation",
|
|
99
|
-
"aria-hidden": "true",
|
|
100
101
|
"data-action": "true",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
children: /* @__PURE__ */ O("ul", {
|
|
103
|
+
role: "group",
|
|
104
|
+
"aria-label": e.groupLabel,
|
|
105
|
+
children: [/* @__PURE__ */ o("li", {
|
|
106
|
+
role: "presentation",
|
|
107
|
+
"aria-hidden": "true",
|
|
108
|
+
"data-action": "true",
|
|
109
|
+
className: n(ae()),
|
|
110
|
+
children: e.groupLabel
|
|
111
|
+
}), e.options.map((t) => /* @__PURE__ */ o(g, {
|
|
112
|
+
className: n("select-none", u),
|
|
113
|
+
isClickable: !0,
|
|
114
|
+
inputRef: c,
|
|
115
|
+
listItemSecondRowClassName: p,
|
|
116
|
+
...t
|
|
117
|
+
}, t.value))]
|
|
118
|
+
})
|
|
119
|
+
}, e.groupLabel)) : J.map((e) => /* @__PURE__ */ o(g, {
|
|
110
120
|
className: n("select-none", u),
|
|
111
121
|
isClickable: !0,
|
|
112
122
|
inputRef: c,
|
|
@@ -114,17 +124,18 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
114
124
|
...e
|
|
115
125
|
}, e.value)),
|
|
116
126
|
h && d && /* @__PURE__ */ o("li", {
|
|
117
|
-
ref:
|
|
118
|
-
role: "
|
|
127
|
+
ref: L,
|
|
128
|
+
role: "presentation",
|
|
129
|
+
"aria-hidden": "true",
|
|
119
130
|
"data-action": "true",
|
|
120
131
|
className: "flex items-center justify-center py-3",
|
|
121
132
|
onClick: (e) => e.stopPropagation(),
|
|
122
|
-
children: /* @__PURE__ */ o(
|
|
133
|
+
children: /* @__PURE__ */ o(R, { className: "w-4 h-4 text-aurora-500 select-none" })
|
|
123
134
|
}),
|
|
124
|
-
/* @__PURE__ */ o(
|
|
135
|
+
/* @__PURE__ */ o(oe, { additionalOptions: P })
|
|
125
136
|
]
|
|
126
137
|
});
|
|
127
138
|
});
|
|
128
139
|
export {
|
|
129
|
-
|
|
140
|
+
ke as List
|
|
130
141
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as l } from "../../../../utils-
|
|
1
|
+
import { t as l } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { Typography as x } from "../../../Typography/Typography.js";
|
|
3
3
|
import { useSelectContext as I } from "../../contexts/select.hook.js";
|
|
4
4
|
import { listItemVariants as C } from "./ListItem.variants.js";
|
|
@@ -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-2AUlYAHQ.js";
|
|
2
|
+
import { t as i } from "../../../AdditionalOptions-Crcnz0_g.js";
|
|
3
3
|
import { EmptyList as p } from "./EmptyList.js";
|
|
4
4
|
import { List as a } from "./List/List.js";
|
|
5
5
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSelectContext as k } from "../contexts/select.hook.js";
|
|
2
|
-
import { useEffect as a, useRef as
|
|
2
|
+
import { useEffect as a, useRef as m } from "react";
|
|
3
3
|
var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) => {
|
|
4
|
-
const r =
|
|
4
|
+
const r = m(0), { isOpen: s } = k();
|
|
5
5
|
a(() => {
|
|
6
6
|
const g = n.current?.querySelectorAll("li") ?? [], t = Array.from(g).filter((c) => c.getAttribute("data-action") !== "true"), u = new AbortController(), i = () => {
|
|
7
7
|
r.current < t.length - 1 ? (r.current = r.current + 1, t[r.current].focus()) : (r.current = 0, t[0].focus());
|
|
@@ -21,7 +21,6 @@ var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) =>
|
|
|
21
21
|
break;
|
|
22
22
|
case "Enter":
|
|
23
23
|
t[r.current]?.click();
|
|
24
|
-
break;
|
|
25
24
|
}
|
|
26
25
|
}, { signal: u.signal }), () => {
|
|
27
26
|
u.abort();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useClickOutside as
|
|
2
|
-
import { useSelectContext as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
var
|
|
5
|
-
const t = g(null), d = g(null), { value: o, setSearchTerm: f, setCanFilter: u, toggleOpen: n } =
|
|
6
|
-
return m(t, b(() => {
|
|
1
|
+
import { useClickOutside as E } from "../../../hooks/useClickOutside.js";
|
|
2
|
+
import { useSelectContext as b } from "../contexts/select.hook.js";
|
|
3
|
+
import { useCallback as p, useEffect as l, useRef as g } from "react";
|
|
4
|
+
var k = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
|
|
5
|
+
const t = g(null), d = g(null), { value: o, setSearchTerm: f, setCanFilter: u, toggleOpen: n } = b(), m = p(() => {
|
|
7
6
|
n(!1);
|
|
8
|
-
}, [n])
|
|
7
|
+
}, [n]);
|
|
8
|
+
return E(t, m), l(() => {
|
|
9
9
|
const e = new AbortController(), s = (a) => {
|
|
10
10
|
a.key === "Escape" && n(!1);
|
|
11
11
|
};
|
|
@@ -52,5 +52,5 @@ var h = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
k as useSelect
|
|
56
56
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as n } from "../../../../utils-
|
|
1
|
+
import { t as n } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { ArrowLeftIcon as l } from "../../../../assets/icons/components/ArrowLeft.js";
|
|
3
3
|
import { ArrowRightIcon as s } from "../../../../assets/icons/components/ArrowRight.js";
|
|
4
4
|
import { useSidebarContext as p } from "../../contexts/SidebarContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t } from "../../../../utils-
|
|
1
|
+
import { t } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { footerVariants as a } from "./Footer.variants.js";
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
4
|
var m = ({ className: o, children: r }) => /* @__PURE__ */ e("footer", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as p } from "../../../../utils-
|
|
1
|
+
import { t as p } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { Typography as l } from "../../../Typography/Typography.js";
|
|
3
3
|
import { useSidebarContext as m } from "../../contexts/SidebarContext.js";
|
|
4
4
|
import { useNavigationOptionContext as f } from "../NavigationOption/NavigationOption.context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../../../utils-
|
|
1
|
+
import { t as e } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useSidebarContext as i } from "../../contexts/SidebarContext.js";
|
|
3
3
|
import { logoVariants as s } from "./Logo.variants.js";
|
|
4
4
|
import { jsx as m } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as c } from "../../../../utils-
|
|
1
|
+
import { t as c } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useSidebarContext as d } from "../../contexts/SidebarContext.js";
|
|
3
3
|
import { NavigationTitle as y } from "../NavigationTitle/NavigationTitle.js";
|
|
4
4
|
import { NavigationGroup as u } from "../NavigationGroup/NavigationGroup.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as m } from "../../../../utils-
|
|
1
|
+
import { t as m } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { useSidebarContext as l } from "../../contexts/SidebarContext.js";
|
|
3
3
|
import { NavigationTitle as p } from "../NavigationTitle/NavigationTitle.js";
|
|
4
4
|
import { navigationGroupsVariants as u } from "./NavigationGroup.variants.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as u } from "../../../../utils-
|
|
2
|
-
import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-
|
|
1
|
+
import { t as u } from "../../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-AxOGvL82.js";
|
|
3
3
|
import { useSidebarContext as H } from "../../contexts/SidebarContext.js";
|
|
4
4
|
import { NavigationOptionContext as R } from "./NavigationOption.context.js";
|
|
5
5
|
import { navigationOptionVariants as z } from "./NavigationOption.variants.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../../utils-
|
|
1
|
+
import { t as r } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { navigationSeparatorVariant as o } from "./NavigationSeparator.variants.js";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
var i = ({ className: a }) => /* @__PURE__ */ t("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as a } from "../../../../utils-
|
|
1
|
+
import { t as a } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { navigationTitleVariants as e } from "./NavigationTitle.variants.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
var o = ({ title: i, className: r, isVisible: t = !0 }) => t ? /* @__PURE__ */ n("h2", {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as l } from "../../../../utils-
|
|
3
|
-
import { Drawer as
|
|
1
|
+
import { t as Y } from "../../../../HamburgerTrigger-B_NGSZ2r.js";
|
|
2
|
+
import { t as l } from "../../../../utils-B-6R7kNE.js";
|
|
3
|
+
import { Drawer as Z } from "../../../Drawer/Drawer.js";
|
|
4
4
|
import { SidebarContext as k } from "../../contexts/SidebarContext.js";
|
|
5
|
-
import { useSidebarMode as
|
|
6
|
-
import { dragVariants as
|
|
5
|
+
import { useSidebarMode as ee } from "../../hooks/useSidebarMode.js";
|
|
6
|
+
import { dragVariants as re, wrapperSiderbarVariants as A } from "../../Sidebar.variants.js";
|
|
7
7
|
import { useCallback as p, useEffect as f, useRef as m, useState as M } from "react";
|
|
8
|
-
import { Fragment as
|
|
9
|
-
var
|
|
10
|
-
const t =
|
|
8
|
+
import { Fragment as te, jsx as o, jsxs as F } from "react/jsx-runtime";
|
|
9
|
+
var ne = 280, oe = ({ animateOnHover: I = !0, canResize: N = !0, children: y, dividerClassName: P, drawerBreakpoint: _, drawerClassNames: i, drawerMaxWidth: b = ne, expandedBreakpoint: $, expandOnHover: j = !0, initialMode: C, initialWidth: x = 256, maxWith: s = 300, minWith: a = 240, mode: U = "auto", separatorClassName: D, style: L, theme: E, triggerClassName: X, openNavigationLabel: W, wrapperClassName: O }) => {
|
|
10
|
+
const t = ee(U, $, _, C), [R, v] = M(!1), [S, q] = M(null), [z, T] = M(null), u = t === "drawer" ? "drawer" : z ?? t, n = m(null), r = m(null), w = m(!1), H = m(!1);
|
|
11
11
|
f(() => {
|
|
12
12
|
if (t !== "drawer") return;
|
|
13
13
|
const e = () => {
|
|
14
|
-
|
|
14
|
+
q(window.innerWidth);
|
|
15
15
|
};
|
|
16
16
|
return e(), window.addEventListener("resize", e), () => {
|
|
17
17
|
window.removeEventListener("resize", e);
|
|
@@ -26,7 +26,7 @@ var te = 280, ne = ({ animateOnHover: I = !0, canResize: N = !0, children: y, di
|
|
|
26
26
|
c < a && (c = a), c > s && (c = s), r.current && n.current && (r.current.style.width = `${c}px`, n.current.classList.add("opacity-100"));
|
|
27
27
|
}, [s, a]), V = p(() => {
|
|
28
28
|
w.current = !1, n.current && n.current.classList.remove("opacity-100"), r.current && r.current.classList.remove("transition-none"), document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", V);
|
|
29
|
-
}, [g]),
|
|
29
|
+
}, [g]), B = (e) => {
|
|
30
30
|
e.preventDefault(), e.stopPropagation(), w.current = !0, r.current && r.current.classList.add("transition-none"), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", document.addEventListener("mousemove", g), document.addEventListener("mouseup", V);
|
|
31
31
|
};
|
|
32
32
|
f(() => {
|
|
@@ -43,18 +43,19 @@ var te = 280, ne = ({ animateOnHover: I = !0, canResize: N = !0, children: y, di
|
|
|
43
43
|
a,
|
|
44
44
|
u
|
|
45
45
|
]);
|
|
46
|
-
const
|
|
46
|
+
const G = () => {
|
|
47
47
|
v(!0);
|
|
48
48
|
}, h = p(() => {
|
|
49
49
|
v(!1);
|
|
50
|
-
}, []),
|
|
50
|
+
}, []), J = p(() => {
|
|
51
51
|
T((e) => (e ?? t) === "collapsed" ? "expanded" : "collapsed");
|
|
52
52
|
}, [t]);
|
|
53
|
-
if (t === "drawer") return /* @__PURE__ */ F(
|
|
53
|
+
if (t === "drawer") return /* @__PURE__ */ F(te, { children: [/* @__PURE__ */ o(Y, {
|
|
54
54
|
isOpen: R,
|
|
55
|
-
onClick:
|
|
56
|
-
className: X
|
|
57
|
-
|
|
55
|
+
onClick: G,
|
|
56
|
+
className: X,
|
|
57
|
+
openNavigationLabel: W
|
|
58
|
+
}), /* @__PURE__ */ o(Z, {
|
|
58
59
|
isOpen: R,
|
|
59
60
|
onClose: h,
|
|
60
61
|
position: "left",
|
|
@@ -86,7 +87,7 @@ var te = 280, ne = ({ animateOnHover: I = !0, canResize: N = !0, children: y, di
|
|
|
86
87
|
})
|
|
87
88
|
})
|
|
88
89
|
})] });
|
|
89
|
-
const d = z ?? t,
|
|
90
|
+
const d = z ?? t, K = N && d === "expanded", Q = {
|
|
90
91
|
mode: d,
|
|
91
92
|
isCollapsed: d === "collapsed",
|
|
92
93
|
expandOnHover: j,
|
|
@@ -94,10 +95,10 @@ var te = 280, ne = ({ animateOnHover: I = !0, canResize: N = !0, children: y, di
|
|
|
94
95
|
separatorClassName: D,
|
|
95
96
|
closeDrawer: h,
|
|
96
97
|
canToggle: !0,
|
|
97
|
-
toggleMode:
|
|
98
|
+
toggleMode: J
|
|
98
99
|
};
|
|
99
100
|
return /* @__PURE__ */ o(k.Provider, {
|
|
100
|
-
value:
|
|
101
|
+
value: Q,
|
|
101
102
|
children: /* @__PURE__ */ F("aside", {
|
|
102
103
|
ref: r,
|
|
103
104
|
className: l("konstruct-sidebar", A({
|
|
@@ -107,15 +108,15 @@ var te = 280, ne = ({ animateOnHover: I = !0, canResize: N = !0, children: y, di
|
|
|
107
108
|
"data-theme": E,
|
|
108
109
|
"data-mode": d,
|
|
109
110
|
style: L,
|
|
110
|
-
children: [y,
|
|
111
|
+
children: [y, K && /* @__PURE__ */ o("div", {
|
|
111
112
|
ref: n,
|
|
112
|
-
className: l(
|
|
113
|
-
onMouseDown:
|
|
113
|
+
className: l(re({ className: P })),
|
|
114
|
+
onMouseDown: B
|
|
114
115
|
})]
|
|
115
116
|
})
|
|
116
117
|
});
|
|
117
118
|
};
|
|
118
|
-
|
|
119
|
+
oe.displayName = "Sidebar.Wrapper";
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
+
oe as Wrapper
|
|
121
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../HamburgerTrigger-
|
|
1
|
+
import { t as r } from "../../../HamburgerTrigger-B_NGSZ2r.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../utils-
|
|
2
|
-
import { i as v, r as N, t as S } from "../../dist-
|
|
1
|
+
import { t } from "../../utils-B-6R7kNE.js";
|
|
2
|
+
import { i as v, r as N, t as S } from "../../dist-BIBFLVt1.js";
|
|
3
3
|
import { sliderVariants as V, thumbVariants as g, trackVariants as j } from "./Slider.variants.js";
|
|
4
4
|
import { forwardRef as b, useEffect as w, useImperativeHandle as y, useRef as R, useState as k } from "react";
|
|
5
5
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as s } from "../../utils-
|
|
1
|
+
import { t as s } from "../../utils-B-6R7kNE.js";
|
|
2
2
|
import { stepItemVariants as S, stepListVariants as b, stepperVariants as k } from "./Stepper.variants.js";
|
|
3
3
|
import { StepItem as C } from "./components/StepItem/StepItem.js";
|
|
4
4
|
import { useMemo as I } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../../../utils-
|
|
2
|
-
import { t as v } from "../../../../StepIndicatorContent-
|
|
1
|
+
import { t } from "../../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { t as v } from "../../../../StepIndicatorContent-BGDvxLzV.js";
|
|
3
3
|
import { useStepItemLogic as w } from "../../hooks/useStepItemLogic.js";
|
|
4
4
|
import { stepContentVariants as C, stepDescriptionVariants as k, stepIndicatorVariants as g, stepLabelVariants as I, stepVariants as x } from "../../Stepper.variants.js";
|
|
5
5
|
import { getStepAriaLabel as S } from "../../utils/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as m } from "../../../../utils-
|
|
1
|
+
import { t as m } from "../../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { stepConnectorVariants as n } from "../../Stepper.variants.js";
|
|
3
3
|
import { memo as i } from "react";
|
|
4
4
|
import { jsx as p } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as a } from "../../../../utils-
|
|
2
|
-
import { t as x } from "../../../../StepIndicatorContent-
|
|
1
|
+
import { t as a } from "../../../../utils-B-6R7kNE.js";
|
|
2
|
+
import { t as x } from "../../../../StepIndicatorContent-BGDvxLzV.js";
|
|
3
3
|
import { useStepItemLogic as V } from "../../hooks/useStepItemLogic.js";
|
|
4
4
|
import { stepContentVariants as I, stepDescriptionVariants as S, stepIndicatorVariants as k, stepLabelVariants as D, stepVariants as L } from "../../Stepper.variants.js";
|
|
5
5
|
import { getStepAriaLabel as g } from "../../utils/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as a } from "../../dist-B9GE4SXf.js";
|
|
2
|
-
var
|
|
2
|
+
var e = a([
|
|
3
3
|
"w-10",
|
|
4
4
|
"h-5",
|
|
5
5
|
"flex",
|
|
@@ -13,8 +13,6 @@ var t = a([
|
|
|
13
13
|
"delay-10",
|
|
14
14
|
"duration-250",
|
|
15
15
|
"cursor-pointer",
|
|
16
|
-
"bg-aurora-500",
|
|
17
|
-
"kubefirst:bg-kubefirst-primary",
|
|
18
16
|
"[&+label,&+span]:cursor-pointer",
|
|
19
17
|
"disabled:[&+label,&+span,&]:cursor-not-allowed",
|
|
20
18
|
"disabled:bg-gray-200",
|
|
@@ -24,7 +22,17 @@ var t = a([
|
|
|
24
22
|
"dark:disabled:data-[state=unchecked]:[&>span]:bg-metal-600",
|
|
25
23
|
"dark:disabled:data-[state=unchecked]:bg-metal-700",
|
|
26
24
|
"dark:disabled:[&>span]:bg-metal-600"
|
|
27
|
-
]
|
|
25
|
+
], {
|
|
26
|
+
variants: { variant: {
|
|
27
|
+
default: ["bg-aurora-500", "kubefirst:bg-kubefirst-primary"],
|
|
28
|
+
black: [
|
|
29
|
+
"bg-black",
|
|
30
|
+
"dark:bg-aurora-500",
|
|
31
|
+
"kubefirst:bg-kubefirst-primary"
|
|
32
|
+
]
|
|
33
|
+
} },
|
|
34
|
+
defaultVariants: { variant: "default" }
|
|
35
|
+
}), d = a([
|
|
28
36
|
"block",
|
|
29
37
|
"w-4",
|
|
30
38
|
"h-4",
|
|
@@ -34,12 +42,12 @@ var t = a([
|
|
|
34
42
|
"rounded-full",
|
|
35
43
|
"shadow-md",
|
|
36
44
|
"transition-all",
|
|
37
|
-
"translate-x-
|
|
38
|
-
"data-[state=checked]:translate-x-5",
|
|
45
|
+
"translate-x-0.5",
|
|
46
|
+
"data-[state=checked]:translate-x-5.5",
|
|
39
47
|
"delay-10",
|
|
40
48
|
"duration-300"
|
|
41
49
|
]);
|
|
42
50
|
export {
|
|
43
|
-
|
|
51
|
+
e as switchVariants,
|
|
44
52
|
d as thumbVariants
|
|
45
53
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t } from "../../../utils-
|
|
1
|
+
import { t } from "../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { bodyVariants as a } from "../Table.variants.js";
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
4
|
var f = ({ children: o, className: r, ...m }) => /* @__PURE__ */ s("tbody", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../utils-
|
|
1
|
+
import { t as o } from "../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { headVariants as t } from "../Table.variants.js";
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
4
|
var d = ({ children: a, className: r, ...m }) => /* @__PURE__ */ e("thead", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as i } from "../../../utils-
|
|
1
|
+
import { t as i } from "../../../utils-B-6R7kNE.js";
|
|
2
2
|
import { rowVariants as p } from "../Table.variants.js";
|
|
3
3
|
import { jsx as c } from "react/jsx-runtime";
|
|
4
4
|
var n = ({ children: r, className: o, width: t, isSelected: m, onSelect: a, ...s }) => /* @__PURE__ */ c("tr", {
|