@trackunit/react-form-components 2.6.34-alpha-7557f71cc7a.0 → 2.6.34
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "2.6.34
|
|
3
|
+
"version": "2.6.34",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"migrations": "./migrations.json",
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-calendar": "^6.0.0",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/date-and-time-utils": "1.14.24
|
|
13
|
+
"@trackunit/date-and-time-utils": "1.14.24",
|
|
14
14
|
"usehooks-ts": "^3.1.0",
|
|
15
15
|
"libphonenumber-js": "^1.13.6",
|
|
16
16
|
"zod": "^3.25.76",
|
|
17
17
|
"tailwind-merge": "^2.0.0",
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "1.14.23
|
|
19
|
-
"@trackunit/react-components": "2.10.27
|
|
20
|
-
"@trackunit/ui-icons": "1.14.22
|
|
21
|
-
"@trackunit/shared-utils": "1.16.26
|
|
22
|
-
"@trackunit/ui-design-tokens": "1.15.13
|
|
23
|
-
"@trackunit/i18n-library-translation": "2.4.32
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.14.23",
|
|
19
|
+
"@trackunit/react-components": "2.10.27",
|
|
20
|
+
"@trackunit/ui-icons": "1.14.22",
|
|
21
|
+
"@trackunit/shared-utils": "1.16.26",
|
|
22
|
+
"@trackunit/ui-design-tokens": "1.15.13",
|
|
23
|
+
"@trackunit/i18n-library-translation": "2.4.32",
|
|
24
24
|
"string-ts": "^2.0.0",
|
|
25
25
|
"es-toolkit": "^1.39.10"
|
|
26
26
|
},
|
|
@@ -25,22 +25,17 @@ export interface MultiSelectFieldProps<TOption extends BaseOptionType = BaseOpti
|
|
|
25
25
|
/**
|
|
26
26
|
* Options to render (same shape as BaseSelect)
|
|
27
27
|
*
|
|
28
|
-
* @important
|
|
29
28
|
* @expand
|
|
30
29
|
*/
|
|
31
30
|
options: Array<TOption>;
|
|
32
31
|
/**
|
|
33
32
|
* Multi-value from react-select
|
|
34
|
-
*
|
|
35
|
-
* @important
|
|
36
33
|
*/
|
|
37
34
|
value?: MultiValue<TOption> | null;
|
|
38
35
|
/** Default selected options (MultiValue) */
|
|
39
36
|
defaultValue?: MultiValue<TOption>;
|
|
40
37
|
/**
|
|
41
38
|
* onChange passes MultiValue<TOption> (or null when cleared)
|
|
42
|
-
*
|
|
43
|
-
* @important
|
|
44
39
|
*/
|
|
45
40
|
onChange?: (value: MultiValue<TOption> | null) => void;
|
|
46
41
|
/** Invalid state message rendered via FormGroup */
|
|
@@ -15,14 +15,11 @@ export interface SelectFieldProps<TOption extends BaseOptionType = BaseOptionTyp
|
|
|
15
15
|
/**
|
|
16
16
|
* The options available for the SelectField.
|
|
17
17
|
*
|
|
18
|
-
* @important
|
|
19
18
|
* @expand
|
|
20
19
|
*/
|
|
21
20
|
options: Array<TOption>;
|
|
22
21
|
/**
|
|
23
22
|
* The selected value of the SelectField.
|
|
24
|
-
*
|
|
25
|
-
* @important
|
|
26
23
|
*/
|
|
27
24
|
value?: TOption["value"];
|
|
28
25
|
/**
|
|
@@ -36,8 +33,6 @@ export interface SelectFieldProps<TOption extends BaseOptionType = BaseOptionTyp
|
|
|
36
33
|
* since that value is one the parent already holds, and not when the user re-picks the option that
|
|
37
34
|
* is already selected. It is also forwarded to the hidden native `<select>`, so a change event
|
|
38
35
|
* dispatched on that node invokes it too.
|
|
39
|
-
*
|
|
40
|
-
* @important
|
|
41
36
|
*/
|
|
42
37
|
onChange?: (event: {
|
|
43
38
|
target: {
|