@trackunit/react-form-components 2.6.72 → 2.6.74

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 (31) hide show
  1. package/package.json +3 -3
  2. package/src/components/BaseInput/components/AddonRenderer.d.ts +1 -1
  3. package/src/components/BaseInput/components/GenericActionsRenderer.d.ts +1 -1
  4. package/src/components/BaseInput/components/LockReasonRenderer.d.ts +1 -1
  5. package/src/components/BaseInput/components/PrefixRenderer.d.ts +1 -1
  6. package/src/components/BaseInput/components/SuffixRenderer.d.ts +1 -1
  7. package/src/components/Checkbox/CheckIcon.d.ts +1 -1
  8. package/src/components/Checkbox/IndeterminateIcon.d.ts +1 -1
  9. package/src/components/CheckboxField/CheckboxField.d.ts +1 -1
  10. package/src/components/ColorField/ColorField.d.ts +1 -1
  11. package/src/components/DropZone/DropZoneDefaultLabel.d.ts +1 -1
  12. package/src/components/EmailField/EmailField.d.ts +1 -1
  13. package/src/components/NumberField/NumberBaseInput/NumberBaseInput.d.ts +1 -1
  14. package/src/components/NumberField/NumberField.d.ts +1 -1
  15. package/src/components/OptionCard/OptionCard.d.ts +1 -1
  16. package/src/components/PasswordField/PasswordBaseInput/PasswordBaseInput.d.ts +1 -1
  17. package/src/components/PasswordField/PasswordField.d.ts +1 -1
  18. package/src/components/PhoneField/PhoneField.d.ts +1 -1
  19. package/src/components/PhoneFieldWithController/PhoneFieldWithController.d.ts +1 -1
  20. package/src/components/Schedule/Schedule.d.ts +1 -1
  21. package/src/components/TextAreaField/TextArea/TextAreaBaseInput.d.ts +1 -1
  22. package/src/components/TextAreaField/TextAreaField.d.ts +1 -1
  23. package/src/components/TextField/TextBaseInput/TextBaseInput.d.ts +1 -1
  24. package/src/components/TextField/TextField.d.ts +1 -1
  25. package/src/components/TextField/TextLengthIndicator.d.ts +1 -1
  26. package/src/components/TimeRange/TimeRange.d.ts +1 -1
  27. package/src/components/TimeRangeField/TimeRangeField.d.ts +1 -1
  28. package/src/components/UploadField/UploadField.d.ts +1 -1
  29. package/src/components/UploadInput/UploadInput.d.ts +1 -1
  30. package/src/components/UrlField/UrlField.d.ts +1 -1
  31. package/src/translation.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "2.6.72",
3
+ "version": "2.6.74",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "migrations": "./migrations.json",
@@ -16,11 +16,11 @@
16
16
  "zod": "^3.25.76",
17
17
  "tailwind-merge": "^2.0.0",
18
18
  "@trackunit/css-class-variance-utilities": "2.0.14",
19
- "@trackunit/react-components": "2.13.24",
19
+ "@trackunit/react-components": "2.13.26",
20
20
  "@trackunit/ui-icons": "1.14.43",
21
21
  "@trackunit/shared-utils": "1.16.49",
22
22
  "@trackunit/ui-design-tokens": "1.15.34",
23
- "@trackunit/i18n-library-translation": "2.4.63",
23
+ "@trackunit/i18n-library-translation": "2.4.64",
24
24
  "string-ts": "^2.0.0",
25
25
  "es-toolkit": "^1.39.10"
26
26
  },
@@ -12,5 +12,5 @@ type AddonRendererProps = {
12
12
  /**
13
13
  * Renders the addon element if provided
14
14
  */
15
- export declare const AddonRenderer: ({ addon, "data-testid": 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.Element | null;
16
16
  export {};
@@ -11,5 +11,5 @@ type GenericActionsRendererProps = {
11
11
  /**
12
12
  *
13
13
  */
14
- export declare const GenericActionsRenderer: ({ genericAction, disabled, fieldSize, innerRef, tooltipLabel, }: GenericActionsRendererProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export declare const GenericActionsRenderer: ({ genericAction, disabled, fieldSize, innerRef, tooltipLabel, }: GenericActionsRendererProps) => import("react").JSX.Element | null;
15
15
  export {};
@@ -2,4 +2,4 @@ import { LockedForReasons } from "../InputLockReasonTooltip";
2
2
  export declare const LockReasonRenderer: ({ lockReason, "data-testid": dataTestId, }: {
3
3
  lockReason?: LockedForReasons | boolean;
4
4
  "data-testid"?: string;
5
- }) => import("react/jsx-runtime").JSX.Element | null;
5
+ }) => import("react").JSX.Element | null;
@@ -9,5 +9,5 @@ type PrefixRendererProps = Refable<HTMLDivElement> & {
9
9
  /**
10
10
  * Renders the prefix element or falls back to a default prefix for certain types.
11
11
  */
12
- export declare const PrefixRenderer: ({ prefix, type, "data-testid": dataTestId, disabled, ref }: PrefixRendererProps) => import("react/jsx-runtime").JSX.Element | null;
12
+ export declare const PrefixRenderer: ({ prefix, type, "data-testid": dataTestId, disabled, ref }: PrefixRendererProps) => import("react").JSX.Element | null;
13
13
  export {};
@@ -5,4 +5,4 @@ export declare const SuffixRenderer: ({ suffix, isInvalid, isWarning, "data-test
5
5
  isWarning?: boolean;
6
6
  "data-testid"?: string;
7
7
  disabled: boolean;
8
- }) => import("react/jsx-runtime").JSX.Element | null;
8
+ }) => import("react").JSX.Element | null;
@@ -6,5 +6,5 @@ type CheckIconProps = CommonProps;
6
6
  * @param {CheckIconProps} props - The props for the CheckIcon component
7
7
  * @returns {ReactElement} CheckIcon component
8
8
  */
9
- export declare const CheckIcon: ({ className, "data-testid": dataTestId }: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const CheckIcon: ({ className, "data-testid": dataTestId }: CheckIconProps) => import("react").JSX.Element;
10
10
  export {};
@@ -6,4 +6,4 @@
6
6
  */
7
7
  export declare const IndeterminateIcon: ({ className }: {
8
8
  className?: string;
9
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => import("react").JSX.Element;
@@ -40,7 +40,7 @@ export interface CheckboxFieldProps extends CheckboxProps, FormGroupExposedProps
40
40
  * @param {CheckboxFieldProps} props - The props for the CheckboxField component
41
41
  */
42
42
  export declare const CheckboxField: {
43
- ({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, "data-testid": dataTestId, checkboxLabel, onChange, ref, disabled, readOnly, required, ...rest }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
43
+ ({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, "data-testid": dataTestId, checkboxLabel, onChange, ref, disabled, readOnly, required, ...rest }: CheckboxFieldProps): import("react").JSX.Element;
44
44
  displayName: string;
45
45
  };
46
46
  export {};
@@ -54,7 +54,7 @@ export interface ColorFieldProps extends FormGroupExposedProps, ColorFieldBaseIn
54
54
  * ```
55
55
  */
56
56
  export declare const ColorField: {
57
- ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value: propValue, onChange, isInvalid, onBlur, fieldSize, style, disabled, readOnly, isWarning, inputClassName, ref, required, ...inputProps }: ColorFieldProps): import("react/jsx-runtime").JSX.Element;
57
+ ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value: propValue, onChange, isInvalid, onBlur, fieldSize, style, disabled, readOnly, isWarning, inputClassName, ref, required, ...inputProps }: ColorFieldProps): import("react").JSX.Element;
58
58
  displayName: string;
59
59
  };
60
60
  export {};
@@ -2,4 +2,4 @@
2
2
  *
3
3
  * Default UX-intuitive label for the DropZone - can be overwritten by the label prop
4
4
  */
5
- export declare const DropZoneDefaultLabel: () => import("react/jsx-runtime").JSX.Element;
5
+ export declare const DropZoneDefaultLabel: () => import("react").JSX.Element;
@@ -57,7 +57,7 @@ export interface EmailFieldProps extends FormGroupExposedProps, BaseInputProps {
57
57
  * ```
58
58
  */
59
59
  export declare const EmailField: {
60
- ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value, onChange, onBlur, isInvalid, ref, required, ...rest }: EmailFieldProps): import("react/jsx-runtime").JSX.Element;
60
+ ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value, onChange, onBlur, isInvalid, ref, required, ...rest }: EmailFieldProps): import("react").JSX.Element;
61
61
  displayName: string;
62
62
  };
63
63
  export {};
@@ -5,4 +5,4 @@ export type NumberBaseInputProps = Omit<BaseInputProps, "type">;
5
5
  *
6
6
  * NOTE: If shown with a label, please use the `NumberField` component instead.
7
7
  */
8
- export declare const NumberBaseInput: ({ ref, ...rest }: NumberBaseInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const NumberBaseInput: ({ ref, ...rest }: NumberBaseInputProps) => import("react").JSX.Element;
@@ -59,7 +59,7 @@ export interface NumberFieldProps extends NumberBaseInputProps, FormGroupExposed
59
59
  * ```
60
60
  */
61
61
  export declare const NumberField: {
62
- ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, isWarning, maxLength, className, value, "data-testid": dataTestId, defaultValue, onBlur, onChange, ref, required, ...rest }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
62
+ ({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, isWarning, maxLength, className, value, "data-testid": dataTestId, defaultValue, onBlur, onChange, ref, required, ...rest }: NumberFieldProps): import("react").JSX.Element;
63
63
  displayName: string;
64
64
  };
65
65
  export {};
@@ -42,7 +42,7 @@ interface CustomImage {
42
42
  * A card version of a radio button that includes an icon, headings and a description.
43
43
  */
44
44
  export declare const OptionCard: {
45
- ({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, "data-testid": dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react/jsx-runtime").JSX.Element;
45
+ ({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, "data-testid": dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react").JSX.Element;
46
46
  displayName: string;
47
47
  };
48
48
  export {};
@@ -8,5 +8,5 @@ export interface PasswordBaseInputProps extends BaseInputExposedProps {
8
8
  *
9
9
  * NOTE: If shown with a label, please use the `PasswordField` component instead.
10
10
  */
11
- export declare const PasswordBaseInput: ({ ref, fieldSize, ...rest }: PasswordBaseInputProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const PasswordBaseInput: ({ ref, fieldSize, ...rest }: PasswordBaseInputProps) => import("react").JSX.Element;
12
12
  export {};
@@ -64,7 +64,7 @@ export interface PasswordFieldProps extends Omit<PasswordBaseInputProps, "obfusc
64
64
  * ```
65
65
  */
66
66
  export declare const PasswordField: {
67
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, required, ...rest }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
67
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, required, ...rest }: PasswordFieldProps): import("react").JSX.Element;
68
68
  displayName: string;
69
69
  };
70
70
  export {};
@@ -56,7 +56,7 @@ export interface PhoneFieldProps extends FormGroupExposedProps, PhoneBaseInputPr
56
56
  * ```
57
57
  */
58
58
  export declare const PhoneField: {
59
- ({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, "data-testid": dataTestId, name, onBlur, ref, required, ...rest }: PhoneFieldProps): import("react/jsx-runtime").JSX.Element;
59
+ ({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, "data-testid": dataTestId, name, onBlur, ref, required, ...rest }: PhoneFieldProps): import("react").JSX.Element;
60
60
  displayName: string;
61
61
  };
62
62
  export {};
@@ -44,6 +44,6 @@ export interface PhoneFieldWithControllerProps extends PhoneFieldProps {
44
44
  * @param {PhoneFieldWithControllerProps} props - The props for the PhoneFieldWithController component
45
45
  */
46
46
  export declare const PhoneFieldWithController: {
47
- ({ control, controllerProps, name, value, ref, ...rest }: PhoneFieldWithControllerProps): import("react/jsx-runtime").JSX.Element;
47
+ ({ control, controllerProps, name, value, ref, ...rest }: PhoneFieldWithControllerProps): import("react").JSX.Element;
48
48
  displayName: string;
49
49
  };
@@ -72,4 +72,4 @@ export interface ScheduleProps extends CommonProps, Refable<HTMLDivElement>, Sty
72
72
  * @param {ScheduleProps} props - The props for the Schedule component
73
73
  * @returns {ReactElement} Schedule component
74
74
  */
75
- export declare const Schedule: ({ className, "data-testid": dataTestId, schedule, onChange, invalidKeys, style, ref, }: ScheduleProps) => import("react/jsx-runtime").JSX.Element;
75
+ export declare const Schedule: ({ className, "data-testid": dataTestId, schedule, onChange, invalidKeys, style, ref, }: ScheduleProps) => import("react").JSX.Element;
@@ -26,5 +26,5 @@ export interface TextAreaBaseInputProps extends FilteredInputProps, CommonProps,
26
26
  * The TextArea is a base component, and should not be used very often.
27
27
  * For most cases the TextAreaField is the correct component.
28
28
  */
29
- 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;
29
+ 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.Element;
30
30
  export {};
@@ -66,7 +66,7 @@ export interface TextAreaFieldProps extends TextAreaBaseInputProps, FormGroupExp
66
66
  * @returns {ReactElement} TextAreaField component
67
67
  */
68
68
  export declare const TextAreaField: {
69
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, disabled, readOnly, required, ...rest }: TextAreaFieldProps): import("react/jsx-runtime").JSX.Element;
69
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, disabled, readOnly, required, ...rest }: TextAreaFieldProps): import("react").JSX.Element;
70
70
  displayName: string;
71
71
  };
72
72
  export {};
@@ -5,4 +5,4 @@ export type TextBaseInputProps = Omit<BaseInputProps, "type">;
5
5
  *
6
6
  * NOTE: If shown with a label, please use the `TextField` component instead.
7
7
  */
8
- export declare const TextBaseInput: ({ ref, ...rest }: TextBaseInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const TextBaseInput: ({ ref, ...rest }: TextBaseInputProps) => import("react").JSX.Element;
@@ -71,7 +71,7 @@ export interface TextFieldProps extends TextBaseInputProps, FormGroupExposedProp
71
71
  * ```
72
72
  */
73
73
  export declare const TextField: {
74
- ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, isWarning, ref, required, ...rest }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
74
+ ({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, isWarning, ref, required, ...rest }: TextFieldProps): import("react").JSX.Element;
75
75
  displayName: string;
76
76
  };
77
77
  export {};
@@ -15,4 +15,4 @@ export interface TextLengthIndicatorProps {
15
15
  * @param {TextLengthIndicatorProps} props - The props for the TextLengthIndicator component
16
16
  * @returns {ReactElement} TextLengthIndicator component
17
17
  */
18
- export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => import("react").JSX.Element;
@@ -67,5 +67,5 @@ export interface TimeRangeProps extends CommonProps, Refable<HTMLDivElement>, St
67
67
  * @param {TimeRangeProps} props - The props for the TimeRange component
68
68
  * @returns {ReactElement} TimeRange component
69
69
  */
70
- export declare const TimeRange: ({ id, className, "data-testid": dataTestId, children, range, onChange, disabled, isInvalid, style, ref, }: TimeRangeProps) => import("react/jsx-runtime").JSX.Element;
70
+ export declare const TimeRange: ({ id, className, "data-testid": dataTestId, children, range, onChange, disabled, isInvalid, style, ref, }: TimeRangeProps) => import("react").JSX.Element;
71
71
  export declare const DEFAULT_TIME = "12:00";
@@ -47,5 +47,5 @@ export interface TimeRangeFieldProps extends TimeRangeProps, FormGroupExposedPro
47
47
  * @param {TimeRangeFieldProps} props - The props for the TimeRangeField component
48
48
  * @returns {ReactElement} TimeRangeField component
49
49
  */
50
- export declare const TimeRangeField: ({ className, "data-testid": dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, style, ref, ...rest }: TimeRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
50
+ export declare const TimeRangeField: ({ className, "data-testid": dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, style, ref, ...rest }: TimeRangeFieldProps) => import("react").JSX.Element;
51
51
  export {};
@@ -57,7 +57,7 @@ export interface UploadFieldProps extends UploadInputProps, FormGroupExposedProp
57
57
  * ```
58
58
  */
59
59
  export declare const UploadField: {
60
- ({ label, id, tip, helpText, errorMessage, isInvalid, className, value, "data-testid": dataTestId, ref, disabled, required, ...rest }: UploadFieldProps): import("react/jsx-runtime").JSX.Element;
60
+ ({ label, id, tip, helpText, errorMessage, isInvalid, className, value, "data-testid": dataTestId, ref, disabled, required, ...rest }: UploadFieldProps): import("react").JSX.Element;
61
61
  displayName: string;
62
62
  };
63
63
  export {};
@@ -50,7 +50,7 @@ export interface UploadInputProps extends BaseInputExposedProps, CommonProps {
50
50
  * @param {UploadInputProps} props - The props for the UploadInput component
51
51
  */
52
52
  export declare const UploadInput: {
53
- ({ disabled, acceptedTypes, nonInteractive, uploadLabel, multipleFiles, ref, ...rest }: UploadInputProps): import("react/jsx-runtime").JSX.Element;
53
+ ({ disabled, acceptedTypes, nonInteractive, uploadLabel, multipleFiles, ref, ...rest }: UploadInputProps): import("react").JSX.Element;
54
54
  displayName: string;
55
55
  };
56
56
  export {};
@@ -57,7 +57,7 @@ export interface UrlFieldProps extends FormGroupExposedProps, UrlBaseInputProps
57
57
  * ```
58
58
  */
59
59
  export declare const UrlField: {
60
- ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, isInvalid, value, onBlur, ref, required, ...rest }: UrlFieldProps): import("react/jsx-runtime").JSX.Element;
60
+ ({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, isInvalid, value, onBlur, ref, required, ...rest }: UrlFieldProps): import("react").JSX.Element;
61
61
  displayName: string;
62
62
  };
63
63
  export {};
@@ -26,7 +26,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
26
26
  /**
27
27
  * Trans for this specific library.
28
28
  */
29
- export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react").JSX.Element;
30
30
  /**
31
31
  * Registers the translations for this library
32
32
  */