@sdxc/ui 2026.11.1 → 2026.11.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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/app/app-shell-toggle.d.ts +31 -0
  3. package/dist/app/app-shell-toggle.js +43 -0
  4. package/dist/app/app-shell.d.ts +131 -0
  5. package/dist/app/app-shell.js +542 -0
  6. package/dist/app/auto-refresh.d.ts +104 -0
  7. package/dist/app/auto-refresh.js +126 -0
  8. package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
  9. package/dist/app/behaviors/refresh-schedule.js +95 -0
  10. package/dist/app/behaviors/shortcuts.d.ts +175 -0
  11. package/dist/app/behaviors/shortcuts.js +401 -0
  12. package/dist/app/behaviors/toaster.d.ts +31 -2
  13. package/dist/app/behaviors/toaster.js +62 -5
  14. package/dist/app/chart.d.ts +62 -8
  15. package/dist/app/chart.js +207 -9
  16. package/dist/app/command-palette.d.ts +132 -0
  17. package/dist/app/command-palette.js +181 -0
  18. package/dist/app/danger-zone.d.ts +66 -0
  19. package/dist/app/danger-zone.js +66 -0
  20. package/dist/app/detail-sheet.d.ts +119 -0
  21. package/dist/app/detail-sheet.js +173 -0
  22. package/dist/app/drop-zone.d.ts +2 -1
  23. package/dist/app/drop-zone.js +6 -3
  24. package/dist/app/editor-layout.d.ts +69 -0
  25. package/dist/app/editor-layout.js +143 -0
  26. package/dist/app/empty.d.ts +56 -19
  27. package/dist/app/empty.js +129 -22
  28. package/dist/app/filter-bar.d.ts +169 -0
  29. package/dist/app/filter-bar.js +346 -0
  30. package/dist/app/index.d.ts +51 -0
  31. package/dist/app/index.js +51 -0
  32. package/dist/app/keyboard-help.d.ts +66 -0
  33. package/dist/app/keyboard-help.js +56 -0
  34. package/dist/app/mixins/app-shell-controls.d.ts +46 -0
  35. package/dist/app/mixins/app-shell-controls.js +131 -0
  36. package/dist/app/mixins/auto-refresh.d.ts +29 -0
  37. package/dist/app/mixins/auto-refresh.js +66 -0
  38. package/dist/app/mixins/command-palette.d.ts +56 -0
  39. package/dist/app/mixins/command-palette.js +297 -0
  40. package/dist/app/mixins/copy-permalink.d.ts +26 -0
  41. package/dist/app/mixins/copy-permalink.js +54 -0
  42. package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
  43. package/dist/app/mixins/detail-sheet-keys.js +88 -0
  44. package/dist/app/mixins/escape-link.d.ts +17 -0
  45. package/dist/app/mixins/escape-link.js +35 -0
  46. package/dist/app/mixins/keyboard-help.d.ts +38 -0
  47. package/dist/app/mixins/keyboard-help.js +51 -0
  48. package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
  49. package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
  50. package/dist/app/mixins/range-picker-keys.d.ts +18 -0
  51. package/dist/app/mixins/range-picker-keys.js +94 -0
  52. package/dist/app/mixins/row-navigation.d.ts +85 -0
  53. package/dist/app/mixins/row-navigation.js +208 -0
  54. package/dist/app/mixins/save-bar-sync.d.ts +27 -0
  55. package/dist/app/mixins/save-bar-sync.js +106 -0
  56. package/dist/app/mixins/save-shortcut.d.ts +47 -0
  57. package/dist/app/mixins/save-shortcut.js +101 -0
  58. package/dist/app/mixins/save-status-sync.d.ts +77 -0
  59. package/dist/app/mixins/save-status-sync.js +159 -0
  60. package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
  61. package/dist/app/mixins/selection-bar-sync.js +151 -0
  62. package/dist/app/mixins/split-view.d.ts +66 -0
  63. package/dist/app/mixins/split-view.js +319 -0
  64. package/dist/app/mixins/status-strip-keys.d.ts +17 -0
  65. package/dist/app/mixins/status-strip-keys.js +79 -0
  66. package/dist/app/mixins/submit-on-change.d.ts +16 -0
  67. package/dist/app/mixins/submit-on-change.js +28 -0
  68. package/dist/app/mixins/table-selection.d.ts +39 -0
  69. package/dist/app/mixins/table-selection.js +272 -0
  70. package/dist/app/mixins/toast-queue.d.ts +36 -0
  71. package/dist/app/mixins/toast-queue.js +77 -0
  72. package/dist/app/mixins/toast-stack.d.ts +20 -0
  73. package/dist/app/mixins/toast-stack.js +55 -0
  74. package/dist/app/optimistic-toggle.d.ts +48 -0
  75. package/dist/app/optimistic-toggle.js +38 -0
  76. package/dist/app/page-header.d.ts +71 -0
  77. package/dist/app/page-header.js +249 -0
  78. package/dist/app/range-picker.d.ts +102 -0
  79. package/dist/app/range-picker.js +118 -0
  80. package/dist/app/save-bar.d.ts +54 -0
  81. package/dist/app/save-bar.js +64 -0
  82. package/dist/app/save-status.d.ts +50 -0
  83. package/dist/app/save-status.js +54 -0
  84. package/dist/app/selection-bar.d.ts +101 -0
  85. package/dist/app/selection-bar.js +157 -0
  86. package/dist/app/settings-layout.d.ts +70 -0
  87. package/dist/app/settings-layout.js +112 -0
  88. package/dist/app/settings-section.d.ts +140 -0
  89. package/dist/app/settings-section.js +182 -0
  90. package/dist/app/skeleton.d.ts +47 -4
  91. package/dist/app/skeleton.js +149 -2
  92. package/dist/app/sparkline.d.ts +61 -0
  93. package/dist/app/sparkline.js +145 -0
  94. package/dist/app/split-view.d.ts +154 -0
  95. package/dist/app/split-view.js +272 -0
  96. package/dist/app/stat-card.d.ts +109 -0
  97. package/dist/app/stat-card.js +379 -0
  98. package/dist/app/status-strip.d.ts +70 -0
  99. package/dist/app/status-strip.js +155 -0
  100. package/dist/app/styles/action-row.d.ts +41 -0
  101. package/dist/app/styles/action-row.js +59 -0
  102. package/dist/app/styles/stat-delta.d.ts +29 -0
  103. package/dist/app/styles/stat-delta.js +36 -0
  104. package/dist/app/styles/toast-stack.d.ts +21 -0
  105. package/dist/app/styles/toast-stack.js +54 -0
  106. package/dist/app/table.d.ts +199 -24
  107. package/dist/app/table.js +640 -36
  108. package/dist/app/toast.d.ts +105 -5
  109. package/dist/app/toast.js +89 -17
  110. package/dist/app/toasts.d.ts +49 -0
  111. package/dist/app/toasts.js +103 -0
  112. package/dist/app/utils/app-shell-cookie.d.ts +21 -0
  113. package/dist/app/utils/app-shell-cookie.js +33 -0
  114. package/dist/app/utils/chart-marker-indices.d.ts +9 -5
  115. package/dist/app/utils/chart-marker-indices.js +9 -8
  116. package/dist/app/utils/chart-path.d.ts +14 -10
  117. package/dist/app/utils/chart-path.js +46 -18
  118. package/dist/app/utils/edited-time.d.ts +19 -0
  119. package/dist/app/utils/edited-time.js +35 -0
  120. package/dist/app/utils/key-target.d.ts +23 -0
  121. package/dist/app/utils/key-target.js +48 -0
  122. package/dist/app/utils/search-params.d.ts +69 -0
  123. package/dist/app/utils/search-params.js +132 -0
  124. package/dist/app/utils/shortcut-groups.d.ts +21 -0
  125. package/dist/app/utils/shortcut-groups.js +53 -0
  126. package/dist/app/utils/split-view-layout.d.ts +48 -0
  127. package/dist/app/utils/split-view-layout.js +71 -0
  128. package/dist/app/view-options.d.ts +99 -0
  129. package/dist/app/view-options.js +182 -0
  130. package/dist/components/banner.d.ts +61 -0
  131. package/dist/components/banner.js +101 -0
  132. package/dist/components/confirm.d.ts +54 -5
  133. package/dist/components/confirm.js +44 -5
  134. package/dist/components/group.d.ts +14 -0
  135. package/dist/components/group.js +66 -11
  136. package/dist/components/index.d.ts +5 -0
  137. package/dist/components/index.js +5 -0
  138. package/dist/components/input.js +9 -3
  139. package/dist/components/link-button.js +8 -2
  140. package/dist/components/property-list.d.ts +76 -0
  141. package/dist/components/property-list.js +175 -0
  142. package/dist/components/relative-time.d.ts +72 -0
  143. package/dist/components/relative-time.js +45 -0
  144. package/dist/components/status-dot.d.ts +62 -0
  145. package/dist/components/status-dot.js +99 -0
  146. package/dist/components/text-field.d.ts +17 -2
  147. package/dist/components/text-field.js +13 -4
  148. package/dist/components/timeline.d.ts +67 -0
  149. package/dist/components/timeline.js +159 -0
  150. package/dist/components/typeset.d.ts +2 -1
  151. package/dist/components/typeset.js +4 -1
  152. package/dist/docs/code-tabs-sync.d.ts +1 -1
  153. package/dist/docs/code-tabs-sync.js +2 -2
  154. package/dist/docs/copy-button.d.ts +1 -1
  155. package/dist/docs/copy-button.js +2 -2
  156. package/dist/docs/docs-feedback.d.ts +12 -0
  157. package/dist/docs/docs-feedback.js +4 -2
  158. package/dist/docs/docs-hub.js +4 -4
  159. package/dist/docs/docs-layout.d.ts +1 -1
  160. package/dist/docs/docs-layout.js +1 -1
  161. package/dist/docs/docs-nav-tools.d.ts +1 -1
  162. package/dist/docs/docs-nav-tools.js +2 -2
  163. package/dist/docs/docs-nav.d.ts +6 -2
  164. package/dist/docs/docs-nav.js +2 -2
  165. package/dist/docs/docs-pager.d.ts +5 -1
  166. package/dist/docs/docs-pager.js +7 -6
  167. package/dist/docs/mixins/docs-nav-tools.d.ts +2 -2
  168. package/dist/docs/mixins/docs-nav-tools.js +32 -5
  169. package/dist/docs/next-steps.js +3 -2
  170. package/dist/docs/page-actions.d.ts +1 -1
  171. package/dist/docs/page-actions.js +2 -2
  172. package/dist/docs/table-of-contents.d.ts +1 -1
  173. package/dist/docs/table-of-contents.js +2 -2
  174. package/dist/mixins/confirm-phrase.d.ts +19 -0
  175. package/dist/mixins/confirm-phrase.js +56 -0
  176. package/dist/mixins/index.d.ts +2 -0
  177. package/dist/mixins/index.js +2 -0
  178. package/dist/mixins/viewer-time.d.ts +20 -0
  179. package/dist/mixins/viewer-time.js +40 -0
  180. package/dist/styles/index.d.ts +1 -0
  181. package/dist/styles/index.js +1 -0
  182. package/dist/styles/segmented-control.d.ts +49 -0
  183. package/dist/styles/segmented-control.js +71 -0
  184. package/dist/test/table.d.ts +65 -0
  185. package/dist/test/table.js +108 -0
  186. package/dist/utils/index.d.ts +1 -0
  187. package/dist/utils/index.js +1 -0
  188. package/dist/utils/relative-time.d.ts +44 -0
  189. package/dist/utils/relative-time.js +69 -0
  190. package/package.json +6 -6
@@ -0,0 +1,181 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "remix/component/jsx-runtime";
2
+ import { ChevronLeftIcon, ChevronRightIcon, SearchIcon } from "@sdxc/icons";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { bg, borderEdge, fg, outlineStyle } from "@sdxc/u/color";
5
+ import { rounded } from "@sdxc/u/effects";
6
+ import { cursor, mergeMix, raw } from "@sdxc/u/general";
7
+ import { grow, hstack, shrink } from "@sdxc/u/layout";
8
+ import { overflow } from "@sdxc/u/overflow";
9
+ import { bs, is, m, maxBs, maxIs, mbs, mis, p, pbe, pbs, pi } from "@sdxc/u/size";
10
+ import { when } from "@sdxc/u/state";
11
+ import { text, textAlign, textDecoration, truncate, weight } from "@sdxc/u/typography";
12
+ import { generateUUID } from "@sdxc/uuid/v4";
13
+ import { clientEntry } from "remix/component";
14
+ import { Button } from "../components/button.js";
15
+ import { Command } from "../components/command.js";
16
+ import { Keyboard } from "../components/keyboard.js";
17
+ import { Modal } from "../components/modal.js";
18
+ import { shortcutGlyphs } from "./behaviors/shortcuts.js";
19
+ import { PALETTE_CONTROL_ATTRIBUTE, PALETTE_GOTO_ATTRIBUTE, PALETTE_HINT_ATTRIBUTE, PALETTE_ITEM_ATTRIBUTE, PALETTE_PAGE_ATTRIBUTE, paletteController, } from "./mixins/command-palette.js";
20
+ /** The combo that opens the palette when none is given. */
21
+ const DEFAULT_SHORTCUT = "mod+k";
22
+ /**
23
+ * Renders a shortcut's caps, marked with its combo so the island reprints them for a keyboard
24
+ * without the Apple glyphs.
25
+ */
26
+ function Hint(handle) {
27
+ return () => (_jsx("span", { "aria-hidden": "true", [PALETTE_HINT_ATTRIBUTE]: handle.props.keys, mix: [hstack({ gap: 1, align: "center" }), mis("auto"), shrink()], children: shortcutGlyphs(handle.props.keys, true).map((glyph, index) => (_jsx(Keyboard, { mix: [m(0)], children: glyph }, `${index}-${glyph}`))) }));
28
+ }
29
+ /**
30
+ * Renders the palette: a modal dialog 640px wide, 15% from the top, full width less a gutter on
31
+ * a phone. Without JavaScript a trigger still opens it and every command stays a working link
32
+ * or button; the island adds filtering, arrow keys, pages and the ⌘K binding.
33
+ *
34
+ * @param handle Runtime handle carrying the palette's props.
35
+ * @returns The render function producing the palette.
36
+ * @example
37
+ * <CommandPalette id="palette" labels={labels} recent={["go-monitors"]}>
38
+ * <CommandPalette.Group heading="Navigation">
39
+ * <CommandPalette.Item id="go-monitors" title="Go to Monitors" href="/monitors" shortcut="g m" />
40
+ * </CommandPalette.Group>
41
+ * </CommandPalette>
42
+ */
43
+ export function CommandPalette(handle) {
44
+ return () => {
45
+ let { id, labels, shortcut, recent, remember, children, mix, ...rest } = handle.props;
46
+ let listId = `${id}-list`;
47
+ return (_jsxs(Modal, { ...rest, id: id, "aria-label": labels.title, closedby: "any", "data-slot": "command-palette", mix: mergeMix([
48
+ is("min(var(--ui-app-palette-width, 40rem), 100% - 1rem)"),
49
+ maxIs("none"),
50
+ maxBs("min(32rem, 80vh)"),
51
+ p(0),
52
+ raw({ gap: "0", marginBlock: "var(--ui-app-palette-top, 15vh) auto" }),
53
+ overflow("hidden"),
54
+ ], mix), children: [_jsxs("div", { mix: [
55
+ hstack({ gap: 2, align: "center" }),
56
+ pi(3),
57
+ shrink(),
58
+ borderEdge("block-end", { color: "neutral", width: 1 }),
59
+ ], children: [_jsx("button", { type: "button", hidden: true, "data-palette-back": true, "aria-label": labels.back, mix: [shrink(), p(0), bg("transparent"), cursor("pointer")], children: _jsxs("span", { mix: [
60
+ hstack({ gap: 1, align: "center" }),
61
+ pi(2),
62
+ bs("1.5rem"),
63
+ rounded("md"),
64
+ bg("neutral.bg-tint"),
65
+ fg("neutral"),
66
+ text("xs"),
67
+ weight("medium"),
68
+ ], children: [_jsx(ChevronLeftIcon, { size: 12, "aria-hidden": "true" }), _jsx("span", { "data-palette-crumb": true })] }) }), _jsx(SearchIcon, { size: 16, "aria-hidden": "true", mix: [fg("neutral.muted"), shrink()] }), _jsx("input", { type: "text", role: "combobox", "aria-expanded": "true", "aria-controls": listId, "aria-autocomplete": "list", "aria-label": labels.title, autocomplete: "off", spellcheck: false, autofocus: true, placeholder: labels.placeholder, "data-command-input": true, mix: [
69
+ grow(),
70
+ is("full"),
71
+ bs("3.25rem"),
72
+ bg("transparent"),
73
+ fg("neutral.emphasis"),
74
+ text("base"),
75
+ outlineStyle("none"),
76
+ when("&::placeholder", fg("neutral.muted")),
77
+ ] }), _jsx("button", { type: "button", commandfor: id, command: "close", "aria-label": labels.close, mix: [shrink(), bg("transparent"), cursor("pointer")], children: _jsx(Keyboard, { mix: [m(0)], children: "Esc" }) })] }), _jsxs(Command.List, { id: listId, "aria-label": labels.title, mix: [grow(), maxBs("none"), pbs(2)], children: [_jsxs("div", { role: "group", hidden: true, "data-palette-recent": true, "aria-label": labels.recent, children: [_jsx(GroupHeading, { children: labels.recent }), _jsx("div", { "data-palette-recent-items": true })] }), children] }), _jsxs(Command.Empty, { hidden: true, children: [_jsxs("p", { mix: [m(0), fg("neutral.emphasis")], children: [labels.noResults, " \u201C", _jsx("span", { "data-palette-query": true }), "\u201D"] }), labels.noResultsHint ? _jsx("p", { mix: [m(0), mbs(1)], children: labels.noResultsHint }) : null] }), _jsx("div", { role: "status", "data-palette-status": true, mix: [visuallyHidden()] }), _jsx(CommandPaletteController, { shortcut: shortcut ?? DEFAULT_SHORTCUT, open: labels.open, results: labels.results, recent: recent ?? [], remember: remember })] }));
78
+ };
79
+ }
80
+ /** Renders a group's muted Title Case heading. */
81
+ function GroupHeading(handle) {
82
+ return () => (_jsx("div", { id: handle.props.id, "aria-hidden": handle.props.id === undefined ? "true" : undefined, mix: [pi(2), pbs(2), pbe(1), text("xs"), weight("medium"), fg("neutral.muted")], children: handle.props.children }));
83
+ }
84
+ /**
85
+ * Renders a titled group of commands, hidden by the island while none of its commands match.
86
+ *
87
+ * @param handle Runtime handle carrying the group's props.
88
+ * @returns The render function producing the group.
89
+ * @example <CommandPalette.Group heading="Monitors">…</CommandPalette.Group>
90
+ */
91
+ CommandPalette.Group = function CommandPaletteGroup(handle) {
92
+ let headingId = `palette-group-${generateUUID()}`;
93
+ return () => {
94
+ let { heading, children, ...rest } = handle.props;
95
+ return (_jsxs("div", { ...rest, role: "group", "aria-labelledby": headingId, "data-palette-group": true, children: [_jsx(GroupHeading, { id: headingId, children: heading }), children] }));
96
+ };
97
+ };
98
+ /**
99
+ * Renders one 36px command row whose control is a link, a form submitter, an Invoker Command
100
+ * button, or a button opening a page. The control stays out of the Tab order: focus remains in
101
+ * the search field and the row is reached as its active descendant.
102
+ *
103
+ * @param handle Runtime handle carrying the item's props.
104
+ * @returns The render function producing the row.
105
+ * @example <CommandPalette.Item id="create" title="Create Monitor" href="/monitors/new" shortcut="c" />
106
+ * @example <CommandPalette.Item id="pause" title="Pause All Monitors" form="pause-all" />
107
+ */
108
+ CommandPalette.Item = function CommandPaletteItem(handle) {
109
+ return () => {
110
+ let props = handle.props;
111
+ let controlMix = [
112
+ hstack({ gap: 2, align: "center" }),
113
+ is("full"),
114
+ bs("full"),
115
+ pi(2),
116
+ m(0),
117
+ bg("transparent"),
118
+ fg("inherit"),
119
+ textAlign("start"),
120
+ textDecoration("none"),
121
+ text("sm"),
122
+ cursor("default"),
123
+ outlineStyle("none"),
124
+ ];
125
+ let content = (_jsxs(_Fragment, { children: [props.icon ? (_jsx("span", { "aria-hidden": "true", mix: [hstack({ align: "center" }), fg("neutral.muted")], children: props.icon })) : null, _jsx("span", { mix: [truncate(), shrink()], children: props.title }), props.description ? (_jsx("span", { mix: [truncate(), fg("neutral.muted"), grow()], children: props.description })) : null, props.shortcut ? _jsx(Hint, { keys: props.shortcut }) : null, props.page ? (_jsx(ChevronRightIcon, { size: 14, "aria-hidden": "true", mix: [props.shortcut ? mis(0) : mis("auto"), fg("neutral.muted")] })) : null] }));
126
+ return (_jsx(Command.Item, { id: props.id, value: props.title, "data-keywords": props.keywords?.join(" "), "data-palette-shortcut": props.shortcut, [PALETTE_ITEM_ATTRIBUTE]: props.id, mix: mergeMix([bs("2.25rem"), p(0), pi(0)], props.mix), children: _jsx(ItemControl, { item: props, mix: controlMix, children: content }) }));
127
+ };
128
+ };
129
+ /**
130
+ * Renders the control an item presses: a link, a page opener, or a button carrying the form
131
+ * and Invoker Command the item names.
132
+ */
133
+ function ItemControl(handle) {
134
+ return () => {
135
+ let { item, mix, children } = handle.props;
136
+ let marker = { [PALETTE_CONTROL_ATTRIBUTE]: "" };
137
+ if (item.href !== undefined) {
138
+ return (_jsx("a", { ...marker, href: item.href, tabindex: -1, mix: mix, children: children }));
139
+ }
140
+ if (item.page !== undefined) {
141
+ return (_jsx("button", { ...marker, [PALETTE_GOTO_ATTRIBUTE]: item.page, type: "button", tabindex: -1, mix: mix, children: children }));
142
+ }
143
+ return (_jsx("button", { ...marker, type: item.form === undefined ? "button" : "submit", form: item.form, formaction: item.formaction, formmethod: item.formmethod, name: item.name, value: item.value, command: item.command, commandfor: item.commandfor, tabindex: -1, mix: mix, children: children }));
144
+ };
145
+ }
146
+ /**
147
+ * Renders a nested page of commands, shown in place of the root list when an item opens it.
148
+ * Backspace in an empty search field, or the back control, returns to the page before it with
149
+ * that page's query restored.
150
+ *
151
+ * @param handle Runtime handle carrying the page's props.
152
+ * @returns The render function producing the page.
153
+ * @example <CommandPalette.Page id="teams" title="Switch Team">…</CommandPalette.Page>
154
+ */
155
+ CommandPalette.Page = function CommandPalettePage(handle) {
156
+ return () => {
157
+ let { id, title, placeholder, children } = handle.props;
158
+ return (_jsx("div", { role: "group", "aria-label": title, hidden: true, "data-palette-title": title, "data-palette-placeholder": placeholder, [PALETTE_PAGE_ATTRIBUTE]: id, children: children }));
159
+ };
160
+ };
161
+ /**
162
+ * Renders the button that opens the palette, styled as a quiet search field with the key that
163
+ * opens it: one route for the pointer, and the place a reader learns the key.
164
+ *
165
+ * @param handle Runtime handle carrying the trigger's props.
166
+ * @returns The render function producing the trigger.
167
+ * @example <CommandPalette.Trigger for="palette">Search…</CommandPalette.Trigger>
168
+ */
169
+ CommandPalette.Trigger = function CommandPaletteTrigger(handle) {
170
+ return () => {
171
+ let { for: target, shortcut, children, mix, ...rest } = handle.props;
172
+ return (_jsxs(Button, { type: "button", variant: "outline", color: "neutral", size: "sm", ...rest, commandfor: target, command: "show-modal", mix: mergeMix([is("full"), maxIs("16rem"), fg("neutral.muted")], mix), children: [_jsx(SearchIcon, { size: 14, "aria-hidden": "true" }), _jsx("span", { mix: [truncate()], children: children }), _jsx(Hint, { keys: shortcut ?? DEFAULT_SHORTCUT })] }));
173
+ };
174
+ };
175
+ /**
176
+ * The palette's island: renders nothing visible, and wires the dialog it sits in once loaded.
177
+ * `CommandPalette` places it; load `@sdxc/ui/app/command-palette` in the browser entry.
178
+ */
179
+ export const CommandPaletteController = clientEntry("@sdxc/ui/app/command-palette#CommandPaletteController", function CommandPaletteController(handle) {
180
+ return () => _jsx("div", { hidden: true, mix: [paletteController(handle.props)] });
181
+ });
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The last section of a settings page, holding the actions that cannot be undone. Each
3
+ * action is a row that names its consequences and opens a `Confirm`, so the decision is
4
+ * read twice before anything is deleted, and a danger border sets the section apart.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import { Confirm } from "../components/confirm.js";
11
+ import type { ActionPlacement as ActionPlacementType } from "./styles/action-row.js";
12
+ /**
13
+ * Prop types for {@link DangerZone} and {@link DangerZone.Action}.
14
+ */
15
+ export declare namespace DangerZone {
16
+ /** Props accepted by {@link DangerZone}. */
17
+ interface Props extends Omit<TagProps<"section">, "title"> {
18
+ /** The section's heading, such as "Danger zone". */
19
+ title: RemixNode;
20
+ description?: RemixNode;
21
+ }
22
+ /** Where an action's button sits: at the row's end on its title's line, or below its text. */
23
+ type ActionPlacement = ActionPlacementType;
24
+ /** Props accepted by {@link DangerZone.Action}. */
25
+ interface ActionProps extends Omit<TagProps<"div">, "title"> {
26
+ /** The confirm dialog's `id`, which the row's button opens. */
27
+ id: string;
28
+ /** What the action does, such as "Delete team". */
29
+ title: RemixNode;
30
+ description?: RemixNode;
31
+ /** What is lost, one item each: "14 monitors stop checking", "Invoices stay in Billing". */
32
+ consequences?: ReadonlyArray<RemixNode>;
33
+ /**
34
+ * Where the button sits on a wide card: under the text, for a row that lists its
35
+ * consequences, or at the row's end on the title's line, for a short one. A narrow
36
+ * card always puts it under the text.
37
+ *
38
+ * @default "below"
39
+ */
40
+ actionPlacement?: ActionPlacement;
41
+ /** The row's button text; name the action, such as "Delete team". */
42
+ buttonLabel: RemixNode;
43
+ /**
44
+ * The confirmation the button opens. Name the item in the title and description and
45
+ * the action on the confirm button; add `typeToConfirm` for the biggest deletions.
46
+ */
47
+ confirm: Omit<Confirm.Props, "id">;
48
+ }
49
+ }
50
+ /**
51
+ * Renders the section: a heading over a card with a danger border whose rows are
52
+ * {@link DangerZone.Action}s.
53
+ *
54
+ * @param handle Runtime handle carrying the section's props.
55
+ * @returns The render function producing the section's markup.
56
+ * @example
57
+ * <DangerZone title="Danger zone">
58
+ * <DangerZone.Action id="delete-team" title="Delete team" buttonLabel="Delete team"
59
+ * consequences={["14 monitors stop checking", "Status pages go offline"]}
60
+ * confirm={{ title: "Delete team?", confirmLabel: "Delete team", cancelLabel: "Cancel", form: { action: "/team/delete" } }} />
61
+ * </DangerZone>
62
+ */
63
+ export declare function DangerZone(handle: Handle<DangerZone.Props>): () => import("remix/component").RemixElement;
64
+ export declare namespace DangerZone {
65
+ var Action: (handle: Handle<DangerZone.ActionProps>) => () => import("remix/component").RemixElement;
66
+ }
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { bg, border, fg } from "@sdxc/u/color";
3
+ import { rounded } from "@sdxc/u/effects";
4
+ import { listStyle, mergeMix } from "@sdxc/u/general";
5
+ import { container, vstack } from "@sdxc/u/layout";
6
+ import { divide, overflow } from "@sdxc/u/overflow";
7
+ import { m, minIs, p, pis } from "@sdxc/u/size";
8
+ import { balance, pretty, text, weight } from "@sdxc/u/typography";
9
+ import { Button } from "../components/button.js";
10
+ import { Confirm } from "../components/confirm.js";
11
+ import { actionRowGrid, onTitleLine } from "./styles/action-row.js";
12
+ /** Container an action row measures, stacking its button under the text when narrow. */
13
+ const ROW_CONTAINER = "ui-danger-zone";
14
+ /** Where an action's button sits when `actionPlacement` is omitted. */
15
+ const DEFAULT_ACTION_PLACEMENT = "below";
16
+ /**
17
+ * Renders the section: a heading over a card with a danger border whose rows are
18
+ * {@link DangerZone.Action}s.
19
+ *
20
+ * @param handle Runtime handle carrying the section's props.
21
+ * @returns The render function producing the section's markup.
22
+ * @example
23
+ * <DangerZone title="Danger zone">
24
+ * <DangerZone.Action id="delete-team" title="Delete team" buttonLabel="Delete team"
25
+ * consequences={["14 monitors stop checking", "Status pages go offline"]}
26
+ * confirm={{ title: "Delete team?", confirmLabel: "Delete team", cancelLabel: "Cancel", form: { action: "/team/delete" } }} />
27
+ * </DangerZone>
28
+ */
29
+ export function DangerZone(handle) {
30
+ return () => {
31
+ let { title, description, children, mix, ...rest } = handle.props;
32
+ let titleId = `${handle.id}-title`;
33
+ return (_jsxs("section", { ...rest, "aria-labelledby": titleId, "data-slot": "danger-zone", mix: mergeMix([vstack({ gap: 3, align: "stretch" })], mix), children: [_jsxs("header", { mix: [vstack({ gap: 1, align: "stretch" })], children: [_jsx("h2", { id: titleId, mix: [m(0), text("base"), weight("semibold"), fg("neutral.emphasis"), balance()], children: title }), description ? (_jsx("p", { mix: [m(0), text("sm"), fg("neutral.muted"), pretty()], children: description })) : null] }), _jsx("div", { "data-slot": "danger-zone-card", mix: [
34
+ vstack({ gap: 0, align: "stretch" }),
35
+ rounded("lg"),
36
+ border({ color: "danger", width: 1 }),
37
+ bg(),
38
+ overflow("hidden"),
39
+ divide("block", "danger"),
40
+ ], children: children })] }));
41
+ };
42
+ }
43
+ /**
44
+ * Renders one irreversible action: its title, description and consequence list, then a
45
+ * danger button that opens its {@link Confirm}, under the text or at the row's end as
46
+ * `actionPlacement` says.
47
+ *
48
+ * @param handle Runtime handle carrying the action's props.
49
+ * @returns The render function producing the row's markup.
50
+ * @example
51
+ * <DangerZone.Action id="transfer" title="Transfer ownership" buttonLabel="Transfer…" actionPlacement="end" confirm={…} />
52
+ */
53
+ DangerZone.Action = function DangerZoneAction(handle) {
54
+ return () => {
55
+ let { id, title, description, consequences, actionPlacement: actionPlacementProp, buttonLabel, confirm, mix, ...rest } = handle.props;
56
+ let actionPlacement = actionPlacementProp ?? DEFAULT_ACTION_PLACEMENT;
57
+ return (_jsxs("div", { ...rest, "data-slot": "danger-zone-action", "data-action-placement": actionPlacement, mix: mergeMix([container(ROW_CONTAINER)], mix), children: [_jsxs("div", { mix: [p(4), actionRowGrid(ROW_CONTAINER, actionPlacement, "0.75rem 1.5rem")], children: [_jsxs("div", { "data-slot": "danger-zone-text", mix: [vstack({ gap: 1, align: "stretch" }), minIs(0)], children: [_jsx("p", { mix: [m(0), text("sm"), weight("medium"), fg("neutral.emphasis")], children: title }), description ? (_jsx("p", { mix: [m(0), text("sm"), fg("neutral.muted"), pretty()], children: description })) : null, consequences && consequences.length > 0 ? (_jsx("ul", { "data-slot": "danger-zone-consequences", mix: [
58
+ vstack({ gap: 0.5, align: "stretch" }),
59
+ m(0),
60
+ pis(5),
61
+ listStyle("disc"),
62
+ text("sm"),
63
+ fg("neutral.muted"),
64
+ ], children: consequences.map((consequence) => (_jsx("li", { children: consequence }))) })) : null] }), _jsx("div", { "data-slot": "danger-zone-control", mix: [minIs(0), actionPlacement === "end" ? onTitleLine(ROW_CONTAINER) : undefined], children: _jsx(Button, { commandfor: id, command: "show-modal", color: "danger", variant: "outline", size: "sm", children: buttonLabel }) })] }), _jsx(Confirm, { ...confirm, id: id })] }));
65
+ };
66
+ };
@@ -0,0 +1,119 @@
1
+ /**
2
+ * A non-modal side sheet showing one record whose open state lives in the URL: the server
3
+ * renders it when the page's query names a record, Close is a link back to the list, and
4
+ * the list behind stays interactive. A small island adds Esc, ↑/↓ (k/j) and copy link.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { EntryComponent, Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import type { DetailSheetKeyScope } from "./mixins/detail-sheet-keys.js";
11
+ /**
12
+ * Prop types for {@link DetailSheet} and {@link DetailSheetControls}.
13
+ */
14
+ export declare namespace DetailSheet {
15
+ /** Every string the sheet shows or announces. */
16
+ interface Labels {
17
+ /** Close link's name, such as "Close". */
18
+ close: string;
19
+ /** Copy button's name, such as "Copy link". */
20
+ copyLink: string;
21
+ /** Announced once the link is on the clipboard, such as "Link copied". */
22
+ linkCopied: string;
23
+ /** Previous link's name, such as "Previous monitor". */
24
+ previous: string;
25
+ /** Next link's name, such as "Next monitor". */
26
+ next: string;
27
+ /** Read before the `n / N` counter, such as "Monitor". */
28
+ position: string;
29
+ }
30
+ /** Where the open record sits in the list behind, and the links to its neighbours. */
31
+ interface Position {
32
+ /** The open record's 1-based place in the list. */
33
+ index: number;
34
+ total: number;
35
+ /** The list URL with the previous record open; `null` at the first. */
36
+ previousHref?: string | null;
37
+ /** The list URL with the next record open; `null` at the last. */
38
+ nextHref?: string | null;
39
+ }
40
+ /** Every native `<aside>` attribute, plus the sheet's content and links. */
41
+ interface Props extends Omit<TagProps<"aside">, "id" | "title"> {
42
+ /** The sheet's id; its heading takes `${id}-title`. */
43
+ id: string;
44
+ /** The record's name, in the sheet's heading. */
45
+ title: RemixNode;
46
+ /** A line under the title: an id, a status, a host. */
47
+ description?: RemixNode;
48
+ /** The list URL without the record open. Close and Esc follow it. */
49
+ closeHref: string;
50
+ /** The URL a teammate can open this record at; shows the copy button. */
51
+ permalink?: string;
52
+ /** Shows `n / N` with previous/next links and their keys. */
53
+ position?: Position;
54
+ /** Extra header controls, placed before the navigation. */
55
+ actions?: RemixNode;
56
+ /** Pinned under the body: the record's own actions. */
57
+ footer?: RemixNode;
58
+ /**
59
+ * Where Esc, k/j and ↑/↓ answer: `"page"` document-wide with focus moved into the
60
+ * sheet on open, `"sheet"` only while focus is inside it.
61
+ *
62
+ * @default "page"
63
+ */
64
+ keys?: DetailSheetKeyScope;
65
+ /** Floats the sheet off the viewport edges as a rounded card. */
66
+ inset?: boolean;
67
+ labels: Labels;
68
+ /** The record's detail: a `PropertyList`, a `Timeline`, notes. */
69
+ children?: RemixNode;
70
+ }
71
+ }
72
+ /**
73
+ * Props {@link DetailSheetControls} serializes into the page for hydration, which is why
74
+ * they are a `type`: `SerializableProps` rejects an interface.
75
+ */
76
+ export type DetailSheetControlsProps = {
77
+ /** The sheet's id, which names the permalink field. */
78
+ sheetId: string;
79
+ closeHref: string;
80
+ permalink?: string;
81
+ index?: number;
82
+ total?: number;
83
+ previousHref?: string | null;
84
+ nextHref?: string | null;
85
+ labels: DetailSheet.Labels;
86
+ /** Where Esc, k/j and ↑/↓ answer. */
87
+ keys?: DetailSheetKeyScope;
88
+ };
89
+ /**
90
+ * The sheet's header controls as an island: `n / N` with previous/next links, copy link
91
+ * and Close. Server HTML renders every link; once hydrated, Esc, k/j and ↑/↓ follow them
92
+ * and focus moves into the sheet. Loads from `@sdxc/ui/app/detail-sheet#DetailSheetControls`.
93
+ *
94
+ * @example
95
+ * <DetailSheetControls sheetId="monitor" closeHref="/monitors" labels={labels} />
96
+ */
97
+ export declare const DetailSheetControls: EntryComponent<DetailSheetControlsProps>;
98
+ /**
99
+ * Renders an `<aside>` named by its heading over the viewport, passing the pointer through
100
+ * to the page, with the panel docked to its inline end at `--ui-app-detail-sheet-width`, or
101
+ * a bottom sheet below 40rem. Never a modal; destructive actions confirm in the app's flow.
102
+ *
103
+ * @param handle Runtime handle carrying the `<aside>`'s props.
104
+ * @returns The render function producing the sheet's markup.
105
+ * @example
106
+ * {selected ? (
107
+ * <DetailSheet
108
+ * id="monitor"
109
+ * title={selected.name}
110
+ * closeHref="/monitors#monitor-42"
111
+ * permalink={`/monitors/${selected.id}`}
112
+ * position={{ index: 3, total: 84, previousHref: "/monitors?pane=41", nextHref: "/monitors?pane=43" }}
113
+ * labels={labels}
114
+ * >
115
+ * <PropertyList>…</PropertyList>
116
+ * </DetailSheet>
117
+ * ) : null}
118
+ */
119
+ export declare function DetailSheet(handle: Handle<DetailSheet.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,173 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "remix/component/jsx-runtime";
2
+ import { ChevronDownIcon, ChevronUpIcon, LinkIcon, XIcon } from "@sdxc/icons";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { bg, border, borderEdge, fg, outline } from "@sdxc/u/color";
5
+ import { opacity, rounded, shadow, transition } from "@sdxc/u/effects";
6
+ import { cursor, pointerEvents, raw, mergeMix } from "@sdxc/u/general";
7
+ import { absolute, container, fixed, flex, gap, hstack, inlineFlex, items, justify, shrink, vstack, } from "@sdxc/u/layout";
8
+ import { overflow } from "@sdxc/u/overflow";
9
+ import { bs, is, m, minBs, minIs, p, pb, pi } from "@sdxc/u/size";
10
+ import { z } from "@sdxc/u/stacking";
11
+ import { focusVisible, hover, when } from "@sdxc/u/state";
12
+ import { leading, tabularNums, text, truncate, weight } from "@sdxc/u/typography";
13
+ import { clientEntry } from "remix/component";
14
+ import { copyPermalink } from "./mixins/copy-permalink.js";
15
+ import { DETAIL_SHEET_LINK_ATTRIBUTE, detailSheetKeys } from "./mixins/detail-sheet-keys.js";
16
+ /** Container the sheet's viewport layer names, so the panel answers the viewport's width. */
17
+ const SHEET_CONTAINER = "ui-detail-sheet";
18
+ /** Below this width the panel becomes a bottom sheet. */
19
+ const NARROW_QUERY = `@container ${SHEET_CONTAINER} (width < 40rem)`;
20
+ /** Where the sheet's keys answer when `keys` is left unset. */
21
+ const DEFAULT_KEY_SCOPE = "page";
22
+ /**
23
+ * The square, quiet look every header control shares, links and the copy button alike.
24
+ */
25
+ function controlStyle() {
26
+ return [
27
+ inlineFlex(),
28
+ items("center"),
29
+ justify("center"),
30
+ shrink(0),
31
+ is("2rem"),
32
+ bs("2rem"),
33
+ rounded("md"),
34
+ border({ color: "transparent", width: 0 }),
35
+ bg("transparent"),
36
+ fg("neutral.muted"),
37
+ cursor("pointer"),
38
+ transition("color, background-color"),
39
+ hover([fg("neutral.emphasis"), bg("neutral.tint")]),
40
+ focusVisible(outline({ color: "brand.ring", width: 2, offset: -2 })),
41
+ when('&[aria-disabled="true"]', [opacity(40), pointerEvents("none")]),
42
+ ];
43
+ }
44
+ /**
45
+ * Renders a header navigation link, or an inert placeholder in its place when there is
46
+ * no record that way, so the controls keep their positions at either end of the list.
47
+ */
48
+ function NavLink(handle) {
49
+ return () => {
50
+ let { link, rel, href, label, keys, children } = handle.props;
51
+ return (_jsx("a", { href: href ?? undefined, "aria-label": label, title: label, "aria-keyshortcuts": keys, "aria-disabled": href ? undefined : "true", rel: rel, [DETAIL_SHEET_LINK_ATTRIBUTE]: link, mix: controlStyle(), children: children }));
52
+ };
53
+ }
54
+ /**
55
+ * The sheet's header controls as an island: `n / N` with previous/next links, copy link
56
+ * and Close. Server HTML renders every link; once hydrated, Esc, k/j and ↑/↓ follow them
57
+ * and focus moves into the sheet. Loads from `@sdxc/ui/app/detail-sheet#DetailSheetControls`.
58
+ *
59
+ * @example
60
+ * <DetailSheetControls sheetId="monitor" closeHref="/monitors" labels={labels} />
61
+ */
62
+ export const DetailSheetControls = clientEntry("@sdxc/ui/app/detail-sheet#DetailSheetControls", function DetailSheetControls(handle) {
63
+ return () => {
64
+ let { closeHref, permalink, index, total, previousHref, nextHref, labels, keys } = handle.props;
65
+ let positioned = index !== undefined && total !== undefined;
66
+ return (_jsxs("div", { "data-slot": "detail-sheet-controls", mix: [
67
+ hstack({ gap: 0.5, align: "center" }),
68
+ shrink(0),
69
+ detailSheetKeys(keys ?? DEFAULT_KEY_SCOPE),
70
+ ], children: [positioned ? (_jsxs(_Fragment, { children: [_jsxs("span", { "data-slot": "detail-sheet-position", mix: [
71
+ pi(1.5),
72
+ text("xs"),
73
+ fg("neutral.muted"),
74
+ tabularNums(),
75
+ raw({ whiteSpace: "nowrap" }),
76
+ ], children: [_jsx("span", { mix: [visuallyHidden()], children: `${labels.position} ` }), `${index} / ${total}`] }), _jsx(NavLink, { link: "previous", rel: "prev", href: previousHref, label: labels.previous, keys: "k ArrowUp", children: _jsx(ChevronUpIcon, { size: 16, "aria-hidden": "true" }) }), _jsx(NavLink, { link: "next", rel: "next", href: nextHref, label: labels.next, keys: "j ArrowDown", children: _jsx(ChevronDownIcon, { size: 16, "aria-hidden": "true" }) })] })) : null, permalink ? (_jsxs("button", { type: "button", "data-slot": "detail-sheet-copy", "aria-label": labels.copyLink, title: labels.copyLink, mix: [
77
+ ...controlStyle(),
78
+ when("&[data-copied]", fg("success")),
79
+ copyPermalink(permalink, labels.linkCopied),
80
+ ], children: [_jsx(LinkIcon, { size: 16, "aria-hidden": "true" }), _jsx("span", { role: "status", mix: [visuallyHidden()] })] })) : null, _jsx(NavLink, { link: "close", href: closeHref, label: labels.close, keys: "Escape", children: _jsx(XIcon, { size: 16, "aria-hidden": "true" }) })] }));
81
+ };
82
+ });
83
+ /**
84
+ * Renders an `<aside>` named by its heading over the viewport, passing the pointer through
85
+ * to the page, with the panel docked to its inline end at `--ui-app-detail-sheet-width`, or
86
+ * a bottom sheet below 40rem. Never a modal; destructive actions confirm in the app's flow.
87
+ *
88
+ * @param handle Runtime handle carrying the `<aside>`'s props.
89
+ * @returns The render function producing the sheet's markup.
90
+ * @example
91
+ * {selected ? (
92
+ * <DetailSheet
93
+ * id="monitor"
94
+ * title={selected.name}
95
+ * closeHref="/monitors#monitor-42"
96
+ * permalink={`/monitors/${selected.id}`}
97
+ * position={{ index: 3, total: 84, previousHref: "/monitors?pane=41", nextHref: "/monitors?pane=43" }}
98
+ * labels={labels}
99
+ * >
100
+ * <PropertyList>…</PropertyList>
101
+ * </DetailSheet>
102
+ * ) : null}
103
+ */
104
+ export function DetailSheet(handle) {
105
+ return () => {
106
+ let { id, title, description, closeHref, permalink, position, actions, footer, inset, keys, labels, children, mix, ...rest } = handle.props;
107
+ let titleId = `${id}-title`;
108
+ let edge = inset ? "var(--ui-app-inset-gap, 0.5rem)" : "0px";
109
+ return (_jsx("aside", { id: id, "aria-labelledby": titleId, tabIndex: -1, "data-slot": "detail-sheet", "data-inset": inset ? "" : undefined, ...rest, mix: mergeMix([
110
+ fixed(),
111
+ z(30),
112
+ raw({
113
+ insetBlockStart: "var(--ui-app-detail-sheet-top, 0px)",
114
+ insetBlockEnd: 0,
115
+ insetInline: 0,
116
+ }),
117
+ container(SHEET_CONTAINER),
118
+ pointerEvents("none"),
119
+ outline("none"),
120
+ ], mix), children: _jsxs("div", { "data-slot": "detail-sheet-panel", mix: [
121
+ absolute(),
122
+ flex(),
123
+ raw({ flexDirection: "column" }),
124
+ pointerEvents("auto"),
125
+ bg(),
126
+ fg(),
127
+ text("sm"),
128
+ shadow("xl"),
129
+ overflow("hidden"),
130
+ /**
131
+ * Every edge and size lives in one rule with its narrow override, so the bottom
132
+ * sheet always wins below 40rem whatever order the stylesheet layers land in.
133
+ */
134
+ raw({
135
+ insetBlockStart: edge,
136
+ insetBlockEnd: edge,
137
+ insetInlineEnd: edge,
138
+ insetInlineStart: "auto",
139
+ inlineSize: `min(var(--ui-app-detail-sheet-width, clamp(28rem, 36cqi, 36rem)), calc(100cqi - 2 * ${edge}))`,
140
+ borderInlineStart: "1px solid var(--ui-neutral-border)",
141
+ borderRadius: inset ? "var(--ui-app-inset-radius, 0.75rem)" : "0",
142
+ [NARROW_QUERY]: {
143
+ insetBlockStart: "auto",
144
+ insetInline: "0",
145
+ insetBlockEnd: "0",
146
+ inlineSize: "100%",
147
+ maxBlockSize: "85%",
148
+ borderInlineStart: "0",
149
+ borderBlockStart: "1px solid var(--ui-neutral-border)",
150
+ borderRadius: "var(--ui-app-inset-radius, 0.75rem) var(--ui-app-inset-radius, 0.75rem) 0 0",
151
+ },
152
+ }),
153
+ ], children: [_jsxs("header", { "data-slot": "detail-sheet-header", mix: [
154
+ flex(),
155
+ items("start"),
156
+ justify("between"),
157
+ gap(3),
158
+ pi(4),
159
+ pb(3),
160
+ borderEdge("bottom", { width: 1, color: "neutral" }),
161
+ shrink(0),
162
+ ], children: [_jsxs("div", { mix: [vstack({ gap: 0.5 }), minIs(0), raw({ paddingBlockStart: "0.25rem" })], children: [_jsx("h2", { id: titleId, mix: [m(0), text("base"), weight("semibold"), leading("1.5rem"), truncate()], children: title }), description ? (_jsx("p", { mix: [m(0), text("sm"), fg("neutral.muted")], children: description })) : null] }), _jsxs("div", { mix: [hstack({ gap: 1, align: "center" }), shrink(0), minBs("2rem")], children: [actions, _jsx(DetailSheetControls, { sheetId: id, closeHref: closeHref, permalink: permalink, index: position?.index, total: position?.total, previousHref: position?.previousHref ?? null, nextHref: position?.nextHref ?? null, labels: labels, keys: keys })] })] }), _jsx("div", { "data-slot": "detail-sheet-body", mix: [raw({ flex: "1 1 auto" }), minBs(0), overflow("auto"), p(4), vstack({ gap: 5 })], children: children }), footer ? (_jsx("footer", { "data-slot": "detail-sheet-footer", mix: [
163
+ flex(),
164
+ items("center"),
165
+ justify("end"),
166
+ gap(2),
167
+ pi(4),
168
+ pb(3),
169
+ shrink(0),
170
+ borderEdge("top", { width: 1, color: "neutral" }),
171
+ ], children: footer })) : null] }) }));
172
+ };
173
+ }
@@ -52,7 +52,8 @@ export declare namespace DropZone {
52
52
  }
53
53
  /**
54
54
  * Renders a native `<input type="file">` wrapped in a `<label>` styled as a
55
- * dashed, centered drop surface; a paired drag-and-drop mixin toggles the
55
+ * dashed, centered drop surface, children stacked top to bottom; the input stays visually hidden
56
+ * and focusable, so the whole surface is the control; a paired drag-and-drop mixin toggles the
56
57
  * `data-drop-target` attribute this surface's styling reacts to.
57
58
  *
58
59
  * @param handle Runtime handle carrying the host `<label>`'s props.