@midas-ds/components 1.0.2 → 1.0.3

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 (125) hide show
  1. package/Button-B4vMZbC6.js +182 -0
  2. package/CHANGELOG.md +10 -0
  3. package/Checkbox-DnKWanep.js +402 -0
  4. package/{Collection-B3xUVWPF.js → Collection-COLWgm24.js} +179 -152
  5. package/Dialog-Cb6toyXO.js +1951 -0
  6. package/DragAndDrop-B0T3WgjL.js +40 -0
  7. package/FocusScope-C8i7CH6y.js +513 -0
  8. package/Form-BQQs3jUk.js +238 -0
  9. package/Group-CdwXhx8Q.js +42 -0
  10. package/{Hidden-BQWDvze4.js → Hidden-DngIphiL.js} +1 -1
  11. package/Link-iAZLB3RI.js +75 -0
  12. package/ListBox-BKWkIIm6.js +474 -0
  13. package/ListKeyboardDelegate-BH-K5hyq.js +172 -0
  14. package/{PressResponder-DP8ZDNGy.js → PressResponder-Cz-TRBHO.js} +10 -10
  15. package/README.md +21 -3
  16. package/SelectionManager-8o40f7mx.js +1047 -0
  17. package/Separator-BlvmQjwz.js +49 -0
  18. package/Tag--W5TgxmK.js +728 -0
  19. package/Text-CQPW6xs7.js +15 -0
  20. package/TextField-DeK_yiK-.js +225 -0
  21. package/TextField.module-0-u4LVPp.js +143 -0
  22. package/{VisuallyHidden-B_XzVvlX.js → VisuallyHidden-CFx06Bae.js} +1 -1
  23. package/{context-ScOIq_Gu.js → context-Bnqknrce.js} +1 -1
  24. package/index-B-jHjTDC.js +120 -0
  25. package/{index-CorR1LBD.js → index-BPdc9gJ8.js} +3 -3
  26. package/index-DK9ZACEc.js +642 -0
  27. package/{index-Dl1Q-tbj.js → index-KSgQWWiy.js} +5315 -5315
  28. package/index.js +45 -47
  29. package/index15.js +1 -1
  30. package/index16.js +1 -1
  31. package/index25.js +1 -1
  32. package/index26.js +1 -1
  33. package/index3.js +2 -4
  34. package/index31.js +3 -3
  35. package/index32.js +2 -2
  36. package/index33.js +2 -2
  37. package/index34.js +1 -1
  38. package/index35.js +1 -1
  39. package/index36.js +1 -1
  40. package/index37.js +1 -1
  41. package/index38.js +1 -1
  42. package/index39.js +1 -1
  43. package/index40.js +1 -1
  44. package/index41.js +1 -1
  45. package/index42.js +1 -1
  46. package/index43.js +1 -1
  47. package/index45.js +3 -3
  48. package/index5.js +1 -1
  49. package/index50.js +1 -1
  50. package/index52.js +3 -3
  51. package/index53.js +3 -3
  52. package/index54.js +1 -1
  53. package/index55.js +4 -4
  54. package/index56.js +1 -1
  55. package/index57.js +1 -1
  56. package/index58.js +1 -1
  57. package/index59.js +3 -3
  58. package/index60.js +1 -1
  59. package/index61.js +1 -1
  60. package/index62.js +1 -1
  61. package/index63.js +4 -4
  62. package/index64.js +3 -3
  63. package/index65.js +3 -3
  64. package/index66.js +1 -1
  65. package/index67.js +3 -3
  66. package/index68.js +2 -2
  67. package/index69.js +1 -1
  68. package/index71.js +1 -1
  69. package/index76.js +5 -5
  70. package/index77.js +2 -2
  71. package/index78.js +2 -2
  72. package/index79.js +1 -1
  73. package/index80.js +226 -227
  74. package/index81.js +197 -199
  75. package/index82.js +192 -195
  76. package/index83.js +181 -183
  77. package/index84.js +52 -54
  78. package/index85.js +261 -262
  79. package/index86.js +262 -262
  80. package/index87.js +209 -211
  81. package/index88.js +436 -440
  82. package/index89.js +962 -964
  83. package/index90.js +2401 -2399
  84. package/index92.js +5 -5
  85. package/index93.js +1 -1
  86. package/index94.js +1 -1
  87. package/link/Link.d.ts +2 -2
  88. package/link-button/LinkButton.d.ts +1 -1
  89. package/package.json +7 -1
  90. package/{react.esm-D8HpDGKP.js → react.esm-sMU8Z7rL.js} +1872 -1872
  91. package/textfield/index.d.ts +0 -2
  92. package/{useControlledState-S_TYcV_c.js → useControlledState-DrAoodI6.js} +1 -1
  93. package/{useDescription-D4_zk_sA.js → useDescription-BPs7eRff.js} +1 -1
  94. package/useField-Dz62UHCP.js +67 -0
  95. package/{useFilter-BnJDBCkt.js → useFilter-ViwzkzZe.js} +1 -1
  96. package/useFocusRing-BKGhL91C.js +1297 -0
  97. package/{useFocusable-C-N9wcwm.js → useFocusable-CRSmYEQc.js} +11 -8
  98. package/{useGridSelectionCheckbox-i1rsjlC-.js → useGridSelectionCheckbox-CVEvUCJL.js} +3 -3
  99. package/useHasTabbableChild-C8y4fwiY.js +34 -0
  100. package/{useHighlightSelectionDescription-JVx2MW_e.js → useHighlightSelectionDescription-CD74uzLh.js} +19 -19
  101. package/useListState-DKnP5TB5.js +119 -0
  102. package/{useLocalizedStringFormatter-DVCAZqcL.js → useLocalizedStringFormatter-DsZ-ZWSk.js} +29 -29
  103. package/{useSingleSelectListState-CmX9_L5H.js → useSingleSelectListState-BHTLh8Ob.js} +5 -5
  104. package/Button-CCevm2s3.js +0 -183
  105. package/Checkbox-CllWDBxF.js +0 -405
  106. package/Dialog-CLTyYwkS.js +0 -1889
  107. package/DragAndDrop-OTN7La7U.js +0 -42
  108. package/FocusScope-BR0SJ-cZ.js +0 -512
  109. package/Form-DXLoQL91.js +0 -240
  110. package/Group-DPMuN3h8.js +0 -44
  111. package/Label-C18A_4Z5.js +0 -69
  112. package/Link-BU1h3K2a.js +0 -77
  113. package/ListBox-D21tdwTs.js +0 -463
  114. package/ListKeyboardDelegate-DxMjfMsI.js +0 -172
  115. package/SelectionManager-D4WtKtey.js +0 -988
  116. package/Separator-DLUHK9vv.js +0 -48
  117. package/Tag-CEd6WWSc.js +0 -725
  118. package/Text-DGLaY3HR.js +0 -17
  119. package/TextField-C_hq9WeT.js +0 -226
  120. package/TextField.module-Cwq1FAm7.js +0 -141
  121. package/index-CEg5vZQH.js +0 -132
  122. package/index-CgfokhRq.js +0 -674
  123. package/useFocusRing-D97-G3fT.js +0 -1324
  124. package/useHasTabbableChild-DeuCnGGv.js +0 -34
  125. package/useListState-DSOTbsL3.js +0 -119
package/index82.js CHANGED
@@ -1,171 +1,170 @@
1
- import { jsx as I } from "react/jsx-runtime";
2
- import { $ as L } from "./Group-DPMuN3h8.js";
3
- import { m as q, e as P, n as w, f as E, k as G, a as _, u as N, v as T, d as M, x as W, i as A, H, w as j, c as K, b as U } from "./useFocusRing-D97-G3fT.js";
4
- import { a as z, b as J, $ as Q, c as X, d as Y } from "./Form-DXLoQL91.js";
5
- import { $ as Z, a as ee } from "./Label-C18A_4Z5.js";
6
- import { $ as ae } from "./Text-DGLaY3HR.js";
7
- import D, { useMemo as ie, useState as de, forwardRef as S, createContext as F } from "react";
8
- import { $ as re } from "./useControlledState-S_TYcV_c.js";
9
- import { $ as le } from "./FocusScope-BR0SJ-cZ.js";
10
- import { $ as se } from "./context-ScOIq_Gu.js";
11
- import { $ as te } from "./useFocusable-C-N9wcwm.js";
12
- import { a as oe } from "./VisuallyHidden-B_XzVvlX.js";
13
- import { I as ne } from "./TextField-C_hq9WeT.js";
1
+ import { jsx as D } from "react/jsx-runtime";
2
+ import { $ as L } from "./Group-CdwXhx8Q.js";
3
+ import { m as w, e as y, n as F, f as E, l as G, a as _, x as N, y as T, d as M, A as W, i as A, I as H, z as j, c as K, b as z } from "./useFocusRing-BKGhL91C.js";
4
+ import { d as U, e as J, c as Q, $ as X, a as Y } from "./Form-BQQs3jUk.js";
5
+ import { b as Z, $ as ee } from "./useField-Dz62UHCP.js";
6
+ import { $ as ae } from "./Text-CQPW6xs7.js";
7
+ import I, { useMemo as ie, useState as de, forwardRef as S, createContext as q } from "react";
8
+ import { $ as re } from "./useControlledState-DrAoodI6.js";
9
+ import { $ as le } from "./FocusScope-C8i7CH6y.js";
10
+ import { $ as se } from "./context-Bnqknrce.js";
11
+ import { $ as ne } from "./useFocusable-CRSmYEQc.js";
12
+ import { a as te } from "./VisuallyHidden-CFx06Bae.js";
13
+ import { I as oe } from "./TextField-DeK_yiK-.js";
14
14
  import './Radio.css';const C = /* @__PURE__ */ new WeakMap();
15
- function ce(e, a, l) {
16
- let { value: d, children: r, "aria-label": f, "aria-labelledby": i } = e;
17
- const s = e.isDisabled || a.isDisabled;
18
- let u = r != null, o = f != null || i != null;
19
- !u && !o && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
20
- let n = a.selectedValue === d, v = (B) => {
21
- B.stopPropagation(), a.setSelectedValue(d);
22
- }, { pressProps: p, isPressed: x } = q({
23
- isDisabled: s
24
- }), { pressProps: $, isPressed: h } = q({
25
- isDisabled: s,
15
+ function ce(a, e, d) {
16
+ let { value: r, children: s, "aria-label": l, "aria-labelledby": n } = a;
17
+ const i = a.isDisabled || e.isDisabled;
18
+ let u = s != null, f = l != null || n != null;
19
+ !u && !f && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
20
+ let t = e.selectedValue === r, v = (B) => {
21
+ B.stopPropagation(), e.setSelectedValue(r);
22
+ }, { pressProps: m, isPressed: x } = w({
23
+ isDisabled: i
24
+ }), { pressProps: P, isPressed: $ } = w({
25
+ isDisabled: i,
26
26
  onPress() {
27
- a.setSelectedValue(d);
27
+ e.setSelectedValue(r);
28
28
  }
29
- }), { focusableProps: y } = te(P(e, {
30
- onFocus: () => a.setLastFocusedValue(d)
31
- }), l), R = P(p, y), g = w(e, {
29
+ }), { focusableProps: V } = ne(y(a, {
30
+ onFocus: () => e.setLastFocusedValue(r)
31
+ }), d), R = y(m, V), g = F(a, {
32
32
  labelable: !0
33
- }), V = -1;
34
- a.selectedValue != null ? a.selectedValue === d && (V = 0) : (a.lastFocusedValue === d || a.lastFocusedValue == null) && (V = 0), s && (V = void 0);
35
- let { name: b, descriptionId: t, errorMessageId: m, validationBehavior: c } = C.get(a);
36
- return z(l, a.selectedValue, a.setSelectedValue), J({
33
+ }), p = -1;
34
+ e.selectedValue != null ? e.selectedValue === r && (p = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (p = 0), i && (p = void 0);
35
+ let { name: b, descriptionId: o, errorMessageId: h, validationBehavior: c } = C.get(e);
36
+ return U(d, e.selectedValue, e.setSelectedValue), J({
37
37
  validationBehavior: c
38
- }, a, l), {
39
- labelProps: P($, {
38
+ }, e, d), {
39
+ labelProps: y(P, {
40
40
  onClick: (B) => B.preventDefault()
41
41
  }),
42
- inputProps: P(g, {
42
+ inputProps: y(g, {
43
43
  ...R,
44
44
  type: "radio",
45
45
  name: b,
46
- tabIndex: V,
47
- disabled: s,
48
- required: a.isRequired && c === "native",
49
- checked: n,
50
- value: d,
46
+ tabIndex: p,
47
+ disabled: i,
48
+ required: e.isRequired && c === "native",
49
+ checked: t,
50
+ value: r,
51
51
  onChange: v,
52
52
  "aria-describedby": [
53
- e["aria-describedby"],
54
- a.isInvalid ? m : null,
55
- t
53
+ a["aria-describedby"],
54
+ e.isInvalid ? h : null,
55
+ o
56
56
  ].filter(Boolean).join(" ") || void 0
57
57
  }),
58
- isDisabled: s,
59
- isSelected: n,
60
- isPressed: x || h
58
+ isDisabled: i,
59
+ isSelected: t,
60
+ isPressed: x || $
61
61
  };
62
62
  }
63
- function fe(e, a) {
64
- let { name: l, isReadOnly: d, isRequired: r, isDisabled: f, orientation: i = "vertical", validationBehavior: s = "aria" } = e, { direction: u } = se(), { isInvalid: o, validationErrors: n, validationDetails: v } = a.displayValidation, { labelProps: p, fieldProps: x, descriptionProps: $, errorMessageProps: h } = Z({
65
- ...e,
63
+ function fe(a, e) {
64
+ let { name: d, isReadOnly: r, isRequired: s, isDisabled: l, orientation: n = "vertical", validationBehavior: i = "aria" } = a, { direction: u } = se(), { isInvalid: f, validationErrors: t, validationDetails: v } = e.displayValidation, { labelProps: m, fieldProps: x, descriptionProps: P, errorMessageProps: $ } = Z({
65
+ ...a,
66
66
  // Radio group is not an HTML input element so it
67
67
  // shouldn't be labeled by a <label> element.
68
68
  labelElementType: "span",
69
- isInvalid: a.isInvalid,
70
- errorMessage: e.errorMessage || n
71
- }), y = w(e, {
69
+ isInvalid: e.isInvalid,
70
+ errorMessage: a.errorMessage || t
71
+ }), V = F(a, {
72
72
  labelable: !0
73
73
  }), { focusWithinProps: R } = E({
74
74
  onBlurWithin(b) {
75
- var t;
76
- (t = e.onBlur) === null || t === void 0 || t.call(e, b), a.selectedValue || a.setLastFocusedValue(null);
75
+ var o;
76
+ (o = a.onBlur) === null || o === void 0 || o.call(a, b), e.selectedValue || e.setLastFocusedValue(null);
77
77
  },
78
- onFocusWithin: e.onFocus,
79
- onFocusWithinChange: e.onFocusChange
78
+ onFocusWithin: a.onFocus,
79
+ onFocusWithinChange: a.onFocusChange
80
80
  }), g = (b) => {
81
- let t;
81
+ let o;
82
82
  switch (b.key) {
83
83
  case "ArrowRight":
84
- u === "rtl" && i !== "vertical" ? t = "prev" : t = "next";
84
+ u === "rtl" && n !== "vertical" ? o = "prev" : o = "next";
85
85
  break;
86
86
  case "ArrowLeft":
87
- u === "rtl" && i !== "vertical" ? t = "next" : t = "prev";
87
+ u === "rtl" && n !== "vertical" ? o = "next" : o = "prev";
88
88
  break;
89
89
  case "ArrowDown":
90
- t = "next";
90
+ o = "next";
91
91
  break;
92
92
  case "ArrowUp":
93
- t = "prev";
93
+ o = "prev";
94
94
  break;
95
95
  default:
96
96
  return;
97
97
  }
98
98
  b.preventDefault();
99
- let m = le(b.currentTarget, {
99
+ let h = le(b.currentTarget, {
100
100
  from: b.target
101
101
  }), c;
102
- t === "next" ? (c = m.nextNode(), c || (m.currentNode = b.currentTarget, c = m.firstChild())) : (c = m.previousNode(), c || (m.currentNode = b.currentTarget, c = m.lastChild())), c && (c.focus(), a.setSelectedValue(c.value));
103
- }, V = G(l);
104
- return C.set(a, {
105
- name: V,
106
- descriptionId: $.id,
107
- errorMessageId: h.id,
108
- validationBehavior: s
102
+ o === "next" ? (c = h.nextNode(), c || (h.currentNode = b.currentTarget, c = h.firstChild())) : (c = h.previousNode(), c || (h.currentNode = b.currentTarget, c = h.lastChild())), c && (c.focus(), e.setSelectedValue(c.value));
103
+ }, p = G(d);
104
+ return C.set(e, {
105
+ name: p,
106
+ descriptionId: P.id,
107
+ errorMessageId: $.id,
108
+ validationBehavior: i
109
109
  }), {
110
- radioGroupProps: P(y, {
110
+ radioGroupProps: y(V, {
111
111
  // https://www.w3.org/TR/wai-aria-1.2/#radiogroup
112
112
  role: "radiogroup",
113
113
  onKeyDown: g,
114
- "aria-invalid": a.isInvalid || void 0,
115
- "aria-errormessage": e["aria-errormessage"],
116
- "aria-readonly": d || void 0,
117
- "aria-required": r || void 0,
118
- "aria-disabled": f || void 0,
119
- "aria-orientation": i,
114
+ "aria-invalid": e.isInvalid || void 0,
115
+ "aria-errormessage": a["aria-errormessage"],
116
+ "aria-readonly": r || void 0,
117
+ "aria-required": s || void 0,
118
+ "aria-disabled": l || void 0,
119
+ "aria-orientation": n,
120
120
  ...x,
121
121
  ...R
122
122
  }),
123
- labelProps: p,
124
- descriptionProps: $,
125
- errorMessageProps: h,
126
- isInvalid: o,
127
- validationErrors: n,
123
+ labelProps: m,
124
+ descriptionProps: P,
125
+ errorMessageProps: $,
126
+ isInvalid: f,
127
+ validationErrors: t,
128
128
  validationDetails: v
129
129
  };
130
130
  }
131
131
  let ue = Math.round(Math.random() * 1e10), be = 0;
132
- function $e(e) {
133
- let a = ie(() => e.name || `radio-group-${ue}-${++be}`, [
134
- e.name
132
+ function $e(a) {
133
+ let e = ie(() => a.name || `radio-group-${ue}-${++be}`, [
134
+ a.name
135
135
  ]);
136
- var l;
137
- let [d, r] = re(e.value, (l = e.defaultValue) !== null && l !== void 0 ? l : null, e.onChange), [f, i] = de(null), s = Q({
138
- ...e,
139
- value: d
140
- }), u = (n) => {
141
- !e.isReadOnly && !e.isDisabled && (r(n), s.commitValidation());
142
- }, o = s.displayValidation.isInvalid;
136
+ var d;
137
+ let [r, s] = re(a.value, (d = a.defaultValue) !== null && d !== void 0 ? d : null, a.onChange), [l, n] = de(null), i = Q({
138
+ ...a,
139
+ value: r
140
+ }), u = (t) => {
141
+ !a.isReadOnly && !a.isDisabled && (s(t), i.commitValidation());
142
+ }, f = i.displayValidation.isInvalid;
143
143
  return {
144
- ...s,
145
- name: a,
146
- selectedValue: d,
144
+ ...i,
145
+ name: e,
146
+ selectedValue: r,
147
147
  setSelectedValue: u,
148
- lastFocusedValue: f,
149
- setLastFocusedValue: i,
150
- isDisabled: e.isDisabled || !1,
151
- isReadOnly: e.isReadOnly || !1,
152
- isRequired: e.isRequired || !1,
153
- validationState: e.validationState || (o ? "invalid" : null),
154
- isInvalid: o
148
+ lastFocusedValue: l,
149
+ setLastFocusedValue: n,
150
+ isDisabled: a.isDisabled || !1,
151
+ isReadOnly: a.isReadOnly || !1,
152
+ isRequired: a.isRequired || !1,
153
+ validationState: a.validationState || (f ? "invalid" : null),
154
+ isInvalid: f
155
155
  };
156
156
  }
157
- const ve = /* @__PURE__ */ F(null), pe = /* @__PURE__ */ F(null), O = /* @__PURE__ */ F(null);
158
- function me(e, a) {
159
- [e, a] = _(e, a, ve);
160
- let { validationBehavior: l } = N(X) || {};
161
- var d, r;
162
- let f = (r = (d = e.validationBehavior) !== null && d !== void 0 ? d : l) !== null && r !== void 0 ? r : "native", i = $e({
157
+ const pe = /* @__PURE__ */ q(null), ve = /* @__PURE__ */ q(null), O = /* @__PURE__ */ q(null), me = /* @__PURE__ */ S(function(e, d) {
158
+ [e, d] = _(e, d, pe);
159
+ let { validationBehavior: r } = N(X) || {};
160
+ var s, l;
161
+ let n = (l = (s = e.validationBehavior) !== null && s !== void 0 ? s : r) !== null && l !== void 0 ? l : "native", i = $e({
163
162
  ...e,
164
- validationBehavior: f
165
- }), [s, u] = T(), { radioGroupProps: o, labelProps: n, descriptionProps: v, errorMessageProps: p, ...x } = fe({
163
+ validationBehavior: n
164
+ }), [u, f] = T(), { radioGroupProps: t, labelProps: v, descriptionProps: m, errorMessageProps: x, ...P } = fe({
166
165
  ...e,
167
- label: u,
168
- validationBehavior: f
166
+ label: f,
167
+ validationBehavior: n
169
168
  }, i), $ = M({
170
169
  ...e,
171
170
  values: {
@@ -178,17 +177,17 @@ function me(e, a) {
178
177
  },
179
178
  defaultClassName: "react-aria-RadioGroup"
180
179
  });
181
- return /* @__PURE__ */ D.createElement("div", {
182
- ...o,
180
+ return /* @__PURE__ */ I.createElement("div", {
181
+ ...t,
183
182
  ...$,
184
- ref: a,
183
+ ref: d,
185
184
  slot: e.slot || void 0,
186
185
  "data-orientation": e.orientation || "vertical",
187
186
  "data-invalid": i.isInvalid || void 0,
188
187
  "data-disabled": i.isDisabled || void 0,
189
188
  "data-readonly": i.isReadOnly || void 0,
190
189
  "data-required": i.isRequired || void 0
191
- }, /* @__PURE__ */ D.createElement(W, {
190
+ }, /* @__PURE__ */ I.createElement(W, {
192
191
  values: [
193
192
  [
194
193
  O,
@@ -197,8 +196,8 @@ function me(e, a) {
197
196
  [
198
197
  ee,
199
198
  {
200
- ...n,
201
- ref: s,
199
+ ...v,
200
+ ref: u,
202
201
  elementType: "span"
203
202
  }
204
203
  ],
@@ -206,112 +205,110 @@ function me(e, a) {
206
205
  ae,
207
206
  {
208
207
  slots: {
209
- description: v,
210
- errorMessage: p
208
+ description: m,
209
+ errorMessage: x
211
210
  }
212
211
  }
213
212
  ],
214
213
  [
215
214
  Y,
216
- x
215
+ P
217
216
  ]
218
217
  ]
219
218
  }, $.children));
220
- }
221
- function xe(e, a) {
222
- let { inputRef: l = null, ...d } = e;
223
- [e, a] = _(d, a, pe);
224
- let r = D.useContext(O), f = A(H(l, e.inputRef !== void 0 ? e.inputRef : null)), { labelProps: i, inputProps: s, isSelected: u, isDisabled: o, isPressed: n } = ce({
219
+ }), xe = /* @__PURE__ */ S(function(e, d) {
220
+ let { inputRef: r = null, ...s } = e;
221
+ [e, d] = _(s, d, ve);
222
+ let l = I.useContext(O), n = A(H(r, e.inputRef !== void 0 ? e.inputRef : null)), { labelProps: i, inputProps: u, isSelected: f, isDisabled: t, isPressed: v } = ce({
225
223
  ...j(e),
226
224
  // ReactNode type doesn't allow function children.
227
225
  children: typeof e.children == "function" ? !0 : e.children
228
- }, r, f), { isFocused: v, isFocusVisible: p, focusProps: x } = K(), $ = o || r.isReadOnly, { hoverProps: h, isHovered: y } = U({
226
+ }, l, n), { isFocused: m, isFocusVisible: x, focusProps: P } = K(), $ = t || l.isReadOnly, { hoverProps: V, isHovered: R } = z({
229
227
  ...e,
230
228
  isDisabled: $
231
- }), R = M({
229
+ }), g = M({
232
230
  ...e,
233
231
  defaultClassName: "react-aria-Radio",
234
232
  values: {
235
- isSelected: u,
236
- isPressed: n,
237
- isHovered: y,
238
- isFocused: v,
239
- isFocusVisible: p,
240
- isDisabled: o,
241
- isReadOnly: r.isReadOnly,
242
- isInvalid: r.isInvalid,
243
- isRequired: r.isRequired
233
+ isSelected: f,
234
+ isPressed: v,
235
+ isHovered: R,
236
+ isFocused: m,
237
+ isFocusVisible: x,
238
+ isDisabled: t,
239
+ isReadOnly: l.isReadOnly,
240
+ isInvalid: l.isInvalid,
241
+ isRequired: l.isRequired
244
242
  }
245
- }), g = w(e);
246
- return delete g.id, /* @__PURE__ */ D.createElement("label", {
247
- ...P(g, i, h, R),
248
- ref: a,
249
- "data-selected": u || void 0,
250
- "data-pressed": n || void 0,
251
- "data-hovered": y || void 0,
252
- "data-focused": v || void 0,
253
- "data-focus-visible": p || void 0,
254
- "data-disabled": o || void 0,
255
- "data-readonly": r.isReadOnly || void 0,
256
- "data-invalid": r.isInvalid || void 0,
257
- "data-required": r.isRequired || void 0
258
- }, /* @__PURE__ */ D.createElement(oe, {
243
+ }), p = F(e);
244
+ return delete p.id, /* @__PURE__ */ I.createElement("label", {
245
+ ...y(p, i, V, g),
246
+ ref: d,
247
+ "data-selected": f || void 0,
248
+ "data-pressed": v || void 0,
249
+ "data-hovered": R || void 0,
250
+ "data-focused": m || void 0,
251
+ "data-focus-visible": x || void 0,
252
+ "data-disabled": t || void 0,
253
+ "data-readonly": l.isReadOnly || void 0,
254
+ "data-invalid": l.isInvalid || void 0,
255
+ "data-required": l.isRequired || void 0
256
+ }, /* @__PURE__ */ I.createElement(te, {
259
257
  elementType: "span"
260
- }, /* @__PURE__ */ D.createElement("input", {
261
- ...P(s, x),
262
- ref: f
263
- })), R.children);
264
- }
265
- const Pe = /* @__PURE__ */ S(me), he = /* @__PURE__ */ S(xe), ye = '"../theme/tokens.css"', Re = '"Inter", sans-serif', ge = "undefined", Ve = "#1f1f1f", De = "#000000", Ie = "#143c50", Be = "#bfbfbf", ke = "#b3b3b3", we = "#ffdfdf", Fe = "#e62323", qe = "undefined", _e = "#1f1f1f", Me = "undefined", Se = "(max-width: 767px)", Ce = "0 0 0 2px #ffffff, 0 0 0 4px #000000", Oe = "(min-width: 768px)", Le = "#b3b3b3", Ee = "_radioGroup_1vn0q_4", Ge = "_wrap_1vn0q_17", Ne = "_radio_1vn0q_4", k = {
266
- tokens: ye,
267
- display: Re,
268
- inputLabel: ge,
269
- inputText: Ve,
270
- black: De,
258
+ }, /* @__PURE__ */ I.createElement("input", {
259
+ ...y(u, P),
260
+ ref: n
261
+ })), g.children);
262
+ }), Pe = '"../theme/tokens.css"', he = '"Inter", sans-serif', ye = "undefined", Re = "#1f1f1f", ge = "#000000", Ie = "#143c50", Ve = "#bfbfbf", De = "#b3b3b3", Be = "#ffdfdf", ke = "#e62323", Fe = "undefined", qe = "#1f1f1f", we = "undefined", _e = "(max-width: 767px)", Me = "0 0 0 2px #ffffff, 0 0 0 4px #000000", Se = "(min-width: 768px)", Ce = "#b3b3b3", Oe = "_radioGroup_1vn0q_4", Le = "_wrap_1vn0q_17", Ee = "_radio_1vn0q_4", k = {
263
+ tokens: Pe,
264
+ display: he,
265
+ inputLabel: ye,
266
+ inputText: Re,
267
+ black: ge,
271
268
  blue150: Ie,
272
- gray50: Be,
273
- gray60: ke,
274
- signalRed10: we,
275
- signalRed100: Fe,
276
- medium: qe,
277
- gray150: _e,
278
- regular: Me,
279
- smBreakpoint: Se,
280
- focus: Ce,
281
- mdBreakpoint: Oe,
282
- borderSecondary: Le,
283
- radioGroup: Ee,
284
- wrap: Ge,
285
- radio: Ne
286
- }, ea = ({
287
- label: e,
288
- description: a,
289
- errorMessage: l,
290
- children: d,
291
- ...r
292
- }) => /* @__PURE__ */ I(
293
- Pe,
269
+ gray50: Ve,
270
+ gray60: De,
271
+ signalRed10: Be,
272
+ signalRed100: ke,
273
+ medium: Fe,
274
+ gray150: qe,
275
+ regular: we,
276
+ smBreakpoint: _e,
277
+ focus: Me,
278
+ mdBreakpoint: Se,
279
+ borderSecondary: Ce,
280
+ radioGroup: Oe,
281
+ wrap: Le,
282
+ radio: Ee
283
+ }, Ye = ({
284
+ label: a,
285
+ description: e,
286
+ errorMessage: d,
287
+ children: r,
288
+ ...s
289
+ }) => /* @__PURE__ */ D(
290
+ me,
294
291
  {
295
- ...r,
292
+ ...s,
296
293
  className: k.radioGroup,
297
- children: /* @__PURE__ */ I(
298
- ne,
294
+ children: /* @__PURE__ */ D(
295
+ oe,
299
296
  {
300
- label: e,
301
- description: a,
302
- errorMessage: l,
303
- children: /* @__PURE__ */ I(L, { className: k.wrap, children: d })
297
+ label: a,
298
+ description: e,
299
+ errorMessage: d,
300
+ children: /* @__PURE__ */ D(L, { className: k.wrap, children: r })
304
301
  }
305
302
  )
306
303
  }
307
- ), aa = (e) => /* @__PURE__ */ I(
308
- he,
304
+ ), Ze = (a) => /* @__PURE__ */ D(
305
+ xe,
309
306
  {
310
307
  className: k.radio,
311
- ...e
308
+ ...a
312
309
  }
313
310
  );
314
311
  export {
315
- aa as Radio,
316
- ea as RadioGroup
312
+ Ze as Radio,
313
+ Ye as RadioGroup
317
314
  };