@vobs/ui 0.3.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +60 -0
- package/package.json +52 -110
- package/src/activity-rail.ts +125 -0
- package/src/alert.ts +65 -0
- package/src/assets/icons/alert-circle.svg +1 -0
- package/src/assets/icons/alert-triangle.svg +1 -0
- package/src/assets/icons/alert.d27e24.svg +1 -0
- package/src/assets/icons/alert.svg +1 -0
- package/src/assets/icons/apple.svg +1 -0
- package/src/assets/icons/arrow-down.svg +1 -0
- package/src/assets/icons/arrow-expand.svg +1 -0
- package/src/assets/icons/arrow-left.svg +1 -0
- package/src/assets/icons/arrow-minimize.svg +1 -0
- package/src/assets/icons/arrow-right-to-line.svg +1 -0
- package/src/assets/icons/arrow-right.svg +1 -0
- package/src/assets/icons/arrow-up-right.svg +1 -0
- package/src/assets/icons/arrow-up.0c0c0d.svg +1 -0
- package/src/assets/icons/arrow-up.svg +1 -0
- package/src/assets/icons/at.svg +1 -0
- package/src/assets/icons/atom.0c0c0d.svg +1 -0
- package/src/assets/icons/atom.svg +1 -0
- package/src/assets/icons/bar.svg +1 -0
- package/src/assets/icons/bell.svg +1 -0
- package/src/assets/icons/box.svg +1 -0
- package/src/assets/icons/bug.svg +1 -0
- package/src/assets/icons/calendar.svg +1 -0
- package/src/assets/icons/check-circle.33c192.svg +1 -0
- package/src/assets/icons/check-circle.svg +1 -0
- package/src/assets/icons/check.d1d3db.svg +1 -0
- package/src/assets/icons/check.svg +1 -0
- package/src/assets/icons/chevron-down.svg +1 -0
- package/src/assets/icons/chevron-right.svg +1 -0
- package/src/assets/icons/chevron-up.svg +1 -0
- package/src/assets/icons/circle.svg +1 -0
- package/src/assets/icons/clock.svg +1 -0
- package/src/assets/icons/cmd.svg +1 -0
- package/src/assets/icons/code.svg +1 -0
- package/src/assets/icons/columns.svg +1 -0
- package/src/assets/icons/copy.svg +1 -0
- package/src/assets/icons/cpu.svg +1 -0
- package/src/assets/icons/dashboard.0c0c0d.svg +1 -0
- package/src/assets/icons/dashboard.svg +1 -0
- package/src/assets/icons/dollar.svg +1 -0
- package/src/assets/icons/download.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/extensions.svg +1 -0
- package/src/assets/icons/external.svg +1 -0
- package/src/assets/icons/eye.svg +1 -0
- package/src/assets/icons/file-text.svg +1 -0
- package/src/assets/icons/file.svg +1 -0
- package/src/assets/icons/files.svg +1 -0
- package/src/assets/icons/filter.svg +1 -0
- package/src/assets/icons/folder.svg +1 -0
- package/src/assets/icons/gear.svg +1 -0
- package/src/assets/icons/git.svg +1 -0
- package/src/assets/icons/github.svg +1 -0
- package/src/assets/icons/globe.svg +1 -0
- package/src/assets/icons/grid-2x2.svg +1 -0
- package/src/assets/icons/hash.svg +1 -0
- package/src/assets/icons/heart.svg +1 -0
- package/src/assets/icons/help.svg +1 -0
- package/src/assets/icons/home.svg +1 -0
- package/src/assets/icons/image.svg +1 -0
- package/src/assets/icons/info-circle.svg +1 -0
- package/src/assets/icons/info-square.svg +1 -0
- package/src/assets/icons/info.387bff.svg +1 -0
- package/src/assets/icons/info.svg +1 -0
- package/src/assets/icons/key.svg +1 -0
- package/src/assets/icons/layers.svg +1 -0
- package/src/assets/icons/layout.svg +1 -0
- package/src/assets/icons/link.svg +1 -0
- package/src/assets/icons/list.svg +1 -0
- package/src/assets/icons/lock.svg +1 -0
- package/src/assets/icons/log-out.svg +1 -0
- package/src/assets/icons/logo.svg +1 -0
- package/src/assets/icons/mail.svg +1 -0
- package/src/assets/icons/menu.svg +1 -0
- package/src/assets/icons/message-circle.svg +1 -0
- package/src/assets/icons/message-plus.svg +1 -0
- package/src/assets/icons/message-square.svg +1 -0
- package/src/assets/icons/mic.svg +1 -0
- package/src/assets/icons/minus.svg +1 -0
- package/src/assets/icons/moon.svg +1 -0
- package/src/assets/icons/more-h.svg +1 -0
- package/src/assets/icons/mouse.svg +1 -0
- package/src/assets/icons/palette.svg +1 -0
- package/src/assets/icons/panel-bottom.svg +1 -0
- package/src/assets/icons/pause.svg +1 -0
- package/src/assets/icons/play.svg +1 -0
- package/src/assets/icons/plug.svg +1 -0
- package/src/assets/icons/plus.0c0c0d.svg +1 -0
- package/src/assets/icons/plus.svg +1 -0
- package/src/assets/icons/refresh.svg +1 -0
- package/src/assets/icons/ruler.svg +1 -0
- package/src/assets/icons/scroll-text.svg +1 -0
- package/src/assets/icons/search-menu.svg +1 -0
- package/src/assets/icons/search.svg +1 -0
- package/src/assets/icons/send.0c0c0d.svg +1 -0
- package/src/assets/icons/send.svg +1 -0
- package/src/assets/icons/settings.0c0c0d.svg +1 -0
- package/src/assets/icons/settings.svg +1 -0
- package/src/assets/icons/shield.svg +1 -0
- package/src/assets/icons/sidebar-left.svg +1 -0
- package/src/assets/icons/sidebar-right.svg +1 -0
- package/src/assets/icons/sliders.svg +1 -0
- package/src/assets/icons/sparkles.32f08c.svg +1 -0
- package/src/assets/icons/sparkles.svg +1 -0
- package/src/assets/icons/square.svg +1 -0
- package/src/assets/icons/star.svg +1 -0
- package/src/assets/icons/sun.svg +1 -0
- package/src/assets/icons/terminal.svg +1 -0
- package/src/assets/icons/trash.svg +1 -0
- package/src/assets/icons/trending-down.svg +1 -0
- package/src/assets/icons/trending-up.svg +1 -0
- package/src/assets/icons/type.svg +1 -0
- package/src/assets/icons/upload.svg +1 -0
- package/src/assets/icons/user-circle.svg +1 -0
- package/src/assets/icons/user.svg +1 -0
- package/src/assets/icons/users.svg +1 -0
- package/src/assets/icons/wrench.svg +1 -0
- package/src/assets/icons/x-circle.svg +1 -0
- package/src/assets/icons/x.svg +1 -0
- package/src/assets/icons/zap.0c0c0d.svg +1 -0
- package/src/assets/icons/zap.svg +1 -0
- package/src/avatar.ts +64 -0
- package/src/button.ts +88 -0
- package/src/card.ts +59 -0
- package/src/chat-composer.ts +156 -0
- package/src/dialog.ts +127 -0
- package/src/drawer.ts +131 -0
- package/src/editor-tabs.ts +184 -0
- package/src/file-tree.ts +214 -0
- package/src/forms.ts +270 -0
- package/src/icon.ts +118 -0
- package/src/icons.js +165 -0
- package/src/index.test.ts +213 -0
- package/src/index.ts +94 -0
- package/src/kbd.ts +72 -0
- package/src/menu.ts +119 -0
- package/src/nav-list.ts +157 -0
- package/src/overlay.test.ts +66 -0
- package/src/overlay.ts +205 -0
- package/src/page-header.ts +97 -0
- package/src/pagination.ts +163 -0
- package/src/second-batch.test.ts +205 -0
- package/src/stat-card.ts +92 -0
- package/src/status-bar.ts +108 -0
- package/src/styles/base.css +240 -0
- package/src/styles/components.css +1234 -0
- package/{dist → src/styles}/styles.css +2 -0
- package/src/styles/toast.css +57 -0
- package/src/styles/tokens.css +438 -0
- package/src/styles/vui.css +47 -0
- package/src/table.ts +191 -0
- package/src/tabs.ts +100 -0
- package/src/tag.ts +33 -0
- package/src/third-batch.test.ts +137 -0
- package/src/toast.test.ts +55 -0
- package/src/toast.ts +79 -0
- package/src/types.ts +25 -0
- package/src/utils.ts +221 -0
- package/src/workbench-titlebar.ts +137 -0
- package/dist/app-shell-dom.d.ts +0 -30
- package/dist/app-shell-dom.js +0 -913
- package/dist/app-shell.d.ts +0 -235
- package/dist/app-shell.js +0 -415
- package/dist/base.css +0 -51
- package/dist/calendar-picker.d.ts +0 -45
- package/dist/calendar-picker.js +0 -217
- package/dist/calendar.d.ts +0 -95
- package/dist/calendar.js +0 -194
- package/dist/complex-inputs.d.ts +0 -300
- package/dist/complex-inputs.js +0 -866
- package/dist/components.css +0 -4756
- package/dist/data-display.d.ts +0 -1094
- package/dist/data-display.js +0 -2341
- package/dist/dialog.d.ts +0 -26
- package/dist/dialog.js +0 -94
- package/dist/feedback.d.ts +0 -88
- package/dist/feedback.js +0 -281
- package/dist/forms.d.ts +0 -378
- package/dist/forms.js +0 -1019
- package/dist/icons-config.d.ts +0 -25
- package/dist/icons-config.js +0 -14
- package/dist/icons.d.ts +0 -41
- package/dist/icons.js +0 -185
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -40
- package/dist/locale/en-US.d.ts +0 -31
- package/dist/locale/en-US.js +0 -20
- package/dist/locale/zh-CN.d.ts +0 -31
- package/dist/locale/zh-CN.js +0 -20
- package/dist/navigation.d.ts +0 -609
- package/dist/navigation.js +0 -1707
- package/dist/overlay.d.ts +0 -308
- package/dist/overlay.js +0 -974
- package/dist/page-state.d.ts +0 -23
- package/dist/page-state.js +0 -96
- package/dist/primitives.d.ts +0 -268
- package/dist/primitives.js +0 -764
- package/dist/theme-data.d.ts +0 -394
- package/dist/theme-data.js +0 -417
- package/dist/theme.d.ts +0 -97
- package/dist/theme.js +0 -301
- package/dist/tokens.css +0 -570
- package/dist/tree.d.ts +0 -144
- package/dist/tree.js +0 -475
- package/dist/virtual-list.d.ts +0 -190
- package/dist/virtual-list.js +0 -538
- package/dist/workbench.d.ts +0 -136
- package/dist/workbench.js +0 -156
package/dist/navigation.d.ts
DELETED
|
@@ -1,609 +0,0 @@
|
|
|
1
|
-
/** @license MIT
|
|
2
|
-
* Copyright (c) 2026 vobsjs
|
|
3
|
-
* @vobs/ui
|
|
4
|
-
*/
|
|
5
|
-
import { type DialogPlanOptions, type DialogSize, type OverlayPlacement, type OverlayPlans, type ProductDialogPlans } from './overlay.js';
|
|
6
|
-
import { type UiAttributes, type UiDomPlan } from './primitives.js';
|
|
7
|
-
export type TabsOrientation = 'horizontal' | 'vertical';
|
|
8
|
-
export type TabsOverflowState = 'empty' | 'expanded' | 'overflow';
|
|
9
|
-
export type TabsPersistenceState = 'clean' | 'empty' | 'dirty' | 'restored';
|
|
10
|
-
export type CommandPaletteItemKind = 'action' | 'page' | 'recent';
|
|
11
|
-
export type CommandPalettePermission = 'allowed' | 'denied';
|
|
12
|
-
export type CommandPalettePermissionRecentState = 'empty' | 'filtered' | 'permission-limited' | 'ready';
|
|
13
|
-
export type MenuPermissionRemoteState = 'empty' | 'permission-limited' | 'remote-pending' | 'submenu-error' | 'ready';
|
|
14
|
-
export type MenuItemRemoteActionState = 'available' | 'disabled' | 'pending';
|
|
15
|
-
export type MenuItemSubmenuState = 'closed' | 'error' | 'loading' | 'open' | 'ready';
|
|
16
|
-
export type MenuSubmenuPortalState = 'closed' | 'mounted' | 'open' | 'portal-missing';
|
|
17
|
-
export type MenuSubmenuPortalContractState = 'closed' | 'empty' | 'mounted' | 'open' | 'portal-missing';
|
|
18
|
-
export type MenuItemKind = 'checkbox' | 'item' | 'radio' | 'section' | 'separator' | 'submenu';
|
|
19
|
-
export type DrawerSide = 'bottom' | 'left' | 'right';
|
|
20
|
-
export type DrawerSize = DialogSize | 'full';
|
|
21
|
-
export type DrawerNestedOverlayCoordinationState = 'action-pending' | 'focus-return-ready' | 'idle' | 'nested-overlay-open';
|
|
22
|
-
export type DrawerPinnedActionState = 'available' | 'disabled' | 'pending';
|
|
23
|
-
export type StepStatus = 'complete' | 'current' | 'disabled' | 'error' | 'pending';
|
|
24
|
-
export type StepTimelineState = 'current' | 'future' | 'past';
|
|
25
|
-
export type StepValidationState = 'blocked' | 'invalid' | 'unchecked' | 'valid' | 'warning';
|
|
26
|
-
export type StepReturnState = 'current' | 'locked' | 'returnable';
|
|
27
|
-
export type StepsTimelineValidationState = 'blocked' | 'empty' | 'invalid' | 'ready' | 'warning';
|
|
28
|
-
export type CollapseMode = 'accordion' | 'multiple';
|
|
29
|
-
export type CollapseLazyState = 'idle' | 'loading' | 'loaded' | 'error';
|
|
30
|
-
export type CollapsePersistenceState = 'clean' | 'empty' | 'dirty' | 'restored';
|
|
31
|
-
export type CollapseAdvancedState = 'disabled-limited' | 'lazy-error' | 'loading' | 'ready';
|
|
32
|
-
export interface NavigationItem {
|
|
33
|
-
readonly id: string;
|
|
34
|
-
readonly label: string;
|
|
35
|
-
readonly disabled?: boolean;
|
|
36
|
-
readonly disabledReason?: string;
|
|
37
|
-
readonly overflow?: boolean;
|
|
38
|
-
readonly persistedActive?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export interface CommandPaletteGroup {
|
|
41
|
-
readonly id: string;
|
|
42
|
-
readonly label: string;
|
|
43
|
-
}
|
|
44
|
-
export interface CommandPaletteItem {
|
|
45
|
-
readonly id: string;
|
|
46
|
-
readonly label: string;
|
|
47
|
-
readonly description?: string;
|
|
48
|
-
readonly groupId?: string;
|
|
49
|
-
readonly kind?: CommandPaletteItemKind;
|
|
50
|
-
readonly href?: string;
|
|
51
|
-
readonly shortcut?: string;
|
|
52
|
-
readonly keywords?: readonly string[];
|
|
53
|
-
readonly disabled?: boolean;
|
|
54
|
-
readonly disabledReason?: string;
|
|
55
|
-
readonly permission?: CommandPalettePermission;
|
|
56
|
-
readonly recent?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export interface CommandPalettePermissionRecentContractOptions {
|
|
59
|
-
readonly items: readonly CommandPaletteItem[];
|
|
60
|
-
readonly groups?: readonly CommandPaletteGroup[];
|
|
61
|
-
readonly query?: string;
|
|
62
|
-
readonly allowedIds?: ReadonlySet<string> | readonly string[];
|
|
63
|
-
readonly deniedIds?: ReadonlySet<string> | readonly string[];
|
|
64
|
-
readonly disabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
65
|
-
readonly recentIds?: readonly string[];
|
|
66
|
-
readonly selectedId?: string;
|
|
67
|
-
readonly maxRecent?: number;
|
|
68
|
-
readonly hideDenied?: boolean;
|
|
69
|
-
readonly recentGroup?: CommandPaletteGroup;
|
|
70
|
-
}
|
|
71
|
-
export interface CommandPalettePermissionRecentItemContract {
|
|
72
|
-
readonly id: string;
|
|
73
|
-
readonly item: CommandPaletteItem;
|
|
74
|
-
readonly permission: CommandPalettePermission;
|
|
75
|
-
readonly recent: boolean;
|
|
76
|
-
readonly disabledReason: string;
|
|
77
|
-
readonly attrs: UiAttributes;
|
|
78
|
-
}
|
|
79
|
-
export interface CommandPalettePermissionRecentContract {
|
|
80
|
-
readonly state: CommandPalettePermissionRecentState;
|
|
81
|
-
readonly query: string;
|
|
82
|
-
readonly totalCount: number;
|
|
83
|
-
readonly visibleCount: number;
|
|
84
|
-
readonly allowedCount: number;
|
|
85
|
-
readonly deniedCount: number;
|
|
86
|
-
readonly recentCount: number;
|
|
87
|
-
readonly disabledReasonCount: number;
|
|
88
|
-
readonly recentIds: readonly string[];
|
|
89
|
-
readonly nextRecentIds: readonly string[];
|
|
90
|
-
readonly groups: readonly CommandPaletteGroup[];
|
|
91
|
-
readonly items: readonly CommandPalettePermissionRecentItemContract[];
|
|
92
|
-
readonly attrs: UiAttributes;
|
|
93
|
-
}
|
|
94
|
-
export interface CommandPalettePlanOptions {
|
|
95
|
-
readonly id: string;
|
|
96
|
-
readonly items: readonly CommandPaletteItem[];
|
|
97
|
-
readonly groups?: readonly CommandPaletteGroup[];
|
|
98
|
-
readonly query?: string;
|
|
99
|
-
readonly open?: boolean;
|
|
100
|
-
readonly activeId?: string;
|
|
101
|
-
readonly selectedId?: string;
|
|
102
|
-
readonly labelId?: string;
|
|
103
|
-
readonly describedBy?: string;
|
|
104
|
-
readonly placeholder?: string;
|
|
105
|
-
}
|
|
106
|
-
export interface CommandPalettePlans {
|
|
107
|
-
readonly root: UiDomPlan<'div'>;
|
|
108
|
-
readonly input: UiDomPlan<'input'>;
|
|
109
|
-
readonly listbox: UiDomPlan<'div'>;
|
|
110
|
-
readonly groups: readonly UiDomPlan<'div'>[];
|
|
111
|
-
readonly groupLabels: readonly UiDomPlan<'div'>[];
|
|
112
|
-
readonly items: readonly UiDomPlan<'div'>[];
|
|
113
|
-
readonly shortcuts: readonly UiDomPlan<'kbd'>[];
|
|
114
|
-
readonly empty: UiDomPlan<'div'> | undefined;
|
|
115
|
-
}
|
|
116
|
-
export interface TabsPlanOptions {
|
|
117
|
-
readonly id: string;
|
|
118
|
-
readonly items: readonly NavigationItem[];
|
|
119
|
-
readonly activeId: string;
|
|
120
|
-
readonly orientation?: TabsOrientation;
|
|
121
|
-
readonly attrs?: UiAttributes;
|
|
122
|
-
}
|
|
123
|
-
export interface TabsPlans {
|
|
124
|
-
readonly root: UiDomPlan<'div'>;
|
|
125
|
-
readonly tabs: readonly UiDomPlan<'button'>[];
|
|
126
|
-
readonly panels: readonly UiDomPlan<'div'>[];
|
|
127
|
-
}
|
|
128
|
-
export interface TabsOverflowPersistenceContractOptions {
|
|
129
|
-
readonly items: readonly NavigationItem[];
|
|
130
|
-
readonly activeId: string;
|
|
131
|
-
readonly overflowIds?: ReadonlySet<string> | readonly string[];
|
|
132
|
-
readonly persistedActiveId?: string;
|
|
133
|
-
readonly disabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
134
|
-
readonly orientation?: TabsOrientation;
|
|
135
|
-
readonly maxVisible?: number;
|
|
136
|
-
}
|
|
137
|
-
export interface TabsOverflowPersistenceItemContract {
|
|
138
|
-
readonly id: string;
|
|
139
|
-
readonly item: NavigationItem;
|
|
140
|
-
readonly active: boolean;
|
|
141
|
-
readonly overflow: boolean;
|
|
142
|
-
readonly persistedActive: boolean;
|
|
143
|
-
readonly disabledReason: string;
|
|
144
|
-
readonly attrs: UiAttributes;
|
|
145
|
-
}
|
|
146
|
-
export interface TabsOverflowPersistenceContract {
|
|
147
|
-
readonly overflowState: TabsOverflowState;
|
|
148
|
-
readonly persistenceState: TabsPersistenceState;
|
|
149
|
-
readonly activeId: string;
|
|
150
|
-
readonly persistedActiveId: string;
|
|
151
|
-
readonly orientation: TabsOrientation;
|
|
152
|
-
readonly itemCount: number;
|
|
153
|
-
readonly visibleCount: number;
|
|
154
|
-
readonly overflowCount: number;
|
|
155
|
-
readonly disabledReasonCount: number;
|
|
156
|
-
readonly overflowIds: readonly string[];
|
|
157
|
-
readonly visibleIds: readonly string[];
|
|
158
|
-
readonly disabledReasonIds: readonly string[];
|
|
159
|
-
readonly items: readonly TabsOverflowPersistenceItemContract[];
|
|
160
|
-
readonly attrs: UiAttributes;
|
|
161
|
-
}
|
|
162
|
-
export interface BreadcrumbItem {
|
|
163
|
-
readonly id?: string;
|
|
164
|
-
readonly label: string;
|
|
165
|
-
readonly href?: string;
|
|
166
|
-
readonly current?: boolean;
|
|
167
|
-
readonly icon?: boolean | string;
|
|
168
|
-
readonly collapsed?: boolean;
|
|
169
|
-
readonly overflow?: boolean;
|
|
170
|
-
readonly pathIndex?: number;
|
|
171
|
-
readonly pathSummary?: string;
|
|
172
|
-
}
|
|
173
|
-
export interface BreadcrumbPlans {
|
|
174
|
-
readonly root: UiDomPlan<'nav'>;
|
|
175
|
-
readonly list: UiDomPlan<'ol'>;
|
|
176
|
-
readonly items: readonly UiDomPlan<'li'>[];
|
|
177
|
-
}
|
|
178
|
-
export type BreadcrumbResponsiveState = 'collapsed' | 'empty' | 'expanded' | 'overflow';
|
|
179
|
-
export interface BreadcrumbResponsiveStateContractOptions {
|
|
180
|
-
readonly items: readonly BreadcrumbItem[];
|
|
181
|
-
readonly collapsedIds?: ReadonlySet<string> | readonly string[];
|
|
182
|
-
readonly iconIds?: ReadonlySet<string> | readonly string[];
|
|
183
|
-
readonly overflowId?: string;
|
|
184
|
-
readonly maxVisible?: number;
|
|
185
|
-
}
|
|
186
|
-
export interface BreadcrumbResponsiveItemContract {
|
|
187
|
-
readonly id: string;
|
|
188
|
-
readonly item: BreadcrumbItem;
|
|
189
|
-
readonly collapsed: boolean;
|
|
190
|
-
readonly icon: boolean;
|
|
191
|
-
readonly overflow: boolean;
|
|
192
|
-
readonly pathIndex: number;
|
|
193
|
-
readonly pathSummary: string;
|
|
194
|
-
readonly attrs: UiAttributes;
|
|
195
|
-
}
|
|
196
|
-
export interface BreadcrumbResponsiveStateContract {
|
|
197
|
-
readonly state: BreadcrumbResponsiveState;
|
|
198
|
-
readonly itemCount: number;
|
|
199
|
-
readonly visibleCount: number;
|
|
200
|
-
readonly collapsedCount: number;
|
|
201
|
-
readonly iconCount: number;
|
|
202
|
-
readonly overflowId: string;
|
|
203
|
-
readonly currentPathSummary: string;
|
|
204
|
-
readonly collapsedIds: readonly string[];
|
|
205
|
-
readonly iconIds: readonly string[];
|
|
206
|
-
readonly visibleIds: readonly string[];
|
|
207
|
-
readonly items: readonly BreadcrumbResponsiveItemContract[];
|
|
208
|
-
readonly attrs: UiAttributes;
|
|
209
|
-
}
|
|
210
|
-
export interface MenuItem extends NavigationItem {
|
|
211
|
-
readonly kind?: MenuItemKind;
|
|
212
|
-
readonly checked?: boolean;
|
|
213
|
-
readonly danger?: boolean;
|
|
214
|
-
readonly shortcut?: string;
|
|
215
|
-
readonly sectionId?: string;
|
|
216
|
-
readonly expanded?: boolean;
|
|
217
|
-
readonly disabledReason?: string;
|
|
218
|
-
readonly permission?: CommandPalettePermission;
|
|
219
|
-
readonly remoteAction?: boolean;
|
|
220
|
-
readonly remoteActionDisabled?: boolean;
|
|
221
|
-
readonly remoteActionDisabledReason?: string;
|
|
222
|
-
readonly remoteActionError?: string;
|
|
223
|
-
readonly remoteActionLoading?: boolean;
|
|
224
|
-
readonly submenuError?: string;
|
|
225
|
-
readonly submenuItemCount?: number;
|
|
226
|
-
readonly submenuLoading?: boolean;
|
|
227
|
-
readonly submenuPortalState?: MenuSubmenuPortalState;
|
|
228
|
-
readonly submenuPortalTargetId?: string;
|
|
229
|
-
readonly submenuOpenPathIndex?: number;
|
|
230
|
-
readonly submenuFocusReturnId?: string;
|
|
231
|
-
readonly submenuParentOverlayId?: string;
|
|
232
|
-
readonly submenuPlacement?: OverlayPlacement;
|
|
233
|
-
}
|
|
234
|
-
export interface MenuPlanOptions {
|
|
235
|
-
readonly id: string;
|
|
236
|
-
readonly items: readonly MenuItem[];
|
|
237
|
-
readonly activeId?: string;
|
|
238
|
-
readonly label?: string;
|
|
239
|
-
readonly orientation?: TabsOrientation;
|
|
240
|
-
readonly className?: string;
|
|
241
|
-
readonly attrs?: UiAttributes;
|
|
242
|
-
}
|
|
243
|
-
export interface MenuPlans {
|
|
244
|
-
readonly root: UiDomPlan<'div'>;
|
|
245
|
-
readonly items: readonly UiDomPlan<'div'>[];
|
|
246
|
-
readonly shortcuts: readonly (UiDomPlan<'kbd'> | undefined)[];
|
|
247
|
-
}
|
|
248
|
-
export interface MenuPermissionRemoteActionContractOptions {
|
|
249
|
-
readonly items: readonly MenuItem[];
|
|
250
|
-
readonly allowedIds?: ReadonlySet<string> | readonly string[];
|
|
251
|
-
readonly deniedIds?: ReadonlySet<string> | readonly string[];
|
|
252
|
-
readonly disabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
253
|
-
readonly remoteActionIds?: ReadonlySet<string> | readonly string[];
|
|
254
|
-
readonly remoteActionDisabledIds?: ReadonlySet<string> | readonly string[];
|
|
255
|
-
readonly remoteActionDisabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
256
|
-
readonly remoteActionLoadingIds?: ReadonlySet<string> | readonly string[];
|
|
257
|
-
readonly remoteActionErrors?: Readonly<Record<string, string | undefined>>;
|
|
258
|
-
readonly submenuLoadingIds?: ReadonlySet<string> | readonly string[];
|
|
259
|
-
readonly submenuErrors?: Readonly<Record<string, string | undefined>>;
|
|
260
|
-
readonly submenuItemCounts?: Readonly<Record<string, number | undefined>>;
|
|
261
|
-
readonly disabled?: boolean;
|
|
262
|
-
}
|
|
263
|
-
export interface MenuPermissionRemoteActionItemContract {
|
|
264
|
-
readonly id: string;
|
|
265
|
-
readonly item: MenuItem;
|
|
266
|
-
readonly permission: CommandPalettePermission;
|
|
267
|
-
readonly disabled: boolean;
|
|
268
|
-
readonly disabledReason: string;
|
|
269
|
-
readonly remoteAction: boolean;
|
|
270
|
-
readonly remoteActionState: MenuItemRemoteActionState;
|
|
271
|
-
readonly remoteActionDisabledReason: string;
|
|
272
|
-
readonly remoteActionError: string;
|
|
273
|
-
readonly submenuState: MenuItemSubmenuState | undefined;
|
|
274
|
-
readonly submenuError: string;
|
|
275
|
-
readonly submenuItemCount: number | undefined;
|
|
276
|
-
readonly attrs: UiAttributes;
|
|
277
|
-
}
|
|
278
|
-
export interface MenuPermissionRemoteActionContract {
|
|
279
|
-
readonly state: MenuPermissionRemoteState;
|
|
280
|
-
readonly disabled: boolean;
|
|
281
|
-
readonly itemCount: number;
|
|
282
|
-
readonly allowedCount: number;
|
|
283
|
-
readonly deniedCount: number;
|
|
284
|
-
readonly disabledReasonCount: number;
|
|
285
|
-
readonly remoteActionCount: number;
|
|
286
|
-
readonly remoteActionDisabledCount: number;
|
|
287
|
-
readonly remoteActionLoadingCount: number;
|
|
288
|
-
readonly remoteActionErrorCount: number;
|
|
289
|
-
readonly submenuLoadingCount: number;
|
|
290
|
-
readonly submenuErrorCount: number;
|
|
291
|
-
readonly allowedIds: readonly string[];
|
|
292
|
-
readonly deniedIds: readonly string[];
|
|
293
|
-
readonly remoteActionIds: readonly string[];
|
|
294
|
-
readonly remoteActionDisabledIds: readonly string[];
|
|
295
|
-
readonly remoteActionLoadingIds: readonly string[];
|
|
296
|
-
readonly remoteActionErrorIds: readonly string[];
|
|
297
|
-
readonly submenuLoadingIds: readonly string[];
|
|
298
|
-
readonly submenuErrorIds: readonly string[];
|
|
299
|
-
readonly items: readonly MenuPermissionRemoteActionItemContract[];
|
|
300
|
-
readonly attrs: UiAttributes;
|
|
301
|
-
}
|
|
302
|
-
export interface MenuSubmenuPortalStateContractOptions {
|
|
303
|
-
readonly items: readonly MenuItem[];
|
|
304
|
-
readonly openPathIds?: readonly string[];
|
|
305
|
-
readonly mountedIds?: ReadonlySet<string> | readonly string[];
|
|
306
|
-
readonly portalTargetIds?: Readonly<Record<string, string | undefined>>;
|
|
307
|
-
readonly focusReturnIds?: Readonly<Record<string, string | undefined>>;
|
|
308
|
-
readonly parentOverlayIds?: Readonly<Record<string, string | undefined>>;
|
|
309
|
-
readonly placements?: Readonly<Record<string, OverlayPlacement | undefined>>;
|
|
310
|
-
}
|
|
311
|
-
export interface MenuSubmenuPortalItemContract {
|
|
312
|
-
readonly id: string;
|
|
313
|
-
readonly item: MenuItem;
|
|
314
|
-
readonly state: MenuSubmenuPortalState;
|
|
315
|
-
readonly open: boolean;
|
|
316
|
-
readonly mounted: boolean;
|
|
317
|
-
readonly portalTargetId: string;
|
|
318
|
-
readonly focusReturnId: string;
|
|
319
|
-
readonly parentOverlayId: string;
|
|
320
|
-
readonly placement: OverlayPlacement | undefined;
|
|
321
|
-
readonly openPathIndex: number | undefined;
|
|
322
|
-
readonly attrs: UiAttributes;
|
|
323
|
-
}
|
|
324
|
-
export interface MenuSubmenuPortalStateContract {
|
|
325
|
-
readonly state: MenuSubmenuPortalContractState;
|
|
326
|
-
readonly submenuCount: number;
|
|
327
|
-
readonly openCount: number;
|
|
328
|
-
readonly mountedCount: number;
|
|
329
|
-
readonly portalMissingCount: number;
|
|
330
|
-
readonly openPathIds: readonly string[];
|
|
331
|
-
readonly mountedIds: readonly string[];
|
|
332
|
-
readonly portalMissingIds: readonly string[];
|
|
333
|
-
readonly portalTargetIds: readonly string[];
|
|
334
|
-
readonly items: readonly MenuSubmenuPortalItemContract[];
|
|
335
|
-
readonly attrs: UiAttributes;
|
|
336
|
-
}
|
|
337
|
-
export interface DrawerPlanOptions extends Omit<DialogPlanOptions, 'modal'> {
|
|
338
|
-
readonly side?: DrawerSide;
|
|
339
|
-
readonly size?: DrawerSize;
|
|
340
|
-
readonly descriptionId?: string;
|
|
341
|
-
readonly closeLabel?: string;
|
|
342
|
-
readonly longContent?: boolean;
|
|
343
|
-
readonly className?: string;
|
|
344
|
-
readonly attrs?: UiAttributes;
|
|
345
|
-
}
|
|
346
|
-
export interface DrawerPlans extends ProductDialogPlans {
|
|
347
|
-
readonly side: DrawerSide;
|
|
348
|
-
}
|
|
349
|
-
export interface DrawerPinnedAction {
|
|
350
|
-
readonly id: string;
|
|
351
|
-
readonly label?: string;
|
|
352
|
-
readonly disabled?: boolean;
|
|
353
|
-
readonly disabledReason?: string;
|
|
354
|
-
readonly pending?: boolean;
|
|
355
|
-
}
|
|
356
|
-
export interface DrawerNestedOverlayCoordinationContractOptions {
|
|
357
|
-
readonly nestedOverlayIds?: readonly string[];
|
|
358
|
-
readonly nestedModalIds?: readonly string[];
|
|
359
|
-
readonly activeOverlayId?: string;
|
|
360
|
-
readonly focusReturnId?: string;
|
|
361
|
-
readonly scrollContainerId?: string;
|
|
362
|
-
readonly scrollContained?: boolean;
|
|
363
|
-
readonly pinnedActions?: readonly DrawerPinnedAction[];
|
|
364
|
-
readonly pendingActionIds?: ReadonlySet<string> | readonly string[];
|
|
365
|
-
readonly disabledActionIds?: ReadonlySet<string> | readonly string[];
|
|
366
|
-
readonly disabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
367
|
-
}
|
|
368
|
-
export interface DrawerPinnedActionContract {
|
|
369
|
-
readonly id: string;
|
|
370
|
-
readonly action: DrawerPinnedAction;
|
|
371
|
-
readonly state: DrawerPinnedActionState;
|
|
372
|
-
readonly disabledReason: string;
|
|
373
|
-
readonly attrs: UiAttributes;
|
|
374
|
-
}
|
|
375
|
-
export interface DrawerNestedOverlayCoordinationContract {
|
|
376
|
-
readonly state: DrawerNestedOverlayCoordinationState;
|
|
377
|
-
readonly nestedOverlayCount: number;
|
|
378
|
-
readonly nestedModalCount: number;
|
|
379
|
-
readonly pinnedActionCount: number;
|
|
380
|
-
readonly pendingActionCount: number;
|
|
381
|
-
readonly disabledActionCount: number;
|
|
382
|
-
readonly activeOverlayId: string;
|
|
383
|
-
readonly focusReturnId: string;
|
|
384
|
-
readonly scrollContainerId: string;
|
|
385
|
-
readonly scrollContained: boolean;
|
|
386
|
-
readonly nestedOverlayIds: readonly string[];
|
|
387
|
-
readonly nestedModalIds: readonly string[];
|
|
388
|
-
readonly pinnedActionIds: readonly string[];
|
|
389
|
-
readonly pendingActionIds: readonly string[];
|
|
390
|
-
readonly disabledActionIds: readonly string[];
|
|
391
|
-
readonly actions: readonly DrawerPinnedActionContract[];
|
|
392
|
-
readonly attrs: UiAttributes;
|
|
393
|
-
}
|
|
394
|
-
export interface StepItem {
|
|
395
|
-
readonly id: string;
|
|
396
|
-
readonly label: string;
|
|
397
|
-
readonly description?: string;
|
|
398
|
-
readonly status?: StepStatus;
|
|
399
|
-
readonly disabled?: boolean;
|
|
400
|
-
readonly href?: string;
|
|
401
|
-
readonly timelineIndex?: number;
|
|
402
|
-
readonly timelineState?: StepTimelineState;
|
|
403
|
-
readonly validationState?: StepValidationState;
|
|
404
|
-
readonly blockingReason?: string;
|
|
405
|
-
readonly returnState?: StepReturnState;
|
|
406
|
-
readonly returnable?: boolean;
|
|
407
|
-
readonly previousStepId?: string;
|
|
408
|
-
readonly nextStepId?: string;
|
|
409
|
-
}
|
|
410
|
-
export interface StepsTimelineValidationContractOptions {
|
|
411
|
-
readonly items: readonly StepItem[];
|
|
412
|
-
readonly currentId?: string;
|
|
413
|
-
readonly completedIds?: ReadonlySet<string> | readonly string[];
|
|
414
|
-
readonly returnableIds?: ReadonlySet<string> | readonly string[];
|
|
415
|
-
readonly validationStates?: Readonly<Record<string, StepValidationState | undefined>>;
|
|
416
|
-
readonly blockingReasons?: Readonly<Record<string, string | undefined>>;
|
|
417
|
-
}
|
|
418
|
-
export interface StepsTimelineValidationItemContract {
|
|
419
|
-
readonly id: string;
|
|
420
|
-
readonly item: StepItem;
|
|
421
|
-
readonly timelineIndex: number;
|
|
422
|
-
readonly timelineState: StepTimelineState;
|
|
423
|
-
readonly validationState: StepValidationState;
|
|
424
|
-
readonly blockingReason: string;
|
|
425
|
-
readonly returnState: StepReturnState;
|
|
426
|
-
readonly previousStepId: string;
|
|
427
|
-
readonly nextStepId: string;
|
|
428
|
-
readonly attrs: UiAttributes;
|
|
429
|
-
}
|
|
430
|
-
export interface StepsTimelineValidationContract {
|
|
431
|
-
readonly state: StepsTimelineValidationState;
|
|
432
|
-
readonly currentId: string;
|
|
433
|
-
readonly stepCount: number;
|
|
434
|
-
readonly completedCount: number;
|
|
435
|
-
readonly returnableCount: number;
|
|
436
|
-
readonly blockedCount: number;
|
|
437
|
-
readonly invalidCount: number;
|
|
438
|
-
readonly warningCount: number;
|
|
439
|
-
readonly completedIds: readonly string[];
|
|
440
|
-
readonly returnableIds: readonly string[];
|
|
441
|
-
readonly blockedIds: readonly string[];
|
|
442
|
-
readonly invalidIds: readonly string[];
|
|
443
|
-
readonly warningIds: readonly string[];
|
|
444
|
-
readonly items: readonly StepsTimelineValidationItemContract[];
|
|
445
|
-
readonly attrs: UiAttributes;
|
|
446
|
-
}
|
|
447
|
-
export interface StepsPlanOptions {
|
|
448
|
-
readonly id?: string;
|
|
449
|
-
readonly items: readonly StepItem[];
|
|
450
|
-
readonly currentId?: string;
|
|
451
|
-
readonly orientation?: TabsOrientation;
|
|
452
|
-
readonly clickable?: boolean;
|
|
453
|
-
readonly label?: string;
|
|
454
|
-
readonly className?: string;
|
|
455
|
-
readonly attrs?: UiAttributes;
|
|
456
|
-
}
|
|
457
|
-
export interface StepsPlans {
|
|
458
|
-
readonly root: UiDomPlan<'nav'>;
|
|
459
|
-
readonly list: UiDomPlan<'ol'>;
|
|
460
|
-
readonly items: readonly UiDomPlan<'li'>[];
|
|
461
|
-
readonly indicators: readonly UiDomPlan<'span'>[];
|
|
462
|
-
readonly triggers: readonly UiDomPlan<'a' | 'button' | 'span'>[];
|
|
463
|
-
readonly descriptions: readonly (UiDomPlan<'p'> | undefined)[];
|
|
464
|
-
}
|
|
465
|
-
export interface CollapseItem {
|
|
466
|
-
readonly id: string;
|
|
467
|
-
readonly title: string;
|
|
468
|
-
readonly disabled?: boolean;
|
|
469
|
-
readonly description?: string;
|
|
470
|
-
readonly lazyState?: CollapseLazyState;
|
|
471
|
-
readonly lazyError?: string;
|
|
472
|
-
readonly persistedOpen?: boolean;
|
|
473
|
-
readonly nestedLevel?: number;
|
|
474
|
-
readonly parentPanelId?: string;
|
|
475
|
-
readonly disabledReason?: string;
|
|
476
|
-
}
|
|
477
|
-
export interface CollapseLazyPersistenceContractOptions {
|
|
478
|
-
readonly items: readonly CollapseItem[];
|
|
479
|
-
readonly openIds?: ReadonlySet<string> | readonly string[];
|
|
480
|
-
readonly persistedOpenIds?: ReadonlySet<string> | readonly string[];
|
|
481
|
-
readonly lazyLoadingIds?: ReadonlySet<string> | readonly string[];
|
|
482
|
-
readonly lazyLoadedIds?: ReadonlySet<string> | readonly string[];
|
|
483
|
-
readonly lazyErrors?: Readonly<Record<string, string | undefined>>;
|
|
484
|
-
readonly disabledReasons?: Readonly<Record<string, string | undefined>>;
|
|
485
|
-
readonly nestedParents?: Readonly<Record<string, string | undefined>>;
|
|
486
|
-
readonly nestedLevels?: Readonly<Record<string, number | undefined>>;
|
|
487
|
-
}
|
|
488
|
-
export interface CollapseLazyPersistenceItemContract {
|
|
489
|
-
readonly id: string;
|
|
490
|
-
readonly item: CollapseItem;
|
|
491
|
-
readonly lazyState: CollapseLazyState;
|
|
492
|
-
readonly lazyError: string;
|
|
493
|
-
readonly persistedOpen: boolean;
|
|
494
|
-
readonly disabledReason: string;
|
|
495
|
-
readonly nestedLevel: number;
|
|
496
|
-
readonly parentPanelId: string;
|
|
497
|
-
readonly attrs: UiAttributes;
|
|
498
|
-
}
|
|
499
|
-
export interface CollapseLazyPersistenceContract {
|
|
500
|
-
readonly state: CollapseAdvancedState;
|
|
501
|
-
readonly persistenceState: CollapsePersistenceState;
|
|
502
|
-
readonly itemCount: number;
|
|
503
|
-
readonly lazyLoadingCount: number;
|
|
504
|
-
readonly lazyLoadedCount: number;
|
|
505
|
-
readonly lazyErrorCount: number;
|
|
506
|
-
readonly persistedOpenCount: number;
|
|
507
|
-
readonly disabledReasonCount: number;
|
|
508
|
-
readonly nestedCount: number;
|
|
509
|
-
readonly openIds: readonly string[];
|
|
510
|
-
readonly persistedOpenIds: readonly string[];
|
|
511
|
-
readonly lazyLoadingIds: readonly string[];
|
|
512
|
-
readonly lazyLoadedIds: readonly string[];
|
|
513
|
-
readonly lazyErrorIds: readonly string[];
|
|
514
|
-
readonly disabledReasonIds: readonly string[];
|
|
515
|
-
readonly nestedIds: readonly string[];
|
|
516
|
-
readonly items: readonly CollapseLazyPersistenceItemContract[];
|
|
517
|
-
readonly attrs: UiAttributes;
|
|
518
|
-
}
|
|
519
|
-
export interface CollapsePlanOptions {
|
|
520
|
-
readonly id: string;
|
|
521
|
-
readonly items: readonly CollapseItem[];
|
|
522
|
-
readonly openIds?: ReadonlySet<string> | readonly string[];
|
|
523
|
-
readonly mode?: CollapseMode;
|
|
524
|
-
readonly label?: string;
|
|
525
|
-
readonly animated?: boolean;
|
|
526
|
-
readonly className?: string;
|
|
527
|
-
readonly attrs?: UiAttributes;
|
|
528
|
-
}
|
|
529
|
-
export interface CollapsePlans {
|
|
530
|
-
readonly root: UiDomPlan<'div'>;
|
|
531
|
-
readonly items: readonly UiDomPlan<'div'>[];
|
|
532
|
-
readonly triggers: readonly UiDomPlan<'button'>[];
|
|
533
|
-
readonly indicators: readonly UiDomPlan<'span'>[];
|
|
534
|
-
readonly panels: readonly UiDomPlan<'div'>[];
|
|
535
|
-
}
|
|
536
|
-
export declare function createTabsPlans(options: TabsPlanOptions): TabsPlans;
|
|
537
|
-
export declare function createTabsOverflowPersistenceContract(options: TabsOverflowPersistenceContractOptions): TabsOverflowPersistenceContract;
|
|
538
|
-
export declare function createCommandPalettePlans(options: CommandPalettePlanOptions): CommandPalettePlans;
|
|
539
|
-
export declare function createCommandPalettePermissionRecentContract(options: CommandPalettePermissionRecentContractOptions): CommandPalettePermissionRecentContract;
|
|
540
|
-
export declare function getNextTabId(items: readonly NavigationItem[], activeId: string, key: string, orientation?: TabsOrientation): string;
|
|
541
|
-
export declare function filterCommandPaletteItems(items: readonly CommandPaletteItem[], query: string, limit?: number): readonly CommandPaletteItem[];
|
|
542
|
-
export declare function getNextCommandPaletteItemId(items: readonly CommandPaletteItem[], activeId: string | undefined, key: string): string | undefined;
|
|
543
|
-
export declare function shouldOpenCommandPaletteForKey(key: string, metaKey?: boolean, ctrlKey?: boolean): boolean;
|
|
544
|
-
export declare function shouldCloseCommandPaletteForKey(key: string): boolean;
|
|
545
|
-
export declare function shouldSelectCommandPaletteItem(key: string): boolean;
|
|
546
|
-
export declare function createBreadcrumbPlans(items: readonly BreadcrumbItem[]): BreadcrumbPlans;
|
|
547
|
-
export declare function createBreadcrumbResponsiveStateContract(options: BreadcrumbResponsiveStateContractOptions): BreadcrumbResponsiveStateContract;
|
|
548
|
-
export declare function createMenuPlans(options: MenuPlanOptions): MenuPlans;
|
|
549
|
-
export declare function createMenuPermissionRemoteActionContract(options: MenuPermissionRemoteActionContractOptions): MenuPermissionRemoteActionContract;
|
|
550
|
-
export declare function createMenuSubmenuPortalStateContract(options: MenuSubmenuPortalStateContractOptions): MenuSubmenuPortalStateContract;
|
|
551
|
-
export declare function getNextMenuItemId(items: readonly MenuItem[], activeId: string, key: string): string;
|
|
552
|
-
export declare function createDrawerOverlayPlans(options: DrawerPlanOptions): OverlayPlans;
|
|
553
|
-
export declare function createDrawerPlans(options: DrawerPlanOptions): DrawerPlans;
|
|
554
|
-
export declare function createDrawerNestedOverlayCoordinationContract(options: DrawerNestedOverlayCoordinationContractOptions): DrawerNestedOverlayCoordinationContract;
|
|
555
|
-
export declare function createStepsPlans(options: StepsPlanOptions): StepsPlans;
|
|
556
|
-
export declare function getNextStepId(items: readonly StepItem[], activeId: string, key: string, orientation?: TabsOrientation): string;
|
|
557
|
-
export declare function createStepsTimelineValidationContract(options: StepsTimelineValidationContractOptions): StepsTimelineValidationContract;
|
|
558
|
-
export declare function createCollapsePlans(options: CollapsePlanOptions): CollapsePlans;
|
|
559
|
-
export declare function createCollapseLazyPersistenceContract(options: CollapseLazyPersistenceContractOptions): CollapseLazyPersistenceContract;
|
|
560
|
-
export declare function getNextCollapseTriggerId(items: readonly CollapseItem[], activeId: string, key: string): string;
|
|
561
|
-
export declare function getNextAccordionOpenIds(openIds: ReadonlySet<string>, itemId: string): ReadonlySet<string>;
|
|
562
|
-
export declare function getNextCollapseOpenIds(openIds: ReadonlySet<string>, itemId: string): ReadonlySet<string>;
|
|
563
|
-
/**
|
|
564
|
-
* Nav List plans — sidebar navigation: groups (title + items); items carry icon/label/badge/active state.
|
|
565
|
-
* Spec source: UIStyle/preview/component-nav-list.html (ds-navlist).
|
|
566
|
-
*/
|
|
567
|
-
export type NavListItemState = 'active' | 'disabled' | 'idle';
|
|
568
|
-
export interface NavListNavItem {
|
|
569
|
-
readonly id: string;
|
|
570
|
-
readonly label: string;
|
|
571
|
-
/** Icon identifier (mapped to an icon source/URL at render time). */
|
|
572
|
-
readonly icon?: string;
|
|
573
|
-
/** Badge text (number or string). */
|
|
574
|
-
readonly badge?: string | number;
|
|
575
|
-
readonly active?: boolean;
|
|
576
|
-
readonly disabled?: boolean;
|
|
577
|
-
/** When provided, renders as an <a>; otherwise a <button>. */
|
|
578
|
-
readonly href?: string;
|
|
579
|
-
}
|
|
580
|
-
export interface NavListGroupInput {
|
|
581
|
-
readonly id: string;
|
|
582
|
-
readonly title: string;
|
|
583
|
-
readonly items: readonly NavListNavItem[];
|
|
584
|
-
}
|
|
585
|
-
export interface NavListPlanOptions {
|
|
586
|
-
readonly id: string;
|
|
587
|
-
readonly groups: readonly NavListGroupInput[];
|
|
588
|
-
readonly className?: string;
|
|
589
|
-
readonly attrs?: UiAttributes;
|
|
590
|
-
}
|
|
591
|
-
export interface NavListNavItemPlan extends UiDomPlan<'a' | 'button'> {
|
|
592
|
-
readonly itemId: string;
|
|
593
|
-
/** Derived state (active > disabled > idle). */
|
|
594
|
-
readonly state: NavListItemState;
|
|
595
|
-
/** Icon (data-icon identifier, mapped at render time). */
|
|
596
|
-
readonly icon?: UiDomPlan<'img'>;
|
|
597
|
-
readonly label: UiDomPlan<'span'>;
|
|
598
|
-
readonly badge?: UiDomPlan<'span'>;
|
|
599
|
-
}
|
|
600
|
-
export interface NavListGroupPlan extends UiDomPlan<'div'> {
|
|
601
|
-
readonly groupId: string;
|
|
602
|
-
readonly title: UiDomPlan<'div'>;
|
|
603
|
-
readonly items: readonly NavListNavItemPlan[];
|
|
604
|
-
}
|
|
605
|
-
export interface NavListPlans {
|
|
606
|
-
readonly root: UiDomPlan<'nav'>;
|
|
607
|
-
readonly groups: readonly NavListGroupPlan[];
|
|
608
|
-
}
|
|
609
|
-
export declare function createNavListPlans(options: NavListPlanOptions): NavListPlans;
|