@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/AlertDialogTrigger-BGo_acd5.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-B_ngk9Dj.js +249 -0
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BLq69pOT.js} +2 -2
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/FlagSelectorList-CkTR3j6O.js +856 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-DRylBL2d.js} +2 -2
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-DG3snJf_.js → Input-Cf44DzfE.js} +19 -19
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-BegZ5yd7.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/Switch-aPhL5rNG.js +196 -0
- package/dist/Toast-3NEz7LLa.js +460 -0
- package/dist/Wrapper-BhqUVI1G.js +171 -0
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/components/Alert/Alert.js +22 -22
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +15 -16
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +25 -23
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -57
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +29 -50
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -49
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -50
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +15 -7
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +39 -38
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +92 -89
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -21
- package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +67 -75
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +96 -90
- package/dist/{components-CYt24H4n.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-BUocnzkM.js +99 -0
- package/dist/{dist-DGO9opgu.js → dist-BZNE2Tnx.js} +51 -51
- package/dist/dist-BaPW7qXd2.js +166 -0
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/dist-C3YVLapk.js +194 -0
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/dist-DFCz63oC2.js +1320 -0
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/dist-DX0sBG3Q.js +31 -0
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/dist-tGUUcv8n.js +359 -0
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/es2015-CoHq2g4y.js +231 -0
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +147 -139
- package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
- package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +3 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +2 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +8 -7
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +38 -37
- package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
- package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
- package/dist/styles.css +1 -1
- package/dist/{table.provider-9uUt5a-s.js → table.provider-B0BafHuU.js} +429 -388
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +38 -37
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/Counter-DWKyr569.js +0 -208
- package/dist/DropdownButton-Beel5_gN.js +0 -92
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Modal-Bcu6LLAp.js +0 -76
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/Wrapper-DwxJAkNQ.js +0 -110
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- package/dist/dist-C8NWUTUh.js +0 -62
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-CeuUxVmT.js +0 -13
- package/dist/dist-CfYOvauX.js +0 -125
- package/dist/dist-CktbIsHq.js +0 -264
- package/dist/dist-DGqWMRtc.js +0 -183
- package/dist/dist-DdFwUrO22.js +0 -11
- package/dist/dist-DnGj9MTf.js +0 -1692
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-DvoMuWKO2.js +0 -31
- package/dist/dist-eAwtFCCA.js +0 -87
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ (function(t) {
|
|
2
|
+
return t.EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW", t.COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW", t.TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW", t.RESET_FILTERS = "@konstructio/VirtualizedTable/event-RESET_FILTERS", t.REFRESH = "@konstructio/VirtualizedTable/event-REFRESH", t;
|
|
3
|
+
})({});
|
|
4
|
+
export {
|
|
5
|
+
R as t
|
|
6
|
+
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useClickOutside as o } from "./useClickOutside.js";
|
|
2
|
+
import { useMediaQuery as i } from "./useMediaQuery.js";
|
|
3
|
+
import { useToggle as t } from "./useToggle.js";
|
|
3
4
|
export {
|
|
4
|
-
o as
|
|
5
|
-
|
|
5
|
+
o as useClickOutside,
|
|
6
|
+
i as useMediaQuery,
|
|
7
|
+
t as useToggle
|
|
6
8
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as o } from "react";
|
|
2
|
+
var a = (t, r) => {
|
|
3
|
+
o(() => {
|
|
4
|
+
const e = new AbortController();
|
|
5
|
+
return document.addEventListener("mousedown", (n) => {
|
|
6
|
+
t.current?.contains(n.target) || r();
|
|
7
|
+
}, { signal: e.signal }), () => {
|
|
8
|
+
e.abort();
|
|
9
|
+
};
|
|
10
|
+
}, [t, r]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useClickOutside
|
|
14
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,159 +1,167 @@
|
|
|
1
|
-
import { t as o } from "./Checkbox-
|
|
2
|
-
import { t as m } from "./DropdownButton-
|
|
3
|
-
import { t as e } 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 e } 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 { i as l, t as d } from "./utils-Cx-WzRZF.js";
|
|
7
7
|
import { Alert as g } from "./components/Alert/Alert.js";
|
|
8
8
|
import { Button as c } from "./components/Button/Button.js";
|
|
9
9
|
import { AlertDialog as D } from "./components/AlertDialog/AlertDialog.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { t as gr } from "./
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
10
|
+
import { useClickOutside as R } from "./hooks/useClickOutside.js";
|
|
11
|
+
import { useMediaQuery as b } from "./hooks/useMediaQuery.js";
|
|
12
|
+
import { useToggle as w } from "./hooks/useToggle.js";
|
|
13
|
+
import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
|
|
14
|
+
import { t as E } from "./Loading-DUh9PMJN.js";
|
|
15
|
+
import { Badge as P } from "./components/Badge/Badge.js";
|
|
16
|
+
import { Typography as I } from "./components/Typography/Typography.js";
|
|
17
|
+
import { ButtonGroup as k } from "./components/ButtonGroup/ButtonGroup.js";
|
|
18
|
+
import { Card as A } from "./components/Card/Card.js";
|
|
19
|
+
import { DatePicker as y } from "./components/Datepicker/DatePicker.js";
|
|
20
|
+
import { Radio as O } from "./components/Radio/Radio.js";
|
|
21
|
+
import { RadioGroup as U } from "./components/RadioGroup/RadioGroup.js";
|
|
22
|
+
import { TimePicker as j } from "./components/TimePicker/TimePicker.js";
|
|
23
|
+
import { DateRangePicker as H } from "./components/DateRangePicker/DateRangePicker.js";
|
|
24
|
+
import { Divider as K } from "./components/Divider/Divider.js";
|
|
25
|
+
import { Drawer as Y } from "./components/Drawer/Drawer.js";
|
|
26
|
+
import { BadgeMultiSelect as _ } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
27
|
+
import { DateFilterDropdown as rr } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
28
|
+
import { DateRangeFilterDropdown as tr } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
29
|
+
import { TextMultiSelect as ir } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
30
|
+
import { TimeFilterDropdown as pr } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
31
|
+
import { Filter as fr } from "./components/Filter/Filter.js";
|
|
32
|
+
import { t as sr } from "./ImageUpload-DiwymQcU.js";
|
|
33
|
+
import { LineChart as dr } from "./components/LineChart/LineChart.js";
|
|
34
|
+
import { t as gr } from "./Modal-Dyn088X7.js";
|
|
35
|
+
import { t as cr } from "./components-Cf345jTv.js";
|
|
36
|
+
import { PhoneNumberInput as Dr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
37
|
+
import { PieChart as Rr } from "./components/PieChart/PieChart.js";
|
|
38
|
+
import { ProgressBar as br } from "./components/ProgressBar/ProgressBar.js";
|
|
38
39
|
import { RadioCard as wr } from "./components/RadioCard/RadioCard.js";
|
|
39
|
-
import { RadioCardGroup as
|
|
40
|
-
import { Range as
|
|
41
|
-
import { Select as
|
|
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 {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
40
|
+
import { RadioCardGroup as xr } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
41
|
+
import { Range as Er } from "./components/Range/Range.js";
|
|
42
|
+
import { Select as Pr } from "./components/Select/Select.js";
|
|
43
|
+
import { CollapseTrigger as Ir } from "./components/Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
44
|
+
import { Footer as kr } from "./components/Sidebar/components/Footer/Footer.js";
|
|
45
|
+
import { Label as Ar } from "./components/Sidebar/components/Label/Label.js";
|
|
46
|
+
import { Logo as yr } from "./components/Sidebar/components/Logo/Logo.js";
|
|
47
|
+
import { NavigationGroup as Or } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
48
|
+
import { NavigationOption as Ur } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
49
|
+
import { NavigationSeparator as jr } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
50
|
+
import { Navigation as Hr } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
51
|
+
import { Sidebar as Kr } from "./components/Sidebar/Sidebar.js";
|
|
52
|
+
import { Slider as Yr } from "./components/Slider/Slider.js";
|
|
53
|
+
import { t as _r } from "./Spinner-CUwE2bLm.js";
|
|
54
|
+
import { horizontalConnectorWrapperVariants as ro, stepConnectorVariants as oo, stepContentVariants as to, stepDescriptionVariants as mo, stepIndicatorVariants as io, stepItemVariants as eo, stepLabelVariants as po, stepListVariants as ao, stepVariants as fo, stepperVariants as no } from "./components/Stepper/Stepper.variants.js";
|
|
55
|
+
import { Stepper as lo } from "./components/Stepper/Stepper.js";
|
|
56
|
+
import { t as go } from "./Switch-aPhL5rNG.js";
|
|
57
|
+
import { Table as co } from "./components/Table/Table.js";
|
|
58
|
+
import { Content as Do } from "./components/Tabs/components/Content.js";
|
|
59
|
+
import { List as Ro } from "./components/Tabs/components/List.js";
|
|
60
|
+
import { Trigger as bo } from "./components/Tabs/components/Trigger.js";
|
|
61
|
+
import { Tabs as wo } from "./components/Tabs/Tabs.js";
|
|
62
|
+
import { Tag as xo } from "./components/Tag/Tag.js";
|
|
63
|
+
import { TagSelect as Eo } from "./components/TagSelect/TagSelect.js";
|
|
64
|
+
import { TextArea as Po } from "./components/TextArea/TextArea.js";
|
|
65
|
+
import { t as Io } from "./Toast-3NEz7LLa.js";
|
|
66
|
+
import { Tooltip as ko } from "./components/Tooltip/Tooltip.js";
|
|
67
|
+
import { t as Ao } from "./events.types-BG1Uh8i6.js";
|
|
68
|
+
import { sendResetFiltersEvent as yo } from "./components/VirtualizedTable/events/filters/filters.js";
|
|
69
|
+
import { sendRefreshEvent as Oo } from "./components/VirtualizedTable/events/refresh/refresh.js";
|
|
70
|
+
import { sendCollapseRowEvent as Uo, sendExpandRowEvent as Wo, sendToggleRowEvent as jo } from "./components/VirtualizedTable/events/row/row.js";
|
|
71
|
+
import { TruncateText as Ho } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
72
|
+
import { VirtualizedTable as Ko } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
73
|
+
import { ThemeContext as Yo } from "./contexts/theme.context.js";
|
|
74
|
+
import { useTheme as _o } from "./contexts/theme.hook.js";
|
|
75
|
+
import { t as rt } from "./theme.provider-Dw4O3ocC.js";
|
|
71
76
|
import "./contexts/index.js";
|
|
72
77
|
export {
|
|
73
78
|
g as Alert,
|
|
74
79
|
D as AlertDialog,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
x as Autocomplete,
|
|
81
|
+
P as Badge,
|
|
82
|
+
_ as BadgeMultiSelect,
|
|
78
83
|
e as Breadcrumb,
|
|
79
84
|
c as Button,
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
k as ButtonGroup,
|
|
86
|
+
A as Card,
|
|
82
87
|
o as Checkbox,
|
|
83
|
-
|
|
88
|
+
Ir as CollapseTrigger,
|
|
89
|
+
Do as Content,
|
|
84
90
|
n as Counter,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
rr as DateFilterDropdown,
|
|
92
|
+
y as DatePicker,
|
|
93
|
+
tr as DateRangeFilterDropdown,
|
|
94
|
+
H as DateRangePicker,
|
|
95
|
+
K as Divider,
|
|
96
|
+
Y as Drawer,
|
|
97
|
+
Pr as Dropdown,
|
|
92
98
|
m as DropdownButton,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
fr as Filter,
|
|
100
|
+
kr as Footer,
|
|
101
|
+
sr as ImageUpload,
|
|
96
102
|
a as Input,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
Ar as Label,
|
|
104
|
+
dr as LineChart,
|
|
105
|
+
Ro as List,
|
|
106
|
+
E as Loading,
|
|
107
|
+
yr as Logo,
|
|
108
|
+
gr as Modal,
|
|
109
|
+
cr as MultiSelectDropdown,
|
|
110
|
+
Hr as Navigation,
|
|
111
|
+
Or as NavigationGroup,
|
|
112
|
+
Ur as NavigationOption,
|
|
113
|
+
jr as NavigationSeparator,
|
|
108
114
|
n as NumberInput,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
Dr as PhoneNumberInput,
|
|
116
|
+
Rr as PieChart,
|
|
117
|
+
br as ProgressBar,
|
|
118
|
+
O as Radio,
|
|
113
119
|
wr as RadioCard,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
120
|
+
xr as RadioCardGroup,
|
|
121
|
+
U as RadioGroup,
|
|
122
|
+
Er as Range,
|
|
123
|
+
Pr as Select,
|
|
124
|
+
Kr as Sidebar,
|
|
125
|
+
Yr as Slider,
|
|
126
|
+
_r as Spinner,
|
|
127
|
+
lo as Stepper,
|
|
128
|
+
go as Switch,
|
|
129
|
+
co as Table,
|
|
130
|
+
wo as Tabs,
|
|
131
|
+
xo as Tag,
|
|
132
|
+
Eo as TagSelect,
|
|
133
|
+
Po as TextArea,
|
|
134
|
+
ir as TextMultiSelect,
|
|
135
|
+
Yo as ThemeContext,
|
|
136
|
+
rt as ThemeProvider,
|
|
137
|
+
pr as TimeFilterDropdown,
|
|
138
|
+
j as TimePicker,
|
|
139
|
+
Io as Toast,
|
|
140
|
+
ko as Tooltip,
|
|
141
|
+
bo as Trigger,
|
|
142
|
+
Ho as TruncateText,
|
|
143
|
+
I as Typography,
|
|
144
|
+
Ko as VirtualizedTable,
|
|
145
|
+
Ao as VirtualizedTableEvent,
|
|
140
146
|
d as cn,
|
|
141
|
-
|
|
147
|
+
ro as horizontalConnectorWrapperVariants,
|
|
142
148
|
l as resolveColor,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
149
|
+
Uo as sendCollapseRowEvent,
|
|
150
|
+
Wo as sendExpandRowEvent,
|
|
151
|
+
Oo as sendRefreshEvent,
|
|
152
|
+
yo as sendResetFiltersEvent,
|
|
153
|
+
jo as sendToggleRowEvent,
|
|
154
|
+
oo as stepConnectorVariants,
|
|
155
|
+
to as stepContentVariants,
|
|
156
|
+
mo as stepDescriptionVariants,
|
|
157
|
+
io as stepIndicatorVariants,
|
|
158
|
+
eo as stepItemVariants,
|
|
159
|
+
po as stepLabelVariants,
|
|
160
|
+
ao as stepListVariants,
|
|
161
|
+
fo as stepVariants,
|
|
162
|
+
no as stepperVariants,
|
|
163
|
+
R as useClickOutside,
|
|
164
|
+
b as useMediaQuery,
|
|
165
|
+
_o as useTheme,
|
|
166
|
+
w as useToggle
|
|
159
167
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as i } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
var
|
|
2
|
+
var j = /* @__PURE__ */ i(((n, t) => {
|
|
3
3
|
var r = typeof global == "object" && global && global.Object === Object && global;
|
|
4
4
|
t.exports = r;
|
|
5
|
-
})),
|
|
6
|
-
var r =
|
|
5
|
+
})), y = /* @__PURE__ */ i(((n, t) => {
|
|
6
|
+
var r = j(), e = typeof self == "object" && self && self.Object === Object && self, o = r || e || Function("return this")();
|
|
7
7
|
t.exports = o;
|
|
8
8
|
})), g = /* @__PURE__ */ i(((n, t) => {
|
|
9
|
-
var r =
|
|
9
|
+
var r = y().Symbol;
|
|
10
10
|
t.exports = r;
|
|
11
11
|
})), S = /* @__PURE__ */ i(((n, t) => {
|
|
12
12
|
var r = g(), e = Object.prototype, o = e.hasOwnProperty, c = e.toString, a = r ? r.toStringTag : void 0;
|
|
@@ -17,8 +17,8 @@ var y = /* @__PURE__ */ i(((n, t) => {
|
|
|
17
17
|
var f = !0;
|
|
18
18
|
} catch {
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
return f && (b ? s[a] = p : delete s[a]),
|
|
20
|
+
var v = c.call(s);
|
|
21
|
+
return f && (b ? s[a] = p : delete s[a]), v;
|
|
22
22
|
}
|
|
23
23
|
t.exports = l;
|
|
24
24
|
})), u = /* @__PURE__ */ i(((n, t) => {
|
|
@@ -55,8 +55,8 @@ export {
|
|
|
55
55
|
g as a,
|
|
56
56
|
T as i,
|
|
57
57
|
m as n,
|
|
58
|
-
|
|
58
|
+
y as o,
|
|
59
59
|
x as r,
|
|
60
|
-
|
|
60
|
+
j as s,
|
|
61
61
|
d as t
|
|
62
62
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { alertVariants } from './Alert.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Alert component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { AlertDialogProps as AlertDialogPrimitiveProps } from '@radix-ui/react-alert-dialog';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { Props as ButtonProps } from '../Button/Button.types';
|
|
5
5
|
type ButtonBaseProps = Partial<ButtonProps> & {
|
|
6
6
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Props as ButtonProps } from '
|
|
2
|
-
import { Theme } from '
|
|
1
|
+
import { Props as ButtonProps } from '../../Button/Button.types';
|
|
2
|
+
import { Theme } from '../../../domain/theme';
|
|
3
3
|
export interface Props {
|
|
4
4
|
'data-theme'?: Theme;
|
|
5
5
|
variant?: ButtonProps['variant'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { autocompleteVariants } from './Autocomplete.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Option type for Autocomplete suggestions.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const listVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
2
|
export declare const emptyListVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
3
|
export declare const listItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
4
|
-
export declare const buttonVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { breadcrumbVariants } from './Breadcrumb.variants';
|
|
5
5
|
/**
|
|
6
6
|
* A single step in the breadcrumb navigation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ButtonHTMLAttributes, Ref } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { buttonVariants } from './Button.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Button component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { buttonGroupVariants } from './ButtonGroup.variants';
|
|
5
5
|
/** Horizontal text alignment for label and description */
|
|
6
6
|
export type TextAlign = 'left' | 'center' | 'right';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { cardVariants } from './Card.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Card component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxProps as CheckboxPropsPrimitive } from '@radix-ui/react-checkbox';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { checkboxVariants } from './Checkbox.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Checkbox component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Theme } from '
|
|
2
|
+
import { Theme } from '../../domain/theme';
|
|
3
3
|
import { CalendarPanelClassNames, DayPickerClassNames } from './components/CalendarPanel/CalendarPanel.types';
|
|
4
4
|
import { DateTimeInputsClassNames } from './components/DateTimeInputs/DateTimeInputs.types';
|
|
5
5
|
import { PresetLabels, PresetPanelClassNames } from './components/PresetPanel/PresetPanel.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { drawerVariants } from './Drawer.variants';
|
|
4
|
-
import { Theme } from '
|
|
4
|
+
import { Theme } from '../../domain/theme';
|
|
5
5
|
/**
|
|
6
6
|
* Custom class names for each Drawer element.
|
|
7
7
|
*/
|
|
@@ -2,19 +2,18 @@ import { FC } from 'react';
|
|
|
2
2
|
import { Props } from './DropdownButton.types';
|
|
3
3
|
/**
|
|
4
4
|
* A button with an attached dropdown menu for selecting actions.
|
|
5
|
-
*
|
|
5
|
+
* Built on Radix DropdownMenu: closes on outside click or Escape, and
|
|
6
|
+
* supports full keyboard navigation.
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <DropdownButton
|
|
11
|
+
* label="Download Invoice as"
|
|
10
12
|
* options={[
|
|
11
|
-
* { label: '
|
|
12
|
-
* { label: '
|
|
13
|
+
* { label: 'PDF', onClick: () => downloadPdf() },
|
|
14
|
+
* { label: 'CSV', onClick: () => downloadCsv() },
|
|
13
15
|
* ]}
|
|
14
|
-
* buttonClassName="w-64"
|
|
15
16
|
* />
|
|
16
17
|
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-dropdownbutton--docs Storybook}
|
|
19
18
|
*/
|
|
20
19
|
export declare const DropdownButton: FC<Props>;
|
|
@@ -29,6 +29,8 @@ export type Props = {
|
|
|
29
29
|
className?: string;
|
|
30
30
|
/** Additional CSS classes for each dropdown item */
|
|
31
31
|
itemClassName?: string;
|
|
32
|
+
/** Content of the trigger button */
|
|
33
|
+
label?: string | ReactNode;
|
|
32
34
|
/** Additional CSS classes for the dropdown list */
|
|
33
35
|
listClassName?: string;
|
|
34
36
|
/** Array of options to display in the dropdown */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { Props as BadgeProps } from '../Badge/Badge.types';
|
|
5
5
|
import { filterVariants } from './Filter.variants';
|
|
6
6
|
import { BadgeMultiSelectProps, DateFilterDropdownProps, DateRangeFilterDropdownProps, ResetButtonProps, TextMultiSelectProps, TimeFilterDropdownProps } from './components';
|
|
@@ -49,6 +49,8 @@ export type Props = VariantProps<typeof filterVariants> & PropsWithChildren & {
|
|
|
49
49
|
theme?: Theme;
|
|
50
50
|
/** Whether to close the filter dropdown automatically when Apply is clicked. Defaults to true. */
|
|
51
51
|
closeOnApply?: boolean;
|
|
52
|
+
/** Scope for reset events; dropdowns only respond to resets with the same scope. Defaults to a per-instance id. */
|
|
53
|
+
resetScope?: string;
|
|
52
54
|
};
|
|
53
55
|
/** @deprecated Use Props instead */
|
|
54
56
|
export type FilterProps = Props;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Option } from '
|
|
1
|
+
import { Option } from '../../Filter.types';
|
|
2
2
|
import { BadgeMultiSelectProps, SelectedOptions } from './BadgeMultiSelect.types';
|
|
3
3
|
export declare const useBadgeMultiSelect: ({ onApply, options, }: Pick<BadgeMultiSelectProps, "onApply" | "options">) => {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
isAllSelected: boolean;
|
|
6
6
|
selectedCount: SelectedOptions[];
|
|
7
7
|
selectedOptions: SelectedOptions[];
|
|
8
|
-
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
8
|
handleApplyOptions: () => void;
|
|
10
|
-
|
|
9
|
+
handleOpenChange: (open: boolean) => void;
|
|
11
10
|
handleResetOptions: () => void;
|
|
12
11
|
handleSelectAll: (allOptions: Option[], checked: boolean) => void;
|
|
13
12
|
handleSelectOption: (option: Option, checked: boolean) => void;
|
package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts
CHANGED
|
@@ -4,9 +4,8 @@ export declare const useDateFilterDropdown: ({ onApply, countryCode, }: Pick<Dat
|
|
|
4
4
|
appliedDay: string | undefined;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
selectedDay: Date | undefined;
|
|
7
|
-
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
8
7
|
handleApply: () => void;
|
|
9
|
-
|
|
8
|
+
handleOpenChange: (open: boolean) => void;
|
|
10
9
|
handleSelect: (date: Date) => void;
|
|
11
10
|
handleReset: () => void;
|
|
12
11
|
};
|