@jsudc/react 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +228 -2
- package/dist/calendar/CalendarRenderer.d.ts +11 -0
- package/dist/calendar/CalendarRenderer.js +343 -0
- package/dist/calendar/CalendarRenderer.js.map +1 -0
- package/dist/calendar/EventBlock.d.ts +16 -0
- package/dist/calendar/EventBlock.js +57 -0
- package/dist/calendar/EventBlock.js.map +1 -0
- package/dist/calendar/EventDetail.d.ts +20 -0
- package/dist/calendar/EventDetail.js +186 -0
- package/dist/calendar/EventDetail.js.map +1 -0
- package/dist/calendar/MonthGrid.d.ts +19 -0
- package/dist/calendar/MonthGrid.js +120 -0
- package/dist/calendar/MonthGrid.js.map +1 -0
- package/dist/calendar/TimeGrid.d.ts +24 -0
- package/dist/calendar/TimeGrid.js +330 -0
- package/dist/calendar/TimeGrid.js.map +1 -0
- package/dist/calendar/model.d.ts +97 -0
- package/dist/calendar/model.js +279 -0
- package/dist/calendar/model.js.map +1 -0
- package/dist/cards/CardRenderer.d.ts +24 -0
- package/dist/cards/CardRenderer.js +274 -0
- package/dist/cards/CardRenderer.js.map +1 -0
- package/dist/cards/cardModel.d.ts +48 -0
- package/dist/cards/cardModel.js +86 -0
- package/dist/cards/cardModel.js.map +1 -0
- package/dist/chart/ChartRenderer.d.ts +16 -0
- package/dist/chart/ChartRenderer.js +529 -0
- package/dist/chart/ChartRenderer.js.map +1 -0
- package/dist/chart/ChartWindowControl.d.ts +13 -0
- package/dist/chart/ChartWindowControl.js +99 -0
- package/dist/chart/ChartWindowControl.js.map +1 -0
- package/dist/chart/model.d.ts +45 -0
- package/dist/chart/model.js +179 -0
- package/dist/chart/model.js.map +1 -0
- package/dist/chart/useChartWindow.d.ts +18 -0
- package/dist/chart/useChartWindow.js +70 -0
- package/dist/chart/useChartWindow.js.map +1 -0
- package/dist/chart/window.d.ts +50 -0
- package/dist/chart/window.js +130 -0
- package/dist/chart/window.js.map +1 -0
- package/dist/components/ui/button.d.ts +21 -0
- package/dist/components/ui/button.js +30 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/checkbox.js +23 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +14 -0
- package/dist/components/ui/dialog.js +52 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +12 -0
- package/dist/components/ui/dropdown-menu.js +35 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.js +24 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/misc.d.ts +6 -0
- package/dist/components/ui/misc.js +24 -0
- package/dist/components/ui/misc.js.map +1 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/popover.js +21 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +18 -0
- package/dist/components/ui/segmented.js +35 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.js +39 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/toast.d.ts +14 -0
- package/dist/components/ui/toast.js +72 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.js +19 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/data-view/DocTab.d.ts +8 -0
- package/dist/data-view/DocTab.js +26 -0
- package/dist/data-view/DocTab.js.map +1 -0
- package/dist/data-view/FilePreview.d.ts +10 -0
- package/dist/data-view/FilePreview.js +71 -0
- package/dist/data-view/FilePreview.js.map +1 -0
- package/dist/data-view/FilterBuilder.d.ts +26 -0
- package/dist/data-view/FilterBuilder.js +350 -0
- package/dist/data-view/FilterBuilder.js.map +1 -0
- package/dist/data-view/FilterChips.d.ts +12 -0
- package/dist/data-view/FilterChips.js +295 -0
- package/dist/data-view/FilterChips.js.map +1 -0
- package/dist/data-view/FolderBar.d.ts +5 -0
- package/dist/data-view/FolderBar.js +46 -0
- package/dist/data-view/FolderBar.js.map +1 -0
- package/dist/data-view/FolderEntry.d.ts +13 -0
- package/dist/data-view/FolderEntry.js +37 -0
- package/dist/data-view/FolderEntry.js.map +1 -0
- package/dist/data-view/Freshness.d.ts +18 -0
- package/dist/data-view/Freshness.js +86 -0
- package/dist/data-view/Freshness.js.map +1 -0
- package/dist/data-view/SearchBox.d.ts +7 -0
- package/dist/data-view/SearchBox.js +65 -0
- package/dist/data-view/SearchBox.js.map +1 -0
- package/dist/data-view/SourceTab.d.ts +9 -0
- package/dist/data-view/SourceTab.js +103 -0
- package/dist/data-view/SourceTab.js.map +1 -0
- package/dist/data-view/UdcDataView.d.ts +8 -0
- package/dist/data-view/UdcDataView.js +366 -0
- package/dist/data-view/UdcDataView.js.map +1 -0
- package/dist/data-view/compose.d.ts +24 -0
- package/dist/data-view/compose.js +86 -0
- package/dist/data-view/compose.js.map +1 -0
- package/dist/data-view/folder.d.ts +13 -0
- package/dist/data-view/folder.js +52 -0
- package/dist/data-view/folder.js.map +1 -0
- package/dist/data-view/liveView.d.ts +20 -0
- package/dist/data-view/liveView.js +67 -0
- package/dist/data-view/liveView.js.map +1 -0
- package/dist/data-view/urlState.d.ts +44 -0
- package/dist/data-view/urlState.js +139 -0
- package/dist/data-view/urlState.js.map +1 -0
- package/dist/data-view/useDataViewState.d.ts +36 -0
- package/dist/data-view/useDataViewState.js +69 -0
- package/dist/data-view/useDataViewState.js.map +1 -0
- package/dist/i18n/i18n.d.ts +71 -0
- package/dist/i18n/i18n.js +151 -0
- package/dist/i18n/i18n.js.map +1 -0
- package/dist/i18n/translations.d.ts +16 -0
- package/dist/i18n/translations.js +959 -0
- package/dist/i18n/translations.js.map +1 -0
- package/dist/icons/lucide.generated.d.ts +2 -0
- package/dist/icons/lucide.generated.js +32 -0
- package/dist/icons/lucide.generated.js.map +1 -0
- package/dist/icons/resolve.d.ts +9 -0
- package/dist/icons/resolve.js +25 -0
- package/dist/icons/resolve.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +28 -0
- package/dist/kanban/CardDetailDialog.d.ts +17 -0
- package/dist/kanban/CardDetailDialog.js +52 -0
- package/dist/kanban/CardDetailDialog.js.map +1 -0
- package/dist/kanban/KanbanBoardSwitcher.d.ts +6 -0
- package/dist/kanban/KanbanBoardSwitcher.js +27 -0
- package/dist/kanban/KanbanBoardSwitcher.js.map +1 -0
- package/dist/kanban/KanbanCard.d.ts +21 -0
- package/dist/kanban/KanbanCard.js +188 -0
- package/dist/kanban/KanbanCard.js.map +1 -0
- package/dist/kanban/KanbanColumn.d.ts +30 -0
- package/dist/kanban/KanbanColumn.js +227 -0
- package/dist/kanban/KanbanColumn.js.map +1 -0
- package/dist/kanban/KanbanRenderer.d.ts +3 -0
- package/dist/kanban/KanbanRenderer.js +472 -0
- package/dist/kanban/KanbanRenderer.js.map +1 -0
- package/dist/kanban/model.d.ts +89 -0
- package/dist/kanban/model.js +159 -0
- package/dist/kanban/model.js.map +1 -0
- package/dist/kanban/persist.d.ts +27 -0
- package/dist/kanban/persist.js +54 -0
- package/dist/kanban/persist.js.map +1 -0
- package/dist/kanban/useKanbanBoard.d.ts +21 -0
- package/dist/kanban/useKanbanBoard.js +47 -0
- package/dist/kanban/useKanbanBoard.js.map +1 -0
- package/dist/lib/theme.d.ts +11 -0
- package/dist/lib/theme.js +43 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/utils.d.ts +9 -0
- package/dist/lib/utils.js +29 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/map/MapRenderer.d.ts +13 -0
- package/dist/map/MapRenderer.js +405 -0
- package/dist/map/MapRenderer.js.map +1 -0
- package/dist/map/model.d.ts +68 -0
- package/dist/map/model.js +140 -0
- package/dist/map/model.js.map +1 -0
- package/dist/renderers/AllRowsStatus.d.ts +8 -0
- package/dist/renderers/AllRowsStatus.js +34 -0
- package/dist/renderers/AllRowsStatus.js.map +1 -0
- package/dist/renderers/registry.d.ts +21 -0
- package/dist/renderers/registry.js +103 -0
- package/dist/renderers/registry.js.map +1 -0
- package/dist/renderers/types.d.ts +83 -0
- package/dist/renderers/types.js +8 -0
- package/dist/renderers/types.js.map +1 -0
- package/dist/schema-editor/ColumnHeaderMenu.d.ts +11 -0
- package/dist/schema-editor/ColumnHeaderMenu.js +74 -0
- package/dist/schema-editor/ColumnHeaderMenu.js.map +1 -0
- package/dist/schema-editor/DeleteFieldDialog.d.ts +8 -0
- package/dist/schema-editor/DeleteFieldDialog.js +79 -0
- package/dist/schema-editor/DeleteFieldDialog.js.map +1 -0
- package/dist/schema-editor/FieldFormDialog.d.ts +22 -0
- package/dist/schema-editor/FieldFormDialog.js +313 -0
- package/dist/schema-editor/FieldFormDialog.js.map +1 -0
- package/dist/schema-editor/TagInput.d.ts +9 -0
- package/dist/schema-editor/TagInput.js +46 -0
- package/dist/schema-editor/TagInput.js.map +1 -0
- package/dist/schema-editor/fieldForm.d.ts +52 -0
- package/dist/schema-editor/fieldForm.js +131 -0
- package/dist/schema-editor/fieldForm.js.map +1 -0
- package/dist/schema-editor/useSchemaEditor.d.ts +15 -0
- package/dist/schema-editor/useSchemaEditor.js +87 -0
- package/dist/schema-editor/useSchemaEditor.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/table/CellEditor.d.ts +31 -0
- package/dist/table/CellEditor.js +144 -0
- package/dist/table/CellEditor.js.map +1 -0
- package/dist/table/Pager.d.ts +8 -0
- package/dist/table/Pager.js +90 -0
- package/dist/table/Pager.js.map +1 -0
- package/dist/table/TableRenderer.d.ts +27 -0
- package/dist/table/TableRenderer.js +458 -0
- package/dist/table/TableRenderer.js.map +1 -0
- package/dist/table/cells.d.ts +38 -0
- package/dist/table/cells.js +218 -0
- package/dist/table/cells.js.map +1 -0
- package/dist/table/sparkline.d.ts +31 -0
- package/dist/table/sparkline.js +105 -0
- package/dist/table/sparkline.js.map +1 -0
- package/dist/table/states.d.ts +10 -0
- package/dist/table/states.js +71 -0
- package/dist/table/states.js.map +1 -0
- package/dist/table/style.d.ts +15 -0
- package/dist/table/style.js +53 -0
- package/dist/table/style.js.map +1 -0
- package/dist/table/transforms.d.ts +17 -0
- package/dist/table/transforms.js +95 -0
- package/dist/table/transforms.js.map +1 -0
- package/dist/table/useInfiniteSentinel.d.ts +8 -0
- package/dist/table/useInfiniteSentinel.js +34 -0
- package/dist/table/useInfiniteSentinel.js.map +1 -0
- package/dist/time/timezone.d.ts +27 -0
- package/dist/time/timezone.js +69 -0
- package/dist/time/timezone.js.map +1 -0
- package/dist/time/zoned.d.ts +65 -0
- package/dist/time/zoned.js +208 -0
- package/dist/time/zoned.js.map +1 -0
- package/dist/tokens.css +454 -0
- package/dist/tree/TreeNode.d.ts +9 -0
- package/dist/tree/TreeNode.js +291 -0
- package/dist/tree/TreeNode.js.map +1 -0
- package/dist/tree/TreeRenderer.d.ts +54 -0
- package/dist/tree/TreeRenderer.js +446 -0
- package/dist/tree/TreeRenderer.js.map +1 -0
- package/dist/tree/expand.d.ts +31 -0
- package/dist/tree/expand.js +80 -0
- package/dist/tree/expand.js.map +1 -0
- package/dist/tree/model.d.ts +108 -0
- package/dist/tree/model.js +294 -0
- package/dist/tree/model.js.map +1 -0
- package/dist/udc/hooks.d.ts +644 -0
- package/dist/udc/hooks.js +353 -0
- package/dist/udc/hooks.js.map +1 -0
- package/dist/udc/keys.d.ts +19 -0
- package/dist/udc/keys.js +30 -0
- package/dist/udc/keys.js.map +1 -0
- package/dist/udc/provider.d.ts +14 -0
- package/dist/udc/provider.js +36 -0
- package/dist/udc/provider.js.map +1 -0
- package/package.json +113 -4
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @jsudc/react tokens: the dark variant, the colour/font tokens of both themes,
|
|
3
|
+
* their Tailwind theme mapping and the library's few rules of its own (base,
|
|
4
|
+
* skeleton, map markers, the Doc tab's prose). Raw Tailwind v4 input: a host
|
|
5
|
+
* that runs Tailwind imports it after `@import "tailwindcss"` and adds an
|
|
6
|
+
* `@source` for the package; `styles.css` is this file compiled.
|
|
7
|
+
*/
|
|
8
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Design tokens. Every colour the components use is one of these, so the
|
|
12
|
+
* light and dark themes differ only here.
|
|
13
|
+
*/
|
|
14
|
+
:root {
|
|
15
|
+
--background: oklch(0.985 0.002 260);
|
|
16
|
+
--foreground: oklch(0.21 0.02 265);
|
|
17
|
+
--surface: oklch(1 0 0);
|
|
18
|
+
--surface-raised: oklch(1 0 0);
|
|
19
|
+
--muted: oklch(0.965 0.004 260);
|
|
20
|
+
--muted-foreground: oklch(0.52 0.02 262);
|
|
21
|
+
--border: oklch(0.915 0.006 260);
|
|
22
|
+
--border-strong: oklch(0.86 0.01 260);
|
|
23
|
+
--input: oklch(0.89 0.008 260);
|
|
24
|
+
--ring: oklch(0.58 0.2 268);
|
|
25
|
+
--primary: oklch(0.52 0.2 268);
|
|
26
|
+
--primary-foreground: oklch(0.99 0 0);
|
|
27
|
+
--hover: oklch(0.97 0.008 268);
|
|
28
|
+
--selected: oklch(0.95 0.025 268);
|
|
29
|
+
--shadow-pin: oklch(0.2 0.02 265 / 0.12);
|
|
30
|
+
|
|
31
|
+
--sem-accent: oklch(0.5 0.2 268);
|
|
32
|
+
--sem-success: oklch(0.52 0.13 155);
|
|
33
|
+
--sem-warning: oklch(0.6 0.14 70);
|
|
34
|
+
--sem-danger: oklch(0.55 0.2 25);
|
|
35
|
+
--sem-info: oklch(0.5 0.14 240);
|
|
36
|
+
--sem-muted: oklch(0.55 0.015 262);
|
|
37
|
+
|
|
38
|
+
--sem-accent-bg: oklch(0.96 0.03 268);
|
|
39
|
+
--sem-success-bg: oklch(0.965 0.035 155);
|
|
40
|
+
--sem-warning-bg: oklch(0.97 0.05 85);
|
|
41
|
+
--sem-danger-bg: oklch(0.965 0.03 25);
|
|
42
|
+
--sem-info-bg: oklch(0.976 0.016 240);
|
|
43
|
+
--sem-muted-bg: oklch(0.965 0.004 260);
|
|
44
|
+
|
|
45
|
+
/* The chart's categorical palette, in this fixed order (validated for colour-vision
|
|
46
|
+
deficiencies on adjacent pairs; slots 3-5 sit under 3:1 on white, so a chart
|
|
47
|
+
always ships labels or the table tab). Dark mode has its own steps below. */
|
|
48
|
+
--chart-1: #2a78d6;
|
|
49
|
+
--chart-2: #eb6834;
|
|
50
|
+
--chart-3: #1baf7a;
|
|
51
|
+
--chart-4: #eda100;
|
|
52
|
+
--chart-5: #e87ba4;
|
|
53
|
+
--chart-6: #008300;
|
|
54
|
+
--chart-7: #6250d6;
|
|
55
|
+
--chart-8: #e34948;
|
|
56
|
+
|
|
57
|
+
color-scheme: light;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dark {
|
|
61
|
+
--background: oklch(0.16 0.012 265);
|
|
62
|
+
--foreground: oklch(0.94 0.008 260);
|
|
63
|
+
--surface: oklch(0.195 0.013 265);
|
|
64
|
+
--surface-raised: oklch(0.235 0.015 265);
|
|
65
|
+
--muted: oklch(0.24 0.014 265);
|
|
66
|
+
--muted-foreground: oklch(0.68 0.02 262);
|
|
67
|
+
--border: oklch(0.285 0.016 265);
|
|
68
|
+
--border-strong: oklch(0.34 0.018 265);
|
|
69
|
+
--input: oklch(0.33 0.018 265);
|
|
70
|
+
--ring: oklch(0.68 0.17 268);
|
|
71
|
+
--primary: oklch(0.66 0.17 268);
|
|
72
|
+
--primary-foreground: oklch(0.16 0.02 265);
|
|
73
|
+
--hover: oklch(0.225 0.016 266);
|
|
74
|
+
--selected: oklch(0.26 0.04 268);
|
|
75
|
+
--shadow-pin: oklch(0 0 0 / 0.45);
|
|
76
|
+
|
|
77
|
+
--sem-accent: oklch(0.76 0.13 268);
|
|
78
|
+
--sem-success: oklch(0.76 0.13 155);
|
|
79
|
+
--sem-warning: oklch(0.8 0.13 80);
|
|
80
|
+
--sem-danger: oklch(0.72 0.16 25);
|
|
81
|
+
--sem-info: oklch(0.78 0.1 235);
|
|
82
|
+
--sem-muted: oklch(0.66 0.015 262);
|
|
83
|
+
|
|
84
|
+
--sem-accent-bg: oklch(0.26 0.05 268);
|
|
85
|
+
--sem-success-bg: oklch(0.25 0.04 155);
|
|
86
|
+
--sem-warning-bg: oklch(0.26 0.04 80);
|
|
87
|
+
--sem-danger-bg: oklch(0.26 0.05 25);
|
|
88
|
+
--sem-info-bg: oklch(0.215 0.022 245);
|
|
89
|
+
--sem-muted-bg: oklch(0.23 0.012 265);
|
|
90
|
+
|
|
91
|
+
--chart-1: #3987e5;
|
|
92
|
+
--chart-2: #d95926;
|
|
93
|
+
--chart-3: #199e70;
|
|
94
|
+
--chart-4: #c98500;
|
|
95
|
+
--chart-5: #d55181;
|
|
96
|
+
--chart-6: #008300;
|
|
97
|
+
--chart-7: #9085e9;
|
|
98
|
+
--chart-8: #e66767;
|
|
99
|
+
|
|
100
|
+
color-scheme: dark;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@theme inline {
|
|
104
|
+
--color-background: var(--background);
|
|
105
|
+
--color-foreground: var(--foreground);
|
|
106
|
+
--color-surface: var(--surface);
|
|
107
|
+
--color-surface-raised: var(--surface-raised);
|
|
108
|
+
--color-muted: var(--muted);
|
|
109
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
110
|
+
--color-border: var(--border);
|
|
111
|
+
--color-border-strong: var(--border-strong);
|
|
112
|
+
--color-input: var(--input);
|
|
113
|
+
--color-ring: var(--ring);
|
|
114
|
+
--color-primary: var(--primary);
|
|
115
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
116
|
+
--color-hover: var(--hover);
|
|
117
|
+
--color-selected: var(--selected);
|
|
118
|
+
|
|
119
|
+
--color-sem-accent: var(--sem-accent);
|
|
120
|
+
--color-sem-success: var(--sem-success);
|
|
121
|
+
--color-sem-warning: var(--sem-warning);
|
|
122
|
+
--color-sem-danger: var(--sem-danger);
|
|
123
|
+
--color-sem-info: var(--sem-info);
|
|
124
|
+
--color-sem-muted: var(--sem-muted);
|
|
125
|
+
--color-sem-accent-bg: var(--sem-accent-bg);
|
|
126
|
+
--color-sem-success-bg: var(--sem-success-bg);
|
|
127
|
+
--color-sem-warning-bg: var(--sem-warning-bg);
|
|
128
|
+
--color-sem-danger-bg: var(--sem-danger-bg);
|
|
129
|
+
--color-sem-info-bg: var(--sem-info-bg);
|
|
130
|
+
--color-sem-muted-bg: var(--sem-muted-bg);
|
|
131
|
+
|
|
132
|
+
--font-sans:
|
|
133
|
+
"Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
|
134
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
135
|
+
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
136
|
+
|
|
137
|
+
--animate-shimmer: shimmer 1.6s ease-in-out infinite;
|
|
138
|
+
--animate-in: fade-in 140ms ease-out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes shimmer {
|
|
142
|
+
0% {
|
|
143
|
+
background-position: -200% 0;
|
|
144
|
+
}
|
|
145
|
+
100% {
|
|
146
|
+
background-position: 200% 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@keyframes fade-in {
|
|
151
|
+
from {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transform: translateY(2px) scale(0.98);
|
|
154
|
+
}
|
|
155
|
+
to {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
transform: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@layer base {
|
|
162
|
+
* {
|
|
163
|
+
border-color: var(--border);
|
|
164
|
+
}
|
|
165
|
+
body {
|
|
166
|
+
background: var(--background);
|
|
167
|
+
color: var(--foreground);
|
|
168
|
+
font-family: var(--font-sans);
|
|
169
|
+
font-size: 14px;
|
|
170
|
+
-webkit-font-smoothing: antialiased;
|
|
171
|
+
-moz-osx-font-smoothing: grayscale;
|
|
172
|
+
}
|
|
173
|
+
button:not(:disabled),
|
|
174
|
+
[role="button"]:not(:disabled) {
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
::selection {
|
|
178
|
+
background: color-mix(in oklch, var(--primary) 25%, transparent);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@layer components {
|
|
183
|
+
/* A thin scrollbar that follows the theme. */
|
|
184
|
+
.scroll-thin {
|
|
185
|
+
scrollbar-width: thin;
|
|
186
|
+
scrollbar-color: var(--border-strong) transparent;
|
|
187
|
+
}
|
|
188
|
+
.select-chevron {
|
|
189
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
190
|
+
background-position: right 8px center;
|
|
191
|
+
background-repeat: no-repeat;
|
|
192
|
+
background-size: 14px;
|
|
193
|
+
}
|
|
194
|
+
.select-chevron:disabled {
|
|
195
|
+
background-image: none;
|
|
196
|
+
}
|
|
197
|
+
.skeleton {
|
|
198
|
+
background: linear-gradient(
|
|
199
|
+
90deg,
|
|
200
|
+
var(--muted) 25%,
|
|
201
|
+
color-mix(in oklch, var(--muted) 40%, var(--surface)) 50%,
|
|
202
|
+
var(--muted) 75%
|
|
203
|
+
);
|
|
204
|
+
background-size: 200% 100%;
|
|
205
|
+
animation: var(--animate-shimmer);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes overlay-in {
|
|
210
|
+
from {
|
|
211
|
+
opacity: 0;
|
|
212
|
+
}
|
|
213
|
+
to {
|
|
214
|
+
opacity: 1;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* The map tab (Leaflet). Unlayered on purpose: leaflet.css is unlayered too, and a
|
|
219
|
+
layered rule would lose to it whatever its specificity. Marker colours come from
|
|
220
|
+
the theme's tokens by tone, so a muted row is a muted circle in both themes. */
|
|
221
|
+
.udc-map.leaflet-container {
|
|
222
|
+
background: var(--muted);
|
|
223
|
+
font-family: var(--font-sans);
|
|
224
|
+
}
|
|
225
|
+
.dark .udc-map .leaflet-tile-pane {
|
|
226
|
+
filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.55);
|
|
227
|
+
}
|
|
228
|
+
.udc-map .leaflet-bar a,
|
|
229
|
+
.udc-map .leaflet-bar a:hover {
|
|
230
|
+
background: var(--surface);
|
|
231
|
+
color: var(--foreground);
|
|
232
|
+
border-color: var(--border);
|
|
233
|
+
}
|
|
234
|
+
.udc-map .leaflet-control-attribution {
|
|
235
|
+
background: color-mix(in oklch, var(--surface) 80%, transparent);
|
|
236
|
+
color: var(--muted-foreground);
|
|
237
|
+
}
|
|
238
|
+
.udc-map .leaflet-control-attribution a {
|
|
239
|
+
color: var(--sem-info);
|
|
240
|
+
}
|
|
241
|
+
.udc-map .udc-map-popup .leaflet-popup-content-wrapper,
|
|
242
|
+
.udc-map .udc-map-popup .leaflet-popup-tip {
|
|
243
|
+
background: var(--surface-raised);
|
|
244
|
+
color: var(--foreground);
|
|
245
|
+
box-shadow: 0 6px 24px -6px rgb(0 0 0 / 0.3);
|
|
246
|
+
}
|
|
247
|
+
.udc-map .udc-map-popup .leaflet-popup-content {
|
|
248
|
+
margin: 12px 14px;
|
|
249
|
+
font-size: 13px;
|
|
250
|
+
}
|
|
251
|
+
.udc-map .udc-map-popup a.leaflet-popup-close-button {
|
|
252
|
+
color: var(--muted-foreground);
|
|
253
|
+
}
|
|
254
|
+
.udc-map-marker {
|
|
255
|
+
stroke: var(--sem-accent);
|
|
256
|
+
fill: var(--sem-accent);
|
|
257
|
+
transition: stroke-width 120ms;
|
|
258
|
+
}
|
|
259
|
+
.udc-map-marker.tone-success {
|
|
260
|
+
stroke: var(--sem-success);
|
|
261
|
+
fill: var(--sem-success);
|
|
262
|
+
}
|
|
263
|
+
.udc-map-marker.tone-warning {
|
|
264
|
+
stroke: var(--sem-warning);
|
|
265
|
+
fill: var(--sem-warning);
|
|
266
|
+
}
|
|
267
|
+
.udc-map-marker.tone-danger {
|
|
268
|
+
stroke: var(--sem-danger);
|
|
269
|
+
fill: var(--sem-danger);
|
|
270
|
+
}
|
|
271
|
+
.udc-map-marker.tone-info {
|
|
272
|
+
stroke: var(--sem-info);
|
|
273
|
+
fill: var(--sem-info);
|
|
274
|
+
}
|
|
275
|
+
.udc-map-marker.tone-muted {
|
|
276
|
+
stroke: var(--sem-muted);
|
|
277
|
+
fill: var(--sem-muted);
|
|
278
|
+
}
|
|
279
|
+
.udc-map-marker:hover {
|
|
280
|
+
stroke: var(--foreground);
|
|
281
|
+
stroke-width: 3;
|
|
282
|
+
}
|
|
283
|
+
.udc-map-marker.is-selected {
|
|
284
|
+
stroke: var(--foreground);
|
|
285
|
+
stroke-width: 3;
|
|
286
|
+
fill-opacity: 0.85;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/* An aeroplane marker (icon: airplane): a divIcon whose SVG is filled with currentColor, so
|
|
290
|
+
the tone sets it; the background-coloured outline keeps it legible on the tiles. */
|
|
291
|
+
.udc-map-plane {
|
|
292
|
+
color: var(--sem-accent);
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
}
|
|
295
|
+
.udc-map-plane.tone-success {
|
|
296
|
+
color: var(--sem-success);
|
|
297
|
+
}
|
|
298
|
+
.udc-map-plane.tone-warning {
|
|
299
|
+
color: var(--sem-warning);
|
|
300
|
+
}
|
|
301
|
+
.udc-map-plane.tone-danger {
|
|
302
|
+
color: var(--sem-danger);
|
|
303
|
+
}
|
|
304
|
+
.udc-map-plane.tone-info {
|
|
305
|
+
color: var(--sem-info);
|
|
306
|
+
}
|
|
307
|
+
.udc-map-plane.tone-muted {
|
|
308
|
+
color: var(--sem-muted);
|
|
309
|
+
}
|
|
310
|
+
.udc-map-plane-glyph {
|
|
311
|
+
line-height: 0;
|
|
312
|
+
transition: transform 300ms ease-out;
|
|
313
|
+
}
|
|
314
|
+
.udc-map-plane svg {
|
|
315
|
+
overflow: visible;
|
|
316
|
+
}
|
|
317
|
+
.udc-map-plane path {
|
|
318
|
+
fill: currentColor;
|
|
319
|
+
stroke: var(--background);
|
|
320
|
+
stroke-width: 1;
|
|
321
|
+
stroke-linejoin: round;
|
|
322
|
+
transition:
|
|
323
|
+
stroke 120ms,
|
|
324
|
+
stroke-width 120ms;
|
|
325
|
+
}
|
|
326
|
+
.udc-map-plane:hover path,
|
|
327
|
+
.udc-map-plane.is-selected path {
|
|
328
|
+
stroke: var(--foreground);
|
|
329
|
+
stroke-width: 1.6;
|
|
330
|
+
}
|
|
331
|
+
/* A trail: muted under the markers, the tone of its aeroplane when it is hovered or selected. */
|
|
332
|
+
.udc-map-trail {
|
|
333
|
+
stroke: var(--sem-muted);
|
|
334
|
+
stroke-opacity: 0.55;
|
|
335
|
+
stroke-linecap: round;
|
|
336
|
+
stroke-linejoin: round;
|
|
337
|
+
fill: none;
|
|
338
|
+
}
|
|
339
|
+
.udc-map-trail.is-active {
|
|
340
|
+
stroke-opacity: 0.95;
|
|
341
|
+
}
|
|
342
|
+
.udc-map-trail.is-active.tone-success {
|
|
343
|
+
stroke: var(--sem-success);
|
|
344
|
+
}
|
|
345
|
+
.udc-map-trail.is-active.tone-warning {
|
|
346
|
+
stroke: var(--sem-warning);
|
|
347
|
+
}
|
|
348
|
+
.udc-map-trail.is-active.tone-danger {
|
|
349
|
+
stroke: var(--sem-danger);
|
|
350
|
+
}
|
|
351
|
+
.udc-map-trail.is-active.tone-info,
|
|
352
|
+
.udc-map-trail.is-active.tone-accent {
|
|
353
|
+
stroke: var(--sem-info);
|
|
354
|
+
}
|
|
355
|
+
.udc-map-trail.is-active.tone-muted {
|
|
356
|
+
stroke: var(--foreground);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* The Doc tab: a collection's README. Theme tokens only, so it follows light and dark. */
|
|
360
|
+
.udc-prose {
|
|
361
|
+
color: var(--color-foreground);
|
|
362
|
+
font-size: 14px;
|
|
363
|
+
line-height: 1.7;
|
|
364
|
+
}
|
|
365
|
+
.udc-prose > :first-child {
|
|
366
|
+
margin-top: 0;
|
|
367
|
+
}
|
|
368
|
+
.udc-prose h1 {
|
|
369
|
+
font-size: 1.6rem;
|
|
370
|
+
font-weight: 650;
|
|
371
|
+
letter-spacing: -0.02em;
|
|
372
|
+
line-height: 1.25;
|
|
373
|
+
margin: 0 0 0.9rem;
|
|
374
|
+
}
|
|
375
|
+
.udc-prose h2 {
|
|
376
|
+
font-size: 1.15rem;
|
|
377
|
+
font-weight: 620;
|
|
378
|
+
letter-spacing: -0.01em;
|
|
379
|
+
margin: 1.8rem 0 0.6rem;
|
|
380
|
+
padding-bottom: 0.3rem;
|
|
381
|
+
border-bottom: 1px solid var(--color-border);
|
|
382
|
+
}
|
|
383
|
+
.udc-prose h3 {
|
|
384
|
+
font-size: 1rem;
|
|
385
|
+
font-weight: 600;
|
|
386
|
+
margin: 1.4rem 0 0.4rem;
|
|
387
|
+
}
|
|
388
|
+
.udc-prose p,
|
|
389
|
+
.udc-prose ul,
|
|
390
|
+
.udc-prose ol,
|
|
391
|
+
.udc-prose pre,
|
|
392
|
+
.udc-prose table,
|
|
393
|
+
.udc-prose blockquote {
|
|
394
|
+
margin: 0.75rem 0;
|
|
395
|
+
}
|
|
396
|
+
.udc-prose ul,
|
|
397
|
+
.udc-prose ol {
|
|
398
|
+
padding-left: 1.4rem;
|
|
399
|
+
}
|
|
400
|
+
.udc-prose ul {
|
|
401
|
+
list-style: disc;
|
|
402
|
+
}
|
|
403
|
+
.udc-prose ol {
|
|
404
|
+
list-style: decimal;
|
|
405
|
+
}
|
|
406
|
+
.udc-prose li {
|
|
407
|
+
margin: 0.3rem 0;
|
|
408
|
+
}
|
|
409
|
+
.udc-prose li::marker {
|
|
410
|
+
color: var(--color-muted-foreground);
|
|
411
|
+
}
|
|
412
|
+
.udc-prose a:any-link {
|
|
413
|
+
color: var(--color-primary);
|
|
414
|
+
text-decoration: underline;
|
|
415
|
+
text-underline-offset: 2px;
|
|
416
|
+
}
|
|
417
|
+
.udc-prose strong {
|
|
418
|
+
font-weight: 620;
|
|
419
|
+
}
|
|
420
|
+
.udc-prose em {
|
|
421
|
+
color: var(--color-foreground);
|
|
422
|
+
}
|
|
423
|
+
.udc-prose code {
|
|
424
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
425
|
+
font-size: 0.85em;
|
|
426
|
+
padding: 0.1rem 0.35rem;
|
|
427
|
+
border-radius: 4px;
|
|
428
|
+
background: var(--color-muted);
|
|
429
|
+
}
|
|
430
|
+
.udc-prose pre {
|
|
431
|
+
padding: 0.8rem 1rem;
|
|
432
|
+
border-radius: 8px;
|
|
433
|
+
background: var(--color-muted);
|
|
434
|
+
overflow-x: auto;
|
|
435
|
+
}
|
|
436
|
+
.udc-prose pre code {
|
|
437
|
+
padding: 0;
|
|
438
|
+
background: none;
|
|
439
|
+
}
|
|
440
|
+
.udc-prose blockquote {
|
|
441
|
+
padding-left: 1rem;
|
|
442
|
+
border-left: 3px solid var(--color-border-strong);
|
|
443
|
+
color: var(--color-muted-foreground);
|
|
444
|
+
}
|
|
445
|
+
.udc-prose table {
|
|
446
|
+
border-collapse: collapse;
|
|
447
|
+
font-size: 13px;
|
|
448
|
+
}
|
|
449
|
+
.udc-prose th,
|
|
450
|
+
.udc-prose td {
|
|
451
|
+
border: 1px solid var(--color-border);
|
|
452
|
+
padding: 0.35rem 0.7rem;
|
|
453
|
+
text-align: left;
|
|
454
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Row } from "@jsudc/core";
|
|
2
|
+
/** The label with the search term marked. */
|
|
3
|
+
export declare function TreeNodeLabel({ row }: {
|
|
4
|
+
row: Row;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function TreeNode({ row, depth }: {
|
|
7
|
+
row: Row;
|
|
8
|
+
depth: number;
|
|
9
|
+
}): import("react").JSX.Element;
|