apptify 0.6.2 → 0.7.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.
Files changed (131) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_LICENSES.txt +23 -0
  3. package/dist/apptify.css +1 -1
  4. package/dist/apptify.js +2395 -2451
  5. package/dist/components/AppleCard.vue.d.ts +1 -1
  6. package/dist/components/button.d.ts +3 -3
  7. package/dist/components/content.d.ts +81 -20
  8. package/dist/components/forms.d.ts +2 -2
  9. package/dist/components/foundation.d.ts +136 -14
  10. package/dist/components/mobile-image-viewer.d.ts +35 -12
  11. package/dist/components/navibar.d.ts +2 -2
  12. package/dist/components/overlays.d.ts +10 -59
  13. package/dist/components/scrollbar.d.ts +88 -0
  14. package/dist/components/speed-dial.d.ts +157 -0
  15. package/dist/core/context.d.ts +11 -0
  16. package/dist/core/device.d.ts +2 -0
  17. package/dist/core/image-gallery-motion.d.ts +2 -1
  18. package/dist/core/image-motion.d.ts +1 -1
  19. package/dist/core/layers.d.ts +1 -0
  20. package/dist/core/motion-driver.d.ts +40 -0
  21. package/dist/core/motion.d.ts +1 -1
  22. package/dist/core/ripple.d.ts +16 -0
  23. package/dist/core/scroll-motion.d.ts +6 -0
  24. package/dist/core/scrollbar.d.ts +14 -0
  25. package/dist/core/speed-dial.d.ts +21 -0
  26. package/dist/index.d.ts +240 -29
  27. package/docs/COMPONENTS.md +11 -7
  28. package/package.json +5 -7
  29. package/templates/playground/README.md +1 -1
  30. package/templates/playground/package.json +1 -2
  31. package/templates/playground/source-snapshot.json +300 -67
  32. package/templates/playground/src/App.vue +1 -0
  33. package/templates/playground/src/ComponentDemo.vue +30 -21
  34. package/templates/playground/src/catalog.ts +70 -65
  35. package/templates/playground/src/components/ComponentIndex.vue +10 -14
  36. package/templates/playground/src/components/MasonryFeed.vue +52 -0
  37. package/templates/playground/src/components/UserMenu.vue +1 -1
  38. package/templates/playground/src/components/forbidden-paper-scene.vue +367 -0
  39. package/templates/playground/src/components/forbidden-paper-story.ts +233 -0
  40. package/templates/playground/src/editor/ComponentPlayground.vue +91 -0
  41. package/templates/playground/src/editor/ConfigurableEditor.vue +1 -1
  42. package/templates/playground/src/editor/apple-input-source.ts +1 -1
  43. package/templates/playground/src/editor/component-metadata.ts +72 -0
  44. package/templates/playground/src/editor/component-playground.ts +163 -0
  45. package/templates/playground/src/editor/contract.ts +1 -1
  46. package/templates/playground/src/editor/documents.ts +11 -2
  47. package/templates/playground/src/editor/handbook.ts +22 -0
  48. package/templates/playground/src/editor/handbooks/apple-accordion.ts +66 -0
  49. package/templates/playground/src/editor/handbooks/apple-action-sheet.ts +72 -0
  50. package/templates/playground/src/editor/handbooks/apple-alert.ts +67 -0
  51. package/templates/playground/src/editor/handbooks/apple-aside.ts +32 -0
  52. package/templates/playground/src/editor/handbooks/apple-auto-size.ts +32 -0
  53. package/templates/playground/src/editor/handbooks/apple-autocomplete.ts +114 -0
  54. package/templates/playground/src/editor/handbooks/apple-avatar-group.ts +50 -0
  55. package/templates/playground/src/editor/handbooks/apple-avatar.ts +56 -0
  56. package/templates/playground/src/editor/handbooks/apple-back-top.ts +62 -0
  57. package/templates/playground/src/editor/handbooks/apple-badge.ts +62 -0
  58. package/templates/playground/src/editor/handbooks/apple-breadcrumbs.ts +38 -0
  59. package/templates/playground/src/editor/handbooks/apple-button.ts +92 -0
  60. package/templates/playground/src/editor/handbooks/apple-card.ts +112 -0
  61. package/templates/playground/src/editor/handbooks/apple-cascader.ts +102 -0
  62. package/templates/playground/src/editor/handbooks/apple-checkbox.ts +85 -0
  63. package/templates/playground/src/editor/handbooks/apple-color-picker.ts +79 -0
  64. package/templates/playground/src/editor/handbooks/apple-container.ts +26 -0
  65. package/templates/playground/src/editor/handbooks/apple-date-picker.ts +104 -0
  66. package/templates/playground/src/editor/handbooks/apple-dialog.ts +151 -0
  67. package/templates/playground/src/editor/handbooks/apple-divider.ts +38 -0
  68. package/templates/playground/src/editor/handbooks/apple-drawer.ts +151 -0
  69. package/templates/playground/src/editor/handbooks/apple-empty.ts +43 -0
  70. package/templates/playground/src/editor/handbooks/apple-floating-group.ts +51 -0
  71. package/templates/playground/src/editor/handbooks/apple-form-field.ts +69 -0
  72. package/templates/playground/src/editor/handbooks/apple-form.ts +76 -0
  73. package/templates/playground/src/editor/handbooks/apple-grid.ts +32 -0
  74. package/templates/playground/src/editor/handbooks/apple-image.ts +122 -0
  75. package/templates/playground/src/editor/handbooks/apple-infinite-scroll.ts +73 -0
  76. package/templates/playground/src/editor/handbooks/apple-link.ts +68 -0
  77. package/templates/playground/src/editor/handbooks/apple-list.ts +67 -0
  78. package/templates/playground/src/editor/handbooks/apple-menu.ts +72 -0
  79. package/templates/playground/src/editor/handbooks/apple-navibar.ts +100 -0
  80. package/templates/playground/src/editor/handbooks/apple-otp-input.ts +108 -0
  81. package/templates/playground/src/editor/handbooks/apple-overlay-host.ts +13 -0
  82. package/templates/playground/src/editor/handbooks/apple-pagination.ts +61 -0
  83. package/templates/playground/src/editor/handbooks/apple-popover.ts +112 -0
  84. package/templates/playground/src/editor/handbooks/apple-progress.ts +56 -0
  85. package/templates/playground/src/editor/handbooks/apple-provider.ts +32 -0
  86. package/templates/playground/src/editor/handbooks/apple-pull-refresh.ts +61 -0
  87. package/templates/playground/src/editor/handbooks/apple-radio-group.ts +91 -0
  88. package/templates/playground/src/editor/handbooks/apple-rate.ts +97 -0
  89. package/templates/playground/src/editor/handbooks/apple-scroll-bar.ts +15 -0
  90. package/templates/playground/src/editor/handbooks/apple-search.ts +49 -0
  91. package/templates/playground/src/editor/handbooks/apple-segmented-control.ts +85 -0
  92. package/templates/playground/src/editor/handbooks/apple-select.ts +91 -0
  93. package/templates/playground/src/editor/handbooks/apple-sheet.ts +151 -0
  94. package/templates/playground/src/editor/handbooks/apple-skeleton.ts +74 -0
  95. package/templates/playground/src/editor/handbooks/apple-slider.ts +103 -0
  96. package/templates/playground/src/editor/handbooks/apple-snackbar.ts +89 -0
  97. package/templates/playground/src/editor/handbooks/apple-speed-dial-item.ts +16 -0
  98. package/templates/playground/src/editor/handbooks/apple-speed-dial.ts +13 -0
  99. package/templates/playground/src/editor/handbooks/apple-spinner.ts +38 -0
  100. package/templates/playground/src/editor/handbooks/apple-stack.ts +44 -0
  101. package/templates/playground/src/editor/handbooks/apple-statistic.ts +69 -0
  102. package/templates/playground/src/editor/handbooks/apple-stepper.ts +91 -0
  103. package/templates/playground/src/editor/handbooks/apple-steps.ts +61 -0
  104. package/templates/playground/src/editor/handbooks/apple-switch.ts +79 -0
  105. package/templates/playground/src/editor/handbooks/apple-tab-bar.ts +66 -0
  106. package/templates/playground/src/editor/handbooks/apple-table.ts +176 -0
  107. package/templates/playground/src/editor/handbooks/apple-tabs.ts +72 -0
  108. package/templates/playground/src/editor/handbooks/apple-tag.ts +56 -0
  109. package/templates/playground/src/editor/handbooks/apple-textarea.ts +109 -0
  110. package/templates/playground/src/editor/handbooks/apple-timeline.ts +44 -0
  111. package/templates/playground/src/editor/handbooks/apple-tooltip.ts +45 -0
  112. package/templates/playground/src/editor/handbooks/apple-transition.ts +44 -0
  113. package/templates/playground/src/editor/handbooks/apple-tree.ts +84 -0
  114. package/templates/playground/src/editor/handbooks/apple-upload.ts +126 -0
  115. package/templates/playground/src/editor/playground-examples.ts +105 -0
  116. package/templates/playground/src/images.ts +3 -0
  117. package/templates/playground/src/router/index.ts +19 -2
  118. package/templates/playground/src/style.css +4 -4
  119. package/templates/playground/src/views/403.vue +65 -0
  120. package/templates/playground/src/views/component-docs/[component].vue +11 -14
  121. package/templates/playground/src/views/components.vue +11 -41
  122. package/templates/playground/src/views/index.vue +3 -1
  123. package/templates/playground/src/views/settings.vue +5 -2
  124. package/templates/playground/tooling/playground-editor.mjs +4 -3
  125. package/tooling/playground-editor.mjs +4 -3
  126. package/tooling/prepare-playground.mjs +3 -3
  127. package/tooling/test-playground-package.mjs +10 -0
  128. package/dist/components/gallery-scrollbar.d.ts +0 -46
  129. package/dist/core/desktop-image-enter.d.ts +0 -6
  130. package/dist/core/desktop-image-return.d.ts +0 -1
  131. package/templates/playground/src/components/DirectoryDialog.vue +0 -20
@@ -0,0 +1,88 @@
1
+ import { type PropType } from 'vue';
2
+ import { type ScrollBarAxis } from '../core/scrollbar';
3
+ export declare const AppleScrollBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ target: {
5
+ type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
6
+ default: string;
7
+ };
8
+ axis: {
9
+ type: PropType<ScrollBarAxis>;
10
+ default: string;
11
+ };
12
+ label: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ controls: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "interaction"[], "interaction", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ target: {
22
+ type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
23
+ default: string;
24
+ };
25
+ axis: {
26
+ type: PropType<ScrollBarAxis>;
27
+ default: string;
28
+ };
29
+ label: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ controls: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>> & Readonly<{
38
+ onInteraction?: ((...args: any[]) => any) | undefined;
39
+ }>, {
40
+ label: string;
41
+ target: string | HTMLElement | (() => HTMLElement | undefined);
42
+ axis: ScrollBarAxis;
43
+ controls: string;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ export declare const scrollBarComponents: {
46
+ AppleScrollBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
47
+ target: {
48
+ type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
49
+ default: string;
50
+ };
51
+ axis: {
52
+ type: PropType<ScrollBarAxis>;
53
+ default: string;
54
+ };
55
+ label: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ controls: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "interaction"[], "interaction", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
+ target: {
65
+ type: PropType<string | HTMLElement | (() => HTMLElement | undefined)>;
66
+ default: string;
67
+ };
68
+ axis: {
69
+ type: PropType<ScrollBarAxis>;
70
+ default: string;
71
+ };
72
+ label: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ controls: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ onInteraction?: ((...args: any[]) => any) | undefined;
82
+ }>, {
83
+ label: string;
84
+ target: string | HTMLElement | (() => HTMLElement | undefined);
85
+ axis: ScrollBarAxis;
86
+ controls: string;
87
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
88
+ };
@@ -0,0 +1,157 @@
1
+ import { type Component, type PropType, type VNodeChild } from 'vue';
2
+ export declare const AppleSpeedDial: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ backTop: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ target: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ threshold: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ label: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ backTop: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ target: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ threshold: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ label: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ label: string;
38
+ target: string;
39
+ threshold: number;
40
+ backTop: boolean;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
+ export declare const AppleSpeedDialItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
43
+ label: {
44
+ type: StringConstructor;
45
+ required: true;
46
+ };
47
+ icon: PropType<Component>;
48
+ disabled: BooleanConstructor;
49
+ visible: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ variant: {
54
+ type: PropType<"primary" | "secondary" | "outline" | "danger">;
55
+ default: string;
56
+ };
57
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
+ label: {
59
+ type: StringConstructor;
60
+ required: true;
61
+ };
62
+ icon: PropType<Component>;
63
+ disabled: BooleanConstructor;
64
+ visible: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ variant: {
69
+ type: PropType<"primary" | "secondary" | "outline" | "danger">;
70
+ default: string;
71
+ };
72
+ }>> & Readonly<{
73
+ onClick?: ((...args: any[]) => any) | undefined;
74
+ }>, {
75
+ disabled: boolean;
76
+ variant: "secondary" | "danger" | "primary" | "outline";
77
+ visible: boolean;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
+ export declare const speedDialComponents: {
80
+ AppleSpeedDial: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
81
+ backTop: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ target: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ threshold: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ label: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
98
+ backTop: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ target: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ threshold: {
107
+ type: NumberConstructor;
108
+ default: number;
109
+ };
110
+ label: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ }>> & Readonly<{}>, {
115
+ label: string;
116
+ target: string;
117
+ threshold: number;
118
+ backTop: boolean;
119
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
+ AppleSpeedDialItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
121
+ label: {
122
+ type: StringConstructor;
123
+ required: true;
124
+ };
125
+ icon: PropType<Component>;
126
+ disabled: BooleanConstructor;
127
+ visible: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ variant: {
132
+ type: PropType<"primary" | "secondary" | "outline" | "danger">;
133
+ default: string;
134
+ };
135
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
136
+ label: {
137
+ type: StringConstructor;
138
+ required: true;
139
+ };
140
+ icon: PropType<Component>;
141
+ disabled: BooleanConstructor;
142
+ visible: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ variant: {
147
+ type: PropType<"primary" | "secondary" | "outline" | "danger">;
148
+ default: string;
149
+ };
150
+ }>> & Readonly<{
151
+ onClick?: ((...args: any[]) => any) | undefined;
152
+ }>, {
153
+ disabled: boolean;
154
+ variant: "secondary" | "danger" | "primary" | "outline";
155
+ visible: boolean;
156
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
157
+ };
@@ -660,7 +660,18 @@ export declare function createApple(options?: AppleOptions): import("vue").Raw<{
660
660
  clear(): void;
661
661
  };
662
662
  portalTarget: Ref<HTMLElement | undefined, HTMLElement | undefined>;
663
+ speedDial: import("vue").Raw<{
664
+ entries: import("vue").ShallowRef<import("./speed-dial").SpeedDialEntry[], import("./speed-dial").SpeedDialEntry[]>;
665
+ host: Ref<string | undefined, string | undefined>;
666
+ hostDepth: Ref<number, number>;
667
+ mobile: Ref<boolean, boolean>;
668
+ open: Ref<boolean, boolean>;
669
+ activeDirectory: Ref<string | undefined, string | undefined>;
670
+ register(entry: import("./speed-dial").SpeedDialEntry): void;
671
+ unregister(id: string): void;
672
+ }>;
663
673
  isTouchDevice: Readonly<Ref<boolean, boolean>>;
674
+ isVerticalScreen: Readonly<Ref<boolean, boolean>>;
664
675
  dialog: <T = unknown>(settings: Omit<OverlayOptions, "kind">) => OverlayHandle<T>;
665
676
  notify: (message: string, settings?: Omit<OverlayOptions, "kind" | "message">) => OverlayHandle<unknown>;
666
677
  sendMessage: <T = unknown>(channel: string, payload?: T) => unknown[];
@@ -2,4 +2,6 @@ export declare const touchDeviceQuery = "(any-pointer: coarse)";
2
2
  export declare const detectTouchDevice: () => boolean;
3
3
  /** Shared across apps, components and teleported overlays. */
4
4
  export declare const isTouchDevice: Readonly<import("vue").Ref<boolean, boolean>>;
5
+ export declare const isVerticalScreen: Readonly<import("vue").Ref<boolean, boolean>>;
6
+ export declare function syncVerticalScreen(): void;
5
7
  export declare function syncTouchDevice(): void;
@@ -1,2 +1,3 @@
1
1
  export declare function stopGalleryScroll(box: HTMLElement): void;
2
- export declare function scrollGallery(box: HTMLElement, left: number, animated: boolean, complete: () => void, adjacent?: boolean): void;
2
+ export declare function wheelGallery(box: HTMLElement, delta: number, animated: boolean): void;
3
+ export declare function scrollGallery(box: HTMLElement, left: number, animated: boolean, complete: () => void, adjacent?: boolean, snapOverride?: string): void;
@@ -14,5 +14,5 @@ export declare function photoPageTiming(distance: number, velocity: number, _wid
14
14
  easing: string;
15
15
  };
16
16
  export declare function photoFlightSize(from: PhotoGeometry, to: PhotoGeometry): PhotoSize;
17
- export declare function photoFlightFrame(rect: PhotoGeometry, base: PhotoSize): Keyframe;
17
+ export declare function photoFlightFrame(rect: PhotoGeometry, base: PhotoSize, preserveCrop?: boolean): Keyframe;
18
18
  export declare function readPhotoGeometry(frame: HTMLElement, photo: HTMLElement, panel: DOMRect): PhotoGeometry;
@@ -1,2 +1,3 @@
1
1
  export declare const overlayZIndex: (depth: number) => number;
2
2
  export declare const imageReturnZIndex: (depth: number) => number;
3
+ export declare const scrollBarZIndex: (inherited: number) => number;
@@ -0,0 +1,40 @@
1
+ export interface MotionSample {
2
+ value: number[];
3
+ velocity: number[];
4
+ target: number[];
5
+ }
6
+ export declare function sampleSpring(value: number, velocity: number, target: number, seconds: number, frequency: number): {
7
+ value: number;
8
+ velocity: number;
9
+ };
10
+ /** Each channel owns its lifetime. Retargeting preserves position and velocity. */
11
+ export declare class MotionDriver {
12
+ private changed;
13
+ private springs;
14
+ private tracks;
15
+ private owners;
16
+ private frame;
17
+ constructor(changed?: () => void);
18
+ has(key: string): boolean;
19
+ get active(): boolean;
20
+ prepare(key: string): () => boolean;
21
+ velocityX(key: string, element: HTMLElement): number;
22
+ sample(key: string): MotionSample | undefined;
23
+ shift(key: string, offset: number[]): void;
24
+ to(key: string, from: number[], target: number[], update: (value: number[]) => void, options?: {
25
+ frequency?: number;
26
+ epsilon?: number[];
27
+ immediate?: boolean;
28
+ velocity?: number[];
29
+ bounds?: Array<[number, number] | null>;
30
+ }): Promise<boolean>;
31
+ animate(key: string, entries: Array<{
32
+ element: HTMLElement;
33
+ from: Keyframe;
34
+ to: Keyframe;
35
+ }>, duration: number, easing: string): Promise<boolean>;
36
+ cancel(key?: string): void;
37
+ finish(): void;
38
+ private advance;
39
+ private schedule;
40
+ }
@@ -9,4 +9,4 @@ type SelectionValue = unknown | {
9
9
  selector: string;
10
10
  };
11
11
  export declare const AppleSelection: ObjectDirective<HTMLElement, SelectionValue>;
12
- export {};
12
+ export { scrollToWithMotion, cancelMotionScroll, type MotionScroll } from './scroll-motion';
@@ -0,0 +1,16 @@
1
+ /*! Ripple animation adapted from Vuetify. Copyright (c) 2016-now Vuetify, LLC. MIT license; see THIRD_PARTY_LICENSES.txt. */
2
+ import type { DirectiveBinding } from 'vue';
3
+ export type RippleElement = HTMLElement & {
4
+ _ripple?: {
5
+ enabled: boolean;
6
+ touched: boolean;
7
+ showTimer?: number;
8
+ showTimerCommit: (() => void) | null;
9
+ };
10
+ };
11
+ export declare const Ripple: {
12
+ mounted(el: RippleElement, binding: Pick<DirectiveBinding<{
13
+ keys: string[];
14
+ }>, "value" | "modifiers">): void;
15
+ unmounted(el: RippleElement): void;
16
+ };
@@ -0,0 +1,6 @@
1
+ export interface MotionScroll {
2
+ finished: Promise<void>;
3
+ cancel: () => void;
4
+ }
5
+ export declare function cancelMotionScroll(target: HTMLElement | Window): void;
6
+ export declare function scrollToWithMotion(target: HTMLElement | Window, destination: number | (() => number), animated?: boolean): MotionScroll;
@@ -0,0 +1,14 @@
1
+ export type ScrollBarAxis = 'both' | 'horizontal' | 'vertical';
2
+ interface ScrollBarOptions {
3
+ axis?: ScrollBarAxis;
4
+ label?: string;
5
+ controls?: string;
6
+ host?: HTMLElement;
7
+ interaction?: () => void;
8
+ }
9
+ export declare function attachScrollBar(target: HTMLElement, options?: ScrollBarOptions): {
10
+ refresh: () => void;
11
+ dispose(): void;
12
+ };
13
+ export declare function installScrollBars(host: HTMLElement): () => void;
14
+ export {};
@@ -0,0 +1,21 @@
1
+ export interface SpeedDialEntry {
2
+ id: string;
3
+ kind: 'directory' | 'action';
4
+ label: string;
5
+ target: HTMLElement;
6
+ }
7
+ export declare function createSpeedDialRegistry(): import("vue").Raw<{
8
+ entries: import("vue").ShallowRef<SpeedDialEntry[], SpeedDialEntry[]>;
9
+ host: import("vue").Ref<string | undefined, string | undefined>;
10
+ hostDepth: import("vue").Ref<number, number>;
11
+ mobile: import("vue").Ref<boolean, boolean>;
12
+ open: import("vue").Ref<boolean, boolean>;
13
+ activeDirectory: import("vue").Ref<string | undefined, string | undefined>;
14
+ register(entry: SpeedDialEntry): void;
15
+ unregister(id: string): void;
16
+ }>;
17
+ export declare function useSpeedDialEntry(kind: SpeedDialEntry['kind'], label: () => string, enabled?: () => boolean): {
18
+ target: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
19
+ hosted: import("vue").ComputedRef<boolean>;
20
+ close: () => void;
21
+ };