@justanarthur/modo-ui-notch 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +11 -11
  2. package/blocks/activities/agenda/examples.mdx +29 -5
  3. package/blocks/activities/agenda/index.tsx +438 -181
  4. package/blocks/activities/clock/examples.mdx +89 -0
  5. package/blocks/activities/clock/index.tsx +917 -0
  6. package/blocks/activities/now-playing/examples.mdx +40 -13
  7. package/blocks/activities/now-playing/index.tsx +399 -120
  8. package/blocks/activities/weather/examples.mdx +123 -0
  9. package/blocks/activities/weather/index.tsx +863 -0
  10. package/blocks/app/expanded-island/examples.mdx +8 -7
  11. package/blocks/app/expanded-island/index.tsx +22 -4
  12. package/blocks/app/settings-window/examples.mdx +14 -2
  13. package/blocks/app/settings-window/index.tsx +33 -10
  14. package/blocks/system/clipboard/examples.mdx +91 -0
  15. package/blocks/system/clipboard/index.tsx +773 -0
  16. package/blocks/system/recent-files/examples.mdx +80 -0
  17. package/blocks/system/recent-files/index.tsx +627 -0
  18. package/blocks/system/system-stats/examples.mdx +46 -9
  19. package/blocks/system/system-stats/index.tsx +445 -104
  20. package/components/indicators/media-scrubber/examples.mdx +8 -0
  21. package/components/indicators/media-scrubber/index.tsx +37 -13
  22. package/components/island/island/examples.mdx +4 -4
  23. package/components/island/island/index.tsx +2 -2
  24. package/components/island/island-flash/examples.mdx +15 -18
  25. package/components/island/island-flash/index.tsx +4 -4
  26. package/components/island/island-tabs/examples.mdx +5 -5
  27. package/components/island/widget/examples.mdx +76 -0
  28. package/components/island/widget/index.tsx +465 -0
  29. package/dist/blocks/activities/agenda/index.d.ts +2 -1
  30. package/dist/blocks/activities/agenda/index.js +3 -3
  31. package/dist/blocks/activities/clock/index.d.ts +3 -0
  32. package/dist/blocks/activities/clock/index.js +25 -0
  33. package/dist/blocks/activities/now-playing/index.d.ts +4 -2
  34. package/dist/blocks/activities/now-playing/index.js +5 -3
  35. package/dist/blocks/activities/weather/index.d.ts +3 -0
  36. package/dist/blocks/activities/weather/index.js +21 -0
  37. package/dist/blocks/app/expanded-island/index.d.ts +1 -1
  38. package/dist/blocks/app/expanded-island/index.js +4 -3
  39. package/dist/blocks/app/settings-window/index.d.ts +1 -1
  40. package/dist/blocks/app/settings-window/index.js +1 -1
  41. package/dist/blocks/system/clipboard/index.d.ts +3 -0
  42. package/dist/blocks/system/clipboard/index.js +17 -0
  43. package/dist/blocks/system/recent-files/index.d.ts +3 -0
  44. package/dist/blocks/system/recent-files/index.js +19 -0
  45. package/dist/blocks/system/system-stats/index.d.ts +3 -2
  46. package/dist/blocks/system/system-stats/index.js +4 -1
  47. package/dist/components/indicators/media-scrubber/index.d.ts +1 -1
  48. package/dist/components/indicators/media-scrubber/index.js +1 -1
  49. package/dist/components/island/island/index.d.ts +1 -1
  50. package/dist/components/island/island/index.js +2 -2
  51. package/dist/components/island/island-flash/index.d.ts +1 -1
  52. package/dist/components/island/island-flash/index.js +1 -1
  53. package/dist/components/island/island-tabs/index.js +2 -2
  54. package/dist/components/island/widget/index.d.ts +2 -0
  55. package/dist/components/island/widget/index.js +32 -0
  56. package/dist/index.d.ts +15 -15
  57. package/dist/index.js +104 -58
  58. package/dist/lib/artwork.d.ts +2 -0
  59. package/dist/lib/artwork.js +8 -0
  60. package/dist/lib/geometry.js +1 -1
  61. package/dist/shared/{chunk-yngkkxz2.d.ts → chunk-0ym9mcqc.d.ts} +10 -6
  62. package/dist/shared/chunk-2b6gpn8k.js +444 -0
  63. package/dist/shared/chunk-3hcnf4yx.js +481 -0
  64. package/dist/shared/chunk-42wab62s.d.ts +197 -0
  65. package/dist/shared/{chunk-zvh0d3qb.js → chunk-61t2dfte.js} +1 -1
  66. package/dist/shared/{chunk-9nhpg9t8.d.ts → chunk-6tnq6p89.d.ts} +9 -1
  67. package/dist/shared/{chunk-hpsabfsd.d.ts → chunk-81fpptwp.d.ts} +1 -1
  68. package/dist/shared/chunk-93dtpjz7.js +789 -0
  69. package/dist/shared/{chunk-wwjxs75m.js → chunk-9xtcv3sy.js} +26 -12
  70. package/dist/shared/chunk-a6njb8db.d.ts +129 -0
  71. package/dist/shared/chunk-ab8mdg0n.d.ts +149 -0
  72. package/dist/shared/chunk-evqpf92s.d.ts +168 -0
  73. package/dist/shared/{chunk-6c1jbefs.d.ts → chunk-fexwzycv.d.ts} +3 -3
  74. package/dist/shared/chunk-gcyspvgr.js +582 -0
  75. package/dist/shared/chunk-gejenfap.d.ts +25 -0
  76. package/dist/shared/chunk-gkj0hjrn.d.ts +136 -0
  77. package/dist/shared/{chunk-rr5e0g15.d.ts → chunk-j755a1a5.d.ts} +7 -1
  78. package/dist/shared/chunk-n739am8j.d.ts +112 -0
  79. package/dist/shared/{chunk-78w7qwp0.js → chunk-ndf79pv5.js} +1 -1
  80. package/dist/shared/chunk-nwzpekvy.js +774 -0
  81. package/dist/shared/{chunk-rpfwv3pz.js → chunk-r471sknr.js} +1 -1
  82. package/dist/shared/chunk-sbrtesdg.d.ts +138 -0
  83. package/dist/shared/chunk-swc7dqpw.d.ts +115 -0
  84. package/dist/shared/chunk-t9wqhgzt.js +765 -0
  85. package/dist/shared/chunk-w5h6ay93.js +72 -0
  86. package/dist/shared/{chunk-mp1nx0ez.js → chunk-wayv5rhr.js} +15 -4
  87. package/dist/shared/chunk-wf0jtzhs.js +295 -0
  88. package/dist/shared/{chunk-sbnrhy5m.js → chunk-y0188bbn.js} +2 -2
  89. package/dist/shared/chunk-yq5svpk7.js +524 -0
  90. package/dist/shared/{chunk-s33y1pcq.js → chunk-z3tj1ydg.js} +23 -10
  91. package/dist/styles.css +151 -49
  92. package/index.ts +7 -6
  93. package/lib/artwork.ts +112 -0
  94. package/lib/geometry.ts +1 -1
  95. package/mock/activities.tsx +9 -32
  96. package/mock/artwork.tsx +13 -1
  97. package/mock/clipboard.tsx +113 -0
  98. package/mock/clock.tsx +77 -0
  99. package/mock/data.ts +78 -44
  100. package/mock/files.tsx +83 -0
  101. package/mock/island-content.tsx +79 -122
  102. package/mock/screen.tsx +76 -0
  103. package/mock/settings.tsx +370 -91
  104. package/mock/system.ts +49 -0
  105. package/mock/weather.tsx +135 -0
  106. package/package.json +7 -2
  107. package/blocks/activities/shelf/examples.mdx +0 -33
  108. package/blocks/activities/shelf/index.tsx +0 -289
  109. package/blocks/activities/timer/examples.mdx +0 -52
  110. package/blocks/activities/timer/index.tsx +0 -292
  111. package/blocks/system/controls/examples.mdx +0 -34
  112. package/blocks/system/controls/index.tsx +0 -167
  113. package/blocks/system/devices/examples.mdx +0 -25
  114. package/blocks/system/devices/index.tsx +0 -172
  115. package/blocks/system/power-alert/examples.mdx +0 -32
  116. package/blocks/system/power-alert/index.tsx +0 -89
  117. package/components/indicators/battery-glyph/examples.mdx +0 -22
  118. package/components/indicators/battery-glyph/index.tsx +0 -91
  119. package/dist/blocks/activities/shelf/index.d.ts +0 -2
  120. package/dist/blocks/activities/shelf/index.js +0 -14
  121. package/dist/blocks/activities/timer/index.d.ts +0 -2
  122. package/dist/blocks/activities/timer/index.js +0 -19
  123. package/dist/blocks/system/controls/index.d.ts +0 -2
  124. package/dist/blocks/system/controls/index.js +0 -10
  125. package/dist/blocks/system/devices/index.d.ts +0 -2
  126. package/dist/blocks/system/devices/index.js +0 -12
  127. package/dist/blocks/system/power-alert/index.d.ts +0 -2
  128. package/dist/blocks/system/power-alert/index.js +0 -9
  129. package/dist/components/indicators/battery-glyph/index.d.ts +0 -2
  130. package/dist/components/indicators/battery-glyph/index.js +0 -9
  131. package/dist/shared/chunk-2qpcsv5h.d.ts +0 -45
  132. package/dist/shared/chunk-45gytfr1.d.ts +0 -84
  133. package/dist/shared/chunk-50ffk4r7.d.ts +0 -69
  134. package/dist/shared/chunk-5w0yck07.d.ts +0 -32
  135. package/dist/shared/chunk-7hr53mby.js +0 -116
  136. package/dist/shared/chunk-b8jb1w72.js +0 -145
  137. package/dist/shared/chunk-cpewy6yg.js +0 -178
  138. package/dist/shared/chunk-e3e4s4ds.d.ts +0 -77
  139. package/dist/shared/chunk-enm6td0p.js +0 -280
  140. package/dist/shared/chunk-fvedaas2.d.ts +0 -33
  141. package/dist/shared/chunk-gex38j8x.d.ts +0 -82
  142. package/dist/shared/chunk-hwtxpzg0.js +0 -69
  143. package/dist/shared/chunk-phb53x1f.js +0 -252
  144. package/dist/shared/chunk-r8esmjfs.d.ts +0 -42
  145. package/dist/shared/chunk-rcp1g9ca.js +0 -70
  146. package/dist/shared/chunk-rx9sphz2.js +0 -266
  147. package/dist/shared/chunk-xdeek16r.d.ts +0 -58
  148. package/dist/shared/chunk-xkzjk1tq.js +0 -206
@@ -0,0 +1,136 @@
1
+ import { WidgetLayout2 } from "./chunk-42wab62s.js";
2
+ import { SizeVariant } from "@justanarthur/modo-ui/lib/size-context";
3
+ import { DragEvent, ReactNode } from "react";
4
+ import { JSX as JSX_1kxb } from "react";
5
+ type RecentFilesSource2 = "downloads" | "screenshots";
6
+ interface RecentFile2 {
7
+ /** What tells it apart: its path. */
8
+ id: string;
9
+ /** Its name, with the extension: it picks the glyph when there is no thumbnail. */
10
+ name: string;
11
+ /** Its size, in bytes. */
12
+ size: number;
13
+ /** When it landed, in epoch ms. */
14
+ addedAt: number;
15
+ /** The folder it is in. */
16
+ source: RecentFilesSource2;
17
+ /** A preview: an image URL, or any element. */
18
+ thumbnail?: string | ReactNode;
19
+ /** Where a download came from: a site's domain. */
20
+ from?: string;
21
+ }
22
+ interface RecentDownload2 {
23
+ /** What tells it apart. */
24
+ id: string;
25
+ /** The file's name. */
26
+ name: string;
27
+ /** Bytes in so far. */
28
+ received: number;
29
+ /** The file's size, in bytes. */
30
+ total: number;
31
+ /** The current speed, in bytes per second. */
32
+ rate: number;
33
+ /** Where it comes from: a site's domain. */
34
+ from?: string;
35
+ }
36
+ interface RecentFilesProps2 {
37
+ /** The files of both folders, in any order: each folder lists newest first. */
38
+ files: RecentFile2[];
39
+ /** A download under way: it takes the hero on Downloads, with its progress and speed. */
40
+ download?: RecentDownload2 | null;
41
+ /** The folder shown (controlled). */
42
+ value?: RecentFilesSource2;
43
+ /** The folder shown at first (uncontrolled). Defaults to `'downloads'`. */
44
+ defaultValue?: RecentFilesSource2;
45
+ /** Called with the folder when the switch is pressed. */
46
+ onValueChange?: (source: RecentFilesSource2) => void;
47
+ /** Called by Open, or a press on a file in the list. */
48
+ onOpen?: (file: RecentFile2) => void;
49
+ /** Called by Show in Finder. */
50
+ onReveal?: (file: RecentFile2) => void;
51
+ /** Called by Copy, to put the file on the clipboard. */
52
+ onCopy?: (file: RecentFile2) => void;
53
+ /** Called when a file starts to be dragged out, with the drag event, for the host to start a native drag. Without it nothing drags. */
54
+ onDragStart?: (file: RecentFile2, event: DragEvent) => void;
55
+ /** Called by Move to Trash. */
56
+ onDelete?: (file: RecentFile2) => void;
57
+ /** Called by Clear with the folder whose list to clear; without it the button hides. */
58
+ onClear?: (source: RecentFilesSource2) => void;
59
+ /** Called by the download's Cancel. */
60
+ onCancelDownload?: (download: RecentDownload2) => void;
61
+ /** The moment the times are read at, in epoch ms. Defaults to now, re-read on each minute. */
62
+ now?: number;
63
+ /** `tall` is the open island's tall snap: the switch across the top, the newest file large with its actions, and every earlier file of the folder as a grid of named tiles. Defaults to `'fit'`. */
64
+ layout?: WidgetLayout2;
65
+ /** Step on the size ladder. Omitted, it follows the surrounding SizeProvider. */
66
+ size?: SizeVariant;
67
+ /** Classes for the root, which fills its container. */
68
+ className?: string;
69
+ }
70
+ type Element_12xgc = JSX_1kxb["Element"];
71
+ /** The compact island's left wing: the download glyph, or the camera for a screenshot. */
72
+ declare function RecentFilesLeading2({ source }: {
73
+ source?: RecentFilesSource2;
74
+ }): Element_12xgc;
75
+ interface TrailingProps {
76
+ /** A download under way: its progress shows. */
77
+ download?: RecentDownload2 | null;
78
+ /** Otherwise, how many files came in since the island was open. */
79
+ count?: number;
80
+ }
81
+ /** The compact island's right wing: a download's progress, else the count of new files. */
82
+ declare function RecentFilesTrailing2({ download, count }: TrailingProps): Element_12xgc;
83
+ /** The split island's bubble: a download's progress as a ring. */
84
+ declare function RecentFilesMinimal2({ download }: {
85
+ download: RecentDownload2;
86
+ }): Element_12xgc;
87
+ interface SavedProps {
88
+ /** The file that landed. */
89
+ file: RecentFile2;
90
+ /** Called by Open; without it the button hides. */
91
+ onOpen?: (file: RecentFile2) => void;
92
+ }
93
+ /** The island's flash when a file lands: its thumbnail or glyph, `Downloaded` or `Screenshot saved`, and Open. */
94
+ declare function RecentFilesSaved2({ file, onOpen }: SavedProps): Element_12xgc;
95
+ /**
96
+ * A notch app's recent files: the newest download or screenshot as the
97
+ * hero, the ones before it beside it, ready to open or drag out.
98
+ *
99
+ * The hero is the folder's newest file: its thumbnail, or its type's
100
+ * glyph on a tile, then its name, its size, how long ago it landed and
101
+ * where it came from, with Show in Finder, Copy, Move to Trash and Open.
102
+ * Beside it, past a hairline, a switch picks the folder, Downloads or
103
+ * Screenshots (`value` / `defaultValue` / `onValueChange`), over the ones
104
+ * before the newest: downloads as rows of age, glyph, name and size, and
105
+ * screenshots as a grid of image tiles, since a screenshot is found by
106
+ * its look. A press opens a file, and with `onDragStart` every picture and
107
+ * row drags out (the host starts the native drag); Clear empties the list.
108
+ *
109
+ * While a download is under way (`download`) it takes the hero on
110
+ * Downloads: its name, the progress as a modo-ui Meter line, how much is
111
+ * in, the speed and the time left, and Cancel. An empty folder says what
112
+ * will land in it, the switch still beside it.
113
+ *
114
+ * At the open island's tall snap (`layout="tall"`) it becomes a sheet:
115
+ * the switch and Clear across the top; the newest file (or the download
116
+ * under way) large beside its name, its facts and its actions; then every
117
+ * earlier file of the folder, not three, as a grid five across, each tile
118
+ * its thumbnail or its type's glyph over its name, its size and how long
119
+ * ago it landed. Downloads and screenshots read alike there, since a tile
120
+ * has room for both the look and the name; the grid scrolls with the
121
+ * island, and every tile opens on a press and drags out like the rows.
122
+ *
123
+ * `RecentFiles.Leading` and `RecentFiles.Trailing` show the glyph and the
124
+ * download's progress (or the count of new files) in the compact island's
125
+ * wings, `RecentFiles.Minimal` the progress as a ring in the split
126
+ * island's bubble, and `RecentFiles.Saved` is the flash when a file lands.
127
+ *
128
+ * @example {@include ./examples.mdx}
129
+ */
130
+ declare const RecentFiles2: ((props: RecentFilesProps2) => Element_12xgc) & {
131
+ Leading: typeof RecentFilesLeading2;
132
+ Trailing: typeof RecentFilesTrailing2;
133
+ Minimal: typeof RecentFilesMinimal2;
134
+ Saved: typeof RecentFilesSaved2;
135
+ };
136
+ export { RecentFilesSource2, RecentFile2, RecentDownload2, RecentFilesProps2, RecentFilesLeading2, RecentFilesTrailing2, RecentFilesMinimal2, RecentFilesSaved2, RecentFiles2 };
@@ -15,6 +15,8 @@ interface MediaScrubberProps2 {
15
15
  label?: string;
16
16
  /** No seeking. Defaults to `false`. */
17
17
  disabled?: boolean;
18
+ /** At rest a thin line of progress; the scrubber fades in on hover and focus, and always shows on touch. Defaults to `false`. */
19
+ quiet?: boolean;
18
20
  /** Classes for the row. */
19
21
  className?: string;
20
22
  }
@@ -29,7 +31,11 @@ type Element_12xgc = JSX_1kxb["Element"];
29
31
  * press ends, and playback runs on from the seek until the player reports
30
32
  * its next `position`, so the thumb never jumps back to the stale one.
31
33
  *
34
+ * `quiet` is the player's form: at rest a thin line of progress, so the
35
+ * track reads before the control; the scrubber fades in on hover or focus,
36
+ * and always shows on touch.
37
+ *
32
38
  * @example {@include ./examples.mdx}
33
39
  */
34
- declare function MediaScrubber2({ position, duration, playing, onSeek, size, label, disabled, className }: MediaScrubberProps2): Element_12xgc;
40
+ declare function MediaScrubber2({ position, duration, playing, onSeek, size, label, disabled, quiet, className }: MediaScrubberProps2): Element_12xgc;
35
41
  export { MediaScrubberProps2, MediaScrubber2 };
@@ -0,0 +1,112 @@
1
+ import { WidgetLayout2 } from "./chunk-42wab62s.js";
2
+ import { JSX as JSX_1kxb } from "react";
3
+ type AgendaAccess2 = "granted" | "undetermined" | "denied";
4
+ interface AgendaEvent2 {
5
+ id: string;
6
+ title: string;
7
+ /** When it starts, in epoch ms. */
8
+ start: number;
9
+ /** When it ends, in epoch ms. */
10
+ end: number;
11
+ allDay?: boolean;
12
+ location?: string;
13
+ /** A video call's link: the event gets a Join button. */
14
+ meetingUrl?: string;
15
+ /** Its calendar's color, any CSS color: data, so it paints the dot, the mark and the ring inline. */
16
+ color: string;
17
+ }
18
+ interface AgendaProps2 {
19
+ /** The events, in any order. */
20
+ events: AgendaEvent2[];
21
+ /** Whether the calendar may be read: undetermined asks, denied points to the system's settings. Defaults to `'granted'`. */
22
+ access?: AgendaAccess2;
23
+ /** The moment the agenda is read at, in epoch ms. Defaults to now, re-read on each minute. */
24
+ now?: number;
25
+ /** Formats the times and the date. Defaults to the browser's locale. */
26
+ locale?: Intl.LocalesArgument;
27
+ /** Tomorrow's events are unfolded (controlled); folded, only its first shows. */
28
+ tomorrowOpen?: boolean;
29
+ /** Tomorrow's events are unfolded at first (uncontrolled). Defaults to `false`. */
30
+ defaultTomorrowOpen?: boolean;
31
+ /** Called with the new state when tomorrow's fold is pressed. */
32
+ onTomorrowOpenChange?: (open: boolean) => void;
33
+ /** Called by Connect calendar while access is undetermined. */
34
+ onRequestAccess?: () => void;
35
+ /** Called by Open System Settings while access is denied. */
36
+ onOpenSettings?: () => void;
37
+ /** Called by the next event's Join button, and at the tall snap by every call's. */
38
+ onJoin?: (event: AgendaEvent2) => void;
39
+ /** `tall` is the open island's tall snap: the next event as the hero, then today and tomorrow listed in full, each event with its times, place or call and Join, then the rest of the week by day. Defaults to `'fit'`. */
40
+ layout?: WidgetLayout2;
41
+ /** Classes for the root, which fills its container. */
42
+ className?: string;
43
+ }
44
+ interface PartProps {
45
+ /** The event the activity counts down to. */
46
+ event: AgendaEvent2;
47
+ }
48
+ type Element_12xgc = JSX_1kxb["Element"];
49
+ /** The compact island's left wing: the calendar glyph in the event's color. */
50
+ declare function AgendaLeading2({ event }: PartProps): Element_12xgc;
51
+ /** The compact island's right wing: the event's color dot and the time until it starts, `12m` then `45s`. */
52
+ declare function AgendaTrailing2({ event }: PartProps): Element_12xgc;
53
+ interface MinimalProps extends PartProps {
54
+ /** How long before the start the countdown opens, in ms: the full ring. Defaults to 10 minutes. */
55
+ lead?: number;
56
+ }
57
+ /** The split island's bubble: a ring in the event's color that empties as the start nears. */
58
+ declare function AgendaMinimal2({ event, lead }: MinimalProps): Element_12xgc;
59
+ interface ActivityProps extends PartProps {
60
+ /** Formats the times. Defaults to the browser's locale. */
61
+ locale?: Intl.LocalesArgument;
62
+ /** Called by the Join button, shown when the event has a `meetingUrl`. */
63
+ onJoin?: (event: AgendaEvent2) => void;
64
+ }
65
+ /** The open island's "Up next" view: the next event alone, as the agenda's hero. */
66
+ declare function AgendaUpNext2({ event, locale, onJoin }: ActivityProps): Element_12xgc;
67
+ /** The island's flash a minute before the start: the calendar's color, the title, how soon and where, and Join. */
68
+ declare function AgendaStarting2({ event, onJoin }: Omit<ActivityProps, "locale">): Element_12xgc;
69
+ /**
70
+ * A notch app's calendar: the next event as the hero, the rest of today and
71
+ * tomorrow beside it.
72
+ *
73
+ * The hero is how soon the next event is, set large: `in 12 min` within the
74
+ * hour, `Now` with the time left while it runs, else its start time. Under
75
+ * it the title after its calendar's color, the time range, the place and
76
+ * whether it's a call, and a Join button when it has a `meetingUrl`. Today's
77
+ * all-day events are chips on the date line above. Beside it, past a
78
+ * hairline, the timeline: the rest of today as rows of start time, color
79
+ * mark and title, then tomorrow folded to its first event
80
+ * (`tomorrowOpen` / `onTomorrowOpenChange`, or kept here). Ended events drop
81
+ * off; `now` follows the clock on each minute unless you pin it.
82
+ *
83
+ * At the open island's tall snap (`layout="tall"`) it becomes a sheet: the
84
+ * date and the hero as above, then the rest of today and all of tomorrow
85
+ * listed in full, each event with its start over its end, its calendar's
86
+ * mark, the title over how long it runs and where (or that it's a call),
87
+ * and Join for every call; then the rest of the week, a section per day
88
+ * with events, named by its weekday and date, its all-day events as chips
89
+ * on the name's line.
90
+ *
91
+ * Before the calendar may be read it asks to connect
92
+ * (`access="undetermined"`), and when access is off it says where to turn it
93
+ * on (`"denied"`).
94
+ *
95
+ * The countdown to the next event is an activity of parts:
96
+ * `Agenda.Leading` and `Agenda.Trailing` for the compact island's wings (the
97
+ * glyph in the event's color, and its dot with `12m` that turns to seconds
98
+ * in the last minute), `Agenda.Minimal`, a ring in its color that empties
99
+ * toward the start, for the split island's bubble, `Agenda.UpNext` for the
100
+ * open island and `Agenda.Starting`, the flash a minute before. Each
101
+ * re-renders only on the edge of the unit it shows.
102
+ *
103
+ * @example {@include ./examples.mdx}
104
+ */
105
+ declare const Agenda2: (({ events, access, now: nowProp, locale, tomorrowOpen: tomorrowOpenProp, defaultTomorrowOpen, onTomorrowOpenChange, onRequestAccess, onOpenSettings, onJoin, layout, className }: AgendaProps2) => Element_12xgc) & {
106
+ Leading: typeof AgendaLeading2;
107
+ Trailing: typeof AgendaTrailing2;
108
+ Minimal: typeof AgendaMinimal2;
109
+ UpNext: typeof AgendaUpNext2;
110
+ Starting: typeof AgendaStarting2;
111
+ };
112
+ export { AgendaAccess2, AgendaEvent2, AgendaProps2, AgendaLeading2, AgendaTrailing2, AgendaMinimal2, AgendaUpNext2, AgendaStarting2, Agenda2 };
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  /*!
5
5
  * Local addition: the layout of a notch app's transient alert, the island's
6
6
  * `flash` content. Generalised from Just Notch's power, HUD and now-playing
7
- * flashes.
7
+ * flashes; the kit's blocks build their own on it.
8
8
  */
9
9
  var TONE = {
10
10
  default: "text-foreground",