@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.
Files changed (85) hide show
  1. package/dist/ec-shards.common.js +167 -103
  2. package/dist/ec-shards.common.js.map +1 -1
  3. package/dist/ec-shards.css +1 -1
  4. package/dist/ec-shards.umd.js +167 -103
  5. package/dist/ec-shards.umd.js.map +1 -1
  6. package/dist/ec-shards.umd.min.js +2 -2
  7. package/dist/ec-shards.umd.min.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/.DS_Store +0 -0
  10. package/src/assets/.DS_Store +0 -0
  11. package/src/assets/images/.DS_Store +0 -0
  12. package/src/assets/images/flags/.DS_Store +0 -0
  13. package/src/components/quicklink/quicklink.vue +1 -6
  14. package/src/components/swatches-picker/swatches-picker.vue +30 -12
  15. package/src/components/switch/switch.vue +102 -13
  16. package/src/stories/Changelog.stories.mdx +17 -0
  17. package/src/stories/collection-control/.DS_Store +0 -0
  18. package/src/stories/comment/.DS_Store +0 -0
  19. package/src/stories/data-card/.DS_Store +0 -0
  20. package/src/stories/data-list/.DS_Store +0 -0
  21. package/src/stories/dialog/.DS_Store +0 -0
  22. package/src/stories/dialog-header/.DS_Store +0 -0
  23. package/src/stories/directory-entry/.DS_Store +0 -0
  24. package/src/stories/document-state/.DS_Store +0 -0
  25. package/src/stories/dropzone/.DS_Store +0 -0
  26. package/src/stories/empty-state/.DS_Store +0 -0
  27. package/src/stories/excerpt-snippet/.DS_Store +0 -0
  28. package/src/stories/file-icon/.DS_Store +0 -0
  29. package/src/stories/file-list-item/.DS_Store +0 -0
  30. package/src/stories/flag/.DS_Store +0 -0
  31. package/src/stories/form-group/.DS_Store +0 -0
  32. package/src/stories/form-headline/.DS_Store +0 -0
  33. package/src/stories/form-set/.DS_Store +0 -0
  34. package/src/stories/formatted/.DS_Store +0 -0
  35. package/src/stories/icon/.DS_Store +0 -0
  36. package/src/stories/index-toolbar/.DS_Store +0 -0
  37. package/src/stories/info-tooltip/.DS_Store +0 -0
  38. package/src/stories/input/.DS_Store +0 -0
  39. package/src/stories/input-group/.DS_Store +0 -0
  40. package/src/stories/input-search/.DS_Store +0 -0
  41. package/src/stories/jumper-document/.DS_Store +0 -0
  42. package/src/stories/jumper-index/.DS_Store +0 -0
  43. package/src/stories/jumper-page/.DS_Store +0 -0
  44. package/src/stories/layout-data-table/.DS_Store +0 -0
  45. package/src/stories/layout-directory/.DS_Store +0 -0
  46. package/src/stories/layout-index/.DS_Store +0 -0
  47. package/src/stories/map/.DS_Store +0 -0
  48. package/src/stories/modal/.DS_Store +0 -0
  49. package/src/stories/multiselect-option/.DS_Store +0 -0
  50. package/src/stories/multiselect-search-token/.DS_Store +0 -0
  51. package/src/stories/multiselect-token/.DS_Store +0 -0
  52. package/src/stories/overlay/.DS_Store +0 -0
  53. package/src/stories/pagination/.DS_Store +0 -0
  54. package/src/stories/party-entry/.DS_Store +0 -0
  55. package/src/stories/popover-header/.DS_Store +0 -0
  56. package/src/stories/popover-list/.DS_Store +0 -0
  57. package/src/stories/popover-list-headline/.DS_Store +0 -0
  58. package/src/stories/popover-list-item/.DS_Store +0 -0
  59. package/src/stories/progress/.DS_Store +0 -0
  60. package/src/stories/quicklink/.DS_Store +0 -0
  61. package/src/stories/quicklink/quicklink.stories.js +6 -1
  62. package/src/stories/radiobutton/.DS_Store +0 -0
  63. package/src/stories/rating-favorability/.DS_Store +0 -0
  64. package/src/stories/rating-star-read/.DS_Store +0 -0
  65. package/src/stories/rating-star-write/.DS_Store +0 -0
  66. package/src/stories/scroll-container/.DS_Store +0 -0
  67. package/src/stories/section/.DS_Store +0 -0
  68. package/src/stories/segment/.DS_Store +0 -0
  69. package/src/stories/select/.DS_Store +0 -0
  70. package/src/stories/sequence-map-button/.DS_Store +0 -0
  71. package/src/stories/sidebar/.DS_Store +0 -0
  72. package/src/stories/skeleton-loader/.DS_Store +0 -0
  73. package/src/stories/sortbutton/.DS_Store +0 -0
  74. package/src/stories/sticker/.DS_Store +0 -0
  75. package/src/stories/structured-content/.DS_Store +0 -0
  76. package/src/stories/swatches-picker/swatches-picker.stories.js +7 -161
  77. package/src/stories/switch/.DS_Store +0 -0
  78. package/src/stories/switch/switch.stories.js +21 -1
  79. package/src/stories/tabs/.DS_Store +0 -0
  80. package/src/stories/tag/.DS_Store +0 -0
  81. package/src/stories/toast/.DS_Store +0 -0
  82. package/src/stories/transcript-state/.DS_Store +0 -0
  83. package/src/stories/tree-list/.DS_Store +0 -0
  84. package/src/stories/tree-list-item/.DS_Store +0 -0
  85. 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" :swatches="swatchesData" />
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" :swatches="swatchesData" selected="#D78B21" />
185
- <ecs-swatches-picker v-model="selectedColor" size="md" :swatches="swatchesData" selected="#F9DF00" />
186
- <ecs-swatches-picker v-model="selectedColor" size="lg" :swatches="swatchesData" selected="#F9DF00" />
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" disabled>{{ second }}</ecs-switch>
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