@noix-dev/brix-vue 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -2
  3. package/package.json +117 -3
  4. package/src/components/address-field/AddressField.vue +337 -0
  5. package/src/components/address-field/index.ts +1 -0
  6. package/src/components/appearance-picker/AppearancePicker.vue +502 -0
  7. package/src/components/appearance-picker/AppearanceSegment.vue +175 -0
  8. package/src/components/appearance-picker/index.ts +44 -0
  9. package/src/components/autofill/AutoFillDialog.vue +264 -0
  10. package/src/components/autofill/index.ts +1 -0
  11. package/src/components/badge/Badge.vue +23 -0
  12. package/src/components/badge/index.ts +106 -0
  13. package/src/components/build-stamp/BuildStamp.vue +62 -0
  14. package/src/components/build-stamp/index.ts +1 -0
  15. package/src/components/button/Button.vue +31 -0
  16. package/src/components/button/index.ts +122 -0
  17. package/src/components/card/Card.vue +29 -0
  18. package/src/components/card/CardAction.vue +17 -0
  19. package/src/components/card/CardContent.vue +14 -0
  20. package/src/components/card/CardDescription.vue +14 -0
  21. package/src/components/card/CardFooter.vue +22 -0
  22. package/src/components/card/CardHeader.vue +22 -0
  23. package/src/components/card/CardTitle.vue +29 -0
  24. package/src/components/card/index.ts +47 -0
  25. package/src/components/chart/BarChart.vue +123 -0
  26. package/src/components/chart/StackedBarChart.vue +149 -0
  27. package/src/components/chart/appearanceRevision.ts +22 -0
  28. package/src/components/chart/chartColor.ts +59 -0
  29. package/src/components/chart/index.ts +6 -0
  30. package/src/components/checkbox/Checkbox.vue +61 -0
  31. package/src/components/checkbox/index.ts +1 -0
  32. package/src/components/code-editor/CodeEditor.vue +352 -0
  33. package/src/components/code-editor/index.ts +9 -0
  34. package/src/components/code-editor/syntaxTheme.ts +110 -0
  35. package/src/components/colour-picker/ColourPicker.vue +421 -0
  36. package/src/components/colour-picker/index.ts +1 -0
  37. package/src/components/combobox/Combobox.vue +337 -0
  38. package/src/components/combobox/index.ts +1 -0
  39. package/src/components/comments/CommentComposer.vue +302 -0
  40. package/src/components/comments/CommentMessage.vue +259 -0
  41. package/src/components/comments/CommentThread.vue +250 -0
  42. package/src/components/comments/commentBody.ts +185 -0
  43. package/src/components/comments/commentLevels.ts +139 -0
  44. package/src/components/comments/commentNode.ts +35 -0
  45. package/src/components/comments/composer.ts +20 -0
  46. package/src/components/comments/index.ts +29 -0
  47. package/src/components/confirm-dialog/ConfirmDialog.vue +153 -0
  48. package/src/components/confirm-dialog/index.ts +1 -0
  49. package/src/components/containers/Box.vue +42 -0
  50. package/src/components/containers/Section.vue +88 -0
  51. package/src/components/containers/SectionAction.vue +17 -0
  52. package/src/components/containers/SectionContent.vue +14 -0
  53. package/src/components/containers/SectionDescription.vue +14 -0
  54. package/src/components/containers/SectionHeader.vue +22 -0
  55. package/src/components/containers/SectionTitle.vue +17 -0
  56. package/src/components/containers/index.ts +9 -0
  57. package/src/components/data-table/ColumnMenu.vue +241 -0
  58. package/src/components/data-table/DataTable.vue +447 -0
  59. package/src/components/data-table/ExpandCaret.vue +34 -0
  60. package/src/components/data-table/SortableHead.vue +184 -0
  61. package/src/components/data-table/TableLoadingRow.vue +13 -0
  62. package/src/components/data-table/TableProgressRow.vue +26 -0
  63. package/src/components/data-table/columns.ts +13 -0
  64. package/src/components/data-table/index.ts +3 -0
  65. package/src/components/data-table/pinned.ts +19 -0
  66. package/src/components/data-table/rowActivation.ts +14 -0
  67. package/src/components/data-table/sort.ts +13 -0
  68. package/src/components/data-table/types.ts +23 -0
  69. package/src/components/date-picker/CalendarPanel.vue +432 -0
  70. package/src/components/date-picker/DateField.vue +293 -0
  71. package/src/components/date-picker/DatePicker.vue +147 -0
  72. package/src/components/date-picker/UntilDatePicker.vue +96 -0
  73. package/src/components/date-picker/dateFieldGuard.ts +87 -0
  74. package/src/components/date-picker/index.ts +4 -0
  75. package/src/components/date-picker/useDateField.ts +37 -0
  76. package/src/components/date-range-picker/DateRangePicker.vue +247 -0
  77. package/src/components/date-range-picker/index.ts +1 -0
  78. package/src/components/date-time-picker/DateTimePicker.vue +291 -0
  79. package/src/components/date-time-picker/index.ts +1 -0
  80. package/src/components/dialog/Dialog.vue +250 -0
  81. package/src/components/dialog/DialogSurface.vue +214 -0
  82. package/src/components/dialog/dialogEdges.ts +65 -0
  83. package/src/components/dialog/dialogSizes.ts +35 -0
  84. package/src/components/dialog/index.ts +12 -0
  85. package/src/components/dialog/toastHost.ts +18 -0
  86. package/src/components/dropdown/Dropdown.vue +101 -0
  87. package/src/components/dropdown/DropdownItems.vue +154 -0
  88. package/src/components/dropdown/dropdown.ts +64 -0
  89. package/src/components/dropdown/index.ts +2 -0
  90. package/src/components/file-preview/FilePreview.vue +78 -0
  91. package/src/components/file-preview/index.ts +1 -0
  92. package/src/components/file-upload/FileUpload.vue +234 -0
  93. package/src/components/file-upload/index.ts +1 -0
  94. package/src/components/filter-check-menu/FilterCheckMenu.vue +562 -0
  95. package/src/components/filter-check-menu/filterCheckOption.ts +10 -0
  96. package/src/components/filter-check-menu/index.ts +2 -0
  97. package/src/components/form-field/FormField.vue +74 -0
  98. package/src/components/form-field/index.ts +2 -0
  99. package/src/components/form-field/types.ts +5 -0
  100. package/src/components/frames/FrameCentred.vue +137 -0
  101. package/src/components/frames/FrameSidebar.vue +113 -0
  102. package/src/components/frames/FrameSplit.vue +109 -0
  103. package/src/components/frames/index.ts +3 -0
  104. package/src/components/icon/BellIcon.vue +27 -0
  105. package/src/components/icon/BoldIcon.vue +31 -0
  106. package/src/components/icon/CalendarDaysIcon.vue +33 -0
  107. package/src/components/icon/CheckIcon.vue +31 -0
  108. package/src/components/icon/ChevronDownIcon.vue +30 -0
  109. package/src/components/icon/ChevronLeftIcon.vue +31 -0
  110. package/src/components/icon/ChevronRightIcon.vue +31 -0
  111. package/src/components/icon/ChevronUpIcon.vue +30 -0
  112. package/src/components/icon/CircleAlertIcon.vue +29 -0
  113. package/src/components/icon/ClockIcon.vue +31 -0
  114. package/src/components/icon/Columns3Icon.vue +32 -0
  115. package/src/components/icon/FlipHorizontalIcon.vue +29 -0
  116. package/src/components/icon/ItalicIcon.vue +28 -0
  117. package/src/components/icon/LinkIcon.vue +27 -0
  118. package/src/components/icon/ListIcon.vue +29 -0
  119. package/src/components/icon/ListOrderedIcon.vue +28 -0
  120. package/src/components/icon/PenLineIcon.vue +31 -0
  121. package/src/components/icon/PlusIcon.vue +28 -0
  122. package/src/components/icon/RotateCcwIcon.vue +28 -0
  123. package/src/components/icon/RotateCwIcon.vue +28 -0
  124. package/src/components/icon/SearchIcon.vue +31 -0
  125. package/src/components/icon/StarIcon.vue +29 -0
  126. package/src/components/icon/TriangleAlertIcon.vue +29 -0
  127. package/src/components/icon/UnderlineIcon.vue +27 -0
  128. package/src/components/icon/Undo2Icon.vue +28 -0
  129. package/src/components/icon/XIcon.vue +31 -0
  130. package/src/components/icon/ZoomInIcon.vue +30 -0
  131. package/src/components/icon/ZoomOutIcon.vue +29 -0
  132. package/src/components/icon/index.ts +37 -0
  133. package/src/components/icon-picker/IconPicker.vue +560 -0
  134. package/src/components/icon-picker/index.ts +1 -0
  135. package/src/components/image-crop-dialog/CropRatioRow.vue +132 -0
  136. package/src/components/image-crop-dialog/CropVariantStrip.vue +277 -0
  137. package/src/components/image-crop-dialog/ImageCropDialog.vue +1541 -0
  138. package/src/components/image-crop-dialog/index.ts +16 -0
  139. package/src/components/image-upload/ImageUpload.vue +345 -0
  140. package/src/components/image-upload/index.ts +2 -0
  141. package/src/components/input/Input.vue +48 -0
  142. package/src/components/input/index.ts +1 -0
  143. package/src/components/keycap/Keycap.vue +49 -0
  144. package/src/components/keycap/index.ts +1 -0
  145. package/src/components/label/Label.vue +26 -0
  146. package/src/components/label/index.ts +1 -0
  147. package/src/components/menu/MenuCheckboxItem.vue +63 -0
  148. package/src/components/menu/MenuContent.vue +45 -0
  149. package/src/components/menu/MenuGroup.vue +22 -0
  150. package/src/components/menu/MenuItem.vue +34 -0
  151. package/src/components/menu/MenuLabel.vue +22 -0
  152. package/src/components/menu/MenuRadioGroup.vue +22 -0
  153. package/src/components/menu/MenuRadioItem.vue +50 -0
  154. package/src/components/menu/MenuRoot.vue +25 -0
  155. package/src/components/menu/MenuSeparator.vue +27 -0
  156. package/src/components/menu/MenuSub.vue +29 -0
  157. package/src/components/menu/MenuSubContent.vue +48 -0
  158. package/src/components/menu/MenuSubTrigger.vue +49 -0
  159. package/src/components/menu/MenuTrigger.vue +22 -0
  160. package/src/components/menu/index.ts +20 -0
  161. package/src/components/menu/menuClasses.ts +74 -0
  162. package/src/components/morph-select/MorphSelect.vue +150 -0
  163. package/src/components/morph-select/index.ts +1 -0
  164. package/src/components/nav/NavFlyout.vue +343 -0
  165. package/src/components/nav/NavGroup.vue +306 -0
  166. package/src/components/nav/NavItem.vue +243 -0
  167. package/src/components/nav/NavNodes.ts +66 -0
  168. package/src/components/nav/NavSection.vue +105 -0
  169. package/src/components/nav/NavSidebar.vue +137 -0
  170. package/src/components/nav/index.ts +5 -0
  171. package/src/components/nav/navChain.ts +112 -0
  172. package/src/components/nav/navClasses.ts +229 -0
  173. package/src/components/nav/navNode.ts +10 -0
  174. package/src/components/nav/navRegistry.ts +24 -0
  175. package/src/components/notification-list/NotificationList.vue +314 -0
  176. package/src/components/notification-list/index.ts +2 -0
  177. package/src/components/notification-list/notifications.ts +21 -0
  178. package/src/components/pagination/Pagination.vue +296 -0
  179. package/src/components/pagination/index.ts +1 -0
  180. package/src/components/pin-field/PinField.vue +332 -0
  181. package/src/components/pin-field/index.ts +1 -0
  182. package/src/components/popover-panel/PopoverPanel.vue +115 -0
  183. package/src/components/popover-panel/index.ts +5 -0
  184. package/src/components/rating/Rating.vue +201 -0
  185. package/src/components/rating/index.ts +1 -0
  186. package/src/components/record-avatar/RecordAvatar.vue +76 -0
  187. package/src/components/record-avatar/index.ts +1 -0
  188. package/src/components/result-window/ResultWindow.vue +399 -0
  189. package/src/components/result-window/index.ts +2 -0
  190. package/src/components/result-window/results.ts +75 -0
  191. package/src/components/rich-editor/RichEditor.vue +370 -0
  192. package/src/components/rich-editor/RichEditorLinkDialog.vue +133 -0
  193. package/src/components/rich-editor/index.ts +8 -0
  194. package/src/components/row-actions/RowActions.vue +262 -0
  195. package/src/components/row-actions/index.ts +2 -0
  196. package/src/components/row-actions/rowActions.ts +44 -0
  197. package/src/components/search-select/SearchSelect.vue +599 -0
  198. package/src/components/search-select/index.ts +2 -0
  199. package/src/components/search-select/types.ts +14 -0
  200. package/src/components/segmented-choice/SegmentedChoice.vue +136 -0
  201. package/src/components/segmented-choice/index.ts +2 -0
  202. package/src/components/segmented-choice/segmentedOption.ts +6 -0
  203. package/src/components/select/Select.vue +18 -0
  204. package/src/components/select/SelectContent.vue +73 -0
  205. package/src/components/select/SelectGroup.vue +21 -0
  206. package/src/components/select/SelectItem.vue +47 -0
  207. package/src/components/select/SelectItemText.vue +12 -0
  208. package/src/components/select/SelectLabel.vue +17 -0
  209. package/src/components/select/SelectScrollDownButton.vue +36 -0
  210. package/src/components/select/SelectScrollUpButton.vue +36 -0
  211. package/src/components/select/SelectSeparator.vue +19 -0
  212. package/src/components/select/SelectTrigger.vue +52 -0
  213. package/src/components/select/SelectValue.vue +12 -0
  214. package/src/components/select/index.ts +11 -0
  215. package/src/components/session/IdleTimer.vue +71 -0
  216. package/src/components/session/SessionDialogs.vue +177 -0
  217. package/src/components/session/index.ts +2 -0
  218. package/src/components/split-button/SplitButton.vue +122 -0
  219. package/src/components/split-button/index.ts +2 -0
  220. package/src/components/split-button/splitButtonItem.ts +7 -0
  221. package/src/components/switch/Switch.vue +60 -0
  222. package/src/components/switch/index.ts +1 -0
  223. package/src/components/table/Table.vue +51 -0
  224. package/src/components/table/TableBody.vue +14 -0
  225. package/src/components/table/TableCaption.vue +17 -0
  226. package/src/components/table/TableCell.vue +22 -0
  227. package/src/components/table/TableEmpty.vue +72 -0
  228. package/src/components/table/TableFooter.vue +17 -0
  229. package/src/components/table/TableHead.vue +22 -0
  230. package/src/components/table/TableHeader.vue +14 -0
  231. package/src/components/table/TableRow.vue +22 -0
  232. package/src/components/table/index.ts +9 -0
  233. package/src/components/tabs/Tabs.vue +173 -0
  234. package/src/components/tabs/index.ts +2 -0
  235. package/src/components/tabs/tabItem.ts +12 -0
  236. package/src/components/textarea/LimitedTextarea.vue +81 -0
  237. package/src/components/textarea/TextLimitCounter.vue +107 -0
  238. package/src/components/textarea/Textarea.vue +42 -0
  239. package/src/components/textarea/index.ts +4 -0
  240. package/src/components/textarea/textLimit.ts +43 -0
  241. package/src/components/time-picker/TimePicker.vue +522 -0
  242. package/src/components/time-picker/index.ts +1 -0
  243. package/src/components/toast/ToastHost.vue +276 -0
  244. package/src/components/toast/index.ts +1 -0
  245. package/src/components/update-notice/UpdateNotice.vue +103 -0
  246. package/src/components/update-notice/index.ts +1 -0
  247. package/src/components/user-menu/UserMenu.vue +154 -0
  248. package/src/components/user-menu/index.ts +1 -0
  249. package/src/index.ts +182 -0
  250. package/src/lib/cn.ts +21 -0
  251. package/src/lib/panelFocus.ts +65 -0
  252. package/src/lib/sessionMonitor.ts +390 -0
  253. package/src/lib/slotContent.ts +17 -0
  254. package/src/lib/updateCheck.ts +133 -0
  255. package/src/styles.css +82 -0
@@ -0,0 +1,133 @@
1
+ import type { Build } from '@noix-dev/brix-core';
2
+ import { readonly, ref, type Ref } from 'vue';
3
+
4
+ /** How often a running app asks whether a newer build was deployed. */
5
+ export const UPDATE_POLL_MS = 300_000;
6
+
7
+ export interface UpdateCheck {
8
+ /** True while a newer build than the running one is known and not dismissed. */
9
+ available: Readonly<Ref<boolean>>;
10
+ check(): Promise<void>;
11
+ dismiss(): void;
12
+ start(): void;
13
+ stop(): void;
14
+ }
15
+
16
+ export interface UpdateCheckOptions {
17
+ /** The running build. Null (a dev server, a test) means never check. */
18
+ build: Build | null;
19
+ /**
20
+ * Reads the deployed build; null when it cannot be read. Required, and without a default.
21
+ */
22
+ fetchVersion: () => Promise<Build | null>;
23
+ /** Milliseconds between checks; default `UPDATE_POLL_MS`. */
24
+ intervalMs?: number;
25
+ /**
26
+ * The chunk-load event an application names, fired on `window` when a script of the old
27
+ * build is gone from the server. Naming it is the application's call, because which event
28
+ * that is depends on its bundler; with none named, nothing is listened for.
29
+ */
30
+ reloadEventName?: string;
31
+ }
32
+
33
+ function same(a: Build, b: Build): boolean {
34
+ return a.version === b.version && a.commit === b.commit;
35
+ }
36
+
37
+ function keyOf(build: Build | null): string {
38
+ return build === null ? 'chunk-load' : `${build.version}@${build.commit ?? ''}`;
39
+ }
40
+
41
+ /**
42
+ * Watches for a newer deployed build. It only ever reports; reloading is the reader's call,
43
+ * because a reload would throw away unsaved input.
44
+ *
45
+ * `fetchVersion` is required and has no default. The upstream's default fetched a version file
46
+ * from a path the bundler supplies, which is the one part of it that belonged to an application
47
+ * and not to a design system, and a default that works under one bundler is worse than none.
48
+ * What a fetcher returns is a `Build` or null; `parseBuild` from `@noix-dev/brix-core` turns an
49
+ * untrusted body into one, and a host that lacks the file answers with its index document, which
50
+ * `parseBuild` refuses.
51
+ *
52
+ * The chunk-load event is optional for the same reason: its name belongs to the application's
53
+ * bundler, so the application names it as `reloadEventName` or gets no listener.
54
+ */
55
+ export function createUpdateCheck(options: UpdateCheckOptions): UpdateCheck {
56
+ const { build, fetchVersion } = options;
57
+ const intervalMs = options.intervalMs ?? UPDATE_POLL_MS;
58
+
59
+ const available = ref(false);
60
+ let showing: string | null = null;
61
+ let dismissed: string | null = null;
62
+ let timer: ReturnType<typeof setInterval> | null = null;
63
+
64
+ function show(key: string): void {
65
+ showing = key;
66
+ available.value = key !== dismissed;
67
+ }
68
+
69
+ async function check(): Promise<void> {
70
+ if (build === null) {
71
+ return;
72
+ }
73
+
74
+ let deployed: Build | null;
75
+ try {
76
+ deployed = await fetchVersion();
77
+ } catch {
78
+ return;
79
+ }
80
+ if (deployed === null) {
81
+ return;
82
+ }
83
+
84
+ if (same(deployed, build)) {
85
+ showing = null;
86
+ available.value = false;
87
+ } else {
88
+ show(keyOf(deployed));
89
+ }
90
+ }
91
+
92
+ function dismiss(): void {
93
+ dismissed = showing;
94
+ available.value = false;
95
+ }
96
+
97
+ function onVisibility(): void {
98
+ if (document.visibilityState === 'visible') {
99
+ void check();
100
+ }
101
+ }
102
+
103
+ function onChunkLoadError(event: Event): void {
104
+ // A chunk of the old build no longer exists on the server: the deploy happened already.
105
+ event.preventDefault();
106
+ dismissed = null;
107
+ show(keyOf(null));
108
+ }
109
+
110
+ function start(): void {
111
+ if (build === null || timer !== null) {
112
+ return;
113
+ }
114
+ timer = setInterval(() => void check(), intervalMs);
115
+ document.addEventListener('visibilitychange', onVisibility);
116
+ if (options.reloadEventName !== undefined) {
117
+ window.addEventListener(options.reloadEventName, onChunkLoadError);
118
+ }
119
+ }
120
+
121
+ function stop(): void {
122
+ if (timer !== null) {
123
+ clearInterval(timer);
124
+ timer = null;
125
+ }
126
+ document.removeEventListener('visibilitychange', onVisibility);
127
+ if (options.reloadEventName !== undefined) {
128
+ window.removeEventListener(options.reloadEventName, onChunkLoadError);
129
+ }
130
+ }
131
+
132
+ return { available: readonly(available), check, dismiss, start, stop };
133
+ }
package/src/styles.css ADDED
@@ -0,0 +1,82 @@
1
+ /* The Tailwind source declaration for this package.
2
+
3
+ Tailwind v4 scans the tree of the application it runs in and stops there, so it never
4
+ reaches an installed package. Any class that exists only inside a component here — a
5
+ dialog overlay's `fixed`/`z-50`, the brand button's gradient — would therefore never
6
+ compile in a consuming application, silently: the markup ships, the rule does not, and
7
+ nothing reports it.
8
+
9
+ The path below is relative to this file, which is the only form that holds in both
10
+ layouts. In this repository the components sit beside this stylesheet; under
11
+ `node_modules/@noix-dev/brix-vue` they still do. A declaration in the tokens package instead
12
+ would have to name the distance between two packages, and that distance is not the
13
+ same in a workspace as it is in an install, so one of the two would be wrong — and a
14
+ wrong `@source` path fails as quietly as a missing one.
15
+
16
+ A consuming application imports this once, in the SAME stylesheet as the tokens and
17
+ a theme — all three lines in one file:
18
+
19
+ @import '@noix-dev/brix-tokens';
20
+ @import '@noix-dev/brix-tokens/themes/kingfisher.css';
21
+ @import '@noix-dev/brix-vue/styles.css';
22
+
23
+ "Same file" is the part that is easy to get wrong, and getting it wrong fails exactly
24
+ as quietly as a missing declaration. This file holds no `@import 'tailwindcss'` of its
25
+ own, so `@source` below binds to the ONE compilation this file is imported into — and
26
+ that compilation is rooted at the APPLICATION'S entry stylesheet, the file handed to
27
+ Tailwind, not at the tokens package. The tokens package is where the recipe's
28
+ `@import 'tailwindcss'` happens to live, but it is an imported chunk like this one:
29
+ every import is flattened into the entry before anything compiles.
30
+
31
+ The measurement that shows this is the documented three-line layout itself, 57,808
32
+ bytes with every component class present: there the `@import 'tailwindcss'` sits
33
+ INSIDE the tokens chunk, this file is a sibling import in the same entry, and the
34
+ classes compile anyway — so the root is the entry that was handed to Tailwind and not
35
+ whichever imported file holds the tailwind import. A second row, an entry of
36
+ `@import 'tailwindcss'` plus this file alone with no tokens package in the graph at
37
+ all (29,644 bytes, the brand gradient and `group/button` present), shows the weaker
38
+ thing: what `@source` needs is a Tailwind compilation to join rather than that
39
+ particular package. On its own that row cannot separate the two claims, because in it
40
+ the entry IS the file holding the import.
41
+
42
+ Imported as its own root instead (three separate `import` lines in a bundler entry
43
+ such as `main.ts`, say, which is three CSS roots and not one), this file compiles to
44
+ nothing at all: the tokens and the theme still load, the page still has colours, and
45
+ every class that exists only inside a component here is silently dropped. Measured in
46
+ a real application: 16 kB of component CSS gone, the brand button left with no
47
+ gradient and no shadow, and a green build.
48
+
49
+ The obvious guard — starting this file with its own `@import 'tailwindcss'`, so that
50
+ importing it alone produced a fat stylesheet rather than an empty one — was measured
51
+ and rejected: in the documented one-file layout it emits the preflight and the layer
52
+ declaration a second time, +4,094 bytes for 399 selectors before and 399 after — not
53
+ one new selector. The rejection is that byte count and nothing more.
54
+ Trading a silent loss for an unconditional duplication, in the configuration
55
+ everybody uses, is the worse deal. The documentation is the guard.
56
+ */
57
+ @source './components';
58
+
59
+ /* The declaration above hands a whole directory to the scanner, and the suites sit in it:
60
+ a fixture class in a test — `h-14`, a caller-override string — would compile into the
61
+ stylesheet of whoever imports this file, where nothing uses it. In this workspace that
62
+ is the playground, measurably (any file in `./components`, test or not, is scanned);
63
+ the published tarball leaves the suites out through the package's `files` field, so
64
+ there the exclusion is belt and braces — and it is what keeps the two layouts the same
65
+ if that ever changes. */
66
+ @source not './components/**/*.test.ts';
67
+
68
+ /* The data table's reload bar: a third-width bar sweeps across its track. Declared here, with
69
+ the `@source` above, because the class that uses it lives only inside a component and a
70
+ consuming application's own theme cannot be expected to carry it. */
71
+ @theme {
72
+ --animate-table-progress: table-progress 1.1s ease-in-out infinite;
73
+
74
+ @keyframes table-progress {
75
+ from {
76
+ transform: translateX(-100%);
77
+ }
78
+ to {
79
+ transform: translateX(300%);
80
+ }
81
+ }
82
+ }