@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
@@ -1,13 +1,13 @@
1
1
  import { u as n } from "../../useRender-C3vlzS3t.js";
2
- import { m as a } from "../../useRenderElement-DngNDu_P.js";
3
- import '../../anchor.css';const t = "_anchor_1bdhy_2", s = {
4
- anchor: t
2
+ import { m as t } from "../../useRenderElement-DngNDu_P.js";
3
+ import '../../anchor.css';const a = "_anchor_1mbt9_3", s = {
4
+ anchor: a
5
5
  };
6
- function h({ external: e, render: r, ...o }) {
6
+ function p({ external: e, render: r, ...o }) {
7
7
  return n({
8
8
  defaultTagName: "a",
9
9
  render: r,
10
- props: a(o, {
10
+ props: t(o, {
11
11
  className: s.anchor,
12
12
  ...e ? {
13
13
  target: "_blank",
@@ -17,5 +17,5 @@ function h({ external: e, render: r, ...o }) {
17
17
  });
18
18
  }
19
19
  export {
20
- h as Anchor
20
+ p as Anchor
21
21
  };
@@ -1,17 +1,17 @@
1
- import { jsx as v, jsxs as L } from "react/jsx-runtime";
2
- import { c as R } from "../../clsx-OuTLNxxd.js";
1
+ import { jsx as v, jsxs as E } from "react/jsx-runtime";
2
+ import { c as L } from "../../clsx-OuTLNxxd.js";
3
3
  import * as o from "react";
4
- import { u as f, N as h } from "../../useRenderElement-DngNDu_P.js";
5
- import { f as k } from "../../formatErrorMessage-BqPuTBN-.js";
6
- import { u as C } from "../../useStableCallback-DKZHlUAT.js";
4
+ import { u as f, N as R } from "../../useRenderElement-DngNDu_P.js";
5
+ import { f as h } from "../../formatErrorMessage-BqPuTBN-.js";
6
+ import { u as k } from "../../useStableCallback-DKZHlUAT.js";
7
7
  import { u as N } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
8
- import { u as M } from "../../useTimeout-BNni6aw5.js";
8
+ import { u as C } from "../../useTimeout-BNni6aw5.js";
9
9
  import '../../avatar.css';const g = /* @__PURE__ */ o.createContext(void 0);
10
10
  process.env.NODE_ENV !== "production" && (g.displayName = "AvatarRootContext");
11
11
  function b() {
12
12
  const e = o.useContext(g);
13
13
  if (e === void 0)
14
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : k(13));
14
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : h(13));
15
15
  return e;
16
16
  }
17
17
  const p = {
@@ -38,14 +38,14 @@ const p = {
38
38
  });
39
39
  });
40
40
  process.env.NODE_ENV !== "production" && (z.displayName = "AvatarRoot");
41
- function w(e, {
41
+ function M(e, {
42
42
  referrerPolicy: a,
43
43
  crossOrigin: s
44
44
  }) {
45
45
  const [l, i] = o.useState("idle");
46
46
  return N(() => {
47
47
  if (!e)
48
- return i("error"), h;
48
+ return i("error"), R;
49
49
  let r = !0;
50
50
  const t = new window.Image(), c = (_) => () => {
51
51
  r && i(_);
@@ -55,7 +55,7 @@ function w(e, {
55
55
  };
56
56
  }, [e, s, a]), l;
57
57
  }
58
- const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
58
+ const y = /* @__PURE__ */ o.forwardRef(function(a, s) {
59
59
  const {
60
60
  className: l,
61
61
  render: i,
@@ -63,10 +63,10 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
63
63
  referrerPolicy: t,
64
64
  crossOrigin: c,
65
65
  ..._
66
- } = a, u = b(), n = w(a.src, {
66
+ } = a, u = b(), n = M(a.src, {
67
67
  referrerPolicy: t,
68
68
  crossOrigin: c
69
- }), d = C((x) => {
69
+ }), d = k((x) => {
70
70
  r?.(x), u.setImageLoadingStatus(x);
71
71
  });
72
72
  N(() => {
@@ -83,8 +83,8 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
83
83
  enabled: n === "loaded"
84
84
  });
85
85
  });
86
- process.env.NODE_ENV !== "production" && (S.displayName = "AvatarImage");
87
- const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
86
+ process.env.NODE_ENV !== "production" && (y.displayName = "AvatarImage");
87
+ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
88
88
  const {
89
89
  className: l,
90
90
  render: i,
@@ -92,7 +92,7 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
92
92
  ...t
93
93
  } = a, {
94
94
  imageLoadingStatus: c
95
- } = b(), [_, u] = o.useState(r === void 0), n = M();
95
+ } = b(), [_, u] = o.useState(r === void 0), n = C();
96
96
  o.useEffect(() => (r !== void 0 && n.start(r, () => u(!0)), n.clear), [n, r]);
97
97
  const d = o.useMemo(() => ({
98
98
  imageLoadingStatus: c
@@ -105,9 +105,9 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
105
105
  enabled: c !== "loaded" && _
106
106
  });
107
107
  });
108
- process.env.NODE_ENV !== "production" && (E.displayName = "AvatarFallback");
109
- const y = "_avatar_1886r_2", I = "_avatar__image_1886r_16", O = "_avatar__fallback_1886r_22", D = "_avatar_size_sm_1886r_35", V = "_avatar_size_md_1886r_39", F = "_avatar_size_lg_1886r_43", P = "_avatar_size_xl_1886r_47", j = "_avatar_size_2xl_1886r_51", U = "_avatar_size_3xl_1886r_55", m = {
110
- avatar: y,
108
+ process.env.NODE_ENV !== "production" && (S.displayName = "AvatarFallback");
109
+ const w = "_avatar_l5yco_3", I = "_avatar__image_l5yco_17", O = "_avatar__fallback_l5yco_23", D = "_avatar_size_sm_l5yco_36", V = "_avatar_size_md_l5yco_40", F = "_avatar_size_lg_l5yco_44", P = "_avatar_size_xl_l5yco_48", j = "_avatar_size_2xl_l5yco_52", U = "_avatar_size_3xl_l5yco_56", m = {
110
+ avatar: w,
111
111
  avatar__image: I,
112
112
  avatar__fallback: O,
113
113
  avatar_size_sm: D,
@@ -126,10 +126,10 @@ function W({
126
126
  ...r
127
127
  }) {
128
128
  const t = B(a, s);
129
- return /* @__PURE__ */ L(
129
+ return /* @__PURE__ */ E(
130
130
  z,
131
131
  {
132
- className: R(
132
+ className: L(
133
133
  m.avatar,
134
134
  m[`avatar_size_${l}`],
135
135
  i
@@ -137,13 +137,13 @@ function W({
137
137
  ...r,
138
138
  children: [
139
139
  e ? /* @__PURE__ */ v(
140
- S,
140
+ y,
141
141
  {
142
142
  src: e,
143
143
  className: m.avatar__image
144
144
  }
145
145
  ) : null,
146
- /* @__PURE__ */ v(E, { className: m.avatar__fallback, children: t })
146
+ /* @__PURE__ */ v(S, { className: m.avatar__fallback, children: t })
147
147
  ]
148
148
  }
149
149
  );
@@ -1,41 +1,41 @@
1
1
  import { jsx as e, jsxs as p, Fragment as g } from "react/jsx-runtime";
2
2
  import { c as f } from "../../clsx-OuTLNxxd.js";
3
- import { T as _ } from "../../tooltip-BJQPwudf.js";
3
+ import { T as _ } from "../../tooltip-JPnUwFFR.js";
4
4
  import { Text as b } from "../text/text.js";
5
5
  import { View as h } from "../view/view.js";
6
6
  import { Icon as u } from "../icon/icon.js";
7
- import { u as x } from "../../useRender-C3vlzS3t.js";
8
- import { m as y } from "../../useRenderElement-DngNDu_P.js";
9
- import '../../badge.css';const T = "_badge_184a8_2", j = "_badge_shiny_184a8_17", m = {
7
+ import { u as y } from "../../useRender-C3vlzS3t.js";
8
+ import { m as x } from "../../useRenderElement-DngNDu_P.js";
9
+ import '../../badge.css';const T = "_badge_1m3yi_3", j = "_badge_shiny_1m3yi_18", s = {
10
10
  badge: T,
11
11
  badge_shiny: j
12
12
  };
13
13
  function V({
14
14
  icon: r,
15
- name: t,
16
- color: n,
17
- shiny: a,
18
- tagline: o,
19
- render: i,
15
+ name: i,
16
+ color: t,
17
+ shiny: n,
18
+ tagline: m,
19
+ render: a,
20
20
  className: d,
21
21
  ...l
22
22
  }) {
23
- const c = x({
23
+ const c = y({
24
24
  defaultTagName: "span",
25
- render: i,
26
- props: y(l, {
25
+ render: a,
26
+ props: x(l, {
27
27
  className: f(
28
- m.badge,
29
- a && m.badge_shiny,
28
+ s.badge,
29
+ n && s.badge_shiny,
30
30
  d
31
31
  ),
32
32
  children: /* @__PURE__ */ p(g, { children: [
33
33
  r ? /* @__PURE__ */ e(u, { name: r }) : null,
34
- t
34
+ i
35
35
  ] })
36
36
  })
37
- }), s = /* @__PURE__ */ e(h, { color: n, children: c });
38
- return o ? /* @__PURE__ */ e(_, { trigger: s, children: /* @__PURE__ */ e(b, { size: "sm", multiline: !0, children: o }) }) : s;
37
+ }), o = /* @__PURE__ */ e(h, { color: t, children: c });
38
+ return m ? /* @__PURE__ */ e(_, { trigger: o, children: /* @__PURE__ */ e(b, { size: "sm", multiline: !0, children: m }) }) : o;
39
39
  }
40
40
  export {
41
41
  V as Badge
@@ -4,14 +4,14 @@ import { textify as m } from "../../-utils.js";
4
4
  import { View as r } from "../view/view.js";
5
5
  import { Icon as e } from "../icon/icon.js";
6
6
  import { B as s } from "../../Button-BmcVHRRW.js";
7
- import '../../button.css';const c = "_button_y8f8w_2", f = "_button_height_sm_y8f8w_15", x = "_button_height_md_y8f8w_20", a = "_button_height_lg_y8f8w_25", y = "_button_height_xl_y8f8w_30", d = "_button_height_2xl_y8f8w_35", w = "_button_height_3xl_y8f8w_40", i = {
7
+ import '../../button.css';const c = "_button_17tw0_3", x = "_button_height_sm_17tw0_16", a = "_button_height_md_17tw0_21", d = "_button_height_lg_17tw0_26", f = "_button_height_xl_17tw0_31", w = "_button_height_2xl_17tw0_36", p = "_button_height_3xl_17tw0_41", i = {
8
8
  button: c,
9
- button_height_sm: f,
10
- button_height_md: x,
11
- button_height_lg: a,
12
- button_height_xl: y,
13
- button_height_2xl: d,
14
- button_height_3xl: w
9
+ button_height_sm: x,
10
+ button_height_md: a,
11
+ button_height_lg: d,
12
+ button_height_xl: f,
13
+ button_height_2xl: w,
14
+ button_height_3xl: p
15
15
  };
16
16
  function N({
17
17
  size: t = "md",
@@ -4,7 +4,7 @@ import { Icon as Fe } from "../icon/icon.js";
4
4
  import { Text as Te } from "../text/text.js";
5
5
  import * as r from "react";
6
6
  import { f as ee } from "../../formatErrorMessage-BqPuTBN-.js";
7
- import { N as qe, d as Ue, m as je, E as De, u as te } from "../../useRenderElement-DngNDu_P.js";
7
+ import { N as je, d as qe, m as Ue, E as De, u as te } from "../../useRenderElement-DngNDu_P.js";
8
8
  import { f as ne, c as He, a as Le, u as $e, b as ze } from "../../LabelableContext-Be1u-eFg.js";
9
9
  import { u as Je, t as Ke } from "../../useOpenChangeComplete-BHd-N7Ig.js";
10
10
  import { u as We } from "../../useTransitionStatus-CmMyUh74.js";
@@ -40,10 +40,10 @@ function ot(e = !0) {
40
40
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>." : ee(3));
41
41
  return n;
42
42
  }
43
- const U = /* @__PURE__ */ r.createContext(void 0);
44
- process.env.NODE_ENV !== "production" && (U.displayName = "CheckboxRootContext");
43
+ const q = /* @__PURE__ */ r.createContext(void 0);
44
+ process.env.NODE_ENV !== "production" && (q.displayName = "CheckboxRootContext");
45
45
  function rt() {
46
- const e = r.useContext(U);
46
+ const e = r.useContext(q);
47
47
  if (e === void 0)
48
48
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : ee(14));
49
49
  return e;
@@ -61,7 +61,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
61
61
  onCheckedChange: E,
62
62
  parent: i = !1,
63
63
  readOnly: l = !1,
64
- render: j,
64
+ render: U,
65
65
  required: f = !1,
66
66
  uncheckedValue: N,
67
67
  value: P,
@@ -109,7 +109,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
109
109
  state: "checked"
110
110
  });
111
111
  Y(() => {
112
- if (V !== qe)
112
+ if (V !== je)
113
113
  return V(g), () => {
114
114
  V(void 0);
115
115
  };
@@ -122,13 +122,13 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
122
122
  name: h,
123
123
  getValue: () => o
124
124
  });
125
- const v = r.useRef(null), Re = Ue(_, v, d.inputRef);
125
+ const v = r.useRef(null), Re = qe(_, v, d.inputRef);
126
126
  Y(() => {
127
127
  v.current && (v.current.indeterminate = I, o && S(!0));
128
128
  }, [o, I, S]), nt(o, () => {
129
129
  t && !i || (ue(h), S(o), pe(o !== Ce.initialValue), ke() ? d.commit(o) : d.commit(o, !0));
130
130
  });
131
- const Me = je(
131
+ const Me = Ue(
132
132
  {
133
133
  checked: o,
134
134
  disabled: p,
@@ -197,7 +197,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
197
197
  }, L, d.getValidationProps, de, Pe, Ve],
198
198
  stateAttributesMapping: Oe
199
199
  });
200
- return /* @__PURE__ */ A(U.Provider, {
200
+ return /* @__PURE__ */ A(q.Provider, {
201
201
  value: T,
202
202
  children: [Be, !o && !t && h && !i && N !== void 0 && /* @__PURE__ */ m("input", {
203
203
  type: "hidden",
@@ -229,7 +229,7 @@ const ie = /* @__PURE__ */ r.forwardRef(function(n, k) {
229
229
  c || G(!1);
230
230
  }
231
231
  });
232
- const l = oe(s), j = r.useMemo(() => ({
232
+ const l = oe(s), U = r.useMemo(() => ({
233
233
  ...l,
234
234
  ...Ke,
235
235
  ...ne
@@ -237,13 +237,13 @@ const ie = /* @__PURE__ */ r.forwardRef(function(n, k) {
237
237
  enabled: f,
238
238
  ref: [k, E],
239
239
  state: i,
240
- stateAttributesMapping: j,
240
+ stateAttributesMapping: U,
241
241
  props: B
242
242
  });
243
243
  return f ? N : null;
244
244
  });
245
245
  process.env.NODE_ENV !== "production" && (ie.displayName = "CheckboxIndicator");
246
- const it = "_checkbox__label_1e2ro_2", st = "_checkbox_1e2ro_2", ct = "_checkbox__indicator_1e2ro_30", q = {
246
+ const it = "_checkbox__label_1o5lj_3", st = "_checkbox_1o5lj_3", ct = "_checkbox__indicator_1o5lj_31", j = {
247
247
  checkbox__label: it,
248
248
  checkbox: st,
249
249
  checkbox__indicator: ct
@@ -255,11 +255,11 @@ function yt({ color: e, label: n, ...k }) {
255
255
  color: e,
256
256
  interactive: "fill-outline",
257
257
  render: /* @__PURE__ */ m(ae, { "aria-label": n, ...k }),
258
- className: q.checkbox,
259
- children: /* @__PURE__ */ m(ie, { className: q.checkbox__indicator, children: /* @__PURE__ */ m(Fe, { name: "check-line", size: "sm" }) })
258
+ className: j.checkbox,
259
+ children: /* @__PURE__ */ m(ie, { className: j.checkbox__indicator, children: /* @__PURE__ */ m(Fe, { name: "check-line", size: "sm" }) })
260
260
  }
261
261
  );
262
- return n ? /* @__PURE__ */ A("label", { className: q.checkbox__label, children: [
262
+ return n ? /* @__PURE__ */ A("label", { className: j.checkbox__label, children: [
263
263
  x,
264
264
  /* @__PURE__ */ m(Te, { children: n })
265
265
  ] }) : x;
@@ -1,4 +1,4 @@
1
- import { jsxs as re, jsx as j } from "react/jsx-runtime";
1
+ import { jsxs as re, jsx as P } from "react/jsx-runtime";
2
2
  import { c as J } from "../../clsx-OuTLNxxd.js";
3
3
  import { useMemo as ie } from "react";
4
4
  import { View as se } from "../view/view.js";
@@ -11,9 +11,9 @@ function le(b) {
11
11
  var Z = { exports: {} }, Q;
12
12
  function oe() {
13
13
  return Q || (Q = 1, (function(b) {
14
- var L = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
14
+ var j = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
15
15
  var i = (function(g) {
16
- var f = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, F = 0, A = {}, s = {
16
+ var f = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, F = 0, w = {}, s = {
17
17
  /**
18
18
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
19
19
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -232,10 +232,10 @@ function oe() {
232
232
  /**
233
233
  * The grammar for plain, unformatted text.
234
234
  */
235
- plain: A,
236
- plaintext: A,
237
- text: A,
238
- txt: A,
235
+ plain: w,
236
+ plaintext: w,
237
+ text: w,
238
+ txt: w,
239
239
  /**
240
240
  * Creates a deep copy of the language with the given id and appends the given tokens.
241
241
  *
@@ -357,8 +357,8 @@ function oe() {
357
357
  a.hasOwnProperty(o) || (l[o] = r[o]);
358
358
  }
359
359
  var d = n[t];
360
- return n[t] = l, s.languages.DFS(s.languages, function(m, _) {
361
- _ === d && m != t && (this[m] = l);
360
+ return n[t] = l, s.languages.DFS(s.languages, function(v, _) {
361
+ _ === d && v != t && (this[v] = l);
362
362
  }), l;
363
363
  },
364
364
  // Traverse a language definition with Depth First Search
@@ -465,10 +465,10 @@ function oe() {
465
465
  return;
466
466
  }
467
467
  if (e && g.Worker) {
468
- var m = new Worker(s.filename);
469
- m.onmessage = function(_) {
468
+ var v = new Worker(s.filename);
469
+ v.onmessage = function(_) {
470
470
  d(_.data);
471
- }, m.postMessage(JSON.stringify({
471
+ }, v.postMessage(JSON.stringify({
472
472
  language: u.language,
473
473
  code: u.code,
474
474
  immediateClose: !0
@@ -625,41 +625,41 @@ function oe() {
625
625
  for (var d = 0; d < u.length; ++d) {
626
626
  if (l && l.cause == o + "," + d)
627
627
  return;
628
- var m = u[d], _ = m.inside, W = !!m.lookbehind, N = !!m.greedy, ee = m.alias;
629
- if (N && !m.pattern.global) {
630
- var te = m.pattern.toString().match(/[imsuy]*$/)[0];
631
- m.pattern = RegExp(m.pattern.source, te + "g");
628
+ var v = u[d], _ = v.inside, W = !!v.lookbehind, N = !!v.greedy, ee = v.alias;
629
+ if (N && !v.pattern.global) {
630
+ var te = v.pattern.toString().match(/[imsuy]*$/)[0];
631
+ v.pattern = RegExp(v.pattern.source, te + "g");
632
632
  }
633
- for (var X = m.pattern || m, v = n.next, w = r; v !== e.tail && !(l && w >= l.reach); w += v.value.length, v = v.next) {
634
- var E = v.value;
633
+ for (var X = v.pattern || v, m = n.next, A = r; m !== e.tail && !(l && A >= l.reach); A += m.value.length, m = m.next) {
634
+ var E = m.value;
635
635
  if (e.length > t.length)
636
636
  return;
637
637
  if (!(E instanceof y)) {
638
638
  var z = 1, x;
639
639
  if (N) {
640
- if (x = $(X, w, t, W), !x || x.index >= t.length)
640
+ if (x = $(X, A, t, W), !x || x.index >= t.length)
641
641
  break;
642
- var D = x.index, ae = x.index + x[0].length, k = w;
643
- for (k += v.value.length; D >= k; )
644
- v = v.next, k += v.value.length;
645
- if (k -= v.value.length, w = k, v.value instanceof y)
642
+ var D = x.index, ae = x.index + x[0].length, k = A;
643
+ for (k += m.value.length; D >= k; )
644
+ m = m.next, k += m.value.length;
645
+ if (k -= m.value.length, A = k, m.value instanceof y)
646
646
  continue;
647
- for (var C = v; C !== e.tail && (k < ae || typeof C.value == "string"); C = C.next)
647
+ for (var C = m; C !== e.tail && (k < ae || typeof C.value == "string"); C = C.next)
648
648
  z++, k += C.value.length;
649
- z--, E = t.slice(w, k), x.index -= w;
649
+ z--, E = t.slice(A, k), x.index -= A;
650
650
  } else if (x = $(X, 0, E, W), !x)
651
651
  continue;
652
- var D = x.index, O = x[0], q = E.slice(0, D), Y = E.slice(D + O.length), G = w + E.length;
652
+ var D = x.index, O = x[0], q = E.slice(0, D), Y = E.slice(D + O.length), G = A + E.length;
653
653
  l && G > l.reach && (l.reach = G);
654
- var R = v.prev;
655
- q && (R = S(e, R, q), w += q.length), H(e, R, z);
654
+ var R = m.prev;
655
+ q && (R = S(e, R, q), A += q.length), H(e, R, z);
656
656
  var ne = new y(o, _ ? s.tokenize(O, _) : O, ee, O);
657
- if (v = S(e, R, ne), Y && S(e, v, Y), z > 1) {
657
+ if (m = S(e, R, ne), Y && S(e, m, Y), z > 1) {
658
658
  var U = {
659
659
  cause: o + "," + d,
660
660
  reach: G
661
661
  };
662
- I(t, e, a, v.prev, w, U), l && U.reach > l.reach && (l.reach = U.reach);
662
+ I(t, e, a, m.prev, A, U), l && U.reach > l.reach && (l.reach = U.reach);
663
663
  }
664
664
  }
665
665
  }
@@ -699,7 +699,7 @@ function oe() {
699
699
  h === "loading" || h === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
700
700
  }
701
701
  return s;
702
- })(L);
702
+ })(j);
703
703
  b.exports && (b.exports = i), typeof K < "u" && (K.Prism = i), i.languages.markup = {
704
704
  comment: {
705
705
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -792,16 +792,16 @@ function oe() {
792
792
  * addInlined('style', 'css');
793
793
  */
794
794
  value: function(f, F) {
795
- var A = {};
796
- A["language-" + F] = {
795
+ var w = {};
796
+ w["language-" + F] = {
797
797
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
798
798
  lookbehind: !0,
799
799
  inside: i.languages[F]
800
- }, A.cdata = /^<!\[CDATA\[|\]\]>$/i;
800
+ }, w.cdata = /^<!\[CDATA\[|\]\]>$/i;
801
801
  var s = {
802
802
  "included-cdata": {
803
803
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
804
- inside: A
804
+ inside: w
805
805
  }
806
806
  };
807
807
  s["language-" + F] = {
@@ -1080,7 +1080,7 @@ function oe() {
1080
1080
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1081
1081
  var g = "Loading…", f = function(p, c) {
1082
1082
  return "✖ Error " + p + " while fetching file: " + c;
1083
- }, F = "✖ Error: File does not exist or is empty", A = {
1083
+ }, F = "✖ Error: File does not exist or is empty", w = {
1084
1084
  js: "javascript",
1085
1085
  py: "python",
1086
1086
  rb: "ruby",
@@ -1118,7 +1118,7 @@ function oe() {
1118
1118
  var t = c.getAttribute("data-src"), e = p.language;
1119
1119
  if (e === "none") {
1120
1120
  var a = (/\.(\w+)$/.exec(t) || [, "none"])[1];
1121
- e = A[a] || a;
1121
+ e = w[a] || a;
1122
1122
  }
1123
1123
  i.util.setLanguage(h, e), i.util.setLanguage(c, e);
1124
1124
  var n = i.plugins.autoloader;
@@ -1160,38 +1160,38 @@ function oe() {
1160
1160
  })(Z)), Z.exports;
1161
1161
  }
1162
1162
  var ge = oe();
1163
- const B = /* @__PURE__ */ le(ge), ce = "_code__root_jkm0m_2", de = "_code_jkm0m_2", fe = "_code_title_jkm0m_13", pe = "_code__value_jkm0m_17", he = "_code__title_jkm0m_22", P = {
1163
+ const B = /* @__PURE__ */ le(ge), ce = "_code__root_1w9hs_3", de = "_code_1w9hs_3", fe = "_code_title_1w9hs_14", pe = "_code__value_1w9hs_18", he = "_code__title_1w9hs_23", L = {
1164
1164
  code__root: ce,
1165
1165
  code: de,
1166
1166
  code_title: fe,
1167
1167
  code__value: pe,
1168
1168
  code__title: he
1169
1169
  };
1170
- function Ae({
1170
+ function we({
1171
1171
  language: b = "javascript",
1172
- children: L = "",
1172
+ children: j = "",
1173
1173
  title: i,
1174
1174
  className: g
1175
1175
  }) {
1176
1176
  const f = ie(
1177
1177
  () => B.highlight(
1178
- L,
1178
+ j,
1179
1179
  B.languages[b] ?? B.languages.javascript,
1180
1180
  b
1181
1181
  ),
1182
- [L, b]
1182
+ [j, b]
1183
1183
  );
1184
- return /* @__PURE__ */ re(se, { className: J(P.code__root, g), children: [
1185
- i ? /* @__PURE__ */ j(V, { elevated: !0, className: P.code__title, children: /* @__PURE__ */ j(ue, { size: "sm", color: "dimmer", children: i }) }) : null,
1186
- /* @__PURE__ */ j(
1184
+ return /* @__PURE__ */ re(se, { className: J(L.code__root, g), children: [
1185
+ i ? /* @__PURE__ */ P(V, { elevated: !0, className: L.code__title, children: /* @__PURE__ */ P(ue, { size: "sm", color: "dimmer", children: i }) }) : null,
1186
+ /* @__PURE__ */ P(
1187
1187
  V,
1188
1188
  {
1189
1189
  elevated: !0,
1190
- className: J(P.code, i && P.code_title),
1191
- children: /* @__PURE__ */ j("pre", { children: /* @__PURE__ */ j(
1190
+ className: J(L.code, i && L.code_title),
1191
+ children: /* @__PURE__ */ P("pre", { children: /* @__PURE__ */ P(
1192
1192
  "code",
1193
1193
  {
1194
- className: P.code__value,
1194
+ className: L.code__value,
1195
1195
  dangerouslySetInnerHTML: {
1196
1196
  __html: f
1197
1197
  }
@@ -1202,5 +1202,5 @@ function Ae({
1202
1202
  ] });
1203
1203
  }
1204
1204
  export {
1205
- Ae as Code
1205
+ we as Code
1206
1206
  };
@@ -2,12 +2,12 @@ import { c as p } from "../../clsx-OuTLNxxd.js";
2
2
  import { useRef as d, useState as i, useLayoutEffect as m } from "react";
3
3
  import { u } from "../../useRender-C3vlzS3t.js";
4
4
  import { m as _ } from "../../useRenderElement-DngNDu_P.js";
5
- import '../../collapse.css';const f = "_collapse_m77a0_2", h = "_collapse_expand_m77a0_13", x = "_collapse_hidden_m77a0_18", o = {
5
+ import '../../collapse.css';const f = "_collapse_k1eaa_3", h = "_collapse_expand_k1eaa_14", x = "_collapse_hidden_k1eaa_19", o = {
6
6
  collapse: f,
7
7
  collapse_expand: h,
8
8
  collapse_hidden: x
9
9
  };
10
- function b({
10
+ function R({
11
11
  expand: s = !0,
12
12
  render: l,
13
13
  recalculate: a,
@@ -31,5 +31,5 @@ function b({
31
31
  });
32
32
  }
33
33
  export {
34
- b as Collapse
34
+ R as Collapse
35
35
  };