@rockshin/tao-ui 0.0.48 → 0.0.49
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/dist/components/affix/affix.js +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +29 -11
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import
|
|
3
|
+
import useLayoutEffect from "@rc-component/util/es/hooks/useLayoutEffect";
|
|
4
|
+
import { createContext, forwardRef, useContext, useEffect, useId, useRef, useState } from "react";
|
|
4
5
|
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
5
6
|
import { cx } from "../../utils/semantic.js";
|
|
6
7
|
import "./radio.css";
|
|
7
8
|
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
8
9
|
const radio_Radio = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
9
|
-
const $ = c(
|
|
10
|
+
const $ = c(50);
|
|
10
11
|
let ariaProps;
|
|
11
12
|
let ariaRequired;
|
|
12
13
|
let checked;
|
|
@@ -51,35 +52,38 @@ const radio_Radio = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
|
51
52
|
const ctx = useTaoConfig();
|
|
52
53
|
const groupCtx = useContext(RadioGroupContext);
|
|
53
54
|
const resolvedDisabled = disabled ?? groupCtx?.disabled ?? ctx.disabled ?? false;
|
|
54
|
-
const
|
|
55
|
-
const
|
|
55
|
+
const grouped = null != groupCtx && null != value;
|
|
56
|
+
const resolvedChecked = grouped ? groupCtx.value === value : checked;
|
|
57
|
+
const resolvedName = grouped ? groupCtx.name ?? name : name;
|
|
56
58
|
let t1;
|
|
57
|
-
if ($[13] !== groupCtx || $[14] !==
|
|
59
|
+
if ($[13] !== groupCtx || $[14] !== grouped || $[15] !== onChange || $[16] !== value) {
|
|
58
60
|
t1 = (e)=>{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
onChange?.(e);
|
|
62
|
+
if (!e.defaultPrevented && grouped) groupCtx.onChange(value);
|
|
61
63
|
};
|
|
62
64
|
$[13] = groupCtx;
|
|
63
|
-
$[14] =
|
|
64
|
-
$[15] =
|
|
65
|
-
$[16] =
|
|
66
|
-
|
|
65
|
+
$[14] = grouped;
|
|
66
|
+
$[15] = onChange;
|
|
67
|
+
$[16] = value;
|
|
68
|
+
$[17] = t1;
|
|
69
|
+
} else t1 = $[17];
|
|
67
70
|
const handleChange = t1;
|
|
68
71
|
const t2 = resolvedDisabled || void 0;
|
|
69
|
-
const t3 =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const t3 = groupCtx?.size ?? ctx.size;
|
|
73
|
+
const t4 = classNames?.root;
|
|
74
|
+
let t5;
|
|
75
|
+
if ($[18] !== t4) {
|
|
76
|
+
t5 = cx(t4);
|
|
74
77
|
$[18] = t4;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const t6 =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
$[19] = t5;
|
|
79
|
+
} else t5 = $[19];
|
|
80
|
+
const t6 = styles?.root;
|
|
81
|
+
const t7 = required ?? (void 0 === ariaRequired ? grouped && groupCtx.required : true === ariaRequired || "true" === ariaRequired);
|
|
82
|
+
let t8;
|
|
83
|
+
if ($[20] !== ariaProps || $[21] !== defaultChecked || $[22] !== handleChange || $[23] !== ref || $[24] !== resolvedChecked || $[25] !== resolvedDisabled || $[26] !== resolvedName || $[27] !== t7 || $[28] !== value) {
|
|
84
|
+
t8 = /*#__PURE__*/ jsx("input", {
|
|
81
85
|
...ariaProps,
|
|
82
|
-
required:
|
|
86
|
+
required: t7,
|
|
83
87
|
ref: ref,
|
|
84
88
|
type: "radio",
|
|
85
89
|
name: resolvedName,
|
|
@@ -90,121 +94,173 @@ const radio_Radio = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
|
90
94
|
onChange: handleChange,
|
|
91
95
|
"data-tao-radio-input": ""
|
|
92
96
|
});
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
} else
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
if ($[
|
|
108
|
-
|
|
109
|
-
$[29] = t9;
|
|
97
|
+
$[20] = ariaProps;
|
|
98
|
+
$[21] = defaultChecked;
|
|
99
|
+
$[22] = handleChange;
|
|
100
|
+
$[23] = ref;
|
|
101
|
+
$[24] = resolvedChecked;
|
|
102
|
+
$[25] = resolvedDisabled;
|
|
103
|
+
$[26] = resolvedName;
|
|
104
|
+
$[27] = t7;
|
|
105
|
+
$[28] = value;
|
|
106
|
+
$[29] = t8;
|
|
107
|
+
} else t8 = $[29];
|
|
108
|
+
const t9 = resolvedChecked || void 0;
|
|
109
|
+
const t10 = classNames?.indicator;
|
|
110
|
+
let t11;
|
|
111
|
+
if ($[30] !== t10) {
|
|
112
|
+
t11 = cx(t10);
|
|
110
113
|
$[30] = t10;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
$[31] = t11;
|
|
115
|
+
} else t11 = $[31];
|
|
116
|
+
const t12 = styles?.indicator;
|
|
117
|
+
let t13;
|
|
118
|
+
if ($[32] !== t11 || $[33] !== t12 || $[34] !== t9) {
|
|
119
|
+
t13 = /*#__PURE__*/ jsx("span", {
|
|
116
120
|
"data-tao-radio": "",
|
|
117
|
-
"data-tao-checked":
|
|
118
|
-
className:
|
|
119
|
-
style:
|
|
121
|
+
"data-tao-checked": t9,
|
|
122
|
+
className: t11,
|
|
123
|
+
style: t12
|
|
120
124
|
});
|
|
121
|
-
$[31] = t10;
|
|
122
125
|
$[32] = t11;
|
|
123
|
-
$[33] =
|
|
124
|
-
$[34] =
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
$[33] = t12;
|
|
127
|
+
$[34] = t9;
|
|
128
|
+
$[35] = t13;
|
|
129
|
+
} else t13 = $[35];
|
|
130
|
+
let t14;
|
|
131
|
+
if ($[36] !== t13 || $[37] !== t8) {
|
|
132
|
+
t14 = /*#__PURE__*/ jsxs("span", {
|
|
129
133
|
"data-tao-radio-control": "",
|
|
130
134
|
children: [
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
t8,
|
|
136
|
+
t13
|
|
133
137
|
]
|
|
134
138
|
});
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
} else
|
|
139
|
-
let
|
|
140
|
-
if ($[
|
|
141
|
-
|
|
139
|
+
$[36] = t13;
|
|
140
|
+
$[37] = t8;
|
|
141
|
+
$[38] = t14;
|
|
142
|
+
} else t14 = $[38];
|
|
143
|
+
let t15;
|
|
144
|
+
if ($[39] !== children || $[40] !== classNames?.label || $[41] !== styles?.label) {
|
|
145
|
+
t15 = null != children && /*#__PURE__*/ jsx("span", {
|
|
142
146
|
"data-tao-radio-label": "",
|
|
143
147
|
className: cx(classNames?.label),
|
|
144
148
|
style: styles?.label,
|
|
145
149
|
children: children
|
|
146
150
|
});
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
} else
|
|
152
|
-
let
|
|
153
|
-
if ($[
|
|
154
|
-
|
|
151
|
+
$[39] = children;
|
|
152
|
+
$[40] = classNames?.label;
|
|
153
|
+
$[41] = styles?.label;
|
|
154
|
+
$[42] = t15;
|
|
155
|
+
} else t15 = $[42];
|
|
156
|
+
let t16;
|
|
157
|
+
if ($[43] !== t14 || $[44] !== t15 || $[45] !== t2 || $[46] !== t3 || $[47] !== t5 || $[48] !== t6) {
|
|
158
|
+
t16 = /*#__PURE__*/ jsxs("label", {
|
|
155
159
|
"data-tao-radio-wrapper": "",
|
|
156
160
|
"data-tao-disabled": t2,
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
"data-tao-size": t3,
|
|
162
|
+
className: t5,
|
|
163
|
+
style: t6,
|
|
159
164
|
children: [
|
|
160
|
-
|
|
161
|
-
|
|
165
|
+
t14,
|
|
166
|
+
t15
|
|
162
167
|
]
|
|
163
168
|
});
|
|
164
|
-
$[42] = t13;
|
|
165
169
|
$[43] = t14;
|
|
166
|
-
$[44] =
|
|
167
|
-
$[45] =
|
|
168
|
-
$[46] =
|
|
169
|
-
$[47] =
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
$[44] = t15;
|
|
171
|
+
$[45] = t2;
|
|
172
|
+
$[46] = t3;
|
|
173
|
+
$[47] = t5;
|
|
174
|
+
$[48] = t6;
|
|
175
|
+
$[49] = t16;
|
|
176
|
+
} else t16 = $[49];
|
|
177
|
+
return t16;
|
|
172
178
|
});
|
|
173
|
-
function RadioGroup(
|
|
174
|
-
const $ = c(
|
|
175
|
-
const
|
|
176
|
-
const direction
|
|
179
|
+
function RadioGroup(props) {
|
|
180
|
+
const $ = c(60);
|
|
181
|
+
const generatedName = useId();
|
|
182
|
+
const { options, value, defaultValue, onChange, disabled, size, direction: t0, name, children, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, "aria-required": ariaRequired } = props;
|
|
183
|
+
const direction = void 0 === t0 ? "horizontal" : t0;
|
|
177
184
|
const ctx = useTaoConfig();
|
|
178
185
|
const resolvedDisabled = disabled ?? ctx.disabled ?? false;
|
|
179
186
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
180
|
-
const isControlled =
|
|
187
|
+
const isControlled = "value" in props;
|
|
181
188
|
const resolvedValue = isControlled ? value : internalValue;
|
|
189
|
+
const root = useRef(null);
|
|
190
|
+
const groupName = name ?? generatedName;
|
|
191
|
+
let t1;
|
|
192
|
+
if ($[0] !== defaultValue || $[1] !== groupName || $[2] !== isControlled) {
|
|
193
|
+
t1 = ()=>{
|
|
194
|
+
const container = root.current;
|
|
195
|
+
if (!container?.closest("form")) return;
|
|
196
|
+
const radios = container.querySelectorAll("[data-tao-radio-input]");
|
|
197
|
+
for (const radio of radios)if (radio.name === groupName) radio.defaultChecked = isControlled ? radio.checked : radio.value === defaultValue;
|
|
198
|
+
};
|
|
199
|
+
$[0] = defaultValue;
|
|
200
|
+
$[1] = groupName;
|
|
201
|
+
$[2] = isControlled;
|
|
202
|
+
$[3] = t1;
|
|
203
|
+
} else t1 = $[3];
|
|
204
|
+
useLayoutEffect(t1);
|
|
182
205
|
let t2;
|
|
183
|
-
|
|
184
|
-
|
|
206
|
+
let t3;
|
|
207
|
+
if ($[4] !== defaultValue || $[5] !== isControlled) {
|
|
208
|
+
t2 = ()=>{
|
|
209
|
+
if (isControlled) return;
|
|
210
|
+
const form = root.current?.closest("form");
|
|
211
|
+
const reset = (event)=>{
|
|
212
|
+
queueMicrotask(()=>{
|
|
213
|
+
if (!event.defaultPrevented) setInternalValue(defaultValue);
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
form?.addEventListener("reset", reset);
|
|
217
|
+
return ()=>form?.removeEventListener("reset", reset);
|
|
218
|
+
};
|
|
219
|
+
t3 = [
|
|
220
|
+
isControlled,
|
|
221
|
+
defaultValue
|
|
222
|
+
];
|
|
223
|
+
$[4] = defaultValue;
|
|
224
|
+
$[5] = isControlled;
|
|
225
|
+
$[6] = t2;
|
|
226
|
+
$[7] = t3;
|
|
227
|
+
} else {
|
|
228
|
+
t2 = $[6];
|
|
229
|
+
t3 = $[7];
|
|
230
|
+
}
|
|
231
|
+
useEffect(t2, t3);
|
|
232
|
+
let t4;
|
|
233
|
+
if ($[8] !== isControlled || $[9] !== onChange) {
|
|
234
|
+
t4 = (itemValue)=>{
|
|
185
235
|
if (!isControlled) setInternalValue(itemValue);
|
|
186
236
|
onChange?.(itemValue);
|
|
187
237
|
};
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
} else
|
|
192
|
-
const handleChange =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
238
|
+
$[8] = isControlled;
|
|
239
|
+
$[9] = onChange;
|
|
240
|
+
$[10] = t4;
|
|
241
|
+
} else t4 = $[10];
|
|
242
|
+
const handleChange = t4;
|
|
243
|
+
const t5 = true === ariaRequired || "true" === ariaRequired;
|
|
244
|
+
const t6 = size ?? ctx.size;
|
|
245
|
+
let t7;
|
|
246
|
+
if ($[11] !== groupName || $[12] !== handleChange || $[13] !== resolvedDisabled || $[14] !== resolvedValue || $[15] !== t5 || $[16] !== t6) {
|
|
247
|
+
t7 = {
|
|
248
|
+
name: groupName,
|
|
197
249
|
value: resolvedValue,
|
|
198
250
|
disabled: resolvedDisabled,
|
|
251
|
+
required: t5,
|
|
252
|
+
size: t6,
|
|
199
253
|
onChange: handleChange
|
|
200
254
|
};
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
|
|
207
|
-
|
|
255
|
+
$[11] = groupName;
|
|
256
|
+
$[12] = handleChange;
|
|
257
|
+
$[13] = resolvedDisabled;
|
|
258
|
+
$[14] = resolvedValue;
|
|
259
|
+
$[15] = t5;
|
|
260
|
+
$[16] = t6;
|
|
261
|
+
$[17] = t7;
|
|
262
|
+
} else t7 = $[17];
|
|
263
|
+
const groupCtxValue = t7;
|
|
208
264
|
let T0;
|
|
209
265
|
let t10;
|
|
210
266
|
let t11;
|
|
@@ -212,106 +268,112 @@ function RadioGroup(t0) {
|
|
|
212
268
|
let t13;
|
|
213
269
|
let t14;
|
|
214
270
|
let t15;
|
|
215
|
-
let
|
|
216
|
-
let
|
|
217
|
-
let
|
|
218
|
-
let
|
|
271
|
+
let t16;
|
|
272
|
+
let t17;
|
|
273
|
+
let t18;
|
|
274
|
+
let t19;
|
|
275
|
+
let t20;
|
|
219
276
|
let t8;
|
|
220
277
|
let t9;
|
|
221
|
-
if ($[
|
|
278
|
+
if ($[18] !== ariaDescribedBy || $[19] !== ariaErrorMessage || $[20] !== ariaInvalid || $[21] !== ariaLabel || $[22] !== ariaLabelledBy || $[23] !== ariaRequired || $[24] !== children || $[25] !== direction || $[26] !== groupCtxValue || $[27] !== id || $[28] !== options) {
|
|
222
279
|
const normalizedOptions = options?.map(_temp);
|
|
223
280
|
T0 = RadioGroupContext.Provider;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
281
|
+
t20 = groupCtxValue;
|
|
282
|
+
t8 = root;
|
|
283
|
+
t9 = "";
|
|
284
|
+
t10 = direction;
|
|
285
|
+
t11 = "radiogroup";
|
|
286
|
+
t12 = id;
|
|
287
|
+
t13 = ariaLabel;
|
|
288
|
+
t14 = ariaLabelledBy;
|
|
289
|
+
t15 = ariaDescribedBy;
|
|
290
|
+
t16 = ariaErrorMessage;
|
|
291
|
+
t17 = ariaInvalid;
|
|
292
|
+
t18 = ariaRequired;
|
|
293
|
+
t19 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
|
|
294
|
+
$[18] = ariaDescribedBy;
|
|
295
|
+
$[19] = ariaErrorMessage;
|
|
296
|
+
$[20] = ariaInvalid;
|
|
297
|
+
$[21] = ariaLabel;
|
|
298
|
+
$[22] = ariaLabelledBy;
|
|
299
|
+
$[23] = ariaRequired;
|
|
300
|
+
$[24] = children;
|
|
301
|
+
$[25] = direction;
|
|
302
|
+
$[26] = groupCtxValue;
|
|
303
|
+
$[27] = id;
|
|
304
|
+
$[28] = options;
|
|
305
|
+
$[29] = T0;
|
|
306
|
+
$[30] = t10;
|
|
307
|
+
$[31] = t11;
|
|
308
|
+
$[32] = t12;
|
|
309
|
+
$[33] = t13;
|
|
310
|
+
$[34] = t14;
|
|
311
|
+
$[35] = t15;
|
|
312
|
+
$[36] = t16;
|
|
313
|
+
$[37] = t17;
|
|
314
|
+
$[38] = t18;
|
|
315
|
+
$[39] = t19;
|
|
316
|
+
$[40] = t20;
|
|
317
|
+
$[41] = t8;
|
|
318
|
+
$[42] = t9;
|
|
260
319
|
} else {
|
|
261
|
-
T0 = $[
|
|
262
|
-
t10 = $[
|
|
263
|
-
t11 = $[
|
|
264
|
-
t12 = $[
|
|
265
|
-
t13 = $[
|
|
266
|
-
t14 = $[
|
|
267
|
-
t15 = $[
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
320
|
+
T0 = $[29];
|
|
321
|
+
t10 = $[30];
|
|
322
|
+
t11 = $[31];
|
|
323
|
+
t12 = $[32];
|
|
324
|
+
t13 = $[33];
|
|
325
|
+
t14 = $[34];
|
|
326
|
+
t15 = $[35];
|
|
327
|
+
t16 = $[36];
|
|
328
|
+
t17 = $[37];
|
|
329
|
+
t18 = $[38];
|
|
330
|
+
t19 = $[39];
|
|
331
|
+
t20 = $[40];
|
|
332
|
+
t8 = $[41];
|
|
333
|
+
t9 = $[42];
|
|
274
334
|
}
|
|
275
|
-
let
|
|
276
|
-
if ($[
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
"data-tao-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"aria-
|
|
284
|
-
"aria-
|
|
285
|
-
"aria-
|
|
286
|
-
"aria-
|
|
287
|
-
"aria-
|
|
288
|
-
|
|
335
|
+
let t21;
|
|
336
|
+
if ($[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18 || $[52] !== t19 || $[53] !== t8 || $[54] !== t9) {
|
|
337
|
+
t21 = /*#__PURE__*/ jsx("div", {
|
|
338
|
+
ref: t8,
|
|
339
|
+
"data-tao-radio-group": t9,
|
|
340
|
+
"data-tao-direction": t10,
|
|
341
|
+
role: t11,
|
|
342
|
+
id: t12,
|
|
343
|
+
"aria-label": t13,
|
|
344
|
+
"aria-labelledby": t14,
|
|
345
|
+
"aria-describedby": t15,
|
|
346
|
+
"aria-errormessage": t16,
|
|
347
|
+
"aria-invalid": t17,
|
|
348
|
+
"aria-required": t18,
|
|
349
|
+
children: t19
|
|
289
350
|
});
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
351
|
+
$[43] = t10;
|
|
352
|
+
$[44] = t11;
|
|
353
|
+
$[45] = t12;
|
|
354
|
+
$[46] = t13;
|
|
355
|
+
$[47] = t14;
|
|
356
|
+
$[48] = t15;
|
|
357
|
+
$[49] = t16;
|
|
358
|
+
$[50] = t17;
|
|
359
|
+
$[51] = t18;
|
|
360
|
+
$[52] = t19;
|
|
361
|
+
$[53] = t8;
|
|
362
|
+
$[54] = t9;
|
|
363
|
+
$[55] = t21;
|
|
364
|
+
} else t21 = $[55];
|
|
365
|
+
let t22;
|
|
366
|
+
if ($[56] !== T0 || $[57] !== t20 || $[58] !== t21) {
|
|
367
|
+
t22 = /*#__PURE__*/ jsx(T0, {
|
|
368
|
+
value: t20,
|
|
369
|
+
children: t21
|
|
308
370
|
});
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
} else
|
|
314
|
-
return
|
|
371
|
+
$[56] = T0;
|
|
372
|
+
$[57] = t20;
|
|
373
|
+
$[58] = t21;
|
|
374
|
+
$[59] = t22;
|
|
375
|
+
} else t22 = $[59];
|
|
376
|
+
return t22;
|
|
315
377
|
}
|
|
316
378
|
function _temp2(opt_0) {
|
|
317
379
|
return /*#__PURE__*/ jsx(radio_Radio, {
|