@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,5 +1,5 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as re } from "react";
|
|
3
3
|
var y = function() {
|
|
4
4
|
return y = Object.assign || function(t) {
|
|
5
5
|
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
|
@@ -16,17 +16,17 @@ function Q(e, t) {
|
|
|
16
16
|
for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++) t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ae(e, t, r) {
|
|
20
20
|
if (r || arguments.length === 2)
|
|
21
21
|
for (var n = 0, a = t.length, c; n < a; n++) (c || !(n in t)) && (c || (c = Array.prototype.slice.call(t, 0, n)), c[n] = t[n]);
|
|
22
22
|
return e.concat(c || Array.prototype.slice.call(t));
|
|
23
23
|
}
|
|
24
|
-
var B = "right-scroll-bar-position", A = "width-before-scroll-bar",
|
|
24
|
+
var B = "right-scroll-bar-position", A = "width-before-scroll-bar", oe = "with-scroll-bars-hidden", ce = "--removed-body-scroll-bar-size";
|
|
25
25
|
function W(e, t) {
|
|
26
26
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
var r =
|
|
28
|
+
function ie(e, t) {
|
|
29
|
+
var r = re(function() {
|
|
30
30
|
return {
|
|
31
31
|
value: e,
|
|
32
32
|
callback: t,
|
|
@@ -43,14 +43,14 @@ function oe(e, t) {
|
|
|
43
43
|
})[0];
|
|
44
44
|
return r.callback = t, r.facade;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
var r =
|
|
46
|
+
var ue = typeof window < "u" ? i.useLayoutEffect : i.useEffect, F = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
function le(e, t) {
|
|
48
|
+
var r = ie(t || null, function(n) {
|
|
49
49
|
return e.forEach(function(a) {
|
|
50
50
|
return W(a, n);
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
return
|
|
53
|
+
return ue(function() {
|
|
54
54
|
var n = F.get(r);
|
|
55
55
|
if (n) {
|
|
56
56
|
var a = new Set(n), c = new Set(e), f = r.current;
|
|
@@ -63,11 +63,11 @@ function ie(e, t) {
|
|
|
63
63
|
F.set(r, e);
|
|
64
64
|
}, [e]), r;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function U(e) {
|
|
67
67
|
return e;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
t === void 0 && (t =
|
|
69
|
+
function K(e, t) {
|
|
70
|
+
t === void 0 && (t = U);
|
|
71
71
|
var r = [], n = !1;
|
|
72
72
|
return {
|
|
73
73
|
read: function() {
|
|
@@ -120,26 +120,29 @@ function le(e, t) {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
+
function je(e, t) {
|
|
124
|
+
return t === void 0 && (t = U), K(e, t);
|
|
125
|
+
}
|
|
123
126
|
function fe(e) {
|
|
124
127
|
e === void 0 && (e = {});
|
|
125
|
-
var t =
|
|
128
|
+
var t = K(null);
|
|
126
129
|
return t.options = y({
|
|
127
130
|
async: !0,
|
|
128
131
|
ssr: !1
|
|
129
132
|
}, e), t;
|
|
130
133
|
}
|
|
131
|
-
var
|
|
134
|
+
var $ = function(e) {
|
|
132
135
|
var t = e.sideCar, r = Q(e, ["sideCar"]);
|
|
133
136
|
if (!t) throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
134
137
|
var n = t.read();
|
|
135
138
|
if (!n) throw new Error("Sidecar medium not found");
|
|
136
139
|
return i.createElement(n, y({}, r));
|
|
137
140
|
};
|
|
138
|
-
|
|
141
|
+
$.isSideCarExport = !0;
|
|
139
142
|
function se(e, t) {
|
|
140
|
-
return e.useMedium(t),
|
|
143
|
+
return e.useMedium(t), $;
|
|
141
144
|
}
|
|
142
|
-
var
|
|
145
|
+
var q = fe(), D = function() {
|
|
143
146
|
}, I = i.forwardRef(function(e, t) {
|
|
144
147
|
var r = i.useRef(null), n = i.useState({
|
|
145
148
|
onScrollCapture: D,
|
|
@@ -159,9 +162,9 @@ var K = fe(), D = function() {
|
|
|
159
162
|
"allowPinchZoom",
|
|
160
163
|
"as",
|
|
161
164
|
"gapMode"
|
|
162
|
-
]), k = C, S =
|
|
165
|
+
]), k = C, S = le([r, t]), w = y(y({}, d), a);
|
|
163
166
|
return i.createElement(i.Fragment, null, p && i.createElement(k, {
|
|
164
|
-
sideCar:
|
|
167
|
+
sideCar: q,
|
|
165
168
|
removeScrollBar: s,
|
|
166
169
|
shards: b,
|
|
167
170
|
noRelative: E,
|
|
@@ -221,7 +224,7 @@ var ge = function() {
|
|
|
221
224
|
};
|
|
222
225
|
}, [t && r]);
|
|
223
226
|
};
|
|
224
|
-
},
|
|
227
|
+
}, J = function() {
|
|
225
228
|
var e = ye(), t = function(r) {
|
|
226
229
|
var n = r.styles, a = r.dynamic;
|
|
227
230
|
return e(n, a), null;
|
|
@@ -250,14 +253,14 @@ var ge = function() {
|
|
|
250
253
|
right: t[2],
|
|
251
254
|
gap: Math.max(0, n - r + t[2] - t[0])
|
|
252
255
|
};
|
|
253
|
-
}, pe =
|
|
256
|
+
}, pe = J(), M = "data-scroll-locked", Ce = function(e, t, r, n) {
|
|
254
257
|
var a = e.left, c = e.top, f = e.right, u = e.gap;
|
|
255
258
|
return r === void 0 && (r = "margin"), `
|
|
256
|
-
.`.concat(
|
|
259
|
+
.`.concat(oe, ` {
|
|
257
260
|
overflow: hidden `).concat(n, `;
|
|
258
261
|
padding-right: `).concat(u, "px ").concat(n, `;
|
|
259
262
|
}
|
|
260
|
-
body[`).concat(
|
|
263
|
+
body[`).concat(M, `] {
|
|
261
264
|
overflow: hidden `).concat(n, `;
|
|
262
265
|
overscroll-behavior: contain;
|
|
263
266
|
`).concat([
|
|
@@ -290,8 +293,8 @@ var ge = function() {
|
|
|
290
293
|
margin-right: 0 `).concat(n, `;
|
|
291
294
|
}
|
|
292
295
|
|
|
293
|
-
body[`).concat(
|
|
294
|
-
`).concat(
|
|
296
|
+
body[`).concat(M, `] {
|
|
297
|
+
`).concat(ce, ": ").concat(u, `px;
|
|
295
298
|
}
|
|
296
299
|
`);
|
|
297
300
|
}, H = function() {
|
|
@@ -299,9 +302,9 @@ var ge = function() {
|
|
|
299
302
|
return isFinite(e) ? e : 0;
|
|
300
303
|
}, Ee = function() {
|
|
301
304
|
i.useEffect(function() {
|
|
302
|
-
return document.body.setAttribute(
|
|
305
|
+
return document.body.setAttribute(M, (H() + 1).toString()), function() {
|
|
303
306
|
var e = H() - 1;
|
|
304
|
-
e <= 0 ? document.body.removeAttribute(
|
|
307
|
+
e <= 0 ? document.body.removeAttribute(M) : document.body.setAttribute(M, e.toString());
|
|
305
308
|
};
|
|
306
309
|
}, []);
|
|
307
310
|
}, Re = function(e) {
|
|
@@ -322,48 +325,48 @@ if (typeof window < "u") try {
|
|
|
322
325
|
}
|
|
323
326
|
var P = Y ? { passive: !1 } : !1, ke = function(e) {
|
|
324
327
|
return e.tagName === "TEXTAREA";
|
|
325
|
-
},
|
|
328
|
+
}, ee = function(e, t) {
|
|
326
329
|
if (!(e instanceof Element)) return !1;
|
|
327
330
|
var r = window.getComputedStyle(e);
|
|
328
331
|
return r[t] !== "hidden" && !(r.overflowY === r.overflowX && !ke(e) && r[t] === "visible");
|
|
329
332
|
}, Pe = function(e) {
|
|
330
|
-
return
|
|
333
|
+
return ee(e, "overflowY");
|
|
331
334
|
}, Ne = function(e) {
|
|
332
|
-
return
|
|
335
|
+
return ee(e, "overflowX");
|
|
333
336
|
}, Z = function(e, t) {
|
|
334
337
|
var r = t.ownerDocument, n = t;
|
|
335
338
|
do {
|
|
336
|
-
if (typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host),
|
|
337
|
-
var a =
|
|
339
|
+
if (typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host), te(e, n)) {
|
|
340
|
+
var a = ne(e, n);
|
|
338
341
|
if (a[1] > a[2]) return !0;
|
|
339
342
|
}
|
|
340
343
|
n = n.parentNode;
|
|
341
344
|
} while (n && n !== r.body);
|
|
342
345
|
return !1;
|
|
343
|
-
},
|
|
346
|
+
}, Me = function(e) {
|
|
344
347
|
return [
|
|
345
348
|
e.scrollTop,
|
|
346
349
|
e.scrollHeight,
|
|
347
350
|
e.clientHeight
|
|
348
351
|
];
|
|
349
|
-
},
|
|
352
|
+
}, Te = function(e) {
|
|
350
353
|
return [
|
|
351
354
|
e.scrollLeft,
|
|
352
355
|
e.scrollWidth,
|
|
353
356
|
e.clientWidth
|
|
354
357
|
];
|
|
355
|
-
},
|
|
358
|
+
}, te = function(e, t) {
|
|
356
359
|
return e === "v" ? Pe(t) : Ne(t);
|
|
357
|
-
},
|
|
358
|
-
return e === "v" ?
|
|
360
|
+
}, ne = function(e, t) {
|
|
361
|
+
return e === "v" ? Me(t) : Te(t);
|
|
359
362
|
}, Le = function(e, t) {
|
|
360
363
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
361
364
|
}, xe = function(e, t, r, n, a) {
|
|
362
365
|
var c = Le(e, window.getComputedStyle(t).direction), f = c * n, u = r.target, v = t.contains(u), s = !1, p = f > 0, b = 0, C = 0;
|
|
363
366
|
do {
|
|
364
367
|
if (!u) break;
|
|
365
|
-
var E =
|
|
366
|
-
(R || o) &&
|
|
368
|
+
var E = ne(e, u), R = E[0], o = E[1] - E[2] - c * R;
|
|
369
|
+
(R || o) && te(e, u) && (b += o, C += R);
|
|
367
370
|
var l = u.parentNode;
|
|
368
371
|
u = l && l.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? l.host : l;
|
|
369
372
|
} while (!v && u !== document.body || v && (t.contains(u) || t === u));
|
|
@@ -383,13 +386,13 @@ var P = Y ? { passive: !1 } : !1, ke = function(e) {
|
|
|
383
386
|
`);
|
|
384
387
|
}, Ie = 0, N = [];
|
|
385
388
|
function Oe(e) {
|
|
386
|
-
var t = i.useRef([]), r = i.useRef([0, 0]), n = i.useRef(), a = i.useState(Ie++)[0], c = i.useState(
|
|
389
|
+
var t = i.useRef([]), r = i.useRef([0, 0]), n = i.useRef(), a = i.useState(Ie++)[0], c = i.useState(J)[0], f = i.useRef(e);
|
|
387
390
|
i.useEffect(function() {
|
|
388
391
|
f.current = e;
|
|
389
392
|
}, [e]), i.useEffect(function() {
|
|
390
393
|
if (e.inert) {
|
|
391
394
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
392
|
-
var o =
|
|
395
|
+
var o = ae([e.lockRef.current], (e.shards || []).map(G), !0).filter(Boolean);
|
|
393
396
|
return o.forEach(function(l) {
|
|
394
397
|
return l.classList.add("allow-interactivity-".concat(a));
|
|
395
398
|
}), function() {
|
|
@@ -409,9 +412,9 @@ function Oe(e) {
|
|
|
409
412
|
if ("touches" in o && w === "h" && S.type === "range") return !1;
|
|
410
413
|
var j = window.getSelection(), O = j && j.anchorNode;
|
|
411
414
|
if (O && (O === S || O.contains(S))) return !1;
|
|
412
|
-
var
|
|
413
|
-
if (!
|
|
414
|
-
if (
|
|
415
|
+
var T = Z(w, S);
|
|
416
|
+
if (!T) return !0;
|
|
417
|
+
if (T ? k = w : (k = w === "v" ? "h" : "v", T = Z(w, S)), !T) return !1;
|
|
415
418
|
if (!n.current && "changedTouches" in o && (h || d) && (n.current = k), !k) return !0;
|
|
416
419
|
var V = n.current || k;
|
|
417
420
|
return xe(V, l, o, V === "h" ? h : d, !0);
|
|
@@ -474,7 +477,7 @@ function We(e) {
|
|
|
474
477
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
475
478
|
return t;
|
|
476
479
|
}
|
|
477
|
-
var De = se(
|
|
480
|
+
var De = se(q, Oe), Xe = i.forwardRef(function(e, t) {
|
|
478
481
|
return i.createElement(I, y({}, e, {
|
|
479
482
|
ref: t,
|
|
480
483
|
sideCar: De
|
|
@@ -482,5 +485,8 @@ var De = se(K, Oe), Xe = i.forwardRef(function(e, t) {
|
|
|
482
485
|
});
|
|
483
486
|
Xe.classNames = I.classNames;
|
|
484
487
|
export {
|
|
488
|
+
le as i,
|
|
489
|
+
je as n,
|
|
490
|
+
fe as r,
|
|
485
491
|
Xe as t
|
|
486
492
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as v } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
2
|
+
import { t as y } from "./prop-types-CfEYxTbR.js";
|
|
3
3
|
import { t as c } from "./utils-Cx-WzRZF.js";
|
|
4
4
|
import { inputVariants as g, searchInconInputVariants as h } from "./components/Command/Command.variants.js";
|
|
5
|
-
import { t as m } from "./dist-
|
|
5
|
+
import { t as m } from "./dist-BZNE2Tnx.js";
|
|
6
6
|
import p, { forwardRef as u } from "react";
|
|
7
7
|
import { jsx as f, jsxs as b } from "react/jsx-runtime";
|
|
8
8
|
var a = /* @__PURE__ */ v(y());
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { o as D } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
+
import { t as R } from "./prop-types-CfEYxTbR.js";
|
|
3
|
+
import { t as P } from "./dist-DX0sBG3Q.js";
|
|
4
|
+
import { t as f } from "./utils-Cx-WzRZF.js";
|
|
5
|
+
import { Typography as F } from "./components/Typography/Typography.js";
|
|
6
|
+
import { buttonVariants as _, counterVariants as q, labelVariants as A } from "./components/Counter/Counter.variants.js";
|
|
7
|
+
import m, { forwardRef as x, useId as G, useState as H } from "react";
|
|
8
|
+
import { jsx as u, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
var s = /* @__PURE__ */ D(R());
|
|
10
|
+
function O() {
|
|
11
|
+
return O = Object.assign || function(t) {
|
|
12
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
+
var n = arguments[i];
|
|
14
|
+
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
}, O.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
function J(t, i) {
|
|
20
|
+
if (t == null) return {};
|
|
21
|
+
var n = K(t, i), e, r;
|
|
22
|
+
if (Object.getOwnPropertySymbols) {
|
|
23
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
24
|
+
for (r = 0; r < o.length; r++)
|
|
25
|
+
e = o[r], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
26
|
+
}
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
function K(t, i) {
|
|
30
|
+
if (t == null) return {};
|
|
31
|
+
var n = {}, e = Object.keys(t), r, o;
|
|
32
|
+
for (o = 0; o < e.length; o++)
|
|
33
|
+
r = e[o], !(i.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
34
|
+
return n;
|
|
35
|
+
}
|
|
36
|
+
var j = x(function(t, i) {
|
|
37
|
+
var n = t.color, e = n === void 0 ? "currentColor" : n, r = t.size, o = r === void 0 ? 24 : r, c = J(t, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ m.createElement("svg", O({
|
|
39
|
+
ref: i,
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
width: o,
|
|
42
|
+
height: o,
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: e,
|
|
46
|
+
strokeWidth: "2",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
}, c), /* @__PURE__ */ m.createElement("line", {
|
|
50
|
+
x1: "5",
|
|
51
|
+
y1: "12",
|
|
52
|
+
x2: "19",
|
|
53
|
+
y2: "12"
|
|
54
|
+
}));
|
|
55
|
+
});
|
|
56
|
+
j.propTypes = {
|
|
57
|
+
color: s.default.string,
|
|
58
|
+
size: s.default.oneOfType([s.default.string, s.default.number])
|
|
59
|
+
};
|
|
60
|
+
j.displayName = "Minus";
|
|
61
|
+
function w() {
|
|
62
|
+
return w = Object.assign || function(t) {
|
|
63
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
64
|
+
var n = arguments[i];
|
|
65
|
+
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
66
|
+
}
|
|
67
|
+
return t;
|
|
68
|
+
}, w.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
function Q(t, i) {
|
|
71
|
+
if (t == null) return {};
|
|
72
|
+
var n = U(t, i), e, r;
|
|
73
|
+
if (Object.getOwnPropertySymbols) {
|
|
74
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
75
|
+
for (r = 0; r < o.length; r++)
|
|
76
|
+
e = o[r], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
77
|
+
}
|
|
78
|
+
return n;
|
|
79
|
+
}
|
|
80
|
+
function U(t, i) {
|
|
81
|
+
if (t == null) return {};
|
|
82
|
+
var n = {}, e = Object.keys(t), r, o;
|
|
83
|
+
for (o = 0; o < e.length; o++)
|
|
84
|
+
r = e[o], !(i.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
85
|
+
return n;
|
|
86
|
+
}
|
|
87
|
+
var N = x(function(t, i) {
|
|
88
|
+
var n = t.color, e = n === void 0 ? "currentColor" : n, r = t.size, o = r === void 0 ? 24 : r, c = Q(t, ["color", "size"]);
|
|
89
|
+
return /* @__PURE__ */ m.createElement("svg", w({
|
|
90
|
+
ref: i,
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
width: o,
|
|
93
|
+
height: o,
|
|
94
|
+
viewBox: "0 0 24 24",
|
|
95
|
+
fill: "none",
|
|
96
|
+
stroke: e,
|
|
97
|
+
strokeWidth: "2",
|
|
98
|
+
strokeLinecap: "round",
|
|
99
|
+
strokeLinejoin: "round"
|
|
100
|
+
}, c), /* @__PURE__ */ m.createElement("line", {
|
|
101
|
+
x1: "12",
|
|
102
|
+
y1: "5",
|
|
103
|
+
x2: "12",
|
|
104
|
+
y2: "19"
|
|
105
|
+
}), /* @__PURE__ */ m.createElement("line", {
|
|
106
|
+
x1: "5",
|
|
107
|
+
y1: "12",
|
|
108
|
+
x2: "19",
|
|
109
|
+
y2: "12"
|
|
110
|
+
}));
|
|
111
|
+
});
|
|
112
|
+
N.propTypes = {
|
|
113
|
+
color: s.default.string,
|
|
114
|
+
size: s.default.oneOfType([s.default.string, s.default.number])
|
|
115
|
+
};
|
|
116
|
+
N.displayName = "Plus";
|
|
117
|
+
var ot = x(({ canDecrement: t = !0, canIncrement: i = !0, className: n, decrementButtonClassName: e, editable: r = !1, incrementButtonClassName: o, isRequired: c, label: d, labelWrapperClassName: z, max: y = -1 / 0, min: h = 1 / 0, name: k, theme: E, value: L, onChange: v }, M) => {
|
|
118
|
+
const $ = G(), l = L ?? 0, [W, g] = H(null), S = W ?? String(l), T = () => {
|
|
119
|
+
let a = 0;
|
|
120
|
+
h === 1 / 0 ? a = l - 1 : a = Math.max(h, l - 1), g(null), v?.({ target: { value: a } });
|
|
121
|
+
}, V = () => {
|
|
122
|
+
let a = 0;
|
|
123
|
+
y === -1 / 0 ? a = l + 1 : a = Math.min(y, l + 1), g(null), v?.({ target: { value: a } });
|
|
124
|
+
}, B = (a) => {
|
|
125
|
+
const b = a.target.value;
|
|
126
|
+
if (g(b), b === "") return;
|
|
127
|
+
const I = Number(b);
|
|
128
|
+
Number.isFinite(I) && v?.({ target: { value: I } });
|
|
129
|
+
}, C = () => {
|
|
130
|
+
g(null);
|
|
131
|
+
const a = Math.min(y === -1 / 0 ? 1 / 0 : y, Math.max(h === 1 / 0 ? -1 / 0 : h, l));
|
|
132
|
+
a !== l && v?.({ target: { value: a } });
|
|
133
|
+
};
|
|
134
|
+
return /* @__PURE__ */ p("div", {
|
|
135
|
+
className: "flex flex-col gap-2",
|
|
136
|
+
"data-theme": E,
|
|
137
|
+
children: [d ? /* @__PURE__ */ u("div", {
|
|
138
|
+
className: f(z),
|
|
139
|
+
children: /* @__PURE__ */ p(F, {
|
|
140
|
+
component: "label",
|
|
141
|
+
htmlFor: k ?? $,
|
|
142
|
+
variant: "labelLarge",
|
|
143
|
+
className: f(A()),
|
|
144
|
+
children: [
|
|
145
|
+
d,
|
|
146
|
+
" ",
|
|
147
|
+
c && /* @__PURE__ */ u("span", {
|
|
148
|
+
className: "text-red-600 dark:text-red-500",
|
|
149
|
+
children: "*"
|
|
150
|
+
})
|
|
151
|
+
]
|
|
152
|
+
})
|
|
153
|
+
}) : null, /* @__PURE__ */ p("div", {
|
|
154
|
+
className: "flex items-center",
|
|
155
|
+
role: "presentation",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ p("button", {
|
|
158
|
+
type: "button",
|
|
159
|
+
onClick: T,
|
|
160
|
+
className: f(_({
|
|
161
|
+
button: "rigth",
|
|
162
|
+
className: e
|
|
163
|
+
})),
|
|
164
|
+
disabled: !t,
|
|
165
|
+
children: [/* @__PURE__ */ u(j, { className: "w-4 h-4" }), /* @__PURE__ */ u(P, { children: "Decrement" })]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ u("input", {
|
|
168
|
+
ref: M,
|
|
169
|
+
type: "number",
|
|
170
|
+
value: r ? S : l,
|
|
171
|
+
name: k,
|
|
172
|
+
className: f(q({ className: n })),
|
|
173
|
+
...r ? {
|
|
174
|
+
onChange: B,
|
|
175
|
+
onBlur: C
|
|
176
|
+
} : { readOnly: !0 },
|
|
177
|
+
"aria-label": typeof d == "string" ? d : "number input"
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ p("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
onClick: V,
|
|
182
|
+
className: f(_({
|
|
183
|
+
button: "left",
|
|
184
|
+
className: o
|
|
185
|
+
})),
|
|
186
|
+
disabled: !i,
|
|
187
|
+
children: [/* @__PURE__ */ u(N, { className: "w-4 h-4" }), /* @__PURE__ */ u(P, { children: "Increment" })]
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
})]
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
export {
|
|
194
|
+
ot as t
|
|
195
|
+
};
|