@leonardaustin/ui 0.31.0 → 0.33.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/dist/core.css CHANGED
@@ -198,6 +198,8 @@
198
198
  .theme-solarized,
199
199
  .theme-cyber-brutal-dark,
200
200
  .theme-cyber-brutal-light,
201
+ .theme-studio-light,
202
+ .theme-studio-dark,
201
203
  .theme-glass-dark,
202
204
  .theme-glass-light,
203
205
  .theme-glass {
@@ -215,6 +217,107 @@
215
217
  --info-fg: var(--blue-fg);
216
218
  }
217
219
 
220
+ /* Studio: palette based on GitHub Primer (MIT) */
221
+ .theme-studio-light,
222
+ .theme-studio-dark {
223
+ --bg-content: var(--bg-primary);
224
+ --bg-table: var(--bg-secondary);
225
+ --bg-table-header: var(--bg-primary);
226
+ --text-table-header: var(--text-secondary);
227
+ --text-table-header-hover: var(--text-primary);
228
+ --bg-pinned: var(--bg-secondary);
229
+ --bg-tooltip: var(--bg-tertiary);
230
+ --bg-media-badge: rgba(0, 0, 0, 0.2);
231
+ --control-knob: #ffffff;
232
+ --qr-foreground: #000000;
233
+ --qr-background: #ffffff;
234
+ --text-on-avatar: #ffffff;
235
+ --text-on-media: #ffffff;
236
+ --text-on-media-muted: rgba(255, 255, 255, 0.8);
237
+ --shadow-knob: 0 0 1px rgba(0, 0, 0, 0.1), 2px 0 4px rgba(0, 0, 0, 0.35);
238
+ --transition-fast: 100ms ease;
239
+ --transition-base: 150ms ease;
240
+ --transition-slow: 250ms ease;
241
+ --sidebar-width: 220px;
242
+ --sidebar-collapsed: 48px;
243
+ --topbar-height: 36px;
244
+ --bottomnav-height: 56px;
245
+
246
+ /* Rebind generated utility tokens when Studio is scoped to a subtree. */
247
+ --font-sans: var(--font-ui);
248
+ --font-mono: var(--font-code);
249
+ --spacing: var(--ui-density);
250
+ --tracking-wider: var(--ui-tracking);
251
+ --radius-sm: var(--ui-radius);
252
+ --radius-md: var(--ui-radius-md);
253
+ --radius-lg: var(--ui-radius-lg);
254
+ --radius-xl: var(--ui-radius-xl);
255
+ --radius: var(--ui-radius);
256
+ --color-bg-primary: var(--bg-primary);
257
+ --color-bg-secondary: var(--bg-secondary);
258
+ --color-bg-tertiary: var(--bg-tertiary);
259
+ --color-bg-hover: var(--bg-hover);
260
+ --color-bg-active: var(--bg-active);
261
+ --color-bg-overlay: var(--bg-overlay);
262
+ --color-bg-sidebar: var(--bg-sidebar);
263
+ --color-bg-media-badge: var(--bg-media-badge);
264
+ --color-control-knob: var(--control-knob);
265
+ --color-text-primary: var(--text-primary);
266
+ --color-text-secondary: var(--text-secondary);
267
+ --color-text-tertiary: var(--text-tertiary);
268
+ --color-text-disabled: var(--text-disabled);
269
+ --color-text-on-accent: var(--text-on-accent);
270
+ --color-text-on-avatar: var(--text-on-avatar);
271
+ --color-text-on-media: var(--text-on-media);
272
+ --color-text-on-media-muted: var(--text-on-media-muted);
273
+ --color-border: var(--border);
274
+ --color-border-strong: var(--border-strong);
275
+ --color-accent: var(--accent);
276
+ --color-accent-hover: var(--accent-hover);
277
+ --color-accent-active: var(--accent-active);
278
+ --color-accent-muted: var(--accent-muted);
279
+ --color-accent-subtle: var(--accent-subtle);
280
+ --color-green: var(--green);
281
+ --color-green-muted: var(--green-muted);
282
+ --color-success: var(--success);
283
+ --color-success-muted: var(--success-muted);
284
+ --color-yellow: var(--yellow);
285
+ --color-yellow-muted: var(--yellow-muted);
286
+ --color-warning: var(--warning);
287
+ --color-warning-muted: var(--warning-muted);
288
+ --color-red: var(--red);
289
+ --color-red-muted: var(--red-muted);
290
+ --color-danger: var(--danger);
291
+ --color-danger-muted: var(--danger-muted);
292
+ --color-blue: var(--blue);
293
+ --color-blue-muted: var(--blue-muted);
294
+ --color-info: var(--info);
295
+ --color-info-muted: var(--info-muted);
296
+ --color-purple: var(--purple);
297
+ --color-purple-muted: var(--purple-muted);
298
+ --ui-radius: 6px;
299
+ --ui-radius-md: 8px;
300
+ --ui-radius-lg: 10px;
301
+ --ui-radius-xl: 16px;
302
+ --ui-border-width: 1px;
303
+ --ui-tracking: 0em;
304
+ --ui-line-height: 1.45;
305
+ --ui-density: 0.25rem;
306
+ --font-ui:
307
+ -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
308
+ --font-code: "SF Mono", ui-monospace, Menlo, monospace;
309
+ --font-heading: var(--font-ui);
310
+ --font-control: var(--font-ui);
311
+ --font-data: var(--font-ui);
312
+ --font-label: var(--font-ui);
313
+ --font-navigation: var(--font-ui);
314
+ --font-prose: var(--font-ui);
315
+ --border-focus: var(--accent);
316
+ --text-placeholder: var(--text-tertiary);
317
+ --shadow-sm: var(--shadow-md);
318
+ --shadow-lg: var(--shadow-md);
319
+ }
320
+
218
321
  /* ─── Light Theme ─── */
219
322
 
220
323
  .theme-light,
@@ -485,6 +588,8 @@ pre.shiki span {
485
588
  .theme-light-inverted pre.shiki span,
486
589
  .theme-cyber-brutal-light pre.shiki,
487
590
  .theme-cyber-brutal-light pre.shiki span,
591
+ .theme-studio-light pre.shiki,
592
+ .theme-studio-light pre.shiki span,
488
593
  .theme-glass-light pre.shiki,
489
594
  .theme-glass-light pre.shiki span,
490
595
  .theme-hashi pre.shiki,
@@ -536,6 +641,16 @@ pre.shiki span {
536
641
  background-color: var(--bg-secondary);
537
642
  }
538
643
 
644
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card {
645
+ background-color: var(--bg-card);
646
+ background-image:
647
+ linear-gradient(var(--pane-tint), var(--pane-tint)),
648
+ linear-gradient(var(--pane-backdrop), var(--pane-backdrop));
649
+ box-shadow:
650
+ 0 0 0 1px var(--pane-stroke),
651
+ var(--shadow-md);
652
+ }
653
+
539
654
  .theme-glass .bg-bg-card {
540
655
  background-color: var(--glass-card-bg);
541
656
  }
@@ -552,6 +667,10 @@ pre.shiki span {
552
667
  /* Clear only the shell's default fill. cn removes that default utility when a
553
668
  caller supplies another background; hover/focus utilities also still win. */
554
669
  @layer utilities {
670
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card.rounded-md {
671
+ border-radius: var(--ui-radius-lg);
672
+ }
673
+
555
674
  .theme-glass :where(.ui-glass-shell.bg-bg-primary) {
556
675
  background-color: transparent;
557
676
  }}
@@ -2044,6 +2163,7 @@ select:disabled + .ui-select-placeholder {
2044
2163
  }
2045
2164
  :is(
2046
2165
  button.ui-sized-control[data-variant],
2166
+ a.ui-sized-control[data-variant],
2047
2167
  input.ui-sized-control:not(.ui-password-input),
2048
2168
  textarea.ui-sized-control
2049
2169
  )[data-control-size="compact"]:not([data-variant="icon"]):not(
@@ -2486,7 +2606,7 @@ select:disabled + .ui-select-placeholder {
2486
2606
  }
2487
2607
  .ui-table-header-band > thead > tr > th {
2488
2608
  color: var(--text-primary);
2489
- background-color: var(--bg-hover);
2609
+ background-color: var(--bg-table-band, var(--bg-hover));
2490
2610
  font-size: inherit;
2491
2611
  letter-spacing: normal;
2492
2612
  text-transform: none;
package/dist/index.d.ts CHANGED
@@ -112,6 +112,7 @@ export * from "./lib/passwordRequirements";
112
112
  export * from "./lib/qrCode";
113
113
  export * from "./lib/tones";
114
114
  export * from "./config/theme";
115
+ export { usesThemeAccent } from "./providers/accentColors";
115
116
  export * from "./providers/SettingsContext";
116
117
  export * from "./providers/SettingsProvider";
117
118
  export * from "./providers/ThemeContext";
package/dist/index.js CHANGED
@@ -21,119 +21,120 @@ import { useAnchoredPopup as R } from "./hooks/useAnchoredPopup.js";
21
21
  import { useDismiss as z } from "./hooks/useDismiss.js";
22
22
  import { SettingsContext as B } from "./providers/SettingsContext.js";
23
23
  import { useSettings as V } from "./hooks/useSettings.js";
24
- import { Avatar as H } from "./components/ui/Avatar.js";
25
- import { isTone as U, semanticTones as W, toneClasses as G, toneColor as K, tones as q } from "./lib/tones.js";
26
- import { ToastProvider as J, useToast as Y } from "./components/ui/Toast.js";
27
- import { Sidebar as X } from "./components/app-shell/Sidebar.js";
28
- import { Breadcrumbs as Z } from "./components/app-shell/Breadcrumbs.js";
29
- import { useApplyTheme as Q } from "./hooks/useApplyTheme.js";
30
- import { useControlSize as $ } from "./providers/ControlSizeContext.js";
31
- import { Button as ee } from "./components/ui/Button.js";
32
- import { SectionHeader as te } from "./components/ui/SectionHeader.js";
33
- import { usePopover as ne } from "./hooks/usePopover.js";
34
- import { SelectDropdown as re } from "./components/ui/SelectDropdown.js";
35
- import { Slider as ie } from "./components/ui/Slider.js";
36
- import { ThemePreview as ae } from "./components/ui/ThemePreview.js";
37
- import { Toggle as oe } from "./components/ui/Toggle.js";
38
- import { THEME_MENU_EVENT as se, openThemeMenu as ce } from "./components/app-shell/themeMenuEvents.js";
39
- import { ThemeMenu as le } from "./components/app-shell/ThemeMenu.js";
40
- import { TopBar as ue } from "./components/app-shell/TopBar.js";
41
- import { AppShell as de } from "./components/app-shell/AppShell.js";
42
- import { AuthLayout as fe } from "./components/app-shell/AuthLayout.js";
43
- import { BackLink as pe } from "./components/app-shell/BackLink.js";
44
- import { Checkbox as me } from "./components/ui/Checkbox.js";
45
- import { FilterButton as he } from "./components/ui/FilterButton.js";
46
- import { ColumnPicker as ge } from "./components/tables/ColumnPicker.js";
47
- import { Pagination as _e } from "./components/tables/Pagination.js";
48
- import { sortRows as ve } from "./components/tables/sortRows.js";
49
- import { ResourceTable as ye } from "./components/tables/ResourceTable.js";
50
- import { Disclosure as be } from "./components/ui/Disclosure.js";
51
- import { Accordion as xe } from "./components/ui/Accordion.js";
52
- import { Alert as Se } from "./components/ui/Alert.js";
53
- import { AudioPlayer as Ce } from "./components/ui/AudioPlayer.js";
54
- import { AuthCard as we } from "./components/ui/AuthCard.js";
55
- import { AuthorByline as Te } from "./components/ui/AuthorByline.js";
56
- import { Badge as Ee } from "./components/ui/Badge.js";
57
- import { badgeColors as De } from "./components/ui/badgeColors.js";
58
- import { addDays as Oe, addMinutes as ke, addMonths as Ae, calendarDateFromParts as je, calendarDateParts as Me, createCalendarDateMath as Ne, dateAtMinutes as Pe, differenceInDays as Fe, expandAvailabilityRules as Ie, formatRangeTitle as Le, formatTime as Re, formatTimeOfDay as ze, formatTimeRange as Be, fromDateKey as Ve, getActiveResourceIds as He, getViewRange as Ue, getVisibleDays as We, isAllDayLike as Ge, isSameDay as Ke, isTimeGridView as qe, layoutOverlaps as Je, minutesOfDay as Ye, parseTime as Xe, rangesOverlap as Ze, shiftDate as Qe, snapDate as $e, snapMinutes as et, startOfDay as tt, startOfMonth as nt, startOfWeek as rt, toDateKey as it } from "./lib/calendar.js";
59
- import { DEFAULT_CALENDAR_LABELS as at } from "./components/ui/calendar/types.js";
60
- import { RadioPill as ot } from "./components/ui/RadioPill.js";
61
- import { Calendar as st } from "./components/ui/Calendar.js";
62
- import { CalendarGrid as ct } from "./components/ui/CalendarGrid.js";
63
- import { Card as lt } from "./components/ui/Card.js";
64
- import { CodeInput as ut } from "./components/ui/CodeInput.js";
65
- import { Combobox as dt } from "./components/ui/Combobox.js";
66
- import { CopyButton as ft } from "./components/ui/CopyButton.js";
67
- import { DangerZone as pt } from "./components/ui/DangerZone.js";
68
- import { DatePicker as mt } from "./components/ui/DatePicker.js";
69
- import { DateRangePicker as ht } from "./components/ui/DateRangePicker.js";
70
- import { DateTimePicker as gt } from "./components/ui/DateTimePicker.js";
71
- import { DetailPanel as _t } from "./components/ui/DetailPanel.js";
72
- import { Dialog as vt } from "./components/ui/Dialog.js";
73
- import { DialogActions as yt } from "./components/ui/DialogActions.js";
74
- import { DividerLabel as bt } from "./components/ui/DividerLabel.js";
75
- import { DropdownMenu as xt } from "./components/ui/DropdownMenu.js";
76
- import { EmptyState as St } from "./components/ui/EmptyState.js";
77
- import { ErrorBoundary as Ct } from "./components/ui/ErrorBoundary.js";
78
- import { FilterDropdown as wt } from "./components/ui/FilterDropdown.js";
79
- import { Kbd as Tt } from "./components/ui/Kbd.js";
80
- import { LoadingSpinner as Et } from "./components/ui/LoadingSpinner.js";
81
- import { ListItemLink as Dt } from "./components/ui/ListItemLink.js";
82
- import { MessageBubble as Ot } from "./components/ui/MessageBubble.js";
83
- import { MetadataGrid as kt } from "./components/ui/MetadataGrid.js";
84
- import { MetricCard as At } from "./components/ui/MetricCard.js";
85
- import { OAuthButton as jt } from "./components/ui/OAuthButton.js";
86
- import { OverlineLabel as Mt } from "./components/ui/OverlineLabel.js";
87
- import { PageHeader as Nt } from "./components/ui/PageHeader.js";
88
- import { PageSection as Pt } from "./components/ui/PageSection.js";
89
- import { PaginationBar as Ft } from "./components/ui/PaginationBar.js";
90
- import { PasswordInput as It } from "./components/ui/PasswordInput.js";
91
- import { defaultPasswordRequirements as Lt, meetsPasswordRequirements as Rt } from "./lib/passwordRequirements.js";
92
- import { PasswordRequirements as zt } from "./components/ui/PasswordRequirements.js";
93
- import { Popover as Bt } from "./components/ui/Popover.js";
94
- import { ProfileHeader as Vt } from "./components/ui/ProfileHeader.js";
95
- import { ProseContent as Ht } from "./components/ui/ProseContent.js";
96
- import { QrCapacityError as Ut, encodeQrCode as Wt } from "./lib/qrCode.js";
97
- import { QrCode as Gt } from "./components/ui/QrCode.js";
98
- import { ReorderList as Kt } from "./components/ui/ReorderList.js";
99
- import { SearchInput as qt } from "./components/ui/SearchInput.js";
100
- import { Select as Jt } from "./components/ui/Select.js";
101
- import { SettingRow as Yt } from "./components/ui/SettingRow.js";
102
- import { SideSheet as Xt } from "./components/ui/SideSheet.js";
103
- import { SplitPaneLayout as Zt } from "./components/ui/SplitPaneLayout.js";
104
- import { StatusDot as Qt } from "./components/ui/StatusDot.js";
105
- import { StepProgress as $t } from "./components/ui/StepProgress.js";
106
- import { Tabs as en } from "./components/ui/Tabs.js";
107
- import { Textarea as tn } from "./components/ui/Textarea.js";
108
- import { TextInput as nn } from "./components/ui/TextInput.js";
109
- import { TimeInput as rn } from "./components/ui/TimeInput.js";
110
- import { Timeline as an } from "./components/ui/Timeline.js";
111
- import { TranscriptLine as on } from "./components/ui/TranscriptLine.js";
112
- import { Tooltip as sn } from "./components/ui/Tooltip.js";
113
- import { Toolbar as cn } from "./components/ui/Toolbar.js";
114
- import { UploadDropzone as ln } from "./components/ui/UploadDropzone.js";
115
- import { ThemeContext as un } from "./providers/ThemeContext.js";
116
- import { useTheme as dn } from "./hooks/useTheme.js";
117
- import { formatDateLong as fn, formatDateShort as pn, formatRelative as mn } from "./lib/formatDate.js";
118
- import { SettingsProvider as hn } from "./providers/SettingsProvider.js";
119
- import { ThemeProvider as gn } from "./providers/ThemeProvider.js";
120
- import { FieldError as _n, FieldHint as vn, FormField as yn } from "./components/ui/FormField.js";
121
- import { Fieldset as bn } from "./components/ui/Fieldset.js";
122
- import { Radio as xn } from "./components/ui/Radio.js";
123
- import { AttachmentItem as Sn, AttachmentList as Cn } from "./components/ui/AttachmentList.js";
124
- import { DatePartsInput as wn } from "./components/ui/DatePartsInput.js";
125
- import { Skeleton as Tn } from "./components/ui/Skeleton.js";
126
- import { NavTabs as En } from "./components/ui/NavTabs.js";
127
- import { CharacterCount as Dn } from "./components/ui/CharacterCount.js";
128
- import { ControlSizeProvider as On } from "./providers/ControlSizeProvider.js";
129
- import { ProgressBar as kn } from "./components/ui/ProgressBar.js";
130
- import { Stack as An } from "./components/ui/Stack.js";
131
- import { Inline as jn } from "./components/ui/Inline.js";
132
- import { Grid as Mn } from "./components/ui/Grid.js";
133
- import { GridItem as Nn } from "./components/ui/GridItem.js";
134
- import { MainAsideLayout as Pn } from "./components/ui/MainAsideLayout.js";
135
- import { ActionLink as Fn } from "./components/ui/ActionLink.js";
136
- import { Icon as In } from "./components/ui/Icon.js";
137
- import { Text as Ln } from "./components/ui/Text.js";
138
- import { Meter as Rn } from "./components/ui/Meter.js";
139
- export { xe as Accordion, Fn as ActionLink, Se as Alert, de as AppShell, t as AreaChart, Sn as AttachmentItem, Cn as AttachmentList, Ce as AudioPlayer, we as AuthCard, fe as AuthLayout, Te as AuthorByline, H as Avatar, pe as BackLink, Ee as Badge, n as BarChart, x as BottomNav, Z as Breadcrumbs, ee as Button, C as COMMAND_PALETTE_EVENT, st as Calendar, ct as CalendarGrid, lt as Card, Dn as CharacterCount, me as Checkbox, ut as CodeInput, ge as ColumnPicker, dt as Combobox, D as CommandPalette, On as ControlSizeProvider, ft as CopyButton, at as DEFAULT_CALENDAR_LABELS, w as DEFAULT_COMMAND_PALETTE_SHORTCUT, pt as DangerZone, wn as DatePartsInput, mt as DatePicker, ht as DateRangePicker, gt as DateTimePicker, _t as DetailPanel, vt as Dialog, yt as DialogActions, be as Disclosure, bt as DividerLabel, r as DonutChart, xt as DropdownMenu, St as EmptyState, Ct as ErrorBoundary, _n as FieldError, vn as FieldHint, bn as Fieldset, he as FilterButton, wt as FilterDropdown, yn as FormField, Mn as Grid, Nn as GridItem, f as Heatmap, In as Icon, jn as Inline, Tt as Kbd, Dt as ListItemLink, Et as LoadingSpinner, Pn as MainAsideLayout, Ot as MessageBubble, kt as MetadataGrid, Rn as Meter, At as MetricCard, A as MobileDrawer, En as NavTabs, jt as OAuthButton, Mt as OverlineLabel, Nt as PageHeader, Pt as PageSection, _e as Pagination, Ft as PaginationBar, It as PasswordInput, zt as PasswordRequirements, Bt as Popover, O as PortalContainerContext, Vt as ProfileHeader, kn as ProgressBar, Ht as ProseContent, Ut as QrCapacityError, Gt as QrCode, p as RadarChart, m as RadialBarChart, xn as Radio, ot as RadioPill, Kt as ReorderList, ye as ResourceTable, qt as SearchInput, te as SectionHeader, Jt as Select, re as SelectDropdown, Yt as SettingRow, B as SettingsContext, hn as SettingsProvider, Xt as SideSheet, X as Sidebar, Tn as Skeleton, ie as Slider, h as SparkLine, Zt as SplitPaneLayout, An as Stack, g as StackedBarChart, Qt as StatusDot, $t as StepProgress, se as THEME_MENU_EVENT, i as Table, a as TableBody, o as TableCell, s as TableEmptyRow, c as TableFoot, l as TableHead, u as TableHeaderCell, d as TableRow, en as Tabs, Ln as Text, nn as TextInput, tn as Textarea, un as ThemeContext, le as ThemeMenu, ae as ThemePreview, gn as ThemeProvider, rn as TimeInput, an as Timeline, J as ToastProvider, oe as Toggle, cn as Toolbar, sn as Tooltip, ue as TopBar, on as TranscriptLine, ln as UploadDropzone, _ as VerticalBarChart, j as accentItems, Oe as addDays, ke as addMinutes, Ae as addMonths, De as badgeColors, je as calendarDateFromParts, Me as calendarDateParts, e as cn, Ne as createCalendarDateMath, M as darkThemes, Pe as dateAtMinutes, Lt as defaultPasswordRequirements, Fe as differenceInDays, Wt as encodeQrCode, Ie as expandAvailabilityRules, N as fontOptions, fn as formatDateLong, pn as formatDateShort, Le as formatRangeTitle, mn as formatRelative, Re as formatTime, ze as formatTimeOfDay, Be as formatTimeRange, Ve as fromDateKey, He as getActiveResourceIds, Ue as getViewRange, We as getVisibleDays, v as handleAppShellNavigate, Ge as isAllDayLike, y as isAppShellPathActive, P as isLightTheme, Ke as isSameDay, qe as isTimeGridView, U as isTone, Je as layoutOverlaps, F as lightThemes, T as matchesCommandPaletteShortcut, Rt as meetsPasswordRequirements, Ye as minutesOfDay, b as navigateToPath, E as openCommandPalette, ce as openThemeMenu, Xe as parseTime, Ze as rangesOverlap, W as semanticTones, Qe as shiftDate, $e as snapDate, et as snapMinutes, ve as sortRows, tt as startOfDay, nt as startOfMonth, rt as startOfWeek, I as themeDefaults, L as themeItems, it as toDateKey, G as toneClasses, K as toneColor, q as tones, R as useAnchoredPopup, Q as useApplyTheme, $ as useControlSize, z as useDismiss, S as useFocusTrap, ne as usePopover, k as usePortalContainer, V as useSettings, dn as useTheme, Y as useToast };
24
+ import { usesThemeAccent as H } from "./providers/accentColors.js";
25
+ import { Avatar as U } from "./components/ui/Avatar.js";
26
+ import { isTone as W, semanticTones as G, toneClasses as K, toneColor as q, tones as J } from "./lib/tones.js";
27
+ import { ToastProvider as Y, useToast as X } from "./components/ui/Toast.js";
28
+ import { Sidebar as Z } from "./components/app-shell/Sidebar.js";
29
+ import { Breadcrumbs as Q } from "./components/app-shell/Breadcrumbs.js";
30
+ import { useApplyTheme as $ } from "./hooks/useApplyTheme.js";
31
+ import { useControlSize as ee } from "./providers/ControlSizeContext.js";
32
+ import { Button as te } from "./components/ui/Button.js";
33
+ import { SectionHeader as ne } from "./components/ui/SectionHeader.js";
34
+ import { usePopover as re } from "./hooks/usePopover.js";
35
+ import { SelectDropdown as ie } from "./components/ui/SelectDropdown.js";
36
+ import { Slider as ae } from "./components/ui/Slider.js";
37
+ import { ThemePreview as oe } from "./components/ui/ThemePreview.js";
38
+ import { Toggle as se } from "./components/ui/Toggle.js";
39
+ import { THEME_MENU_EVENT as ce, openThemeMenu as le } from "./components/app-shell/themeMenuEvents.js";
40
+ import { ThemeMenu as ue } from "./components/app-shell/ThemeMenu.js";
41
+ import { TopBar as de } from "./components/app-shell/TopBar.js";
42
+ import { AppShell as fe } from "./components/app-shell/AppShell.js";
43
+ import { AuthLayout as pe } from "./components/app-shell/AuthLayout.js";
44
+ import { BackLink as me } from "./components/app-shell/BackLink.js";
45
+ import { Checkbox as he } from "./components/ui/Checkbox.js";
46
+ import { FilterButton as ge } from "./components/ui/FilterButton.js";
47
+ import { ColumnPicker as _e } from "./components/tables/ColumnPicker.js";
48
+ import { Pagination as ve } from "./components/tables/Pagination.js";
49
+ import { sortRows as ye } from "./components/tables/sortRows.js";
50
+ import { ResourceTable as be } from "./components/tables/ResourceTable.js";
51
+ import { Disclosure as xe } from "./components/ui/Disclosure.js";
52
+ import { Accordion as Se } from "./components/ui/Accordion.js";
53
+ import { Alert as Ce } from "./components/ui/Alert.js";
54
+ import { AudioPlayer as we } from "./components/ui/AudioPlayer.js";
55
+ import { AuthCard as Te } from "./components/ui/AuthCard.js";
56
+ import { AuthorByline as Ee } from "./components/ui/AuthorByline.js";
57
+ import { Badge as De } from "./components/ui/Badge.js";
58
+ import { badgeColors as Oe } from "./components/ui/badgeColors.js";
59
+ import { addDays as ke, addMinutes as Ae, addMonths as je, calendarDateFromParts as Me, calendarDateParts as Ne, createCalendarDateMath as Pe, dateAtMinutes as Fe, differenceInDays as Ie, expandAvailabilityRules as Le, formatRangeTitle as Re, formatTime as ze, formatTimeOfDay as Be, formatTimeRange as Ve, fromDateKey as He, getActiveResourceIds as Ue, getViewRange as We, getVisibleDays as Ge, isAllDayLike as Ke, isSameDay as qe, isTimeGridView as Je, layoutOverlaps as Ye, minutesOfDay as Xe, parseTime as Ze, rangesOverlap as Qe, shiftDate as $e, snapDate as et, snapMinutes as tt, startOfDay as nt, startOfMonth as rt, startOfWeek as it, toDateKey as at } from "./lib/calendar.js";
60
+ import { DEFAULT_CALENDAR_LABELS as ot } from "./components/ui/calendar/types.js";
61
+ import { RadioPill as st } from "./components/ui/RadioPill.js";
62
+ import { Calendar as ct } from "./components/ui/Calendar.js";
63
+ import { CalendarGrid as lt } from "./components/ui/CalendarGrid.js";
64
+ import { Card as ut } from "./components/ui/Card.js";
65
+ import { CodeInput as dt } from "./components/ui/CodeInput.js";
66
+ import { Combobox as ft } from "./components/ui/Combobox.js";
67
+ import { CopyButton as pt } from "./components/ui/CopyButton.js";
68
+ import { DangerZone as mt } from "./components/ui/DangerZone.js";
69
+ import { DatePicker as ht } from "./components/ui/DatePicker.js";
70
+ import { DateRangePicker as gt } from "./components/ui/DateRangePicker.js";
71
+ import { DateTimePicker as _t } from "./components/ui/DateTimePicker.js";
72
+ import { DetailPanel as vt } from "./components/ui/DetailPanel.js";
73
+ import { Dialog as yt } from "./components/ui/Dialog.js";
74
+ import { DialogActions as bt } from "./components/ui/DialogActions.js";
75
+ import { DividerLabel as xt } from "./components/ui/DividerLabel.js";
76
+ import { DropdownMenu as St } from "./components/ui/DropdownMenu.js";
77
+ import { EmptyState as Ct } from "./components/ui/EmptyState.js";
78
+ import { ErrorBoundary as wt } from "./components/ui/ErrorBoundary.js";
79
+ import { FilterDropdown as Tt } from "./components/ui/FilterDropdown.js";
80
+ import { Kbd as Et } from "./components/ui/Kbd.js";
81
+ import { LoadingSpinner as Dt } from "./components/ui/LoadingSpinner.js";
82
+ import { ListItemLink as Ot } from "./components/ui/ListItemLink.js";
83
+ import { MessageBubble as kt } from "./components/ui/MessageBubble.js";
84
+ import { MetadataGrid as At } from "./components/ui/MetadataGrid.js";
85
+ import { MetricCard as jt } from "./components/ui/MetricCard.js";
86
+ import { OAuthButton as Mt } from "./components/ui/OAuthButton.js";
87
+ import { OverlineLabel as Nt } from "./components/ui/OverlineLabel.js";
88
+ import { PageHeader as Pt } from "./components/ui/PageHeader.js";
89
+ import { PageSection as Ft } from "./components/ui/PageSection.js";
90
+ import { PaginationBar as It } from "./components/ui/PaginationBar.js";
91
+ import { PasswordInput as Lt } from "./components/ui/PasswordInput.js";
92
+ import { defaultPasswordRequirements as Rt, meetsPasswordRequirements as zt } from "./lib/passwordRequirements.js";
93
+ import { PasswordRequirements as Bt } from "./components/ui/PasswordRequirements.js";
94
+ import { Popover as Vt } from "./components/ui/Popover.js";
95
+ import { ProfileHeader as Ht } from "./components/ui/ProfileHeader.js";
96
+ import { ProseContent as Ut } from "./components/ui/ProseContent.js";
97
+ import { QrCapacityError as Wt, encodeQrCode as Gt } from "./lib/qrCode.js";
98
+ import { QrCode as Kt } from "./components/ui/QrCode.js";
99
+ import { ReorderList as qt } from "./components/ui/ReorderList.js";
100
+ import { SearchInput as Jt } from "./components/ui/SearchInput.js";
101
+ import { Select as Yt } from "./components/ui/Select.js";
102
+ import { SettingRow as Xt } from "./components/ui/SettingRow.js";
103
+ import { SideSheet as Zt } from "./components/ui/SideSheet.js";
104
+ import { SplitPaneLayout as Qt } from "./components/ui/SplitPaneLayout.js";
105
+ import { StatusDot as $t } from "./components/ui/StatusDot.js";
106
+ import { StepProgress as en } from "./components/ui/StepProgress.js";
107
+ import { Tabs as tn } from "./components/ui/Tabs.js";
108
+ import { Textarea as nn } from "./components/ui/Textarea.js";
109
+ import { TextInput as rn } from "./components/ui/TextInput.js";
110
+ import { TimeInput as an } from "./components/ui/TimeInput.js";
111
+ import { Timeline as on } from "./components/ui/Timeline.js";
112
+ import { TranscriptLine as sn } from "./components/ui/TranscriptLine.js";
113
+ import { Tooltip as cn } from "./components/ui/Tooltip.js";
114
+ import { Toolbar as ln } from "./components/ui/Toolbar.js";
115
+ import { UploadDropzone as un } from "./components/ui/UploadDropzone.js";
116
+ import { ThemeContext as dn } from "./providers/ThemeContext.js";
117
+ import { useTheme as fn } from "./hooks/useTheme.js";
118
+ import { formatDateLong as pn, formatDateShort as mn, formatRelative as hn } from "./lib/formatDate.js";
119
+ import { SettingsProvider as gn } from "./providers/SettingsProvider.js";
120
+ import { ThemeProvider as _n } from "./providers/ThemeProvider.js";
121
+ import { FieldError as vn, FieldHint as yn, FormField as bn } from "./components/ui/FormField.js";
122
+ import { Fieldset as xn } from "./components/ui/Fieldset.js";
123
+ import { Radio as Sn } from "./components/ui/Radio.js";
124
+ import { AttachmentItem as Cn, AttachmentList as wn } from "./components/ui/AttachmentList.js";
125
+ import { DatePartsInput as Tn } from "./components/ui/DatePartsInput.js";
126
+ import { Skeleton as En } from "./components/ui/Skeleton.js";
127
+ import { NavTabs as Dn } from "./components/ui/NavTabs.js";
128
+ import { CharacterCount as On } from "./components/ui/CharacterCount.js";
129
+ import { ControlSizeProvider as kn } from "./providers/ControlSizeProvider.js";
130
+ import { ProgressBar as An } from "./components/ui/ProgressBar.js";
131
+ import { Stack as jn } from "./components/ui/Stack.js";
132
+ import { Inline as Mn } from "./components/ui/Inline.js";
133
+ import { Grid as Nn } from "./components/ui/Grid.js";
134
+ import { GridItem as Pn } from "./components/ui/GridItem.js";
135
+ import { MainAsideLayout as Fn } from "./components/ui/MainAsideLayout.js";
136
+ import { ActionLink as In } from "./components/ui/ActionLink.js";
137
+ import { Icon as Ln } from "./components/ui/Icon.js";
138
+ import { Text as Rn } from "./components/ui/Text.js";
139
+ import { Meter as zn } from "./components/ui/Meter.js";
140
+ export { Se as Accordion, In as ActionLink, Ce as Alert, fe as AppShell, t as AreaChart, Cn as AttachmentItem, wn as AttachmentList, we as AudioPlayer, Te as AuthCard, pe as AuthLayout, Ee as AuthorByline, U as Avatar, me as BackLink, De as Badge, n as BarChart, x as BottomNav, Q as Breadcrumbs, te as Button, C as COMMAND_PALETTE_EVENT, ct as Calendar, lt as CalendarGrid, ut as Card, On as CharacterCount, he as Checkbox, dt as CodeInput, _e as ColumnPicker, ft as Combobox, D as CommandPalette, kn as ControlSizeProvider, pt as CopyButton, ot as DEFAULT_CALENDAR_LABELS, w as DEFAULT_COMMAND_PALETTE_SHORTCUT, mt as DangerZone, Tn as DatePartsInput, ht as DatePicker, gt as DateRangePicker, _t as DateTimePicker, vt as DetailPanel, yt as Dialog, bt as DialogActions, xe as Disclosure, xt as DividerLabel, r as DonutChart, St as DropdownMenu, Ct as EmptyState, wt as ErrorBoundary, vn as FieldError, yn as FieldHint, xn as Fieldset, ge as FilterButton, Tt as FilterDropdown, bn as FormField, Nn as Grid, Pn as GridItem, f as Heatmap, Ln as Icon, Mn as Inline, Et as Kbd, Ot as ListItemLink, Dt as LoadingSpinner, Fn as MainAsideLayout, kt as MessageBubble, At as MetadataGrid, zn as Meter, jt as MetricCard, A as MobileDrawer, Dn as NavTabs, Mt as OAuthButton, Nt as OverlineLabel, Pt as PageHeader, Ft as PageSection, ve as Pagination, It as PaginationBar, Lt as PasswordInput, Bt as PasswordRequirements, Vt as Popover, O as PortalContainerContext, Ht as ProfileHeader, An as ProgressBar, Ut as ProseContent, Wt as QrCapacityError, Kt as QrCode, p as RadarChart, m as RadialBarChart, Sn as Radio, st as RadioPill, qt as ReorderList, be as ResourceTable, Jt as SearchInput, ne as SectionHeader, Yt as Select, ie as SelectDropdown, Xt as SettingRow, B as SettingsContext, gn as SettingsProvider, Zt as SideSheet, Z as Sidebar, En as Skeleton, ae as Slider, h as SparkLine, Qt as SplitPaneLayout, jn as Stack, g as StackedBarChart, $t as StatusDot, en as StepProgress, ce as THEME_MENU_EVENT, i as Table, a as TableBody, o as TableCell, s as TableEmptyRow, c as TableFoot, l as TableHead, u as TableHeaderCell, d as TableRow, tn as Tabs, Rn as Text, rn as TextInput, nn as Textarea, dn as ThemeContext, ue as ThemeMenu, oe as ThemePreview, _n as ThemeProvider, an as TimeInput, on as Timeline, Y as ToastProvider, se as Toggle, ln as Toolbar, cn as Tooltip, de as TopBar, sn as TranscriptLine, un as UploadDropzone, _ as VerticalBarChart, j as accentItems, ke as addDays, Ae as addMinutes, je as addMonths, Oe as badgeColors, Me as calendarDateFromParts, Ne as calendarDateParts, e as cn, Pe as createCalendarDateMath, M as darkThemes, Fe as dateAtMinutes, Rt as defaultPasswordRequirements, Ie as differenceInDays, Gt as encodeQrCode, Le as expandAvailabilityRules, N as fontOptions, pn as formatDateLong, mn as formatDateShort, Re as formatRangeTitle, hn as formatRelative, ze as formatTime, Be as formatTimeOfDay, Ve as formatTimeRange, He as fromDateKey, Ue as getActiveResourceIds, We as getViewRange, Ge as getVisibleDays, v as handleAppShellNavigate, Ke as isAllDayLike, y as isAppShellPathActive, P as isLightTheme, qe as isSameDay, Je as isTimeGridView, W as isTone, Ye as layoutOverlaps, F as lightThemes, T as matchesCommandPaletteShortcut, zt as meetsPasswordRequirements, Xe as minutesOfDay, b as navigateToPath, E as openCommandPalette, le as openThemeMenu, Ze as parseTime, Qe as rangesOverlap, G as semanticTones, $e as shiftDate, et as snapDate, tt as snapMinutes, ye as sortRows, nt as startOfDay, rt as startOfMonth, it as startOfWeek, I as themeDefaults, L as themeItems, at as toDateKey, K as toneClasses, q as toneColor, J as tones, R as useAnchoredPopup, $ as useApplyTheme, ee as useControlSize, z as useDismiss, S as useFocusTrap, re as usePopover, k as usePortalContainer, V as useSettings, fn as useTheme, X as useToast, H as usesThemeAccent };
@@ -1,7 +1,7 @@
1
1
  import type { DarkTheme, LightTheme, Theme } from "./ThemeContext";
2
2
  export type ColorMode = "light" | "dark" | "system";
3
3
  export type AccentColor = "purple" | "blue" | "green" | "teal" | "orange" | "red" | "pink" | "indigo";
4
- export type FontFamily = "archivo-expanded" | "inter" | "jetbrains-mono" | "pt-serif" | "system";
4
+ export type FontFamily = "archivo-expanded" | "inter" | "jetbrains-mono" | "pt-serif" | "native" | "system-mono" | "system";
5
5
  export interface SettingsContextValue {
6
6
  fontSize: number;
7
7
  setFontSize: (size: number) => void;
@@ -10,6 +10,8 @@ var d = {
10
10
  inter: "\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
11
11
  "jetbrains-mono": "\"JetBrains Mono\", Menlo, Monaco, Consolas, monospace",
12
12
  "pt-serif": "\"PT Serif\", Georgia, ui-serif, Cambria, \"Times New Roman\", Times, serif",
13
+ native: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", system-ui, sans-serif",
14
+ "system-mono": "\"SF Mono\", ui-monospace, Menlo, monospace",
13
15
  system: "system-ui, -apple-system, BlinkMacSystemFont, sans-serif"
14
16
  }, f = "leonardaustin-ui-settings", p = new Set(Object.keys(n)), m = new Set(Object.keys(d)), h = new Set([
15
17
  "light",
@@ -116,8 +118,8 @@ function S({ children: e, storageKey: t = f, initialSettings: i, forcedTheme: p
116
118
  });
117
119
  }, [t]);
118
120
  s(() => {
119
- a(document.documentElement.style, m.accentColor);
120
- }, [m.accentColor]), s(() => {
121
+ a(document.documentElement.style, m.accentColor, v);
122
+ }, [m.accentColor, v]), s(() => {
121
123
  document.documentElement.classList.toggle("reduced-motion", m.reducedMotion);
122
124
  }, [m.reducedMotion]), s(() => {
123
125
  let e = document.documentElement, t = S.borderRadius;
@@ -1,5 +1,5 @@
1
- export type DarkTheme = "dark" | "monokai" | "solarized" | "cyberBrutalDark" | "glassDark";
2
- export type LightTheme = "light" | "lightInverted" | "cyberBrutalLight" | "hashiTheme" | "glassLight";
1
+ export type DarkTheme = "dark" | "monokai" | "solarized" | "cyberBrutalDark" | "glassDark" | "studioDark";
2
+ export type LightTheme = "light" | "lightInverted" | "cyberBrutalLight" | "hashiTheme" | "glassLight" | "studioLight";
3
3
  export type Theme = DarkTheme | LightTheme;
4
4
  export interface ThemeContextValue {
5
5
  theme: Theme;
@@ -1,3 +1,5 @@
1
1
  import type { AccentColor } from "./SettingsContext";
2
+ import type { Theme } from "./ThemeContext";
2
3
  export declare const VALID_ACCENTS: Set<string>;
3
- export declare function applyAccentColors(style: CSSStyleDeclaration, accent: AccentColor): void;
4
+ export declare function usesThemeAccent(theme?: Theme): theme is "studioDark" | "studioLight";
5
+ export declare function applyAccentColors(style: CSSStyleDeclaration, accent: AccentColor, theme?: Theme): void;
@@ -65,11 +65,25 @@ var e = {
65
65
  subtle: "rgba(99,102,241,0.08)"
66
66
  }
67
67
  }, t = new Set(Object.keys(e));
68
- function n(t, n) {
69
- let r = e[n];
70
- t.setProperty("--accent", r.base), t.setProperty("--text-on-accent", r.onAccent);
71
- let i = r.onAccent === "#ffffff";
72
- t.setProperty("--accent-hover", i ? r.hover : `var(--glass-accent-hover, ${r.hover})`), t.setProperty("--accent-active", i ? r.active : `var(--glass-accent-active, ${r.active})`), t.setProperty("--accent-muted", r.muted), t.setProperty("--accent-subtle", r.subtle);
68
+ function n(e) {
69
+ return e === "studioLight" || e === "studioDark";
70
+ }
71
+ function r(t, r, i) {
72
+ if (n(i)) {
73
+ for (let e of [
74
+ "--accent",
75
+ "--text-on-accent",
76
+ "--accent-hover",
77
+ "--accent-active",
78
+ "--accent-muted",
79
+ "--accent-subtle"
80
+ ]) t.removeProperty(e);
81
+ return;
82
+ }
83
+ let a = e[r];
84
+ t.setProperty("--accent", a.base), t.setProperty("--text-on-accent", a.onAccent);
85
+ let o = a.onAccent === "#ffffff";
86
+ t.setProperty("--accent-hover", o ? a.hover : `var(--glass-accent-hover, ${a.hover})`), t.setProperty("--accent-active", o ? a.active : `var(--glass-accent-active, ${a.active})`), t.setProperty("--accent-muted", a.muted), t.setProperty("--accent-subtle", a.subtle);
73
87
  }
74
88
  //#endregion
75
- export { t as VALID_ACCENTS, n as applyAccentColors };
89
+ export { t as VALID_ACCENTS, r as applyAccentColors, n as usesThemeAccent };
@@ -8,7 +8,9 @@ var e = {
8
8
  cyberBrutalDark: ["theme-cyber-brutal-dark"],
9
9
  cyberBrutalLight: ["theme-cyber-brutal-light"],
10
10
  hashiTheme: ["theme-hashi"],
11
+ studioDark: ["theme-studio-dark"],
11
12
  glassDark: ["theme-glass", "theme-glass-dark"],
13
+ studioLight: ["theme-studio-light"],
12
14
  glassLight: ["theme-glass", "theme-glass-light"]
13
15
  }, t = [...new Set(Object.values(e).flat())];
14
16
  function n(n, r) {