@vmz/ui 0.3.6 → 0.3.8
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 +53 -51
- package/contracts/token-requirements.v0.json +58 -1
- package/package.json +5 -2
- package/presets/web-surface.v0.json +14 -12
- package/src/components/Accordion.vmz +127 -94
- package/src/components/Alert.vmz +125 -28
- package/src/components/AppShell.vmz +125 -57
- package/src/components/Autocomplete.vmz +261 -154
- package/src/components/Avatar.vmz +20 -12
- package/src/components/Badge.vmz +62 -70
- package/src/components/Breadcrumb.vmz +86 -72
- package/src/components/BulkActions.vmz +56 -51
- package/src/components/Button.vmz +237 -211
- package/src/components/Callout.vmz +178 -77
- package/src/components/Card.vmz +141 -120
- package/src/components/Checkbox.vmz +131 -55
- package/src/components/CodeBlock.vmz +77 -30
- package/src/components/Collapse.vmz +64 -11
- package/src/components/ConsoleShell.vmz +405 -251
- package/src/components/Content.vmz +15 -1
- package/src/components/DataTable.vmz +294 -194
- package/src/components/DatePicker.vmz +766 -674
- package/src/components/Descriptions.vmz +90 -0
- package/src/components/Dialog.vmz +137 -38
- package/src/components/Divider.vmz +8 -1
- package/src/components/Drawer.vmz +518 -427
- package/src/components/Dropdown.vmz +195 -51
- package/src/components/Empty.vmz +96 -54
- package/src/components/Field.vmz +170 -115
- package/src/components/FilterBar.vmz +34 -4
- package/src/components/Flex.vmz +3 -1
- package/src/components/Footer.vmz +6 -3
- package/src/components/Form.vmz +41 -0
- package/src/components/FormItem.vmz +78 -79
- package/src/components/Grid.vmz +6 -3
- package/src/components/Header.vmz +193 -6
- package/src/components/Layout.vmz +3 -1
- package/src/components/Link.vmz +25 -10
- package/src/components/List.vmz +124 -102
- package/src/components/Menu.vmz +416 -243
- package/src/components/Message.vmz +167 -0
- package/src/components/Notification.vmz +132 -37
- package/src/components/Pagination.vmz +237 -69
- package/src/components/Popconfirm.vmz +287 -0
- package/src/components/Popover.vmz +341 -223
- package/src/components/Progress.vmz +16 -5
- package/src/components/Prose.vmz +180 -81
- package/src/components/QueryForm.vmz +31 -9
- package/src/components/RadioGroup.vmz +204 -124
- package/src/components/Result.vmz +60 -27
- package/src/components/Segmented.vmz +86 -51
- package/src/components/Select.vmz +620 -533
- package/src/components/Sider.vmz +120 -7
- package/src/components/Skeleton.vmz +9 -7
- package/src/components/Space.vmz +9 -3
- package/src/components/Spinner.vmz +5 -4
- package/src/components/Steps.vmz +118 -103
- package/src/components/Switch.vmz +131 -98
- package/src/components/Table.vmz +270 -165
- package/src/components/Tabs.vmz +125 -110
- package/src/components/Tag.vmz +60 -43
- package/src/components/TextArea.vmz +125 -118
- package/src/components/Timeline.vmz +111 -76
- package/src/components/Toc.vmz +90 -74
- package/src/components/Tooltip.vmz +107 -58
- package/src/components/Tree.vmz +214 -191
- package/src/components/Typography.vmz +23 -8
- package/src/components/Upload.vmz +1394 -1289
|
@@ -1,72 +1,86 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<nav data-vmz-ui="breadcrumb" :aria-label="label" class="vmz-ui-breadcrumb">
|
|
3
|
-
<ol class="vmz-ui-breadcrumb__list">
|
|
4
|
-
<li v-for="item in items" :key="item.id" :data-vmz-crumb="item.id" class="vmz-ui-breadcrumb__item">
|
|
5
|
-
<a v-if="item.href" :href="item.href" class="vmz-ui-breadcrumb__link">
|
|
6
|
-
{{ item.title }}
|
|
7
|
-
</a>
|
|
8
|
-
<span v-if="!item.href" aria-current="page" class="vmz-ui-breadcrumb__current">
|
|
9
|
-
{{ item.title }}
|
|
10
|
-
</span>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
align-items: center;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.vmz-ui-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<nav data-vmz-ui="breadcrumb" :aria-label="label" class="vmz-ui-breadcrumb">
|
|
3
|
+
<ol class="vmz-ui-breadcrumb__list">
|
|
4
|
+
<li v-for="(item, index) in items" :key="item.id" :data-vmz-crumb="item.id" class="vmz-ui-breadcrumb__item">
|
|
5
|
+
<a v-if="item.href" :href="item.href" class="vmz-ui-breadcrumb__link">
|
|
6
|
+
{{ item.title }}
|
|
7
|
+
</a>
|
|
8
|
+
<span v-if="!item.href" aria-current="page" class="vmz-ui-breadcrumb__current">
|
|
9
|
+
{{ item.title }}
|
|
10
|
+
</span>
|
|
11
|
+
<span v-if="index < items.length - 1" aria-hidden="true" class="vmz-ui-breadcrumb__sep">
|
|
12
|
+
<Icon name="action.chevron-right" size="xs" decorative />
|
|
13
|
+
</span>
|
|
14
|
+
</li>
|
|
15
|
+
</ol>
|
|
16
|
+
</nav>
|
|
17
|
+
</template>
|
|
18
|
+
<style>
|
|
19
|
+
.vmz-ui-breadcrumb {
|
|
20
|
+
font: inherit;
|
|
21
|
+
font-size: 0.875rem;
|
|
22
|
+
color: var(--vmz-text-steel);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.vmz-ui-breadcrumb__list {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
gap: 0.25rem;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
list-style: none;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vmz-ui-breadcrumb__item {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 0.25rem;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.vmz-ui-breadcrumb__link {
|
|
43
|
+
color: var(--vmz-text-steel);
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
border-radius: var(--vmz-radius-xs, 2px);
|
|
46
|
+
transition: color var(--vmz-motion-control-duration, 150ms)
|
|
47
|
+
var(--vmz-motion-control-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.vmz-ui-breadcrumb__link:hover {
|
|
51
|
+
color: var(--vmz-action-primary-background);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.vmz-ui-breadcrumb__link:focus-visible {
|
|
55
|
+
outline: none;
|
|
56
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.vmz-ui-breadcrumb__current {
|
|
60
|
+
color: var(--vmz-text-ink);
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.vmz-ui-breadcrumb__sep {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
font-size: 0.75rem;
|
|
68
|
+
color: var(--vmz-text-tertiary);
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
<script client>
|
|
72
|
+
/**
|
|
73
|
+
* VMZ UI — Breadcrumb (commercial path).
|
|
74
|
+
* Parent owns items; last crumb typically has no href (current page).
|
|
75
|
+
* Separators use the shared chevron-right Icon (no CSS pseudo-elements).
|
|
76
|
+
*/
|
|
77
|
+
export default class Breadcrumb {
|
|
78
|
+
public label: string = "";
|
|
79
|
+
/** @type {{ id: string, title: string, href?: string }[]} */
|
|
80
|
+
public items: {
|
|
81
|
+
id: string;
|
|
82
|
+
title: string;
|
|
83
|
+
href?: string;
|
|
84
|
+
}[] = [];
|
|
85
|
+
}
|
|
86
|
+
</script>
|
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div data-vmz-ui="bulk-actions" role="region" :aria-label="label" :data-open="selectedCount ? 'true' : 'false'" class="vmz-ui-bulk-actions">
|
|
3
|
-
<p data-vmz-fixture="bulk-count" class="vmz-ui-bulk-actions__count">
|
|
4
|
-
{{ countLabel }}
|
|
5
|
-
</p>
|
|
6
|
-
<div class="vmz-ui-bulk-actions__actions">
|
|
7
|
-
<slot />
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
<style>
|
|
12
|
-
.vmz-ui-bulk-actions {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
gap: 0.
|
|
18
|
-
padding: 0.
|
|
19
|
-
border: 1px solid var(--vmz-
|
|
20
|
-
border-radius: var(--vmz-radius-md, 6px);
|
|
21
|
-
background:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div data-vmz-ui="bulk-actions" role="region" :aria-label="label" :data-open="selectedCount ? 'true' : 'false'" class="vmz-ui-bulk-actions">
|
|
3
|
+
<p data-vmz-fixture="bulk-count" class="vmz-ui-bulk-actions__count">
|
|
4
|
+
{{ countLabel }}
|
|
5
|
+
</p>
|
|
6
|
+
<div class="vmz-ui-bulk-actions__actions">
|
|
7
|
+
<slot />
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<style>
|
|
12
|
+
.vmz-ui-bulk-actions {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: 0.5rem 1rem;
|
|
18
|
+
padding: 0.5rem 0.75rem;
|
|
19
|
+
border: 1px solid var(--vmz-action-primary-background);
|
|
20
|
+
border-radius: var(--vmz-radius-md, 6px);
|
|
21
|
+
background: var(--vmz-action-primary-soft);
|
|
22
|
+
color: var(--vmz-text-ink);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Keep host+slot mounted so default slot projects at create time (not inside v-if). */
|
|
26
|
+
.vmz-ui-bulk-actions[data-open="false"] {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.vmz-ui-bulk-actions__count {
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-size: 0.875rem;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
color: var(--vmz-text-ink);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.vmz-ui-bulk-actions__actions {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
margin-left: auto;
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
<script client>
|
|
46
|
+
/**
|
|
47
|
+
* VMZ UI — BulkActions (selection toolbar).
|
|
48
|
+
* Hides when selectedCount is falsy but keeps the tree mounted so parent slot children project.
|
|
49
|
+
* Count copy is parent-owned via `count-label`.
|
|
50
|
+
*/
|
|
51
|
+
export default class BulkActions {
|
|
52
|
+
public label: string = "";
|
|
53
|
+
public selectedCount: number = 0;
|
|
54
|
+
public countLabel: string = "";
|
|
55
|
+
}
|
|
56
|
+
</script>
|