@dolanske/vui 1.11.12 → 1.12.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 +673 -673
- package/README.md +12 -12
- package/dist/src/components/Alert/Alert.vue.d.ts +6 -0
- package/dist/src/components/Avatar/Avatar.vue.d.ts +1 -0
- package/dist/src/components/Badge/Badge.vue.d.ts +3 -0
- package/dist/src/components/Badge/BadgeGroup.vue.d.ts +21 -0
- package/dist/src/components/Indicator/Indicator.vue.d.ts +25 -0
- package/dist/src/components/Popout/PopoutHover.vue.d.ts +171 -0
- package/dist/src/components/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/shared/viewTransition.d.ts +3 -2
- package/dist/vui.css +1 -1
- package/dist/vui.js +2047 -1892
- package/package.json +78 -78
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# VUI
|
|
2
|
-
|
|
3
|
-
1. `npm i @dolanske/vui`
|
|
4
|
-
2. In your main app entry,`import "@dolanske/vui/style` to import the global CSS
|
|
5
|
-
3. Override default style [tokens](https://dolanske.github.io/vui/docs/tokens) to fit your style
|
|
6
|
-
4. Build your thing bro
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Documentation
|
|
11
|
-
|
|
12
|
-
[Visit the docs here <](https://dolanske.github.io/vui/)
|
|
1
|
+
# VUI
|
|
2
|
+
|
|
3
|
+
1. `npm i @dolanske/vui`
|
|
4
|
+
2. In your main app entry,`import "@dolanske/vui/style` to import the global CSS
|
|
5
|
+
3. Override default style [tokens](https://dolanske.github.io/vui/docs/tokens) to fit your style
|
|
6
|
+
4. Build your thing bro
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Documentation
|
|
11
|
+
|
|
12
|
+
[Visit the docs here <](https://dolanske.github.io/vui/)
|
|
@@ -21,6 +21,12 @@ interface Props {
|
|
|
21
21
|
* Vertical alignment of the icon
|
|
22
22
|
*/
|
|
23
23
|
iconAlign?: 'start' | 'center' | 'end';
|
|
24
|
+
/**
|
|
25
|
+
* Hides the icon completely. If you hide the icon, make sure you're using
|
|
26
|
+
* `filled` variant, otherwise the alert will be missing the relevant
|
|
27
|
+
* color-coding.
|
|
28
|
+
*/
|
|
29
|
+
hideIcon?: boolean;
|
|
24
30
|
}
|
|
25
31
|
declare function __VLS_template(): {
|
|
26
32
|
attrs: Partial<{}>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Sizes } from '../../shared/types';
|
|
1
2
|
interface Props {
|
|
2
3
|
variant?: 'neutral' | 'danger' | 'warning' | 'success' | 'info' | 'accent';
|
|
3
4
|
outline?: boolean;
|
|
4
5
|
filled?: boolean;
|
|
6
|
+
size?: Sizes;
|
|
7
|
+
circle?: boolean;
|
|
5
8
|
}
|
|
6
9
|
declare function __VLS_template(): {
|
|
7
10
|
attrs: Partial<{}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Spaces } from '../../shared/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
gap?: Spaces | number;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
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, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Sizes } from '../../shared/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
variant?: 'alert' | 'online' | 'offline' | 'away';
|
|
4
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
5
|
+
size?: Sizes;
|
|
6
|
+
outline?: boolean;
|
|
7
|
+
ripple?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
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, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Props } from './Popout.vue';
|
|
2
|
+
type PopoutHoverProps = Omit<Props, 'anchor' | 'visible'> & {
|
|
3
|
+
/**
|
|
4
|
+
* If set to true, Popout will not be rendered on hover. Trigger stays
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
trigger?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
anchorRef: HTMLDivElement;
|
|
16
|
+
popoutRef: ({
|
|
17
|
+
$: import('vue').ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: {
|
|
20
|
+
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
21
|
+
readonly placement?: import('../../shared/types').Placement | undefined;
|
|
22
|
+
readonly offset?: number | undefined;
|
|
23
|
+
readonly visible: boolean;
|
|
24
|
+
readonly transitionName?: string | "none" | undefined;
|
|
25
|
+
readonly teleport?: boolean | undefined;
|
|
26
|
+
readonly enterDelay?: number | undefined;
|
|
27
|
+
readonly leaveDelay?: number | undefined;
|
|
28
|
+
readonly onClickOutside?: (() => any) | undefined;
|
|
29
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
30
|
+
$attrs: import('vue').Attrs;
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
} & {
|
|
34
|
+
popout: HTMLDivElement;
|
|
35
|
+
};
|
|
36
|
+
$slots: Readonly<{
|
|
37
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
40
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
41
|
+
$host: Element | null;
|
|
42
|
+
$emit: (event: "clickOutside") => void;
|
|
43
|
+
$el: any;
|
|
44
|
+
$options: import('vue').ComponentOptionsBase<Readonly<Props> & Readonly<{
|
|
45
|
+
onClickOutside?: (() => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
el: HTMLDivElement | null;
|
|
48
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
49
|
+
clickOutside: () => any;
|
|
50
|
+
}, string, {
|
|
51
|
+
teleport: boolean;
|
|
52
|
+
offset: number;
|
|
53
|
+
placement: import('../../shared/types').Placement;
|
|
54
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
55
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
56
|
+
created?: (() => void) | (() => void)[];
|
|
57
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
58
|
+
mounted?: (() => void) | (() => void)[];
|
|
59
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
60
|
+
updated?: (() => void) | (() => void)[];
|
|
61
|
+
activated?: (() => void) | (() => void)[];
|
|
62
|
+
deactivated?: (() => void) | (() => void)[];
|
|
63
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
64
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
65
|
+
destroyed?: (() => void) | (() => void)[];
|
|
66
|
+
unmounted?: (() => void) | (() => void)[];
|
|
67
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
68
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
69
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
70
|
+
};
|
|
71
|
+
$forceUpdate: () => void;
|
|
72
|
+
$nextTick: typeof import('vue').nextTick;
|
|
73
|
+
$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;
|
|
74
|
+
} & Readonly<{
|
|
75
|
+
teleport: boolean;
|
|
76
|
+
offset: number;
|
|
77
|
+
placement: import('../../shared/types').Placement;
|
|
78
|
+
}> & Omit<Readonly<Props> & Readonly<{
|
|
79
|
+
onClickOutside?: (() => any) | undefined;
|
|
80
|
+
}>, "el" | ("teleport" | "offset" | "placement")> & {
|
|
81
|
+
el: HTMLDivElement | null;
|
|
82
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
83
|
+
$slots: {
|
|
84
|
+
default?(_: {}): any;
|
|
85
|
+
};
|
|
86
|
+
}) | null;
|
|
87
|
+
};
|
|
88
|
+
rootEl: any;
|
|
89
|
+
};
|
|
90
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
91
|
+
declare const __VLS_component: import('vue').DefineComponent<PopoutHoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PopoutHoverProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
92
|
+
anchorRef: HTMLDivElement;
|
|
93
|
+
popoutRef: ({
|
|
94
|
+
$: import('vue').ComponentInternalInstance;
|
|
95
|
+
$data: {};
|
|
96
|
+
$props: {
|
|
97
|
+
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
98
|
+
readonly placement?: import('../../shared/types').Placement | undefined;
|
|
99
|
+
readonly offset?: number | undefined;
|
|
100
|
+
readonly visible: boolean;
|
|
101
|
+
readonly transitionName?: string | "none" | undefined;
|
|
102
|
+
readonly teleport?: boolean | undefined;
|
|
103
|
+
readonly enterDelay?: number | undefined;
|
|
104
|
+
readonly leaveDelay?: number | undefined;
|
|
105
|
+
readonly onClickOutside?: (() => any) | undefined;
|
|
106
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
107
|
+
$attrs: import('vue').Attrs;
|
|
108
|
+
$refs: {
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
} & {
|
|
111
|
+
popout: HTMLDivElement;
|
|
112
|
+
};
|
|
113
|
+
$slots: Readonly<{
|
|
114
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
117
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
118
|
+
$host: Element | null;
|
|
119
|
+
$emit: (event: "clickOutside") => void;
|
|
120
|
+
$el: any;
|
|
121
|
+
$options: import('vue').ComponentOptionsBase<Readonly<Props> & Readonly<{
|
|
122
|
+
onClickOutside?: (() => any) | undefined;
|
|
123
|
+
}>, {
|
|
124
|
+
el: HTMLDivElement | null;
|
|
125
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
+
clickOutside: () => any;
|
|
127
|
+
}, string, {
|
|
128
|
+
teleport: boolean;
|
|
129
|
+
offset: number;
|
|
130
|
+
placement: import('../../shared/types').Placement;
|
|
131
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
132
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
133
|
+
created?: (() => void) | (() => void)[];
|
|
134
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
135
|
+
mounted?: (() => void) | (() => void)[];
|
|
136
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
137
|
+
updated?: (() => void) | (() => void)[];
|
|
138
|
+
activated?: (() => void) | (() => void)[];
|
|
139
|
+
deactivated?: (() => void) | (() => void)[];
|
|
140
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
141
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
142
|
+
destroyed?: (() => void) | (() => void)[];
|
|
143
|
+
unmounted?: (() => void) | (() => void)[];
|
|
144
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
145
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
146
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
147
|
+
};
|
|
148
|
+
$forceUpdate: () => void;
|
|
149
|
+
$nextTick: typeof import('vue').nextTick;
|
|
150
|
+
$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;
|
|
151
|
+
} & Readonly<{
|
|
152
|
+
teleport: boolean;
|
|
153
|
+
offset: number;
|
|
154
|
+
placement: import('../../shared/types').Placement;
|
|
155
|
+
}> & Omit<Readonly<Props> & Readonly<{
|
|
156
|
+
onClickOutside?: (() => any) | undefined;
|
|
157
|
+
}>, "el" | ("teleport" | "offset" | "placement")> & {
|
|
158
|
+
el: HTMLDivElement | null;
|
|
159
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
160
|
+
$slots: {
|
|
161
|
+
default?(_: {}): any;
|
|
162
|
+
};
|
|
163
|
+
}) | null;
|
|
164
|
+
}, any>;
|
|
165
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
166
|
+
export default _default;
|
|
167
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
168
|
+
new (): {
|
|
169
|
+
$slots: S;
|
|
170
|
+
};
|
|
171
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { default as Alert } from './components/Alert/Alert.vue';
|
|
|
6
6
|
import { default as Avatar } from './components/Avatar/Avatar.vue';
|
|
7
7
|
import { default as AvatarGroup } from './components/Avatar/AvatarGroup.vue';
|
|
8
8
|
import { default as Badge } from './components/Badge/Badge.vue';
|
|
9
|
+
import { default as BadgeGroup } from './components/Badge/BadgeGroup.vue';
|
|
9
10
|
import { default as BreadcrumbItem } from './components/Breadcrumbs/BreadcrumbItem.vue';
|
|
10
11
|
import { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.vue';
|
|
11
12
|
import { default as Button } from './components/Button/Button.vue';
|
|
@@ -22,6 +23,7 @@ import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue'
|
|
|
22
23
|
import { default as DropdownTitle } from './components/Dropdown/DropdownTitle.vue';
|
|
23
24
|
import { default as Flex } from './components/Flex/Flex.vue';
|
|
24
25
|
import { default as Grid } from './components/Grid/Grid.vue';
|
|
26
|
+
import { default as Indicator } from './components/Indicator/Indicator.vue';
|
|
25
27
|
import { default as Color } from './components/Input/Color.vue';
|
|
26
28
|
import { default as Counter } from './components/Input/Counter.vue';
|
|
27
29
|
import { default as Dropzone } from './components/Input/Dropzone.vue';
|
|
@@ -39,6 +41,7 @@ import { default as OTPItem } from './components/OTP/OTPItem.vue';
|
|
|
39
41
|
import { paginate } from './components/Pagination/pagination';
|
|
40
42
|
import { default as Pagination } from './components/Pagination/Pagination.vue';
|
|
41
43
|
import { default as Popout } from './components/Popout/Popout.vue';
|
|
44
|
+
import { default as PopoutHover } from './components/Popout/PopoutHover.vue';
|
|
42
45
|
import { default as Progress } from './components/Progress/Progress.vue';
|
|
43
46
|
import { default as Radio } from './components/Radio/Radio.vue';
|
|
44
47
|
import { default as RadioGroup } from './components/Radio/RadioGroup.vue';
|
|
@@ -60,4 +63,4 @@ import { searchString } from './shared/helpers';
|
|
|
60
63
|
import { setColorTheme, theme } from './shared/theme';
|
|
61
64
|
import { useViewTransition } from './shared/viewTransition';
|
|
62
65
|
import * as Table from './components/Table';
|
|
63
|
-
export { Accordion, AccordionGroup, Alert, Avatar, AvatarGroup, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Color, type Command, Commands, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Input, Kbd, KbdGroup, Marquee, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces
|
|
66
|
+
export { Accordion, AccordionGroup, Alert, Avatar, AvatarGroup, Backdrop, Badge, BadgeGroup, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Color, type Command, Commands, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Indicator, Input, Kbd, KbdGroup, Marquee, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, PopoutHover, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces, type SpaceSize, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, useBreakpoint, useViewTransition, vuiBreakpoints, };
|
|
@@ -13,8 +13,9 @@ interface ViewTransitionComposable {
|
|
|
13
13
|
* A generic composable for running View Transitions.
|
|
14
14
|
*
|
|
15
15
|
* In order to setup view transitions, we need to provide `transition-name` in
|
|
16
|
-
* CSS to the components we want to transition and then apply
|
|
17
|
-
* styles to them via the
|
|
16
|
+
* CSS to the components we want to transition and then apply old & new
|
|
17
|
+
* styles to them via the following selectors. At minimum, you should provide
|
|
18
|
+
* the animation-duration
|
|
18
19
|
*
|
|
19
20
|
* ```css
|
|
20
21
|
* ::view-transition-old(<transition-name>) {}
|