mimir-ui-kit 1.26.3 → 1.26.4
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.
@@ -26,9 +26,12 @@ export type TRadioGroupProps = Omit<RadioGroupProps, 'value'> & {
|
|
26
26
|
label?: string;
|
27
27
|
/**
|
28
28
|
* Дополнительный класснейм для элементов радиогруппы.
|
29
|
-
*
|
30
29
|
*/
|
31
30
|
classNameRadioWrapper?: string;
|
31
|
+
/**
|
32
|
+
* Дополнительный класснейм для span радиогруппы.
|
33
|
+
*/
|
34
|
+
classNameRadioSpan?: string;
|
32
35
|
};
|
33
36
|
/**
|
34
37
|
* Компонент RadioGroup для выбора одной опции из нескольких.
|
@@ -51,7 +54,10 @@ export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<
|
|
51
54
|
label?: string;
|
52
55
|
/**
|
53
56
|
* Дополнительный класснейм для элементов радиогруппы.
|
54
|
-
*
|
55
57
|
*/
|
56
58
|
classNameRadioWrapper?: string;
|
59
|
+
/**
|
60
|
+
* Дополнительный класснейм для span радиогруппы.
|
61
|
+
*/
|
62
|
+
classNameRadioSpan?: string;
|
57
63
|
} & import('react').RefAttributes<HTMLElement>>;
|
@@ -120,7 +120,15 @@ const cls = {
|
|
120
120
|
checked
|
121
121
|
};
|
122
122
|
const RadioGroup = forwardRef(
|
123
|
-
({
|
123
|
+
({
|
124
|
+
options,
|
125
|
+
value,
|
126
|
+
onChange,
|
127
|
+
label: label2,
|
128
|
+
classNameRadioWrapper,
|
129
|
+
classNameRadioSpan,
|
130
|
+
...props
|
131
|
+
}, ref) => {
|
124
132
|
const radioClasses = classNames(
|
125
133
|
cls["radio-wrapper"],
|
126
134
|
classNameRadioWrapper,
|
@@ -150,9 +158,13 @@ const RadioGroup = forwardRef(
|
|
150
158
|
K,
|
151
159
|
{
|
152
160
|
as: "span",
|
153
|
-
className: classNames(
|
154
|
-
|
155
|
-
|
161
|
+
className: classNames(
|
162
|
+
cls.radio,
|
163
|
+
{
|
164
|
+
[cls.disabled]: props.disabled
|
165
|
+
},
|
166
|
+
classNameRadioSpan
|
167
|
+
),
|
156
168
|
children: /* @__PURE__ */ jsx(
|
157
169
|
"span",
|
158
170
|
{
|