@xdev-asia/ui 0.0.0-stage → 4.15.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/AGENTS.md +66 -0
- package/LICENSE +202 -0
- package/README.md +149 -2
- package/assets/brand/mobile/android-background-1024.png +0 -0
- package/assets/brand/mobile/android-background.svg +13 -0
- package/assets/brand/mobile/android-foreground-1024.png +0 -0
- package/assets/brand/mobile/android-foreground.svg +13 -0
- package/assets/brand/mobile/android-monochrome-1024.png +0 -0
- package/assets/brand/mobile/android-monochrome.svg +3 -0
- package/assets/brand/mobile/ios-icon-1024.png +0 -0
- package/assets/brand/mobile/ios-icon-dark-1024.png +0 -0
- package/assets/brand/mobile/ios-icon-dark.svg +22 -0
- package/assets/brand/mobile/ios-icon.svg +22 -0
- package/assets/brand/systems/xdev-ui-icon.svg +23 -0
- package/assets/brand/systems/xdev-ui-lockup-dark.svg +24 -0
- package/assets/brand/systems/xdev-ui-lockup-light.svg +24 -0
- package/assets/brand/systems/xdev-ui-mark-lit.svg +13 -0
- package/assets/brand/systems/xdev-ui-mark.svg +3 -0
- package/assets/brand/xdev-icon-512.png +0 -0
- package/assets/brand/xdev-icon-blue.svg +23 -0
- package/assets/brand/xdev-icon.svg +23 -0
- package/assets/brand/xdev-lockup-dark.svg +24 -0
- package/assets/brand/xdev-lockup-light.svg +24 -0
- package/assets/brand/xdev-mark-lit.svg +13 -0
- package/assets/brand/xdev-mark-tile.svg +3 -0
- package/assets/brand/xdev-mark.svg +3 -0
- package/bin/xdev-ui-skills.mjs +142 -0
- package/dist/Workspace.stories.d.ts +15 -0
- package/dist/ai-manifest.json +3727 -0
- package/dist/chunks/FileDrop-C-ygn8kF.js +891 -0
- package/dist/chunks/FileDrop-C-ygn8kF.js.map +1 -0
- package/dist/chunks/Popover-Ds4RBtZv.js +121 -0
- package/dist/chunks/Popover-Ds4RBtZv.js.map +1 -0
- package/dist/chunks/crop-CahE3q01.js +55 -0
- package/dist/chunks/crop-CahE3q01.js.map +1 -0
- package/dist/chunks/modal-BYFY08ti.js +54 -0
- package/dist/chunks/modal-BYFY08ti.js.map +1 -0
- package/dist/components/ActionTile/ActionTile.d.ts +14 -0
- package/dist/components/ActionTile/ActionTile.stories.d.ts +18 -0
- package/dist/components/ActivityBar/ActivityBar.d.ts +36 -0
- package/dist/components/ActivityBar/ActivityBar.stories.d.ts +27 -0
- package/dist/components/AgentChip/AgentChip.d.ts +10 -0
- package/dist/components/AgentChip/AgentChip.stories.d.ts +21 -0
- package/dist/components/AgentRow/AgentRow.d.ts +24 -0
- package/dist/components/AgentRow/AgentRow.stories.d.ts +19 -0
- package/dist/components/AppShell/AppShell.d.ts +58 -0
- package/dist/components/AppShell/AppShell.stories.d.ts +17 -0
- package/dist/components/ApprovalBar/ApprovalBar.d.ts +23 -0
- package/dist/components/ApprovalBar/ApprovalBar.stories.d.ts +18 -0
- package/dist/components/AttentionInbox/AttentionInbox.d.ts +43 -0
- package/dist/components/AttentionInbox/AttentionInbox.stories.d.ts +16 -0
- package/dist/components/AudioPreview/AudioPreview.d.ts +33 -0
- package/dist/components/AudioPreview/AudioPreview.stories.d.ts +23 -0
- package/dist/components/AudioPreview/audio-preview-store.d.ts +14 -0
- package/dist/components/AuthShell/AuthShell.d.ts +24 -0
- package/dist/components/AuthShell/AuthShell.stories.d.ts +20 -0
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +21 -0
- package/dist/components/Badge/Badge.d.ts +14 -0
- package/dist/components/Badge/Badge.stories.d.ts +26 -0
- package/dist/components/Banner/Banner.d.ts +11 -0
- package/dist/components/Banner/Banner.stories.d.ts +23 -0
- package/dist/components/BarChart/BarChart.d.ts +20 -0
- package/dist/components/BarChart/BarChart.stories.d.ts +24 -0
- package/dist/components/Board/Board.d.ts +9 -0
- package/dist/components/Board/Board.stories.d.ts +18 -0
- package/dist/components/BoardCard/BoardCard.d.ts +32 -0
- package/dist/components/BoardColumn/BoardColumn.d.ts +24 -0
- package/dist/components/BottomNav/BottomNav.d.ts +40 -0
- package/dist/components/BottomNav/BottomNav.stories.d.ts +40 -0
- package/dist/components/BrandMark/BrandMark.d.ts +20 -0
- package/dist/components/BrandMark/BrandMark.stories.d.ts +28 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +22 -0
- package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +27 -0
- package/dist/components/BulkBar/BulkBar.d.ts +21 -0
- package/dist/components/BulkBar/BulkBar.stories.d.ts +16 -0
- package/dist/components/Button/Button.d.ts +42 -0
- package/dist/components/Button/Button.stories.d.ts +41 -0
- package/dist/components/Card/Card.d.ts +22 -0
- package/dist/components/Card/Card.stories.d.ts +307 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +18 -0
- package/dist/components/Coachmark/Coachmark.d.ts +31 -0
- package/dist/components/Coachmark/Coachmark.stories.d.ts +27 -0
- package/dist/components/Coachmark/placeCoachmark.d.ts +31 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +19 -0
- package/dist/components/CodeBlock/CodeBlock.stories.d.ts +22 -0
- package/dist/components/CodeInput/CodeInput.d.ts +25 -0
- package/dist/components/CodeInput/CodeInput.stories.d.ts +32 -0
- package/dist/components/CodeInput/normalizeCode.d.ts +10 -0
- package/dist/components/ColorField/ColorField.d.ts +29 -0
- package/dist/components/Combobox/Combobox.d.ts +105 -0
- package/dist/components/Combobox/Combobox.stories.d.ts +42 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +94 -0
- package/dist/components/CommandPalette/CommandPalette.stories.d.ts +39 -0
- package/dist/components/Comment/Comment.d.ts +25 -0
- package/dist/components/Comment/Comment.stories.d.ts +24 -0
- package/dist/components/CommitGraph/CommitGraph.d.ts +15 -0
- package/dist/components/CommitGraph/CommitGraph.stories.d.ts +15 -0
- package/dist/components/CommitGraph/graphLanes.d.ts +56 -0
- package/dist/components/Composer/Composer.d.ts +31 -0
- package/dist/components/Composer/Composer.stories.d.ts +17 -0
- package/dist/components/Container/Container.d.ts +11 -0
- package/dist/components/Container/Container.stories.d.ts +14 -0
- package/dist/components/DataTable/DataTable.d.ts +79 -0
- package/dist/components/DataTable/DataTable.stories.d.ts +26 -0
- package/dist/components/DataTable/table-helpers.d.ts +16 -0
- package/dist/components/DataTable/table-reorder.d.ts +40 -0
- package/dist/components/DatePicker/Calendar.d.ts +51 -0
- package/dist/components/DatePicker/DatePicker.d.ts +51 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +42 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +59 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.d.ts +42 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +14 -0
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +21 -0
- package/dist/components/Dialog/Dialog.d.ts +43 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +22 -0
- package/dist/components/DiffStat/DiffStat.d.ts +12 -0
- package/dist/components/DiffStat/DiffStat.stories.d.ts +15 -0
- package/dist/components/Disclosure/Disclosure.d.ts +18 -0
- package/dist/components/Disclosure/Disclosure.stories.d.ts +27 -0
- package/dist/components/DonutChart/DonutChart.d.ts +30 -0
- package/dist/components/DonutChart/DonutChart.stories.d.ts +26 -0
- package/dist/components/Drawer/Drawer.d.ts +27 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +18 -0
- package/dist/components/Emblem/Emblem.d.ts +19 -0
- package/dist/components/Emblem/Emblem.stories.d.ts +19 -0
- package/dist/components/EmptyState/EmptyState.d.ts +43 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +17 -0
- package/dist/components/EndpointPanel/EndpointPanel.d.ts +29 -0
- package/dist/components/FacetFilter/FacetFilter.d.ts +39 -0
- package/dist/components/FacetFilter/FacetFilter.stories.d.ts +23 -0
- package/dist/components/FacetFilter/facet-helpers.d.ts +5 -0
- package/dist/components/Field/Field.d.ts +27 -0
- package/dist/components/Field/Field.stories.d.ts +25 -0
- package/dist/components/FieldMessage/FieldMessage.d.ts +10 -0
- package/dist/components/FieldMessage/FieldMessage.stories.d.ts +14 -0
- package/dist/components/FileDrop/FileDrop.d.ts +72 -0
- package/dist/components/FileDrop/FileDrop.stories.d.ts +18 -0
- package/dist/components/FileIcon/FileIcon.d.ts +25 -0
- package/dist/components/FileIcon/FileIcon.stories.d.ts +14 -0
- package/dist/components/FilterChip/FilterChip.d.ts +9 -0
- package/dist/components/FilterChip/FilterChip.stories.d.ts +19 -0
- package/dist/components/FlowMap/FlowMap.d.ts +74 -0
- package/dist/components/FlowMap/FlowMap.stories.d.ts +24 -0
- package/dist/components/FontField/FontField.d.ts +15 -0
- package/dist/components/FontField/FontField.stories.d.ts +17 -0
- package/dist/components/FormDialog/FormDialog.d.ts +40 -0
- package/dist/components/FormDialog/FormDialog.stories.d.ts +22 -0
- package/dist/components/FormSection/FormSection.d.ts +19 -0
- package/dist/components/FormSection/FormSection.stories.d.ts +16 -0
- package/dist/components/Grid/Grid.d.ts +23 -0
- package/dist/components/Grid/Grid.stories.d.ts +19 -0
- package/dist/components/Grid/breakpoints.d.ts +25 -0
- package/dist/components/Heatmap/Heatmap.d.ts +22 -0
- package/dist/components/Heatmap/Heatmap.stories.d.ts +24 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.stories.d.ts +20 -0
- package/dist/components/IconButton/IconButton.d.ts +16 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +27 -0
- package/dist/components/Identity/Identity.d.ts +14 -0
- package/dist/components/Identity/Identity.stories.d.ts +14 -0
- package/dist/components/Kbd/Kbd.d.ts +5 -0
- package/dist/components/Kbd/Kbd.stories.d.ts +13 -0
- package/dist/components/Label/Label.d.ts +15 -0
- package/dist/components/Label/Label.stories.d.ts +16 -0
- package/dist/components/LaunchCard/LaunchCard.d.ts +36 -0
- package/dist/components/LaunchCard/LaunchCard.stories.d.ts +32 -0
- package/dist/components/List/List.d.ts +11 -0
- package/dist/components/List/List.stories.d.ts +13 -0
- package/dist/components/ListRow/ListRow.d.ts +20 -0
- package/dist/components/ListRow/ListRow.stories.d.ts +27 -0
- package/dist/components/Menu/Menu.d.ts +53 -0
- package/dist/components/Menu/Menu.stories.d.ts +85 -0
- package/dist/components/Menu/MenuButton.d.ts +23 -0
- package/dist/components/Menu/MenuButton.stories.d.ts +46 -0
- package/dist/components/Menu/menu-keys.d.ts +26 -0
- package/dist/components/Meter/Meter.d.ts +18 -0
- package/dist/components/Meter/Meter.stories.d.ts +34 -0
- package/dist/components/ModelChip/ModelChip.d.ts +26 -0
- package/dist/components/ModelChip/ModelChip.stories.d.ts +18 -0
- package/dist/components/NavList/NavList.d.ts +56 -0
- package/dist/components/NavList/NavList.stories.d.ts +25 -0
- package/dist/components/PageHeader/PageHeader.d.ts +14 -0
- package/dist/components/PageHeader/PageHeader.stories.d.ts +14 -0
- package/dist/components/Pagination/Pagination.d.ts +28 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +16 -0
- package/dist/components/PairingCode/PairingCode.d.ts +17 -0
- package/dist/components/PairingCode/PairingCode.stories.d.ts +24 -0
- package/dist/components/PaletteTrigger/PaletteTrigger.d.ts +16 -0
- package/dist/components/PanZoom/PanZoom.d.ts +24 -0
- package/dist/components/PanZoom/PanZoom.stories.d.ts +11 -0
- package/dist/components/Popover/Popover.d.ts +24 -0
- package/dist/components/Popover/Popover.stories.d.ts +25 -0
- package/dist/components/Prose/Prose.d.ts +8 -0
- package/dist/components/Prose/Prose.stories.d.ts +12 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +27 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +22 -0
- package/dist/components/ReactionBar/ReactionBar.d.ts +21 -0
- package/dist/components/ReactionBar/ReactionBar.stories.d.ts +26 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +30 -0
- package/dist/components/ResourceCard/ResourceCard.stories.d.ts +19 -0
- package/dist/components/ReviewComment/ReviewComment.d.ts +41 -0
- package/dist/components/ReviewComment/ReviewComment.stories.d.ts +19 -0
- package/dist/components/RouteDiagram/RouteDiagram.d.ts +27 -0
- package/dist/components/RunTimeline/RunTimeline.d.ts +28 -0
- package/dist/components/RunTimeline/RunTimeline.stories.d.ts +31 -0
- package/dist/components/SaveBar/SaveBar.d.ts +56 -0
- package/dist/components/SaveBar/SaveBar.stories.d.ts +16 -0
- package/dist/components/SearchInput/SearchInput.d.ts +22 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +18 -0
- package/dist/components/SearchPicker/SearchPicker.d.ts +49 -0
- package/dist/components/SearchPicker/SearchPicker.stories.d.ts +33 -0
- package/dist/components/Segmented/Segmented.d.ts +18 -0
- package/dist/components/Segmented/Segmented.stories.d.ts +18 -0
- package/dist/components/Select/Select.d.ts +26 -0
- package/dist/components/Select/Select.stories.d.ts +22 -0
- package/dist/components/ServiceStatus/ServiceStatus.d.ts +13 -0
- package/dist/components/SessionBar/SessionBar.d.ts +33 -0
- package/dist/components/SessionBar/SessionBar.stories.d.ts +27 -0
- package/dist/components/SettingRow/SettingRow.d.ts +17 -0
- package/dist/components/SettingRow/SettingRow.stories.d.ts +26 -0
- package/dist/components/SettingsShell/SettingsShell.d.ts +52 -0
- package/dist/components/SettingsShell/SettingsShell.stories.d.ts +9 -0
- package/dist/components/ShellTitle/ShellTitle.d.ts +25 -0
- package/dist/components/SiteShell/SiteShell.d.ts +24 -0
- package/dist/components/SiteShell/SiteShell.stories.d.ts +18 -0
- package/dist/components/Skeleton/Skeleton.d.ts +20 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +15 -0
- package/dist/components/SortableList/SortableList.d.ts +30 -0
- package/dist/components/SortableList/SortableList.stories.d.ts +16 -0
- package/dist/components/Spinner/Spinner.d.ts +15 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +14 -0
- package/dist/components/SplitHandle/SplitHandle.d.ts +25 -0
- package/dist/components/SplitHandle/SplitHandle.stories.d.ts +18 -0
- package/dist/components/Stack/Stack.d.ts +18 -0
- package/dist/components/Stack/Stack.stories.d.ts +12 -0
- package/dist/components/StatTile/StatTile.d.ts +30 -0
- package/dist/components/StatTile/StatTile.stories.d.ts +32 -0
- package/dist/components/StatusBar/StatusBar.d.ts +8 -0
- package/dist/components/StatusBar/StatusBar.stories.d.ts +15 -0
- package/dist/components/StatusDot/StatusDot.d.ts +18 -0
- package/dist/components/StatusDot/StatusDot.stories.d.ts +24 -0
- package/dist/components/StepDots/StepDots.d.ts +15 -0
- package/dist/components/StepDots/StepDots.stories.d.ts +15 -0
- package/dist/components/SwatchGroup/SwatchGroup.d.ts +20 -0
- package/dist/components/SwatchGroup/SwatchGroup.stories.d.ts +33 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/Switch.stories.d.ts +17 -0
- package/dist/components/TabStrip/TabStrip.d.ts +44 -0
- package/dist/components/TabStrip/TabStrip.stories.d.ts +66 -0
- package/dist/components/Tabs/Tabs.d.ts +28 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +34 -0
- package/dist/components/Tag/Tag.d.ts +12 -0
- package/dist/components/Tag/Tag.stories.d.ts +21 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +19 -0
- package/dist/components/ThemeEditor/ThemeEditor.d.ts +56 -0
- package/dist/components/ThemePreview/ThemePreview.d.ts +15 -0
- package/dist/components/ThemeSwitch/ThemeSwitch.d.ts +30 -0
- package/dist/components/ThemeSwitch/ThemeSwitch.stories.d.ts +15 -0
- package/dist/components/TimeField/TimeField.d.ts +32 -0
- package/dist/components/TimeField/TimeField.stories.d.ts +36 -0
- package/dist/components/TimeField/time-text.d.ts +26 -0
- package/dist/components/TimeSeriesChart/TimeSeriesChart.d.ts +30 -0
- package/dist/components/TimeSeriesChart/TimeSeriesChart.stories.d.ts +29 -0
- package/dist/components/Toast/Toast.d.ts +18 -0
- package/dist/components/Toast/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/Toaster.d.ts +18 -0
- package/dist/components/Toast/Toaster.stories.d.ts +16 -0
- package/dist/components/Toast/toast-region.d.ts +17 -0
- package/dist/components/Toast/toast-store.d.ts +46 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +16 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +20 -0
- package/dist/components/Toolbar/Toolbar.d.ts +21 -0
- package/dist/components/Toolbar/Toolbar.stories.d.ts +25 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +23 -0
- package/dist/components/TreeView/TreeView.d.ts +42 -0
- package/dist/components/TreeView/TreeView.stories.d.ts +26 -0
- package/dist/components/TreeView/pathRows.d.ts +16 -0
- package/dist/components/TreeView/treeKeys.d.ts +16 -0
- package/dist/components/UsageMeterRow/UsageMeterRow.d.ts +28 -0
- package/dist/components/UsageMeterRow/UsageMeterRow.stories.d.ts +26 -0
- package/dist/components/WorktreeRow/WorktreeRow.d.ts +32 -0
- package/dist/components/WorktreeRow/WorktreeRow.stories.d.ts +32 -0
- package/dist/components/ZoomBar/ZoomBar.d.ts +22 -0
- package/dist/components/ZoomBar/ZoomBar.stories.d.ts +17 -0
- package/dist/editor/RichTextEditor/EditorToolbar.d.ts +35 -0
- package/dist/editor/RichTextEditor/ImageBar.d.ts +17 -0
- package/dist/editor/RichTextEditor/LinkForm.d.ts +16 -0
- package/dist/editor/RichTextEditor/RichTextEditor.d.ts +45 -0
- package/dist/editor/RichTextEditor/RichTextEditor.stories.d.ts +43 -0
- package/dist/editor/RichTextEditor/extensions.d.ts +23 -0
- package/dist/editor/RichTextEditor/icons.d.ts +23 -0
- package/dist/editor/RichTextEditor/insertImage.d.ts +28 -0
- package/dist/editor/RichTextEditor/labels.d.ts +32 -0
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor.js +629 -0
- package/dist/editor.js.map +1 -0
- package/dist/fonts.css +2 -0
- package/dist/icons.d.ts +891 -0
- package/dist/image/ImageCropper/ImageCropper.d.ts +39 -0
- package/dist/image/ImageCropper/ImageCropper.stories.d.ts +18 -0
- package/dist/image/ImageField/ImageField.d.ts +86 -0
- package/dist/image/ImageField/ImageField.stories.d.ts +29 -0
- package/dist/image/crop.d.ts +39 -0
- package/dist/image/index.d.ts +3 -0
- package/dist/image.js +377 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.ts +138 -0
- package/dist/index.js +8253 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/cx.d.ts +2 -0
- package/dist/internal/date.d.ts +96 -0
- package/dist/internal/duration.d.ts +4 -0
- package/dist/internal/focus.d.ts +34 -0
- package/dist/internal/keys.d.ts +21 -0
- package/dist/internal/modal.d.ts +8 -0
- package/dist/internal/portal.d.ts +9 -0
- package/dist/internal/position.d.ts +37 -0
- package/dist/internal/reveal.d.ts +6 -0
- package/dist/internal/roving.d.ts +25 -0
- package/dist/internal/scroll-fade.d.ts +16 -0
- package/dist/internal/session-labels.d.ts +3 -0
- package/dist/internal/text.d.ts +2 -0
- package/dist/llms-full.txt +9786 -0
- package/dist/llms.txt +162 -0
- package/dist/mcp.js +24706 -0
- package/dist/panZoom.d.ts +40 -0
- package/dist/styles.css +2 -0
- package/dist/styles.layered.css +4 -0
- package/dist/tailwind.css +38 -0
- package/dist/test-utils.d.ts +5 -0
- package/dist/theme/font.d.ts +20 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/theme.d.ts +62 -0
- package/dist/tokens.css +308 -0
- package/dist/tokens.json +269 -0
- package/dist/types.d.ts +6 -0
- package/package.json +177 -4
- package/skills/xdev-ui-admin/SKILL.md +106 -0
- package/skills/xdev-ui-admin/references/audit-log.md +18 -0
- package/skills/xdev-ui-admin/references/console-chrome.md +119 -0
- package/skills/xdev-ui-admin/references/dashboard.md +24 -0
- package/skills/xdev-ui-admin/references/detail-and-forms.md +22 -0
- package/skills/xdev-ui-admin/references/dialogs.md +33 -0
- package/skills/xdev-ui-admin/references/forms.md +60 -0
- package/skills/xdev-ui-admin/references/from-other-kits.md +75 -0
- package/skills/xdev-ui-admin/references/layout.md +58 -0
- package/skills/xdev-ui-admin/references/navigation.md +10 -0
- package/skills/xdev-ui-admin/references/permissions.md +26 -0
- package/skills/xdev-ui-admin/references/resource-list.md +64 -0
- package/skills/xdev-ui-admin/references/responsive.md +68 -0
- package/skills/xdev-ui-admin/references/rich-content.md +37 -0
- package/skills/xdev-ui-admin/references/settings.md +20 -0
- package/skills/xdev-ui-admin/references/sign-in.md +47 -0
- package/skills/xdev-ui-admin/references/states-feedback.md +26 -0
- package/skills/xdev-ui-admin/references/tree-list.md +50 -0
- package/skills/xdev-ui-admin/references/users-roles.md +32 -0
- package/skills/xdev-ui-admin/references/ux-principles.md +43 -0
- package/skills/xdev-ui-admin/references/visual-identity.md +62 -0
- package/skills/xdev-ui-admin/templates/admin/_gitignore +3 -0
- package/skills/xdev-ui-admin/templates/admin/_mcp.json +5 -0
- package/skills/xdev-ui-admin/templates/admin/_npmrc +2 -0
- package/skills/xdev-ui-admin/templates/admin/index.html +14 -0
- package/skills/xdev-ui-admin/templates/admin/package.json +24 -0
- package/skills/xdev-ui-admin/templates/admin/src/App.tsx +66 -0
- package/skills/xdev-ui-admin/templates/admin/src/app.css +26 -0
- package/skills/xdev-ui-admin/templates/admin/src/auth/permissions.ts +7 -0
- package/skills/xdev-ui-admin/templates/admin/src/auth/session.ts +42 -0
- package/skills/xdev-ui-admin/templates/admin/src/data/context.ts +11 -0
- package/skills/xdev-ui-admin/templates/admin/src/data/store.ts +84 -0
- package/skills/xdev-ui-admin/templates/admin/src/data/useLoad.ts +25 -0
- package/skills/xdev-ui-admin/templates/admin/src/i18n/en.ts +98 -0
- package/skills/xdev-ui-admin/templates/admin/src/i18n/index.tsx +63 -0
- package/skills/xdev-ui-admin/templates/admin/src/i18n/vi.ts +98 -0
- package/skills/xdev-ui-admin/templates/admin/src/i18n/xdev-ui-labels.ts +47 -0
- package/skills/xdev-ui-admin/templates/admin/src/main.tsx +12 -0
- package/skills/xdev-ui-admin/templates/admin/src/notify.tsx +36 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/Dashboard.tsx +55 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/ItemDetail.tsx +83 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/ItemsList.tsx +140 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/NotFound.tsx +17 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/Settings.tsx +37 -0
- package/skills/xdev-ui-admin/templates/admin/src/pages/SignIn.tsx +105 -0
- package/skills/xdev-ui-admin/templates/admin/src/router.ts +49 -0
- package/skills/xdev-ui-admin/templates/admin/src/shell/AccountMenu.tsx +36 -0
- package/skills/xdev-ui-admin/templates/admin/src/shell/Shell.tsx +53 -0
- package/skills/xdev-ui-admin/templates/admin/src/theme.ts +34 -0
- package/skills/xdev-ui-admin/templates/admin/tsconfig.json +16 -0
- package/skills/xdev-ui-admin/templates/admin/vite.config.ts +4 -0
- package/skills/xdev-ui-build-app/SKILL.md +85 -0
- package/skills/xdev-ui-build-app/references/app-shell.md +20 -0
- package/skills/xdev-ui-build-app/references/i18n.md +9 -0
- package/skills/xdev-ui-build-app/references/responsive-a11y.md +10 -0
- package/skills/xdev-ui-build-app/references/routing.md +14 -0
- package/skills/xdev-ui-build-app/references/setup.md +25 -0
- package/skills/xdev-ui-build-app/references/states.md +25 -0
- package/skills/xdev-ui-build-app/references/theme.md +11 -0
- package/skills/xdev-ui-build-app/templates/app/_gitignore +3 -0
- package/skills/xdev-ui-build-app/templates/app/_mcp.json +5 -0
- package/skills/xdev-ui-build-app/templates/app/_npmrc +2 -0
- package/skills/xdev-ui-build-app/templates/app/index.html +14 -0
- package/skills/xdev-ui-build-app/templates/app/package.json +24 -0
- package/skills/xdev-ui-build-app/templates/app/src/App.tsx +77 -0
- package/skills/xdev-ui-build-app/templates/app/src/app.css +3 -0
- package/skills/xdev-ui-build-app/templates/app/src/i18n/en.ts +35 -0
- package/skills/xdev-ui-build-app/templates/app/src/i18n/index.tsx +63 -0
- package/skills/xdev-ui-build-app/templates/app/src/i18n/vi.ts +35 -0
- package/skills/xdev-ui-build-app/templates/app/src/i18n/xdev-ui-labels.ts +19 -0
- package/skills/xdev-ui-build-app/templates/app/src/main.tsx +12 -0
- package/skills/xdev-ui-build-app/templates/app/src/notify.tsx +36 -0
- package/skills/xdev-ui-build-app/templates/app/src/pages/Home.tsx +22 -0
- package/skills/xdev-ui-build-app/templates/app/src/pages/NotFound.tsx +17 -0
- package/skills/xdev-ui-build-app/templates/app/src/pages/Settings.tsx +35 -0
- package/skills/xdev-ui-build-app/templates/app/src/router.ts +26 -0
- package/skills/xdev-ui-build-app/templates/app/src/theme.ts +34 -0
- package/skills/xdev-ui-build-app/templates/app/tsconfig.json +16 -0
- package/skills/xdev-ui-build-app/templates/app/vite.config.ts +4 -0
- package/skills/xdev-ui-design/SKILL.md +111 -0
- package/skills/xdev-ui-design/references/brand.md +58 -0
- package/skills/xdev-ui-design/references/checklist.md +55 -0
- package/skills/xdev-ui-design/references/owner-notes.md +54 -0
- package/skills/xdev-ui-design/references/porting.md +56 -0
- package/skills/xdev-ui-design/references/rules.md +135 -0
- package/skills/xdev-ui-design/references/screens.md +61 -0
- package/skills/xdev-ui-design/references/tokens.md +97 -0
- package/skills/xdev-ui-improve/SKILL.md +96 -0
- package/skills/xdev-ui-improve/references/plan-template.md +59 -0
- package/skills/xdev-ui-motion/SKILL.md +87 -0
- package/skills/xdev-ui-motion/references/recipes.md +117 -0
- package/skills/xdev-ui-review/SKILL.md +141 -0
- package/skills/xdev-ui-review/references/checklist.md +92 -0
- package/skills/xdev-ui-review/references/grep-recipes.md +37 -0
- package/skills/xdev-ui-review/references/pages/dashboard.md +21 -0
- package/skills/xdev-ui-review/references/pages/dialogs-forms.md +23 -0
- package/skills/xdev-ui-review/references/pages/list.md +22 -0
- package/skills/xdev-ui-review/references/pages/provider-grid.md +19 -0
- package/skills/xdev-ui-review/references/pages/settings.md +18 -0
- package/skills/xdev-ui-review/references/pages/sign-in.md +21 -0
- package/skills/xdev-ui-review/references/web-interface.md +73 -0
- package/skills/xdev-ui-review/scripts/audit.mjs +775 -0
- package/skills/xdev-ui-ux-standards/SKILL.md +88 -0
- package/skills/xdev-ui-ux-standards/references/heuristics-checklist.md +129 -0
- package/skills/xdev-ui-ux-standards/references/patterns.md +120 -0
- package/skills/xdev-ui-ux-standards/references/platforms.md +104 -0
- package/skills/xdev-ui-ux-standards/references/standards-map.md +144 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Pre-delivery checklist
|
|
2
|
+
|
|
3
|
+
The only pre-delivery checklist for UI built with `@xdev-asia/ui`. The admin and build skills end here; the standards skill adds the WCAG and heuristics pass on top. Tick each item in the running app. Items marked (auto) are also flagged by `scripts/audit.mjs`. Mark an item you could not run as "not run"; never tick it.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- Process
|
|
7
|
+
- Tokens and identity
|
|
8
|
+
- Layout
|
|
9
|
+
- Themes and language
|
|
10
|
+
- Keyboard, focus and names
|
|
11
|
+
- States and data safety
|
|
12
|
+
- Forms
|
|
13
|
+
- Lists
|
|
14
|
+
- Actions and labels
|
|
15
|
+
- Code
|
|
16
|
+
- Page types and standards
|
|
17
|
+
|
|
18
|
+
## Process
|
|
19
|
+
- [ ] The audit ran over the source folder with `--i18n`, and every error is fixed, not silenced.
|
|
20
|
+
- [ ] Every part was checked with `xdevui_get_component`; no prop, token or class name was guessed.
|
|
21
|
+
- [ ] The page was looked at in the running app with real data, not only read in the source.
|
|
22
|
+
- [ ] Dark and light were each checked on screen; one theme was not inferred from the other.
|
|
23
|
+
- [ ] Widths 375, 768 and 1440px were checked, then 320px for overflow; 375 and the desktop width were screenshotted.
|
|
24
|
+
- [ ] The page was checked with reduced motion on.
|
|
25
|
+
|
|
26
|
+
## Tokens and identity
|
|
27
|
+
- [ ] (auto) No colour literal, no raw `px` except 1px hairlines, no raw font size: `font: var(--type-*)`.
|
|
28
|
+
- [ ] Spacing uses `--x-space-1` to `--x-space-8`; widths use `%`, `ch`, `rem`, `--w-side` or `--w-panel`; no numeric z-index.
|
|
29
|
+
- [ ] Cyan `--x-color-signal` appears only as the focus ring. The one accent `--accent` marks the current thing.
|
|
30
|
+
- [ ] Hairlines (1px `--line`) separate regions; shadows only on menus, dialogs and the command palette.
|
|
31
|
+
- [ ] (auto) State is a tint, a 1px border or a `StatusDot`; never a coloured left stripe on a rounded card or row.
|
|
32
|
+
- [ ] Icons come from `Icon` (`xdevui_list_icons`); no emoji or raster image as an icon; the brand is `BrandMark`, never recoloured.
|
|
33
|
+
|
|
34
|
+
## Layout
|
|
35
|
+
- [ ] No horizontal scroll on the page at any width. (auto, partial) `fixed-width` and `nowrap`.
|
|
36
|
+
- [ ] A `DataTable` scrolls inside its own wrapper, with actions `sticky="end"` or `stack`; `hideNarrow` columns have dropped.
|
|
37
|
+
- [ ] The `AppShell` sidebar is a drawer on a phone: the menu button opens it, the backdrop and Esc close it.
|
|
38
|
+
- [ ] `Dialog` and `FormDialog` (modal) open as a bottom sheet below 640px; a `Drawer` takes the full width.
|
|
39
|
+
- [ ] `PageHeader` actions wrap under the title; `FormSection` is one column; `Pagination` fits on one or two lines.
|
|
40
|
+
- [ ] Content that loads later has its space reserved (`Skeleton` in its shape), so nothing jumps when it arrives.
|
|
41
|
+
- [ ] Touch targets are at least `--x-space-6` high (44px under `pointer: coarse`); nothing overlaps. (auto, partial) `target-size`.
|
|
42
|
+
|
|
43
|
+
## Themes and language
|
|
44
|
+
- [ ] In both themes no text loses contrast, no surface turns white or black by accident, and borders and selected rows stay visible.
|
|
45
|
+
- [ ] Switching `en` and `vi` changes every label, clips nothing, and library parts get `labels` in the active language.
|
|
46
|
+
- [ ] (auto) `en` and `vi` have the same keys and no empty values.
|
|
47
|
+
- [ ] Dates and numbers use `Intl.DateTimeFormat(locale)` and `Intl.NumberFormat(locale)`; stored dates are ISO `YYYY-MM-DD`.
|
|
48
|
+
|
|
49
|
+
## Keyboard, focus and names
|
|
50
|
+
- [ ] Tab order follows the reading order; the focus ring is visible on every stop; the skip link is first and jumps to `main`.
|
|
51
|
+
- [ ] (auto) No `outline: none` without a `:focus-visible` replacement; no positive `tabIndex`; icon-only buttons are named.
|
|
52
|
+
- [ ] A focused control is never fully hidden behind a sticky header, a `SaveBar` or a `Toast`.
|
|
53
|
+
- [ ] A modal `Dialog` moves focus in, Esc cancels, and focus returns to the trigger.
|
|
54
|
+
- [ ] Icon-only controls are `IconButton` with a `label`; a toggle exposes its pressed, selected or expanded state.
|
|
55
|
+
- [ ] An `Icon` next to visible text has no `label`, so it stays hidden from screen readers; an icon that carries meaning alone has a `label`.
|
|
56
|
+
- [ ] Colour is never the only signal: status has text or an icon with a name.
|
|
57
|
+
- [ ] Every drag (reorder, resize) also works from the keyboard or a button.
|
|
58
|
+
|
|
59
|
+
## States and data safety
|
|
60
|
+
- [ ] Every data region renders loading, error, empty and success, and each is tested.
|
|
61
|
+
- [ ] An empty list says what to do next; an empty search names the query.
|
|
62
|
+
- [ ] A failed load shows a `Banner` with a retry action, not a blank page.
|
|
63
|
+
- [ ] A saved change shows a `Toast` in past tense; a failed save shows a `Banner` and keeps the user's input.
|
|
64
|
+
- [ ] Buttons show `busy` and cannot submit twice; uploads lock Save while busy.
|
|
65
|
+
- [ ] Nothing moves, slides or spins under reduced motion except progress. (auto) `reduced-motion`.
|
|
66
|
+
- [ ] Nothing advances by itself (carousel, ticker, rotating tip) unless it has a pause control and stops on focus.
|
|
67
|
+
|
|
68
|
+
## Forms
|
|
69
|
+
- [ ] The container fits the form: `FormDialog` up to ~5 fields, `Drawer` with the list in view, a page with `SaveBar` for longer.
|
|
70
|
+
- [ ] Every field has a visible label; hints say the format; errors sit on the field in text and keep the values.
|
|
71
|
+
- [ ] A form that fails with several errors also moves focus to a summary that links to each field.
|
|
72
|
+
- [ ] Leaving a dirty form asks (`useUnsavedGuard`, `confirmLeave`).
|
|
73
|
+
- [ ] Sign-in fields allow paste and password managers. (auto) `autocomplete`.
|
|
74
|
+
|
|
75
|
+
## Lists
|
|
76
|
+
- [ ] Search, filters, sort, page and tab live in the URL; a filter change resets the page to 1.
|
|
77
|
+
- [ ] Facets show counts (`FilterChip` or `FacetFilter`); a selection shows a `BulkBar`; destructive bulk actions confirm with the count.
|
|
78
|
+
- [ ] Reorder only for manually ordered lists, disabled while sorted. Long lists page with `Pagination`.
|
|
79
|
+
|
|
80
|
+
## Actions and labels
|
|
81
|
+
- [ ] One `PageHeader`, one `h1` and one primary `Button` per surface; the primary is last in its row. (auto) `primary-count`.
|
|
82
|
+
- [ ] Destructive confirms use `Dialog` with `alert` and `modal`; the title names the object ("Delete user Ada?") and the primary repeats the verb.
|
|
83
|
+
- [ ] Actions the role can never do are hidden; actions not possible yet are disabled with the reason written next to them, not in a `Tooltip`. The server checks again.
|
|
84
|
+
- [ ] (auto) Labels are sentence-case verbs ("Create session"), with no emoji and no exclamation marks.
|
|
85
|
+
|
|
86
|
+
## Code
|
|
87
|
+
- [ ] Pages are a pure `XView` plus a data-loading `XPage`; views are tested with `renderToStaticMarkup` in every state.
|
|
88
|
+
- [ ] Filtering, sorting, validation and CSV are pure functions with unit tests.
|
|
89
|
+
|
|
90
|
+
## Page types and standards
|
|
91
|
+
- [ ] The check for each page type in `references/pages/` was run: list, dashboard, settings, dialogs-forms, sign-in, provider-grid.
|
|
92
|
+
- [ ] For WCAG 2.2 AA, the APG patterns and the ten heuristics, walk the heuristics checklist in the `xdev-ui-ux-standards` skill. `--contrast` lists token pairs below WCAG contrast.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Grep recipes
|
|
2
|
+
|
|
3
|
+
Quick searches when the audit reports a rule or when you review without running it. Run them from the app source folder.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- Colours and sizes
|
|
7
|
+
- Type
|
|
8
|
+
- Stripes and focus
|
|
9
|
+
- Components and tokens
|
|
10
|
+
|
|
11
|
+
## Colours and sizes
|
|
12
|
+
```bash
|
|
13
|
+
grep -rnE '#[0-9a-fA-F]{3,8}\b|rgba?\(|hsla?\(|oklch\(' --include='*.css' --include='*.ts' --include='*.tsx' .
|
|
14
|
+
grep -rnE '[0-9]+px' --include='*.css' . | grep -v '1px'
|
|
15
|
+
```
|
|
16
|
+
Replace with a token: ask `xdevui_search_tokens` with the colour role ("border", "muted text") or the space you need.
|
|
17
|
+
|
|
18
|
+
## Type
|
|
19
|
+
```bash
|
|
20
|
+
grep -rnE 'font-size|fontSize' --include='*.css' --include='*.tsx' .
|
|
21
|
+
grep -rn 'font:' --include='*.css' . | grep -v 'var(--type-'
|
|
22
|
+
```
|
|
23
|
+
Use `font: var(--type-body)`, `var(--type-label)`, `var(--type-page-title)` or `var(--type-stat)`.
|
|
24
|
+
|
|
25
|
+
## Stripes and focus
|
|
26
|
+
```bash
|
|
27
|
+
grep -rnE 'border-left|border-inline-start|borderLeft' --include='*.css' --include='*.tsx' .
|
|
28
|
+
grep -rnE 'outline:\s*(none|0)' --include='*.css' .
|
|
29
|
+
```
|
|
30
|
+
A stripe becomes a `--bg-3` tint, a 1px `--line` border or a `StatusDot`. Never remove the outline: the ring is `--x-color-signal`.
|
|
31
|
+
|
|
32
|
+
## Components and tokens
|
|
33
|
+
```bash
|
|
34
|
+
grep -rnoE '<[A-Z][A-Za-z]+' --include='*.tsx' . | sort | uniq -c | sort -rn
|
|
35
|
+
grep -rnoE 'var\(--[a-z0-9-]+' --include='*.css' --include='*.tsx' . | sort | uniq -c | sort -rn
|
|
36
|
+
```
|
|
37
|
+
Check each component with `xdevui_get_component` and each token with `xdevui_search_tokens`; icons with `xdevui_list_icons`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Page check: dashboard
|
|
2
|
+
|
|
3
|
+
**This page is a dashboard when** it opens with totals (`StatTile`) and charts (`BarChart`, `DonutChart`, `TimeSeriesChart`, `Heatmap`, `FlowMap`) over a period, and the person reads it more than they act on it.
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/dashboard.md`, `states-feedback.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `stat-delta`: a `StatTile` with a `delta` and no `hint` saying what it is compared with.
|
|
9
|
+
- `i18n-labels` (with `--i18n`): a `StatTile`, `BarChart` or `ZoomBar` with no `labels`.
|
|
10
|
+
- Chart props the types require (`label` on `BarChart`, `Heatmap`) fail `tsc`, so run the typecheck too.
|
|
11
|
+
|
|
12
|
+
## By hand
|
|
13
|
+
- [ ] **Loading.** Tiles render with `loading`, and charts show a skeleton. The page never returns `null` while waiting.
|
|
14
|
+
- [ ] **Error.** A failed load shows a `Banner` with "Try again" above the tiles. Tiles from an earlier good load may stay.
|
|
15
|
+
- [ ] **Empty.** A period with no data shows an inline `EmptyState`, not a flat zero chart with no words.
|
|
16
|
+
- [ ] **Delta tone.** For each tile, ask whether up is good. Errors, latency and cost going up are `deltaTone="bad"`. The tone is set by the caller, never left to the arrow.
|
|
17
|
+
- [ ] **Delta basis.** The delta comes from data (not a literal such as `"+12%"`) and its `hint` names the period it is compared with.
|
|
18
|
+
- [ ] **Numbers** use `Intl.NumberFormat` in the active language, with units ("1.2k requests", "340 ms").
|
|
19
|
+
- [ ] **Grid.** At 360px the tiles fall to one column. At 1440px they do not stretch past about 22ch each (`repeat(auto-fit, minmax(min(100%, 22ch), 1fr))` or `Grid columns`).
|
|
20
|
+
- [ ] **Period.** The period control is in the URL. Changing it keeps the scroll position and does not blank the page.
|
|
21
|
+
- [ ] **Charts** have a name and a text or table alternative, and colour is never the only cue.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Page check: dialogs and forms
|
|
2
|
+
|
|
3
|
+
**This check applies when** a page opens a `Dialog`, `FormDialog` or `Drawer`, or holds a form of `Field`s. Run it with the page's own check.
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/dialogs.md`, `forms.md`, `states-feedback.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `confirm-dialog`: a destructive `Dialog` (`alert` or `tone="danger"`) that is not `modal`, has no `alert`, or has no `busy` or `confirmDisabled`.
|
|
9
|
+
- `form-busy`: a `FormDialog` with no `busy`.
|
|
10
|
+
- `autocomplete`: a `password`, `email` or `tel` field with no `autoComplete`.
|
|
11
|
+
- `i18n-labels` (with `--i18n`): a `Dialog` with no `labels` (or no `confirmLabel` and `cancelLabel`), and a `FormDialog`, `Drawer` or `Toast` with no `labels`.
|
|
12
|
+
|
|
13
|
+
## By hand
|
|
14
|
+
- [ ] **Destructive confirm.** The title names the object ("Delete user Ada?"). The body says what is lost and whether it can be undone. The confirm button repeats the verb ("Delete user"). Focus starts on Cancel.
|
|
15
|
+
- [ ] **Locked while sending.** Confirm and submit cannot be pressed twice. Esc and Cancel do not close the dialog in the middle of a request.
|
|
16
|
+
- [ ] **Errors stay inside.** A failed request shows a translated message in the dialog (`error` or a `Banner`). The dialog stays open and keeps the values. It is never a raw `String(e)` and never only a toast.
|
|
17
|
+
- [ ] **Success names the object.** The dialog closes, and a past-tense `Toast` names the object ("User Ada deleted"). The list shows the change.
|
|
18
|
+
- [ ] **Validation.** Each field shows its own message under it, on submit or blur, not while the person types. The first invalid field gets focus.
|
|
19
|
+
- [ ] **Submit label** is the verb ("Create user"), not the noun or "OK".
|
|
20
|
+
- [ ] **Autofill.** Sign-in password: `current-password`. A new password: `new-password`. An admin filling in someone else's email: `off`.
|
|
21
|
+
- [ ] **Keyboard.** Focus moves into the dialog, Tab stays inside, Esc closes, and focus returns to the button that opened it.
|
|
22
|
+
- [ ] **No stacked modals.** A dialog never opens a second modal. A `Drawer` with unsaved changes asks before closing (`confirmLeave`).
|
|
23
|
+
- [ ] **360px.** Dialogs become bottom sheets with the actions in reach. Long forms scroll inside the dialog, not the page.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Page check: list or table
|
|
2
|
+
|
|
3
|
+
**This page is a list when** its main content is a `DataTable`, a `List` of rows, or a `ResourceList` of records the person can filter, open or act on. A grid of cards for providers, tools or integrations is a provider grid (`provider-grid.md`).
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/resource-list.md`, `states-feedback.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `list-empty`: a `DataTable` with no `empty`.
|
|
9
|
+
- `i18n-labels` (with `--i18n`): a `DataTable`, `Pagination`, `SearchInput`, `FacetFilter` or `BulkBar` with no `labels`.
|
|
10
|
+
- `primary-count`, `label-voice`, `icon-button-name`.
|
|
11
|
+
|
|
12
|
+
## By hand
|
|
13
|
+
Each line passes or fails. Note what you saw.
|
|
14
|
+
|
|
15
|
+
- [ ] **Four states.** Make the load slow: a skeleton or `DataTable loading` shows, not a blank page. Make it fail: a `Banner` with a "Try again" button shows. With no records: an `EmptyState` says what to do next. With filters that hide every row: a second empty state names the filter and offers to clear it.
|
|
16
|
+
- [ ] **Filters in the URL.** Set a filter or search, reload: the same rows show. Back undoes the filter.
|
|
17
|
+
- [ ] **Status** is a `StatusDot` with words, not colour alone and not a bare string such as `"on"`.
|
|
18
|
+
- [ ] **Row actions.** Each row button has a name that includes the row ("Delete Ada", not "Delete" repeated). Several actions go in a row `Menu`. The action column has a header, even a visually hidden one.
|
|
19
|
+
- [ ] **Bulk.** Selecting rows shows a `BulkBar` with the count. Actions that need a selection are disabled until there is one, not hidden.
|
|
20
|
+
- [ ] **360px.** No sideways page scroll. Secondary columns use `hideNarrow`, or the table uses `stack`. The row action stays reachable.
|
|
21
|
+
- [ ] **Ids and emails** use `mono`. Numbers and dates are in the active language.
|
|
22
|
+
- [ ] **Paging or load more** keeps the filter, and says how many rows there are.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Page check: provider grid
|
|
2
|
+
|
|
3
|
+
**This page is a provider grid when** it shows things (providers, models, tools, integrations, apps) as cards or rows that a person picks, turns on or opens. People are a list (`list.md`) with `Avatar`.
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/visual-identity.md`, `resource-list.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `resource-face`: a `ResourceCard` with no `leading`, or with an `Avatar` or `img` as its face.
|
|
9
|
+
- `img-alt`: an `img` with no `alt`.
|
|
10
|
+
- `i18n-labels` (with `--i18n`): a `SearchInput` or `FacetFilter` with no `labels`.
|
|
11
|
+
|
|
12
|
+
## By hand
|
|
13
|
+
- [ ] **Face.** Each thing leads with an `Emblem` (its logo on a plate that works in both themes, or its own letters and colour). It never uses a generic icon or grey initials. `Avatar` is only for people.
|
|
14
|
+
- [ ] **Count heading.** Above each grid is a heading with how many things it holds ("Providers · 12").
|
|
15
|
+
- [ ] **State.** On or off is a `StatusDot` with words from the strings files. A switched-off card is `dimmed`. Colour is never the only cue.
|
|
16
|
+
- [ ] **Four states.** Loading shows skeleton cards. An error shows a `Banner` with "Try again". Empty shows an `EmptyState` with the next step. A search with no results names the query.
|
|
17
|
+
- [ ] **Container.** The page sits in a `Container`. At 1440px cards do not stretch edge to edge. At 360px they fall to one column with no sideways scroll.
|
|
18
|
+
- [ ] **Card actions.** A whole-card link (`href` or `onClick`) has one name. Extra actions are in `trailing` and still reachable by keyboard (`revealTrailing` shows them on focus too).
|
|
19
|
+
- [ ] **Search** filters as the person types. The query is in the URL, and the count updates and is read out.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Page check: settings
|
|
2
|
+
|
|
3
|
+
**This page is a settings page when** it is made of `SettingRow`s or a `SettingsShell` whose controls change how the account, workspace or app behaves.
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/settings.md`, `forms.md`, `permissions.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `i18n-labels` (with `--i18n`): a `SettingsShell` or `SaveBar` with no `labels`.
|
|
9
|
+
- `primary-count`, `label-voice`.
|
|
10
|
+
|
|
11
|
+
## By hand
|
|
12
|
+
- [ ] **Apply at once.** A `Switch`, `Select` or `SegmentedControl` saves when it changes. While the save runs it is disabled. It confirms with a `Toast`. On failure it flips back and shows a `Banner`. A Switch next to a Save button fails this check.
|
|
13
|
+
- [ ] **Save only for text.** Text fields are saved with a Save button or a `SaveBar`. It shows only when something changed, and leaving with unsaved text asks first.
|
|
14
|
+
- [ ] **Names.** Each row passes `controlId`. The control has that `id` and `aria-describedby="<controlId>-hint"`. Clicking the label moves focus to the control.
|
|
15
|
+
- [ ] **Loaded value.** The page reads the stored value before showing the control (a skeleton until then). It never starts from a hard-coded default that a save would overwrite.
|
|
16
|
+
- [ ] **Sections in the route.** Each section has its own URL. Reload keeps it, and Back goes to the last section.
|
|
17
|
+
- [ ] **Roles.** A person who may not change a setting sees it disabled, with a `Banner` that says who can change it. It is not hidden.
|
|
18
|
+
- [ ] **Danger zone.** Destructive settings are last, apart from the rest, and confirm with a destructive dialog (`dialogs-forms.md`).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Page check: sign-in
|
|
2
|
+
|
|
3
|
+
**This page is a sign-in page when** it sits in `AuthShell`, or it is a step of signing in: the form, a two-step code, an OAuth consent, a device or desktop hand-off, or a magic-link landing.
|
|
4
|
+
|
|
5
|
+
Source rules: `xdev-ui-admin/references/sign-in.md`, `forms.md`.
|
|
6
|
+
|
|
7
|
+
## Auto (audit.mjs)
|
|
8
|
+
- `sign-in-shell`: an `AuthShell` with no `headline`, `actions` or `footer`, inline `actions` with no `ThemeSwitch`, a heading as the headline, or more than one `h1` in the file.
|
|
9
|
+
- `autocomplete`: a `password`, `email` or `tel` field with no `autoComplete`.
|
|
10
|
+
- `primary-count`, `label-voice`, `icon-button-name`.
|
|
11
|
+
|
|
12
|
+
## By hand
|
|
13
|
+
- [ ] **Frame.** The form pane holds the brand, the language `Select`, the `ThemeSwitch` (icon) and the form, and nothing else.
|
|
14
|
+
- [ ] **Widths.** From 1024px the showcase takes about five eighths of the width, its art centred with the headline and tagline under it and the footer at its foot. At 375px only the form shows, with the footer under it and no sideways scroll.
|
|
15
|
+
- [ ] **One title.** One `h1` ("Welcome back", "Sign in") with one muted line under it on what the account is for. No emoji and no exclamation mark.
|
|
16
|
+
- [ ] **One primary.** One full-width primary `Button`. Other ways in (another provider, a passkey, an email link, a token) are secondary, split by a short "or" line.
|
|
17
|
+
- [ ] **Art** is the product's own picture or the built-in pattern, in tokens, so it follows dark and light. It is never an illustration copied from another product.
|
|
18
|
+
- [ ] **Failure.** A failed sign-in shows a `Banner` above the form that says what to do, and keeps what the person typed. The submit button is disabled while the request runs.
|
|
19
|
+
- [ ] **Autofill.** `username` or `email`, `current-password`, `one-time-code` on code fields. A passkey prompt the person closes shows no error.
|
|
20
|
+
- [ ] **Every step.** The two-step, consent and hand-off steps use the same frame, keep the language and theme the person picked, and say what happens next.
|
|
21
|
+
- [ ] **Reload.** Reloading a signed-in page never flashes the sign-in form first.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Web interface pass
|
|
2
|
+
|
|
3
|
+
What a code review checks beyond the audit, adapted for `@xdev-asia/ui` from Vercel's Web Interface Guidelines (https://github.com/vercel-labs/web-interface-guidelines). Where the two disagree, xDev's rule is the one written here. Report findings as `file:line - problem`, grouped by file, one line each.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- Already done by the library
|
|
7
|
+
- Forms
|
|
8
|
+
- Links, state and URLs
|
|
9
|
+
- Copy and typography
|
|
10
|
+
- Headings and content
|
|
11
|
+
- Layout and touch
|
|
12
|
+
- Theme and locale
|
|
13
|
+
- Where xDev differs
|
|
14
|
+
|
|
15
|
+
## Already done by the library
|
|
16
|
+
|
|
17
|
+
Do not flag these in an app that uses the parts as documented: focus rings (`:focus-visible`, never removed), icon-only `IconButton` names, `role="status"` toasts, reduced-motion guards in every animated part, `overscroll-behavior: contain` in dialogs, drawers and popover lists, `touch-action: manipulation` on controls, native `select` colours, `color-scheme` per theme, safe-area padding on sheets, the sticky `SaveBar` leaving room for the focused field, and "Loading…" / "Saving…" default labels. Flag them when app CSS overrides them.
|
|
18
|
+
|
|
19
|
+
## Forms
|
|
20
|
+
|
|
21
|
+
- Every input has a visible label (`Field`, `Select label`, `Textarea`), a `name`, the right `type` and `inputMode`, and `autoComplete` (`username`, `current-password`, `new-password`, `email`, `tel`, `one-time-code`, or `off` for non-personal fields such as a menu path or a search filter). Audit: `autocomplete`.
|
|
22
|
+
- `spellCheck={false}` on emails, usernames, codes, paths and identifiers.
|
|
23
|
+
- Paste always works (audit `paste-block`).
|
|
24
|
+
- The submit button stays enabled until the request starts, then `busy`. Validate on submit, show the error next to the field and move focus to the first invalid one (`[aria-invalid="true"]`). Do not disable Save because the form is invalid (`SaveBar saveDisabled` is for "nothing to save", not for errors).
|
|
25
|
+
- Leaving a dirty form asks first: `useUnsavedGuard` with a translated message.
|
|
26
|
+
- A placeholder shows an example and ends with `…` ("Name, path or code…"); it never repeats the label and is never the label.
|
|
27
|
+
|
|
28
|
+
## Links, state and URLs
|
|
29
|
+
|
|
30
|
+
- A control that goes somewhere is a link: `Button href`, `<a href>` or the router's link, so Cmd/Ctrl-click and middle-click work. Audit: `nav-onclick`.
|
|
31
|
+
- A `div`, `span` or `li` never takes clicks; use `button` for actions. Audit: `click-div`.
|
|
32
|
+
- View state lives in the URL: filters, search, sort, page, tab, period, a previewed role. Write it with `history.replaceState` when it changes and read it once as the view's starting state, so reload and a shared link keep it.
|
|
33
|
+
- Destructive actions confirm (`Dialog alert`) or offer Undo in a `Toast`; never act at once.
|
|
34
|
+
|
|
35
|
+
## Copy and typography
|
|
36
|
+
|
|
37
|
+
- `…` not `...` (audit `ellipsis`); text for a wait ends with it.
|
|
38
|
+
- A number and its unit stay together: `10 MB`, `Ctrl K`.
|
|
39
|
+
- Numbers that line up or change use `--type-mono`, `--type-stat` or `font-variant-numeric: tabular-nums`; table columns of counts set `mono`.
|
|
40
|
+
- Second person and active voice, the fix with the problem: "Check the latest email, or send a new code", not "We could not verify the code".
|
|
41
|
+
- Specific labels: "Save menu", "Send reset link", not "Submit" or "Continue".
|
|
42
|
+
- Brand names, paths, codes and versions are wrapped in `translate="no"`.
|
|
43
|
+
|
|
44
|
+
## Headings and content
|
|
45
|
+
|
|
46
|
+
- One `h1` per view (the `PageHeader` or the sign-in title). A `Card` directly under it is `headingLevel={2}`; the default `3` skips a level there. `FormSection` titles are `h2`.
|
|
47
|
+
- Text in flex rows can shrink: `min-width: 0` with `overflow-wrap: anywhere` or an ellipsis that has the full text elsewhere.
|
|
48
|
+
- Plan for empty, short, average and very long values in every list, card and cell.
|
|
49
|
+
|
|
50
|
+
## Layout and touch
|
|
51
|
+
|
|
52
|
+
- Full-height surfaces use `dvh` after `vh` (audit `viewport-height`).
|
|
53
|
+
- The viewport never blocks zoom (audit `zoom-block`).
|
|
54
|
+
- No horizontal page scroll from 320 to 1440px; wide content scrolls in its own wrapper.
|
|
55
|
+
- A drag, swipe or pinch has a button or keyboard path too (`PanZoom` keys, `SortableList` keys).
|
|
56
|
+
- On a phone the top bar keeps at most four controls; move the rest into preferences or the account menu.
|
|
57
|
+
|
|
58
|
+
## Theme and locale
|
|
59
|
+
|
|
60
|
+
- `<meta name="theme-color">` follows the page background: set it from the computed `body` background after `applyTheme`.
|
|
61
|
+
- The theme control is an icon: `ThemeSwitch variant="icon"` in a top bar, `variant="icons"` in settings; words only where the three choices need explaining.
|
|
62
|
+
- Dates and numbers through `Intl` with the active locale; `lang` on `<html>` follows the chosen language.
|
|
63
|
+
- `document.title` names the page ("Menus · Acme console").
|
|
64
|
+
|
|
65
|
+
## Where xDev differs
|
|
66
|
+
|
|
67
|
+
| Web Interface Guidelines | xDev |
|
|
68
|
+
|---|---|
|
|
69
|
+
| Title Case for headings and buttons | sentence case everywhere |
|
|
70
|
+
| `outline-none` with a `ring-*` replacement | keep the library's 2px `--x-color-signal` outline; never remove it |
|
|
71
|
+
| Tailwind utilities (`truncate`, `size-*`, `h-dvh`) | tokens and library parts first; Tailwind v4 utilities only from `@xdev-asia/ui/tailwind.css` |
|
|
72
|
+
| `virtua` for lists over 50 items | `Pagination` first; virtualize only a list that must scroll as one |
|
|
73
|
+
| hover states on every control | the library draws them; app CSS adds none |
|