@getcortexlabs/mavis-core 0.1.0-rc.13 → 0.1.0-rc.15
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 +2 -2
- package/dist/capabilities.d.ts +2317 -21
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +234 -9
- package/dist/capabilities.js.map +1 -1
- package/dist/collections.d.ts +2 -0
- package/dist/collections.d.ts.map +1 -1
- package/dist/collections.js +9 -0
- package/dist/collections.js.map +1 -1
- package/dist/contracts.d.ts +6 -6
- package/dist/date.d.ts.map +1 -1
- package/dist/date.js +1 -1
- package/dist/date.js.map +1 -1
- package/dist/experimental-regions.d.ts +17 -2
- package/dist/experimental-regions.d.ts.map +1 -1
- package/dist/experimental-regions.js +40 -7
- package/dist/experimental-regions.js.map +1 -1
- package/dist/experimental.d.ts +25 -4
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +75 -7
- package/dist/experimental.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/macos-capabilities.generated.d.ts +1738 -0
- package/dist/macos-capabilities.generated.d.ts.map +1 -0
- package/dist/macos-capabilities.generated.js +4191 -0
- package/dist/macos-capabilities.generated.js.map +1 -0
- package/dist/motion.d.ts +1 -1
- package/dist/section-scroll.d.ts +2 -0
- package/dist/section-scroll.d.ts.map +1 -1
- package/dist/section-scroll.js +2 -0
- package/dist/section-scroll.js.map +1 -1
- package/dist/vue/advanced-collections.d.ts +16 -16
- package/dist/vue/advanced-collections.d.ts.map +1 -1
- package/dist/vue/advanced-collections.js +24 -3
- package/dist/vue/advanced-collections.js.map +1 -1
- package/dist/vue/animated-text.d.ts +4 -4
- package/dist/vue/chart.d.ts +5 -5
- package/dist/vue/chart.d.ts.map +1 -1
- package/dist/vue/chart.js +28 -7
- package/dist/vue/chart.js.map +1 -1
- package/dist/vue/combobox.d.ts.map +1 -1
- package/dist/vue/combobox.js +13 -11
- package/dist/vue/combobox.js.map +1 -1
- package/dist/vue/command-palette.d.ts +5 -5
- package/dist/vue/component-props.d.ts +27 -23
- package/dist/vue/component-props.d.ts.map +1 -1
- package/dist/vue/composer.d.ts +10 -10
- package/dist/vue/configurator.d.ts +15 -15
- package/dist/vue/creative-controls.d.ts +10 -10
- package/dist/vue/dashboard-charts.d.ts +6 -6
- package/dist/vue/dashboard-effects.d.ts +6 -6
- package/dist/vue/date-picker.d.ts +48 -48
- package/dist/vue/discovery-controls.d.ts +7 -7
- package/dist/vue/image-cropper.d.ts +8 -8
- package/dist/vue/image-cropper.d.ts.map +1 -1
- package/dist/vue/kanban.d.ts +25 -7
- package/dist/vue/kanban.d.ts.map +1 -1
- package/dist/vue/kanban.js +73 -44
- package/dist/vue/kanban.js.map +1 -1
- package/dist/vue/list-motion.d.ts.map +1 -1
- package/dist/vue/list-motion.js +24 -7
- package/dist/vue/list-motion.js.map +1 -1
- package/dist/vue/marquee.d.ts +4 -4
- package/dist/vue/menu.d.ts +4 -4
- package/dist/vue/navigation-props.d.ts +5 -0
- package/dist/vue/navigation-props.d.ts.map +1 -1
- package/dist/vue/navigation-props.js +2 -0
- package/dist/vue/navigation-props.js.map +1 -1
- package/dist/vue/number-flow.d.ts +3 -3
- package/dist/vue/platform.d.ts +7 -1
- package/dist/vue/platform.d.ts.map +1 -1
- package/dist/vue/platform.js +5 -4
- package/dist/vue/platform.js.map +1 -1
- package/dist/vue/props.d.ts +46 -46
- package/dist/vue/reveal-state.d.ts +1 -1
- package/dist/vue/scheduler.d.ts +10 -10
- package/dist/vue/scroll-frame.d.ts +7 -6
- package/dist/vue/scroll-frame.d.ts.map +1 -1
- package/dist/vue/scroll-frame.js +55 -39
- package/dist/vue/scroll-frame.js.map +1 -1
- package/dist/vue/speed-dial.d.ts +3 -3
- package/dist/vue/swipe-actions.d.ts +3 -3
- package/dist/vue/swipe-deck.d.ts +3 -3
- package/dist/vue/theme-provider.d.ts +1 -1
- package/dist/vue/time-picker.d.ts +20 -20
- package/dist/vue/tour.d.ts +3 -3
- package/dist/vue/tree-view.d.ts +3 -3
- package/dist/vue/wayfinding-controls.d.ts +1 -1
- package/dist/vue/workflows.d.ts +5 -5
- package/package.json +1 -1
- package/src/capabilities.ts +241 -10
- package/src/collections.ts +22 -0
- package/src/date.ts +2 -1
- package/src/experimental-regions.ts +57 -9
- package/src/experimental.ts +117 -12
- package/src/index.ts +6 -1
- package/src/macos-capabilities.generated.ts +4190 -0
- package/src/section-scroll.ts +4 -0
- package/src/vue/advanced-collections.ts +29 -7
- package/src/vue/chart.ts +34 -9
- package/src/vue/combobox.ts +15 -14
- package/src/vue/kanban.ts +99 -59
- package/src/vue/list-motion.ts +23 -7
- package/src/vue/navigation-props.ts +2 -0
- package/src/vue/platform.ts +13 -5
- package/src/vue/scroll-frame.ts +70 -49
package/src/vue/scroll-frame.ts
CHANGED
|
@@ -38,6 +38,7 @@ export const scrollFrameHostProps = {
|
|
|
38
38
|
type UI = {
|
|
39
39
|
Frame: Component
|
|
40
40
|
Box: Component
|
|
41
|
+
Clip?: Component
|
|
41
42
|
Row: Component
|
|
42
43
|
Column: Component
|
|
43
44
|
Text: Component
|
|
@@ -258,56 +259,76 @@ export function createScrollComponents(ui: UI, platform: 'web' | 'native') {
|
|
|
258
259
|
overlay: () => [
|
|
259
260
|
h(
|
|
260
261
|
ui.Box,
|
|
261
|
-
{ motionSurface: header, height: expanded(), style: overlay },
|
|
262
262
|
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
263
|
+
motionSurface: header,
|
|
264
|
+
height: expanded(),
|
|
265
|
+
style: platform === 'web' ? { ...overlay, overflow: 'hidden' } : overlay,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
default: () => {
|
|
269
|
+
const layers = [
|
|
270
|
+
h(
|
|
271
|
+
ui.Box,
|
|
272
|
+
{
|
|
273
|
+
motionSurface: artwork,
|
|
274
|
+
height: expanded(),
|
|
275
|
+
backgroundColor: theme.value.colors.surface,
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
default: () =>
|
|
279
|
+
props.image
|
|
280
|
+
? h(ui.Image, {
|
|
281
|
+
src: props.image,
|
|
282
|
+
alt: '',
|
|
283
|
+
decorative: true,
|
|
284
|
+
height: expanded(),
|
|
285
|
+
fit: 'cover',
|
|
286
|
+
})
|
|
287
|
+
: slots.artwork?.(),
|
|
288
|
+
},
|
|
289
|
+
),
|
|
290
|
+
h(
|
|
291
|
+
ui.Column,
|
|
292
|
+
{
|
|
293
|
+
padding: 'lg',
|
|
294
|
+
justify: 'end',
|
|
295
|
+
gap: 'xs',
|
|
296
|
+
// Artwork has a transform and therefore its own stacking context.
|
|
297
|
+
// Keep the whole text group above it, including the static subtitle.
|
|
298
|
+
...(platform === 'web'
|
|
299
|
+
? { style: { position: 'relative', zIndex: 1 } }
|
|
300
|
+
: {}),
|
|
301
|
+
...(props.image ? { backgroundColor: '#00000080' } : {}),
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
default: () => [
|
|
305
|
+
h(ui.Text, {
|
|
306
|
+
motionSurface: title,
|
|
307
|
+
text: label,
|
|
308
|
+
variant: props.refreshMode ? 'heading' : 'title',
|
|
309
|
+
...(props.image ? { style: { color: '#ffffff' } } : {}),
|
|
310
|
+
}),
|
|
311
|
+
props.subtitle
|
|
312
|
+
? h(ui.Text, {
|
|
313
|
+
text: props.subtitle,
|
|
314
|
+
tone: props.image ? undefined : 'muted',
|
|
315
|
+
...(props.image ? { style: { color: '#ffffff' } } : {}),
|
|
316
|
+
})
|
|
317
|
+
: null,
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
),
|
|
321
|
+
]
|
|
322
|
+
// Jolt owns the moving header and clears its iOS clipping. Keep
|
|
323
|
+
// the component's artwork bounds on a separate retained layer.
|
|
324
|
+
return platform === 'native'
|
|
325
|
+
? h(
|
|
326
|
+
ui.Clip ?? ui.Box,
|
|
327
|
+
{ height: expanded(), clipToBounds: true },
|
|
328
|
+
{ default: () => layers },
|
|
329
|
+
)
|
|
330
|
+
: layers
|
|
331
|
+
},
|
|
311
332
|
},
|
|
312
333
|
),
|
|
313
334
|
h(
|