@everchron/ec-shards 0.5.17 → 0.5.21
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 +429 -727
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +429 -727
- 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/components/button/button.vue +15 -1
- package/src/components/popover-list-item/popover-list-item.vue +17 -2
- package/src/components/quicklink/quicklink.vue +1 -1
- package/src/components/video/video.vue +12 -1
- package/src/stories/button/button.stories.js +1 -0
- package/src/stories/button/button.stories.mdx +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/icons/.DS_Store +0 -0
- package/src/assets/images/.DS_Store +0 -0
- package/src/assets/images/spinner/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/stories/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
size: {
|
|
51
51
|
type: String,
|
|
52
|
-
validator: v => ['sml', 'lg', null].includes(v),
|
|
52
|
+
validator: v => ['xsml', 'sml', 'lg', null].includes(v),
|
|
53
53
|
default: null
|
|
54
54
|
},
|
|
55
55
|
icon: String,
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
return this.size
|
|
81
81
|
},
|
|
82
82
|
iconSize() {
|
|
83
|
+
if (this.size == 'xsml')
|
|
84
|
+
return '20'
|
|
83
85
|
if (this.size == 'sml')
|
|
84
86
|
return '26'
|
|
85
87
|
if (this.size == 'lg')
|
|
@@ -138,6 +140,18 @@
|
|
|
138
140
|
justify-content: center;
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
&-xsml{
|
|
144
|
+
font-size: 12px;
|
|
145
|
+
height: 24px;
|
|
146
|
+
line-height: 24px;
|
|
147
|
+
padding: 0 6px;
|
|
148
|
+
|
|
149
|
+
&.ecs-button-icon-only{
|
|
150
|
+
width: 24px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
141
155
|
&-sml{
|
|
142
156
|
font-size: 13px;
|
|
143
157
|
height: 30px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<li>
|
|
3
3
|
<div v-if="type === 'checkbox'" class="ecs-popover-list-item control no-hover">
|
|
4
|
-
<ecs-checkbox :disabled="disabled">
|
|
4
|
+
<ecs-checkbox @input="$emit('input', $event)" :disabled="disabled" :value="value" :value-false="valueFalse" :value-true="valueTrue">
|
|
5
5
|
<slot></slot>
|
|
6
6
|
</ecs-checkbox>
|
|
7
7
|
</div>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div v-else-if="type === 'switch'" class="ecs-popover-list-item control no-hover">
|
|
16
|
-
<ecs-switch size="sml" :disabled="disabled">
|
|
16
|
+
<ecs-switch @input="$emit('input', $event)" :value="value" :value-false="valueFalse" :value-true="valueTrue" size="sml" :disabled="disabled">
|
|
17
17
|
<slot></slot>
|
|
18
18
|
</ecs-switch>
|
|
19
19
|
</div>
|
|
@@ -139,6 +139,21 @@
|
|
|
139
139
|
href : {
|
|
140
140
|
type: String,
|
|
141
141
|
default: null
|
|
142
|
+
},
|
|
143
|
+
value: {
|
|
144
|
+
default: null,
|
|
145
|
+
required: false,
|
|
146
|
+
type: [Date, Number, String, Boolean]
|
|
147
|
+
},
|
|
148
|
+
valueFalse: {
|
|
149
|
+
default: null,
|
|
150
|
+
required: false,
|
|
151
|
+
type: [Date, Number, String, Boolean]
|
|
152
|
+
},
|
|
153
|
+
valueTrue: {
|
|
154
|
+
default: null,
|
|
155
|
+
required: false,
|
|
156
|
+
type: [Date, Number, String, Boolean]
|
|
142
157
|
}
|
|
143
158
|
},
|
|
144
159
|
|
|
@@ -42,7 +42,18 @@
|
|
|
42
42
|
ogvSource: {
|
|
43
43
|
type: String,
|
|
44
44
|
default: null
|
|
45
|
-
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
mounted(){
|
|
48
|
+
console.log('m:mp4Source', this.mp4Source)
|
|
49
|
+
},
|
|
50
|
+
updated(){
|
|
51
|
+
console.log('u:mp4Source', this.mp4Source)
|
|
52
|
+
},
|
|
53
|
+
watch:{
|
|
54
|
+
mp4Source(){
|
|
55
|
+
console.log('w:mp4Source', this.mp4Source)
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
}
|
|
48
59
|
</script>
|
|
@@ -22,6 +22,7 @@ export const sizes = () => ({
|
|
|
22
22
|
components: { EcsButton },
|
|
23
23
|
methods: { action: action('clicked') },
|
|
24
24
|
template: `<main>
|
|
25
|
+
<ecs-button @click="action" size='xsml' type="primary">Extra Small</ecs-button>
|
|
25
26
|
<ecs-button @click="action" size='sml' type="primary">Small</ecs-button>
|
|
26
27
|
<ecs-button @click="action" type="primary">Default</ecs-button>
|
|
27
28
|
<ecs-button @click="action" size='lg' type="primary">Large</ecs-button>
|
|
@@ -34,7 +34,7 @@ By default `<ecs-button>` component will render with `primary` type.
|
|
|
34
34
|
|
|
35
35
|
## Sizing
|
|
36
36
|
|
|
37
|
-
Fancy larger or smaller buttons? Specify `lg` or `
|
|
37
|
+
Fancy larger or smaller buttons? Specify `lg`, `sml`, or `xsml` via the `size` prop.
|
|
38
38
|
<Canvas withSource="none" withToolbar={true}>
|
|
39
39
|
<Story name="Sizes" height="100px">
|
|
40
40
|
{stories.sizes()}
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/assets/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
package/src/stories/.DS_Store
DELETED
|
Binary file
|