@konstructio/ui 0.1.2-alpha.77 → 0.1.2-alpha.79
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 +37 -0
- package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
- package/dist/Breadcrumb-C95aOsYk.js +77 -0
- package/dist/CalendarPanel.css +1 -1
- package/dist/Checkbox-Cn0UWlk8.js +239 -0
- package/dist/Combination-DUTBK_qM.js +486 -0
- package/dist/CommandInput-BKv-EZ7T.js +76 -0
- package/dist/Counter-DtQu_T-D.js +191 -0
- package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
- package/dist/DropdownButton-B2XkEqPt.js +92 -0
- package/dist/FlagSelectorList-C17nmEBM.js +597 -0
- package/dist/ImageUpload-BzXjGZ2w.js +181 -0
- package/dist/Input-GBMxM3Z7.js +188 -0
- package/dist/Loading-DKqxR-oV.js +16 -0
- package/dist/Modal-DbTe8PVX.js +76 -0
- package/dist/Spinner-CyuXAaC8.js +41 -0
- package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
- package/dist/Switch-DjbC0A8y.js +136 -0
- package/dist/Toast-C3XjAvtC.js +478 -0
- package/dist/Wrapper-BWSOaT1y.js +1056 -0
- package/dist/Wrapper-CjUokv72.js +110 -0
- package/dist/Wrapper-DEJ-hyar.js +161 -0
- package/dist/assets/icons/components/Accounts.js +21 -23
- package/dist/assets/icons/components/AddChart.js +18 -20
- package/dist/assets/icons/components/AlertOutline.js +18 -20
- package/dist/assets/icons/components/AppRepo.js +18 -20
- package/dist/assets/icons/components/Apps.js +18 -20
- package/dist/assets/icons/components/Archives.js +18 -20
- package/dist/assets/icons/components/ArrowDown.js +18 -20
- package/dist/assets/icons/components/ArrowLeft.js +18 -20
- package/dist/assets/icons/components/ArrowRight.js +17 -19
- package/dist/assets/icons/components/ArrowUp.js +18 -20
- package/dist/assets/icons/components/BarChart.js +28 -24
- package/dist/assets/icons/components/BookOpen.js +22 -20
- package/dist/assets/icons/components/CalendarMonth.js +18 -20
- package/dist/assets/icons/components/Check.js +18 -20
- package/dist/assets/icons/components/CheckCircleFilled.js +28 -25
- package/dist/assets/icons/components/CheckCircleOutline.js +18 -20
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +18 -20
- package/dist/assets/icons/components/ClockAlert.js +18 -20
- package/dist/assets/icons/components/ClockOutline.js +18 -20
- package/dist/assets/icons/components/Close.js +18 -20
- package/dist/assets/icons/components/Cloud.js +12 -17
- package/dist/assets/icons/components/CloudLockOutline.js +18 -20
- package/dist/assets/icons/components/Clusters.js +28 -24
- package/dist/assets/icons/components/CogOutline.js +18 -20
- package/dist/assets/icons/components/Copy.js +18 -20
- package/dist/assets/icons/components/Cpu.js +25 -23
- package/dist/assets/icons/components/Cube.js +18 -20
- package/dist/assets/icons/components/Datacenter.js +18 -20
- package/dist/assets/icons/components/Delete.js +18 -20
- package/dist/assets/icons/components/DollarSign.js +20 -20
- package/dist/assets/icons/components/Download.js +17 -19
- package/dist/assets/icons/components/Edit.js +18 -20
- package/dist/assets/icons/components/Ellipses.js +18 -20
- package/dist/assets/icons/components/Environments.js +20 -20
- package/dist/assets/icons/components/Error.js +18 -20
- package/dist/assets/icons/components/ErrorOutline.js +18 -20
- package/dist/assets/icons/components/Exclamation.js +21 -20
- package/dist/assets/icons/components/Git.js +15 -17
- package/dist/assets/icons/components/GitOpsCatalog.js +25 -23
- package/dist/assets/icons/components/GridView.js +15 -20
- package/dist/assets/icons/components/Help.js +24 -25
- package/dist/assets/icons/components/HideOutline.js +21 -23
- package/dist/assets/icons/components/Home.js +18 -20
- package/dist/assets/icons/components/Home2.js +21 -20
- package/dist/assets/icons/components/Id.js +17 -19
- package/dist/assets/icons/components/InfoCircle.js +28 -25
- package/dist/assets/icons/components/InformationOutline.js +18 -20
- package/dist/assets/icons/components/InvoiceList.js +18 -20
- package/dist/assets/icons/components/Key.js +18 -20
- package/dist/assets/icons/components/LightBulb.js +27 -23
- package/dist/assets/icons/components/Loader.js +18 -20
- package/dist/assets/icons/components/Network.js +18 -20
- package/dist/assets/icons/components/PagesStack.js +24 -25
- package/dist/assets/icons/components/Pageview.js +18 -20
- package/dist/assets/icons/components/People.js +18 -20
- package/dist/assets/icons/components/PhotoLibrary.js +14 -16
- package/dist/assets/icons/components/Pipeline.js +20 -20
- package/dist/assets/icons/components/Plus.js +18 -20
- package/dist/assets/icons/components/PowerSettings.js +18 -20
- package/dist/assets/icons/components/Preview.js +18 -20
- package/dist/assets/icons/components/ReceiptLong.js +15 -20
- package/dist/assets/icons/components/Refresh.js +18 -20
- package/dist/assets/icons/components/ScatterPlot.js +15 -20
- package/dist/assets/icons/components/Search.js +30 -25
- package/dist/assets/icons/components/Server.js +18 -20
- package/dist/assets/icons/components/Start.js +18 -20
- package/dist/assets/icons/components/TabNew.js +34 -24
- package/dist/assets/icons/components/Teams.js +17 -19
- package/dist/assets/icons/components/Upload.js +18 -20
- package/dist/assets/icons/components/Warning.js +18 -20
- package/dist/assets/icons/components/WarningTriangle.js +18 -20
- package/dist/assets/icons/components/X.js +18 -20
- package/dist/assets/icons/components/index.js +82 -82
- package/dist/assets/icons/index.js +88 -88
- package/dist/chevron-down-DgssmYWu.js +8 -0
- package/dist/chevron-left-DRJXef9g.js +8 -0
- package/dist/chevron-right-BooB_b7g.js +8 -0
- package/dist/chevron-up-DuS9MUNr.js +8 -0
- package/dist/chunk-D1xtDmiO.js +31 -0
- package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
- package/dist/components/Alert/Alert.js +58 -79
- package/dist/components/Alert/Alert.variants.js +86 -46
- package/dist/components/AlertDialog/AlertDialog.js +71 -103
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -7
- package/dist/components/AlertDialog/components/index.js +2 -2
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -25
- package/dist/components/Autocomplete/Autocomplete.js +58 -54
- package/dist/components/Autocomplete/Autocomplete.variants.js +26 -2
- package/dist/components/Autocomplete/components/List/List.js +33 -48
- package/dist/components/Autocomplete/components/List/List.variants.js +33 -5
- package/dist/components/Autocomplete/components/index.js +2 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +32 -79
- package/dist/components/Autocomplete/hooks/useNavigationList.js +47 -65
- package/dist/components/Badge/Badge.js +62 -66
- package/dist/components/Badge/Badge.variants.js +69 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -97
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +14 -4
- package/dist/components/Breadcrumb/components/Item/Item.js +33 -33
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +47 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
- package/dist/components/Button/Button.js +22 -37
- package/dist/components/Button/Button.variants.js +294 -75
- package/dist/components/ButtonGroup/ButtonGroup.js +84 -101
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +29 -14
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +57 -105
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +60 -27
- package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -25
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +16 -28
- package/dist/components/ButtonGroup/components/index.js +6 -6
- package/dist/components/ButtonGroup/hooks/index.js +2 -2
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +49 -64
- package/dist/components/Card/Card.js +22 -34
- package/dist/components/Card/Card.variants.js +26 -13
- package/dist/components/Checkbox/Checkbox.js +2 -343
- package/dist/components/Checkbox/Checkbox.variants.js +50 -13
- package/dist/components/Command/Command.js +29 -46
- package/dist/components/Command/Command.variants.js +46 -3
- package/dist/components/Command/components/Command.js +14 -19
- package/dist/components/Command/components/CommandEmpty.js +9 -10
- package/dist/components/Command/components/CommandGroup.js +10 -18
- package/dist/components/Command/components/CommandInput.js +2 -90
- package/dist/components/Command/components/CommandItem.js +17 -28
- package/dist/components/Command/components/CommandList.js +11 -19
- package/dist/components/Command/components/CommandSeparator.js +11 -19
- package/dist/components/Command/components/CommandShortcut.js +7 -16
- package/dist/components/Command/components/DialogContent.js +20 -35
- package/dist/components/Command/components/DialogOverlay.js +11 -19
- package/dist/components/Command/components/index.js +16 -16
- package/dist/components/Command/contexts/Command.context.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +15 -23
- package/dist/components/Command/contexts/index.js +2 -2
- package/dist/components/Counter/Counter.js +3 -206
- package/dist/components/Counter/Counter.variants.js +53 -19
- package/dist/components/DateRangePicker/DateRangePicker.js +77 -93
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +23 -4
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +75 -81
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +54 -10
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +8 -14
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +35 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +179 -107
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +19 -34
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +78 -61
- package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +121 -144
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +82 -53
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +60 -69
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +31 -5
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +43 -55
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +43 -55
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +144 -176
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -56
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +20 -2
- package/dist/components/DateRangePicker/components/index.js +6 -6
- package/dist/components/DateRangePicker/constants/index.js +2 -2
- package/dist/components/DateRangePicker/constants/presets.js +22 -16
- package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -5
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +114 -187
- package/dist/components/DateRangePicker/contexts/index.js +6 -6
- package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -39
- package/dist/components/DateRangePicker/utils/index.js +20 -20
- package/dist/components/DateRangePicker/utils/presets.js +6 -8
- package/dist/components/DateRangePicker/utils/validation.js +60 -57
- package/dist/components/Datepicker/DatePicker.js +48 -81
- package/dist/components/Datepicker/DatePicker.variants.js +3 -3
- package/dist/components/Divider/Divider.js +6 -17
- package/dist/components/Divider/Divider.variants.js +9 -11
- package/dist/components/Drawer/Drawer.js +73 -109
- package/dist/components/Drawer/Drawer.variants.js +74 -24
- package/dist/components/Drawer/components/Body/Body.js +12 -18
- package/dist/components/Drawer/components/Body/index.js +2 -2
- package/dist/components/Drawer/components/Footer/Footer.js +12 -18
- package/dist/components/Drawer/components/Footer/index.js +2 -2
- package/dist/components/Drawer/components/Header/Header.js +13 -20
- package/dist/components/Drawer/components/Header/index.js +2 -2
- package/dist/components/Drawer/components/index.js +6 -6
- package/dist/components/Drawer/constants/index.js +1 -1
- package/dist/components/Drawer/contexts/Drawer.context.js +3 -3
- package/dist/components/Drawer/contexts/index.js +3 -3
- package/dist/components/Drawer/hooks/index.js +2 -2
- package/dist/components/Drawer/hooks/useDrawer.js +54 -82
- package/dist/components/DropdownButton/DropdownButton.js +2 -118
- package/dist/components/Filter/Filter.js +32 -40
- package/dist/components/Filter/Filter.variants.js +24 -4
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +59 -127
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -84
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +47 -84
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +52 -67
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +29 -39
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +55 -75
- package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -25
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +73 -84
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +48 -83
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +81 -81
- package/dist/components/Filter/components/index.js +6 -6
- package/dist/components/Filter/contexts/filter.context.js +2 -4
- package/dist/components/Filter/contexts/filter.hook.js +5 -6
- package/dist/components/Filter/contexts/filter.provider.js +7 -16
- package/dist/components/Filter/contexts/index.js +4 -4
- package/dist/components/Filter/events/index.js +4 -8
- package/dist/components/Filter/utils/index.js +2 -2435
- package/dist/components/ImageUpload/ImageUpload.js +2 -119
- package/dist/components/ImageUpload/ImageUpload.variants.js +86 -51
- package/dist/components/Input/Input.js +2 -161
- package/dist/components/Input/Input.variants.js +46 -11
- package/dist/components/LineChart/LineChart.js +63 -56
- package/dist/components/Loading/Loading.js +2 -22
- package/dist/components/Loading/Loading.variants.js +9 -2
- package/dist/components/Modal/Modal.js +3 -9
- package/dist/components/Modal/components/Body/Body.js +8 -16
- package/dist/components/Modal/components/Footer/Footer.js +8 -16
- package/dist/components/Modal/components/Header/Header.js +8 -16
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -11
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +29 -2
- package/dist/components/Modal/components/index.js +8 -8
- package/dist/components/Modal/contexts/Modal.context.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +20 -33
- package/dist/components/Modal/contexts/index.js +2 -2
- package/dist/components/Modal/hooks/useModal.js +20 -31
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -26
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +29 -5
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +19 -32
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +21 -11
- package/dist/components/MultiSelectDropdown/components/List/List.js +2 -27
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +23 -3
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -74
- package/dist/components/MultiSelectDropdown/components/index.js +4 -5
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -4
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +94 -122
- package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +18 -31
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -18
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +37 -14
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -28
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -670
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -20
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +48 -52
- package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -612
- package/dist/components/PhoneNumberInput/components/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -6
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6092
- package/dist/components/PhoneNumberInput/utils/index.js +7 -8
- package/dist/components/PieChart/PieChart.js +49 -85
- package/dist/components/ProgressBar/ProgressBar.js +29 -47
- package/dist/components/ProgressBar/ProgressBar.variants.js +24 -14
- package/dist/components/Radio/Radio.js +50 -70
- package/dist/components/Radio/Radio.variants.js +76 -30
- package/dist/components/RadioCard/RadioCard.js +19 -32
- package/dist/components/RadioCard/RadioCard.variants.js +7 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.js +25 -42
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
- package/dist/components/RadioGroup/RadioGroup.js +26 -48
- package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
- package/dist/components/Range/Range.js +49 -83
- package/dist/components/Range/Range.variants.js +46 -25
- package/dist/components/Select/Select.js +36 -56
- package/dist/components/Select/Select.variants.js +59 -5
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -10
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -3
- package/dist/components/Select/components/EmptyList.js +3 -8
- package/dist/components/Select/components/List/List.js +113 -88
- package/dist/components/Select/components/List/List.variants.js +42 -2
- package/dist/components/Select/components/ListItem/ListItem.js +51 -49
- package/dist/components/Select/components/ListItem/ListItem.variants.js +21 -3
- package/dist/components/Select/components/Wrapper.js +2 -125
- package/dist/components/Select/components/index.js +8 -8
- package/dist/components/Select/constants/index.js +4 -4
- package/dist/components/Select/constants/list.js +2 -2
- package/dist/components/Select/constants/pagination.js +2 -2
- package/dist/components/Select/contexts/index.js +4 -4
- package/dist/components/Select/contexts/select.context.js +2 -2
- package/dist/components/Select/contexts/select.hook.js +6 -7
- package/dist/components/Select/contexts/select.provider.js +39 -42
- package/dist/components/Select/hooks/useNavigationList.js +34 -49
- package/dist/components/Select/hooks/useSelect.js +54 -100
- package/dist/components/Sidebar/Sidebar.js +22 -26
- package/dist/components/Sidebar/Sidebar.variants.js +29 -3
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -18
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -2
- package/dist/components/Sidebar/components/Logo/Logo.js +9 -18
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.js +17 -26
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -33
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +14 -25
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +28 -8
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +6 -17
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -21
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +12 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +27 -34
- package/dist/components/Sidebar/components/index.js +14 -14
- package/dist/components/Slider/Slider.js +38 -70
- package/dist/components/Slider/Slider.variants.js +39 -26
- package/dist/components/Spinner/Spinner.js +2 -56
- package/dist/components/Spinner/Spinner.variants.js +36 -24
- package/dist/components/Stepper/Stepper.js +45 -56
- package/dist/components/Stepper/Stepper.variants.js +174 -77
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +120 -151
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +15 -24
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -40
- package/dist/components/Stepper/components/StepItem/StepItem.js +6 -15
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +70 -94
- package/dist/components/Stepper/constants/index.js +1 -1
- package/dist/components/Stepper/hooks/index.js +2 -2
- package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -15
- package/dist/components/Stepper/utils/index.js +4 -5
- package/dist/components/Switch/Switch.js +2 -185
- package/dist/components/Switch/Switch.variants.js +41 -2
- package/dist/components/Table/Table.js +18 -29
- package/dist/components/Table/Table.variants.js +29 -12
- package/dist/components/Table/components/Body.js +9 -20
- package/dist/components/Table/components/Filter.js +13 -21
- package/dist/components/Table/components/Head.js +9 -20
- package/dist/components/Table/components/Row.js +14 -28
- package/dist/components/Table/components/index.js +6 -6
- package/dist/components/Tabs/Tabs.js +26 -34
- package/dist/components/Tabs/Tabs.variants.js +54 -42
- package/dist/components/Tabs/components/Content.js +12 -21
- package/dist/components/Tabs/components/List.js +17 -28
- package/dist/components/Tabs/components/Trigger.js +19 -25
- package/dist/components/Tabs/components/index.js +4 -4
- package/dist/components/Tag/Tag.js +26 -33
- package/dist/components/Tag/Tag.variants.js +31 -25
- package/dist/components/TagSelect/TagSelect.js +13 -18
- package/dist/components/TagSelect/TagSelect.variants.js +26 -5
- package/dist/components/TagSelect/components/Item/Item.js +14 -23
- package/dist/components/TagSelect/components/Item/Item.variants.js +16 -12
- package/dist/components/TagSelect/components/List/List.js +17 -22
- package/dist/components/TagSelect/components/List/List.variants.js +21 -3
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -69
- package/dist/components/TagSelect/components/index.js +6 -6
- package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +49 -75
- package/dist/components/TagSelect/contexts/index.js +4 -4
- package/dist/components/TagSelect/hooks/useTagSelect.js +18 -31
- package/dist/components/TextArea/TextArea.js +27 -35
- package/dist/components/TextArea/TextArea.variants.js +18 -3
- package/dist/components/TimePicker/TimePicker.js +15 -23
- package/dist/components/TimePicker/TimePicker.variants.js +65 -2
- package/dist/components/TimePicker/components/HoursList/HoursList.js +88 -75
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -79
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +61 -64
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +134 -143
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +38 -44
- package/dist/components/TimePicker/components/index.js +2 -2
- package/dist/components/TimePicker/contexts/index.js +6 -6
- package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
- package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -5
- package/dist/components/TimePicker/contexts/time-picker.provider.js +56 -76
- package/dist/components/TimePicker/utils/index.js +17 -19
- package/dist/components/Toast/Toast.js +3 -547
- package/dist/components/Toast/Toast.variants.js +44 -14
- package/dist/components/Tooltip/Tooltip.js +16 -36
- package/dist/components/Typography/Typography.js +16 -27
- package/dist/components/Typography/Typography.variants.js +71 -26
- package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -77
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
- package/dist/components/VirtualizedTable/assets/chevron-down.js +14 -13
- package/dist/components/VirtualizedTable/assets/chevron-up.js +14 -13
- package/dist/components/VirtualizedTable/assets/index.js +4 -4
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +35 -63
- package/dist/components/VirtualizedTable/components/Body/Body.js +49 -57
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +100 -105
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +18 -20
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +29 -43
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +110 -117
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +42 -32
- package/dist/components/VirtualizedTable/components/Header/Header.js +33 -58
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +29 -65
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +39 -32
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +39 -52
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -19
- package/dist/components/VirtualizedTable/components/index.js +10 -10
- package/dist/components/VirtualizedTable/constants/index.js +3 -3
- package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
- package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
- package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -239
- package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
- package/dist/components/VirtualizedTable/events/index.js +19 -24
- package/dist/components/index.js +140 -140
- package/dist/components-DNFycJGm.js +120 -0
- package/dist/constants-D96yCePL.js +31 -0
- package/dist/contexts/index.js +6 -6
- package/dist/contexts/theme.context.js +2 -2
- package/dist/contexts/theme.hook.js +2 -2
- package/dist/contexts/theme.provider.js +2 -96
- package/dist/createLucideIcon-BVGkzDZC.js +42 -0
- package/dist/debounce-CzFlgg9h.js +86 -0
- package/dist/dist-B5SlrgYz.js +263 -0
- package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
- package/dist/dist-BL8l9uRy.js +361 -0
- package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
- package/dist/dist-C8r5DW7s.js +10 -0
- package/dist/dist-CBnErrr1.js +58 -0
- package/dist/dist-COY3FRYC.js +480 -0
- package/dist/dist-CSP6X06u.js +1701 -0
- package/dist/dist-DNSmoWJp.js +469 -0
- package/dist/dist-DRmqW28Z2.js +7479 -0
- package/dist/dist-DXJSck4j.js +74 -0
- package/dist/dist-DXXHfL7M.js +132 -0
- package/dist/dist-DZNdbzbm.js +120 -0
- package/dist/dist-DZcOdXgW.js +13 -0
- package/dist/dist-DeVdyMHW2.js +31 -0
- package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
- package/dist/dist-DstQl8xY.js +10 -0
- package/dist/dist-DtEbXv47.js +34 -0
- package/dist/dist-uVUx9i0a.js +223 -0
- package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useToggle.js +5 -10
- package/dist/icons.js +88 -88
- package/dist/index.js +150 -149
- package/dist/isObject--aYwGuhx.js +62 -0
- package/dist/libphonenumber-7uXgv7U8.js +81977 -0
- package/dist/package.json +18 -19
- package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
- package/dist/prop-types-DTnODft1.js +547 -0
- package/dist/proxy-uLtw-ZML.js +4690 -0
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
- package/dist/theme.provider-BgxXUOMP.js +74 -0
- package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
- package/dist/utils/index.js +5 -2920
- package/dist/utils-CQSRNcoF.js +2022 -0
- package/dist/utils-DHuiYnx1.js +1689 -0
- package/dist/x-BwIi6Wii.js +63 -0
- package/dist/x-a0ouxoIM.js +11 -0
- package/package.json +18 -19
- package/dist/AdditionalOptions-DiXvUzhu.js +0 -42
- package/dist/Combination-BtmnusWq.js +0 -480
- package/dist/DayPicker-CaeUXRCF.js +0 -2798
- package/dist/Modal-h5H4yxYg.js +0 -128
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/chevron-down-BBFYYzZq.js +0 -5
- package/dist/chevron-left-BHBf-gQY.js +0 -5
- package/dist/chevron-right-DvXGOiS_.js +0 -5
- package/dist/chevron-up-DEfvgPCw.js +0 -54
- package/dist/chevron-up-IlDPxR7j.js +0 -5
- package/dist/compiler-runtime-DA41awpA.js +0 -36
- package/dist/createLucideIcon-CP-mMPfa.js +0 -75
- package/dist/debounce-DJveWHr_.js +0 -114
- package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
- package/dist/index--l0zux8V.js +0 -200
- package/dist/index-0g-eSmV1.js +0 -142
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-B9v5VxE2.js +0 -431
- package/dist/index-BKMaItIC.js +0 -13
- package/dist/index-BKjcReYh.js +0 -55
- package/dist/index-BOE_3f_Z.js +0 -646
- package/dist/index-BRXMsxSL.js +0 -27
- package/dist/index-BdMNhZnh.js +0 -9
- package/dist/index-BmVmDQGH.js +0 -662
- package/dist/index-BvEpLnOv.js +0 -144
- package/dist/index-BvoZGpli.js +0 -60
- package/dist/index-C6mt--X_.js +0 -478
- package/dist/index-CJnS4BVW.js +0 -93
- package/dist/index-CiACf4ao.js +0 -1885
- package/dist/index-D29mdTf5.js +0 -34
- package/dist/index-Dy4FVowi.js +0 -314
- package/dist/index-kTGTSLpq.js +0 -322
- package/dist/index-qDQP8rW4.js +0 -7281
- package/dist/isObject-9XxUefZH.js +0 -97
- package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
- package/dist/proxy-BGrSEZuV.js +0 -5046
- package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
- package/dist/x-B9bYxG31.js +0 -8
- package/dist/x-Eoa9FJjA.js +0 -62
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { o as u } from "./chunk-D1xtDmiO.js";
|
|
2
|
+
import { t as c } from "./prop-types-DTnODft1.js";
|
|
3
|
+
import l, { forwardRef as m } from "react";
|
|
4
|
+
var a = /* @__PURE__ */ u(c());
|
|
5
|
+
function p() {
|
|
6
|
+
return p = Object.assign || function(t) {
|
|
7
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
8
|
+
var r = arguments[n];
|
|
9
|
+
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}, p.apply(this, arguments);
|
|
13
|
+
}
|
|
14
|
+
function y(t, n) {
|
|
15
|
+
if (t == null) return {};
|
|
16
|
+
var r = v(t, n), e, o;
|
|
17
|
+
if (Object.getOwnPropertySymbols) {
|
|
18
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
19
|
+
for (o = 0; o < i.length; o++)
|
|
20
|
+
e = i[o], !(n.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (r[e] = t[e]);
|
|
21
|
+
}
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
function v(t, n) {
|
|
25
|
+
if (t == null) return {};
|
|
26
|
+
var r = {}, e = Object.keys(t), o, i;
|
|
27
|
+
for (i = 0; i < e.length; i++)
|
|
28
|
+
o = e[i], !(n.indexOf(o) >= 0) && (r[o] = t[o]);
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
var f = m(function(t, n) {
|
|
32
|
+
var r = t.color, e = r === void 0 ? "currentColor" : r, o = t.size, i = o === void 0 ? 24 : o, s = y(t, ["color", "size"]);
|
|
33
|
+
return /* @__PURE__ */ l.createElement("svg", p({
|
|
34
|
+
ref: n,
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
width: i,
|
|
37
|
+
height: i,
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: "none",
|
|
40
|
+
stroke: e,
|
|
41
|
+
strokeWidth: "2",
|
|
42
|
+
strokeLinecap: "round",
|
|
43
|
+
strokeLinejoin: "round"
|
|
44
|
+
}, s), /* @__PURE__ */ l.createElement("line", {
|
|
45
|
+
x1: "18",
|
|
46
|
+
y1: "6",
|
|
47
|
+
x2: "6",
|
|
48
|
+
y2: "18"
|
|
49
|
+
}), /* @__PURE__ */ l.createElement("line", {
|
|
50
|
+
x1: "6",
|
|
51
|
+
y1: "6",
|
|
52
|
+
x2: "18",
|
|
53
|
+
y2: "18"
|
|
54
|
+
}));
|
|
55
|
+
});
|
|
56
|
+
f.propTypes = {
|
|
57
|
+
color: a.default.string,
|
|
58
|
+
size: a.default.oneOfType([a.default.string, a.default.number])
|
|
59
|
+
};
|
|
60
|
+
f.displayName = "X";
|
|
61
|
+
export {
|
|
62
|
+
f as t
|
|
63
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.79",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"google-libphonenumber": "^3.2.44",
|
|
100
100
|
"i18n-iso-countries": "^7.14.0",
|
|
101
101
|
"js-cookie": "^3.0.5",
|
|
102
|
-
"lucide-react": "^0.
|
|
103
|
-
"motion": "^12.
|
|
102
|
+
"lucide-react": "^1.0.1",
|
|
103
|
+
"motion": "^12.38.0",
|
|
104
104
|
"react-chartjs-2": "^5.3.1",
|
|
105
105
|
"react-day-picker": "^9.14.0",
|
|
106
106
|
"react-feather": "^2.0.10",
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
"devDependencies": {
|
|
144
144
|
"@faker-js/faker": "^10.3.0",
|
|
145
145
|
"@rollup/plugin-alias": "^6.0.0",
|
|
146
|
-
"@storybook/addon-docs": "^10.
|
|
147
|
-
"@storybook/addon-links": "^10.
|
|
148
|
-
"@storybook/react-vite": "^10.
|
|
149
|
-
"@tailwindcss/vite": "^4.2.
|
|
150
|
-
"@tanstack/react-query": "^5.
|
|
146
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
147
|
+
"@storybook/addon-links": "^10.3.3",
|
|
148
|
+
"@storybook/react-vite": "^10.3.3",
|
|
149
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
150
|
+
"@tanstack/react-query": "^5.95.2",
|
|
151
151
|
"@testing-library/jest-dom": "^6.9.1",
|
|
152
152
|
"@testing-library/react": "^16.3.2",
|
|
153
153
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -157,36 +157,35 @@
|
|
|
157
157
|
"@types/lodash": "^4.17.24",
|
|
158
158
|
"@types/react": "^19.2.14",
|
|
159
159
|
"@types/react-dom": "^19.2.3",
|
|
160
|
-
"@typescript-eslint/eslint-plugin": "^8.57.
|
|
161
|
-
"@typescript-eslint/parser": "^8.57.
|
|
162
|
-
"@vitejs/plugin-react": "^
|
|
163
|
-
"@vitest/coverage-v8": "^4.1.
|
|
160
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
161
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
162
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
163
|
+
"@vitest/coverage-v8": "^4.1.1",
|
|
164
164
|
"autoprefixer": "^10.4.27",
|
|
165
165
|
"eslint": "^9.39.3",
|
|
166
166
|
"eslint-plugin-react": "^7.37.5",
|
|
167
167
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
168
168
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
169
|
-
"eslint-plugin-storybook": "^10.
|
|
169
|
+
"eslint-plugin-storybook": "^10.3.3",
|
|
170
170
|
"eslint-plugin-vitest": "^0.5.4",
|
|
171
171
|
"glob": "^13.0.6",
|
|
172
172
|
"husky": "^9.1.7",
|
|
173
173
|
"jest-axe": "^10.0.0",
|
|
174
|
-
"jsdom": "^29.0.
|
|
174
|
+
"jsdom": "^29.0.1",
|
|
175
175
|
"lodash": "^4.17.23",
|
|
176
176
|
"postcss": "^8.5.8",
|
|
177
177
|
"prettier": "^3.8.1",
|
|
178
178
|
"rimraf": "^6.1.3",
|
|
179
|
-
"storybook": "^10.
|
|
180
|
-
"tailwindcss": "^4.2.
|
|
179
|
+
"storybook": "^10.3.3",
|
|
180
|
+
"tailwindcss": "^4.2.2",
|
|
181
181
|
"ts-node": "^10.9.2",
|
|
182
182
|
"typescript": "^5.9.3",
|
|
183
|
-
"
|
|
184
|
-
"vite": "^7.3.1",
|
|
183
|
+
"vite": "^8.0.2",
|
|
185
184
|
"vite-plugin-dts": "^4.5.4",
|
|
186
185
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
187
186
|
"vite-plugin-svgr": "^4.5.0",
|
|
188
187
|
"vite-tsconfig-paths": "^6.1.1",
|
|
189
|
-
"vitest": "^4.1.
|
|
188
|
+
"vitest": "^4.1.1"
|
|
190
189
|
},
|
|
191
190
|
"overrides": {
|
|
192
191
|
"storybook": "$storybook"
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as b } from "./compiler-runtime-DA41awpA.js";
|
|
3
|
-
import { S as m } from "./index-BvoZGpli.js";
|
|
4
|
-
import { Fragment as g } from "react";
|
|
5
|
-
import { cn as O } from "./utils/index.js";
|
|
6
|
-
import { listGroupLabelVariants as x } from "./components/Select/components/List/List.variants.js";
|
|
7
|
-
import { additionalOptionSlotClassName as d } from "./components/Select/components/AdditionalOptions/AdditionalOptions.variants.js";
|
|
8
|
-
import { useSelectContext as G } from "./components/Select/contexts/select.hook.js";
|
|
9
|
-
const R = (i) => "groupLabel" in i, L = (i) => typeof i == "object" && i !== null && "groupLabel" in i && "options" in i, V = (i) => {
|
|
10
|
-
const o = b.c(10), {
|
|
11
|
-
additionalOptions: a
|
|
12
|
-
} = i, {
|
|
13
|
-
toggleOpen: t
|
|
14
|
-
} = G();
|
|
15
|
-
if (!a?.length)
|
|
16
|
-
return null;
|
|
17
|
-
if (L(a[0])) {
|
|
18
|
-
const e = a;
|
|
19
|
-
let n;
|
|
20
|
-
if (o[0] !== e || o[1] !== t) {
|
|
21
|
-
let r;
|
|
22
|
-
o[3] !== t ? (r = (c) => /* @__PURE__ */ h(g, { children: [
|
|
23
|
-
/* @__PURE__ */ l("li", { role: "presentation", "aria-hidden": "true", "data-action": "true", className: O(x()), children: c.groupLabel }),
|
|
24
|
-
c.options.map((u, f) => /* @__PURE__ */ l("li", { role: "option", "data-action": "true", onClick: () => t(!1), children: /* @__PURE__ */ l(m, { className: d, children: u }) }, f))
|
|
25
|
-
] }, c.groupLabel), o[3] = t, o[4] = r) : r = o[4], n = e.map(r), o[0] = e, o[1] = t, o[2] = n;
|
|
26
|
-
} else
|
|
27
|
-
n = o[2];
|
|
28
|
-
return n;
|
|
29
|
-
}
|
|
30
|
-
const p = a;
|
|
31
|
-
let s;
|
|
32
|
-
if (o[5] !== p || o[6] !== t) {
|
|
33
|
-
let e;
|
|
34
|
-
o[8] !== t ? (e = (n, r) => /* @__PURE__ */ l("li", { role: "option", "data-action": "true", onClick: () => t(!1), children: /* @__PURE__ */ l(m, { className: d, children: n }) }, r), o[8] = t, o[9] = e) : e = o[9], s = p.map(e), o[5] = p, o[6] = t, o[7] = s;
|
|
35
|
-
} else
|
|
36
|
-
s = o[7];
|
|
37
|
-
return s;
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
V as A,
|
|
41
|
-
R as i
|
|
42
|
-
};
|
|
@@ -1,480 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import { useState as te } from "react";
|
|
3
|
-
var S = function() {
|
|
4
|
-
return S = Object.assign || function(t) {
|
|
5
|
-
for (var n, r = 1, a = arguments.length; r < a; r++) {
|
|
6
|
-
n = arguments[r];
|
|
7
|
-
for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
}, S.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
function Q(e, t) {
|
|
13
|
-
var n = {};
|
|
14
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
15
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
16
|
-
for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
17
|
-
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
function re(e, t, n) {
|
|
21
|
-
if (n || arguments.length === 2) for (var r = 0, a = t.length, c; r < a; r++)
|
|
22
|
-
(c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
|
|
23
|
-
return e.concat(c || Array.prototype.slice.call(t));
|
|
24
|
-
}
|
|
25
|
-
var x = "right-scroll-bar-position", O = "width-before-scroll-bar", ne = "with-scroll-bars-hidden", ae = "--removed-body-scroll-bar-size";
|
|
26
|
-
function W(e, t) {
|
|
27
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
28
|
-
}
|
|
29
|
-
function oe(e, t) {
|
|
30
|
-
var n = te(function() {
|
|
31
|
-
return {
|
|
32
|
-
// value
|
|
33
|
-
value: e,
|
|
34
|
-
// last callback
|
|
35
|
-
callback: t,
|
|
36
|
-
// "memoized" public interface
|
|
37
|
-
facade: {
|
|
38
|
-
get current() {
|
|
39
|
-
return n.value;
|
|
40
|
-
},
|
|
41
|
-
set current(r) {
|
|
42
|
-
var a = n.value;
|
|
43
|
-
a !== r && (n.value = r, n.callback(r, a));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
})[0];
|
|
48
|
-
return n.callback = t, n.facade;
|
|
49
|
-
}
|
|
50
|
-
var ce = typeof window < "u" ? l.useLayoutEffect : l.useEffect, H = /* @__PURE__ */ new WeakMap();
|
|
51
|
-
function ie(e, t) {
|
|
52
|
-
var n = oe(null, function(r) {
|
|
53
|
-
return e.forEach(function(a) {
|
|
54
|
-
return W(a, r);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
return ce(function() {
|
|
58
|
-
var r = H.get(n);
|
|
59
|
-
if (r) {
|
|
60
|
-
var a = new Set(r), c = new Set(e), u = n.current;
|
|
61
|
-
a.forEach(function(i) {
|
|
62
|
-
c.has(i) || W(i, null);
|
|
63
|
-
}), c.forEach(function(i) {
|
|
64
|
-
a.has(i) || W(i, u);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
H.set(n, e);
|
|
68
|
-
}, [e]), n;
|
|
69
|
-
}
|
|
70
|
-
function le(e) {
|
|
71
|
-
return e;
|
|
72
|
-
}
|
|
73
|
-
function ue(e, t) {
|
|
74
|
-
t === void 0 && (t = le);
|
|
75
|
-
var n = [], r = !1, a = {
|
|
76
|
-
read: function() {
|
|
77
|
-
if (r)
|
|
78
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
79
|
-
return n.length ? n[n.length - 1] : e;
|
|
80
|
-
},
|
|
81
|
-
useMedium: function(c) {
|
|
82
|
-
var u = t(c, r);
|
|
83
|
-
return n.push(u), function() {
|
|
84
|
-
n = n.filter(function(i) {
|
|
85
|
-
return i !== u;
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
assignSyncMedium: function(c) {
|
|
90
|
-
for (r = !0; n.length; ) {
|
|
91
|
-
var u = n;
|
|
92
|
-
n = [], u.forEach(c);
|
|
93
|
-
}
|
|
94
|
-
n = {
|
|
95
|
-
push: function(i) {
|
|
96
|
-
return c(i);
|
|
97
|
-
},
|
|
98
|
-
filter: function() {
|
|
99
|
-
return n;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
assignMedium: function(c) {
|
|
104
|
-
r = !0;
|
|
105
|
-
var u = [];
|
|
106
|
-
if (n.length) {
|
|
107
|
-
var i = n;
|
|
108
|
-
n = [], i.forEach(c), u = n;
|
|
109
|
-
}
|
|
110
|
-
var m = function() {
|
|
111
|
-
var v = u;
|
|
112
|
-
u = [], v.forEach(c);
|
|
113
|
-
}, g = function() {
|
|
114
|
-
return Promise.resolve().then(m);
|
|
115
|
-
};
|
|
116
|
-
g(), n = {
|
|
117
|
-
push: function(v) {
|
|
118
|
-
u.push(v), g();
|
|
119
|
-
},
|
|
120
|
-
filter: function(v) {
|
|
121
|
-
return u = u.filter(v), n;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
return a;
|
|
127
|
-
}
|
|
128
|
-
function fe(e) {
|
|
129
|
-
e === void 0 && (e = {});
|
|
130
|
-
var t = ue(null);
|
|
131
|
-
return t.options = S({ async: !0, ssr: !1 }, e), t;
|
|
132
|
-
}
|
|
133
|
-
var _ = function(e) {
|
|
134
|
-
var t = e.sideCar, n = Q(e, ["sideCar"]);
|
|
135
|
-
if (!t)
|
|
136
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
137
|
-
var r = t.read();
|
|
138
|
-
if (!r)
|
|
139
|
-
throw new Error("Sidecar medium not found");
|
|
140
|
-
return l.createElement(r, S({}, n));
|
|
141
|
-
};
|
|
142
|
-
_.isSideCarExport = !0;
|
|
143
|
-
function se(e, t) {
|
|
144
|
-
return e.useMedium(t), _;
|
|
145
|
-
}
|
|
146
|
-
var U = fe(), D = function() {
|
|
147
|
-
}, A = l.forwardRef(function(e, t) {
|
|
148
|
-
var n = l.useRef(null), r = l.useState({
|
|
149
|
-
onScrollCapture: D,
|
|
150
|
-
onWheelCapture: D,
|
|
151
|
-
onTouchMoveCapture: D
|
|
152
|
-
}), a = r[0], c = r[1], u = e.forwardProps, i = e.children, m = e.className, g = e.removeScrollBar, v = e.enabled, C = e.shards, k = e.sideCar, E = e.noRelative, R = e.noIsolation, o = e.inert, f = e.allowPinchZoom, h = e.as, s = h === void 0 ? "div" : h, y = e.gapMode, b = Q(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), d = k, w = ie([n, t]), p = S(S({}, b), a);
|
|
153
|
-
return l.createElement(
|
|
154
|
-
l.Fragment,
|
|
155
|
-
null,
|
|
156
|
-
v && l.createElement(d, { sideCar: U, removeScrollBar: g, shards: C, noRelative: E, noIsolation: R, inert: o, setCallbacks: c, allowPinchZoom: !!f, lockRef: n, gapMode: y }),
|
|
157
|
-
u ? l.cloneElement(l.Children.only(i), S(S({}, p), { ref: w })) : l.createElement(s, S({}, p, { className: m, ref: w }), i)
|
|
158
|
-
);
|
|
159
|
-
});
|
|
160
|
-
A.defaultProps = {
|
|
161
|
-
enabled: !0,
|
|
162
|
-
removeScrollBar: !0,
|
|
163
|
-
inert: !1
|
|
164
|
-
};
|
|
165
|
-
A.classNames = {
|
|
166
|
-
fullWidth: O,
|
|
167
|
-
zeroRight: x
|
|
168
|
-
};
|
|
169
|
-
var de = function() {
|
|
170
|
-
if (typeof __webpack_nonce__ < "u")
|
|
171
|
-
return __webpack_nonce__;
|
|
172
|
-
};
|
|
173
|
-
function ve() {
|
|
174
|
-
if (!document)
|
|
175
|
-
return null;
|
|
176
|
-
var e = document.createElement("style");
|
|
177
|
-
e.type = "text/css";
|
|
178
|
-
var t = de();
|
|
179
|
-
return t && e.setAttribute("nonce", t), e;
|
|
180
|
-
}
|
|
181
|
-
function he(e, t) {
|
|
182
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
183
|
-
}
|
|
184
|
-
function me(e) {
|
|
185
|
-
var t = document.head || document.getElementsByTagName("head")[0];
|
|
186
|
-
t.appendChild(e);
|
|
187
|
-
}
|
|
188
|
-
var ge = function() {
|
|
189
|
-
var e = 0, t = null;
|
|
190
|
-
return {
|
|
191
|
-
add: function(n) {
|
|
192
|
-
e == 0 && (t = ve()) && (he(t, n), me(t)), e++;
|
|
193
|
-
},
|
|
194
|
-
remove: function() {
|
|
195
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
}, ye = function() {
|
|
199
|
-
var e = ge();
|
|
200
|
-
return function(t, n) {
|
|
201
|
-
l.useEffect(function() {
|
|
202
|
-
return e.add(t), function() {
|
|
203
|
-
e.remove();
|
|
204
|
-
};
|
|
205
|
-
}, [t && n]);
|
|
206
|
-
};
|
|
207
|
-
}, K = function() {
|
|
208
|
-
var e = ye(), t = function(n) {
|
|
209
|
-
var r = n.styles, a = n.dynamic;
|
|
210
|
-
return e(r, a), null;
|
|
211
|
-
};
|
|
212
|
-
return t;
|
|
213
|
-
}, Se = {
|
|
214
|
-
left: 0,
|
|
215
|
-
top: 0,
|
|
216
|
-
right: 0,
|
|
217
|
-
gap: 0
|
|
218
|
-
}, X = function(e) {
|
|
219
|
-
return parseInt(e || "", 10) || 0;
|
|
220
|
-
}, be = function(e) {
|
|
221
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
222
|
-
return [X(n), X(r), X(a)];
|
|
223
|
-
}, we = function(e) {
|
|
224
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
225
|
-
return Se;
|
|
226
|
-
var t = be(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
227
|
-
return {
|
|
228
|
-
left: t[0],
|
|
229
|
-
top: t[1],
|
|
230
|
-
right: t[2],
|
|
231
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
232
|
-
};
|
|
233
|
-
}, pe = K(), T = "data-scroll-locked", Ce = function(e, t, n, r) {
|
|
234
|
-
var a = e.left, c = e.top, u = e.right, i = e.gap;
|
|
235
|
-
return n === void 0 && (n = "margin"), `
|
|
236
|
-
.`.concat(ne, ` {
|
|
237
|
-
overflow: hidden `).concat(r, `;
|
|
238
|
-
padding-right: `).concat(i, "px ").concat(r, `;
|
|
239
|
-
}
|
|
240
|
-
body[`).concat(T, `] {
|
|
241
|
-
overflow: hidden `).concat(r, `;
|
|
242
|
-
overscroll-behavior: contain;
|
|
243
|
-
`).concat([
|
|
244
|
-
t && "position: relative ".concat(r, ";"),
|
|
245
|
-
n === "margin" && `
|
|
246
|
-
padding-left: `.concat(a, `px;
|
|
247
|
-
padding-top: `).concat(c, `px;
|
|
248
|
-
padding-right: `).concat(u, `px;
|
|
249
|
-
margin-left:0;
|
|
250
|
-
margin-top:0;
|
|
251
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
252
|
-
`),
|
|
253
|
-
n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
|
|
254
|
-
].filter(Boolean).join(""), `
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.`).concat(x, ` {
|
|
258
|
-
right: `).concat(i, "px ").concat(r, `;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.`).concat(O, ` {
|
|
262
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.`).concat(x, " .").concat(x, ` {
|
|
266
|
-
right: 0 `).concat(r, `;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.`).concat(O, " .").concat(O, ` {
|
|
270
|
-
margin-right: 0 `).concat(r, `;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
body[`).concat(T, `] {
|
|
274
|
-
`).concat(ae, ": ").concat(i, `px;
|
|
275
|
-
}
|
|
276
|
-
`);
|
|
277
|
-
}, F = function() {
|
|
278
|
-
var e = parseInt(document.body.getAttribute(T) || "0", 10);
|
|
279
|
-
return isFinite(e) ? e : 0;
|
|
280
|
-
}, Ee = function() {
|
|
281
|
-
l.useEffect(function() {
|
|
282
|
-
return document.body.setAttribute(T, (F() + 1).toString()), function() {
|
|
283
|
-
var e = F() - 1;
|
|
284
|
-
e <= 0 ? document.body.removeAttribute(T) : document.body.setAttribute(T, e.toString());
|
|
285
|
-
};
|
|
286
|
-
}, []);
|
|
287
|
-
}, Re = function(e) {
|
|
288
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
289
|
-
Ee();
|
|
290
|
-
var c = l.useMemo(function() {
|
|
291
|
-
return we(a);
|
|
292
|
-
}, [a]);
|
|
293
|
-
return l.createElement(pe, { styles: Ce(c, !t, a, n ? "" : "!important") });
|
|
294
|
-
}, Y = !1;
|
|
295
|
-
if (typeof window < "u")
|
|
296
|
-
try {
|
|
297
|
-
var L = Object.defineProperty({}, "passive", {
|
|
298
|
-
get: function() {
|
|
299
|
-
return Y = !0, !0;
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
window.addEventListener("test", L, L), window.removeEventListener("test", L, L);
|
|
303
|
-
} catch {
|
|
304
|
-
Y = !1;
|
|
305
|
-
}
|
|
306
|
-
var P = Y ? { passive: !1 } : !1, ke = function(e) {
|
|
307
|
-
return e.tagName === "TEXTAREA";
|
|
308
|
-
}, $ = function(e, t) {
|
|
309
|
-
if (!(e instanceof Element))
|
|
310
|
-
return !1;
|
|
311
|
-
var n = window.getComputedStyle(e);
|
|
312
|
-
return (
|
|
313
|
-
// not-not-scrollable
|
|
314
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
315
|
-
!(n.overflowY === n.overflowX && !ke(e) && n[t] === "visible")
|
|
316
|
-
);
|
|
317
|
-
}, Pe = function(e) {
|
|
318
|
-
return $(e, "overflowY");
|
|
319
|
-
}, Ne = function(e) {
|
|
320
|
-
return $(e, "overflowX");
|
|
321
|
-
}, z = function(e, t) {
|
|
322
|
-
var n = t.ownerDocument, r = t;
|
|
323
|
-
do {
|
|
324
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
325
|
-
var a = q(e, r);
|
|
326
|
-
if (a) {
|
|
327
|
-
var c = J(e, r), u = c[1], i = c[2];
|
|
328
|
-
if (u > i)
|
|
329
|
-
return !0;
|
|
330
|
-
}
|
|
331
|
-
r = r.parentNode;
|
|
332
|
-
} while (r && r !== n.body);
|
|
333
|
-
return !1;
|
|
334
|
-
}, Te = function(e) {
|
|
335
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
336
|
-
return [
|
|
337
|
-
t,
|
|
338
|
-
n,
|
|
339
|
-
r
|
|
340
|
-
];
|
|
341
|
-
}, Me = function(e) {
|
|
342
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
343
|
-
return [
|
|
344
|
-
t,
|
|
345
|
-
n,
|
|
346
|
-
r
|
|
347
|
-
];
|
|
348
|
-
}, q = function(e, t) {
|
|
349
|
-
return e === "v" ? Pe(t) : Ne(t);
|
|
350
|
-
}, J = function(e, t) {
|
|
351
|
-
return e === "v" ? Te(t) : Me(t);
|
|
352
|
-
}, Le = function(e, t) {
|
|
353
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
354
|
-
}, Be = function(e, t, n, r, a) {
|
|
355
|
-
var c = Le(e, window.getComputedStyle(t).direction), u = c * r, i = n.target, m = t.contains(i), g = !1, v = u > 0, C = 0, k = 0;
|
|
356
|
-
do {
|
|
357
|
-
if (!i)
|
|
358
|
-
break;
|
|
359
|
-
var E = J(e, i), R = E[0], o = E[1], f = E[2], h = o - f - c * R;
|
|
360
|
-
(R || h) && q(e, i) && (C += h, k += R);
|
|
361
|
-
var s = i.parentNode;
|
|
362
|
-
i = s && s.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? s.host : s;
|
|
363
|
-
} while (
|
|
364
|
-
// portaled content
|
|
365
|
-
!m && i !== document.body || // self content
|
|
366
|
-
m && (t.contains(i) || t === i)
|
|
367
|
-
);
|
|
368
|
-
return (v && Math.abs(C) < 1 || !v && Math.abs(k) < 1) && (g = !0), g;
|
|
369
|
-
}, B = function(e) {
|
|
370
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
371
|
-
}, Z = function(e) {
|
|
372
|
-
return [e.deltaX, e.deltaY];
|
|
373
|
-
}, G = function(e) {
|
|
374
|
-
return e && "current" in e ? e.current : e;
|
|
375
|
-
}, xe = function(e, t) {
|
|
376
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
377
|
-
}, Oe = function(e) {
|
|
378
|
-
return `
|
|
379
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
380
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
381
|
-
`);
|
|
382
|
-
}, Ae = 0, N = [];
|
|
383
|
-
function Ie(e) {
|
|
384
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(Ae++)[0], c = l.useState(K)[0], u = l.useRef(e);
|
|
385
|
-
l.useEffect(function() {
|
|
386
|
-
u.current = e;
|
|
387
|
-
}, [e]), l.useEffect(function() {
|
|
388
|
-
if (e.inert) {
|
|
389
|
-
document.body.classList.add("block-interactivity-".concat(a));
|
|
390
|
-
var o = re([e.lockRef.current], (e.shards || []).map(G), !0).filter(Boolean);
|
|
391
|
-
return o.forEach(function(f) {
|
|
392
|
-
return f.classList.add("allow-interactivity-".concat(a));
|
|
393
|
-
}), function() {
|
|
394
|
-
document.body.classList.remove("block-interactivity-".concat(a)), o.forEach(function(f) {
|
|
395
|
-
return f.classList.remove("allow-interactivity-".concat(a));
|
|
396
|
-
});
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
400
|
-
var i = l.useCallback(function(o, f) {
|
|
401
|
-
if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
|
|
402
|
-
return !u.current.allowPinchZoom;
|
|
403
|
-
var h = B(o), s = n.current, y = "deltaX" in o ? o.deltaX : s[0] - h[0], b = "deltaY" in o ? o.deltaY : s[1] - h[1], d, w = o.target, p = Math.abs(y) > Math.abs(b) ? "h" : "v";
|
|
404
|
-
if ("touches" in o && p === "h" && w.type === "range")
|
|
405
|
-
return !1;
|
|
406
|
-
var j = window.getSelection(), I = j && j.anchorNode, ee = I ? I === w || I.contains(w) : !1;
|
|
407
|
-
if (ee)
|
|
408
|
-
return !1;
|
|
409
|
-
var M = z(p, w);
|
|
410
|
-
if (!M)
|
|
411
|
-
return !0;
|
|
412
|
-
if (M ? d = p : (d = p === "v" ? "h" : "v", M = z(p, w)), !M)
|
|
413
|
-
return !1;
|
|
414
|
-
if (!r.current && "changedTouches" in o && (y || b) && (r.current = d), !d)
|
|
415
|
-
return !0;
|
|
416
|
-
var V = r.current || d;
|
|
417
|
-
return Be(V, f, o, V === "h" ? y : b);
|
|
418
|
-
}, []), m = l.useCallback(function(o) {
|
|
419
|
-
var f = o;
|
|
420
|
-
if (!(!N.length || N[N.length - 1] !== c)) {
|
|
421
|
-
var h = "deltaY" in f ? Z(f) : B(f), s = t.current.filter(function(d) {
|
|
422
|
-
return d.name === f.type && (d.target === f.target || f.target === d.shadowParent) && xe(d.delta, h);
|
|
423
|
-
})[0];
|
|
424
|
-
if (s && s.should) {
|
|
425
|
-
f.cancelable && f.preventDefault();
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
if (!s) {
|
|
429
|
-
var y = (u.current.shards || []).map(G).filter(Boolean).filter(function(d) {
|
|
430
|
-
return d.contains(f.target);
|
|
431
|
-
}), b = y.length > 0 ? i(f, y[0]) : !u.current.noIsolation;
|
|
432
|
-
b && f.cancelable && f.preventDefault();
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}, []), g = l.useCallback(function(o, f, h, s) {
|
|
436
|
-
var y = { name: o, delta: f, target: h, should: s, shadowParent: We(h) };
|
|
437
|
-
t.current.push(y), setTimeout(function() {
|
|
438
|
-
t.current = t.current.filter(function(b) {
|
|
439
|
-
return b !== y;
|
|
440
|
-
});
|
|
441
|
-
}, 1);
|
|
442
|
-
}, []), v = l.useCallback(function(o) {
|
|
443
|
-
n.current = B(o), r.current = void 0;
|
|
444
|
-
}, []), C = l.useCallback(function(o) {
|
|
445
|
-
g(o.type, Z(o), o.target, i(o, e.lockRef.current));
|
|
446
|
-
}, []), k = l.useCallback(function(o) {
|
|
447
|
-
g(o.type, B(o), o.target, i(o, e.lockRef.current));
|
|
448
|
-
}, []);
|
|
449
|
-
l.useEffect(function() {
|
|
450
|
-
return N.push(c), e.setCallbacks({
|
|
451
|
-
onScrollCapture: C,
|
|
452
|
-
onWheelCapture: C,
|
|
453
|
-
onTouchMoveCapture: k
|
|
454
|
-
}), document.addEventListener("wheel", m, P), document.addEventListener("touchmove", m, P), document.addEventListener("touchstart", v, P), function() {
|
|
455
|
-
N = N.filter(function(o) {
|
|
456
|
-
return o !== c;
|
|
457
|
-
}), document.removeEventListener("wheel", m, P), document.removeEventListener("touchmove", m, P), document.removeEventListener("touchstart", v, P);
|
|
458
|
-
};
|
|
459
|
-
}, []);
|
|
460
|
-
var E = e.removeScrollBar, R = e.inert;
|
|
461
|
-
return l.createElement(
|
|
462
|
-
l.Fragment,
|
|
463
|
-
null,
|
|
464
|
-
R ? l.createElement(c, { styles: Oe(a) }) : null,
|
|
465
|
-
E ? l.createElement(Re, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
466
|
-
);
|
|
467
|
-
}
|
|
468
|
-
function We(e) {
|
|
469
|
-
for (var t = null; e !== null; )
|
|
470
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
471
|
-
return t;
|
|
472
|
-
}
|
|
473
|
-
const De = se(U, Ie);
|
|
474
|
-
var Xe = l.forwardRef(function(e, t) {
|
|
475
|
-
return l.createElement(A, S({}, e, { ref: t, sideCar: De }));
|
|
476
|
-
});
|
|
477
|
-
Xe.classNames = A.classNames;
|
|
478
|
-
export {
|
|
479
|
-
Xe as R
|
|
480
|
-
};
|