@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,13 +1,12 @@
|
|
|
1
|
-
import { DateRange, DateRangeWithTime } from '
|
|
1
|
+
import { DateRange, DateRangeWithTime } from '../../../DateRangePicker/DateRangePicker.types';
|
|
2
2
|
import { DateRangeFilterDropdownProps } from './DateRangeFilterDropdown.types';
|
|
3
3
|
export declare const useDateRangeFilterDropdown: ({ defaultRange, onApply, countryCode, }: Pick<DateRangeFilterDropdownProps, "defaultRange" | "onApply" | "countryCode">) => {
|
|
4
4
|
id: string;
|
|
5
5
|
appliedRange: string | undefined;
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
selectedRange: DateRange | undefined;
|
|
8
|
-
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
8
|
handleApply: () => void;
|
|
10
|
-
|
|
9
|
+
handleOpenChange: (open: boolean) => void;
|
|
11
10
|
handleRangeChange: (range: DateRangeWithTime) => void;
|
|
12
11
|
handleReset: () => void;
|
|
13
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateRange, DateRangeWithTime } from '
|
|
1
|
+
import { DateRange, DateRangeWithTime } from '../../../DateRangePicker/DateRangePicker.types';
|
|
2
2
|
export type DateRangeFilterDropdownProps = {
|
|
3
3
|
/** Label for the filter button */
|
|
4
4
|
label: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
export type FilterDropdownProps = PropsWithChildren & {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
trigger: ReactNode;
|
|
5
|
+
triggerClassName?: string;
|
|
6
|
+
position?: 'left' | 'right';
|
|
7
|
+
contentClassName?: string;
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
};
|
package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ export declare const useTimeFilterDropdown: ({ onApply, format, }: Pick<TimeFilt
|
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
selectedTime: Date | undefined;
|
|
7
7
|
selectedPresetLabel: string | undefined;
|
|
8
|
-
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
8
|
handleApply: () => void;
|
|
10
|
-
|
|
9
|
+
handleOpenChange: (open: boolean) => void;
|
|
11
10
|
handleSelectPreset: (preset: TimePreset) => void;
|
|
12
11
|
handleSelectCustom: (time: Date) => void;
|
|
13
12
|
handleReset: () => void;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare enum FilterEvent {
|
|
2
|
+
OPEN = "@konstructio/KonstructFilter/event-OPEN",
|
|
3
|
+
RESET = "@konstructio/KonstructFilter/event-RESET"
|
|
4
|
+
}
|
|
5
|
+
/** @deprecated Use FilterEvent instead */
|
|
6
|
+
export declare enum LegacyFilterEvent {
|
|
2
7
|
OPEN = "@konstrtuctio/KonstructFilter/event-OPEN",
|
|
3
8
|
RESET = "@konstrtuctio/KonstructFilter/event-RESET"
|
|
4
9
|
}
|
|
5
|
-
export declare const sendOpenFilterEvent: (id: string) =>
|
|
6
|
-
export declare const resetEvent: () =>
|
|
10
|
+
export declare const sendOpenFilterEvent: (id: string) => void;
|
|
11
|
+
export declare const resetEvent: (scope?: string) => void;
|
|
12
|
+
export declare const addFilterEventListener: <T>(event: FilterEvent, handler: (event: CustomEvent<T>) => void, options: {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useFilterDropdownSync';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ChangeEvent, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { imageUploadVariants } from './ImageUpload.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Upload status states for the ImageUpload component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { inputVariants } from './Input.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Input component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { loadingVariants } from './Loading.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Loading component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { Transition } from 'motion/react';
|
|
3
3
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { Theme } from '
|
|
4
|
+
import { Theme } from '../../domain/theme';
|
|
5
5
|
import { modalVariants } from './components/Wrapper/Wrapper.variants';
|
|
6
6
|
/**
|
|
7
7
|
* Props for the Modal component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { Transition } from 'motion/react';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
|
-
import { Theme } from '
|
|
4
|
+
import { Theme } from '../../../../domain/theme';
|
|
5
5
|
import { modalVariants } from './Wrapper.variants';
|
|
6
6
|
export type Props = PropsWithChildren & VariantProps<typeof modalVariants> & {
|
|
7
7
|
buttonCloseClassName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardedRef } from 'react';
|
|
2
|
-
import { Theme } from '
|
|
2
|
+
import { Theme } from '../../../../domain/theme';
|
|
3
3
|
import { Props as MultiSelectDropdownProps } from '../../MultiSelectDropdown.types';
|
|
4
4
|
export type WrapperProps = Omit<MultiSelectDropdownProps, 'options' | 'multiselect'> & {
|
|
5
5
|
ref?: ForwardedRef<HTMLInputElement>;
|
|
@@ -18,7 +18,7 @@ type CSSColor = `var(--${string})` | `rgb(${number}, ${number}, ${number})` | `r
|
|
|
18
18
|
export type Props = {
|
|
19
19
|
/**
|
|
20
20
|
* Array of hexadecimal colors for the borders of the pie chart segments
|
|
21
|
-
* @default ['
|
|
21
|
+
* @default [resolveColor('--color-white'), resolveColor('--color-white')]
|
|
22
22
|
*/
|
|
23
23
|
borderColors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
|
|
24
24
|
/**
|
|
@@ -28,7 +28,7 @@ export type Props = {
|
|
|
28
28
|
borderWidth?: number;
|
|
29
29
|
/**
|
|
30
30
|
* Array of hexadecimal colors for filling the pie chart segments
|
|
31
|
-
* @default ['
|
|
31
|
+
* @default [resolveColor('--color-neutral-600'), resolveColor('--color-emerald-400')]
|
|
32
32
|
*/
|
|
33
33
|
colors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
|
|
34
34
|
/**
|
|
@@ -43,7 +43,7 @@ export type Props = {
|
|
|
43
43
|
redraw?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Hexadecimal color for the subtitle text
|
|
46
|
-
* @default '
|
|
46
|
+
* @default resolveColor('--color-gray-500')
|
|
47
47
|
*/
|
|
48
48
|
subtitleColor?: HexColor;
|
|
49
49
|
/**
|
|
@@ -58,7 +58,7 @@ export type Props = {
|
|
|
58
58
|
subtitleFontWeight?: 'bold' | 'normal';
|
|
59
59
|
/**
|
|
60
60
|
* Hexadecimal color for the title text
|
|
61
|
-
* @default '
|
|
61
|
+
* @default resolveColor('--color-gray-900')
|
|
62
62
|
*/
|
|
63
63
|
titleColor?: HexColor;
|
|
64
64
|
/**
|
|
@@ -1,8 +1,10 @@
|
|
|
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 { progressBarFillVariants } from './ProgressBar.variants';
|
|
5
5
|
export interface Props extends VariantProps<typeof progressBarFillVariants> {
|
|
6
|
+
/** Accessible name announced for the progress bar */
|
|
7
|
+
ariaLabel?: string;
|
|
6
8
|
/** Additional CSS classes for the outer wrapper */
|
|
7
9
|
className?: string;
|
|
8
10
|
/** Custom CSS class for the progress bar fill (e.g., "bg-purple-500") */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { radioVariants } from './Radio.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Radio component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SliderProps as SliderPropsBase } from '@radix-ui/react-slider';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { rangeVariants } from './Range.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Range component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { selectVariants } from './Select.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Option type for Select dropdown items.
|
|
@@ -3,11 +3,12 @@ import { SelectProps, Option } from '../Select.types';
|
|
|
3
3
|
type UseSelectParams = {
|
|
4
4
|
ulRef: RefObject<ComponentRef<'ul'> | null>;
|
|
5
5
|
inputRef?: RefObject<ComponentRef<'input'> | null>;
|
|
6
|
+
searchInputRef?: RefObject<ComponentRef<'input'> | null>;
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
internalValue?: Option;
|
|
8
9
|
onBlur?: SelectProps['onBlur'];
|
|
9
10
|
};
|
|
10
|
-
export declare const useSelect: ({ ulRef, inputRef, disabled, internalValue, onBlur, }: UseSelectParams) => {
|
|
11
|
+
export declare const useSelect: ({ ulRef, inputRef, searchInputRef, disabled, internalValue, onBlur, }: UseSelectParams) => {
|
|
11
12
|
wrapperRef: RefObject<HTMLDivElement | null>;
|
|
12
13
|
wrapperInputRef: RefObject<HTMLDivElement | null>;
|
|
13
14
|
handleOpen: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator } from './components';
|
|
2
|
+
import { CollapseTrigger, Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator } from './components';
|
|
3
3
|
import { SidebarChildrenProps, Props as SidebarProps } from './Sidebar.types';
|
|
4
4
|
/**
|
|
5
5
|
* A compound component for building application sidebars.
|
|
@@ -25,4 +25,4 @@ import { SidebarChildrenProps, Props as SidebarProps } from './Sidebar.types';
|
|
|
25
25
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-sidebar--docs Storybook}
|
|
26
26
|
*/
|
|
27
27
|
declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
|
|
28
|
-
export { Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator, Sidebar, };
|
|
28
|
+
export { CollapseTrigger, Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator, Sidebar, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { CSSProperties, FC, PropsWithChildren } from 'react';
|
|
3
|
-
import { ClassNames as DrawerClassNames } from '
|
|
4
|
-
import { Theme } from '
|
|
3
|
+
import { ClassNames as DrawerClassNames } from '../Drawer/Drawer.types';
|
|
4
|
+
import { Theme } from '../../domain/theme';
|
|
5
5
|
import { SidebarModeProp } from './hooks/useSidebarMode';
|
|
6
6
|
import { wrapperSiderbarVariants } from './Sidebar.variants';
|
|
7
|
-
import { FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
7
|
+
import { CollapseTriggerProps, FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
8
8
|
/**
|
|
9
9
|
* Props for the Sidebar component.
|
|
10
10
|
* A compound component for building application sidebars with navigation.
|
|
@@ -77,7 +77,7 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
77
77
|
* the panel's horizontal padding so dividers can span edge-to-edge,
|
|
78
78
|
* raising the root `z-index` past higher-z layers, etc.
|
|
79
79
|
*
|
|
80
|
-
* The Sidebar already applies sensible defaults internally (root `z-
|
|
80
|
+
* The Sidebar already applies sensible defaults internally (root `z-60`,
|
|
81
81
|
* panel uses `wrapperClassName`, content `gap-0`); user-provided classes
|
|
82
82
|
* are appended via `cn`, so they win on conflicts.
|
|
83
83
|
*/
|
|
@@ -107,9 +107,9 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
107
107
|
* Inline styles applied to the wrapper `<aside>` (or the drawer panel in
|
|
108
108
|
* drawer mode). Useful for setting CSS custom properties that drive
|
|
109
109
|
* theming via the protection stylesheet (e.g.
|
|
110
|
-
* `--konstruct-sidebar-
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* `--konstruct-sidebar-logo-padding-expanded`), since inline styles
|
|
111
|
+
* outrank un-layered utilities shipped by federated remote
|
|
112
|
+
* micro-frontends.
|
|
113
113
|
*/
|
|
114
114
|
style?: CSSProperties;
|
|
115
115
|
}
|
|
@@ -119,6 +119,7 @@ export type SidebarProps = Props;
|
|
|
119
119
|
* Sidebar compound component type with sub-components.
|
|
120
120
|
*/
|
|
121
121
|
export type SidebarChildrenProps = {
|
|
122
|
+
CollapseTrigger: FC<CollapseTriggerProps>;
|
|
122
123
|
Footer: FC<FooterProps>;
|
|
123
124
|
Label: FC<LabelProps>;
|
|
124
125
|
Logo: FC<LogoProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const collapseTriggerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { typographyVariants } from '
|
|
3
|
+
import { typographyVariants } from '../../../Typography/Typography.variants';
|
|
4
4
|
export interface Props extends PropsWithChildren {
|
|
5
5
|
className?: string;
|
|
6
6
|
variant?: VariantProps<typeof typographyVariants>['variant'];
|
|
@@ -3,6 +3,14 @@ import { PropsWithChildren } from 'react';
|
|
|
3
3
|
import { logoVariants } from './Logo.variants';
|
|
4
4
|
export interface Props extends PropsWithChildren, VariantProps<typeof logoVariants> {
|
|
5
5
|
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* When true, keeps the logo content visible while the sidebar is in
|
|
8
|
+
* `collapsed` mode. By default the logo content hides in collapsed mode,
|
|
9
|
+
* while a `Sidebar.CollapseTrigger` placed as a direct child of
|
|
10
|
+
* `Sidebar.Logo` stays visible so the user can still expand the sidebar.
|
|
11
|
+
* Defaults to `false`.
|
|
12
|
+
*/
|
|
13
|
+
showOnCollapse?: boolean;
|
|
6
14
|
}
|
|
7
15
|
/** @deprecated Use Props instead */
|
|
8
16
|
export type LogoProps = Props;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const logoVariants: (props?:
|
|
1
|
+
export declare const logoVariants: (props?: ({
|
|
2
|
+
showOnCollapse?: boolean | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './CollapseTrigger/CollapseTrigger';
|
|
2
|
+
export type { CollapseTriggerProps } from './CollapseTrigger/CollapseTrigger.types';
|
|
1
3
|
export * from './Footer/Footer';
|
|
2
4
|
export type { FooterProps } from './Footer/Footer.types';
|
|
3
5
|
export * from './HamburgerTrigger/HamburgerTrigger';
|
|
@@ -11,6 +11,18 @@ export interface SidebarContextValue {
|
|
|
11
11
|
* navigation events (e.g. when the user clicks a link).
|
|
12
12
|
*/
|
|
13
13
|
closeDrawer: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the sidebar can be toggled between `expanded` and `collapsed`.
|
|
16
|
+
* `false` in `drawer` mode, where the drawer's own open/close controls
|
|
17
|
+
* apply instead.
|
|
18
|
+
*/
|
|
19
|
+
canToggle: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Toggles the sidebar between `expanded` and `collapsed`, overriding the
|
|
22
|
+
* viewport-derived mode until the viewport crosses a breakpoint. No-op in
|
|
23
|
+
* `drawer` mode.
|
|
24
|
+
*/
|
|
25
|
+
toggleMode: () => void;
|
|
14
26
|
}
|
|
15
27
|
export declare const SidebarContext: import('react').Context<SidebarContextValue>;
|
|
16
28
|
export declare const useSidebarContext: () => SidebarContextValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SliderProps as SliderPropsBase } from '@radix-ui/react-slider';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { sliderVariants } from './Slider.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Slider component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Props as TypographyProps } from '
|
|
4
|
-
import { Theme } from '
|
|
3
|
+
import { Props as TypographyProps } from '../Typography/Typography.types';
|
|
4
|
+
import { Theme } from '../../domain/theme';
|
|
5
5
|
import { spinnerVariants } from './Spinner.variants';
|
|
6
6
|
export type Props = HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
|
|
7
7
|
spinnerClassName?: string;
|
|
@@ -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 { stepperVariants } from './Stepper.variants';
|
|
5
5
|
export type StepStatus = 'completed' | 'active' | 'pending' | 'error';
|
|
6
6
|
export type StepSize = 'sm' | 'md' | 'lg';
|
|
@@ -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 { Step, StepperClassNames, StepperIcons, StepSize, StepStatus, StepVariant } from '../../Stepper.types';
|
|
4
4
|
import { stepIndicatorVariants } from '../../Stepper.variants';
|
|
5
5
|
export type Props = VariantProps<typeof stepIndicatorVariants> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { bodyVariants, headVariants, rowVariants, tableVariants } from './Table.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Table component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import { triggerVariants } from './Tabs.variants';
|
|
4
|
-
import { Theme } from '
|
|
4
|
+
import { Theme } from '../../domain/theme';
|
|
5
5
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
6
6
|
/**
|
|
7
7
|
* Props for the Tabs component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Props as TagProps } from '
|
|
2
|
+
import { Props as TagProps } from '../Tag/Tag.types';
|
|
3
3
|
import { tagSelectVariants } from './TagSelect.variants';
|
|
4
4
|
/**
|
|
5
5
|
* Props for the TagSelect component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Props as TagProps } from '
|
|
2
|
-
import { Theme } from '
|
|
1
|
+
import { Props as TagProps } from '../../../Tag/Tag.types';
|
|
2
|
+
import { Theme } from '../../../../domain/theme';
|
|
3
3
|
export type ItemProps = {
|
|
4
4
|
option: TagProps;
|
|
5
5
|
theme?: Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardedRef } from 'react';
|
|
2
|
-
import { Theme } from '
|
|
2
|
+
import { Theme } from '../../../../domain/theme';
|
|
3
3
|
import { Props as TagSelectProps } from '../../TagSelect.types';
|
|
4
4
|
export type WrapperProps = Omit<TagSelectProps, 'options' | 'multiselect'> & {
|
|
5
5
|
ref?: ForwardedRef<HTMLInputElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { textAreaVariants } from './TextArea.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the TextArea component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { toastVariants } from './Toast.variants';
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Toast component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ComponentRef, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { typographyVariants } from './Typography.variants';
|
|
5
5
|
/** Valid HTML heading tags */
|
|
6
6
|
export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -10,6 +10,7 @@ type VirtualizedTableCompound = (<TData extends RowData>(props: Props<TData>) =>
|
|
|
10
10
|
sendCollapseRowEvent: (tableId: string, rowId: string) => void;
|
|
11
11
|
sendToggleRowEvent: (tableId: string, rowId: string) => void;
|
|
12
12
|
sendResetFiltersEvent: (tableId: string) => void;
|
|
13
|
+
sendRefreshEvent: (tableId?: string) => void;
|
|
13
14
|
};
|
|
14
15
|
displayName?: string;
|
|
15
16
|
};
|