@trackunit/react-form-components 1.8.116 → 1.8.119

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.
Files changed (41) hide show
  1. package/index.cjs.js +92 -84
  2. package/index.esm.js +92 -84
  3. package/package.json +7 -7
  4. package/src/components/ActionButton/ActionButton.d.ts +1 -1
  5. package/src/components/BaseInput/BaseInput.d.ts +1 -1
  6. package/src/components/BaseInput/components/AddonRenderer.d.ts +1 -1
  7. package/src/components/BaseInput/components/LockReasonRenderer.d.ts +2 -2
  8. package/src/components/BaseInput/components/PrefixRenderer.d.ts +1 -1
  9. package/src/components/BaseInput/components/SuffixRenderer.d.ts +2 -2
  10. package/src/components/BaseSelect/SelectMenuItem/SelectMenuItem.d.ts +2 -2
  11. package/src/components/BaseSelect/useCustomComponents.d.ts +2 -2
  12. package/src/components/BaseSelect/useSelect.d.ts +1 -1
  13. package/src/components/Checkbox/CheckIcon.d.ts +1 -1
  14. package/src/components/Checkbox/Checkbox.d.ts +1 -1
  15. package/src/components/CheckboxField/CheckboxField.d.ts +1 -1
  16. package/src/components/DateField/DateField.d.ts +1 -1
  17. package/src/components/DropZone/DropZone.d.ts +1 -1
  18. package/src/components/EmailField/EmailBaseInput/EmailBaseInput.d.ts +1 -1
  19. package/src/components/EmailField/EmailField.d.ts +1 -1
  20. package/src/components/FormGroup/FormGroup.d.ts +1 -1
  21. package/src/components/Label/Label.d.ts +1 -1
  22. package/src/components/NumberField/NumberField.d.ts +1 -1
  23. package/src/components/OptionCard/OptionCard.d.ts +1 -1
  24. package/src/components/PasswordField/PasswordField.d.ts +1 -1
  25. package/src/components/PhoneField/PhoneBaseInput/CountryCodeSelect.d.ts +1 -1
  26. package/src/components/PhoneField/PhoneBaseInput/PhoneBaseInput.d.ts +1 -1
  27. package/src/components/PhoneField/PhoneField.d.ts +1 -1
  28. package/src/components/RadioGroup/RadioGroup.d.ts +1 -1
  29. package/src/components/RadioGroup/RadioItem.d.ts +1 -1
  30. package/src/components/Schedule/Schedule.d.ts +1 -1
  31. package/src/components/Search/Search.d.ts +1 -1
  32. package/src/components/SelectField/FormFieldSelectAdapter.d.ts +1 -1
  33. package/src/components/TextAreaField/TextArea/TextAreaBaseInput.d.ts +1 -1
  34. package/src/components/TextAreaField/TextAreaField.d.ts +1 -1
  35. package/src/components/TextField/TextField.d.ts +1 -1
  36. package/src/components/TimeRange/TimeRange.d.ts +1 -1
  37. package/src/components/TimeRangeField/TimeRangeField.d.ts +1 -1
  38. package/src/components/ToggleSwitchOption/ToggleSwitchOption.d.ts +1 -1
  39. package/src/components/UploadField/UploadField.d.ts +1 -1
  40. package/src/components/UrlField/UrlBaseInput/UrlBaseInput.d.ts +1 -1
  41. package/src/components/UrlField/UrlField.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "1.8.116",
3
+ "version": "1.8.119",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,12 +14,12 @@
14
14
  "zod": "^3.23.8",
15
15
  "react-hook-form": "7.62.0",
16
16
  "tailwind-merge": "^2.0.0",
17
- "@trackunit/css-class-variance-utilities": "1.7.75",
18
- "@trackunit/react-components": "1.10.49",
19
- "@trackunit/ui-icons": "1.7.76",
20
- "@trackunit/shared-utils": "1.9.75",
21
- "@trackunit/ui-design-tokens": "1.7.75",
22
- "@trackunit/i18n-library-translation": "1.7.92",
17
+ "@trackunit/css-class-variance-utilities": "1.7.77",
18
+ "@trackunit/react-components": "1.10.52",
19
+ "@trackunit/ui-icons": "1.7.78",
20
+ "@trackunit/shared-utils": "1.9.77",
21
+ "@trackunit/ui-design-tokens": "1.7.77",
22
+ "@trackunit/i18n-library-translation": "1.7.95",
23
23
  "string-ts": "^2.0.0",
24
24
  "@js-temporal/polyfill": "^0.5.1",
25
25
  "@storybook/react-webpack5": "9.1.13"
@@ -48,5 +48,5 @@ type ActionButtonProps = CopyActionButtonProps | GenericActionButtonProps | Edit
48
48
  * @param {ActionButtonProps} props - The props for the ActionButton component
49
49
  * @returns {ReactElement} ActionButton component
50
50
  */
51
- export declare const ActionButton: ({ type, value, dataTestId, size, disabled, className, onClick }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const ActionButton: ({ type, value, "data-testid": dataTestId, size, disabled, className, onClick, }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
52
52
  export {};
@@ -76,7 +76,7 @@ export interface BaseInputProps extends FilteredInputProps, CommonProps {
76
76
  * This is a base used by our other input components such as TextBaseInput, NumberBaseInput, PasswordBaseInput, etc.
77
77
  */
78
78
  export declare const BaseInput: {
79
- ({ className, isInvalid, dataTestId, prefix, suffix, addonBefore, addonAfter, actions, fieldSize, nonInteractive, inputClassName, placeholder, isWarning, type, genericAction, style, ref, required, ...rest }: BaseInputProps): ReactElement;
79
+ ({ className, isInvalid, "data-testid": dataTestId, prefix, suffix, addonBefore, addonAfter, actions, fieldSize, nonInteractive, inputClassName, placeholder, isWarning, type, genericAction, style, ref, required, ...rest }: BaseInputProps): ReactElement;
80
80
  displayName: string;
81
81
  };
82
82
  export {};
@@ -12,5 +12,5 @@ type AddonRendererProps = {
12
12
  /**
13
13
  * Renders the addon element if provided
14
14
  */
15
- export declare const AddonRenderer: ({ addon, dataTestId, className, fieldSize, position }: AddonRendererProps) => import("react/jsx-runtime").JSX.Element | null;
15
+ export declare const AddonRenderer: ({ addon, "data-testid": dataTestId, className, fieldSize, position, }: AddonRendererProps) => import("react/jsx-runtime").JSX.Element | null;
16
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import { LockedForReasons } from "../InputLockReasonTooltip";
2
- export declare const LockReasonRenderer: ({ lockReason, dataTestId, }: {
2
+ export declare const LockReasonRenderer: ({ lockReason, "data-testid": dataTestId, }: {
3
3
  lockReason?: LockedForReasons | boolean;
4
- dataTestId?: string;
4
+ "data-testid"?: string;
5
5
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -2,7 +2,7 @@ import { HTMLInputTypeAttribute, ReactNode } from "react";
2
2
  type PrefixRendererProps = {
3
3
  prefix?: ReactNode;
4
4
  type?: HTMLInputTypeAttribute;
5
- dataTestId?: string;
5
+ "data-testid"?: string;
6
6
  disabled: boolean;
7
7
  };
8
8
  export declare const PrefixRenderer: import("react").ForwardRefExoticComponent<PrefixRendererProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from "react";
2
- export declare const SuffixRenderer: ({ suffix, isInvalid, isWarning, dataTestId, disabled, }: {
2
+ export declare const SuffixRenderer: ({ suffix, isInvalid, isWarning, "data-testid": dataTestId, disabled, }: {
3
3
  suffix?: ReactNode;
4
4
  isInvalid?: boolean;
5
5
  isWarning?: boolean;
6
- dataTestId?: string;
6
+ "data-testid"?: string;
7
7
  disabled: boolean;
8
8
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -52,12 +52,12 @@ export interface SingleSelectMenuItemProps extends SelectMenuItemProps {
52
52
  * @param {SelectMenuItemProps} props - The props for the SingleSelectMenuItem
53
53
  * @returns {ReactElement} SingleSelectMenuItem
54
54
  */
55
- export declare const SingleSelectMenuItem: ({ label, icon, onClick, selected, focused, dataTestId, disabled, optionLabelDescription, optionPrefix, fieldSize, }: SingleSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
55
+ export declare const SingleSelectMenuItem: ({ label, icon, onClick, selected, focused, "data-testid": dataTestId, disabled, optionLabelDescription, optionPrefix, fieldSize, }: SingleSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
56
56
  /**
57
57
  * A multi select menu item is a basic wrapper around Menu item designed to be used as a multi value render in Select list
58
58
  *
59
59
  * @param {SelectMenuItemProps} props - The props for the MultiSelectMenuItem
60
60
  * @returns {ReactElement} multi select menu item
61
61
  */
62
- export declare const MultiSelectMenuItem: ({ label, onClick, selected, focused, dataTestId, disabled, optionLabelDescription, optionPrefix, fieldSize, }: SelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const MultiSelectMenuItem: ({ label, onClick, selected, focused, "data-testid": dataTestId, disabled, optionLabelDescription, optionPrefix, fieldSize, }: SelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
63
63
  export {};
@@ -17,12 +17,12 @@ import { FormComponentSizes } from "../../types";
17
17
  * @param {ReactNode} prefix a prefix element
18
18
  * @returns {Partial<SelectComponents<Option, boolean, GroupBase<Option>>> | undefined} components object to override react-select default components
19
19
  */
20
- export declare const useCustomComponents: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ componentsProps, disabled, readOnly, setMenuIsEnabled, dataTestId, maxSelectedDisplayCount, prefix, hasError, fieldSize, getOptionLabelDescription, getOptionPrefix, }: {
20
+ export declare const useCustomComponents: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ componentsProps, disabled, readOnly, setMenuIsEnabled, "data-testid": dataTestId, maxSelectedDisplayCount, prefix, hasError, fieldSize, getOptionLabelDescription, getOptionPrefix, }: {
21
21
  componentsProps: Partial<SelectComponents<Option, IsMulti, Group>> | undefined;
22
22
  disabled: boolean;
23
23
  readOnly: boolean;
24
24
  setMenuIsEnabled: (menuIsEnabled: boolean) => void;
25
- dataTestId: string;
25
+ "data-testid": string;
26
26
  maxSelectedDisplayCount: number | undefined;
27
27
  prefix?: ReactNode;
28
28
  hasError?: boolean;
@@ -150,5 +150,5 @@ interface UseSelectProps<Option, IsMulti extends boolean = false, Group extends
150
150
  * @param {SelectProps} props - The props for the Select component
151
151
  * @returns {UseSelectProps} Select component
152
152
  */
153
- export declare const useSelect: <Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, dataTestId, prefix, async, maxMenuHeight, label, hasError, disabled, isMulti, components, value, options, onChange, isLoading, classNamePrefix, onMenuOpen, onMenuClose, maxSelectedDisplayCount, isClearable, isSearchable, onMenuScrollToBottom, styles, filterOption, onInputChange, getOptionLabelDescription, getOptionPrefix, fieldSize, ...props }: SelectProps<Option, IsAsync, IsMulti, Group>) => UseSelectProps<Option, IsMulti, Group>;
153
+ export declare const useSelect: <Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, "data-testid": dataTestId, prefix, async, maxMenuHeight, label, hasError, disabled, isMulti, components, value, options, onChange, isLoading, classNamePrefix, onMenuOpen, onMenuClose, maxSelectedDisplayCount, isClearable, isSearchable, onMenuScrollToBottom, styles, filterOption, onInputChange, getOptionLabelDescription, getOptionPrefix, fieldSize, ...props }: SelectProps<Option, IsAsync, IsMulti, Group>) => UseSelectProps<Option, IsMulti, Group>;
154
154
  export {};
@@ -7,5 +7,5 @@ interface CheckIconProps extends CommonProps {
7
7
  * @param {CheckIconProps} props - The props for the CheckIcon component
8
8
  * @returns {ReactElement} CheckIcon component
9
9
  */
10
- export declare const CheckIcon: ({ className, dataTestId }: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CheckIcon: ({ className, "data-testid": dataTestId }: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -54,6 +54,6 @@ export interface CheckboxProps extends CommonProps, MappedOmit<InputHTMLAttribut
54
54
  * @param {CheckboxProps} props - The props for the Checkbox component
55
55
  */
56
56
  export declare const Checkbox: {
57
- ({ className, dataTestId, onChange, checked, disabled, isInvalid, readOnly, indeterminate, suffix, label, tabIndex, stopPropagation, ref, ...rest }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
57
+ ({ className, "data-testid": dataTestId, onChange, checked, disabled, isInvalid, readOnly, indeterminate, suffix, label, tabIndex, stopPropagation, ref, ...rest }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
58
58
  displayName: string;
59
59
  };
@@ -15,7 +15,7 @@ export interface CheckboxFieldProps extends CheckboxProps, FormGroupExposedProps
15
15
  * _**Do use**_ the CheckboxField for boolean input.
16
16
  */
17
17
  export declare const CheckboxField: {
18
- ({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, dataTestId, checkboxLabel, onChange, ref, ...rest }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
18
+ ({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, "data-testid": dataTestId, checkboxLabel, onChange, ref, ...rest }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  export {};
@@ -20,7 +20,7 @@ export interface DateFieldProps extends DateBaseInputProps, FormGroupExposedProp
20
20
  * _**Do not use**_ this fields for non-serialized dates. Use TextField instead.
21
21
  */
22
22
  export declare const DateField: {
23
- ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, className, defaultValue, dataTestId, ref, ...rest }: DateFieldProps): import("react/jsx-runtime").JSX.Element;
23
+ ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, className, defaultValue, "data-testid": dataTestId, ref, ...rest }: DateFieldProps): import("react/jsx-runtime").JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  export {};
@@ -30,5 +30,5 @@ export interface DropZoneProps extends BaseInputExposedProps, CommonProps {
30
30
  * @param {DropZoneProps} props - The props for the DropZone component
31
31
  * @returns {ReactElement} DropZone component
32
32
  */
33
- export declare const DropZone: ({ className, dataTestId, filesSelected, label, size, isInvalid, disabled, accept, multiple, ...rest }: DropZoneProps) => ReactElement;
33
+ export declare const DropZone: ({ className, "data-testid": dataTestId, filesSelected, label, size, isInvalid, disabled, accept, multiple, ...rest }: DropZoneProps) => ReactElement;
34
34
  export {};
@@ -21,5 +21,5 @@ export interface EmailBaseInputProps extends BaseInputExposedProps {
21
21
  * A reference to the input element is provided as the `ref` prop.
22
22
  * For specific input types make sure to use the corresponding input component.
23
23
  */
24
- export declare const EmailBaseInput: ({ fieldSize, disabled, dataTestId, isInvalid, onChange, disableAction, ref, ...rest }: EmailBaseInputProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const EmailBaseInput: ({ fieldSize, disabled, "data-testid": dataTestId, isInvalid, onChange, disableAction, ref, ...rest }: EmailBaseInputProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -13,7 +13,7 @@ export interface EmailFieldProps extends FormGroupExposedProps, BaseInputProps {
13
13
  *
14
14
  */
15
15
  export declare const EmailField: {
16
- ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, value, onChange, onBlur, isInvalid, ref, ...rest }: EmailFieldProps): import("react/jsx-runtime").JSX.Element;
16
+ ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value, onChange, onBlur, isInvalid, ref, ...rest }: EmailFieldProps): import("react/jsx-runtime").JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  export {};
@@ -42,4 +42,4 @@ export interface FormGroupProps extends CommonProps {
42
42
  * @param {FormGroupProps} props - The props for the FormGroup component
43
43
  * @returns {ReactElement} FormGroup component
44
44
  */
45
- export declare const FormGroup: ({ isInvalid, isWarning, helpText, helpAddon, tip, className, dataTestId, label, htmlFor, children, required, }: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
45
+ export declare const FormGroup: ({ isInvalid, isWarning, helpText, helpAddon, tip, className, "data-testid": dataTestId, label, htmlFor, children, required, }: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -30,4 +30,4 @@ export interface LabelProps extends CommonProps {
30
30
  * @param {LabelProps} props - The props for the Label component
31
31
  * @returns {ReactElement} Label component
32
32
  */
33
- export declare const Label: ({ id, htmlFor, children, className, dataTestId, disabled, isInvalid, }: LabelProps) => ReactElement;
33
+ export declare const Label: ({ id, htmlFor, children, className, "data-testid": dataTestId, disabled, isInvalid, }: LabelProps) => ReactElement;
@@ -20,7 +20,7 @@ export interface NumberFieldProps extends NumberBaseInputProps, FormGroupExposed
20
20
  * _**Do not use**_ this fields for non-serialized numbers. Use TextField instead.
21
21
  */
22
22
  export declare const NumberField: {
23
- ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, maxLength, className, value, dataTestId, defaultValue, onBlur, onChange, ref, ...rest }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
23
+ ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, maxLength, className, value, "data-testid": dataTestId, defaultValue, onBlur, onChange, ref, ...rest }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  export {};
@@ -46,7 +46,7 @@ interface CustomImage {
46
46
  * A card version of a radio button that includes an icon, headings and a description.
47
47
  */
48
48
  export declare const OptionCard: {
49
- ({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react/jsx-runtime").JSX.Element;
49
+ ({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, "data-testid": dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react/jsx-runtime").JSX.Element;
50
50
  displayName: string;
51
51
  };
52
52
  export {};
@@ -20,7 +20,7 @@ export interface PasswordFieldProps extends Omit<PasswordBaseInputProps, "obfusc
20
20
  * _**Do not use** to confirm user actions, such as deleting. Use a checkbox for such flows._
21
21
  */
22
22
  export declare const PasswordField: {
23
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, dataTestId, ref, ...rest }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
23
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, ...rest }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  export {};
@@ -22,5 +22,5 @@ interface CountryCodeSelectProps extends CommonProps {
22
22
  * @param {CountryCodeSelectProps} props - The props for the CountryCodeSelect component
23
23
  * @returns {ReactElement} CountryCodeSelect component
24
24
  */
25
- export declare const CountryCodeSelect: ({ excludedCountries, countryCode, isInvalid, onChange, disabled, readOnly, dataTestId, placeholder, onBlur, isClearable, }: CountryCodeSelectProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const CountryCodeSelect: ({ excludedCountries, countryCode, isInvalid, onChange, disabled, readOnly, "data-testid": dataTestId, placeholder, onBlur, isClearable, }: CountryCodeSelectProps) => import("react/jsx-runtime").JSX.Element;
26
26
  export {};
@@ -26,5 +26,5 @@ export interface PhoneBaseInputProps extends BaseInputExposedProps {
26
26
  * @param {string} [fieldSize="medium"] - The size of the input field.
27
27
  * @param {boolean} [disableAction=false] - Whether the action button is disabled or not.
28
28
  */
29
- export declare const PhoneBaseInput: ({ dataTestId, isInvalid, disabled, value, defaultValue, fieldSize, disableAction, onChange, readOnly, onFocus, onBlur, name, ref, ...rest }: PhoneBaseInputProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const PhoneBaseInput: ({ "data-testid": dataTestId, isInvalid, disabled, value, defaultValue, fieldSize, disableAction, onChange, readOnly, onFocus, onBlur, name, ref, ...rest }: PhoneBaseInputProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export {};
@@ -28,7 +28,7 @@ export interface PhoneFieldProps extends FormGroupExposedProps, PhoneBaseInputPr
28
28
  * @param {boolean} [disableAction=false] - Whether the action button is disabled or not.
29
29
  */
30
30
  export declare const PhoneField: {
31
- ({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, dataTestId, name, onBlur, ref, ...rest }: PhoneFieldProps): import("react/jsx-runtime").JSX.Element;
31
+ ({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, "data-testid": dataTestId, name, onBlur, ref, ...rest }: PhoneFieldProps): import("react/jsx-runtime").JSX.Element;
32
32
  displayName: string;
33
33
  };
34
34
  export {};
@@ -51,6 +51,6 @@ export interface RadioGroupProps<V extends string | number> extends CommonProps,
51
51
  * @returns {ReactElement} RadioGroup component
52
52
  */
53
53
  export declare const RadioGroup: {
54
- <V extends string | number = string>({ children, id, name, value, disabled, onChange, label, inline, className, dataTestId, isInvalid, }: RadioGroupProps<V>): ReactElement;
54
+ <V extends string | number = string>({ children, id, name, value, disabled, onChange, label, inline, className, "data-testid": dataTestId, isInvalid, }: RadioGroupProps<V>): ReactElement;
55
55
  displayName: string;
56
56
  };
@@ -25,4 +25,4 @@ export interface RadioItemProps<V extends string | number = string> extends Comm
25
25
  * @param {RadioItemProps} props - The props for the RadioItem component
26
26
  * @returns {ReactElement} RadioItem component
27
27
  */
28
- export declare const RadioItem: <V extends string | number>({ label, value, dataTestId, className, description, suffix, ...rest }: RadioItemProps<V>) => ReactElement;
28
+ export declare const RadioItem: <V extends string | number>({ label, value, "data-testid": dataTestId, className, description, suffix, ...rest }: RadioItemProps<V>) => ReactElement;
@@ -49,4 +49,4 @@ export interface ScheduleProps extends CommonProps {
49
49
  * @param {ScheduleProps} props - The props for the Schedule component
50
50
  * @returns {ReactElement} Schedule component
51
51
  */
52
- export declare const Schedule: ({ className, dataTestId, schedule, onChange, invalidKeys }: ScheduleProps) => import("react/jsx-runtime").JSX.Element;
52
+ export declare const Schedule: ({ className, "data-testid": dataTestId, schedule, onChange, invalidKeys, }: ScheduleProps) => import("react/jsx-runtime").JSX.Element;
@@ -80,6 +80,6 @@ export interface SearchProps extends CommonProps, TextBaseInputProps {
80
80
  * @param {SearchProps} props - The props for the Search component
81
81
  */
82
82
  export declare const Search: {
83
- ({ className, placeholder, value, widenInputOnFocus, hideBorderWhenNotInFocus, disabled, onKeyUp, onChange, onFocus, onBlur, name, onClear, dataTestId, autoComplete, loading, inputClassName, iconName, style, xMarkRef, ref, ...rest }: SearchProps): import("react/jsx-runtime").JSX.Element;
83
+ ({ className, placeholder, value, widenInputOnFocus, hideBorderWhenNotInFocus, disabled, onKeyUp, onChange, onFocus, onBlur, name, onClear, "data-testid": dataTestId, autoComplete, loading, inputClassName, iconName, style, xMarkRef, ref, ...rest }: SearchProps): import("react/jsx-runtime").JSX.Element;
84
84
  displayName: string;
85
85
  };
@@ -48,7 +48,7 @@ interface FormFieldSelectAdapterProps<TOptionType extends BaseOptionType, TIsAsy
48
48
  *
49
49
  */
50
50
  export declare const FormFieldSelectAdapter: {
51
- ({ className, dataTestId, helpText, helpAddon, tip, label, isInvalid, errorMessage, name, onBlur, options, value, defaultValue, id, onChange, children, ref, ...rest }: FormFieldSelectAdapterProps<BaseOptionType>): import("react/jsx-runtime").JSX.Element;
51
+ ({ className, "data-testid": dataTestId, helpText, helpAddon, tip, label, isInvalid, errorMessage, name, onBlur, options, value, defaultValue, id, onChange, children, ref, ...rest }: FormFieldSelectAdapterProps<BaseOptionType>): import("react/jsx-runtime").JSX.Element;
52
52
  displayName: string;
53
53
  };
54
54
  export {};
@@ -30,5 +30,5 @@ export interface TextAreaBaseInputProps extends FilteredInputProps, CommonProps
30
30
  * The TextArea is a base component, and should not be used very often.
31
31
  * For most cases the TextAreaField is the correct component.
32
32
  */
33
- export declare const TextAreaBaseInput: ({ id, name, value, rows, disabled, placeholder, readOnly, tabIndex, onChange, onFocus, onBlur, maxLength, resize, defaultValue, required, dataTestId, isInvalid, className, ref, ...rest }: TextAreaBaseInputProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const TextAreaBaseInput: ({ id, name, value, rows, disabled, placeholder, readOnly, tabIndex, onChange, onFocus, onBlur, maxLength, resize, defaultValue, required, "data-testid": dataTestId, isInvalid, className, ref, ...rest }: TextAreaBaseInputProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export {};
@@ -22,7 +22,7 @@ export interface TextAreaFieldProps extends TextAreaBaseInputProps, FormGroupExp
22
22
  *
23
23
  */
24
24
  export declare const TextAreaField: {
25
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, dataTestId, ref, ...rest }: TextAreaFieldProps): import("react/jsx-runtime").JSX.Element;
25
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, ...rest }: TextAreaFieldProps): import("react/jsx-runtime").JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  export {};
@@ -16,7 +16,7 @@ export interface TextFieldProps extends TextBaseInputProps, FormGroupExposedProp
16
16
  * Text fields enable the user to interact with and input content and data. This component can be used for long and short form entries. Allow the size of the text input box to reflect the length of the content you expect the user to enter.
17
17
  */
18
18
  export declare const TextField: {
19
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, dataTestId, isWarning, ref, ...rest }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
19
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, isWarning, ref, ...rest }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  export {};
@@ -49,5 +49,5 @@ export interface TimeRangeProps extends CommonProps {
49
49
  * @param {TimeRangeProps} props - The props for the TimeRange component
50
50
  * @returns {ReactElement} TimeRange component
51
51
  */
52
- export declare const TimeRange: ({ id, className, dataTestId, children, range, onChange, disabled, isInvalid, }: TimeRangeProps) => import("react/jsx-runtime").JSX.Element;
52
+ export declare const TimeRange: ({ id, className, "data-testid": dataTestId, children, range, onChange, disabled, isInvalid, }: TimeRangeProps) => import("react/jsx-runtime").JSX.Element;
53
53
  export declare const DEFAULT_TIME = "12:00";
@@ -13,5 +13,5 @@ export interface TimeRangeFieldProps extends TimeRangeProps, FormGroupExposedPro
13
13
  * @param {TimeRangeFieldProps} props - The props for the TimeRangeField component
14
14
  * @returns {ReactElement} TimeRangeField component
15
15
  */
16
- export declare const TimeRangeField: ({ className, dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, ...rest }: TimeRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const TimeRangeField: ({ className, "data-testid": dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, ...rest }: TimeRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -26,6 +26,6 @@ export interface ToggleSwitchOptionProps extends ToggleSwitchProps {
26
26
  * @returns {ReactElement} ToggleSwitchOption component
27
27
  */
28
28
  export declare const ToggleSwitchOption: {
29
- ({ label, className, description, suffix, id, dataTestId, ...rest }: ToggleSwitchOptionProps): ReactElement;
29
+ ({ label, className, description, suffix, id, "data-testid": dataTestId, ...rest }: ToggleSwitchOptionProps): ReactElement;
30
30
  displayName: string;
31
31
  };
@@ -11,7 +11,7 @@ export interface UploadFieldProps extends UploadInputProps, FormGroupExposedProp
11
11
  * Upload fields enable the user to upload Files.
12
12
  */
13
13
  export declare const UploadField: {
14
- ({ label, id, tip, helpText, errorMessage, isInvalid, className, value, dataTestId, ref, ...rest }: UploadFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ ({ label, id, tip, helpText, errorMessage, isInvalid, className, value, "data-testid": dataTestId, ref, ...rest }: UploadFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  export {};
@@ -16,5 +16,5 @@ export interface UrlBaseInputProps extends BaseInputExposedProps {
16
16
  *
17
17
  * NOTE: If shown with a label, please use the `UrlField` component instead.
18
18
  */
19
- export declare const UrlBaseInput: ({ dataTestId, isInvalid, disabled, fieldSize, disableAction, value, defaultValue, ref, ...rest }: UrlBaseInputProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const UrlBaseInput: ({ "data-testid": dataTestId, isInvalid, disabled, fieldSize, disableAction, value, defaultValue, ref, ...rest }: UrlBaseInputProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export {};
@@ -13,7 +13,7 @@ export interface UrlFieldProps extends FormGroupExposedProps, UrlBaseInputProps
13
13
  *
14
14
  */
15
15
  export declare const UrlField: {
16
- ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, isInvalid, value, onBlur, ref, ...rest }: UrlFieldProps): import("react/jsx-runtime").JSX.Element;
16
+ ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, isInvalid, value, onBlur, ref, ...rest }: UrlFieldProps): import("react/jsx-runtime").JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  export {};