@xdev-asia/ui 0.0.0-stage → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +304 -0
- package/dist/tokens.json +267 -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,19 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { AgentRow } from "./AgentRow";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AgentRow;
|
|
6
|
+
args: {
|
|
7
|
+
name: string;
|
|
8
|
+
cli: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
expanded: false;
|
|
11
|
+
onToggle: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
12
|
+
actions: import("react").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Collapsed: Story;
|
|
18
|
+
export declare const Expanded: Story;
|
|
19
|
+
export declare const OneOpenAtATime: Story;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
export interface AppShellLabels {
|
|
3
|
+
openNav: string;
|
|
4
|
+
closeNav: string;
|
|
5
|
+
skipToContent: string;
|
|
6
|
+
/** aria-label of the sidebar. */
|
|
7
|
+
nav: string;
|
|
8
|
+
/** Name of the top-bar button that folds the sidebar into a rail of icons. */
|
|
9
|
+
collapseNav: string;
|
|
10
|
+
/** Name of the same button while the sidebar is a rail. */
|
|
11
|
+
expandNav: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AppShellProps {
|
|
14
|
+
/** Top of the sidebar: BrandMark + product name. */
|
|
15
|
+
brand?: ReactNode;
|
|
16
|
+
/** Sidebar content: one or more NavList. */
|
|
17
|
+
nav: ReactNode;
|
|
18
|
+
/** Bottom of the sidebar: account, version. */
|
|
19
|
+
navFooter?: ReactNode;
|
|
20
|
+
/** Page title at the start of the top bar, usually a `ShellTitle`; the bar grows to fit a description. */
|
|
21
|
+
title?: ReactNode;
|
|
22
|
+
/** Start of the top bar, usually a Breadcrumb. */
|
|
23
|
+
crumbs?: ReactNode;
|
|
24
|
+
/** Width below which the sidebar is a drawer: "md" (768px, default) or "lg" (1024px). */
|
|
25
|
+
drawerBelow?: "md" | "lg";
|
|
26
|
+
/** End of the top bar: search, notifications Popover, account Menu. */
|
|
27
|
+
actions?: ReactNode;
|
|
28
|
+
/** Phone tab bar, usually a `BottomNav`. Shown under `main` below 768px only; the sidebar covers wider screens. */
|
|
29
|
+
bottomNav?: ReactNode;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
/** Toast elements, stacked bottom-right in a fixed .ws-toasts region. Its live regions are always mounted: a `Toast` with `tone="danger"` is announced assertively, the rest politely. */
|
|
32
|
+
toasts?: ReactNode;
|
|
33
|
+
/** Drawer state below 768px; controlled. */
|
|
34
|
+
navOpen?: boolean;
|
|
35
|
+
onNavOpenChange?: (open: boolean) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Wide screens: the sidebar as a rail of icons (labels move to titles and stay readable by screen readers).
|
|
38
|
+
* Controlled; with `onNavCollapsedChange` the top bar gets a button that folds and unfolds it. Below the drawer
|
|
39
|
+
* width the sidebar is a drawer as usual and this has no effect.
|
|
40
|
+
*/
|
|
41
|
+
navCollapsed?: boolean;
|
|
42
|
+
onNavCollapsedChange?: (collapsed: boolean) => void;
|
|
43
|
+
/** Hides the sidebar and the top bar so the page fills the window (a "focus" or maximized view); Esc is the app's to bind. */
|
|
44
|
+
chromeHidden?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Wide screens: no sidebar, the brand moves into the top bar (a "top navigation" layout; put the menu in `crumbs`).
|
|
47
|
+
* Below the drawer width the sidebar is the drawer as usual, so phones keep the whole menu.
|
|
48
|
+
*/
|
|
49
|
+
navHidden?: boolean;
|
|
50
|
+
/** Draws the sidebar in this theme whatever the page's theme (a dark sidebar on a light page). */
|
|
51
|
+
sideTheme?: "dark" | "light";
|
|
52
|
+
/** id of <main>, target of the skip link. Default "main". */
|
|
53
|
+
mainId?: string;
|
|
54
|
+
/** Override the English defaults (e.g. for vi). */
|
|
55
|
+
labels?: Partial<AppShellLabels>;
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function AppShell({ brand, nav, navFooter, title, crumbs, drawerBelow, actions, bottomNav, children, toasts, navOpen, onNavOpenChange, navCollapsed, onNavCollapsedChange, chromeHidden, navHidden, sideTheme, mainId, labels, className }: AppShellProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { AppShell } from "./AppShell";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AppShell;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const WithBottomNav: Story;
|
|
14
|
+
/** Top navigation: no sidebar from 768px up, the brand in the top bar and a menu in `crumbs`; phones still get the drawer. */
|
|
15
|
+
export declare const TopNavigation: Story;
|
|
16
|
+
/** A light sidebar whatever the page's theme, with `sideTheme`. */
|
|
17
|
+
export declare const LightSidebar: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
export interface ApprovalBarLabels {
|
|
3
|
+
/** aria-label of the group. */
|
|
4
|
+
region: string;
|
|
5
|
+
allow: string;
|
|
6
|
+
always: string;
|
|
7
|
+
deny: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ApprovalBarProps {
|
|
10
|
+
/** What the agent asks to do, e.g. "Run a shell command". */
|
|
11
|
+
title: string;
|
|
12
|
+
/** The command or path the request is about; shown in a mono block. */
|
|
13
|
+
command?: string;
|
|
14
|
+
onAllow: () => void;
|
|
15
|
+
/** Adds the "Always allow" button when given. */
|
|
16
|
+
onAlways?: () => void;
|
|
17
|
+
onDeny: () => void;
|
|
18
|
+
/** Disables the buttons while the answer is sent. */
|
|
19
|
+
busy?: boolean;
|
|
20
|
+
labels?: Partial<ApprovalBarLabels>;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function ApprovalBar({ title, command, onAllow, onAlways, onDeny, busy, labels, className }: ApprovalBarProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { ApprovalBar } from "./ApprovalBar";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ApprovalBar;
|
|
6
|
+
args: {
|
|
7
|
+
title: string;
|
|
8
|
+
command: string;
|
|
9
|
+
onAllow: () => void;
|
|
10
|
+
onAlways: () => void;
|
|
11
|
+
onDeny: () => void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
export declare const WithoutAlways: Story;
|
|
18
|
+
export declare const Busy: Story;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { AgentProfile } from "../../types";
|
|
3
|
+
export type AttentionKind = "approval" | "question" | "failed";
|
|
4
|
+
export interface AttentionItem {
|
|
5
|
+
id: string;
|
|
6
|
+
agent: AgentProfile;
|
|
7
|
+
worktree: string;
|
|
8
|
+
/** What the agent is waiting for or what failed. */
|
|
9
|
+
text: string;
|
|
10
|
+
/** When the wait began: epoch ms, a Date or an ISO string. */
|
|
11
|
+
since: number | string | Date;
|
|
12
|
+
kind: AttentionKind;
|
|
13
|
+
}
|
|
14
|
+
export interface AttentionInboxLabels {
|
|
15
|
+
/** Panel title and name of the dialog. */
|
|
16
|
+
title: string;
|
|
17
|
+
/** aria-label of the header button, e.g. "Needs you, 3". */
|
|
18
|
+
button: (count: number) => string;
|
|
19
|
+
/** Shown when nothing waits. */
|
|
20
|
+
empty: string;
|
|
21
|
+
/** Text of each row's button. */
|
|
22
|
+
open: string;
|
|
23
|
+
/** aria-label of a row's button, e.g. "Open feat/login". */
|
|
24
|
+
openItem: (item: AttentionItem) => string;
|
|
25
|
+
kind: Record<AttentionKind, string>;
|
|
26
|
+
/** Wait time, e.g. "5 min". */
|
|
27
|
+
waited: (ms: number) => string;
|
|
28
|
+
}
|
|
29
|
+
export interface AttentionInboxProps {
|
|
30
|
+
items: AttentionItem[];
|
|
31
|
+
/** Called with the item id when its "Open" button is pressed. */
|
|
32
|
+
onOpen: (id: string) => void;
|
|
33
|
+
/** Controlled open state. Leave undefined for uncontrolled. */
|
|
34
|
+
open?: boolean;
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
36
|
+
/** Epoch ms used for wait times. Default: `Date.now()` at render. */
|
|
37
|
+
now?: number;
|
|
38
|
+
labels?: Partial<AttentionInboxLabels>;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Items sorted oldest first (longest wait on top); unparsable times go last. */
|
|
42
|
+
export declare function sortByWait(items: AttentionItem[]): AttentionItem[];
|
|
43
|
+
export declare function AttentionInbox({ items, onOpen, open, onOpenChange, now, labels, className }: AttentionInboxProps): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { AttentionInbox, type AttentionItem } from "./AttentionInbox";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AttentionInbox;
|
|
6
|
+
args: {
|
|
7
|
+
items: AttentionItem[];
|
|
8
|
+
now: number;
|
|
9
|
+
onOpen: () => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Closed: Story;
|
|
15
|
+
export declare const Open: Story;
|
|
16
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
export interface AudioPreviewLabels {
|
|
3
|
+
/** Name of the button while idle (aria-label and title). */
|
|
4
|
+
play: string;
|
|
5
|
+
/** Name of the button while its clip plays. */
|
|
6
|
+
stop: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AUDIO_PREVIEW_LABELS: AudioPreviewLabels;
|
|
9
|
+
export interface AudioPreviewProps {
|
|
10
|
+
/** Audio URL. */
|
|
11
|
+
src: string;
|
|
12
|
+
/** Identity of the clip for the playing state. Default `src`. */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Visible text after the icon; the button then renders as a secondary `Button` with the icon. */
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
/** Default "sm". */
|
|
17
|
+
size?: "sm" | "md";
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** The clip failed to load or play; the button is back to "play". */
|
|
20
|
+
onError?: () => void;
|
|
21
|
+
labels?: Partial<AudioPreviewLabels>;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AudioPreviewControls {
|
|
25
|
+
/** Id of the clip playing on the page, or null. */
|
|
26
|
+
playingId: string | null;
|
|
27
|
+
/** Plays `src` as clip `id`, stopping whatever played. */
|
|
28
|
+
play(id: string, src: string, onError?: () => void): void;
|
|
29
|
+
stop(): void;
|
|
30
|
+
}
|
|
31
|
+
/** The page-wide preview player: which clip plays, and play and stop. Server render: nothing plays. */
|
|
32
|
+
export declare function useAudioPreview(): AudioPreviewControls;
|
|
33
|
+
export declare function AudioPreview({ src, id, label, size, disabled, onError, labels, className }: AudioPreviewProps): JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { AudioPreview } from "./AudioPreview";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AudioPreview;
|
|
6
|
+
args: {
|
|
7
|
+
src: string;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
control: "inline-radio";
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const Medium: Story;
|
|
20
|
+
export declare const WithLabel: Story;
|
|
21
|
+
export declare const List: Story;
|
|
22
|
+
export declare const Vietnamese: Story;
|
|
23
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One clip at a time for the whole page: a lazily created module-level `HTMLAudioElement` and the id of the clip
|
|
3
|
+
* it plays, read with `useSyncExternalStore`. No `Audio` exists on the server, where nothing plays.
|
|
4
|
+
*/
|
|
5
|
+
/** Plays `src` as clip `id`, stopping whatever played. `onError` runs if this clip fails to load or play. */
|
|
6
|
+
export declare function playAudioPreview(id: string, src: string, onError?: () => void): void;
|
|
7
|
+
/** Stops whatever preview plays, for example when the dialog that holds the list closes. */
|
|
8
|
+
export declare function stopAudioPreview(): void;
|
|
9
|
+
/** The store behind `useAudioPreview`, for `useSyncExternalStore`: the id of the playing clip, or null. */
|
|
10
|
+
export declare const audioPreviewStore: {
|
|
11
|
+
subscribe(listener: () => void): () => void;
|
|
12
|
+
getSnapshot: () => string | null;
|
|
13
|
+
getServerSnapshot: () => string | null;
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
export interface AuthShellProps {
|
|
3
|
+
/** Top of the form pane: `BrandMark` and the product name, often a link home. Shown once, on every width. */
|
|
4
|
+
brand: ReactNode;
|
|
5
|
+
/** End of the form pane's bar: a language `Select`, a `ThemeSwitch`. No buttons. */
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
/** Large line on the showcase side ("One gateway for every model"). Translated. */
|
|
8
|
+
headline?: ReactNode;
|
|
9
|
+
/** Short line under the headline. Translated. */
|
|
10
|
+
tagline?: ReactNode;
|
|
11
|
+
/** Picture for the showcase side. Leave it out for the built-in pattern (orbit rings over a dot grid). */
|
|
12
|
+
art?: ReactNode;
|
|
13
|
+
/** Copyright and links to terms: at the foot of the showcase from 1024px wide, under the form below that. */
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
/** The sign-in form, with the page's `h1`. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Frame for a sign-in, sign-up or reset page: a showcase side (art, then headline and tagline, centred) next to a
|
|
21
|
+
* form pane (brand, actions, form). From 1024px wide they split the width 5 to 3 and the footer sits at the foot of
|
|
22
|
+
* the showcase; below that only the form pane shows, with the footer under it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function AuthShell({ brand, actions, headline, tagline, art, footer, children, className }: AuthShellProps): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { AuthShell } from "./AuthShell";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AuthShell;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
brand: import("react").JSX.Element;
|
|
11
|
+
headline: string;
|
|
12
|
+
tagline: string;
|
|
13
|
+
footer: string;
|
|
14
|
+
children: import("react").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const NoPitch: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
export interface AvatarProps {
|
|
3
|
+
/** Used for the initials and the accessible label. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** A `data:` or same-origin URL. Falls back to the initials when it is missing or fails to load. */
|
|
6
|
+
src?: string | null;
|
|
7
|
+
/** 20, 32 or 48 px. Default "md". */
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** First code point of the first and last words, upper-cased; "?" when there is no word. */
|
|
12
|
+
export declare function avatarInitials(name: string): string;
|
|
13
|
+
export declare function Avatar({ name, src, size, className }: AvatarProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Avatar } from "./Avatar";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Avatar;
|
|
6
|
+
args: {
|
|
7
|
+
name: string;
|
|
8
|
+
size: "md";
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
control: "inline-radio";
|
|
13
|
+
options: readonly ["sm", "md", "lg"];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const WithImage: Story;
|
|
21
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes, JSX, ReactNode } from "react";
|
|
2
|
+
export type BadgeTone = "neutral" | "accent" | "ok" | "warn" | "danger";
|
|
3
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Sync status of a file or kit item. */
|
|
5
|
+
status?: "new" | "changed" | "unchanged" | "foreign" | "neutral";
|
|
6
|
+
/**
|
|
7
|
+
* Semantic tone for a state word ("active", "draft", "failed", "pending", "internal").
|
|
8
|
+
* When both are set, the tone's look wins; `data-status` is still written.
|
|
9
|
+
*/
|
|
10
|
+
tone?: BadgeTone;
|
|
11
|
+
className?: string;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function Badge({ status, tone, className, children, ...rest }: BadgeProps): JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Badge } from "./Badge";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Badge;
|
|
6
|
+
args: {
|
|
7
|
+
children: string;
|
|
8
|
+
status: "changed";
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
status: {
|
|
12
|
+
control: "inline-radio";
|
|
13
|
+
options: readonly ["new", "changed", "unchanged", "foreign", "neutral"];
|
|
14
|
+
};
|
|
15
|
+
tone: {
|
|
16
|
+
control: "inline-radio";
|
|
17
|
+
options: ("accent" | "danger" | "neutral" | "ok" | "warn")[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
export declare const All: Story;
|
|
25
|
+
export declare const Danger: Story;
|
|
26
|
+
export declare const Tones: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
export type BannerTone = "info" | "ok" | "warn" | "danger";
|
|
3
|
+
export interface BannerProps {
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** At most one secondary Button. */
|
|
7
|
+
action?: ReactNode;
|
|
8
|
+
/** Default "warn". "danger" uses role="alert"; the others role="status". */
|
|
9
|
+
tone?: BannerTone;
|
|
10
|
+
}
|
|
11
|
+
export declare function Banner({ title, children, action, tone }: BannerProps): JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Banner } from "./Banner";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Banner;
|
|
6
|
+
args: {
|
|
7
|
+
title: string;
|
|
8
|
+
children: string;
|
|
9
|
+
};
|
|
10
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
11
|
+
title: import("react").ReactNode;
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
action?: import("react").ReactNode;
|
|
14
|
+
tone?: import("./Banner").BannerTone;
|
|
15
|
+
}>) => import("react").JSX.Element)[];
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const WithAction: Story;
|
|
21
|
+
export declare const Info: Story;
|
|
22
|
+
export declare const Ok: Story;
|
|
23
|
+
export declare const Danger: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
export interface BarDatum {
|
|
3
|
+
/** Stable key. */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Category name, shown beside (horizontal) or under (vertical) the bar. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** The measure; negative values draw as zero. */
|
|
8
|
+
value: number;
|
|
9
|
+
/** The value, already formatted ("1.2M", "$3.40"). */
|
|
10
|
+
valueLabel: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BarChartProps {
|
|
13
|
+
/** One bar per category, in the order to draw them (usually largest first). */
|
|
14
|
+
bars: readonly BarDatum[];
|
|
15
|
+
/** Accessible name of the chart. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** Horizontal bars (default) suit long category names; vertical suits a few short ones. */
|
|
18
|
+
orientation?: "horizontal" | "vertical";
|
|
19
|
+
}
|
|
20
|
+
export declare function BarChart({ bars, label, orientation }: BarChartProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { BarChart } from "./BarChart";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof BarChart;
|
|
6
|
+
args: {
|
|
7
|
+
label: string;
|
|
8
|
+
bars: {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value: number;
|
|
12
|
+
valueLabel: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
16
|
+
bars: readonly import("./BarChart").BarDatum[];
|
|
17
|
+
label: string;
|
|
18
|
+
orientation?: "horizontal" | "vertical";
|
|
19
|
+
}>) => import("react").JSX.Element)[];
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Horizontal: Story;
|
|
24
|
+
export declare const Vertical: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
export interface BoardProps {
|
|
3
|
+
/** `BoardColumn`s, left to right. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Names the board ("Tasks"). */
|
|
6
|
+
"aria-label": string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Board({ children, "aria-label": ariaLabel, className }: BoardProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Board } from "./Board";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Board;
|
|
6
|
+
args: {
|
|
7
|
+
"aria-label": string;
|
|
8
|
+
children: null;
|
|
9
|
+
};
|
|
10
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
"aria-label": string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}>) => import("react").JSX.Element)[];
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const FiveColumns: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
export type BoardCardStatus = "idle" | "running" | "waiting" | "error";
|
|
3
|
+
export interface BoardCardLabels {
|
|
4
|
+
/** Text read after the title when `tone="need"`; the tint alone says nothing to a screen reader. */
|
|
5
|
+
need: string;
|
|
6
|
+
/** Text read after the title for each status; the dot alone says nothing to a screen reader. */
|
|
7
|
+
status: Record<BoardCardStatus, string>;
|
|
8
|
+
}
|
|
9
|
+
export interface BoardCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "role" | "children"> {
|
|
10
|
+
title: string;
|
|
11
|
+
/** Muted line under the title (assignee, date). */
|
|
12
|
+
meta?: ReactNode;
|
|
13
|
+
/** `Tag`s, one row. */
|
|
14
|
+
tags?: ReactNode;
|
|
15
|
+
/** Draws a StatusDot before the title. Omit when the card has no process. */
|
|
16
|
+
status?: BoardCardStatus;
|
|
17
|
+
/** Tint and 1px accent border. */
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/** `"need"` tints the card with the warning colour and a 1px warning border: the card waits for a person. Pair it with `status="waiting"`. */
|
|
20
|
+
tone?: "need";
|
|
21
|
+
/** Lowered opacity and an elevation shadow while the card is dragged. */
|
|
22
|
+
dragging?: boolean;
|
|
23
|
+
/** Called on click and on Enter. */
|
|
24
|
+
onOpen?: () => void;
|
|
25
|
+
/** An IconButton that opens a Menu. Its clicks and keys do not reach `onOpen`. */
|
|
26
|
+
menu?: ReactNode;
|
|
27
|
+
/** Inline controls after the title (a count, a small button). Clicks and keys inside do not reach `onOpen`. */
|
|
28
|
+
actions?: ReactNode;
|
|
29
|
+
/** Override the English defaults (e.g. for vi). */
|
|
30
|
+
labels?: Partial<BoardCardLabels>;
|
|
31
|
+
}
|
|
32
|
+
export declare const BoardCard: import("react").ForwardRefExoticComponent<BoardCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
export interface BoardColumnLabels {
|
|
3
|
+
/** Name of the add button, e.g. "Add card". */
|
|
4
|
+
add: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BoardColumnProps extends Omit<HTMLAttributes<HTMLElement>, "title" | "children"> {
|
|
7
|
+
/** Column name ("In progress"). */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Number of cards, shown as a Badge after the title. */
|
|
10
|
+
count?: number;
|
|
11
|
+
/** Shows a plus IconButton in the head that calls it. Keep it for a column that takes new cards. */
|
|
12
|
+
onAdd?: () => void;
|
|
13
|
+
/** Override the English defaults (e.g. for vi). */
|
|
14
|
+
labels?: Partial<BoardColumnLabels>;
|
|
15
|
+
/** At most one primary Button or IconButtons at the right of the head. */
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
/** `BoardCard`s. */
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/** A card is being dragged over this column: 1px accent border and a light tint. */
|
|
20
|
+
dropTarget?: boolean;
|
|
21
|
+
/** Names the list of cards. Defaults to the title. */
|
|
22
|
+
"aria-label"?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const BoardColumn: import("react").ForwardRefExoticComponent<BoardColumnProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { IconName } from "../../icons";
|
|
3
|
+
export interface BottomNavItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: IconName;
|
|
7
|
+
/** Count on the icon. 0 or undefined shows nothing; above 99 shows "99+". */
|
|
8
|
+
badge?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface BottomNavMore {
|
|
11
|
+
/** Label of the last tab, e.g. "More". */
|
|
12
|
+
label: string;
|
|
13
|
+
icon: IconName;
|
|
14
|
+
/** The destinations that did not fit in the bar. */
|
|
15
|
+
items: BottomNavItem[];
|
|
16
|
+
}
|
|
17
|
+
export interface BottomNavLabels {
|
|
18
|
+
/** aria-label of the nav. */
|
|
19
|
+
nav: string;
|
|
20
|
+
/** Spoken after the label of an item with a badge, e.g. `3 new`. */
|
|
21
|
+
badge: (count: number) => string;
|
|
22
|
+
}
|
|
23
|
+
/** The bar shows at most this many tabs, the "more" tab included. */
|
|
24
|
+
export declare const BOTTOM_NAV_MAX = 5;
|
|
25
|
+
export interface BottomNavProps {
|
|
26
|
+
/** Tabs of the bar. Beyond 5 (4 with `more`) they are dropped; move the rest into `more.items`. */
|
|
27
|
+
items: BottomNavItem[];
|
|
28
|
+
/** Id of the current destination, in `items` or `more.items`. */
|
|
29
|
+
value?: string;
|
|
30
|
+
onChange: (id: string) => void;
|
|
31
|
+
/** Last tab that opens a bottom sheet listing the remaining destinations. */
|
|
32
|
+
more?: BottomNavMore;
|
|
33
|
+
/** Controlled open state of the sheet. Default: the component keeps it. */
|
|
34
|
+
moreOpen?: boolean;
|
|
35
|
+
onMoreOpenChange?: (open: boolean) => void;
|
|
36
|
+
/** Override the English defaults (e.g. for vi). */
|
|
37
|
+
labels?: Partial<BottomNavLabels>;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function BottomNav({ items, value, onChange, more, moreOpen, onMoreOpenChange, labels, className }: BottomNavProps): JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { BottomNav } from "./BottomNav";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof BottomNav;
|
|
6
|
+
parameters: {
|
|
7
|
+
viewport: {
|
|
8
|
+
defaultViewport: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
args: {
|
|
12
|
+
items: ({
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
icon: "home";
|
|
16
|
+
badge?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
icon: "terminal";
|
|
21
|
+
badge: number;
|
|
22
|
+
} | {
|
|
23
|
+
badge?: undefined;
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
icon: "tasks";
|
|
27
|
+
} | {
|
|
28
|
+
badge?: undefined;
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
icon: "folder";
|
|
32
|
+
})[];
|
|
33
|
+
value: string;
|
|
34
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default meta;
|
|
38
|
+
type Story = StoryObj<typeof meta>;
|
|
39
|
+
export declare const Default: Story;
|
|
40
|
+
export declare const WithMoreSheet: Story;
|