@synopackageland/ui 0.4.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.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSES/THIRD_PARTY.md +1866 -0
  3. package/README.md +440 -0
  4. package/dist/components/app/app-action-bar/AppActionBar.vue.d.ts +15 -0
  5. package/dist/components/app/app-layout/AppLayout.vue.d.ts +26 -0
  6. package/dist/components/app/app-root/AppRoot.vue.d.ts +20 -0
  7. package/dist/components/app/app-sidebar/AppSidebar.vue.d.ts +34 -0
  8. package/dist/components/app/app-toolbar/AppToolbar.vue.d.ts +22 -0
  9. package/dist/components/app/page-header/PageHeader.vue.d.ts +17 -0
  10. package/dist/components/app/section-tabs/SectionTabs.vue.d.ts +16 -0
  11. package/dist/components/composite/callout/Callout.vue.d.ts +19 -0
  12. package/dist/components/composite/data-grid/DataGrid.vue.d.ts +126 -0
  13. package/dist/components/composite/data-grid/columnWidths.d.ts +6 -0
  14. package/dist/components/composite/data-grid/labels.d.ts +12 -0
  15. package/dist/components/composite/data-table/DataTable.vue.d.ts +34 -0
  16. package/dist/components/composite/empty-state/EmptyState.vue.d.ts +19 -0
  17. package/dist/components/composite/file-picker/FilePicker.vue.d.ts +49 -0
  18. package/dist/components/composite/search-field/SearchField.vue.d.ts +19 -0
  19. package/dist/components/composite/settings-row/SettingsRow.vue.d.ts +22 -0
  20. package/dist/components/composite/settings-section/SettingsSection.vue.d.ts +21 -0
  21. package/dist/components/composite/tree-view/TreeView.vue.d.ts +44 -0
  22. package/dist/components/primitives/accordion/Accordion.vue.d.ts +28 -0
  23. package/dist/components/primitives/badge/Badge.vue.d.ts +18 -0
  24. package/dist/components/primitives/button/Button.vue.d.ts +28 -0
  25. package/dist/components/primitives/button/IconButton.vue.d.ts +25 -0
  26. package/dist/components/primitives/checkbox/Checkbox.vue.d.ts +16 -0
  27. package/dist/components/primitives/context-menu/ContextMenu.vue.d.ts +26 -0
  28. package/dist/components/primitives/context-menu/ContextMenuItems.vue.d.ts +13 -0
  29. package/dist/components/primitives/context-menu/types.d.ts +13 -0
  30. package/dist/components/primitives/date-picker/DatePicker.vue.d.ts +25 -0
  31. package/dist/components/primitives/dialog/Dialog.vue.d.ts +44 -0
  32. package/dist/components/primitives/dropdown-menu/DropdownMenu.vue.d.ts +36 -0
  33. package/dist/components/primitives/input/Input.vue.d.ts +21 -0
  34. package/dist/components/primitives/input/Textarea.vue.d.ts +19 -0
  35. package/dist/components/primitives/loading/LoadingArea.vue.d.ts +8 -0
  36. package/dist/components/primitives/loading/LoadingIndicator.vue.d.ts +10 -0
  37. package/dist/components/primitives/loading/LoadingMask.vue.d.ts +20 -0
  38. package/dist/components/primitives/popover/Popover.vue.d.ts +24 -0
  39. package/dist/components/primitives/progress/Progress.vue.d.ts +11 -0
  40. package/dist/components/primitives/radio-group/RadioGroup.vue.d.ts +22 -0
  41. package/dist/components/primitives/select/Select.vue.d.ts +21 -0
  42. package/dist/components/primitives/separator/Separator.vue.d.ts +8 -0
  43. package/dist/components/primitives/sheet/Sheet.vue.d.ts +47 -0
  44. package/dist/components/primitives/skeleton/Skeleton.vue.d.ts +12 -0
  45. package/dist/components/primitives/spinner/Spinner.vue.d.ts +10 -0
  46. package/dist/components/primitives/split-button/SplitButton.vue.d.ts +30 -0
  47. package/dist/components/primitives/surface/Surface.vue.d.ts +22 -0
  48. package/dist/components/primitives/switch/Switch.vue.d.ts +15 -0
  49. package/dist/components/primitives/tabs/Tabs.vue.d.ts +28 -0
  50. package/dist/components/primitives/toast/ToastProvider.vue.d.ts +21 -0
  51. package/dist/components/primitives/toast/toast.d.ts +25 -0
  52. package/dist/components/primitives/tooltip/Tooltip.vue.d.ts +21 -0
  53. package/dist/index.d.ts +59 -0
  54. package/dist/index.js +15795 -0
  55. package/dist/lib/appRoot.d.ts +2 -0
  56. package/dist/lib/cn.d.ts +2 -0
  57. package/dist/lib/localModal.d.ts +44 -0
  58. package/dist/reka-runtime.json +23 -0
  59. package/dist/theme.css +1 -0
  60. package/dist/themes/dsm7-embedded-reset.css +1 -0
  61. package/dist/themes/dsm7-embedded-theme.css +1 -0
  62. package/dist/themes/dsm7-embedded.css +1 -0
  63. package/dist/themes/dsm7.css +1 -0
  64. package/docs/app-local-modal.md +120 -0
  65. package/package.json +51 -0
@@ -0,0 +1,126 @@
1
+ import { DataGridLabels } from './labels';
2
+ export type DataGridSort = {
3
+ key: string;
4
+ direction: 'asc' | 'desc';
5
+ };
6
+ export type DataGridColumn = {
7
+ key: string;
8
+ label: string;
9
+ /** A pixel width (`120`, `"120px"`). Other CSS units size the column but cannot be resized from. */
10
+ width?: string | number;
11
+ minWidth?: string | number;
12
+ align?: 'left' | 'center' | 'right';
13
+ sortable?: boolean;
14
+ /** Overrides the grid's `resizable` for this column. */
15
+ resizable?: boolean;
16
+ compare?: (a: unknown, b: unknown, rowA: Record<string, unknown>, rowB: Record<string, unknown>) => number;
17
+ };
18
+ export type DataGridColumnWidths = Record<string, number>;
19
+ export type { DataGridLabels };
20
+ type __VLS_Props = {
21
+ columns: DataGridColumn[];
22
+ rows: Record<string, unknown>[];
23
+ rowKey?: string;
24
+ /** Bind to control the sort; leave unset and the grid sorts by itself. */
25
+ sort?: DataGridSort | null;
26
+ defaultSort?: DataGridSort | null;
27
+ selectedKeys?: string[];
28
+ selectable?: boolean;
29
+ /** With `selectable`: a row click selects that row; Ctrl/Cmd-click toggles it. */
30
+ selectOnRowClick?: boolean;
31
+ page?: number;
32
+ pageSize?: number;
33
+ totalRows?: number;
34
+ localSort?: boolean;
35
+ localPagination?: boolean;
36
+ loading?: boolean;
37
+ loadingText?: string;
38
+ /** @deprecated Loading now masks the table; the skeleton rows are gone. */
39
+ loadingRows?: number;
40
+ stickyHeader?: boolean;
41
+ /** Drag the header border to resize columns. */
42
+ resizable?: boolean;
43
+ /** Persisted column widths in px, by column key. */
44
+ columnWidths?: DataGridColumnWidths;
45
+ /** `true` always shows the footer bar, `false` never; unset shows it when paged or given a slot. */
46
+ footer?: boolean;
47
+ refreshable?: boolean;
48
+ refreshing?: boolean;
49
+ maxHeight?: string;
50
+ labels?: Partial<DataGridLabels>;
51
+ /** @deprecated Use `labels.empty`. */
52
+ emptyText?: string;
53
+ };
54
+ declare var __VLS_15: `header-${string}`, __VLS_16: {
55
+ column: DataGridColumn;
56
+ }, __VLS_28: {}, __VLS_38: `cell-${string}`, __VLS_39: {
57
+ row: Record<string, unknown>;
58
+ value: unknown;
59
+ column: DataGridColumn;
60
+ index: number;
61
+ }, __VLS_41: {
62
+ total: number;
63
+ page: number;
64
+ pageCount: number;
65
+ };
66
+ type __VLS_Slots = {} & {
67
+ [K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
68
+ } & {
69
+ [K in NonNullable<typeof __VLS_38>]?: (props: typeof __VLS_39) => any;
70
+ } & {
71
+ empty?: (props: typeof __VLS_28) => any;
72
+ } & {
73
+ footer?: (props: typeof __VLS_41) => any;
74
+ };
75
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
+ refresh: () => any;
77
+ "update:sort": (value: DataGridSort | null) => any;
78
+ "update:selectedKeys": (value: string[]) => any;
79
+ "update:page": (value: number) => any;
80
+ "update:columnWidths": (value: DataGridColumnWidths) => any;
81
+ columnResize: (value: {
82
+ key: string;
83
+ width: number;
84
+ }) => any;
85
+ rowClick: (row: Record<string, unknown>) => any;
86
+ rowDblclick: (row: Record<string, unknown>) => any;
87
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
88
+ onRefresh?: (() => any) | undefined;
89
+ "onUpdate:sort"?: ((value: DataGridSort | null) => any) | undefined;
90
+ "onUpdate:selectedKeys"?: ((value: string[]) => any) | undefined;
91
+ "onUpdate:page"?: ((value: number) => any) | undefined;
92
+ "onUpdate:columnWidths"?: ((value: DataGridColumnWidths) => any) | undefined;
93
+ onColumnResize?: ((value: {
94
+ key: string;
95
+ width: number;
96
+ }) => any) | undefined;
97
+ onRowClick?: ((row: Record<string, unknown>) => any) | undefined;
98
+ onRowDblclick?: ((row: Record<string, unknown>) => any) | undefined;
99
+ }>, {
100
+ footer: boolean;
101
+ sort: DataGridSort | null;
102
+ loading: boolean;
103
+ rowKey: string;
104
+ defaultSort: DataGridSort | null;
105
+ selectedKeys: string[];
106
+ selectable: boolean;
107
+ selectOnRowClick: boolean;
108
+ page: number;
109
+ pageSize: number;
110
+ localSort: boolean;
111
+ localPagination: boolean;
112
+ loadingText: string;
113
+ loadingRows: number;
114
+ stickyHeader: boolean;
115
+ resizable: boolean;
116
+ refreshable: boolean;
117
+ refreshing: boolean;
118
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
119
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
120
+ declare const _default: typeof __VLS_export;
121
+ export default _default;
122
+ type __VLS_WithSlots<T, S> = T & {
123
+ new (): {
124
+ $slots: S;
125
+ };
126
+ };
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_MIN_COLUMN_WIDTH = 40;
2
+ export declare const FALLBACK_COLUMN_WIDTH = 100;
3
+ export declare const KEYBOARD_RESIZE_STEP = 10;
4
+ /** A pixel width from a number or a `"120px"` / `"120"` string; other units are unknown. */
5
+ export declare function toPixels(value: string | number | undefined): number | undefined;
6
+ export declare function clampWidth(width: number, minWidth: number): number;
@@ -0,0 +1,12 @@
1
+ export type DataGridLabels = {
2
+ empty: string;
3
+ items: (count: number) => string;
4
+ page: (page: number, pageCount: number) => string;
5
+ previous: string;
6
+ next: string;
7
+ refresh: string;
8
+ selectAll: string;
9
+ selectRow: (key: string) => string;
10
+ resizeColumn: (label: string) => string;
11
+ };
12
+ export declare const defaultDataGridLabels: DataGridLabels;
@@ -0,0 +1,34 @@
1
+ export type DataTableColumn = {
2
+ key: string;
3
+ label: string;
4
+ width?: string;
5
+ align?: 'left' | 'center' | 'right';
6
+ };
7
+ type __VLS_Props = {
8
+ columns: DataTableColumn[];
9
+ rows: Record<string, unknown>[];
10
+ rowKey?: string;
11
+ emptyText?: string;
12
+ compact?: boolean;
13
+ };
14
+ declare var __VLS_2: `cell-${string}`, __VLS_3: {
15
+ row: Record<string, unknown>;
16
+ value: unknown;
17
+ column: DataTableColumn;
18
+ };
19
+ type __VLS_Slots = {} & {
20
+ [K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
21
+ };
22
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ rowKey: string;
24
+ emptyText: string;
25
+ compact: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,19 @@
1
+ import { Component } from 'vue';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ description?: string;
5
+ icon?: Component;
6
+ };
7
+ declare var __VLS_6: {};
8
+ type __VLS_Slots = {} & {
9
+ actions?: (props: typeof __VLS_6) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,49 @@
1
+ export type FileRejection = {
2
+ file: File;
3
+ reason: 'type' | 'size' | 'count' | 'duplicate';
4
+ message: string;
5
+ };
6
+ type __VLS_Props = {
7
+ modelValue?: File[];
8
+ multiple?: boolean;
9
+ accept?: string;
10
+ disabled?: boolean;
11
+ maxFiles?: number;
12
+ maxSize?: number;
13
+ directory?: boolean;
14
+ showList?: boolean;
15
+ title?: string;
16
+ description?: string;
17
+ };
18
+ declare var __VLS_19: {
19
+ file: File;
20
+ index: number;
21
+ };
22
+ type __VLS_Slots = {} & {
23
+ 'file-actions'?: (props: typeof __VLS_19) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:modelValue": (files: File[]) => any;
27
+ rejected: (items: FileRejection[]) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ "onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
30
+ onRejected?: ((items: FileRejection[]) => any) | undefined;
31
+ }>, {
32
+ title: string;
33
+ disabled: boolean;
34
+ modelValue: File[];
35
+ description: string;
36
+ multiple: boolean;
37
+ maxFiles: number;
38
+ maxSize: number;
39
+ directory: boolean;
40
+ showList: boolean;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ clearLabel?: string;
5
+ /** `filter` is the DSM toolbar filter box (funnel icon); `search` keeps the magnifier. */
6
+ variant?: 'search' | 'filter';
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {
13
+ variant: "search" | "filter";
14
+ modelValue: string;
15
+ placeholder: string;
16
+ clearLabel: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ description?: string;
4
+ required?: boolean;
5
+ align?: 'start' | 'center';
6
+ };
7
+ declare var __VLS_1: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ required: boolean;
13
+ align: "start" | "center";
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ collapsible?: boolean;
4
+ defaultOpen?: boolean;
5
+ };
6
+ declare var __VLS_6: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_6) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ defaultOpen: boolean;
12
+ collapsible: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,44 @@
1
+ import { Component } from 'vue';
2
+ export type TreeNode = {
3
+ id: string;
4
+ label: string;
5
+ children?: TreeNode[];
6
+ disabled?: boolean;
7
+ icon?: Component;
8
+ data?: unknown;
9
+ };
10
+ type __VLS_Props = {
11
+ nodes: TreeNode[];
12
+ modelValue?: string | string[];
13
+ expanded?: string[];
14
+ multiple?: boolean;
15
+ showIcons?: boolean;
16
+ };
17
+ declare var __VLS_27: {
18
+ node: TreeNode;
19
+ selected: boolean;
20
+ };
21
+ type __VLS_Slots = {} & {
22
+ trailing?: (props: typeof __VLS_27) => any;
23
+ };
24
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ select: (node: TreeNode) => any;
26
+ "update:modelValue": (value: string | string[] | undefined) => any;
27
+ "update:expanded": (value: string[]) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onSelect?: ((node: TreeNode) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
31
+ "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
32
+ }>, {
33
+ multiple: boolean;
34
+ expanded: string[];
35
+ showIcons: boolean;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,28 @@
1
+ export type AccordionEntry = {
2
+ value: string;
3
+ title: string;
4
+ disabled?: boolean;
5
+ };
6
+ type __VLS_Props = {
7
+ items: AccordionEntry[];
8
+ modelValue?: string;
9
+ };
10
+ declare var __VLS_40: `item-${string}`, __VLS_41: {
11
+ item: AccordionEntry;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ [K in NonNullable<typeof __VLS_40>]?: (props: typeof __VLS_41) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | undefined) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,28 @@
1
+ type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
2
+ type ButtonSize = 'sm' | 'md' | 'lg';
3
+ type __VLS_Props = {
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
+ loading?: boolean;
7
+ disabled?: boolean;
8
+ type?: 'button' | 'submit' | 'reset';
9
+ };
10
+ declare var __VLS_6: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_6) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ size: ButtonSize;
16
+ type: "button" | "submit" | "reset";
17
+ variant: ButtonVariant;
18
+ loading: boolean;
19
+ disabled: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,25 @@
1
+ type IconButtonVariant = 'secondary' | 'ghost' | 'primary';
2
+ type IconButtonSize = 'sm' | 'md' | 'lg';
3
+ type __VLS_Props = {
4
+ label: string;
5
+ variant?: IconButtonVariant;
6
+ size?: IconButtonSize;
7
+ disabled?: boolean;
8
+ };
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ size: IconButtonSize;
15
+ variant: IconButtonVariant;
16
+ disabled: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean;
3
+ disabled?: boolean;
4
+ label?: string;
5
+ description?: string;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
11
+ }>, {
12
+ disabled: boolean;
13
+ modelValue: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ContextMenuEntry } from './types';
2
+ type __VLS_Props = {
3
+ items: ContextMenuEntry[];
4
+ disabled?: boolean;
5
+ };
6
+ declare var __VLS_14: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_14) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ select: (key: string) => any;
12
+ toggle: (key: string, checked: boolean) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onSelect?: ((key: string) => any) | undefined;
15
+ onToggle?: ((key: string, checked: boolean) => any) | undefined;
16
+ }>, {
17
+ disabled: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,13 @@
1
+ import { ContextMenuEntry } from './types';
2
+ type __VLS_Props = {
3
+ items: ContextMenuEntry[];
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ select: (key: string) => any;
7
+ toggle: (key: string, checked: boolean) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onSelect?: ((key: string) => any) | undefined;
10
+ onToggle?: ((key: string, checked: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export type ContextMenuEntry = {
2
+ type?: 'item';
3
+ key: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ danger?: boolean;
7
+ shortcut?: string;
8
+ checked?: boolean;
9
+ children?: ContextMenuEntry[];
10
+ } | {
11
+ type: 'separator';
12
+ key: string;
13
+ };
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ locale?: string;
5
+ disabled?: boolean;
6
+ readonly?: boolean;
7
+ min?: string;
8
+ max?: string;
9
+ clearable?: boolean;
10
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
11
+ };
12
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:modelValue": (value: string | undefined) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
16
+ }>, {
17
+ disabled: boolean;
18
+ placeholder: string;
19
+ locale: string;
20
+ readonly: boolean;
21
+ clearable: boolean;
22
+ weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,44 @@
1
+ type __VLS_Props = {
2
+ open?: boolean;
3
+ defaultOpen?: boolean;
4
+ title?: string;
5
+ description?: string;
6
+ width?: string;
7
+ closeLabel?: string;
8
+ };
9
+ declare var __VLS_14: {}, __VLS_62: {}, __VLS_64: {};
10
+ type __VLS_Slots = {} & {
11
+ trigger?: (props: typeof __VLS_14) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_62) => any;
14
+ } & {
15
+ footer?: (props: typeof __VLS_64) => any;
16
+ };
17
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:open": (value: boolean) => any;
19
+ escapeKeyDown: (event: KeyboardEvent) => any;
20
+ pointerDownOutside: (event: Event) => any;
21
+ interactOutside: (event: Event) => any;
22
+ openAutoFocus: (event: Event) => any;
23
+ closeAutoFocus: (event: Event) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
26
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
27
+ onPointerDownOutside?: ((event: Event) => any) | undefined;
28
+ onInteractOutside?: ((event: Event) => any) | undefined;
29
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
30
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
31
+ }>, {
32
+ width: string;
33
+ open: boolean;
34
+ defaultOpen: boolean;
35
+ closeLabel: string;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,36 @@
1
+ export type DropdownMenuEntry = {
2
+ type?: 'item';
3
+ key: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ checked?: boolean;
7
+ danger?: boolean;
8
+ shortcut?: string;
9
+ submenu?: boolean;
10
+ } | {
11
+ type: 'separator';
12
+ key: string;
13
+ };
14
+ type __VLS_Props = {
15
+ items: DropdownMenuEntry[];
16
+ align?: 'start' | 'center' | 'end';
17
+ };
18
+ declare var __VLS_14: {};
19
+ type __VLS_Slots = {} & {
20
+ trigger?: (props: typeof __VLS_14) => any;
21
+ };
22
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ select: (key: string) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onSelect?: ((key: string) => any) | undefined;
26
+ }>, {
27
+ align: "start" | "center" | "end";
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };