@softure-ai/theme-notion 0.1.1 → 0.3.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 (137) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/README.md +239 -12
  3. package/dist/index.d.ts +12 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +12 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/messages/en.d.ts +20 -0
  8. package/dist/messages/en.d.ts.map +1 -1
  9. package/dist/messages/en.js +11 -0
  10. package/dist/messages/en.js.map +1 -1
  11. package/dist/messages/index.d.ts +20 -0
  12. package/dist/messages/index.d.ts.map +1 -1
  13. package/dist/notion/Code.d.ts +8 -0
  14. package/dist/notion/Code.d.ts.map +1 -0
  15. package/dist/notion/Code.js +12 -0
  16. package/dist/notion/Code.js.map +1 -0
  17. package/dist/notion/DetailTable.d.ts +15 -0
  18. package/dist/notion/DetailTable.d.ts.map +1 -0
  19. package/dist/notion/DetailTable.js +20 -0
  20. package/dist/notion/DetailTable.js.map +1 -0
  21. package/dist/notion/FilterChip.d.ts +24 -0
  22. package/dist/notion/FilterChip.d.ts.map +1 -0
  23. package/dist/notion/FilterChip.js +18 -0
  24. package/dist/notion/FilterChip.js.map +1 -0
  25. package/dist/notion/FoldRow.d.ts +23 -0
  26. package/dist/notion/FoldRow.d.ts.map +1 -0
  27. package/dist/notion/FoldRow.js +14 -0
  28. package/dist/notion/FoldRow.js.map +1 -0
  29. package/dist/notion/MarkPopover.d.ts +19 -0
  30. package/dist/notion/MarkPopover.d.ts.map +1 -0
  31. package/dist/notion/MarkPopover.js +22 -0
  32. package/dist/notion/MarkPopover.js.map +1 -0
  33. package/dist/notion/PageHeader.d.ts +2 -1
  34. package/dist/notion/PageHeader.d.ts.map +1 -1
  35. package/dist/notion/PageHeader.js +2 -2
  36. package/dist/notion/PageHeader.js.map +1 -1
  37. package/dist/notion/SidePanel.d.ts +13 -0
  38. package/dist/notion/SidePanel.d.ts.map +1 -0
  39. package/dist/notion/SidePanel.js +28 -0
  40. package/dist/notion/SidePanel.js.map +1 -0
  41. package/dist/notion/Sortable.d.ts +36 -0
  42. package/dist/notion/Sortable.d.ts.map +1 -0
  43. package/dist/notion/Sortable.js +83 -0
  44. package/dist/notion/Sortable.js.map +1 -0
  45. package/dist/notion/Stats.d.ts +49 -0
  46. package/dist/notion/Stats.d.ts.map +1 -0
  47. package/dist/notion/Stats.js +38 -0
  48. package/dist/notion/Stats.js.map +1 -0
  49. package/dist/notion/Steps.d.ts +18 -0
  50. package/dist/notion/Steps.d.ts.map +1 -0
  51. package/dist/notion/Steps.js +32 -0
  52. package/dist/notion/Steps.js.map +1 -0
  53. package/dist/notion/TabBar.d.ts +15 -0
  54. package/dist/notion/TabBar.d.ts.map +1 -0
  55. package/dist/notion/TabBar.js +6 -0
  56. package/dist/notion/TabBar.js.map +1 -0
  57. package/dist/notion/tones.d.ts +8 -0
  58. package/dist/notion/tones.d.ts.map +1 -0
  59. package/dist/notion/tones.js +37 -0
  60. package/dist/notion/tones.js.map +1 -0
  61. package/dist/page.css +22 -0
  62. package/dist/theme.css +55 -46
  63. package/dist/tokens.d.ts +82 -64
  64. package/dist/tokens.d.ts.map +1 -1
  65. package/dist/tokens.js +22 -19
  66. package/dist/tokens.js.map +1 -1
  67. package/dist/ui/alert.js +1 -1
  68. package/dist/ui/alert.js.map +1 -1
  69. package/dist/ui/badge.d.ts +1 -1
  70. package/dist/ui/badge.d.ts.map +1 -1
  71. package/dist/ui/badge.js +33 -13
  72. package/dist/ui/badge.js.map +1 -1
  73. package/dist/ui/button-group.js +1 -1
  74. package/dist/ui/button-group.js.map +1 -1
  75. package/dist/ui/button.d.ts +1 -1
  76. package/dist/ui/button.js +3 -3
  77. package/dist/ui/button.js.map +1 -1
  78. package/dist/ui/checkbox.js +1 -1
  79. package/dist/ui/checkbox.js.map +1 -1
  80. package/dist/ui/dropdown-menu.js +1 -1
  81. package/dist/ui/empty.js +1 -1
  82. package/dist/ui/empty.js.map +1 -1
  83. package/dist/ui/field.js +2 -2
  84. package/dist/ui/field.js.map +1 -1
  85. package/dist/ui/item.d.ts.map +1 -1
  86. package/dist/ui/item.js +8 -3
  87. package/dist/ui/item.js.map +1 -1
  88. package/dist/ui/progress.d.ts +4 -1
  89. package/dist/ui/progress.d.ts.map +1 -1
  90. package/dist/ui/progress.js +9 -2
  91. package/dist/ui/progress.js.map +1 -1
  92. package/dist/ui/radio-group.d.ts +6 -0
  93. package/dist/ui/radio-group.d.ts.map +1 -0
  94. package/dist/ui/radio-group.js +14 -0
  95. package/dist/ui/radio-group.js.map +1 -0
  96. package/dist/ui/scroll-area.d.ts +3 -1
  97. package/dist/ui/scroll-area.d.ts.map +1 -1
  98. package/dist/ui/scroll-area.js +2 -2
  99. package/dist/ui/scroll-area.js.map +1 -1
  100. package/dist/ui/select.js +2 -2
  101. package/dist/ui/select.js.map +1 -1
  102. package/dist/ui/sidebar.js +4 -4
  103. package/dist/ui/sidebar.js.map +1 -1
  104. package/dist/ui/tabs.js +1 -1
  105. package/dist/ui/tabs.js.map +1 -1
  106. package/package.json +16 -5
  107. package/src/index.ts +32 -0
  108. package/src/messages/en.ts +12 -0
  109. package/src/notion/Code.tsx +39 -0
  110. package/src/notion/DetailTable.tsx +46 -0
  111. package/src/notion/FilterChip.tsx +71 -0
  112. package/src/notion/FoldRow.tsx +78 -0
  113. package/src/notion/MarkPopover.tsx +84 -0
  114. package/src/notion/PageHeader.tsx +4 -2
  115. package/src/notion/SidePanel.tsx +73 -0
  116. package/src/notion/Sortable.tsx +235 -0
  117. package/src/notion/Stats.tsx +165 -0
  118. package/src/notion/Steps.tsx +102 -0
  119. package/src/notion/TabBar.tsx +47 -0
  120. package/src/notion/tones.ts +45 -0
  121. package/src/page.css +22 -0
  122. package/src/tokens.ts +22 -19
  123. package/src/ui/alert.tsx +1 -1
  124. package/src/ui/badge.tsx +35 -13
  125. package/src/ui/button-group.tsx +1 -1
  126. package/src/ui/button.tsx +3 -3
  127. package/src/ui/checkbox.tsx +1 -1
  128. package/src/ui/dropdown-menu.tsx +1 -1
  129. package/src/ui/empty.tsx +1 -1
  130. package/src/ui/field.tsx +2 -2
  131. package/src/ui/item.tsx +16 -7
  132. package/src/ui/progress.tsx +19 -2
  133. package/src/ui/radio-group.tsx +44 -0
  134. package/src/ui/scroll-area.tsx +11 -2
  135. package/src/ui/select.tsx +2 -2
  136. package/src/ui/sidebar.tsx +4 -4
  137. package/src/ui/tabs.tsx +3 -3
package/CHANGELOG.md CHANGED
@@ -4,6 +4,184 @@ Newest first. Each version lists what changed for an app that uses the theme. Wh
4
4
  production, the version gets a line `verified in: <app>@<commit>` ([docs/05](../../docs/05-adoption-playbook.md),
5
5
  "Definition of done").
6
6
 
7
+ ## 0.3.0
8
+
9
+ - Needs `@softure-ai/theme-kit` `^0.1.3` (was `^0.1.2`): the version whose `base.css` carries the border and outline
10
+ colour rule (#746), which both wirings in the README import.
11
+ - Code and destructive Badge contrast (#763): inline `Code` and a destructive `Badge` with a `color` reach WCAG 2.2 AA
12
+ (4.5:1) in light and dark; `tests/contrast.test.ts` guards the code pair.
13
+
14
+ | Part | Light before → after | Dark before → after |
15
+ | --- | --- | --- |
16
+ | `Code` text: `red` → new token `code-foreground` | `#c8413d` → `#c33c39` (4.33 → 4.61 on `secondary`) | `#ea5e5b` → `#f86a66` (3.98 → 4.62 on `secondary`) |
17
+ | `Badge variant="destructive" color="…"` text | the colour's tag text → `destructive-foreground` | `#d4d4d4` / `rgba(255, 255, 255, 0.81)` (3.98 / 4.46) → `#ffffff` on `destructive/60` |
18
+
19
+ Lightness-only shift for the code red (OKLCH hue and chroma kept); `red` and every other part that uses it are
20
+ unchanged. `Badge`: the `color` classes apply to every variant but `destructive` (cva `compoundVariants`, so
21
+ `badgeVariants()` callers get it too); a destructive badge keeps its own fill and white text whatever `color` is.
22
+ An app changes nothing, unless it styled code with `text-red` itself (move it to `text-code-foreground`) or relied
23
+ on a colour on a destructive badge (use `variant="tag"` with the colour instead).
24
+ - Selected tab (#760): the selected pill of the default (`variant="default"`) `Tabs` list reaches WCAG 2.2 SC 1.4.11
25
+ (3:1) against the list and the unselected tabs, in light and dark; before, the white pill on `muted` was 1.07:1 and
26
+ the dark pill about 1.1:1. The active trigger draws an `input` border in both schemes (in dark it replaces
27
+ `border-border`) and clips its fill to the padding box (`bg-clip-padding`), so the border sits on the list: 3.13
28
+ against the list and 3.35 against the pill in light, 3.30 and 3.11 in dark. Fill, shadow and text colour are
29
+ unchanged; the `line` variant keeps its underline and no border in both schemes; a focused tab still shows the
30
+ `ring` border. No token changes. An app changes nothing, unless it restyles the active tab with its own
31
+ `data-[state=active]:border-*` class.
32
+ - Non-text contrast (#759): control boundaries and states reach WCAG 2.2 SC 1.4.11 (3:1) against every page surface
33
+ in light and dark; `tests/contrast.test.ts` guards the pairs. Alpha raised only, colour channels (hue) kept:
34
+
35
+ | Token | Light before → after | Dark before → after |
36
+ | --- | --- | --- |
37
+ | `input` (field and select trigger border) | `rgba(15, 15, 15, 0.1)` → `rgba(15, 15, 15, 0.46)` | `rgba(255, 255, 255, 0.075)` → `rgba(255, 255, 255, 0.36)` |
38
+ | `control-off` (switch off track, the bridge's `border-strong`) | `rgba(135, 131, 120, 0.3)` → `rgba(135, 131, 120, 0.95)` | `rgba(202, 196, 183, 0.15)` → `rgba(202, 196, 183, 0.5)` |
39
+
40
+ Parts: the outline `Button` border and the `ButtonGroup` separator use `border` (their label identifies them, so
41
+ they keep the old quiet weight); the dark active tab is `dark:border-border dark:bg-accent/40` (the same look as
42
+ before); `Progress` fills in `link` in dark when `indicatorClassName` sets no fill colour, so the fill reaches 3:1
43
+ against its track. Decorative separators (`border`, `sidebar-border`) are unchanged. An app changes: a
44
+ `border-input` or `bg-input` of its own that only separates content (a divider, a button outline) moves to
45
+ `border-border` / `bg-border`; its fields keep `border-input` and gain the contrast without a change.
46
+ - Fix (#746): table rows and the table footer, accordion items, default and destructive alerts, the command input,
47
+ item media and sheets drew their borders in the text colour under Tailwind's full preflight. The rule that makes a
48
+ border without a colour class the theme's `border` grey ships in `@softure-ai/theme-kit/base.css` (the kit's next
49
+ release), which both wirings already import: update the kit, no other change.
50
+ - `touch-target` size (#742): `--spacing-touch-target: 44px` (Apple HIG 44 pt, WCAG 2.5.5 target size), so
51
+ `min-h-touch-target` and `size-touch-target` give rows and controls tapped on a phone a finger-sized height next to
52
+ the pointer sizes `control-height` 28 and `row-height` 34. No component changes height. An app that used the raw
53
+ spacing scale for this (`min-h-11`) replaces it with `min-h-touch-target`, keeping the pointer height on desktop
54
+ where it wants it (`min-h-touch-target md:min-h-row-height`).
55
+ - Contrast (#756): every text colour now meets WCAG 2.2 AA (4.5:1) on the surfaces the parts put it on, in light and
56
+ dark, and the focus ring reaches 3:1; `tests/contrast.test.ts` guards each pair. Lightness-only shifts, hue and
57
+ chroma kept:
58
+
59
+ | Token | Light before → after | Dark before → after |
60
+ | --- | --- | --- |
61
+ | `muted-foreground`, `gray` | `#787774` → `#656461` | `#9b9b9b` → `#a5a5a5` |
62
+ | `primary`, `sidebar-primary` | `#2383e2` → `#0171cf` | `#2383e2` → `#0171cf` |
63
+ | `primary-hover` | `#0077d4` → `#0066b8` | `#0077d4` → `#0066b8` |
64
+ | `link` (new) | `#0171cf` | `#409cfd` |
65
+ | `destructive` | `#eb5757` → `#c63339` | `#eb5757` → `#fd6866` |
66
+ | `ring`, `sidebar-ring` | `rgba(35, 131, 226, 0.57)` → `rgba(1, 113, 207, 0.8)` | → `rgba(64, 156, 253, 0.65)` |
67
+ | `brown` / `orange` / `yellow` / `green` | `#9f6b53` / `#d9730d` / `#cb912f` / `#448361` → `#98644d` / `#af5a02` / `#986702` / `#3e7d5c` | unchanged |
68
+ | `blue` / `purple` / `pink` / `red` | `#337ea9` / `#9065b0` / `#c14c8a` / `#d44c47` → `#2b77a2` / `#8a5faa` / `#ba4684` / `#c8413d` | purple `#9d68d3` → `#a974e0`, pink `#d15796` → `#dc61a0`, red `#df5452` → `#ea5e5b` |
69
+ | `yellow-tag` | unchanged | `#89632a` → `#825c23` |
70
+
71
+ Parts: the link variants of `Button` and `Badge` and hovered inline links (`Empty`, `Item`, `Field`) use the new
72
+ `text-link`; `Button` destructive is `dark:bg-destructive/60` (hover `/50`) like `Badge`; `Badge` default hovers on
73
+ `primary-hover`; tab triggers and the sidebar group label read `text-muted-foreground` instead of faded
74
+ `text-foreground/60` and `text-sidebar-foreground/70`; the destructive `Alert` description is `text-destructive`;
75
+ a focused destructive menu item in dark is tinted `destructive/10`. `Badge` destructive text is `text-destructive-foreground`: its
76
+ `text-white` was never generated (the theme clears Tailwind's palette), so the label drew in the body colour. An app changes: blue text of its own
77
+ (`text-primary` on text, a link colour) moves to `text-link`; a destructive fill of its own adds
78
+ `dark:bg-destructive/60`; a hard-coded `#2383e2` or `#787774` moves to the token; text faded by an opacity
79
+ modifier (`text-foreground/60`) moves to `text-muted-foreground`.
80
+ - `RadioGroup` and `RadioGroupItem` (#736): the shadcn new-york v4 `radio-group` (Radix), drawn like `checkbox`: 16 px,
81
+ a 1.5 px `muted-foreground` border, the checked border and dot in `primary`, focus `ring-2 ring-ring`,
82
+ `aria-invalid` like the other fields. Arrow keys move the choice. `data-slot="radio-group"`, `radio-group-item` and
83
+ `radio-group-indicator` as in shadcn. An app that draws its own radio replaces it with
84
+ `import { RadioGroup, RadioGroupItem } from "@softure-ai/theme-notion"`.
85
+ - Accessibility (#747): an `Item` inside an `ItemGroup` renders `role="listitem"`, so a group is a list with list
86
+ items (axe `aria-required-children`); an `asChild` item keeps its child's role, wrap it in a `role="listitem"`
87
+ element. The `ScrollArea` viewport takes `tabIndex={0}` and shows its focus ring on Tab (axe
88
+ `scrollable-region-focusable`); the new `viewportProps` prop passes any viewport prop, `tabIndex: -1` included.
89
+ Nothing to change in an app.
90
+ - `StatCard` (#739): optional `progress` (0–100, clamped) draws a 6 px bar under the figure with the package's
91
+ `Progress`, filled in `TONE_FILL[tone]` when the card has a tone and in primary otherwise; `progressLabel` names it
92
+ (default: `label`). Marked `data-slot="stat-card-progress"`. Cards without `progress` render as before. An app that
93
+ rebuilt a budget card around `Progress` (e.g. "21.5 / 23.4 h") goes back to `StatCards` with `progress`.
94
+ - `Progress`: the value now reaches the Radix root, so the bar reports `aria-valuenow` and its state (it was always
95
+ indeterminate to assistive tech before); a new optional `indicatorClassName` recolours the fill.
96
+ - Fixes (#735), class strings that sat on a neighbouring element since 0.1.0, now as in the design system and stock
97
+ shadcn/ui new-york v4:
98
+ - `Sidebar`: a `collapsible="none"` sidebar is again a full-height column on `bg-sidebar` (it was transparent); the
99
+ phone sheet has no padding and no close button of its own (`p-0 [&>button]:hidden`), so it shows only the
100
+ sidebar; the desktop gap animates its width again when the sidebar collapses.
101
+ - `Checkbox`: the tick is 14 px (`size-3.5`) instead of lucide's 24 px default.
102
+ - `Select`: the scroll-up arrow is 16 px (`size-4`); an item's icons and check are `muted-foreground` unless they
103
+ carry a text colour of their own.
104
+ - `FieldTitle`: 14 px in medium weight (`text-sm font-medium`, `items-center`), no longer `FieldLabel`'s peer and
105
+ group markers.
106
+ An app that overrode these classes by `className` to work around them can drop the override.
107
+ - `page.css` (#735): the design system's page base rules, `body` text at `text-sm` (14 px), `::selection` on
108
+ `blue-tag` and `html` font smoothing. Add `@import "@softure-ai/theme-notion/page.css";` after the kit's `base.css`
109
+ in `globals.css` (both README wirings show it); an app that kept those rules itself drops them.
110
+ - `FilterChip` and `FilterChipAdd` (#737): a list's filter pills as a Notion database view draws them, a 24 px
111
+ `rounded-full` pill `icon · Label: value ▾` that opens a `DropdownMenu` of options (pass `DropdownMenu` items as
112
+ children) in the design system's popover. `isActive` turns the pill into the blue tag and sets `data-active`;
113
+ `data-slot="filter-chip"`, `filter-chip-value` and `filter-chip-add` mark the parts. `FilterChipAdd` is the
114
+ "+ Add filter" pill; its text comes from `notionMessages.en.filterChip.add` and is replaced through `label`. An app
115
+ that styled its own filter trigger replaces it with `import { FilterChip, FilterChipAdd } from "@softure-ai/theme-notion"`.
116
+ - `Code` and `CodeBlock` (#740): inline code (`text-code` mono, `red` on `secondary`, `rounded-xs px-1`) and a mono
117
+ block on `muted` (`rounded-lg px-4 py-3`) that scrolls sideways, or wraps with `wrap`. `label` makes the block a
118
+ named, focusable region. `data-slot="code"` / `data-slot="code-block"`. An app that writes these classes on its own
119
+ `<code>` and `<pre>` replaces them with `import { Code, CodeBlock } from "@softure-ai/theme-notion"`.
120
+ - `Steps` (#738): an ordered process (the stages of a multi-step task, the phases of a migration, the steps of one
121
+ run) as an `<ol>`. Each step has a number in a badge coloured by its `state` (`done`, `current`, `todo` default,
122
+ `failed`), a `title`, an optional `note` and an optional `aside`; layouts `row` (a wrapping grid of cards, the
123
+ current one on `blue-bg`) and `list` (compact rows). The current step carries `aria-current="step"`, each state is
124
+ also a screen-reader word (`stateLabels` replaces the English copy, `notionMessages.en.steps`), and
125
+ `data-slot="steps"`, `data-step`, `data-state` mark the parts. An app that draws its own stage lists replaces them
126
+ with `import { Steps } from "@softure-ai/theme-notion"` and maps its own stage status to the four states.
127
+ - `SortableList`, `SortableItem` and `SortableHandle` (#752): a list whose rows are reordered by dragging, on the
128
+ headless `@dnd-kit/core` and `@dnd-kit/sortable` (new dependencies of the package). A long press of 500 ms lifts a
129
+ row on a touch screen (`holdDelay`, `tolerance` 8 px: a swipe before the hold scrolls, a tap still activates the
130
+ row), the keyboard reorders with Space or Enter, the arrows and Escape, and the row moves only up and down. The
131
+ lifted row is styled by the theme (`data-dragging`: `accent-strong`, `shadow-menu`, raised); every row is
132
+ `touch-manipulation select-none` without the long-press callout. `items` (ids in order) and
133
+ `onReorder(next, { id, from, to })` keep the order with the app. `instructions` and `announcements` (strings with
134
+ `{item}`, `{position}`, `{total}`; English defaults in `notionMessages.en.sortable`) take the app's wording, and
135
+ `getItemLabel` names a row. `dragBy="handle"` drags only by a `SortableHandle` grip button. An app that wired
136
+ dnd-kit itself replaces its `DndContext`, sensors, `SortableContext` and the composed lifted-row classes with
137
+ `import { SortableList, SortableItem } from "@softure-ai/theme-notion"`, passes its message-dictionary strings as
138
+ `instructions` and `announcements`, and drops its own `@dnd-kit/*` dependencies unless it uses them elsewhere.
139
+ - A test suite in eight layers (#741, README "Testing"): every export rendered, a class parity fixture, a guard
140
+ against the pinned shadcn new-york v4 sources with the listed deltas, behaviour, Tailwind generation, visual
141
+ regression and axe (WCAG 2.1 AA, colour contrast included) in CI, inventory. Nothing for an app to change.
142
+
143
+ ## 0.2.0
144
+
145
+ - Needs `@softure-ai/theme-kit` `^0.1.2` (was `^0.1.0`): the version that ships `base.css` and `maplibre.css`, which
146
+ both wirings in the README import.
147
+ - README (#718): both wirings import the kit's `base.css` (the page base on `body`) and, for an app with MapLibre maps,
148
+ `maplibre.css`. Needs `@softure-ai/theme-kit` with those files (the next kit release). An app that kept its own
149
+ `body` rule (`margin: 0`, `background: var(--background)`, `color: var(--foreground)`,
150
+ `font-family: --theme(--font-sans)`) or `body .maplibregl-map { font-family: … }` replaces them with the two
151
+ `@import` lines after `theme.css`.
152
+ - `TabBar` (#723): a screen's tabs as line tabs where each tab is a link (`<a href>`), so the shown tab lives in the
153
+ address and a link, a form's return or a reload land on the same tab. Optional icon before the label and count
154
+ after it (0 included); the current link carries `aria-current="page"`; the row scrolls sideways on a phone.
155
+ `data-slot="tab-bar"`, `data-tab` and `data-slot="tab-bar-count"` mark the parts. An app that keeps its own copy
156
+ replaces it with `import { TabBar } from "@softure-ai/theme-notion"`; the props are the same (`label`, `tabs`,
157
+ `current`). For client-state tabs keep `Tabs`.
158
+ - Tones (#720): `TONES`, `Tone` (`default`, `success`, `warning`, `danger`, `muted`), `TONE_COLORS` (a tone's palette
159
+ colour, `null` for `default`) and the literal class maps `TONE_TEXT` (`text-*`), `TONE_FILL` (`bg-*`) and
160
+ `TONE_EDGE` (`border-l-*`), generated by the shipped `theme.css`. Migration for an app with its own tone files:
161
+ delete its `Tone` type and class maps, import them from the package, keep only the app's meaning-to-tone table,
162
+ and drop any `@source` the app added for those class names.
163
+ - `SidePanel` (#724): a non-modal panel at a side of a canvas (a map) that leaves the canvas usable, unlike the modal
164
+ `Sheet`. Layouts `over`, `beside`, `left`, `list`; hidden while closed, focus moves in when it opens, Escape and the
165
+ close button call `onClose`. An app that kept its own copy replaces it with the import (same props; `closeLabel` is
166
+ now optional, default "Close") and drops its own file.
167
+ - `PageHeader` takes `crumbsLabel` (#719): the accessible name of the breadcrumb it renders for `crumbs`, so an app
168
+ in another language replaces the built-in English "breadcrumb". Without it the markup is unchanged.
169
+ - `MarkPopover` (#725): a counted tag (`badgeVariants({ variant: "tag", color })` with an icon and a count) that opens
170
+ the design system's popover listing entries, on the browser's Popover API with no client state, phrasing
171
+ elements only (`data-slot="mark"`, `data-slot="mark-popover"`). An app with its own copy of this mark deletes it
172
+ and imports `MarkPopover` (and `MarkPopoverProps`) from `@softure-ai/theme-notion`: same props, same markup and
173
+ classes; its domain marks (warnings, tickets) keep passing their entries as `role="listitem"` spans.
174
+ - `StatsFold`, `StatCards` and `StatPills` (#722): a screen's summary figures, folded under a heading (native
175
+ `<details>`, closed by default), as a wrapping row of cards (label, figure in its tone, optional hint and aside tag,
176
+ `isFullWidth` / `isOneRow` layouts) and as "label **value**" tags. `data-slot`, `data-stat`, `data-tone` and
177
+ `data-layout` mark the parts. An app that kept these as its own code drops them and imports them from the package.
178
+ - `DetailTable` (#721): an item's details as a label and value table; rows without a value are left out, and nothing
179
+ renders when no row has one. On a phone the label sits above its value.
180
+ - `FoldRow` (#721): an item as one folding list row (chevron, title, facts, tone badges) that opens in place to a
181
+ `DetailTable` plus optional children; a native `<details>`, closed by default, no client state. `data-slot` names:
182
+ `fold-row`, `fold-row-summary`, `fold-row-heading`, `fold-row-fact`, `fold-row-badges`, `fold-row-content`,
183
+ `detail-table`.
184
+
7
185
  ## 0.1.1
8
186
 
9
187
  - No change to the package itself: the first version published through the npm trusted publisher (OIDC) with
package/README.md CHANGED
@@ -16,6 +16,9 @@ npm i @softure-ai/theme-notion tailwindcss @tailwindcss/postcss
16
16
  @import "tailwindcss";
17
17
  @import "@softure-ai/theme-notion/theme.css"; /* tokens, utilities, dark:, animations, the components' classes */
18
18
  @import "@softure-ai/theme-notion/sft-bridge.css"; /* optional: pages of the SOFTURE packages in a PageFrame */
19
+ @import "@softure-ai/theme-kit/base.css"; /* body on the theme's background, text colour and font */
20
+ @import "@softure-ai/theme-notion/page.css"; /* body text 14 px, blue text selection, font smoothing */
21
+ @import "@softure-ai/theme-kit/maplibre.css"; /* only if the app shows MapLibre maps */
19
22
  ```
20
23
 
21
24
  `theme.css` names the package's components as Tailwind sources, so their classes are generated without the app
@@ -32,8 +35,21 @@ taking the scoped preflight instead of Tailwind's:
32
35
  @import "tailwindcss/utilities.css" layer(utilities);
33
36
  @import "@softure-ai/theme-notion/theme.css";
34
37
  @import "@softure-ai/theme-notion/sft-bridge.css";
38
+ @import "@softure-ai/theme-kit/base.css"; /* nothing else styles body under the scoped preflight */
39
+ @import "@softure-ai/theme-notion/page.css";
40
+ @import "@softure-ai/theme-kit/maplibre.css"; /* only if the app shows MapLibre maps */
35
41
  ```
36
42
 
43
+ `base.css` gives `body` the theme's background, text colour and sans font without the browser's 8 px margin, so a
44
+ page without a shell root, the dark scheme and the Radix portals mounted on `body` (select lists, menus, sheets) all
45
+ take the theme. It also gives every `border` without a colour class the theme's `border` grey and outlines a
46
+ half-transparent `ring` (shadcn/ui's `globals.css` rule), so table rows, accordion items, alerts and sheets do not
47
+ draw in the text colour. `maplibre.css` puts the theme's sans font on MapLibre maps (markers, popups, the attribution), which
48
+ `maplibre-gl.css` sets to Helvetica. `page.css` carries the rest of the design system's base layer: text outside the
49
+ components at the panel size (`text-sm`, 14 px, instead of the browser's 16 px), selected text on `blue-tag`, and
50
+ `-webkit-font-smoothing: antialiased` on `html`. All three read the theme with `--theme()` or its tokens, so they go through the app's Tailwind
51
+ after `theme.css`; the app's `globals.css` keeps only `@import` lines.
52
+
37
53
  ```tsx
38
54
  import { Button, Badge, Status, PageHeader, TooltipProvider, Toaster } from "@softure-ai/theme-notion";
39
55
  import { CircleCheck } from "lucide-react";
@@ -52,15 +68,16 @@ import { CircleCheck } from "lucide-react";
52
68
  `light` the other way. `Toaster` follows the system unless it gets `theme="light" | "dark"`.
53
69
 
54
70
  **Copy.** The components' built-in texts are accessible names in English (`notionMessages.en`). Pass the app's own
55
- wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `DialogContent closeLabel`,
56
- `SheetContent closeLabel`, `Sidebar mobileTitle mobileDescription`, `SidebarTrigger label`, `SidebarRail label`,
57
- `Spinner aria-label`, `CommandDialog title description`.
71
+ wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `PageHeader crumbsLabel`,
72
+ `DialogContent closeLabel`, `SheetContent closeLabel`, `SidePanel closeLabel`, `Steps stateLabels`,
73
+ `Sidebar mobileTitle mobileDescription`, `SidebarTrigger label`, `SidebarRail label`, `Spinner aria-label`,
74
+ `CommandDialog title description`, `SortableList instructions announcements`, `SortableHandle label`.
58
75
 
59
76
  ## Rules, in short
60
77
 
61
78
  - Background `background`, text `foreground`, secondary text `muted-foreground`. Never pure black.
62
79
  - Hover is the grey `accent` background, never a border or a shadow; selected and pressed use `accent-strong`.
63
- - One `primary` (blue, `#2383e2`) action per screen. Other buttons are `secondary`, `outline` or `ghost`.
80
+ - One `primary` (blue, `#0171cf`) action per screen. Other buttons are `secondary`, `outline` or `ghost`.
64
81
  - A palette colour (`gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`, each with `-bg`,
65
82
  `-tag`, `-tag-foreground`) marks an area (a tag) or a state (a status, a callout), never decoration. The same
66
83
  colour always means the same thing; the app keeps its own table of meanings.
@@ -69,34 +86,193 @@ wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `DialogCo
69
86
  - Type: system sans, mono for identifiers. `text-page-title` 40/48 bold once per screen, `text-heading-1..3`
70
87
  30/24/20, `text-body` 16/24, `text-ui` 14/20 (panels), `text-small` 12/16, `text-section-label` 12/16 medium.
71
88
  - Spacing on a 4 px grid (`p-1` = 4 px). Sizes: `sidebar-width` 240, `content-width` 708, `content-width-wide` 1152,
72
- `control-height` 28, `row-height` 34. Radius: `rounded-xs` 3 (tag, checkbox), `sm` 4 (tooltip, kbd), `md` 6
89
+ `control-height` 28, `row-height` 34, `touch-target` 44 (rows and controls meant to be tapped on a phone, e.g.
90
+ `min-h-touch-target md:min-h-row-height`). Radius: `rounded-xs` 3 (tag, checkbox), `sm` 4 (tooltip, kbd), `md` 6
73
91
  (button, field, menu item), `lg` 8 (callout, card), `xl` 10 (menu, select, dialog), `full` (switch).
74
92
  - Icons: lucide at `ICON_STROKE_WIDTH` (1.75), 16 px in text; they inherit the text colour. No emoji in the interface.
75
93
  - Statuses always carry a word and an icon, so states read apart without telling green from red.
94
+ - Figures, bar segments and box edges take a **tone** by what they mean: `default` (text colour), `success` (green,
95
+ done), `warning` (orange, to do), `danger` (red, owed or failing), `muted` (gray, out of play). `TONE_COLORS` gives
96
+ a tone's palette colour (`null` for `default`); `TONE_TEXT`, `TONE_FILL` and `TONE_EDGE` give literal class names
97
+ (`text-*`, `bg-*`, `border-l-*`) that the shipped `theme.css` already generates, so the app adds no `@source`. The
98
+ app keeps only its meaning-to-tone table:
99
+
100
+ ```tsx
101
+ import { TONE_TEXT, type Tone } from "@softure-ai/theme-notion";
102
+
103
+ const PAYMENT_TONE: Record<"paid" | "due" | "overdue", Tone> = { paid: "success", due: "warning", overdue: "danger" };
104
+ <span className={TONE_TEXT[PAYMENT_TONE.overdue]}>1 200</span>
105
+ ```
76
106
 
77
107
  ## Components
78
108
 
79
- All 36 shadcn/ui components of the design system, exported from the package root: accordion, alert, alert-dialog,
109
+ All 37 shadcn/ui components of the design system, exported from the package root: accordion, alert, alert-dialog,
80
110
  avatar, badge, breadcrumb, button, button-group, card, checkbox, collapsible, command, dialog, dropdown-menu, empty,
81
- field, input, input-group, item, kbd, label, popover, progress, scroll-area, select, separator, sheet, sidebar,
82
- skeleton, sonner (`Toaster`), spinner, switch, table, tabs, textarea, tooltip. Compositions: `Status` (badge, icon,
111
+ field, input, input-group, item, kbd, label, popover, progress, radio-group, scroll-area, select, separator, sheet,
112
+ sidebar, skeleton, sonner (`Toaster`), spinner, switch, table, tabs, textarea, tooltip. Compositions: `Status` (badge, icon,
83
113
  word), `PageHeader` (breadcrumb, icon box, title, description, actions), `PropertyList` (fields of one record),
84
- `PageFrame` (a page outside the app shell, the target of `sft-bridge.css`).
114
+ `DetailTable` (an item's details as a label and value table), `FoldRow` (a list row folding open to a `DetailTable`
115
+ and more, a native `<details>`), `PageFrame` (a page outside the app shell, the target of `sft-bridge.css`),
116
+ `SidePanel` (a non-modal panel at a side of a canvas, below), `TabBar` (a screen's tabs as links with an optional icon
117
+ and count, the shown tab in the address; `Tabs` keeps it in client state), `MarkPopover` (a counted tag that opens a
118
+ list of what it counts, below), `FilterChip` and `FilterChipAdd` (a list's filter pills, below), `Steps` (numbered
119
+ stages with a state, below), `Code` (inline code) and `CodeBlock` (a mono block for logs and paths, below),
120
+ `SortableList`, `SortableItem` and `SortableHandle` (rows reordered by dragging, below).
121
+
122
+ **`FilterChip`.** The filters above a list or a table, drawn the way a Notion database view draws them: a 24 px pill
123
+ `icon · Label: value ▾` that opens a menu of options in the design system's popover. While the default value is
124
+ chosen the pill is muted; `isActive` (a non-default value) turns it into the blue tag and sets `data-active`. The
125
+ children are `DropdownMenu` items, so the menu works from the keyboard. `FilterChipAdd` is the "+ Add filter" pill
126
+ next to them (`label` replaces the built-in "Add filter"), opening a menu of the fields to filter by.
127
+
128
+ ```tsx
129
+ <div className="flex flex-wrap gap-1">
130
+ <FilterChip label="Status:" value={status ?? "all"} icon={<CircleDot aria-hidden="true" />} isActive={status !== null}>
131
+ <DropdownMenuRadioGroup value={status ?? "all"} onValueChange={setStatus}>
132
+ <DropdownMenuRadioItem value="all">All</DropdownMenuRadioItem>
133
+ <DropdownMenuRadioItem value="failed">Failed</DropdownMenuRadioItem>
134
+ </DropdownMenuRadioGroup>
135
+ </FilterChip>
136
+ <FilterChipAdd>
137
+ <DropdownMenuItem onSelect={() => addFilter("owner")}>Owner</DropdownMenuItem>
138
+ </FilterChipAdd>
139
+ </div>
140
+ ```
141
+
142
+ **`SidePanel`.** A panel next to a canvas (a map) that leaves the canvas usable, so a switch inside shows its effect
143
+ at once (`Sheet` is modal). It floats on `background` with `shadow-menu`, 24 rem wide, full width on a phone, with a
144
+ heading and a ghost close button. Layouts: `over` (over the canvas's right side), `left` (over its left side),
145
+ `beside` (after the canvas, which shrinks to at least 24 rem or half) and `list` (a 24 rem column before the canvas);
146
+ `beside` and `list` cover the whole canvas on a phone. While closed it is `hidden`. Focus moves into it when it opens;
147
+ Escape inside or the close button calls `onClose`, and the caller moves focus back to its opener.
148
+
149
+ ```tsx
150
+ <div className="relative flex h-full">
151
+ <button type="button" aria-controls="layers" aria-expanded={isOpen} onClick={() => setOpen(true)}>Layers</button>
152
+ <Map className="flex-1" />
153
+ <SidePanel id="layers" heading="Layers" layout="over" isOpen={isOpen} onClose={() => setOpen(false)}>
154
+ {/* switches */}
155
+ </SidePanel>
156
+ </div>
157
+ ```
158
+
159
+ A screen's summary figures: `StatsFold` (figures folded under a heading, closed by default, on native `<details>`),
160
+ `StatCards` (a wrapping row of figure cards: label, figure in its tone, optional `progress` bar under the figure,
161
+ optional `hint`, optional `aside` tag; `isFullWidth` and `isOneRow` change the grid) and `StatPills` ("label **value**" tags in one row). Each figure takes a
162
+ `tone`; the app keeps only its own table of which meaning takes which tone. A card's `progress` (0–100, clamped) draws
163
+ the package's 6 px `Progress` under the figure, filled in the card's tone (primary without one) and named by
164
+ `progressLabel` (default: the card's `label`).
165
+
166
+ ```tsx
167
+ <StatsFold title="Summary">
168
+ <StatCards
169
+ label="Totals"
170
+ cards={[
171
+ { key: "paid", label: "Paid", value: "1,200", tone: "success" },
172
+ { key: "owed", label: "Owed", value: "300", tone: "danger", hint: "2 invoices", aside: { text: "+5%" } },
173
+ { key: "hours", label: "Hours", value: "21.5 / 23.4 h", progress: 92, progressLabel: "Hours used" },
174
+ ]}
175
+ />
176
+ <StatPills label="Counts" pills={[{ key: "late", label: "Late", value: "1", tone: "danger" }]} />
177
+ </StatsFold>
178
+ ```
179
+
180
+ An ordered process: `Steps` (the stages of a multi-step task, the phases of a migration, the steps of one run). An
181
+ `<ol>` where each step has a number in a badge coloured by its `state` (`done` green, `current` primary, `failed` red,
182
+ `todo` muted, the default), a `title`, an optional `note` and an optional `aside` at its end (a tag naming the service
183
+ the step uses). Layouts: `row` (default, a wrapping grid of cards, the current one on `blue-bg`) and `list` (compact
184
+ rows with a square badge). The current step carries `aria-current="step"`; each state is also a word for a screen
185
+ reader (`stateLabels` replaces the English words). `data-slot="steps"`, `data-step` and `data-state` mark the parts.
186
+
187
+ ```tsx
188
+ <Steps
189
+ label="Invoice stages"
190
+ steps={[
191
+ { key: "period", title: "Period", state: "done" },
192
+ { key: "document", title: "Document", state: "current", note: "2 files attached" },
193
+ { key: "invoice", title: "Final invoice", aside: <Badge variant="tag" color="blue">KSeF</Badge> },
194
+ ]}
195
+ />
196
+ ```
197
+
198
+ **`MarkPopover`.** A tag in a palette colour with an icon and a count; a click or Enter opens the design system's
199
+ popover listing the entries, Escape or a click outside closes it. It runs on the browser's Popover API (no client
200
+ state, no portal): the panel sits in the top layer, so a card's `overflow` never clips it, centred on a phone and
201
+ under its mark where CSS anchor positioning is supported. Only phrasing elements, so it fits inside a `<summary>` or
202
+ a paragraph; a click on the panel's text does not toggle an enclosing `<details>`, links and buttons inside still
203
+ work. The colour means the worst of what it lists; the copy is props.
204
+
205
+ ```tsx
206
+ <MarkPopover color="red" icon={TriangleAlert} count={2} label="2 open warnings, show the list"
207
+ heading="Open warnings" closeLabel="Close" buttonData={{ "data-kind": "warnings" }}>
208
+ <span role="listitem">Payment overdue</span>
209
+ <span role="listitem"><a href="/tickets">Tickets to buy</a></span>
210
+ </MarkPopover>
211
+ ```
212
+
213
+ **`Code` and `CodeBlock`.** `Code` is inline code: the `text-code` style (13/20 mono) in its own red,
214
+ `code-foreground` (a shade of the palette `red` that reaches 4.5:1 on its chip), on `secondary`, as in Notion. `CodeBlock` is a `<pre>` for logs and file paths on `muted`, radius 8; long lines scroll sideways, `wrap` wraps
215
+ them. With `label` the block is a named region (`role="region"`) that keyboard users can focus and scroll; without it,
216
+ plain text. No syntax highlighting. `data-slot="code"` and `data-slot="code-block"` mark the parts.
217
+
218
+ ```tsx
219
+ <p>Run <Code>npm ci</Code> first.</p>
220
+ <CodeBlock label="Build log" wrap>{log}</CodeBlock>
221
+ ```
222
+
223
+ **`SortableList`.** A list whose rows are reordered by dragging, built on the headless `@dnd-kit/core` and
224
+ `@dnd-kit/sortable`. On a touch screen a long press (`holdDelay`, 500 ms) lifts a row; moving more than `tolerance`
225
+ (8 px) before that scrolls instead, and a tap still activates the row. A mouse drags the same way; from the keyboard
226
+ Space or Enter picks the focused row up, the arrows move it, Space or Enter drops it and Escape cancels. The row only
227
+ moves up and down. The lifted row floats on `accent-strong` with `shadow-menu` above its siblings and carries
228
+ `data-dragging`; every row has `touch-manipulation select-none` and no long-press callout. The order stays with the
229
+ app: `items` are the rows' ids in order, and `onReorder(next, { id, from, to })` gets the new order on a drop.
230
+ `dragBy="handle"` leaves the row alone and drags only by a `SortableHandle` (a ghost grip button, for a desktop list;
231
+ a mouse starts at once there). A screen reader hears the `instructions` on the row (or handle) and the
232
+ `announcements` while it moves: strings with `{item}`, `{position}` and `{total}`, where `getItemLabel(id)` names the
233
+ row (the id by default). `data-slot="sortable-list"`, `sortable-item` (with `data-id`) and `sortable-handle` mark the
234
+ parts.
235
+
236
+ ```tsx
237
+ <SortableList label="Shopping list" items={ids} onReorder={(next) => setIds(next)}
238
+ getItemLabel={(id) => byId[id].name} announcements={{ pickedUp: t("sort.pickedUp") }}>
239
+ {ids.map((id) => (
240
+ <SortableItem key={id} id={id} className="flex h-row-height items-center gap-2 px-2">
241
+ <Link href={`/items/${id}`}>{byId[id].name}</Link>
242
+ </SortableItem>
243
+ ))}
244
+ </SortableList>
245
+
246
+ <SortableList label="Columns" items={columns} onReorder={setColumns} dragBy="handle">
247
+ {columns.map((id) => (
248
+ <SortableItem key={id} id={id} className="flex items-center gap-1 px-1">
249
+ <SortableHandle label="Move column" />
250
+ {id}
251
+ </SortableItem>
252
+ ))}
253
+ </SortableList>
254
+ ```
85
255
 
86
256
  Deltas from stock shadcn:
87
257
 
88
258
  - `button`: sizes 28/24/32 px, a smaller padding on the icon side, a Notion `ghost`, `secondary` hover
89
259
  `accent-strong`, no shadows.
90
- - `badge`: a `tag` variant and a `color` prop with the nine palette colours. `alert`: palette colour variants (a
260
+ - `badge`: a `tag` variant and a `color` prop with the nine palette colours (and `default`); `color` applies to every
261
+ variant but `destructive`, which keeps its own fill and white text. `alert`: palette colour variants (a
91
262
  Notion callout).
92
263
  - `input`, `textarea`, `select`, `input-group`: 28 px high, grey `field` background, thin `input` border.
93
264
  - `dropdown-menu`, `select`, `popover`, `command`: radius 10, `shadow-menu` without a border, 28 px items.
94
265
  - `dialog`, `alert-dialog`: radius 10, `shadow-dialog`, no border. `card`: `shadow-card` instead of a border.
95
- - `checkbox` 16 px with a 1.5 px border, `switch` 26 × 16 (thumb shadow in `SWITCH_THUMB_SHADOW_CLASS`, for a native
96
- switch drawn the same), `tooltip` dark without an arrow, `tabs` default to the `line` variant, `progress` 6 px.
266
+ - `checkbox` 16 px with a 1.5 px border, `radio-group` drawn the same (round, a `primary` dot), `switch` 26 × 16
267
+ (thumb shadow in `SWITCH_THUMB_SHADOW_CLASS`, for a native switch drawn the same), `tooltip` dark without an arrow,
268
+ `tabs` default to the `line` variant, `progress` 6 px.
97
269
  - `table`: a 34 px header in `muted-foreground`, a line under the last row too.
98
270
  - `sidebar`: a controlled sidebar keeps no cookie; the phone sheet's title and description are props; the menu
99
271
  skeleton's width is stable per item (shadcn draws a random one during render).
272
+ - `item`: inside an `ItemGroup` (a `role="list"`) every `Item` renders `role="listitem"`; an `asChild` item keeps its
273
+ child's role (a link stays a link), so wrap it in an element with `role="listitem"`. `scroll-area`: the viewport
274
+ takes `tabIndex={0}` so keyboard users can scroll it; `viewportProps` reach the viewport (`tabIndex: -1` removes
275
+ the tab stop when the content has its own focusable elements).
100
276
  - `sonner`: no `next-themes`; `theme` is a prop. Focus everywhere: `ring-2 ring-ring` instead of `ring-[3px]`.
101
277
 
102
278
  A component the app needs beyond these: add it in this package (`npx shadcn@latest add <name>` in a scratch app,
@@ -110,6 +286,57 @@ with the kit's `defineTheme`; `tests/tokens.test.ts` keeps it equal to the desig
110
286
  change. `cn` is `createThemeCn(NOTION_THEME)`. The build writes `theme.css` with the kit's `softure-theme-css` from
111
287
  `softureTheme` in `package.json` (the kit README, "The theme package contract").
112
288
 
289
+ **Contrast.** Every text colour meets WCAG 2.2 AA (4.5:1) on the surfaces the parts put it on, in light and dark,
290
+ and the focus ring reaches 3:1 against the page; `tests/contrast.test.ts` lists the pairs and guards them. The values
291
+ are the design system's, shifted in lightness only (hue and chroma kept) where a pair fell short. Blue text is
292
+ `text-link`, not `text-primary`: `primary` is the fill under white text, and in dark no one blue serves both, so
293
+ `link` is a lighter blue there (in light both are `#0171cf`). The destructive fill is dimmed in dark
294
+ (`dark:bg-destructive/60`, as shadcn/ui's badge), so `destructive` in dark is the lighter text red. Inline code has its
295
+ own `code-foreground`, since the palette `red` falls short on the grey code chip.
296
+ Control boundaries and states reach 3:1 (SC 1.4.11): the `input` border of fields and select triggers, the
297
+ `control-off` switch track, the checked fill, the progress fill against its track (in dark the default fill is
298
+ `link`), and the selected pill of the default `Tabs` variant, which keeps its fill and shadow and draws an `input`
299
+ border outside its fill (`bg-clip-padding`), so the border reads against the list as well as the pill. Use `border-input` for a field's boundary only; a separator or a button outline uses `border-border`, which
300
+ is decoration and stays quiet.
301
+
113
302
  **Overriding a token.** Redefine its CSS variable after `theme.css` (`:root { --primary: #e16259; }`, and the same in
114
303
  a `.dark` block for the dark value), or build a variant with `extendTheme(theme, { name, colors: { … } })` and write
115
304
  it with `buildThemeCss` (the kit README, "Overriding in an app").
305
+
306
+ ## Testing
307
+
308
+ The suite keeps the package equal to the design system: a class that drifts fails a gate before merge. Layers 1–5
309
+ and 8 run in `npm test`; the visual and accessibility layers and the coverage threshold run in the `themes` workflow
310
+ on every pull request that touches `themes/`.
311
+
312
+ 1. **Every export renders** (`tests/render.test.tsx`): one gallery case (`tests/gallery/cases.tsx`) per component,
313
+ composition and `cva` variant × size, overlays open.
314
+ 2. **Class parity** (`tests/parity.test.tsx`): every case's `data-slot` elements with their class strings equal
315
+ `tests/fixtures/notion-slots.json`.
316
+ 3. **Upstream guard** (`tests/upstream.test.ts`): each `src/ui` file equals the pinned shadcn new-york v4 source
317
+ (`tests/upstream/*.tsx.txt`, commit in `tests/upstream/source.json`) with the deltas listed in
318
+ `tests/upstream/deltas.ts`, each with its reason. A change nobody listed fails here.
319
+ 4. **Behaviour** (`tests/behaviour/`): the sidebar's modes, phone sheet, cookie and labels; form controls; overlays
320
+ (open, choose, close label, Escape, focus return); tabs; every message-layer prop.
321
+ 5. **Tailwind generation** (`tests/tailwind-classes.test.ts`): every class written in `src/ui` and `src/notion` and
322
+ every class in the parity fixture generates CSS on the theme (no unknown token, no cleared default colour).
323
+ 6. **Visual regression** (`visual/gallery.spec.ts`): the gallery and each overlay at 1440 and 390 px, light and dark,
324
+ against `visual/baselines/`, in Playwright's Chromium with fonts from npm packages.
325
+ 7. **Accessibility**: axe (WCAG 2.1 A and AA, colour contrast included) on the same pages; the token pairs in
326
+ `tests/contrast.test.ts` (see Contrast above) run in `npm test`.
327
+ 8. **Inventory** (`tests/inventory.test.ts`): exports, files, the README's component list and the gallery agree.
328
+
329
+ Coverage of `src` stays at or above 90% of statements and branches (`npm run test:coverage -w @softure-ai/theme-notion`).
330
+
331
+ **Changing a component on purpose.** Edit the file, then in the same change:
332
+
333
+ - add or edit its entry in `tests/upstream/deltas.ts` (the upstream text, the package's text, why);
334
+ - refresh the parity fixture and review its diff:
335
+ `UPDATE_FIXTURES=1 npx vitest run themes/theme-notion/tests/parity.test.tsx`;
336
+ - refresh the visual baselines and look at the changed images:
337
+ `npm run test:visual -w @softure-ai/theme-notion -- --update-snapshots` (needs
338
+ `npx playwright install chromium` once). The CI job uploads the expected, actual and diff images when a comparison
339
+ fails.
340
+
341
+ A new component gets a case in `tests/gallery/cases.tsx` (and its `cva` axes in `CVA_AXES`), a pinned upstream file
342
+ when it comes from shadcn, and a line in the component list above.
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export * from "./ui/kbd.js";
24
24
  export * from "./ui/label.js";
25
25
  export * from "./ui/popover.js";
26
26
  export * from "./ui/progress.js";
27
+ export * from "./ui/radio-group.js";
27
28
  export * from "./ui/scroll-area.js";
28
29
  export * from "./ui/select.js";
29
30
  export * from "./ui/separator.js";
@@ -39,9 +40,20 @@ export * from "./ui/tabs.js";
39
40
  export * from "./ui/textarea.js";
40
41
  export * from "./ui/tooltip.js";
41
42
  export { ICON_STROKE_WIDTH } from "./notion/icon-stroke.js";
43
+ export { Code, CodeBlock, type CodeBlockProps } from "./notion/Code.js";
44
+ export { DetailTable, type DetailRow, type DetailTableProps } from "./notion/DetailTable.js";
45
+ export { FilterChip, FilterChipAdd, type FilterChipAddProps, type FilterChipProps } from "./notion/FilterChip.js";
46
+ export { FoldRow, type FoldRowBadge, type FoldRowProps } from "./notion/FoldRow.js";
42
47
  export { PALETTE_COLORS, type PaletteColor } from "./notion/palette.js";
48
+ export { MarkPopover, type MarkPopoverProps } from "./notion/MarkPopover.js";
43
49
  export { PageFrame, type PageFrameProps } from "./notion/PageFrame.js";
44
50
  export { PageHeader, type PageCrumb, type PageHeaderProps } from "./notion/PageHeader.js";
45
51
  export { PropertyList, type Property, type PropertyListProps } from "./notion/PropertyList.js";
52
+ export { SidePanel, type SidePanelLayout, type SidePanelProps } from "./notion/SidePanel.js";
53
+ export { SortableHandle, SortableItem, SortableList, type SortableAnnouncements, type SortableDragBy, type SortableHandleProps, type SortableItemProps, type SortableListProps, type SortableMove, } from "./notion/Sortable.js";
54
+ export { StatCards, StatPills, StatsFold, type StatCard, type StatCardAside, type StatCardsProps, type StatPill, type StatPillsProps, type StatsFoldProps, } from "./notion/Stats.js";
46
55
  export { Status, type StatusProps } from "./notion/Status.js";
56
+ export { Steps, type StepItem, type StepState, type StepsLayout, type StepsProps } from "./notion/Steps.js";
57
+ export { TabBar, type TabBarItem, type TabBarProps } from "./notion/TabBar.js";
58
+ export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT, type Tone } from "./notion/tones.js";
47
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1E,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAA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AAW,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ export * from "./ui/kbd.js";
26
26
  export * from "./ui/label.js";
27
27
  export * from "./ui/popover.js";
28
28
  export * from "./ui/progress.js";
29
+ export * from "./ui/radio-group.js";
29
30
  export * from "./ui/scroll-area.js";
30
31
  export * from "./ui/select.js";
31
32
  export * from "./ui/separator.js";
@@ -41,9 +42,20 @@ export * from "./ui/tabs.js";
41
42
  export * from "./ui/textarea.js";
42
43
  export * from "./ui/tooltip.js";
43
44
  export { ICON_STROKE_WIDTH } from "./notion/icon-stroke.js";
45
+ export { Code, CodeBlock } from "./notion/Code.js";
46
+ export { DetailTable } from "./notion/DetailTable.js";
47
+ export { FilterChip, FilterChipAdd } from "./notion/FilterChip.js";
48
+ export { FoldRow } from "./notion/FoldRow.js";
44
49
  export { PALETTE_COLORS } from "./notion/palette.js";
50
+ export { MarkPopover } from "./notion/MarkPopover.js";
45
51
  export { PageFrame } from "./notion/PageFrame.js";
46
52
  export { PageHeader } from "./notion/PageHeader.js";
47
53
  export { PropertyList } from "./notion/PropertyList.js";
54
+ export { SidePanel } from "./notion/SidePanel.js";
55
+ export { SortableHandle, SortableItem, SortableList, } from "./notion/Sortable.js";
56
+ export { StatCards, StatPills, StatsFold, } from "./notion/Stats.js";
48
57
  export { Status } from "./notion/Status.js";
58
+ export { Steps } from "./notion/Steps.js";
59
+ export { TabBar } from "./notion/TabBar.js";
60
+ export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT } from "./notion/tones.js";
49
61
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,oGAAoG;AACpG,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CA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BAAmB,CAAC"}
@@ -10,9 +10,15 @@ export declare const en: {
10
10
  readonly dialog: {
11
11
  readonly close: "Close";
12
12
  };
13
+ readonly filterChip: {
14
+ readonly add: "Add filter";
15
+ };
13
16
  readonly sheet: {
14
17
  readonly close: "Close";
15
18
  };
19
+ readonly sidePanel: {
20
+ readonly close: "Close";
21
+ };
16
22
  readonly sidebar: {
17
23
  readonly mobileTitle: "Sidebar";
18
24
  readonly mobileDescription: "Displays the mobile sidebar.";
@@ -21,6 +27,20 @@ export declare const en: {
21
27
  readonly spinner: {
22
28
  readonly label: "Loading";
23
29
  };
30
+ readonly sortable: {
31
+ readonly instructions: "To pick up a row, press Space or Enter. Use the arrow keys to move it, then press Space or Enter to drop it, or Escape to cancel.";
32
+ readonly pickedUp: "Picked up {item}, position {position} of {total}.";
33
+ readonly moved: "{item} moved to position {position} of {total}.";
34
+ readonly dropped: "Dropped {item} at position {position} of {total}.";
35
+ readonly cancelled: "Cancelled. {item} is back in place.";
36
+ readonly handle: "Drag to reorder";
37
+ };
38
+ readonly steps: {
39
+ readonly done: "Done";
40
+ readonly current: "Current";
41
+ readonly todo: "To do";
42
+ readonly failed: "Failed";
43
+ };
24
44
  readonly command: {
25
45
  readonly title: "Command Palette";
26
46
  readonly description: "Search for a command to run...";