@seanyeh77/ui 0.43.1 → 0.45.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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/bundle.js +20 -20
- package/dist/components/AccentPicker/AccentPicker.d.ts +1 -0
- package/dist/components/AccentPicker/AccentPicker.js +92 -72
- package/dist/components/AccentPicker/AccentPicker.js.map +1 -1
- package/dist/components/ActionBar/ActionBar.d.ts +2 -0
- package/dist/components/ActionBar/ActionBar.js.map +1 -1
- package/dist/components/AiMark/AiMark.d.ts +1 -0
- package/dist/components/AiMark/AiMark.js.map +1 -1
- package/dist/components/Alert/Alert.d.ts +6 -3
- package/dist/components/Alert/Alert.js +18 -14
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/AppShell/AppShell.d.ts +10 -4
- package/dist/components/AppShell/AppShell.js +30 -19
- package/dist/components/AppShell/AppShell.js.map +1 -1
- package/dist/components/Badge/Badge.d.ts +24 -7
- package/dist/components/Badge/Badge.js +78 -21
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/BarChart/BarChart.d.ts +14 -1
- package/dist/components/BarChart/BarChart.js +88 -59
- package/dist/components/BarChart/BarChart.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Button/Button.d.ts +4 -1
- package/dist/components/Button/Button.js +17 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Calendar/Calendar.d.ts +11 -2
- package/dist/components/Calendar/Calendar.js +16 -5
- package/dist/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -0
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +24 -8
- package/dist/components/Checkbox/Checkbox.js +22 -9
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CodeView/CodeView.d.ts +3 -0
- package/dist/components/CodeView/CodeView.js +6 -6
- package/dist/components/CodeView/CodeView.js.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +16 -4
- package/dist/components/CommandPalette/CommandPalette.js +38 -11
- package/dist/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/components/ConsoleLayout/ConsoleLayout.d.ts +2 -3
- package/dist/components/ConsoleLayout/ConsoleLayout.js +4 -1
- package/dist/components/ConsoleLayout/ConsoleLayout.js.map +1 -1
- package/dist/components/DangerZone/DangerZone.d.ts +3 -2
- package/dist/components/DangerZone/DangerZone.js +3 -2
- package/dist/components/DangerZone/DangerZone.js.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +16 -4
- package/dist/components/DataTable/DataTable.js +346 -208
- package/dist/components/DataTable/DataTable.js.map +1 -1
- package/dist/components/DataTable/SortButton.js +48 -5
- package/dist/components/DataTable/SortButton.js.map +1 -1
- package/dist/components/DataTable/filters.js +2 -1
- package/dist/components/DataTable/filters.js.map +1 -1
- package/dist/components/DataTable/parts.js +1 -1
- package/dist/components/DataTable/parts.js.map +1 -1
- package/dist/components/DataTable/types.d.ts +10 -3
- package/dist/components/DatePicker/DatePicker.d.ts +9 -7
- package/dist/components/DatePicker/DatePicker.js +16 -6
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +12 -7
- package/dist/components/DateRangePicker/DateRangePicker.js +81 -45
- package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/DetailList/DetailList.d.ts +2 -0
- package/dist/components/DetailList/DetailList.js.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +56 -20
- package/dist/components/Dialog/Dialog.js +46 -14
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +18 -5
- package/dist/components/Drawer/Drawer.js +87 -24
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +2 -2
- package/dist/components/EmptyState/EmptyState.js +3 -2
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/ErrorPage/ErrorPage.d.ts +4 -0
- package/dist/components/ErrorPage/ErrorPage.js +2 -1
- package/dist/components/ErrorPage/ErrorPage.js.map +1 -1
- package/dist/components/EventTimeline/EventTimeline.d.ts +23 -5
- package/dist/components/EventTimeline/EventTimeline.js +64 -20
- package/dist/components/EventTimeline/EventTimeline.js.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +10 -2
- package/dist/components/FileUpload/FileUpload.js +5 -2
- package/dist/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/components/FormGrid/FormGrid.d.ts +3 -1
- package/dist/components/FormGrid/FormGrid.js +5 -2
- package/dist/components/FormGrid/FormGrid.js.map +1 -1
- package/dist/components/Graph/Graph.d.ts +1 -0
- package/dist/components/Graph/Graph.js +8 -4
- package/dist/components/Graph/Graph.js.map +1 -1
- package/dist/components/Grid/Grid.d.ts +11 -4
- package/dist/components/Grid/Grid.js +14 -2
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -1
- package/dist/components/IconButton/IconButton.js +10 -1
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/InlineCode/InlineCode.d.ts +6 -0
- package/dist/components/InlineCode/InlineCode.js +10 -6
- package/dist/components/InlineCode/InlineCode.js.map +1 -1
- package/dist/components/KpiCard/KpiCard.d.ts +7 -3
- package/dist/components/KpiCard/KpiCard.js +40 -25
- package/dist/components/KpiCard/KpiCard.js.map +1 -1
- package/dist/components/LayerGraph/LayerGraph.d.ts +68 -23
- package/dist/components/LayerGraph/LayerGraph.js +178 -97
- package/dist/components/LayerGraph/LayerGraph.js.map +1 -1
- package/dist/components/LineChart/LineChart.d.ts +10 -3
- package/dist/components/LineChart/LineChart.js +55 -23
- package/dist/components/LineChart/LineChart.js.map +1 -1
- package/dist/components/Link/Link.d.ts +17 -0
- package/dist/components/Link/Link.js +47 -0
- package/dist/components/Link/Link.js.map +1 -0
- package/dist/components/LoadingBar/LoadingBar.d.ts +1 -0
- package/dist/components/LoadingBar/LoadingBar.js.map +1 -1
- package/dist/components/LoginCard/LoginCard.d.ts +9 -3
- package/dist/components/LoginCard/LoginCard.js +99 -78
- package/dist/components/LoginCard/LoginCard.js.map +1 -1
- package/dist/components/Markdown/Markdown.d.ts +1 -0
- package/dist/components/Markdown/Markdown.js +20 -2
- package/dist/components/Markdown/Markdown.js.map +1 -1
- package/dist/components/Menu/Menu.d.ts +4 -2
- package/dist/components/Menu/Menu.js +43 -33
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Meter/Meter.d.ts +4 -0
- package/dist/components/Meter/Meter.js.map +1 -1
- package/dist/components/MobileTabBar/MobileTabBar.d.ts +3 -0
- package/dist/components/MobileTabBar/MobileTabBar.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -6
- package/dist/components/MultiSelect/MultiSelect.js +27 -9
- package/dist/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/NotificationBell/NotificationBell.d.ts +4 -0
- package/dist/components/NotificationBell/NotificationBell.js +4 -3
- package/dist/components/NotificationBell/NotificationBell.js.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +34 -0
- package/dist/components/PageHeader/PageHeader.js +68 -0
- package/dist/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +11 -4
- package/dist/components/Popover/Popover.js +17 -7
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressRing/ProgressRing.d.ts +1 -0
- package/dist/components/ProgressRing/ProgressRing.js.map +1 -1
- package/dist/components/ProjectSwitcher/ProjectSwitcher.d.ts +5 -1
- package/dist/components/ProjectSwitcher/ProjectSwitcher.js +16 -3
- package/dist/components/ProjectSwitcher/ProjectSwitcher.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +22 -5
- package/dist/components/RadioGroup/RadioGroup.js +48 -47
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/RelativeTime/RelativeTime.d.ts +10 -0
- package/dist/components/RelativeTime/RelativeTime.js +44 -0
- package/dist/components/RelativeTime/RelativeTime.js.map +1 -0
- package/dist/components/SearchField/SearchField.d.ts +2 -0
- package/dist/components/SearchField/SearchField.js.map +1 -1
- package/dist/components/Section/Section.d.ts +4 -0
- package/dist/components/Section/Section.js +8 -22
- package/dist/components/Section/Section.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +22 -9
- package/dist/components/SegmentedControl/SegmentedControl.js +20 -19
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/Select/Select.d.ts +7 -11
- package/dist/components/Select/Select.js +7 -3
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/SettingsLayout/SettingsLayout.d.ts +33 -4
- package/dist/components/SettingsLayout/SettingsLayout.js +62 -14
- package/dist/components/SettingsLayout/SettingsLayout.js.map +1 -1
- package/dist/components/SideNav/SideNav.d.ts +2 -0
- package/dist/components/SideNav/SideNav.js +3 -3
- package/dist/components/SideNav/SideNav.js.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +1 -0
- package/dist/components/SplitPane/SplitPane.js.map +1 -1
- package/dist/components/StatusBand/StatusBand.d.ts +1 -0
- package/dist/components/StatusBand/StatusBand.js.map +1 -1
- package/dist/components/Suggestion/Suggestion.d.ts +6 -0
- package/dist/components/Suggestion/Suggestion.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +13 -3
- package/dist/components/Switch/Switch.js +16 -7
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +8 -1
- package/dist/components/Tabs/Tabs.js +6 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tag/Tag.d.ts +15 -7
- package/dist/components/Tag/Tag.js +22 -10
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Term/Term.d.ts +8 -3
- package/dist/components/Term/Term.js +1 -1
- package/dist/components/Term/Term.js.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +6 -9
- package/dist/components/TextArea/TextArea.js +25 -12
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/TextField/TextField.d.ts +8 -11
- package/dist/components/TextField/TextField.js +9 -7
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/ThemePicker/ThemePicker.d.ts +1 -0
- package/dist/components/ThemePicker/ThemePicker.js +35 -34
- package/dist/components/ThemePicker/ThemePicker.js.map +1 -1
- package/dist/components/TimeControl/TimeControl.d.ts +1 -0
- package/dist/components/TimeControl/TimeControl.js.map +1 -1
- package/dist/components/Toast/Toast.d.ts +56 -3
- package/dist/components/Toast/Toast.js +191 -8
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/TopBar/TopBar.d.ts +6 -2
- package/dist/components/TopBar/TopBar.js +7 -1
- package/dist/components/TopBar/TopBar.js.map +1 -1
- package/dist/components/Tour/Tour.d.ts +14 -3
- package/dist/components/Tour/Tour.js +26 -14
- package/dist/components/Tour/Tour.js.map +1 -1
- package/dist/components/TreeList/TreeList.d.ts +28 -4
- package/dist/components/TreeList/TreeList.js +32 -20
- package/dist/components/TreeList/TreeList.js.map +1 -1
- package/dist/components/Workbench/Workbench.d.ts +1 -0
- package/dist/components/Workbench/Workbench.js +24 -12
- package/dist/components/Workbench/Workbench.js.map +1 -1
- package/dist/components/ZoneMap/ZoneMap.d.ts +12 -2
- package/dist/components/ZoneMap/ZoneMap.js +13 -5
- package/dist/components/ZoneMap/ZoneMap.js.map +1 -1
- package/dist/components/useFormErrors/useFormErrors.d.ts +20 -0
- package/dist/components/useFormErrors/useFormErrors.js +55 -0
- package/dist/components/useFormErrors/useFormErrors.js.map +1 -0
- package/dist/css/AccentPicker.css +1 -0
- package/dist/css/Alert.css +8 -19
- package/dist/css/AppShell.css +1 -0
- package/dist/css/Badge.css +19 -45
- package/dist/css/BarChart.css +21 -3
- package/dist/css/Button.css +6 -1
- package/dist/css/Card.css +8 -8
- package/dist/css/Checkbox.css +20 -0
- package/dist/css/CodeView.css +3 -2
- package/dist/css/DangerZone.css +5 -3
- package/dist/css/DataTable.css +303 -69
- package/dist/css/DatePicker.css +1 -0
- package/dist/css/DateRangePicker.css +24 -2
- package/dist/css/Drawer.css +31 -0
- package/dist/css/EmptyState.css +1 -0
- package/dist/css/ErrorPage.css +4 -1
- package/dist/css/EventTimeline.css +34 -5
- package/dist/css/FileUpload.css +1 -0
- package/dist/css/FormGrid.css +12 -3
- package/dist/css/Graph.css +9 -1
- package/dist/css/Grid.css +8 -0
- package/dist/css/KpiCard.css +13 -1
- package/dist/css/LayerGraph.css +40 -15
- package/dist/css/Link.css +23 -0
- package/dist/css/LoginCard.css +17 -11
- package/dist/css/Markdown.css +31 -2
- package/dist/css/Menu.css +0 -2
- package/dist/css/Meter.css +16 -0
- package/dist/css/MultiSelect.css +1 -0
- package/dist/css/NotificationBell.css +1 -0
- package/dist/css/PageHeader.css +50 -0
- package/dist/css/ProgressBar.css +12 -0
- package/dist/css/ProjectSwitcher.css +25 -23
- package/dist/css/RelativeTime.css +2 -0
- package/dist/css/SegmentedControl.css +38 -10
- package/dist/css/Select.css +1 -0
- package/dist/css/SettingsLayout.css +29 -8
- package/dist/css/SideNav.css +4 -1
- package/dist/css/Skeleton.css +22 -1
- package/dist/css/Suggestion.css +1 -1
- package/dist/css/Switch.css +27 -0
- package/dist/css/Tabs.css +8 -7
- package/dist/css/Tag.css +19 -12
- package/dist/css/Term.css +1 -1
- package/dist/css/TextArea.css +1 -0
- package/dist/css/TextField.css +1 -0
- package/dist/css/Toast.css +101 -4
- package/dist/css/TopBar.css +21 -2
- package/dist/css/Tour.css +1 -1
- package/dist/css/TreeList.css +7 -3
- package/dist/css/Workbench.css +13 -1
- package/dist/css/ZoneMap.css +0 -1
- package/dist/css/base.css +45 -0
- package/dist/css/end.css +119 -5
- package/dist/deprecated.d.ts +3 -0
- package/dist/deprecated.js +13 -0
- package/dist/deprecated.js.map +1 -0
- package/dist/fonts.css +2 -7543
- package/dist/format.d.ts +3 -1
- package/dist/format.js +15 -5
- package/dist/format.js.map +1 -1
- package/dist/generated/themeDefaults.d.ts +8 -0
- package/dist/generated/themeDefaults.js +35 -0
- package/dist/generated/themeDefaults.js.map +1 -0
- package/dist/i18n.d.ts +7 -2
- package/dist/i18n.js +65 -10
- package/dist/i18n.js.map +1 -1
- package/dist/icons/Icon.d.ts +3 -1
- package/dist/icons/Icon.js.map +1 -1
- package/dist/index.d.ts +23 -14
- package/dist/index.js +14 -8
- package/dist/internal/Field.d.ts +19 -0
- package/dist/internal/Field.js +13 -6
- package/dist/internal/Field.js.map +1 -1
- package/dist/internal/FloatingPanel.js +2 -1
- package/dist/internal/FloatingPanel.js.map +1 -1
- package/dist/internal/chart.d.ts +4 -0
- package/dist/internal/chart.js +89 -19
- package/dist/internal/chart.js.map +1 -1
- package/dist/internal/codeSpans.js +20 -0
- package/dist/internal/codeSpans.js.map +1 -0
- package/dist/internal/dev.js +9 -4
- package/dist/internal/dev.js.map +1 -1
- package/dist/internal/focus.js +27 -3
- package/dist/internal/focus.js.map +1 -1
- package/dist/internal/focusMain.js +6 -2
- package/dist/internal/focusMain.js.map +1 -1
- package/dist/internal/open.d.ts +14 -0
- package/dist/internal/open.js +28 -0
- package/dist/internal/open.js.map +1 -0
- package/dist/internal/roving.js +37 -0
- package/dist/internal/roving.js.map +1 -0
- package/dist/internal/shell.js +12 -0
- package/dist/internal/shell.js.map +1 -0
- package/dist/internal/stored.js +89 -0
- package/dist/internal/stored.js.map +1 -0
- package/dist/internal/tableTools.js +46 -4
- package/dist/internal/tableTools.js.map +1 -1
- package/dist/internal/util.js +8 -17
- package/dist/internal/util.js.map +1 -1
- package/dist/locale.d.ts +17 -0
- package/dist/locale.js +29 -0
- package/dist/locale.js.map +1 -0
- package/dist/styles.css +1296 -400
- package/dist/theme.d.ts +23 -5
- package/dist/theme.js +85 -25
- package/dist/theme.js.map +1 -1
- package/dist/tokens.css +3 -0
- package/docs/AccentPicker.md +3 -1
- package/docs/Alert.md +4 -3
- package/docs/AppShell.md +11 -10
- package/docs/Badge.md +26 -16
- package/docs/BarChart.md +7 -4
- package/docs/Button.md +4 -5
- package/docs/Calendar.md +2 -2
- package/docs/Card.md +9 -8
- package/docs/Checkbox.md +4 -1
- package/docs/CodeView.md +30 -43
- package/docs/CommandPalette.md +3 -2
- package/docs/ConsoleLayout.md +5 -5
- package/docs/DangerZone.md +3 -2
- package/docs/DataColors.md +2 -2
- package/docs/DataTable.md +29 -141
- package/docs/DatePicker.md +1 -0
- package/docs/DateRangePicker.md +3 -0
- package/docs/DetailList.md +9 -9
- package/docs/Dialog.md +8 -4
- package/docs/Drawer.md +7 -4
- package/docs/ErrorPage.md +1 -1
- package/docs/EventTimeline.md +23 -12
- package/docs/FileUpload.md +1 -1
- package/docs/FormGrid.md +2 -1
- package/docs/Format.md +5 -3
- package/docs/Graph.md +1 -1
- package/docs/Grid.md +5 -1
- package/docs/KpiCard.md +6 -4
- package/docs/LayerGraph.md +18 -53
- package/docs/LineChart.md +5 -3
- package/docs/Link.md +22 -0
- package/docs/LoginCard.md +7 -3
- package/docs/Markdown.md +3 -13
- package/docs/Menu.md +2 -0
- package/docs/Meter.md +1 -0
- package/docs/MultiSelect.md +2 -1
- package/docs/NotificationBell.md +1 -0
- package/docs/PageHeader.md +34 -0
- package/docs/Popover.md +3 -1
- package/docs/ProgressBar.md +3 -1
- package/docs/ProjectSwitcher.md +14 -14
- package/docs/RadioGroup.md +2 -0
- package/docs/RelativeTime.md +23 -0
- package/docs/Section.md +1 -1
- package/docs/SegmentedControl.md +9 -6
- package/docs/Select.md +2 -1
- package/docs/SettingsLayout.md +19 -4
- package/docs/SideNav.md +1 -1
- package/docs/Skeleton.md +2 -1
- package/docs/Switch.md +3 -1
- package/docs/Tabs.md +4 -3
- package/docs/Tag.md +9 -7
- package/docs/Term.md +3 -3
- package/docs/TextArea.md +2 -1
- package/docs/TextField.md +5 -3
- package/docs/ThemePicker.md +3 -1
- package/docs/Toast.md +17 -5
- package/docs/TopBar.md +8 -5
- package/docs/Tour.md +3 -2
- package/docs/TreeList.md +10 -37
- package/docs/Workbench.md +1 -48
- package/docs/ZoneMap.md +5 -5
- package/docs/agents.md +82 -0
- package/docs/code.md +2 -2
- package/docs/components.json +314 -0
- package/docs/data.md +9 -18
- package/docs/forms.md +6 -5
- package/docs/guidelines.md +39 -31
- package/docs/icons.md +9 -0
- package/docs/layout.md +16 -20
- package/docs/motion.md +31 -56
- package/docs/theme.md +15 -18
- package/docs/useFormErrors.md +35 -0
- package/package.json +8 -7
- package/dist/bundle.js.map +0 -1
- package/dist/fonts/LICENSE-OFL.txt +0 -93
- package/dist/fonts/geist-mono-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-700-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-700-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-symbols2-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-symbols2-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-symbols2-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-symbols2-700-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-vietnamese-500-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-vietnamese-700-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-400-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-500-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-600-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-700-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-500-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-400-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-500-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-600-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-700-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-500-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-0-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-0-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-0-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-0-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-1-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-1-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-1-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-1-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-10-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-10-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-10-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-10-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-101-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-101-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-101-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-101-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-102-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-102-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-102-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-102-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-103-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-103-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-103-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-103-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-104-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-104-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-104-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-104-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-105-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-105-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-105-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-105-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-106-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-106-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-106-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-106-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-107-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-107-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-107-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-107-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-108-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-108-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-108-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-108-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-109-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-109-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-109-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-109-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-11-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-11-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-11-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-11-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-110-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-110-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-110-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-110-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-111-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-111-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-111-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-111-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-112-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-112-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-112-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-112-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-113-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-113-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-113-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-113-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-114-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-114-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-114-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-114-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-115-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-115-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-115-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-115-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-116-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-116-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-116-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-116-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-117-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-117-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-117-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-117-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-118-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-118-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-118-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-118-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-119-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-119-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-119-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-119-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-12-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-12-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-12-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-12-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-120-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-120-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-120-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-120-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-121-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-121-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-121-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-121-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-122-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-122-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-122-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-122-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-123-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-123-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-123-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-123-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-2-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-2-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-2-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-2-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-23-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-23-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-23-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-23-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-24-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-24-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-24-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-24-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-25-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-25-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-25-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-25-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-26-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-26-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-26-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-26-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-27-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-27-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-27-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-27-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-28-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-28-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-28-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-28-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-29-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-29-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-29-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-29-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-30-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-30-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-30-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-30-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-31-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-31-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-31-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-31-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-32-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-32-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-32-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-32-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-33-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-33-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-33-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-33-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-34-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-34-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-34-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-34-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-35-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-35-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-35-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-35-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-36-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-36-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-36-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-36-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-37-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-37-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-37-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-37-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-38-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-38-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-38-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-38-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-39-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-39-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-39-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-39-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-4-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-4-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-4-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-4-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-40-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-40-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-40-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-40-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-41-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-41-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-41-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-41-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-42-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-42-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-42-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-42-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-43-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-43-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-43-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-43-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-44-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-44-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-44-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-44-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-45-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-45-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-45-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-45-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-46-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-46-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-46-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-46-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-47-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-47-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-47-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-47-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-48-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-48-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-48-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-48-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-49-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-49-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-49-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-49-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-50-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-50-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-50-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-50-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-51-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-51-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-51-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-51-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-52-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-52-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-52-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-52-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-53-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-53-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-53-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-53-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-54-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-54-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-54-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-54-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-55-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-55-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-55-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-55-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-56-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-56-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-56-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-56-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-57-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-57-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-57-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-57-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-58-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-58-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-58-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-58-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-59-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-59-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-59-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-59-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-60-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-60-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-60-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-60-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-61-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-61-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-61-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-61-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-62-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-62-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-62-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-62-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-63-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-63-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-63-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-63-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-64-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-64-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-64-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-64-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-65-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-65-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-65-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-65-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-66-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-66-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-66-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-66-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-67-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-67-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-67-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-67-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-68-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-68-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-68-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-68-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-69-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-69-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-69-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-69-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-70-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-70-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-70-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-70-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-71-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-71-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-71-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-71-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-72-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-72-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-72-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-72-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-73-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-73-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-73-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-73-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-74-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-74-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-74-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-74-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-75-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-75-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-75-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-75-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-76-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-76-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-76-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-76-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-77-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-77-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-77-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-77-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-78-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-78-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-78-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-78-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-79-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-79-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-79-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-79-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-80-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-80-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-80-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-80-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-81-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-81-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-81-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-81-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-82-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-82-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-82-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-82-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-83-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-83-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-83-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-83-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-84-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-84-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-84-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-84-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-85-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-85-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-85-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-85-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-86-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-86-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-86-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-86-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-87-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-87-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-87-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-87-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-88-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-88-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-88-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-88-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-89-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-89-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-89-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-89-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-90-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-90-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-90-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-90-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-91-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-91-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-91-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-91-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-92-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-92-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-92-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-92-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-93-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-93-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-93-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-93-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-94-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-94-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-94-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-94-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-95-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-95-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-95-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-95-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-96-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-96-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-96-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-96-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-cyrillic-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-cyrillic-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-vietnamese-500-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/noto-sans-tc-vietnamese-700-normal.woff2 +0 -0
package/docs/SettingsLayout.md
CHANGED
|
@@ -7,17 +7,32 @@
|
|
|
7
7
|
```tsx
|
|
8
8
|
<SettingsLayout
|
|
9
9
|
categories={[
|
|
10
|
-
{
|
|
10
|
+
{
|
|
11
|
+
id: 'notifications',
|
|
12
|
+
label: '通知',
|
|
13
|
+
content: (
|
|
14
|
+
<SettingsSection title="通知">
|
|
15
|
+
<SettingsRow label="部署失敗時寄 Email" description="寄到帳號的 Email。">
|
|
16
|
+
<Switch label="部署失敗時寄 Email" checked={mail} onChange={saveMail} />
|
|
17
|
+
</SettingsRow>
|
|
18
|
+
</SettingsSection>
|
|
19
|
+
),
|
|
20
|
+
},
|
|
11
21
|
{ id: 'account', label: '帳號', content: <DangerZone description="刪除後無法復原。" actionLabel="刪除帳號" confirm={{ title: '刪除帳號?' }} onAction={remove} /> },
|
|
12
22
|
]}
|
|
13
23
|
/>
|
|
14
24
|
```
|
|
15
25
|
|
|
16
26
|
- 每個分類的內容用 `SettingsSection` 分成卡片;SettingsSection 本身就是卡片,不再包 Card。
|
|
17
|
-
-
|
|
18
|
-
-
|
|
27
|
+
- 開關用 `SettingsRow`:左邊名稱和一句說明,右邊 Switch,整列是 `<label>`,點文字也會切換。Switch 的 `label` 和 SettingsRow 的 `label` 寫同一句。
|
|
28
|
+
- 什麼時候儲存:開關和選單改了就存;文字欄位離開欄位(blur)且驗證通過才存,不是每打一個字就存。存好後呼叫 `toast('已儲存', { id: 'saved' })`,連續修改時同一則重新計時;AppShell 裡不用另外放 `<Toaster />`;不用 `toast` prop(deprecated)。
|
|
29
|
+
- 刪除帳號這類操作放在最後一個分類的最下方,用 `DangerZone`,按下後先跳確認對話框。
|
|
19
30
|
- 主題與強調色放在「外觀」分類(ThemePicker、AccentPicker)。
|
|
20
31
|
|
|
21
32
|
## 細節
|
|
22
33
|
|
|
23
|
-
- 分類清單 180 px
|
|
34
|
+
- 分類清單 180 px,選中的分類有左側強調色指示條;手機寬度時改成上方橫向分類,內容的卡片撐滿寬度。
|
|
35
|
+
- 內容最寬 760 px(欄位不會拉到 1000 px 寬),卡片之間 32 px(`space-8`)。
|
|
36
|
+
- 選中的分類寫進網址的 hash(`#notifications`),重新整理或分享連結時打開同一個分類;`urlSync={false}` 關掉。給了 `value`(由外部控制)時不改網址。
|
|
37
|
+
- 換分類時螢幕閱讀器念出分類名稱(`announce`)。
|
|
38
|
+
- SettingsSection 標題 17 px(`text-title`),和 Card 標題相同。
|
package/docs/SideNav.md
CHANGED
|
@@ -42,5 +42,5 @@ Dashboard 類頁面的左側導覽,可以收合。AppShell 已經內建(側
|
|
|
42
42
|
- `mark` 的位置在每個狀態都一樣:中心對齊下面項目的圖示(離左邊 31 px),展開時不移動。`mark` 最大 24 × 24 px。
|
|
43
43
|
- 只傳文字(`brand="專案中心"`)或沒給 `mark`:用名稱的第一個字放在 24 px 的強調色方塊裡當 `mark`(「專」)。沒有 `href` 時不是連結,螢幕閱讀器念完整名稱。
|
|
44
44
|
- `onClick` 可以代替 `href`(例如 app 自己切換頁面)。
|
|
45
|
-
-
|
|
45
|
+
- 傳一個元素(`brand={<a href="/">…</a>}`)時元件分不出哪部分是 logo,收合時整塊藏起來;開發模式會提醒改用 `{ mark, name, href }`。
|
|
46
46
|
- 平板抽屜和手機的「更多」導覽不受影響。
|
package/docs/Skeleton.md
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
資料載入中時顯示的骨架,用 `surface
|
|
5
|
+
資料載入中時顯示的骨架,用 `line` 色的條(在 `surface` 上約 1.33:1,淺色和深色都看得見)。不知道要多久的整頁工作用 LoadingBar。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
{loading ? <Skeleton height={48} /> : <DataTable … />}
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
- 開始載入就立即顯示(延遲 0 ms)。
|
|
12
|
+
- 一道較淡的光帶每 1.2 s 掃過一次;系統設定減少動態時不掃,只留靜止的條。強制色彩模式加 1 px `GrayText` 外框。
|
package/docs/Switch.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
</label>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
- `label` 必填,作為 `aria-label
|
|
14
|
+
- `label` 必填,作為 `aria-label`;畫面上的文字放在開關旁邊,在 `<label>` 裡時自動是 15 px(`text-control`)。
|
|
15
|
+
- 受控用 `checked` 加 `onChange(checked, event)`;非受控用 `defaultChecked`。給 `name` 時打開的開關隨表單送出 `on`。
|
|
15
16
|
- 元件不畫文字:要讓點文字也能切換,把文字和開關包在同一個 `<label>` 裡;文字放在另一個 `div` 時點文字不會切換。
|
|
16
17
|
|
|
17
18
|
## 細節
|
|
@@ -19,3 +20,4 @@
|
|
|
19
20
|
- Material 3 樣式:52 × 32 px,2 px 邊框。
|
|
20
21
|
- 圓鈕:關 16 px 灰色帶叉、開 24 px 白色帶勾、按住時 28 px。
|
|
21
22
|
- 滑動用水滴動畫(與導覽相同的 `MOTION`)。
|
|
23
|
+
- 強制色彩模式(Windows 高對比):軌道和圓鈕改用系統色,開是 Highlight,圓鈕不會消失。
|
package/docs/Tabs.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
分頁:同一頁裡切換內容不同的幾個檢視。同一份內容的兩三種顯示方式(預覽/原始碼)用 SegmentedControl;結果清單的狀態摘要用 DataTable 的 `summary`。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
<Tabs
|
|
@@ -17,15 +17,16 @@
|
|
|
17
17
|
/>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
- 有 `count` 時後面一定帶單位:`unit` 給整排,某一項不同時在那一項給 `unit
|
|
20
|
+
- 有 `count` 時後面一定帶單位:`unit` 給整排,某一項不同時在那一項給 `unit`。單位寫出來只是雜訊時(整排都是同一個單位的狀態摘要),加 `hideUnit`:畫面上只寫數字,螢幕閱讀器仍念單位。有 `count` 沒有單位時,開發模式會在主控台提醒。
|
|
21
21
|
- 分頁的字一律不換行;整排比外框寬時改成左右捲動。
|
|
22
22
|
- 內容切換:新內容的卡片依序浮起(外層加 `ui-rise-in`,並在切換時換 `key` 重新掛載)。
|
|
23
23
|
|
|
24
24
|
## 細節
|
|
25
25
|
|
|
26
|
-
- `count`
|
|
26
|
+
- `count` 顯示在名稱右邊:一般字體的等寬數字、14 px、次要文字色、一般字重,選中時也一樣,讓名稱是主角。`hideUnit`:畫面上只寫數字,單位只給螢幕閱讀器和切換時的朗讀,給整排同一個單位的狀態摘要用(DataTable 的 `summary` 用這個,畫面上是「全部 6 · 錯誤 4 · 要確認 2」,念成「全部 6 筆」)。`unit` 也可以傳函式,拿到數字後回傳單位,給有單複數的語言用:`unit: (n) => (n === 1 ? 'item' : 'items')`;傳字串時,數字是 1 而且語言有「1 <單位>」的翻譯(例如 `addMessages('en', { '1 項': '1 item' })`),就用那個。
|
|
27
27
|
- 手機上當作摘要使用時,各項平均分配寬度,不換行。
|
|
28
28
|
- 左右捲動時選中的底塊跟著捲,分頁不會互相重疊。還有分頁的那一側邊緣淡出(40 px),看得出可以往那邊捲;選中的分頁自動捲進畫面。
|
|
29
|
+
- 整排高 40 px(分頁 32 px 加上下各 4 px,和 DataTable 的摘要分段相同),和工具列上的按鈕、搜尋框一樣高。
|
|
29
30
|
- `surface-sub` 灰底軌道,選中的是浮起的 `surface` 白塊,加 1 px `line-strong` 框(白對灰只有約 1.1:1,框讓選中處達到 3:1),圓角 `radius-md` 10 px。
|
|
30
31
|
- 切換動畫:水滴。靠近目標的一端先移動(120 ms),另一端慢 2.2 倍才跟上(440 ms),移動中略為變細,到位後恢復;全程是同一塊,邊緣清晰。
|
|
31
32
|
|
package/docs/Tag.md
CHANGED
|
@@ -2,21 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
說明一個項目「是什麼」的分類標籤,例如「外部」、「範本」、「內部使用」。要表示進度或結果(完成、失敗、要確認)用 Badge。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
<Tag>外部</Tag>
|
|
9
|
-
<Tag
|
|
10
|
-
<Tag
|
|
9
|
+
<Tag icon="trend-up" tone="info">預測</Tag>
|
|
10
|
+
<Tag icon="info">示範資料</Tag>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
- 只有小字:12 px、粗體、`ink-muted`,沒有框也沒有底色;一律灰色,不用顏色區分類別。
|
|
14
14
|
- 標籤只標例外:大部分項目都一樣的屬性不標。名詞需要說明時在 Tag 裡包 `Term`。
|
|
15
|
-
- `variant
|
|
15
|
+
- 加 `icon` 時用來說明數字的來源(見下方);`variant` 已停用。
|
|
16
16
|
|
|
17
17
|
## 數字的來源
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
加 `icon` 後是圖示加文字,沒有底色;字級跟著旁邊的文字(放在品牌旁就和品牌一樣大),半粗。沒有 `tone` 時顏色和旁邊的文字相同。
|
|
20
|
+
|
|
21
|
+
- 預測、非實測的值:`icon="trend-up" tone="info"`「預測」,`accent-text` 色。放在預測值旁邊,或疊了斜線紋理(class `ui-forecast`)的區塊裡。
|
|
22
|
+
- 整頁都是示範值:`icon="info"`「示範資料」。放在頁面標題旁:AppShell 或 ConsoleLayout 的 `tags`(頂列標題旁),一頁一個。
|
|
23
|
+
- `tone` 其他值(`success`、`warning`、`danger`)只給這類來源標示用;分類一律灰色。
|
|
20
24
|
|
|
21
|
-
- `variant="forecast"`:預測、非實測的值,趨勢線圖示,`accent-text` 色。放在預測值旁邊,或疊了斜線紋理(class `ui-forecast`)的區塊裡。
|
|
22
|
-
- `variant="demo"`:整頁都是示範值,資訊圖示,顏色和旁邊的文字相同。放在頂列品牌旁,一頁一個。
|
package/docs/Term.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
名詞或關係標籤的說明:讀者可能看不懂的詞(例如「
|
|
5
|
+
名詞或關係標籤的說明:讀者可能看不懂的詞(例如「webhook」)和關係標籤(例如「推測(規則)」)。長篇的解釋改連到文件。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
<p>
|
|
9
|
-
|
|
9
|
+
部署完成時會呼叫 <Term text="服務在事件發生時呼叫的網址,例如 `https://example.com/hooks/deploy`。">webhook</Term>。
|
|
10
10
|
</p>
|
|
11
11
|
<p>
|
|
12
12
|
登入後伺服器會寫一個 <Term variant="inline" text="瀏覽器替網站保存的一小段文字。">cookie</Term>。
|
|
@@ -54,7 +54,7 @@ h(
|
|
|
54
54
|
|
|
55
55
|
- 外觀:文字顏色不變;虛線是 `--line-strong`,離字 4 px;滑過、打開或鍵盤停在上面時,虛線變強調色。游標是說明游標(help)。
|
|
56
56
|
- 滑鼠停在詞上 500 ms 才打開,只是經過不會打開;點一下立刻打開。指標移進小卡時小卡不關閉,離開 150 ms 後關閉。
|
|
57
|
-
- 鍵盤:Tab
|
|
57
|
+
- 鍵盤:Tab 到詞上不會打開(一路 Tab 過去不會把每張小卡都念一遍);按 Enter 打開,Esc 關閉,焦點留在詞上;打開後再按 Tab 進入小卡的動作。要 Tab 到就打開時加 `openOnFocus`。
|
|
58
58
|
- 觸控(寬度小於 600 px):點一下從畫面下方打開,和一般 Term 相同。行內不擴大觸控範圍(WCAG 2.2 行內例外)。
|
|
59
59
|
- 螢幕閱讀器念「cookie,有說明」;小卡打開時以 `aria-describedby` 連到詞上。
|
|
60
60
|
- 小卡和一般 Term 相同(標題、說明、程式碼、動作)。
|
package/docs/TextArea.md
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
- 隨內容自動長高,從 3 行開始,最多 8 行,之後在框內捲動。
|
|
12
|
-
-
|
|
12
|
+
- `onChange(value, event)`:第一個參數是新的文字。`label` 必填,要藏起來時加 `hideLabel`。
|
|
13
|
+
- 預設最多 200 字,打不下更多字:內容可能更長時(說明、備註)一定給 `maxLength`。右下角顯示字數 `n / 200`(等寬字)。字數也連到輸入框的 `aria-describedby`,螢幕閱讀器念「200 字中的 n 字」;打到上限時念一次「已達 200 字上限」。
|
|
13
14
|
- 在 FormGrid 裡加 `className="is-full"` 跨滿兩欄。
|
|
14
15
|
- 有錯誤時給 `error`:紅框、框內右上角的警告圖示,錯誤取代下方的提示,出現時念一次。
|
|
15
16
|
|
package/docs/TextField.md
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
單行文字輸入,標籤在上、說明或錯誤在下;其他屬性照原生 `<input>`。多行用 TextArea,搜尋用 SearchField。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
|
-
<TextField label="Email" type="email" required value={email} onChange={
|
|
8
|
+
<TextField label="Email" type="email" required value={email} onChange={setEmail} error={emailError} />
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
- `onChange(value, event)`:第一個參數是新的文字,可以直接給 `setEmail`;需要事件時用第二個參數。
|
|
12
|
+
- 標籤一定要有,不要只靠 placeholder;不需要看到標籤時(工具列的搜尋)加 `hideLabel`,螢幕閱讀器仍念得到。
|
|
13
|
+
- 自己給的 `aria-describedby`、`aria-invalid` 會保留,和提示或錯誤合在一起。
|
|
14
|
+
- 錯誤:`error` 給一句原因加修正方式(「Email 格式不正確,例如 name@example.com」)。離開欄位(blur)或送出表單時才設定,不在每次按鍵時設定;改正後立刻清掉。欄位多時用 `useFormErrors` 處理這些時機。
|
|
13
15
|
- 必填:`required` 會在標籤後加紅色星號(`danger`)。
|
|
14
16
|
|
|
15
17
|
## 細節
|
package/docs/ThemePicker.md
CHANGED
|
@@ -10,8 +10,10 @@ initTheme(); // 頁面載入時一次
|
|
|
10
10
|
<ThemePicker />;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
- 不傳 `onChange` 時直接呼叫 `setTheme()`:在根元素設 `data-theme`,選擇存在 localStorage
|
|
13
|
+
- 不傳 `onChange` 時直接呼叫 `setTheme()`:在根元素設 `data-theme`,選擇存在 localStorage。伺服器渲染和瀏覽器第一次渲染都先選「自動」,接手後才顯示存下的選擇,不會有 hydration 不一致。
|
|
14
|
+
- 用了 preset(`initTheme({ preset: 'teaching' })`)時,preset 只有淺色:選擇會記住,畫面維持 preset。
|
|
14
15
|
- 頁面載入時呼叫一次 `initTheme()`。
|
|
16
|
+
- 上方有看得見的標籤「主題」(`label` 可改),也是整組的名稱,和其他欄位一樣。
|
|
15
17
|
- 自動:跟著系統的 `prefers-color-scheme`,系統改變時也會跟著換。
|
|
16
18
|
|
|
17
19
|
## 細節
|
package/docs/Toast.md
CHANGED
|
@@ -2,16 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
操作完成後的短暫提示:呼叫 `toast()`,訊息出現在畫面右下角(手機在下方中間、底部分頁列上方)。要一直顯示的提示用 Alert。
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
|
-
|
|
8
|
+
// AppShell 已經放好 Toaster;沒有 AppShell 的頁面在 app 的最外層放一次
|
|
9
|
+
<Toaster />
|
|
10
|
+
|
|
11
|
+
toast('已儲存變更');
|
|
12
|
+
toast('已刪除 3 筆', { action: { label: '復原', undo: true, onAction: restore } });
|
|
13
|
+
toast('儲存失敗:網路中斷,請稍後再試', { tone: 'danger' });
|
|
9
14
|
```
|
|
10
15
|
|
|
11
|
-
-
|
|
16
|
+
- 頁面不自己管 toast 的 state 和計時器:`toast()` 負責顯示、排隊、計時和念出。AppShell 自動放一個 Toaster;頁面自己放了 `<Toaster />` 時改用頁面的,同一則訊息不會出現兩次。
|
|
17
|
+
- 時間:一般訊息 3 s 後消失;有動作(例如「復原」)的訊息停留 10 s,滑鼠移到訊息上或焦點在訊息裡時暫停計時(WCAG 2.2.1)。
|
|
18
|
+
- 「復原」加 `undo: true`:訊息顯示時按 Ctrl Z(Mac 是 ⌘Z)也會執行,按鈕上寫出這個按鍵;焦點在輸入框裡時 Ctrl Z 仍是輸入框的復原。
|
|
12
19
|
- 文字寫發生了什麼,用過去式:「已刪除 3 筆」。
|
|
13
|
-
-
|
|
20
|
+
- `tone`:預設 `success`(打勾);`neutral`、`info`、`warning`、`danger`。`danger` 立即念出(`role="alert"`),用在操作失敗;失敗的原因和修正方式寫進訊息。
|
|
21
|
+
- 同一件事連續發生(每次輸入都存檔)時給相同的 `id`:只留一則,重新計時。
|
|
14
22
|
|
|
15
23
|
## 細節
|
|
16
24
|
|
|
17
|
-
-
|
|
25
|
+
- `<Toaster />` 是一直存在的 polite live region(`role="region"`,名稱「通知」),新訊息加進去時螢幕閱讀器會念出;F6 把焦點移到訊息上,Shift Tab 回到原處。
|
|
26
|
+
- 多則訊息由下往上疊,最新的在最下面;每則都有 ×(「關閉通知」)。
|
|
27
|
+
- `useToast()` 回傳 `{ toast, close }`,在元件裡用;`toast.close(id)` 關掉一則,不給 id 時全部關掉。
|
|
28
|
+
- `<Toast>` 只畫出卡片本身(`role="status"`),給文件、預覽或自訂位置用;一般頁面用 `toast()`。
|
|
29
|
+
- 卡片樣式:`surface` 底色、`line` 細框、`shadow-overlay` 陰影,最小高度 48 px,文字 `text-compact`。
|
package/docs/TopBar.md
CHANGED
|
@@ -7,17 +7,20 @@ Dashboard 類頁面的頂部列,高 64 px(`header-height`)。AppShell 已
|
|
|
7
7
|
```tsx
|
|
8
8
|
<TopBar title="專案" onSearch={() => setSearchOpen(true)}>
|
|
9
9
|
<NotificationBell items={notifications} />
|
|
10
|
+
<Menu icon="user" label="帳號" items={[{ label: '登出', icon: 'sign-out', onSelect: signOut }]} />
|
|
10
11
|
</TopBar>
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
- 左側頁面標題(`title`,20 px、字重 700
|
|
14
|
-
-
|
|
14
|
+
- 左側頁面標題(`title`,20 px、字重 700)。
|
|
15
|
+
- `breadcrumb` prop 已停用:麵包屑是內容最上方的 `<Breadcrumb>`。
|
|
16
|
+
- `tags`:標題旁的標記,字級和標題相同,例如 `<Tag icon="info">示範資料</Tag>`。
|
|
17
|
+
- 帳號:用 `<Menu icon="user" label="帳號" items={…} />`(無框圖示按鈕,打開帳號選單),不要自己畫空白的圓形頭像。
|
|
15
18
|
- `onSearch` 通常接到 CommandPalette;右側其他元素放 `children`。
|
|
16
19
|
|
|
17
20
|
## 細節
|
|
18
21
|
|
|
19
|
-
- 右側:填色搜尋框(`surface-sub` 灰底、無外框,附 Ctrl K 提示,Mac 上寫 ⌘K;觸控裝置(`pointer: coarse
|
|
20
|
-
-
|
|
22
|
+
- 右側:填色搜尋框(`surface-sub` 灰底、無外框,附 Ctrl K 提示,Mac 上寫 ⌘K;觸控裝置(`pointer: coarse`)沒有實體鍵盤,不顯示快捷鍵,窄螢幕的搜尋圖示名稱也只念「搜尋」),接著放通知、帳號選單或其他元素(`children`)。
|
|
23
|
+
- 空間不夠時,右側的專案切換器先拿掉狀態文字、再截斷名稱,標題最多保留頂部列 45 % 的寬度才用「…」。
|
|
21
24
|
- 寬度小於 600 px 時,搜尋框換成搜尋圖示(觸控區 48 px)。兩者都呼叫 `onSearch`,也都有 `data-tour="search"`,Tour 可以直接用 `target: 'search'`。
|
|
22
25
|
- 頁首行為依版面規則:往下捲時隱藏,往上捲時出現。
|
|
23
|
-
- `onMenu`:左邊加一個「開啟導覽」選單按鈕(AppShell 在 600 到
|
|
26
|
+
- `onMenu`:左邊加一個「開啟導覽」選單按鈕(AppShell 在 600 到 1023 px 用來打開導覽抽屜)。
|
package/docs/Tour.md
CHANGED
|
@@ -10,7 +10,7 @@ const tour = useTour('first-visit');
|
|
|
10
10
|
<IconButton icon="question" label="導覽" onClick={tour.start} hint={tour.hint('導覽:三個步驟介紹這一頁。')} />
|
|
11
11
|
<Tour
|
|
12
12
|
open={tour.open}
|
|
13
|
-
|
|
13
|
+
onOpenChange={tour.onOpenChange}
|
|
14
14
|
steps={[
|
|
15
15
|
{ target: 'search', title: '搜尋', text: '搜尋函式、檔案、元件與環境變數。快捷鍵 Ctrl K。' },
|
|
16
16
|
{ target: 'tree', title: '流程樹', text: '名稱旁的標籤是關係的來源,點選問號查看依據。' },
|
|
@@ -19,6 +19,7 @@ const tour = useTour('first-visit');
|
|
|
19
19
|
<section data-tour="tree">…</section>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
- 開關用 `open` 和 `onOpenChange(open, reason)`,`reason` 是 `'done'`(完成)或 `'skip'`(略過或 Esc);`useTour` 的 `tour.onOpenChange` 直接接上。舊的 `onClose` 還能用一個版本。
|
|
22
23
|
- `useTour(key)` 記住這個瀏覽器看過了沒有:沒看過會自動打開,看完或略過後不再出現。
|
|
23
24
|
- 頁面有「導覽」按鈕時用按鈕上的提示(`hint`),導覽不自己打開;不用「第一次使用」橫幅。
|
|
24
25
|
- 頁面上要有「重看導覽」,呼叫 `tour.start()`。
|
|
@@ -44,7 +45,7 @@ const tour = useTour('first-visit');
|
|
|
44
45
|
```js
|
|
45
46
|
const tour = UI.useTour('first-visit');
|
|
46
47
|
h(UI.Tour, {
|
|
47
|
-
open: tour.open,
|
|
48
|
+
open: tour.open, onOpenChange: tour.onOpenChange,
|
|
48
49
|
steps: [
|
|
49
50
|
{ target: 'search', title: '搜尋', text: '搜尋函式、檔案、元件與環境變數。快捷鍵 Ctrl K。' },
|
|
50
51
|
{ target: 'tree', title: '流程樹', text: '名稱旁的標籤是關係的來源,點選問號查看依據。' },
|
package/docs/TreeList.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 用法
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
資料夾裡放檔案、可以一層層展開的清單,例如專案文件、共用資料夾;`kind="plain"` 給不是檔案的階層(呼叫關係、元件結構)。本身就是卡片,不再包 Card(要放進現有面板時給 `bare`)。
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
8
|
h(UI.TreeList, {
|
|
@@ -34,28 +34,19 @@ h(UI.TreeList, {
|
|
|
34
34
|
## 選項
|
|
35
35
|
|
|
36
36
|
- `sort`:`'newest'`(預設)、`'oldest'`、`'name'`,或 `false` 照資料原本的順序。資料夾一律排在檔案前面。看情況選。
|
|
37
|
-
- `expand`:`'multi'
|
|
37
|
+
- `expand`:`'multi'`(預設,點資料夾展開或收合,標題列右邊有「全部展開/全部收合」圖示按鈕,和 Section 的一樣,名稱和提示寫目前會做哪一個)或 `'single'`(一次只開一個,同層的其他資料夾自動收合)。需要一次看到全部時用 `'multi'`,資料夾又多又雜時用 `'single'`。
|
|
38
38
|
- `meta`:名稱下方的次要文字(例如「2 個 caller」),一般字體、數字用 Geist Mono;沒有 `meta` 時顯示 `path`,整行 Geist Mono。
|
|
39
39
|
- `title` 加 `subtitle`:標題和下方一行次要文字(例如「17 個檔案」)。
|
|
40
40
|
- `height`:固定高度(例如 `'100%'` 填滿外層、或 `520`),標題列不動,清單在裡面捲動。放在固定高度的版面(例如側邊面板)時一定要給,不然下面的項目看不到。
|
|
41
41
|
- TreeList 本身就是一張卡片,不要再包進另一張卡片。真的要放進現有的卡片或面板時給 `bare`:沒有底色、陰影和圓角。
|
|
42
42
|
- `defaultOpen`:一開始展開的資料夾 `id`。
|
|
43
43
|
- `open` 加 `onToggle(node, isOpen, openIds)`:由外部控制展開,例如寫進網址。給了 `open` 時,請在 `onToggle` 裡更新它。
|
|
44
|
-
- `selectable`:顯示勾選框(滑過才出現,勾了一個之後全部顯示;觸控裝置一直顯示)。勾資料夾等於全選裡面的檔案,只勾一部分時資料夾顯示橫線。勾選後標題列換成「已選 n 個檔案 共 x MB」、「清除選取」和「下載」。`
|
|
44
|
+
- `selectable`:顯示勾選框(滑過才出現,勾了一個之後全部顯示;觸控裝置一直顯示)。勾資料夾等於全選裡面的檔案,只勾一部分時資料夾顯示橫線。勾選後標題列換成「已選 n 個檔案 共 x MB」、「清除選取」和「下載」。`values` 加 `onValuesChange` 可以由外部控制(只會有檔案的 `id`)。`bulkActions(files, clear)` 可以再加按鈕。
|
|
45
45
|
- `onDownload(files)`:每個檔案右邊的下載按鈕和批次下載都會呼叫它。下載按鈕一直顯示在每個檔案的最右邊。
|
|
46
46
|
- `onOpen(file)`:點檔案列或按 Enter;沒給時改成下載。打開或下載後,請把那個檔案的 `unseen` 改成 `false`。
|
|
47
|
-
- `title`、`actions
|
|
47
|
+
- `title`、`actions`:標題列的文字(17 px)和右邊的按鈕。沒有標題時用 `label` 給螢幕閱讀器。
|
|
48
48
|
- `emptyText`:沒有任何項目時的文字,預設「這裡還沒有檔案」。
|
|
49
49
|
|
|
50
|
-
## 外觀
|
|
51
|
-
|
|
52
|
-
- 每層縮排 28 px,左側細線(`line`)。資料夾用 Phosphor 的 folder/folder-open,前面有會轉 90° 的箭頭。
|
|
53
|
-
- 檔案圖示:文件形狀,底部色塊寫副檔名。PDF 紅、影片紫、音訊桃紅、簡報橘、文件藍、試算表綠、圖片青、程式碼深灰、壓縮檔和其他灰。
|
|
54
|
-
- 清單寬 640 px 以上:日期和大小在右側排成欄(一般字體加等寬數字 tabular-nums,「13 小時前」這類有中文的不用 Geist Mono)。比較窄:放在名稱下方,寫成「13 小時前 · 137.6 MB」,檔名最多兩行。依照清單本身的寬度切換,不是看整個螢幕;日期照格式規則(一週內用相對時間)。
|
|
55
|
-
- 新檔案(`unseen`):日期變 `accent-text` 粗體;資料夾旁寫「2 個新」。
|
|
56
|
-
- 滑過列 `surface-sub`,勾選中的列 `accent-soft`。
|
|
57
|
-
- 展開時子項目往下長出 260 ms;減少動態效果時改成淡入。
|
|
58
|
-
|
|
59
50
|
## 一般的樹
|
|
60
51
|
|
|
61
52
|
`kind="plain"` 用在不是檔案的階層,例如呼叫關係、元件結構。
|
|
@@ -76,43 +67,23 @@ h(UI.TreeList, {
|
|
|
76
67
|
},
|
|
77
68
|
],
|
|
78
69
|
defaultOpen: ['root'],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
setSel(n.id);
|
|
82
|
-
},
|
|
70
|
+
value: sel,
|
|
71
|
+
onChange: setSel,
|
|
83
72
|
});
|
|
84
73
|
```
|
|
85
74
|
|
|
86
75
|
- 沒有檔案圖示和大小。每一列:名稱、分類標籤(`tags`,用 `UI.Tag` 顯示),名稱下方是位置:`meta` 直接顯示,或 `path` 用 `UI.format.path()` 保留頭尾、中間省略。
|
|
87
76
|
- 照資料原本的順序;有子項目的不會被排到前面。`sort` 仍然可以指定。
|
|
88
|
-
- 點一列呼叫 `
|
|
77
|
+
- 點一列呼叫 `onChange(id, node)`(`value` 是選中的 id),選中的列是 `accent-soft` 底;有子項目的列同時展開或收合(點名稱或左邊的箭頭都可以)。Enter 一樣:選取,有子項目時同時展開或收合;→ ← 只展開或收合。再點一次(或按 Enter)已選取的列只呼叫 `onChange`,不展開、不收合,也不重跑展開動畫;要收合請點左邊的箭頭或按 ←。
|
|
89
78
|
- `muted: true` 的項目名稱用次要文字色(例如外部函式)。`icon` 可以放 Phosphor 圖示名稱。
|
|
90
79
|
- 預設不顯示「全部展開」;需要時加 `toggleAll: true`。沒有勾選和下載。
|
|
91
80
|
|
|
92
|
-
## 手機上的縮排
|
|
93
|
-
|
|
94
|
-
清單寬度小於 600 px 時(看清單本身的寬度),每層縮 16 px,最多縮 3 層;更深的不再縮排,名稱前加層數「L5」。檔案清單和一般的樹都適用。
|
|
95
|
-
|
|
96
|
-
## 鍵盤
|
|
97
|
-
|
|
98
|
-
整棵樹只佔一個 Tab 停點:Tab 進到目前的那一列,再按 Tab 就離開整棵樹。列裡的連結和按鈕(`rowActions`、可點的標記)不在 Tab 順序裡。↑ ↓ 移動,Home/End 到頭尾,→ 展開;已展開或沒有子項目時,有連結或按鈕就移進列裡的第一個,否則到第一個子項目;在列裡 → ← 在連結之間移動,← 到第一個或 Esc 回到列,↑ ↓ 回到上下一列。← 收合或回到上一層,Enter 打開檔案或切換資料夾,空白鍵勾選。滑鼠點列或點連結都和以前一樣。按住 Alt、⌘(Meta)或 Ctrl 的方向鍵不處理,留給瀏覽器和系統(例如 Alt + ← 回上一頁)。
|
|
99
|
-
|
|
100
|
-
`UI.format.fileSize(bytes)` 可以把位元組寫成「186 KB」、「54.9 MB」。
|
|
101
|
-
|
|
102
|
-
## 無障礙
|
|
103
|
-
|
|
104
|
-
- 每一項的名稱是「名稱,標籤,meta,完整路徑」,例如「hook_of,推測(規則),×4,src/server/hooks/ops.c:58」:展開按鈕不算進名稱,畫面上縮寫的路徑(「…」)也不會被念出來。`ariaLabel` 可以整句換掉。
|
|
105
|
-
- 子項目放在 `role="group"` 裡,由上層項目的 `aria-owns` 指向。
|
|
106
|
-
- 展開時 live region 念「已展開,3 個子項目」,收合時念「已收合」。
|
|
107
|
-
- 第 5 層以後名稱前的「L5」標記滑過時顯示「第 5 層」(`title`);螢幕閱讀器從 `aria-level` 念層數,標記本身不念。
|
|
108
|
-
- 有 `loadChildren` 時,能展開的節點要標 `hasChildren`:還沒展開過也是 `aria-expanded="false"`,螢幕閱讀器分得出它和葉節點。沒標 `hasChildren` 的節點當作葉節點。
|
|
109
|
-
|
|
110
81
|
## 緊密模式(density="compact")
|
|
111
82
|
|
|
112
83
|
給檔案總管或側欄裡的大綱用:`kind="plain"` 加 `density="compact"`,每列 28 px、13 px 字、圖示 16 px,`meta` 放在名稱右邊同一行。觸控螢幕上每列仍是 48 px。通常再加 `bare`,放進沒有卡片的面板。
|
|
113
84
|
|
|
114
85
|
```tsx
|
|
115
|
-
<TreeList kind="plain" density="compact" bare label="檔案" items={tree}
|
|
86
|
+
<TreeList kind="plain" density="compact" bare label="檔案" items={tree} value={sel} onChange={setSel} />
|
|
116
87
|
```
|
|
117
88
|
|
|
118
89
|
## 標記(mark)
|
|
@@ -123,3 +94,5 @@ h(UI.TreeList, {
|
|
|
123
94
|
- `tone`:`warning`(預設,橘)、`danger`(紅)、`accent`(強調色)。
|
|
124
95
|
- 畫面上不放文字;螢幕閱讀器在名稱後面念 `label`,滑鼠停上去也看得到。
|
|
125
96
|
- 不要把元素塞進 `tags` 做標記,`tags` 是分類用的文字。
|
|
97
|
+
|
|
98
|
+
外觀、鍵盤與無障礙的完整規格在 repo 的 `docs/maintaining/TreeList.md`。
|
package/docs/Workbench.md
CHANGED
|
@@ -48,33 +48,6 @@ import { Workbench, useWorkbench, TreeList, IconButton, SearchField } from '@sea
|
|
|
48
48
|
- 主畫面(`children`):架構圖、文件或程式碼。
|
|
49
49
|
- 右側欄與下方面板:由 `views` 組成,每個 view 是一個分頁。`defaultLayout` 決定一開始在哪一邊,沒列到的放下方面板。
|
|
50
50
|
|
|
51
|
-
## 大小
|
|
52
|
-
|
|
53
|
-
| 區塊 | 預設 | 最小 | 最大 |
|
|
54
|
-
| --- | --- | --- | --- |
|
|
55
|
-
| 檔案總管寬度 | 260 px | 180 px | 480 px |
|
|
56
|
-
| 右側欄寬度 | 320 px | 240 px | 560 px |
|
|
57
|
-
| 下方面板高度 | 220 px | 120 px | 版面高度的 60% |
|
|
58
|
-
|
|
59
|
-
- 拖曳邊界改大小;邊界是 `role="separator"`,螢幕閱讀器念目前數值。
|
|
60
|
-
- 鍵盤:焦點在邊界上時,方向鍵一次 16 px,Shift 加方向鍵一次 64 px,Home、End 到最小、最大。雙擊恢復預設。
|
|
61
|
-
- 邊界平常是 1 px 分隔線,滑過 150 ms 後、拖曳中、鍵盤焦點時變成 2 px 強調色線。
|
|
62
|
-
|
|
63
|
-
## 分頁換位置
|
|
64
|
-
|
|
65
|
-
- 拖曳分頁到另一邊:滑鼠在分頁左半邊插在它前面,右半邊插在它後面,以 2 px 強調色直線標出;放到內容區排在最後。被拖的分頁半透明,目標區塊變 `accent-soft` 底色加虛線框與「放開以移到下方面板」。放開後位置不變時寫「位置不變」。
|
|
66
|
-
- 收起來或沒有分頁的一邊,拖曳時在原位置出現放置區。
|
|
67
|
-
- 鍵盤:分頁列右邊的「把目前分頁移到另一邊」按鈕;移到收起來的一邊時,那一邊自動打開。分頁之間用左右鍵移動。
|
|
68
|
-
- 分頁放不下時,多的收進最後的「更多 N」選單;目前的分頁一定留在分頁列上。
|
|
69
|
-
- `attention: true` 的 view 在分頁上有一個小圓點;它所在的區塊關著時,頂列的開關按鈕上也有。
|
|
70
|
-
|
|
71
|
-
## 快捷鍵
|
|
72
|
-
|
|
73
|
-
- Ctrl B(macOS ⌘B):檔案總管。焦點在輸入框裡時不處理,讓輸入框照常使用。
|
|
74
|
-
- Ctrl J(⌘J):下方面板。
|
|
75
|
-
- Ctrl Alt B(⌘⌥B):右側欄。
|
|
76
|
-
- Esc:關掉疊在主畫面上的檔案總管或右側欄。
|
|
77
|
-
|
|
78
51
|
## 記住版面
|
|
79
52
|
|
|
80
53
|
- 每個分頁在哪一邊、各邊開著哪個分頁、各區塊開或關、大小,存在 `localStorage` 的 `ui-workbench:` 加 `id`。新增的 view 照 `defaultLayout` 放;拿掉的 view 自動忽略。
|
|
@@ -155,24 +128,4 @@ React.useEffect(() => {
|
|
|
155
128
|
|
|
156
129
|
`open` 是寬螢幕記下的開關。窄螢幕上疊在主畫面上的區塊、手機的合併面板是否打開不在 `layout` 裡;手機上在合併面板換分頁時,`active` 會跟著更新。
|
|
157
130
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
寬度看的是 Workbench 本身。
|
|
161
|
-
|
|
162
|
-
- 1280 px 以下:右側欄平常不佔位置,按頂列按鈕後從右邊滑入疊在主畫面上,後面加半透明遮罩。
|
|
163
|
-
- 960 px 以下:檔案總管也一樣,從左邊滑入。在樹裡選了東西之後呼叫 `useWorkbench().explorerPicked()`,檔案總管自動關閉。
|
|
164
|
-
- 600 px 以下(手機):
|
|
165
|
-
- 右側欄和下方面板的分頁合成一張面板。頂列的「下方面板」「右側欄」按鈕打開它,先顯示那一邊目前的分頁。
|
|
166
|
-
- 面板固定在下半部(預設 45%),主畫面留在上半部,兩邊都能捲、都能點,沒有遮罩。拖動中間的握把調整高度(最小 120 px,最大 75%),雙擊恢復 45%。
|
|
167
|
-
- 分頁列可以左右捲動;在內容上左右滑動切換分頁;按住分頁 0.3 秒後拖動排序,分頁列即時排成放開後的順序;「往左移」「往右移」按鈕做同一件事。順序是右側欄的分頁接著下方面板的分頁,移過交界時,寬螢幕上它也換到另一邊。
|
|
168
|
-
- 檔案總管佔 85% 寬。
|
|
169
|
-
- 產品名稱隱藏,`brand.mark` 留著;麵包屑在主畫面上方,整列都給它。
|
|
170
|
-
- 疊在主畫面上的區塊不記開關:載入、還原、換寬度時都先收起;寬螢幕記下的開關不受影響。
|
|
171
|
-
|
|
172
|
-
## 動畫
|
|
173
|
-
|
|
174
|
-
- 寬螢幕收合、展開區塊:區塊滑出、滑入,主畫面同時變寬、變窄,300 ms。拖曳邊界時不加動畫。
|
|
175
|
-
- 疊加的區塊:照側邊抽屜,彈性滑入 450 ms、滑出 300 ms,遮罩淡入 300 ms。
|
|
176
|
-
- 分頁底線:照 Tabs 的水滴(前端 120 ms、後端 440 ms)。
|
|
177
|
-
- 換分頁時內容各區塊依序浮起,間隔 40 ms。
|
|
178
|
-
- 系統設定減少動態效果時不動。
|
|
131
|
+
外觀、鍵盤與無障礙的完整規格在 repo 的 `docs/maintaining/Workbench.md`。
|
package/docs/ZoneMap.md
CHANGED
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
```js
|
|
8
8
|
h(UI.ZoneMap, {
|
|
9
9
|
label: '設施分區',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
setSel(z.id);
|
|
13
|
-
},
|
|
10
|
+
value: sel,
|
|
11
|
+
onChange: setSel,
|
|
14
12
|
zones: [
|
|
15
13
|
{ id: 'a', name: 'A 區', value: 23.1, unit: '°C', detail: '進氣 21.8 °C' },
|
|
16
14
|
{ id: 'b', name: 'B 區', value: 28.4, unit: '°C', tone: 'warning', state: '注意', detail: '進氣 26.1 °C' },
|
|
@@ -27,9 +25,11 @@ h(UI.ZoneMap, {
|
|
|
27
25
|
## 細節
|
|
28
26
|
|
|
29
27
|
- 排法:第一行名稱(16 px 半粗)靠左、狀態(13 px 半粗)靠右;中間是主數值(31 px Geist Mono),單位縮成 16 px 一般粗細;最下一行次要資訊(13 px)。
|
|
30
|
-
- 填色:沒給 `fill` 時,用 `value` 在 `min`~`max
|
|
28
|
+
- 填色:沒給 `fill` 時,用 `value` 在 `min`~`max` 之間對應 `heat-1`…`heat-7`。`min`、`max` 預設是各分區數值的最小值和最大值,溫度、濕度、負載都適用;要固定的範圍(例如溫度 20~30 °C,不同時間的地圖顏色才能比較)時自己給。字的顏色自動選深色或白色(`textOn()`),跟著主題切換。
|
|
31
29
|
- 選取:`ink` 色 2 px 外框,在分區外 4 px。
|
|
32
30
|
- 沒有資料(`value` 是 `null`):虛線框,名稱加「沒有資料」,不能選。
|
|
33
31
|
- 位置:`area: { row, col, rows, cols }`(從 1 開始);沒給時依序排入 `columns` 欄(預設 4)、每列 `rowHeight` px(預設 120)。目前只有矩形。
|
|
34
32
|
- `fill`:列高平分地圖拿到的高度,最少 `rowHeight` px,不留空白。
|
|
33
|
+
- 選取是受控的 `value`(選中分區的 `id`)加 `onChange(id, zone)`。
|
|
34
|
+
- 數值和單位之間有一個空格,畫面上寫「23.1 °C」,和按鈕的名稱一樣(WCAG 2.5.3)。
|
|
35
35
|
- 鍵盤:每個分區是按鈕,Tab 依序經過,Enter 或空白鍵選取(`aria-pressed`)。螢幕閱讀器念「B 區,28.4 °C,注意,進氣 26.1 °C」。
|
package/docs/agents.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
For AI agents (Claude, Codex, Cursor and others) that build web pages with this design system. To change the design system itself, read [docs/maintaining.md](docs/maintaining.md).
|
|
4
|
+
|
|
5
|
+
SeanYeh's design system: typed React 19 components, design tokens, page templates and written rules. Docs site (Storybook, live examples, props tables): https://seanyeh77.github.io/ui-design-system/ ; index of every file: https://seanyeh77.github.io/ui-design-system/llms.txt
|
|
6
|
+
|
|
7
|
+
| Package | What it is |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `@seanyeh77/ui` | The components, `styles.css`, `bundle.js` for pages without a build step, and the docs under `docs/` (this file is `docs/agents.md`) |
|
|
10
|
+
| `@seanyeh77/tokens` | `tokens.css`, the fonts, a Tailwind v4 theme (`tailwind.css`), typed token names with `cssVar()` |
|
|
11
|
+
| `@seanyeh77/eslint-plugin-ui` | Lint rules for the core rules |
|
|
12
|
+
| `@seanyeh77/ui-cli` | `ui check`, `ui shots`, `ui docs`, `ui list`. Run it as `npx @seanyeh77/ui-cli …`: plain `npx ui` is an unrelated package. |
|
|
13
|
+
| Registry `…/r/<name>.json` | Page templates: `dashboard`, `list-detail`, `settings`, `login` |
|
|
14
|
+
|
|
15
|
+
## Building a page
|
|
16
|
+
|
|
17
|
+
Use it for any web page or tool UI unless the user asks for a different look. Spend the effort on the page's design and UX; do not write your own styles for something a component covers.
|
|
18
|
+
|
|
19
|
+
Read this, and nothing more:
|
|
20
|
+
|
|
21
|
+
1. `docs/guidelines.md`, the core rules every page needs (about 9 KB). Read it once, whole: the rules agents most often get wrong (list pages, buttons, status, numbers, empty and loading states) are there.
|
|
22
|
+
2. The 用法 block of each component you use: `npx @seanyeh77/ui-cli docs DataTable`. Add `--full` only for a detail the block does not cover. `ui list` lists every component by group; `ui docs icons` prints the icon names. The same files are in `node_modules/@seanyeh77/ui/docs/` and on the docs site under `/md/`.
|
|
23
|
+
3. A topic file only when the page has that topic: `layout`, `forms`, `data`, `monitoring`, `code`, `theme`, `motion` (`ui docs layout`).
|
|
24
|
+
|
|
25
|
+
Then:
|
|
26
|
+
|
|
27
|
+
- Start from a page template when one fits: `npx shadcn@latest add https://seanyeh77.github.io/ui-design-system/r/dashboard.json` (also `list-detail`, `settings`, `login`). It needs a `components.json` (`npx shadcn@latest init`); without shadcn, write the JSON's `files[].content` yourself.
|
|
28
|
+
- Your own CSS uses tokens only: `var(--surface)` in CSS, `cssVar('ink-muted')` from `@seanyeh77/tokens` in style props, `bg-surface text-ink-muted` with the Tailwind theme.
|
|
29
|
+
- TypeScript enforces most rules (icon names, `confirm` on danger actions, DataTable column keys): fix type errors instead of casting them away. In development the components warn in the console with the cause and the fix.
|
|
30
|
+
- Items marked 看情況 ("situational") are not fixed rules: choose per context and say which way you chose.
|
|
31
|
+
- Before you finish: `npx @seanyeh77/ui-cli check <file or URL>`. It opens the page at 390 px and 1280 px, light and dark, opens its tabs, SettingsLayout categories and toolbar menus, and fails on what the rules forbid (console errors, overflow, small or crowded targets, a card in a card, native controls, wrapped labels, cut-off text, page CSS that overrides components, axe-core WCAG 2.2 AA); each problem says what to fix. `--open <selector>` also checks a dialog or drawer; `--no-axe` and `--no-interact` skip those parts. Add `--shots shots/` and check the screenshots against the last section of `guidelines.md`.
|
|
32
|
+
|
|
33
|
+
## Projects with a build step (Vite, Next.js and similar)
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm i react react-dom @seanyeh77/ui @seanyeh77/tokens
|
|
37
|
+
npm i -D eslint @seanyeh77/eslint-plugin-ui @seanyeh77/ui-cli
|
|
38
|
+
npx playwright install chromium # the browser ui check uses; or set CHROMIUM_PATH
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import '@seanyeh77/ui/fonts.css'; // the self-hosted fonts of @seanyeh77/tokens, resolved by the bundler: works offline
|
|
43
|
+
import '@seanyeh77/ui/tokens.css';
|
|
44
|
+
import '@seanyeh77/ui/styles.css';
|
|
45
|
+
import { AppShell, Button, DataTable, initTheme } from '@seanyeh77/ui';
|
|
46
|
+
|
|
47
|
+
initTheme(); // once, at startup: applies the stored theme and accent
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
// eslint.config.js
|
|
52
|
+
import ui from '@seanyeh77/eslint-plugin-ui';
|
|
53
|
+
export default [ui.configs.recommended];
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- ES modules only: TypeScript needs `moduleResolution` `bundler`, `node16` or `nodenext` (Vite and Next.js templates use `bundler`). React 19 is required. The module starts with `'use client'`; server code that only formats dates, numbers or text imports `@seanyeh77/ui/format`.
|
|
57
|
+
- The system's CSS is in the cascade layer `ui`: your unlayered CSS always wins, with no `!important`. So delete the template's starter CSS (Vite's `index.css`, `App.css`) and put any reset in `@layer base { … }`. With Tailwind v4, start the main CSS with `@layer theme, base, ui, components, utilities;` (details in `theme.md`).
|
|
58
|
+
- The ESLint plugin depends only on ESLint and works with TypeScript 7. Templates that ship oxlint instead need `eslint` and an `eslint.config.js`, as above.
|
|
59
|
+
- pnpm may refuse a version published less than a day ago: `pnpm add @seanyeh77/ui@<version> --config.minimum-release-age=0`.
|
|
60
|
+
|
|
61
|
+
## Pages without a build step
|
|
62
|
+
|
|
63
|
+
`bundle.js` brings React 19, ReactDOM and every component (`window.React`, `window.ReactDOM`, `window.UI`):
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<meta charset="utf-8">
|
|
67
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
68
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.45.0/fonts.css">
|
|
69
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.45.0/tokens.css">
|
|
70
|
+
<link rel="stylesheet" href="https://seanyeh77.github.io/ui-design-system/dist/0.45.0/styles.css">
|
|
71
|
+
<div id="root"></div>
|
|
72
|
+
<script src="https://seanyeh77.github.io/ui-design-system/dist/0.45.0/bundle.js"></script>
|
|
73
|
+
<script>
|
|
74
|
+
const h = React.createElement;
|
|
75
|
+
UI.initTheme();
|
|
76
|
+
ReactDOM.createRoot(document.getElementById('root')).render(h(UI.Button, { variant: 'primary' }, '儲存'));
|
|
77
|
+
</script>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Pin a version as above: `/dist/<version>/` never changes; `/dist/` always serves the latest release. jsDelivr has the same files (`https://cdn.jsdelivr.net/npm/@seanyeh77/ui@0.45.0/dist/bundle.js`, `…/dist/styles.css`; the fonts at `https://cdn.jsdelivr.net/npm/@seanyeh77/tokens@0.45.0/fonts.css`). Without a bundler, `@seanyeh77/ui/dist/fonts.css` cannot resolve its import: load the tokens package's `fonts.css` or the pinned site URL.
|
|
81
|
+
|
|
82
|
+
Scope: web UI, and the tokens of SeanYeh's Slidev decks (`initTheme({ preset: 'teaching' })`, see `theme.md`). Slide layout, Notion documents and teaching diagrams follow the separate `teaching-materials-style` skill.
|
package/docs/code.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 閱讀程式碼的工具
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
給讀程式碼、看架構、看專案文件的工具頁(例如程式碼瀏覽器、架構說明網站)。細節在各元件的 README。
|
|
4
4
|
|
|
5
5
|
## 選哪個元件
|
|
6
6
|
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
- 程式碼裡的名稱連結保留語法色,按住 Ctrl 或 ⌘ 時才可點(一般點擊選取文字,觸控螢幕點一下就開)。
|
|
25
25
|
- AI 寫的內容最後加 `AiMark`;沒有標示的代表來自程式碼或語言規則。推測的關係用細虛線和「推測」標籤,專案宣告的關係用長短交替的虛線。
|
|
26
26
|
- 標籤只標例外:大部分項目都一樣的屬性不標,只標需要留意的,用 Tag 包 Term;預設值在下方說明一次(例如沒有標示的關係都由編譯器確認,只標「推測(規則)」)。
|
|
27
|
-
-
|
|
27
|
+
- 分類標籤(「外部」、「範本」、「推測」)用 `Tag`;進度或結果用 Badge。
|
|
28
28
|
- 架構圖放在卡片上;比外框寬時先縮窄方框、再整張縮小,還放不下才左右捲動,右緣有漸層,下方有捲動提示,捲動位置會記住。程式碼太長的行自動換行,不橫向捲動。
|