@koide-labs/ui 0.1.7 → 0.1.8

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 (40) hide show
  1. package/dist/components/accordion/accordion.js +4 -4
  2. package/dist/components/alert-dialog/alert-dialog.js +19 -19
  3. package/dist/components/badge/badge.js +6 -6
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/checkbox/checkbox.js +6 -6
  6. package/dist/components/code/code.js +4 -4
  7. package/dist/components/command/command.js +2 -2
  8. package/dist/components/context-menu/context-menu.js +25 -25
  9. package/dist/components/dialog/dialog.js +23 -23
  10. package/dist/components/icon/icon.d.ts +9 -3
  11. package/dist/components/icon/icon.js +39 -26
  12. package/dist/components/icon/icon.types.d.ts +1 -1
  13. package/dist/components/icon-button/icon-button.d.ts +5 -0
  14. package/dist/components/icon-button/icon-button.js +7 -6
  15. package/dist/components/input/input.js +19 -19
  16. package/dist/components/meter/meter.js +1 -1
  17. package/dist/components/multiline-input/multiline-input.js +1 -1
  18. package/dist/components/number-input/number-input.js +8 -8
  19. package/dist/components/password-input/password-input.js +4 -4
  20. package/dist/components/pill/pill.js +1 -1
  21. package/dist/components/popover/popover.js +21 -21
  22. package/dist/components/preview-card/preview-card.js +9 -9
  23. package/dist/components/radio-group/radio-group.js +20 -20
  24. package/dist/components/search-bar/search-bar.js +8 -8
  25. package/dist/components/select/select.js +14 -14
  26. package/dist/components/spinner/spinner.js +7 -7
  27. package/dist/components/stacked-avatars/stacked-avatars.js +2 -2
  28. package/dist/components/status-banner/status-banner.js +5 -5
  29. package/dist/components/tabs/tabs.js +1 -1
  30. package/dist/components/theme-provider/theme-provider.js +3 -3
  31. package/dist/components/timestamp/timestamp.js +1 -1
  32. package/dist/components/toaster/toaster.js +13 -13
  33. package/dist/components/tooltip/index.js +1 -1
  34. package/dist/components/tooltip/tooltip.js +2 -2
  35. package/dist/icon.css +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/integrations/react-markdown/index.js +11 -11
  38. package/dist/spinner.css +1 -1
  39. package/dist/{tooltip-JPnUwFFR.js → tooltip-CpyPanwd.js} +9 -9
  40. package/package.json +19 -16
@@ -2,16 +2,16 @@ import { jsx as u, jsxs as S } from "react/jsx-runtime";
2
2
  import { c as U } from "../../clsx-OuTLNxxd.js";
3
3
  import * as c from "react";
4
4
  import { useId as A } from "react";
5
+ import { Text as K } from "../text/text.js";
6
+ import { View as $ } from "../view/view.js";
5
7
  import { s as I } from "../../input.module-CYcyDtrO.js";
6
- import { View as K } from "../view/view.js";
7
- import { u as $ } from "../../useStableCallback-DKZHlUAT.js";
8
- import { u as q } from "../../useControlled-Du4sJyMj.js";
9
- import { u as z } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
10
- import { a as R, u as G, b as H, f as J } from "../../LabelableContext-Be1u-eFg.js";
11
- import { u as Q } from "../../useLabelableId-CX4tcfzK.js";
12
- import { u as W } from "../../useRenderElement-DngNDu_P.js";
13
- import { c as X, n as Y } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
14
- import { Text as Z } from "../text/text.js";
8
+ import { u as q } from "../../useStableCallback-DKZHlUAT.js";
9
+ import { u as z } from "../../useControlled-Du4sJyMj.js";
10
+ import { u as G } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
11
+ import { a as R, u as H, b as J, f as Q } from "../../LabelableContext-Be1u-eFg.js";
12
+ import { u as W } from "../../useLabelableId-CX4tcfzK.js";
13
+ import { u as X } from "../../useRenderElement-DngNDu_P.js";
14
+ import { c as Y, n as Z } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
15
15
  const y = /* @__PURE__ */ c.forwardRef(function(a, o) {
16
16
  const {
17
17
  render: m,
@@ -40,29 +40,29 @@ const y = /* @__PURE__ */ c.forwardRef(function(a, o) {
40
40
  validation: t
41
41
  } = R(), {
42
42
  labelId: j
43
- } = G(), N = Q({
43
+ } = H(), N = W({
44
44
  id: l
45
45
  });
46
- z(() => {
46
+ G(() => {
47
47
  const e = n != null;
48
48
  t.inputRef.current?.value || e && n !== "" ? s(!0) : e && n === "" && s(!1);
49
49
  }, [t.inputRef, s, n]);
50
- const [V, k] = q({
50
+ const [V, k] = z({
51
51
  controlled: n,
52
52
  default: p,
53
53
  name: "FieldControl",
54
54
  state: "value"
55
- }), B = n !== void 0, O = $((e, r) => {
55
+ }), B = n !== void 0, O = q((e, r) => {
56
56
  x?.(e, r), !r.isCanceled && k(e);
57
57
  });
58
- return H({
58
+ return J({
59
59
  id: N,
60
60
  name: v,
61
61
  commit: t.commit,
62
62
  value: V,
63
63
  getValue: () => t.inputRef.current?.value,
64
64
  controlRef: t.inputRef
65
- }), W("input", a, {
65
+ }), X("input", a, {
66
66
  ref: o,
67
67
  state: w,
68
68
  props: [{
@@ -78,7 +78,7 @@ const y = /* @__PURE__ */ c.forwardRef(function(a, o) {
78
78
  },
79
79
  onChange(e) {
80
80
  const r = e.currentTarget.value;
81
- O(r, X(Y, e.nativeEvent)), M(r !== _.initialValue), s(r !== "");
81
+ O(r, Y(Z, e.nativeEvent)), M(r !== _.initialValue), s(r !== "");
82
82
  },
83
83
  onFocus() {
84
84
  g(!0);
@@ -90,7 +90,7 @@ const y = /* @__PURE__ */ c.forwardRef(function(a, o) {
90
90
  e.currentTarget.tagName === "INPUT" && e.key === "Enter" && (C(!0), t.commit(e.currentTarget.value));
91
91
  }
92
92
  }, t.getInputValidationProps(), T],
93
- stateAttributesMapping: J
93
+ stateAttributesMapping: Q
94
94
  });
95
95
  });
96
96
  process.env.NODE_ENV !== "production" && (y.displayName = "FieldControl");
@@ -103,7 +103,7 @@ const E = /* @__PURE__ */ c.forwardRef(function(a, o) {
103
103
  process.env.NODE_ENV !== "production" && (E.displayName = "Input");
104
104
  function pe({ label: i, className: a, ...o }) {
105
105
  const m = A(), f = o.id || m, l = /* @__PURE__ */ u(
106
- K,
106
+ $,
107
107
  {
108
108
  interactive: "fill-outline",
109
109
  render: /* @__PURE__ */ u(
@@ -117,7 +117,7 @@ function pe({ label: i, className: a, ...o }) {
117
117
  }
118
118
  );
119
119
  return i ? /* @__PURE__ */ S("label", { className: I.input__label, children: [
120
- /* @__PURE__ */ u(Z, { color: "dimmer", children: i }),
120
+ /* @__PURE__ */ u(K, { color: "dimmer", children: i }),
121
121
  l
122
122
  ] }) : l;
123
123
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as M, Fragment as g } from "react/jsx-runtime";
2
2
  import { c as C } from "../../clsx-OuTLNxxd.js";
3
- import { View as L } from "../view/view.js";
4
3
  import { Text as x } from "../text/text.js";
4
+ import { View as L } from "../view/view.js";
5
5
  import * as i from "react";
6
6
  import { f as T } from "../../formatErrorMessage-BqPuTBN-.js";
7
7
  import { f as E } from "../../formatNumber-1UNwjeqf.js";
@@ -2,8 +2,8 @@ import { jsx as T } from "react/jsx-runtime";
2
2
  import { c as R } from "../../clsx-OuTLNxxd.js";
3
3
  import { useRef as W, useEffect as Y } from "react";
4
4
  import { mergeRefs as B } from "../../-utils.js";
5
- import { s as b } from "../../input.module-CYcyDtrO.js";
6
5
  import { View as X } from "../view/view.js";
6
+ import { s as b } from "../../input.module-CYcyDtrO.js";
7
7
  var c = /* @__PURE__ */ new Map();
8
8
  function j(t) {
9
9
  var o = c.get(t);
@@ -2,11 +2,11 @@ import { jsxs as Ue, jsx as se } from "react/jsx-runtime";
2
2
  import { c as Ot } from "../../clsx-OuTLNxxd.js";
3
3
  import * as o from "react";
4
4
  import { useId as Ut } from "react";
5
- import { Text as kt } from "../text/text.js";
6
- import { Input as Wt } from "../input/input.js";
7
- import { View as Ht } from "../view/view.js";
8
5
  import { IconButton as tt } from "../icon-button/icon-button.js";
9
- import { S as Gt } from "../../separator-Or-BDQYZ.js";
6
+ import { Input as kt } from "../input/input.js";
7
+ import { S as Wt } from "../../separator-Or-BDQYZ.js";
8
+ import { Text as Ht } from "../text/text.js";
9
+ import { View as Gt } from "../view/view.js";
10
10
  import { u as Bt } from "../../useControlled-Du4sJyMj.js";
11
11
  import { u as de } from "../../useStableCallback-DKZHlUAT.js";
12
12
  import { T as $t, u as Ke } from "../../useTimeout-BNni6aw5.js";
@@ -1118,10 +1118,10 @@ function pr({
1118
1118
  id: f,
1119
1119
  className: Ne["number-input__root"],
1120
1120
  children: [
1121
- n ? /* @__PURE__ */ se(wt, { className: Ne["number-input__scrub-area"], children: /* @__PURE__ */ se("label", { htmlFor: f, children: /* @__PURE__ */ se(kt, { color: "dimmer", children: n }) }) }) : null,
1121
+ n ? /* @__PURE__ */ se(wt, { className: Ne["number-input__scrub-area"], children: /* @__PURE__ */ se("label", { htmlFor: f, children: /* @__PURE__ */ se(Ht, { color: "dimmer", children: n }) }) }) : null,
1122
1122
  /* @__PURE__ */ Ue(At, { className: Ne["number-input__group"], children: [
1123
1123
  /* @__PURE__ */ se(
1124
- Wt,
1124
+ kt,
1125
1125
  {
1126
1126
  render: /* @__PURE__ */ se(
1127
1127
  Dt,
@@ -1132,7 +1132,7 @@ function pr({
1132
1132
  )
1133
1133
  }
1134
1134
  ),
1135
- /* @__PURE__ */ Ue(Ht, { className: Ne["number-input__controls"], children: [
1135
+ /* @__PURE__ */ Ue(Gt, { className: Ne["number-input__controls"], children: [
1136
1136
  /* @__PURE__ */ se(
1137
1137
  tt,
1138
1138
  {
@@ -1143,7 +1143,7 @@ function pr({
1143
1143
  }
1144
1144
  ),
1145
1145
  /* @__PURE__ */ se(
1146
- Gt,
1146
+ Wt,
1147
1147
  {
1148
1148
  orientation: "vertical",
1149
1149
  className: Ne["number-input__separator"]
@@ -1,18 +1,18 @@
1
1
  import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
2
  import { useState as i } from "react";
3
- import { View as _ } from "../view/view.js";
3
+ import { IconButton as _ } from "../icon-button/icon-button.js";
4
4
  import { Input as a } from "../input/input.js";
5
- import { IconButton as u } from "../icon-button/icon-button.js";
5
+ import { View as u } from "../view/view.js";
6
6
  import '../../password-input.css';const t = {
7
7
  "password-input__root": "_password-input__root_1eu2u_3",
8
8
  "password-input__eye": "_password-input__eye_1eu2u_7"
9
9
  };
10
10
  function y(e) {
11
11
  const [o, r] = i(!1);
12
- return /* @__PURE__ */ n(_, { className: t["password-input__root"], children: [
12
+ return /* @__PURE__ */ n(u, { className: t["password-input__root"], children: [
13
13
  /* @__PURE__ */ s(a, { type: o ? "text" : "password", ...e }),
14
14
  /* @__PURE__ */ s(
15
- u,
15
+ _,
16
16
  {
17
17
  alt: o ? "Hide password" : "Show password",
18
18
  icon: o ? "eye-line" : "eye-close-line",
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { c as m } from "../../clsx-OuTLNxxd.js";
3
3
  import { textify as s } from "../../-utils.js";
4
- import { View as e } from "../view/view.js";
5
4
  import { Icon as p } from "../icon/icon.js";
5
+ import { View as e } from "../view/view.js";
6
6
  import '../../pill.css';const f = "_pill_17k7p_3", a = "_pill_icon_left_17k7p_18", x = "_pill_icon_right_17k7p_22", _ = {
7
7
  pill: f,
8
8
  pill_icon_left: a,
@@ -1,11 +1,11 @@
1
1
  import { jsx as u, jsxs as Y } from "react/jsx-runtime";
2
2
  import { c as Re } from "../../clsx-OuTLNxxd.js";
3
- import { u as be, t as ae, T as Se } from "../../tooltip-JPnUwFFR.js";
4
- import { R as ye, P as Oe, c as x, h as Ie, d as xe, e as de, u as Ne, i as Me, f as Fe, j as we, k as _e, p as ee, t as ke } from "../../transitions.module-SSNmQfsR.js";
5
- import { View as Ae } from "../view/view.js";
6
- import { Heading as De } from "../heading/heading.js";
7
- import { Text as He } from "../text/text.js";
8
- import { Surface as Ve } from "../surface/surface.js";
3
+ import { Heading as be } from "../heading/heading.js";
4
+ import { Surface as Se } from "../surface/surface.js";
5
+ import { Text as ye } from "../text/text.js";
6
+ import { u as Oe, t as ae, T as Ie } from "../../tooltip-CpyPanwd.js";
7
+ import { View as xe } from "../view/view.js";
8
+ import { R as Ne, P as Me, c as x, h as Fe, d as we, e as de, u as _e, i as ke, f as Ae, j as De, k as He, p as ee, t as Ve } from "../../transitions.module-SSNmQfsR.js";
9
9
  import * as n from "react";
10
10
  import { u as Be, a as Le, b as Ue, I as Ge, F as Ke } from "../../InternalBackdrop-DDLgWc7D.js";
11
11
  import { f as q } from "../../formatErrorMessage-BqPuTBN-.js";
@@ -67,7 +67,7 @@ const Ot = {
67
67
  openOnHover: x((t) => t.openOnHover),
68
68
  closeDelay: x((t) => t.closeDelay)
69
69
  };
70
- class se extends ye {
70
+ class se extends Ne {
71
71
  constructor(s) {
72
72
  const o = {
73
73
  ...yt(),
@@ -82,7 +82,7 @@ class se extends ye {
82
82
  triggerFocusTargetRef: /* @__PURE__ */ n.createRef(),
83
83
  beforeContentFocusGuardRef: /* @__PURE__ */ n.createRef(),
84
84
  stickIfOpenTimeout: new je(),
85
- triggerElements: new Oe()
85
+ triggerElements: new Me()
86
86
  }, Ot);
87
87
  }
88
88
  setOpen = (s, o) => {
@@ -169,7 +169,7 @@ function ue({
169
169
  const O = rt({
170
170
  popupStore: r,
171
171
  onOpenChange: r.setOpen
172
- }), I = xe(O, {
172
+ }), I = we(O, {
173
173
  outsidePressEvent: {
174
174
  // Ensure `aria-hidden` on outside elements is removed immediately
175
175
  // on outside press when trapping focus.
@@ -188,7 +188,7 @@ function ue({
188
188
  inactiveTriggerProps: A,
189
189
  popupProps: L,
190
190
  floatingRootContext: O,
191
- nested: Ne() != null
191
+ nested: _e() != null
192
192
  });
193
193
  const D = n.useMemo(() => ({
194
194
  store: r
@@ -203,7 +203,7 @@ function ue({
203
203
  function It(t) {
204
204
  return V(!0) ? /* @__PURE__ */ u(ue, {
205
205
  props: t
206
- }) : /* @__PURE__ */ u(Ie, {
206
+ }) : /* @__PURE__ */ u(Fe, {
207
207
  children: /* @__PURE__ */ u(ue, {
208
208
  props: t
209
209
  })
@@ -258,7 +258,7 @@ const xt = 300, me = /* @__PURE__ */ n.forwardRef(function(s, o) {
258
258
  native: a
259
259
  }), G = n.useMemo(() => ({
260
260
  open(d) {
261
- return d && C === X ? Me.open(d) : Fe.open(d);
261
+ return d && C === X ? ke.open(d) : Ae.open(d);
262
262
  }
263
263
  }), [C]), T = K("button", s, {
264
264
  state: D,
@@ -356,7 +356,7 @@ const he = /* @__PURE__ */ n.forwardRef(function(s, o) {
356
356
  ..._
357
357
  } = s, {
358
358
  store: c
359
- } = V(), F = Nt(), E = we(), O = c.useState("floatingRootContext"), I = c.useState("mounted"), C = c.useState("open"), k = c.useState("openChangeReason"), w = c.useState("activeTriggerElement"), b = c.useState("modal"), B = c.useState("positionerElement"), A = c.useState("instantType"), L = c.useState("transitionStatus"), D = n.useRef(null), H = Pt(B, !1, !1), S = vt({
359
+ } = V(), F = Nt(), E = De(), O = c.useState("floatingRootContext"), I = c.useState("mounted"), C = c.useState("open"), k = c.useState("openChangeReason"), w = c.useState("activeTriggerElement"), b = c.useState("modal"), B = c.useState("positionerElement"), A = c.useState("instantType"), L = c.useState("transitionStatus"), D = n.useRef(null), H = Pt(B, !1, !1), S = vt({
360
360
  anchor: i,
361
361
  floatingRootContext: O,
362
362
  positionMethod: a,
@@ -420,7 +420,7 @@ const he = /* @__PURE__ */ n.forwardRef(function(s, o) {
420
420
  ref: c.context.internalBackdropRef,
421
421
  inert: gt(!C),
422
422
  cutout: w
423
- }), /* @__PURE__ */ u(_e, {
423
+ }), /* @__PURE__ */ u(He, {
424
424
  id: E,
425
425
  children: d
426
426
  })]
@@ -474,7 +474,7 @@ const Mt = {
474
474
  });
475
475
  }
476
476
  const j = n.useCallback(() => e.context.triggerElements.size > 1, [e]);
477
- be({
477
+ Oe({
478
478
  popupElement: I,
479
479
  positionerElement: k,
480
480
  mounted: E,
@@ -598,27 +598,27 @@ function po({
598
598
  /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(he, { align: t, side: s, sideOffset: 8, children: /* @__PURE__ */ Y(
599
599
  Pe,
600
600
  {
601
- render: /* @__PURE__ */ u(Ve, { background: P }),
601
+ render: /* @__PURE__ */ u(Se, { background: P }),
602
602
  className: Re(
603
603
  ae.tooltip,
604
604
  le.popover,
605
- ke.transition_scale,
605
+ Ve.transition_scale,
606
606
  a
607
607
  ),
608
608
  children: [
609
- /* @__PURE__ */ u(Ee, { className: ae.tooltip__arrow, children: /* @__PURE__ */ u(Se.Arrow, {}) }),
610
- o || f ? /* @__PURE__ */ Y(Ae, { className: le.popover__header, children: [
609
+ /* @__PURE__ */ u(Ee, { className: ae.tooltip__arrow, children: /* @__PURE__ */ u(Ie.Arrow, {}) }),
610
+ o || f ? /* @__PURE__ */ Y(xe, { className: le.popover__header, children: [
611
611
  o ? /* @__PURE__ */ u(
612
612
  Ce,
613
613
  {
614
- render: /* @__PURE__ */ u(De, { level: 2, size: "2xl" }),
614
+ render: /* @__PURE__ */ u(be, { level: 2, size: "2xl" }),
615
615
  children: o
616
616
  }
617
617
  ) : null,
618
618
  f ? /* @__PURE__ */ u(
619
619
  Te,
620
620
  {
621
- render: /* @__PURE__ */ u(He, { color: "dimmer" }),
621
+ render: /* @__PURE__ */ u(ye, { color: "dimmer" }),
622
622
  children: f
623
623
  }
624
624
  ) : null
@@ -1,8 +1,8 @@
1
1
  import { jsx as P, jsxs as q } from "react/jsx-runtime";
2
2
  import { c as pe } from "../../clsx-OuTLNxxd.js";
3
- import { t as z, T as fe } from "../../tooltip-JPnUwFFR.js";
4
- import { d as me, e as Pe, f as Ce, p as U, t as ge } from "../../transitions.module-SSNmQfsR.js";
5
- import { Surface as we } from "../surface/surface.js";
3
+ import { Surface as fe } from "../surface/surface.js";
4
+ import { t as z, T as me } from "../../tooltip-CpyPanwd.js";
5
+ import { d as Pe, e as Ce, f as ge, p as U, t as we } from "../../transitions.module-SSNmQfsR.js";
6
6
  import * as e from "react";
7
7
  import * as ve from "react-dom";
8
8
  import { u as Ee } from "../../useControlled-Du4sJyMj.js";
@@ -124,10 +124,10 @@ function Fe(t) {
124
124
  })
125
125
  }), ae = Ue(w, {
126
126
  delay: _
127
- }), ce = me(w), {
127
+ }), ce = Pe(w), {
128
128
  getReferenceProps: j,
129
129
  getFloatingProps: W
130
- } = Pe([b, ae, ce]), le = e.useMemo(() => ({
130
+ } = Ce([b, ae, ce]), le = e.useMemo(() => ({
131
131
  open: C,
132
132
  setOpen: o,
133
133
  mounted: R,
@@ -199,7 +199,7 @@ const oe = /* @__PURE__ */ e.forwardRef(function(s, u) {
199
199
  ref: [a, u],
200
200
  state: m,
201
201
  props: [c, p],
202
- stateAttributesMapping: Ce
202
+ stateAttributesMapping: ge
203
203
  });
204
204
  });
205
205
  process.env.NODE_ENV !== "production" && (oe.displayName = "PreviewCardTrigger");
@@ -374,11 +374,11 @@ function ct({
374
374
  children: /* @__PURE__ */ q(
375
375
  se,
376
376
  {
377
- render: /* @__PURE__ */ P(we, { background: u }),
377
+ render: /* @__PURE__ */ P(fe, { background: u }),
378
378
  className: pe(
379
379
  z.tooltip,
380
380
  Be["preview-card"],
381
- ge.transition_scale,
381
+ we.transition_scale,
382
382
  i
383
383
  ),
384
384
  children: [
@@ -386,7 +386,7 @@ function ct({
386
386
  ie,
387
387
  {
388
388
  className: z.tooltip__arrow,
389
- children: /* @__PURE__ */ P(fe.Arrow, {})
389
+ children: /* @__PURE__ */ P(me.Arrow, {})
390
390
  }
391
391
  ),
392
392
  d
@@ -2,19 +2,19 @@ import { jsxs as ne, jsx as p } from "react/jsx-runtime";
2
2
  import { c as ue } from "../../clsx-OuTLNxxd.js";
3
3
  import * as o from "react";
4
4
  import { createContext as Ee, useContext as Ne } from "react";
5
- import { u as Ve } from "../../useControlled-Du4sJyMj.js";
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";
5
+ import { Text as Ve } from "../text/text.js";
6
+ import { View as Pe } from "../view/view.js";
7
+ import { u as Ie } from "../../useControlled-Du4sJyMj.js";
8
+ import { E as ce, b as de, u as re, N as F, d as fe, m as ke } from "../../useRenderElement-DngNDu_P.js";
7
9
  import { u as G } from "../../useStableCallback-DKZHlUAT.js";
8
10
  import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
9
11
  import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
10
- import { S as Ie } from "../../composite-BwEK5cWH.js";
11
- import { u as ke, A as Oe, C as Me } from "../../CompositeRoot-CCgh2M64.js";
12
- import { f as Ce, a as he, u as Re, c as Fe, b as Te } from "../../LabelableContext-Be1u-eFg.js";
12
+ import { S as Oe } from "../../composite-BwEK5cWH.js";
13
+ import { u as Me, A as Fe, C as Te } from "../../CompositeRoot-CCgh2M64.js";
14
+ import { f as Ce, a as he, u as Re, c as we, b as qe } from "../../LabelableContext-Be1u-eFg.js";
13
15
  import { f as ye } from "../../formatErrorMessage-BqPuTBN-.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";
16
+ import { u as Ge } from "../../useValueChanged-MJRmEWz1.js";
17
+ import { f as Se } from "../../element-u5WgOZX1.js";
18
18
  import { t as De, u as Be } from "../../useOpenChangeComplete-BHd-N7Ig.js";
19
19
  import { u as ze } from "../../useTransitionStatus-CmMyUh74.js";
20
20
  import { u as Ke } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
@@ -36,7 +36,7 @@ import '../../radio-group.css';function Je(e) {
36
36
  } = e, {
37
37
  compositeProps: g,
38
38
  compositeRef: x
39
- } = ke({
39
+ } = Me({
40
40
  metadata: r
41
41
  });
42
42
  return re(s, e, {
@@ -143,7 +143,7 @@ const ge = /* @__PURE__ */ o.forwardRef(function(n, u) {
143
143
  "aria-disabled": i || void 0,
144
144
  "aria-readonly": t || void 0,
145
145
  "aria-labelledby": b,
146
- [Oe]: c ? "" : void 0,
146
+ [Fe]: c ? "" : void 0,
147
147
  id: K,
148
148
  disabled: i,
149
149
  onKeyDown(f) {
@@ -238,7 +238,7 @@ const xe = /* @__PURE__ */ o.forwardRef(function(n, u) {
238
238
  }), N ? V : null;
239
239
  });
240
240
  process.env.NODE_ENV !== "production" && (xe.displayName = "RadioIndicator");
241
- const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
241
+ const Qe = [Oe], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
242
242
  const {
243
243
  render: h,
244
244
  className: R,
@@ -268,7 +268,7 @@ const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
268
268
  labelId: z
269
269
  } = Re(), {
270
270
  clearErrors: $
271
- } = Fe(), A = We(!0), b = W || m, _ = J ?? x, i = me(N), [t, v] = Ve({
271
+ } = we(), A = We(!0), b = W || m, _ = J ?? x, i = me(N), [t, v] = Ie({
272
272
  controlled: y,
273
273
  default: g,
274
274
  name: "RadioGroup",
@@ -278,21 +278,21 @@ const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
278
278
  }), C = o.useRef(null), q = G((d) => {
279
279
  C.current == null && d != null && (C.current = d);
280
280
  });
281
- Te({
281
+ qe({
282
282
  id: i,
283
283
  commit: l.commit,
284
284
  value: t,
285
285
  controlRef: C,
286
286
  name: _,
287
287
  getValue: () => t ?? null
288
- }), we(t, () => {
288
+ }), Ge(t, () => {
289
289
  $(_), D(t !== I.initialValue), B(t != null), w() ? l.commit(t) : l.commit(t, !0);
290
290
  });
291
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));
292
+ Se(d.currentTarget, d.relatedTarget) || (S(!0), T(!1), H === "onBlur" && l.commit(t));
293
293
  }), X = G((d) => {
294
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({
295
+ }), L = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = ke({
296
296
  value: L,
297
297
  ref: Z,
298
298
  id: i,
@@ -341,7 +341,7 @@ const Qe = [Ie], _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
341
341
  };
342
342
  return /* @__PURE__ */ ne(ae.Provider, {
343
343
  value: U,
344
- children: [/* @__PURE__ */ p(Me, {
344
+ children: [/* @__PURE__ */ p(Te, {
345
345
  render: h,
346
346
  className: R,
347
347
  state: ee,
@@ -383,7 +383,7 @@ function nt({
383
383
  ...h
384
384
  }) {
385
385
  const R = Ne(ve), m = e || R || "primary", r = /* @__PURE__ */ p(
386
- Ge,
386
+ Pe,
387
387
  {
388
388
  render: /* @__PURE__ */ p(ge, { ...h }),
389
389
  interactive: "fill-outline",
@@ -395,7 +395,7 @@ function nt({
395
395
  return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
396
396
  r,
397
397
  " ",
398
- /* @__PURE__ */ p(Se, { children: n })
398
+ /* @__PURE__ */ p(Ve, { children: n })
399
399
  ] }) : r;
400
400
  }
401
401
  const Pt = Object.assign(ot, {
@@ -1,11 +1,11 @@
1
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
+ import { Icon as l } from "../icon/icon.js";
5
+ import { IconButton as m } from "../icon-button/icon-button.js";
6
+ import { Input as t } from "../input/input.js";
7
+ import { Spinner as h } from "../spinner/spinner.js";
4
8
  import { View as s } from "../view/view.js";
5
- import { Input as l } from "../input/input.js";
6
- import { Icon as m } from "../icon/icon.js";
7
- import { Spinner as t } from "../spinner/spinner.js";
8
- import { IconButton as h } from "../icon-button/icon-button.js";
9
9
  import '../../search-bar.css';const a = {
10
10
  "search-bar": "_search-bar_yrf20_3",
11
11
  "search-bar__input": "_search-bar__input_yrf20_8",
@@ -14,9 +14,9 @@ import '../../search-bar.css';const a = {
14
14
  };
15
15
  function I({ loading: e, onClear: i, className: n, ...c }) {
16
16
  return /* @__PURE__ */ o(s, { className: _(a["search-bar"], n), children: [
17
- /* @__PURE__ */ r(l, { className: a["search-bar__input"], ...c }),
18
- !e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(m, { name: "search-line" }) }) : null,
19
- e ? /* @__PURE__ */ r(t, { className: a["search-bar__icon"] }) : null,
17
+ /* @__PURE__ */ r(t, { className: a["search-bar__input"], ...c }),
18
+ !e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(l, { name: "search-line" }) }) : null,
19
+ e ? /* @__PURE__ */ r(h, { className: a["search-bar__icon"] }) : null,
20
20
  !e && c.value ? /* @__PURE__ */ r(
21
21
  s,
22
22
  {
@@ -25,7 +25,7 @@ function I({ loading: e, onClear: i, className: n, ...c }) {
25
25
  a["search-bar__icon_close"]
26
26
  ),
27
27
  children: /* @__PURE__ */ r(
28
- h,
28
+ m,
29
29
  {
30
30
  icon: "close-line",
31
31
  alt: "Clear",
@@ -2,9 +2,9 @@ import { jsx as C, jsxs as Ae } from "react/jsx-runtime";
2
2
  import { c as jt } from "../../clsx-OuTLNxxd.js";
3
3
  import * as n from "react";
4
4
  import { textify as $t } from "../../-utils.js";
5
- import { c as E, S as Yt, l as p, d as Xt, e as Kt, i as Gt, f as Jt, p as xt, t as Zt } from "../../transitions.module-SSNmQfsR.js";
6
- import { View as Qt } from "../view/view.js";
7
- import { Icon as Rt } from "../icon/icon.js";
5
+ import { Icon as xt } from "../icon/icon.js";
6
+ import { View as Yt } from "../view/view.js";
7
+ import { c as E, S as Xt, l as p, d as Kt, e as Gt, i as Jt, f as Zt, p as Rt, t as Qt } from "../../transitions.module-SSNmQfsR.js";
8
8
  import { v as en } from "../../visuallyHidden-CpJ-mhai.js";
9
9
  import { b as gt, a as tn, m as St, d as It, u as Re } from "../../useRenderElement-DngNDu_P.js";
10
10
  import { u as ht } from "../../useControlled-Du4sJyMj.js";
@@ -243,7 +243,7 @@ function Ln(e) {
243
243
  openMethod: pe,
244
244
  triggerProps: k,
245
245
  reset: W
246
- } = dn(T), h = tn(() => new Yt({
246
+ } = dn(T), h = tn(() => new Xt({
247
247
  id: A,
248
248
  modal: b,
249
249
  multiple: I,
@@ -338,7 +338,7 @@ function Ln(e) {
338
338
  }), Fe = fn(he, {
339
339
  enabled: !v && !B,
340
340
  event: "mousedown"
341
- }), ze = Xt(he, {
341
+ }), ze = Kt(he, {
342
342
  bubbles: !1
343
343
  }), Je = xn(he, {
344
344
  enabled: !v && !B,
@@ -367,7 +367,7 @@ function Ln(e) {
367
367
  getReferenceProps: Be,
368
368
  getFloatingProps: Ce,
369
369
  getItemProps: qe
370
- } = Kt([Fe, ze, Je, Ze]), Ue = n.useMemo(() => St(Be(), k), [Be, k]);
370
+ } = Gt([Fe, ze, Je, Ze]), Ue = n.useMemo(() => St(Be(), k), [Be, k]);
371
371
  Pn(() => {
372
372
  h.update({
373
373
  popupProps: Ce(),
@@ -467,7 +467,7 @@ function Ln(e) {
467
467
  });
468
468
  }
469
469
  const Ye = 2, kn = {
470
- ...Gt,
470
+ ...Jt,
471
471
  ...rn,
472
472
  value: () => null
473
473
  }, Ct = /* @__PURE__ */ n.forwardRef(function(t, o) {
@@ -619,7 +619,7 @@ const _t = /* @__PURE__ */ n.forwardRef(function(t, o) {
619
619
  "aria-hidden": !0,
620
620
  children: "▼"
621
621
  }, i],
622
- stateAttributesMapping: Jt
622
+ stateAttributesMapping: Zt
623
623
  });
624
624
  });
625
625
  process.env.NODE_ENV !== "production" && (_t.displayName = "SelectIcon");
@@ -724,7 +724,7 @@ const Ht = {
724
724
  }), ne = Re("div", t, {
725
725
  ref: [o, le],
726
726
  state: Z,
727
- stateAttributesMapping: xt,
727
+ stateAttributesMapping: Rt,
728
728
  props: [H, V]
729
729
  }), oe = n.useRef(0), Ie = ye((_) => {
730
730
  if (_.size === 0 && oe.current === 0 || N.current.length === 0)
@@ -778,7 +778,7 @@ function Bt(e) {
778
778
  return t.top + 1 <= e.clientY && e.clientY <= t.bottom - 1 && t.left + 1 <= e.clientX && e.clientX <= t.right - 1;
779
779
  }
780
780
  const qn = {
781
- ...xt,
781
+ ...Rt,
782
782
  ...At
783
783
  }, Ut = /* @__PURE__ */ n.forwardRef(function(t, o) {
784
784
  const {
@@ -1194,7 +1194,7 @@ function No({
1194
1194
  }) {
1195
1195
  return /* @__PURE__ */ Ae(Ln, { ...s, children: [
1196
1196
  /* @__PURE__ */ Ae(
1197
- Qt,
1197
+ Yt,
1198
1198
  {
1199
1199
  interactive: "fill-outline",
1200
1200
  render: /* @__PURE__ */ C(Ct, {}),
@@ -1203,7 +1203,7 @@ function No({
1203
1203
  children: [
1204
1204
  /* @__PURE__ */ C(Nt, { children: Xn(e, s.items) }),
1205
1205
  /* @__PURE__ */ C(_t, { children: /* @__PURE__ */ C(
1206
- Rt,
1206
+ xt,
1207
1207
  {
1208
1208
  name: "arrow-down-s-line",
1209
1209
  className: Pe["select__trigger-icon"]
@@ -1215,7 +1215,7 @@ function No({
1215
1215
  /* @__PURE__ */ C(Ot, { children: /* @__PURE__ */ C(Ft, { sideOffset: 4, alignItemWithTrigger: !1, children: /* @__PURE__ */ C(
1216
1216
  Ut,
1217
1217
  {
1218
- className: Zt.transition_scale,
1218
+ className: Qt.transition_scale,
1219
1219
  children: /* @__PURE__ */ Ae(Lt, { className: Pe.select__list, children: [
1220
1220
  e && !s.multiple ? /* @__PURE__ */ C(ot, { value: null, label: e }) : null,
1221
1221
  Array.isArray(s.items) ? s.items.map(({ value: r, label: i }) => /* @__PURE__ */ C(ot, { value: r, label: i }, r)) : typeof s.items == "object" ? Object.entries(s.items).map(([r, i]) => /* @__PURE__ */ C(ot, { value: r, label: i }, r)) : null
@@ -1235,7 +1235,7 @@ function ot(e) {
1235
1235
  Wt,
1236
1236
  {
1237
1237
  className: Pe["select__item-indicator"],
1238
- children: /* @__PURE__ */ C(Rt, { name: "check-line" })
1238
+ children: /* @__PURE__ */ C(xt, { name: "check-line" })
1239
1239
  }
1240
1240
  ),
1241
1241
  /* @__PURE__ */ C(qt, { className: Pe["select__item-text"], children: $t(e.label) })