themelia-react-ui 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +17 -7
  2. package/README.md +9 -13
  3. package/THIRD_PARTY_NOTICES.md +6 -12
  4. package/dist/{auth-ax2BqjrI.js → auth-BGua8ouh.js} +2 -2
  5. package/dist/{auth-ax2BqjrI.js.map → auth-BGua8ouh.js.map} +1 -1
  6. package/dist/base/cascader.js +1 -1
  7. package/dist/base/combobox.js +2 -2
  8. package/dist/base/date-pickers.js +2 -2
  9. package/dist/base/popover-menu.js +1 -1
  10. package/dist/base/popover.js +1 -1
  11. package/dist/base/sheet.js +1 -1
  12. package/dist/base/sidebar.js +1 -1
  13. package/dist/base/value-inputs.js +1 -1
  14. package/dist/blocks/commerce.js +1 -1
  15. package/dist/{combobox-xCQ2RMNE.js → combobox-DaHESuiL.js} +154 -108
  16. package/dist/combobox-DaHESuiL.js.map +1 -0
  17. package/dist/{combobox-C0EQW6dr.js → combobox-Dxo2fAYQ.js} +342 -340
  18. package/dist/combobox-Dxo2fAYQ.js.map +1 -0
  19. package/dist/{comments-BYYlTA8E.js → comments-DD0DUPwJ.js} +4 -4
  20. package/dist/{comments-BYYlTA8E.js.map → comments-DD0DUPwJ.js.map} +1 -1
  21. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  22. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  23. package/dist/components/ui/combobox.d.ts +11 -6
  24. package/dist/components/ui/dialog.d.ts +1 -1
  25. package/dist/components/ui/popover.d.ts +1 -1
  26. package/dist/components/ui/sheet.d.ts +1 -1
  27. package/dist/{date-picker-ay0Pha_a.js → date-picker-B2K3ucWn.js} +2 -2
  28. package/dist/{date-picker-ay0Pha_a.js.map → date-picker-B2K3ucWn.js.map} +1 -1
  29. package/dist/{date-pickers-Ccw8DL2b.js → date-pickers-Ds8gLaoP.js} +3 -3
  30. package/dist/{date-pickers-Ccw8DL2b.js.map → date-pickers-Ds8gLaoP.js.map} +1 -1
  31. package/dist/features/activities.js +2 -2
  32. package/dist/features/async-preview.js +1 -1
  33. package/dist/features/combobox.js +1 -1
  34. package/dist/features/comments.js +1 -1
  35. package/dist/features/data-view.js +2 -2
  36. package/dist/features/email-composer.js +2 -2
  37. package/dist/features/event-calendar.js +1 -1
  38. package/dist/features/filters.js +1 -1
  39. package/dist/features/global-search.js +1 -1
  40. package/dist/features/map.js +1 -1
  41. package/dist/features/media-library.js +1 -1
  42. package/dist/features/mentions.js +1 -1
  43. package/dist/features/overlays.js +1 -1
  44. package/dist/features/products.js +1 -1
  45. package/dist/features/resource-assignment.js +1 -1
  46. package/dist/features/schema-form.js +1 -1
  47. package/dist/features/suggestions.js +1 -1
  48. package/dist/features/theme-tweaker.js +2 -2
  49. package/dist/{filters-BGfvjP4d.js → filters-DJVAveHA.js} +4 -4
  50. package/dist/{filters-BGfvjP4d.js.map → filters-DJVAveHA.js.map} +1 -1
  51. package/dist/{header-CGXuhcRm.js → header-BSfIEWbI.js} +4 -4
  52. package/dist/{header-CGXuhcRm.js.map → header-BSfIEWbI.js.map} +1 -1
  53. package/dist/{hooks-Dkz0K2WT.js → hooks-ClH9thn4.js} +2 -2
  54. package/dist/{hooks-Dkz0K2WT.js.map → hooks-ClH9thn4.js.map} +1 -1
  55. package/dist/layout/auth.js +1 -1
  56. package/dist/layout/header.js +1 -1
  57. package/dist/layout/hooks.js +1 -1
  58. package/dist/layout/page.js +1 -1
  59. package/dist/layout/sidebar.js +2 -2
  60. package/dist/layout/workspace.js +1 -1
  61. package/dist/layout.js +6 -6
  62. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  63. package/dist/{mentions-utuUvH1K.js → mentions-CGlEJ15c.js} +2 -2
  64. package/dist/{mentions-utuUvH1K.js.map → mentions-CGlEJ15c.js.map} +1 -1
  65. package/dist/{overlays-DNWmZrJ4.js → overlays-tMkF-VAN.js} +270 -268
  66. package/dist/overlays-tMkF-VAN.js.map +1 -0
  67. package/dist/{page-Bgl1F560.js → page-CL9YeH_V.js} +2 -2
  68. package/dist/{page-Bgl1F560.js.map → page-CL9YeH_V.js.map} +1 -1
  69. package/dist/{popover-7_m66eYW.js → popover-gnTOhbFM.js} +62 -60
  70. package/dist/popover-gnTOhbFM.js.map +1 -0
  71. package/dist/{popover-menu-B9WWygpa.js → popover-menu-Cn9rUkdc.js} +2 -2
  72. package/dist/{popover-menu-B9WWygpa.js.map → popover-menu-Cn9rUkdc.js.map} +1 -1
  73. package/dist/services/actions.js +1 -1
  74. package/dist/{sheet-CGpB3omz.js → sheet-ijlsjq-n.js} +70 -68
  75. package/dist/sheet-ijlsjq-n.js.map +1 -0
  76. package/dist/{sidebar-CPx_7YBa.js → sidebar-Db6gkh3U.js} +2 -2
  77. package/dist/{sidebar-CPx_7YBa.js.map → sidebar-Db6gkh3U.js.map} +1 -1
  78. package/dist/{sidebar-A0ElHINE.js → sidebar-DkTO4VTO.js} +3 -3
  79. package/dist/{sidebar-A0ElHINE.js.map → sidebar-DkTO4VTO.js.map} +1 -1
  80. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  81. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  82. package/dist/{value-inputs-DXPDjvBU.js → value-inputs-TaX4OjNk.js} +3 -3
  83. package/dist/{value-inputs-DXPDjvBU.js.map → value-inputs-TaX4OjNk.js.map} +1 -1
  84. package/dist/{workspace-Cdrg7k9f.js → workspace-B-OEm3Kf.js} +2 -2
  85. package/dist/{workspace-Cdrg7k9f.js.map → workspace-B-OEm3Kf.js.map} +1 -1
  86. package/docs/consumer-skill/SKILL.md +1 -1
  87. package/docs/consumer-skill/references/agents-md.md +1 -1
  88. package/docs/consumer-skill/references/installation.md +6 -0
  89. package/docs/consumer-skill/references/public-api.json +2 -2
  90. package/docs/consumer-skill/references/tokens.json +1 -1
  91. package/docs/consumer-skill/references/workflows.md +5 -4
  92. package/package.json +3 -3
  93. package/dist/combobox-C0EQW6dr.js.map +0 -1
  94. package/dist/combobox-xCQ2RMNE.js.map +0 -1
  95. package/dist/overlays-DNWmZrJ4.js.map +0 -1
  96. package/dist/popover-7_m66eYW.js.map +0 -1
  97. package/dist/sheet-CGpB3omz.js.map +0 -1
@@ -9,74 +9,76 @@ import { t as c } from "./slot-CLF9kLrS.js";
9
9
  import { t as l } from "./button-DVzspB_G.js";
10
10
  import { a as u, r as d } from "./surface-recipes-BKRVW8Os.js";
11
11
  import { t as f } from "./overlay.recipes-8GHqmlb4.js";
12
- import * as p from "react";
13
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
- import { XIcon as g } from "lucide-react";
15
- import { Dialog as _ } from "@base-ui/react/dialog";
12
+ import { t as p } from "./use-popup-focus-recovery-C0QPvgOR.js";
13
+ import * as m from "react";
14
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
15
+ import { XIcon as _ } from "lucide-react";
16
+ import { Dialog as v } from "@base-ui/react/dialog";
16
17
  //#region src/lib/overlay-anatomy-recipes.ts
17
- var v = {
18
+ var y = {
18
19
  close: n.overlayClose,
19
20
  header: n.overlayHeader,
20
21
  headerCentered: n.overlayHeaderCentered
21
22
  };
22
23
  //#endregion
23
24
  //#region src/components/ui/sheet.tsx
24
- function y({ ...e }) {
25
- return /* @__PURE__ */ m(_.Root, {
25
+ function b({ ...e }) {
26
+ return /* @__PURE__ */ h(v.Root, {
26
27
  "data-slot": "sheet",
27
28
  modal: "trap-focus",
28
29
  ...e
29
30
  });
30
31
  }
31
- function b({ asChild: e = !1, ...t }) {
32
- let n = e ? /* @__PURE__ */ m(c, {}) : void 0;
33
- return /* @__PURE__ */ m(_.Trigger, {
32
+ function x({ asChild: e = !1, ...t }) {
33
+ let n = e ? /* @__PURE__ */ h(c, {}) : void 0;
34
+ return /* @__PURE__ */ h(v.Trigger, {
34
35
  "data-slot": "sheet-trigger",
35
36
  render: n,
36
37
  ...t
37
38
  });
38
39
  }
39
- function x({ asChild: e = !1, ...t }) {
40
- let n = e ? /* @__PURE__ */ m(c, {}) : void 0;
41
- return /* @__PURE__ */ m(_.Close, {
40
+ function S({ asChild: e = !1, ...t }) {
41
+ let n = e ? /* @__PURE__ */ h(c, {}) : void 0;
42
+ return /* @__PURE__ */ h(v.Close, {
42
43
  "data-slot": "sheet-close",
43
44
  render: n,
44
45
  ...t
45
46
  });
46
47
  }
47
- function S({ container: t, ...n }) {
48
+ function C({ container: t, ...n }) {
48
49
  let r = e(t);
49
- return /* @__PURE__ */ m(_.Portal, {
50
+ return /* @__PURE__ */ h(v.Portal, {
50
51
  container: r,
51
52
  "data-slot": "sheet-portal",
52
53
  ...n
53
54
  });
54
55
  }
55
- function C({ className: e, ...n }) {
56
- return /* @__PURE__ */ m(_.Backdrop, {
56
+ function w({ className: e, ...n }) {
57
+ return /* @__PURE__ */ h(v.Backdrop, {
57
58
  "data-slot": "sheet-overlay",
58
59
  className: t(f, s.backdrop, e),
59
60
  ...n
60
61
  });
61
62
  }
62
- function w({ className: n, container: r, children: i, side: a = "right", showCloseButton: o = !0, ...c }) {
63
- let u = e(r);
64
- return /* @__PURE__ */ h(S, {
65
- container: u,
66
- children: [/* @__PURE__ */ m(C, {}), /* @__PURE__ */ h(_.Popup, {
63
+ function T({ className: n, container: r, children: i, side: a = "right", showCloseButton: o = !0, onFocusCapture: c, ...u }) {
64
+ let d = e(r), f = p(c);
65
+ return /* @__PURE__ */ g(C, {
66
+ container: d,
67
+ children: [/* @__PURE__ */ h(w, {}), /* @__PURE__ */ g(v.Popup, {
67
68
  "data-slot": "sheet-content",
68
69
  "data-side": a,
69
70
  className: t(s.drawer, "border-border bg-background fixed z-50 flex flex-col gap-space-xl bg-clip-padding text-sm shadow-lg data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", n),
70
- ...c,
71
- children: [i, !!o && /* @__PURE__ */ h(_.Close, {
71
+ ...u,
72
+ onFocusCapture: f,
73
+ children: [i, !!o && /* @__PURE__ */ g(v.Close, {
72
74
  "data-slot": "sheet-close",
73
- render: /* @__PURE__ */ m(l, {
75
+ render: /* @__PURE__ */ h(l, {
74
76
  variant: "ghost",
75
77
  "data-overlay-close": "",
76
- className: v.close,
78
+ className: y.close,
77
79
  size: "icon-sm"
78
80
  }),
79
- children: [/* @__PURE__ */ m(g, {}), /* @__PURE__ */ m("span", {
81
+ children: [/* @__PURE__ */ h(_, {}), /* @__PURE__ */ h("span", {
80
82
  className: "sr-only",
81
83
  children: "Close"
82
84
  })]
@@ -84,32 +86,32 @@ function w({ className: n, container: r, children: i, side: a = "right", showClo
84
86
  })]
85
87
  });
86
88
  }
87
- function T({ className: e, ...n }) {
88
- return /* @__PURE__ */ m("div", {
89
+ function E({ className: e, ...n }) {
90
+ return /* @__PURE__ */ h("div", {
89
91
  "data-slot": "sheet-header",
90
92
  className: t("flex flex-col", e),
91
93
  ...n
92
94
  });
93
95
  }
94
- function E({ className: e, ...n }) {
95
- return /* @__PURE__ */ m("div", {
96
+ function D({ className: e, ...n }) {
97
+ return /* @__PURE__ */ h("div", {
96
98
  "data-slot": "sheet-footer",
97
99
  className: t("mt-auto flex flex-col", e),
98
100
  ...n
99
101
  });
100
102
  }
101
- function D({ className: e, asChild: n = !1, ...r }) {
102
- let i = n ? /* @__PURE__ */ m(c, {}) : void 0;
103
- return /* @__PURE__ */ m(_.Title, {
103
+ function O({ className: e, asChild: n = !1, ...r }) {
104
+ let i = n ? /* @__PURE__ */ h(c, {}) : void 0;
105
+ return /* @__PURE__ */ h(v.Title, {
104
106
  "data-slot": "sheet-title",
105
107
  render: i,
106
108
  className: t("text-foreground font-medium", e),
107
109
  ...r
108
110
  });
109
111
  }
110
- function O({ className: e, asChild: n = !1, ...r }) {
111
- let i = n ? /* @__PURE__ */ m(c, {}) : void 0;
112
- return /* @__PURE__ */ m(_.Description, {
112
+ function k({ className: e, asChild: n = !1, ...r }) {
113
+ let i = n ? /* @__PURE__ */ h(c, {}) : void 0;
114
+ return /* @__PURE__ */ h(v.Description, {
113
115
  "data-slot": "sheet-description",
114
116
  render: i,
115
117
  className: t("text-muted-foreground text-sm", e),
@@ -118,44 +120,44 @@ function O({ className: e, asChild: n = !1, ...r }) {
118
120
  }
119
121
  //#endregion
120
122
  //#region src/components/base/sheet/sheet.tsx
121
- function k(e) {
123
+ function A(e) {
122
124
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
123
125
  }
124
- var A = t(i.base, o.semibold, a.snug), j = y, M = p.forwardRef(function({ className: e, ...n }, r) {
125
- return /* @__PURE__ */ m(b, {
126
+ var j = t(i.base, o.semibold, a.snug), M = b, N = m.forwardRef(function({ className: e, ...n }, r) {
127
+ return /* @__PURE__ */ h(x, {
126
128
  ref: r,
127
129
  className: t("sheet-trigger--component", e),
128
130
  ...n
129
131
  });
130
132
  });
131
- M.displayName = "SheetTrigger";
132
- var N = p.forwardRef(function({ className: e, ...n }, r) {
133
- return /* @__PURE__ */ m(x, {
133
+ N.displayName = "SheetTrigger";
134
+ var P = m.forwardRef(function({ className: e, ...n }, r) {
135
+ return /* @__PURE__ */ h(S, {
134
136
  ref: r,
135
137
  className: t("sheet-close--component active:translate-y-0!", e),
136
138
  ...n
137
139
  });
138
140
  });
139
- N.displayName = "SheetClose";
140
- var P = p.forwardRef(function({ className: e, ...n }, r) {
141
- return /* @__PURE__ */ m(w, {
141
+ P.displayName = "SheetClose";
142
+ var F = m.forwardRef(function({ className: e, ...n }, r) {
143
+ return /* @__PURE__ */ h(T, {
142
144
  ref: r,
143
145
  className: t("sheet-content--component min-h-0 gap-0 overflow-hidden bg-popover p-0 text-popover-foreground [&_[data-slot=sheet-close]]:active:translate-y-0!", u.modal.edge, "data-[side=top]:max-h-[85vh] data-[side=bottom]:max-h-[85vh]", e),
144
146
  ...n
145
147
  });
146
148
  });
147
- P.displayName = "SheetContent";
148
- var F = p.forwardRef(function({ className: e, textGap: n = "normal", ...r }, i) {
149
- return /* @__PURE__ */ m(T, {
149
+ F.displayName = "SheetContent";
150
+ var I = m.forwardRef(function({ className: e, textGap: n = "normal", ...r }, i) {
151
+ return /* @__PURE__ */ h(E, {
150
152
  ref: i,
151
153
  "data-modal-region": "",
152
- className: t("sheet-header--component", d.header, v.header, n === "dense" ? "gap-dense" : "gap-normal", e),
154
+ className: t("sheet-header--component", d.header, y.header, n === "dense" ? "gap-dense" : "gap-normal", e),
153
155
  ...r
154
156
  });
155
157
  });
156
- F.displayName = "SheetHeader";
157
- var I = p.forwardRef(function({ className: e, ...n }, r) {
158
- return /* @__PURE__ */ m("div", {
158
+ I.displayName = "SheetHeader";
159
+ var L = m.forwardRef(function({ className: e, ...n }, r) {
160
+ return /* @__PURE__ */ h("div", {
159
161
  ref: r,
160
162
  "data-slot": "sheet-body",
161
163
  "data-modal-region": "",
@@ -163,22 +165,22 @@ var I = p.forwardRef(function({ className: e, ...n }, r) {
163
165
  ...n
164
166
  });
165
167
  });
166
- I.displayName = "SheetBody";
167
- var L = p.forwardRef(function({ className: e, ...n }, r) {
168
- return /* @__PURE__ */ m(E, {
168
+ L.displayName = "SheetBody";
169
+ var R = m.forwardRef(function({ className: e, ...n }, r) {
170
+ return /* @__PURE__ */ h(D, {
169
171
  ref: r,
170
172
  "data-modal-region": "",
171
173
  className: t("sheet-footer--component mt-auto flex-row items-center justify-end", d.footer, e),
172
174
  ...n
173
175
  });
174
176
  });
175
- L.displayName = "SheetFooter";
176
- var R = p.forwardRef(function({ children: e, className: n, ...i }, a) {
177
- return /* @__PURE__ */ m(D, {
177
+ R.displayName = "SheetFooter";
178
+ var z = m.forwardRef(function({ children: e, className: n, ...i }, a) {
179
+ return /* @__PURE__ */ h(O, {
178
180
  ref: a,
179
- className: t("sheet-title--component m-0 text-inherit", A, n),
181
+ className: t("sheet-title--component m-0 text-inherit", j, n),
180
182
  ...i,
181
- children: k(e) ? /* @__PURE__ */ m(r, {
183
+ children: A(e) ? /* @__PURE__ */ h(r, {
182
184
  tag: "span",
183
185
  type: "inherit",
184
186
  size: "base",
@@ -189,13 +191,13 @@ var R = p.forwardRef(function({ children: e, className: n, ...i }, a) {
189
191
  }) : e
190
192
  });
191
193
  });
192
- R.displayName = "SheetTitle";
193
- var z = p.forwardRef(function({ children: e, className: n, ...i }, a) {
194
- return /* @__PURE__ */ m(O, {
194
+ z.displayName = "SheetTitle";
195
+ var B = m.forwardRef(function({ children: e, className: n, ...i }, a) {
196
+ return /* @__PURE__ */ h(k, {
195
197
  ref: a,
196
198
  className: t("sheet-description--component m-0", n),
197
199
  ...i,
198
- children: k(e) ? /* @__PURE__ */ m(r, {
200
+ children: A(e) ? /* @__PURE__ */ h(r, {
199
201
  tag: "span",
200
202
  type: "secondary",
201
203
  lineHeight: "relaxed",
@@ -204,8 +206,8 @@ var z = p.forwardRef(function({ children: e, className: n, ...i }, a) {
204
206
  }) : e
205
207
  });
206
208
  });
207
- z.displayName = "SheetDescription";
209
+ B.displayName = "SheetDescription";
208
210
  //#endregion
209
- export { z as a, R as c, P as i, M as l, I as n, L as o, N as r, F as s, j as t, v as u };
211
+ export { B as a, z as c, F as i, N as l, L as n, R as o, P as r, I as s, M as t, y as u };
210
212
 
211
- //# sourceMappingURL=sheet-CGpB3omz.js.map
213
+ //# sourceMappingURL=sheet-ijlsjq-n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-ijlsjq-n.js","names":["Sheet","SheetPrimitive","SheetTrigger","SheetClose","SheetContent","SheetHeader","SheetFooter","SheetTitle","SheetDescription","SheetPrimitive","React","SheetTriggerPrimitive","SheetClosePrimitive","SheetContentPrimitive","SheetHeaderPrimitive","SheetFooterPrimitive","SheetTitlePrimitive","SheetDescriptionPrimitive","useThemePortalContainer","affordanceGeometry","Text","textSizes","textLineHeights","textWeights","motionRecipes","Slot","Button","surfaceDividerRecipes","modalRegionRecipes","modalBackdropRecipe","usePopupFocusRecovery","React$1","overlayAnatomyRecipes","Sheet$1","props","Dialog","SheetTrigger$1","renderSlot","asChild","SheetClose$1","SheetPortal","resolvedContainer","container","SheetOverlay","cn","className","SheetContent$1","recoverFocus","onFocusCapture","side","children","showCloseButton","XIcon","SheetHeader$1","SheetFooter$1","SheetTitle$1","SheetDescription$1","isSimpleText","value","titleTypography","Sheet","SheetTrigger","SheetClose","SheetContent","SheetHeader","textGap","SheetBody","SheetFooter","SheetTitle","SheetDescription"],"sources":["../src/lib/overlay-anatomy-recipes.ts","../src/components/ui/sheet.tsx","../src/components/base/sheet/sheet.tsx"],"sourcesContent":["import { affordanceGeometry } from './affordance-geometry.generated';\n/** Dismiss controls follow the surface's logical inset; headers reserve the\n * actual small-action width plus an action gap only when a close control exists.\n * These are derived recipes, not additional theme settings.\n */\nexport const overlayAnatomyRecipes = {\n\tclose: affordanceGeometry.overlayClose,\n\theader: affordanceGeometry.overlayHeader,\n\theaderCentered: affordanceGeometry.overlayHeaderCentered,\n} as const;\n","\"use client\";\n\nimport { overlayAnatomyRecipes } from '../../lib/overlay-anatomy-recipes';\nimport { motionRecipes } from '../../lib/motion-recipes';\nimport { modalBackdropRecipe } from './overlay.recipes';\nimport { usePopupFocusRecovery } from '../../lib/use-popup-focus-recovery';\n\nimport { useThemePortalContainer, type ThemePortalContainer } from '../../lib/theme-scope';\n\nimport { Dialog as SheetPrimitive } from \"@base-ui/react/dialog\"\nimport { XIcon } from \"lucide-react\"\nimport * as React from \"react\"\n\nimport { Button } from \"./button\"\nimport { Slot } from \"./slot\"\nimport { cn } from \"../../lib/utils\"\n\nfunction Sheet({ ...props }: SheetPrimitive.Root.Props) {\n return <SheetPrimitive.Root data-slot=\"sheet\" modal=\"trap-focus\" {...props} />\n}\n\nfunction SheetTrigger({\n asChild = false,\n ...props\n}: SheetPrimitive.Trigger.Props & { asChild?: boolean }) {\n const renderSlot = asChild ? <Slot /> : undefined\n\n return (\n <SheetPrimitive.Trigger\n data-slot=\"sheet-trigger\"\n render={renderSlot}\n {...props}\n />\n )\n}\n\nfunction SheetClose({\n asChild = false,\n ...props\n}: SheetPrimitive.Close.Props & { asChild?: boolean }) {\n const renderSlot = asChild ? <Slot /> : undefined\n\n return (\n <SheetPrimitive.Close\n data-slot=\"sheet-close\"\n render={renderSlot}\n {...props}\n />\n )\n}\n\nfunction SheetPortal({ container, ...props }: SheetPrimitive.Portal.Props) {\n const resolvedContainer = useThemePortalContainer(container)\n return <SheetPrimitive.Portal container={resolvedContainer} data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {\n return (\n <SheetPrimitive.Backdrop\n data-slot=\"sheet-overlay\"\n className={cn(modalBackdropRecipe, motionRecipes.backdrop, className)}\n {...props}\n />\n )\n}\n\nfunction SheetContent({\n className,\n container,\n children,\n side = \"right\",\n showCloseButton = true,\n onFocusCapture,\n ...props\n}: SheetPrimitive.Popup.Props & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n showCloseButton?: boolean\n} & { container?: ThemePortalContainer }) {\n const resolvedContainer = useThemePortalContainer(container)\n const recoverFocus = usePopupFocusRecovery(onFocusCapture)\n return (\n <SheetPortal container={resolvedContainer}>\n <SheetOverlay />\n <SheetPrimitive.Popup\n data-slot=\"sheet-content\"\n data-side={side}\n className={cn(\n motionRecipes.drawer,\n \"border-border bg-background fixed z-50 flex flex-col gap-space-xl bg-clip-padding text-sm shadow-lg data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm\",\n className\n )}\n {...props}\n onFocusCapture={recoverFocus}\n >\n {children}\n {!!showCloseButton && (\n <SheetPrimitive.Close\n data-slot=\"sheet-close\"\n render={\n <Button\n variant=\"ghost\"\n data-overlay-close=\"\"\n className={overlayAnatomyRecipes.close}\n size=\"icon-sm\"\n />\n }\n >\n <XIcon\n />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n )}\n </SheetPrimitive.Popup>\n </SheetPortal>\n )\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn(\"flex flex-col\", className)}\n {...props}\n />\n )\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\"mt-auto flex flex-col\", className)}\n {...props}\n />\n )\n}\n\nfunction SheetTitle({\n className,\n asChild = false,\n ...props\n}: SheetPrimitive.Title.Props & { asChild?: boolean }) {\n const renderSlot = asChild ? <Slot /> : undefined\n\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n render={renderSlot}\n className={cn(\"text-foreground font-medium\", className)}\n {...props}\n />\n )\n}\n\nfunction SheetDescription({\n className,\n asChild = false,\n ...props\n}: SheetPrimitive.Description.Props & { asChild?: boolean }) {\n const renderSlot = asChild ? <Slot /> : undefined\n\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n render={renderSlot}\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n","import { modalRegionRecipes, surfaceDividerRecipes } from '../../../lib/surface-recipes';\nimport { overlayAnatomyRecipes } from '../../../lib/overlay-anatomy-recipes';\nimport type { TextGap } from '../structure';\n/**\n * Sheet — internal edge-anchored modal anatomy behind `ActionDrawer` and the\n * mobile sidebar drawer.\n *\n * Applications use `ActionDrawer` from `themelia-react-ui/features/overlays`,\n * which owns the lifecycle, focus, dismissal and action contract; the\n * `themelia-react-ui/base/sheet` entrypoint remains only as a deprecated\n * compatibility surface. The panel shares the modal geometry of the internal\n * Dialog wrapper: header, scrolling body and footer each own their inset, one\n * rule separates adjacent visible regions, and one edge rule separates the\n * panel from the page.\n */\nimport * as React from 'react';\n\nimport {\n\tSheet as SheetPrimitive,\n\tSheetClose as SheetClosePrimitive,\n\tSheetContent as SheetContentPrimitive,\n\tSheetDescription as SheetDescriptionPrimitive,\n\tSheetFooter as SheetFooterPrimitive,\n\tSheetHeader as SheetHeaderPrimitive,\n\tSheetTitle as SheetTitlePrimitive,\n\tSheetTrigger as SheetTriggerPrimitive,\n} from '../../ui/sheet';\nimport { Text } from '../../typography';\nimport { textLineHeights, textSizes, textWeights } from '../../typography/text.styles';\nimport { cn } from '../../../lib/utils';\n\nfunction isSimpleText(value: React.ReactNode): value is string | number | bigint {\n\treturn typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint';\n}\n\n/** Same title role as Dialog, set on the element so its line box matches the Text inside. */\nconst titleTypography = cn(textSizes.base, textWeights.semibold, textLineHeights.snug);\n\nexport const Sheet = SheetPrimitive;\n\nexport const SheetTrigger = React.forwardRef<\n\tReact.ElementRef<typeof SheetTriggerPrimitive>,\n\tReact.ComponentPropsWithoutRef<typeof SheetTriggerPrimitive>\n>(function SheetTrigger({ className, ...props }, ref) {\n\treturn (\n\t\t<SheetTriggerPrimitive\n\t\t\tref={ref}\n\t\t\tclassName={cn('sheet-trigger--component', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nSheetTrigger.displayName = 'SheetTrigger';\n\nexport const SheetClose = React.forwardRef<\n\tReact.ElementRef<typeof SheetClosePrimitive>,\n\tReact.ComponentPropsWithoutRef<typeof SheetClosePrimitive>\n>(function SheetClose({ className, ...props }, ref) {\n\treturn (\n\t\t<SheetClosePrimitive\n\t\t\tref={ref}\n\t\t\tclassName={cn('sheet-close--component active:translate-y-0!', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nSheetClose.displayName = 'SheetClose';\n\nexport const SheetContent = React.forwardRef<\n\tReact.ElementRef<typeof SheetContentPrimitive>,\n\tReact.ComponentPropsWithoutRef<typeof SheetContentPrimitive>\n>(function SheetContent({ className, ...props }, ref) {\n\treturn (\n\t\t<SheetContentPrimitive\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t// The shell is flush: each region owns its inset once and the rules\n\t\t\t\t// between regions run edge to edge. One rule marks the open edge.\n\t\t\t\t'sheet-content--component min-h-0 gap-0 overflow-hidden bg-popover p-0 text-popover-foreground [&_[data-slot=sheet-close]]:active:translate-y-0!',\n\t\t\t\tsurfaceDividerRecipes.modal.edge,\n\t\t\t\t'data-[side=top]:max-h-[85vh] data-[side=bottom]:max-h-[85vh]',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nSheetContent.displayName = 'SheetContent';\n\nexport const SheetHeader = React.forwardRef<\n\tHTMLDivElement,\n\tReact.ComponentPropsWithoutRef<typeof SheetHeaderPrimitive> & { textGap?: TextGap }\n>(function SheetHeader({ className, textGap = 'normal', ...props }, ref) {\n\treturn (\n\t\t<SheetHeaderPrimitive\n\t\t\tref={ref}\n\t\t\tdata-modal-region=\"\"\n\t\t\tclassName={cn(\n\t\t\t\t'sheet-header--component', modalRegionRecipes.header,\n\t\t\t\toverlayAnatomyRecipes.header,\n\t\t\t\ttextGap === 'dense' ? 'gap-dense' : 'gap-normal',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nSheetHeader.displayName = 'SheetHeader';\n\n/** Scroll-owning content region between the pinned sheet header and footer. */\nexport const SheetBody = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n\tfunction SheetBody({ className, ...props }, ref) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"sheet-body\"\n\t\t\t\tdata-modal-region=\"\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'sheet-body--component', modalRegionRecipes.body,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\n\nSheetBody.displayName = 'SheetBody';\n\nexport const SheetFooter = React.forwardRef<\n\tHTMLDivElement,\n\tReact.ComponentPropsWithoutRef<typeof SheetFooterPrimitive>\n>(function SheetFooter({ className, ...props }, ref) {\n\treturn (\n\t\t<SheetFooterPrimitive\n\t\t\tref={ref}\n\t\t\tdata-modal-region=\"\"\n\t\t\tclassName={cn(\n\t\t\t\t'sheet-footer--component mt-auto flex-row items-center justify-end', modalRegionRecipes.footer,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\n\nSheetFooter.displayName = 'SheetFooter';\n\nexport const SheetTitle = React.forwardRef<\n\tReact.ElementRef<typeof SheetTitlePrimitive>,\n\tReact.ComponentPropsWithoutRef<typeof SheetTitlePrimitive>\n>(function SheetTitle({ children, className, ...props }, ref) {\n\treturn (\n\t\t<SheetTitlePrimitive\n\t\t\tref={ref}\n\t\t\tclassName={cn('sheet-title--component m-0 text-inherit', titleTypography, className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{isSimpleText(children) ? (\n\t\t\t\t<Text\n\t\t\t\t\ttag=\"span\"\n\t\t\t\t\ttype=\"inherit\"\n\t\t\t\t\tsize=\"base\"\n\t\t\t\t\tweight=\"semibold\"\n\t\t\t\t\tlineHeight=\"snug\"\n\t\t\t\t\tclassName=\"sheet-title--text\"\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Text>\n\t\t\t) : children}\n\t\t</SheetTitlePrimitive>\n\t);\n});\n\nSheetTitle.displayName = 'SheetTitle';\n\nexport const SheetDescription = React.forwardRef<\n\tReact.ElementRef<typeof SheetDescriptionPrimitive>,\n\tReact.ComponentPropsWithoutRef<typeof SheetDescriptionPrimitive>\n>(function SheetDescription({ children, className, ...props }, ref) {\n\treturn (\n\t\t<SheetDescriptionPrimitive\n\t\t\tref={ref}\n\t\t\tclassName={cn('sheet-description--component m-0', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{isSimpleText(children) ? (\n\t\t\t\t<Text\n\t\t\t\t\ttag=\"span\"\n\t\t\t\t\ttype=\"secondary\"\n\t\t\t\t\tlineHeight=\"relaxed\"\n\t\t\t\t\tclassName=\"sheet-description--text\"\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Text>\n\t\t\t) : children}\n\t\t</SheetDescriptionPrimitive>\n\t);\n});\n\nSheetDescription.displayName = 'SheetDescription';\n"],"mappings":";;;;;;;;;;;;;;;;;AAKA,IAAagC,IAAwB;CACpC,OAAOb,EAAmB;CAC1B,QAAQA,EAAmB;CAC3B,gBAAgBA,EAAmB;AACpC;;;ACQA,SAASnB,EAAM,EAAE,GAAGkC,KAAoC;CACtD,OAAO,kBAACjC,EAAe,MAAhB;EAAqB,aAAU;EAAQ,OAAM;EAAa,GAAIiC;CAAQ,CAAA;AAC/E;AAEA,SAAShC,EAAa,EACpB,aAAU,IACV,GAAGgC,KACoD;CACvD,IAAMG,IAAaC,IAAU,kBAACb,GAAD,CAAO,CAAA,IAAI,KAAA;CAExC,OACE,kBAACxB,EAAe,SAAhB;EACE,aAAU;EACV,QAAQoC;EACR,GAAIH;CACL,CAAA;AAEL;AAEA,SAAS/B,EAAW,EAClB,aAAU,IACV,GAAG+B,KACkD;CACrD,IAAMG,IAAaC,IAAU,kBAACb,GAAD,CAAO,CAAA,IAAI,KAAA;CAExC,OACE,kBAACxB,EAAe,OAAhB;EACE,aAAU;EACV,QAAQoC;EACR,GAAI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AamB,IAAmB3D,EAAM,WAGpC,SAA0B,EAAE,aAAU,cAAW,GAAGwB,KAAS,GAAK;CACnE,OACC,kBAACjB,GAAD;EACM;EACL,WAAW2B,EAAG,oCAAoCC,CAAS;EAC3D,GAAIX;EAEH,UAAAuB,EAAaP,CAAQ,IACrB,kBAAC9B,GAAD;GACC,KAAI;GACJ,MAAK;GACL,YAAW;GACX,WAAU;GAET;EACI,CAAA,IACH8B;CACsB,CAAA;AAE7B,CAAC;AAED,EAAiB,cAAc"}
@@ -2,7 +2,7 @@
2
2
  import { useStrings as e } from "./lib/strings.js";
3
3
  import { t } from "./utils-BRhFDwuU.js";
4
4
  import { t as n } from "./affordance-geometry.generated-tF36bREk.js";
5
- import { a as r, c as i, i as a, s as o, t as s } from "./sheet-CGpB3omz.js";
5
+ import { a as r, c as i, i as a, s as o, t as s } from "./sheet-ijlsjq-n.js";
6
6
  import { t as c } from "./separator-Bom7NsGO.js";
7
7
  import { c as l, o as u } from "./typography-UTnveOEy.js";
8
8
  import { t as d } from "./focus-recipes-B653VaLq.js";
@@ -616,4 +616,4 @@ function Ve() {
616
616
  //#endregion
617
617
  export { Ie as C, j as D, Ve as E, De as S, Be as T, Ne as _, Te as a, ve as b, be as c, Oe as d, Ae as f, Me as g, ke as h, Ce as i, Ee as l, Le as m, Se as n, we as o, je as p, xe as r, ze as s, ye as t, $ as u, Re as v, q as w, Fe as x, Pe as y };
618
618
 
619
- //# sourceMappingURL=sidebar-CPx_7YBa.js.map
619
+ //# sourceMappingURL=sidebar-Db6gkh3U.js.map