@softure-ai/theme-notion 0.9.0 → 0.10.2
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 +51 -0
- package/README.md +102 -8
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/notion/FoldRow.d.ts +2 -0
- package/dist/notion/FoldRow.d.ts.map +1 -1
- package/dist/notion/FoldRow.js +3 -2
- package/dist/notion/FoldRow.js.map +1 -1
- package/dist/notion/InstallBar.d.ts +23 -0
- package/dist/notion/InstallBar.d.ts.map +1 -0
- package/dist/notion/InstallBar.js +16 -0
- package/dist/notion/InstallBar.js.map +1 -0
- package/dist/notion/LaunchScreen.d.ts +13 -0
- package/dist/notion/LaunchScreen.d.ts.map +1 -0
- package/dist/notion/LaunchScreen.js +11 -0
- package/dist/notion/LaunchScreen.js.map +1 -0
- package/dist/notion/MiniProgress.d.ts +13 -0
- package/dist/notion/MiniProgress.d.ts.map +1 -0
- package/dist/notion/MiniProgress.js +24 -0
- package/dist/notion/MiniProgress.js.map +1 -0
- package/dist/notion/Timeline.d.ts +15 -3
- package/dist/notion/Timeline.d.ts.map +1 -1
- package/dist/notion/Timeline.js +16 -4
- package/dist/notion/Timeline.js.map +1 -1
- package/dist/notion/UpdatePrompt.d.ts +13 -0
- package/dist/notion/UpdatePrompt.d.ts.map +1 -0
- package/dist/notion/UpdatePrompt.js +16 -0
- package/dist/notion/UpdatePrompt.js.map +1 -0
- package/dist/ui/accordion.d.ts +3 -1
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +2 -2
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/dialog.d.ts +5 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +5 -4
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +14 -5
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +21 -10
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/scroll-area.d.ts +2 -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/tabs.d.ts +7 -2
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +47 -5
- package/dist/ui/tabs.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -1
- package/src/notion/FoldRow.tsx +8 -2
- package/src/notion/InstallBar.tsx +75 -0
- package/src/notion/LaunchScreen.tsx +37 -0
- package/src/notion/MiniProgress.tsx +67 -0
- package/src/notion/Timeline.tsx +65 -12
- package/src/notion/UpdatePrompt.tsx +47 -0
- package/src/ui/accordion.tsx +5 -1
- package/src/ui/dialog.tsx +16 -2
- package/src/ui/dropdown-menu.tsx +55 -16
- package/src/ui/scroll-area.tsx +5 -1
- package/src/ui/tabs.tsx +66 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,57 @@ 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.10.2
|
|
8
|
+
|
|
9
|
+
- A wide dialog (#902): `DialogContent` gains `size` (`"default"` or `"wide"`). `wide` is half the viewport from
|
|
10
|
+
`lg` (`lg:max-w-1/2`), `max-w-lg` between `sm` and `lg`, and keeps the 1 rem gutter on phones. Default dialogs
|
|
11
|
+
render the same classes.
|
|
12
|
+
- `DialogFooter showCloseButton` takes its text from the message layer (#903): `closeLabel`, defaulting to
|
|
13
|
+
`notionMessages.en.dialog.close`, replaces the literal "Close".
|
|
14
|
+
- A folding timeline entry (#907): `TimelineItem` gains `fold` (`{ isOpen?, isOpenInitially?, onOpenChange? }`, type
|
|
15
|
+
`TimelineItemFold`). The body becomes a disclosure button (`aria-expanded`, `aria-controls`, a turning chevron), at
|
|
16
|
+
least the touch target high, that shows and hides the entry's `children`; `fold` and `onSelect` exclude each other.
|
|
17
|
+
`FoldRow` gains `size="touch"`: the summary is at least 44 px high (`min-h-touch-target`). Defaults render the
|
|
18
|
+
same classes (`min-h-row-height` moves to the end of the summary's class list).
|
|
19
|
+
- A scrollable tab strip (#908): `TabsList` (and `tabsListVariants`) gains `scrollable`. The list keeps to its
|
|
20
|
+
container's width, scrolls sideways, keeps each trigger at its own width (and room under the line variant's
|
|
21
|
+
underline), and scrolls the active tab into the middle when it changes; the `Tabs` root takes
|
|
22
|
+
`has-data-[scrollable=true]:min-w-0`, so a grid or flex parent no longer widens to the tabs. `ScrollArea` gains
|
|
23
|
+
`scrollbars` (`"vertical"`, `"horizontal"` or `"both"`).
|
|
24
|
+
- `LaunchScreen` (#911): an installed app's icon, name, progress bar and percentage on the theme's background while
|
|
25
|
+
its first page loads, streamed from `app/loading.tsx`; `@softure-ai/pwa`'s `buildLaunchProgressScript()` moves it.
|
|
26
|
+
|
|
27
|
+
## 0.10.1
|
|
28
|
+
|
|
29
|
+
- The content of 0.10.0, which was never published: its release stopped at the gates (ESLint ran out of memory in
|
|
30
|
+
`release.yml`) before publishing, and a tag is never moved.
|
|
31
|
+
|
|
32
|
+
## 0.10.0
|
|
33
|
+
|
|
34
|
+
- Touch sizes for menus, tabs, accordion and dialog close (#880), the rest of #859. `DropdownMenuContent` gains
|
|
35
|
+
`size` (`"default"` or `"touch"`) and so do `DropdownMenuItem`, `DropdownMenuCheckboxItem`, `DropdownMenuRadioItem`
|
|
36
|
+
and `DropdownMenuSubTrigger`: a touch menu draws every row at least 44 px high (`min-h-touch-target`), and a row's
|
|
37
|
+
own `size` wins over its menu's. `TabsList` (and `tabsListVariants`) gains `size`: a touch list drops its fixed
|
|
38
|
+
36 px height and its triggers are at least 44 × 44 (`min-h-touch-target min-w-touch-target`); `TabsTrigger size`
|
|
39
|
+
wins over the list's. `AccordionTrigger` gains `size="touch"` (`min-h-touch-target`). `DialogContent` gains
|
|
40
|
+
`closeButtonSize="touch"`: the close button is 44 × 44 (`size-touch-target`) around the same icon. Defaults render
|
|
41
|
+
as before. An app that wrote `min-h-touch-target min-w-touch-target` on these controls replaces it with the size.
|
|
42
|
+
- `MiniProgress` (#871): a compact bar with its figure inside, for a table cell or a tile. A 20 px `primary/12` track
|
|
43
|
+
that takes the cell's width (at least 64 px), filled in `primary` (`link` in dark) or a `tone`'s colour; `value`
|
|
44
|
+
0–100 clamped, `label` (default: the rounded percent) drawn in `foreground` on the track and in `background` clipped
|
|
45
|
+
to the fill, AA on both in both schemes, truncated with an ellipsis in a narrow cell. A string label is the bar's
|
|
46
|
+
`aria-valuetext`. An app that put a figure in a fixed-width span next to `Progress` (`flex gap-2` + `w-16` +
|
|
47
|
+
`Progress`) swaps the pair for one `MiniProgress` and drops the widths.
|
|
48
|
+
- `UpdatePrompt` (#872): the offer to reload into a new build, for an installed app on `@softure-ai/pwa`. A floating
|
|
49
|
+
`Alert` at the bottom of the screen inside the safe-area insets, with a reload `Button` at the touch height (`md:h-7`
|
|
50
|
+
on a desktop); a polite `status`, drawn only while `open`. The copy is props, keyed like `pwaMessages.en.update`:
|
|
51
|
+
`<UpdatePrompt open={isUpdateReady} onReload={activate} {...messages.update} />`.
|
|
52
|
+
- `InstallBar` (#873): the offer to install the app on a phone, for an app on `@softure-ai/pwa`. A floating `Alert`
|
|
53
|
+
like `UpdatePrompt`, with the browser's install button (`offer="browser_prompt"`) or the two iOS steps, Share then
|
|
54
|
+
Add to Home Screen (`offer="ios_steps"`), and a labelled close button, both at the touch size on a phone; nothing for
|
|
55
|
+
`offer="none"`. The copy is props, keyed like `pwaMessages.en.install`:
|
|
56
|
+
`<InstallBar offer={offer} onInstall={() => void install()} onClose={close} {...messages.install} />`.
|
|
57
|
+
|
|
7
58
|
## 0.9.0
|
|
8
59
|
|
|
9
60
|
- `Badge` and `Status` in a narrow container (#864): a badge is capped at its container's width (`max-w-full`), so a
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ import { CircleCheck } from "lucide-react";
|
|
|
74
74
|
|
|
75
75
|
**Copy.** The components' built-in texts are accessible names in English (`notionMessages.en`). Pass the app's own
|
|
76
76
|
wording by props: `Breadcrumb aria-label`, `BreadcrumbEllipsis label`, `PageHeader crumbsLabel`,
|
|
77
|
-
`DialogContent closeLabel`, `SheetContent closeLabel`, `SidePanel closeLabel`, `Steps stateLabels`,
|
|
77
|
+
`DialogContent closeLabel`, `DialogFooter closeLabel` (the `showCloseButton` button's text), `SheetContent closeLabel`, `SidePanel closeLabel`, `Steps stateLabels`,
|
|
78
78
|
`Sidebar mobileTitle mobileDescription`, `SidebarTrigger label`, `SidebarRail label`, `Spinner aria-label`,
|
|
79
79
|
`CommandDialog title description` (`title` also names its search field), `Command label` (the search field's
|
|
80
80
|
name outside a `CommandDialog`; without it the field has none), `SortableList instructions announcements`, `SortableHandle label`.
|
|
@@ -136,13 +136,21 @@ and more, a native `<details>`), `PageFrame` (a page outside the app shell, the
|
|
|
136
136
|
and count, the shown tab in the address; `Tabs` keeps it in client state), `MarkPopover` (a counted tag that opens a
|
|
137
137
|
list of what it counts, below), `FilterChip` and `FilterChipAdd` (a list's filter pills, below), `Steps` (numbered
|
|
138
138
|
stages with a state, below), `Timeline` (dated entries on a vertical rail, below), `Code` (inline code) and `CodeBlock` (a mono block for logs and paths, below),
|
|
139
|
-
`SortableList`, `SortableItem`, `SortableHandle` and `SortableActivator` (rows reordered by dragging, below)
|
|
139
|
+
`SortableList`, `SortableItem`, `SortableHandle` and `SortableActivator` (rows reordered by dragging, below),
|
|
140
|
+
`MiniProgress` (a compact bar with its figure inside, for a table cell or a tile, below),
|
|
141
|
+
`UpdatePrompt` (the offer to reload into a new build, for an installed app, below),
|
|
142
|
+
`InstallBar` (the offer to install the app on a phone, below),
|
|
143
|
+
`LaunchScreen` (an installed app's icon, name and progress while its first page loads, below).
|
|
140
144
|
|
|
141
145
|
**Touch sizes.** The controls a phone view taps most reach the `touch-target` token (44 px, Apple's HIG and WCAG
|
|
142
146
|
2.5.5): `Button` sizes `touch` (44 px high, padded like `lg`) and `icon-touch` (44 × 44), `SelectTrigger`
|
|
143
147
|
`size="touch"`, and `SelectItem` at least 44 px high, for a whole list (`SelectContent size="touch"`) or one item
|
|
144
|
-
(`SelectItem size="touch"`; an item's own `size` wins over its list's).
|
|
145
|
-
|
|
148
|
+
(`SelectItem size="touch"`; an item's own `size` wins over its list's). The same rule holds for the dropdown menu
|
|
149
|
+
(`DropdownMenuContent size="touch"`, or `size="touch"` on a `DropdownMenuItem`, `DropdownMenuCheckboxItem`,
|
|
150
|
+
`DropdownMenuRadioItem` or `DropdownMenuSubTrigger`) and the tabs (`TabsList size="touch"` grows to its triggers,
|
|
151
|
+
each at least 44 × 44, or `TabsTrigger size="touch"`). `AccordionTrigger size="touch"` is at least 44 px high
|
|
152
|
+
whatever its padding, and `DialogContent closeButtonSize="touch"` draws the close button 44 × 44 around the same
|
|
153
|
+
icon. Each sets its height with a plain class, so one breakpoint class brings the pointer size back on a desktop.
|
|
146
154
|
|
|
147
155
|
```tsx
|
|
148
156
|
<Button size="touch" className="md:h-7 md:px-2.5">Save</Button>
|
|
@@ -153,6 +161,12 @@ one breakpoint class brings the pointer size back on a desktop.
|
|
|
153
161
|
<SelectItem value="table" className="md:min-h-7">Table</SelectItem>
|
|
154
162
|
</SelectContent>
|
|
155
163
|
</Select>
|
|
164
|
+
<DropdownMenuContent size="touch">
|
|
165
|
+
<DropdownMenuItem className="md:min-h-7">Rename</DropdownMenuItem>
|
|
166
|
+
</DropdownMenuContent>
|
|
167
|
+
<TabsList size="touch">
|
|
168
|
+
<TabsTrigger value="all" className="md:min-h-0 md:min-w-0">All</TabsTrigger>
|
|
169
|
+
</TabsList>
|
|
156
170
|
```
|
|
157
171
|
|
|
158
172
|
**`FoldRow`.** An item as one list row in a native `<details>`: a chevron, the title, short facts and badges on the
|
|
@@ -160,7 +174,8 @@ right; opened, it shows a `DetailTable` and its `children`. The opened content i
|
|
|
160
174
|
(`p-3`), so a table sits centred under the row; `isInset` indents it under the title instead (24 px on the left) and
|
|
161
175
|
sets `data-inset` on the content, like `StatsFold`. A row with a summary of its own (icons, a status) passes `summary`,
|
|
162
176
|
drawn after the chevron in place of `title`, `facts` and `badges`; `details` and `detailsLabel` are optional together,
|
|
163
|
-
so the content can be several tables or a list.
|
|
177
|
+
so the content can be several tables or a list. `size="touch"` makes the summary at least the `touch-target` height
|
|
178
|
+
(44 px) instead of the row height, for a phone list.
|
|
164
179
|
|
|
165
180
|
```tsx
|
|
166
181
|
<FoldRow title="Dentist" facts={["12.01.2027"]} badges={[]} detailsLabel="Visit details" details={rows} />
|
|
@@ -311,7 +326,11 @@ tag fill, the time above the title); `compact` is a minor entry between two majo
|
|
|
311
326
|
colour on the page, the time after the title, the description and badges on one wrapping line). `line: "dashed"` dashes the rail through an entry for something
|
|
312
327
|
missing. With `onSelect` the body is a button; `actionLabel` is read before its visible text ("Show on the map"), so
|
|
313
328
|
the button's name says what it does and still contains every word it shows; `aside` sits at the right edge outside that
|
|
314
|
-
button, so a mark with its own popover never nests in it.
|
|
329
|
+
button, so a mark with its own popover never nests in it. With `fold` the entry folds open and closed instead: the body is
|
|
330
|
+
a disclosure button (`aria-expanded`, `aria-controls`, a chevron that turns when open) at least the `touch-target`
|
|
331
|
+
height, and `children` show only while it is open; `fold: {}` keeps its own state (closed, or open with
|
|
332
|
+
`isOpenInitially`), `fold: { isOpen, onOpenChange }` lets the app keep it. `fold` and `onSelect` exclude each other.
|
|
333
|
+
The colour never carries a meaning alone: put the state in
|
|
315
334
|
words in `badges`. `data` sets an app's own `data-*` attributes on the item. `data-slot="timeline"`,
|
|
316
335
|
`timeline-item` (with `data-item`, `data-size`, `data-line`), `timeline-rail`, `timeline-marker`, `timeline-item-body`
|
|
317
336
|
and the body's parts mark the parts.
|
|
@@ -328,10 +347,32 @@ and the body's parts mark the parts.
|
|
|
328
347
|
},
|
|
329
348
|
{ key: "sapa", icon: CircleDashed, color: "yellow", line: "dashed", time: "11–12 Dec", title: "Sa Pa",
|
|
330
349
|
badges: <Status color="yellow" icon={CircleDashed}>No stay</Status> },
|
|
350
|
+
{ key: "train", icon: TrainFront, color: "blue", time: "10 Dec, 22:00", title: "Train to Sa Pa",
|
|
351
|
+
fold: {}, children: <p>Car 4, berth 12.</p> },
|
|
331
352
|
]}
|
|
332
353
|
/>
|
|
333
354
|
```
|
|
334
355
|
|
|
356
|
+
**`MiniProgress`.** A share with its figure inside the bar, for a table cell or a tile where a figure next to a
|
|
357
|
+
`Progress` would collide with it: a 20 px rounded track (`primary/12`) that takes the cell's width (at least 64 px),
|
|
358
|
+
filled in `primary` (the link blue in dark, as in `Progress`) or in its `tone`'s colour. `value` is 0–100, clamped
|
|
359
|
+
(non-finite reads as 0); `label` is the text inside (default: the rounded percent). The label is drawn twice: in
|
|
360
|
+
`foreground` on the track and in the page `background` clipped to the fill, so it reads at any value, also where the
|
|
361
|
+
fill's edge crosses a letter, and passes AA on the track and on every fill in both schemes. A label wider than the cell
|
|
362
|
+
ends in an ellipsis inside the bar. The bar is Radix's `progressbar`: a string label is its `aria-valuetext` (the amount
|
|
363
|
+
is announced, not only the percent), the drawn copies are `aria-hidden`; give it a name with `aria-label`. Slots:
|
|
364
|
+
`mini-progress` (with `data-tone`), `mini-progress-indicator`, `mini-progress-label`.
|
|
365
|
+
|
|
366
|
+
```tsx
|
|
367
|
+
<TableCell className="w-24">
|
|
368
|
+
<MiniProgress value={task.costShare} label={formatUsd(task.costUsd)} aria-label={messages.costShare} />
|
|
369
|
+
</TableCell>
|
|
370
|
+
<MiniProgress value={82} tone="warning" aria-label={messages.budgetUsed} />
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
An app that set a figure in a fixed-width span next to `Progress` (`flex gap-2` + `w-16` + `Progress`) swaps the
|
|
374
|
+
pair for one `MiniProgress` and drops the widths.
|
|
375
|
+
|
|
335
376
|
**`MarkPopover`.** A tag in a palette colour with an icon and a count; a click or Enter opens the design system's
|
|
336
377
|
popover listing the entries, Escape or a click outside closes it. It runs on the browser's Popover API (no client
|
|
337
378
|
state, no portal): the panel sits in the top layer, so a card's `overflow` never clips it, centred on a phone and
|
|
@@ -357,6 +398,45 @@ plain text. No syntax highlighting. `data-slot="code"` and `data-slot="code-bloc
|
|
|
357
398
|
<CodeBlock label="Build log" wrap>{log}</CodeBlock>
|
|
358
399
|
```
|
|
359
400
|
|
|
401
|
+
**`UpdatePrompt`.** The offer to reload into a new build, for an installed app on `@softure-ai/pwa`: a floating
|
|
402
|
+
`Alert` at the bottom of the screen (`shadow-menu`, at most `max-w-md`), padded by the safe-area insets so it clears a
|
|
403
|
+
phone's home indicator and notch, with a reload `Button` at the touch height (`md:h-7` on a desktop). It is a polite
|
|
404
|
+
`status`, not an `alert`, so it never interrupts a screen reader. It draws nothing until `open`. The copy is props,
|
|
405
|
+
keyed like `pwaMessages.en.update`; `data-slot="update-prompt"` marks the root.
|
|
406
|
+
|
|
407
|
+
```tsx
|
|
408
|
+
const { isUpdateReady, activate } = useServiceWorkerUpdate(); // @softure-ai/pwa/react
|
|
409
|
+
<UpdatePrompt open={isUpdateReady} onReload={activate} {...messages.update} />
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
**`InstallBar`.** The offer to install the app on a phone, for an app on `@softure-ai/pwa`: a floating `Alert` like
|
|
413
|
+
`UpdatePrompt` (bottom of the screen, inside the safe-area insets, `max-w-md`), with the browser's install `Button` at
|
|
414
|
+
the touch height for `offer="browser_prompt"`, or the two iOS steps with their icons (Share, then Add to Home Screen)
|
|
415
|
+
for `offer="ios_steps"`, and a ghost close `Button` at `icon-touch` (`md:size-7` on a desktop) labelled by `close`. It
|
|
416
|
+
is a polite `status` and draws nothing for `offer="none"`. The copy is props, keyed like `pwaMessages.en.install`:
|
|
417
|
+
|
|
418
|
+
```tsx
|
|
419
|
+
const { offer, install, close } = useInstallOffer({ app: "fire" }); // @softure-ai/pwa/react
|
|
420
|
+
<InstallBar offer={offer} onInstall={() => void install()} onClose={close} {...messages.install} />
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
**`LaunchScreen`.** What an installed app on `@softure-ai/pwa` shows from its first byte until the page arrives,
|
|
424
|
+
streamed at once from the root `app/loading.tsx`: full screen on the theme's `background` (light and dark), the app's
|
|
425
|
+
icon (`size-16`, `rounded-2xl`, decorative), its name, a `Progress` (`w-48`) named by `label`, and the percentage
|
|
426
|
+
(hidden from screen readers: the bar reports the value). It renders at 0; the inline `script`
|
|
427
|
+
(`buildLaunchProgressScript()` from `@softure-ai/pwa`) moves the bar's value, its indicator and the percentage through
|
|
428
|
+
`data-slot="progress"`, `progress-indicator` and `launch-screen-percent`, and stops once the page replaced the screen:
|
|
429
|
+
|
|
430
|
+
```tsx
|
|
431
|
+
// app/loading.tsx
|
|
432
|
+
import { buildLaunchProgressScript, ICONS_PATH } from "@softure-ai/pwa";
|
|
433
|
+
const ICON = `${ICONS_PATH}/icon-192.png`; // the manifest's icon, drawn by the icon route
|
|
434
|
+
const SCRIPT = buildLaunchProgressScript();
|
|
435
|
+
export default function Loading() {
|
|
436
|
+
return <LaunchScreen name={messages.app.name} iconSrc={ICON} label={messages.pwa.launch.label} script={SCRIPT} />;
|
|
437
|
+
}
|
|
438
|
+
```
|
|
439
|
+
|
|
360
440
|
**`SortableList`.** A list whose rows are reordered by dragging, built on the headless `@dnd-kit/core` and
|
|
361
441
|
`@dnd-kit/sortable`. On a touch screen a long press (`holdDelay`, 500 ms) lifts a row; moving more than `tolerance`
|
|
362
442
|
(8 px) before that scrolls instead, and a tap still activates the row. A mouse drags the same way; from the keyboard
|
|
@@ -443,17 +523,31 @@ Deltas from stock shadcn:
|
|
|
443
523
|
</CommandDialog>
|
|
444
524
|
```
|
|
445
525
|
|
|
446
|
-
- `dialog`, `alert-dialog`: radius 10, `shadow-dialog`, no border. `
|
|
526
|
+
- `dialog`, `alert-dialog`: radius 10, `shadow-dialog`, no border. `DialogContent size="wide"` is half the
|
|
527
|
+
viewport wide from `lg` (`lg:max-w-1/2`) and `max-w-lg` between `sm` and `lg`, for a form with a list above its
|
|
528
|
+
fields; the default stays `max-w-lg`. `card`: `shadow-card` instead of a border.
|
|
447
529
|
- `checkbox` 16 px with a 1.5 px border, `radio-group` drawn the same (round, a `primary` dot), `switch` 26 × 16
|
|
448
530
|
(thumb shadow in `SWITCH_THUMB_SHADOW_CLASS`, for a native switch drawn the same), `tooltip` dark without an arrow,
|
|
449
531
|
`tabs` default to the `line` variant, `progress` 6 px.
|
|
532
|
+
- `tabs`: `TabsList scrollable` is a tab strip wider than a phone screen. It keeps to its container's width
|
|
533
|
+
(`w-full min-w-0`, and the `Tabs` root gets `min-w-0`, so a grid or flex parent does not widen to the tabs), scrolls
|
|
534
|
+
sideways by touch, wheel and the arrow keys (focus moves to the next tab), keeps every trigger at its own width and
|
|
535
|
+
scrolls the active tab into the middle whenever it changes; it combines with `size="touch"`. Sets
|
|
536
|
+
`data-scrollable="true"` on the list.
|
|
537
|
+
|
|
538
|
+
```tsx
|
|
539
|
+
<Tabs value={tab} onValueChange={setTab}>
|
|
540
|
+
<TabsList scrollable size="touch">…</TabsList>
|
|
541
|
+
</Tabs>
|
|
542
|
+
```
|
|
450
543
|
- `table`: a 34 px header in `muted-foreground`, a line under the last row too.
|
|
451
544
|
- `sidebar`: a controlled sidebar keeps no cookie; the phone sheet's title and description are props; the menu
|
|
452
545
|
skeleton's width is stable per item (shadcn draws a random one during render).
|
|
453
546
|
- `item`: inside an `ItemGroup` (a `role="list"`) every `Item` renders `role="listitem"`; an `asChild` item keeps its
|
|
454
547
|
child's role (a link stays a link), so wrap it in an element with `role="listitem"`. `scroll-area`: the viewport
|
|
455
548
|
takes `tabIndex={0}` so keyboard users can scroll it; `viewportProps` reach the viewport (`tabIndex: -1` removes
|
|
456
|
-
the tab stop when the content has its own focusable elements).
|
|
549
|
+
the tab stop when the content has its own focusable elements). `scrollbars` (`"vertical"` by default,
|
|
550
|
+
`"horizontal"` or `"both"`) chooses the bars it draws.
|
|
457
551
|
- `sonner`: no `next-themes`; `theme` is a prop. Focus everywhere: `ring-2 ring-ring` instead of `ring-[3px]`.
|
|
458
552
|
|
|
459
553
|
A component the app needs beyond these: add it in this package (`npx shadcn@latest add <name>` in a scratch app,
|
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,11 @@ export { Code, CodeBlock, type CodeBlockProps } from "./notion/Code.js";
|
|
|
44
44
|
export { DetailTable, type DetailRow, type DetailTableProps } from "./notion/DetailTable.js";
|
|
45
45
|
export { FilterChip, FilterChipAdd, type FilterChipAddProps, type FilterChipProps } from "./notion/FilterChip.js";
|
|
46
46
|
export { FoldRow, type FoldRowBadge, type FoldRowProps } from "./notion/FoldRow.js";
|
|
47
|
+
export { InstallBar, type InstallBarOffer, type InstallBarProps } from "./notion/InstallBar.js";
|
|
48
|
+
export { LaunchScreen, type LaunchScreenProps } from "./notion/LaunchScreen.js";
|
|
47
49
|
export { PALETTE_COLORS, type PaletteColor } from "./notion/palette.js";
|
|
48
50
|
export { MarkPopover, type MarkPopoverProps } from "./notion/MarkPopover.js";
|
|
51
|
+
export { MiniProgress, type MiniProgressProps } from "./notion/MiniProgress.js";
|
|
49
52
|
export { PageFrame, type PageFrameProps } from "./notion/PageFrame.js";
|
|
50
53
|
export { PageHeader, type PageCrumb, type PageHeaderProps } from "./notion/PageHeader.js";
|
|
51
54
|
export { PropertyList, type Property, type PropertyListProps } from "./notion/PropertyList.js";
|
|
@@ -56,6 +59,7 @@ export { StatCards, StatPills, StatsFold, type StatCard, type StatCardAside, typ
|
|
|
56
59
|
export { Status, type StatusProps } from "./notion/Status.js";
|
|
57
60
|
export { Steps, type StepItem, type StepState, type StepsLayout, type StepsProps } from "./notion/Steps.js";
|
|
58
61
|
export { TabBar, type TabBarItem, type TabBarProps } from "./notion/TabBar.js";
|
|
59
|
-
export { Timeline, type TimelineItem, type TimelineItemSize, type TimelineLine, type TimelineProps } from "./notion/Timeline.js";
|
|
62
|
+
export { Timeline, type TimelineItem, type TimelineItemFold, type TimelineItemSize, type TimelineLine, type TimelineProps } from "./notion/Timeline.js";
|
|
63
|
+
export { UpdatePrompt, type UpdatePromptProps } from "./notion/UpdatePrompt.js";
|
|
60
64
|
export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT, type Tone } from "./notion/tones.js";
|
|
61
65
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,kBAAkB,CAAC;AACjC,cAAc,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B,CAAC;AAC9B,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,mBAAmB,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,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACxJ,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -46,8 +46,11 @@ export { Code, CodeBlock } from "./notion/Code.js";
|
|
|
46
46
|
export { DetailTable } from "./notion/DetailTable.js";
|
|
47
47
|
export { FilterChip, FilterChipAdd } from "./notion/FilterChip.js";
|
|
48
48
|
export { FoldRow } from "./notion/FoldRow.js";
|
|
49
|
+
export { InstallBar } from "./notion/InstallBar.js";
|
|
50
|
+
export { LaunchScreen } from "./notion/LaunchScreen.js";
|
|
49
51
|
export { PALETTE_COLORS } from "./notion/palette.js";
|
|
50
52
|
export { MarkPopover } from "./notion/MarkPopover.js";
|
|
53
|
+
export { MiniProgress } from "./notion/MiniProgress.js";
|
|
51
54
|
export { PageFrame } from "./notion/PageFrame.js";
|
|
52
55
|
export { PageHeader } from "./notion/PageHeader.js";
|
|
53
56
|
export { PropertyList } from "./notion/PropertyList.js";
|
|
@@ -59,5 +62,6 @@ export { Status } from "./notion/Status.js";
|
|
|
59
62
|
export { Steps } from "./notion/Steps.js";
|
|
60
63
|
export { TabBar } from "./notion/TabBar.js";
|
|
61
64
|
export { Timeline } from "./notion/Timeline.js";
|
|
65
|
+
export { UpdatePrompt } from "./notion/UpdatePrompt.js";
|
|
62
66
|
export { TONES, TONE_COLORS, TONE_EDGE, TONE_FILL, TONE_TEXT } from "./notion/tones.js";
|
|
63
67
|
//# 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,cA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cAAc,EACd,YAAY,EACZ,YAAY,GAQb,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,QAAQ,EAA0G,MAAM,sBAAsB,CAAC;AACxJ,OAAO,EAAE,YAAY,EAA0B,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,mBAAmB,CAAC"}
|
package/dist/notion/FoldRow.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export type FoldRowDetailsProps = {
|
|
|
34
34
|
export type FoldRowProps = FoldRowSummaryProps & FoldRowDetailsProps & {
|
|
35
35
|
/** Indents the opened content to line up with the title after the chevron; by default it is padded equally. */
|
|
36
36
|
readonly isInset?: boolean;
|
|
37
|
+
/** `touch` makes the summary at least the touch target high (44 px) instead of the row height. */
|
|
38
|
+
readonly size?: "default" | "touch";
|
|
37
39
|
/** More content under the table when opened. */
|
|
38
40
|
readonly children?: ReactNode;
|
|
39
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoldRow.d.ts","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FoldRow.d.ts","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EA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,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B,CAAC;AA4DJ,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BA+B1C"}
|
package/dist/notion/FoldRow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronRight } from "lucide-react";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
3
4
|
import { Badge } from "../ui/badge.js";
|
|
4
5
|
import { DetailTable } from "./DetailTable.js";
|
|
5
6
|
import { ICON_STROKE_WIDTH } from "./icon-stroke.js";
|
|
@@ -17,7 +18,7 @@ function FoldRowChevron() {
|
|
|
17
18
|
}
|
|
18
19
|
// An item as one folding list row: a native `<details>` that opens in place to its details, with no client state.
|
|
19
20
|
export function FoldRow(props) {
|
|
20
|
-
const { isInset = false, children } = props;
|
|
21
|
-
return (_jsxs("details", { "data-slot": "fold-row", className: "group/fold-row border-b border-border", children: [_jsx("summary", { "data-slot": "fold-row-summary", className: "flex
|
|
21
|
+
const { isInset = false, size = "default", children } = props;
|
|
22
|
+
return (_jsxs("details", { "data-slot": "fold-row", className: "group/fold-row border-b border-border", children: [_jsx("summary", { "data-slot": "fold-row-summary", className: cn("flex cursor-pointer list-none flex-wrap items-center gap-x-2 gap-y-1 rounded-md px-1 py-1 transition-colors duration-120 group-open/fold-row:bg-accent hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none [&::-webkit-details-marker]:hidden", size === "touch" ? "min-h-touch-target" : "min-h-row-height"), children: props.summary === undefined ? (_jsx(FoldRowFixedSummary, { title: props.title, facts: props.facts, badges: props.badges ?? [] })) : (_jsxs(_Fragment, { children: [_jsx(FoldRowChevron, {}), _jsx("span", { "data-slot": "fold-row-summary-slot", className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1", children: props.summary })] })) }), _jsxs("div", { "data-slot": "fold-row-content", "data-inset": isInset, className: isInset ? INSET_CONTENT_CLASS : CONTENT_CLASS, children: [props.details === undefined ? null : _jsx(DetailTable, { label: props.detailsLabel, rows: props.details }), children] })] }));
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=FoldRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoldRow.js","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAa,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"FoldRow.js","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAa,MAAM,YAAY,CAAC;AAiDpD,MAAM,aAAa,GAAG,sCAAsC,CAAC;AAC7D,MAAM,mBAAmB,GAAG,iDAAiD,CAAC;AAE9E,SAAS,mBAAmB,CAAC,EAC3B,KAAK,EACL,KAAK,GAAG,EAAE,EACV,MAAM,GAKP;IACC,OAAO,CACL,8BAEE,6BAAgB,kBAAkB,EAAC,SAAS,EAAC,iCAAiC,aAC5E,KAAC,cAAc,KAAG,EAClB,eAAM,SAAS,EAAC,wBAAwB,YAAE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C,CAC7B,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,GAAI,CAC5F,CAAC,CAAC,CAAC,CACF,8BACE,KAAC,cAAc,KAAG,EAClB,4BACY,uBAAuB,EACjC,SAAS,EAAC,4DAA4D,YAErE,KAAK,CAAC,OAAO,GACT,IACN,CACJ,GACO,EACV,4BAAe,kBAAkB,gBAAa,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,aAAa,aAC5G,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,GAAI,EACpG,QAAQ,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** The offer to show, as `useInstallOffer` in `@softure-ai/pwa/react` picks it. */
|
|
2
|
+
export type InstallBarOffer = "ios_steps" | "browser_prompt" | "none";
|
|
3
|
+
export interface InstallBarProps {
|
|
4
|
+
/** `offer` from `useInstallOffer`: the browser's prompt button, the iOS steps, or nothing. */
|
|
5
|
+
readonly offer: InstallBarOffer;
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly description: string;
|
|
8
|
+
/** The prompt button's text. */
|
|
9
|
+
readonly install: string;
|
|
10
|
+
/** The first iOS step, beside the Share icon. */
|
|
11
|
+
readonly shareStep: string;
|
|
12
|
+
/** The second iOS step, beside the Add to Home Screen icon. */
|
|
13
|
+
readonly addStep: string;
|
|
14
|
+
/** The close button's accessible name. */
|
|
15
|
+
readonly close: string;
|
|
16
|
+
/** The prompt button's action (`install` from `useInstallOffer`): the browser's install sheet. */
|
|
17
|
+
readonly onInstall: () => void;
|
|
18
|
+
/** The close button's action (`close` from `useInstallOffer`): the offer stays closed on this device. */
|
|
19
|
+
readonly onClose: () => void;
|
|
20
|
+
readonly className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function InstallBar({ offer, title, description, install, shareStep, addStep, close, onInstall, onClose, className }: InstallBarProps): import("react").JSX.Element | null;
|
|
23
|
+
//# sourceMappingURL=InstallBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstallBar.d.ts","sourceRoot":"","sources":["../../src/notion/InstallBar.tsx"],"names":[],"mappings":"AAQA,mFAAmF;AACnF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,eAAe;IAC9B,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,gCAAgC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,kGAAkG;IAClG,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,yGAAyG;IACzG,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAMD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,sCAuC3I"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Download, Share, SquarePlus, X } from "lucide-react";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { Alert, AlertDescription, AlertTitle } from "../ui/alert.js";
|
|
5
|
+
import { Button } from "../ui/button.js";
|
|
6
|
+
import { ICON_STROKE_WIDTH } from "./icon-stroke.js";
|
|
7
|
+
// The offer to install the app on a phone: a floating alert at the bottom of the screen, inside the safe-area insets
|
|
8
|
+
// like UpdatePrompt, with the browser's install button or the two iOS steps (Share, then Add to Home Screen) and a
|
|
9
|
+
// close button, both at the touch size on a phone. A polite status: it never interrupts a screen reader. The copy is
|
|
10
|
+
// the app's (`pwaMessages.en.install` in `@softure-ai/pwa` has the English text, keyed like these props).
|
|
11
|
+
export function InstallBar({ offer, title, description, install, shareStep, addStep, close, onInstall, onClose, className }) {
|
|
12
|
+
if (offer === "none")
|
|
13
|
+
return null;
|
|
14
|
+
return (_jsx("div", { "data-slot": "install-bar", "data-offer": offer, className: cn("pointer-events-none fixed inset-x-0 bottom-0 z-50 flex justify-center pt-4 pr-[calc(--spacing(4)+env(safe-area-inset-right))] pb-[calc(--spacing(4)+env(safe-area-inset-bottom))] pl-[calc(--spacing(4)+env(safe-area-inset-left))]", className), children: _jsxs(Alert, { role: "status", "aria-live": "polite", className: "pointer-events-auto max-w-md pr-14 shadow-menu md:pr-11", children: [_jsx(Download, { strokeWidth: ICON_STROKE_WIDTH }), _jsx(AlertTitle, { children: title }), _jsxs(AlertDescription, { children: [_jsx("p", { children: description }), offer === "browser_prompt" ? (_jsx(Button, { size: "touch", className: "mt-1 md:h-7", onClick: onInstall, children: install })) : (_jsxs("ol", { "data-slot": "install-bar-steps", className: "mt-1 grid gap-1.5 text-foreground", children: [_jsxs("li", { className: "flex items-center gap-2", children: [_jsx(Share, { "aria-hidden": "true", className: "size-4 shrink-0", strokeWidth: ICON_STROKE_WIDTH }), shareStep] }), _jsxs("li", { className: "flex items-center gap-2", children: [_jsx(SquarePlus, { "aria-hidden": "true", className: "size-4 shrink-0", strokeWidth: ICON_STROKE_WIDTH }), addStep] })] }))] }), _jsx(Button, { type: "button", variant: "ghost", size: "icon-touch", "aria-label": close, className: "absolute top-0 right-0 md:top-1 md:right-1 md:size-7", onClick: onClose, children: _jsx(X, { "aria-hidden": "true", strokeWidth: ICON_STROKE_WIDTH }) })] }) }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=InstallBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstallBar.js","sourceRoot":"","sources":["../../src/notion/InstallBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAyBrD,qHAAqH;AACrH,mHAAmH;AACnH,qHAAqH;AACrH,0GAA0G;AAC1G,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAmB;IAC1I,IAAI,KAAK,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAClC,OAAO,CACL,2BACY,aAAa,gBACX,KAAK,EACjB,SAAS,EAAE,EAAE,CACX,qOAAqO,EACrO,SAAS,CACV,YAED,MAAC,KAAK,IAAC,IAAI,EAAC,QAAQ,eAAW,QAAQ,EAAC,SAAS,EAAC,yDAAyD,aACzG,KAAC,QAAQ,IAAC,WAAW,EAAE,iBAAiB,GAAI,EAC5C,KAAC,UAAU,cAAE,KAAK,GAAc,EAChC,MAAC,gBAAgB,eACf,sBAAI,WAAW,GAAK,EACnB,KAAK,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAC5B,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAE,SAAS,YAC5D,OAAO,GACD,CACV,CAAC,CAAC,CAAC,CACF,2BAAc,mBAAmB,EAAC,SAAS,EAAC,mCAAmC,aAC7E,cAAI,SAAS,EAAC,yBAAyB,aACrC,KAAC,KAAK,mBAAa,MAAM,EAAC,SAAS,EAAC,iBAAiB,EAAC,WAAW,EAAE,iBAAiB,GAAI,EACvF,SAAS,IACP,EACL,cAAI,SAAS,EAAC,yBAAyB,aACrC,KAAC,UAAU,mBAAa,MAAM,EAAC,SAAS,EAAC,iBAAiB,EAAC,WAAW,EAAE,iBAAiB,GAAI,EAC5F,OAAO,IACL,IACF,CACN,IACgB,EACnB,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,YAAY,gBAAa,KAAK,EAAE,SAAS,EAAC,sDAAsD,EAAC,OAAO,EAAE,OAAO,YAC1J,KAAC,CAAC,mBAAa,MAAM,EAAC,WAAW,EAAE,iBAAiB,GAAI,GACjD,IACH,GACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface LaunchScreenProps {
|
|
2
|
+
/** The app's name, shown under its icon. */
|
|
3
|
+
readonly name: string;
|
|
4
|
+
/** The app's icon, e.g. `${ICONS_PATH}/icon-192.png` from `@softure-ai/pwa`: the manifest's mark. */
|
|
5
|
+
readonly iconSrc: string;
|
|
6
|
+
/** The progress bar's accessible name (`pwaMessages.en.launch.label` in `@softure-ai/pwa`). */
|
|
7
|
+
readonly label: string;
|
|
8
|
+
/** The counter's inline script (`buildLaunchProgressScript()` from `@softure-ai/pwa`); without it the bar stays at 0. */
|
|
9
|
+
readonly script?: string;
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function LaunchScreen({ name, iconSrc, label, script, className }: LaunchScreenProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LaunchScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreen.d.ts","sourceRoot":"","sources":["../../src/notion/LaunchScreen.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yHAAyH;IACzH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAMD,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAiB1F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { Progress } from "../ui/progress.js";
|
|
4
|
+
// The screen an installed app shows from its first byte until the page arrives, streamed from `app/loading.tsx`: the
|
|
5
|
+
// app's icon and name, a progress bar and a percentage on the theme's background, full screen in light and dark. The
|
|
6
|
+
// counter script moves the bar, its indicator and the percentage through their `data-slot`s; the percentage is
|
|
7
|
+
// hidden from screen readers (the bar reports the value) and keeps the script's text if React hydrates the screen.
|
|
8
|
+
export function LaunchScreen({ name, iconSrc, label, script, className }) {
|
|
9
|
+
return (_jsxs("div", { "data-slot": "launch-screen", className: cn("fixed inset-0 z-50 flex flex-col items-center justify-center gap-4 bg-background p-6 text-foreground", className), children: [_jsx("img", { "data-slot": "launch-screen-icon", src: iconSrc, alt: "", width: 64, height: 64, className: "size-16 rounded-2xl" }), _jsx("p", { "data-slot": "launch-screen-name", className: "text-lg font-semibold", children: name }), _jsx(Progress, { value: 0, "aria-label": label, className: "w-48" }), _jsx("p", { "data-slot": "launch-screen-percent", "aria-hidden": "true", suppressHydrationWarning: true, className: "text-sm text-muted-foreground tabular-nums", children: "0%" }), script === undefined ? null : _jsx("script", { dangerouslySetInnerHTML: { __html: script } })] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=LaunchScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreen.js","sourceRoot":"","sources":["../../src/notion/LaunchScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAc7C,qHAAqH;AACrH,qHAAqH;AACrH,+GAA+G;AAC/G,mHAAmH;AACnH,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAqB;IACzF,OAAO,CACL,4BACY,eAAe,EACzB,SAAS,EAAE,EAAE,CAAC,sGAAsG,EAAE,SAAS,CAAC,aAEhI,2BAAe,oBAAoB,EAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAC,qBAAqB,GAAG,EAClH,yBAAa,oBAAoB,EAAC,SAAS,EAAC,uBAAuB,YAChE,IAAI,GACH,EACJ,KAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,gBAAc,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,EAC1D,yBAAa,uBAAuB,iBAAa,MAAM,EAAC,wBAAwB,QAAC,SAAS,EAAC,4CAA4C,mBAEnI,EACH,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAQ,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,IAClF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import { type Tone } from "./tones.js";
|
|
4
|
+
export type MiniProgressProps = Omit<ComponentProps<typeof ProgressPrimitive.Root>, "children" | "max" | "value"> & {
|
|
5
|
+
/** 0–100, clamped; non-finite values read as 0. */
|
|
6
|
+
readonly value: number;
|
|
7
|
+
/** Text inside the bar, e.g. a formatted amount; defaults to the rounded percent. */
|
|
8
|
+
readonly label?: ReactNode;
|
|
9
|
+
/** Fill colour by meaning (the theme's tones); defaults to primary. */
|
|
10
|
+
readonly tone?: Tone;
|
|
11
|
+
};
|
|
12
|
+
export declare function MiniProgress({ value, label, tone, className, ...props }: MiniProgressProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=MiniProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniProgress.d.ts","sourceRoot":"","sources":["../../src/notion/MiniProgress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAa,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC,GAAG;IAClH,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;CACtB,CAAC;AAcF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAoC1F"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { TONE_FILL } from "./tones.js";
|
|
6
|
+
function clampShare(value) {
|
|
7
|
+
if (!Number.isFinite(value))
|
|
8
|
+
return 0;
|
|
9
|
+
return Math.min(100, Math.max(0, value));
|
|
10
|
+
}
|
|
11
|
+
const LABEL_CLASS = "absolute inset-0 flex items-center px-2 text-xs font-medium tabular-nums whitespace-nowrap";
|
|
12
|
+
// A share with its figure inside the bar, for a table cell or a tile: a 20 px track that takes the cell's width and
|
|
13
|
+
// carries the label, so a figure and a bar never collide in a narrow column. The label is drawn twice: in the text
|
|
14
|
+
// colour on the track, and in the page background clipped to the fill, so it reads at any value, also where the
|
|
15
|
+
// fill's edge crosses a letter. Both copies are hidden: the progress bar itself reports the value (and a string label
|
|
16
|
+
// as its value text). A label wider than the cell ends in an ellipsis.
|
|
17
|
+
export function MiniProgress({ value, label, tone, className, ...props }) {
|
|
18
|
+
const share = clampShare(value);
|
|
19
|
+
const text = label ?? `${Math.round(share)}%`;
|
|
20
|
+
return (_jsxs(ProgressPrimitive.Root, { "data-slot": "mini-progress", "data-tone": tone ?? "default", value: share, max: 100, getValueLabel: typeof text === "string" ? () => text : undefined, className: cn("relative h-5 w-full min-w-16 overflow-hidden rounded-sm bg-primary/12", className), ...props, children: [_jsx(ProgressPrimitive.Indicator, { "data-slot": "mini-progress-indicator", className: cn("absolute inset-y-0 left-0 transition-[width]",
|
|
21
|
+
// In dark the default fill is the lighter link blue, as in `Progress`.
|
|
22
|
+
tone === undefined ? "bg-primary dark:bg-link" : TONE_FILL[tone]), style: { width: `${share}%` } }), _jsx("span", { "aria-hidden": "true", "data-slot": "mini-progress-label", className: cn(LABEL_CLASS, "text-foreground"), children: _jsx("span", { className: "truncate", children: text }) }), _jsx("span", { "aria-hidden": "true", "data-slot": "mini-progress-label", className: cn(LABEL_CLASS, "text-background"), style: { clipPath: `inset(0 ${100 - share}% 0 0)` }, children: _jsx("span", { className: "truncate", children: text }) })] }));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=MiniProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniProgress.js","sourceRoot":"","sources":["../../src/notion/MiniProgress.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGzD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAWlD,SAAS,UAAU,CAAC,KAAa;IAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,WAAW,GAAG,4FAA4F,CAAC;AAEjH,oHAAoH;AACpH,mHAAmH;AACnH,gHAAgH;AAChH,sHAAsH;AACtH,uEAAuE;AACvE,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqB;IACzF,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,KAAK,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;IAC9C,OAAO,CACL,MAAC,iBAAiB,CAAC,IAAI,iBACX,eAAe,eACd,IAAI,IAAI,SAAS,EAC5B,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAChE,SAAS,EAAE,EAAE,CAAC,uEAAuE,EAAE,SAAS,CAAC,KAC7F,KAAK,aAET,KAAC,iBAAiB,CAAC,SAAS,iBAChB,yBAAyB,EACnC,SAAS,EAAE,EAAE,CACX,8CAA8C;gBAC9C,uEAAuE;gBACvE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CACjE,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,GAC7B,EACF,8BAAkB,MAAM,eAAW,qBAAqB,EAAC,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,YACpG,eAAM,SAAS,EAAC,UAAU,YAAE,IAAI,GAAQ,GACnC,EAEP,8BACc,MAAM,eACR,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,EAC7C,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,GAAG,GAAG,KAAK,QAAQ,EAAE,YAEnD,eAAM,SAAS,EAAC,UAAU,YAAE,IAAI,GAAQ,GACnC,IACgB,CAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { PaletteColor } from "./palette.js";
|
|
4
4
|
export type TimelineItemSize = "default" | "compact";
|
|
5
5
|
export type TimelineLine = "solid" | "dashed";
|
|
6
|
-
export interface
|
|
6
|
+
export interface TimelineItemFold {
|
|
7
|
+
readonly isOpen?: boolean;
|
|
8
|
+
readonly isOpenInitially?: boolean;
|
|
9
|
+
readonly onOpenChange?: (isOpen: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
interface TimelineItemBase {
|
|
7
12
|
readonly key: string;
|
|
8
13
|
readonly title: ReactNode;
|
|
9
14
|
readonly time?: ReactNode;
|
|
@@ -15,14 +20,21 @@ export interface TimelineItem {
|
|
|
15
20
|
readonly color?: PaletteColor;
|
|
16
21
|
readonly size?: TimelineItemSize;
|
|
17
22
|
readonly line?: TimelineLine;
|
|
18
|
-
readonly onSelect?: () => void;
|
|
19
23
|
readonly actionLabel?: string;
|
|
20
24
|
readonly data?: Readonly<Record<`data-${string}`, string | undefined>>;
|
|
21
25
|
}
|
|
26
|
+
export type TimelineItem = TimelineItemBase & ({
|
|
27
|
+
readonly onSelect?: () => void;
|
|
28
|
+
readonly fold?: never;
|
|
29
|
+
} | {
|
|
30
|
+
readonly fold: TimelineItemFold;
|
|
31
|
+
readonly onSelect?: never;
|
|
32
|
+
});
|
|
22
33
|
export interface TimelineProps {
|
|
23
34
|
readonly label: string;
|
|
24
35
|
readonly items: readonly TimelineItem[];
|
|
25
36
|
readonly className?: string;
|
|
26
37
|
}
|
|
27
38
|
export declare function Timeline({ label, items, className }: TimelineProps): import("react").JSX.Element;
|
|
39
|
+
export {};
|
|
28
40
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/notion/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/notion/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,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