@trackunit/react-form-components 1.8.134 → 1.8.139

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 (40) hide show
  1. package/package.json +7 -7
  2. package/src/components/ActionButton/ActionButton.d.ts +1 -1
  3. package/src/components/Search/Search.d.ts +5 -5
  4. package/src/components/TextAreaField/TextArea/TextAreaBaseInput.d.ts +2 -2
  5. package/src/components/ToggleSwitch/ToggleSwitch.d.ts +3 -3
  6. package/src/test-utils/test-utils.d.ts +2 -1
  7. package/translation.cjs.js +2 -0
  8. package/translation.cjs10.js +2 -0
  9. package/translation.cjs11.js +2 -0
  10. package/translation.cjs12.js +2 -0
  11. package/translation.cjs13.js +2 -0
  12. package/translation.cjs14.js +2 -0
  13. package/translation.cjs15.js +2 -0
  14. package/translation.cjs16.js +2 -0
  15. package/translation.cjs17.js +2 -0
  16. package/translation.cjs2.js +2 -0
  17. package/translation.cjs3.js +2 -0
  18. package/translation.cjs4.js +2 -0
  19. package/translation.cjs5.js +2 -0
  20. package/translation.cjs6.js +2 -0
  21. package/translation.cjs7.js +2 -0
  22. package/translation.cjs8.js +2 -0
  23. package/translation.cjs9.js +2 -0
  24. package/translation.esm.js +2 -0
  25. package/translation.esm10.js +2 -0
  26. package/translation.esm11.js +2 -0
  27. package/translation.esm12.js +2 -0
  28. package/translation.esm13.js +2 -0
  29. package/translation.esm14.js +2 -0
  30. package/translation.esm15.js +2 -0
  31. package/translation.esm16.js +2 -0
  32. package/translation.esm17.js +2 -0
  33. package/translation.esm2.js +2 -0
  34. package/translation.esm3.js +2 -0
  35. package/translation.esm4.js +2 -0
  36. package/translation.esm5.js +2 -0
  37. package/translation.esm6.js +2 -0
  38. package/translation.esm7.js +2 -0
  39. package/translation.esm8.js +2 -0
  40. package/translation.esm9.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "1.8.134",
3
+ "version": "1.8.139",
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.88",
18
- "@trackunit/react-components": "1.10.63",
19
- "@trackunit/ui-icons": "1.7.89",
20
- "@trackunit/shared-utils": "1.9.88",
21
- "@trackunit/ui-design-tokens": "1.7.88",
22
- "@trackunit/i18n-library-translation": "1.7.106",
17
+ "@trackunit/css-class-variance-utilities": "1.7.92",
18
+ "@trackunit/react-components": "1.10.67",
19
+ "@trackunit/ui-icons": "1.7.93",
20
+ "@trackunit/shared-utils": "1.9.92",
21
+ "@trackunit/ui-design-tokens": "1.7.92",
22
+ "@trackunit/i18n-library-translation": "1.7.110",
23
23
  "string-ts": "^2.0.0",
24
24
  "@js-temporal/polyfill": "^0.5.1",
25
25
  "es-toolkit": "^1.39.10",
@@ -39,7 +39,7 @@ interface EditActionButtonProps extends AbstractActionButtonProps {
39
39
  /**
40
40
  * The value to be passed into the button.
41
41
  */
42
- value?: React.RefObject<HTMLInputElement | null>;
42
+ value?: RefObject<HTMLInputElement | null>;
43
43
  }
44
44
  type ActionButtonProps = CopyActionButtonProps | GenericActionButtonProps | EditActionButtonProps;
45
45
  /**
@@ -1,6 +1,6 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
2
  import { IconName } from "@trackunit/ui-icons";
3
- import { CSSProperties, Ref } from "react";
3
+ import { CSSProperties, ChangeEvent, FocusEvent, KeyboardEvent, Ref } from "react";
4
4
  import { TextBaseInputProps } from "../TextField/TextBaseInput/TextBaseInput";
5
5
  export interface SearchProps extends CommonProps, TextBaseInputProps {
6
6
  /**
@@ -35,19 +35,19 @@ export interface SearchProps extends CommonProps, TextBaseInputProps {
35
35
  /**
36
36
  * Event that occurs when the user releases a key.
37
37
  */
38
- onKeyUp?: (evt: React.KeyboardEvent<HTMLInputElement>) => void;
38
+ onKeyUp?: (evt: KeyboardEvent<HTMLInputElement>) => void;
39
39
  /**
40
40
  * Event that occurs when there is a change.
41
41
  */
42
- onChange?: (evt: React.ChangeEvent<HTMLInputElement>) => void;
42
+ onChange?: (evt: ChangeEvent<HTMLInputElement>) => void;
43
43
  /**
44
44
  * Event that occurs when the search box is on focus.
45
45
  */
46
- onFocus?: (evt: React.FocusEvent<HTMLInputElement>) => void;
46
+ onFocus?: (evt: FocusEvent<HTMLInputElement>) => void;
47
47
  /**
48
48
  * Event that occurs when search box is blurred.
49
49
  */
50
- onBlur?: (evt: React.FocusEvent<HTMLInputElement>) => void;
50
+ onBlur?: (evt: FocusEvent<HTMLInputElement>) => void;
51
51
  /**
52
52
  * Event that search box is cleared.
53
53
  */
@@ -1,7 +1,7 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
- import { Ref } from "react";
2
+ import { InputHTMLAttributes, Ref } from "react";
3
3
  export type TextAreaResize = "none" | "vertical" | "horizontal" | "both";
4
- type FilteredInputProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "prefix" | "suffix">;
4
+ type FilteredInputProps = Omit<InputHTMLAttributes<HTMLTextAreaElement>, "prefix" | "suffix">;
5
5
  export interface TextAreaBaseInputProps extends FilteredInputProps, CommonProps {
6
6
  /**
7
7
  * Number of rows in the text area.
@@ -1,17 +1,17 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
2
  import { MappedOmit, Size } from "@trackunit/shared-utils";
3
- import { InputHTMLAttributes } from "react";
3
+ import { ChangeEvent, InputHTMLAttributes, MouseEvent } from "react";
4
4
  export interface ToggleSwitchProps extends CommonProps, MappedOmit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "onChange" | "size" | "children"> {
5
5
  /**
6
6
  * custom onChange event handler.
7
7
  */
8
- onChange?: (toggled: boolean, event?: React.ChangeEvent<HTMLInputElement>) => void;
8
+ onChange?: (toggled: boolean, event?: ChangeEvent<HTMLInputElement>) => void;
9
9
  /**
10
10
  * onClick event handler.
11
11
  *
12
12
  * _**Do not**_ pass onClick handlers to trigger the toggle behavior. Use the onChange handler instead.
13
13
  */
14
- onClick?: (e: React.MouseEvent<HTMLSpanElement>) => void;
14
+ onClick?: (e: MouseEvent<HTMLSpanElement>) => void;
15
15
  /**
16
16
  * Whether the ToggleSwitch is toggled(active) or not.
17
17
  */
@@ -1,4 +1,5 @@
1
1
  import { RenderOptions, RenderResult } from "@testing-library/react";
2
+ import { ReactElement } from "react";
2
3
  /**
3
4
  * Enhanced render with providers
4
5
  *
@@ -6,6 +7,6 @@ import { RenderOptions, RenderResult } from "@testing-library/react";
6
7
  * @param options - The options for the render
7
8
  * @returns {RenderResult} The rendered UI
8
9
  */
9
- declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions, "wrapper">) => Promise<RenderResult>;
10
+ declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => Promise<RenderResult>;
10
11
  export * from "@testing-library/react";
11
12
  export { customRender as render };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Tag",
32
32
  "search.placeholder": "Suchen",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dzień",
32
32
  "search.placeholder": "Szukaj",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dia",
32
32
  "search.placeholder": "Pesquisar",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "День",
32
32
  "search.placeholder": "Поиск",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Ziua",
32
32
  "search.placeholder": "Căutare",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Día",
32
32
  "search.placeholder": "Buscar",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dag",
32
32
  "search.placeholder": "Sök",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "曜日",
32
32
  "search.placeholder": "検索",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "วัน",
32
32
  "search.placeholder": "ค้นหา",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dag",
32
32
  "search.placeholder": "Søg",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Den",
32
32
  "search.placeholder": "Hledat",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dag",
32
32
  "search.placeholder": "Zoeken",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Jour",
32
32
  "search.placeholder": "Rechercher",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Päivä",
32
32
  "search.placeholder": "Haku",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Nap",
32
32
  "search.placeholder": "Keresés",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Giorno",
32
32
  "search.placeholder": "Ricerca",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -30,6 +30,8 @@ var translation = {
30
30
  "schedule.label.allDay": "All Day",
31
31
  "schedule.label.day": "Dag",
32
32
  "search.placeholder": "Søk",
33
+ "select.loadingMessage": "Loading...",
34
+ "select.noOptionsMessage": "No options found",
33
35
  "urlField.error.INVALID_URL": "Please enter a valid URL",
34
36
  "urlField.error.REQUIRED": "The URL is required"
35
37
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Tag",
30
30
  "search.placeholder": "Suchen",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dzień",
30
30
  "search.placeholder": "Szukaj",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dia",
30
30
  "search.placeholder": "Pesquisar",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "День",
30
30
  "search.placeholder": "Поиск",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Ziua",
30
30
  "search.placeholder": "Căutare",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Día",
30
30
  "search.placeholder": "Buscar",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dag",
30
30
  "search.placeholder": "Sök",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "曜日",
30
30
  "search.placeholder": "検索",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "วัน",
30
30
  "search.placeholder": "ค้นหา",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dag",
30
30
  "search.placeholder": "Søg",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Den",
30
30
  "search.placeholder": "Hledat",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dag",
30
30
  "search.placeholder": "Zoeken",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Jour",
30
30
  "search.placeholder": "Rechercher",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Päivä",
30
30
  "search.placeholder": "Haku",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Nap",
30
30
  "search.placeholder": "Keresés",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Giorno",
30
30
  "search.placeholder": "Ricerca",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };
@@ -28,6 +28,8 @@ var translation = {
28
28
  "schedule.label.allDay": "All Day",
29
29
  "schedule.label.day": "Dag",
30
30
  "search.placeholder": "Søk",
31
+ "select.loadingMessage": "Loading...",
32
+ "select.noOptionsMessage": "No options found",
31
33
  "urlField.error.INVALID_URL": "Please enter a valid URL",
32
34
  "urlField.error.REQUIRED": "The URL is required"
33
35
  };