@vcita/design-system 1.3.2 → 1.3.4
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/config/locales/ds.en.yml +4 -0
- package/dist/@vcita/design-system.esm.js +1882 -1140
- package/dist/@vcita/design-system.min.js +2 -2
- package/dist/@vcita/design-system.ssr.js +1688 -965
- package/init/DesignSystem.js +3 -1
- package/init/initI18n.js +24 -16
- package/package.json +2 -1
- package/src/components/VcActionList/VcActionList.spec.js +16 -7
- package/src/components/VcActionList/VcActionList.stories.js +16 -3
- package/src/components/VcActionList/VcActionList.vue +35 -11
- package/src/components/VcBottomActions/VcBottomActions.vue +2 -1
- package/src/components/VcBottomSheet/VcBottomSheet.stories.js +6 -13
- package/src/components/VcBottomSheet/VcBottomSheet.vue +2 -3
- package/src/components/VcButton/VcButton.vue +1 -1
- package/src/components/VcCheckbox/VcCheckbox.vue +8 -1
- package/src/components/VcColorPicker/VcColorPicker.spec.js +206 -0
- package/src/components/VcColorPicker/VcColorPicker.stories.js +107 -0
- package/src/components/VcColorPicker/VcColorPicker.vue +270 -0
- package/src/components/VcFilterPanel/VcFilterPanel.spec.js +15 -0
- package/src/components/VcFilterPanel/VcFilterPanel.stories.js +9 -1
- package/src/components/VcFilterPanel/VcFilterPanel.vue +24 -3
- package/src/components/VcGalleryItem/VcGalleryItem.stories.js +2 -0
- package/src/components/VcGroupedItems/VcGroupedItems.spec.js +148 -0
- package/src/components/VcGroupedItems/VcGroupedItems.stories.js +135 -0
- package/src/components/VcGroupedItems/VcGroupedItems.vue +155 -0
- package/src/components/VcLink/VcLink.spec.js +3 -3
- package/src/components/VcLink/VcLink.stories.js +2 -6
- package/src/components/VcLink/VcLink.vue +1 -18
- package/src/components/VcMenu/VcDropdown.spec.js +120 -0
- package/src/components/VcMenu/VcDropdown.stories.js +272 -0
- package/src/components/VcMenu/VcDropdown.vue +93 -0
- package/src/components/VcMenu/VcMenu.spec.js +61 -10
- package/src/components/VcMenu/VcMenu.stories.js +38 -33
- package/src/components/VcMenu/VcMenu.vue +19 -3
- package/src/components/VcPopover/VcPopover.stories.js +2 -2
- package/src/components/VcRadioGroup/VcRadioGroup.spec.js +28 -0
- package/src/components/VcRadioGroup/VcRadioGroup.stories.js +3 -1
- package/src/components/VcRadioGroup/VcRadioGroup.vue +6 -1
- package/src/components/VcSearchPicker/VcSearchPicker.stories.js +3 -4
- package/src/components/VcSelectField/VcSelectField.vue +6 -0
- package/src/components/VcSideNav/VcSideNav.spec.js +1 -1
- package/src/components/VcSideNav/VcSideNav.vue +21 -104
- package/src/components/VcTextField/VcTextField.spec.js +13 -0
- package/src/components/VcTextField/VcTextField.stories.js +2 -1
- package/src/components/VcTextField/VcTextField.vue +11 -0
- package/src/components/VcTooltip/VcTooltip.stories.js +3 -1
- package/src/components/VcTooltip/VcTooltip.vue +6 -1
- package/src/components/index.js +4 -0
- package/src/components/list/VcBaseListItem/VcBaseListItem.stories.js +22 -13
- package/src/components/list/VcBaseListItem/VcBaseListItem.vue +4 -1
- package/src/components/list/VcList/VcList.stories.js +245 -240
- package/src/components/list/VcList/VcList.vue +11 -4
- package/src/components/page/layouts/centeredPage/CenteredPageLayout.stories.js +17 -16
- package/styles/variables.scss +1 -0
- package/styles/vuetify-variables.scss +9 -1
- package/CHANGELOG.md +0 -342
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
:single-line="singleLine"
|
|
21
21
|
:hide-details="hideDetails"
|
|
22
22
|
:readonly="readonly"
|
|
23
|
+
:autofocus="autofocus"
|
|
23
24
|
@click="$emit('click')"
|
|
25
|
+
@blur="$emit('blur')"
|
|
26
|
+
@keydown.enter="onKeydownEnter"
|
|
24
27
|
@input="(data) => $emit('input',data)">
|
|
25
28
|
<template v-slot:prepend-inner>
|
|
26
29
|
<slot name="prepend-inner">
|
|
@@ -138,6 +141,10 @@ export default {
|
|
|
138
141
|
type: Boolean,
|
|
139
142
|
default: false
|
|
140
143
|
},
|
|
144
|
+
autofocus: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: false
|
|
147
|
+
},
|
|
141
148
|
},
|
|
142
149
|
mounted() {
|
|
143
150
|
if (this.googleAddressAutoComplete) {
|
|
@@ -211,6 +218,10 @@ export default {
|
|
|
211
218
|
}
|
|
212
219
|
}
|
|
213
220
|
this.$emit('onPlaceSelected', {...selectedPlace, googlePlace})
|
|
221
|
+
},
|
|
222
|
+
onKeydownEnter(event) {
|
|
223
|
+
event.preventDefault();
|
|
224
|
+
this.$emit('onKeydownEnter');
|
|
214
225
|
}
|
|
215
226
|
}
|
|
216
227
|
}
|
|
@@ -18,6 +18,7 @@ const baseProps = {
|
|
|
18
18
|
disabled: false,
|
|
19
19
|
dataQa: 'VcTooltip',
|
|
20
20
|
defaultSlot: `<v-icon>$info</v-icon>`,
|
|
21
|
+
closeDelay: 0,
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
const GeneralTemplate = (args, {argTypes}) => ({
|
|
@@ -41,7 +42,8 @@ const GeneralTemplate = (args, {argTypes}) => ({
|
|
|
41
42
|
:flavor="flavor"
|
|
42
43
|
:dark="dark"
|
|
43
44
|
:disabled="disabled"
|
|
44
|
-
:data-qa="dataQa"
|
|
45
|
+
:data-qa="dataQa"
|
|
46
|
+
:close-delay="closeDelay">
|
|
45
47
|
<template>
|
|
46
48
|
${args.defaultSlot}
|
|
47
49
|
</template>
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
:nudge-left="nudgeLeft"
|
|
10
10
|
:nudge-right="nudgeRight"
|
|
11
11
|
:disabled="disabled"
|
|
12
|
-
:data-qa="dataQa"
|
|
12
|
+
:data-qa="dataQa"
|
|
13
|
+
:close-delay="closeDelay">
|
|
13
14
|
|
|
14
15
|
<template v-slot:activator="{ on, attrs }">
|
|
15
16
|
<span v-bind="attrs"
|
|
@@ -97,6 +98,10 @@ export default {
|
|
|
97
98
|
type: String,
|
|
98
99
|
default: 'vc-tooltip'
|
|
99
100
|
},
|
|
101
|
+
closeDelay: {
|
|
102
|
+
type: Number,
|
|
103
|
+
default: 0
|
|
104
|
+
},
|
|
100
105
|
},
|
|
101
106
|
computed: {
|
|
102
107
|
enableHeader() {
|
package/src/components/index.js
CHANGED
|
@@ -70,3 +70,7 @@ export {default as VcGalleryItem} from './VcGalleryItem/VcGalleryItem.vue';
|
|
|
70
70
|
export {default as VcGalleryList} from './VcGalleryList/VcGalleryList.vue';
|
|
71
71
|
export {default as VcBreadcrumbs} from './VcBreadcrumbs/VcBreadcrumbs.vue';
|
|
72
72
|
export {default as VcPageHeader} from './page/elements/VcPageHeader.vue';
|
|
73
|
+
export {default as VcMenu} from './VcMenu/VcMenu.vue';
|
|
74
|
+
export {default as VcDropdown} from './VcMenu/VcDropdown.vue';
|
|
75
|
+
export {default as VcGroupedItems} from './VcGroupedItems/VcGroupedItems.vue';
|
|
76
|
+
export {default as VcColorPicker} from './VcColorPicker/VcColorPicker.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import VcBaseListItem from './VcBaseListItem';
|
|
2
|
-
import {VcCheckbox} from '@/components/index';
|
|
2
|
+
import {VcCheckbox, VcLayout} from '@/components/index';
|
|
3
3
|
import VcBaseDocs from "@/stories/VcBaseDocs.mdx";
|
|
4
4
|
|
|
5
5
|
const params = {
|
|
@@ -9,7 +9,7 @@ const params = {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const Template = (args, {argTypes}) => ({
|
|
12
|
-
components: {VcBaseListItem: VcBaseListItem, VcCheckbox},
|
|
12
|
+
components: {VcBaseListItem: VcBaseListItem, VcCheckbox, VcLayout},
|
|
13
13
|
props: Object.keys(argTypes),
|
|
14
14
|
data: () => ({
|
|
15
15
|
avatar: {
|
|
@@ -32,21 +32,27 @@ const Template = (args, {argTypes}) => ({
|
|
|
32
32
|
:selected="selected"
|
|
33
33
|
:data-qa="dataQa"
|
|
34
34
|
@click="onClick">
|
|
35
|
-
|
|
36
|
-
<VcCheckbox :avatar="avatar"
|
|
37
|
-
:label="avatar.name"
|
|
38
|
-
:checked="selected"
|
|
39
|
-
:disabled="disabled"
|
|
40
|
-
style="padding: 0; margin: 0; flex: 1 1 auto"/>
|
|
41
|
-
</template>
|
|
35
|
+
${args.default}
|
|
42
36
|
</VcBaseListItem>
|
|
43
37
|
</div>`,
|
|
44
38
|
})
|
|
45
39
|
|
|
40
|
+
export const Playground = Template.bind({});
|
|
41
|
+
Playground.args = {
|
|
42
|
+
...params,
|
|
43
|
+
default: `<VcLayout align-center justify-center
|
|
44
|
+
:style="{ minHeight: '25px', backgroundColor: 'var(--green-lighten-2)', padding: '12px'}">
|
|
45
|
+
Your content goes here
|
|
46
|
+
</VcLayout>`,
|
|
47
|
+
}
|
|
48
|
+
|
|
46
49
|
export const WithCheckbox = Template.bind({});
|
|
47
50
|
|
|
48
51
|
// Set default values
|
|
49
|
-
WithCheckbox.args =
|
|
52
|
+
WithCheckbox.args = {
|
|
53
|
+
...params,
|
|
54
|
+
default: `<VcCheckbox :avatar='avatar' :label='avatar.name' :checked='selected' :disabled='disabled' style='padding: 0; margin: 0; flex: 1 1 auto'/>`,
|
|
55
|
+
}
|
|
50
56
|
|
|
51
57
|
const labelTemplate = (args, {argTypes}) => ({
|
|
52
58
|
components: {VcBaseListItem: VcBaseListItem},
|
|
@@ -66,7 +72,7 @@ const labelTemplate = (args, {argTypes}) => ({
|
|
|
66
72
|
:selected="selected"
|
|
67
73
|
:data-qa="dataQa"
|
|
68
74
|
@click="onClick">
|
|
69
|
-
|
|
75
|
+
${args.default}
|
|
70
76
|
</VcBaseListItem>
|
|
71
77
|
</div>`,
|
|
72
78
|
})
|
|
@@ -74,7 +80,10 @@ const labelTemplate = (args, {argTypes}) => ({
|
|
|
74
80
|
export const WithLabel = labelTemplate.bind({});
|
|
75
81
|
|
|
76
82
|
// Set default values
|
|
77
|
-
WithLabel.args =
|
|
83
|
+
WithLabel.args = {
|
|
84
|
+
...params,
|
|
85
|
+
default: `<span>List item content in slot</span>`
|
|
86
|
+
}
|
|
78
87
|
|
|
79
88
|
export default {
|
|
80
89
|
title: 'containers / list / VcBaseListItem', // This will control the story sidebar position
|
|
@@ -89,7 +98,7 @@ export default {
|
|
|
89
98
|
parameters: {
|
|
90
99
|
design: {
|
|
91
100
|
type: 'figma',
|
|
92
|
-
url: 'https://www.figma.com/file/xIOY6fBoA1wpy1tHv3i5js/vcita---ui-library?node-id=
|
|
101
|
+
url: 'https://www.figma.com/file/xIOY6fBoA1wpy1tHv3i5js/vcita---ui-library?node-id=164%3A8728',
|
|
93
102
|
},
|
|
94
103
|
status: {
|
|
95
104
|
type: 'releaseCandidate', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
|
|
@@ -15,6 +15,9 @@ export default {
|
|
|
15
15
|
prop: 'selected',
|
|
16
16
|
},
|
|
17
17
|
props: {
|
|
18
|
+
/**
|
|
19
|
+
* The effect of this class can be seen when the items is in selected mode
|
|
20
|
+
*/
|
|
18
21
|
selectedClass: {
|
|
19
22
|
type: String,
|
|
20
23
|
default: 'multiple',
|
|
@@ -55,7 +58,7 @@ export default {
|
|
|
55
58
|
<style lang="scss" scoped>
|
|
56
59
|
|
|
57
60
|
.vc-base-list-item {
|
|
58
|
-
padding: var(--size-value4)
|
|
61
|
+
padding: var(--size-value4);
|
|
59
62
|
cursor: pointer;
|
|
60
63
|
transition: background 0.8s;
|
|
61
64
|
|
|
@@ -2,12 +2,155 @@ import VcList from './VcList';
|
|
|
2
2
|
import {VcCheckbox, VcIcon} from '@/components/index';
|
|
3
3
|
import VcBaseDocs from "@/stories/VcBaseDocs.mdx";
|
|
4
4
|
|
|
5
|
+
const checkboxItems = [
|
|
6
|
+
{
|
|
7
|
+
disabled: true,
|
|
8
|
+
avatar:
|
|
9
|
+
{
|
|
10
|
+
name: 'Person One',
|
|
11
|
+
path: require('@/stories/assets/pics/avatar4.png'),
|
|
12
|
+
},
|
|
13
|
+
identifier: 0
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
disabled: true,
|
|
17
|
+
avatar: {
|
|
18
|
+
name: 'Person Two',
|
|
19
|
+
path: require('@/stories/assets/pics/avatar2.png'),
|
|
20
|
+
},
|
|
21
|
+
identifier: 1
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
selected: true,
|
|
25
|
+
avatar: {
|
|
26
|
+
name: 'Person Three',
|
|
27
|
+
path: require('@/stories/assets/pics/avatar1.png'),
|
|
28
|
+
},
|
|
29
|
+
identifier: 2
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
selected: true,
|
|
33
|
+
avatar: {
|
|
34
|
+
name: 'Person Four',
|
|
35
|
+
colorId: 3,
|
|
36
|
+
},
|
|
37
|
+
identifier: 3
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
avatar: {
|
|
41
|
+
name: 'Person Five',
|
|
42
|
+
colorId: 4,
|
|
43
|
+
},
|
|
44
|
+
identifier: 4
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
avatar: {
|
|
48
|
+
name: 'Person Six',
|
|
49
|
+
path: require('@/stories/assets/pics/avatar2.png'),
|
|
50
|
+
},
|
|
51
|
+
identifier: 5
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
avatar: {
|
|
55
|
+
name: 'Person Seven',
|
|
56
|
+
colorId: 6,
|
|
57
|
+
},
|
|
58
|
+
identifier: 6
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
avatar: {
|
|
62
|
+
name: 'Person Eight',
|
|
63
|
+
colorId: 7,
|
|
64
|
+
},
|
|
65
|
+
identifier: 7
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
avatar: {
|
|
69
|
+
name: 'Person Nine',
|
|
70
|
+
colorId: 8,
|
|
71
|
+
},
|
|
72
|
+
identifier: 8
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
avatar: {
|
|
76
|
+
name: 'Person Ten',
|
|
77
|
+
path: require('@/stories/assets/pics/avatar3.png'),
|
|
78
|
+
},
|
|
79
|
+
identifier: 9
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
avatar: {
|
|
83
|
+
name: 'Person Eleven',
|
|
84
|
+
colorId: 10,
|
|
85
|
+
},
|
|
86
|
+
identifier: 10
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
avatar: {
|
|
90
|
+
name: 'Person Twelve',
|
|
91
|
+
colorId: 11,
|
|
92
|
+
},
|
|
93
|
+
identifier: 11
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
avatar: {
|
|
97
|
+
name: 'Person Thirteen',
|
|
98
|
+
colorId: 12,
|
|
99
|
+
},
|
|
100
|
+
identifier: 12
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
avatar: {
|
|
104
|
+
name: 'Person Fourteen',
|
|
105
|
+
colorId: 14,
|
|
106
|
+
},
|
|
107
|
+
identifier: 14
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
avatar: {
|
|
111
|
+
name: 'Person Fifteen',
|
|
112
|
+
colorId: 13,
|
|
113
|
+
},
|
|
114
|
+
identifier: 13
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
avatar: {
|
|
118
|
+
name: 'Person Sixteen',
|
|
119
|
+
colorId: 15,
|
|
120
|
+
},
|
|
121
|
+
identifier: 15
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
avatar: {
|
|
125
|
+
name: 'Person Seventeen',
|
|
126
|
+
colorId: 16,
|
|
127
|
+
},
|
|
128
|
+
identifier: 16
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
avatar: {
|
|
132
|
+
name: 'Person Eighteen',
|
|
133
|
+
colorId: 17,
|
|
134
|
+
},
|
|
135
|
+
identifier: 17
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
avatar: {
|
|
139
|
+
name: 'Person Nineteen',
|
|
140
|
+
colorId: 18,
|
|
141
|
+
},
|
|
142
|
+
identifier: 18
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
|
|
146
|
+
|
|
5
147
|
const baseProps = {
|
|
6
148
|
emptyListTitle: 'No result found',
|
|
7
149
|
emptyListMsg: 'We can’t find any item matching your search',
|
|
8
150
|
imagePath: require('@/stories/assets/pics/avatar1.png'),
|
|
9
151
|
multiple: false,
|
|
10
152
|
dataQa: 'vc-list',
|
|
153
|
+
items : checkboxItems.slice(0, 5),
|
|
11
154
|
}
|
|
12
155
|
|
|
13
156
|
const Template = (args, {argTypes}) => ({
|
|
@@ -46,148 +189,109 @@ MultipleWithCheckbox.args = {
|
|
|
46
189
|
:disabled="item.disabled"
|
|
47
190
|
show-border="false"
|
|
48
191
|
style="padding: 0; margin: 0; flex: 1 1 auto"/>`,
|
|
49
|
-
items: [
|
|
50
|
-
{
|
|
51
|
-
disabled: true,
|
|
52
|
-
avatar:
|
|
53
|
-
{
|
|
54
|
-
name: 'Person One',
|
|
55
|
-
path: require('@/stories/assets/pics/avatar4.png'),
|
|
56
|
-
},
|
|
57
|
-
identifier: 0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
disabled: true,
|
|
61
|
-
avatar: {
|
|
62
|
-
name: 'Person Two',
|
|
63
|
-
path: require('@/stories/assets/pics/avatar2.png'),
|
|
64
|
-
},
|
|
65
|
-
identifier: 1
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
selected: true,
|
|
69
|
-
avatar: {
|
|
70
|
-
name: 'Person Three',
|
|
71
|
-
path: require('@/stories/assets/pics/avatar1.png'),
|
|
72
|
-
},
|
|
73
|
-
identifier: 2
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
selected: true,
|
|
77
|
-
avatar: {
|
|
78
|
-
name: 'Person Four',
|
|
79
|
-
colorId: 3,
|
|
80
|
-
},
|
|
81
|
-
identifier: 3
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
avatar: {
|
|
85
|
-
name: 'Person Five',
|
|
86
|
-
colorId: 4,
|
|
87
|
-
},
|
|
88
|
-
identifier: 4
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
avatar: {
|
|
92
|
-
name: 'Person Six',
|
|
93
|
-
path: require('@/stories/assets/pics/avatar2.png'),
|
|
94
|
-
},
|
|
95
|
-
identifier: 5
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
avatar: {
|
|
99
|
-
name: 'Person Seven',
|
|
100
|
-
colorId: 6,
|
|
101
|
-
},
|
|
102
|
-
identifier: 6
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
avatar: {
|
|
106
|
-
name: 'Person Eight',
|
|
107
|
-
colorId: 7,
|
|
108
|
-
},
|
|
109
|
-
identifier: 7
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
avatar: {
|
|
113
|
-
name: 'Person Nine',
|
|
114
|
-
colorId: 8,
|
|
115
|
-
},
|
|
116
|
-
identifier: 8
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
avatar: {
|
|
120
|
-
name: 'Person Ten',
|
|
121
|
-
path: require('@/stories/assets/pics/avatar3.png'),
|
|
122
|
-
},
|
|
123
|
-
identifier: 9
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
avatar: {
|
|
127
|
-
name: 'Person Eleven',
|
|
128
|
-
colorId: 10,
|
|
129
|
-
},
|
|
130
|
-
identifier: 10
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
avatar: {
|
|
134
|
-
name: 'Person Twelve',
|
|
135
|
-
colorId: 11,
|
|
136
|
-
},
|
|
137
|
-
identifier: 11
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
avatar: {
|
|
141
|
-
name: 'Person Thirteen',
|
|
142
|
-
colorId: 12,
|
|
143
|
-
},
|
|
144
|
-
identifier: 12
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
avatar: {
|
|
148
|
-
name: 'Person Fourteen',
|
|
149
|
-
colorId: 14,
|
|
150
|
-
},
|
|
151
|
-
identifier: 14
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
avatar: {
|
|
155
|
-
name: 'Person Fifteen',
|
|
156
|
-
colorId: 13,
|
|
157
|
-
},
|
|
158
|
-
identifier: 13
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
avatar: {
|
|
162
|
-
name: 'Person Sixteen',
|
|
163
|
-
colorId: 15,
|
|
164
|
-
},
|
|
165
|
-
identifier: 15
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
avatar: {
|
|
169
|
-
name: 'Person Seventeen',
|
|
170
|
-
colorId: 16,
|
|
171
|
-
},
|
|
172
|
-
identifier: 16
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
avatar: {
|
|
176
|
-
name: 'Person Eighteen',
|
|
177
|
-
colorId: 17,
|
|
178
|
-
},
|
|
179
|
-
identifier: 17
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
avatar: {
|
|
183
|
-
name: 'Person Nineteen',
|
|
184
|
-
colorId: 18,
|
|
185
|
-
},
|
|
186
|
-
identifier: 18
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
192
|
}
|
|
190
193
|
|
|
194
|
+
const iconItems = [
|
|
195
|
+
{
|
|
196
|
+
disabled: true,
|
|
197
|
+
icon: 'flag',
|
|
198
|
+
label: '(GMT-10:00) America/Adak',
|
|
199
|
+
identifier: 0
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
disabled: true,
|
|
203
|
+
icon: 'customer',
|
|
204
|
+
label: '(GMT-09:00) Alaska',
|
|
205
|
+
identifier: 1
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
selected: true,
|
|
209
|
+
icon: 'inactive',
|
|
210
|
+
label: '(GMT-07:00) Arizona',
|
|
211
|
+
identifier: 2
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
icon: 'vip',
|
|
215
|
+
label: '(GMT-06:00) Central Time (US & Canada)',
|
|
216
|
+
identifier: 3
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
icon: 'success',
|
|
220
|
+
label: '(GMT-05:00) Eastern Time (US & Canada)',
|
|
221
|
+
identifier: 4
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
icon: 'close_button',
|
|
225
|
+
label: '(GMT-12:00) International Date Line West',
|
|
226
|
+
identifier: 5
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
icon: 'plus',
|
|
230
|
+
label: '(GMT-11:00) American Samoa',
|
|
231
|
+
identifier: 6
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
icon: 'arrow_right',
|
|
235
|
+
label: '(GMT-08:00) Tijuana',
|
|
236
|
+
identifier: 7
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
icon: 'warning',
|
|
240
|
+
label: '(GMT-07:00) Chihuahua',
|
|
241
|
+
identifier: 8
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
icon: 'warning_fill',
|
|
245
|
+
label: '(GMT-06:00) Mexico City',
|
|
246
|
+
identifier: 9
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
icon: 'check_button',
|
|
250
|
+
label: '(GMT-05:00) Lima',
|
|
251
|
+
identifier: 10
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
icon: 'check_circle',
|
|
255
|
+
label: '(GMT-04:00) La Paz',
|
|
256
|
+
identifier: 11
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
icon: 'check_fill',
|
|
260
|
+
label: '(GMT-03:00) Greenland',
|
|
261
|
+
identifier: 12
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
icon: 'info',
|
|
265
|
+
label: '(GMT-02:00) Mid-Atlantic',
|
|
266
|
+
identifier: 14
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
icon: 'information',
|
|
270
|
+
label: '(GMT-01:00) Cape Verde Is.',
|
|
271
|
+
identifier: 13
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
icon: 'info_fill',
|
|
275
|
+
label: '(GMT+00:00) London',
|
|
276
|
+
identifier: 15
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
icon: 'error',
|
|
280
|
+
label: '(GMT+01:00) Berlin',
|
|
281
|
+
identifier: 16
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
icon: 'question',
|
|
285
|
+
label: '(GMT+02:00) Jerusalem',
|
|
286
|
+
identifier: 17
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
icon: 'attention',
|
|
290
|
+
label: '(GMT+02:00) Sofia',
|
|
291
|
+
identifier: 18
|
|
292
|
+
}
|
|
293
|
+
];
|
|
294
|
+
|
|
191
295
|
export const SingleIconAndText = Template.bind({});
|
|
192
296
|
|
|
193
297
|
// Set default values
|
|
@@ -195,106 +299,7 @@ SingleIconAndText.args = {
|
|
|
195
299
|
...baseProps,
|
|
196
300
|
slotContent: `<VcIcon small style="margin-inline-end: 12px">{{ '$' + item.icon }}</VcIcon>
|
|
197
301
|
<span>{{ item.label }}</span>`,
|
|
198
|
-
items:
|
|
199
|
-
{
|
|
200
|
-
disabled: true,
|
|
201
|
-
icon: 'flag',
|
|
202
|
-
label: '(GMT-10:00) America/Adak',
|
|
203
|
-
identifier: 0
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
disabled: true,
|
|
207
|
-
icon: 'customer',
|
|
208
|
-
label: '(GMT-09:00) Alaska',
|
|
209
|
-
identifier: 1
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
selected: true,
|
|
213
|
-
icon: 'inactive',
|
|
214
|
-
label: '(GMT-07:00) Arizona',
|
|
215
|
-
identifier: 2
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
icon: 'vip',
|
|
219
|
-
label: '(GMT-06:00) Central Time (US & Canada)',
|
|
220
|
-
identifier: 3
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
icon: 'success',
|
|
224
|
-
label: '(GMT-05:00) Eastern Time (US & Canada)',
|
|
225
|
-
identifier: 4
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
icon: 'close_button',
|
|
229
|
-
label: '(GMT-12:00) International Date Line West',
|
|
230
|
-
identifier: 5
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
icon: 'plus',
|
|
234
|
-
label: '(GMT-11:00) American Samoa',
|
|
235
|
-
identifier: 6
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
icon: 'arrow_right',
|
|
239
|
-
label: '(GMT-08:00) Tijuana',
|
|
240
|
-
identifier: 7
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
icon: 'warning',
|
|
244
|
-
label: '(GMT-07:00) Chihuahua',
|
|
245
|
-
identifier: 8
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
icon: 'warning_fill',
|
|
249
|
-
label: '(GMT-06:00) Mexico City',
|
|
250
|
-
identifier: 9
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
icon: 'check_button',
|
|
254
|
-
label: '(GMT-05:00) Lima',
|
|
255
|
-
identifier: 10
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
icon: 'check_circle',
|
|
259
|
-
label: '(GMT-04:00) La Paz',
|
|
260
|
-
identifier: 11
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
icon: 'check_fill',
|
|
264
|
-
label: '(GMT-03:00) Greenland',
|
|
265
|
-
identifier: 12
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
icon: 'info',
|
|
269
|
-
label: '(GMT-02:00) Mid-Atlantic',
|
|
270
|
-
identifier: 14
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
icon: 'information',
|
|
274
|
-
label: '(GMT-01:00) Cape Verde Is.',
|
|
275
|
-
identifier: 13
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
icon: 'info_fill',
|
|
279
|
-
label: '(GMT+00:00) London',
|
|
280
|
-
identifier: 15
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
icon: 'error',
|
|
284
|
-
label: '(GMT+01:00) Berlin',
|
|
285
|
-
identifier: 16
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
icon: 'question',
|
|
289
|
-
label: '(GMT+02:00) Jerusalem',
|
|
290
|
-
identifier: 17
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
icon: 'attention',
|
|
294
|
-
label: '(GMT+02:00) Sofia',
|
|
295
|
-
identifier: 18
|
|
296
|
-
}
|
|
297
|
-
]
|
|
302
|
+
items: iconItems.slice(0, 5),
|
|
298
303
|
}
|
|
299
304
|
|
|
300
305
|
export default {
|