@everchron/ec-shards 0.7.76 → 0.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "0.7.76",
3
+ "version": "0.8.1",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
Binary file
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button class="ecs-dialog-footer-button" :id="id" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)">
2
+ <button class="ecs-dialog-footer-button" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)">
3
3
  <ecs-icon v-if="icon || loading" :type="iconType" />
4
4
  <slot></slot>
5
5
  </button>
@@ -14,7 +14,6 @@
14
14
  },
15
15
 
16
16
  props: {
17
- id: String,
18
17
  icon: {
19
18
  type: String,
20
19
  default: null
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
 
18
18
  <div :class="isVisible ? 'collapse-show' : 'collapse-hide'" :id="`collapse-${ this.id }`" class="collapse">
19
- <div class="ecs-collapsable-content" :class="[condensed ? 'condensed' : '']">
19
+ <div class="ecs-collapsable-content" :class="contentPaddingClass">
20
20
  <slot></slot>
21
21
  </div>
22
22
  </div>
@@ -70,9 +70,10 @@ export default {
70
70
  type: Boolean,
71
71
  default: true
72
72
  },
73
- condensed: {
74
- type: Boolean,
75
- default: false
73
+ contentPadding: {
74
+ type: String,
75
+ validator: v => ['none', 'sml', 'md'].includes(v),
76
+ default: 'md'
76
77
  }
77
78
  },
78
79
 
@@ -101,6 +102,10 @@ export default {
101
102
  else if (this.indent && this.indent !== '')
102
103
  return `remove-button-indent-${this.indent}`
103
104
  return this.headlineIndent
105
+ },
106
+
107
+ contentPaddingClass() {
108
+ return `ecs-collapsable-content-padding-${this.contentPadding}`
104
109
  }
105
110
  },
106
111
 
@@ -214,16 +219,6 @@ export default {
214
219
  }
215
220
  }
216
221
 
217
- &-content{
218
- padding-top: 15px;
219
- padding-bottom: 25px;
220
-
221
- &.condensed{
222
- padding-top: 5px;
223
- padding-bottom: 15px;
224
- }
225
- }
226
-
227
222
  &-indent-md,
228
223
  &-headline-indent-md{
229
224
  > .wrap .ecs-collapsable-headline{
@@ -267,13 +262,23 @@ export default {
267
262
  > .collapse > .ecs-collapsable-content{
268
263
  padding-left: 15px;
269
264
  padding-right: 15px;
265
+ }
266
+ }
267
+
268
+ &-content-padding{
269
+ &-none{
270
+ padding-top: 0;
271
+ padding-bottom: 0;
272
+ }
273
+
274
+ &-sml{
275
+ padding-top: 5px;
276
+ padding-bottom: 15px;
277
+ }
278
+
279
+ &-md{
270
280
  padding-top: 10px;
271
281
  padding-bottom: 20px;
272
-
273
- &.condensed{
274
- padding-top: 5px;
275
- padding-bottom: 15px;
276
- }
277
282
  }
278
283
  }
279
284
  }
@@ -15,7 +15,7 @@
15
15
  <div class="ecs-section-content"
16
16
  :class="[
17
17
  title ? '' : 'equal',
18
- condensed ? 'condensed' : '',
18
+ contentPaddingClass
19
19
  ]">
20
20
  <slot></slot>
21
21
  </div>
@@ -47,9 +47,10 @@
47
47
  headlineBold: {
48
48
  type: Boolean
49
49
  },
50
- condensed: {
51
- type: Boolean,
52
- default: false
50
+ contentPadding: {
51
+ type: String,
52
+ validator: v => ['none', 'sml', 'md'].includes(v),
53
+ default: 'md'
53
54
  }
54
55
  },
55
56
 
@@ -64,6 +65,10 @@
64
65
  if (this.headlineIndent && this.headlineIndent !== '')
65
66
  return `ecs-section-headline-indent-${this.headlineIndent}`
66
67
  return this.headlineIndent
68
+ },
69
+
70
+ contentPaddingClass() {
71
+ return `ecs-section-content-padding-${this.contentPadding}`
67
72
  }
68
73
  }
69
74
  }
@@ -116,24 +121,6 @@
116
121
  align-items: center;
117
122
  }
118
123
 
119
- &-content{
120
- padding-top: 15px;
121
- padding-bottom: 25px;
122
-
123
- &.equal{
124
- padding-top: 25px;
125
- }
126
-
127
- &.condensed{
128
- padding-top: 5px;
129
- padding-bottom: 15px;
130
-
131
- &.equal{
132
- padding-top: 15px;
133
- }
134
- }
135
- }
136
-
137
124
  &-indent-md,
138
125
  &-headline-indent-md{
139
126
  .ecs-section-headline{
@@ -173,20 +160,30 @@
173
160
  .ecs-section-content{
174
161
  padding-left: 15px;
175
162
  padding-right: 15px;
176
- padding-top: 10px;
177
- padding-bottom: 20px;
163
+ }
164
+ }
165
+
166
+ &-content-padding{
167
+ &-none{
168
+ padding-top: 0;
169
+ padding-bottom: 0;
170
+ }
171
+
172
+ &-sml{
173
+ padding-top: 5px;
174
+ padding-bottom: 15px;
178
175
 
179
176
  &.equal{
180
- padding-top: 20px;
177
+ padding-top: 15px;
181
178
  }
179
+ }
182
180
 
183
- &.condensed{
184
- padding-top: 0;
185
- padding-bottom: 10px;
181
+ &-md{
182
+ padding-top: 15px;
183
+ padding-bottom: 25px;
186
184
 
187
- &.equal{
188
- padding-top: 10px;
189
- }
185
+ &.equal{
186
+ padding-top: 25px;
190
187
  }
191
188
  }
192
189
  }
package/src/.DS_Store DELETED
Binary file
Binary file