@cascivo/react 0.13.0 → 0.14.0

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 (170) hide show
  1. package/dist/accordion/accordion.js +46 -44
  2. package/dist/action-sheet/action-sheet.js +16 -16
  3. package/dist/alert-dialog/alert-dialog.js +34 -34
  4. package/dist/app-shell/app-shell.css +1 -1
  5. package/dist/app-shell/app-shell.js +14 -12
  6. package/dist/app-shell/app-shell.module.js +8 -8
  7. package/dist/avatar-group/avatar-group.js +6 -6
  8. package/dist/bottom-sheet/bottom-sheet.js +18 -18
  9. package/dist/button/button.js +15 -12
  10. package/dist/button-group/button-group.js +8 -8
  11. package/dist/carousel/carousel.js +20 -20
  12. package/dist/checkbox/checkbox.js +21 -21
  13. package/dist/checkbox-card/checkbox-card.js +15 -13
  14. package/dist/collapsible/collapsible.js +7 -7
  15. package/dist/color-picker/color-picker.js +26 -26
  16. package/dist/combobox/combobox.js +86 -86
  17. package/dist/command-menu/command-menu.js +111 -111
  18. package/dist/comparison/comparison.js +10 -10
  19. package/dist/context-menu/context-menu.js +9 -9
  20. package/dist/copy-button/copy-button.js +18 -16
  21. package/dist/data-table/data-table.js +1 -1
  22. package/dist/date-picker/date-picker.js +25 -25
  23. package/dist/date-range-picker/date-range-picker.js +26 -26
  24. package/dist/drawer/drawer.css +1 -1
  25. package/dist/drawer/drawer.js +18 -17
  26. package/dist/drawer/drawer.module.js +9 -9
  27. package/dist/dropdown/dropdown.js +48 -48
  28. package/dist/editable/editable.js +11 -11
  29. package/dist/fab/fab.js +53 -53
  30. package/dist/field/field.js +8 -8
  31. package/dist/file-uploader/file-uploader.js +19 -19
  32. package/dist/header-panel/header-panel.js +31 -31
  33. package/dist/hover-card/hover-card.js +21 -21
  34. package/dist/icon-button/icon-button.js +5 -5
  35. package/dist/index.d.ts +233 -194
  36. package/dist/input/input.js +22 -21
  37. package/dist/link/link.js +8 -6
  38. package/dist/log-viewer/log-viewer.js +26 -26
  39. package/dist/menu/menu.js +20 -20
  40. package/dist/menu-button/menu-button.js +48 -48
  41. package/dist/menubar/menubar.js +42 -42
  42. package/dist/modal/modal.css +1 -1
  43. package/dist/modal/modal.js +41 -35
  44. package/dist/modal/modal.module.js +8 -7
  45. package/dist/multi-select/multi-select.css +1 -1
  46. package/dist/multi-select/multi-select.js +57 -57
  47. package/dist/multi-select/multi-select.module.js +11 -11
  48. package/dist/native-select/native-select.js +13 -11
  49. package/dist/navigation-menu/navigation-menu.js +46 -46
  50. package/dist/node/accordion/accordion.js +46 -44
  51. package/dist/node/action-sheet/action-sheet.js +16 -16
  52. package/dist/node/alert-dialog/alert-dialog.js +34 -34
  53. package/dist/node/app-shell/app-shell.js +14 -12
  54. package/dist/node/app-shell/app-shell.module.js +8 -8
  55. package/dist/node/avatar-group/avatar-group.js +6 -6
  56. package/dist/node/bottom-sheet/bottom-sheet.js +18 -18
  57. package/dist/node/button/button.js +15 -12
  58. package/dist/node/button-group/button-group.js +8 -8
  59. package/dist/node/carousel/carousel.js +20 -20
  60. package/dist/node/checkbox/checkbox.js +21 -21
  61. package/dist/node/checkbox-card/checkbox-card.js +15 -13
  62. package/dist/node/collapsible/collapsible.js +7 -7
  63. package/dist/node/color-picker/color-picker.js +26 -26
  64. package/dist/node/combobox/combobox.js +86 -86
  65. package/dist/node/command-menu/command-menu.js +111 -111
  66. package/dist/node/comparison/comparison.js +10 -10
  67. package/dist/node/context-menu/context-menu.js +9 -9
  68. package/dist/node/copy-button/copy-button.js +18 -16
  69. package/dist/node/data-table/data-table.js +1 -1
  70. package/dist/node/date-picker/date-picker.js +25 -25
  71. package/dist/node/date-range-picker/date-range-picker.js +26 -26
  72. package/dist/node/drawer/drawer.js +18 -17
  73. package/dist/node/drawer/drawer.module.js +9 -9
  74. package/dist/node/dropdown/dropdown.js +48 -48
  75. package/dist/node/editable/editable.js +11 -11
  76. package/dist/node/fab/fab.js +53 -53
  77. package/dist/node/field/field.js +8 -8
  78. package/dist/node/file-uploader/file-uploader.js +19 -19
  79. package/dist/node/header-panel/header-panel.js +31 -31
  80. package/dist/node/hover-card/hover-card.js +21 -21
  81. package/dist/node/icon-button/icon-button.js +5 -5
  82. package/dist/node/input/input.js +22 -21
  83. package/dist/node/link/link.js +8 -6
  84. package/dist/node/log-viewer/log-viewer.js +26 -26
  85. package/dist/node/menu/menu.js +20 -20
  86. package/dist/node/menu-button/menu-button.js +48 -48
  87. package/dist/node/menubar/menubar.js +42 -42
  88. package/dist/node/modal/modal.js +41 -35
  89. package/dist/node/modal/modal.module.js +8 -7
  90. package/dist/node/multi-select/multi-select.js +57 -57
  91. package/dist/node/multi-select/multi-select.module.js +11 -11
  92. package/dist/node/native-select/native-select.js +13 -11
  93. package/dist/node/navigation-menu/navigation-menu.js +46 -46
  94. package/dist/node/notification/notification.js +26 -26
  95. package/dist/node/number-input/number-input.js +52 -50
  96. package/dist/node/otp-input/otp-input.js +8 -8
  97. package/dist/node/password-input/password-input.js +28 -27
  98. package/dist/node/popover/popover.js +26 -24
  99. package/dist/node/pull-to-refresh/pull-to-refresh.js +13 -13
  100. package/dist/node/radial-progress/radial-progress.js +5 -5
  101. package/dist/node/radio/radio.js +23 -22
  102. package/dist/node/radio-card/radio-card.js +27 -26
  103. package/dist/node/react/src/index.js +3 -3
  104. package/dist/node/react/src/theme.js +30 -19
  105. package/dist/node/resizable/resizable.js +11 -11
  106. package/dist/node/scroll-area/scroll-area.js +4 -4
  107. package/dist/node/search/search.js +49 -49
  108. package/dist/node/select/select.js +27 -26
  109. package/dist/node/sheet/sheet.js +11 -10
  110. package/dist/node/sheet/sheet.module.js +5 -5
  111. package/dist/node/shell-header/shell-header.js +21 -18
  112. package/dist/node/shell-header/shell-header.module.js +20 -19
  113. package/dist/node/side-nav/side-nav.js +91 -91
  114. package/dist/node/skip-nav/skip-nav.js +12 -12
  115. package/dist/node/slider/slider.js +13 -11
  116. package/dist/node/structured-list/structured-list.js +23 -23
  117. package/dist/node/tabs/tabs.js +49 -47
  118. package/dist/node/tags-input/tags-input.js +35 -35
  119. package/dist/node/textarea/textarea.js +22 -21
  120. package/dist/node/time-picker/time-picker.js +22 -21
  121. package/dist/node/timeline/timeline.js +23 -16
  122. package/dist/node/timeline/timeline.module.js +7 -7
  123. package/dist/node/toast/toast.js +15 -15
  124. package/dist/node/toc/toc.js +8 -8
  125. package/dist/node/toggle/toggle.js +15 -13
  126. package/dist/node/toggle-group/toggle-group.js +10 -10
  127. package/dist/node/toggletip/toggletip.js +9 -9
  128. package/dist/node/tooltip/tooltip.js +5 -5
  129. package/dist/node/tree-view/tree-view.js +32 -32
  130. package/dist/notification/notification.js +26 -26
  131. package/dist/number-input/number-input.js +52 -50
  132. package/dist/otp-input/otp-input.js +8 -8
  133. package/dist/password-input/password-input.js +28 -27
  134. package/dist/popover/popover.js +26 -24
  135. package/dist/pull-to-refresh/pull-to-refresh.js +13 -13
  136. package/dist/radial-progress/radial-progress.js +5 -5
  137. package/dist/radio/radio.js +23 -22
  138. package/dist/radio-card/radio-card.js +27 -26
  139. package/dist/react/src/index.js +3 -3
  140. package/dist/react/src/theme.js +30 -19
  141. package/dist/resizable/resizable.js +11 -11
  142. package/dist/scroll-area/scroll-area.js +4 -4
  143. package/dist/search/search.js +49 -49
  144. package/dist/select/select.js +27 -26
  145. package/dist/sheet/sheet.css +1 -1
  146. package/dist/sheet/sheet.js +11 -10
  147. package/dist/sheet/sheet.module.js +5 -5
  148. package/dist/shell-header/shell-header.css +1 -1
  149. package/dist/shell-header/shell-header.js +21 -18
  150. package/dist/shell-header/shell-header.module.js +20 -19
  151. package/dist/side-nav/side-nav.js +91 -91
  152. package/dist/skip-nav/skip-nav.js +12 -12
  153. package/dist/slider/slider.js +13 -11
  154. package/dist/structured-list/structured-list.js +23 -23
  155. package/dist/styles.css +57 -7
  156. package/dist/tabs/tabs.js +49 -47
  157. package/dist/tags-input/tags-input.js +35 -35
  158. package/dist/textarea/textarea.js +22 -21
  159. package/dist/time-picker/time-picker.js +22 -21
  160. package/dist/timeline/timeline.css +1 -1
  161. package/dist/timeline/timeline.js +23 -16
  162. package/dist/timeline/timeline.module.js +7 -7
  163. package/dist/toast/toast.js +15 -15
  164. package/dist/toc/toc.js +8 -8
  165. package/dist/toggle/toggle.js +15 -13
  166. package/dist/toggle-group/toggle-group.js +10 -10
  167. package/dist/toggletip/toggletip.js +9 -9
  168. package/dist/tooltip/tooltip.js +5 -5
  169. package/dist/tree-view/tree-view.js +32 -32
  170. package/package.json +10 -4
@@ -2,53 +2,54 @@
2
2
 
3
3
  import e from "./input.module.js";
4
4
  import { cn as t, createMachine as n, useMachine as r } from "@cascivo/core";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { forwardRef as i } from "react";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
7
  //#region ../components/src/input/input.tsx
7
- var o = n({
8
+ var s = n({
8
9
  initial: "idle",
9
10
  states: {
10
11
  idle: { on: { FOCUS: "focused" } },
11
12
  focused: { on: { BLUR: "idle" } }
12
13
  }
13
- });
14
- function s({ label: n, hint: s, error: c, size: l = "md", className: u, id: d, onFocus: f, onBlur: p, ...m }) {
15
- let [h, g] = r(o), _ = d ?? (n ? `cascade-input-${n.toLowerCase().replace(/\s+/g, "-")}` : void 0);
16
- return /* @__PURE__ */ a("div", {
14
+ }), c = i(function({ label: n, hint: i, error: c, size: l = "md", className: u, id: d, onFocus: f, onBlur: p, ...m }, h) {
15
+ let [g, _] = r(s), v = d ?? (n ? `cascade-input-${n.toLowerCase().replace(/\s+/g, "-")}` : void 0);
16
+ return /* @__PURE__ */ o("div", {
17
17
  className: t(e.wrapper, u),
18
- "data-state": c ? "error" : h.value,
18
+ "data-state": c ? "error" : g.value,
19
19
  "data-size": l,
20
20
  children: [
21
- n && /* @__PURE__ */ i("label", {
21
+ n && /* @__PURE__ */ a("label", {
22
22
  className: e.label,
23
- htmlFor: _,
23
+ htmlFor: v,
24
24
  children: n
25
25
  }),
26
- /* @__PURE__ */ i("input", {
27
- id: _,
26
+ /* @__PURE__ */ a("input", {
27
+ ref: h,
28
+ id: v,
28
29
  className: e.input,
29
30
  "aria-invalid": c ? !0 : void 0,
30
- "aria-describedby": c ? `${_}-error` : s ? `${_}-hint` : void 0,
31
+ "aria-describedby": c ? `${v}-error` : i ? `${v}-hint` : void 0,
31
32
  onFocus: (e) => {
32
- g("FOCUS"), f?.(e);
33
+ _("FOCUS"), f?.(e);
33
34
  },
34
35
  onBlur: (e) => {
35
- g("BLUR"), p?.(e);
36
+ _("BLUR"), p?.(e);
36
37
  },
37
38
  ...m
38
39
  }),
39
- c && /* @__PURE__ */ i("span", {
40
- id: `${_}-error`,
40
+ c && /* @__PURE__ */ a("span", {
41
+ id: `${v}-error`,
41
42
  className: e.error,
42
43
  role: "alert",
43
44
  children: c
44
45
  }),
45
- !c && s && /* @__PURE__ */ i("span", {
46
- id: `${_}-hint`,
46
+ !c && i && /* @__PURE__ */ a("span", {
47
+ id: `${v}-hint`,
47
48
  className: e.hint,
48
- children: s
49
+ children: i
49
50
  })
50
51
  ]
51
52
  });
52
- }
53
+ });
53
54
  //#endregion
54
- export { s as Input };
55
+ export { c as Input };
package/dist/link/link.js CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  import e from "./link.module.js";
4
4
  import { Slot as t, cn as n } from "@cascivo/core";
5
- import { jsx as r } from "react/jsx-runtime";
5
+ import { forwardRef as r } from "react";
6
+ import { jsx as i } from "react/jsx-runtime";
6
7
  //#region ../components/src/link/link.tsx
7
- function i({ variant: i = "standalone", size: a = "md", external: o = !1, asChild: s = !1, className: c, children: l, ...u }) {
8
- return /* @__PURE__ */ r(s ? t : "a", {
9
- "data-variant": i,
8
+ var a = r(function({ variant: r = "standalone", size: a = "md", external: o = !1, asChild: s = !1, className: c, children: l, ...u }, d) {
9
+ return /* @__PURE__ */ i(s ? t : "a", {
10
+ "data-variant": r,
10
11
  "data-size": a,
11
12
  "data-external": o || void 0,
12
13
  className: n(e.link, c),
@@ -14,9 +15,10 @@ function i({ variant: i = "standalone", size: a = "md", external: o = !1, asChil
14
15
  target: "_blank",
15
16
  rel: "noreferrer"
16
17
  } : {},
18
+ ref: d,
17
19
  ...u,
18
20
  children: l
19
21
  });
20
- }
22
+ });
21
23
  //#endregion
22
- export { i as Link };
24
+ export { a as Link };
@@ -2,9 +2,9 @@
2
2
 
3
3
  import e from "./log-viewer.module.js";
4
4
  import { VisuallyHidden as t, cn as n, useClipboard as r, useComputed as i, useControllableSignal as a, useResizeObserver as o, useSignal as s, useSignalEffect as c, useSignals as l } from "@cascivo/core";
5
- import { builtin as u, t as d } from "@cascivo/i18n";
6
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
- import { Fragment as m } from "react";
5
+ import { Fragment as u } from "react";
6
+ import { builtin as d, t as f } from "@cascivo/i18n";
7
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  //#region ../components/src/log-viewer/log-viewer.tsx
9
9
  var h = {
10
10
  30: "black",
@@ -52,11 +52,11 @@ function g(e) {
52
52
  function _(e, t, n) {
53
53
  if (!t) return e;
54
54
  let r = e.toLowerCase(), i = t.toLowerCase(), a = [], o = 0, s = r.indexOf(i, o), c = 0;
55
- for (; s !== -1;) s > o && a.push(e.slice(o, s)), a.push(/* @__PURE__ */ f("mark", { children: e.slice(s, s + i.length) }, `${n}-${c++}`)), o = s + i.length, s = r.indexOf(i, o);
55
+ for (; s !== -1;) s > o && a.push(e.slice(o, s)), a.push(/* @__PURE__ */ p("mark", { children: e.slice(s, s + i.length) }, `${n}-${c++}`)), o = s + i.length, s = r.indexOf(i, o);
56
56
  return o < e.length && a.push(e.slice(o)), a;
57
57
  }
58
58
  function v(t, n, r) {
59
- return (n ? g(t.text) : [{ text: t.text }]).map((n, i) => /* @__PURE__ */ f("span", {
59
+ return (n ? g(t.text) : [{ text: t.text }]).map((n, i) => /* @__PURE__ */ p("span", {
60
60
  "data-ansi": n.color,
61
61
  style: n.bold ? { fontWeight: 700 } : void 0,
62
62
  className: n.color ? e.ansi : void 0,
@@ -66,13 +66,13 @@ function v(t, n, r) {
66
66
  function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowChange: b, ansi: x = !1, search: S, maxHeight: C = "24rem", labels: w, className: T, ...E }) {
67
67
  l();
68
68
  let D = {
69
- searchPlaceholder: w?.searchPlaceholder ?? d(u.logViewer.search),
70
- follow: w?.follow ?? d(u.logViewer.follow),
71
- paused: w?.paused ?? d(u.logViewer.paused),
72
- copy: w?.copy ?? d(u.logViewer.copy),
73
- copied: w?.copied ?? d(u.logViewer.copied),
74
- empty: w?.empty ?? d(u.logViewer.empty),
75
- label: d(u.logViewer.label)
69
+ searchPlaceholder: w?.searchPlaceholder ?? f(d.logViewer.search),
70
+ follow: w?.follow ?? f(d.logViewer.follow),
71
+ paused: w?.paused ?? f(d.logViewer.paused),
72
+ copy: w?.copy ?? f(d.logViewer.copy),
73
+ copied: w?.copied ?? f(d.logViewer.copied),
74
+ empty: w?.empty ?? f(d.logViewer.empty),
75
+ label: f(d.logViewer.label)
76
76
  }, O = s(Array.isArray(h) ? h : []);
77
77
  Array.isArray(h) && (O.value = h);
78
78
  let k = Array.isArray(h) ? O : h, { ref: A, size: j } = o(), M = s(0), [N, P] = a({
@@ -103,14 +103,14 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
103
103
  let t = e.currentTarget;
104
104
  M.value = t.scrollTop, P(t.scrollHeight - t.clientHeight - t.scrollTop <= g);
105
105
  }, V = R.value, H = F.value.trim();
106
- return /* @__PURE__ */ p("div", {
106
+ return /* @__PURE__ */ m("div", {
107
107
  className: n(e.root, T),
108
108
  ...E,
109
109
  children: [
110
- /* @__PURE__ */ p("div", {
110
+ /* @__PURE__ */ m("div", {
111
111
  className: e.toolbar,
112
112
  children: [
113
- /* @__PURE__ */ f("input", {
113
+ /* @__PURE__ */ p("input", {
114
114
  type: "search",
115
115
  className: e.search,
116
116
  placeholder: D.searchPlaceholder,
@@ -120,13 +120,13 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
120
120
  F.value = e.currentTarget.value;
121
121
  }
122
122
  }),
123
- H ? /* @__PURE__ */ f("span", {
123
+ H ? /* @__PURE__ */ p("span", {
124
124
  className: e.count,
125
125
  "aria-live": "polite",
126
- children: d(u.logViewer.matches, { count: z.value })
126
+ children: f(d.logViewer.matches, { count: z.value })
127
127
  }) : null,
128
- /* @__PURE__ */ f("span", { className: e.spacer }),
129
- /* @__PURE__ */ f("button", {
128
+ /* @__PURE__ */ p("span", { className: e.spacer }),
129
+ /* @__PURE__ */ p("button", {
130
130
  type: "button",
131
131
  className: e.toggle,
132
132
  "aria-pressed": N.value,
@@ -139,7 +139,7 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
139
139
  },
140
140
  children: N.value ? D.follow : D.paused
141
141
  }),
142
- /* @__PURE__ */ f("button", {
142
+ /* @__PURE__ */ p("button", {
143
143
  type: "button",
144
144
  className: e.copy,
145
145
  onClick: () => void L(k.value.map((e) => e.text).join("\n")),
@@ -147,7 +147,7 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
147
147
  })
148
148
  ]
149
149
  }),
150
- /* @__PURE__ */ f("div", {
150
+ /* @__PURE__ */ p("div", {
151
151
  ref: A,
152
152
  className: e.scroll,
153
153
  role: "log",
@@ -156,13 +156,13 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
156
156
  tabIndex: 0,
157
157
  style: { maxBlockSize: C },
158
158
  onScroll: B,
159
- children: V.total === 0 ? /* @__PURE__ */ f("div", {
159
+ children: V.total === 0 ? /* @__PURE__ */ p("div", {
160
160
  className: e.empty,
161
161
  children: D.empty
162
- }) : /* @__PURE__ */ f("div", {
162
+ }) : /* @__PURE__ */ p("div", {
163
163
  className: e.sizer,
164
164
  style: { blockSize: V.total * g },
165
- children: V.rows.map((t, n) => /* @__PURE__ */ f(m, { children: /* @__PURE__ */ f("div", {
165
+ children: V.rows.map((t, n) => /* @__PURE__ */ p(u, { children: /* @__PURE__ */ p("div", {
166
166
  className: e.line,
167
167
  "data-level": t.level,
168
168
  style: {
@@ -173,9 +173,9 @@ function y({ lines: h, rowHeight: g = 20, overscan: _ = 8, follow: y, onFollowCh
173
173
  }) }, t.id))
174
174
  })
175
175
  }),
176
- /* @__PURE__ */ f(t, {
176
+ /* @__PURE__ */ p(t, {
177
177
  "aria-live": "polite",
178
- children: d(u.logViewer.lines, { count: V.total })
178
+ children: f(d.logViewer.lines, { count: V.total })
179
179
  })
180
180
  ]
181
181
  });
package/dist/menu/menu.js CHANGED
@@ -3,11 +3,11 @@
3
3
  import { usePopover as e } from "../popover/use-popover.js";
4
4
  import t from "./menu.module.js";
5
5
  import { useSignalEffect as n, useSignals as r, useTypeahead as i } from "@cascivo/core";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import { createContext as s } from "react";
6
+ import { createContext as a } from "react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  //#region ../components/src/menu/menu.tsx
9
- var c = s(null);
10
- function l({ ctx: e, children: o }) {
9
+ var c = a(null);
10
+ function l({ ctx: e, children: a }) {
11
11
  r();
12
12
  let { popoverRef: s, anchorName: c, isOpen: l } = e, u = () => {
13
13
  let e = s.current;
@@ -22,7 +22,7 @@ function l({ ctx: e, children: o }) {
22
22
  if (!l.value) return;
23
23
  let e = s.current;
24
24
  e && e.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")?.focus();
25
- }), /* @__PURE__ */ a("div", {
25
+ }), /* @__PURE__ */ o("div", {
26
26
  ref: s,
27
27
  popover: "auto",
28
28
  role: "menu",
@@ -46,13 +46,13 @@ function l({ ctx: e, children: o }) {
46
46
  default: f.onKeyDown(e);
47
47
  }
48
48
  },
49
- children: o
49
+ children: a
50
50
  });
51
51
  }
52
52
  function u({ children: e }) {
53
- return /* @__PURE__ */ a(c.Consumer, { children: (t) => {
53
+ return /* @__PURE__ */ o(c.Consumer, { children: (t) => {
54
54
  if (!t) throw Error("MenuPanel must be inside <Menu>");
55
- return /* @__PURE__ */ a(l, {
55
+ return /* @__PURE__ */ o(l, {
56
56
  ctx: t,
57
57
  children: e
58
58
  });
@@ -60,16 +60,16 @@ function u({ children: e }) {
60
60
  }
61
61
  function d({ children: t }) {
62
62
  let n = e(), [r, ...i] = Array.isArray(t) ? t : [t];
63
- return /* @__PURE__ */ o(c.Provider, {
63
+ return /* @__PURE__ */ s(c.Provider, {
64
64
  value: n,
65
- children: [r, /* @__PURE__ */ a(u, { children: i })]
65
+ children: [r, /* @__PURE__ */ o(u, { children: i })]
66
66
  });
67
67
  }
68
68
  function f({ ctx: e, children: n, "aria-label": i }) {
69
69
  r();
70
- let { triggerRef: o, toggle: s, anchorName: c, isOpen: l } = e;
71
- return /* @__PURE__ */ a("button", {
72
- ref: o,
70
+ let { triggerRef: a, toggle: s, anchorName: c, isOpen: l } = e;
71
+ return /* @__PURE__ */ o("button", {
72
+ ref: a,
73
73
  type: "button",
74
74
  "aria-haspopup": "menu",
75
75
  "aria-expanded": l.value,
@@ -81,9 +81,9 @@ function f({ ctx: e, children: n, "aria-label": i }) {
81
81
  });
82
82
  }
83
83
  function p({ children: e, "aria-label": t }) {
84
- return /* @__PURE__ */ a(c.Consumer, { children: (n) => {
84
+ return /* @__PURE__ */ o(c.Consumer, { children: (n) => {
85
85
  if (!n) throw Error("MenuTrigger must be inside <Menu>");
86
- return /* @__PURE__ */ a(f, {
86
+ return /* @__PURE__ */ o(f, {
87
87
  ctx: n,
88
88
  ...t !== void 0 && { "aria-label": t },
89
89
  children: e
@@ -91,16 +91,16 @@ function p({ children: e, "aria-label": t }) {
91
91
  } });
92
92
  }
93
93
  function m({ children: e, onSelect: n, disabled: r }) {
94
- return /* @__PURE__ */ a(c.Consumer, { children: (i) => {
94
+ return /* @__PURE__ */ o(c.Consumer, { children: (i) => {
95
95
  if (!i) throw Error("MenuItem must be inside <Menu>");
96
- let { close: o } = i;
96
+ let { close: a } = i;
97
97
  function s() {
98
- r || (n(), o());
98
+ r || (n(), a());
99
99
  }
100
100
  function c(e) {
101
101
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), s());
102
102
  }
103
- return /* @__PURE__ */ a("div", {
103
+ return /* @__PURE__ */ o("div", {
104
104
  role: "menuitem",
105
105
  tabIndex: r ? -1 : 0,
106
106
  "aria-disabled": r,
@@ -112,7 +112,7 @@ function m({ children: e, onSelect: n, disabled: r }) {
112
112
  } });
113
113
  }
114
114
  function h() {
115
- return /* @__PURE__ */ a("div", {
115
+ return /* @__PURE__ */ o("div", {
116
116
  role: "separator",
117
117
  className: t.separator
118
118
  });
@@ -1,86 +1,86 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./menu-button.module.js";
4
- import { DismissableLayer as t, cn as n, useAnchorPosition as r, useSignal as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- import { useId as l, useRef as u } from "react";
4
+ import { DismissableLayer as t, cn as n, focusElement as r, useAnchorPosition as i, useSignal as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
5
+ import { useId as c, useRef as l } from "react";
6
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
7
  //#region ../components/src/menu-button/menu-button.tsx
8
- function d(e, t) {
8
+ function f(e, t) {
9
9
  if (!e) return;
10
10
  let n = e.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])");
11
11
  n[t < 0 ? n.length - 1 : t % n.length]?.focus();
12
12
  }
13
- function f({ label: f, items: p, variant: m = "secondary", size: h = "md", disabled: g = !1, align: _ = "start", labels: v, className: y }) {
14
- o();
15
- let b = i(!1), x = u(null), S = u(null), C = l(), { anchorStyle: w, floatingStyle: T } = r({
16
- anchorRef: x,
17
- floatingRef: S,
18
- placement: _ === "end" ? "bottom-end" : "bottom-start",
19
- enabled: b
13
+ function p({ label: p, items: m, variant: h = "secondary", size: g = "md", disabled: _ = !1, align: v = "start", labels: y, className: b }) {
14
+ s();
15
+ let x = a(!1), S = l(null), C = l(null), w = c(), { anchorStyle: T, floatingStyle: E } = i({
16
+ anchorRef: S,
17
+ floatingRef: C,
18
+ placement: v === "end" ? "bottom-end" : "bottom-start",
19
+ enabled: x
20
20
  });
21
- a(() => {
22
- b.value && d(S.current, 0);
21
+ o(() => {
22
+ x.value && f(C.current, 0);
23
23
  });
24
- function E(e) {
25
- g || (b.value = !0, queueMicrotask(() => d(S.current, e)));
26
- }
27
24
  function D(e) {
28
- b.value = !1, e && x.current?.focus();
25
+ _ || (x.value = !0, queueMicrotask(() => f(C.current, e)));
29
26
  }
30
27
  function O(e) {
31
- e.key === "ArrowDown" || e.key === "Enter" || e.key === " " ? (e.preventDefault(), E(0)) : e.key === "ArrowUp" && (e.preventDefault(), E(-1));
28
+ x.value = !1, e && r(S.current);
32
29
  }
33
30
  function k(e) {
31
+ e.key === "ArrowDown" || e.key === "Enter" || e.key === " " ? (e.preventDefault(), D(0)) : e.key === "ArrowUp" && (e.preventDefault(), D(-1));
32
+ }
33
+ function A(e) {
34
34
  if (e.key === "ArrowDown") {
35
35
  e.preventDefault();
36
36
  let t = e.currentTarget.nextElementSibling;
37
- t ? t.focus() : d(S.current, 0);
37
+ t ? t.focus() : f(C.current, 0);
38
38
  } else if (e.key === "ArrowUp") {
39
39
  e.preventDefault();
40
40
  let t = e.currentTarget.previousElementSibling;
41
- t ? t.focus() : d(S.current, -1);
42
- } else e.key === "Escape" ? (e.preventDefault(), D(!0)) : e.key === "Tab" && D(!1);
41
+ t ? t.focus() : f(C.current, -1);
42
+ } else e.key === "Escape" ? (e.preventDefault(), O(!0)) : e.key === "Tab" && O(!1);
43
43
  }
44
- function A(e) {
45
- e.disabled || (e.onSelect?.(), D(!0));
44
+ function j(e) {
45
+ e.disabled || (e.onSelect?.(), O(!0));
46
46
  }
47
- return /* @__PURE__ */ c("div", {
48
- className: n(e.root, y),
49
- children: [/* @__PURE__ */ s("button", {
50
- ref: x,
47
+ return /* @__PURE__ */ d("div", {
48
+ className: n(e.root, b),
49
+ children: [/* @__PURE__ */ u("button", {
50
+ ref: S,
51
51
  type: "button",
52
52
  className: e.trigger,
53
- "data-variant": m,
54
- "data-size": h,
55
- disabled: g,
53
+ "data-variant": h,
54
+ "data-size": g,
55
+ disabled: _,
56
56
  "aria-haspopup": "menu",
57
- "aria-expanded": b.value,
58
- "aria-controls": C,
59
- ...v?.open !== void 0 && { "aria-label": v.open },
60
- style: w,
57
+ "aria-expanded": x.value,
58
+ "aria-controls": w,
59
+ ...y?.open !== void 0 && { "aria-label": y.open },
60
+ style: T,
61
61
  onClick: () => {
62
- b.value ? D(!1) : E(0);
62
+ x.value ? O(!1) : D(0);
63
63
  },
64
- onKeyDown: O,
65
- children: f
66
- }), b.value ? /* @__PURE__ */ s(t, {
67
- onDismiss: () => D(!0),
68
- children: /* @__PURE__ */ s("div", {
69
- ref: S,
70
- id: C,
64
+ onKeyDown: k,
65
+ children: p
66
+ }), x.value ? /* @__PURE__ */ u(t, {
67
+ onDismiss: () => O(!0),
68
+ children: /* @__PURE__ */ u("div", {
69
+ ref: C,
70
+ id: w,
71
71
  role: "menu",
72
72
  "data-state": "open",
73
- "data-align": _,
73
+ "data-align": v,
74
74
  className: e.menu,
75
- style: T,
76
- children: p.map((t) => /* @__PURE__ */ s("div", {
75
+ style: E,
76
+ children: m.map((t) => /* @__PURE__ */ u("div", {
77
77
  role: "menuitem",
78
78
  tabIndex: -1,
79
79
  "aria-disabled": t.disabled,
80
80
  className: e.item,
81
- onClick: () => A(t),
81
+ onClick: () => j(t),
82
82
  onKeyDown: (e) => {
83
- e.key === "Enter" || e.key === " " ? (e.preventDefault(), A(t)) : k(e);
83
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), j(t)) : A(e);
84
84
  },
85
85
  children: t.label
86
86
  }, t.id))
@@ -89,4 +89,4 @@ function f({ label: f, items: p, variant: m = "secondary", size: h = "md", disab
89
89
  });
90
90
  }
91
91
  //#endregion
92
- export { f as MenuButton };
92
+ export { p as MenuButton };
@@ -1,89 +1,89 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./menubar.module.js";
4
- import { DismissableLayer as t, Presence as n, cn as r, useAnchorPosition as i, useRovingFocus as a, useSignal as o, useSignals as s } from "@cascivo/core";
5
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
- import { useId as d, useRef as f } from "react";
4
+ import { DismissableLayer as t, Presence as n, cn as r, focusElement as i, useAnchorPosition as a, useRovingFocus as o, useSignal as s, useSignals as c } from "@cascivo/core";
5
+ import { useId as l, useRef as u } from "react";
6
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
7
7
  //#region ../components/src/menubar/menubar.tsx
8
- function p({ menus: t, "aria-label": n, className: i }) {
9
- s();
10
- let c = d(), u = o(null), f = a({
8
+ function m({ menus: t, "aria-label": n, className: i }) {
9
+ c();
10
+ let a = l(), u = s(null), d = o({
11
11
  orientation: "horizontal",
12
12
  loop: !0
13
13
  });
14
- return /* @__PURE__ */ l("div", {
14
+ return /* @__PURE__ */ f("div", {
15
15
  role: "menubar",
16
16
  "aria-label": n,
17
17
  className: r(e.menubar, i),
18
- children: t.map((e, t) => /* @__PURE__ */ l(m, {
18
+ children: t.map((e, t) => /* @__PURE__ */ f(h, {
19
19
  menu: e,
20
20
  index: t,
21
- baseId: c,
21
+ baseId: a,
22
22
  openId: u,
23
- itemProps: f.getItemProps(t)
23
+ itemProps: d.getItemProps(t)
24
24
  }, e.id))
25
25
  });
26
26
  }
27
- function m({ menu: t, baseId: r, openId: a, itemProps: o }) {
28
- s();
29
- let d = f(null), p = f(null), m = a.value === t.id, g = `${r}-menu-${t.id}`, { anchorStyle: _, floatingStyle: v } = i({
30
- anchorRef: d,
31
- floatingRef: p,
27
+ function h({ menu: t, baseId: r, openId: o, itemProps: s }) {
28
+ c();
29
+ let l = u(null), m = u(null), h = o.value === t.id, _ = `${r}-menu-${t.id}`, { anchorStyle: v, floatingStyle: y } = a({
30
+ anchorRef: l,
31
+ floatingRef: m,
32
32
  placement: "bottom-start",
33
- enabled: m
34
- }), y = () => {
35
- (p.current?.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])"))?.focus();
36
- }, b = (e) => {
37
- o.onKeyDown(e), !e.defaultPrevented && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " " ? (e.preventDefault(), a.value = t.id, requestAnimationFrame(y)) : e.key === "Escape" && (a.value = null));
38
- }, { ref: x, onKeyDown: S, ...C } = o;
39
- return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("button", {
33
+ enabled: h
34
+ }), b = () => {
35
+ (m.current?.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])"))?.focus();
36
+ }, x = (e) => {
37
+ s.onKeyDown(e), !e.defaultPrevented && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " " ? (e.preventDefault(), o.value = t.id, requestAnimationFrame(b)) : e.key === "Escape" && (o.value = null));
38
+ }, { ref: S, onKeyDown: C, ...w } = s;
39
+ return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("button", {
40
40
  ref: (e) => {
41
- d.current = e, x(e);
41
+ l.current = e, S(e);
42
42
  },
43
43
  type: "button",
44
44
  role: "menuitem",
45
45
  "aria-haspopup": "menu",
46
- "aria-expanded": m,
47
- "aria-controls": g,
48
- "data-state": m ? "open" : "closed",
46
+ "aria-expanded": h,
47
+ "aria-controls": _,
48
+ "data-state": h ? "open" : "closed",
49
49
  className: e.trigger,
50
- style: _,
50
+ style: v,
51
51
  onClick: () => {
52
- a.value = m ? null : t.id;
52
+ o.value = h ? null : t.id;
53
53
  },
54
- onKeyDown: b,
55
- ...C,
54
+ onKeyDown: x,
55
+ ...w,
56
56
  children: t.label
57
- }), /* @__PURE__ */ l(n, {
58
- present: m,
59
- children: /* @__PURE__ */ l(h, {
57
+ }), /* @__PURE__ */ f(n, {
58
+ present: h,
59
+ children: /* @__PURE__ */ f(g, {
60
60
  menu: t,
61
- menuId: g,
62
- floatingRef: p,
63
- floatingStyle: v,
61
+ menuId: _,
62
+ floatingRef: m,
63
+ floatingStyle: y,
64
64
  onClose: () => {
65
- a.value = null, d.current?.focus();
65
+ o.value = null, i(l.current);
66
66
  }
67
67
  })
68
68
  })] });
69
69
  }
70
- function h({ menu: n, menuId: r, floatingRef: i, floatingStyle: a, onClose: o }) {
70
+ function g({ menu: n, menuId: r, floatingRef: i, floatingStyle: a, onClose: o }) {
71
71
  let s = (e) => {
72
72
  let t = Array.from(i.current?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") ?? []);
73
73
  if (t.length === 0) return;
74
74
  let n = t.indexOf(e.currentTarget);
75
75
  e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t[t.length - 1]?.focus());
76
76
  };
77
- return /* @__PURE__ */ l(t, {
77
+ return /* @__PURE__ */ f(t, {
78
78
  onDismiss: o,
79
- children: /* @__PURE__ */ l("div", {
79
+ children: /* @__PURE__ */ f("div", {
80
80
  ref: i,
81
81
  id: r,
82
82
  role: "menu",
83
83
  "aria-label": typeof n.label == "string" ? n.label : void 0,
84
84
  className: e.panel,
85
85
  style: a,
86
- children: n.items.map((t) => /* @__PURE__ */ l("div", {
86
+ children: n.items.map((t) => /* @__PURE__ */ f("div", {
87
87
  role: "menuitem",
88
88
  tabIndex: -1,
89
89
  "aria-disabled": t.disabled,
@@ -100,4 +100,4 @@ function h({ menu: n, menuId: r, floatingRef: i, floatingStyle: a, onClose: o })
100
100
  });
101
101
  }
102
102
  //#endregion
103
- export { p as Menubar };
103
+ export { m as Menubar };
@@ -1 +1 @@
1
- @layer cascivo.component{._dialog_t1gwg_2{border-radius:var(--cascivo-radius-overlay);max-height:calc(100dvh - var(--cascivo-space-16));opacity:0;transition:opacity var(--cascivo-motion-exit), scale var(--cascivo-motion-exit), display var(--cascivo-duration-150) allow-discrete, overlay var(--cascivo-duration-150) allow-discrete;background:0 0;border:none;padding:0;overflow:visible;scale:.96}._dialog_t1gwg_2[open]{opacity:1;transition:opacity var(--cascivo-motion-enter), scale var(--cascivo-motion-enter), display var(--cascivo-duration-200) allow-discrete, overlay var(--cascivo-duration-200) allow-discrete;scale:1}@starting-style{._dialog_t1gwg_2[open]{opacity:0;scale:.96}}._dialog_t1gwg_2::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity var(--cascivo-motion-exit), display var(--cascivo-duration-150) allow-discrete, overlay var(--cascivo-duration-150) allow-discrete;background-color:#00000080}._dialog_t1gwg_2[open]::backdrop{opacity:1;transition:opacity var(--cascivo-motion-enter), display var(--cascivo-duration-200) allow-discrete, overlay var(--cascivo-duration-200) allow-discrete}@starting-style{._dialog_t1gwg_2[open]::backdrop{opacity:0}}._dialog_t1gwg_2[data-size=sm]{--_modal-width:24rem}._dialog_t1gwg_2[data-size=md]{--_modal-width:32rem}._dialog_t1gwg_2[data-size=lg]{--_modal-width:48rem}._panel_t1gwg_69{width:var(--_modal-width,32rem);max-width:calc(100vw - var(--cascivo-space-8));background-color:var(--cascivo-color-surface-overlay);border-radius:var(--cascivo-radius-overlay);border:1px solid var(--cascivo-color-border);box-shadow:var(--cascivo-shadow-overlay);overflow:hidden}._header_t1gwg_79{padding:var(--cascivo-space-6);border-block-end:1px solid var(--cascivo-color-border);justify-content:space-between;align-items:center;padding-block-end:var(--cascivo-space-4);display:flex}._dialog_t1gwg_2[data-draggable]{translate:var(--modal-x,0) var(--modal-y,0)}._dialog_t1gwg_2[data-draggable] ._header_t1gwg_79{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}._dialog_t1gwg_2[data-draggable] ._header_t1gwg_79:active{cursor:grabbing}._title_t1gwg_101{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-lg);font-weight:var(--cascivo-font-semibold);color:var(--cascivo-color-text);line-height:var(--cascivo-leading-tight);margin:0}._close_t1gwg_110{width:2rem;height:2rem;font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-muted);border-radius:var(--cascivo-radius-control);cursor:pointer;transition:color var(--cascivo-duration-150) var(--cascivo-ease-out), background-color var(--cascivo-duration-150) var(--cascivo-ease-out);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex}._close_t1gwg_110:hover{color:var(--cascivo-color-text);background-color:var(--cascivo-color-bg-subtle)}._close_t1gwg_110:focus-visible{box-shadow:var(--cascivo-focus-ring);outline:none}._description_t1gwg_138{padding-inline:var(--cascivo-space-6);font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-relaxed);margin:0;padding-block-start:var(--cascivo-space-4)}._body_t1gwg_148{padding:var(--cascivo-space-6)}@media (width<=40rem){._dialog_t1gwg_2{max-block-size:90dvh;margin:0}._panel_t1gwg_69{max-block-size:90dvh;inline-size:100%;max-inline-size:100%;border-start-start-radius:var(--cascivo-radius-overlay);border-start-end-radius:var(--cascivo-radius-overlay);border-end-end-radius:0;border-end-start-radius:0;padding-block-end:env(safe-area-inset-bottom,0);overflow-y:auto}}@media (prefers-reduced-motion:reduce){._dialog_t1gwg_2,._dialog_t1gwg_2[open]{transition:none}}}@media (forced-colors:active){._panel_t1gwg_69{border:1px solid buttontext}._close_t1gwg_110:focus-visible{outline-offset:2px;outline:2px solid highlight}}
1
+ @layer cascivo.component{._dialog_hywey_2{border-radius:var(--cascivo-radius-overlay);max-height:calc(100dvh - var(--cascivo-space-16));opacity:0;transition:opacity var(--cascivo-motion-exit), scale var(--cascivo-motion-exit), display var(--cascivo-duration-150) allow-discrete, overlay var(--cascivo-duration-150) allow-discrete;background:0 0;border:none;padding:0;overflow:visible;scale:.96}._dialog_hywey_2[open]{opacity:1;transition:opacity var(--cascivo-motion-enter), scale var(--cascivo-motion-enter), display var(--cascivo-duration-200) allow-discrete, overlay var(--cascivo-duration-200) allow-discrete;scale:1}@starting-style{._dialog_hywey_2[open]{opacity:0;scale:.96}}._dialog_hywey_2::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity var(--cascivo-motion-exit), display var(--cascivo-duration-150) allow-discrete, overlay var(--cascivo-duration-150) allow-discrete;background-color:#00000080}._dialog_hywey_2[open]::backdrop{opacity:1;transition:opacity var(--cascivo-motion-enter), display var(--cascivo-duration-200) allow-discrete, overlay var(--cascivo-duration-200) allow-discrete}@starting-style{._dialog_hywey_2[open]::backdrop{opacity:0}}._dialog_hywey_2[data-size=sm]{--_modal-width:24rem}._dialog_hywey_2[data-size=md]{--_modal-width:32rem}._dialog_hywey_2[data-size=lg]{--_modal-width:48rem}._panel_hywey_69{width:var(--_modal-width,32rem);max-width:calc(100vw - var(--cascivo-space-8));background-color:var(--cascivo-color-surface-overlay);border-radius:var(--cascivo-radius-overlay);border:1px solid var(--cascivo-color-border);box-shadow:var(--cascivo-shadow-overlay);overflow:hidden}._header_hywey_79{padding:var(--cascivo-space-6);border-block-end:1px solid var(--cascivo-color-border);justify-content:space-between;align-items:center;padding-block-end:var(--cascivo-space-4);display:flex}._dialog_hywey_2[data-draggable]{translate:var(--modal-x,0) var(--modal-y,0)}._dialog_hywey_2[data-draggable] ._header_hywey_79{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}._dialog_hywey_2[data-draggable] ._header_hywey_79:active{cursor:grabbing}._title_hywey_101{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-lg);font-weight:var(--cascivo-font-semibold);color:var(--cascivo-color-text);line-height:var(--cascivo-leading-tight);margin:0}._close_hywey_110{width:2rem;height:2rem;font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-muted);border-radius:var(--cascivo-radius-control);cursor:pointer;transition:color var(--cascivo-duration-150) var(--cascivo-ease-out), background-color var(--cascivo-duration-150) var(--cascivo-ease-out);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex}._close_hywey_110:hover{color:var(--cascivo-color-text);background-color:var(--cascivo-color-bg-subtle)}._close_hywey_110:focus-visible{box-shadow:var(--cascivo-focus-ring);outline:none}._description_hywey_138{padding-inline:var(--cascivo-space-6);font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-relaxed);margin:0;padding-block-start:var(--cascivo-space-4)}._body_hywey_148{gap:var(--cascivo-dialog-body-gap,var(--cascivo-space-5));padding:var(--cascivo-space-6);flex-direction:column;display:flex}._footer_hywey_166{justify-content:flex-end;gap:var(--cascivo-space-2);padding:var(--cascivo-space-4) var(--cascivo-space-6);border-block-start:1px solid var(--cascivo-color-border);flex-wrap:wrap;display:flex}@media (width<=40rem){._dialog_hywey_2{max-block-size:90dvh;margin:0}._panel_hywey_69{max-block-size:90dvh;inline-size:100%;max-inline-size:100%;border-start-start-radius:var(--cascivo-radius-overlay);border-start-end-radius:var(--cascivo-radius-overlay);border-end-end-radius:0;border-end-start-radius:0;padding-block-end:env(safe-area-inset-bottom,0);overflow-y:auto}}@media (prefers-reduced-motion:reduce){._dialog_hywey_2,._dialog_hywey_2[open]{transition:none}}}@media (forced-colors:active){._panel_hywey_69{border:1px solid buttontext}._close_hywey_110:focus-visible{outline-offset:2px;outline:2px solid highlight}}