@koide-labs/ui 0.1.3 → 0.1.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.
Files changed (109) hide show
  1. package/README.md +1 -4
  2. package/dist/{InternalBackdrop-BSMKU-hc.js → InternalBackdrop-DDLgWc7D.js} +1 -1
  3. package/dist/accordion.css +1 -1
  4. package/dist/alert-dialog.css +1 -1
  5. package/dist/anchor.css +1 -1
  6. package/dist/avatar.css +1 -1
  7. package/dist/badge.css +1 -1
  8. package/dist/button.css +1 -1
  9. package/dist/checkbox.css +1 -1
  10. package/dist/code.css +1 -1
  11. package/dist/collapse.css +1 -1
  12. package/dist/command.css +1 -1
  13. package/dist/components/accordion/accordion.js +88 -88
  14. package/dist/components/alert-dialog/alert-dialog.js +7 -7
  15. package/dist/components/anchor/anchor.js +6 -6
  16. package/dist/components/avatar/avatar.js +22 -22
  17. package/dist/components/badge/badge.js +17 -17
  18. package/dist/components/button/button.js +7 -7
  19. package/dist/components/checkbox/checkbox.js +15 -15
  20. package/dist/components/code/code.js +49 -49
  21. package/dist/components/collapse/collapse.js +3 -3
  22. package/dist/components/command/command.js +121 -121
  23. package/dist/components/context-menu/context-menu.js +13 -13
  24. package/dist/components/dialog/dialog.js +2 -2
  25. package/dist/components/heading/heading.js +5 -5
  26. package/dist/components/icon/icon.js +10 -10
  27. package/dist/components/icon-button/icon-button.js +15 -15
  28. package/dist/components/inline-code/inline-code.js +7 -7
  29. package/dist/components/input/input.js +1 -1
  30. package/dist/components/meter/meter.js +32 -32
  31. package/dist/components/multiline-input/multiline-input.js +1 -1
  32. package/dist/components/number-input/number-input.js +60 -60
  33. package/dist/components/password-input/password-input.js +6 -6
  34. package/dist/components/pill/pill.js +10 -10
  35. package/dist/components/popover/popover.js +22 -22
  36. package/dist/components/preview-card/preview-card.js +5 -5
  37. package/dist/components/radio-group/radio-group.js +99 -99
  38. package/dist/components/search-bar/search-bar.js +10 -10
  39. package/dist/components/select/select.js +76 -76
  40. package/dist/components/separator/index.js +1 -1
  41. package/dist/components/separator/separator.js +1 -1
  42. package/dist/components/slider/slider.js +146 -146
  43. package/dist/components/spinner/spinner.js +6 -6
  44. package/dist/components/stacked-avatars/stacked-avatars.js +25 -25
  45. package/dist/components/status-banner/status-banner.js +20 -20
  46. package/dist/components/surface/surface.js +19 -19
  47. package/dist/components/switch/switch.js +2 -2
  48. package/dist/components/tabs/tabs.js +34 -34
  49. package/dist/components/text/text.js +22 -22
  50. package/dist/components/timestamp/timestamp.js +73 -73
  51. package/dist/components/toaster/toaster.js +58 -58
  52. package/dist/components/tooltip/index.js +1 -1
  53. package/dist/components/tooltip/tooltip.js +2 -2
  54. package/dist/components/view/view.js +44 -44
  55. package/dist/context-menu.css +1 -1
  56. package/dist/dialog.css +1 -1
  57. package/dist/{dialog.module-1PAL873u.js → dialog.module-CRiRBcbM.js} +37 -37
  58. package/dist/{getDisabledMountTransitionStyles-E2x-_lte.js → getDisabledMountTransitionStyles-CyEI2117.js} +1 -1
  59. package/dist/heading.css +1 -1
  60. package/dist/icon-button.css +1 -1
  61. package/dist/icon.css +1 -1
  62. package/dist/index.css +1 -1
  63. package/dist/index.js +2 -2
  64. package/dist/index2.css +1 -1
  65. package/dist/inline-code.css +1 -1
  66. package/dist/input.css +1 -1
  67. package/dist/input.module-CYcyDtrO.js +8 -0
  68. package/dist/integrations/react-markdown/index.js +26 -26
  69. package/dist/integrations/twemoji/index.js +1 -1
  70. package/dist/meter.css +1 -1
  71. package/dist/number-input.css +1 -1
  72. package/dist/password-input.css +1 -1
  73. package/dist/pill.css +1 -1
  74. package/dist/popover.css +1 -1
  75. package/dist/preview-card.css +1 -1
  76. package/dist/radio-group.css +1 -1
  77. package/dist/{safePolygon-DnkzOIur.js → safePolygon-lAEp2rci.js} +1 -1
  78. package/dist/search-bar.css +1 -1
  79. package/dist/select.css +1 -1
  80. package/dist/{separator-DgY7BjjO.js → separator-Or-BDQYZ.js} +14 -14
  81. package/dist/separator.css +1 -1
  82. package/dist/slider.css +1 -1
  83. package/dist/spinner.css +1 -1
  84. package/dist/stacked-avatars.css +1 -1
  85. package/dist/status-banner.css +1 -1
  86. package/dist/styles/core.css +1 -1
  87. package/dist/surface.css +1 -1
  88. package/dist/switch.css +1 -1
  89. package/dist/tabs.css +1 -1
  90. package/dist/text.css +1 -1
  91. package/dist/timestamp.css +1 -1
  92. package/dist/toaster.css +1 -1
  93. package/dist/{tooltip-BJQPwudf.js → tooltip-JPnUwFFR.js} +6 -6
  94. package/dist/tooltip.css +1 -1
  95. package/dist/transitions.css +1 -1
  96. package/dist/{transitions.module-D9mMAtfI.js → transitions.module-SSNmQfsR.js} +43 -43
  97. package/dist/{useRole-BD3OL1rr.js → useRole-D1k7CnHQ.js} +1 -1
  98. package/dist/{useSyncedFloatingRootContext-BB1vwkV-.js → useSyncedFloatingRootContext-CaohymZI.js} +1 -1
  99. package/dist/{useTypeahead-BiL5IAVb.js → useTypeahead-CSZtonjF.js} +2 -2
  100. package/dist/view.css +1 -1
  101. package/dist/view.module-j3ylJCCE.js +6 -0
  102. package/dist/view2.css +1 -1
  103. package/package.json +17 -19
  104. package/dist/components/dialog/dialog.types.js +0 -1
  105. package/dist/components/icon/icon.types.js +0 -1
  106. package/dist/components/surface/surface.types.js +0 -1
  107. package/dist/components/view/view.types.js +0 -1
  108. package/dist/input.module-CtE19OH8.js +0 -8
  109. package/dist/view.module-CjopAf_0.js +0 -6
@@ -4,23 +4,23 @@ import * as o from "react";
4
4
  import { createContext as Ee, useContext as Ne } from "react";
5
5
  import { u as Ve } from "../../useControlled-Du4sJyMj.js";
6
6
  import { E as ce, b as de, u as re, N as F, d as fe, m as Pe } from "../../useRenderElement-DngNDu_P.js";
7
- import { u as w } from "../../useStableCallback-DKZHlUAT.js";
7
+ import { u as G } from "../../useStableCallback-DKZHlUAT.js";
8
8
  import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
9
9
  import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
10
10
  import { S as Ie } from "../../composite-BwEK5cWH.js";
11
11
  import { u as ke, A as Oe, C as Me } from "../../CompositeRoot-CCgh2M64.js";
12
12
  import { f as Ce, a as he, u as Re, c as Fe, b as Te } from "../../LabelableContext-Be1u-eFg.js";
13
13
  import { f as ye } from "../../formatErrorMessage-BqPuTBN-.js";
14
- import { u as Ge } from "../../useValueChanged-MJRmEWz1.js";
15
- import { f as Se } from "../../element-u5WgOZX1.js";
16
- import { View as we } from "../view/view.js";
17
- import { Text as qe } from "../text/text.js";
14
+ import { u as we } from "../../useValueChanged-MJRmEWz1.js";
15
+ import { f as qe } from "../../element-u5WgOZX1.js";
16
+ import { View as Ge } from "../view/view.js";
17
+ import { Text as Se } from "../text/text.js";
18
18
  import { t as De, u as Be } from "../../useOpenChangeComplete-BHd-N7Ig.js";
19
- import { u as Ke } from "../../useTransitionStatus-CmMyUh74.js";
20
- import { u as Le } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
21
- import { c as Ue, n as Ye } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
22
- import { u as je } from "../../FieldItemContext-DAvk99to.js";
23
- import { u as ze } from "../../useLabelableId-CX4tcfzK.js";
19
+ import { u as ze } from "../../useTransitionStatus-CmMyUh74.js";
20
+ import { u as Ke } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
21
+ import { c as Le, n as Ue } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
22
+ import { u as Ye } from "../../FieldItemContext-DAvk99to.js";
23
+ import { u as je } from "../../useLabelableId-CX4tcfzK.js";
24
24
  import { u as He } from "../../useButton-d3_JgBNr.js";
25
25
  import '../../radio-group.css';function Je(e) {
26
26
  const {
@@ -34,27 +34,27 @@ import '../../radio-group.css';function Je(e) {
34
34
  tag: s = "div",
35
35
  ...y
36
36
  } = e, {
37
- compositeProps: b,
38
- compositeRef: _
37
+ compositeProps: g,
38
+ compositeRef: x
39
39
  } = ke({
40
40
  metadata: r
41
41
  });
42
42
  return re(s, e, {
43
43
  state: h,
44
- ref: [...m, _],
45
- props: [b, ...R, y],
44
+ ref: [...m, x],
45
+ props: [g, ...R, y],
46
46
  stateAttributesMapping: a
47
47
  });
48
48
  }
49
- const ge = /* @__PURE__ */ o.createContext({
49
+ const be = /* @__PURE__ */ o.createContext({
50
50
  legendId: void 0,
51
51
  setLegendId: () => {
52
52
  },
53
53
  disabled: void 0
54
54
  });
55
- process.env.NODE_ENV !== "production" && (ge.displayName = "FieldsetRootContext");
55
+ process.env.NODE_ENV !== "production" && (be.displayName = "FieldsetRootContext");
56
56
  function We(e = !1) {
57
- const n = o.useContext(ge);
57
+ const n = o.useContext(be);
58
58
  if (!n && !e)
59
59
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ye(86));
60
60
  return n;
@@ -96,7 +96,7 @@ function Ae() {
96
96
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ye(52));
97
97
  return e;
98
98
  }
99
- const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
99
+ const ge = /* @__PURE__ */ o.forwardRef(function(n, u) {
100
100
  const {
101
101
  render: h,
102
102
  className: R,
@@ -105,15 +105,15 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
105
105
  required: a = !1,
106
106
  value: s,
107
107
  inputRef: y,
108
- nativeButton: b = !1,
109
- id: _,
108
+ nativeButton: g = !1,
109
+ id: x,
110
110
  ...E
111
111
  } = n, {
112
112
  disabled: N,
113
113
  readOnly: V,
114
- required: q,
114
+ required: S,
115
115
  checkedValue: T,
116
- setCheckedValue: G,
116
+ setCheckedValue: w,
117
117
  touched: H,
118
118
  setTouched: J,
119
119
  validation: W,
@@ -123,28 +123,28 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
123
123
  validityData: D,
124
124
  setTouched: B,
125
125
  setFilled: I,
126
- state: K,
126
+ state: z,
127
127
  disabled: $
128
- } = he(), A = je(), {
129
- labelId: g,
130
- getDescriptionProps: v
131
- } = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(y, C);
132
- Le(() => {
128
+ } = he(), A = Ye(), {
129
+ labelId: b,
130
+ getDescriptionProps: _
131
+ } = Re(), i = $ || A.disabled || N || m, t = V || r, v = S || a, c = T === s, k = o.useRef(null), C = o.useRef(null), q = fe(y, C);
132
+ Ke(() => {
133
133
  C.current?.checked && I(!0);
134
134
  }, [I]);
135
- const L = me(), O = ze({
136
- id: _,
135
+ const K = me(), O = je({
136
+ id: x,
137
137
  implicit: !1,
138
138
  controlRef: k
139
139
  }), Q = {
140
140
  role: "radio",
141
141
  "aria-checked": c,
142
- "aria-required": x || void 0,
142
+ "aria-required": v || void 0,
143
143
  "aria-disabled": i || void 0,
144
144
  "aria-readonly": t || void 0,
145
- "aria-labelledby": g,
145
+ "aria-labelledby": b,
146
146
  [Oe]: c ? "" : void 0,
147
- id: L,
147
+ id: K,
148
148
  disabled: i,
149
149
  onKeyDown(f) {
150
150
  f.key === "Enter" && f.preventDefault();
@@ -157,60 +157,60 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
157
157
  }
158
158
  }, {
159
159
  getButtonProps: X,
160
- buttonRef: U
160
+ buttonRef: L
161
161
  } = He({
162
162
  disabled: i,
163
- native: b
163
+ native: g
164
164
  }), Z = o.useMemo(() => ({
165
165
  type: "radio",
166
- ref: S,
166
+ ref: q,
167
167
  id: O,
168
168
  tabIndex: -1,
169
169
  style: pe,
170
170
  "aria-hidden": !0,
171
171
  disabled: i,
172
172
  checked: c,
173
- required: x,
173
+ required: v,
174
174
  readOnly: t,
175
175
  onChange(f) {
176
176
  if (f.nativeEvent.defaultPrevented || i || t || s === void 0)
177
177
  return;
178
- const ie = Ue(Ye, f.nativeEvent);
179
- ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), G(s, ie));
178
+ const ie = Le(Ue, f.nativeEvent);
179
+ ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), w(s, ie));
180
180
  },
181
181
  onFocus() {
182
182
  k.current?.focus();
183
183
  }
184
- }), [c, i, O, S, t, x, G, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
185
- ...K,
186
- required: x,
184
+ }), [c, i, O, q, t, v, w, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
185
+ ...z,
186
+ required: v,
187
187
  disabled: i,
188
188
  readOnly: t,
189
189
  checked: c
190
- }), [K, i, t, c, x]), ee = o.useMemo(() => M, [M]), Y = G !== F, j = [u, P, k, U], d = [Q, v, W?.getValidationProps ?? ce, E, X], z = re("span", n, {
191
- enabled: !Y,
190
+ }), [z, i, t, c, v]), ee = o.useMemo(() => M, [M]), U = w !== F, Y = [u, P, k, L], d = [Q, _, W?.getValidationProps ?? ce, E, X], j = re("span", n, {
191
+ enabled: !U,
192
192
  state: M,
193
- ref: j,
193
+ ref: Y,
194
194
  props: d,
195
195
  stateAttributesMapping: oe
196
196
  });
197
197
  return /* @__PURE__ */ ne(se.Provider, {
198
198
  value: ee,
199
- children: [Y ? /* @__PURE__ */ p(Je, {
199
+ children: [U ? /* @__PURE__ */ p(Je, {
200
200
  tag: "span",
201
201
  render: h,
202
202
  className: R,
203
203
  state: M,
204
- refs: j,
204
+ refs: Y,
205
205
  props: d,
206
206
  stateAttributesMapping: oe
207
- }) : z, /* @__PURE__ */ p("input", {
207
+ }) : j, /* @__PURE__ */ p("input", {
208
208
  ...Z
209
209
  })]
210
210
  });
211
211
  });
212
- process.env.NODE_ENV !== "production" && (be.displayName = "RadioRoot");
213
- const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
212
+ process.env.NODE_ENV !== "production" && (ge.displayName = "RadioRoot");
213
+ const xe = /* @__PURE__ */ o.forwardRef(function(n, u) {
214
214
  const {
215
215
  render: h,
216
216
  className: R,
@@ -218,14 +218,14 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
218
218
  ...r
219
219
  } = n, a = Ae(), s = a.checked, {
220
220
  transitionStatus: y,
221
- setMounted: b
222
- } = Ke(s), _ = o.useMemo(() => ({
221
+ setMounted: g
222
+ } = ze(s), x = o.useMemo(() => ({
223
223
  ...a,
224
224
  transitionStatus: y
225
225
  }), [a, y]), E = o.useRef(null), N = m || s, V = re("span", n, {
226
226
  enabled: N,
227
227
  ref: [u, E],
228
- state: _,
228
+ state: x,
229
229
  props: r,
230
230
  stateAttributesMapping: oe
231
231
  });
@@ -233,12 +233,12 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
233
233
  open: s,
234
234
  ref: E,
235
235
  onComplete() {
236
- s || b(!1);
236
+ s || g(!1);
237
237
  }
238
238
  }), N ? V : null;
239
239
  });
240
- process.env.NODE_ENV !== "production" && (_e.displayName = "RadioIndicator");
241
- const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
240
+ process.env.NODE_ENV !== "production" && (xe.displayName = "RadioIndicator");
241
+ const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
242
242
  const {
243
243
  render: h,
244
244
  className: R,
@@ -247,15 +247,15 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
247
247
  required: a,
248
248
  onValueChange: s,
249
249
  value: y,
250
- defaultValue: b,
251
- name: _,
250
+ defaultValue: g,
251
+ name: x,
252
252
  inputRef: E,
253
253
  id: N,
254
254
  ...V
255
255
  } = n, {
256
- setTouched: q,
256
+ setTouched: S,
257
257
  setFocused: T,
258
- shouldValidateOnChange: G,
258
+ shouldValidateOnChange: w,
259
259
  validationMode: H,
260
260
  name: J,
261
261
  disabled: W,
@@ -265,17 +265,17 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
265
265
  setFilled: B,
266
266
  validityData: I
267
267
  } = he(), {
268
- labelId: K
268
+ labelId: z
269
269
  } = Re(), {
270
270
  clearErrors: $
271
- } = Fe(), A = We(!0), g = W || m, v = J ?? _, i = me(N), [t, x] = Ve({
271
+ } = Fe(), A = We(!0), b = W || m, _ = J ?? x, i = me(N), [t, v] = Ve({
272
272
  controlled: y,
273
- default: b,
273
+ default: g,
274
274
  name: "RadioGroup",
275
275
  state: "value"
276
- }), c = w(s), k = w((d, z) => {
277
- c(d, z), !z.isCanceled && x(d);
278
- }), C = o.useRef(null), S = w((d) => {
276
+ }), c = G(s), k = G((d, j) => {
277
+ c(d, j), !j.isCanceled && v(d);
278
+ }), C = o.useRef(null), q = G((d) => {
279
279
  C.current == null && d != null && (C.current = d);
280
280
  });
281
281
  Te({
@@ -283,21 +283,21 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
283
283
  commit: l.commit,
284
284
  value: t,
285
285
  controlRef: C,
286
- name: v,
286
+ name: _,
287
287
  getValue: () => t ?? null
288
- }), Ge(t, () => {
289
- $(v), D(t !== I.initialValue), B(t != null), G() ? l.commit(t) : l.commit(t, !0);
288
+ }), we(t, () => {
289
+ $(_), D(t !== I.initialValue), B(t != null), w() ? l.commit(t) : l.commit(t, !0);
290
290
  });
291
- const [L, O] = o.useState(!1), Q = w((d) => {
292
- Se(d.currentTarget, d.relatedTarget) || (q(!0), T(!1), H === "onBlur" && l.commit(t));
293
- }), X = w((d) => {
294
- d.key.startsWith("Arrow") && (q(!0), O(!0), T(!0));
295
- }), U = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = Pe({
296
- value: U,
291
+ const [K, O] = o.useState(!1), Q = G((d) => {
292
+ qe(d.currentTarget, d.relatedTarget) || (S(!0), T(!1), H === "onBlur" && l.commit(t));
293
+ }), X = G((d) => {
294
+ d.key.startsWith("Arrow") && (S(!0), O(!0), T(!0));
295
+ }), L = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = Pe({
296
+ value: L,
297
297
  ref: Z,
298
298
  id: i,
299
- name: U ? v : void 0,
300
- disabled: g,
299
+ name: L ? _ : void 0,
300
+ disabled: b,
301
301
  readOnly: r,
302
302
  required: a,
303
303
  "aria-labelledby": V["aria-labelledby"] ?? A?.legendId,
@@ -311,28 +311,28 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
311
311
  }
312
312
  }, l.getInputValidationProps), ee = o.useMemo(() => ({
313
313
  ...P,
314
- disabled: g ?? !1,
314
+ disabled: b ?? !1,
315
315
  required: a ?? !1,
316
316
  readOnly: r ?? !1
317
- }), [P, g, r, a]), Y = o.useMemo(() => ({
317
+ }), [P, b, r, a]), U = o.useMemo(() => ({
318
318
  ...P,
319
319
  checkedValue: t,
320
- disabled: g,
320
+ disabled: b,
321
321
  validation: l,
322
- name: v,
322
+ name: _,
323
323
  onValueChange: c,
324
324
  readOnly: r,
325
- registerControlRef: S,
325
+ registerControlRef: q,
326
326
  required: a,
327
327
  setCheckedValue: k,
328
328
  setTouched: O,
329
- touched: L
330
- }), [t, g, l, P, v, c, r, S, a, k, O, L]), j = {
329
+ touched: K
330
+ }), [t, b, l, P, _, c, r, q, a, k, O, K]), Y = {
331
331
  role: "radiogroup",
332
332
  "aria-required": a || void 0,
333
- "aria-disabled": g || void 0,
333
+ "aria-disabled": b || void 0,
334
334
  "aria-readonly": r || void 0,
335
- "aria-labelledby": K,
335
+ "aria-labelledby": z,
336
336
  onFocus() {
337
337
  T(!0);
338
338
  },
@@ -340,12 +340,12 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
340
340
  onKeyDownCapture: X
341
341
  };
342
342
  return /* @__PURE__ */ ne(ae.Provider, {
343
- value: Y,
343
+ value: U,
344
344
  children: [/* @__PURE__ */ p(Me, {
345
345
  render: h,
346
346
  className: R,
347
347
  state: ee,
348
- props: [j, l.getValidationProps, V],
348
+ props: [Y, l.getValidationProps, V],
349
349
  refs: [u],
350
350
  stateAttributesMapping: Ce,
351
351
  enableHomeAndEndKeys: !1,
@@ -355,21 +355,21 @@ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
355
355
  })]
356
356
  });
357
357
  });
358
- process.env.NODE_ENV !== "production" && (ve.displayName = "RadioGroup");
358
+ process.env.NODE_ENV !== "production" && (_e.displayName = "RadioGroup");
359
359
  const Xe = {
360
- "radio-group": "_radio-group_7ez6e_2"
361
- }, Ze = "_radio_1fs52_2", et = "_radio__indicator_1fs52_9", tt = "_radio__label_1fs52_32", te = {
360
+ "radio-group": "_radio-group_1e0b2_3"
361
+ }, Ze = "_radio_xweqz_3", et = "_radio__indicator_xweqz_10", tt = "_radio__label_xweqz_33", te = {
362
362
  radio: Ze,
363
363
  radio__indicator: et,
364
364
  radio__label: tt
365
- }, xe = Ee("primary");
365
+ }, ve = Ee("primary");
366
366
  function ot({
367
367
  color: e = "primary",
368
368
  className: n,
369
369
  ...u
370
370
  }) {
371
- return /* @__PURE__ */ p(xe.Provider, { value: e, children: /* @__PURE__ */ p(
372
- ve,
371
+ return /* @__PURE__ */ p(ve.Provider, { value: e, children: /* @__PURE__ */ p(
372
+ _e,
373
373
  {
374
374
  className: ue(Xe["radio-group"], n),
375
375
  ...u
@@ -382,20 +382,20 @@ function nt({
382
382
  className: u,
383
383
  ...h
384
384
  }) {
385
- const R = Ne(xe), m = e || R || "primary", r = /* @__PURE__ */ p(
386
- we,
385
+ const R = Ne(ve), m = e || R || "primary", r = /* @__PURE__ */ p(
386
+ Ge,
387
387
  {
388
- render: /* @__PURE__ */ p(be, { ...h }),
388
+ render: /* @__PURE__ */ p(ge, { ...h }),
389
389
  interactive: "fill-outline",
390
390
  color: m,
391
391
  className: ue(te.radio, u),
392
- children: /* @__PURE__ */ p(_e, { className: te.radio__indicator })
392
+ children: /* @__PURE__ */ p(xe, { className: te.radio__indicator })
393
393
  }
394
394
  );
395
395
  return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
396
396
  r,
397
397
  " ",
398
- /* @__PURE__ */ p(qe, { children: n })
398
+ /* @__PURE__ */ p(Se, { children: n })
399
399
  ] }) : r;
400
400
  }
401
401
  const Pt = Object.assign(ot, {
@@ -1,20 +1,20 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
2
  import { c as _ } from "../../clsx-OuTLNxxd.js";
3
3
  import "react";
4
4
  import { View as s } from "../view/view.js";
5
- import { Input as o } from "../input/input.js";
5
+ import { Input as l } from "../input/input.js";
6
6
  import { Icon as m } from "../icon/icon.js";
7
7
  import { Spinner as t } from "../spinner/spinner.js";
8
8
  import { IconButton as h } from "../icon-button/icon-button.js";
9
9
  import '../../search-bar.css';const a = {
10
- "search-bar": "_search-bar_r8lqs_2",
11
- "search-bar__input": "_search-bar__input_r8lqs_7",
12
- "search-bar__icon": "_search-bar__icon_r8lqs_15",
13
- "search-bar__icon_close": "_search-bar__icon_close_r8lqs_27"
10
+ "search-bar": "_search-bar_yrf20_3",
11
+ "search-bar__input": "_search-bar__input_yrf20_8",
12
+ "search-bar__icon": "_search-bar__icon_yrf20_16",
13
+ "search-bar__icon_close": "_search-bar__icon_close_yrf20_28"
14
14
  };
15
- function I({ loading: e, onClear: l, className: i, ...c }) {
16
- return /* @__PURE__ */ n(s, { className: _(a["search-bar"], i), children: [
17
- /* @__PURE__ */ r(o, { className: a["search-bar__input"], ...c }),
15
+ function I({ loading: e, onClear: i, className: n, ...c }) {
16
+ return /* @__PURE__ */ o(s, { className: _(a["search-bar"], n), children: [
17
+ /* @__PURE__ */ r(l, { className: a["search-bar__input"], ...c }),
18
18
  !e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(m, { name: "search-line" }) }) : null,
19
19
  e ? /* @__PURE__ */ r(t, { className: a["search-bar__icon"] }) : null,
20
20
  !e && c.value ? /* @__PURE__ */ r(
@@ -31,7 +31,7 @@ function I({ loading: e, onClear: l, className: i, ...c }) {
31
31
  alt: "Clear",
32
32
  size: "sm",
33
33
  disabled: c.disabled,
34
- onClick: l
34
+ onClick: i
35
35
  }
36
36
  )
37
37
  }