@everchron/ec-shards 1.6.3 → 1.6.5
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/dist/ec-shards.common.js +167 -103
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +167 -103
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/images/.DS_Store +0 -0
- package/src/assets/images/flags/.DS_Store +0 -0
- package/src/components/quicklink/quicklink.vue +1 -6
- package/src/components/swatches-picker/swatches-picker.vue +30 -12
- package/src/components/switch/switch.vue +102 -13
- package/src/stories/Changelog.stories.mdx +17 -0
- package/src/stories/collection-control/.DS_Store +0 -0
- package/src/stories/comment/.DS_Store +0 -0
- package/src/stories/data-card/.DS_Store +0 -0
- package/src/stories/data-list/.DS_Store +0 -0
- package/src/stories/dialog/.DS_Store +0 -0
- package/src/stories/dialog-header/.DS_Store +0 -0
- package/src/stories/directory-entry/.DS_Store +0 -0
- package/src/stories/document-state/.DS_Store +0 -0
- package/src/stories/dropzone/.DS_Store +0 -0
- package/src/stories/empty-state/.DS_Store +0 -0
- package/src/stories/excerpt-snippet/.DS_Store +0 -0
- package/src/stories/file-icon/.DS_Store +0 -0
- package/src/stories/file-list-item/.DS_Store +0 -0
- package/src/stories/flag/.DS_Store +0 -0
- package/src/stories/form-group/.DS_Store +0 -0
- package/src/stories/form-headline/.DS_Store +0 -0
- package/src/stories/form-set/.DS_Store +0 -0
- package/src/stories/formatted/.DS_Store +0 -0
- package/src/stories/icon/.DS_Store +0 -0
- package/src/stories/index-toolbar/.DS_Store +0 -0
- package/src/stories/info-tooltip/.DS_Store +0 -0
- package/src/stories/input/.DS_Store +0 -0
- package/src/stories/input-group/.DS_Store +0 -0
- package/src/stories/input-search/.DS_Store +0 -0
- package/src/stories/jumper-document/.DS_Store +0 -0
- package/src/stories/jumper-index/.DS_Store +0 -0
- package/src/stories/jumper-page/.DS_Store +0 -0
- package/src/stories/layout-data-table/.DS_Store +0 -0
- package/src/stories/layout-directory/.DS_Store +0 -0
- package/src/stories/layout-index/.DS_Store +0 -0
- package/src/stories/map/.DS_Store +0 -0
- package/src/stories/modal/.DS_Store +0 -0
- package/src/stories/multiselect-option/.DS_Store +0 -0
- package/src/stories/multiselect-search-token/.DS_Store +0 -0
- package/src/stories/multiselect-token/.DS_Store +0 -0
- package/src/stories/overlay/.DS_Store +0 -0
- package/src/stories/pagination/.DS_Store +0 -0
- package/src/stories/party-entry/.DS_Store +0 -0
- package/src/stories/popover-header/.DS_Store +0 -0
- package/src/stories/popover-list/.DS_Store +0 -0
- package/src/stories/popover-list-headline/.DS_Store +0 -0
- package/src/stories/popover-list-item/.DS_Store +0 -0
- package/src/stories/progress/.DS_Store +0 -0
- package/src/stories/quicklink/.DS_Store +0 -0
- package/src/stories/quicklink/quicklink.stories.js +6 -1
- package/src/stories/radiobutton/.DS_Store +0 -0
- package/src/stories/rating-favorability/.DS_Store +0 -0
- package/src/stories/rating-star-read/.DS_Store +0 -0
- package/src/stories/rating-star-write/.DS_Store +0 -0
- package/src/stories/scroll-container/.DS_Store +0 -0
- package/src/stories/section/.DS_Store +0 -0
- package/src/stories/segment/.DS_Store +0 -0
- package/src/stories/select/.DS_Store +0 -0
- package/src/stories/sequence-map-button/.DS_Store +0 -0
- package/src/stories/sidebar/.DS_Store +0 -0
- package/src/stories/skeleton-loader/.DS_Store +0 -0
- package/src/stories/sortbutton/.DS_Store +0 -0
- package/src/stories/sticker/.DS_Store +0 -0
- package/src/stories/structured-content/.DS_Store +0 -0
- package/src/stories/swatches-picker/swatches-picker.stories.js +7 -161
- package/src/stories/switch/.DS_Store +0 -0
- package/src/stories/switch/switch.stories.js +21 -1
- package/src/stories/tabs/.DS_Store +0 -0
- package/src/stories/tag/.DS_Store +0 -0
- package/src/stories/toast/.DS_Store +0 -0
- package/src/stories/transcript-state/.DS_Store +0 -0
- package/src/stories/tree-list/.DS_Store +0 -0
- package/src/stories/tree-list-item/.DS_Store +0 -0
- package/src/stories/video/.DS_Store +0 -0
|
@@ -9,90 +9,13 @@ export const SwatchesPicker = () => ({
|
|
|
9
9
|
components: { EcsSwatchesPicker },
|
|
10
10
|
data() {
|
|
11
11
|
return {
|
|
12
|
-
selectedColor: ''
|
|
13
|
-
swatchesData: [
|
|
14
|
-
{
|
|
15
|
-
"id": 1,
|
|
16
|
-
"title": "Yellow",
|
|
17
|
-
"hex": "#F9DF00"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"id": 2,
|
|
21
|
-
"title": "Orange",
|
|
22
|
-
"hex": "#F3A100"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"id": 3,
|
|
26
|
-
"title": "Lime",
|
|
27
|
-
"hex": "#B7EA80"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"id": 4,
|
|
31
|
-
"title": "Cyan",
|
|
32
|
-
"hex": "#48E4C2"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"id": 5,
|
|
36
|
-
"title": "Blue",
|
|
37
|
-
"hex": "#489DFF"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": 6,
|
|
41
|
-
"title": "Indigo",
|
|
42
|
-
"hex": "#B877F0"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": 7,
|
|
46
|
-
"title": "Pink",
|
|
47
|
-
"hex": "#FD78FD"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"id": 8,
|
|
51
|
-
"title": "Brown",
|
|
52
|
-
"hex": "#C59465"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": 9,
|
|
56
|
-
"title": "Grey",
|
|
57
|
-
"hex": "#858E9F"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"id": 10,
|
|
61
|
-
"title": "Red",
|
|
62
|
-
"hex": "#EE5452"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"id": 11,
|
|
66
|
-
"title": "Dark Blue",
|
|
67
|
-
"hex": "#227FD3"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"id": 12,
|
|
71
|
-
"title": "Green",
|
|
72
|
-
"hex": "#5DAF00"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"id": 13,
|
|
76
|
-
"title": "Brass",
|
|
77
|
-
"hex": "#A4927A"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"id": 14,
|
|
81
|
-
"title": "Silver",
|
|
82
|
-
"hex": "#95989C"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"id": 15,
|
|
86
|
-
"title": "Gold",
|
|
87
|
-
"hex": "#D78B21"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
12
|
+
selectedColor: ''
|
|
90
13
|
}
|
|
91
14
|
},
|
|
92
15
|
template: `<div>
|
|
93
|
-
<ecs-swatches-picker v-model="selectedColor" selected="#F9DF00"
|
|
16
|
+
<ecs-swatches-picker v-model="selectedColor" selected="#F9DF00" />
|
|
94
17
|
<hr style="border: none; border-bottom: 1px solid #DADEE6; margin: 20px 0">
|
|
95
|
-
Selected: {{ selectedColor }}
|
|
18
|
+
Selected: {{ selectedColor.title }}, {{ selectedColor.color }}
|
|
96
19
|
</div>`,
|
|
97
20
|
});
|
|
98
21
|
|
|
@@ -100,89 +23,12 @@ export const SwatchesPickerSizes = () => ({
|
|
|
100
23
|
components: { EcsSwatchesPicker },
|
|
101
24
|
data() {
|
|
102
25
|
return {
|
|
103
|
-
selectedColor: ''
|
|
104
|
-
swatchesData: [
|
|
105
|
-
{
|
|
106
|
-
"id": 1,
|
|
107
|
-
"title": "Yellow",
|
|
108
|
-
"hex": "#F9DF00"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"id": 2,
|
|
112
|
-
"title": "Orange",
|
|
113
|
-
"hex": "#F3A100"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": 3,
|
|
117
|
-
"title": "Lime",
|
|
118
|
-
"hex": "#B7EA80"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"id": 4,
|
|
122
|
-
"title": "Cyan",
|
|
123
|
-
"hex": "#48E4C2"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"id": 5,
|
|
127
|
-
"title": "Blue",
|
|
128
|
-
"hex": "#489DFF"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"id": 6,
|
|
132
|
-
"title": "Indigo",
|
|
133
|
-
"hex": "#B877F0"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"id": 7,
|
|
137
|
-
"title": "Pink",
|
|
138
|
-
"hex": "#FD78FD"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": 8,
|
|
142
|
-
"title": "Brown",
|
|
143
|
-
"hex": "#C59465"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"id": 9,
|
|
147
|
-
"title": "Grey",
|
|
148
|
-
"hex": "#858E9F"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"id": 10,
|
|
152
|
-
"title": "Red",
|
|
153
|
-
"hex": "#EE5452"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"id": 11,
|
|
157
|
-
"title": "Dark Blue",
|
|
158
|
-
"hex": "#227FD3"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"id": 12,
|
|
162
|
-
"title": "Green",
|
|
163
|
-
"hex": "#5DAF00"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"id": 13,
|
|
167
|
-
"title": "Brass",
|
|
168
|
-
"hex": "#A4927A"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"id": 14,
|
|
172
|
-
"title": "Silver",
|
|
173
|
-
"hex": "#95989C"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"id": 15,
|
|
177
|
-
"title": "Gold",
|
|
178
|
-
"hex": "#D78B21"
|
|
179
|
-
}
|
|
180
|
-
]
|
|
26
|
+
selectedColor: ''
|
|
181
27
|
}
|
|
182
28
|
},
|
|
183
29
|
template: `<div>
|
|
184
|
-
<ecs-swatches-picker v-model="selectedColor" size="sml"
|
|
185
|
-
<ecs-swatches-picker v-model="selectedColor" size="md"
|
|
186
|
-
<ecs-swatches-picker v-model="selectedColor" size="lg"
|
|
30
|
+
<ecs-swatches-picker v-model="selectedColor" size="sml" selected="#F9DF00" />
|
|
31
|
+
<ecs-swatches-picker v-model="selectedColor" size="md" selected="#F9DF00" />
|
|
32
|
+
<ecs-swatches-picker v-model="selectedColor" size="lg" selected="#F9DF00" />
|
|
187
33
|
</div>`,
|
|
188
34
|
});
|
|
Binary file
|
|
@@ -15,7 +15,7 @@ export const regular = () => ({
|
|
|
15
15
|
},
|
|
16
16
|
template: `<div>
|
|
17
17
|
<ecs-switch v-model="first">{{ first }}</ecs-switch>
|
|
18
|
-
<ecs-switch v-model="second"
|
|
18
|
+
<ecs-switch v-model="second">{{ second }}</ecs-switch>
|
|
19
19
|
</div>`,
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -23,6 +23,7 @@ export const sizes = () => ({
|
|
|
23
23
|
components: { EcsSwitch },
|
|
24
24
|
template: `<div>
|
|
25
25
|
<ecs-switch size="sml">Small</ecs-switch>
|
|
26
|
+
<ecs-switch size="sml-toggle">Small Toggle</ecs-switch>
|
|
26
27
|
<ecs-switch>Default</ecs-switch>
|
|
27
28
|
<ecs-switch size="lg">Large</ecs-switch>
|
|
28
29
|
</div>`,
|
|
@@ -32,3 +33,22 @@ export const standalone = () => ({
|
|
|
32
33
|
components: { EcsSwitch },
|
|
33
34
|
template: `<ecs-switch standalone />`,
|
|
34
35
|
});
|
|
36
|
+
|
|
37
|
+
export const indeterminateSwitch = () => ({
|
|
38
|
+
components: { EcsSwitch },
|
|
39
|
+
template: `<div>
|
|
40
|
+
<ecs-switch indeterminate size="sml">Small</ecs-switch>
|
|
41
|
+
<ecs-switch indeterminate>Default</ecs-switch>
|
|
42
|
+
<ecs-switch indeterminate size="lg">Large</ecs-switch>
|
|
43
|
+
</div>`,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export const coloredSwitch = () => ({
|
|
47
|
+
components: { EcsSwitch },
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
first: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
template: `<ecs-switch colored v-model="first">Colored Switch</ecs-switch>`,
|
|
54
|
+
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|