@getcortexlabs/mavis-core 0.1.0-alpha.10 → 0.1.0-alpha.11

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 (100) hide show
  1. package/dist/capabilities.d.ts +7 -7
  2. package/dist/capabilities.d.ts.map +1 -1
  3. package/dist/capabilities.js +16 -4
  4. package/dist/capabilities.js.map +1 -1
  5. package/dist/chart.d.ts +40 -0
  6. package/dist/chart.d.ts.map +1 -0
  7. package/dist/chart.js +73 -0
  8. package/dist/chart.js.map +1 -0
  9. package/dist/discovery.d.ts +49 -0
  10. package/dist/discovery.d.ts.map +1 -0
  11. package/dist/discovery.js +80 -0
  12. package/dist/discovery.js.map +1 -0
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +3 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/vue/carousel.d.ts +11 -0
  18. package/dist/vue/carousel.d.ts.map +1 -0
  19. package/dist/vue/carousel.js +115 -0
  20. package/dist/vue/carousel.js.map +1 -0
  21. package/dist/vue/chart.d.ts +194 -0
  22. package/dist/vue/chart.d.ts.map +1 -0
  23. package/dist/vue/chart.js +246 -0
  24. package/dist/vue/chart.js.map +1 -0
  25. package/dist/vue/command-palette.d.ts +129 -0
  26. package/dist/vue/command-palette.d.ts.map +1 -0
  27. package/dist/vue/command-palette.js +187 -0
  28. package/dist/vue/command-palette.js.map +1 -0
  29. package/dist/vue/component-props.d.ts +475 -18
  30. package/dist/vue/component-props.d.ts.map +1 -1
  31. package/dist/vue/component-props.js +14 -0
  32. package/dist/vue/component-props.js.map +1 -1
  33. package/dist/vue/configurator.d.ts +2 -2
  34. package/dist/vue/data-table.d.ts +17 -0
  35. package/dist/vue/data-table.d.ts.map +1 -0
  36. package/dist/vue/data-table.js +133 -0
  37. package/dist/vue/data-table.js.map +1 -0
  38. package/dist/vue/date-picker.d.ts +8 -8
  39. package/dist/vue/date-props.d.ts +6 -0
  40. package/dist/vue/date-props.d.ts.map +1 -1
  41. package/dist/vue/date-props.js +3 -0
  42. package/dist/vue/date-props.js.map +1 -1
  43. package/dist/vue/discovery-components.d.ts +50 -0
  44. package/dist/vue/discovery-components.d.ts.map +1 -0
  45. package/dist/vue/discovery-components.js +2 -0
  46. package/dist/vue/discovery-components.js.map +1 -0
  47. package/dist/vue/discovery-controls.d.ts +197 -0
  48. package/dist/vue/discovery-controls.d.ts.map +1 -0
  49. package/dist/vue/discovery-controls.js +166 -0
  50. package/dist/vue/discovery-controls.js.map +1 -0
  51. package/dist/vue/discovery-props.d.ts +249 -0
  52. package/dist/vue/discovery-props.d.ts.map +1 -0
  53. package/dist/vue/discovery-props.js +87 -0
  54. package/dist/vue/discovery-props.js.map +1 -0
  55. package/dist/vue/global-components.d.ts +61 -0
  56. package/dist/vue/global-components.d.ts.map +1 -1
  57. package/dist/vue/index.d.ts +10 -0
  58. package/dist/vue/index.d.ts.map +1 -1
  59. package/dist/vue/index.js +9 -0
  60. package/dist/vue/index.js.map +1 -1
  61. package/dist/vue/menu.d.ts +1 -1
  62. package/dist/vue/props.d.ts +36 -36
  63. package/dist/vue/time-picker.d.ts +2 -2
  64. package/dist/vue/tree-view.d.ts +111 -0
  65. package/dist/vue/tree-view.d.ts.map +1 -0
  66. package/dist/vue/tree-view.js +180 -0
  67. package/dist/vue/tree-view.js.map +1 -0
  68. package/dist/vue/wayfinding-controls.d.ts +198 -0
  69. package/dist/vue/wayfinding-controls.d.ts.map +1 -0
  70. package/dist/vue/wayfinding-controls.js +310 -0
  71. package/dist/vue/wayfinding-controls.js.map +1 -0
  72. package/dist/vue/wayfinding-props.d.ts +221 -0
  73. package/dist/vue/wayfinding-props.d.ts.map +1 -0
  74. package/dist/vue/wayfinding-props.js +86 -0
  75. package/dist/vue/wayfinding-props.js.map +1 -0
  76. package/dist/vue/workflows.d.ts +2 -2
  77. package/dist/wayfinding.d.ts +50 -0
  78. package/dist/wayfinding.d.ts.map +1 -0
  79. package/dist/wayfinding.js +54 -0
  80. package/dist/wayfinding.js.map +1 -0
  81. package/package.json +1 -1
  82. package/src/capabilities.ts +16 -4
  83. package/src/chart.ts +112 -0
  84. package/src/discovery.ts +139 -0
  85. package/src/index.ts +5 -0
  86. package/src/vue/carousel.ts +173 -0
  87. package/src/vue/chart.ts +338 -0
  88. package/src/vue/command-palette.ts +232 -0
  89. package/src/vue/component-props.ts +28 -0
  90. package/src/vue/data-table.ts +190 -0
  91. package/src/vue/date-props.ts +3 -0
  92. package/src/vue/discovery-components.ts +60 -0
  93. package/src/vue/discovery-controls.ts +218 -0
  94. package/src/vue/discovery-props.ts +92 -0
  95. package/src/vue/global-components.ts +66 -0
  96. package/src/vue/index.ts +13 -0
  97. package/src/vue/tree-view.ts +220 -0
  98. package/src/vue/wayfinding-controls.ts +412 -0
  99. package/src/vue/wayfinding-props.ts +97 -0
  100. package/src/wayfinding.ts +85 -0
@@ -0,0 +1,198 @@
1
+ import { type Component, type PropType } from '@vue/runtime-core';
2
+ import { type TimelineItem } from '../wayfinding.js';
3
+ interface Primitives {
4
+ focus(component: unknown): void;
5
+ Row: Component;
6
+ Column: Component;
7
+ Box: Component;
8
+ Text: Component;
9
+ Button: Component;
10
+ Link: Component;
11
+ Icon: Component;
12
+ Badge: Component;
13
+ Separator: Component;
14
+ }
15
+ export declare function createWayfindingControls(ui: Primitives, platform: 'web' | 'native'): {
16
+ MNavigationRail: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
17
+ id: StringConstructor;
18
+ label: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ groups: {
23
+ type: PropType<readonly import("../wayfinding.js").NavigationGroup[]>;
24
+ required: true;
25
+ };
26
+ modelValue: {
27
+ type: PropType<import("../choice.js").ChoiceValue | null>;
28
+ default: null;
29
+ };
30
+ collapsed: BooleanConstructor;
31
+ disabled: BooleanConstructor;
32
+ collapsible: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ collapseLabel: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ expandLabel: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ currentLabel: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
49
+ [key: string]: any;
50
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
51
+ 'update:collapsed': (_collapsed: boolean) => true;
52
+ error: (_error: unknown) => true;
53
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
54
+ id: StringConstructor;
55
+ label: {
56
+ type: StringConstructor;
57
+ required: true;
58
+ };
59
+ groups: {
60
+ type: PropType<readonly import("../wayfinding.js").NavigationGroup[]>;
61
+ required: true;
62
+ };
63
+ modelValue: {
64
+ type: PropType<import("../choice.js").ChoiceValue | null>;
65
+ default: null;
66
+ };
67
+ collapsed: BooleanConstructor;
68
+ disabled: BooleanConstructor;
69
+ collapsible: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ collapseLabel: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ expandLabel: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ currentLabel: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ }>> & Readonly<{
86
+ onError?: ((_error: unknown) => any) | undefined;
87
+ "onUpdate:collapsed"?: ((_collapsed: boolean) => any) | undefined;
88
+ }>, {
89
+ disabled: boolean;
90
+ modelValue: import("../choice.js").ChoiceValue | null;
91
+ collapsed: boolean;
92
+ collapsible: boolean;
93
+ collapseLabel: string;
94
+ expandLabel: string;
95
+ currentLabel: string;
96
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
97
+ MBreadcrumb: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
98
+ id: StringConstructor;
99
+ label: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ items: {
104
+ type: PropType<readonly import("../wayfinding.js").BreadcrumbItem[]>;
105
+ required: true;
106
+ };
107
+ maxItems: {
108
+ type: NumberConstructor;
109
+ default: number;
110
+ };
111
+ expandLabel: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
116
+ [key: string]: any;
117
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
118
+ error: (_error: unknown) => true;
119
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
120
+ id: StringConstructor;
121
+ label: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ items: {
126
+ type: PropType<readonly import("../wayfinding.js").BreadcrumbItem[]>;
127
+ required: true;
128
+ };
129
+ maxItems: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ expandLabel: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ }>> & Readonly<{
138
+ onError?: ((_error: unknown) => any) | undefined;
139
+ }>, {
140
+ label: string;
141
+ expandLabel: string;
142
+ maxItems: number;
143
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
144
+ MTimeline: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
145
+ id: StringConstructor;
146
+ label: {
147
+ type: StringConstructor;
148
+ required: true;
149
+ };
150
+ items: {
151
+ type: PropType<readonly TimelineItem[]>;
152
+ required: true;
153
+ };
154
+ emptyLabel: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ statusLabels: {
159
+ type: PropType<Record<import("../wayfinding.js").TimelineStatus, string>>;
160
+ default: () => {
161
+ complete: string;
162
+ current: string;
163
+ upcoming: string;
164
+ error: string;
165
+ };
166
+ };
167
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
168
+ [key: string]: any;
169
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
170
+ id: StringConstructor;
171
+ label: {
172
+ type: StringConstructor;
173
+ required: true;
174
+ };
175
+ items: {
176
+ type: PropType<readonly TimelineItem[]>;
177
+ required: true;
178
+ };
179
+ emptyLabel: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ statusLabels: {
184
+ type: PropType<Record<import("../wayfinding.js").TimelineStatus, string>>;
185
+ default: () => {
186
+ complete: string;
187
+ current: string;
188
+ upcoming: string;
189
+ error: string;
190
+ };
191
+ };
192
+ }>> & Readonly<{}>, {
193
+ emptyLabel: string;
194
+ statusLabels: Record<import("../wayfinding.js").TimelineStatus, string>;
195
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
196
+ };
197
+ export {};
198
+ //# sourceMappingURL=wayfinding-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wayfinding-controls.d.ts","sourceRoot":"","sources":["../../src/vue/wayfinding-controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,SAAS,EACd,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAA;AAKzB,UAAU,UAAU;IAClB,KAAK,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAA;IAC/B,GAAG,EAAE,SAAS,CAAA;IACd,MAAM,EAAE,SAAS,CAAA;IACjB,GAAG,EAAE,SAAS,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,EAAE,SAAS,CAAA;CACrB;AACD,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCA+BrC,OAAO;wBAA2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgI1D,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwNnC"}
@@ -0,0 +1,310 @@
1
+ import { computed, defineComponent, h, markRaw, mergeProps, nextTick, onScopeDispose, ref, watch, } from '@vue/runtime-core';
2
+ import { choiceKey } from '../choice.js';
3
+ import { breadcrumbParts, validateRail, validateTimeline, } from '../wayfinding.js';
4
+ import { createMotionSurface } from '../experimental.js';
5
+ import { breadcrumbProps, navigationRailProps, timelineProps } from './wayfinding-props.js';
6
+ import { useMavisTheme } from './theme.js';
7
+ export function createWayfindingControls(ui, platform) {
8
+ const web = platform === 'web';
9
+ const Signal = defineComponent({
10
+ props: { active: Boolean, color: String, size: { type: Number, default: 8 } },
11
+ setup(props) {
12
+ const { theme } = useMavisTheme();
13
+ const motion = markRaw(createMotionSurface());
14
+ const play = () => {
15
+ if (motion.available)
16
+ motion.animate({ scale: props.active ? [0.7, 1] : 1, opacity: props.active ? 1 : 0.45 }, { type: 'spring', duration: theme.value.motion.enterDuration, bounce: 0.15 });
17
+ };
18
+ onScopeDispose(motion.use(play));
19
+ watch(() => props.active, play);
20
+ return () => h(ui.Box, {
21
+ width: props.size,
22
+ height: props.size,
23
+ radius: 'full',
24
+ backgroundColor: props.color,
25
+ motionSurface: motion,
26
+ accessibilityHidden: true,
27
+ });
28
+ },
29
+ });
30
+ const MNavigationRail = defineComponent({
31
+ name: 'MNavigationRail',
32
+ inheritAttrs: false,
33
+ props: navigationRailProps,
34
+ emits: { 'update:collapsed': (_collapsed) => true, error: (_error) => true },
35
+ setup(props, { attrs, slots, emit }) {
36
+ const { theme } = useMavisTheme();
37
+ return () => {
38
+ validateRail(props.groups);
39
+ if (!props.label.trim())
40
+ throw new TypeError('Navigation rail requires a label.');
41
+ return h(ui.Column, mergeProps({
42
+ id: props.id,
43
+ gap: 'lg',
44
+ padding: 'sm',
45
+ radius: 'lg',
46
+ width: props.collapsed ? 80 : 256,
47
+ backgroundColor: theme.value.colors.surface,
48
+ }, attrs, web
49
+ ? {
50
+ class: 'm-navigation-rail',
51
+ role: 'navigation',
52
+ 'aria-label': props.label,
53
+ style: { maxWidth: '100%', border: `1px solid ${theme.value.colors.border}` },
54
+ }
55
+ : {
56
+ accessibilityLabel: props.label,
57
+ borderWidth: 1,
58
+ borderColor: theme.value.colors.border,
59
+ }), () => [
60
+ slots.header?.({ collapsed: props.collapsed }),
61
+ ...props.groups.map((group) => h(ui.Column, {
62
+ key: group.key,
63
+ gap: 'xs',
64
+ ...(web ? { role: 'group', 'aria-label': group.label } : {}),
65
+ }, () => [
66
+ props.collapsed
67
+ ? h(ui.Separator, { accessibilityHidden: true })
68
+ : h(ui.Text, {
69
+ text: group.label,
70
+ variant: 'overline',
71
+ tone: 'muted',
72
+ paddingX: 'sm',
73
+ }),
74
+ ...group.items.map((item) => {
75
+ const current = item.value === props.modelValue;
76
+ const badge = item.badge === undefined ? '' : ` ${item.badge}`;
77
+ return h(ui.Button, {
78
+ key: choiceKey(item.value),
79
+ text: props.collapsed ? undefined : item.label,
80
+ icon: item.icon ?? (props.collapsed ? 'circle' : undefined),
81
+ href: item.href,
82
+ navigate: item.navigate,
83
+ disabled: props.disabled || item.disabled,
84
+ variant: current ? 'secondary' : 'ghost',
85
+ accessibilityLabel: `${item.label}${badge}${current && !web ? `. ${props.currentLabel}` : ''}`,
86
+ ...(web
87
+ ? {
88
+ 'aria-current': current ? 'page' : undefined,
89
+ title: props.collapsed ? `${item.label}${badge}` : undefined,
90
+ style: {
91
+ justifyContent: props.collapsed ? 'center' : 'flex-start',
92
+ minWidth: 0,
93
+ },
94
+ }
95
+ : {}),
96
+ onError: (error) => emit('error', error),
97
+ }, {
98
+ leading: !props.collapsed
99
+ ? () => h(ui.Row, { gap: 'sm' }, () => [
100
+ h(Signal, {
101
+ active: current,
102
+ color: current
103
+ ? theme.value.colors.primary
104
+ : theme.value.colors.border,
105
+ size: 6,
106
+ }),
107
+ item.icon ? h(ui.Icon, { name: item.icon, size: 18 }) : null,
108
+ ])
109
+ : undefined,
110
+ trailing: !props.collapsed && item.badge !== undefined
111
+ ? () => [
112
+ web ? ' ' : null,
113
+ h(ui.Badge, {
114
+ text: String(item.badge),
115
+ tone: current ? 'primary' : 'neutral',
116
+ accessibilityHidden: true,
117
+ }),
118
+ ]
119
+ : undefined,
120
+ });
121
+ }),
122
+ ])),
123
+ slots.footer?.({ collapsed: props.collapsed }),
124
+ props.collapsible
125
+ ? h(ui.Button, {
126
+ text: props.collapsed ? undefined : props.collapseLabel,
127
+ icon: props.collapsed ? 'panel-left-open' : 'panel-left-close',
128
+ accessibilityLabel: props.collapsed ? props.expandLabel : props.collapseLabel,
129
+ variant: 'ghost',
130
+ disabled: props.disabled,
131
+ ...(web ? { 'aria-expanded': !props.collapsed } : {}),
132
+ onClick: () => emit('update:collapsed', !props.collapsed),
133
+ })
134
+ : null,
135
+ ]);
136
+ };
137
+ },
138
+ });
139
+ const MBreadcrumb = defineComponent({
140
+ name: 'MBreadcrumb',
141
+ inheritAttrs: false,
142
+ props: breadcrumbProps,
143
+ emits: { error: (_error) => true },
144
+ setup(props, { attrs, emit }) {
145
+ const expanded = ref(false);
146
+ const links = new Map();
147
+ watch(() => props.items.map((item) => choiceKey(item.key)).join('|'), () => {
148
+ expanded.value = false;
149
+ });
150
+ return () => {
151
+ if (!props.label.trim())
152
+ throw new TypeError('Breadcrumb requires a label.');
153
+ const parts = breadcrumbParts(props.items, props.maxItems);
154
+ const entries = expanded.value || !parts.hidden.length
155
+ ? props.items
156
+ : [...parts.before, null, ...parts.after];
157
+ return h(ui.Row, mergeProps({ id: props.id, gap: 'xs', wrap: true }, attrs, web
158
+ ? { class: 'm-breadcrumb', role: 'navigation', 'aria-label': props.label }
159
+ : { accessibilityLabel: props.label }), () => entries.flatMap((item, index) => [
160
+ index
161
+ ? h(ui.Icon, {
162
+ key: `separator:${index}`,
163
+ name: 'chevron-right',
164
+ size: 14,
165
+ tone: 'muted',
166
+ accessibilityHidden: true,
167
+ })
168
+ : null,
169
+ item === null
170
+ ? h(ui.Button, {
171
+ key: 'expand',
172
+ icon: 'ellipsis',
173
+ accessibilityLabel: props.expandLabel,
174
+ variant: 'ghost',
175
+ size: 'sm',
176
+ onClick: () => {
177
+ expanded.value = true;
178
+ const first = parts.hidden[0];
179
+ if (first)
180
+ void nextTick(() => ui.focus(links.get(choiceKey(first.key))));
181
+ },
182
+ })
183
+ : item === props.items[props.items.length - 1]
184
+ ? h(ui.Text, {
185
+ key: choiceKey(item.key),
186
+ text: item.label,
187
+ weight: '600',
188
+ shrink: 1,
189
+ ...(web ? { 'aria-current': 'page' } : {}),
190
+ })
191
+ : h(ui.Link, {
192
+ ref: (value) => {
193
+ if (value)
194
+ links.set(choiceKey(item.key), value);
195
+ else
196
+ links.delete(choiceKey(item.key));
197
+ },
198
+ key: choiceKey(item.key),
199
+ text: item.label,
200
+ href: item.href,
201
+ navigate: item.navigate,
202
+ shrink: 1,
203
+ onError: (error) => emit('error', error),
204
+ }),
205
+ ]));
206
+ };
207
+ },
208
+ });
209
+ const Entry = defineComponent({
210
+ props: {
211
+ item: { type: Object, required: true },
212
+ last: Boolean,
213
+ statusText: String,
214
+ },
215
+ setup(props, { slots }) {
216
+ const { theme } = useMavisTheme();
217
+ const status = computed(() => props.item.status ?? 'complete');
218
+ const color = computed(() => status.value === 'error'
219
+ ? theme.value.colors.danger
220
+ : status.value === 'upcoming'
221
+ ? theme.value.colors.muted
222
+ : theme.value.colors.primary);
223
+ const motion = markRaw(createMotionSurface());
224
+ onScopeDispose(motion.use((owner) => {
225
+ owner.animate({ y: [10, 0] }, { type: 'spring', duration: theme.value.motion.enterDuration, bounce: 0.1 });
226
+ }));
227
+ return () => h(ui.Box, {
228
+ motionSurface: motion,
229
+ ...(web ? { role: 'listitem', class: 'm-timeline-entry' } : {}),
230
+ }, () => h(ui.Row, { gap: 'md', align: 'stretch' }, () => [
231
+ h(ui.Column, { width: 32, align: 'center', gap: 'xs', shrink: 0, accessibilityHidden: true }, () => [
232
+ h(ui.Box, {
233
+ width: 32,
234
+ height: 32,
235
+ radius: 'full',
236
+ backgroundColor: status.value === 'upcoming'
237
+ ? theme.value.colors.surface
238
+ : theme.value.colors.primarySoft,
239
+ }, () => h(ui.Row, { justify: 'center', height: 32 }, () => h(ui.Icon, {
240
+ name: props.item.icon ??
241
+ (status.value === 'complete'
242
+ ? 'check'
243
+ : status.value === 'error'
244
+ ? 'circle-alert'
245
+ : 'circle-dot'),
246
+ size: 16,
247
+ tone: status.value === 'error'
248
+ ? 'danger'
249
+ : status.value === 'upcoming'
250
+ ? 'muted'
251
+ : 'primary',
252
+ }))),
253
+ !props.last
254
+ ? h(ui.Box, {
255
+ width: 2,
256
+ grow: 1,
257
+ backgroundColor: theme.value.colors.border,
258
+ height: 24,
259
+ })
260
+ : null,
261
+ ]),
262
+ h(ui.Column, { grow: 1, shrink: 1, gap: 'sm', paddingY: 'xs' }, () => [
263
+ h(ui.Row, { gap: 'sm', wrap: true, justify: 'between' }, () => [
264
+ h(ui.Text, { text: props.item.title, weight: '600', shrink: 1 }),
265
+ props.item.time
266
+ ? h(ui.Text, { text: props.item.time, variant: 'caption', tone: 'muted' })
267
+ : null,
268
+ ]),
269
+ h(ui.Row, { gap: 'xs' }, () => [
270
+ h(Signal, { color: color.value, active: status.value === 'current', size: 6 }),
271
+ h(ui.Text, {
272
+ text: props.statusText,
273
+ variant: 'caption',
274
+ tone: status.value === 'error' ? 'danger' : 'muted',
275
+ }),
276
+ ]),
277
+ props.item.description
278
+ ? h(ui.Text, { text: props.item.description, tone: 'muted' })
279
+ : null,
280
+ slots.default?.(),
281
+ !props.last ? h(ui.Box, { height: 16, accessibilityHidden: true }) : null,
282
+ ]),
283
+ ]));
284
+ },
285
+ });
286
+ const MTimeline = defineComponent({
287
+ name: 'MTimeline',
288
+ inheritAttrs: false,
289
+ props: timelineProps,
290
+ setup(props, { attrs, slots }) {
291
+ return () => {
292
+ validateTimeline(props.items);
293
+ if (!props.label.trim())
294
+ throw new TypeError('Timeline requires a label.');
295
+ return h(ui.Column, mergeProps({ id: props.id, gap: 'none' }, attrs, web
296
+ ? { class: 'm-timeline', role: 'list', 'aria-label': props.label }
297
+ : { accessibilityLabel: props.label }), () => props.items.length
298
+ ? props.items.map((item, index) => h(Entry, {
299
+ key: choiceKey(item.key),
300
+ item,
301
+ last: index === props.items.length - 1,
302
+ statusText: props.statusLabels[item.status ?? 'complete'],
303
+ }, () => slots.default?.({ item, index })))
304
+ : h(ui.Text, { text: props.emptyLabel, tone: 'muted' }));
305
+ };
306
+ },
307
+ });
308
+ return { MNavigationRail, MBreadcrumb, MTimeline };
309
+ }
310
+ //# sourceMappingURL=wayfinding-controls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wayfinding-controls.js","sourceRoot":"","sources":["../../src/vue/wayfinding-controls.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,CAAC,EACD,OAAO,EACP,UAAU,EACV,QAAQ,EACR,cAAc,EACd,GAAG,EACH,KAAK,GAGN,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EACL,eAAe,EACf,YAAY,EACZ,gBAAgB,GAEjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,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