@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.103
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/dist/AlertDialogTrigger-CgcsW_ta.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-DzAx7n67.js +249 -0
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BnvRMfLI.js} +2 -2
- package/dist/{Counter-DWKyr569.js → Counter-CY0xGnVM.js} +2 -2
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/{DropdownButton-Beel5_gN.js → DropdownButton-DnlwdPmb.js} +1 -1
- package/dist/FlagSelectorList-BoYG-_It.js +852 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-1vOTrm8-.js} +2 -2
- package/dist/{Input-DG3snJf_.js → Input-CW0VwW2T.js} +4 -4
- package/dist/{Modal-Bcu6LLAp.js → Modal-Bfzggwlr.js} +2 -2
- package/dist/{Spinner-BegZ5yd7.js → Spinner-Lw9mZYhg.js} +1 -1
- package/dist/Switch-WBRr8uOJ.js +196 -0
- package/dist/Toast-ByH-l4XK.js +459 -0
- package/dist/{Wrapper-DwxJAkNQ.js → Wrapper-ClJ_Mham.js} +2 -2
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-XeeD3av7.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- 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/Breadcrumb/Breadcrumb.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 +1 -1
- 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 +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.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/Datepicker/DatePicker.js +2 -3
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +4 -3
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +23 -24
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +35 -43
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +33 -34
- 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/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -34
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +8 -5
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Modal/Modal.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/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/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
- 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 +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/components/List/List.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- 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/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/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/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +87 -87
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -19
- 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 +53 -63
- 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/index.js +10 -10
- package/dist/{components-CYt24H4n.js → components-BIHlj4yH.js} +1 -1
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-2bGlmy8N2.js +165 -0
- package/dist/dist-BiJrNvNo.js +193 -0
- package/dist/dist-BuFiu480.js +13 -0
- package/dist/dist-C2aTw0m62.js +1320 -0
- package/dist/{dist-DvoMuWKO2.js → dist-C2s4VX-42.js} +4 -4
- package/dist/dist-CT6d9xe7.js +441 -0
- package/dist/dist-CTvBzxW8.js +31 -0
- package/dist/dist-CVDFmWf2.js +358 -0
- package/dist/dist-D4FePjTS.js +194 -0
- package/dist/dist-DISvWx7U.js +99 -0
- package/dist/dist-Db6UeFo4.js +291 -0
- package/dist/{dist-DGO9opgu.js → dist-Dse3gSmZ.js} +49 -49
- package/dist/dist-j7FOUrFU.js +206 -0
- package/dist/{dist-C8NWUTUh.js → dist-l-aDnQZC.js} +1 -1
- package/dist/es2015-BWf6xQHm.js +222 -0
- package/dist/index.js +10 -10
- 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/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/Filter/Filter.types.d.ts +1 -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 +1 -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/ProgressBar/ProgressBar.types.d.ts +1 -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/Sidebar/Sidebar.types.d.ts +2 -2
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- 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.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/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/package.json +34 -33
- 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-2sAkE7z_.js} +395 -368
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +34 -33
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- 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-eAwtFCCA.js +0 -87
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
|
@@ -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
|
};
|
|
@@ -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,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>;
|
|
@@ -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 { progressBarFillVariants } from './ProgressBar.variants';
|
|
5
5
|
export interface Props extends VariantProps<typeof progressBarFillVariants> {
|
|
6
6
|
/** Additional CSS classes for the outer wrapper */
|
|
@@ -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.
|
|
@@ -1,7 +1,7 @@
|
|
|
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
7
|
import { FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
@@ -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'];
|
|
@@ -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';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColumnDef as ColumnDefPrimitive, ExpandedState, OnChangeFn, RowData as RowDataPrimitive } from '@tanstack/react-table';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { Props as ButtonProps } from '
|
|
5
|
-
import { DateRange, DateRangeWithTime } from '
|
|
6
|
-
import { TimePreset } from '
|
|
4
|
+
import { Props as ButtonProps } from '../Button/Button.types';
|
|
5
|
+
import { DateRange, DateRangeWithTime } from '../DateRangePicker/DateRangePicker.types';
|
|
6
|
+
import { TimePreset } from '../Filter/components/TimeFilterDropdown/TimeFilterDropdown.types';
|
|
7
7
|
import { virtualizeTableVariants } from './VirtualizedTable.variants';
|
|
8
8
|
import { Option } from './components/Filter/Filter.types';
|
|
9
9
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
@@ -157,6 +157,24 @@ export type Props<TData extends RowDataPrimitive> = VariantProps<typeof virtuali
|
|
|
157
157
|
isLoading?: boolean;
|
|
158
158
|
/** Rendered in place of rows when the table has no data (and is not loading). */
|
|
159
159
|
emptyState?: ReactNode;
|
|
160
|
+
/**
|
|
161
|
+
* Rendered in place of rows when the query failed and there are no rows to
|
|
162
|
+
* display. With React Query's default retry (3 attempts) it appears after
|
|
163
|
+
* retries are exhausted; pass `queryOptions={{ retry: false }}` to show it
|
|
164
|
+
* immediately. When both `errorState` and `emptyState` are set, `errorState`
|
|
165
|
+
* wins on error.
|
|
166
|
+
*/
|
|
167
|
+
errorState?: ReactNode | ((error: Error) => ReactNode);
|
|
168
|
+
/** Rendered as a full-width band above the column headers, inside the table. */
|
|
169
|
+
headerContent?: ReactNode;
|
|
170
|
+
classNameHeaderContent?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Classes for the div wrapping the table body + pagination bar (the filter
|
|
173
|
+
* row stays outside, fixed to the container width). Pass e.g.
|
|
174
|
+
* `'overflow-x-auto contain-inline-size'` to get a horizontal scroll
|
|
175
|
+
* container whose pagination bar tracks the table width.
|
|
176
|
+
*/
|
|
177
|
+
classNameScrollContainer?: string;
|
|
160
178
|
getRowId?: (originalRow: TData, index: number) => string;
|
|
161
179
|
fetchData?: (params: Record<string, string | number | string[] | number[] | undefined>, signal?: AbortSignal) => Promise<{
|
|
162
180
|
data: TData[];
|
|
@@ -170,6 +188,11 @@ export type Props<TData extends RowDataPrimitive> = VariantProps<typeof virtuali
|
|
|
170
188
|
showFormPagination?: boolean;
|
|
171
189
|
pageSizes?: number[] | string[];
|
|
172
190
|
totalItems: number;
|
|
191
|
+
/**
|
|
192
|
+
* Direction of the page-size dropdown. 'auto' (default) opens downward
|
|
193
|
+
* and flips upward when there is no room below in the viewport.
|
|
194
|
+
*/
|
|
195
|
+
dropdownPaginationDirection?: 'auto' | 'up' | 'down';
|
|
173
196
|
} | {
|
|
174
197
|
showPagination?: false | undefined;
|
|
175
198
|
showTotalItems?: never;
|
|
@@ -178,6 +201,7 @@ export type Props<TData extends RowDataPrimitive> = VariantProps<typeof virtuali
|
|
|
178
201
|
showFormPagination?: never;
|
|
179
202
|
pageSizes?: never;
|
|
180
203
|
totalItems?: never;
|
|
204
|
+
dropdownPaginationDirection?: never;
|
|
181
205
|
}) & ({
|
|
182
206
|
filterSearchPlaceholder?: string;
|
|
183
207
|
/** @deprecated Use `filters` instead */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../../VirtualizedTable.types';
|
|
2
2
|
import { BodyProps } from './Body.types';
|
|
3
|
-
export declare const Body: <TData extends RowData = RowData>({ isLoading, showPagination, emptyState, }: BodyProps<TData>) => import("react").JSX.Element;
|
|
3
|
+
export declare const Body: <TData extends RowData = RowData>({ isLoading, showPagination, emptyState, errorState, }: BodyProps<TData>) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionFilterConfig, FilterConfig, MultiSelectFilter } from '../../VirtualizedTable.types';
|
|
2
|
-
export type { Option } from '
|
|
2
|
+
export type { Option } from '../../../Filter/Filter.types';
|
|
3
3
|
/** @deprecated Use `ActionFilterConfig` with `type: 'action'` in the `filters` array instead */
|
|
4
4
|
export type FilterAction = ActionFilterConfig;
|
|
5
5
|
export type Props = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../../VirtualizedTable.types';
|
|
2
2
|
import { Props } from './Header.types';
|
|
3
|
-
export declare const Header: <TData extends RowData>({ className, classNameArrows, classNameActiveArrows, }: Props) => import("react").JSX.Element;
|
|
3
|
+
export declare const Header: <TData extends RowData>({ className, classNameArrows, classNameActiveArrows, classNameHeaderContent, }: Props) => import("react").JSX.Element;
|
package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
|
-
import { Props as TooltipProps } from '
|
|
2
|
+
import { Props as TooltipProps } from '../../../Tooltip/Tooltip.types';
|
|
3
3
|
import { RowData } from '../../VirtualizedTable.types';
|
|
4
4
|
export type Props<TData extends RowData> = CellContext<TData, string> & Partial<Omit<TooltipProps, 'content' | 'children' | 'textClassName'>> & {
|
|
5
5
|
value?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../VirtualizedTable.types';
|
|
2
2
|
import { Props } from './table.types';
|
|
3
|
-
export declare const TableProvider: <TData extends RowData = RowData>({ children, classNameExpandedCell, classNameExpandedContent, classNameExpandedRow, classNameExpandedHeader, classNameActiveExpandedRow, classNameHoverRow, columns, data: defaultData, defaultExpanded, enableExpandedRow, enableHoverRow, expandedState, id, isPaginationEnabled, queryOptions, totalItems, getRowId, fetchData, onExpandedChange, renderExpandedRow, keepExpandColumnVisible, }: Props<TData>) => import("react").JSX.Element;
|
|
3
|
+
export declare const TableProvider: <TData extends RowData = RowData>({ children, classNameExpandedCell, classNameExpandedContent, classNameExpandedRow, classNameExpandedHeader, classNameActiveExpandedRow, classNameHoverRow, columns, data: defaultData, defaultExpanded, enableExpandedRow, enableHoverRow, expandedState, headerContent, id, isPaginationEnabled, queryOptions, totalItems, getRowId, fetchData, onExpandedChange, renderExpandedRow, keepExpandColumnVisible, }: Props<TData>) => import("react").JSX.Element;
|
|
@@ -4,6 +4,7 @@ import { RowData, Props as TableProps } from '../VirtualizedTable.types';
|
|
|
4
4
|
export type Props<TData extends RowData = RowData> = PropsWithChildren & {
|
|
5
5
|
id: string | string[] | number | number[];
|
|
6
6
|
data: TData[];
|
|
7
|
+
headerContent?: ReactNode;
|
|
7
8
|
columns: ColumnDef<TData, string>[];
|
|
8
9
|
totalItems: number;
|
|
9
10
|
queryOptions?: TableProps<TData>['queryOptions'];
|