@rockshin/tao-ui 0.0.47 → 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.
Files changed (144) hide show
  1. package/dist/components/affix/affix.js +20 -16
  2. package/dist/components/alert/alert.js +114 -99
  3. package/dist/components/app/app-modals.js +134 -96
  4. package/dist/components/app/app-notices.js +39 -23
  5. package/dist/components/auto-complete/auto-complete.js +21 -7
  6. package/dist/components/avatar/avatar.js +31 -11
  7. package/dist/components/badge/badge.css +1 -1
  8. package/dist/components/badge/badge.js +72 -257
  9. package/dist/components/border-beam/border-beam.js +21 -17
  10. package/dist/components/breadcrumb/breadcrumb.js +178 -159
  11. package/dist/components/button/button.js +61 -53
  12. package/dist/components/calendar/calendar.js +6 -4
  13. package/dist/components/card/card.js +24 -8
  14. package/dist/components/carousel/carousel.d.ts +1 -1
  15. package/dist/components/carousel/carousel.js +105 -68
  16. package/dist/components/cascader/cascader.js +54 -19
  17. package/dist/components/checkbox/checkbox.css +13 -2
  18. package/dist/components/checkbox/checkbox.d.ts +2 -0
  19. package/dist/components/checkbox/checkbox.js +320 -229
  20. package/dist/components/collapse/collapse-panels.d.ts +1 -1
  21. package/dist/components/collapse/collapse-panels.js +122 -113
  22. package/dist/components/collapse/collapse.js +98 -63
  23. package/dist/components/color-picker/color-picker.js +539 -441
  24. package/dist/components/color-picker/color.js +1 -1
  25. package/dist/components/context-menu/context-menu.d.ts +1 -1
  26. package/dist/components/context-menu/context-menu.js +108 -68
  27. package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
  28. package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
  29. package/dist/components/date-picker/calendar/month-grid.js +79 -37
  30. package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
  31. package/dist/components/date-picker/calendar/time-panel.js +94 -89
  32. package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
  33. package/dist/components/date-picker/calendar/year-grid.js +66 -35
  34. package/dist/components/date-picker/date-picker.css +24 -1
  35. package/dist/components/date-picker/date-picker.js +99 -53
  36. package/dist/components/date-picker/presets.d.ts +2 -1
  37. package/dist/components/date-picker/presets.js +27 -24
  38. package/dist/components/date-picker/range-picker.js +308 -153
  39. package/dist/components/descriptions/descriptions.js +7 -3
  40. package/dist/components/divider/divider.css +1 -1
  41. package/dist/components/divider/divider.js +1 -1
  42. package/dist/components/drawer/drawer.js +201 -369
  43. package/dist/components/dropdown/dropdown.d.ts +1 -1
  44. package/dist/components/dropdown/dropdown.js +183 -279
  45. package/dist/components/empty/empty.js +57 -78
  46. package/dist/components/float-button/float-button.d.ts +1 -0
  47. package/dist/components/float-button/float-button.js +47 -30
  48. package/dist/components/form/field-control.d.ts +4 -2
  49. package/dist/components/form/field-control.js +17 -9
  50. package/dist/components/form/form-context.d.ts +8 -2
  51. package/dist/components/form/form-context.js +2 -1
  52. package/dist/components/form/form-item.js +85 -63
  53. package/dist/components/form/form.css +3 -2
  54. package/dist/components/form/use-form.d.ts +2 -1
  55. package/dist/components/form/use-form.js +2 -1
  56. package/dist/components/form-field/form-field-view.d.ts +3 -1
  57. package/dist/components/form-field/form-field-view.js +194 -141
  58. package/dist/components/form-section/form-section.d.ts +1 -1
  59. package/dist/components/form-section/form-section.js +52 -45
  60. package/dist/components/image/image.js +585 -477
  61. package/dist/components/input/base-input.js +8 -9
  62. package/dist/components/input/input-shared.d.ts +5 -2
  63. package/dist/components/input/input-shared.js +42 -18
  64. package/dist/components/input/otp.js +236 -217
  65. package/dist/components/input/password.js +2 -1
  66. package/dist/components/input/search.js +8 -7
  67. package/dist/components/list/list-pagination.js +41 -36
  68. package/dist/components/list/list.js +141 -125
  69. package/dist/components/listy/listy.js +175 -106
  70. package/dist/components/masonry/masonry.js +108 -85
  71. package/dist/components/mentions/mentions.js +12 -3
  72. package/dist/components/menu/menu-render.d.ts +9 -3
  73. package/dist/components/menu/menu-render.js +99 -36
  74. package/dist/components/modal/confirm-dialog.js +10 -4
  75. package/dist/components/modal/confirm.js +3 -7
  76. package/dist/components/modal/index.js +9 -3
  77. package/dist/components/modal/modal.js +390 -365
  78. package/dist/components/pagination/pagination.js +105 -96
  79. package/dist/components/popconfirm/popconfirm.d.ts +1 -1
  80. package/dist/components/popconfirm/popconfirm.js +219 -168
  81. package/dist/components/popover/popover.js +330 -243
  82. package/dist/components/progress/progress.css +2 -2
  83. package/dist/components/progress/progress.js +232 -458
  84. package/dist/components/qr-code/qr-code.js +72 -66
  85. package/dist/components/radio/radio.css +15 -4
  86. package/dist/components/radio/radio.d.ts +2 -1
  87. package/dist/components/radio/radio.js +260 -198
  88. package/dist/components/rate/rate.js +173 -113
  89. package/dist/components/scroll-area/scroll-area.js +241 -211
  90. package/dist/components/segmented/segmented.js +73 -41
  91. package/dist/components/select/mobile-select.d.ts +2 -1
  92. package/dist/components/select/mobile-select.js +24 -13
  93. package/dist/components/select/select-searchable-list.d.ts +2 -1
  94. package/dist/components/select/select-searchable-list.js +2 -3
  95. package/dist/components/select/select.js +49 -25
  96. package/dist/components/select/use-select-selection.d.ts +1 -1
  97. package/dist/components/select/use-select-selection.js +7 -4
  98. package/dist/components/skeleton/skeleton.js +56 -48
  99. package/dist/components/slider/slider.js +87 -212
  100. package/dist/components/sonner/sonner.js +109 -93
  101. package/dist/components/spinner/spinner.js +147 -138
  102. package/dist/components/splitter/splitter.js +222 -159
  103. package/dist/components/statistic/statistic.js +7 -6
  104. package/dist/components/steps/steps.js +88 -81
  105. package/dist/components/steps/use-display-steps.js +1 -1
  106. package/dist/components/switch/switch.js +89 -89
  107. package/dist/components/table/table-filter.js +66 -56
  108. package/dist/components/table/table-icons.d.ts +2 -1
  109. package/dist/components/table/table-icons.js +11 -9
  110. package/dist/components/table/table-model.js +1 -1
  111. package/dist/components/table/table.js +107 -83
  112. package/dist/components/table/use-table-data.d.ts +6 -3
  113. package/dist/components/table/use-table-data.js +166 -130
  114. package/dist/components/tabs/tabs.css +1 -1
  115. package/dist/components/tabs/tabs.js +236 -179
  116. package/dist/components/tag/tag.d.ts +2 -2
  117. package/dist/components/tag/tag.js +111 -108
  118. package/dist/components/textarea/textarea.js +22 -17
  119. package/dist/components/time-picker/time-picker.js +5 -3
  120. package/dist/components/timeline/timeline.css +6 -1
  121. package/dist/components/timeline/timeline.js +21 -11
  122. package/dist/components/tooltip/tooltip.d.ts +2 -2
  123. package/dist/components/tooltip/tooltip.js +123 -233
  124. package/dist/components/tour/tour.css +4 -0
  125. package/dist/components/tour/tour.js +400 -331
  126. package/dist/components/transfer/transfer-list.js +29 -11
  127. package/dist/components/transfer/transfer-parts.js +1 -1
  128. package/dist/components/transfer/transfer-types.d.ts +1 -0
  129. package/dist/components/transfer/transfer.js +29 -14
  130. package/dist/components/tree/tree-keyboard.d.ts +1 -1
  131. package/dist/components/tree/tree-keyboard.js +5 -3
  132. package/dist/components/tree/tree.js +74 -59
  133. package/dist/components/tree-select/select-engine.d.ts +3 -2
  134. package/dist/components/tree-select/select-engine.js +18 -16
  135. package/dist/components/tree-select/tree-select.js +21 -5
  136. package/dist/components/upload/upload.css +8 -0
  137. package/dist/components/upload/upload.js +160 -72
  138. package/dist/components/watermark/watermark.js +36 -29
  139. package/dist/number-input/use-number-input.js +129 -90
  140. package/dist/number-input/validate.js +32 -5
  141. package/dist/provider/merge-locale.js +12 -9
  142. package/dist/provider/tao-provider.d.ts +3 -1
  143. package/dist/provider/tao-provider.js +123 -86
  144. 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 { createContext, forwardRef, useContext, useState } from "react";
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(48);
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 resolvedChecked = groupCtx ? groupCtx.value === value : checked;
55
- const resolvedName = groupCtx?.name ?? name;
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] !== onChange || $[15] !== value) {
59
+ if ($[13] !== groupCtx || $[14] !== grouped || $[15] !== onChange || $[16] !== value) {
58
60
  t1 = (e)=>{
59
- if (groupCtx && null != value) groupCtx.onChange(value);
60
- else onChange?.(e);
61
+ onChange?.(e);
62
+ if (!e.defaultPrevented && grouped) groupCtx.onChange(value);
61
63
  };
62
64
  $[13] = groupCtx;
63
- $[14] = onChange;
64
- $[15] = value;
65
- $[16] = t1;
66
- } else t1 = $[16];
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 = classNames?.root;
70
- let t4;
71
- if ($[17] !== t3) {
72
- t4 = cx(t3);
73
- $[17] = t3;
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
- } else t4 = $[18];
76
- const t5 = styles?.root;
77
- const t6 = required ?? (true === ariaRequired || "true" === ariaRequired);
78
- let t7;
79
- if ($[19] !== ariaProps || $[20] !== defaultChecked || $[21] !== handleChange || $[22] !== ref || $[23] !== resolvedChecked || $[24] !== resolvedDisabled || $[25] !== resolvedName || $[26] !== t6 || $[27] !== value) {
80
- t7 = /*#__PURE__*/ jsx("input", {
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: t6,
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
- $[19] = ariaProps;
94
- $[20] = defaultChecked;
95
- $[21] = handleChange;
96
- $[22] = ref;
97
- $[23] = resolvedChecked;
98
- $[24] = resolvedDisabled;
99
- $[25] = resolvedName;
100
- $[26] = t6;
101
- $[27] = value;
102
- $[28] = t7;
103
- } else t7 = $[28];
104
- const t8 = resolvedChecked || void 0;
105
- const t9 = classNames?.indicator;
106
- let t10;
107
- if ($[29] !== t9) {
108
- t10 = cx(t9);
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
- } else t10 = $[30];
112
- const t11 = styles?.indicator;
113
- let t12;
114
- if ($[31] !== t10 || $[32] !== t11 || $[33] !== t8) {
115
- t12 = /*#__PURE__*/ jsx("span", {
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": t8,
118
- className: t10,
119
- style: t11
121
+ "data-tao-checked": t9,
122
+ className: t11,
123
+ style: t12
120
124
  });
121
- $[31] = t10;
122
125
  $[32] = t11;
123
- $[33] = t8;
124
- $[34] = t12;
125
- } else t12 = $[34];
126
- let t13;
127
- if ($[35] !== t12 || $[36] !== t7) {
128
- t13 = /*#__PURE__*/ jsxs("span", {
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
- t7,
132
- t12
135
+ t8,
136
+ t13
133
137
  ]
134
138
  });
135
- $[35] = t12;
136
- $[36] = t7;
137
- $[37] = t13;
138
- } else t13 = $[37];
139
- let t14;
140
- if ($[38] !== children || $[39] !== classNames?.label || $[40] !== styles?.label) {
141
- t14 = null != children && /*#__PURE__*/ jsx("span", {
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
- $[38] = children;
148
- $[39] = classNames?.label;
149
- $[40] = styles?.label;
150
- $[41] = t14;
151
- } else t14 = $[41];
152
- let t15;
153
- if ($[42] !== t13 || $[43] !== t14 || $[44] !== t2 || $[45] !== t4 || $[46] !== t5) {
154
- t15 = /*#__PURE__*/ jsxs("label", {
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
- className: t4,
158
- style: t5,
161
+ "data-tao-size": t3,
162
+ className: t5,
163
+ style: t6,
159
164
  children: [
160
- t13,
161
- t14
165
+ t14,
166
+ t15
162
167
  ]
163
168
  });
164
- $[42] = t13;
165
169
  $[43] = t14;
166
- $[44] = t2;
167
- $[45] = t4;
168
- $[46] = t5;
169
- $[47] = t15;
170
- } else t15 = $[47];
171
- return t15;
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(t0) {
174
- const $ = c(48);
175
- const { options, value, defaultValue, onChange, disabled, direction: t1, name, children, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, "aria-required": ariaRequired } = t0;
176
- const direction = void 0 === t1 ? "horizontal" : t1;
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 = void 0 !== value;
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
- if ($[0] !== isControlled || $[1] !== onChange) {
184
- t2 = (itemValue)=>{
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
- $[0] = isControlled;
189
- $[1] = onChange;
190
- $[2] = t2;
191
- } else t2 = $[2];
192
- const handleChange = t2;
193
- let t3;
194
- if ($[3] !== handleChange || $[4] !== name || $[5] !== resolvedDisabled || $[6] !== resolvedValue) {
195
- t3 = {
196
- name,
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
- $[3] = handleChange;
202
- $[4] = name;
203
- $[5] = resolvedDisabled;
204
- $[6] = resolvedValue;
205
- $[7] = t3;
206
- } else t3 = $[7];
207
- const groupCtxValue = t3;
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 t4;
216
- let t5;
217
- let t6;
218
- let t7;
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 ($[8] !== ariaDescribedBy || $[9] !== ariaErrorMessage || $[10] !== ariaInvalid || $[11] !== ariaLabel || $[12] !== ariaLabelledBy || $[13] !== ariaRequired || $[14] !== children || $[15] !== direction || $[16] !== groupCtxValue || $[17] !== id || $[18] !== options) {
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
- t15 = groupCtxValue;
225
- t4 = "";
226
- t5 = direction;
227
- t6 = "radiogroup";
228
- t7 = id;
229
- t8 = ariaLabel;
230
- t9 = ariaLabelledBy;
231
- t10 = ariaDescribedBy;
232
- t11 = ariaErrorMessage;
233
- t12 = ariaInvalid;
234
- t13 = ariaRequired;
235
- t14 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
236
- $[8] = ariaDescribedBy;
237
- $[9] = ariaErrorMessage;
238
- $[10] = ariaInvalid;
239
- $[11] = ariaLabel;
240
- $[12] = ariaLabelledBy;
241
- $[13] = ariaRequired;
242
- $[14] = children;
243
- $[15] = direction;
244
- $[16] = groupCtxValue;
245
- $[17] = id;
246
- $[18] = options;
247
- $[19] = T0;
248
- $[20] = t10;
249
- $[21] = t11;
250
- $[22] = t12;
251
- $[23] = t13;
252
- $[24] = t14;
253
- $[25] = t15;
254
- $[26] = t4;
255
- $[27] = t5;
256
- $[28] = t6;
257
- $[29] = t7;
258
- $[30] = t8;
259
- $[31] = t9;
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 = $[19];
262
- t10 = $[20];
263
- t11 = $[21];
264
- t12 = $[22];
265
- t13 = $[23];
266
- t14 = $[24];
267
- t15 = $[25];
268
- t4 = $[26];
269
- t5 = $[27];
270
- t6 = $[28];
271
- t7 = $[29];
272
- t8 = $[30];
273
- t9 = $[31];
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 t16;
276
- if ($[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t4 || $[38] !== t5 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
277
- t16 = /*#__PURE__*/ jsx("div", {
278
- "data-tao-radio-group": t4,
279
- "data-tao-direction": t5,
280
- role: t6,
281
- id: t7,
282
- "aria-label": t8,
283
- "aria-labelledby": t9,
284
- "aria-describedby": t10,
285
- "aria-errormessage": t11,
286
- "aria-invalid": t12,
287
- "aria-required": t13,
288
- children: t14
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
- $[32] = t10;
291
- $[33] = t11;
292
- $[34] = t12;
293
- $[35] = t13;
294
- $[36] = t14;
295
- $[37] = t4;
296
- $[38] = t5;
297
- $[39] = t6;
298
- $[40] = t7;
299
- $[41] = t8;
300
- $[42] = t9;
301
- $[43] = t16;
302
- } else t16 = $[43];
303
- let t17;
304
- if ($[44] !== T0 || $[45] !== t15 || $[46] !== t16) {
305
- t17 = /*#__PURE__*/ jsx(T0, {
306
- value: t15,
307
- children: t16
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
- $[44] = T0;
310
- $[45] = t15;
311
- $[46] = t16;
312
- $[47] = t17;
313
- } else t17 = $[47];
314
- return t17;
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, {