@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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as j } from "./dist-
|
|
2
|
-
import { t as R } from "./dist-
|
|
3
|
-
import { t as q } from "./dist-
|
|
4
|
-
import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-
|
|
1
|
+
import { i as j } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { t as R } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { t as q } from "./dist-DYIabsrY.js";
|
|
4
|
+
import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-C3YVLapk.js";
|
|
5
5
|
import * as n from "react";
|
|
6
6
|
var ce = 1, xe = 0.9, Ce = 0.8, Re = 0.17, Y = 0.1, Q = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, fe = /[\s-]/g;
|
|
7
7
|
function _(t, l, r, f, u, c, d) {
|
|
8
8
|
if (c === l.length) return u === t.length ? ce : Me;
|
|
9
|
-
var
|
|
10
|
-
if (d[
|
|
9
|
+
var v = `${u},${c}`;
|
|
10
|
+
if (d[v] !== void 0) return d[v];
|
|
11
11
|
for (var b = f.charAt(c), i = r.indexOf(b, u), p = 0, h, I, y, x; i >= 0; ) h = _(t, l, r, f, i + 1, c + 1, d), h > p && (i === u ? h *= ce : $e.test(t.charAt(i - 1)) ? (h *= Ce, y = t.slice(u, i - 1).match(De), y && u > 0 && (h *= Math.pow(Q, y.length))) : Fe.test(t.charAt(i - 1)) ? (h *= xe, x = t.slice(u, i - 1).match(fe), x && u > 0 && (h *= Math.pow(Q, x.length))) : (h *= Re, u > 0 && (h *= Math.pow(Q, i - u))), t.charAt(i) !== l.charAt(c) && (h *= Ae)), (h < Y && r.charAt(i - 1) === f.charAt(c + 1) || f.charAt(c + 1) === f.charAt(c) && r.charAt(i - 1) !== f.charAt(c)) && (I = _(t, l, r, f, i + 1, c + 2, d), I * Y > h && (h = I * Y)), h > p && (p = h), i = r.indexOf(b, i + 1);
|
|
12
|
-
return d[
|
|
12
|
+
return d[v] = p, p;
|
|
13
13
|
}
|
|
14
14
|
function de(t) {
|
|
15
15
|
return t.toLowerCase().replace(fe, " ");
|
|
@@ -17,7 +17,7 @@ function de(t) {
|
|
|
17
17
|
function Ke(t, l, r) {
|
|
18
18
|
return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, _(t, l, de(t), de(l), 0, 0, {});
|
|
19
19
|
}
|
|
20
|
-
var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-heading=""]',
|
|
20
|
+
var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-heading=""]', ve = '[cmdk-item=""]', se = `${ve}:not([aria-disabled="true"])`, ee = "cmdk-item-select", F = "data-value", Pe = (t, l, r) => Ke(t, l, r), me = n.createContext(void 0), L = () => n.useContext(me), pe = n.createContext(void 0), te = () => n.useContext(pe), he = n.createContext(void 0), ge = n.forwardRef((t, l) => {
|
|
21
21
|
let r = K(() => {
|
|
22
22
|
var e, o;
|
|
23
23
|
return {
|
|
@@ -30,7 +30,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
30
30
|
groups: /* @__PURE__ */ new Set()
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
}), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()),
|
|
33
|
+
}), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()), v = be(t), { label: b, children: i, value: p, onValueChange: h, filter: I, shouldFilter: y, loop: x, disablePointerSelection: z = !1, vimBindings: A = !0, ...O } = t, U = q(), re = q(), H = q(), M = n.useRef(null), w = We();
|
|
34
34
|
$(() => {
|
|
35
35
|
if (p !== void 0) {
|
|
36
36
|
let e = p.trim();
|
|
@@ -43,7 +43,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
43
43
|
subscribe: (e) => (d.current.add(e), () => d.current.delete(e)),
|
|
44
44
|
snapshot: () => r.current,
|
|
45
45
|
setState: (e, o, s) => {
|
|
46
|
-
var a,
|
|
46
|
+
var a, m, g, k;
|
|
47
47
|
if (!Object.is(r.current[e], o)) {
|
|
48
48
|
if (r.current[e] = o, e === "search") G(), T(), w(1, W);
|
|
49
49
|
else if (e === "value") {
|
|
@@ -54,9 +54,9 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
54
54
|
if (w(7, () => {
|
|
55
55
|
var S;
|
|
56
56
|
r.current.selectedItemId = (S = D()) == null ? void 0 : S.id, E.emit();
|
|
57
|
-
}), s || w(5, le), ((
|
|
57
|
+
}), s || w(5, le), ((m = v.current) == null ? void 0 : m.value) !== void 0) {
|
|
58
58
|
let S = o ?? "";
|
|
59
|
-
(k = (g =
|
|
59
|
+
(k = (g = v.current).onValueChange) == null || k.call(g, S);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -88,9 +88,9 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
88
88
|
group: (e) => (u.current.has(e) || u.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
89
89
|
c.current.delete(e), u.current.delete(e);
|
|
90
90
|
}),
|
|
91
|
-
filter: () =>
|
|
91
|
+
filter: () => v.current.shouldFilter,
|
|
92
92
|
label: b || t["aria-label"],
|
|
93
|
-
getDisablePointerSelection: () =>
|
|
93
|
+
getDisablePointerSelection: () => v.current.disablePointerSelection,
|
|
94
94
|
listId: U,
|
|
95
95
|
inputId: H,
|
|
96
96
|
labelId: re,
|
|
@@ -98,30 +98,30 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
98
98
|
}), []);
|
|
99
99
|
function ne(e, o) {
|
|
100
100
|
var s, a;
|
|
101
|
-
let
|
|
102
|
-
return e ?
|
|
101
|
+
let m = (a = (s = v.current) == null ? void 0 : s.filter) != null ? a : Pe;
|
|
102
|
+
return e ? m(e, r.current.search, o) : 0;
|
|
103
103
|
}
|
|
104
104
|
function T() {
|
|
105
|
-
if (!r.current.search ||
|
|
105
|
+
if (!r.current.search || v.current.shouldFilter === !1) return;
|
|
106
106
|
let e = r.current.filtered.items, o = [];
|
|
107
107
|
r.current.filtered.groups.forEach((a) => {
|
|
108
|
-
let
|
|
109
|
-
|
|
108
|
+
let m = u.current.get(a), g = 0;
|
|
109
|
+
m.forEach((k) => {
|
|
110
110
|
let S = e.get(k);
|
|
111
111
|
g = Math.max(S, g);
|
|
112
112
|
}), o.push([a, g]);
|
|
113
113
|
});
|
|
114
114
|
let s = M.current;
|
|
115
|
-
P().sort((a,
|
|
115
|
+
P().sort((a, m) => {
|
|
116
116
|
var g, k;
|
|
117
|
-
let S = a.getAttribute("id"), ye =
|
|
117
|
+
let S = a.getAttribute("id"), ye = m.getAttribute("id");
|
|
118
118
|
return ((g = e.get(ye)) != null ? g : 0) - ((k = e.get(S)) != null ? k : 0);
|
|
119
119
|
}).forEach((a) => {
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
}), o.sort((a,
|
|
123
|
-
var
|
|
124
|
-
let g = (
|
|
120
|
+
let m = a.closest(Z);
|
|
121
|
+
m ? m.appendChild(a.parentElement === m ? a : a.closest(`${Z} > *`)) : s.appendChild(a.parentElement === s ? a : a.closest(`${Z} > *`));
|
|
122
|
+
}), o.sort((a, m) => m[1] - a[1]).forEach((a) => {
|
|
123
|
+
var m;
|
|
124
|
+
let g = (m = M.current) == null ? void 0 : m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);
|
|
125
125
|
g?.parentElement.appendChild(g);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -131,21 +131,21 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
131
131
|
}
|
|
132
132
|
function G() {
|
|
133
133
|
var e, o, s, a;
|
|
134
|
-
if (!r.current.search ||
|
|
134
|
+
if (!r.current.search || v.current.shouldFilter === !1) {
|
|
135
135
|
r.current.filtered.count = f.current.size;
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
139
|
-
let
|
|
139
|
+
let m = 0;
|
|
140
140
|
for (let g of f.current) {
|
|
141
141
|
let k = ne((o = (e = c.current.get(g)) == null ? void 0 : e.value) != null ? o : "", (a = (s = c.current.get(g)) == null ? void 0 : s.keywords) != null ? a : []);
|
|
142
|
-
r.current.filtered.items.set(g, k), k > 0 &&
|
|
142
|
+
r.current.filtered.items.set(g, k), k > 0 && m++;
|
|
143
143
|
}
|
|
144
144
|
for (let [g, k] of u.current) for (let S of k) if (r.current.filtered.items.get(S) > 0) {
|
|
145
145
|
r.current.filtered.groups.add(g);
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
|
-
r.current.filtered.count =
|
|
148
|
+
r.current.filtered.count = m;
|
|
149
149
|
}
|
|
150
150
|
function le() {
|
|
151
151
|
var e, o, s;
|
|
@@ -154,7 +154,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
154
154
|
}
|
|
155
155
|
function D() {
|
|
156
156
|
var e;
|
|
157
|
-
return (e = M.current) == null ? void 0 : e.querySelector(`${
|
|
157
|
+
return (e = M.current) == null ? void 0 : e.querySelector(`${ve}[aria-selected="true"]`);
|
|
158
158
|
}
|
|
159
159
|
function P() {
|
|
160
160
|
var e;
|
|
@@ -166,8 +166,8 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
166
166
|
}
|
|
167
167
|
function X(e) {
|
|
168
168
|
var o;
|
|
169
|
-
let s = D(), a = P(),
|
|
170
|
-
(o =
|
|
169
|
+
let s = D(), a = P(), m = a.findIndex((k) => k === s), g = a[m + e];
|
|
170
|
+
(o = v.current) != null && o.loop && (g = m + e < 0 ? a[a.length - 1] : m + e === a.length ? a[0] : a[m + e]), g && E.setState("value", g.getAttribute(F));
|
|
171
171
|
}
|
|
172
172
|
function ae(e) {
|
|
173
173
|
let o = D(), s = o?.closest(V), a;
|
|
@@ -213,8 +213,8 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
213
213
|
e.preventDefault();
|
|
214
214
|
let a = D();
|
|
215
215
|
if (a) {
|
|
216
|
-
let
|
|
217
|
-
a.dispatchEvent(
|
|
216
|
+
let m = new Event(ee);
|
|
217
|
+
a.dispatchEvent(m);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -224,18 +224,18 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
224
224
|
htmlFor: N.inputId,
|
|
225
225
|
id: N.labelId,
|
|
226
226
|
style: Je
|
|
227
|
-
}, b), B(t, (e) => n.createElement(pe.Provider, { value: E }, n.createElement(
|
|
227
|
+
}, b), B(t, (e) => n.createElement(pe.Provider, { value: E }, n.createElement(me.Provider, { value: N }, e))));
|
|
228
228
|
}), Ve = n.forwardRef((t, l) => {
|
|
229
229
|
var r, f;
|
|
230
|
-
let u = q(), c = n.useRef(null), d = n.useContext(he),
|
|
230
|
+
let u = q(), c = n.useRef(null), d = n.useContext(he), v = L(), b = be(t), i = (f = (r = b.current) == null ? void 0 : r.forceMount) != null ? f : d?.forceMount;
|
|
231
231
|
$(() => {
|
|
232
|
-
if (!i) return
|
|
232
|
+
if (!i) return v.item(u, d?.id);
|
|
233
233
|
}, [i]);
|
|
234
234
|
let p = we(u, c, [
|
|
235
235
|
t.value,
|
|
236
236
|
t.children,
|
|
237
237
|
c
|
|
238
|
-
], t.keywords), h = te(), I = C((w) => w.value && w.value === p.current), y = C((w) => i ||
|
|
238
|
+
], t.keywords), h = te(), I = C((w) => w.value && w.value === p.current), y = C((w) => i || v.filter() === !1 ? !0 : w.search ? w.filtered.items.get(u) > 0 : !0);
|
|
239
239
|
n.useEffect(() => {
|
|
240
240
|
let w = c.current;
|
|
241
241
|
if (!(!w || t.disabled)) return w.addEventListener(ee, x), () => w.removeEventListener(ee, x);
|
|
@@ -263,12 +263,12 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
263
263
|
"aria-selected": !!I,
|
|
264
264
|
"data-disabled": !!A,
|
|
265
265
|
"data-selected": !!I,
|
|
266
|
-
onPointerMove: A ||
|
|
266
|
+
onPointerMove: A || v.getDisablePointerSelection() ? void 0 : z,
|
|
267
267
|
onClick: A ? void 0 : x
|
|
268
268
|
}, t.children);
|
|
269
269
|
}), je = n.forwardRef((t, l) => {
|
|
270
|
-
let { heading: r, children: f, forceMount: u, ...c } = t, d = q(),
|
|
271
|
-
$(() => p.group(d), []), we(d,
|
|
270
|
+
let { heading: r, children: f, forceMount: u, ...c } = t, d = q(), v = n.useRef(null), b = n.useRef(null), i = q(), p = L(), h = C((y) => u || p.filter() === !1 ? !0 : y.search ? y.filtered.groups.has(d) : !0);
|
|
271
|
+
$(() => p.group(d), []), we(d, v, [
|
|
272
272
|
t.value,
|
|
273
273
|
t.heading,
|
|
274
274
|
b
|
|
@@ -278,7 +278,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
278
278
|
forceMount: u
|
|
279
279
|
}), [u]);
|
|
280
280
|
return n.createElement(R.div, {
|
|
281
|
-
ref: j(
|
|
281
|
+
ref: j(v, l),
|
|
282
282
|
...c,
|
|
283
283
|
"cmdk-group": "",
|
|
284
284
|
role: "presentation",
|
|
@@ -302,7 +302,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
302
302
|
role: "separator"
|
|
303
303
|
});
|
|
304
304
|
}), Oe = n.forwardRef((t, l) => {
|
|
305
|
-
let { onValueChange: r, ...f } = t, u = t.value != null, c = te(), d = C((i) => i.search),
|
|
305
|
+
let { onValueChange: r, ...f } = t, u = t.value != null, c = te(), d = C((i) => i.search), v = C((i) => i.selectedItemId), b = L();
|
|
306
306
|
return n.useEffect(() => {
|
|
307
307
|
t.value != null && c.setState("search", t.value);
|
|
308
308
|
}, [t.value]), n.createElement(R.input, {
|
|
@@ -317,7 +317,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
317
317
|
"aria-expanded": !0,
|
|
318
318
|
"aria-controls": b.listId,
|
|
319
319
|
"aria-labelledby": b.labelId,
|
|
320
|
-
"aria-activedescendant":
|
|
320
|
+
"aria-activedescendant": v,
|
|
321
321
|
id: b.inputId,
|
|
322
322
|
type: "text",
|
|
323
323
|
value: u ? t.value : d,
|
|
@@ -326,7 +326,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
}), Be = n.forwardRef((t, l) => {
|
|
329
|
-
let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null),
|
|
329
|
+
let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null), v = C((i) => i.selectedItemId), b = L();
|
|
330
330
|
return n.useEffect(() => {
|
|
331
331
|
if (d.current && c.current) {
|
|
332
332
|
let i = d.current, p = c.current, h, I = new ResizeObserver(() => {
|
|
@@ -345,7 +345,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
345
345
|
"cmdk-list": "",
|
|
346
346
|
role: "listbox",
|
|
347
347
|
tabIndex: -1,
|
|
348
|
-
"aria-activedescendant":
|
|
348
|
+
"aria-activedescendant": v,
|
|
349
349
|
"aria-label": f,
|
|
350
350
|
id: b.listId
|
|
351
351
|
}, B(t, (i) => n.createElement("div", {
|
|
@@ -353,7 +353,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
353
353
|
"cmdk-list-sizer": ""
|
|
354
354
|
}, i)));
|
|
355
355
|
}), ze = n.forwardRef((t, l) => {
|
|
356
|
-
let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...
|
|
356
|
+
let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...v } = t;
|
|
357
357
|
return n.createElement(Ie, {
|
|
358
358
|
open: r,
|
|
359
359
|
onOpenChange: f
|
|
@@ -366,7 +366,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
|
|
|
366
366
|
className: c
|
|
367
367
|
}, n.createElement(ge, {
|
|
368
368
|
ref: l,
|
|
369
|
-
...
|
|
369
|
+
...v
|
|
370
370
|
}))));
|
|
371
371
|
}), Ue = n.forwardRef((t, l) => C((r) => r.filtered.count === 0) ? n.createElement(R.div, {
|
|
372
372
|
ref: l,
|
|
@@ -428,14 +428,14 @@ function we(t, l, r, f = []) {
|
|
|
428
428
|
let u = n.useRef(), c = L();
|
|
429
429
|
return $(() => {
|
|
430
430
|
var d;
|
|
431
|
-
let
|
|
431
|
+
let v = (() => {
|
|
432
432
|
var i;
|
|
433
433
|
for (let p of r) {
|
|
434
434
|
if (typeof p == "string") return p.trim();
|
|
435
435
|
if (typeof p == "object" && "current" in p) return p.current ? (i = p.current.textContent) == null ? void 0 : i.trim() : u.current;
|
|
436
436
|
}
|
|
437
437
|
})(), b = f.map((i) => i.trim());
|
|
438
|
-
c.value(t,
|
|
438
|
+
c.value(t, v, b), (d = l.current) == null || d.setAttribute(F, v), u.current = v;
|
|
439
439
|
}), u;
|
|
440
440
|
}
|
|
441
441
|
var We = () => {
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { a as _, n as D } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { t as M } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { i as I, r as m, t as T } from "./dist-D-yS0HN8.js";
|
|
4
|
+
import { t as k } from "./dist-DYIabsrY.js";
|
|
5
|
+
import { n as y } from "./dist-DKryKPmP.js";
|
|
6
|
+
import { n as N, r as $, t as G } from "./es2015-CoHq2g4y.js";
|
|
7
|
+
import { t as L } from "./dist-C4j75TwZ.js";
|
|
8
|
+
import { t as A } from "./dist-BUocnzkM.js";
|
|
9
|
+
import { t as j } from "./Combination-CnMM05mt.js";
|
|
10
|
+
import { a as b, i as H, r as K, t as U } from "./dist-DFCz63oC2.js";
|
|
11
|
+
import * as i from "react";
|
|
12
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
13
|
+
var V = Object.defineProperty, l = (p, e) => V(p, "name", {
|
|
14
|
+
value: e,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), R = "Popover", [F, fe] = I(R, [b]), O = b(), [Z, v] = F(R), q = /* @__PURE__ */ l((p) => {
|
|
17
|
+
const { __scopePopover: e, children: c, open: r, defaultOpen: n, onOpenChange: t, modal: o = !1 } = p, a = O(e), u = i.useRef(null), [P, d] = i.useState(!1), [C, f] = T({
|
|
18
|
+
prop: r,
|
|
19
|
+
defaultProp: n ?? !1,
|
|
20
|
+
onChange: t,
|
|
21
|
+
caller: R
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ s(H, {
|
|
24
|
+
...a,
|
|
25
|
+
children: /* @__PURE__ */ s(Z, {
|
|
26
|
+
scope: e,
|
|
27
|
+
contentId: k(),
|
|
28
|
+
triggerRef: u,
|
|
29
|
+
open: C,
|
|
30
|
+
onOpenChange: f,
|
|
31
|
+
onOpenToggle: i.useCallback(() => f((g) => !g), [f]),
|
|
32
|
+
hasCustomAnchor: P,
|
|
33
|
+
onCustomAnchorAdd: i.useCallback(() => d(!0), []),
|
|
34
|
+
onCustomAnchorRemove: i.useCallback(() => d(!1), []),
|
|
35
|
+
modal: o,
|
|
36
|
+
children: c
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}, "Popover"), z = "PopoverTrigger", B = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
40
|
+
const { __scopePopover: r, ...n } = e, t = v(z, r), o = O(r), a = _(c, t.triggerRef), u = /* @__PURE__ */ s(M.button, {
|
|
41
|
+
type: "button",
|
|
42
|
+
"aria-haspopup": "dialog",
|
|
43
|
+
"aria-expanded": t.open,
|
|
44
|
+
"aria-controls": t.open ? t.contentId : void 0,
|
|
45
|
+
"data-state": x(t.open),
|
|
46
|
+
...n,
|
|
47
|
+
ref: a,
|
|
48
|
+
onClick: m(e.onClick, t.onOpenToggle)
|
|
49
|
+
});
|
|
50
|
+
return t.hasCustomAnchor ? u : /* @__PURE__ */ s(U, {
|
|
51
|
+
asChild: !0,
|
|
52
|
+
...o,
|
|
53
|
+
children: u
|
|
54
|
+
});
|
|
55
|
+
}, "PopoverTrigger")), E = "PopoverPortal", [J, Q] = F(E, { forceMount: void 0 }), W = /* @__PURE__ */ l((p) => {
|
|
56
|
+
const { __scopePopover: e, forceMount: c, children: r, container: n } = p, t = v(E, e);
|
|
57
|
+
return /* @__PURE__ */ s(J, {
|
|
58
|
+
scope: e,
|
|
59
|
+
forceMount: c,
|
|
60
|
+
children: /* @__PURE__ */ s(A, {
|
|
61
|
+
present: c || t.open,
|
|
62
|
+
children: /* @__PURE__ */ s(L, {
|
|
63
|
+
asChild: !0,
|
|
64
|
+
container: n,
|
|
65
|
+
children: r
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}, "PopoverPortal"), h = "PopoverContent", X = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
70
|
+
const r = Q(h, e.__scopePopover), { forceMount: n = r.forceMount, ...t } = e, o = v(h, e.__scopePopover);
|
|
71
|
+
return /* @__PURE__ */ s(A, {
|
|
72
|
+
present: n || o.open,
|
|
73
|
+
children: o.modal ? /* @__PURE__ */ s(ee, {
|
|
74
|
+
...t,
|
|
75
|
+
ref: c
|
|
76
|
+
}) : /* @__PURE__ */ s(oe, {
|
|
77
|
+
...t,
|
|
78
|
+
ref: c
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}, "PopoverContent")), Y = D("PopoverContent.RemoveScroll"), ee = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
82
|
+
const r = v(h, e.__scopePopover), n = i.useRef(null), t = _(c, n), o = i.useRef(!1);
|
|
83
|
+
return i.useEffect(() => {
|
|
84
|
+
const a = n.current;
|
|
85
|
+
if (a) return G(a);
|
|
86
|
+
}, []), /* @__PURE__ */ s(j, {
|
|
87
|
+
as: Y,
|
|
88
|
+
allowPinchZoom: !0,
|
|
89
|
+
children: /* @__PURE__ */ s(w, {
|
|
90
|
+
...e,
|
|
91
|
+
ref: t,
|
|
92
|
+
trapFocus: r.open,
|
|
93
|
+
disableOutsidePointerEvents: !0,
|
|
94
|
+
onCloseAutoFocus: m(e.onCloseAutoFocus, (a) => {
|
|
95
|
+
a.preventDefault(), o.current || r.triggerRef.current?.focus();
|
|
96
|
+
}),
|
|
97
|
+
onPointerDownOutside: m(e.onPointerDownOutside, (a) => {
|
|
98
|
+
const u = a.detail.originalEvent, P = u.button === 0 && u.ctrlKey === !0, d = u.button === 2 || P;
|
|
99
|
+
o.current = d;
|
|
100
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
101
|
+
onFocusOutside: m(e.onFocusOutside, (a) => a.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
}, "PopoverContentModal")), oe = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
105
|
+
const r = v(h, e.__scopePopover), n = i.useRef(!1), t = i.useRef(!1);
|
|
106
|
+
return /* @__PURE__ */ s(w, {
|
|
107
|
+
...e,
|
|
108
|
+
ref: c,
|
|
109
|
+
trapFocus: !1,
|
|
110
|
+
disableOutsidePointerEvents: !1,
|
|
111
|
+
onCloseAutoFocus: (o) => {
|
|
112
|
+
e.onCloseAutoFocus?.(o), o.defaultPrevented || (n.current || r.triggerRef.current?.focus(), o.preventDefault()), n.current = !1, t.current = !1;
|
|
113
|
+
},
|
|
114
|
+
onInteractOutside: (o) => {
|
|
115
|
+
e.onInteractOutside?.(o), o.defaultPrevented || (n.current = !0, o.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
116
|
+
const a = o.target;
|
|
117
|
+
r.triggerRef.current?.contains(a) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && t.current && o.preventDefault();
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}, "PopoverContentNonModal")), w = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
121
|
+
const { __scopePopover: r, trapFocus: n, onOpenAutoFocus: t, onCloseAutoFocus: o, disableOutsidePointerEvents: a, onEscapeKeyDown: u, onPointerDownOutside: P, onFocusOutside: d, onInteractOutside: C, ...f } = e, g = v(h, r), S = O(r);
|
|
122
|
+
return N(), /* @__PURE__ */ s($, {
|
|
123
|
+
asChild: !0,
|
|
124
|
+
loop: !0,
|
|
125
|
+
trapped: n,
|
|
126
|
+
onMountAutoFocus: t,
|
|
127
|
+
onUnmountAutoFocus: o,
|
|
128
|
+
children: /* @__PURE__ */ s(y, {
|
|
129
|
+
asChild: !0,
|
|
130
|
+
disableOutsidePointerEvents: a,
|
|
131
|
+
onInteractOutside: C,
|
|
132
|
+
onEscapeKeyDown: u,
|
|
133
|
+
onPointerDownOutside: P,
|
|
134
|
+
onFocusOutside: d,
|
|
135
|
+
onDismiss: () => g.onOpenChange(!1),
|
|
136
|
+
deferPointerDownOutside: !0,
|
|
137
|
+
children: /* @__PURE__ */ s(K, {
|
|
138
|
+
"data-state": x(g.open),
|
|
139
|
+
role: "dialog",
|
|
140
|
+
id: g.contentId,
|
|
141
|
+
...S,
|
|
142
|
+
...f,
|
|
143
|
+
ref: c,
|
|
144
|
+
style: {
|
|
145
|
+
...f.style,
|
|
146
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
147
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
148
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
149
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
150
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
})
|
|
154
|
+
});
|
|
155
|
+
}, "PopoverContentImpl"));
|
|
156
|
+
function x(p) {
|
|
157
|
+
return p ? "open" : "closed";
|
|
158
|
+
}
|
|
159
|
+
l(x, "getState");
|
|
160
|
+
var ve = q, Pe = B, ge = W, he = X;
|
|
161
|
+
export {
|
|
162
|
+
Pe as i,
|
|
163
|
+
ge as n,
|
|
164
|
+
ve as r,
|
|
165
|
+
he as t
|
|
166
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { a as J } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { t as L } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { i as Q, n as W, r as F, t as X } from "./dist-D-yS0HN8.js";
|
|
4
|
+
import { t as Z } from "./dist-DYIabsrY.js";
|
|
5
|
+
import { t as ee } from "./dist-D5XYRjmR.js";
|
|
6
|
+
import { t as te } from "./dist-CzKqHuqJ2.js";
|
|
7
|
+
import { t as oe } from "./dist-DGOjiAnB2.js";
|
|
8
|
+
import * as r from "react";
|
|
9
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
10
|
+
var re = Object.defineProperty, O = (t, e) => re(t, "name", {
|
|
11
|
+
value: e,
|
|
12
|
+
configurable: !0
|
|
13
|
+
}), P = !1;
|
|
14
|
+
function N() {
|
|
15
|
+
const [t, e] = r.useState(P);
|
|
16
|
+
return r.useEffect(() => {
|
|
17
|
+
P || (P = !0, e(!0));
|
|
18
|
+
}, []), t;
|
|
19
|
+
}
|
|
20
|
+
O(N, "useIsHydrated");
|
|
21
|
+
var k = r[" useSyncExternalStore ".trim().toString()];
|
|
22
|
+
function U() {
|
|
23
|
+
return () => {
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
O(U, "subscribe");
|
|
27
|
+
function B() {
|
|
28
|
+
return k(U, () => !0, () => !1);
|
|
29
|
+
}
|
|
30
|
+
O(B, "useIsHydratedModern");
|
|
31
|
+
var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e) => se(t, "name", {
|
|
32
|
+
value: e,
|
|
33
|
+
configurable: !0
|
|
34
|
+
}), x = "rovingFocusGroup.onEntryFocus", ue = {
|
|
35
|
+
bubbles: !1,
|
|
36
|
+
cancelable: !0
|
|
37
|
+
}, w = "RovingFocusGroup", [D, j, ce] = te(w), [ae, we] = Q(w, [ce]), [ie, fe] = ae(w), le = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
38
|
+
return /* @__PURE__ */ m(D.Provider, {
|
|
39
|
+
scope: e.__scopeRovingFocusGroup,
|
|
40
|
+
children: /* @__PURE__ */ m(D.Slot, {
|
|
41
|
+
scope: e.__scopeRovingFocusGroup,
|
|
42
|
+
children: /* @__PURE__ */ m(de, {
|
|
43
|
+
...e,
|
|
44
|
+
ref: u
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
}, "RovingFocusGroup")), de = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
49
|
+
const { __scopeRovingFocusGroup: n, orientation: i, loop: T = !1, dir: _, currentTabStopId: R, defaultCurrentTabStopId: C, onCurrentTabStopIdChange: h, onEntryFocus: I, preventScrollOnEntryFocus: c = !1, ...y } = e, S = r.useRef(null), b = J(u, S), g = oe(_), [E, d] = X({
|
|
50
|
+
prop: R,
|
|
51
|
+
defaultProp: C ?? null,
|
|
52
|
+
onChange: h,
|
|
53
|
+
caller: w
|
|
54
|
+
}), [o, f] = r.useState(!1), a = ee(I), l = j(n), A = r.useRef(!1), [z, K] = r.useState(0);
|
|
55
|
+
return r.useEffect(() => {
|
|
56
|
+
const s = S.current;
|
|
57
|
+
if (s)
|
|
58
|
+
return s.addEventListener(x, a), () => s.removeEventListener(x, a);
|
|
59
|
+
}, [a]), /* @__PURE__ */ m(ie, {
|
|
60
|
+
scope: n,
|
|
61
|
+
orientation: i,
|
|
62
|
+
dir: g,
|
|
63
|
+
loop: T,
|
|
64
|
+
currentTabStopId: E,
|
|
65
|
+
onItemFocus: r.useCallback((s) => d(s), [d]),
|
|
66
|
+
onItemShiftTab: r.useCallback(() => f(!0), []),
|
|
67
|
+
onFocusableItemAdd: r.useCallback(() => K((s) => s + 1), []),
|
|
68
|
+
onFocusableItemRemove: r.useCallback(() => K((s) => s - 1), []),
|
|
69
|
+
children: /* @__PURE__ */ m(L.div, {
|
|
70
|
+
tabIndex: o || z === 0 ? -1 : 0,
|
|
71
|
+
"data-orientation": i,
|
|
72
|
+
...y,
|
|
73
|
+
ref: b,
|
|
74
|
+
style: {
|
|
75
|
+
outline: "none",
|
|
76
|
+
...e.style
|
|
77
|
+
},
|
|
78
|
+
onMouseDown: F(e.onMouseDown, () => {
|
|
79
|
+
A.current = !0;
|
|
80
|
+
}),
|
|
81
|
+
onFocus: F(e.onFocus, (s) => {
|
|
82
|
+
const q = !A.current;
|
|
83
|
+
if (s.target === s.currentTarget && q && !o) {
|
|
84
|
+
const M = new CustomEvent(x, ue);
|
|
85
|
+
if (s.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
86
|
+
const G = l().filter((p) => p.focusable);
|
|
87
|
+
H([
|
|
88
|
+
G.find((p) => p.active),
|
|
89
|
+
G.find((p) => p.id === E),
|
|
90
|
+
...G
|
|
91
|
+
].filter(Boolean).map((p) => p.ref.current), c);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
A.current = !1;
|
|
95
|
+
}),
|
|
96
|
+
onBlur: F(e.onBlur, () => f(!1))
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
}, "RovingFocusGroupImpl")), pe = "RovingFocusGroupItem", me = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
100
|
+
const { __scopeRovingFocusGroup: n, focusable: i = !0, active: T = !1, tabStopId: _, children: R, ...C } = e, h = Z(), I = _ || h, c = fe(pe, n), y = c.currentTabStopId === I, S = j(n), { onFocusableItemAdd: b, onFocusableItemRemove: g, currentTabStopId: E } = c, d = ne();
|
|
101
|
+
return W(() => {
|
|
102
|
+
if (!(!d || !i))
|
|
103
|
+
return b(), () => g();
|
|
104
|
+
}, [
|
|
105
|
+
d,
|
|
106
|
+
i,
|
|
107
|
+
b,
|
|
108
|
+
g
|
|
109
|
+
]), r.useEffect(() => {
|
|
110
|
+
if (!(d || !i))
|
|
111
|
+
return b(), () => g();
|
|
112
|
+
}, [
|
|
113
|
+
d,
|
|
114
|
+
i,
|
|
115
|
+
b,
|
|
116
|
+
g
|
|
117
|
+
]), /* @__PURE__ */ m(D.ItemSlot, {
|
|
118
|
+
scope: n,
|
|
119
|
+
id: I,
|
|
120
|
+
focusable: i,
|
|
121
|
+
active: T,
|
|
122
|
+
children: /* @__PURE__ */ m(L.span, {
|
|
123
|
+
tabIndex: y ? 0 : -1,
|
|
124
|
+
"data-orientation": c.orientation,
|
|
125
|
+
...C,
|
|
126
|
+
ref: u,
|
|
127
|
+
onMouseDown: F(e.onMouseDown, (o) => {
|
|
128
|
+
i ? c.onItemFocus(I) : o.preventDefault();
|
|
129
|
+
}),
|
|
130
|
+
onFocus: F(e.onFocus, () => c.onItemFocus(I)),
|
|
131
|
+
onKeyDown: F(e.onKeyDown, (o) => {
|
|
132
|
+
if (o.key === "Tab" && o.shiftKey) {
|
|
133
|
+
c.onItemShiftTab();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (o.target !== o.currentTarget) return;
|
|
137
|
+
const f = $(o, c.orientation, c.dir);
|
|
138
|
+
if (f !== void 0) {
|
|
139
|
+
if (o.metaKey || o.ctrlKey || o.altKey || o.shiftKey) return;
|
|
140
|
+
o.preventDefault();
|
|
141
|
+
let a = S().filter((l) => l.focusable).map((l) => l.ref.current);
|
|
142
|
+
if (f === "last") a.reverse();
|
|
143
|
+
else if (f === "prev" || f === "next") {
|
|
144
|
+
f === "prev" && a.reverse();
|
|
145
|
+
const l = a.indexOf(o.currentTarget);
|
|
146
|
+
a = c.loop ? V(a, l + 1) : a.slice(l + 1);
|
|
147
|
+
}
|
|
148
|
+
setTimeout(() => H(a));
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
children: typeof R == "function" ? R({
|
|
152
|
+
isCurrentTabStop: y,
|
|
153
|
+
hasTabStop: E != null
|
|
154
|
+
}) : R
|
|
155
|
+
})
|
|
156
|
+
});
|
|
157
|
+
}, "RovingFocusGroupItem")), ve = {
|
|
158
|
+
ArrowLeft: "prev",
|
|
159
|
+
ArrowUp: "prev",
|
|
160
|
+
ArrowRight: "next",
|
|
161
|
+
ArrowDown: "next",
|
|
162
|
+
PageUp: "first",
|
|
163
|
+
Home: "first",
|
|
164
|
+
PageDown: "last",
|
|
165
|
+
End: "last"
|
|
166
|
+
};
|
|
167
|
+
function Y(t, e) {
|
|
168
|
+
return e !== "rtl" ? t : t === "ArrowLeft" ? "ArrowRight" : t === "ArrowRight" ? "ArrowLeft" : t;
|
|
169
|
+
}
|
|
170
|
+
v(Y, "getDirectionAwareKey");
|
|
171
|
+
function $(t, e, u) {
|
|
172
|
+
const n = Y(t.key, u);
|
|
173
|
+
if (!(e === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(e === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
174
|
+
return ve[n];
|
|
175
|
+
}
|
|
176
|
+
v($, "getFocusIntent");
|
|
177
|
+
function H(t, e = !1) {
|
|
178
|
+
const u = document.activeElement;
|
|
179
|
+
for (const n of t)
|
|
180
|
+
if (n === u || (n.focus({ preventScroll: e }), document.activeElement !== u)) return;
|
|
181
|
+
}
|
|
182
|
+
v(H, "focusFirst");
|
|
183
|
+
function V(t, e) {
|
|
184
|
+
return t.map((u, n) => t[(e + n) % t.length]);
|
|
185
|
+
}
|
|
186
|
+
v(V, "wrapArray");
|
|
187
|
+
var Te = le, _e = me;
|
|
188
|
+
export {
|
|
189
|
+
Te as n,
|
|
190
|
+
we as r,
|
|
191
|
+
_e as t
|
|
192
|
+
};
|