@robert-stackflow/oneui 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +72 -2
- package/assets/LUCIDE-LICENSE.txt +43 -0
- package/assets/character-metadata.json +1 -0
- package/assets/emoji.json +1 -0
- package/assets/icon-catalog.json +1 -0
- package/assets/symbols.json +1 -0
- package/components/Accessibility.module.css +8 -0
- package/components/Accordion.d.ts +7 -0
- package/components/Accordion.js +41 -0
- package/components/Accordion.module.css +38 -0
- package/components/Alert.d.ts +9 -0
- package/components/Alert.js +42 -0
- package/components/Alert.module.css +56 -0
- package/components/AppShell.d.ts +30 -0
- package/components/AppShell.js +152 -0
- package/components/AppShell.module.css +239 -0
- package/components/AppearanceSettings.d.ts +7 -0
- package/components/AppearanceSettings.js +201 -0
- package/components/AppearanceSettings.module.css +32 -0
- package/components/Avatar.d.ts +14 -0
- package/components/Avatar.js +69 -0
- package/components/Avatar.module.css +70 -0
- package/components/AvatarGroup.d.ts +15 -0
- package/components/AvatarGroup.js +115 -0
- package/components/AvatarGroup.module.css +54 -0
- package/components/Badge.d.ts +5 -0
- package/components/Badge.js +11 -0
- package/components/Badge.module.css +30 -0
- package/components/BlockedTab.d.ts +4 -0
- package/components/BlockedTab.js +10 -0
- package/components/Breadcrumb.d.ts +16 -0
- package/components/Breadcrumb.js +157 -0
- package/components/Breadcrumb.module.css +97 -0
- package/components/Button.d.ts +13 -0
- package/components/Button.js +52 -0
- package/components/Button.module.css +88 -0
- package/components/Calendar.d.ts +10 -0
- package/components/Calendar.js +260 -0
- package/components/Calendar.module.css +106 -0
- package/components/Card.d.ts +8 -0
- package/components/Card.js +29 -0
- package/components/Card.module.css +47 -0
- package/components/Cascader.d.ts +14 -0
- package/components/Cascader.js +296 -0
- package/components/CatalogIcon.d.ts +3 -0
- package/components/CatalogIcon.js +11 -0
- package/components/CharacterPicker.d.ts +15 -0
- package/components/CharacterPicker.js +200 -0
- package/components/Checkbox.d.ts +12 -0
- package/components/Checkbox.js +82 -0
- package/components/Checkbox.module.css +95 -0
- package/components/ColorField.d.ts +6 -0
- package/components/ColorField.js +61 -0
- package/components/ColorField.module.css +15 -0
- package/components/ColorPicker.d.ts +5 -0
- package/components/ColorPicker.js +188 -0
- package/components/ColorPicker.module.css +90 -0
- package/components/Combobox.d.ts +13 -0
- package/components/Combobox.js +338 -0
- package/components/Combobox.module.css +24 -0
- package/components/CommandPalette.d.ts +25 -0
- package/components/CommandPalette.js +269 -0
- package/components/CommandPalette.module.css +49 -0
- package/components/ContextMenu.d.ts +9 -0
- package/components/ContextMenu.js +363 -0
- package/components/ContextMenu.module.css +42 -0
- package/components/ContextMenuPanel.d.ts +22 -0
- package/components/ContextMenuPanel.js +155 -0
- package/components/ContributionCalendar.d.ts +18 -0
- package/components/ContributionCalendar.js +201 -0
- package/components/ContributionCalendar.module.css +114 -0
- package/components/ContributionCell.d.ts +11 -0
- package/components/ContributionCell.js +41 -0
- package/components/Control.module.css +86 -0
- package/components/DataTable.d.ts +49 -0
- package/components/DataTable.js +220 -0
- package/components/DataTable.module.css +112 -0
- package/components/DatePicker.d.ts +15 -0
- package/components/DatePicker.js +186 -0
- package/components/DatePicker.module.css +85 -0
- package/components/DateRangePicker.d.ts +9 -0
- package/components/DateRangePicker.js +168 -0
- package/components/Descriptions.d.ts +21 -0
- package/components/Descriptions.js +162 -0
- package/components/Descriptions.module.css +117 -0
- package/components/Dialog.d.ts +14 -0
- package/components/Dialog.js +125 -0
- package/components/Dialog.module.css +88 -0
- package/components/DialogVariants.d.ts +27 -0
- package/components/DialogVariants.js +161 -0
- package/components/DialogVariants.module.css +29 -0
- package/components/DisclosureChevron.d.ts +3 -0
- package/components/DisclosureChevron.js +17 -0
- package/components/DisclosureChevron.module.css +17 -0
- package/components/Divider.d.ts +5 -0
- package/components/Divider.js +24 -0
- package/components/Divider.module.css +19 -0
- package/components/Drawer.d.ts +18 -0
- package/components/Drawer.js +145 -0
- package/components/Drawer.module.css +109 -0
- package/components/EmojiPicker.d.ts +6 -0
- package/components/EmojiPicker.js +19 -0
- package/components/EmptyState.d.ts +8 -0
- package/components/EmptyState.js +20 -0
- package/components/EmptyState.module.css +30 -0
- package/components/FieldLabel.d.ts +8 -0
- package/components/FieldLabel.js +20 -0
- package/components/FieldMessages.d.ts +5 -0
- package/components/FieldMessages.js +15 -0
- package/components/FileDropOverlay.d.ts +5 -0
- package/components/FileDropOverlay.js +26 -0
- package/components/FileDropOverlay.module.css +55 -0
- package/components/FileDropZone.d.ts +15 -0
- package/components/FileDropZone.js +113 -0
- package/components/FileDropZone.module.css +6 -0
- package/components/FilePicker.d.ts +10 -0
- package/components/FilePicker.js +59 -0
- package/components/FileSelectionFeedback.d.ts +5 -0
- package/components/FileSelectionFeedback.js +23 -0
- package/components/FileSelectionFeedback.module.css +14 -0
- package/components/FileTree.d.ts +13 -0
- package/components/FileTree.js +125 -0
- package/components/FileTree.module.css +66 -0
- package/components/Form.d.ts +7 -0
- package/components/Form.js +26 -0
- package/components/Form.module.css +7 -0
- package/components/FormErrorSummary.d.ts +6 -0
- package/components/FormErrorSummary.js +27 -0
- package/components/FormErrorSummary.module.css +27 -0
- package/components/FormField.d.ts +9 -0
- package/components/FormField.js +59 -0
- package/components/FormField.module.css +85 -0
- package/components/FormGroup.d.ts +9 -0
- package/components/FormGroup.js +32 -0
- package/components/HierarchyPicker.module.css +181 -0
- package/components/IconButton.d.ts +7 -0
- package/components/IconButton.js +30 -0
- package/components/IconButton.module.css +42 -0
- package/components/IconPicker.d.ts +6 -0
- package/components/IconPicker.js +111 -0
- package/components/Indicator.d.ts +18 -0
- package/components/Indicator.js +97 -0
- package/components/Indicator.module.css +83 -0
- package/components/Input.d.ts +8 -0
- package/components/Input.js +37 -0
- package/components/Input.module.css +40 -0
- package/components/LoadingOverlay.d.ts +6 -0
- package/components/LoadingOverlay.js +16 -0
- package/components/LoadingOverlay.module.css +22 -0
- package/components/LoadingState.d.ts +7 -0
- package/components/LoadingState.js +40 -0
- package/components/LoadingState.module.css +17 -0
- package/components/Menu.d.ts +11 -0
- package/components/Menu.js +82 -0
- package/components/MenuItem.d.ts +15 -0
- package/components/MenuItem.js +51 -0
- package/components/MenuItem.module.css +172 -0
- package/components/MenuItemContent.d.ts +8 -0
- package/components/MenuItemContent.js +19 -0
- package/components/MultiSelect.d.ts +13 -0
- package/components/MultiSelect.js +225 -0
- package/components/MultiSelect.module.css +99 -0
- package/components/NumberInput.d.ts +12 -0
- package/components/NumberInput.js +114 -0
- package/components/NumberInput.module.css +33 -0
- package/components/OptionList.module.css +12 -0
- package/components/Page.d.ts +7 -0
- package/components/Page.js +22 -0
- package/components/Page.module.css +44 -0
- package/components/Pagination.d.ts +11 -0
- package/components/Pagination.js +160 -0
- package/components/Pagination.module.css +70 -0
- package/components/PasswordField.d.ts +9 -0
- package/components/PasswordField.js +102 -0
- package/components/PasswordField.module.css +64 -0
- package/components/Picker.module.css +52 -0
- package/components/PinInput.d.ts +13 -0
- package/components/PinInput.js +173 -0
- package/components/PinInput.module.css +72 -0
- package/components/Placeholder.d.ts +31 -0
- package/components/Placeholder.js +36 -0
- package/components/Popconfirm.d.ts +17 -0
- package/components/Popconfirm.js +159 -0
- package/components/Popconfirm.module.css +49 -0
- package/components/Popover.d.ts +16 -0
- package/components/Popover.js +156 -0
- package/components/Popover.module.css +19 -0
- package/components/Progress.d.ts +5 -0
- package/components/Progress.js +31 -0
- package/components/Progress.module.css +33 -0
- package/components/RadioGroup.d.ts +15 -0
- package/components/RadioGroup.js +73 -0
- package/components/RadioGroup.module.css +87 -0
- package/components/RangeSlider.d.ts +22 -0
- package/components/RangeSlider.js +278 -0
- package/components/RangeSlider.module.css +141 -0
- package/components/ResizablePanel.d.ts +21 -0
- package/components/ResizablePanel.js +219 -0
- package/components/ResizablePanel.module.css +101 -0
- package/components/SearchField.d.ts +11 -0
- package/components/SearchField.js +67 -0
- package/components/SearchField.module.css +37 -0
- package/components/Section.d.ts +6 -0
- package/components/Section.js +18 -0
- package/components/Section.module.css +14 -0
- package/components/Segmented.d.ts +11 -0
- package/components/Segmented.js +77 -0
- package/components/Segmented.module.css +82 -0
- package/components/Select.d.ts +11 -0
- package/components/Select.js +172 -0
- package/components/Select.module.css +24 -0
- package/components/SelectOptionContent.d.ts +5 -0
- package/components/SelectOptionContent.js +20 -0
- package/components/SelectOptionContent.module.css +7 -0
- package/components/SelectTrigger.d.ts +5 -0
- package/components/SelectTrigger.js +32 -0
- package/components/SelectTrigger.module.css +24 -0
- package/components/SelectionTag.d.ts +8 -0
- package/components/SelectionTag.js +39 -0
- package/components/SettingRow.d.ts +7 -0
- package/components/SettingRow.js +19 -0
- package/components/SettingRow.module.css +44 -0
- package/components/SettingsLayout.d.ts +11 -0
- package/components/SettingsLayout.js +61 -0
- package/components/SettingsLayout.module.css +68 -0
- package/components/ShortcutInput.d.ts +8 -0
- package/components/ShortcutInput.js +131 -0
- package/components/ShortcutInput.module.css +39 -0
- package/components/Skeleton.d.ts +5 -0
- package/components/Skeleton.js +19 -0
- package/components/Skeleton.module.css +27 -0
- package/components/SkeletonRows.d.ts +4 -0
- package/components/SkeletonRows.js +19 -0
- package/components/SkeletonRows.module.css +19 -0
- package/components/SkinTonePicker.d.ts +4 -0
- package/components/SkinTonePicker.js +43 -0
- package/components/SkinTonePicker.module.css +50 -0
- package/components/Slider.d.ts +10 -0
- package/components/Slider.js +40 -0
- package/components/Slider.module.css +19 -0
- package/components/Spinner.d.ts +6 -0
- package/components/Spinner.js +31 -0
- package/components/Spinner.module.css +57 -0
- package/components/SplitButton.d.ts +17 -0
- package/components/SplitButton.js +102 -0
- package/components/SplitButton.module.css +56 -0
- package/components/Statistic.d.ts +22 -0
- package/components/Statistic.js +102 -0
- package/components/Statistic.module.css +55 -0
- package/components/Steps.d.ts +19 -0
- package/components/Steps.js +102 -0
- package/components/Steps.module.css +176 -0
- package/components/Switch.d.ts +6 -0
- package/components/Switch.js +25 -0
- package/components/Switch.module.css +59 -0
- package/components/SymbolPicker.d.ts +6 -0
- package/components/SymbolPicker.js +18 -0
- package/components/Tab.module.css +145 -0
- package/components/TabList.d.ts +11 -0
- package/components/TabList.js +51 -0
- package/components/Table.d.ts +16 -0
- package/components/Table.js +30 -0
- package/components/Table.module.css +48 -0
- package/components/TableColumnFilter.d.ts +6 -0
- package/components/TableColumnFilter.js +76 -0
- package/components/TableColumnVisibility.d.ts +11 -0
- package/components/TableColumnVisibility.js +76 -0
- package/components/Tabs.d.ts +13 -0
- package/components/Tabs.js +49 -0
- package/components/Tabs.module.css +3 -0
- package/components/TagInput.d.ts +11 -0
- package/components/TagInput.js +142 -0
- package/components/TagInput.module.css +64 -0
- package/components/Textarea.d.ts +6 -0
- package/components/Textarea.js +24 -0
- package/components/Textarea.module.css +9 -0
- package/components/ThemePicker.d.ts +6 -0
- package/components/ThemePicker.js +78 -0
- package/components/ThemePicker.module.css +178 -0
- package/components/ThemeProvider.d.ts +11 -0
- package/components/ThemeProvider.js +94 -0
- package/components/ThemeStylePicker.d.ts +5 -0
- package/components/ThemeStylePicker.js +22 -0
- package/components/TimeColumns.d.ts +6 -0
- package/components/TimeColumns.js +55 -0
- package/components/TimeColumns.module.css +47 -0
- package/components/Timeline.d.ts +26 -0
- package/components/Timeline.js +131 -0
- package/components/Timeline.module.css +202 -0
- package/components/Toast.d.ts +6 -0
- package/components/Toast.js +181 -0
- package/components/Toast.module.css +175 -0
- package/components/ToastProvider.d.ts +35 -0
- package/components/ToastProvider.js +47 -0
- package/components/Tooltip.d.ts +10 -0
- package/components/Tooltip.js +169 -0
- package/components/Tooltip.module.css +53 -0
- package/components/TreeGuides.d.ts +9 -0
- package/components/TreeGuides.js +39 -0
- package/components/TreeGuides.module.css +45 -0
- package/components/TreeSelect.d.ts +26 -0
- package/components/TreeSelect.js +337 -0
- package/components/TreeTable.d.ts +15 -0
- package/components/TreeTable.js +151 -0
- package/components/TreeTable.module.css +53 -0
- package/components/UIProvider.d.ts +10 -0
- package/components/UIProvider.js +20 -0
- package/components/UnderlinedTab.d.ts +2 -0
- package/components/UnderlinedTab.js +8 -0
- package/components/Upload.d.ts +22 -0
- package/components/Upload.js +165 -0
- package/components/Upload.module.css +36 -0
- package/components/UploadList.d.ts +9 -0
- package/components/UploadList.js +14 -0
- package/components/UploadList.module.css +130 -0
- package/components/UploadListItem.d.ts +13 -0
- package/components/UploadListItem.js +122 -0
- package/components/VirtualPickerList.d.ts +25 -0
- package/components/VirtualPickerList.js +269 -0
- package/components/VirtualPickerList.module.css +93 -0
- package/components/appearance.d.ts +20 -0
- package/components/appearance.js +69 -0
- package/components/characterCatalog.d.ts +9 -0
- package/components/characterCatalog.js +55 -0
- package/components/color.d.ts +7 -0
- package/components/color.js +18 -0
- package/components/contribution.d.ts +57 -0
- package/components/contribution.js +86 -0
- package/components/dateConstraints.d.ts +13 -0
- package/components/dateConstraints.js +44 -0
- package/components/field.d.ts +58 -0
- package/components/field.js +57 -0
- package/components/fileSelection.d.ts +21 -0
- package/components/fileSelection.js +43 -0
- package/components/hierarchy.d.ts +23 -0
- package/components/hierarchy.js +33 -0
- package/components/iconCatalog.d.ts +13 -0
- package/components/iconCatalog.js +80 -0
- package/components/index.d.ts +152 -0
- package/components/index.js +225 -0
- package/components/menuFocus.d.ts +7 -0
- package/components/menuFocus.js +21 -0
- package/components/menuPointer.d.ts +6 -0
- package/components/menuPointer.js +13 -0
- package/components/menuTypes.d.ts +24 -0
- package/components/menuTypes.js +0 -0
- package/components/motion.d.ts +9 -0
- package/components/motion.js +82 -0
- package/components/rangeMath.d.ts +12 -0
- package/components/rangeMath.js +30 -0
- package/components/surfacePortal.d.ts +13 -0
- package/components/surfacePortal.js +22 -0
- package/components/tooltipState.d.ts +5 -0
- package/components/tooltipState.js +48 -0
- package/components/types.d.ts +9 -0
- package/components/types.js +0 -0
- package/components/uploadTypes.d.ts +21 -0
- package/components/uploadTypes.js +0 -0
- package/components/useFormState.d.ts +51 -0
- package/components/useFormState.js +218 -0
- package/components/useHierarchy.d.ts +8 -0
- package/components/useHierarchy.js +80 -0
- package/components/useMenuLayers.d.ts +17 -0
- package/components/useMenuLayers.js +23 -0
- package/components/useModalScrollLock.d.ts +1 -0
- package/components/useModalScrollLock.js +18 -0
- package/components/usePopover.d.ts +8 -0
- package/components/usePopover.js +22 -0
- package/components/useTabIndicator.d.ts +12 -0
- package/components/useTabIndicator.js +63 -0
- package/components/useUploadQueue.d.ts +20 -0
- package/components/useUploadQueue.js +175 -0
- package/package.json +810 -3
- package/styles/base.css +206 -0
- package/styles/blue.css +268 -0
- package/styles/desktop.css +2 -0
- package/styles/minimal.css +337 -0
- package/styles/themes.css +2 -0
- package/styles/web.css +2 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
.choices {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4
|
+
gap: 16px;
|
|
5
|
+
max-width: 680px;
|
|
6
|
+
margin-bottom: 24px;
|
|
7
|
+
}
|
|
8
|
+
.choice {
|
|
9
|
+
padding: 0;
|
|
10
|
+
border: 0;
|
|
11
|
+
background: transparent;
|
|
12
|
+
text-align: left;
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
}
|
|
15
|
+
.preview {
|
|
16
|
+
display: block;
|
|
17
|
+
position: relative;
|
|
18
|
+
height: 130px;
|
|
19
|
+
padding: 15px 17px 0;
|
|
20
|
+
border: 1px solid var(--line);
|
|
21
|
+
border-radius: 12px;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
background: var(--soft);
|
|
24
|
+
transition:
|
|
25
|
+
border-color var(--motion-hover),
|
|
26
|
+
box-shadow var(--motion-hover);
|
|
27
|
+
}
|
|
28
|
+
.choice:hover .preview {
|
|
29
|
+
border-color: color-mix(in srgb, var(--fg) 25%, var(--surface));
|
|
30
|
+
}
|
|
31
|
+
.choice[aria-pressed="true"] .preview {
|
|
32
|
+
border-color: var(--accent);
|
|
33
|
+
box-shadow: 0 0 0 1px var(--accent);
|
|
34
|
+
}
|
|
35
|
+
.window,
|
|
36
|
+
.second {
|
|
37
|
+
--mini-bg: #fff;
|
|
38
|
+
--mini-side: #f5f5f5;
|
|
39
|
+
--mini-line: #e7e7e7;
|
|
40
|
+
display: block;
|
|
41
|
+
height: 112px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
background: var(--mini-bg);
|
|
44
|
+
border: 1px solid var(--mini-line);
|
|
45
|
+
border-radius: 7px;
|
|
46
|
+
box-shadow: 0 5px 15px #0000000c;
|
|
47
|
+
}
|
|
48
|
+
.preview[data-mode="dark"] .window,
|
|
49
|
+
.second {
|
|
50
|
+
--mini-bg: #262626;
|
|
51
|
+
--mini-side: #202020;
|
|
52
|
+
--mini-line: #3b3b3b;
|
|
53
|
+
}
|
|
54
|
+
.bar {
|
|
55
|
+
height: 17px;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 3px;
|
|
59
|
+
padding-left: 7px;
|
|
60
|
+
border-bottom: 1px solid var(--mini-line);
|
|
61
|
+
}
|
|
62
|
+
.bar i {
|
|
63
|
+
width: 3px;
|
|
64
|
+
height: 3px;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
background: var(--mini-line);
|
|
67
|
+
}
|
|
68
|
+
.body {
|
|
69
|
+
display: grid;
|
|
70
|
+
grid-template-columns: 30% 1fr;
|
|
71
|
+
height: 100%;
|
|
72
|
+
}
|
|
73
|
+
.rail {
|
|
74
|
+
display: grid;
|
|
75
|
+
align-content: start;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
background: var(--mini-side);
|
|
78
|
+
padding: 12px 6px;
|
|
79
|
+
border-right: 1px solid var(--mini-line);
|
|
80
|
+
}
|
|
81
|
+
.rail b {
|
|
82
|
+
height: 4px;
|
|
83
|
+
border-radius: 3px;
|
|
84
|
+
background: var(--mini-line);
|
|
85
|
+
}
|
|
86
|
+
.rail b:first-child {
|
|
87
|
+
height: 10px;
|
|
88
|
+
}
|
|
89
|
+
.content {
|
|
90
|
+
padding: 13px 10px;
|
|
91
|
+
display: grid;
|
|
92
|
+
align-content: start;
|
|
93
|
+
gap: 7px;
|
|
94
|
+
}
|
|
95
|
+
.content > i {
|
|
96
|
+
height: 4px;
|
|
97
|
+
border-radius: 3px;
|
|
98
|
+
background: var(--mini-line);
|
|
99
|
+
}
|
|
100
|
+
.content > i:first-child {
|
|
101
|
+
width: 50%;
|
|
102
|
+
height: 6px;
|
|
103
|
+
margin-bottom: 3px;
|
|
104
|
+
}
|
|
105
|
+
.content > span {
|
|
106
|
+
display: flex;
|
|
107
|
+
gap: 5px;
|
|
108
|
+
}
|
|
109
|
+
.content b {
|
|
110
|
+
width: 50%;
|
|
111
|
+
height: 23px;
|
|
112
|
+
background: var(--mini-side);
|
|
113
|
+
border: 1px solid var(--mini-line);
|
|
114
|
+
border-radius: 3px;
|
|
115
|
+
}
|
|
116
|
+
.preview[data-mode="system"] .window {
|
|
117
|
+
width: 83%;
|
|
118
|
+
transform: translate(-4px, -3px);
|
|
119
|
+
}
|
|
120
|
+
.second {
|
|
121
|
+
position: absolute;
|
|
122
|
+
left: 30%;
|
|
123
|
+
right: 10px;
|
|
124
|
+
top: 42px;
|
|
125
|
+
}
|
|
126
|
+
.caption {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: 7px;
|
|
130
|
+
padding: 11px 1px 0;
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
}
|
|
133
|
+
.caption > svg {
|
|
134
|
+
width: 14px;
|
|
135
|
+
height: 14px;
|
|
136
|
+
color: var(--muted);
|
|
137
|
+
}
|
|
138
|
+
.check {
|
|
139
|
+
margin-left: auto;
|
|
140
|
+
display: grid;
|
|
141
|
+
place-items: center;
|
|
142
|
+
width: 16px;
|
|
143
|
+
height: 16px;
|
|
144
|
+
border: 1px solid var(--line);
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
}
|
|
147
|
+
.check svg {
|
|
148
|
+
width: 11px;
|
|
149
|
+
height: 11px;
|
|
150
|
+
opacity: 0;
|
|
151
|
+
}
|
|
152
|
+
.check[data-selected="true"] {
|
|
153
|
+
background: var(--accent);
|
|
154
|
+
border-color: var(--accent);
|
|
155
|
+
color: var(--on-accent);
|
|
156
|
+
}
|
|
157
|
+
.check[data-selected="true"] svg {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
}
|
|
160
|
+
@media (max-width: 650px) {
|
|
161
|
+
.choices {
|
|
162
|
+
gap: 10px;
|
|
163
|
+
}
|
|
164
|
+
.preview {
|
|
165
|
+
height: 100px;
|
|
166
|
+
padding: 12px 8px 0;
|
|
167
|
+
}
|
|
168
|
+
.window {
|
|
169
|
+
height: 90px;
|
|
170
|
+
}
|
|
171
|
+
.caption {
|
|
172
|
+
font-size: 11px;
|
|
173
|
+
}
|
|
174
|
+
.second {
|
|
175
|
+
left: 25%;
|
|
176
|
+
top: 36px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type AppearancePreferences } from "./appearance";
|
|
3
|
+
export type UITheme = "minimal" | "blue";
|
|
4
|
+
export type ColorMode = "light" | "dark" | "system";
|
|
5
|
+
/** One document-level provider; persistence belongs to the host application. */
|
|
6
|
+
export declare function ThemeProvider({ theme: suppliedTheme, mode: suppliedMode, appearance, children, }: {
|
|
7
|
+
theme?: UITheme;
|
|
8
|
+
mode?: ColorMode;
|
|
9
|
+
appearance?: AppearancePreferences;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { UIProvider } from "./UIProvider.js";
|
|
4
|
+
import {
|
|
5
|
+
appearanceDefaults,
|
|
6
|
+
normalizeAppearance
|
|
7
|
+
} from "./appearance.js";
|
|
8
|
+
function ThemeProvider({
|
|
9
|
+
theme: suppliedTheme = "minimal",
|
|
10
|
+
mode: suppliedMode = "system",
|
|
11
|
+
appearance,
|
|
12
|
+
children
|
|
13
|
+
}) {
|
|
14
|
+
const theme = appearance?.designTheme ?? suppliedTheme, mode = appearance?.mode ?? suppliedMode;
|
|
15
|
+
const previousPalette = useRef("");
|
|
16
|
+
useLayoutEffect(() => {
|
|
17
|
+
const root = document.documentElement, media = matchMedia("(prefers-color-scheme: dark)");
|
|
18
|
+
let timer;
|
|
19
|
+
const apply = () => {
|
|
20
|
+
const dark = mode === "system" ? media.matches : mode === "dark";
|
|
21
|
+
root.dataset.uiTheme = theme;
|
|
22
|
+
root.dataset.theme = dark ? "dark" : "light";
|
|
23
|
+
const prefs = normalizeAppearance(
|
|
24
|
+
appearance ?? appearanceDefaults(theme),
|
|
25
|
+
theme
|
|
26
|
+
), baseline = appearanceDefaults(theme);
|
|
27
|
+
const palette = [
|
|
28
|
+
theme,
|
|
29
|
+
dark,
|
|
30
|
+
prefs.accent,
|
|
31
|
+
prefs.lightBackground,
|
|
32
|
+
prefs.darkBackground,
|
|
33
|
+
prefs.lightForeground,
|
|
34
|
+
prefs.darkForeground
|
|
35
|
+
].join("|");
|
|
36
|
+
if (previousPalette.current && previousPalette.current !== palette)
|
|
37
|
+
root.dataset.themeChanging = "true";
|
|
38
|
+
previousPalette.current = palette;
|
|
39
|
+
root.dataset.themeReady = "true";
|
|
40
|
+
root.dataset.motion = prefs.motion ? "on" : "off";
|
|
41
|
+
root.dataset.density = prefs.density;
|
|
42
|
+
root.dataset.accent = {
|
|
43
|
+
"#397c67": "green",
|
|
44
|
+
"#505865": "neutral",
|
|
45
|
+
"#a9607c": "rose"
|
|
46
|
+
}[prefs.accent] ?? "indigo";
|
|
47
|
+
delete root.dataset.radius;
|
|
48
|
+
const rgb = prefs.accent.slice(1).match(/../g).map((v) => parseInt(v, 16));
|
|
49
|
+
const customAccent = prefs.accent.toLowerCase() !== baseline.accent.toLowerCase();
|
|
50
|
+
const onAccent = rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114 > 155 ? "#141414" : "#fff";
|
|
51
|
+
const background = dark ? "darkBackground" : "lightBackground", foreground = dark ? "darkForeground" : "lightForeground";
|
|
52
|
+
const overrides = {
|
|
53
|
+
"--surface": prefs[background] !== baseline[background] ? prefs[background] : void 0,
|
|
54
|
+
"--fg": prefs[foreground] !== baseline[foreground] ? prefs[foreground] : void 0,
|
|
55
|
+
"--text": prefs[foreground] !== baseline[foreground] ? prefs[foreground] : void 0,
|
|
56
|
+
"--accent": customAccent ? prefs.accent : void 0,
|
|
57
|
+
"--on-accent": customAccent ? onAccent : void 0,
|
|
58
|
+
"--accent-soft": customAccent ? `color-mix(in srgb, ${prefs.accent} 12%, var(--surface))` : void 0,
|
|
59
|
+
"--accent-fill": customAccent ? prefs.accent : void 0,
|
|
60
|
+
"--accent-fill-hover": customAccent ? `color-mix(in srgb, ${prefs.accent} 86%, var(--surface))` : void 0,
|
|
61
|
+
"--on-accent-fill": customAccent ? onAccent : void 0,
|
|
62
|
+
"--switch-on": customAccent ? prefs.accent : void 0,
|
|
63
|
+
"--switch-on-hover": customAccent ? `color-mix(in srgb, ${prefs.accent} 88%, var(--fg))` : void 0,
|
|
64
|
+
"--switch-thumb-on": customAccent ? onAccent : void 0,
|
|
65
|
+
"--radius": prefs.radius !== baseline.radius ? prefs.radius + "px" : void 0,
|
|
66
|
+
"--radius-lg": prefs.radius !== baseline.radius ? "calc(var(--radius) + 4px)" : void 0,
|
|
67
|
+
"--ui-font": prefs.font === "system" ? void 0 : '"' + prefs.font + '", sans-serif'
|
|
68
|
+
};
|
|
69
|
+
for (const [key, value] of Object.entries(overrides)) {
|
|
70
|
+
if (value) root.style.setProperty(key, value);
|
|
71
|
+
else root.style.removeProperty(key);
|
|
72
|
+
}
|
|
73
|
+
clearTimeout(timer);
|
|
74
|
+
timer = setTimeout(() => delete root.dataset.themeChanging, 300);
|
|
75
|
+
};
|
|
76
|
+
apply();
|
|
77
|
+
media.addEventListener("change", apply);
|
|
78
|
+
return () => {
|
|
79
|
+
media.removeEventListener("change", apply);
|
|
80
|
+
clearTimeout(timer);
|
|
81
|
+
};
|
|
82
|
+
}, [theme, mode, appearance]);
|
|
83
|
+
return appearance ? /* @__PURE__ */ jsx(
|
|
84
|
+
UIProvider,
|
|
85
|
+
{
|
|
86
|
+
toastPosition: appearance.toastPosition,
|
|
87
|
+
tooltipPlacement: appearance.tooltipPlacement,
|
|
88
|
+
children
|
|
89
|
+
}
|
|
90
|
+
) : children;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
ThemeProvider
|
|
94
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Segmented } from "./Segmented.js";
|
|
3
|
+
function ThemeStylePicker({
|
|
4
|
+
value,
|
|
5
|
+
onChange
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Segmented,
|
|
9
|
+
{
|
|
10
|
+
label: "\u754C\u9762\u98CE\u683C",
|
|
11
|
+
value,
|
|
12
|
+
onChange: (value2) => onChange(value2),
|
|
13
|
+
options: [
|
|
14
|
+
{ value: "minimal", label: "\u6781\u7B80" },
|
|
15
|
+
{ value: "blue", label: "\u84DD\u767D" }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
ThemeStylePicker
|
|
22
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
|
+
import s from "./TimeColumns.module.css";
|
|
4
|
+
function TimeColumns({
|
|
5
|
+
value,
|
|
6
|
+
onChange,
|
|
7
|
+
seconds = false,
|
|
8
|
+
active = true
|
|
9
|
+
}) {
|
|
10
|
+
const root = useRef(null), parts = value.split(":");
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
if (active)
|
|
13
|
+
root.current?.querySelectorAll('[aria-selected="true"]').forEach((node) => {
|
|
14
|
+
const list = node.parentElement;
|
|
15
|
+
list.scrollTop = node.offsetTop - list.offsetTop - list.clientHeight / 2 + node.clientHeight / 2;
|
|
16
|
+
});
|
|
17
|
+
}, [active]);
|
|
18
|
+
const choose = (part, next) => {
|
|
19
|
+
const updated = [parts[0] || "00", parts[1] || "00", parts[2] || "00"];
|
|
20
|
+
updated[part] = String(next).padStart(2, "0");
|
|
21
|
+
onChange(updated.slice(0, seconds ? 3 : 2).join(":"));
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx("div", { ref: root, className: s.columns, children: ["\u5C0F\u65F6", "\u5206\u949F", ...seconds ? ["\u79D2"] : []].map((name, part) => /* @__PURE__ */ jsxs("div", { className: s.column, children: [
|
|
24
|
+
/* @__PURE__ */ jsx("span", { children: name }),
|
|
25
|
+
/* @__PURE__ */ jsx("div", { role: "listbox", "aria-label": name, children: Array.from({ length: part ? 60 : 24 }, (_, n) => /* @__PURE__ */ jsx(
|
|
26
|
+
"button",
|
|
27
|
+
{
|
|
28
|
+
type: "button",
|
|
29
|
+
role: "option",
|
|
30
|
+
"data-autofocus": part === 0 && n === Number(parts[part] || 0) || void 0,
|
|
31
|
+
"aria-selected": n === Number(parts[part] || 0),
|
|
32
|
+
tabIndex: n === Number(parts[part] || 0) ? 0 : -1,
|
|
33
|
+
onClick: () => choose(part, n),
|
|
34
|
+
onKeyDown: (e) => {
|
|
35
|
+
const count = part ? 60 : 24;
|
|
36
|
+
if (["ArrowUp", "ArrowDown", "Home", "End"].includes(e.key)) {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
const next = e.key === "Home" ? 0 : e.key === "End" ? count - 1 : (n + (e.key === "ArrowDown" ? 1 : count - 1)) % count;
|
|
39
|
+
choose(part, next);
|
|
40
|
+
e.currentTarget.parentElement?.children[next]?.focus();
|
|
41
|
+
} else if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
const columns = root.current.querySelectorAll('[role="listbox"]');
|
|
44
|
+
columns[(part + (e.key === "ArrowRight" ? 1 : columns.length - 1)) % columns.length].querySelector('[aria-selected="true"]')?.focus();
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
children: String(n).padStart(2, "0")
|
|
48
|
+
},
|
|
49
|
+
n
|
|
50
|
+
)) })
|
|
51
|
+
] }, name)) });
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
TimeColumns
|
|
55
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.columns {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 8px;
|
|
4
|
+
padding: 4px;
|
|
5
|
+
min-width: 170px;
|
|
6
|
+
}
|
|
7
|
+
.column {
|
|
8
|
+
flex: 1;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
.column > span {
|
|
13
|
+
display: block;
|
|
14
|
+
padding: 6px 0 10px;
|
|
15
|
+
font-size: 11px;
|
|
16
|
+
color: var(--muted);
|
|
17
|
+
}
|
|
18
|
+
.column > div {
|
|
19
|
+
position: relative;
|
|
20
|
+
height: 216px;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
overscroll-behavior: contain;
|
|
23
|
+
scrollbar-gutter: stable;
|
|
24
|
+
padding: 2px 3px;
|
|
25
|
+
}
|
|
26
|
+
.column button {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
padding: 6px;
|
|
30
|
+
border: 0;
|
|
31
|
+
border-radius: 5px;
|
|
32
|
+
margin: 2px 0;
|
|
33
|
+
background: transparent;
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
font-variant-numeric: tabular-nums;
|
|
36
|
+
}
|
|
37
|
+
.column button:hover {
|
|
38
|
+
background: var(--hover);
|
|
39
|
+
}
|
|
40
|
+
.column button[aria-selected="true"] {
|
|
41
|
+
background: var(--selected);
|
|
42
|
+
font-weight: 550;
|
|
43
|
+
}
|
|
44
|
+
.column button:focus-visible {
|
|
45
|
+
outline: 2px solid var(--accent);
|
|
46
|
+
outline-offset: -2px;
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type TimelineItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
time?: ReactNode;
|
|
7
|
+
dateTime?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
status?: "default" | "success" | "warning" | "error" | "pending";
|
|
10
|
+
color?: string;
|
|
11
|
+
content?: ReactNode;
|
|
12
|
+
collapsible?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type TimelineProps = {
|
|
15
|
+
items: TimelineItem[];
|
|
16
|
+
label?: string;
|
|
17
|
+
mode?: "left" | "alternate";
|
|
18
|
+
reverse?: boolean;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
pending?: ReactNode;
|
|
21
|
+
emptyText?: ReactNode;
|
|
22
|
+
expandedKeys?: string[];
|
|
23
|
+
defaultExpandedKeys?: string[];
|
|
24
|
+
onExpandedChange?(keys: string[]): void;
|
|
25
|
+
};
|
|
26
|
+
export declare function Timeline({ items, label, mode, reverse, loading, pending, emptyText, expandedKeys, defaultExpandedKeys, onExpandedChange, }: TimelineProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useState } from "react";
|
|
3
|
+
import { Check, CircleAlert } from "lucide-react";
|
|
4
|
+
import { DisclosureChevron } from "./DisclosureChevron.js";
|
|
5
|
+
import { Spinner } from "./Spinner.js";
|
|
6
|
+
import { Skeleton } from "./Skeleton.js";
|
|
7
|
+
import s from "./Timeline.module.css";
|
|
8
|
+
import { SurfacePortalContext, useSurfacePortal } from "./surfacePortal.js";
|
|
9
|
+
function Timeline({
|
|
10
|
+
items,
|
|
11
|
+
label = "\u65F6\u95F4\u7EBF",
|
|
12
|
+
mode = "left",
|
|
13
|
+
reverse = false,
|
|
14
|
+
loading = false,
|
|
15
|
+
pending,
|
|
16
|
+
emptyText = "\u6682\u65E0\u8BB0\u5F55",
|
|
17
|
+
expandedKeys,
|
|
18
|
+
defaultExpandedKeys = [],
|
|
19
|
+
onExpandedChange
|
|
20
|
+
}) {
|
|
21
|
+
const owner = useSurfacePortal();
|
|
22
|
+
const id = useId(), [localExpanded, setLocalExpanded] = useState(defaultExpandedKeys), expanded = expandedKeys ?? localExpanded, ordered = reverse ? [...items].reverse() : items;
|
|
23
|
+
const toggle = (key) => {
|
|
24
|
+
const next = expanded.includes(key) ? expanded.filter((value) => value !== key) : [...expanded, key];
|
|
25
|
+
if (expandedKeys === void 0) setLocalExpanded(next);
|
|
26
|
+
onExpandedChange?.(next);
|
|
27
|
+
};
|
|
28
|
+
const rows = ordered.map((item, index) => {
|
|
29
|
+
const open = !item.collapsible || expanded.includes(item.key), contentId = id + "-" + encodeURIComponent(item.key);
|
|
30
|
+
return /* @__PURE__ */ jsxs(
|
|
31
|
+
"li",
|
|
32
|
+
{
|
|
33
|
+
className: s.item,
|
|
34
|
+
"data-side": mode === "alternate" && index % 2 === 0 ? "left" : "right",
|
|
35
|
+
"data-status": item.status || "default",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: s.marker,
|
|
41
|
+
style: item.color ? { "--timeline-color": item.color } : void 0,
|
|
42
|
+
children: /* @__PURE__ */ jsx("span", { className: s.dot, "aria-hidden": "true", children: item.icon || (item.status === "pending" ? /* @__PURE__ */ jsx(Spinner, { size: 16, decorative: true }) : item.status === "success" ? /* @__PURE__ */ jsx(Check, {}) : item.status === "error" || item.status === "warning" ? /* @__PURE__ */ jsx(CircleAlert, {}) : /* @__PURE__ */ jsx("i", {})) })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: s.body, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("div", { className: s.heading, children: [
|
|
47
|
+
/* @__PURE__ */ jsx("span", { className: s.title, children: item.title }),
|
|
48
|
+
item.status && item.status !== "default" && /* @__PURE__ */ jsx("span", { className: s.sr, children: {
|
|
49
|
+
success: "\u5DF2\u5B8C\u6210",
|
|
50
|
+
error: "\u5931\u8D25",
|
|
51
|
+
warning: "\u8B66\u544A",
|
|
52
|
+
pending: "\u5904\u7406\u4E2D"
|
|
53
|
+
}[item.status] }),
|
|
54
|
+
item.collapsible && item.content != null && /* @__PURE__ */ jsx(
|
|
55
|
+
"button",
|
|
56
|
+
{
|
|
57
|
+
type: "button",
|
|
58
|
+
className: s.toggle,
|
|
59
|
+
"aria-label": `${open ? "\u6536\u8D77" : "\u5C55\u5F00"} ${typeof item.title === "string" ? item.title : item.key}`,
|
|
60
|
+
"aria-expanded": open,
|
|
61
|
+
"aria-controls": contentId,
|
|
62
|
+
onClick: () => toggle(item.key),
|
|
63
|
+
children: /* @__PURE__ */ jsx(DisclosureChevron, { expanded: open })
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
item.time != null && /* @__PURE__ */ jsx("time", { className: s.time, dateTime: item.dateTime, children: item.time }),
|
|
68
|
+
item.description != null && /* @__PURE__ */ jsx("div", { className: s.description, children: item.description }),
|
|
69
|
+
item.content != null && /* @__PURE__ */ jsx(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
id: contentId,
|
|
73
|
+
className: s.details,
|
|
74
|
+
"data-open": open,
|
|
75
|
+
"aria-hidden": !open || void 0,
|
|
76
|
+
inert: !open,
|
|
77
|
+
children: /* @__PURE__ */ jsx(
|
|
78
|
+
SurfacePortalContext,
|
|
79
|
+
{
|
|
80
|
+
value: {
|
|
81
|
+
host: owner?.host || null,
|
|
82
|
+
active: owner?.active !== false && open
|
|
83
|
+
},
|
|
84
|
+
children: /* @__PURE__ */ jsx("div", { className: s.clip, children: /* @__PURE__ */ jsx("div", { className: s.content, children: item.content }) })
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] })
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
item.key
|
|
93
|
+
);
|
|
94
|
+
});
|
|
95
|
+
if (!items.length && !loading && !pending)
|
|
96
|
+
return /* @__PURE__ */ jsx("div", { role: "status", className: s.empty, children: emptyText });
|
|
97
|
+
return /* @__PURE__ */ jsxs(
|
|
98
|
+
"ol",
|
|
99
|
+
{
|
|
100
|
+
"aria-label": label,
|
|
101
|
+
"aria-busy": loading || void 0,
|
|
102
|
+
className: s.timeline,
|
|
103
|
+
"data-mode": mode,
|
|
104
|
+
children: [
|
|
105
|
+
!items.length && loading ? Array.from({ length: 3 }, (_, index) => /* @__PURE__ */ jsxs(
|
|
106
|
+
"li",
|
|
107
|
+
{
|
|
108
|
+
className: s.item,
|
|
109
|
+
"data-side": "right",
|
|
110
|
+
"aria-hidden": "true",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsx("div", { className: s.marker, children: /* @__PURE__ */ jsx("span", { className: s.dot, children: /* @__PURE__ */ jsx("i", {}) }) }),
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: s.body, children: [
|
|
114
|
+
/* @__PURE__ */ jsx(Skeleton, { width: "45%" }),
|
|
115
|
+
/* @__PURE__ */ jsx("div", { className: s.skeleton, children: /* @__PURE__ */ jsx(Skeleton, { width: "25%" }) })
|
|
116
|
+
] })
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
index
|
|
120
|
+
)) : rows,
|
|
121
|
+
(pending || loading && !!items.length) && /* @__PURE__ */ jsxs("li", { className: s.item, "data-side": "right", children: [
|
|
122
|
+
/* @__PURE__ */ jsx("div", { className: s.marker, children: /* @__PURE__ */ jsx("span", { className: s.dot, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Spinner, { size: 16, decorative: true }) }) }),
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: s.body, role: "status", children: typeof pending === "boolean" || !pending ? "\u6B63\u5728\u52A0\u8F7D\u66F4\u591A\u2026" : pending })
|
|
124
|
+
] })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
export {
|
|
130
|
+
Timeline
|
|
131
|
+
};
|