@sdxc/ui 2026.11.11 → 2026.11.14

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 (191) hide show
  1. package/README.md +89 -44
  2. package/dist/app/app-shell-toggle.d.ts +2 -0
  3. package/dist/app/app-shell-toggle.js +5 -2
  4. package/dist/app/app-shell.d.ts +25 -1
  5. package/dist/app/app-shell.js +73 -38
  6. package/dist/app/auto-refresh.d.ts +2 -0
  7. package/dist/app/auto-refresh.js +3 -3
  8. package/dist/app/behaviors/refresh-schedule.d.ts +8 -3
  9. package/dist/app/behaviors/refresh-schedule.js +4 -3
  10. package/dist/app/board.d.ts +123 -0
  11. package/dist/app/board.js +224 -0
  12. package/dist/app/chart.d.ts +2 -2
  13. package/dist/app/chart.js +7 -3
  14. package/dist/app/check-runs.d.ts +116 -0
  15. package/dist/app/check-runs.js +201 -0
  16. package/dist/app/code-view.d.ts +172 -0
  17. package/dist/app/code-view.js +414 -0
  18. package/dist/app/command-palette.d.ts +38 -3
  19. package/dist/app/command-palette.js +53 -5
  20. package/dist/app/contribution-graph.d.ts +106 -0
  21. package/dist/app/contribution-graph.js +289 -0
  22. package/dist/app/detail-sheet.d.ts +7 -0
  23. package/dist/app/detail-sheet.js +7 -7
  24. package/dist/app/diff.d.ts +200 -0
  25. package/dist/app/diff.js +702 -0
  26. package/dist/app/filter-bar.d.ts +20 -0
  27. package/dist/app/filter-bar.js +35 -15
  28. package/dist/app/filter-menu.d.ts +144 -0
  29. package/dist/app/filter-menu.js +480 -0
  30. package/dist/app/gantt.d.ts +108 -0
  31. package/dist/app/gantt.js +420 -0
  32. package/dist/app/index.d.ts +19 -0
  33. package/dist/app/index.js +19 -0
  34. package/dist/app/log-viewer.d.ts +120 -0
  35. package/dist/app/log-viewer.js +384 -0
  36. package/dist/app/merge-box.d.ts +97 -0
  37. package/dist/app/merge-box.js +227 -0
  38. package/dist/app/mixins/app-shell-controls.d.ts +4 -1
  39. package/dist/app/mixins/app-shell-controls.js +64 -4
  40. package/dist/app/mixins/auto-refresh.d.ts +5 -2
  41. package/dist/app/mixins/auto-refresh.js +9 -3
  42. package/dist/app/mixins/close-popover-on-submit.d.ts +16 -0
  43. package/dist/app/mixins/close-popover-on-submit.js +32 -0
  44. package/dist/app/mixins/code-view-selection.d.ts +60 -0
  45. package/dist/app/mixins/code-view-selection.js +276 -0
  46. package/dist/app/mixins/command-palette.d.ts +15 -4
  47. package/dist/app/mixins/command-palette.js +94 -6
  48. package/dist/app/mixins/contribution-graph-keys.d.ts +19 -0
  49. package/dist/app/mixins/contribution-graph-keys.js +155 -0
  50. package/dist/app/mixins/diff-interactions.d.ts +72 -0
  51. package/dist/app/mixins/diff-interactions.js +269 -0
  52. package/dist/app/mixins/filter-menu-keys.d.ts +41 -0
  53. package/dist/app/mixins/filter-menu-keys.js +91 -0
  54. package/dist/app/mixins/gantt-today.d.ts +17 -0
  55. package/dist/app/mixins/gantt-today.js +50 -0
  56. package/dist/app/mixins/log-viewer.d.ts +29 -0
  57. package/dist/app/mixins/log-viewer.js +333 -0
  58. package/dist/app/mixins/optimistic-toggle-sync.d.ts +5 -0
  59. package/dist/app/mixins/optimistic-toggle-sync.js +25 -1
  60. package/dist/app/mixins/save-bar-sync.d.ts +7 -1
  61. package/dist/app/mixins/save-bar-sync.js +23 -4
  62. package/dist/app/mixins/save-status-sync.js +23 -1
  63. package/dist/app/mixins/split-view.js +1 -1
  64. package/dist/app/mixins/submit-on-close.d.ts +17 -0
  65. package/dist/app/mixins/submit-on-close.js +52 -0
  66. package/dist/app/mixins/tree-filter.d.ts +44 -0
  67. package/dist/app/mixins/tree-filter.js +111 -0
  68. package/dist/app/mixins/tree-navigation.d.ts +50 -0
  69. package/dist/app/mixins/tree-navigation.js +216 -0
  70. package/dist/app/optimistic-toggle.d.ts +8 -0
  71. package/dist/app/optimistic-toggle.js +3 -2
  72. package/dist/app/page-header.d.ts +18 -3
  73. package/dist/app/page-header.js +105 -50
  74. package/dist/app/review-thread.d.ts +115 -0
  75. package/dist/app/review-thread.js +116 -0
  76. package/dist/app/save-bar.d.ts +5 -0
  77. package/dist/app/save-bar.js +1 -1
  78. package/dist/app/settings-layout.d.ts +5 -0
  79. package/dist/app/settings-layout.js +5 -5
  80. package/dist/app/skeleton.d.ts +9 -0
  81. package/dist/app/skeleton.js +28 -0
  82. package/dist/app/split-view.d.ts +4 -0
  83. package/dist/app/split-view.js +3 -3
  84. package/dist/app/styles/code-tokens.d.ts +24 -0
  85. package/dist/app/styles/code-tokens.js +47 -0
  86. package/dist/app/tab-bar.d.ts +59 -0
  87. package/dist/app/tab-bar.js +111 -0
  88. package/dist/app/tree.d.ts +111 -14
  89. package/dist/app/tree.js +202 -15
  90. package/dist/app/utils/ansi.d.ts +55 -0
  91. package/dist/app/utils/ansi.js +157 -0
  92. package/dist/app/utils/diff-rows.d.ts +82 -0
  93. package/dist/app/utils/diff-rows.js +209 -0
  94. package/dist/app/utils/fuzzy-path.d.ts +58 -0
  95. package/dist/app/utils/fuzzy-path.js +202 -0
  96. package/dist/app/utils/line-range.d.ts +48 -0
  97. package/dist/app/utils/line-range.js +61 -0
  98. package/dist/app/utils/log-lines.d.ts +107 -0
  99. package/dist/app/utils/log-lines.js +170 -0
  100. package/dist/app/utils/tree-filter.d.ts +19 -0
  101. package/dist/app/utils/tree-filter.js +26 -0
  102. package/dist/app/view-options.d.ts +2 -0
  103. package/dist/app/view-options.js +2 -2
  104. package/dist/chat/activity.d.ts +72 -0
  105. package/dist/chat/activity.js +184 -0
  106. package/dist/chat/composer-submit.d.ts +38 -0
  107. package/dist/chat/composer-submit.js +44 -0
  108. package/dist/chat/composer.d.ts +47 -0
  109. package/dist/chat/composer.js +100 -0
  110. package/dist/chat/index.d.ts +6 -0
  111. package/dist/chat/index.js +6 -0
  112. package/dist/chat/mixins/composer-send.d.ts +32 -0
  113. package/dist/chat/mixins/composer-send.js +121 -0
  114. package/dist/chat/mixins/reveal-stream.d.ts +68 -0
  115. package/dist/chat/mixins/reveal-stream.js +184 -0
  116. package/dist/chat/mixins/stream-target.d.ts +18 -0
  117. package/dist/chat/mixins/stream-target.js +38 -0
  118. package/dist/components/button.js +7 -1
  119. package/dist/components/character-count.d.ts +44 -0
  120. package/dist/components/character-count.js +68 -0
  121. package/dist/components/index.d.ts +2 -0
  122. package/dist/components/index.js +2 -0
  123. package/dist/components/label-chip.d.ts +42 -0
  124. package/dist/components/label-chip.js +86 -0
  125. package/dist/components/property-list.d.ts +9 -2
  126. package/dist/components/property-list.js +11 -6
  127. package/dist/components/textarea.js +6 -1
  128. package/dist/components/timeline.d.ts +62 -5
  129. package/dist/components/timeline.js +124 -5
  130. package/dist/docs/code-block.js +8 -31
  131. package/dist/docs/file-tree.js +3 -48
  132. package/dist/landing/case-study.d.ts +79 -0
  133. package/dist/landing/case-study.js +162 -0
  134. package/dist/landing/contributor-wall.d.ts +72 -0
  135. package/dist/landing/contributor-wall.js +129 -0
  136. package/dist/landing/countdown.d.ts +88 -0
  137. package/dist/landing/countdown.js +91 -0
  138. package/dist/landing/episode-player.d.ts +87 -0
  139. package/dist/landing/episode-player.js +113 -0
  140. package/dist/landing/faq-band.d.ts +3 -2
  141. package/dist/landing/faq-band.js +4 -3
  142. package/dist/landing/index.d.ts +7 -0
  143. package/dist/landing/index.js +7 -0
  144. package/dist/landing/landing-header.js +15 -4
  145. package/dist/landing/mixins/countdown-tick.d.ts +29 -0
  146. package/dist/landing/mixins/countdown-tick.js +65 -0
  147. package/dist/landing/mixins/usage-estimate-live.d.ts +32 -0
  148. package/dist/landing/mixins/usage-estimate-live.js +120 -0
  149. package/dist/landing/phone-frame.d.ts +2 -1
  150. package/dist/landing/price-list.d.ts +68 -0
  151. package/dist/landing/price-list.js +125 -0
  152. package/dist/landing/scroll-scene.d.ts +59 -0
  153. package/dist/landing/scroll-scene.js +70 -0
  154. package/dist/landing/sponsor-wall.d.ts +30 -6
  155. package/dist/landing/sponsor-wall.js +70 -14
  156. package/dist/landing/typed-terminal.d.ts +24 -6
  157. package/dist/landing/typed-terminal.js +22 -14
  158. package/dist/landing/usage-estimate.d.ts +127 -0
  159. package/dist/landing/usage-estimate.js +164 -0
  160. package/dist/landing/utils/countdown.d.ts +33 -0
  161. package/dist/landing/utils/countdown.js +42 -0
  162. package/dist/landing/utils/pause-toggle.d.ts +2 -1
  163. package/dist/mixins/character-count.d.ts +62 -0
  164. package/dist/mixins/character-count.js +139 -0
  165. package/dist/mixins/index.d.ts +6 -2
  166. package/dist/mixins/index.js +6 -2
  167. package/dist/mixins/invoker-fields.d.ts +18 -0
  168. package/dist/mixins/invoker-fields.js +60 -0
  169. package/dist/mixins/media-sync.d.ts +58 -0
  170. package/dist/mixins/media-sync.js +102 -0
  171. package/dist/mixins/menu-keys.d.ts +11 -0
  172. package/dist/mixins/menu-keys.js +79 -70
  173. package/dist/mixins/sortable.d.ts +96 -0
  174. package/dist/mixins/sortable.js +433 -0
  175. package/dist/utils/code-lines.d.ts +26 -0
  176. package/dist/utils/code-lines.js +29 -0
  177. package/dist/utils/file-icon.d.ts +31 -0
  178. package/dist/utils/file-icon.js +60 -0
  179. package/dist/utils/index.d.ts +2 -0
  180. package/dist/utils/index.js +2 -0
  181. package/dist/utils/write-cookie.d.ts +15 -15
  182. package/dist/utils/write-cookie.js +10 -16
  183. package/dist/video/index.d.ts +11 -0
  184. package/dist/video/index.js +11 -0
  185. package/dist/video/mixins/video-player-sync.d.ts +27 -0
  186. package/dist/video/mixins/video-player-sync.js +413 -0
  187. package/dist/video/utils/timeline.d.ts +55 -0
  188. package/dist/video/utils/timeline.js +90 -0
  189. package/dist/video/video-player.d.ts +261 -0
  190. package/dist/video/video-player.js +927 -0
  191. package/package.json +6 -3
@@ -0,0 +1,123 @@
1
+ /**
2
+ * A kanban board: columns of cards a person drags from one column to another. Each card owns
3
+ * a move form, so a drop is a plain post the server answers, and the same form takes the
4
+ * card's own menu, which moves it without script, by keyboard or on a touch screen.
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
+ /**
11
+ * The id of a card's move form, for a menu row that moves the card by submitting it with the
12
+ * column's value as its own `name` and `value`.
13
+ *
14
+ * @param board The board's id.
15
+ * @param card The card's value.
16
+ * @returns The form's id.
17
+ * @example <Menu.Item type="submit" form={boardMoveFormId("web", "WEB-12")} name="status" value="done">Done</Menu.Item>
18
+ */
19
+ export declare function boardMoveFormId(board: string, card: string): string;
20
+ /** Prop types for {@link Board}, {@link Board.Column} and {@link Board.Card}. */
21
+ export declare namespace Board {
22
+ /** Props accepted by {@link Board}. */
23
+ interface Props extends Omit<TagProps<"div">, "id" | "children"> {
24
+ /** The board's id, which each card's move form id starts with. */
25
+ id: string;
26
+ /** The board's accessible name, such as "Web issues by status". */
27
+ label: string;
28
+ /** What a keyboard move announces, such as "Moved to {column}". */
29
+ labels?: Labels;
30
+ /** {@link Board.Column}s, in order. */
31
+ children: RemixNode;
32
+ }
33
+ /** Strings the board announces. */
34
+ interface Labels {
35
+ /** Read after a keyboard move, with `{column}` where the column's title goes. */
36
+ moved: string;
37
+ }
38
+ /** Context a board hands its cards. */
39
+ interface Context {
40
+ id: string;
41
+ }
42
+ /** Props accepted by {@link Board.Column}. */
43
+ interface ColumnProps extends Omit<TagProps<"section">, "title" | "children"> {
44
+ /** The value a card dropped here posts, such as a status id. */
45
+ value: string;
46
+ title: string;
47
+ /** A 16px glyph before the title. */
48
+ icon?: RemixNode;
49
+ /** The number of cards, which a drop keeps current until the server answers. */
50
+ count?: number;
51
+ /** Controls at the header's end, such as an "Add issue" link. */
52
+ actions?: RemixNode;
53
+ /** What an empty column says, such as "No issues". */
54
+ empty?: RemixNode;
55
+ /** {@link Board.Card}s. */
56
+ children?: RemixNode;
57
+ }
58
+ /** Where a card's move posts: the form's address, the field the column fills, and extras. */
59
+ interface Move {
60
+ action: string;
61
+ /**
62
+ * The field a drop sends the column's value in, such as `"status"`. It comes after
63
+ * `fields`, so a reader of the post takes the field's last value.
64
+ */
65
+ name: string;
66
+ /**
67
+ * The field a move sends the value of the card it lands before in, empty when it lands
68
+ * last, such as `"before"`. With it, a drag places the card where the pointer is, a card
69
+ * moves within its column, and Shift+ArrowUp/Down reorder; without it, a moved card lands
70
+ * at the top of its new column.
71
+ */
72
+ position?: string;
73
+ /**
74
+ * The named `<Frame>` a move loads into, so a drop or a menu pick reloads only that frame
75
+ * rather than the page, such as the board's own.
76
+ */
77
+ target?: string;
78
+ /** Hidden fields posted with every move, such as the page to return to. */
79
+ fields?: Record<string, string>;
80
+ }
81
+ /** Props accepted by {@link Board.Card}. */
82
+ interface CardProps extends Omit<TagProps<"li">, "children"> {
83
+ /** The card's value, such as a record id, unique on the board. */
84
+ value: string;
85
+ /** Where a drop posts; a card without one can be read but not moved. */
86
+ move?: Move;
87
+ /** The card's content: usually a link to the record that fills the card. */
88
+ children: RemixNode;
89
+ }
90
+ }
91
+ /**
92
+ * Client island: an invisible marker carrying the board's pointer drag and keyboard moves, so its columns
93
+ * and cards stay server HTML. Loads from `@sdxc/ui/app/board#BoardDrag`.
94
+ */
95
+ export declare const BoardDrag: EntryComponent<BoardDragProps>;
96
+ /**
97
+ * Props {@link BoardDrag} serializes into the page, which is why they are a `type`:
98
+ * `SerializableProps` rejects an interface.
99
+ */
100
+ export type BoardDragProps = {
101
+ /** What a keyboard move announces, with `{column}` where the column's title goes. */
102
+ moved?: string;
103
+ };
104
+ /**
105
+ * Renders the board: columns `--ui-board-column-width` (18rem) wide in one positioned box that
106
+ * clips and scrolls everything in it, so the page never grows to its width; given a height, it
107
+ * fills it under sticky column headers. Sideways scrolling snaps column by column, and a
108
+ * phone-narrow board shows one column and a sliver of the next.
109
+ *
110
+ * @example
111
+ * <Board id="web" label="Web issues by status">
112
+ * <Board.Column value="todo" title="Todo" count={2}>
113
+ * <Board.Card value="WEB-12" move={{ action: "/issues/WEB-12", name: "status" }}>
114
+ * <a href="/issues/WEB-12">Fix the cart badge</a>
115
+ * </Board.Card>
116
+ * </Board.Column>
117
+ * </Board>
118
+ */
119
+ export declare function Board(handle: Handle<Board.Props, Board.Context>): () => import("remix/component").RemixElement;
120
+ export declare namespace Board {
121
+ var Column: (handle: Handle<Board.ColumnProps>) => () => import("remix/component").RemixElement;
122
+ var Card: (handle: Handle<Board.CardProps>) => () => import("remix/component").RemixElement;
123
+ }
@@ -0,0 +1,224 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { iife } from "@sdxc/iife";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { mergeMix, raw } from "@sdxc/u/general";
5
+ import { motionReduce } from "@sdxc/u/responsive";
6
+ import { when } from "@sdxc/u/state";
7
+ import { attrs, clientEntry } from "remix/component";
8
+ import { SORTABLE_ACTIVE_ATTRIBUTE, SORTABLE_ATTRIBUTE, SORTABLE_COUNT_ATTRIBUTE, SORTABLE_DRAGGING_ATTRIBUTE, SORTABLE_FIELD_ATTRIBUTE, SORTABLE_FORM_ATTRIBUTE, SORTABLE_ITEM_ATTRIBUTE, SORTABLE_ITEMS_ATTRIBUTE, SORTABLE_LIST_ATTRIBUTE, SORTABLE_POSITION_ATTRIBUTE, SORTABLE_SCROLLER_ATTRIBUTE, SORTABLE_STATUS_ATTRIBUTE, SORTABLE_TARGET_ATTRIBUTE, SORTABLE_TITLE_ATTRIBUTE, sortable, } from "../mixins/sortable.js";
9
+ /** Container the board names, so its columns answer the board's width rather than the page's. */
10
+ const BOARD_CONTAINER = "ui-board";
11
+ /**
12
+ * The id of a card's move form, for a menu row that moves the card by submitting it with the
13
+ * column's value as its own `name` and `value`.
14
+ *
15
+ * @param board The board's id.
16
+ * @param card The card's value.
17
+ * @returns The form's id.
18
+ * @example <Menu.Item type="submit" form={boardMoveFormId("web", "WEB-12")} name="status" value="done">Done</Menu.Item>
19
+ */
20
+ export function boardMoveFormId(board, card) {
21
+ return `${board}-move-${card}`;
22
+ }
23
+ /**
24
+ * Client island: an invisible marker carrying the board's pointer drag and keyboard moves, so its columns
25
+ * and cards stay server HTML. Loads from `@sdxc/ui/app/board#BoardDrag`.
26
+ */
27
+ export const BoardDrag = clientEntry("@sdxc/ui/app/board#BoardDrag", function BoardDrag(handle) {
28
+ return () => (_jsx("span", { hidden: true, "data-slot": "board-drag", mix: [sortable({ moved: handle.props.moved?.replaceAll("{column}", "{list}") })] }));
29
+ });
30
+ /**
31
+ * Renders the board: columns `--ui-board-column-width` (18rem) wide in one positioned box that
32
+ * clips and scrolls everything in it, so the page never grows to its width; given a height, it
33
+ * fills it under sticky column headers. Sideways scrolling snaps column by column, and a
34
+ * phone-narrow board shows one column and a sliver of the next.
35
+ *
36
+ * @example
37
+ * <Board id="web" label="Web issues by status">
38
+ * <Board.Column value="todo" title="Todo" count={2}>
39
+ * <Board.Card value="WEB-12" move={{ action: "/issues/WEB-12", name: "status" }}>
40
+ * <a href="/issues/WEB-12">Fix the cart badge</a>
41
+ * </Board.Card>
42
+ * </Board.Column>
43
+ * </Board>
44
+ */
45
+ export function Board(handle) {
46
+ return () => {
47
+ let { id, label, labels, children, mix, ...rest } = handle.props;
48
+ handle.context.set({ id });
49
+ return (_jsxs("div", { ...rest, id: id, role: "region", "aria-label": label, "data-slot": "board", mix: mergeMix([
50
+ attrs({ [SORTABLE_ATTRIBUTE]: "" }),
51
+ raw({
52
+ container: `${BOARD_CONTAINER} / inline-size`,
53
+ display: "flex",
54
+ flexDirection: "column",
55
+ minInlineSize: 0,
56
+ minBlockSize: 0,
57
+ [`&[${SORTABLE_ACTIVE_ATTRIBUTE}]`]: { cursor: "grabbing", userSelect: "none" },
58
+ }),
59
+ ], mix), children: [_jsx("div", { "data-slot": "board-columns", mix: [
60
+ attrs({ [SORTABLE_SCROLLER_ATTRIBUTE]: "" }),
61
+ raw({
62
+ position: "relative",
63
+ display: "flex",
64
+ alignItems: "stretch",
65
+ flex: "1 1 auto",
66
+ minBlockSize: 0,
67
+ gap: "0.75rem",
68
+ overflow: "auto",
69
+ overscrollBehavior: "contain",
70
+ paddingBlockEnd: "0.5rem",
71
+ scrollPaddingInline: "0.5rem",
72
+ scrollSnapType: "x mandatory",
73
+ [`[${SORTABLE_ACTIVE_ATTRIBUTE}] > &`]: { scrollSnapType: "none" },
74
+ }),
75
+ ], children: children }), _jsx("span", { "data-slot": "board-status", role: "status", "aria-live": "polite", mix: [attrs({ [SORTABLE_STATUS_ATTRIBUTE]: "" }), visuallyHidden()] }), _jsx(BoardDrag, { moved: labels?.moved })] }));
76
+ };
77
+ }
78
+ /**
79
+ * One column: its header (glyph, title, count, actions) over its cards. While a dragged card
80
+ * hovers it, the column takes a brand tint and ring.
81
+ */
82
+ Board.Column = function BoardColumn(handle) {
83
+ return () => {
84
+ let { value, title, icon, count, actions, empty, children, mix, ...rest } = handle.props;
85
+ let headingId = `board-column-${value}`;
86
+ return (_jsxs("section", { ...rest, "aria-labelledby": headingId, "data-slot": "board-column", mix: mergeMix([
87
+ attrs({ [SORTABLE_LIST_ATTRIBUTE]: value }),
88
+ raw({
89
+ display: "flex",
90
+ flexDirection: "column",
91
+ flex: "0 0 var(--ui-board-column-width, 18rem)",
92
+ minInlineSize: 0,
93
+ borderRadius: "var(--ui-radius-lg, 0.5rem)",
94
+ backgroundColor: "var(--ui-neutral-bg-tint)",
95
+ outline: "2px solid transparent",
96
+ outlineOffset: "-2px",
97
+ transition: "background-color 120ms, outline-color 120ms",
98
+ scrollSnapAlign: "start",
99
+ [`@container ${BOARD_CONTAINER} (width < 40rem)`]: { flexBasis: "85%" },
100
+ }),
101
+ when(`&[${SORTABLE_TARGET_ATTRIBUTE}]`, raw({
102
+ outlineColor: "var(--ui-brand-ring)",
103
+ backgroundColor: "color-mix(in oklch, var(--ui-neutral-bg-tint), var(--ui-brand-bg-solid) 10%)",
104
+ })),
105
+ motionReduce(raw({ transition: "none" })),
106
+ ], mix), children: [_jsxs("header", { mix: [
107
+ raw({
108
+ position: "sticky",
109
+ insetBlockStart: 0,
110
+ zIndex: 1,
111
+ backgroundColor: "inherit",
112
+ borderStartStartRadius: "inherit",
113
+ borderStartEndRadius: "inherit",
114
+ display: "flex",
115
+ alignItems: "center",
116
+ gap: "0.5rem",
117
+ minBlockSize: "2.5rem",
118
+ paddingInline: "0.75rem",
119
+ fontSize: "0.875rem",
120
+ lineHeight: "1.25rem",
121
+ "& > svg, & > [data-slot='board-icon'] > svg": {
122
+ inlineSize: "1rem",
123
+ blockSize: "1rem",
124
+ flexShrink: "0",
125
+ },
126
+ }),
127
+ ], children: [iife(() => {
128
+ if (!icon)
129
+ return null;
130
+ return (_jsx("span", { "data-slot": "board-icon", "aria-hidden": "true", mix: [raw({ display: "inline-flex" })], children: icon }));
131
+ }), _jsx("h3", { id: headingId, mix: [
132
+ attrs({ [SORTABLE_TITLE_ATTRIBUTE]: "" }),
133
+ raw({
134
+ margin: "0",
135
+ fontSize: "inherit",
136
+ fontWeight: "600",
137
+ color: "var(--ui-neutral-fg-emphasis)",
138
+ whiteSpace: "nowrap",
139
+ overflow: "hidden",
140
+ textOverflow: "ellipsis",
141
+ }),
142
+ ], children: title }), iife(() => {
143
+ if (count === undefined)
144
+ return null;
145
+ return (_jsx("span", { "data-slot": "board-count", mix: [
146
+ attrs({ [SORTABLE_COUNT_ATTRIBUTE]: "" }),
147
+ raw({ color: "var(--ui-neutral-fg-muted)", fontVariantNumeric: "tabular-nums" }),
148
+ ], children: count }));
149
+ }), iife(() => {
150
+ if (!actions)
151
+ return null;
152
+ return (_jsx("span", { mix: [raw({ marginInlineStart: "auto", display: "inline-flex", gap: "0.25rem" })], children: actions }));
153
+ })] }), iife(() => {
154
+ if (!empty)
155
+ return null;
156
+ return (_jsx("p", { "data-slot": "board-empty", mix: [
157
+ raw({
158
+ display: "none",
159
+ margin: "0 0.5rem 0.5rem",
160
+ blockSize: "3.5rem",
161
+ boxSizing: "border-box",
162
+ paddingBlock: "1.125rem",
163
+ textAlign: "center",
164
+ fontSize: "0.8125rem",
165
+ lineHeight: "1.25rem",
166
+ color: "var(--ui-neutral-fg-muted)",
167
+ border: "1px dashed var(--ui-neutral-border)",
168
+ borderRadius: "var(--ui-radius-md, 0.375rem)",
169
+ pointerEvents: "none",
170
+ }),
171
+ when("[data-slot='board-column']:has(> [data-slot='board-cards']:empty) > &", raw({ display: "block" })),
172
+ ], children: empty }));
173
+ }), _jsx("ul", { "data-slot": "board-cards", "aria-labelledby": headingId, mix: [
174
+ attrs({ [SORTABLE_ITEMS_ATTRIBUTE]: "" }),
175
+ raw({
176
+ display: "flex",
177
+ flexDirection: "column",
178
+ gap: "0.5rem",
179
+ flex: "1 1 auto",
180
+ margin: "0",
181
+ padding: "0 0.5rem 0.5rem",
182
+ listStyle: "none",
183
+ minBlockSize: "4rem",
184
+ }),
185
+ ], children: children })] }));
186
+ };
187
+ };
188
+ /**
189
+ * One card: a raised surface holding the consumer's content, grabbable by a mouse or pen, and
190
+ * a hidden move form. A drop appends the column's field after the form's own; a menu row
191
+ * submitting the form sends its value as the submitter, also last, so a reader takes the last.
192
+ */
193
+ Board.Card = function BoardCard(handle) {
194
+ return () => {
195
+ let { value, move, children, mix, ...rest } = handle.props;
196
+ let board = handle.context.get(Board);
197
+ return (_jsxs("li", { ...rest, "data-slot": "board-card", "data-rmx-key": value, mix: mergeMix([
198
+ attrs({ [SORTABLE_ITEM_ATTRIBUTE]: value }),
199
+ raw({
200
+ position: "relative",
201
+ padding: "0.625rem 0.75rem",
202
+ borderRadius: "var(--ui-radius-md, 0.375rem)",
203
+ border: "1px solid var(--ui-neutral-border)",
204
+ backgroundColor: "var(--ui-surface-raised, var(--ui-bg, Canvas))",
205
+ boxShadow: "0 1px 2px rgb(0 0 0 / 0.04)",
206
+ cursor: move ? "grab" : "auto",
207
+ transition: "opacity 120ms, border-color 120ms",
208
+ }),
209
+ when("&:hover", raw({ borderColor: "var(--ui-neutral-border-emphasis, var(--ui-neutral-fg-muted))" })),
210
+ when(`&[${SORTABLE_DRAGGING_ATTRIBUTE}]`, raw({ opacity: "0.35" })),
211
+ motionReduce(raw({ transition: "none" })),
212
+ ], mix), children: [children, iife(() => {
213
+ if (!move)
214
+ return null;
215
+ return (_jsx("form", { id: boardMoveFormId(board.id, value), method: "post", action: move.action, "data-rmx-target": move.target, hidden: true, mix: [
216
+ attrs({
217
+ [SORTABLE_FORM_ATTRIBUTE]: value,
218
+ [SORTABLE_FIELD_ATTRIBUTE]: move.name,
219
+ [SORTABLE_POSITION_ATTRIBUTE]: move.position,
220
+ }),
221
+ ], children: Object.entries(move.fields ?? {}).map(([name, field]) => (_jsx("input", { type: "hidden", name: name, value: field }))) }));
222
+ })] }));
223
+ };
224
+ };
@@ -481,8 +481,8 @@ export declare namespace Chart {
481
481
  }
482
482
  /**
483
483
  * Renders a chart's coordinate space: a responsive `<svg>` whose `viewBox`
484
- * comes from `width`/`height`, shared via context so nested series share one
485
- * scale. A paired {@link Chart.Legend} must render as this root's later sibling.
484
+ * comes from `width`/`height`, shared via context so nested series share one scale. Markers
485
+ * and strokes on its edges paint in full. A paired {@link Chart.Legend} renders as its later sibling.
486
486
  *
487
487
  * @param handle Runtime handle carrying the host `<svg>`'s props and providing {@link Chart.Context}.
488
488
  * @returns The render function producing the chart's coordinate space.
package/dist/app/chart.js CHANGED
@@ -146,8 +146,8 @@ function ChartLegendItem(handle) {
146
146
  ChartLegend.Item = ChartLegendItem;
147
147
  /**
148
148
  * Renders a chart's coordinate space: a responsive `<svg>` whose `viewBox`
149
- * comes from `width`/`height`, shared via context so nested series share one
150
- * scale. A paired {@link Chart.Legend} must render as this root's later sibling.
149
+ * comes from `width`/`height`, shared via context so nested series share one scale. Markers
150
+ * and strokes on its edges paint in full. A paired {@link Chart.Legend} renders as its later sibling.
151
151
  *
152
152
  * @param handle Runtime handle carrying the host `<svg>`'s props and providing {@link Chart.Context}.
153
153
  * @returns The render function producing the chart's coordinate space.
@@ -174,7 +174,11 @@ export function Chart(handle) {
174
174
  block(),
175
175
  is("full"),
176
176
  bs("auto"),
177
- raw({ container: "ui-chart / inline-size", aspectRatio: `${width} / ${height}` }),
177
+ raw({
178
+ container: "ui-chart / inline-size",
179
+ aspectRatio: `${width} / ${height}`,
180
+ overflow: "visible",
181
+ }),
178
182
  ], mix) }));
179
183
  };
180
184
  }
@@ -0,0 +1,116 @@
1
+ /**
2
+ * The checks on a commit or pull request: one sentence counting them by state ("1 failing,
3
+ * 1 pending and 22 successful checks") that discloses the list, sorted failures first. Each
4
+ * state carries its own icon shape as well as its tone, and the whole part works without script.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps } from "remix/component";
10
+ /**
11
+ * Prop types for {@link CheckRuns}.
12
+ */
13
+ export declare namespace CheckRuns {
14
+ /** Where one run stands; `failure` reads danger, `pending` warning, `success` success. */
15
+ type State = "success" | "failure" | "pending" | "skipped" | "cancelled";
16
+ /** One check run. */
17
+ interface Run {
18
+ /** The job's name ("test (ubuntu-latest)"). */
19
+ name: string;
20
+ /** The workflow it belongs to ("CI / pull_request"). */
21
+ workflow?: string;
22
+ /** Decides the row's icon and its place in the sorted list. */
23
+ state: State;
24
+ /** How long it ran, already formatted ("2m 14s"). */
25
+ duration?: string;
26
+ /** Where its log lives; the row's Details link. */
27
+ href?: string;
28
+ }
29
+ /** Every string the part shows, so an app translates each one. */
30
+ interface Labels {
31
+ /** One count of the summary per state, plural-aware: `(1) => "1 failing"`. */
32
+ counts: Record<State, (count: number) => string>;
33
+ /**
34
+ * The whole sentence around the joined counts, plural on the total:
35
+ * `(list, total) => \`${list} ${total === 1 ? "check" : "checks"}\``.
36
+ */
37
+ summary: (list: string, total: number) => string;
38
+ /** The name each state's icon announces ("Failed", "In progress"). */
39
+ states: Record<State, string>;
40
+ /** The row link's text ("Details"); the run's name follows it for assistive technology. */
41
+ details: string;
42
+ /** The summary when there are no runs ("No checks"). */
43
+ empty: string;
44
+ }
45
+ /** Props accepted by {@link CheckRunIcon}. */
46
+ interface IconProps {
47
+ /** Picks the glyph's shape and tone. */
48
+ state: State;
49
+ /** The state's name, announced in place of the shape ("Failed"). */
50
+ label: string;
51
+ }
52
+ /** Props accepted by {@link CheckRuns}; the host is a `<details>`. */
53
+ interface Props extends Omit<TagProps<"details">, "children" | "open"> {
54
+ /** Every run in any order; the part sorts them failures first. */
55
+ runs: readonly Run[];
56
+ /** The strings the summary, icons and links show, so the part reads in any language. */
57
+ labels: Labels;
58
+ /** Locale the counts are joined in ("1 failing, 1 pending and 22 successful"). */
59
+ locale?: string;
60
+ /**
61
+ * Whether the list starts open. Unset, it opens exactly when a run failed, so the
62
+ * failure is on screen and a green list stays one line.
63
+ */
64
+ open?: boolean;
65
+ }
66
+ }
67
+ /**
68
+ * Sorts runs failure → pending → success → skipped and cancelled, keeping the given order
69
+ * within a state, so the run that needs attention is the first row.
70
+ *
71
+ * @param runs The runs in any order.
72
+ * @returns A sorted copy.
73
+ */
74
+ export declare function sortCheckRuns(runs: readonly CheckRuns.Run[]): CheckRuns.Run[];
75
+ /**
76
+ * Writes the summary sentence: each state with runs counted through `labels.counts`, joined as
77
+ * a list in `locale`, then wrapped by `labels.summary` with the total for its plural.
78
+ *
79
+ * @param runs The runs to count.
80
+ * @param labels The part's strings.
81
+ * @param locale Locale the counts are joined in.
82
+ * @returns The sentence, or `labels.empty` when there are no runs.
83
+ * @example checkRunsSummary(runs, labels, "en-GB") // "1 failing, 1 pending and 22 successful checks"
84
+ */
85
+ export declare function checkRunsSummary(runs: readonly CheckRuns.Run[], labels: CheckRuns.Labels, locale?: string): string;
86
+ /**
87
+ * Renders the summary sentence as the `<summary>` of a `<details>` that lists every run, failed
88
+ * ones first, opening on its own when a run failed. It is complete as server HTML: the native
89
+ * disclosure needs no island, and it reads only the theme's shared tokens.
90
+ *
91
+ * @param handle Runtime handle carrying the host `<details>`'s props.
92
+ * @returns The render function producing the part's markup.
93
+ * @example
94
+ * <CheckRuns
95
+ * runs={runs}
96
+ * locale="en"
97
+ * labels={{
98
+ * counts: { failure: (n) => `${n} failing`, pending: (n) => `${n} pending`, success: (n) => `${n} successful`, skipped: (n) => `${n} skipped`, cancelled: (n) => `${n} cancelled` },
99
+ * summary: (list, total) => `${list} ${total === 1 ? "check" : "checks"}`,
100
+ * states: { failure: "Failed", pending: "In progress", success: "Passed", skipped: "Skipped", cancelled: "Cancelled" },
101
+ * details: "Details",
102
+ * empty: "No checks",
103
+ * }}
104
+ * />
105
+ */
106
+ export declare function CheckRuns(handle: Handle<CheckRuns.Props>): () => import("remix/component").RemixElement;
107
+ /**
108
+ * A state's named icon, read by shape as well as tone (✗ failure, ● pending, ✓ success, ⊘ skipped,
109
+ * ⊖ cancelled), also usable alone as a commit's status. The pending icon pulses until the run
110
+ * settles, and holds still under reduced motion.
111
+ *
112
+ * @param handle Runtime handle carrying the state and its name.
113
+ * @returns The render function producing the icon.
114
+ * @example <CheckRunIcon state="failure" label={t("checks.failed")} />
115
+ */
116
+ export declare function CheckRunIcon(handle: Handle<CheckRuns.IconProps>): () => import("remix/component").RemixElement;