@getcortexlabs/mavis-web 0.1.0-alpha.7 → 0.1.0-alpha.9
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 -4
- package/dist/collection-motion.d.ts +4 -0
- package/dist/collection-motion.d.ts.map +1 -0
- package/dist/collection-motion.js +97 -0
- package/dist/collection-motion.js.map +1 -0
- package/dist/components/DateCalendar.d.ts +1 -1
- package/dist/components/LoadingDecoration.d.ts +116 -0
- package/dist/components/LoadingDecoration.d.ts.map +1 -0
- package/dist/components/LoadingDecoration.js +35 -0
- package/dist/components/LoadingDecoration.js.map +1 -0
- package/dist/components/MAccordion.d.ts +2 -2
- package/dist/components/MAlert.d.ts +3 -3
- package/dist/components/MAvatar.d.ts +3 -3
- package/dist/components/MBadge.d.ts +1 -1
- package/dist/components/MButton.d.ts +36 -14
- package/dist/components/MButton.d.ts.map +1 -1
- package/dist/components/MButton.js +29 -9
- package/dist/components/MButton.js.map +1 -1
- package/dist/components/MCard.d.ts +7 -7
- package/dist/components/MCard.d.ts.map +1 -1
- package/dist/components/MCard.js +3 -2
- package/dist/components/MCard.js.map +1 -1
- package/dist/components/MCheckbox.d.ts +2 -2
- package/dist/components/MChip.d.ts +3 -3
- package/dist/components/MCombobox.d.ts +2 -2
- package/dist/components/MCombobox.d.ts.map +1 -1
- package/dist/components/MCombobox.js +10 -0
- package/dist/components/MCombobox.js.map +1 -1
- package/dist/components/MDatePicker.d.ts +56 -8
- package/dist/components/MDatePicker.d.ts.map +1 -1
- package/dist/components/MDatePicker.js +2 -10
- package/dist/components/MDatePicker.js.map +1 -1
- package/dist/components/MDialog.d.ts +3 -0
- package/dist/components/MDialog.d.ts.map +1 -1
- package/dist/components/MDialog.js +69 -4
- package/dist/components/MDialog.js.map +1 -1
- package/dist/components/MEmptyState.d.ts +3 -3
- package/dist/components/MGrid.d.ts +163 -0
- package/dist/components/MGrid.d.ts.map +1 -0
- package/dist/components/MGrid.js +32 -0
- package/dist/components/MGrid.js.map +1 -0
- package/dist/components/MIcon.d.ts +19 -1
- package/dist/components/MIcon.d.ts.map +1 -1
- package/dist/components/MIcon.js +11 -4
- package/dist/components/MIcon.js.map +1 -1
- package/dist/components/MImage.d.ts +61 -5
- package/dist/components/MImage.d.ts.map +1 -1
- package/dist/components/MImage.js +76 -10
- package/dist/components/MImage.js.map +1 -1
- package/dist/components/MInput.d.ts +10 -10
- package/dist/components/MInput.d.ts.map +1 -1
- package/dist/components/MInput.js +7 -0
- package/dist/components/MInput.js.map +1 -1
- package/dist/components/MLink.d.ts +3 -3
- package/dist/components/MLink.d.ts.map +1 -1
- package/dist/components/MLink.js +5 -33
- package/dist/components/MLink.js.map +1 -1
- package/dist/components/MListItem.d.ts +2 -2
- package/dist/components/MProgress.d.ts +3 -3
- package/dist/components/MRadioGroup.d.ts +2 -2
- package/dist/components/MReveal.d.ts +13 -13
- package/dist/components/MScreen.d.ts +9 -0
- package/dist/components/MScreen.d.ts.map +1 -1
- package/dist/components/MScreen.js +37 -24
- package/dist/components/MScreen.js.map +1 -1
- package/dist/components/MSegmentedControl.d.ts +2 -2
- package/dist/components/MSelect.d.ts +2 -2
- package/dist/components/MSelect.d.ts.map +1 -1
- package/dist/components/MSelect.js +6 -0
- package/dist/components/MSelect.js.map +1 -1
- package/dist/components/MSheet.d.ts +15 -6
- package/dist/components/MSheet.d.ts.map +1 -1
- package/dist/components/MSheet.js +65 -27
- package/dist/components/MSheet.js.map +1 -1
- package/dist/components/MSkeleton.d.ts +13 -2
- package/dist/components/MSkeleton.d.ts.map +1 -1
- package/dist/components/MSkeleton.js +10 -4
- package/dist/components/MSkeleton.js.map +1 -1
- package/dist/components/MStack.d.ts +14 -14
- package/dist/components/MStack.d.ts.map +1 -1
- package/dist/components/MStack.js +3 -13
- package/dist/components/MStack.js.map +1 -1
- package/dist/components/MSwitch.d.ts +2 -2
- package/dist/components/MTabs.d.ts +2 -2
- package/dist/components/MText.d.ts +16 -5
- package/dist/components/MText.d.ts.map +1 -1
- package/dist/components/MText.js +8 -3
- package/dist/components/MText.js.map +1 -1
- package/dist/components/configurator.d.ts +3 -3
- package/dist/components/layout.d.ts +55 -44
- package/dist/components/layout.d.ts.map +1 -1
- package/dist/components/layout.js +3 -1
- package/dist/components/layout.js.map +1 -1
- package/dist/content-width.d.ts +4 -0
- package/dist/content-width.d.ts.map +1 -0
- package/dist/content-width.js +62 -0
- package/dist/content-width.js.map +1 -0
- package/dist/date-format.d.ts +6 -0
- package/dist/date-format.d.ts.map +1 -0
- package/dist/date-format.js +23 -0
- package/dist/date-format.js.map +1 -0
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +4 -0
- package/dist/experimental.js.map +1 -1
- package/dist/icons.d.ts +14 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +23 -0
- package/dist/icons.js.map +1 -0
- package/dist/image-effects.d.ts +11 -0
- package/dist/image-effects.d.ts.map +1 -0
- package/dist/image-effects.js +67 -0
- package/dist/image-effects.js.map +1 -0
- package/dist/index.d.ts +11 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -10
- package/dist/index.js.map +1 -1
- package/dist/motion-region.d.ts.map +1 -1
- package/dist/motion-region.js +10 -1
- package/dist/motion-region.js.map +1 -1
- package/dist/motion-surface.d.ts +1 -1
- package/dist/motion-surface.d.ts.map +1 -1
- package/dist/motion-surface.js +45 -2
- package/dist/motion-surface.js.map +1 -1
- package/dist/platform-motion.d.ts +4 -0
- package/dist/platform-motion.d.ts.map +1 -0
- package/dist/platform-motion.js +23 -0
- package/dist/platform-motion.js.map +1 -0
- package/dist/services.d.ts +16 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +18 -0
- package/dist/services.js.map +1 -0
- package/dist/sheet-motion.d.ts +6 -2
- package/dist/sheet-motion.d.ts.map +1 -1
- package/dist/sheet-motion.js +56 -155
- package/dist/sheet-motion.js.map +1 -1
- package/dist/surface-effects.d.ts +4 -0
- package/dist/surface-effects.d.ts.map +1 -0
- package/dist/surface-effects.js +28 -0
- package/dist/surface-effects.js.map +1 -0
- package/dist/use-motion-surface.d.ts +8 -0
- package/dist/use-motion-surface.d.ts.map +1 -0
- package/dist/use-motion-surface.js +33 -0
- package/dist/use-motion-surface.js.map +1 -0
- package/dist/visual-effects.d.ts +4 -0
- package/dist/visual-effects.d.ts.map +1 -0
- package/dist/visual-effects.js +120 -0
- package/dist/visual-effects.js.map +1 -0
- package/package.json +22 -4
- package/src/base.css +992 -0
- package/src/collection-motion.ts +107 -0
- package/src/components/LoadingDecoration.ts +39 -0
- package/src/components/MButton.ts +43 -26
- package/src/components/MCard.ts +3 -1
- package/src/components/MCombobox.ts +10 -0
- package/src/components/MDatePicker.ts +1 -9
- package/src/components/MDialog.ts +78 -4
- package/src/components/MGrid.ts +45 -0
- package/src/components/MIcon.ts +11 -3
- package/src/components/MImage.ts +85 -10
- package/src/components/MInput.ts +9 -3
- package/src/components/MLink.ts +10 -32
- package/src/components/MScreen.ts +26 -2
- package/src/components/MSelect.ts +5 -0
- package/src/components/MSheet.ts +76 -32
- package/src/components/MSkeleton.ts +13 -4
- package/src/components/MStack.ts +3 -20
- package/src/components/MText.ts +11 -2
- package/src/components/layout.ts +3 -0
- package/src/content-width.ts +70 -0
- package/src/date-format.ts +36 -0
- package/src/experimental.ts +8 -0
- package/src/icons.css +7 -0
- package/src/icons.ts +28 -0
- package/src/image-effects.ts +80 -0
- package/src/index.ts +63 -63
- package/src/motion-region.ts +10 -1
- package/src/motion-surface.ts +47 -1
- package/src/platform-motion.ts +36 -0
- package/src/services.ts +33 -0
- package/src/sheet-motion.ts +51 -152
- package/src/style.css +2 -981
- package/src/surface-effects.ts +33 -0
- package/src/use-motion-surface.ts +43 -0
- package/src/visual-effects.ts +139 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { Align, Justify } from '@getcortexlabs/mavis-core/vue';
|
|
2
2
|
export declare function createLayout(name: string, direction: 'row' | 'column', tag?: string): import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
align: {
|
|
4
|
-
type: import("vue").PropType<"
|
|
4
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
5
5
|
} & {
|
|
6
|
-
default: "
|
|
6
|
+
default: "center" | "start" | "end" | "stretch";
|
|
7
7
|
};
|
|
8
8
|
gap: {
|
|
9
9
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -11,9 +11,9 @@ export declare function createLayout(name: string, direction: 'row' | 'column',
|
|
|
11
11
|
default: undefined;
|
|
12
12
|
};
|
|
13
13
|
justify: {
|
|
14
|
-
type: import("vue").PropType<"
|
|
14
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
15
15
|
} & {
|
|
16
|
-
default: "
|
|
16
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
17
17
|
};
|
|
18
18
|
wrap: {
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
@@ -82,9 +82,9 @@ export declare function createLayout(name: string, direction: 'row' | 'column',
|
|
|
82
82
|
[key: string]: any;
|
|
83
83
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
84
|
align: {
|
|
85
|
-
type: import("vue").PropType<"
|
|
85
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
86
86
|
} & {
|
|
87
|
-
default: "
|
|
87
|
+
default: "center" | "start" | "end" | "stretch";
|
|
88
88
|
};
|
|
89
89
|
gap: {
|
|
90
90
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -92,9 +92,9 @@ export declare function createLayout(name: string, direction: 'row' | 'column',
|
|
|
92
92
|
default: undefined;
|
|
93
93
|
};
|
|
94
94
|
justify: {
|
|
95
|
-
type: import("vue").PropType<"
|
|
95
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
96
96
|
} & {
|
|
97
|
-
default: "
|
|
97
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
98
98
|
};
|
|
99
99
|
wrap: {
|
|
100
100
|
type: import("vue").PropType<boolean>;
|
|
@@ -160,15 +160,15 @@ export declare function createLayout(name: string, direction: 'row' | 'column',
|
|
|
160
160
|
default: undefined;
|
|
161
161
|
};
|
|
162
162
|
}>> & Readonly<{}>, {
|
|
163
|
-
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
164
|
-
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
165
|
-
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
166
163
|
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
164
|
+
id: string;
|
|
165
|
+
shrink: number;
|
|
167
166
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
168
167
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
168
|
+
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
169
|
+
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
170
|
+
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
169
171
|
grow: number;
|
|
170
|
-
shrink: number;
|
|
171
|
-
id: string;
|
|
172
172
|
accessibilityLabel: string;
|
|
173
173
|
accessibilityHidden: boolean;
|
|
174
174
|
align: "center" | "stretch" | "start" | "end";
|
|
@@ -178,9 +178,9 @@ export declare function createLayout(name: string, direction: 'row' | 'column',
|
|
|
178
178
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
179
179
|
export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
180
180
|
align: {
|
|
181
|
-
type: import("vue").PropType<"
|
|
181
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
182
182
|
} & {
|
|
183
|
-
default: "
|
|
183
|
+
default: "center" | "start" | "end" | "stretch";
|
|
184
184
|
};
|
|
185
185
|
gap: {
|
|
186
186
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -188,9 +188,9 @@ export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
188
188
|
default: undefined;
|
|
189
189
|
};
|
|
190
190
|
justify: {
|
|
191
|
-
type: import("vue").PropType<"
|
|
191
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
192
192
|
} & {
|
|
193
|
-
default: "
|
|
193
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
194
194
|
};
|
|
195
195
|
wrap: {
|
|
196
196
|
type: import("vue").PropType<boolean>;
|
|
@@ -259,9 +259,9 @@ export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
259
259
|
[key: string]: any;
|
|
260
260
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
261
261
|
align: {
|
|
262
|
-
type: import("vue").PropType<"
|
|
262
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
263
263
|
} & {
|
|
264
|
-
default: "
|
|
264
|
+
default: "center" | "start" | "end" | "stretch";
|
|
265
265
|
};
|
|
266
266
|
gap: {
|
|
267
267
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -269,9 +269,9 @@ export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
269
269
|
default: undefined;
|
|
270
270
|
};
|
|
271
271
|
justify: {
|
|
272
|
-
type: import("vue").PropType<"
|
|
272
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
273
273
|
} & {
|
|
274
|
-
default: "
|
|
274
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
275
275
|
};
|
|
276
276
|
wrap: {
|
|
277
277
|
type: import("vue").PropType<boolean>;
|
|
@@ -337,15 +337,15 @@ export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
337
337
|
default: undefined;
|
|
338
338
|
};
|
|
339
339
|
}>> & Readonly<{}>, {
|
|
340
|
-
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
341
|
-
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
342
|
-
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
343
340
|
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
341
|
+
id: string;
|
|
342
|
+
shrink: number;
|
|
344
343
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
345
344
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
345
|
+
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
346
|
+
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
347
|
+
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
346
348
|
grow: number;
|
|
347
|
-
shrink: number;
|
|
348
|
-
id: string;
|
|
349
349
|
accessibilityLabel: string;
|
|
350
350
|
accessibilityHidden: boolean;
|
|
351
351
|
align: "center" | "stretch" | "start" | "end";
|
|
@@ -355,9 +355,9 @@ export declare const MRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
355
355
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
356
356
|
export declare const MColumn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
357
357
|
align: {
|
|
358
|
-
type: import("vue").PropType<"
|
|
358
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
359
359
|
} & {
|
|
360
|
-
default: "
|
|
360
|
+
default: "center" | "start" | "end" | "stretch";
|
|
361
361
|
};
|
|
362
362
|
gap: {
|
|
363
363
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -365,9 +365,9 @@ export declare const MColumn: import("vue").DefineComponent<import("vue").Extrac
|
|
|
365
365
|
default: undefined;
|
|
366
366
|
};
|
|
367
367
|
justify: {
|
|
368
|
-
type: import("vue").PropType<"
|
|
368
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
369
369
|
} & {
|
|
370
|
-
default: "
|
|
370
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
371
371
|
};
|
|
372
372
|
wrap: {
|
|
373
373
|
type: import("vue").PropType<boolean>;
|
|
@@ -436,9 +436,9 @@ export declare const MColumn: import("vue").DefineComponent<import("vue").Extrac
|
|
|
436
436
|
[key: string]: any;
|
|
437
437
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
438
438
|
align: {
|
|
439
|
-
type: import("vue").PropType<"
|
|
439
|
+
type: import("vue").PropType<"center" | "start" | "end" | "stretch">;
|
|
440
440
|
} & {
|
|
441
|
-
default: "
|
|
441
|
+
default: "center" | "start" | "end" | "stretch";
|
|
442
442
|
};
|
|
443
443
|
gap: {
|
|
444
444
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
|
|
@@ -446,9 +446,9 @@ export declare const MColumn: import("vue").DefineComponent<import("vue").Extrac
|
|
|
446
446
|
default: undefined;
|
|
447
447
|
};
|
|
448
448
|
justify: {
|
|
449
|
-
type: import("vue").PropType<"
|
|
449
|
+
type: import("vue").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
450
450
|
} & {
|
|
451
|
-
default: "
|
|
451
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
452
452
|
};
|
|
453
453
|
wrap: {
|
|
454
454
|
type: import("vue").PropType<boolean>;
|
|
@@ -514,15 +514,15 @@ export declare const MColumn: import("vue").DefineComponent<import("vue").Extrac
|
|
|
514
514
|
default: undefined;
|
|
515
515
|
};
|
|
516
516
|
}>> & Readonly<{}>, {
|
|
517
|
-
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
518
|
-
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
519
|
-
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
520
517
|
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
518
|
+
id: string;
|
|
519
|
+
shrink: number;
|
|
521
520
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
522
521
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
522
|
+
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
523
|
+
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
524
|
+
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
523
525
|
grow: number;
|
|
524
|
-
shrink: number;
|
|
525
|
-
id: string;
|
|
526
526
|
accessibilityLabel: string;
|
|
527
527
|
accessibilityHidden: boolean;
|
|
528
528
|
align: "center" | "stretch" | "start" | "end";
|
|
@@ -531,6 +531,11 @@ export declare const MColumn: import("vue").DefineComponent<import("vue").Extrac
|
|
|
531
531
|
justify: "center" | "start" | "end" | "between" | "around";
|
|
532
532
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
533
533
|
export declare const MBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
534
|
+
motionSurface: {
|
|
535
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core/experimental").MotionSurface>;
|
|
536
|
+
} & {
|
|
537
|
+
default: undefined;
|
|
538
|
+
};
|
|
534
539
|
motionRegion: {
|
|
535
540
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core/experimental").MotionRegion>;
|
|
536
541
|
} & {
|
|
@@ -597,6 +602,11 @@ export declare const MBox: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
597
602
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
598
603
|
[key: string]: any;
|
|
599
604
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
605
|
+
motionSurface: {
|
|
606
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core/experimental").MotionSurface>;
|
|
607
|
+
} & {
|
|
608
|
+
default: undefined;
|
|
609
|
+
};
|
|
600
610
|
motionRegion: {
|
|
601
611
|
type: import("vue").PropType<import("@getcortexlabs/mavis-core/experimental").MotionRegion>;
|
|
602
612
|
} & {
|
|
@@ -661,17 +671,18 @@ export declare const MBox: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
661
671
|
default: undefined;
|
|
662
672
|
};
|
|
663
673
|
}>> & Readonly<{}>, {
|
|
664
|
-
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
665
|
-
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
666
|
-
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
667
674
|
radius: number | import("@getcortexlabs/mavis-core").Radius;
|
|
675
|
+
id: string;
|
|
676
|
+
shrink: number;
|
|
668
677
|
width: import("@getcortexlabs/mavis-core").Dimension;
|
|
669
678
|
height: import("@getcortexlabs/mavis-core").Dimension;
|
|
679
|
+
padding: import("@getcortexlabs/mavis-core").Spacing;
|
|
680
|
+
paddingX: import("@getcortexlabs/mavis-core").Spacing;
|
|
681
|
+
paddingY: import("@getcortexlabs/mavis-core").Spacing;
|
|
670
682
|
grow: number;
|
|
671
|
-
shrink: number;
|
|
672
|
-
id: string;
|
|
673
683
|
accessibilityLabel: string;
|
|
674
684
|
accessibilityHidden: boolean;
|
|
685
|
+
motionSurface: import("@getcortexlabs/mavis-core/experimental").MotionSurface;
|
|
675
686
|
motionRegion: import("@getcortexlabs/mavis-core/experimental").MotionRegion;
|
|
676
687
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
677
688
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"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boxStyle, webAttrs } from '../style.js';
|
|
5
5
|
import { useMotionRegion } from '../motion-region.js';
|
|
6
|
+
import { useMotionSurface } from '../use-motion-surface.js';
|
|
6
7
|
const alignment = {
|
|
7
8
|
start: 'flex-start',
|
|
8
9
|
center: 'center',
|
|
@@ -47,12 +48,13 @@ export const MBox = defineComponent({
|
|
|
47
48
|
props: motionBoxProps,
|
|
48
49
|
setup(props, { attrs, slots }) {
|
|
49
50
|
const region = useMotionRegion(() => props.motionRegion);
|
|
51
|
+
const surface = useMotionSurface(() => props.motionSurface);
|
|
50
52
|
const { theme } = useMavisTheme();
|
|
51
53
|
const shrink = useLayoutShrink();
|
|
52
54
|
return () => h('div', mergeProps({
|
|
53
55
|
class: 'm-box',
|
|
54
56
|
style: { ...boxStyle(theme.value, props, shrink.value), display: 'grid' },
|
|
55
|
-
}, webAttrs({ ...attrs, ...viewAttrs(props) }), region), slots.default?.());
|
|
57
|
+
}, webAttrs({ ...attrs, ...viewAttrs(props) }), region, surface), slots.default?.());
|
|
56
58
|
},
|
|
57
59
|
});
|
|
58
60
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AAAA,O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AA;QAChC,OAAO,GAAG,EAAE,CACV,CAAC,CACC,KAAK,EACL,UAAU,CACR;YACE,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;SAC1E,EACD,QAAQ,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,EAC3C,MAAM,EACN,OAAO,CACR,EACD,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB,CAAA;IACL,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ShallowRef } from 'vue';
|
|
2
|
+
/** Width-only observation: layout updates run outside ResizeObserver's delivery loop. */
|
|
3
|
+
export declare function useContentWidth(element: ShallowRef<HTMLElement | undefined>, enabled: () => boolean): ShallowRef<number | undefined, number | undefined>;
|
|
4
|
+
//# sourceMappingURL=content-width.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-width.d.ts","sourceRoot":"","sources":["../src/content-width.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,KAAK,CAAA;AAEZ,yFAAyF;AACzF,wBAAgB,eAAe,CAC7B,OAAO,EAAE,UAAU,CAAC,WAAW,GAAG,SAAS,CAAC,EAC5C,OAAO,EAAE,MAAM,OAAO,sDAwDvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { onActivated, onBeforeUnmount, onDeactivated, onMounted, shallowRef, watch, } from 'vue';
|
|
2
|
+
/** Width-only observation: layout updates run outside ResizeObserver's delivery loop. */
|
|
3
|
+
export function useContentWidth(element, enabled) {
|
|
4
|
+
const width = shallowRef();
|
|
5
|
+
let observer;
|
|
6
|
+
let frame;
|
|
7
|
+
let measured;
|
|
8
|
+
let mounted = false;
|
|
9
|
+
function stop() {
|
|
10
|
+
observer?.disconnect();
|
|
11
|
+
observer = undefined;
|
|
12
|
+
if (frame !== undefined)
|
|
13
|
+
cancelAnimationFrame(frame);
|
|
14
|
+
frame = undefined;
|
|
15
|
+
measured = undefined;
|
|
16
|
+
}
|
|
17
|
+
function start() {
|
|
18
|
+
if (!mounted ||
|
|
19
|
+
observer ||
|
|
20
|
+
!enabled() ||
|
|
21
|
+
!element.value ||
|
|
22
|
+
typeof ResizeObserver === 'undefined')
|
|
23
|
+
return;
|
|
24
|
+
observer = new ResizeObserver(([entry]) => {
|
|
25
|
+
if (!mounted || !enabled() || !entry || entry.contentRect.width === measured)
|
|
26
|
+
return;
|
|
27
|
+
measured = entry.contentRect.width;
|
|
28
|
+
if (frame !== undefined)
|
|
29
|
+
cancelAnimationFrame(frame);
|
|
30
|
+
frame = requestAnimationFrame(() => {
|
|
31
|
+
frame = undefined;
|
|
32
|
+
width.value = measured;
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
observer.observe(element.value);
|
|
36
|
+
}
|
|
37
|
+
onMounted(() => {
|
|
38
|
+
mounted = true;
|
|
39
|
+
start();
|
|
40
|
+
});
|
|
41
|
+
onActivated(() => {
|
|
42
|
+
mounted = true;
|
|
43
|
+
start();
|
|
44
|
+
});
|
|
45
|
+
onDeactivated(() => {
|
|
46
|
+
mounted = false;
|
|
47
|
+
stop();
|
|
48
|
+
});
|
|
49
|
+
onBeforeUnmount(() => {
|
|
50
|
+
mounted = false;
|
|
51
|
+
stop();
|
|
52
|
+
});
|
|
53
|
+
watch(enabled, () => {
|
|
54
|
+
stop();
|
|
55
|
+
if (enabled())
|
|
56
|
+
start();
|
|
57
|
+
else
|
|
58
|
+
width.value = undefined;
|
|
59
|
+
});
|
|
60
|
+
return width;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=content-width.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-width.js","sourceRoot":"","sources":["../src/content-width.ts"],"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C,OAAO,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC;IACD,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,IAAI,CAAA;QACd,KAAK,EAAE,CAAA;IACT,CAAC,CAAC,CAAA;IACF,WAAW,CAAC,GAAG,EAAE;QACf,OAAO,GAAG,IAAI,CAAA;QACd,KAAK,EAAE,CAAA;IACT,CAAC,CAAC,CAAA;IACF,aAAa,CAAC,GAAG,EAAE;QACjB,OAAO,GAAG,KAAK,CAAA;QACf,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IACF,eAAe,CAAC,GAAG,EAAE;QACnB,OAAO,GAAG,KAAK,CAAA;QACf,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IACF,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE;QAClB,IAAI,EAAE,CAAA;QACN,IAAI,OAAO,EAAE;YAAE,KAAK,EAAE,CAAA;;YACjB,KAAK,CAAC,KAAK,GAAG,SAAS,CAAA;IAC9B,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DateTimeValue, type DateTimeFormatOptions } from '@getcortexlabs/mavis-core';
|
|
2
|
+
export type { DateTimeValue, DateTimeFormatOptions, DateTimeStyle } from '@getcortexlabs/mavis-core';
|
|
3
|
+
export declare function formatDateTime(value: DateTimeValue, options: DateTimeFormatOptions): string;
|
|
4
|
+
/** Explicit conversion from an instant to a Gregorian calendar day in a named zone. */
|
|
5
|
+
export declare function dateTimeToCivilDate(value: DateTimeValue, options: Pick<DateTimeFormatOptions, 'timeZone'>): `${number}-${number}-${number}`;
|
|
6
|
+
//# sourceMappingURL=date-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-format.d.ts","sourceRoot":"","sources":["../src/date-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC3B,MAAM,2BAA2B,CAAA;AAClC,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEpG,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAK3F;AAED,uFAAuF;AACvF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,mCAgBjD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { civilDate, dateTimeMilliseconds, resolveDateTimeOptions, } from '@getcortexlabs/mavis-core';
|
|
2
|
+
export function formatDateTime(value, options) {
|
|
3
|
+
const { locale, ...format } = resolveDateTimeOptions(options);
|
|
4
|
+
return new Intl.DateTimeFormat(locale, { ...format, calendar: 'gregory' }).format(dateTimeMilliseconds(value));
|
|
5
|
+
}
|
|
6
|
+
/** Explicit conversion from an instant to a Gregorian calendar day in a named zone. */
|
|
7
|
+
export function dateTimeToCivilDate(value, options) {
|
|
8
|
+
const { timeZone } = resolveDateTimeOptions(options);
|
|
9
|
+
const parts = new Intl.DateTimeFormat('en-US', {
|
|
10
|
+
timeZone,
|
|
11
|
+
calendar: 'gregory',
|
|
12
|
+
numberingSystem: 'latn',
|
|
13
|
+
year: 'numeric',
|
|
14
|
+
month: '2-digit',
|
|
15
|
+
day: '2-digit',
|
|
16
|
+
era: 'short',
|
|
17
|
+
}).formatToParts(dateTimeMilliseconds(value));
|
|
18
|
+
const part = (type) => parts.find((part) => part.type === type)?.value;
|
|
19
|
+
if (part('era') !== 'AD')
|
|
20
|
+
throw new RangeError('Civil dates support years 0001–9999.');
|
|
21
|
+
return civilDate(`${part('year').padStart(4, '0')}-${part('month')}-${part('day')}`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=date-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-format.js","source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AI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;AACvF,CAAC"}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { WebMotionScope, WebMotionResource } from '@rafaelaugusto/jolt/web';
|
|
2
2
|
import { type MotionRegion } from '@getcortexlabs/mavis-core/experimental';
|
|
3
|
+
/** Call from an explicit application action; a request does not prove physical vibration. */
|
|
4
|
+
export declare function requestMavisWebHaptic(region: MotionRegion, style: import('@rafaelaugusto/jolt/web').HapticStyle): import('@rafaelaugusto/jolt/web').WebHapticResult;
|
|
3
5
|
/**
|
|
4
6
|
* Web-only composition for application HTML/SVG inside a declared MBox region.
|
|
5
7
|
* Borrows the very same Jolt context as the region's component press surfaces.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAGvF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,iBAAiB,GAC/E,MAAM,IAAI,CAeZ"}
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAGvF,6FAA6F;AAC7F,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,OAAO,yBAAyB,EAAE,WAAW,GACnD,OAAO,yBAAyB,EAAE,eAAe,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,iBAAiB,GAC/E,MAAM,IAAI,CAeZ"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { getCurrentScope, onScopeDispose } from 'vue';
|
|
2
2
|
import { regionState } from '@getcortexlabs/mavis-core/experimental';
|
|
3
3
|
import { webRegion } from './motion-region.js';
|
|
4
|
+
/** Call from an explicit application action; a request does not prove physical vibration. */
|
|
5
|
+
export function requestMavisWebHaptic(region, style) {
|
|
6
|
+
return webRegion(regionState(region).adapter).runtime.haptic(style);
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* Web-only composition for application HTML/SVG inside a declared MBox region.
|
|
6
10
|
* Borrows the very same Jolt context as the region's component press surfaces.
|
package/dist/experimental.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAErD,OAAO,EAAE,WAAW,EAAqB,MAAM,wCAAwC,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAAoB,EACpB,KAAgF;IAEhF,IAAI,CAAC,eAAe,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;IACxF,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE;QACnC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;QAClE,MAAM,KAA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CAAA;QAC7B,IAAI,CAAC;YACH,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAA;QAC5C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,OAAO,EAAE,CAAA;YACf,MAAM,KAAK,CAAA;QACb,CAAC;QACD,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,CAAA;IAC9B,CAAC,CAAC,CAAA;IACF,cAAc,CAAC,IAAI,CAAC,CAAA;IACpB,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Component, type InjectionKey, type VNode } from 'vue';
|
|
2
|
+
import { type IconName } from '@getcortexlabs/mavis-core';
|
|
3
|
+
export interface MavisIconOptions {
|
|
4
|
+
/** Import only the SVG components the application uses. Missing entries use iconFallback. */
|
|
5
|
+
icons?: Partial<Record<IconName, Component>>;
|
|
6
|
+
iconFallback?: 'font' | 'none';
|
|
7
|
+
}
|
|
8
|
+
export declare const iconOptionsKey: InjectionKey<MavisIconOptions>;
|
|
9
|
+
/** One app-scoped resolver shared by standalone icons and control adornments. */
|
|
10
|
+
export declare function useIconContent(): (name: IconName, size: number) => {
|
|
11
|
+
content: string | VNode;
|
|
12
|
+
fontFamily?: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,KAAK,EAAE,MAAM,KAAK,CAAA;AAC9E,OAAO,EAA6B,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,6FAA6F;IAC7F,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAA;IAC5C,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC/B;AACD,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,gBAAgB,CAAyB,CAAA;AAEnF,iFAAiF;AACjF,wBAAgB,cAAc,KAEpB,MAAM,QAAQ,EAAE,MAAM,MAAM,KAAG;IAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAcxF"}
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h, inject } from 'vue';
|
|
2
|
+
import { iconFontFamily, iconGlyph } from '@getcortexlabs/mavis-core';
|
|
3
|
+
export const iconOptionsKey = Symbol('mavis.icons');
|
|
4
|
+
/** One app-scoped resolver shared by standalone icons and control adornments. */
|
|
5
|
+
export function useIconContent() {
|
|
6
|
+
const options = inject(iconOptionsKey, undefined);
|
|
7
|
+
return (name, size) => {
|
|
8
|
+
const component = options?.icons?.[name];
|
|
9
|
+
if (component)
|
|
10
|
+
return {
|
|
11
|
+
content: h(component, {
|
|
12
|
+
width: size,
|
|
13
|
+
height: size,
|
|
14
|
+
'aria-hidden': 'true',
|
|
15
|
+
focusable: 'false',
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
if (options?.iconFallback === 'none')
|
|
19
|
+
return { content: '' };
|
|
20
|
+
return { content: iconGlyph(name), fontFamily: iconFontFamily };
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,EAAiD,MAAM,KAAK,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAiB,MAAM,2BAA2B,CAAA;AAOpF,MAAM,CAAC,MAAM,cAAc,GAAmC,MAAM,CAAC,aAAa,CAAC,CAAA;AAEnF,iFAAiF;AACjF,MAAM,UAAU,cAAc;IAC5B,MAAM,OAAO,GAAG,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,CAAA;IACjD,OAAO,CAAC,IAAc,EAAE,IAAY,EAAoD,EAAE;QACxF,MAAM,SAAS,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,CAAA;QACxC,IAAI,SAAS;YACX,OAAO;gBACL,OAAO,EAAE,CAAC,CAAC,SAAS,EAAE;oBACpB,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,IAAI;oBACZ,aAAa,EAAE,MAAM;oBACrB,SAAS,EAAE,OAAO;iBACnB,CAAC;aACH,CAAA;QACH,IAAI,OAAO,EAAE,YAAY,KAAK,MAAM;YAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAA;QAC5D,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA;IACjE,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MotionImageEffectName, MotionImageEffectOptions, MotionPlayback } from '@getcortexlabs/mavis-core/experimental';
|
|
2
|
+
import type { WebRuntime, WebMotionScope } from '@rafaelaugusto/jolt/web';
|
|
3
|
+
type Presentation = {
|
|
4
|
+
current(): boolean;
|
|
5
|
+
commit(src: string): Promise<boolean>;
|
|
6
|
+
};
|
|
7
|
+
export declare function registerMotionImage(target: HTMLImageElement, presentation: Presentation): () => void;
|
|
8
|
+
export declare function loadedMotionImage(target: HTMLElement): HTMLImageElement;
|
|
9
|
+
export declare function webImageEffect(owner: WebRuntime | WebMotionScope, target: HTMLElement, name: MotionImageEffectName, options?: MotionImageEffectOptions, live?: () => boolean): Promise<MotionPlayback>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=image-effects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-effects.d.ts","sourceRoot":"","sources":["../src/image-effects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,YAAY,GAAG;IAClB,OAAO,IAAI,OAAO,CAAA;IAClB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACtC,CAAA;AAGD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,cAKvF;AACD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,gBAAgB,CAKvE;AACD,wBAAsB,cAAc,CAClC,KAAK,EAAE,UAAU,GAAG,cAAc,EAClC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,GAAE,wBAA6B,EACtC,IAAI,GAAE,MAAM,OAAoB,2BAiDjC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const images = new WeakMap();
|
|
2
|
+
const preparations = new WeakMap();
|
|
3
|
+
export function registerMotionImage(target, presentation) {
|
|
4
|
+
images.set(target, presentation);
|
|
5
|
+
return () => {
|
|
6
|
+
if (images.get(target) === presentation)
|
|
7
|
+
images.delete(target);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function loadedMotionImage(target) {
|
|
11
|
+
const image = target;
|
|
12
|
+
if (!images.has(image) || !image.complete || !image.naturalWidth)
|
|
13
|
+
throw new TypeError('Use the ready motionSurface of MImage for pixel effects.');
|
|
14
|
+
return image;
|
|
15
|
+
}
|
|
16
|
+
export async function webImageEffect(owner, target, name, options = {}, live = () => true) {
|
|
17
|
+
const image = loadedMotionImage(target), presentation = images.get(image);
|
|
18
|
+
const { to, ...rest } = options;
|
|
19
|
+
if (to !== undefined && image.srcset?.trim())
|
|
20
|
+
throw new TypeError('Dissolve source replacement requires an image without srcset.');
|
|
21
|
+
const preparation = {};
|
|
22
|
+
preparations.set(image, preparation);
|
|
23
|
+
let destination;
|
|
24
|
+
if (to !== undefined) {
|
|
25
|
+
if (name !== 'dissolve' || !to.trim())
|
|
26
|
+
throw new TypeError('Only dissolve accepts a nonempty destination source.');
|
|
27
|
+
destination = new image.ownerDocument.defaultView.Image();
|
|
28
|
+
destination.crossOrigin = image.crossOrigin ?? 'anonymous';
|
|
29
|
+
destination.src = to;
|
|
30
|
+
await destination.decode();
|
|
31
|
+
}
|
|
32
|
+
if (!live() ||
|
|
33
|
+
preparations.get(image) !== preparation ||
|
|
34
|
+
!presentation.current() ||
|
|
35
|
+
images.get(image) !== presentation ||
|
|
36
|
+
!image.isConnected)
|
|
37
|
+
throw new Error('Image presentation changed while preparing the effect.');
|
|
38
|
+
const previous = image.src;
|
|
39
|
+
const raw = owner.imageEffect(image, name, {
|
|
40
|
+
...rest,
|
|
41
|
+
...(destination ? { to: destination } : {}),
|
|
42
|
+
});
|
|
43
|
+
const finished = raw.finished.then(async (success) => {
|
|
44
|
+
if (!success || !to || raw.progress !== 1)
|
|
45
|
+
return success;
|
|
46
|
+
if (!presentation.current() || images.get(image) !== presentation)
|
|
47
|
+
return false;
|
|
48
|
+
if (!live()) {
|
|
49
|
+
if (image.src === destination?.src)
|
|
50
|
+
image.src = previous;
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return presentation.commit(to);
|
|
54
|
+
});
|
|
55
|
+
return new Proxy(raw, {
|
|
56
|
+
get(target, key) {
|
|
57
|
+
if (key === 'then')
|
|
58
|
+
return undefined;
|
|
59
|
+
if (key === 'finished')
|
|
60
|
+
return finished;
|
|
61
|
+
const value = Reflect.get(target, key, target);
|
|
62
|
+
return typeof value === 'function' ? value.bind(target) : value;
|
|
63
|
+
},
|
|
64
|
+
set: (target, key, value) => Reflect.set(target, key, value, target),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=image-effects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-effects.js","sourceRoot":"","sources":["../src/image-effects.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,GAAG,IAAI,OAAO,EAAkC,CAAA;AAC5D,MAAM,YAAY,GAAG,IAAI,OAAO,EAA4B,CAAA;AAC5D,MAAM,UAAU,mBAAmB,CAAC,MAAwB,EAAE,YAA0B;IACtF,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAChC,OAAO,GAAG,EAAE;QACV,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,YAAY;YAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAChE,CAAC,CAAA;AACH,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,MAAM,KAAK,GAAG,MAA0B,CAAA;IACxC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,YAAY;QAC9D,MAAM,IAAI,SAAS,CAAC,0DAA0D,CAAC,CAAA;IACjF,OAAO,KAAK,CAAA;AACd,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAAkC,EAClC,MAAmB,EACnB,IAA2B,EAC3B,UAAoC,EAAE,EACtC,OAAsB,GAAG,EAAE,CAAC,IAAI;IAEhC,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,CAAC,EACrC,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAE,CAAA;IACnC,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IAC/B,IAAI,EAAE,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,EAAE,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