@dolanske/vui 0.4.0 → 1.0.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/README.md +6 -13
- package/dist/components/Alert/Alert.vue.d.ts +7 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +15 -1
- package/dist/components/Badge/Badge.vue.d.ts +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +1 -1
- package/dist/components/Button/Button.vue.d.ts +5 -15
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +2 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +19 -4
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +5 -1
- package/dist/components/Flex/Flex.vue.d.ts +3 -1
- package/dist/components/Grid/Grid.vue.d.ts +7 -2
- package/dist/components/Input/Dropzone.vue.d.ts +1 -1
- package/dist/components/Input/Input.vue.d.ts +2 -2
- package/dist/components/Kbd/KbdGroup.vue.d.ts +3 -11
- package/dist/components/Modal/Confirm.vue.d.ts +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +3 -0
- package/dist/components/Popout/Popout.vue.d.ts +8 -1
- package/dist/components/Progress/Progress.vue.d.ts +2 -0
- package/dist/components/Radio/Radio.vue.d.ts +1 -0
- package/dist/components/Select/Select.vue.d.ts +2 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +3 -0
- package/dist/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/Table/table.d.ts +1 -1
- package/dist/components/Tabs/Tab.vue.d.ts +16 -3
- package/dist/components/Tabs/Tabs.vue.d.ts +4 -0
- package/dist/components/Toast/toast.d.ts +245 -0
- package/dist/index.d.ts +2 -7
- package/dist/shared/helpers.d.ts +9 -0
- package/dist/shared/theme.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/vui.js +6423 -6046
- package/package.json +8 -4
- package/src/App.vue +89 -192
- package/src/components/Accordion/accordion.scss +2 -0
- package/src/components/Alert/Alert.vue +11 -5
- package/src/components/Alert/alert.scss +104 -23
- package/src/components/Avatar/Avatar.vue +4 -1
- package/src/components/Avatar/avatar.scss +1 -1
- package/src/components/Badge/Badge.vue +1 -1
- package/src/components/Badge/badge.scss +134 -17
- package/src/components/Breadcrumbs/BreadcrumbItem.vue +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.vue +1 -2
- package/src/components/Breadcrumbs/breadcrumbs.scss +2 -1
- package/src/components/Button/Button.vue +16 -21
- package/src/components/Button/button.scss +159 -56
- package/src/components/ButtonGroup/ButtonGroup.vue +4 -1
- package/src/components/ButtonGroup/button-group.scss +2 -2
- package/src/components/Calendar/Calendar.vue +9 -3
- package/src/components/Calendar/calendar.scss +29 -2
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Card/card.scss +4 -4
- package/src/components/Checkbox/Checkbox.vue +7 -5
- package/src/components/Checkbox/checkbox.scss +27 -13
- package/src/components/CopyClipboard/CopyClipboard.vue +15 -6
- package/src/components/CopyClipboard/copy-clipboard.scss +10 -2
- package/src/components/Drawer/Drawer.vue +4 -4
- package/src/components/Drawer/drawer.scss +1 -0
- package/src/components/Dropdown/Dropdown.vue +44 -20
- package/src/components/Dropdown/DropdownItem.vue +5 -4
- package/src/components/Dropdown/DropdownTitle.vue +7 -1
- package/src/components/Dropdown/dropdown-item.scss +84 -0
- package/src/components/Dropdown/dropdown.scss +21 -86
- package/src/components/Flex/Flex.vue +4 -1
- package/src/components/Grid/Grid.vue +25 -2
- package/src/components/Input/Color.vue +26 -0
- package/src/components/Input/Counter.vue +12 -16
- package/src/components/Input/Dropzone.vue +1 -1
- package/src/components/Input/File.vue +1 -1
- package/src/components/Input/Input.vue +8 -6
- package/src/components/Input/Password.vue +1 -13
- package/src/components/Input/Textarea.vue +4 -2
- package/src/components/Input/input.scss +113 -19
- package/src/components/Kbd/KbdGroup.vue +2 -6
- package/src/components/Kbd/kbd.scss +7 -6
- package/src/components/Modal/Confirm.vue +1 -1
- package/src/components/Modal/Modal.vue +23 -15
- package/src/components/Modal/modal.scss +11 -6
- package/src/components/OTP/otp.scss +8 -7
- package/src/components/Pagination/Pagination.vue +6 -3
- package/src/components/Popout/Popout.vue +15 -5
- package/src/components/Popout/popout.scss +8 -1
- package/src/components/Progress/Progress.vue +18 -5
- package/src/components/Progress/progress.scss +7 -1
- package/src/components/Radio/Radio.vue +4 -2
- package/src/components/Radio/radio.scss +28 -9
- package/src/components/Select/Select.vue +49 -18
- package/src/components/Select/select.scss +35 -2
- package/src/components/Sheet/Sheet.vue +8 -2
- package/src/components/Sheet/sheet.scss +9 -0
- package/src/components/Sidebar/Sidebar.vue +46 -16
- package/src/components/Sidebar/sidebar.scss +6 -5
- package/src/components/Spinner/spinner.scss +2 -1
- package/src/components/Switch/Switch.vue +4 -3
- package/src/components/Switch/switch.scss +48 -7
- package/src/components/Table/{Header.vue → Head.vue} +5 -5
- package/src/components/Table/{Table.vue → Root.vue} +2 -2
- package/src/components/Table/SelectRow.vue +2 -1
- package/src/components/Table/index.ts +7 -0
- package/src/components/Table/table.scss +25 -5
- package/src/components/Table/table.ts +7 -3
- package/src/components/Tabs/Tab.vue +7 -9
- package/src/components/Tabs/Tabs.vue +9 -2
- package/src/components/Tabs/tabs.scss +11 -3
- package/src/components/Toast/Toasts.vue +5 -0
- package/src/components/Toast/toast.scss +6 -2
- package/src/components/Toast/toast.ts +7 -0
- package/src/components/Tooltip/Tooltip.vue +9 -9
- package/src/components/Tooltip/tooltip.scss +4 -0
- package/src/examples/ExampleAccordions.vue +58 -0
- package/src/examples/ExampleAlerts.vue +78 -0
- package/src/examples/ExampleAvatars.vue +44 -0
- package/src/examples/ExampleBadges.vue +48 -0
- package/src/examples/ExampleBreadcrumbs.vue +46 -0
- package/src/examples/ExampleButtons.vue +140 -0
- package/src/examples/ExampleCalendars.vue +40 -0
- package/src/examples/ExampleCards.vue +94 -0
- package/src/examples/ExampleCheckboxes.vue +123 -0
- package/src/examples/ExampleCopyClipboard.vue +47 -0
- package/src/examples/ExampleDividers.vue +39 -0
- package/src/examples/ExampleDrawers.vue +67 -0
- package/src/examples/ExampleDropdowns.vue +114 -0
- package/src/examples/ExampleFlexGrid.vue +122 -0
- package/src/examples/ExampleInputs.vue +234 -0
- package/src/examples/ExampleKBD.vue +65 -0
- package/src/examples/ExampleModals.vue +143 -0
- package/src/examples/ExamplePalette.vue +159 -0
- package/src/examples/ExamplePopouts.vue +41 -0
- package/src/examples/ExampleSheets.vue +77 -0
- package/src/examples/ExampleSidebars.vue +270 -0
- package/src/examples/ExampleSkeletons.vue +26 -0
- package/src/examples/ExampleSpinners.vue +78 -0
- package/src/examples/ExampleTables.vue +195 -0
- package/src/examples/ExampleTabs.vue +119 -0
- package/src/examples/ExampleToasts.vue +96 -0
- package/src/examples/ExampleTooltips.vue +70 -0
- package/src/examples/shared/ExampleColor.vue +28 -0
- package/src/index.ts +4 -11
- package/src/internal/Backdrop/backdrop.scss +7 -1
- package/src/shared/helpers.ts +43 -0
- package/src/shared/theme.ts +22 -0
- package/src/style/animation.scss +1 -0
- package/src/style/core.scss +34 -57
- package/src/style/layout.scss +102 -5
- package/src/style/{fonts.scss → text.scss} +39 -0
- package/src/style/theme.scss +195 -0
- package/src/style/tooltip.scss +22 -4
- package/src/style/typography.scss +95 -18
- package/dist/components/Table/Row.vue.d.ts +0 -16
- package/src/components/Table/Row.vue +0 -9
- /package/dist/components/Table/{Header.vue.d.ts → Head.vue.d.ts} +0 -0
- /package/dist/components/Table/{Table.vue.d.ts → Root.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -9,22 +9,14 @@
|
|
|
9
9
|
## 1.0 Checklist
|
|
10
10
|
|
|
11
11
|
- [ ] Real life test
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
12
|
+
- [x] Might be useful to build this in the hivecom project
|
|
13
|
+
- [x] Build an example page with 100% of the components
|
|
14
|
+
- [x] Run accessibility tools on it
|
|
15
|
+
- [x] Run color contrast test
|
|
16
16
|
- [ ] Make sure it works on mobile down to 340px
|
|
17
17
|
- [ ] Components
|
|
18
18
|
- [ ] Scale down Typography
|
|
19
|
-
- [
|
|
20
|
-
- [x] Base sidebar
|
|
21
|
-
- [x] Sidebar header slot
|
|
22
|
-
- [x] Sidebar footer slot
|
|
23
|
-
- [ ] Option to hide (animated)
|
|
24
|
-
- [x] Option to render icons only / reduced size
|
|
25
|
-
- [ ] Controlled from outside (v-model?, method?)
|
|
26
|
-
- [x] Option to have sidebar hover over content, if it's closed and user moves
|
|
27
|
-
cursor all the way to the left
|
|
19
|
+
- [x] Sidebar
|
|
28
20
|
|
|
29
21
|
---
|
|
30
22
|
|
|
@@ -35,6 +27,7 @@
|
|
|
35
27
|
- [ ] Code highlighting
|
|
36
28
|
- [ ] Copy code
|
|
37
29
|
- [ ] Type, padding, etc
|
|
30
|
+
- [ ] Use this https://shiki.style/guide/install
|
|
38
31
|
- [ ] Command dropdown
|
|
39
32
|
- [ ] Documentation
|
|
40
33
|
- [ ] Design my own documentation site (GENERIC?!)
|
|
@@ -5,13 +5,19 @@ interface Props {
|
|
|
5
5
|
*/
|
|
6
6
|
icon?: string;
|
|
7
7
|
/**
|
|
8
|
-
* Setting a title and description will use slightly different styling other
|
|
8
|
+
* Setting a title and description will use slightly different styling other
|
|
9
|
+
* than slots.
|
|
9
10
|
*/
|
|
10
11
|
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Use strong color
|
|
14
|
+
*/
|
|
15
|
+
filled?: boolean;
|
|
11
16
|
description?: string;
|
|
12
17
|
}
|
|
13
18
|
declare function __VLS_template(): {
|
|
14
19
|
slots: {
|
|
20
|
+
default?(_: {}): any;
|
|
15
21
|
default?(_: {}): any;
|
|
16
22
|
end?(_: {}): any;
|
|
17
23
|
};
|
|
@@ -6,5 +6,19 @@ interface Props {
|
|
|
6
6
|
icon?: string;
|
|
7
7
|
alt?: string;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
10
19
|
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { Sizes } from '../../shared/types';
|
|
2
|
-
export type Variants = '
|
|
2
|
+
export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
|
|
3
3
|
interface Props {
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
size?: Sizes;
|
|
5
6
|
expand?: boolean;
|
|
6
7
|
square?: boolean;
|
|
7
|
-
|
|
8
|
+
icon?: string;
|
|
9
|
+
variant?: Variants;
|
|
10
|
+
outline?: boolean;
|
|
8
11
|
disabled?: boolean;
|
|
9
|
-
size?: Sizes;
|
|
10
|
-
/**
|
|
11
|
-
* Sets the hover styling property
|
|
12
|
-
*/
|
|
13
|
-
active?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* No styling applied to the button unless hovered
|
|
16
|
-
*/
|
|
17
12
|
plain?: boolean;
|
|
18
|
-
variant?: Variants;
|
|
19
|
-
/**
|
|
20
|
-
* The children will be set to an icon and the icon will become a square
|
|
21
|
-
*/
|
|
22
|
-
icon?: string;
|
|
23
13
|
}
|
|
24
14
|
declare function __VLS_template(): {
|
|
25
15
|
slots: {
|
|
@@ -12,11 +12,11 @@ declare const __VLS_component: import('vue').DefineComponent<VueDatePickerProps
|
|
|
12
12
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueDatePickerProps & {
|
|
13
13
|
expand?: boolean;
|
|
14
14
|
}> & Readonly<{}>, {
|
|
15
|
-
dark: boolean;
|
|
16
15
|
expand: boolean;
|
|
17
16
|
format: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
18
17
|
autoApply: boolean;
|
|
19
18
|
autoPosition: boolean | "top" | "bottom";
|
|
19
|
+
monthNameFormat: "long" | "short";
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
22
|
export default _default;
|
|
@@ -12,6 +12,10 @@ export interface Props {
|
|
|
12
12
|
* Sets the width of the dropdown to the width of its anchor
|
|
13
13
|
*/
|
|
14
14
|
expand?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Set he max height of the dropdown element before it starts scrolling
|
|
17
|
+
*/
|
|
18
|
+
maxHeight?: number | string;
|
|
15
19
|
}
|
|
16
20
|
declare function open(): void;
|
|
17
21
|
declare function close(): void;
|
|
@@ -40,6 +44,7 @@ declare function __VLS_template(): {
|
|
|
40
44
|
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
41
45
|
readonly placement?: Placement | undefined;
|
|
42
46
|
readonly offset?: number | undefined;
|
|
47
|
+
readonly onClickOutside?: (() => any) | undefined;
|
|
43
48
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
44
49
|
$attrs: {
|
|
45
50
|
[x: string]: unknown;
|
|
@@ -55,9 +60,13 @@ declare function __VLS_template(): {
|
|
|
55
60
|
$root: import('vue').ComponentPublicInstance | null;
|
|
56
61
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
57
62
|
$host: Element | null;
|
|
58
|
-
$emit: (event:
|
|
63
|
+
$emit: (event: "clickOutside") => void;
|
|
59
64
|
$el: any;
|
|
60
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
65
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
66
|
+
onClickOutside?: (() => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
|
+
clickOutside: () => any;
|
|
69
|
+
}, string, {
|
|
61
70
|
offset: number;
|
|
62
71
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
63
72
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -81,7 +90,9 @@ declare function __VLS_template(): {
|
|
|
81
90
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
82
91
|
} & Readonly<{
|
|
83
92
|
offset: number;
|
|
84
|
-
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
93
|
+
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
94
|
+
onClickOutside?: (() => any) | undefined;
|
|
95
|
+
}>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
85
96
|
$slots: {
|
|
86
97
|
default?(_: {}): any;
|
|
87
98
|
};
|
|
@@ -95,7 +106,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
95
106
|
close: typeof close;
|
|
96
107
|
toggle: typeof toggle;
|
|
97
108
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
98
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
109
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
110
|
+
close: () => any;
|
|
111
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
112
|
+
onClose?: (() => any) | undefined;
|
|
113
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
99
114
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
115
|
export default _default;
|
|
101
116
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -7,7 +7,11 @@ declare function __VLS_template(): {
|
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
13
|
+
sticky?: boolean;
|
|
14
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
16
|
export default _default;
|
|
13
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -28,7 +28,9 @@ declare function __VLS_template(): {
|
|
|
28
28
|
attrs: Partial<{}>;
|
|
29
29
|
};
|
|
30
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
-
declare const __VLS_component: import('vue').DefineComponent<FlexProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlexProps> & Readonly<{}>, {
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<FlexProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlexProps> & Readonly<{}>, {
|
|
32
|
+
gap: Space | number;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
35
|
export default _default;
|
|
34
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -7,7 +7,10 @@ interface Props {
|
|
|
7
7
|
gap?: Space | number;
|
|
8
8
|
rows?: number | string;
|
|
9
9
|
columns?: number | string;
|
|
10
|
-
|
|
10
|
+
alignCenter?: boolean;
|
|
11
|
+
alignStart?: boolean;
|
|
12
|
+
alignEnd?: boolean;
|
|
13
|
+
alignBaseline?: boolean;
|
|
11
14
|
}
|
|
12
15
|
declare function __VLS_template(): {
|
|
13
16
|
slots: {
|
|
@@ -17,7 +20,9 @@ declare function __VLS_template(): {
|
|
|
17
20
|
attrs: Partial<{}>;
|
|
18
21
|
};
|
|
19
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
24
|
+
gap: Space | number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
27
|
export default _default;
|
|
23
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -12,7 +12,7 @@ declare function __VLS_template(): {
|
|
|
12
12
|
$data: {};
|
|
13
13
|
$props: {
|
|
14
14
|
readonly modelValue?: (string | number) | undefined;
|
|
15
|
-
readonly type?: import('vue').
|
|
15
|
+
readonly type?: import('./Input.vue').InputType | undefined;
|
|
16
16
|
readonly label?: string | undefined;
|
|
17
17
|
readonly hint?: string | undefined;
|
|
18
18
|
readonly limit?: (number | string) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
export type InputType = 'text' | 'password' | 'color' | 'date' | 'email' | 'number' | 'range' | 'search' | 'tel' | 'time' | 'url' | 'file';
|
|
2
2
|
export interface InputProps {
|
|
3
|
-
type?:
|
|
3
|
+
type?: InputType;
|
|
4
4
|
label?: string;
|
|
5
5
|
hint?: string;
|
|
6
6
|
limit?: number | string;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as Kbd } from './Kbd.vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
slots: Readonly<{
|
|
4
|
-
default: () => Array<
|
|
5
|
-
props: {
|
|
6
|
-
keys: string;
|
|
7
|
-
};
|
|
8
|
-
}>;
|
|
4
|
+
default: () => Array<typeof Kbd>;
|
|
9
5
|
}> & {
|
|
10
|
-
default: () => Array<
|
|
11
|
-
props: {
|
|
12
|
-
keys: string;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
6
|
+
default: () => Array<typeof Kbd>;
|
|
15
7
|
};
|
|
16
8
|
refs: {};
|
|
17
9
|
attrs: Partial<{}>;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
29
29
|
onConfirm?: (() => any) | undefined;
|
|
30
30
|
onCancel?: (() => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
|
-
size: import('../../shared/types').Sizes | "full";
|
|
32
|
+
size: import('../../shared/types').Sizes | "full" | "screen";
|
|
33
33
|
cancelText: string;
|
|
34
34
|
canDismiss: boolean;
|
|
35
35
|
confirmText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Sizes } from '../../shared/types';
|
|
2
2
|
import { Props as CardProps } from '../Card/Card.vue';
|
|
3
3
|
export interface ModalProps {
|
|
4
|
-
size?: Sizes | 'full';
|
|
4
|
+
size?: Sizes | 'full' | 'screen';
|
|
5
5
|
/**
|
|
6
6
|
* Modal wraps a floating card. You can optinally pass in any props you'd pass
|
|
7
7
|
* into the <Card /> component.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Variants } from '../Button/Button.vue';
|
|
1
2
|
import { Pagination } from './pagination';
|
|
2
3
|
interface Props {
|
|
3
4
|
numbers?: boolean;
|
|
4
5
|
pagination: Pagination;
|
|
5
6
|
prevNext?: boolean;
|
|
6
7
|
firstLast?: boolean;
|
|
8
|
+
variant?: Variants;
|
|
7
9
|
}
|
|
8
10
|
declare function setNext(): void;
|
|
9
11
|
declare function setPrev(): void;
|
|
@@ -29,6 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
29
31
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
30
32
|
onChange?: ((page: number) => any) | undefined;
|
|
31
33
|
}>, {
|
|
34
|
+
variant: Variants;
|
|
32
35
|
numbers: boolean;
|
|
33
36
|
prevNext: boolean;
|
|
34
37
|
firstLast: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Placement, PopoutMaybeElement } from '../../shared/types';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Reference to the HTML element the Popout is anchored to
|
|
5
|
+
*/
|
|
3
6
|
anchor: PopoutMaybeElement<HTMLElement>;
|
|
4
7
|
/**
|
|
5
8
|
* Override the autoPlacement option
|
|
@@ -20,7 +23,11 @@ declare function __VLS_template(): {
|
|
|
20
23
|
attrs: Partial<{}>;
|
|
21
24
|
};
|
|
22
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
clickOutside: () => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
29
|
+
onClickOutside?: (() => any) | undefined;
|
|
30
|
+
}>, {
|
|
24
31
|
offset: number;
|
|
25
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
33
|
popout: HTMLDivElement;
|
|
@@ -22,8 +22,10 @@ type __VLS_PublicProps = {
|
|
|
22
22
|
modelValue?: number;
|
|
23
23
|
} & typeof __VLS_typeProps;
|
|
24
24
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
done: () => any;
|
|
25
26
|
"update:modelValue": (modelValue: number) => any;
|
|
26
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
onDone?: (() => any) | undefined;
|
|
27
29
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
28
30
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
31
|
progress: HTMLDivElement;
|
|
@@ -19,6 +19,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
19
19
|
search?: boolean;
|
|
20
20
|
maxActiveOptions?: number;
|
|
21
21
|
showClear?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
errors?: string[];
|
|
22
24
|
})> & import('vue').PublicProps;
|
|
23
25
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
24
26
|
attrs: any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Cell } from './Cell.vue';
|
|
2
|
+
import { default as Head } from './Head.vue';
|
|
3
|
+
import { default as Root } from './Root.vue';
|
|
4
|
+
import { default as SelectAll } from './SelectAll.vue';
|
|
5
|
+
import { default as SelectRow } from './SelectRow.vue';
|
|
6
|
+
export { Cell, Head, Root, SelectAll, SelectRow };
|
|
@@ -22,7 +22,7 @@ interface TableOptionsInput {
|
|
|
22
22
|
};
|
|
23
23
|
select?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export declare function defineTable<const Dataset extends
|
|
25
|
+
export declare function defineTable<const Dataset extends any[]>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
|
|
26
26
|
setSort: (key: keyof Dataset[number], type?: "asc" | "desc" | "toggle") => void;
|
|
27
27
|
clearSort: () => void;
|
|
28
28
|
search: Ref<string | undefined, string | undefined>;
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
export interface TabProps {
|
|
2
2
|
disabled?: boolean;
|
|
3
|
-
|
|
4
|
-
label: string;
|
|
3
|
+
label?: string;
|
|
5
4
|
icon?: string;
|
|
6
5
|
}
|
|
7
|
-
declare
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
16
|
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -14,10 +14,14 @@ declare function __VLS_template(): {
|
|
|
14
14
|
default: () => Array<VNode & {
|
|
15
15
|
props: TabProps;
|
|
16
16
|
}>;
|
|
17
|
+
start: unknown;
|
|
18
|
+
end: unknown;
|
|
17
19
|
}> & {
|
|
18
20
|
default: () => Array<VNode & {
|
|
19
21
|
props: TabProps;
|
|
20
22
|
}>;
|
|
23
|
+
start: unknown;
|
|
24
|
+
end: unknown;
|
|
21
25
|
};
|
|
22
26
|
refs: {
|
|
23
27
|
tabs: HTMLDivElement;
|