@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
package/dist/components/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as o } from "../Checkbox-
|
|
2
|
-
import { t as m } from "../DropdownButton-
|
|
3
|
-
import { t as p } from "../Breadcrumb-
|
|
4
|
-
import { t as a } from "../Input-
|
|
5
|
-
import { t as n } from "../Counter-
|
|
1
|
+
import { t as o } from "../Checkbox-B_ngk9Dj.js";
|
|
2
|
+
import { t as m } from "../DropdownButton-DfNojmCW.js";
|
|
3
|
+
import { t as p } from "../Breadcrumb-Cp3abB2w.js";
|
|
4
|
+
import { t as a } from "../Input-Cf44DzfE.js";
|
|
5
|
+
import { t as n } from "../Counter-BV680M5r.js";
|
|
6
6
|
import { Alert as l } from "./Alert/Alert.js";
|
|
7
7
|
import { Button as g } from "./Button/Button.js";
|
|
8
|
-
import { AlertDialog as
|
|
8
|
+
import { AlertDialog as T } from "./AlertDialog/AlertDialog.js";
|
|
9
9
|
import { Autocomplete as D } from "./Autocomplete/Autocomplete.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { Badge as
|
|
12
|
-
import { Typography as
|
|
10
|
+
import { t as R } from "../Loading-DUh9PMJN.js";
|
|
11
|
+
import { Badge as b } from "./Badge/Badge.js";
|
|
12
|
+
import { Typography as w } from "./Typography/Typography.js";
|
|
13
13
|
import { ButtonGroup as h } from "./ButtonGroup/ButtonGroup.js";
|
|
14
|
-
import { Card as
|
|
15
|
-
import { DatePicker as
|
|
14
|
+
import { Card as E } from "./Card/Card.js";
|
|
15
|
+
import { DatePicker as x } from "./Datepicker/DatePicker.js";
|
|
16
16
|
import { Radio as I } from "./Radio/Radio.js";
|
|
17
17
|
import { RadioGroup as P } from "./RadioGroup/RadioGroup.js";
|
|
18
18
|
import { TimePicker as A } from "./TimePicker/TimePicker.js";
|
|
@@ -25,121 +25,127 @@ import { DateRangeFilterDropdown as K } from "./Filter/components/DateRangeFilte
|
|
|
25
25
|
import { TextMultiSelect as X } from "./Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
26
26
|
import { TimeFilterDropdown as Z } from "./Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
27
27
|
import { Filter as $ } from "./Filter/Filter.js";
|
|
28
|
-
import { t as or } from "../ImageUpload-
|
|
28
|
+
import { t as or } from "../ImageUpload-DiwymQcU.js";
|
|
29
29
|
import { LineChart as mr } from "./LineChart/LineChart.js";
|
|
30
|
-
import { t as pr } from "../Modal-
|
|
31
|
-
import { t as ar } from "../components-
|
|
30
|
+
import { t as pr } from "../Modal-Dyn088X7.js";
|
|
31
|
+
import { t as ar } from "../components-Cf345jTv.js";
|
|
32
32
|
import { PhoneNumberInput as nr } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
33
33
|
import { PieChart as lr } from "./PieChart/PieChart.js";
|
|
34
34
|
import { ProgressBar as gr } from "./ProgressBar/ProgressBar.js";
|
|
35
|
-
import { RadioCard as
|
|
35
|
+
import { RadioCard as Tr } from "./RadioCard/RadioCard.js";
|
|
36
36
|
import { RadioCardGroup as Dr } from "./RadioCardGroup/RadioCardGroup.js";
|
|
37
|
-
import { Range as
|
|
38
|
-
import { Select as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
37
|
+
import { Range as Rr } from "./Range/Range.js";
|
|
38
|
+
import { Select as br } from "./Select/Select.js";
|
|
39
|
+
import { CollapseTrigger as wr } from "./Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
40
|
+
import { Footer as hr } from "./Sidebar/components/Footer/Footer.js";
|
|
41
|
+
import { Label as Er } from "./Sidebar/components/Label/Label.js";
|
|
42
|
+
import { Logo as xr } from "./Sidebar/components/Logo/Logo.js";
|
|
43
|
+
import { NavigationGroup as Ir } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
44
|
+
import { NavigationOption as Pr } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
45
|
+
import { NavigationSeparator as Ar } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
46
|
+
import { Navigation as Mr } from "./Sidebar/components/Navigation/Navigation.js";
|
|
47
|
+
import { Sidebar as yr } from "./Sidebar/Sidebar.js";
|
|
48
|
+
import { Slider as Ur } from "./Slider/Slider.js";
|
|
49
|
+
import { t as jr } from "../Spinner-CUwE2bLm.js";
|
|
50
|
+
import { horizontalConnectorWrapperVariants as Hr, stepConnectorVariants as Jr, stepContentVariants as Kr, stepDescriptionVariants as Qr, stepIndicatorVariants as Xr, stepItemVariants as Yr, stepLabelVariants as Zr, stepListVariants as _r, stepVariants as $r, stepperVariants as ro } from "./Stepper/Stepper.variants.js";
|
|
51
|
+
import { Stepper as to } from "./Stepper/Stepper.js";
|
|
52
|
+
import { t as io } from "../Switch-aPhL5rNG.js";
|
|
53
|
+
import { Table as eo } from "./Table/Table.js";
|
|
54
|
+
import { Content as fo } from "./Tabs/components/Content.js";
|
|
55
|
+
import { List as so } from "./Tabs/components/List.js";
|
|
56
|
+
import { Trigger as go } from "./Tabs/components/Trigger.js";
|
|
57
|
+
import { Tabs as To } from "./Tabs/Tabs.js";
|
|
58
|
+
import { Tag as Do } from "./Tag/Tag.js";
|
|
59
|
+
import { TagSelect as Ro } from "./TagSelect/TagSelect.js";
|
|
60
|
+
import { TextArea as bo } from "./TextArea/TextArea.js";
|
|
61
|
+
import { t as wo } from "../Toast-3NEz7LLa.js";
|
|
62
|
+
import { Tooltip as ho } from "./Tooltip/Tooltip.js";
|
|
63
|
+
import { t as Eo } from "../events.types-BG1Uh8i6.js";
|
|
64
|
+
import { sendResetFiltersEvent as xo } from "./VirtualizedTable/events/filters/filters.js";
|
|
65
|
+
import { sendRefreshEvent as Io } from "./VirtualizedTable/events/refresh/refresh.js";
|
|
66
|
+
import { sendCollapseRowEvent as Po, sendExpandRowEvent as ko, sendToggleRowEvent as Ao } from "./VirtualizedTable/events/row/row.js";
|
|
67
|
+
import { TruncateText as Mo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
68
|
+
import { VirtualizedTable as yo } from "./VirtualizedTable/VirtualizedTable.js";
|
|
65
69
|
export {
|
|
66
70
|
l as Alert,
|
|
67
|
-
|
|
71
|
+
T as AlertDialog,
|
|
68
72
|
D as Autocomplete,
|
|
69
|
-
|
|
73
|
+
b as Badge,
|
|
70
74
|
j as BadgeMultiSelect,
|
|
71
75
|
p as Breadcrumb,
|
|
72
76
|
g as Button,
|
|
73
77
|
h as ButtonGroup,
|
|
74
|
-
|
|
78
|
+
E as Card,
|
|
75
79
|
o as Checkbox,
|
|
76
|
-
|
|
80
|
+
wr as CollapseTrigger,
|
|
81
|
+
fo as Content,
|
|
77
82
|
n as Counter,
|
|
78
83
|
H as DateFilterDropdown,
|
|
79
|
-
|
|
84
|
+
x as DatePicker,
|
|
80
85
|
K as DateRangeFilterDropdown,
|
|
81
86
|
M as DateRangePicker,
|
|
82
87
|
y as Divider,
|
|
83
88
|
U as Drawer,
|
|
84
|
-
|
|
89
|
+
br as Dropdown,
|
|
85
90
|
m as DropdownButton,
|
|
86
91
|
$ as Filter,
|
|
87
|
-
|
|
92
|
+
hr as Footer,
|
|
88
93
|
or as ImageUpload,
|
|
89
94
|
a as Input,
|
|
90
|
-
|
|
95
|
+
Er as Label,
|
|
91
96
|
mr as LineChart,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
so as List,
|
|
98
|
+
R as Loading,
|
|
99
|
+
xr as Logo,
|
|
95
100
|
pr as Modal,
|
|
96
101
|
ar as MultiSelectDropdown,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
Mr as Navigation,
|
|
103
|
+
Ir as NavigationGroup,
|
|
104
|
+
Pr as NavigationOption,
|
|
105
|
+
Ar as NavigationSeparator,
|
|
101
106
|
n as NumberInput,
|
|
102
107
|
nr as PhoneNumberInput,
|
|
103
108
|
lr as PieChart,
|
|
104
109
|
gr as ProgressBar,
|
|
105
110
|
I as Radio,
|
|
106
|
-
|
|
111
|
+
Tr as RadioCard,
|
|
107
112
|
Dr as RadioCardGroup,
|
|
108
113
|
P as RadioGroup,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
Rr as Range,
|
|
115
|
+
br as Select,
|
|
116
|
+
yr as Sidebar,
|
|
117
|
+
Ur as Slider,
|
|
118
|
+
jr as Spinner,
|
|
119
|
+
to as Stepper,
|
|
120
|
+
io as Switch,
|
|
121
|
+
eo as Table,
|
|
122
|
+
To as Tabs,
|
|
123
|
+
Do as Tag,
|
|
124
|
+
Ro as TagSelect,
|
|
125
|
+
bo as TextArea,
|
|
121
126
|
X as TextMultiSelect,
|
|
122
127
|
Z as TimeFilterDropdown,
|
|
123
128
|
A as TimePicker,
|
|
124
129
|
wo as Toast,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
ho as Tooltip,
|
|
131
|
+
go as Trigger,
|
|
132
|
+
Mo as TruncateText,
|
|
133
|
+
w as Typography,
|
|
134
|
+
yo as VirtualizedTable,
|
|
135
|
+
Eo as VirtualizedTableEvent,
|
|
136
|
+
Hr as horizontalConnectorWrapperVariants,
|
|
137
|
+
Po as sendCollapseRowEvent,
|
|
138
|
+
ko as sendExpandRowEvent,
|
|
139
|
+
Io as sendRefreshEvent,
|
|
134
140
|
xo as sendResetFiltersEvent,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
Ao as sendToggleRowEvent,
|
|
142
|
+
Jr as stepConnectorVariants,
|
|
143
|
+
Kr as stepContentVariants,
|
|
144
|
+
Qr as stepDescriptionVariants,
|
|
145
|
+
Xr as stepIndicatorVariants,
|
|
146
|
+
Yr as stepItemVariants,
|
|
147
|
+
Zr as stepLabelVariants,
|
|
148
|
+
_r as stepListVariants,
|
|
149
|
+
$r as stepVariants,
|
|
150
|
+
ro as stepperVariants
|
|
145
151
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { t as
|
|
3
|
-
import { LoaderIcon as
|
|
4
|
-
import { t as C } from "./x-
|
|
1
|
+
import { n as I } from "./Wrapper-CVJSuYWx.js";
|
|
2
|
+
import { t as i } from "./utils-Cx-WzRZF.js";
|
|
3
|
+
import { LoaderIcon as L } from "./assets/icons/components/Loader.js";
|
|
4
|
+
import { t as C } from "./x-a_LpoXzG2.js";
|
|
5
5
|
import { Badge as R } from "./components/Badge/Badge.js";
|
|
6
6
|
import { Typography as N } from "./components/Typography/Typography.js";
|
|
7
|
-
import { useMultiSelectDropdown as
|
|
7
|
+
import { useMultiSelectDropdown as g } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js";
|
|
8
8
|
import { MultiSelectDropdownProvider as V } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js";
|
|
9
|
-
import { Item as
|
|
10
|
-
import { listVariants as
|
|
11
|
-
import { useMultiSelectDropdown as
|
|
12
|
-
import { labelVariants as
|
|
13
|
-
import { forwardRef as
|
|
14
|
-
import { jsx as e, jsxs as
|
|
9
|
+
import { Item as b } from "./components/MultiSelectDropdown/components/Item/Item.js";
|
|
10
|
+
import { listVariants as $ } from "./components/MultiSelectDropdown/components/List/List.variants.js";
|
|
11
|
+
import { useMultiSelectDropdown as j } from "./components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js";
|
|
12
|
+
import { labelVariants as T, multiSelectDropdownVariants as W, wrapperVariants as z } from "./components/MultiSelectDropdown/MultiSelectDropdown.variants.js";
|
|
13
|
+
import { forwardRef as w, useId as B, useImperativeHandle as F } from "react";
|
|
14
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
15
15
|
var H = ({ theme: n }) => {
|
|
16
|
-
const { options: a, selectedOptions: r, isLoading:
|
|
16
|
+
const { options: a, selectedOptions: r, isLoading: o, noOptionsText: l } = g();
|
|
17
17
|
return /* @__PURE__ */ e("ul", {
|
|
18
18
|
role: "listbox",
|
|
19
19
|
"data-theme": n,
|
|
20
|
-
className:
|
|
21
|
-
children:
|
|
20
|
+
className: i($()),
|
|
21
|
+
children: o ? /* @__PURE__ */ e(b, {
|
|
22
22
|
option: {
|
|
23
23
|
id: "loading",
|
|
24
24
|
label: "Loading..."
|
|
25
25
|
},
|
|
26
26
|
className: "select-none pointer-events-none",
|
|
27
27
|
isSelected: !1
|
|
28
|
-
}, "loading") : a.length > 0 ? a.map((t) => /* @__PURE__ */ e(
|
|
28
|
+
}, "loading") : a.length > 0 ? a.map((t) => /* @__PURE__ */ e(b, {
|
|
29
29
|
option: t,
|
|
30
|
-
isSelected: r.some((
|
|
30
|
+
isSelected: r.some((s) => s.id === t.id)
|
|
31
31
|
}, t.id)) : /* @__PURE__ */ e("li", {
|
|
32
32
|
className: "select-none",
|
|
33
33
|
children: /* @__PURE__ */ e(N, {
|
|
@@ -37,20 +37,21 @@ var H = ({ theme: n }) => {
|
|
|
37
37
|
})
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
}, y =
|
|
41
|
-
const
|
|
42
|
-
return F(
|
|
40
|
+
}, y = w(({ isRequired: n, label: a, labelClassName: r, labelWrapperClassName: o, name: l, placeholder: t = "", theme: s, wrapperClassName: c }, p) => {
|
|
41
|
+
const d = B(), x = l ? `${d}-name` : "id", { inputRef: u, isLoading: S, isOpen: h, selectedOptions: v, onOpen: O, onRemoveOption: D } = g(), { wrapperRef: M, handleOpen: k } = j();
|
|
42
|
+
return F(p, () => u.current, [u]), /* @__PURE__ */ f("div", {
|
|
43
43
|
ref: M,
|
|
44
|
-
className:
|
|
45
|
-
"data-theme":
|
|
44
|
+
className: i(z({ className: c })),
|
|
45
|
+
"data-theme": s,
|
|
46
46
|
children: [
|
|
47
47
|
a ? /* @__PURE__ */ e("div", {
|
|
48
|
-
className: o
|
|
49
|
-
children: /* @__PURE__ */
|
|
48
|
+
className: i(o),
|
|
49
|
+
children: /* @__PURE__ */ f(N, {
|
|
50
50
|
component: "label",
|
|
51
51
|
variant: "labelLarge",
|
|
52
|
+
id: `${d}-label`,
|
|
52
53
|
htmlFor: x,
|
|
53
|
-
className:
|
|
54
|
+
className: i(T({ className: r })),
|
|
54
55
|
onClick: () => O(!0),
|
|
55
56
|
children: [
|
|
56
57
|
a,
|
|
@@ -63,53 +64,56 @@ var H = ({ theme: n }) => {
|
|
|
63
64
|
]
|
|
64
65
|
})
|
|
65
66
|
}) : null,
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ f("div", {
|
|
67
68
|
id: x,
|
|
68
|
-
className:
|
|
69
|
+
className: i(W()),
|
|
69
70
|
role: "combobox",
|
|
70
71
|
onClick: k,
|
|
71
|
-
"aria-expanded":
|
|
72
|
+
"aria-expanded": h,
|
|
73
|
+
"aria-labelledby": a ? `${d}-label` : void 0,
|
|
72
74
|
children: [v.length === 0 ? /* @__PURE__ */ e("span", {
|
|
73
75
|
className: "text-base text-inherit select-none",
|
|
74
76
|
children: t
|
|
75
77
|
}) : /* @__PURE__ */ e("div", {
|
|
76
78
|
className: "flex flex-wrap gap-2",
|
|
77
|
-
children: v.map((
|
|
78
|
-
"data-value":
|
|
79
|
-
label:
|
|
79
|
+
children: v.map((m) => /* @__PURE__ */ e(R, {
|
|
80
|
+
"data-value": m.label,
|
|
81
|
+
label: m.value ?? m.label ?? "",
|
|
80
82
|
className: "select-none",
|
|
81
|
-
rightIcon: /* @__PURE__ */ e(C, { onClick: () => D(
|
|
82
|
-
},
|
|
83
|
-
}), S ? /* @__PURE__ */ e(
|
|
83
|
+
rightIcon: /* @__PURE__ */ e(C, { onClick: () => D(m) })
|
|
84
|
+
}, m.id))
|
|
85
|
+
}), S ? /* @__PURE__ */ e(L, {
|
|
84
86
|
size: 16,
|
|
85
87
|
className: "animate-spin shrink-0 text-gray-400"
|
|
86
|
-
}) : /* @__PURE__ */ e(
|
|
88
|
+
}) : /* @__PURE__ */ e(I, { className: i("w-4 h-4 transition-all duration-50 shrink-0 text-gray-400", h ? "rotate-0" : "rotate-180") })]
|
|
87
89
|
}),
|
|
88
90
|
/* @__PURE__ */ e("input", {
|
|
89
91
|
ref: u,
|
|
90
92
|
type: "text",
|
|
91
93
|
name: l,
|
|
92
94
|
className: "hidden",
|
|
95
|
+
tabIndex: -1,
|
|
96
|
+
"aria-hidden": "true",
|
|
93
97
|
readOnly: !0
|
|
94
98
|
}),
|
|
95
|
-
|
|
99
|
+
h ? /* @__PURE__ */ e(H, {}) : null
|
|
96
100
|
]
|
|
97
101
|
});
|
|
98
102
|
});
|
|
99
103
|
y.displayName = "MultiSelectDropdownWrapper";
|
|
100
|
-
var K =
|
|
104
|
+
var K = w(({ isLoading: n, multiselect: a, name: r, noOptionsText: o, options: l, value: t, onChange: s, onBlur: c, ...p }, d) => /* @__PURE__ */ e(V, {
|
|
101
105
|
defaultOptions: l,
|
|
102
106
|
multiselect: a,
|
|
103
107
|
value: t,
|
|
104
|
-
onChange:
|
|
105
|
-
onBlur:
|
|
108
|
+
onChange: s,
|
|
109
|
+
onBlur: c,
|
|
106
110
|
name: r,
|
|
107
111
|
isLoading: n,
|
|
108
|
-
noOptionsText:
|
|
112
|
+
noOptionsText: o,
|
|
109
113
|
children: /* @__PURE__ */ e(y, {
|
|
110
|
-
ref:
|
|
114
|
+
ref: d,
|
|
111
115
|
name: r,
|
|
112
|
-
...
|
|
116
|
+
...p
|
|
113
117
|
})
|
|
114
118
|
}));
|
|
115
119
|
K.displayName = "KonstructMultiSelectDropdown";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t } from "./utils-Cx-WzRZF.js";
|
|
2
|
+
var o = (e) => ({
|
|
3
|
+
root: t("w-fit", e?.root),
|
|
4
|
+
months: t("flex", e?.months),
|
|
5
|
+
month: t("flex flex-col w-[259px]", e?.month),
|
|
6
|
+
month_caption: "hidden",
|
|
7
|
+
nav: "hidden",
|
|
8
|
+
day_button: t("size-7.5", "flex", "items-center", "justify-center", "text-sm", "font-semibold", "cursor-pointer", "rounded-full", "hover:bg-slate-100", "dark:hover:bg-metal-700", "transition-colors", "text-slate-700", "dark:text-white", "focus:outline-none", "focus-visible:outline-none", e?.dayButton),
|
|
9
|
+
day: t("p-0", "w-[37px]", "h-9.5", "text-center", "align-middle", e?.day),
|
|
10
|
+
selected: t("[&>button]:bg-blue-600", "[&>button]:text-white", "[&>button]:hover:bg-blue-700", "dark:[&>button]:bg-aurora-500", "dark:[&>button]:hover:bg-aurora-500", "dark:[&>button]:text-metal-900", e?.selected),
|
|
11
|
+
range_start: t("drp-range-start", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-1/2", "before:right-0", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "last:before:!hidden", e?.rangeStart),
|
|
12
|
+
range_end: t("drp-range-end", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-0", "before:right-1/2", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "first:before:!hidden", e?.rangeEnd),
|
|
13
|
+
range_middle: t("drp-range-middle", "!relative", "before:absolute", "before:top-1", "before:bottom-1", "before:left-0", "before:right-0", "before:!bg-blue-50", "dark:before:!bg-aurora-500/10", "first:before:rounded-l-full", "last:before:rounded-r-full", "[&>button]:!text-slate-700", "[&>button]:!bg-transparent", "[&>button]:!rounded-full", "[&>button]:relative", "[&>button]:z-10", "[&>button]:hover:!bg-blue-100", "dark:[&>button]:!text-white", "dark:[&>button]:hover:!bg-aurora-500/20", e?.rangeMiddle),
|
|
14
|
+
table: t("w-full border-collapse table-fixed", e?.table),
|
|
15
|
+
weekdays: t("text-slate-500", "dark:text-metal-400", e?.weekdays),
|
|
16
|
+
weeks: t("[&>tr>td]:p-0", "[&>tr]:h-9.5", e?.weeks),
|
|
17
|
+
weekday: t("font-semibold", "text-xs", "uppercase", "text-slate-500", "dark:text-metal-400", "pb-4", "w-[37px]", e?.weekday),
|
|
18
|
+
today: t("[&>button]:text-blue-600", "dark:[&>button]:text-aurora-500", e?.today),
|
|
19
|
+
month_grid: "w-full",
|
|
20
|
+
disabled: t("[&>button]:opacity-50", "[&>button]:cursor-not-allowed", e?.disabled),
|
|
21
|
+
outside: t("[&>button]:!text-slate-400", "dark:[&>button]:!text-metal-500", e?.outside)
|
|
22
|
+
}), a = 259, b = 32, n = 720 * 60 * 60 * 1e3, l = 56, d = 28, u = 38;
|
|
23
|
+
export {
|
|
24
|
+
d as a,
|
|
25
|
+
a as i,
|
|
26
|
+
l as n,
|
|
27
|
+
u as o,
|
|
28
|
+
n as r,
|
|
29
|
+
o as s,
|
|
30
|
+
b as t
|
|
31
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as b } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { n as R, o as $, t as A } from "./isObject-
|
|
2
|
+
import { n as R, o as $, t as A } from "./isObject-BeFFiVJK.js";
|
|
3
3
|
var F = /* @__PURE__ */ b(((T, s) => {
|
|
4
4
|
var u = $(), i = function() {
|
|
5
5
|
return u.Date.now();
|
|
@@ -36,23 +36,23 @@ var F = /* @__PURE__ */ b(((T, s) => {
|
|
|
36
36
|
})), X = /* @__PURE__ */ b(((T, s) => {
|
|
37
37
|
var u = A(), i = F(), m = J(), t = "Expected a function", h = Math.max, y = Math.min;
|
|
38
38
|
function E(g, a, r) {
|
|
39
|
-
var o, f, _,
|
|
39
|
+
var o, f, _, d, n, v, x = 0, O = !1, l = !1, q = !0;
|
|
40
40
|
if (typeof g != "function") throw new TypeError(t);
|
|
41
41
|
a = m(a) || 0, u(r) && (O = !!r.leading, l = "maxWait" in r, _ = l ? h(m(r.maxWait) || 0, a) : _, q = "trailing" in r ? !!r.trailing : q);
|
|
42
42
|
function N(e) {
|
|
43
43
|
var c = o, p = f;
|
|
44
|
-
return o = f = void 0, x = e,
|
|
44
|
+
return o = f = void 0, x = e, d = g.apply(p, c), d;
|
|
45
45
|
}
|
|
46
46
|
function C(e) {
|
|
47
|
-
return x = e, n = setTimeout(I, a), O ? N(e) :
|
|
47
|
+
return x = e, n = setTimeout(I, a), O ? N(e) : d;
|
|
48
48
|
}
|
|
49
49
|
function L(e) {
|
|
50
|
-
var c = e -
|
|
50
|
+
var c = e - v, p = e - x, M = a - c;
|
|
51
51
|
return l ? y(M, _ - p) : M;
|
|
52
52
|
}
|
|
53
53
|
function k(e) {
|
|
54
|
-
var c = e -
|
|
55
|
-
return
|
|
54
|
+
var c = e - v, p = e - x;
|
|
55
|
+
return v === void 0 || c >= a || c < 0 || l && p >= _;
|
|
56
56
|
}
|
|
57
57
|
function I() {
|
|
58
58
|
var e = i();
|
|
@@ -60,22 +60,22 @@ var F = /* @__PURE__ */ b(((T, s) => {
|
|
|
60
60
|
n = setTimeout(I, L(e));
|
|
61
61
|
}
|
|
62
62
|
function W(e) {
|
|
63
|
-
return n = void 0, q && o ? N(e) : (o = f = void 0,
|
|
63
|
+
return n = void 0, q && o ? N(e) : (o = f = void 0, d);
|
|
64
64
|
}
|
|
65
65
|
function j() {
|
|
66
|
-
n !== void 0 && clearTimeout(n), x = 0, o =
|
|
66
|
+
n !== void 0 && clearTimeout(n), x = 0, o = v = f = n = void 0;
|
|
67
67
|
}
|
|
68
68
|
function B() {
|
|
69
|
-
return n === void 0 ?
|
|
69
|
+
return n === void 0 ? d : W(i());
|
|
70
70
|
}
|
|
71
71
|
function S() {
|
|
72
72
|
var e = i(), c = k(e);
|
|
73
|
-
if (o = arguments, f = this,
|
|
74
|
-
if (n === void 0) return C(
|
|
73
|
+
if (o = arguments, f = this, v = e, c) {
|
|
74
|
+
if (n === void 0) return C(v);
|
|
75
75
|
if (l)
|
|
76
|
-
return clearTimeout(n), n = setTimeout(I, a), N(
|
|
76
|
+
return clearTimeout(n), n = setTimeout(I, a), N(v);
|
|
77
77
|
}
|
|
78
|
-
return n === void 0 && (n = setTimeout(I, a)),
|
|
78
|
+
return n === void 0 && (n = setTimeout(I, a)), d;
|
|
79
79
|
}
|
|
80
80
|
return S.cancel = j, S.flush = B, S;
|
|
81
81
|
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { n as y } from "./dist-D-yS0HN8.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
var P = Object.defineProperty, f = (n, e) => P(n, "name", {
|
|
4
|
+
value: e,
|
|
5
|
+
configurable: !0
|
|
6
|
+
});
|
|
7
|
+
function g(n, e) {
|
|
8
|
+
return o.useReducer((t, r) => e[t][r] ?? t, n);
|
|
9
|
+
}
|
|
10
|
+
f(g, "useStateMachine");
|
|
11
|
+
var h = /* @__PURE__ */ f((n) => {
|
|
12
|
+
const { present: e, children: t } = n, r = M(e), s = typeof t == "function" ? t({ present: r.isPresent }) : o.Children.only(t), u = O(r.ref, v(s));
|
|
13
|
+
return typeof t == "function" || r.isPresent ? o.cloneElement(s, { ref: u }) : null;
|
|
14
|
+
}, "Presence");
|
|
15
|
+
function M(n) {
|
|
16
|
+
const [e, t] = o.useState(), r = o.useRef(null), s = o.useRef(n), u = o.useRef("none"), i = o.useRef(void 0), [a, l] = g(n ? "mounted" : "unmounted", {
|
|
17
|
+
mounted: {
|
|
18
|
+
UNMOUNT: "unmounted",
|
|
19
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
20
|
+
},
|
|
21
|
+
unmountSuspended: {
|
|
22
|
+
MOUNT: "mounted",
|
|
23
|
+
ANIMATION_END: "unmounted"
|
|
24
|
+
},
|
|
25
|
+
unmounted: { MOUNT: "mounted" }
|
|
26
|
+
});
|
|
27
|
+
return o.useEffect(() => {
|
|
28
|
+
a === "mounted" ? (u.current = i.current ?? N(r.current), i.current = void 0) : u.current = "none";
|
|
29
|
+
}, [a]), y(() => {
|
|
30
|
+
const c = r.current, m = s.current;
|
|
31
|
+
if (m !== n) {
|
|
32
|
+
const d = u.current, p = N(c);
|
|
33
|
+
n ? (i.current = p, l("MOUNT")) : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(m && d !== p ? "ANIMATION_OUT" : "UNMOUNT"), s.current = n;
|
|
34
|
+
}
|
|
35
|
+
}, [n, l]), y(() => {
|
|
36
|
+
if (e) {
|
|
37
|
+
let c;
|
|
38
|
+
const m = e.ownerDocument.defaultView ?? window, d = /* @__PURE__ */ f((R) => {
|
|
39
|
+
const E = N(r.current).includes(CSS.escape(R.animationName));
|
|
40
|
+
if (R.target === e && E && (l("ANIMATION_END"), !s.current)) {
|
|
41
|
+
const T = e.style.animationFillMode;
|
|
42
|
+
e.style.animationFillMode = "forwards", c = m.setTimeout(() => {
|
|
43
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = T);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, "handleAnimationEnd"), p = /* @__PURE__ */ f((R) => {
|
|
47
|
+
R.target === e && (u.current = N(r.current));
|
|
48
|
+
}, "handleAnimationStart");
|
|
49
|
+
return e.addEventListener("animationstart", p), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
+
m.clearTimeout(c), e.removeEventListener("animationstart", p), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
|
+
};
|
|
52
|
+
} else l("ANIMATION_END");
|
|
53
|
+
}, [e, l]), {
|
|
54
|
+
isPresent: ["mounted", "unmountSuspended"].includes(a),
|
|
55
|
+
ref: o.useCallback((c) => {
|
|
56
|
+
if (c) {
|
|
57
|
+
const m = getComputedStyle(c);
|
|
58
|
+
r.current = m, i.current = N(m);
|
|
59
|
+
} else r.current = null;
|
|
60
|
+
t(c);
|
|
61
|
+
}, [])
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
f(M, "usePresence");
|
|
65
|
+
function A(n, e) {
|
|
66
|
+
if (typeof n == "function") return n(e);
|
|
67
|
+
n != null && (n.current = e);
|
|
68
|
+
}
|
|
69
|
+
f(A, "setRef");
|
|
70
|
+
function O(...n) {
|
|
71
|
+
const e = o.useRef(n);
|
|
72
|
+
return e.current = n, o.useCallback((t) => {
|
|
73
|
+
const r = e.current;
|
|
74
|
+
let s = !1;
|
|
75
|
+
const u = r.map((i) => {
|
|
76
|
+
const a = A(i, t);
|
|
77
|
+
return !s && typeof a == "function" && (s = !0), a;
|
|
78
|
+
});
|
|
79
|
+
if (s) return () => {
|
|
80
|
+
for (let i = 0; i < u.length; i++) {
|
|
81
|
+
const a = u[i];
|
|
82
|
+
typeof a == "function" ? a() : A(r[i], null);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}, []);
|
|
86
|
+
}
|
|
87
|
+
f(O, "useStableComposedRefs");
|
|
88
|
+
function N(n) {
|
|
89
|
+
return n?.animationName || "none";
|
|
90
|
+
}
|
|
91
|
+
f(N, "getAnimationName");
|
|
92
|
+
function v(n) {
|
|
93
|
+
let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
94
|
+
return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
95
|
+
}
|
|
96
|
+
f(v, "getElementRef");
|
|
97
|
+
export {
|
|
98
|
+
h as t
|
|
99
|
+
};
|