@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/AlertDialogTrigger-BGo_acd5.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-B_ngk9Dj.js +249 -0
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BLq69pOT.js} +2 -2
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/FlagSelectorList-CkTR3j6O.js +856 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-DRylBL2d.js} +2 -2
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-DG3snJf_.js → Input-Cf44DzfE.js} +19 -19
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-BegZ5yd7.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/Switch-aPhL5rNG.js +196 -0
- package/dist/Toast-3NEz7LLa.js +460 -0
- package/dist/Wrapper-BhqUVI1G.js +171 -0
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/components/Alert/Alert.js +22 -22
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- 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 +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +15 -16
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +25 -23
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -57
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +29 -50
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -49
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -50
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +15 -7
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- 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/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +39 -38
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +92 -89
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -21
- package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +67 -75
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +96 -90
- package/dist/{components-CYt24H4n.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-BUocnzkM.js +99 -0
- package/dist/{dist-DGO9opgu.js → dist-BZNE2Tnx.js} +51 -51
- package/dist/dist-BaPW7qXd2.js +166 -0
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/dist-C3YVLapk.js +194 -0
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/dist-DFCz63oC2.js +1320 -0
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/dist-DX0sBG3Q.js +31 -0
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/dist-tGUUcv8n.js +359 -0
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/es2015-CoHq2g4y.js +231 -0
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +147 -139
- package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
- package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +3 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +2 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +8 -7
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +38 -37
- package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
- package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
- package/dist/styles.css +1 -1
- package/dist/{table.provider-9uUt5a-s.js → table.provider-B0BafHuU.js} +429 -388
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +38 -37
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/Counter-DWKyr569.js +0 -208
- package/dist/DropdownButton-Beel5_gN.js +0 -92
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Modal-Bcu6LLAp.js +0 -76
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/Wrapper-DwxJAkNQ.js +0 -110
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- package/dist/dist-C8NWUTUh.js +0 -62
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-CeuUxVmT.js +0 -13
- package/dist/dist-CfYOvauX.js +0 -125
- package/dist/dist-CktbIsHq.js +0 -264
- package/dist/dist-DGqWMRtc.js +0 -183
- package/dist/dist-DdFwUrO22.js +0 -11
- package/dist/dist-DnGj9MTf.js +0 -1692
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-DvoMuWKO2.js +0 -31
- package/dist/dist-eAwtFCCA.js +0 -87
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { a as D, n as z } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { i as $ } from "./dist-D-yS0HN8.js";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
5
|
+
var H = Object.defineProperty, f = (r, e) => H(r, "name", {
|
|
6
|
+
value: e,
|
|
7
|
+
configurable: !0
|
|
8
|
+
});
|
|
9
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
|
+
function J(r) {
|
|
11
|
+
const e = r + "CollectionProvider", [t, o] = $(e), [n, i] = t(e, {
|
|
12
|
+
collectionRef: { current: null },
|
|
13
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
14
|
+
}), c = /* @__PURE__ */ f((p) => {
|
|
15
|
+
const { scope: h, children: I } = p, s = u.useRef(null), l = u.useRef(/* @__PURE__ */ new Map()).current;
|
|
16
|
+
return /* @__PURE__ */ M(n, {
|
|
17
|
+
scope: h,
|
|
18
|
+
itemMap: l,
|
|
19
|
+
collectionRef: s,
|
|
20
|
+
children: I
|
|
21
|
+
});
|
|
22
|
+
}, "CollectionProvider");
|
|
23
|
+
c.displayName = e;
|
|
24
|
+
const a = r + "CollectionSlot", S = z(a), E = u.forwardRef((p, h) => {
|
|
25
|
+
const { scope: I, children: s } = p, l = D(h, i(a, I).collectionRef);
|
|
26
|
+
return /* @__PURE__ */ M(S, {
|
|
27
|
+
ref: l,
|
|
28
|
+
children: s
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
E.displayName = a;
|
|
32
|
+
const y = r + "CollectionItemSlot", v = "data-radix-collection-item", A = z(y), d = u.forwardRef((p, h) => {
|
|
33
|
+
const { scope: I, children: s, ...l } = p, m = u.useRef(null), w = D(h, m), R = i(y, I);
|
|
34
|
+
return u.useEffect(() => (R.itemMap.set(m, {
|
|
35
|
+
ref: m,
|
|
36
|
+
...l
|
|
37
|
+
}), () => {
|
|
38
|
+
R.itemMap.delete(m);
|
|
39
|
+
})), /* @__PURE__ */ M(A, {
|
|
40
|
+
[v]: "",
|
|
41
|
+
ref: w,
|
|
42
|
+
children: s
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
d.displayName = y;
|
|
46
|
+
function x(p) {
|
|
47
|
+
const h = i(r + "CollectionConsumer", p);
|
|
48
|
+
return u.useCallback(() => {
|
|
49
|
+
const I = h.collectionRef.current;
|
|
50
|
+
if (!I) return [];
|
|
51
|
+
const s = Array.from(I.querySelectorAll(`[${v}]`));
|
|
52
|
+
return Array.from(h.itemMap.values()).sort((l, m) => s.indexOf(l.ref.current) - s.indexOf(m.ref.current));
|
|
53
|
+
}, [h.collectionRef, h.itemMap]);
|
|
54
|
+
}
|
|
55
|
+
return f(x, "useCollection"), [
|
|
56
|
+
{
|
|
57
|
+
Provider: c,
|
|
58
|
+
Slot: E,
|
|
59
|
+
ItemSlot: d
|
|
60
|
+
},
|
|
61
|
+
x,
|
|
62
|
+
o
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
f(J, "createCollection");
|
|
66
|
+
var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
67
|
+
static {
|
|
68
|
+
f(this, "OrderedDict");
|
|
69
|
+
}
|
|
70
|
+
#e;
|
|
71
|
+
constructor(e) {
|
|
72
|
+
super(e), this.#e = [...super.keys()], K.set(this, !0);
|
|
73
|
+
}
|
|
74
|
+
set(e, t) {
|
|
75
|
+
return K.get(this) && (this.has(e) ? this.#e[this.#e.indexOf(e)] = e : this.#e.push(e)), super.set(e, t), this;
|
|
76
|
+
}
|
|
77
|
+
insert(e, t, o) {
|
|
78
|
+
const n = this.has(t), i = this.#e.length, c = V(e);
|
|
79
|
+
let a = c >= 0 ? c : i + c;
|
|
80
|
+
const S = a < 0 || a >= i ? -1 : a;
|
|
81
|
+
if (S === this.size || n && S === this.size - 1 || S === -1)
|
|
82
|
+
return this.set(t, o), this;
|
|
83
|
+
const E = this.size + (n ? 0 : 1);
|
|
84
|
+
c < 0 && a++;
|
|
85
|
+
const y = [...this.#e];
|
|
86
|
+
let v, A = !1;
|
|
87
|
+
for (let d = a; d < E; d++) if (a === d) {
|
|
88
|
+
let x = y[d];
|
|
89
|
+
y[d] === t && (x = y[d + 1]), n && this.delete(t), v = this.get(x), this.set(t, o);
|
|
90
|
+
} else {
|
|
91
|
+
!A && y[d - 1] === t && (A = !0);
|
|
92
|
+
const x = y[A ? d : d - 1], p = v;
|
|
93
|
+
v = this.get(x), this.delete(x), this.set(x, p);
|
|
94
|
+
}
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
with(e, t, o) {
|
|
98
|
+
const n = new P(this);
|
|
99
|
+
return n.insert(e, t, o), n;
|
|
100
|
+
}
|
|
101
|
+
before(e) {
|
|
102
|
+
const t = this.#e.indexOf(e) - 1;
|
|
103
|
+
if (!(t < 0))
|
|
104
|
+
return this.entryAt(t);
|
|
105
|
+
}
|
|
106
|
+
setBefore(e, t, o) {
|
|
107
|
+
const n = this.#e.indexOf(e);
|
|
108
|
+
return n === -1 ? this : this.insert(n, t, o);
|
|
109
|
+
}
|
|
110
|
+
after(e) {
|
|
111
|
+
let t = this.#e.indexOf(e);
|
|
112
|
+
if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1)
|
|
113
|
+
return this.entryAt(t);
|
|
114
|
+
}
|
|
115
|
+
setAfter(e, t, o) {
|
|
116
|
+
const n = this.#e.indexOf(e);
|
|
117
|
+
return n === -1 ? this : this.insert(n + 1, t, o);
|
|
118
|
+
}
|
|
119
|
+
first() {
|
|
120
|
+
return this.entryAt(0);
|
|
121
|
+
}
|
|
122
|
+
last() {
|
|
123
|
+
return this.entryAt(-1);
|
|
124
|
+
}
|
|
125
|
+
clear() {
|
|
126
|
+
return this.#e = [], super.clear();
|
|
127
|
+
}
|
|
128
|
+
delete(e) {
|
|
129
|
+
const t = super.delete(e);
|
|
130
|
+
return t && this.#e.splice(this.#e.indexOf(e), 1), t;
|
|
131
|
+
}
|
|
132
|
+
deleteAt(e) {
|
|
133
|
+
const t = this.keyAt(e);
|
|
134
|
+
return t !== void 0 ? this.delete(t) : !1;
|
|
135
|
+
}
|
|
136
|
+
at(e) {
|
|
137
|
+
const t = _(this.#e, e);
|
|
138
|
+
if (t !== void 0) return this.get(t);
|
|
139
|
+
}
|
|
140
|
+
entryAt(e) {
|
|
141
|
+
const t = _(this.#e, e);
|
|
142
|
+
if (t !== void 0) return [t, this.get(t)];
|
|
143
|
+
}
|
|
144
|
+
indexOf(e) {
|
|
145
|
+
return this.#e.indexOf(e);
|
|
146
|
+
}
|
|
147
|
+
keyAt(e) {
|
|
148
|
+
return _(this.#e, e);
|
|
149
|
+
}
|
|
150
|
+
from(e, t) {
|
|
151
|
+
const o = this.indexOf(e);
|
|
152
|
+
if (o === -1) return;
|
|
153
|
+
let n = o + t;
|
|
154
|
+
return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.at(n);
|
|
155
|
+
}
|
|
156
|
+
keyFrom(e, t) {
|
|
157
|
+
const o = this.indexOf(e);
|
|
158
|
+
if (o === -1) return;
|
|
159
|
+
let n = o + t;
|
|
160
|
+
return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.keyAt(n);
|
|
161
|
+
}
|
|
162
|
+
find(e, t) {
|
|
163
|
+
let o = 0;
|
|
164
|
+
for (const n of this) {
|
|
165
|
+
if (Reflect.apply(e, t, [
|
|
166
|
+
n,
|
|
167
|
+
o,
|
|
168
|
+
this
|
|
169
|
+
])) return n;
|
|
170
|
+
o++;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
findIndex(e, t) {
|
|
174
|
+
let o = 0;
|
|
175
|
+
for (const n of this) {
|
|
176
|
+
if (Reflect.apply(e, t, [
|
|
177
|
+
n,
|
|
178
|
+
o,
|
|
179
|
+
this
|
|
180
|
+
])) return o;
|
|
181
|
+
o++;
|
|
182
|
+
}
|
|
183
|
+
return -1;
|
|
184
|
+
}
|
|
185
|
+
filter(e, t) {
|
|
186
|
+
const o = [];
|
|
187
|
+
let n = 0;
|
|
188
|
+
for (const i of this)
|
|
189
|
+
Reflect.apply(e, t, [
|
|
190
|
+
i,
|
|
191
|
+
n,
|
|
192
|
+
this
|
|
193
|
+
]) && o.push(i), n++;
|
|
194
|
+
return new P(o);
|
|
195
|
+
}
|
|
196
|
+
map(e, t) {
|
|
197
|
+
const o = [];
|
|
198
|
+
let n = 0;
|
|
199
|
+
for (const i of this)
|
|
200
|
+
o.push([i[0], Reflect.apply(e, t, [
|
|
201
|
+
i,
|
|
202
|
+
n,
|
|
203
|
+
this
|
|
204
|
+
])]), n++;
|
|
205
|
+
return new P(o);
|
|
206
|
+
}
|
|
207
|
+
reduce(...e) {
|
|
208
|
+
const [t, o] = e;
|
|
209
|
+
let n = 0, i = o ?? this.at(0);
|
|
210
|
+
for (const c of this)
|
|
211
|
+
n === 0 && e.length === 1 ? i = c : i = Reflect.apply(t, this, [
|
|
212
|
+
i,
|
|
213
|
+
c,
|
|
214
|
+
n,
|
|
215
|
+
this
|
|
216
|
+
]), n++;
|
|
217
|
+
return i;
|
|
218
|
+
}
|
|
219
|
+
reduceRight(...e) {
|
|
220
|
+
const [t, o] = e;
|
|
221
|
+
let n = o ?? this.at(-1);
|
|
222
|
+
for (let i = this.size - 1; i >= 0; i--) {
|
|
223
|
+
const c = this.at(i);
|
|
224
|
+
i === this.size - 1 && e.length === 1 ? n = c : n = Reflect.apply(t, this, [
|
|
225
|
+
n,
|
|
226
|
+
c,
|
|
227
|
+
i,
|
|
228
|
+
this
|
|
229
|
+
]);
|
|
230
|
+
}
|
|
231
|
+
return n;
|
|
232
|
+
}
|
|
233
|
+
toSorted(e) {
|
|
234
|
+
const t = [...this.entries()].sort(e);
|
|
235
|
+
return new P(t);
|
|
236
|
+
}
|
|
237
|
+
toReversed() {
|
|
238
|
+
const e = new P();
|
|
239
|
+
for (let t = this.size - 1; t >= 0; t--) {
|
|
240
|
+
const o = this.keyAt(t), n = this.get(o);
|
|
241
|
+
e.set(o, n);
|
|
242
|
+
}
|
|
243
|
+
return e;
|
|
244
|
+
}
|
|
245
|
+
toSpliced(...e) {
|
|
246
|
+
const t = [...this.entries()];
|
|
247
|
+
return t.splice(...e), new P(t);
|
|
248
|
+
}
|
|
249
|
+
slice(e, t) {
|
|
250
|
+
const o = new P();
|
|
251
|
+
let n = this.size - 1;
|
|
252
|
+
if (e === void 0) return o;
|
|
253
|
+
e < 0 && (e = e + this.size), t !== void 0 && t > 0 && (n = t - 1);
|
|
254
|
+
for (let i = e; i <= n; i++) {
|
|
255
|
+
const c = this.keyAt(i), a = this.get(c);
|
|
256
|
+
o.set(c, a);
|
|
257
|
+
}
|
|
258
|
+
return o;
|
|
259
|
+
}
|
|
260
|
+
every(e, t) {
|
|
261
|
+
let o = 0;
|
|
262
|
+
for (const n of this) {
|
|
263
|
+
if (!Reflect.apply(e, t, [
|
|
264
|
+
n,
|
|
265
|
+
o,
|
|
266
|
+
this
|
|
267
|
+
])) return !1;
|
|
268
|
+
o++;
|
|
269
|
+
}
|
|
270
|
+
return !0;
|
|
271
|
+
}
|
|
272
|
+
some(e, t) {
|
|
273
|
+
let o = 0;
|
|
274
|
+
for (const n of this) {
|
|
275
|
+
if (Reflect.apply(e, t, [
|
|
276
|
+
n,
|
|
277
|
+
o,
|
|
278
|
+
this
|
|
279
|
+
])) return !0;
|
|
280
|
+
o++;
|
|
281
|
+
}
|
|
282
|
+
return !1;
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
function _(r, e) {
|
|
286
|
+
if ("at" in Array.prototype) return Array.prototype.at.call(r, e);
|
|
287
|
+
const t = F(r, e);
|
|
288
|
+
return t === -1 ? void 0 : r[t];
|
|
289
|
+
}
|
|
290
|
+
f(_, "at");
|
|
291
|
+
function F(r, e) {
|
|
292
|
+
const t = r.length, o = V(e), n = o >= 0 ? o : t + o;
|
|
293
|
+
return n < 0 || n >= t ? -1 : n;
|
|
294
|
+
}
|
|
295
|
+
f(F, "toSafeIndex");
|
|
296
|
+
function V(r) {
|
|
297
|
+
return r !== r || r === 0 ? 0 : Math.trunc(r);
|
|
298
|
+
}
|
|
299
|
+
f(V, "toSafeInteger");
|
|
300
|
+
// @__NO_SIDE_EFFECTS__
|
|
301
|
+
function Q(r) {
|
|
302
|
+
const e = r + "CollectionProvider", [t, o] = $(e), [n, i] = t(e, {
|
|
303
|
+
collectionElement: null,
|
|
304
|
+
collectionRef: { current: null },
|
|
305
|
+
collectionRefObject: { current: null },
|
|
306
|
+
itemMap: new b(),
|
|
307
|
+
setItemMap: /* @__PURE__ */ f(() => {
|
|
308
|
+
}, "setItemMap")
|
|
309
|
+
}), c = /* @__PURE__ */ f(({ state: s, ...l }) => s ? /* @__PURE__ */ M(S, {
|
|
310
|
+
...l,
|
|
311
|
+
state: s
|
|
312
|
+
}) : /* @__PURE__ */ M(a, { ...l }), "CollectionProvider");
|
|
313
|
+
c.displayName = e;
|
|
314
|
+
const a = /* @__PURE__ */ f((s) => {
|
|
315
|
+
const l = h();
|
|
316
|
+
return /* @__PURE__ */ M(S, {
|
|
317
|
+
...s,
|
|
318
|
+
state: l
|
|
319
|
+
});
|
|
320
|
+
}, "CollectionInit");
|
|
321
|
+
a.displayName = e + "Init";
|
|
322
|
+
const S = /* @__PURE__ */ f((s) => {
|
|
323
|
+
const { scope: l, children: m, state: w } = s, R = u.useRef(null), [N, C] = u.useState(null), k = D(R, C), [L, T] = w;
|
|
324
|
+
return u.useEffect(() => {
|
|
325
|
+
if (!N) return;
|
|
326
|
+
const g = W(() => {
|
|
327
|
+
});
|
|
328
|
+
return g.observe(N, {
|
|
329
|
+
childList: !0,
|
|
330
|
+
subtree: !0
|
|
331
|
+
}), () => {
|
|
332
|
+
g.disconnect();
|
|
333
|
+
};
|
|
334
|
+
}, [N]), /* @__PURE__ */ M(n, {
|
|
335
|
+
scope: l,
|
|
336
|
+
itemMap: L,
|
|
337
|
+
setItemMap: T,
|
|
338
|
+
collectionRef: k,
|
|
339
|
+
collectionRefObject: R,
|
|
340
|
+
collectionElement: N,
|
|
341
|
+
children: m
|
|
342
|
+
});
|
|
343
|
+
}, "CollectionProviderImpl");
|
|
344
|
+
S.displayName = e + "Impl";
|
|
345
|
+
const E = r + "CollectionSlot", y = z(E), v = u.forwardRef((s, l) => {
|
|
346
|
+
const { scope: m, children: w } = s, R = D(l, i(E, m).collectionRef);
|
|
347
|
+
return /* @__PURE__ */ M(y, {
|
|
348
|
+
ref: R,
|
|
349
|
+
children: w
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
v.displayName = E;
|
|
353
|
+
const A = r + "CollectionItemSlot", d = "data-radix-collection-item", x = z(A), p = u.forwardRef((s, l) => {
|
|
354
|
+
const { scope: m, children: w, ...R } = s, N = u.useRef(null), [C, k] = u.useState(null), L = D(l, N, k), { setItemMap: T } = i(A, m), g = u.useRef(R);
|
|
355
|
+
G(g.current, R) || (g.current = R);
|
|
356
|
+
const B = g.current;
|
|
357
|
+
return u.useEffect(() => {
|
|
358
|
+
const q = B;
|
|
359
|
+
return T((O) => C ? O.has(C) ? O.set(C, {
|
|
360
|
+
...q,
|
|
361
|
+
element: C
|
|
362
|
+
}).toSorted(j) : (O.set(C, {
|
|
363
|
+
...q,
|
|
364
|
+
element: C
|
|
365
|
+
}), O.toSorted(j)) : O), () => {
|
|
366
|
+
T((O) => !C || !O.has(C) ? O : (O.delete(C), new b(O)));
|
|
367
|
+
};
|
|
368
|
+
}, [
|
|
369
|
+
C,
|
|
370
|
+
B,
|
|
371
|
+
T
|
|
372
|
+
]), /* @__PURE__ */ M(x, {
|
|
373
|
+
[d]: "",
|
|
374
|
+
ref: L,
|
|
375
|
+
children: w
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
p.displayName = A;
|
|
379
|
+
function h() {
|
|
380
|
+
return u.useState(new b());
|
|
381
|
+
}
|
|
382
|
+
f(h, "useInitCollection");
|
|
383
|
+
function I(s) {
|
|
384
|
+
const { itemMap: l } = i(r + "CollectionConsumer", s);
|
|
385
|
+
return l;
|
|
386
|
+
}
|
|
387
|
+
return f(I, "useCollection"), [{
|
|
388
|
+
Provider: c,
|
|
389
|
+
Slot: v,
|
|
390
|
+
ItemSlot: p
|
|
391
|
+
}, {
|
|
392
|
+
createCollectionScope: o,
|
|
393
|
+
useCollection: I,
|
|
394
|
+
useInitCollection: h
|
|
395
|
+
}];
|
|
396
|
+
}
|
|
397
|
+
f(Q, "createCollection");
|
|
398
|
+
function G(r, e) {
|
|
399
|
+
if (r === e) return !0;
|
|
400
|
+
if (typeof r != "object" || typeof e != "object" || r == null || e == null) return !1;
|
|
401
|
+
const t = Object.keys(r), o = Object.keys(e);
|
|
402
|
+
if (t.length !== o.length) return !1;
|
|
403
|
+
for (const n of t)
|
|
404
|
+
if (!Object.prototype.hasOwnProperty.call(e, n) || r[n] !== e[n]) return !1;
|
|
405
|
+
return !0;
|
|
406
|
+
}
|
|
407
|
+
f(G, "shallowEqual");
|
|
408
|
+
function U(r, e) {
|
|
409
|
+
return !!(e.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
410
|
+
}
|
|
411
|
+
f(U, "isElementPreceding");
|
|
412
|
+
function j(r, e) {
|
|
413
|
+
return !r[1].element || !e[1].element ? 0 : U(r[1].element, e[1].element) ? -1 : 1;
|
|
414
|
+
}
|
|
415
|
+
f(j, "sortByDocumentPosition");
|
|
416
|
+
function W(r) {
|
|
417
|
+
return new MutationObserver((e) => {
|
|
418
|
+
for (const t of e) if (t.type === "childList") {
|
|
419
|
+
r();
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
f(W, "getChildListObserver");
|
|
425
|
+
export {
|
|
426
|
+
J as t
|
|
427
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
3
|
+
var N = Object.defineProperty, f = (e, t) => N(e, "name", {
|
|
4
|
+
value: t,
|
|
5
|
+
configurable: !0
|
|
6
|
+
});
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
8
|
+
function T(e, t) {
|
|
9
|
+
const n = r.createContext(t);
|
|
10
|
+
n.displayName = e + "Context";
|
|
11
|
+
const i = /* @__PURE__ */ f((c) => {
|
|
12
|
+
const { children: s, ...u } = c, l = r.useMemo(() => u, Object.values(u));
|
|
13
|
+
return /* @__PURE__ */ P(n.Provider, {
|
|
14
|
+
value: l,
|
|
15
|
+
children: s
|
|
16
|
+
});
|
|
17
|
+
}, "Provider");
|
|
18
|
+
i.displayName = e + "Provider";
|
|
19
|
+
function o(c, s = {}) {
|
|
20
|
+
const { optional: u = !1 } = s, l = r.useContext(n);
|
|
21
|
+
if (l) return l;
|
|
22
|
+
if (t !== void 0) return t;
|
|
23
|
+
if (!u)
|
|
24
|
+
throw new Error(`\`${c}\` must be used within \`${e}\``);
|
|
25
|
+
}
|
|
26
|
+
return f(o, "useContext"), [i, o];
|
|
27
|
+
}
|
|
28
|
+
f(T, "createContext");
|
|
29
|
+
// @__NO_SIDE_EFFECTS__
|
|
30
|
+
function U(e, t = []) {
|
|
31
|
+
let n = [];
|
|
32
|
+
function i(c, s) {
|
|
33
|
+
const u = r.createContext(s);
|
|
34
|
+
u.displayName = c + "Context";
|
|
35
|
+
const l = n.length;
|
|
36
|
+
n = [...n, s];
|
|
37
|
+
const a = /* @__PURE__ */ f((m) => {
|
|
38
|
+
const { scope: w, children: v, ...p } = m, h = w?.[e]?.[l] || u, C = r.useMemo(() => p, Object.values(p));
|
|
39
|
+
return /* @__PURE__ */ P(h.Provider, {
|
|
40
|
+
value: C,
|
|
41
|
+
children: v
|
|
42
|
+
});
|
|
43
|
+
}, "Provider");
|
|
44
|
+
a.displayName = c + "Provider";
|
|
45
|
+
function d(m, w, v = {}) {
|
|
46
|
+
const { optional: p = !1 } = v, h = w?.[e]?.[l] || u, C = r.useContext(h);
|
|
47
|
+
if (C) return C;
|
|
48
|
+
if (s !== void 0) return s;
|
|
49
|
+
if (!p)
|
|
50
|
+
throw new Error(`\`${m}\` must be used within \`${c}\``);
|
|
51
|
+
}
|
|
52
|
+
return f(d, "useContext"), [a, d];
|
|
53
|
+
}
|
|
54
|
+
f(i, "createContext");
|
|
55
|
+
const o = /* @__PURE__ */ f(() => {
|
|
56
|
+
const c = n.map((s) => r.createContext(s));
|
|
57
|
+
return /* @__PURE__ */ f(function(u) {
|
|
58
|
+
const l = u?.[e] || c;
|
|
59
|
+
return r.useMemo(() => ({ [`__scope${e}`]: {
|
|
60
|
+
...u,
|
|
61
|
+
[e]: l
|
|
62
|
+
} }), [u, l]);
|
|
63
|
+
}, "useScope");
|
|
64
|
+
}, "createScope");
|
|
65
|
+
return o.scopeName = e, [i, y(o, ...t)];
|
|
66
|
+
}
|
|
67
|
+
f(U, "createContextScope");
|
|
68
|
+
function y(...e) {
|
|
69
|
+
const t = e[0];
|
|
70
|
+
if (e.length === 1) return t;
|
|
71
|
+
const n = /* @__PURE__ */ f(() => {
|
|
72
|
+
const i = e.map((o) => ({
|
|
73
|
+
useScope: o(),
|
|
74
|
+
scopeName: o.scopeName
|
|
75
|
+
}));
|
|
76
|
+
return /* @__PURE__ */ f(function(c) {
|
|
77
|
+
const s = i.reduce((u, { useScope: l, scopeName: a }) => {
|
|
78
|
+
const d = l(c)[`__scope${a}`];
|
|
79
|
+
return {
|
|
80
|
+
...u,
|
|
81
|
+
...d
|
|
82
|
+
};
|
|
83
|
+
}, {});
|
|
84
|
+
return r.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
85
|
+
}, "useComposedScopes");
|
|
86
|
+
}, "createScope");
|
|
87
|
+
return n.scopeName = t.scopeName, n;
|
|
88
|
+
}
|
|
89
|
+
f(y, "composeContextScopes");
|
|
90
|
+
var H = Object.defineProperty, E = (e, t) => H(e, "name", {
|
|
91
|
+
value: t,
|
|
92
|
+
configurable: !0
|
|
93
|
+
}), O = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
94
|
+
function B(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
95
|
+
return /* @__PURE__ */ E(function(o) {
|
|
96
|
+
if (e?.(o), n === !1 || !o || !o.defaultPrevented) return t?.(o);
|
|
97
|
+
}, "handleEvent");
|
|
98
|
+
}
|
|
99
|
+
E(B, "composeEventHandlers");
|
|
100
|
+
function L(e) {
|
|
101
|
+
if (!O) throw new Error("Cannot access window outside of the DOM");
|
|
102
|
+
return e?.ownerDocument?.defaultView ?? window;
|
|
103
|
+
}
|
|
104
|
+
E(L, "getOwnerWindow");
|
|
105
|
+
function x(e) {
|
|
106
|
+
if (!O) throw new Error("Cannot access document outside of the DOM");
|
|
107
|
+
return e?.ownerDocument ?? document;
|
|
108
|
+
}
|
|
109
|
+
E(x, "getOwnerDocument");
|
|
110
|
+
function D(e, t = !1) {
|
|
111
|
+
const { activeElement: n } = x(e);
|
|
112
|
+
if (!n?.nodeName) return null;
|
|
113
|
+
if (M(n) && n.contentDocument) return D(n.contentDocument.body, t);
|
|
114
|
+
if (t) {
|
|
115
|
+
const i = n.getAttribute("aria-activedescendant");
|
|
116
|
+
if (i) {
|
|
117
|
+
const o = x(n).getElementById(i);
|
|
118
|
+
if (o) return o;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return n;
|
|
122
|
+
}
|
|
123
|
+
E(D, "getActiveElement");
|
|
124
|
+
function M(e) {
|
|
125
|
+
return e.tagName === "IFRAME";
|
|
126
|
+
}
|
|
127
|
+
E(M, "isFrame");
|
|
128
|
+
var j = globalThis?.document ? r.useLayoutEffect : () => {
|
|
129
|
+
}, W = Object.defineProperty, Y = (e, t) => W(e, "name", {
|
|
130
|
+
value: t,
|
|
131
|
+
configurable: !0
|
|
132
|
+
}), $ = r[" useEffectEvent ".trim().toString()], b = r[" useInsertionEffect ".trim().toString()];
|
|
133
|
+
function A(e) {
|
|
134
|
+
if (typeof $ == "function") return $(e);
|
|
135
|
+
const t = r.useRef(() => {
|
|
136
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
137
|
+
});
|
|
138
|
+
return typeof b == "function" ? b(() => {
|
|
139
|
+
t.current = e;
|
|
140
|
+
}) : j(() => {
|
|
141
|
+
t.current = e;
|
|
142
|
+
}), r.useMemo(() => ((...n) => t.current?.(...n)), []);
|
|
143
|
+
}
|
|
144
|
+
Y(A, "useEffectEvent");
|
|
145
|
+
var V = Object.defineProperty, S = (e, t) => V(e, "name", {
|
|
146
|
+
value: t,
|
|
147
|
+
configurable: !0
|
|
148
|
+
}), X = r[" useInsertionEffect ".trim().toString()] || j;
|
|
149
|
+
function k({ prop: e, defaultProp: t, onChange: n = /* @__PURE__ */ S(() => {
|
|
150
|
+
}, "onChange"), caller: i }) {
|
|
151
|
+
const [o, c, s] = I({
|
|
152
|
+
defaultProp: t,
|
|
153
|
+
onChange: n
|
|
154
|
+
}), u = e !== void 0;
|
|
155
|
+
return [u ? e : o, r.useCallback((a) => {
|
|
156
|
+
if (u) {
|
|
157
|
+
const d = F(a) ? a(e) : a;
|
|
158
|
+
d !== e && s.current?.(d);
|
|
159
|
+
} else c(a);
|
|
160
|
+
}, [
|
|
161
|
+
u,
|
|
162
|
+
e,
|
|
163
|
+
c,
|
|
164
|
+
s
|
|
165
|
+
])];
|
|
166
|
+
}
|
|
167
|
+
S(k, "useControllableState");
|
|
168
|
+
function I({ defaultProp: e, onChange: t }) {
|
|
169
|
+
const [n, i] = r.useState(e), o = r.useRef(n), c = r.useRef(t);
|
|
170
|
+
return X(() => {
|
|
171
|
+
c.current = t;
|
|
172
|
+
}, [t]), r.useEffect(() => {
|
|
173
|
+
o.current !== n && (c.current?.(n), o.current = n);
|
|
174
|
+
}, [n, o]), [
|
|
175
|
+
n,
|
|
176
|
+
i,
|
|
177
|
+
c
|
|
178
|
+
];
|
|
179
|
+
}
|
|
180
|
+
S(I, "useUncontrolledState");
|
|
181
|
+
function F(e) {
|
|
182
|
+
return typeof e == "function";
|
|
183
|
+
}
|
|
184
|
+
S(F, "isFunction");
|
|
185
|
+
var _ = /* @__PURE__ */ Symbol("RADIX:SYNC_STATE");
|
|
186
|
+
function q(e, t, n, i) {
|
|
187
|
+
const { prop: o, defaultProp: c, onChange: s, caller: u } = t, l = o !== void 0, a = A(s), d = [{
|
|
188
|
+
...n,
|
|
189
|
+
state: c
|
|
190
|
+
}];
|
|
191
|
+
i && d.push(i);
|
|
192
|
+
const [m, w] = r.useReducer((C, g) => {
|
|
193
|
+
if (g.type === _) return {
|
|
194
|
+
...C,
|
|
195
|
+
state: g.state
|
|
196
|
+
};
|
|
197
|
+
const R = e(C, g);
|
|
198
|
+
return l && !Object.is(R.state, C.state) && a(R.state), R;
|
|
199
|
+
}, ...d), v = m.state, p = r.useRef(v);
|
|
200
|
+
r.useEffect(() => {
|
|
201
|
+
p.current !== v && (p.current = v, l || a(v));
|
|
202
|
+
}, [
|
|
203
|
+
v,
|
|
204
|
+
p,
|
|
205
|
+
l
|
|
206
|
+
]);
|
|
207
|
+
const h = r.useMemo(() => o !== void 0 ? {
|
|
208
|
+
...m,
|
|
209
|
+
state: o
|
|
210
|
+
} : m, [m, o]);
|
|
211
|
+
return r.useEffect(() => {
|
|
212
|
+
l && !Object.is(o, m.state) && w({
|
|
213
|
+
type: _,
|
|
214
|
+
state: o
|
|
215
|
+
});
|
|
216
|
+
}, [
|
|
217
|
+
o,
|
|
218
|
+
m.state,
|
|
219
|
+
l
|
|
220
|
+
]), [h, w];
|
|
221
|
+
}
|
|
222
|
+
S(q, "useControllableStateReducer");
|
|
223
|
+
export {
|
|
224
|
+
U as i,
|
|
225
|
+
j as n,
|
|
226
|
+
B as r,
|
|
227
|
+
k as t
|
|
228
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
var f = Object.defineProperty, u = (e, r) => f(e, "name", {
|
|
3
|
+
value: r,
|
|
4
|
+
configurable: !0
|
|
5
|
+
});
|
|
6
|
+
function c(e) {
|
|
7
|
+
const r = t.useRef(e);
|
|
8
|
+
return t.useEffect(() => {
|
|
9
|
+
r.current = e;
|
|
10
|
+
}), t.useMemo(() => ((...a) => r.current?.(...a)), []);
|
|
11
|
+
}
|
|
12
|
+
u(c, "useCallbackRef");
|
|
13
|
+
export {
|
|
14
|
+
c as t
|
|
15
|
+
};
|