@m3ui-vue/m3ui-vue 0.9.3 → 1.0.1
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 +24 -29
- package/dist/API.md +179 -19
- package/dist/{MTextField-DKtgPymd.js → MTextField-BPbFeI9M.js} +305 -177
- package/dist/MTextField-BPbFeI9M.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAppBarWithSearch.vue.d.ts +70 -0
- package/dist/components/MBottomAppBar.vue.d.ts +37 -0
- package/dist/components/MBottomSheetScaffold.vue.d.ts +40 -0
- package/dist/components/MChatBubble.vue.d.ts +1 -1
- package/dist/components/MChip.vue.d.ts +19 -2
- package/dist/components/MContainer.vue.d.ts +1 -1
- package/dist/components/MDataTable.vue.d.ts +1 -1
- package/dist/components/MDialog.vue.d.ts +1 -1
- package/dist/components/MFab.vue.d.ts +13 -4
- package/dist/components/MListItem.vue.d.ts +2 -2
- package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
- package/dist/components/MNavigationDrawer.vue.d.ts +9 -6
- package/dist/components/MNavigationRail.vue.d.ts +6 -0
- package/dist/components/MSearchBar.vue.d.ts +5 -3
- package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
- package/dist/components/MTable.vue.d.ts +1 -1
- package/dist/components/MTopAppBar.vue.d.ts +33 -2
- package/dist/components/MTransition.vue.d.ts +0 -9
- package/dist/composables/_searchAppBar.d.ts +6 -0
- package/dist/composables/_springAnimation.d.ts +17 -0
- package/dist/composables/_themeTransition.d.ts +2 -0
- package/dist/composables/_useSpring.d.ts +3 -5
- package/dist/composables/motion.d.ts +101 -0
- package/dist/composables/useColorPalette.d.ts +10 -0
- package/dist/composables/useLocale.d.ts +3 -0
- package/dist/index.d.ts +8 -1
- package/dist/locales/index.js +21 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +7345 -6317
- package/dist/m3ui.js.map +1 -1
- package/dist/plugin.d.ts +7 -0
- package/dist/rich-text-editor.js +2 -2
- package/dist/styles/palettes-contrast.css +7764 -0
- package/dist/styles/theme.css +46 -2
- package/dist/styles.css +1 -1
- package/dist/{useLocale-Cn9MVIdw.js → useLocale-CuvWRZ1h.js} +4 -1
- package/dist/useLocale-CuvWRZ1h.js.map +1 -0
- package/package.json +3 -1
- package/src/__tests__/MAppBarWithSearch.test.ts +108 -0
- package/src/__tests__/MBottomAppBar.test.ts +71 -0
- package/src/__tests__/MBottomSheetScaffold.test.ts +122 -0
- package/src/__tests__/MChip.test.ts +63 -0
- package/src/__tests__/MFab.test.ts +36 -0
- package/src/__tests__/MNavigationDrawer.test.ts +185 -0
- package/src/__tests__/MNavigationRail.test.ts +93 -0
- package/src/__tests__/MPullToRefresh.test.ts +18 -1
- package/src/__tests__/MTopAppBar.test.ts +99 -0
- package/src/__tests__/MTransition.test.ts +12 -0
- package/src/__tests__/contrast.test.ts +64 -0
- package/src/__tests__/dynamicColor.test.ts +17 -0
- package/src/__tests__/motion.test.ts +37 -0
- package/src/__tests__/sheets.test.ts +19 -15
- package/src/__tests__/themeTransition.test.ts +119 -0
- package/src/components/MAppBarWithSearch.vue +236 -0
- package/src/components/MBottomAppBar.vue +181 -0
- package/src/components/MBottomSheetScaffold.vue +317 -0
- package/src/components/MBreadcrumbs.vue +1 -1
- package/src/components/MChip.vue +137 -5
- package/src/components/MContextMenu.vue +34 -33
- package/src/components/MFab.vue +73 -12
- package/src/components/MMenu.vue +34 -33
- package/src/components/MNavigationDrawer.vue +298 -38
- package/src/components/MNavigationRail.vue +189 -8
- package/src/components/MPullToRefresh.vue +18 -0
- package/src/components/MSearchBar.vue +29 -12
- package/src/components/MTopAppBar.vue +252 -28
- package/src/components/MTransition.vue +36 -41
- package/src/composables/_searchAppBar.ts +9 -0
- package/src/composables/_springAnimation.ts +74 -0
- package/src/composables/_themeColor.ts +11 -4
- package/src/composables/_themeTransition.ts +71 -0
- package/src/composables/_useSheetMotion.ts +101 -88
- package/src/composables/_useSpring.ts +11 -21
- package/src/composables/motion.ts +73 -0
- package/src/composables/useColorPalette.ts +103 -20
- package/src/composables/useLocale.ts +6 -0
- package/src/composables/useTheme.ts +4 -12
- package/src/index.ts +8 -1
- package/src/locales/de.ts +3 -0
- package/src/locales/es.ts +3 -0
- package/src/locales/fr.ts +3 -0
- package/src/locales/ja.ts +3 -0
- package/src/locales/ko.ts +3 -0
- package/src/locales/pt.ts +3 -0
- package/src/locales/zh.ts +3 -0
- package/src/plugin.ts +9 -1
- package/src/styles/palettes-contrast.css +7764 -0
- package/src/styles/theme.css +46 -2
- package/dist/MTextField-DKtgPymd.js.map +0 -1
- package/dist/useLocale-Cn9MVIdw.js.map +0 -1
package/dist/code-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
1
|
+
import { i as e } from "./useLocale-CuvWRZ1h.js";
|
|
2
2
|
import { t } from "./MIcon-DLOkQduI.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Search query (v-model) */
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** Whether the search is expanded (v-model:expanded) */
|
|
5
|
+
expanded?: boolean;
|
|
6
|
+
/** Defaults to the locale's "Search..." */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** How the search expands: full screen (default), full screen keeping the pill input, or a docked panel */
|
|
9
|
+
searchVariant?: 'fullscreen' | 'fullscreen-contained' | 'docked';
|
|
10
|
+
/** Icon shown in the collapsed search bar */
|
|
11
|
+
leadingIcon?: string;
|
|
12
|
+
/** Shows a spinner in the expanded header instead of the clear button */
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
/** Shows a clear (×) button once there is a query */
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
/** Leading icon outside the search bar (e.g. menu, arrow_back) */
|
|
17
|
+
navigationIcon?: string;
|
|
18
|
+
/** Accessible label for the navigation icon button; defaults to the locale's "Menu" */
|
|
19
|
+
navigationLabel?: string;
|
|
20
|
+
/** No app bar container, only the search bar (Compose's TopSearchBar) */
|
|
21
|
+
transparent?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* How the bar reacts to `scrollTarget` scrolling: `pinned` stays and changes color once content is under
|
|
24
|
+
* it; `enter-always` also hides while scrolling down and comes back on any scroll up. With `enter-always`
|
|
25
|
+
* the bar is sticky over the content: put it at the top of the scrolling element (or of the page)
|
|
26
|
+
*/
|
|
27
|
+
scrollBehavior?: 'pinned' | 'enter-always';
|
|
28
|
+
/** What `scrollBehavior` follows: an element or a CSS selector for it. Defaults to the window */
|
|
29
|
+
scrollTarget?: HTMLElement | string | null;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_1: {}, __VLS_21: {}, __VLS_24: {}, __VLS_26: {}, __VLS_28: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
navigation?: (props: typeof __VLS_1) => any;
|
|
34
|
+
} & {
|
|
35
|
+
leading?: (props: typeof __VLS_21) => any;
|
|
36
|
+
} & {
|
|
37
|
+
trailing?: (props: typeof __VLS_24) => any;
|
|
38
|
+
} & {
|
|
39
|
+
default?: (props: typeof __VLS_26) => any;
|
|
40
|
+
} & {
|
|
41
|
+
actions?: (props: typeof __VLS_28) => any;
|
|
42
|
+
};
|
|
43
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
search: (args_0: string) => any;
|
|
45
|
+
"update:modelValue": (args_0: string) => any;
|
|
46
|
+
"update:expanded": (args_0: boolean) => any;
|
|
47
|
+
navigation: () => any;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
49
|
+
onSearch?: ((args_0: string) => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
51
|
+
"onUpdate:expanded"?: ((args_0: boolean) => any) | undefined;
|
|
52
|
+
onNavigation?: (() => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
transparent: boolean;
|
|
55
|
+
modelValue: string;
|
|
56
|
+
loading: boolean;
|
|
57
|
+
expanded: boolean;
|
|
58
|
+
leadingIcon: string;
|
|
59
|
+
clearable: boolean;
|
|
60
|
+
searchVariant: "fullscreen" | "fullscreen-contained" | "docked";
|
|
61
|
+
scrollTarget: HTMLElement | string | null;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** M3 Expressive's FlexibleBottomAppBar: 64px instead of 80px, 16px side padding, no FAB slot */
|
|
3
|
+
flexible?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* How the actions are spread: `start` (the standard bar's), `between` (the flexible bar's default),
|
|
6
|
+
* `around`, `evenly`, or `fixed` (centered, 32px apart: FlexibleFixedHorizontalArrangement)
|
|
7
|
+
*/
|
|
8
|
+
arrangement?: 'start' | 'between' | 'around' | 'evenly' | 'fixed';
|
|
9
|
+
/** Container color: surface-container, or a color's container for a vibrant bar */
|
|
10
|
+
color?: 'surface' | 'primary' | 'secondary' | 'tertiary';
|
|
11
|
+
/** `pinned` stays put; `exit-always` collapses while the content scrolls down and returns when it scrolls up */
|
|
12
|
+
scrollBehavior?: 'pinned' | 'exit-always';
|
|
13
|
+
/** What `exit-always` follows: an element or a CSS selector for it. Defaults to the window */
|
|
14
|
+
scrollTarget?: HTMLElement | string | null;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_3) => any;
|
|
21
|
+
} & {
|
|
22
|
+
fab?: (props: typeof __VLS_5) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
|
+
color: "surface" | "primary" | "secondary" | "tertiary";
|
|
26
|
+
scrollBehavior: "pinned" | "exit-always";
|
|
27
|
+
scrollTarget: HTMLElement | string | null;
|
|
28
|
+
flexible: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type BottomSheetValue = 'hidden' | 'partial' | 'expanded';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The sheet's state (v-model): `partial` shows `peekHeight` of it, `expanded` all of it, `hidden` none */
|
|
4
|
+
modelValue?: BottomSheetValue;
|
|
5
|
+
/** Height in px the partially expanded sheet shows (BottomSheetDefaults.SheetPeekHeight) */
|
|
6
|
+
peekHeight?: number;
|
|
7
|
+
/** Leaves out the hidden state, so the sheet can't be swiped away (Compose's default for this sheet) */
|
|
8
|
+
skipHiddenState?: boolean;
|
|
9
|
+
/** Lets the sheet be dragged; with false it only moves through v-model and the handle */
|
|
10
|
+
swipeEnabled?: boolean;
|
|
11
|
+
/** Maximum width in px; the sheet is centered when the screen is wider */
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
'top-bar'?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_3) => any;
|
|
19
|
+
} & {
|
|
20
|
+
sheet?: (props: typeof __VLS_5) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (args_0: BottomSheetValue) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((args_0: BottomSheetValue) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
modelValue: BottomSheetValue;
|
|
28
|
+
peekHeight: number;
|
|
29
|
+
skipHiddenState: boolean;
|
|
30
|
+
swipeEnabled: boolean;
|
|
31
|
+
maxWidth: number;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -29,9 +29,9 @@ type __VLS_Slots = {} & {
|
|
|
29
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
30
30
|
color: "primary" | "secondary" | "tertiary";
|
|
31
31
|
size: "small" | "medium" | "large";
|
|
32
|
+
maxWidth: string;
|
|
32
33
|
side: "left" | "right";
|
|
33
34
|
tail: boolean;
|
|
34
|
-
maxWidth: string;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,20 +14,37 @@ type __VLS_Props = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** Leading Material Symbol icon */
|
|
16
16
|
icon?: string;
|
|
17
|
+
/**
|
|
18
|
+
* One of M3's chips: `assist` (an action), `filter` (on/off, v-model:selected; a check slides in while
|
|
19
|
+
* selected), `input` (a piece of user input, with an optional #avatar and `removable`), `suggestion`.
|
|
20
|
+
* Leave unset for the generic tone-colored chip
|
|
21
|
+
*/
|
|
22
|
+
type?: 'assist' | 'filter' | 'input' | 'suggestion';
|
|
23
|
+
/** Typed assist, filter and suggestion chips: surface-container-low with elevation 1 instead of an outline */
|
|
24
|
+
elevated?: boolean;
|
|
25
|
+
/** Typed chips: a trailing Material Symbol icon (e.g. arrow_drop_down on a filter chip that opens a menu) */
|
|
26
|
+
trailingIcon?: string;
|
|
17
27
|
};
|
|
18
|
-
declare var
|
|
28
|
+
declare var __VLS_1: {}, __VLS_13: {}, __VLS_39: {};
|
|
19
29
|
type __VLS_Slots = {} & {
|
|
20
|
-
|
|
30
|
+
avatar?: (props: typeof __VLS_1) => any;
|
|
31
|
+
} & {
|
|
32
|
+
default?: (props: typeof __VLS_13) => any;
|
|
33
|
+
} & {
|
|
34
|
+
default?: (props: typeof __VLS_39) => any;
|
|
21
35
|
};
|
|
22
36
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
37
|
remove: () => any;
|
|
24
38
|
click: () => any;
|
|
39
|
+
"update:selected": (args_0: boolean) => any;
|
|
25
40
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
41
|
onRemove?: (() => any) | undefined;
|
|
27
42
|
onClick?: (() => any) | undefined;
|
|
43
|
+
"onUpdate:selected"?: ((args_0: boolean) => any) | undefined;
|
|
28
44
|
}>, {
|
|
29
45
|
selected: boolean;
|
|
30
46
|
disabled: boolean;
|
|
47
|
+
elevated: boolean;
|
|
31
48
|
clickable: boolean;
|
|
32
49
|
tone: string;
|
|
33
50
|
removable: boolean;
|
|
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
padding: boolean;
|
|
17
16
|
maxWidth: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
17
|
+
padding: boolean;
|
|
18
18
|
fluid: boolean;
|
|
19
19
|
centered: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -119,11 +119,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
119
119
|
modelValue: Record<string, any>[];
|
|
120
120
|
loading: boolean;
|
|
121
121
|
dense: boolean;
|
|
122
|
+
selectable: boolean;
|
|
122
123
|
page: number;
|
|
123
124
|
perPage: number;
|
|
124
125
|
total: number;
|
|
125
126
|
rowKey: string;
|
|
126
|
-
selectable: boolean;
|
|
127
127
|
selectOnRowClick: boolean;
|
|
128
128
|
searchable: boolean;
|
|
129
129
|
expandable: boolean;
|
|
@@ -45,9 +45,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
45
45
|
}>, {
|
|
46
46
|
maxHeight: string;
|
|
47
47
|
closable: boolean;
|
|
48
|
+
fullscreen: boolean;
|
|
48
49
|
maxWidth: string;
|
|
49
50
|
persistent: boolean;
|
|
50
|
-
fullscreen: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
52
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,9 +9,17 @@ type __VLS_Props = {
|
|
|
9
9
|
icon: string;
|
|
10
10
|
/** Extended FAB label text */
|
|
11
11
|
label?: string;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Extended FAB only: false collapses it to a plain FAB (the label fades out and the width shrinks to a
|
|
14
|
+
* square), e.g. while the content scrolls. Compose's `expanded`
|
|
15
|
+
*/
|
|
16
|
+
expanded?: boolean;
|
|
17
|
+
/** Color scheme; defaults to primary, or secondary inside an MBottomAppBar */
|
|
13
18
|
color?: 'primary' | 'secondary' | 'tertiary' | 'surface';
|
|
14
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* FAB size. With a `label`, small/medium/large are M3 Expressive's extended FABs (56/80/96px, title-medium,
|
|
21
|
+
* title-large and headline-small labels); regular is the baseline extended FAB
|
|
22
|
+
*/
|
|
15
23
|
size?: 'small' | 'regular' | 'medium' | 'large';
|
|
16
24
|
/** Disables interaction */
|
|
17
25
|
disabled?: boolean;
|
|
@@ -45,11 +53,11 @@ type __VLS_Props = {
|
|
|
45
53
|
/** Any CSS color for the press ripple; defaults to the FAB's content color */
|
|
46
54
|
rippleColor?: string;
|
|
47
55
|
};
|
|
48
|
-
declare var
|
|
56
|
+
declare var __VLS_47: {
|
|
49
57
|
close: () => boolean;
|
|
50
58
|
};
|
|
51
59
|
type __VLS_Slots = {} & {
|
|
52
|
-
content?: (props: typeof
|
|
60
|
+
content?: (props: typeof __VLS_47) => any;
|
|
53
61
|
};
|
|
54
62
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
63
|
click: (args_0: MouseEvent) => any;
|
|
@@ -59,6 +67,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
59
67
|
color: "primary" | "secondary" | "tertiary" | "surface";
|
|
60
68
|
size: "small" | "regular" | "medium" | "large";
|
|
61
69
|
scrim: boolean;
|
|
70
|
+
expanded: boolean;
|
|
62
71
|
disabled: boolean;
|
|
63
72
|
persistent: boolean;
|
|
64
73
|
direction: "up" | "down" | "left" | "right" | "radial";
|
|
@@ -68,12 +68,12 @@ type __VLS_Slots = {} & {
|
|
|
68
68
|
};
|
|
69
69
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
click: (e: MouseEvent) => any;
|
|
71
|
-
"update:trailingValue": (value: boolean) => any;
|
|
72
71
|
"update:expanded": (value: boolean) => any;
|
|
72
|
+
"update:trailingValue": (value: boolean) => any;
|
|
73
73
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
74
74
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
75
|
-
"onUpdate:trailingValue"?: ((value: boolean) => any) | undefined;
|
|
76
75
|
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
76
|
+
"onUpdate:trailingValue"?: ((value: boolean) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
78
|
active: boolean;
|
|
79
79
|
disabled: boolean;
|
|
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_33) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
-
spinnerSize: number;
|
|
23
22
|
fullscreen: boolean;
|
|
23
|
+
spinnerSize: number;
|
|
24
24
|
opaque: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -37,18 +37,20 @@ type __VLS_Props = {
|
|
|
37
37
|
* variant always renders on left or right.
|
|
38
38
|
*/
|
|
39
39
|
side?: 'left' | 'right' | 'top' | 'bottom';
|
|
40
|
+
/** Lets the modal drawer be swiped closed toward its edge; with false it only closes through v-model or the scrim */
|
|
41
|
+
swipeEnabled?: boolean;
|
|
40
42
|
};
|
|
41
|
-
declare var
|
|
43
|
+
declare var __VLS_16: {}, __VLS_66: {}, __VLS_68: {}, __VLS_70: {}, __VLS_120: {};
|
|
42
44
|
type __VLS_Slots = {} & {
|
|
43
|
-
header?: (props: typeof
|
|
45
|
+
header?: (props: typeof __VLS_16) => any;
|
|
44
46
|
} & {
|
|
45
|
-
default?: (props: typeof
|
|
47
|
+
default?: (props: typeof __VLS_66) => any;
|
|
46
48
|
} & {
|
|
47
|
-
toggle?: (props: typeof
|
|
49
|
+
toggle?: (props: typeof __VLS_68) => any;
|
|
48
50
|
} & {
|
|
49
|
-
header?: (props: typeof
|
|
51
|
+
header?: (props: typeof __VLS_70) => any;
|
|
50
52
|
} & {
|
|
51
|
-
default?: (props: typeof
|
|
53
|
+
default?: (props: typeof __VLS_120) => any;
|
|
52
54
|
};
|
|
53
55
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
54
56
|
openItems: Record<string | number, boolean>;
|
|
@@ -60,6 +62,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
60
62
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
61
63
|
}>, {
|
|
62
64
|
modal: boolean;
|
|
65
|
+
swipeEnabled: boolean;
|
|
63
66
|
side: "left" | "right" | "top" | "bottom";
|
|
64
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -26,6 +26,11 @@ type __VLS_Props = {
|
|
|
26
26
|
* widening in place. It closes on a scrim click, Escape or picking an item, emitting `update:expanded`.
|
|
27
27
|
*/
|
|
28
28
|
modal?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* With `modal`: no collapsed rail on screen; the expanded rail slides in from off-screen and can be swiped
|
|
31
|
+
* away (Compose's `hideOnCollapse`). Open it from your own menu button
|
|
32
|
+
*/
|
|
33
|
+
hideOnCollapse?: boolean;
|
|
29
34
|
};
|
|
30
35
|
declare var __VLS_1: {}, __VLS_53: {};
|
|
31
36
|
type __VLS_Slots = {} & {
|
|
@@ -43,6 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
43
48
|
expanded: boolean;
|
|
44
49
|
modal: boolean;
|
|
45
50
|
alignment: "top" | "center" | "bottom";
|
|
51
|
+
hideOnCollapse: boolean;
|
|
46
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
53
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,8 +7,10 @@ type __VLS_Props = {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
/** 'docked' grows into a rounded panel anchored below the bar (default).
|
|
9
9
|
* 'fullscreen' takes over the whole viewport, matching M3's mobile
|
|
10
|
-
* search pattern — the leading icon becomes a back button either way.
|
|
11
|
-
|
|
10
|
+
* search pattern — the leading icon becomes a back button either way.
|
|
11
|
+
* 'fullscreen-contained' (M3 Expressive's ExpandedFullScreenContainedSearchBar) also takes the whole
|
|
12
|
+
* viewport, on surface-container-low, but keeps the input in its pill shape, with no divider. */
|
|
13
|
+
variant?: 'docked' | 'fullscreen' | 'fullscreen-contained';
|
|
12
14
|
/** Icon shown in the collapsed bar */
|
|
13
15
|
leadingIcon?: string;
|
|
14
16
|
/** Which side of the *collapsed* bar the leading icon sits on. The
|
|
@@ -46,7 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
46
48
|
}>, {
|
|
47
49
|
modelValue: string;
|
|
48
50
|
loading: boolean;
|
|
49
|
-
variant: "docked" | "fullscreen";
|
|
51
|
+
variant: "docked" | "fullscreen" | "fullscreen-contained";
|
|
50
52
|
disabled: boolean;
|
|
51
53
|
leadingIcon: string;
|
|
52
54
|
clearable: boolean;
|
|
@@ -31,8 +31,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
31
31
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
32
|
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
arrangement: "equal" | "centered";
|
|
35
34
|
iconPosition: "top" | "start";
|
|
35
|
+
arrangement: "equal" | "centered";
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
38
38
|
export default _default;
|
|
@@ -76,11 +76,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
76
76
|
}>, {
|
|
77
77
|
modelValue: Record<string, any>[];
|
|
78
78
|
loading: boolean;
|
|
79
|
+
selectable: boolean;
|
|
79
80
|
page: number;
|
|
80
81
|
perPage: number;
|
|
81
82
|
total: number;
|
|
82
83
|
rowKey: string;
|
|
83
|
-
selectable: boolean;
|
|
84
84
|
selectOnRowClick: boolean;
|
|
85
85
|
searchable: boolean;
|
|
86
86
|
serverSide: boolean;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
/** App bar title */
|
|
3
3
|
title?: string;
|
|
4
|
+
/** A line below the title (Compose's `subtitle`): small, center-aligned and flexible medium/large bars */
|
|
5
|
+
subtitle?: string;
|
|
4
6
|
/** 64dp small/center-aligned row, or a 112dp medium / 152dp large two-row layout with the title below */
|
|
5
7
|
variant?: 'center' | 'small' | 'medium' | 'large';
|
|
8
|
+
/**
|
|
9
|
+
* Medium/large only: M3 Expressive's MediumFlexibleTopAppBar / LargeFlexibleTopAppBar, with a
|
|
10
|
+
* headline-medium / display-small title and room for a subtitle (112/136dp and 120/152dp tall)
|
|
11
|
+
*/
|
|
12
|
+
flexible?: boolean;
|
|
13
|
+
/** Medium/large only: where the title row sits (Compose's `titleHorizontalAlignment`) */
|
|
14
|
+
titleAlignment?: 'start' | 'center';
|
|
6
15
|
/** Leading icon (e.g. menu, arrow_back) */
|
|
7
16
|
navigationIcon?: string;
|
|
8
17
|
/** Accessible label for the navigation icon button — defaults to the
|
|
@@ -16,16 +25,35 @@ type __VLS_Props = {
|
|
|
16
25
|
elevated?: boolean;
|
|
17
26
|
/** Add a bottom border (border-outline-variant) */
|
|
18
27
|
bordered?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* How the bar reacts to `scrollTarget` scrolling (Compose's TopAppBarDefaults scroll behaviors). `pinned`
|
|
30
|
+
* stays put and takes the scrolled container color once the content moves under it; `enter-always` hides
|
|
31
|
+
* (a medium/large bar collapses to the small one) while the content scrolls down and comes back as soon as
|
|
32
|
+
* it scrolls up; `exit-until-collapsed` collapses a medium/large bar as the content scrolls and expands it
|
|
33
|
+
* only back at the top. The last two make the bar sticky over the content: put it at the top of the
|
|
34
|
+
* scrolling element (or of the page)
|
|
35
|
+
*/
|
|
36
|
+
scrollBehavior?: 'pinned' | 'enter-always' | 'exit-until-collapsed';
|
|
37
|
+
/** What `scrollBehavior` follows: an element or a CSS selector for it. Defaults to the window */
|
|
38
|
+
scrollTarget?: HTMLElement | string | null;
|
|
19
39
|
};
|
|
20
|
-
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
40
|
+
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {}, __VLS_22: {};
|
|
21
41
|
type __VLS_Slots = {} & {
|
|
22
42
|
navigation?: (props: typeof __VLS_1) => any;
|
|
23
43
|
} & {
|
|
24
44
|
title?: (props: typeof __VLS_10) => any;
|
|
25
45
|
} & {
|
|
26
|
-
|
|
46
|
+
subtitle?: (props: typeof __VLS_12) => any;
|
|
27
47
|
} & {
|
|
28
48
|
title?: (props: typeof __VLS_14) => any;
|
|
49
|
+
} & {
|
|
50
|
+
subtitle?: (props: typeof __VLS_16) => any;
|
|
51
|
+
} & {
|
|
52
|
+
actions?: (props: typeof __VLS_18) => any;
|
|
53
|
+
} & {
|
|
54
|
+
title?: (props: typeof __VLS_20) => any;
|
|
55
|
+
} & {
|
|
56
|
+
subtitle?: (props: typeof __VLS_22) => any;
|
|
29
57
|
};
|
|
30
58
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
59
|
navigation: () => any;
|
|
@@ -33,6 +61,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
33
61
|
onNavigation?: (() => any) | undefined;
|
|
34
62
|
}>, {
|
|
35
63
|
variant: "center" | "small" | "medium" | "large";
|
|
64
|
+
scrollTarget: HTMLElement | string | null;
|
|
65
|
+
flexible: boolean;
|
|
66
|
+
titleAlignment: "start" | "center";
|
|
36
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* M3's navigation transitions between two views (a port of Compose's `MaterialTransitions`): `shared-axis`
|
|
3
|
-
* slides the new view in from the side as the old one slides out (use `reverse` when going back), and
|
|
4
|
-
* `fade-through` fades the old view out and the new one in with a slight scale, for destinations without a
|
|
5
|
-
* spatial relationship such as navigation bar tabs. Wrap content that changes its `key` (or a `v-if`/`v-else`
|
|
6
|
-
* pair, or a `<RouterView>` slot's component); both views overlap while they animate.
|
|
7
|
-
*
|
|
8
|
-
* @slot default The current view; give it a `key` that changes with it
|
|
9
|
-
*/
|
|
10
1
|
type __VLS_Props = {
|
|
11
2
|
/** `shared-axis` (horizontal, for forward/back navigation) or `fade-through` (unrelated destinations) */
|
|
12
3
|
type?: 'shared-axis' | 'fade-through';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export interface SearchAppBarContext {
|
|
3
|
+
/** Content is scrolled under the app bar: the search bar takes its scrolled container color */
|
|
4
|
+
scrolled: Ref<boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare const searchAppBarKey: InjectionKey<SearchAppBarContext>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SpringSpec } from './motion';
|
|
2
|
+
export declare const SAMPLE_MS: number;
|
|
3
|
+
/**
|
|
4
|
+
* The spring from `from` to `to`, starting at `velocity` (units/s), one sample per 60Hz frame until it's within
|
|
5
|
+
* `epsilon` of `to` (and slower than `epsilon * 10` per second). The last sample is exactly `to`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function sampleSpring(from: number, to: number, velocity: number, spring: SpringSpec, epsilon: number): number[];
|
|
8
|
+
/** The value `samples` has `time` ms into playback (an Animation's currentTime), linear between frames */
|
|
9
|
+
export declare function sampleAt(samples: number[], time: CSSNumberish | null | undefined): number;
|
|
10
|
+
/** How long `samples` play, in ms */
|
|
11
|
+
export declare const samplesDuration: (samples: number[]) => number;
|
|
12
|
+
/**
|
|
13
|
+
* Plays `samples` on `el` as a linear Web Animation, each mapped to a keyframe. Null when there's nothing to
|
|
14
|
+
* play or no Web Animations API (the inline end state then simply stands).
|
|
15
|
+
*/
|
|
16
|
+
export declare function playSamples(el: Element | null | undefined, samples: number[], keyframe: (value: number) => Keyframe, delay?: number): Animation | null;
|
|
17
|
+
export declare const prefersReducedMotion: () => boolean;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
stiffness: number;
|
|
4
|
-
}
|
|
1
|
+
import { type SpringSpec } from './motion';
|
|
2
|
+
export type { SpringSpec };
|
|
5
3
|
/** MotionSchemeKeyTokens.FastSpatial in the Standard scheme (StandardMotionTokens.SpringFastSpatial*) */
|
|
6
4
|
export declare const FAST_SPATIAL: SpringSpec;
|
|
7
5
|
/** MotionSchemeKeyTokens.FastEffects in the Standard scheme */
|
|
@@ -14,4 +12,4 @@ export declare function useSpring(target: () => number[], apply: (values: readon
|
|
|
14
12
|
snap: () => void;
|
|
15
13
|
};
|
|
16
14
|
/** Compose's FastOutSlowInEasing, cubic-bezier(0.4, 0, 0.2, 1) — the easing of a default tween() */
|
|
17
|
-
export declare
|
|
15
|
+
export declare const fastOutSlowIn: (t: number) => number;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/** A spring: dampingRatio 1 settles without overshoot, lower bounces; higher stiffness is faster */
|
|
2
|
+
export interface SpringSpec {
|
|
3
|
+
dampingRatio: number;
|
|
4
|
+
stiffness: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Spring specs of the two motion schemes. Spatial springs move things (position, size, shape); effects springs
|
|
8
|
+
* change color and opacity and never overshoot. Standard is the default scheme; Expressive is bouncier, for
|
|
9
|
+
* Expressive components and moments that should feel lively.
|
|
10
|
+
*/
|
|
11
|
+
export declare const motionSprings: {
|
|
12
|
+
readonly standard: {
|
|
13
|
+
readonly fastSpatial: {
|
|
14
|
+
readonly dampingRatio: 0.9;
|
|
15
|
+
readonly stiffness: 1400;
|
|
16
|
+
};
|
|
17
|
+
readonly defaultSpatial: {
|
|
18
|
+
readonly dampingRatio: 0.9;
|
|
19
|
+
readonly stiffness: 700;
|
|
20
|
+
};
|
|
21
|
+
readonly slowSpatial: {
|
|
22
|
+
readonly dampingRatio: 0.9;
|
|
23
|
+
readonly stiffness: 300;
|
|
24
|
+
};
|
|
25
|
+
readonly fastEffects: {
|
|
26
|
+
readonly dampingRatio: 1;
|
|
27
|
+
readonly stiffness: 3800;
|
|
28
|
+
};
|
|
29
|
+
readonly defaultEffects: {
|
|
30
|
+
readonly dampingRatio: 1;
|
|
31
|
+
readonly stiffness: 1600;
|
|
32
|
+
};
|
|
33
|
+
readonly slowEffects: {
|
|
34
|
+
readonly dampingRatio: 1;
|
|
35
|
+
readonly stiffness: 800;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly expressive: {
|
|
39
|
+
readonly fastSpatial: {
|
|
40
|
+
readonly dampingRatio: 0.6;
|
|
41
|
+
readonly stiffness: 800;
|
|
42
|
+
};
|
|
43
|
+
readonly defaultSpatial: {
|
|
44
|
+
readonly dampingRatio: 0.8;
|
|
45
|
+
readonly stiffness: 380;
|
|
46
|
+
};
|
|
47
|
+
readonly slowSpatial: {
|
|
48
|
+
readonly dampingRatio: 0.8;
|
|
49
|
+
readonly stiffness: 200;
|
|
50
|
+
};
|
|
51
|
+
readonly fastEffects: {
|
|
52
|
+
readonly dampingRatio: 1;
|
|
53
|
+
readonly stiffness: 3800;
|
|
54
|
+
};
|
|
55
|
+
readonly defaultEffects: {
|
|
56
|
+
readonly dampingRatio: 1;
|
|
57
|
+
readonly stiffness: 1600;
|
|
58
|
+
};
|
|
59
|
+
readonly slowEffects: {
|
|
60
|
+
readonly dampingRatio: 1;
|
|
61
|
+
readonly stiffness: 800;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/** Easing curves as cubic-bezier control points [x1, y1, x2, y2] (theme.css has them as `--ease-*`) */
|
|
66
|
+
export declare const motionEasings: {
|
|
67
|
+
readonly emphasized: readonly [0.2, 0, 0, 1];
|
|
68
|
+
readonly emphasizedDecelerate: readonly [0.05, 0.7, 0.1, 1];
|
|
69
|
+
readonly emphasizedAccelerate: readonly [0.3, 0, 0.8, 0.15];
|
|
70
|
+
readonly standard: readonly [0.2, 0, 0, 1];
|
|
71
|
+
readonly standardDecelerate: readonly [0, 0, 0, 1];
|
|
72
|
+
readonly standardAccelerate: readonly [0.3, 0, 1, 1];
|
|
73
|
+
readonly legacy: readonly [0.4, 0, 0.2, 1];
|
|
74
|
+
readonly legacyDecelerate: readonly [0, 0, 0.2, 1];
|
|
75
|
+
readonly legacyAccelerate: readonly [0.4, 0, 1, 1];
|
|
76
|
+
readonly linear: readonly [0, 0, 1, 1];
|
|
77
|
+
};
|
|
78
|
+
/** Durations in ms (theme.css has them as `--duration-short-1` … `--duration-extra-long-4`) */
|
|
79
|
+
export declare const motionDurations: {
|
|
80
|
+
readonly short1: 50;
|
|
81
|
+
readonly short2: 100;
|
|
82
|
+
readonly short3: 150;
|
|
83
|
+
readonly short4: 200;
|
|
84
|
+
readonly medium1: 250;
|
|
85
|
+
readonly medium2: 300;
|
|
86
|
+
readonly medium3: 350;
|
|
87
|
+
readonly medium4: 400;
|
|
88
|
+
readonly long1: 450;
|
|
89
|
+
readonly long2: 500;
|
|
90
|
+
readonly long3: 550;
|
|
91
|
+
readonly long4: 600;
|
|
92
|
+
readonly extraLong1: 700;
|
|
93
|
+
readonly extraLong2: 800;
|
|
94
|
+
readonly extraLong3: 900;
|
|
95
|
+
readonly extraLong4: 1000;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* A cubic-bezier easing as a function of progress (0–1), e.g. `cubicBezier(...motionEasings.emphasized)`, for
|
|
99
|
+
* JS-driven tweens and for mapping a fraction through a curve
|
|
100
|
+
*/
|
|
101
|
+
export declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
|