@vraxis/osx-components 0.11.3

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.
@@ -0,0 +1,248 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export type OsxIconName = "activity" | "book" | "bot" | "boxes" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "circle" | "circle-dashed" | "clock" | "code" | "command" | "copy" | "corner-down-left" | "download" | "ellipsis" | "external" | "eye" | "eye-off" | "file" | "file-code" | "file-text" | "flask" | "folder" | "folder-open" | "git-branch" | "grid" | "inbox" | "info" | "dashboard" | "list-checks" | "loader" | "lock" | "unlock" | "menu" | "minus" | "palette" | "panel" | "pencil" | "play" | "plus" | "refresh" | "search" | "send" | "settings" | "sparkle" | "square" | "stop" | "terminal" | "trash" | "warning" | "upload" | "user" | "close";
4
+ export type OsxFormValueEvent<T> = CustomEvent<[value: T]>;
5
+ export interface OsxFormAssociatedElement extends HTMLElement {
6
+ readonly form: HTMLFormElement | null;
7
+ readonly labels: NodeList;
8
+ readonly validity: ValidityState;
9
+ readonly validationMessage: string;
10
+ readonly willValidate: boolean;
11
+ checkValidity(): boolean;
12
+ reportValidity(): boolean;
13
+ setCustomValidity(message: string): void;
14
+ }
15
+
16
+ export type OsxAgentApprovalProps = {
17
+ title?: string;
18
+ description?: string;
19
+ risk?: "low" | "medium" | "high";
20
+ scope?: string;
21
+ approveLabel?: string;
22
+ rejectLabel?: string;
23
+ disabled?: boolean;
24
+ };
25
+ export type OsxAgentComposerProps = { value?: string; placeholder?: string; model?: string; busy?: boolean; disabled?: boolean; rows?: number };
26
+ export type OsxAgentMessageProps = { messageRole?: "user" | "assistant" | "system"; author?: string; model?: string; timestamp?: string; status?: "complete" | "streaming" | "error" };
27
+ export type OsxAgentRunStatusProps = { phase?: "planning" | "working" | "verifying" | "complete" | "error"; label?: string; detail?: string };
28
+ export type OsxAlertProps = { tone?: "info" | "success" | "warning" | "error"; title?: string; description?: string; dismissible?: boolean; label?: string };
29
+ export type OsxArtifactProps = { title?: string; description?: string; kind?: "file" | "document" | "code"; filename?: string; version?: string; language?: string; content?: string; href?: string; copyable?: boolean; downloadable?: boolean; openable?: boolean; status?: "draft" | "ready" | "updated" };
30
+ export type OsxAvatarProps = { name?: string; src?: string; alt?: string; size?: number; status?: "none" | "online" | "busy" | "offline" };
31
+ export type OsxBadgeProps = { tone?: "neutral" | "info" | "success" | "warning" | "danger"; size?: "small" | "medium"; label?: string; dot?: boolean };
32
+ export type OsxAppShellProps = { appTitle?: string; sidebarWidth?: string; inspectorWidth?: string; inspectorOpen?: boolean; label?: string; resizable?: boolean; sidebarMinWidth?: number; sidebarMaxWidth?: number; inspectorMinWidth?: number; inspectorMaxWidth?: number };
33
+
34
+ export type OsxButtonProps = {
35
+ variant?: "default" | "primary" | "danger";
36
+ size?: "small" | "medium";
37
+ type?: "button" | "submit" | "reset";
38
+ disabled?: boolean;
39
+ loading?: boolean;
40
+ icon?: OsxIconName;
41
+ iconPosition?: "leading" | "trailing";
42
+ };
43
+
44
+ export type OsxCheckboxProps = { checked?: boolean; label?: string; name?: string; value?: string; disabled?: boolean; required?: boolean; indeterminate?: boolean };
45
+ export type OsxCopyProps = { as?: "p" | "span" | "div"; size?: "small" | "medium" | "large"; tone?: "default" | "muted" | "accent"; weight?: "regular" | "medium" | "bold"; measure?: "none" | "narrow" | "default" | "wide"; align?: "left" | "center" | "right" };
46
+ export type OsxCitationProps = { index?: string | number; label?: string; title?: string; sourceId?: string; href?: string; selected?: boolean; disabled?: boolean };
47
+ export type OsxDataTableColumn = { key: string; label: string; align?: "left" | "center" | "right"; sortable?: boolean; searchable?: boolean; width?: string };
48
+ export type OsxDataTableRow = Record<string, string | number | boolean | null | undefined>;
49
+ export type OsxDataTableProps = {
50
+ columns?: string | OsxDataTableColumn[];
51
+ rows?: string | OsxDataTableRow[];
52
+ caption?: string;
53
+ label?: string;
54
+ searchable?: boolean;
55
+ searchPlaceholder?: string;
56
+ query?: string;
57
+ compact?: boolean;
58
+ striped?: boolean;
59
+ stickyHeader?: boolean;
60
+ loading?: boolean;
61
+ loadingLabel?: string;
62
+ sortKey?: string;
63
+ sortDirection?: "ascending" | "descending";
64
+ page?: number;
65
+ pageSize?: number;
66
+ pageSizes?: string | number[];
67
+ serverMode?: boolean;
68
+ totalRows?: number;
69
+ selectable?: boolean;
70
+ selectedKeys?: string | Array<string | number>;
71
+ rowKey?: string;
72
+ activatable?: boolean;
73
+ emptyMessage?: string;
74
+ noResultsMessage?: string;
75
+ };
76
+ export type OsxDiffViewerProps = { file?: string; patch?: string; view?: "unified" | "split"; language?: string; additions?: number; deletions?: number; label?: string };
77
+ export type OsxDialogProps = { open?: boolean; title?: string; description?: string; size?: "small" | "medium" | "large"; dismissible?: boolean; confirmLabel?: string; cancelLabel?: string };
78
+ export type OsxEcosystemCardProps = { name?: string; category?: string; description?: string; href?: string; actionLabel?: string; mark?: string; provenance?: string; trackingId?: string; tone?: "neutral" | "info" | "success" | "warning"; compact?: boolean; external?: boolean };
79
+ export type OsxEmptyStateProps = { title?: string; description?: string; actionLabel?: string; icon?: OsxIconName };
80
+ export type OsxFileTreeProps = { files?: string; selected?: string; statuses?: string; label?: string; filterable?: boolean };
81
+ export type OsxIconProps = { name?: OsxIconName; size?: number; label?: string; strokeWidth?: number; absoluteStrokeWidth?: boolean };
82
+ export type OsxIconButtonProps = { icon?: OsxIconName; label: string; size?: "small" | "medium" | "large"; variant?: "default" | "primary" | "danger"; disabled?: boolean; pressed?: boolean };
83
+ export type OsxHeadingProps = { level?: 1 | 2 | 3 | 4 | 5 | 6; variant?: "display" | "title" | "section" | "label"; align?: "left" | "center" | "right"; tone?: "default" | "muted" | "accent" };
84
+ export type OsxLinkProps = { href?: string; target?: "_self" | "_blank" | "_parent" | "_top"; rel?: string; external?: boolean; download?: boolean | string; underline?: "always" | "hover" | "none"; disabled?: boolean };
85
+ export type OsxMenuProps = { open?: boolean; label?: string; placement?: "start" | "end" };
86
+ export type OsxMenuItemProps = { label?: string; shortcut?: string; disabled?: boolean; checked?: boolean; type?: "action" | "checkbox" };
87
+ export type OsxMarkdownProps = { content?: string; streaming?: boolean; label?: string; codeCopy?: boolean };
88
+ export type OsxPlanStep = { id?: string; title: string; detail?: string; state?: "pending" | "active" | "done" | "failed" | "skipped" };
89
+ export type OsxPlanProps = { steps?: string | OsxPlanStep[]; title?: string; label?: string; compact?: boolean; showProgress?: boolean };
90
+ export type OsxPopoverProps = { open?: boolean; placement?: "top" | "right" | "bottom" | "left"; label?: string; dismissible?: boolean };
91
+ export type OsxProgressProps = { value?: number; max?: number; indeterminate?: boolean; label?: string };
92
+ export type OsxRadioOption = { value: string; label: string; description?: string; disabled?: boolean };
93
+ export type OsxRadioGroupProps = { options?: string | OsxRadioOption[]; value?: string; label?: string; name?: string; disabled?: boolean; required?: boolean; invalid?: boolean; hint?: string; error?: string; orientation?: "horizontal" | "vertical"; variant?: "default" | "cards" };
94
+ export type OsxSegmentedControlProps = { items?: string; value?: string; label?: string; disabled?: boolean };
95
+ export type OsxSelectOption = { value: string; label: string; disabled?: boolean };
96
+ export type OsxSelectProps = { options?: string | OsxSelectOption[]; value?: string; label?: string; name?: string; disabled?: boolean; required?: boolean; invalid?: boolean; hint?: string; error?: string };
97
+ export type OsxSheetProps = { open?: boolean; title?: string; description?: string; dismissible?: boolean };
98
+ export type OsxShimmerProps = { width?: string; height?: string; radius?: string; paused?: boolean; label?: string };
99
+ export type OsxSkeletonProps = { variant?: "text" | "card" | "profile"; lines?: number; animated?: boolean; label?: string };
100
+ export type OsxSpinnerProps = { size?: "small" | "medium" | "large"; tone?: "default" | "accent" | "inverse"; label?: string; showLabel?: boolean; paused?: boolean };
101
+ export type OsxSourceListProps = { items?: string; value?: string; label?: string; heading?: string; compact?: boolean; icons?: string };
102
+ export type OsxSourceItem = { id: string; title: string; url?: string; domain?: string; snippet?: string };
103
+ export type OsxSourcePanelProps = { sources?: string | OsxSourceItem[]; title?: string; label?: string; selected?: string; compact?: boolean };
104
+ export type OsxSplitViewProps = { orientation?: "horizontal" | "vertical"; primarySize?: string; label?: string };
105
+ export type OsxStatusBarProps = { label?: string; status?: "ready" | "working" | "offline"; detail?: string };
106
+ export type OsxTableColumn = { key: string; label: string; align?: "left" | "center" | "right"; sortable?: boolean; width?: string };
107
+ export type OsxTableRow = Record<string, string | number | boolean | null | undefined>;
108
+ export type OsxTableProps = { columns?: string | OsxTableColumn[]; rows?: string | OsxTableRow[]; caption?: string; label?: string; compact?: boolean; striped?: boolean; stickyHeader?: boolean; sortKey?: string; sortDirection?: "ascending" | "descending"; emptyMessage?: string };
109
+ export type OsxTextAreaProps = { value?: string; label?: string; placeholder?: string; name?: string; rows?: number; maxlength?: number; disabled?: boolean; readonly?: boolean; required?: boolean; invalid?: boolean; hint?: string; error?: string; resize?: "none" | "vertical" | "horizontal" | "both" };
110
+ export type OsxTextFieldProps = {
111
+ value?: string;
112
+ label?: string;
113
+ placeholder?: string;
114
+ type?: "text" | "email" | "password" | "search" | "tel" | "url";
115
+ name?: string;
116
+ autocomplete?: string;
117
+ maxlength?: number;
118
+ disabled?: boolean;
119
+ readonly?: boolean;
120
+ required?: boolean;
121
+ invalid?: boolean;
122
+ hint?: string;
123
+ error?: string;
124
+ icon?: OsxIconName;
125
+ iconPosition?: "leading" | "trailing";
126
+ };
127
+ export type OsxThinkingProps = { title?: string; summary?: string; status?: "idle" | "streaming" | "complete" | "error"; open?: boolean; label?: string };
128
+ export type OsxTerminalProps = { title?: string; command?: string; output?: string; cwd?: string; status?: "idle" | "running" | "success" | "error"; duration?: string; label?: string };
129
+ export type OsxTabsProps = { items?: string; value?: string; label?: string; orientation?: "horizontal" | "vertical" };
130
+ export type OsxToolbarProps = { label?: string; compact?: boolean };
131
+ export type OsxToggleProps = { checked?: boolean; label?: string; description?: string; name?: string; value?: string; disabled?: boolean; required?: boolean };
132
+ export type OsxToastProps = { open?: boolean; tone?: "info" | "success" | "warning" | "error"; title?: string; message?: string; duration?: number; placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left"; dismissible?: boolean; contained?: boolean };
133
+ export type OsxTooltipProps = { text?: string; placement?: "top" | "right" | "bottom" | "left"; open?: boolean; delay?: number };
134
+ export type OsxToolCallProps = { name?: string; status?: "queued" | "running" | "success" | "error"; summary?: string; duration?: string; open?: boolean };
135
+ export type OsxWindowProps = { title?: string; subtitle?: string; active?: boolean; closeable?: boolean; minimizable?: boolean; zoomable?: boolean };
136
+
137
+ export const OsxAgentApprovalComponent: DefineComponent<OsxAgentApprovalProps>;
138
+ export const OsxAgentComposerComponent: DefineComponent<OsxAgentComposerProps>;
139
+ export const OsxAgentMessageComponent: DefineComponent<OsxAgentMessageProps>;
140
+ export const OsxAgentRunStatusComponent: DefineComponent<OsxAgentRunStatusProps>;
141
+ export const OsxAlertComponent: DefineComponent<OsxAlertProps>;
142
+ export const OsxArtifactComponent: DefineComponent<OsxArtifactProps>;
143
+ export const OsxAvatarComponent: DefineComponent<OsxAvatarProps>;
144
+ export const OsxBadgeComponent: DefineComponent<OsxBadgeProps>;
145
+ export const OsxAppShellComponent: DefineComponent<OsxAppShellProps>;
146
+ export const OsxButtonComponent: DefineComponent<OsxButtonProps>;
147
+ export const OsxCheckboxComponent: DefineComponent<OsxCheckboxProps>;
148
+ export const OsxCopyComponent: DefineComponent<OsxCopyProps>;
149
+ export const OsxCitationComponent: DefineComponent<OsxCitationProps>;
150
+ export const OsxDataTableComponent: DefineComponent<OsxDataTableProps>;
151
+ export const OsxDiffViewerComponent: DefineComponent<OsxDiffViewerProps>;
152
+ export const OsxDialogComponent: DefineComponent<OsxDialogProps>;
153
+ export const OsxEcosystemCardComponent: DefineComponent<OsxEcosystemCardProps>;
154
+ export const OsxEmptyStateComponent: DefineComponent<OsxEmptyStateProps>;
155
+ export const OsxFileTreeComponent: DefineComponent<OsxFileTreeProps>;
156
+ export const OsxIconComponent: DefineComponent<OsxIconProps>;
157
+ export const OsxIconButtonComponent: DefineComponent<OsxIconButtonProps>;
158
+ export const OsxHeadingComponent: DefineComponent<OsxHeadingProps>;
159
+ export const OsxLinkComponent: DefineComponent<OsxLinkProps>;
160
+ export const OsxMenuComponent: DefineComponent<OsxMenuProps>;
161
+ export const OsxMenuItemComponent: DefineComponent<OsxMenuItemProps>;
162
+ export const OsxMarkdownComponent: DefineComponent<OsxMarkdownProps>;
163
+ export const OsxPlanComponent: DefineComponent<OsxPlanProps>;
164
+ export const OsxPopoverComponent: DefineComponent<OsxPopoverProps>;
165
+ export const OsxProgressComponent: DefineComponent<OsxProgressProps>;
166
+ export const OsxRadioGroupComponent: DefineComponent<OsxRadioGroupProps>;
167
+ export const OsxSegmentedControlComponent: DefineComponent<OsxSegmentedControlProps>;
168
+ export const OsxSelectComponent: DefineComponent<OsxSelectProps>;
169
+ export const OsxSheetComponent: DefineComponent<OsxSheetProps>;
170
+ export const OsxShimmerComponent: DefineComponent<OsxShimmerProps>;
171
+ export const OsxSkeletonComponent: DefineComponent<OsxSkeletonProps>;
172
+ export const OsxSpinnerComponent: DefineComponent<OsxSpinnerProps>;
173
+ export const OsxSourceListComponent: DefineComponent<OsxSourceListProps>;
174
+ export const OsxSourcePanelComponent: DefineComponent<OsxSourcePanelProps>;
175
+ export const OsxSplitViewComponent: DefineComponent<OsxSplitViewProps>;
176
+ export const OsxStatusBarComponent: DefineComponent<OsxStatusBarProps>;
177
+ export const OsxTableComponent: DefineComponent<OsxTableProps>;
178
+ export const OsxTextAreaComponent: DefineComponent<OsxTextAreaProps>;
179
+ export const OsxTextFieldComponent: DefineComponent<OsxTextFieldProps>;
180
+ export const OsxThinkingComponent: DefineComponent<OsxThinkingProps>;
181
+ export const OsxTerminalComponent: DefineComponent<OsxTerminalProps>;
182
+ export const OsxTabsComponent: DefineComponent<OsxTabsProps>;
183
+ export const OsxToolbarComponent: DefineComponent<OsxToolbarProps>;
184
+ export const OsxToggleComponent: DefineComponent<OsxToggleProps>;
185
+ export const OsxToastComponent: DefineComponent<OsxToastProps>;
186
+ export const OsxTooltipComponent: DefineComponent<OsxTooltipProps>;
187
+ export const OsxToolCallComponent: DefineComponent<OsxToolCallProps>;
188
+ export const OsxWindowComponent: DefineComponent<OsxWindowProps>;
189
+
190
+ export const componentDefinitions: {
191
+ "osx-agent-approval": typeof OsxAgentApprovalComponent;
192
+ "osx-agent-composer": typeof OsxAgentComposerComponent;
193
+ "osx-agent-message": typeof OsxAgentMessageComponent;
194
+ "osx-agent-run-status": typeof OsxAgentRunStatusComponent;
195
+ "osx-alert": typeof OsxAlertComponent;
196
+ "osx-artifact": typeof OsxArtifactComponent;
197
+ "osx-avatar": typeof OsxAvatarComponent;
198
+ "osx-badge": typeof OsxBadgeComponent;
199
+ "osx-app-shell": typeof OsxAppShellComponent;
200
+ "osx-button": typeof OsxButtonComponent;
201
+ "osx-checkbox": typeof OsxCheckboxComponent;
202
+ "osx-copy": typeof OsxCopyComponent;
203
+ "osx-citation": typeof OsxCitationComponent;
204
+ "osx-data-table": typeof OsxDataTableComponent;
205
+ "osx-diff-viewer": typeof OsxDiffViewerComponent;
206
+ "osx-dialog": typeof OsxDialogComponent;
207
+ "osx-ecosystem-card": typeof OsxEcosystemCardComponent;
208
+ "osx-empty-state": typeof OsxEmptyStateComponent;
209
+ "osx-file-tree": typeof OsxFileTreeComponent;
210
+ "osx-icon": typeof OsxIconComponent;
211
+ "osx-icon-button": typeof OsxIconButtonComponent;
212
+ "osx-heading": typeof OsxHeadingComponent;
213
+ "osx-link": typeof OsxLinkComponent;
214
+ "osx-menu": typeof OsxMenuComponent;
215
+ "osx-menu-item": typeof OsxMenuItemComponent;
216
+ "osx-markdown": typeof OsxMarkdownComponent;
217
+ "osx-plan": typeof OsxPlanComponent;
218
+ "osx-popover": typeof OsxPopoverComponent;
219
+ "osx-progress": typeof OsxProgressComponent;
220
+ "osx-radio-group": typeof OsxRadioGroupComponent;
221
+ "osx-segmented-control": typeof OsxSegmentedControlComponent;
222
+ "osx-select": typeof OsxSelectComponent;
223
+ "osx-sheet": typeof OsxSheetComponent;
224
+ "osx-shimmer": typeof OsxShimmerComponent;
225
+ "osx-skeleton": typeof OsxSkeletonComponent;
226
+ "osx-spinner": typeof OsxSpinnerComponent;
227
+ "osx-source-list": typeof OsxSourceListComponent;
228
+ "osx-source-panel": typeof OsxSourcePanelComponent;
229
+ "osx-split-view": typeof OsxSplitViewComponent;
230
+ "osx-status-bar": typeof OsxStatusBarComponent;
231
+ "osx-table": typeof OsxTableComponent;
232
+ "osx-textarea": typeof OsxTextAreaComponent;
233
+ "osx-text-field": typeof OsxTextFieldComponent;
234
+ "osx-thinking": typeof OsxThinkingComponent;
235
+ "osx-terminal": typeof OsxTerminalComponent;
236
+ "osx-tabs": typeof OsxTabsComponent;
237
+ "osx-toolbar": typeof OsxToolbarComponent;
238
+ "osx-toggle": typeof OsxToggleComponent;
239
+ "osx-toast": typeof OsxToastComponent;
240
+ "osx-tooltip": typeof OsxTooltipComponent;
241
+ "osx-tool-call": typeof OsxToolCallComponent;
242
+ "osx-window": typeof OsxWindowComponent;
243
+ };
244
+
245
+ export type OsxComponentName = keyof typeof componentDefinitions;
246
+ export function registerOsxComponents(): void;
247
+ export const iconNames: OsxIconName[];
248
+ export const iconRegistry: Record<OsxIconName, DefineComponent>;