@dolanske/vui 1.11.6 → 1.11.7
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/dist/src/components/CopyClipboard/CopyClipboard.vue.d.ts +1 -1
- package/dist/src/components/Dropdown/Dropdown.vue.d.ts +6 -0
- package/dist/src/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/src/components/Popout/Popout.vue.d.ts +1 -1
- package/dist/src/components/Select/Select.vue.d.ts +13 -0
- package/dist/src/components/Sheet/Sheet.vue.d.ts +1 -1
- package/dist/src/components/Tabs/Tabs.vue.d.ts +6 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/shared/viewTransition.d.ts +25 -0
- package/dist/vui.css +1 -1
- package/dist/vui.js +2831 -2789
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ interface Props {
|
|
|
19
19
|
/**
|
|
20
20
|
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
21
21
|
*
|
|
22
|
-
* Setting the value to `none` will not apply any transition
|
|
22
|
+
* Setting the value to `none` will not apply any transition. This is useful when using the View Transitions API to prevent conflicts between the default animation and the view transition.
|
|
23
23
|
*/
|
|
24
24
|
transitionName?: string | 'none';
|
|
25
25
|
}
|
|
@@ -21,6 +21,12 @@ export interface Props {
|
|
|
21
21
|
* Disable mobile drawer behavior, always use the floating dropdown.
|
|
22
22
|
*/
|
|
23
23
|
noMobileDrawer?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
26
|
+
*
|
|
27
|
+
* Setting the value to `none` will not apply any transition. This is useful when using viewTransitions to prevent conflicts between default animation and the view transition
|
|
28
|
+
*/
|
|
29
|
+
transitionName?: string | 'none';
|
|
24
30
|
}
|
|
25
31
|
declare function open(): void;
|
|
26
32
|
declare function close(): void;
|
|
@@ -33,7 +33,7 @@ export interface ModalProps {
|
|
|
33
33
|
/**
|
|
34
34
|
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
35
35
|
*
|
|
36
|
-
* Setting the value to `none` will not apply any transition
|
|
36
|
+
* Setting the value to `none` will not apply any transition. This is useful when using the View Transitions API to prevent conflicts between the default animation and the view transition.
|
|
37
37
|
*/
|
|
38
38
|
transitionName?: string | 'none';
|
|
39
39
|
/**
|
|
@@ -19,7 +19,7 @@ export interface Props {
|
|
|
19
19
|
/**
|
|
20
20
|
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
21
21
|
*
|
|
22
|
-
* Setting the value to `none` will not apply any transition
|
|
22
|
+
* Setting the value to `none` will not apply any transition. This is useful when using viewTransitions to prevent conflicts between default animation and the view transition
|
|
23
23
|
*/
|
|
24
24
|
transitionName?: string | 'none';
|
|
25
25
|
/**
|
|
@@ -23,7 +23,20 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
errors?: string[];
|
|
25
25
|
size?: Sizes;
|
|
26
|
+
/**
|
|
27
|
+
* Set he max height of the dropdown element before it starts scrolling
|
|
28
|
+
*/
|
|
29
|
+
maxHeight?: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Disable mobile drawer behavior, always use the floating dropdown.
|
|
32
|
+
*/
|
|
26
33
|
noMobileDrawer?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
36
|
+
*
|
|
37
|
+
* Setting the value to `none` will not apply any transition. This is useful when using viewTransitions to prevent conflicts between default animation and the view transition
|
|
38
|
+
*/
|
|
39
|
+
transitionName?: string | "none";
|
|
27
40
|
}) & Partial<{}>> & import('vue').PublicProps;
|
|
28
41
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
29
42
|
attrs: any;
|
|
@@ -28,7 +28,7 @@ interface Props {
|
|
|
28
28
|
/**
|
|
29
29
|
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
30
30
|
*
|
|
31
|
-
* Setting the value to `none` will not apply any transition
|
|
31
|
+
* Setting the value to `none` will not apply any transition. This is useful when using the View Transitions API to prevent conflicts between the default animation and the view transition.
|
|
32
32
|
*/
|
|
33
33
|
transitionName?: string | 'none';
|
|
34
34
|
}
|
|
@@ -2,6 +2,12 @@ interface Props {
|
|
|
2
2
|
variant?: 'default' | 'filled';
|
|
3
3
|
expand?: boolean;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
|
|
7
|
+
*
|
|
8
|
+
* Setting the value to `none` will not apply any transition. This is useful when using the View Transitions API to prevent conflicts between the default animation and the view transition.
|
|
9
|
+
*/
|
|
10
|
+
transitionName?: string | 'none';
|
|
5
11
|
}
|
|
6
12
|
type __VLS_Props = Props;
|
|
7
13
|
type __VLS_PublicProps = {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -53,8 +53,9 @@ import { pushToast, removeToast } from './components/Toast/toast';
|
|
|
53
53
|
import { default as Toasts } from './components/Toast/Toasts.vue';
|
|
54
54
|
import { default as Tooltip } from './components/Tooltip/Tooltip.vue';
|
|
55
55
|
import { default as Backdrop } from './internal/Backdrop/Backdrop.vue';
|
|
56
|
-
import { vuiBreakpoints } from './shared/breakpoints';
|
|
56
|
+
import { useBreakpoint, vuiBreakpoints } from './shared/breakpoints';
|
|
57
57
|
import { searchString } from './shared/helpers';
|
|
58
58
|
import { setColorTheme, theme } from './shared/theme';
|
|
59
|
+
import { useViewTransition } from './shared/viewTransition';
|
|
59
60
|
import * as Table from './components/Table';
|
|
60
|
-
export { Accordion, AccordionGroup, Alert, Avatar, 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, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces as Space, type SpaceSize, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, vuiBreakpoints, };
|
|
61
|
+
export { Accordion, AccordionGroup, Alert, Avatar, 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, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces as Space, type SpaceSize, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, useBreakpoint, useViewTransition, vuiBreakpoints, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface ViewTransitionComposable {
|
|
3
|
+
/**
|
|
4
|
+
* Indicates if transition is currently in progress
|
|
5
|
+
*/
|
|
6
|
+
isRunning: Ref<boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Starts a view transition. The provided `update` function will be called during the transition.
|
|
9
|
+
*/
|
|
10
|
+
startTransition: (update: () => void | Promise<void>) => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A generic composable for running View Transitions.
|
|
14
|
+
*
|
|
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 before & after
|
|
17
|
+
* styles to them via the selector
|
|
18
|
+
*
|
|
19
|
+
* ```css
|
|
20
|
+
* ::view-transition-old(<transition-name>) {}
|
|
21
|
+
* ::view-transition-new(<transition-name>) {}
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function useViewTransition(): ViewTransitionComposable;
|
|
25
|
+
export {};
|