@softure-ai/theme-notion 0.2.0 → 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.
- package/CHANGELOG.md +136 -0
- package/README.md +167 -16
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/messages/en.d.ts +17 -0
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +10 -0
- package/dist/messages/en.js.map +1 -1
- package/dist/messages/index.d.ts +17 -0
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/notion/Code.d.ts +8 -0
- package/dist/notion/Code.d.ts.map +1 -0
- package/dist/notion/Code.js +12 -0
- package/dist/notion/Code.js.map +1 -0
- package/dist/notion/FilterChip.d.ts +24 -0
- package/dist/notion/FilterChip.d.ts.map +1 -0
- package/dist/notion/FilterChip.js +18 -0
- package/dist/notion/FilterChip.js.map +1 -0
- package/dist/notion/Sortable.d.ts +36 -0
- package/dist/notion/Sortable.d.ts.map +1 -0
- package/dist/notion/Sortable.js +83 -0
- package/dist/notion/Sortable.js.map +1 -0
- package/dist/notion/Stats.d.ts +4 -0
- package/dist/notion/Stats.d.ts.map +1 -1
- package/dist/notion/Stats.js +10 -3
- package/dist/notion/Stats.js.map +1 -1
- package/dist/notion/Steps.d.ts +18 -0
- package/dist/notion/Steps.d.ts.map +1 -0
- package/dist/notion/Steps.js +32 -0
- package/dist/notion/Steps.js.map +1 -0
- package/dist/page.css +22 -0
- package/dist/theme.css +55 -46
- package/dist/tokens.d.ts +82 -64
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +22 -19
- package/dist/tokens.js.map +1 -1
- package/dist/ui/alert.js +1 -1
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +33 -13
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/button-group.js +1 -1
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +3 -3
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/empty.js +1 -1
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/field.js +2 -2
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +8 -3
- package/dist/ui/item.js.map +1 -1
- package/dist/ui/progress.d.ts +4 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +9 -2
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +6 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +14 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/scroll-area.d.ts +3 -1
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +2 -2
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/select.js +2 -2
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sidebar.js +4 -4
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/tabs.js.map +1 -1
- package/package.json +16 -5
- package/src/index.ts +15 -0
- package/src/messages/en.ts +11 -0
- package/src/notion/Code.tsx +39 -0
- package/src/notion/FilterChip.tsx +71 -0
- package/src/notion/Sortable.tsx +235 -0
- package/src/notion/Stats.tsx +23 -3
- package/src/notion/Steps.tsx +102 -0
- package/src/page.css +22 -0
- package/src/tokens.ts +22 -19
- package/src/ui/alert.tsx +1 -1
- package/src/ui/badge.tsx +35 -13
- package/src/ui/button-group.tsx +1 -1
- package/src/ui/button.tsx +3 -3
- package/src/ui/checkbox.tsx +1 -1
- package/src/ui/dropdown-menu.tsx +1 -1
- package/src/ui/empty.tsx +1 -1
- package/src/ui/field.tsx +2 -2
- package/src/ui/item.tsx +16 -7
- package/src/ui/progress.tsx +19 -2
- package/src/ui/radio-group.tsx +44 -0
- package/src/ui/scroll-area.tsx +11 -2
- package/src/ui/select.tsx +2 -2
- package/src/ui/sidebar.tsx +4 -4
- package/src/ui/tabs.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,142 @@ 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
|
+
|
|
7
143
|
## 0.2.0
|
|
8
144
|
|
|
9
145
|
- Needs `@softure-ai/theme-kit` `^0.1.2` (was `^0.1.0`): the version that ships `base.css` and `maplibre.css`, which
|
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ npm i @softure-ai/theme-notion tailwindcss @tailwindcss/postcss
|
|
|
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
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 */
|
|
20
21
|
@import "@softure-ai/theme-kit/maplibre.css"; /* only if the app shows MapLibre maps */
|
|
21
22
|
```
|
|
22
23
|
|
|
@@ -35,13 +36,18 @@ taking the scoped preflight instead of Tailwind's:
|
|
|
35
36
|
@import "@softure-ai/theme-notion/theme.css";
|
|
36
37
|
@import "@softure-ai/theme-notion/sft-bridge.css";
|
|
37
38
|
@import "@softure-ai/theme-kit/base.css"; /* nothing else styles body under the scoped preflight */
|
|
39
|
+
@import "@softure-ai/theme-notion/page.css";
|
|
38
40
|
@import "@softure-ai/theme-kit/maplibre.css"; /* only if the app shows MapLibre maps */
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
`base.css` gives `body` the theme's background, text colour and sans font without the browser's 8 px margin, so a
|
|
42
44
|
page without a shell root, the dark scheme and the Radix portals mounted on `body` (select lists, menus, sheets) all
|
|
43
|
-
take the theme. `
|
|
44
|
-
|
|
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
|
|
45
51
|
after `theme.css`; the app's `globals.css` keeps only `@import` lines.
|
|
46
52
|
|
|
47
53
|
```tsx
|
|
@@ -63,14 +69,15 @@ import { CircleCheck } from "lucide-react";
|
|
|
63
69
|
|
|
64
70
|
**Copy.** The components' built-in texts are accessible names in English (`notionMessages.en`). Pass the app's own
|
|
65
71
|
wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `PageHeader crumbsLabel`,
|
|
66
|
-
`DialogContent closeLabel`, `SheetContent closeLabel`, `SidePanel closeLabel`, `
|
|
67
|
-
`SidebarTrigger label`, `SidebarRail label`, `Spinner aria-label`,
|
|
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`.
|
|
68
75
|
|
|
69
76
|
## Rules, in short
|
|
70
77
|
|
|
71
78
|
- Background `background`, text `foreground`, secondary text `muted-foreground`. Never pure black.
|
|
72
79
|
- Hover is the grey `accent` background, never a border or a shadow; selected and pressed use `accent-strong`.
|
|
73
|
-
- One `primary` (blue, `#
|
|
80
|
+
- One `primary` (blue, `#0171cf`) action per screen. Other buttons are `secondary`, `outline` or `ghost`.
|
|
74
81
|
- A palette colour (`gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`, each with `-bg`,
|
|
75
82
|
`-tag`, `-tag-foreground`) marks an area (a tag) or a state (a status, a callout), never decoration. The same
|
|
76
83
|
colour always means the same thing; the app keeps its own table of meanings.
|
|
@@ -79,7 +86,8 @@ wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `PageHead
|
|
|
79
86
|
- Type: system sans, mono for identifiers. `text-page-title` 40/48 bold once per screen, `text-heading-1..3`
|
|
80
87
|
30/24/20, `text-body` 16/24, `text-ui` 14/20 (panels), `text-small` 12/16, `text-section-label` 12/16 medium.
|
|
81
88
|
- Spacing on a 4 px grid (`p-1` = 4 px). Sizes: `sidebar-width` 240, `content-width` 708, `content-width-wide` 1152,
|
|
82
|
-
`control-height` 28, `row-height` 34
|
|
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
|
|
83
91
|
(button, field, menu item), `lg` 8 (callout, card), `xl` 10 (menu, select, dialog), `full` (switch).
|
|
84
92
|
- Icons: lucide at `ICON_STROKE_WIDTH` (1.75), 16 px in text; they inherit the text colour. No emoji in the interface.
|
|
85
93
|
- Statuses always carry a word and an icon, so states read apart without telling green from red.
|
|
@@ -98,16 +106,38 @@ wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `PageHead
|
|
|
98
106
|
|
|
99
107
|
## Components
|
|
100
108
|
|
|
101
|
-
All
|
|
109
|
+
All 37 shadcn/ui components of the design system, exported from the package root: accordion, alert, alert-dialog,
|
|
102
110
|
avatar, badge, breadcrumb, button, button-group, card, checkbox, collapsible, command, dialog, dropdown-menu, empty,
|
|
103
|
-
field, input, input-group, item, kbd, label, popover, progress, scroll-area, select, separator, sheet,
|
|
104
|
-
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,
|
|
105
113
|
word), `PageHeader` (breadcrumb, icon box, title, description, actions), `PropertyList` (fields of one record),
|
|
106
114
|
`DetailTable` (an item's details as a label and value table), `FoldRow` (a list row folding open to a `DetailTable`
|
|
107
115
|
and more, a native `<details>`), `PageFrame` (a page outside the app shell, the target of `sft-bridge.css`),
|
|
108
116
|
`SidePanel` (a non-modal panel at a side of a canvas, below), `TabBar` (a screen's tabs as links with an optional icon
|
|
109
117
|
and count, the shown tab in the address; `Tabs` keeps it in client state), `MarkPopover` (a counted tag that opens a
|
|
110
|
-
list of what it counts, below)
|
|
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
|
+
```
|
|
111
141
|
|
|
112
142
|
**`SidePanel`.** A panel next to a canvas (a map) that leaves the canvas usable, so a switch inside shows its effect
|
|
113
143
|
at once (`Sheet` is modal). It floats on `background` with `shadow-menu`, 24 rem wide, full width on a phone, with a
|
|
@@ -127,9 +157,11 @@ Escape inside or the close button calls `onClose`, and the caller moves focus ba
|
|
|
127
157
|
```
|
|
128
158
|
|
|
129
159
|
A screen's summary figures: `StatsFold` (figures folded under a heading, closed by default, on native `<details>`),
|
|
130
|
-
`StatCards` (a wrapping row of figure cards: label, figure in its tone, optional `
|
|
131
|
-
`isFullWidth` and `isOneRow` change the grid) and `StatPills` ("label **value**" tags in one row). Each figure takes a
|
|
132
|
-
`tone`; the app keeps only its own table of which meaning takes which tone.
|
|
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`).
|
|
133
165
|
|
|
134
166
|
```tsx
|
|
135
167
|
<StatsFold title="Summary">
|
|
@@ -138,12 +170,31 @@ A screen's summary figures: `StatsFold` (figures folded under a heading, closed
|
|
|
138
170
|
cards={[
|
|
139
171
|
{ key: "paid", label: "Paid", value: "1,200", tone: "success" },
|
|
140
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" },
|
|
141
174
|
]}
|
|
142
175
|
/>
|
|
143
176
|
<StatPills label="Counts" pills={[{ key: "late", label: "Late", value: "1", tone: "danger" }]} />
|
|
144
177
|
</StatsFold>
|
|
145
178
|
```
|
|
146
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
|
+
|
|
147
198
|
**`MarkPopover`.** A tag in a palette colour with an icon and a count; a click or Enter opens the design system's
|
|
148
199
|
popover listing the entries, Escape or a click outside closes it. It runs on the browser's Popover API (no client
|
|
149
200
|
state, no portal): the panel sits in the top layer, so a card's `overflow` never clips it, centred on a phone and
|
|
@@ -159,20 +210,69 @@ work. The colour means the worst of what it lists; the copy is props.
|
|
|
159
210
|
</MarkPopover>
|
|
160
211
|
```
|
|
161
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
|
+
```
|
|
255
|
+
|
|
162
256
|
Deltas from stock shadcn:
|
|
163
257
|
|
|
164
258
|
- `button`: sizes 28/24/32 px, a smaller padding on the icon side, a Notion `ghost`, `secondary` hover
|
|
165
259
|
`accent-strong`, no shadows.
|
|
166
|
-
- `badge`: a `tag` variant and a `color` prop with the nine palette colours
|
|
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
|
|
167
262
|
Notion callout).
|
|
168
263
|
- `input`, `textarea`, `select`, `input-group`: 28 px high, grey `field` background, thin `input` border.
|
|
169
264
|
- `dropdown-menu`, `select`, `popover`, `command`: radius 10, `shadow-menu` without a border, 28 px items.
|
|
170
265
|
- `dialog`, `alert-dialog`: radius 10, `shadow-dialog`, no border. `card`: `shadow-card` instead of a border.
|
|
171
|
-
- `checkbox` 16 px with a 1.5 px border, `
|
|
172
|
-
switch drawn the same), `tooltip` dark without an arrow,
|
|
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.
|
|
173
269
|
- `table`: a 34 px header in `muted-foreground`, a line under the last row too.
|
|
174
270
|
- `sidebar`: a controlled sidebar keeps no cookie; the phone sheet's title and description are props; the menu
|
|
175
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).
|
|
176
276
|
- `sonner`: no `next-themes`; `theme` is a prop. Focus everywhere: `ring-2 ring-ring` instead of `ring-[3px]`.
|
|
177
277
|
|
|
178
278
|
A component the app needs beyond these: add it in this package (`npx shadcn@latest add <name>` in a scratch app,
|
|
@@ -186,6 +286,57 @@ with the kit's `defineTheme`; `tests/tokens.test.ts` keeps it equal to the desig
|
|
|
186
286
|
change. `cn` is `createThemeCn(NOTION_THEME)`. The build writes `theme.css` with the kit's `softure-theme-css` from
|
|
187
287
|
`softureTheme` in `package.json` (the kit README, "The theme package contract").
|
|
188
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
|
+
|
|
189
302
|
**Overriding a token.** Redefine its CSS variable after `theme.css` (`:root { --primary: #e16259; }`, and the same in
|
|
190
303
|
a `.dark` block for the dark value), or build a variant with `extendTheme(theme, { name, colors: { … } })` and write
|
|
191
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,7 +40,9 @@ 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";
|
|
42
44
|
export { DetailTable, type DetailRow, type DetailTableProps } from "./notion/DetailTable.js";
|
|
45
|
+
export { FilterChip, FilterChipAdd, type FilterChipAddProps, type FilterChipProps } from "./notion/FilterChip.js";
|
|
43
46
|
export { FoldRow, type FoldRowBadge, type FoldRowProps } from "./notion/FoldRow.js";
|
|
44
47
|
export { PALETTE_COLORS, type PaletteColor } from "./notion/palette.js";
|
|
45
48
|
export { MarkPopover, type MarkPopoverProps } from "./notion/MarkPopover.js";
|
|
@@ -47,8 +50,10 @@ export { PageFrame, type PageFrameProps } from "./notion/PageFrame.js";
|
|
|
47
50
|
export { PageHeader, type PageCrumb, type PageHeaderProps } from "./notion/PageHeader.js";
|
|
48
51
|
export { PropertyList, type Property, type PropertyListProps } from "./notion/PropertyList.js";
|
|
49
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";
|
|
50
54
|
export { StatCards, StatPills, StatsFold, type StatCard, type StatCardAside, type StatCardsProps, type StatPill, type StatPillsProps, type StatsFoldProps, } from "./notion/Stats.js";
|
|
51
55
|
export { Status, type StatusProps } from "./notion/Status.js";
|
|
56
|
+
export { Steps, type StepItem, type StepState, type StepsLayout, type StepsProps } from "./notion/Steps.js";
|
|
52
57
|
export { TabBar, type TabBarItem, type TabBarProps } from "./notion/TabBar.js";
|
|
53
58
|
export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT, type Tone } from "./notion/tones.js";
|
|
54
59
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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AmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,WAAW,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,7 +42,9 @@ 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";
|
|
44
46
|
export { DetailTable } from "./notion/DetailTable.js";
|
|
47
|
+
export { FilterChip, FilterChipAdd } from "./notion/FilterChip.js";
|
|
45
48
|
export { FoldRow } from "./notion/FoldRow.js";
|
|
46
49
|
export { PALETTE_COLORS } from "./notion/palette.js";
|
|
47
50
|
export { MarkPopover } from "./notion/MarkPopover.js";
|
|
@@ -49,8 +52,10 @@ export { PageFrame } from "./notion/PageFrame.js";
|
|
|
49
52
|
export { PageHeader } from "./notion/PageHeader.js";
|
|
50
53
|
export { PropertyList } from "./notion/PropertyList.js";
|
|
51
54
|
export { SidePanel } from "./notion/SidePanel.js";
|
|
55
|
+
export { SortableHandle, SortableItem, SortableList, } from "./notion/Sortable.js";
|
|
52
56
|
export { StatCards, StatPills, StatsFold, } from "./notion/Stats.js";
|
|
53
57
|
export { Status } from "./notion/Status.js";
|
|
58
|
+
export { Steps } from "./notion/Steps.js";
|
|
54
59
|
export { TabBar } from "./notion/TabBar.js";
|
|
55
60
|
export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT } from "./notion/tones.js";
|
|
56
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,CAAC;AAClD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAuB,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;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AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAuB,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAyC,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAiD,MAAM,wBAAwB,CAAC;AAClH,OAAO,EAAE,OAAO,EAAwC,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAqB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAyB,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAuB,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAwC,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAyC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAE,SAAS,EAA6C,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,GAOb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,GAOV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAoB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAoE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAE,MAAM,EAAqC,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,mBAAmB,CAAC"}
|
package/dist/messages/en.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ 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
|
};
|
|
@@ -24,6 +27,20 @@ export declare const en: {
|
|
|
24
27
|
readonly spinner: {
|
|
25
28
|
readonly label: "Loading";
|
|
26
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
|
+
};
|
|
27
44
|
readonly command: {
|
|
28
45
|
readonly title: "Command Palette";
|
|
29
46
|
readonly description: "Search for a command to run...";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBL,CAAC"}
|
package/dist/messages/en.js
CHANGED
|
@@ -5,10 +5,20 @@
|
|
|
5
5
|
export const en = {
|
|
6
6
|
breadcrumb: { label: "breadcrumb", more: "More" },
|
|
7
7
|
dialog: { close: "Close" },
|
|
8
|
+
filterChip: { add: "Add filter" },
|
|
8
9
|
sheet: { close: "Close" },
|
|
9
10
|
sidePanel: { close: "Close" },
|
|
10
11
|
sidebar: { mobileTitle: "Sidebar", mobileDescription: "Displays the mobile sidebar.", toggle: "Toggle Sidebar" },
|
|
11
12
|
spinner: { label: "Loading" },
|
|
13
|
+
sortable: {
|
|
14
|
+
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.",
|
|
15
|
+
pickedUp: "Picked up {item}, position {position} of {total}.",
|
|
16
|
+
moved: "{item} moved to position {position} of {total}.",
|
|
17
|
+
dropped: "Dropped {item} at position {position} of {total}.",
|
|
18
|
+
cancelled: "Cancelled. {item} is back in place.",
|
|
19
|
+
handle: "Drag to reorder",
|
|
20
|
+
},
|
|
21
|
+
steps: { done: "Done", current: "Current", todo: "To do", failed: "Failed" },
|
|
12
22
|
command: { title: "Command Palette", description: "Search for a command to run..." },
|
|
13
23
|
};
|
|
14
24
|
//# sourceMappingURL=en.js.map
|
package/dist/messages/en.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,UAAU,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE;IACjD,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC1B,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IACzB,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC7B,OAAO,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAChH,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;IAC7B,OAAO,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,gCAAgC,EAAE;CAC5E,CAAC"}
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,UAAU,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE;IACjD,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC1B,UAAU,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE;IACjC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IACzB,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC7B,OAAO,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAChH,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;IAC7B,QAAQ,EAAE;QACR,YAAY,EACV,mIAAmI;QACrI,QAAQ,EAAE,mDAAmD;QAC7D,KAAK,EAAE,iDAAiD;QACxD,OAAO,EAAE,mDAAmD;QAC5D,SAAS,EAAE,qCAAqC;QAChD,MAAM,EAAE,iBAAiB;KAC1B;IACD,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE;IAC5E,OAAO,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,gCAAgC,EAAE;CAC5E,CAAC"}
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export declare const notionMessages: {
|
|
|
9
9
|
readonly dialog: {
|
|
10
10
|
readonly close: "Close";
|
|
11
11
|
};
|
|
12
|
+
readonly filterChip: {
|
|
13
|
+
readonly add: "Add filter";
|
|
14
|
+
};
|
|
12
15
|
readonly sheet: {
|
|
13
16
|
readonly close: "Close";
|
|
14
17
|
};
|
|
@@ -23,6 +26,20 @@ export declare const notionMessages: {
|
|
|
23
26
|
readonly spinner: {
|
|
24
27
|
readonly label: "Loading";
|
|
25
28
|
};
|
|
29
|
+
readonly sortable: {
|
|
30
|
+
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.";
|
|
31
|
+
readonly pickedUp: "Picked up {item}, position {position} of {total}.";
|
|
32
|
+
readonly moved: "{item} moved to position {position} of {total}.";
|
|
33
|
+
readonly dropped: "Dropped {item} at position {position} of {total}.";
|
|
34
|
+
readonly cancelled: "Cancelled. {item} is back in place.";
|
|
35
|
+
readonly handle: "Drag to reorder";
|
|
36
|
+
};
|
|
37
|
+
readonly steps: {
|
|
38
|
+
readonly done: "Done";
|
|
39
|
+
readonly current: "Current";
|
|
40
|
+
readonly todo: "To do";
|
|
41
|
+
readonly failed: "Failed";
|
|
42
|
+
};
|
|
26
43
|
readonly command: {
|
|
27
44
|
readonly title: "Command Palette";
|
|
28
45
|
readonly description: "Search for a command to run...";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,qGAAqG;AACrG,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,qGAAqG;AACrG,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAS,CAAC;AAErC,MAAM,MAAM,cAAc,GAAG,OAAO,EAAE,CAAC"}
|