@trackunit/react-form-components 2.17.31 → 2.17.32
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
CHANGED
|
@@ -4555,8 +4555,8 @@ const RadioGroupContext = react.createContext(null);
|
|
|
4555
4555
|
* @param {RadioGroupProps} props - The props for the RadioGroup component
|
|
4556
4556
|
* @returns {ReactElement} RadioGroup component
|
|
4557
4557
|
*/
|
|
4558
|
-
const RadioGroup = ({ children, id, name, value, disabled, onChange, label, inline = false, className, "data-testid": dataTestId, isInvalid, style, ref, }) => {
|
|
4559
|
-
return (jsxRuntime.jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, label: label, children: jsxRuntime.jsx("div", { className: cvaInputGroup({ layout: inline ? "inline" : undefined, className }), "data-testid": dataTestId, ref: ref, role: "radiogroup", style: style, children: jsxRuntime.jsx(RadioGroupContext.Provider, { value: {
|
|
4558
|
+
const RadioGroup = ({ children, id, name, value, disabled, onChange, label, inline = false, className, formGroupClassName, "data-testid": dataTestId, isInvalid, style, ref, }) => {
|
|
4559
|
+
return (jsxRuntime.jsx(FormGroup, { className: formGroupClassName, "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, label: label, children: jsxRuntime.jsx("div", { className: cvaInputGroup({ layout: inline ? "inline" : undefined, className }), "data-testid": dataTestId, ref: ref, role: "radiogroup", style: style, children: jsxRuntime.jsx(RadioGroupContext.Provider, { value: {
|
|
4560
4560
|
id,
|
|
4561
4561
|
value,
|
|
4562
4562
|
name: name || id,
|
package/index.esm.js
CHANGED
|
@@ -4554,8 +4554,8 @@ const RadioGroupContext = createContext(null);
|
|
|
4554
4554
|
* @param {RadioGroupProps} props - The props for the RadioGroup component
|
|
4555
4555
|
* @returns {ReactElement} RadioGroup component
|
|
4556
4556
|
*/
|
|
4557
|
-
const RadioGroup = ({ children, id, name, value, disabled, onChange, label, inline = false, className, "data-testid": dataTestId, isInvalid, style, ref, }) => {
|
|
4558
|
-
return (jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, label: label, children: jsx("div", { className: cvaInputGroup({ layout: inline ? "inline" : undefined, className }), "data-testid": dataTestId, ref: ref, role: "radiogroup", style: style, children: jsx(RadioGroupContext.Provider, { value: {
|
|
4557
|
+
const RadioGroup = ({ children, id, name, value, disabled, onChange, label, inline = false, className, formGroupClassName, "data-testid": dataTestId, isInvalid, style, ref, }) => {
|
|
4558
|
+
return (jsx(FormGroup, { className: formGroupClassName, "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, label: label, children: jsx("div", { className: cvaInputGroup({ layout: inline ? "inline" : undefined, className }), "data-testid": dataTestId, ref: ref, role: "radiogroup", style: style, children: jsx(RadioGroupContext.Provider, { value: {
|
|
4559
4559
|
id,
|
|
4560
4560
|
value,
|
|
4561
4561
|
name: name || id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.32",
|
|
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.1",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/date-and-time-utils": "1.20.
|
|
13
|
+
"@trackunit/date-and-time-utils": "1.20.37",
|
|
14
14
|
"usehooks-ts": "^3.1.0",
|
|
15
15
|
"libphonenumber-js": "^1.13.11",
|
|
16
16
|
"zod": "^3.25.76",
|
|
17
17
|
"tailwind-merge": "^3.7.0",
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "2.6.
|
|
19
|
-
"@trackunit/react-components": "6.0.
|
|
20
|
-
"@trackunit/ui-icons": "1.20.
|
|
21
|
-
"@trackunit/shared-utils": "1.22.
|
|
22
|
-
"@trackunit/ui-design-tokens": "1.21.
|
|
23
|
-
"@trackunit/i18n-library-translation": "2.14.
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "2.6.36",
|
|
19
|
+
"@trackunit/react-components": "6.0.30",
|
|
20
|
+
"@trackunit/ui-icons": "1.20.35",
|
|
21
|
+
"@trackunit/shared-utils": "1.22.36",
|
|
22
|
+
"@trackunit/ui-design-tokens": "1.21.35",
|
|
23
|
+
"@trackunit/i18n-library-translation": "2.14.28",
|
|
24
24
|
"string-ts": "^2.0.0",
|
|
25
25
|
"es-toolkit": "^1.52.0"
|
|
26
26
|
},
|
|
@@ -28,6 +28,11 @@ export interface RadioGroupProps<TValue extends string | number> extends CommonP
|
|
|
28
28
|
* Whether the radiogroup is inline or not.
|
|
29
29
|
*/
|
|
30
30
|
inline?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Classes for the outer form group. Use this when the group must fill a height-constrained parent.
|
|
33
|
+
* `className` styles the inner radiogroup.
|
|
34
|
+
*/
|
|
35
|
+
formGroupClassName?: string;
|
|
31
36
|
/**
|
|
32
37
|
* Whether the radio group is disabled or not.
|
|
33
38
|
*/
|
|
@@ -98,6 +103,6 @@ export interface RadioGroupProps<TValue extends string | number> extends CommonP
|
|
|
98
103
|
* @returns {ReactElement} RadioGroup component
|
|
99
104
|
*/
|
|
100
105
|
export declare const RadioGroup: {
|
|
101
|
-
<TValue extends string | number = string>({ children, id, name, value, disabled, onChange, label, inline, className, "data-testid": dataTestId, isInvalid, style, ref, }: RadioGroupProps<TValue>): ReactElement;
|
|
106
|
+
<TValue extends string | number = string>({ children, id, name, value, disabled, onChange, label, inline, className, formGroupClassName, "data-testid": dataTestId, isInvalid, style, ref, }: RadioGroupProps<TValue>): ReactElement;
|
|
102
107
|
displayName: string;
|
|
103
108
|
};
|