@konstructio/ui 0.1.2-alpha.84 → 0.1.2-alpha.85
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-Cx9wU01w.js → AdditionalOptions-UEegkZqG.js} +2 -2
- package/dist/{AlertDialogTrigger-C-NMEoDd.js → AlertDialogTrigger-C2GlLI2j.js} +4 -4
- package/dist/{Breadcrumb-C95aOsYk.js → Breadcrumb-BYO5PNVF.js} +3 -3
- package/dist/{Checkbox-Cn0UWlk8.js → Checkbox-BvRmHWxk.js} +8 -8
- package/dist/{CommandInput-BKv-EZ7T.js → CommandInput-C45ylYPm.js} +4 -4
- package/dist/{Counter-DtQu_T-D.js → Counter-Qqu8PU85.js} +4 -4
- package/dist/{DayPicker-CrrmX-H8.js → DayPicker-BQlzb5kH.js} +1 -1
- package/dist/{DropdownButton-B2XkEqPt.js → DropdownButton-CWwjA3zI.js} +3 -3
- package/dist/{FlagSelectorList-C17nmEBM.js → FlagSelectorList-NMlHNF7N.js} +122 -118
- package/dist/HamburgerTrigger-BzCfBWzH.js +85 -0
- package/dist/{ImageUpload-BzXjGZ2w.js → ImageUpload-DebL0hwF.js} +2 -2
- package/dist/{Input-GBMxM3Z7.js → Input-BZG7N8m1.js} +3 -3
- package/dist/{Loading-DKqxR-oV.js → Loading-DNlO4qxs.js} +2 -2
- package/dist/{Modal-DbTe8PVX.js → Modal-IyDr5vIx.js} +5 -5
- package/dist/{Spinner-CyuXAaC8.js → Spinner-BB1muhcJ.js} +2 -2
- package/dist/{StepIndicatorContent-D5z1Ziqg.js → StepIndicatorContent-87ASgJsX.js} +2 -2
- package/dist/{Switch-DjbC0A8y.js → Switch-CT2R9JgM.js} +5 -5
- package/dist/{Toast-D7GhS4fm.js → Toast-CWyLcmNX.js} +10 -10
- package/dist/{Wrapper-DEJ-hyar.js → Wrapper-DimnwFZe.js} +3 -3
- package/dist/{Wrapper-CjUokv72.js → Wrapper-F9NmImqw.js} +4 -4
- package/dist/{Wrapper-BYC8shQP.js → Wrapper-TuoyTFqo.js} +3 -3
- package/dist/{chevron-down-DgssmYWu.js → chevron-down-T3Rx8Nc7.js} +1 -1
- package/dist/{chevron-left-DRJXef9g.js → chevron-left-CeJrJR0U.js} +1 -1
- package/dist/{chevron-right-BooB_b7g.js → chevron-right-BFOnP164.js} +1 -1
- package/dist/{chevron-up-DuS9MUNr.js → chevron-up-BKlxfVX9.js} +1 -1
- package/dist/{chunk-D1xtDmiO.js → chunk-cI0lbGMq.js} +7 -7
- package/dist/components/Alert/Alert.js +3 -3
- package/dist/components/Alert/Alert.variants.js +1 -1
- 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/Autocomplete.variants.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/components/List/List.variants.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.variants.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.variants.js +1 -1
- package/dist/components/Command/Command.js +3 -3
- package/dist/components/Command/Command.variants.js +1 -1
- 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/Counter/Counter.variants.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.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 +3 -3
- 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 +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- 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/DateTimeInputs.variants.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +4 -4
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Drawer/Drawer.js +4 -4
- package/dist/components/Drawer/Drawer.variants.js +1 -1
- 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/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +3 -3
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +2 -2
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +3 -3
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +2 -2
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.variants.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Loading/Loading.variants.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +2 -2
- package/dist/components/Modal/components/Footer/Footer.js +2 -2
- package/dist/components/Modal/components/Header/Header.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.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 +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.variants.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/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +2 -2
- 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 +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/Radio.variants.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCard/RadioCard.variants.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Range/Range.variants.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/Select.variants.js +1 -1
- 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 +5 -5
- package/dist/components/Select/components/List/List.variants.js +1 -1
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/ListItem/ListItem.variants.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/Sidebar.js +15 -12
- package/dist/components/Sidebar/Sidebar.variants.js +12 -8
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +4 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +22 -0
- package/dist/components/Sidebar/components/Label/Label.js +20 -0
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +5 -5
- package/dist/components/Sidebar/components/Navigation/Navigation.js +29 -16
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +15 -11
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -14
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -4
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +7 -6
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +99 -33
- package/dist/components/Sidebar/components/index.js +18 -14
- package/dist/components/Sidebar/contexts/SidebarContext.js +11 -0
- package/dist/components/Sidebar/contexts/index.js +5 -0
- package/dist/components/Sidebar/hooks/index.js +6 -0
- package/dist/components/Sidebar/hooks/useSidebarMode.js +10 -0
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/Slider.variants.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.variants.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.variants.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/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.variants.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/Tabs.variants.js +1 -1
- 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 +2 -2
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/List/List.variants.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/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.variants.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +1 -1
- 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 +2 -2
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +2 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +3 -3
- 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 +2 -2
- 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 +80 -78
- package/dist/{components-DNFycJGm.js → components-C_LekSz_.js} +3 -3
- package/dist/{constants-D96yCePL.js → constants-CLe3ZLC_.js} +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{debounce-CzFlgg9h.js → debounce-B55BpO1u.js} +2 -2
- package/dist/{dist-DXXHfL7M.js → dist-AZfrfAUz.js} +3 -3
- package/dist/{dist-COY3FRYC.js → dist-B5WmTRxj.js} +7 -7
- package/dist/{dist-DtEbXv47.js → dist-Bcn6lMQe.js} +1 -1
- package/dist/{dist-CSP6X06u.js → dist-BeLV4B_x.js} +7 -7
- package/dist/{dist-BL8l9uRy.js → dist-BfrkYZKI.js} +6 -6
- package/dist/{dist-B5SlrgYz.js → dist-Br5jSLr2.js} +7 -7
- package/dist/{dist-DXJSck4j.js → dist-CMPkuWNy.js} +1 -1
- package/dist/{dist-DNSmoWJp.js → dist-CPK4FXV9.js} +4 -4
- package/dist/{dist-DZcOdXgW.js → dist-CQfmhKEs.js} +1 -1
- package/dist/{dist-DZNdbzbm.js → dist-CZChgJLY.js} +2 -2
- package/dist/{dist-DpqiA4Yn.js → dist-DF7Yi2EK.js} +2 -2
- package/dist/{dist-uVUx9i0a.js → dist-D_9sBzad.js} +1 -1
- package/dist/{dist-CBnErrr1.js → dist-EV-1XXQr.js} +1 -1
- package/dist/{dist-DeVdyMHW2.js → dist-X40eHC8j2.js} +1 -1
- package/dist/{ellipsis-vertical-My0S9QY5.js → ellipsis-vertical-Cm9A6Zu8.js} +1 -1
- package/dist/hooks/index.js +4 -2
- package/dist/hooks/useMediaQuery.js +17 -0
- package/dist/index.js +139 -135
- package/dist/{isObject--aYwGuhx.js → isObject-CGNJbB5a.js} +1 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +46 -5
- package/dist/lib/components/Sidebar/Sidebar.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +7 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Label/Label.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +9 -0
- package/dist/lib/components/Sidebar/components/Wrapper/Wrapper.d.ts +2 -2
- package/dist/lib/components/Sidebar/components/index.d.ts +4 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +10 -0
- package/dist/lib/components/Sidebar/contexts/index.d.ts +1 -0
- package/dist/lib/components/Sidebar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Sidebar/hooks/useSidebarMode.d.ts +5 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useMediaQuery.d.ts +1 -0
- package/dist/{libphonenumber-7uXgv7U8.js → libphonenumber-Dy3Kac9j.js} +1 -1
- package/dist/package.json +19 -18
- package/dist/{phone-number.provider-B9BWYAqH.js → phone-number.provider-CdPQAKnl.js} +584 -560
- package/dist/{prop-types-DTnODft1.js → prop-types-CE0Kfmwk.js} +1 -1
- package/dist/{proxy-uLtw-ZML.js → proxy-Cx8v8fok.js} +85 -85
- package/dist/styles.css +1 -1
- package/dist/{table.provider-4OQNqxH3.js → table.provider-BBlJgEJf.js} +3 -3
- package/dist/{theme.provider-BgxXUOMP.js → theme.provider-ps3SkwAo.js} +1 -1
- package/dist/{useBreadcrumb-nYudTOOA.js → useBreadcrumb-mrkCWjS0.js} +292 -292
- package/dist/utils/index.js +1 -1
- package/dist/{utils-DHuiYnx1.js → utils-COaoD3PI.js} +1 -1
- package/dist/{utils-2zv-ysvP.js → utils-Cc9GhtYC.js} +4 -3
- package/dist/{x-a0ouxoIM.js → x-DBIZFfaM.js} +1 -1
- package/dist/{x-BwIi6Wii.js → x-KjMYhcCb.js} +2 -2
- package/package.json +19 -18
- /package/dist/{Combination-DUTBK_qM.js → Combination-DFcElBFt.js} +0 -0
- /package/dist/{clsx-kDhLfUq2.js → clsx-Dzz4NoNN.js} +0 -0
- /package/dist/{createLucideIcon-BVGkzDZC.js → createLucideIcon-CL4htJAF.js} +0 -0
- /package/dist/{dist-DRmqW28Z2.js → dist-BHslNQd82.js} +0 -0
- /package/dist/{dist-ByyYBtbL.js → dist-C4El7dZ5.js} +0 -0
- /package/dist/{dist-DstQl8xY.js → dist-Cf-pDuuw.js} +0 -0
- /package/dist/{dist-C8r5DW7s.js → dist-D6dB-_Oy.js} +0 -0
- /package/dist/{dist-BL-H4bEw2.js → dist-DxDE5irg2.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as i } from "./dist-
|
|
2
|
-
import { t as p } from "./utils-
|
|
1
|
+
import { t as i } from "./dist-CMPkuWNy.js";
|
|
2
|
+
import { t as p } from "./utils-COaoD3PI.js";
|
|
3
3
|
import { useSelectContext as s } from "./components/Select/contexts/select.hook.js";
|
|
4
4
|
import { listGroupLabelVariants as m } from "./components/Select/components/List/List.variants.js";
|
|
5
5
|
import { additionalOptionSlotClassName as l } from "./components/Select/components/AdditionalOptions/AdditionalOptions.variants.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as u } from "./dist-
|
|
2
|
-
import { t as O } from "./utils-
|
|
3
|
-
import { a as w, s as I } from "./dist-
|
|
4
|
-
import { c as x, d as M, f as A, l as $, n as F, o as L, r as B, s as G, t as f, u as j } from "./dist-
|
|
1
|
+
import { n as u } from "./dist-C4El7dZ5.js";
|
|
2
|
+
import { t as O } from "./utils-COaoD3PI.js";
|
|
3
|
+
import { a as w, s as I } from "./dist-D_9sBzad.js";
|
|
4
|
+
import { c as x, d as M, f as A, l as $, n as F, o as L, r as B, s as G, t as f, u as j } from "./dist-B5WmTRxj.js";
|
|
5
5
|
import { Button as W } from "./components/Button/Button.js";
|
|
6
6
|
import * as i from "react";
|
|
7
7
|
import { forwardRef as Y } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as g } from "./chunk-
|
|
2
|
-
import { t as v } from "./prop-types-
|
|
3
|
-
import { t as u } from "./utils-
|
|
1
|
+
import { o as g } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { t as v } from "./prop-types-CE0Kfmwk.js";
|
|
3
|
+
import { t as u } from "./utils-COaoD3PI.js";
|
|
4
4
|
import { breadcrumbVariants as b, breadcrumbWrapperVariants as y } from "./components/Breadcrumb/Breadcrumb.variants.js";
|
|
5
5
|
import { Item as O } from "./components/Breadcrumb/components/Item/Item.js";
|
|
6
6
|
import d, { Fragment as j, forwardRef as w, useId as _ } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as G } from "./chunk-
|
|
2
|
-
import { t as U } from "./prop-types-
|
|
3
|
-
import { n as B } from "./dist-
|
|
4
|
-
import { t as w } from "./utils-
|
|
5
|
-
import { a as S, r as V, s as X, t as I } from "./dist-
|
|
6
|
-
import { t as J } from "./dist-
|
|
7
|
-
import { t as Q } from "./dist-
|
|
8
|
-
import { t as Y } from "./dist-
|
|
1
|
+
import { o as G } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { t as U } from "./prop-types-CE0Kfmwk.js";
|
|
3
|
+
import { n as B } from "./dist-C4El7dZ5.js";
|
|
4
|
+
import { t as w } from "./utils-COaoD3PI.js";
|
|
5
|
+
import { a as S, r as V, s as X, t as I } from "./dist-D_9sBzad.js";
|
|
6
|
+
import { t as J } from "./dist-DF7Yi2EK.js";
|
|
7
|
+
import { t as Q } from "./dist-DxDE5irg2.js";
|
|
8
|
+
import { t as Y } from "./dist-X40eHC8j2.js";
|
|
9
9
|
import { useToggle as Z } from "./hooks/useToggle.js";
|
|
10
10
|
import { checkboxVariants as ee, labelVariants as te } from "./components/Checkbox/Checkbox.variants.js";
|
|
11
11
|
import * as p from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as v } from "./chunk-
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
3
|
-
import { t as c } from "./utils-
|
|
1
|
+
import { o as v } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { t as y } from "./prop-types-CE0Kfmwk.js";
|
|
3
|
+
import { t as c } from "./utils-COaoD3PI.js";
|
|
4
4
|
import { inputVariants as g, searchInconInputVariants as h } from "./components/Command/Command.variants.js";
|
|
5
|
-
import { t as m } from "./dist-
|
|
5
|
+
import { t as m } from "./dist-CPK4FXV9.js";
|
|
6
6
|
import p, { forwardRef as u } from "react";
|
|
7
7
|
import { jsx as f, jsxs as b } from "react/jsx-runtime";
|
|
8
8
|
var a = /* @__PURE__ */ v(y());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as W } from "./chunk-
|
|
2
|
-
import { t as M } from "./prop-types-
|
|
3
|
-
import { t as j } from "./dist-
|
|
4
|
-
import { t as f } from "./utils-
|
|
1
|
+
import { o as W } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { t as M } from "./prop-types-CE0Kfmwk.js";
|
|
3
|
+
import { t as j } from "./dist-EV-1XXQr.js";
|
|
4
|
+
import { t as f } from "./utils-COaoD3PI.js";
|
|
5
5
|
import { Typography as T } from "./components/Typography/Typography.js";
|
|
6
6
|
import { buttonVariants as N, counterVariants as V, labelVariants as C } from "./components/Counter/Counter.variants.js";
|
|
7
7
|
import m, { forwardRef as g, useCallback as k, useId as R } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Qe } from "./chunk-
|
|
1
|
+
import { r as Qe } from "./chunk-cI0lbGMq.js";
|
|
2
2
|
import d, { createContext as Nn, useCallback as $, useContext as Cn, useEffect as Yn, useLayoutEffect as Tn, useMemo as Se, useRef as Ne, useState as Ze } from "react";
|
|
3
3
|
function xn(e, t, n = "long") {
|
|
4
4
|
return new Intl.DateTimeFormat("en-US", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as x } from "./chunk-
|
|
2
|
-
import { t as C } from "./prop-types-
|
|
3
|
-
import { t as l } from "./utils-
|
|
1
|
+
import { o as x } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { t as C } from "./prop-types-CE0Kfmwk.js";
|
|
3
|
+
import { t as l } from "./utils-COaoD3PI.js";
|
|
4
4
|
import { Button as E } from "./components/Button/Button.js";
|
|
5
5
|
import v, { forwardRef as _, useCallback as h, useEffect as z, useRef as w, useState as L } from "react";
|
|
6
6
|
import { jsx as d, jsxs as b } from "react/jsx-runtime";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { usePhoneNumberContext as
|
|
4
|
-
import { TruncateText as
|
|
5
|
-
import * as
|
|
6
|
-
import { useEffect as
|
|
7
|
-
import { flushSync as
|
|
8
|
-
import { jsx as m, jsxs as
|
|
9
|
-
function
|
|
1
|
+
import { t as M } from "./utils-COaoD3PI.js";
|
|
2
|
+
import { Typography as I } from "./components/Typography/Typography.js";
|
|
3
|
+
import { usePhoneNumberContext as N } from "./components/PhoneNumberInput/contexts/phone-number.hook.js";
|
|
4
|
+
import { TruncateText as k } from "./components/PhoneNumberInput/components/TruncateText/TruncateText.js";
|
|
5
|
+
import * as w from "react";
|
|
6
|
+
import { useEffect as D, useMemo as L, useRef as W } from "react";
|
|
7
|
+
import { flushSync as V } from "react-dom";
|
|
8
|
+
import { jsx as m, jsxs as j } from "react/jsx-runtime";
|
|
9
|
+
function x(r, t, e) {
|
|
10
10
|
let s = e.initialDeps ?? [], n, l = !0;
|
|
11
11
|
function i() {
|
|
12
|
-
var o, h,
|
|
13
|
-
let
|
|
14
|
-
e.key && ((o = e.debug) != null && o.call(e)) && (
|
|
15
|
-
const
|
|
16
|
-
if (!(
|
|
17
|
-
s =
|
|
18
|
-
let
|
|
19
|
-
if (e.key && ((h = e.debug) != null && h.call(e)) && (
|
|
20
|
-
const
|
|
21
|
-
for (
|
|
22
|
-
return
|
|
12
|
+
var o, h, u;
|
|
13
|
+
let c;
|
|
14
|
+
e.key && ((o = e.debug) != null && o.call(e)) && (c = Date.now());
|
|
15
|
+
const d = r();
|
|
16
|
+
if (!(d.length !== s.length || d.some((f, v) => s[v] !== f))) return n;
|
|
17
|
+
s = d;
|
|
18
|
+
let a;
|
|
19
|
+
if (e.key && ((h = e.debug) != null && h.call(e)) && (a = Date.now()), n = t(...d), e.key && ((u = e.debug) != null && u.call(e))) {
|
|
20
|
+
const f = Math.round((Date.now() - c) * 100) / 100, v = Math.round((Date.now() - a) * 100) / 100, g = v / 16, S = (p, E) => {
|
|
21
|
+
for (p = String(p); p.length < E; ) p = " " + p;
|
|
22
|
+
return p;
|
|
23
23
|
};
|
|
24
|
-
console.info(`%c⏱ ${
|
|
24
|
+
console.info(`%c⏱ ${S(v, 5)} /${S(f, 5)} ms`, `
|
|
25
25
|
font-size: .6rem;
|
|
26
26
|
font-weight: bold;
|
|
27
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
27
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, e?.key);
|
|
28
28
|
}
|
|
29
29
|
return e?.onChange && !(l && e.skipInitialOnChange) && e.onChange(n), l = !1, n;
|
|
30
30
|
}
|
|
@@ -32,26 +32,26 @@ function b(r, t, e) {
|
|
|
32
32
|
s = o;
|
|
33
33
|
}, i;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function z(r, t) {
|
|
36
36
|
if (r === void 0) throw new Error(`Unexpected undefined${t ? `: ${t}` : ""}`);
|
|
37
37
|
return r;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var P = (r, t) => Math.abs(r - t) < 1.01, B = (r, t, e) => {
|
|
40
40
|
let s;
|
|
41
41
|
return function(...n) {
|
|
42
42
|
r.clearTimeout(s), s = r.setTimeout(() => t.apply(this, n), e);
|
|
43
43
|
};
|
|
44
|
-
},
|
|
44
|
+
}, C = (r) => {
|
|
45
45
|
const { offsetWidth: t, offsetHeight: e } = r;
|
|
46
46
|
return {
|
|
47
47
|
width: t,
|
|
48
48
|
height: e
|
|
49
49
|
};
|
|
50
|
-
},
|
|
50
|
+
}, H = (r) => r, $ = (r) => {
|
|
51
51
|
const t = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
|
|
52
52
|
for (let n = t; n <= e; n++) s.push(n);
|
|
53
53
|
return s;
|
|
54
|
-
},
|
|
54
|
+
}, q = (r, t) => {
|
|
55
55
|
const e = r.scrollElement;
|
|
56
56
|
if (!e) return;
|
|
57
57
|
const s = r.targetWindow;
|
|
@@ -63,60 +63,60 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
63
63
|
height: Math.round(h)
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
if (n(
|
|
66
|
+
if (n(C(e)), !s.ResizeObserver) return () => {
|
|
67
67
|
};
|
|
68
68
|
const l = new s.ResizeObserver((i) => {
|
|
69
69
|
const o = () => {
|
|
70
70
|
const h = i[0];
|
|
71
71
|
if (h?.borderBoxSize) {
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
72
|
+
const u = h.borderBoxSize[0];
|
|
73
|
+
if (u) {
|
|
74
74
|
n({
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
75
|
+
width: u.inlineSize,
|
|
76
|
+
height: u.blockSize
|
|
77
77
|
});
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
n(
|
|
81
|
+
n(C(e));
|
|
82
82
|
};
|
|
83
83
|
r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
|
|
84
84
|
});
|
|
85
85
|
return l.observe(e, { box: "border-box" }), () => {
|
|
86
86
|
l.unobserve(e);
|
|
87
87
|
};
|
|
88
|
-
},
|
|
88
|
+
}, A = { passive: !0 }, F = typeof window > "u" ? !0 : "onscrollend" in window, K = (r, t) => {
|
|
89
89
|
const e = r.scrollElement;
|
|
90
90
|
if (!e) return;
|
|
91
91
|
const s = r.targetWindow;
|
|
92
92
|
if (!s) return;
|
|
93
93
|
let n = 0;
|
|
94
|
-
const l = r.options.useScrollendEvent &&
|
|
95
|
-
} :
|
|
94
|
+
const l = r.options.useScrollendEvent && F ? () => {
|
|
95
|
+
} : B(s, () => {
|
|
96
96
|
t(n, !1);
|
|
97
|
-
}, r.options.isScrollingResetDelay), i = (
|
|
98
|
-
const { horizontal:
|
|
99
|
-
n =
|
|
97
|
+
}, r.options.isScrollingResetDelay), i = (c) => () => {
|
|
98
|
+
const { horizontal: d, isRtl: a } = r.options;
|
|
99
|
+
n = d ? e.scrollLeft * (a && -1 || 1) : e.scrollTop, l(), t(n, c);
|
|
100
100
|
}, o = i(!0), h = i(!1);
|
|
101
|
-
e.addEventListener("scroll", o,
|
|
102
|
-
const
|
|
103
|
-
return
|
|
104
|
-
e.removeEventListener("scroll", o),
|
|
101
|
+
e.addEventListener("scroll", o, A);
|
|
102
|
+
const u = r.options.useScrollendEvent && F;
|
|
103
|
+
return u && e.addEventListener("scrollend", h, A), () => {
|
|
104
|
+
e.removeEventListener("scroll", o), u && e.removeEventListener("scrollend", h);
|
|
105
105
|
};
|
|
106
|
-
},
|
|
106
|
+
}, U = (r, t, e) => {
|
|
107
107
|
if (t?.borderBoxSize) {
|
|
108
108
|
const s = t.borderBoxSize[0];
|
|
109
109
|
if (s) return Math.round(s[e.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
110
110
|
}
|
|
111
111
|
return r[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
112
|
-
},
|
|
112
|
+
}, G = (r, { adjustments: t = 0, behavior: e }, s) => {
|
|
113
113
|
var n, l;
|
|
114
114
|
const i = r + t;
|
|
115
115
|
(l = (n = s.scrollElement) == null ? void 0 : n.scrollTo) == null || l.call(n, {
|
|
116
116
|
[s.options.horizontal ? "left" : "top"]: i,
|
|
117
117
|
behavior: e
|
|
118
118
|
});
|
|
119
|
-
},
|
|
119
|
+
}, J = class {
|
|
120
120
|
constructor(r) {
|
|
121
121
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
122
122
|
var t, e, s;
|
|
@@ -162,11 +162,11 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
162
162
|
scrollPaddingStart: 0,
|
|
163
163
|
scrollPaddingEnd: 0,
|
|
164
164
|
horizontal: !1,
|
|
165
|
-
getItemKey:
|
|
166
|
-
rangeExtractor:
|
|
165
|
+
getItemKey: H,
|
|
166
|
+
rangeExtractor: $,
|
|
167
167
|
onChange: () => {
|
|
168
168
|
},
|
|
169
|
-
measureElement:
|
|
169
|
+
measureElement: U,
|
|
170
170
|
initialRect: {
|
|
171
171
|
width: 0,
|
|
172
172
|
height: 0
|
|
@@ -181,12 +181,13 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
181
181
|
isRtl: !1,
|
|
182
182
|
useScrollendEvent: !1,
|
|
183
183
|
useAnimationFrameWithResizeObserver: !1,
|
|
184
|
+
laneAssignmentMode: "estimate",
|
|
184
185
|
...t
|
|
185
186
|
};
|
|
186
187
|
}, this.notify = (t) => {
|
|
187
188
|
var e, s;
|
|
188
189
|
(s = (e = this.options).onChange) == null || s.call(e, this, t);
|
|
189
|
-
}, this.maybeNotify =
|
|
190
|
+
}, this.maybeNotify = x(() => (this.calculateRange(), [
|
|
190
191
|
this.isScrolling,
|
|
191
192
|
this.range ? this.range.startIndex : null,
|
|
192
193
|
this.range ? this.range.endIndex : null
|
|
@@ -232,21 +233,23 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
232
233
|
if (o == null || i.end > o.end ? n.set(i.lane, i) : i.end < o.end && s.set(i.lane, !0), s.size === this.options.lanes) break;
|
|
233
234
|
}
|
|
234
235
|
return n.size === this.options.lanes ? Array.from(n.values()).sort((l, i) => l.end === i.end ? l.index - i.index : l.end - i.end)[0] : void 0;
|
|
235
|
-
}, this.getMeasurementOptions =
|
|
236
|
+
}, this.getMeasurementOptions = x(() => [
|
|
236
237
|
this.options.count,
|
|
237
238
|
this.options.paddingStart,
|
|
238
239
|
this.options.scrollMargin,
|
|
239
240
|
this.options.getItemKey,
|
|
240
241
|
this.options.enabled,
|
|
241
|
-
this.options.lanes
|
|
242
|
-
|
|
242
|
+
this.options.lanes,
|
|
243
|
+
this.options.laneAssignmentMode
|
|
244
|
+
], (t, e, s, n, l, i, o) => (this.prevLanes !== void 0 && this.prevLanes !== i && (this.lanesChangedFlag = !0), this.prevLanes = i, this.pendingMeasuredCacheIndexes = [], {
|
|
243
245
|
count: t,
|
|
244
246
|
paddingStart: e,
|
|
245
247
|
scrollMargin: s,
|
|
246
248
|
getItemKey: n,
|
|
247
249
|
enabled: l,
|
|
248
|
-
lanes: i
|
|
249
|
-
|
|
250
|
+
lanes: i,
|
|
251
|
+
laneAssignmentMode: o
|
|
252
|
+
}), { key: !1 }), this.getMeasurements = x(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: t, paddingStart: e, scrollMargin: s, getItemKey: n, enabled: l, lanes: i, laneAssignmentMode: o }, h) => {
|
|
250
253
|
if (!l)
|
|
251
254
|
return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
252
255
|
if (this.laneAssignments.size > t)
|
|
@@ -254,44 +257,45 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
254
257
|
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((a) => {
|
|
255
258
|
this.itemSizeCache.set(a.key, a.size);
|
|
256
259
|
}));
|
|
257
|
-
const
|
|
260
|
+
const u = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
258
261
|
this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1);
|
|
259
|
-
const c = this.measurementsCache.slice(0,
|
|
260
|
-
for (let a = 0; a <
|
|
261
|
-
const
|
|
262
|
-
|
|
262
|
+
const c = this.measurementsCache.slice(0, u), d = new Array(i).fill(void 0);
|
|
263
|
+
for (let a = 0; a < u; a++) {
|
|
264
|
+
const f = c[a];
|
|
265
|
+
f && (d[f.lane] = a);
|
|
263
266
|
}
|
|
264
|
-
for (let a =
|
|
265
|
-
const
|
|
266
|
-
let
|
|
267
|
+
for (let a = u; a < t; a++) {
|
|
268
|
+
const f = n(a), v = this.laneAssignments.get(a);
|
|
269
|
+
let g, S;
|
|
270
|
+
const p = o === "estimate" || h.has(f);
|
|
267
271
|
if (v !== void 0 && this.options.lanes > 1) {
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
S =
|
|
272
|
+
g = v;
|
|
273
|
+
const b = d[g], y = b !== void 0 ? c[b] : void 0;
|
|
274
|
+
S = y ? y.end + this.options.gap : e + s;
|
|
271
275
|
} else {
|
|
272
|
-
const
|
|
273
|
-
S =
|
|
276
|
+
const b = this.options.lanes === 1 ? c[a - 1] : this.getFurthestMeasurement(c, a);
|
|
277
|
+
S = b ? b.end + this.options.gap : e + s, g = b ? b.lane : a % this.options.lanes, this.options.lanes > 1 && p && this.laneAssignments.set(a, g);
|
|
274
278
|
}
|
|
275
|
-
const
|
|
279
|
+
const E = h.get(f), O = typeof E == "number" ? E : this.options.estimateSize(a), T = S + O;
|
|
276
280
|
c[a] = {
|
|
277
281
|
index: a,
|
|
278
282
|
start: S,
|
|
279
|
-
size:
|
|
280
|
-
end:
|
|
281
|
-
key:
|
|
282
|
-
lane:
|
|
283
|
-
},
|
|
283
|
+
size: O,
|
|
284
|
+
end: T,
|
|
285
|
+
key: f,
|
|
286
|
+
lane: g
|
|
287
|
+
}, d[g] = a;
|
|
284
288
|
}
|
|
285
289
|
return this.measurementsCache = c, c;
|
|
286
290
|
}, {
|
|
287
291
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
288
292
|
debug: () => this.options.debug
|
|
289
|
-
}), this.calculateRange =
|
|
293
|
+
}), this.calculateRange = x(() => [
|
|
290
294
|
this.getMeasurements(),
|
|
291
295
|
this.getSize(),
|
|
292
296
|
this.getScrollOffset(),
|
|
293
297
|
this.options.lanes
|
|
294
|
-
], (t, e, s, n) => this.range = t.length > 0 && e > 0 ?
|
|
298
|
+
], (t, e, s, n) => this.range = t.length > 0 && e > 0 ? Q({
|
|
295
299
|
measurements: t,
|
|
296
300
|
outerSize: e,
|
|
297
301
|
scrollOffset: s,
|
|
@@ -299,7 +303,7 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
299
303
|
}) : null, {
|
|
300
304
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
301
305
|
debug: () => this.options.debug
|
|
302
|
-
}), this.getVirtualIndexes =
|
|
306
|
+
}), this.getVirtualIndexes = x(() => {
|
|
303
307
|
let t = null, e = null;
|
|
304
308
|
const s = this.calculateRange();
|
|
305
309
|
return s && (t = s.startIndex, e = s.endIndex), this.maybeNotify.updateDeps([
|
|
@@ -351,7 +355,7 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
351
355
|
adjustments: this.scrollAdjustments += l,
|
|
352
356
|
behavior: void 0
|
|
353
357
|
})), this.pendingMeasuredCacheIndexes.push(n.index), this.itemSizeCache = new Map(this.itemSizeCache.set(n.key, e)), this.notify(!1));
|
|
354
|
-
}, this.getVirtualItems =
|
|
358
|
+
}, this.getVirtualItems = x(() => [this.getVirtualIndexes(), this.getMeasurements()], (t, e) => {
|
|
355
359
|
const s = [];
|
|
356
360
|
for (let n = 0, l = t.length; n < l; n++) {
|
|
357
361
|
const i = e[t[n]];
|
|
@@ -364,7 +368,7 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
364
368
|
}), this.getVirtualItemForOffset = (t) => {
|
|
365
369
|
const e = this.getMeasurements();
|
|
366
370
|
if (e.length !== 0)
|
|
367
|
-
return
|
|
371
|
+
return z(e[_(0, e.length - 1, (s) => z(e[s]).start, t)]);
|
|
368
372
|
}, this.getMaxScrollOffset = () => {
|
|
369
373
|
if (!this.scrollElement) return 0;
|
|
370
374
|
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
@@ -389,12 +393,12 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
389
393
|
const i = e === "end" ? l.end + this.options.scrollPaddingEnd : l.start - this.options.scrollPaddingStart;
|
|
390
394
|
return [this.getOffsetForAlignment(i, e, l.size), e];
|
|
391
395
|
}, this.scrollToOffset = (t, { align: e = "start", behavior: s = "auto" } = {}) => {
|
|
392
|
-
const n = this.getOffsetForAlignment(t, e);
|
|
396
|
+
const n = this.getOffsetForAlignment(t, e), l = this.now();
|
|
393
397
|
this.scrollState = {
|
|
394
398
|
index: null,
|
|
395
399
|
align: e,
|
|
396
400
|
behavior: s,
|
|
397
|
-
startedAt:
|
|
401
|
+
startedAt: l,
|
|
398
402
|
lastTargetOffset: n,
|
|
399
403
|
stableFrames: 0
|
|
400
404
|
}, this._scrollToOffset(n, {
|
|
@@ -418,12 +422,12 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
418
422
|
behavior: s
|
|
419
423
|
}), this.scheduleScrollReconcile();
|
|
420
424
|
}, this.scrollBy = (t, { behavior: e = "auto" } = {}) => {
|
|
421
|
-
const s = this.getScrollOffset() + t;
|
|
425
|
+
const s = this.getScrollOffset() + t, n = this.now();
|
|
422
426
|
this.scrollState = {
|
|
423
427
|
index: null,
|
|
424
428
|
align: "start",
|
|
425
429
|
behavior: e,
|
|
426
|
-
startedAt:
|
|
430
|
+
startedAt: n,
|
|
427
431
|
lastTargetOffset: s,
|
|
428
432
|
stableFrames: 0
|
|
429
433
|
}, this._scrollToOffset(s, {
|
|
@@ -471,7 +475,7 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
471
475
|
return;
|
|
472
476
|
}
|
|
473
477
|
const r = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, t = r ? r[0] : this.scrollState.lastTargetOffset, e = 1, s = t !== this.scrollState.lastTargetOffset;
|
|
474
|
-
if (!s &&
|
|
478
|
+
if (!s && P(t, this.getScrollOffset())) {
|
|
475
479
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= e) {
|
|
476
480
|
this.scrollState = null;
|
|
477
481
|
return;
|
|
@@ -483,7 +487,7 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
483
487
|
}));
|
|
484
488
|
this.scheduleScrollReconcile();
|
|
485
489
|
}
|
|
486
|
-
},
|
|
490
|
+
}, _ = (r, t, e, s) => {
|
|
487
491
|
for (; r <= t; ) {
|
|
488
492
|
const n = (r + t) / 2 | 0, l = e(n);
|
|
489
493
|
if (l < s) r = n + 1;
|
|
@@ -492,24 +496,24 @@ var V = (r, t) => Math.abs(r - t) < 1.01, j = (r, t, e) => {
|
|
|
492
496
|
}
|
|
493
497
|
return r > 0 ? r - 1 : 0;
|
|
494
498
|
};
|
|
495
|
-
function
|
|
499
|
+
function Q({ measurements: r, outerSize: t, scrollOffset: e, lanes: s }) {
|
|
496
500
|
const n = r.length - 1, l = (h) => r[h].start;
|
|
497
501
|
if (r.length <= s) return {
|
|
498
502
|
startIndex: 0,
|
|
499
503
|
endIndex: n
|
|
500
504
|
};
|
|
501
|
-
let i =
|
|
505
|
+
let i = _(0, n, l, e), o = i;
|
|
502
506
|
if (s === 1) for (; o < n && r[o].end < e + t; ) o++;
|
|
503
507
|
else if (s > 1) {
|
|
504
508
|
const h = Array(s).fill(0);
|
|
505
|
-
for (; o < n && h.some((
|
|
506
|
-
const
|
|
507
|
-
h[
|
|
509
|
+
for (; o < n && h.some((c) => c < e + t); ) {
|
|
510
|
+
const c = r[o];
|
|
511
|
+
h[c.lane] = c.end, o++;
|
|
508
512
|
}
|
|
509
|
-
const
|
|
510
|
-
for (; i >= 0 &&
|
|
511
|
-
const
|
|
512
|
-
c
|
|
513
|
+
const u = Array(s).fill(e + t);
|
|
514
|
+
for (; i >= 0 && u.some((c) => c >= e); ) {
|
|
515
|
+
const c = r[i];
|
|
516
|
+
u[c.lane] = c.start, i--;
|
|
513
517
|
}
|
|
514
518
|
i = Math.max(0, i - i % s), o = Math.min(n, o + (s - 1 - o % s));
|
|
515
519
|
}
|
|
@@ -518,33 +522,33 @@ function G({ measurements: r, outerSize: t, scrollOffset: e, lanes: s }) {
|
|
|
518
522
|
endIndex: o
|
|
519
523
|
};
|
|
520
524
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
523
|
-
const e =
|
|
525
|
+
var R = typeof document < "u" ? w.useLayoutEffect : w.useEffect;
|
|
526
|
+
function X({ useFlushSync: r = !0, ...t }) {
|
|
527
|
+
const e = w.useReducer(() => ({}), {})[1], s = {
|
|
524
528
|
...t,
|
|
525
529
|
onChange: (l, i) => {
|
|
526
530
|
var o;
|
|
527
|
-
r && i ?
|
|
531
|
+
r && i ? V(e) : e(), (o = t.onChange) == null || o.call(t, l, i);
|
|
528
532
|
}
|
|
529
|
-
}, [n] =
|
|
530
|
-
return n.setOptions(s),
|
|
533
|
+
}, [n] = w.useState(() => new J(s));
|
|
534
|
+
return n.setOptions(s), R(() => n._didMount(), []), R(() => n._willUpdate()), n;
|
|
531
535
|
}
|
|
532
|
-
function
|
|
533
|
-
return
|
|
534
|
-
observeElementRect:
|
|
535
|
-
observeElementOffset:
|
|
536
|
-
scrollToFn:
|
|
536
|
+
function Y(r) {
|
|
537
|
+
return X({
|
|
538
|
+
observeElementRect: q,
|
|
539
|
+
observeElementOffset: K,
|
|
540
|
+
scrollToFn: G,
|
|
537
541
|
...r
|
|
538
542
|
});
|
|
539
543
|
}
|
|
540
|
-
var
|
|
541
|
-
const e =
|
|
544
|
+
var re = ({ showFlagOnSearch: r, showNameOnSearch: t }) => {
|
|
545
|
+
const e = W(null), { termOfSearch: s, countries: n, handleSelectCountry: l } = N(), i = L(() => n.filter((h) => h.name.toLocaleLowerCase().includes(s.toLowerCase())), [s]), o = Y({
|
|
542
546
|
count: i.length,
|
|
543
547
|
overscan: 5,
|
|
544
548
|
getScrollElement: () => e.current,
|
|
545
549
|
estimateSize: () => 40
|
|
546
550
|
});
|
|
547
|
-
return
|
|
551
|
+
return D(() => {
|
|
548
552
|
i.length > 0 && o.scrollToIndex(0);
|
|
549
553
|
}, [s, o]), i.length === 0 ? /* @__PURE__ */ m("div", {
|
|
550
554
|
className: "overflow-y-auto max-h-60 snap-y snap-mandatory",
|
|
@@ -552,7 +556,7 @@ var ie = ({ showFlagOnSearch: r, showNameOnSearch: t }) => {
|
|
|
552
556
|
className: "relative",
|
|
553
557
|
children: /* @__PURE__ */ m("li", {
|
|
554
558
|
className: "w-full flex items-center h-10 select-none px-6",
|
|
555
|
-
children: /* @__PURE__ */ m(
|
|
559
|
+
children: /* @__PURE__ */ m(I, {
|
|
556
560
|
variant: "body2",
|
|
557
561
|
component: "span",
|
|
558
562
|
className: "flex gap-2 items-center text-left",
|
|
@@ -567,23 +571,23 @@ var ie = ({ showFlagOnSearch: r, showNameOnSearch: t }) => {
|
|
|
567
571
|
className: "relative",
|
|
568
572
|
style: { height: o.getTotalSize() },
|
|
569
573
|
children: o.getVirtualItems().map((h) => {
|
|
570
|
-
const
|
|
574
|
+
const u = i[h.index], { flag: c, name: d, prefix: a } = u;
|
|
571
575
|
return /* @__PURE__ */ m("li", {
|
|
572
|
-
className:
|
|
576
|
+
className: M("absolute", "w-full", "snap-start", "snap-always", "scroll-m-0", "flex", "items-center", "h-10"),
|
|
573
577
|
style: {
|
|
574
578
|
top: h.start,
|
|
575
579
|
height: h.size
|
|
576
580
|
},
|
|
577
581
|
children: /* @__PURE__ */ m("button", {
|
|
578
|
-
className:
|
|
579
|
-
onClick: () => l(
|
|
580
|
-
children: /* @__PURE__ */
|
|
582
|
+
className: M("w-full", "h-full", "cursor-pointer", "px-6", "hover:bg-gray-50", "transition-colors", "duration-150", "focus-visible:outline-0", "hover:outline-gray-100", "focus:bg-gray-50", "dark:hover:bg-metal-700"),
|
|
583
|
+
onClick: () => l(u),
|
|
584
|
+
children: /* @__PURE__ */ j(I, {
|
|
581
585
|
variant: "body2",
|
|
582
586
|
component: "span",
|
|
583
587
|
className: "flex gap-2 items-center text-left",
|
|
584
|
-
children: [r && /* @__PURE__ */ m(
|
|
585
|
-
text:
|
|
586
|
-
prefix:
|
|
588
|
+
children: [r && /* @__PURE__ */ m(c, {}), t && /* @__PURE__ */ m(k, {
|
|
589
|
+
text: d,
|
|
590
|
+
prefix: a
|
|
587
591
|
})]
|
|
588
592
|
})
|
|
589
593
|
})
|
|
@@ -593,5 +597,5 @@ var ie = ({ showFlagOnSearch: r, showNameOnSearch: t }) => {
|
|
|
593
597
|
});
|
|
594
598
|
};
|
|
595
599
|
export {
|
|
596
|
-
|
|
600
|
+
re as t
|
|
597
601
|
};
|