@trackunit/react-form-components 1.0.32 → 1.0.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/index.cjs.js +4 -1
- package/index.esm.js +4 -1
- package/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -2363,6 +2363,9 @@ const CreatableSelect = (props) => {
|
|
|
2363
2363
|
};
|
|
2364
2364
|
CreatableSelect.displayName = "CreatableSelect";
|
|
2365
2365
|
|
|
2366
|
+
// This is here to ensure the bundled react-components can expose the react-select for jest in external iris apps.
|
|
2367
|
+
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
2368
|
+
const ReactSyncSelect = ReactSelect.default || ReactSelect;
|
|
2366
2369
|
/**
|
|
2367
2370
|
* Selects are input components used to choose a value from a set.
|
|
2368
2371
|
*
|
|
@@ -2434,7 +2437,7 @@ const Select = (props) => {
|
|
|
2434
2437
|
fieldSize: fieldSize,
|
|
2435
2438
|
disabled: renderAsDisabled,
|
|
2436
2439
|
className: props.className,
|
|
2437
|
-
}), "data-testid": dataTestId, ref: refContainer, children: [prefix !== undefined ? (jsxRuntime.jsx("div", { className: cvaSelectPrefixSuffix({ kind: "prefix" }), "data-testid": dataTestId ? `${dataTestId}-prefix` : null, ref: refPrefix, children: prefix })) : null, async ? (jsxRuntime.jsx(ReactAsyncSelect, { ...props, ...reactSelectProps, ...async, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, placeholder: renderAsDisabled ? null : props.placeholder })) : (jsxRuntime.jsx(
|
|
2440
|
+
}), "data-testid": dataTestId, ref: refContainer, children: [prefix !== undefined ? (jsxRuntime.jsx("div", { className: cvaSelectPrefixSuffix({ kind: "prefix" }), "data-testid": dataTestId ? `${dataTestId}-prefix` : null, ref: refPrefix, children: prefix })) : null, async ? (jsxRuntime.jsx(ReactAsyncSelect, { ...props, ...reactSelectProps, ...async, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, placeholder: renderAsDisabled ? null : props.placeholder })) : (jsxRuntime.jsx(ReactSyncSelect, { ...props, ...reactSelectProps, isMulti: isMulti, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, options: options, placeholder: renderAsDisabled ? null : props.placeholder })), typeof props.disabled === "object" ? (jsxRuntime.jsx("div", { className: cvaSelectPrefixSuffix({ kind: "suffix" }), "data-testid": dataTestId ? `${dataTestId}-locked` : null, children: jsxRuntime.jsx(InputLockReasonTooltip, { ...props.disabled }) })) : null] }));
|
|
2438
2441
|
};
|
|
2439
2442
|
Select.displayName = "Select";
|
|
2440
2443
|
|
package/index.esm.js
CHANGED
|
@@ -2344,6 +2344,9 @@ const CreatableSelect = (props) => {
|
|
|
2344
2344
|
};
|
|
2345
2345
|
CreatableSelect.displayName = "CreatableSelect";
|
|
2346
2346
|
|
|
2347
|
+
// This is here to ensure the bundled react-components can expose the react-select for jest in external iris apps.
|
|
2348
|
+
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
2349
|
+
const ReactSyncSelect = ReactSelect.default || ReactSelect;
|
|
2347
2350
|
/**
|
|
2348
2351
|
* Selects are input components used to choose a value from a set.
|
|
2349
2352
|
*
|
|
@@ -2415,7 +2418,7 @@ const Select = (props) => {
|
|
|
2415
2418
|
fieldSize: fieldSize,
|
|
2416
2419
|
disabled: renderAsDisabled,
|
|
2417
2420
|
className: props.className,
|
|
2418
|
-
}), "data-testid": dataTestId, ref: refContainer, children: [prefix !== undefined ? (jsx("div", { className: cvaSelectPrefixSuffix({ kind: "prefix" }), "data-testid": dataTestId ? `${dataTestId}-prefix` : null, ref: refPrefix, children: prefix })) : null, async ? (jsx(ReactAsyncSelect, { ...props, ...reactSelectProps, ...async, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, placeholder: renderAsDisabled ? null : props.placeholder })) : (jsx(
|
|
2421
|
+
}), "data-testid": dataTestId, ref: refContainer, children: [prefix !== undefined ? (jsx("div", { className: cvaSelectPrefixSuffix({ kind: "prefix" }), "data-testid": dataTestId ? `${dataTestId}-prefix` : null, ref: refPrefix, children: prefix })) : null, async ? (jsx(ReactAsyncSelect, { ...props, ...reactSelectProps, ...async, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, placeholder: renderAsDisabled ? null : props.placeholder })) : (jsx(ReactSyncSelect, { ...props, ...reactSelectProps, isMulti: isMulti, menuPosition: menuPosition, onMenuClose: closeMenuHandler, onMenuOpen: openMenuHandler, options: options, placeholder: renderAsDisabled ? null : props.placeholder })), typeof props.disabled === "object" ? (jsx("div", { className: cvaSelectPrefixSuffix({ kind: "suffix" }), "data-testid": dataTestId ? `${dataTestId}-locked` : null, children: jsx(InputLockReasonTooltip, { ...props.disabled }) })) : null] }));
|
|
2419
2422
|
};
|
|
2420
2423
|
Select.displayName = "Select";
|
|
2421
2424
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"zod": "3.22.4",
|
|
18
18
|
"react-hook-form": "7.53.1",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
|
-
"@trackunit/css-class-variance-utilities": "1.0.
|
|
21
|
-
"@trackunit/react-components": "1.1.
|
|
22
|
-
"@trackunit/ui-icons": "1.0.
|
|
23
|
-
"@trackunit/shared-utils": "1.2.
|
|
24
|
-
"@trackunit/i18n-library-translation": "1.0.
|
|
20
|
+
"@trackunit/css-class-variance-utilities": "1.0.10",
|
|
21
|
+
"@trackunit/react-components": "1.1.15",
|
|
22
|
+
"@trackunit/ui-icons": "1.0.13",
|
|
23
|
+
"@trackunit/shared-utils": "1.2.7",
|
|
24
|
+
"@trackunit/i18n-library-translation": "1.0.19"
|
|
25
25
|
},
|
|
26
26
|
"module": "./index.esm.js",
|
|
27
27
|
"main": "./index.cjs.js",
|