@konstructio/ui 0.1.2-alpha.106 → 0.1.2-alpha.107
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 +118 -31
- package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
- package/dist/{AlertDialogTrigger-BOrb536P.js → AlertDialogTrigger-ouMGAlJW.js} +1 -1
- package/dist/{Breadcrumb-DVBxqgW_.js → Breadcrumb-MrF1Z6w2.js} +1 -1
- package/dist/{Checkbox-B20uoUKD.js → Checkbox-8KnRLpQG.js} +86 -87
- package/dist/{CommandInput-BWt6-vUK.js → CommandInput-CGnqfudl.js} +1 -1
- package/dist/{Counter-DiQb-he2.js → Counter-CDXdP1Af.js} +1 -1
- package/dist/{DropdownButton-hCVYZ1LA.js → DropdownButton-D4QlKGg7.js} +5 -5
- package/dist/{FlagSelectorList-CnJjnsp6.js → FlagSelectorList-tYZNl-tz.js} +22 -18
- package/dist/{HamburgerTrigger-BT2yUUJ-.js → HamburgerTrigger-B_NGSZ2r.js} +19 -19
- package/dist/{ImageUpload-DgCBCa5X.js → ImageUpload-D7HKSXK8.js} +71 -66
- package/dist/Input-is8n7emP.js +195 -0
- package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
- package/dist/{Modal-CkAf9UY7.js → Modal-Dq9BHD_9.js} +2 -2
- package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
- package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
- package/dist/{Switch-CyJXptgc.js → Switch-C7286Bcu.js} +2 -2
- package/dist/{Toast-DLJDExxw.js → Toast-jSx3Lao8.js} +2 -2
- package/dist/Wrapper-2AUlYAHQ.js +195 -0
- package/dist/{Wrapper-CvDRHgN4.js → Wrapper-CyHxGs4E.js} +1 -1
- package/dist/{Wrapper-B8Ja3k4j.js → Wrapper-a7RVCcrn.js} +238 -232
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
- package/dist/components/Card/Card.js +25 -22
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.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/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- 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/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.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 +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- 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 +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Divider/Divider.js +7 -7
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +2 -2
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +2 -2
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.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/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.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/contexts/MultiSelectDropdown.context.js +4 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PieChart/PieChart.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +32 -28
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +78 -67
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +8 -8
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.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/TextArea/TextArea.js +71 -26
- package/dist/components/TextArea/TextArea.variants.js +49 -13
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +113 -98
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +2 -2
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +12 -12
- package/dist/{components-MnxnhLqM.js → components-CaEW5ge4.js} +32 -32
- package/dist/{constants-CSsr7_YV.js → constants-HQIXhj2t.js} +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{dist-Z0F27ATp2.js → dist-9WbMf_jT.js} +1 -1
- package/dist/{dist-oJzmvhAb.js → dist-AxOGvL82.js} +1 -1
- package/dist/{dist-CqNOgbfR.js → dist-BIBFLVt1.js} +3 -3
- package/dist/{dist-B6ExqXM_2.js → dist-BnCbAI-c.js} +1 -1
- package/dist/{dist-C87gsBDM.js → dist-CszFjHAP.js} +2 -2
- package/dist/{dist-ut_BEHii.js → dist-pxvIAJzo.js} +2 -2
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +14 -14
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
- package/dist/lib/components/Card/Card.types.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +3 -2
- package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
- package/dist/lib/components/Input/Input.types.d.ts +4 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
- package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/package.json +21 -21
- package/dist/{react-B6Nc0Fib.js → react-7zQ6bvbE.js} +290 -289
- package/dist/styles.css +1 -1
- package/dist/{table.provider-DfZ74xMZ.js → table.provider-CWzODR1t.js} +1 -1
- package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
- package/dist/utils/index.js +6 -5
- package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
- package/package.json +21 -21
- package/dist/Input-wp-rsCmX.js +0 -188
- package/dist/Wrapper-R8fik3ah.js +0 -182
- /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
- /package/dist/{dist-DwxO2RoR2.js → dist-DwxO2RoR.js} +0 -0
- /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
- /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
|
@@ -9,6 +9,7 @@ export type Props = {
|
|
|
9
9
|
labelDate?: string;
|
|
10
10
|
labelTime?: string;
|
|
11
11
|
ariaLabelDate?: string;
|
|
12
|
+
ariaLabelTime?: string;
|
|
12
13
|
onDateChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
13
14
|
onDateFocus: () => void;
|
|
14
15
|
onDateBlur: (e: FocusEvent<HTMLInputElement>) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FC
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './Divider.types';
|
|
2
3
|
/**
|
|
3
4
|
* A horizontal divider/separator line.
|
|
4
5
|
*
|
|
@@ -13,5 +14,5 @@ import { FC, HTMLAttributes } from 'react';
|
|
|
13
14
|
*
|
|
14
15
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-divider--docs Storybook}
|
|
15
16
|
*/
|
|
16
|
-
declare const Divider: FC<
|
|
17
|
+
declare const Divider: FC<Props>;
|
|
17
18
|
export { Divider };
|
|
@@ -19,6 +19,10 @@ export interface Props extends InputHTMLAttributes<HTMLInputElement>, VariantPro
|
|
|
19
19
|
helperText?: string;
|
|
20
20
|
/** Additional CSS classes for the helper text */
|
|
21
21
|
helperTextClassName?: string;
|
|
22
|
+
/** Accessible label for the password toggle while the password is visible */
|
|
23
|
+
hidePasswordLabel?: string;
|
|
24
|
+
/** Accessible label for the password toggle while the password is hidden */
|
|
25
|
+
showPasswordLabel?: string;
|
|
22
26
|
/** Show required indicator (*) next to label */
|
|
23
27
|
isRequired?: boolean;
|
|
24
28
|
/** Show search icon inside the input */
|
|
@@ -60,6 +60,8 @@ export interface Props extends VariantProps<typeof multiSelectDropdownVariants>,
|
|
|
60
60
|
name?: string;
|
|
61
61
|
/** Text shown when no options match the search */
|
|
62
62
|
noOptionsText?: string;
|
|
63
|
+
/** Text shown in the list while options are loading */
|
|
64
|
+
loadingText?: string;
|
|
63
65
|
/** Available options to select from */
|
|
64
66
|
options: MultiSelectDropdownOption[];
|
|
65
67
|
/** Placeholder text when no selection */
|
|
@@ -5,6 +5,7 @@ export type State = {
|
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
noOptionsText?: string;
|
|
8
|
+
loadingText?: string;
|
|
8
9
|
options: MultiSelectDropdownOption[];
|
|
9
10
|
selectedOptions: MultiSelectDropdownOption[];
|
|
10
11
|
onSelectOption: (option: MultiSelectDropdownOption) => void;
|
|
@@ -17,6 +18,7 @@ export type MultiSelectDropdownProviderProps = PropsWithChildren & {
|
|
|
17
18
|
multiselect?: boolean;
|
|
18
19
|
name?: string;
|
|
19
20
|
noOptionsText?: string;
|
|
21
|
+
loadingText?: string;
|
|
20
22
|
value?: MultiSelectDropdownOption[];
|
|
21
23
|
onChange?: (params: {
|
|
22
24
|
target: {
|
|
@@ -111,6 +111,8 @@ export type Props = VariantProps<typeof selectVariants> & Omit<InputHTMLAttribut
|
|
|
111
111
|
listItemSecondRowClassName?: string;
|
|
112
112
|
mainWrapperClassName?: string;
|
|
113
113
|
noOptionsText?: string;
|
|
114
|
+
/** Text shown in the list while options are loading */
|
|
115
|
+
loadingText?: string;
|
|
114
116
|
visibleItems?: number;
|
|
115
117
|
options: Option[] | OptionGroup[];
|
|
116
118
|
searchable?: boolean;
|
|
@@ -2,6 +2,8 @@ import { ComponentRef, RefObject } from 'react';
|
|
|
2
2
|
import { Props as SelectProps } from '../../Select.types';
|
|
3
3
|
export type ListProps = Pick<SelectProps, 'name' | 'options' | 'theme' | 'additionalOptions'> & {
|
|
4
4
|
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
labelledBy?: string;
|
|
5
7
|
groupedOptions: SelectProps['options'];
|
|
6
8
|
inputRef?: RefObject<ComponentRef<'input'> | null>;
|
|
7
9
|
isLoading: boolean;
|
|
@@ -12,5 +14,6 @@ export type ListProps = Pick<SelectProps, 'name' | 'options' | 'theme' | 'additi
|
|
|
12
14
|
isInfiniteScrollEnabled: SelectProps['isInfiniteScrollEnabled'];
|
|
13
15
|
onFetchMoreOptions?: SelectProps['onFetchMoreOptions'];
|
|
14
16
|
noOptionsText?: SelectProps['noOptionsText'];
|
|
17
|
+
loadingText?: SelectProps['loadingText'];
|
|
15
18
|
visibleItems?: number;
|
|
16
19
|
};
|
|
@@ -2,4 +2,6 @@ import { ComponentRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
2
2
|
import { SelectProps } from '../Select.types';
|
|
3
3
|
export declare const Wrapper: ForwardRefExoticComponent<Omit<SelectProps, 'options'> & {
|
|
4
4
|
groupedOptions: SelectProps['options'];
|
|
5
|
+
fieldId: string;
|
|
6
|
+
describedBy?: string;
|
|
5
7
|
} & RefAttributes<ComponentRef<'input'>>>;
|
|
@@ -69,6 +69,8 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
69
69
|
separatorClassName?: string;
|
|
70
70
|
/** Additional CSS classes for the hamburger trigger button rendered in drawer mode */
|
|
71
71
|
triggerClassName?: string;
|
|
72
|
+
/** Accessible label for the mobile navigation trigger */
|
|
73
|
+
openNavigationLabel?: string;
|
|
72
74
|
/**
|
|
73
75
|
* Per-slot class overrides for the underlying `Drawer` rendered in
|
|
74
76
|
* `drawer` mode. Mirrors `Drawer`'s `classNames` shape: `root`, `overlay`,
|
|
@@ -17,6 +17,12 @@ import { Props } from './TextArea.types';
|
|
|
17
17
|
* value={comments}
|
|
18
18
|
* onChange={(e) => setComments(e.target.value)}
|
|
19
19
|
* />
|
|
20
|
+
*
|
|
21
|
+
* // Required textarea with validation state
|
|
22
|
+
* <TextArea label="Bio" isRequired error="Bio is required" />
|
|
23
|
+
*
|
|
24
|
+
* // Textarea with helper text
|
|
25
|
+
* <TextArea label="Bio" helperText="Max 200 characters" />
|
|
20
26
|
* ```
|
|
21
27
|
*
|
|
22
28
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-textarea--docs Storybook}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
3
3
|
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { textAreaVariants } from './TextArea.variants';
|
|
5
5
|
/**
|
|
@@ -10,13 +10,24 @@ import { textAreaVariants } from './TextArea.variants';
|
|
|
10
10
|
* <TextArea label="Description" placeholder="Enter description..." />
|
|
11
11
|
* <TextArea label="Notes" rows={5} />
|
|
12
12
|
* <TextArea name="bio" initialValue="Default text" />
|
|
13
|
+
* <TextArea label="Bio" isRequired error="Bio is required" />
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
export interface Props extends
|
|
16
|
+
export interface Props extends TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
16
17
|
/** Number of visible text rows (default: 3) */
|
|
17
18
|
rows?: number;
|
|
19
|
+
/** Error message to display below the textarea */
|
|
20
|
+
error?: string;
|
|
21
|
+
/** Helper text displayed below the textarea when no error */
|
|
22
|
+
helperText?: string;
|
|
23
|
+
/** Additional CSS classes for the helper text */
|
|
24
|
+
helperTextClassName?: string;
|
|
25
|
+
/** Show required indicator (*) next to label */
|
|
26
|
+
isRequired?: boolean;
|
|
18
27
|
/** Label displayed above the textarea */
|
|
19
28
|
label?: string | ReactNode;
|
|
29
|
+
/** Additional CSS classes for the label */
|
|
30
|
+
labelClassName?: string;
|
|
20
31
|
/** Additional CSS classes for the label wrapper */
|
|
21
32
|
labelWrapperClassName?: string;
|
|
22
33
|
/** Form field name */
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare const textAreaVariants: (props?:
|
|
1
|
+
export declare const textAreaVariants: (props?: ({
|
|
2
|
+
variant?: "error" | "default" | null | undefined;
|
|
3
|
+
isExpandable?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -28,8 +28,12 @@ export type Props = VariantProps<typeof timePickerVariants> & {
|
|
|
28
28
|
time?: Date;
|
|
29
29
|
/** Form field name */
|
|
30
30
|
name?: string;
|
|
31
|
+
/** Id of the rendered control, for consumer-owned labels */
|
|
32
|
+
id?: string;
|
|
31
33
|
/** Label displayed above the picker */
|
|
32
34
|
label?: string;
|
|
35
|
+
/** Accessible name, when the visible label is rendered by the consumer */
|
|
36
|
+
ariaLabel?: string;
|
|
33
37
|
/** Whether the field is required */
|
|
34
38
|
isRequired?: boolean;
|
|
35
39
|
/** Additional CSS classes for the wrapper */
|
|
@@ -3,3 +3,4 @@ export declare const cn: (...inputs: ClassValue[]) => string;
|
|
|
3
3
|
export declare const filterByValue: (elements: string[], valueToFind: string) => string[];
|
|
4
4
|
export declare const isClient: boolean;
|
|
5
5
|
export declare const resolveColor: (cssVar: string) => string;
|
|
6
|
+
export declare const composeIds: (...ids: (string | false | null | undefined)[]) => string | undefined;
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.106",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@radix-ui/react-visually-hidden": "^1.2.11",
|
|
93
93
|
"@react-input/mask": "^2.0.4",
|
|
94
94
|
"@tanstack/react-table": "^8.21.3",
|
|
95
|
-
"@tanstack/react-virtual": "^3.14.
|
|
95
|
+
"@tanstack/react-virtual": "^3.14.10",
|
|
96
96
|
"chart.js": "^4.5.1",
|
|
97
97
|
"class-variance-authority": "^0.7.1",
|
|
98
98
|
"clsx": "^2.1.1",
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"google-libphonenumber": "^3.2.46",
|
|
104
104
|
"i18n-iso-countries": "^7.14.0",
|
|
105
105
|
"js-cookie": "^3.0.8",
|
|
106
|
-
"lucide-react": "^1.
|
|
107
|
-
"motion": "^13.
|
|
106
|
+
"lucide-react": "^1.34.0",
|
|
107
|
+
"motion": "^13.1.1",
|
|
108
108
|
"react-chartjs-2": "^5.3.1",
|
|
109
109
|
"react-day-picker": "^10.0.1",
|
|
110
110
|
"react-feather": "^2.0.10",
|
|
@@ -145,50 +145,50 @@
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@faker-js/faker": "^10.
|
|
148
|
+
"@faker-js/faker": "^10.6.0",
|
|
149
149
|
"@rollup/plugin-alias": "^6.0.0",
|
|
150
|
-
"@storybook/addon-docs": "^10.5.
|
|
151
|
-
"@storybook/addon-links": "^10.5.
|
|
152
|
-
"@storybook/react-vite": "^10.5.
|
|
150
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
151
|
+
"@storybook/addon-links": "^10.5.10",
|
|
152
|
+
"@storybook/react-vite": "^10.5.10",
|
|
153
153
|
"@tailwindcss/vite": "^4.3.3",
|
|
154
|
-
"@tanstack/react-query": "^5.
|
|
155
|
-
"@testing-library/jest-dom": "^7.0.
|
|
154
|
+
"@tanstack/react-query": "^5.102.2",
|
|
155
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
156
156
|
"@testing-library/react": "^16.3.2",
|
|
157
|
-
"@testing-library/user-event": "^14.6.
|
|
157
|
+
"@testing-library/user-event": "^14.6.6",
|
|
158
158
|
"@types/google-libphonenumber": "^7.4.31",
|
|
159
159
|
"@types/jest-axe": "^3.5.9",
|
|
160
160
|
"@types/js-cookie": "^3.0.6",
|
|
161
161
|
"@types/lodash": "^4.17.25",
|
|
162
162
|
"@types/react": "^19.2.18",
|
|
163
|
-
"@types/react-dom": "^19.2.
|
|
164
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
165
|
-
"@typescript-eslint/parser": "^8.
|
|
163
|
+
"@types/react-dom": "^19.2.5",
|
|
164
|
+
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
165
|
+
"@typescript-eslint/parser": "^8.67.0",
|
|
166
166
|
"@vitejs/plugin-react": "^6.0.3",
|
|
167
|
-
"@vitest/coverage-v8": "^4.1.
|
|
167
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
168
168
|
"autoprefixer": "^10.5.4",
|
|
169
169
|
"eslint": "^9.39.5",
|
|
170
170
|
"eslint-plugin-react": "^7.37.5",
|
|
171
171
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
172
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
173
|
-
"eslint-plugin-storybook": "^10.5.
|
|
172
|
+
"eslint-plugin-react-refresh": "^0.5.4",
|
|
173
|
+
"eslint-plugin-storybook": "^10.5.10",
|
|
174
174
|
"eslint-plugin-vitest": "^0.5.4",
|
|
175
175
|
"glob": "^13.0.6",
|
|
176
176
|
"husky": "^9.1.7",
|
|
177
177
|
"jest-axe": "^11.0.0",
|
|
178
178
|
"jsdom": "^30.0.1",
|
|
179
179
|
"lodash": "^4.18.1",
|
|
180
|
-
"postcss": "^8.5.
|
|
180
|
+
"postcss": "^8.5.26",
|
|
181
181
|
"prettier": "^3.9.6",
|
|
182
182
|
"rimraf": "^6.1.3",
|
|
183
|
-
"storybook": "^10.5.
|
|
183
|
+
"storybook": "^10.5.10",
|
|
184
184
|
"tailwindcss": "^4.3.3",
|
|
185
185
|
"ts-node": "^10.9.2",
|
|
186
186
|
"typescript": "^6.0.3",
|
|
187
|
-
"vite": "^8.2.
|
|
187
|
+
"vite": "^8.2.2",
|
|
188
188
|
"vite-plugin-dts": "^5.0.3",
|
|
189
189
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
190
190
|
"vite-plugin-svgr": "^5.2.0",
|
|
191
|
-
"vitest": "^4.1.
|
|
191
|
+
"vitest": "^4.1.11"
|
|
192
192
|
},
|
|
193
193
|
"overrides": {
|
|
194
194
|
"storybook": "$storybook",
|