@vcita/design-system 1.2.0 → 1.2.2
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/CHANGELOG.md +9 -0
- package/dist/@vcita/design-system.esm.js +1089 -918
- package/dist/@vcita/design-system.min.js +2 -2
- package/dist/@vcita/design-system.ssr.js +954 -815
- package/init/SvgIcons.js +1 -1
- package/package.json +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/VcButton/VcButton.stories.js +23 -23
- package/src/components/VcChip/VcChip.stories.js +3 -2
- package/src/components/VcChipList/VcChipList.stories.js +34 -21
- package/src/components/VcDocItem/VcDocItem.spec.js +10 -0
- package/src/components/VcDocItem/VcDocItem.stories.js +3 -0
- package/src/components/VcDocItem/VcDocItem.vue +17 -5
- package/src/components/VcDocItem/mockData.js +3 -3
- package/src/components/VcIcon/VcIcon.stories.js +30 -7
- package/src/components/VcIcon/VcIcon.vue +11 -2
- package/src/components/VcMenu/.DS_Store +0 -0
- package/src/components/VcSideNav/VcSideNav.spec.js +105 -0
- package/src/components/VcSideNav/VcSideNav.stories.js +117 -0
- package/src/components/VcSideNav/VcSideNav.vue +136 -0
- package/src/components/VcTextField/VcTextField.stories.js +60 -101
- package/src/components/VcTextField/VcTextField.vue +4 -0
- package/src/components/index.js +1 -0
- package/src/components/list/VcList/pattern/VcMobilePickerPattern.stories.js +22 -8
- package/src/components/list/VcListEntity/VcListEntity.stories.js +14 -19
- package/src/components/modal/VcConfirmModal/VcConfirmModal.stories.js +73 -46
- package/src/components/modal/VcConfirmModal/VcConfirmModal.vue +12 -2
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.stories.js +6 -10
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.vue +5 -0
- package/src/components/modal/VcInputModal/VcInputModal.stories.js +47 -56
- package/src/components/modal/VcInputModal/VcInputModal.vue +2 -1
- package/src/components/modal/VcNoticeModal/VcNoticeModal.stories.js +36 -45
- package/src/components/modal/VcNoticeModal/VcNoticeModal.vue +5 -0
- package/src/components/modal/elements/VcModalContainer.stories.js +35 -12
- package/src/components/modal/elements/VcModalContainer.vue +8 -1
- package/src/components/modal/elements/VcModalFooter.stories.js +10 -6
- package/src/components/modal/elements/VcModalWrapper.stories.js +13 -6
|
@@ -4,15 +4,37 @@ import VcBaseDocs from "@/stories/VcBaseDocs.mdx";
|
|
|
4
4
|
const Template = (args, {argTypes}) => ({
|
|
5
5
|
components: {VcModalContainer: VcModalContainerCmp},
|
|
6
6
|
props: Object.keys(argTypes),
|
|
7
|
-
template:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
template: `
|
|
8
|
+
<div>
|
|
9
|
+
<VcModalContainer :size="size"
|
|
10
|
+
:showDialog="showDialog"
|
|
11
|
+
:showCloseButton="showCloseButton"
|
|
12
|
+
:showFooterDivider="showFooterDivider"
|
|
13
|
+
:showHeaderDivider="showHeaderDivider"
|
|
14
|
+
:use-offset="useOffset"
|
|
15
|
+
:closeOnEsc="closeOnEsc"
|
|
16
|
+
:data-qa="dataQa"
|
|
17
|
+
@onClickOutside="onClickOutside"
|
|
18
|
+
@onCloseButtonClicked="onCloseButtonClicked">
|
|
19
|
+
<template #header> optional header</template>
|
|
20
|
+
<template #content>
|
|
21
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
|
|
22
|
+
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
|
23
|
+
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
|
|
24
|
+
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
|
25
|
+
mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
26
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
|
|
27
|
+
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
|
|
28
|
+
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
29
|
+
officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
30
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
|
|
31
|
+
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
|
32
|
+
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
|
|
33
|
+
culpa qui officia deserunt mollit anim id est laborum.
|
|
34
|
+
</template>
|
|
35
|
+
<template #footer> optional footer</template>
|
|
36
|
+
</VcModalContainer>
|
|
37
|
+
</div>`,
|
|
16
38
|
})
|
|
17
39
|
|
|
18
40
|
export const Playground = Template.bind({});
|
|
@@ -21,11 +43,12 @@ export const Playground = Template.bind({});
|
|
|
21
43
|
Playground.args = {
|
|
22
44
|
size: 'md',
|
|
23
45
|
showDialog: true,
|
|
24
|
-
closeButton: true,
|
|
25
46
|
showHeaderDivider: false,
|
|
26
47
|
showFooterDivider: true,
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
closeOnEsc: true,
|
|
49
|
+
showCloseButton: false,
|
|
50
|
+
useOffset: false,
|
|
51
|
+
dataQa: 'VcModalContainer',
|
|
29
52
|
}
|
|
30
53
|
|
|
31
54
|
export default {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@onCloseButtonClicked="$emit('onCloseButtonClicked')"
|
|
8
8
|
@enterPressed="$emit('onEnterClicked')">
|
|
9
9
|
<template>
|
|
10
|
-
<v-layout column>
|
|
10
|
+
<v-layout column :data-qa="dataQa">
|
|
11
11
|
<header :class="{'showDivider': showHeaderDivider}">
|
|
12
12
|
<slot name="header"/>
|
|
13
13
|
<VcButton class="VcModalCloseButton" v-if="displayCloseButton" icon fab small
|
|
@@ -64,6 +64,9 @@ export default {
|
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: true
|
|
66
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* Allows to apply specific design requirements
|
|
69
|
+
*/
|
|
67
70
|
flavor: {
|
|
68
71
|
type: String,
|
|
69
72
|
required: false,
|
|
@@ -72,6 +75,10 @@ export default {
|
|
|
72
75
|
closeOnEsc: {
|
|
73
76
|
type: Boolean,
|
|
74
77
|
default: true
|
|
78
|
+
},
|
|
79
|
+
dataQa: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: 'VcModalContainer',
|
|
75
82
|
}
|
|
76
83
|
},
|
|
77
84
|
computed: {
|
|
@@ -4,11 +4,14 @@ import VcBaseDocs from "@/stories/VcBaseDocs.mdx";
|
|
|
4
4
|
const Template = (args, {argTypes}) => ({
|
|
5
5
|
components: {VcModalFooter: VcModalFooterCmp},
|
|
6
6
|
props: Object.keys(argTypes),
|
|
7
|
-
template:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
template: `
|
|
8
|
+
<form>
|
|
9
|
+
<VcModalFooter :direction="direction"
|
|
10
|
+
:buttons="buttons"
|
|
11
|
+
:data-qa="dataQa"
|
|
12
|
+
@onOkClicked="onOkClicked"
|
|
13
|
+
@onCancelClicked="onCancelClicked"/>
|
|
14
|
+
</form>`,
|
|
12
15
|
})
|
|
13
16
|
|
|
14
17
|
export const Playground = Template.bind({});
|
|
@@ -17,7 +20,8 @@ export const Playground = Template.bind({});
|
|
|
17
20
|
Playground.args = {
|
|
18
21
|
direction: 'horizontal',
|
|
19
22
|
buttons: [{label: 'ok', event: 'onOkClicked', color: 'white', disabled: false},
|
|
20
|
-
{label: 'cancel', event: 'onCancelClicked', color: 'secondary', disabled: false}]
|
|
23
|
+
{label: 'cancel', event: 'onCancelClicked', color: 'secondary', disabled: false}],
|
|
24
|
+
dataQa: 'vc-footer',
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
export default {
|
|
@@ -4,11 +4,17 @@ import VcBaseDocs from "@/stories/VcBaseDocs.mdx";
|
|
|
4
4
|
const Template = (args, {argTypes}) => ({
|
|
5
5
|
components: {VcModalWrapper: VcModalWrapperCmp},
|
|
6
6
|
props: Object.keys(argTypes),
|
|
7
|
-
template:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
template: `
|
|
8
|
+
<div>
|
|
9
|
+
<VcModalWrapper :fullscreen="fullscreen"
|
|
10
|
+
:useOffset="useOffset"
|
|
11
|
+
:closeOnEsc="closeOnEsc"
|
|
12
|
+
@onCloseButtonClicked="onCloseButtonClicked"
|
|
13
|
+
@onEnterClicked="onEnterClicked"
|
|
14
|
+
@onClickOutside="onClickOutside">
|
|
15
|
+
Some modal content
|
|
16
|
+
</VcModalWrapper>
|
|
17
|
+
</div>`,
|
|
12
18
|
})
|
|
13
19
|
|
|
14
20
|
export const Playground = Template.bind({});
|
|
@@ -17,7 +23,8 @@ export const Playground = Template.bind({});
|
|
|
17
23
|
Playground.args = {
|
|
18
24
|
fullscreen: false,
|
|
19
25
|
useOffset: true,
|
|
20
|
-
closeOnEsc: true
|
|
26
|
+
closeOnEsc: true,
|
|
27
|
+
contentClass: '',
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
export default {
|