@everchron/ec-shards 0.6.66 → 0.6.73
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 +126 -113
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +126 -113
- 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/quicklink/quicklink.vue +19 -3
- package/src/components/rating-favorability/rating-favorability.vue +7 -8
- package/src/components/section/section.vue +25 -7
- package/src/components/tag/tag.vue +1 -1
- package/src/stories/section/section.stories.js +5 -0
- package/src/stories/section/section.stories.mdx +13 -1
- package/src/stories/tag/tag.stories.js +4 -4
- package/src/stories/tag/tag.stories.mdx +4 -4
package/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<li class="ecs-quicklinks-link" :class="[
|
|
2
|
+
<li class="ecs-quicklinks-link" :class="[
|
|
3
|
+
typeClass,
|
|
4
|
+
active ? 'active' : '',
|
|
5
|
+
disabled ? 'disabled' : ''
|
|
6
|
+
]">
|
|
3
7
|
<label v-if="type === 'icon'" @click="$emit('click', $event)">
|
|
4
8
|
<ecs-icon :type="icon" />
|
|
5
9
|
<span class="filter-description">{{label}}</span>
|
|
@@ -113,7 +117,7 @@
|
|
|
113
117
|
&-link{
|
|
114
118
|
display: flex;
|
|
115
119
|
align-items: center;
|
|
116
|
-
border-radius:
|
|
120
|
+
border-radius: 4px;
|
|
117
121
|
min-height: 32px;
|
|
118
122
|
margin-bottom: 4px;
|
|
119
123
|
transition: .2s;
|
|
@@ -126,6 +130,10 @@
|
|
|
126
130
|
color: $gray-8;
|
|
127
131
|
}
|
|
128
132
|
|
|
133
|
+
label{
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
|
|
129
137
|
.ecs-form-check,
|
|
130
138
|
label{
|
|
131
139
|
width: 100%;
|
|
@@ -201,6 +209,15 @@
|
|
|
201
209
|
color: $blue-9;
|
|
202
210
|
}
|
|
203
211
|
}
|
|
212
|
+
|
|
213
|
+
&.disabled{
|
|
214
|
+
cursor: default;
|
|
215
|
+
opacity: .5;
|
|
216
|
+
|
|
217
|
+
label{
|
|
218
|
+
cursor: default;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
204
221
|
}
|
|
205
222
|
}
|
|
206
223
|
</style>
|
|
@@ -220,5 +237,4 @@
|
|
|
220
237
|
top: auto !important;
|
|
221
238
|
}
|
|
222
239
|
}
|
|
223
|
-
|
|
224
240
|
</style>
|
|
@@ -88,14 +88,13 @@
|
|
|
88
88
|
height: 20px;
|
|
89
89
|
border-radius: 3px;
|
|
90
90
|
border: 1px solid;
|
|
91
|
+
position: relative;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.icon{
|
|
94
95
|
position: absolute;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
top: -5px;
|
|
98
|
-
left: -5px;
|
|
96
|
+
left: -6px;
|
|
97
|
+
top: -6px;
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
.label{
|
|
@@ -159,22 +158,22 @@
|
|
|
159
158
|
}
|
|
160
159
|
|
|
161
160
|
.good{
|
|
162
|
-
border:
|
|
161
|
+
border: 1px solid transparent;
|
|
163
162
|
background: $green-8;
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
.mixed{
|
|
167
|
-
border:
|
|
166
|
+
border: 1px solid transparent;
|
|
168
167
|
background: $yellow-8;
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
.bad{
|
|
172
|
-
border:
|
|
171
|
+
border: 1px solid transparent;
|
|
173
172
|
background: $red-8;
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
.unrated{
|
|
177
|
-
border:
|
|
176
|
+
border: 1px solid transparent;
|
|
178
177
|
background: $gray-4;
|
|
179
178
|
}
|
|
180
179
|
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ecs-section"
|
|
3
|
-
:class="[borderTop ?
|
|
4
|
-
borderBottom ?
|
|
3
|
+
:class="[borderTop ? 'ecs-section-border-top' : '',
|
|
4
|
+
borderBottom ? 'ecs-section-border-bottom' : '',
|
|
5
5
|
indentation,
|
|
6
6
|
headlineIndentation]">
|
|
7
7
|
|
|
8
|
-
<h3 class="ecs-section-headline" :class="[headlineBold ?
|
|
9
|
-
|
|
8
|
+
<h3 v-if="title" class="ecs-section-headline" :class="[headlineBold ? 'ecs-headline-section-bold' : 'ecs-headline-section', hasControls]">
|
|
9
|
+
{{title}}
|
|
10
|
+
<div v-if="$slots.controls" class="ecs-section-controls">
|
|
11
|
+
<slot name="controls"></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</h3>
|
|
14
|
+
|
|
15
|
+
<div class="ecs-section-content" :class="title ? '' : 'ecs-section-content-equal'">
|
|
10
16
|
<slot></slot>
|
|
11
17
|
</div>
|
|
12
18
|
</div>
|
|
@@ -16,8 +22,7 @@
|
|
|
16
22
|
export default {
|
|
17
23
|
props: {
|
|
18
24
|
title: {
|
|
19
|
-
type: String
|
|
20
|
-
required: true
|
|
25
|
+
type: String
|
|
21
26
|
},
|
|
22
27
|
indent: {
|
|
23
28
|
type: String,
|
|
@@ -103,9 +108,18 @@
|
|
|
103
108
|
}
|
|
104
109
|
}
|
|
105
110
|
|
|
111
|
+
&-controls{
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
106
116
|
&-content{
|
|
107
117
|
padding-top: 15px;
|
|
108
118
|
padding-bottom: 25px;
|
|
119
|
+
|
|
120
|
+
&-equal{
|
|
121
|
+
padding-top: 25px;
|
|
122
|
+
}
|
|
109
123
|
}
|
|
110
124
|
|
|
111
125
|
&-indent-md,
|
|
@@ -148,7 +162,11 @@
|
|
|
148
162
|
padding-left: 15px;
|
|
149
163
|
padding-right: 15px;
|
|
150
164
|
padding-top: 10px;
|
|
151
|
-
padding-bottom: 20px
|
|
165
|
+
padding-bottom: 20px;
|
|
166
|
+
|
|
167
|
+
&-equal{
|
|
168
|
+
padding-top: 20px;
|
|
169
|
+
}
|
|
152
170
|
}
|
|
153
171
|
}
|
|
154
172
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
party: {
|
|
30
30
|
type: String,
|
|
31
|
-
validator: v => ['client', '
|
|
31
|
+
validator: v => ['client', 'opposing', 'joint', 'other', 'court', 'unaffiliated', null].includes(v)
|
|
32
32
|
},
|
|
33
33
|
count: {
|
|
34
34
|
type: Number,
|
|
@@ -16,6 +16,11 @@ export const borderless = () => ({
|
|
|
16
16
|
template: `<ecs-section title="Headline">Content</ecs-section>`,
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
+
export const noHeadline = () => ({
|
|
20
|
+
components: { EcsSection },
|
|
21
|
+
template: `<ecs-section>Content</ecs-section>`,
|
|
22
|
+
});
|
|
23
|
+
|
|
19
24
|
export const indentation = () => ({
|
|
20
25
|
components: { EcsSection },
|
|
21
26
|
template: `<div>
|
|
@@ -24,6 +24,18 @@ Sections are simple content blocks used for grouping related content or forms.
|
|
|
24
24
|
|
|
25
25
|
A headline can be set (only text) with the `title` attribute. By setting the `headline-bold` attribute, the headline will appear as a bolder, more emphasized version.
|
|
26
26
|
|
|
27
|
+
By not passing any headline, the section component will render without a headline.
|
|
28
|
+
|
|
29
|
+
<Canvas withSource="none" withToolbar={true}>
|
|
30
|
+
<Story name="noHeadline" height="200px">
|
|
31
|
+
{stories.noHeadline()}
|
|
32
|
+
</Story>
|
|
33
|
+
</Canvas>
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
<ecs-section>Content</ecs-collapse>
|
|
37
|
+
```
|
|
38
|
+
|
|
27
39
|
## Borders
|
|
28
40
|
|
|
29
41
|
The top and bottom borders can be turned on by adding the `border-top` and `border-bottom` attributes. When these attributes are missing, the section is rendered without any borders.
|
|
@@ -82,4 +94,4 @@ To show additional controls on the right side of the headline, you can use the `
|
|
|
82
94
|
|
|
83
95
|
## Props and Slots
|
|
84
96
|
|
|
85
|
-
<ArgsTable of={EcsSection} />
|
|
97
|
+
<ArgsTable of={EcsSection} />
|
|
@@ -32,9 +32,9 @@ export const partyTag = () => ({
|
|
|
32
32
|
<ecs-tag type="party" party="client" active>active</ecs-tag>
|
|
33
33
|
</main>
|
|
34
34
|
<main class="mb-4">
|
|
35
|
-
<ecs-tag type="party" party="
|
|
36
|
-
<ecs-tag type="party" party="
|
|
37
|
-
<ecs-tag type="party" party="
|
|
35
|
+
<ecs-tag type="party" party="opposing">opposition</ecs-tag>
|
|
36
|
+
<ecs-tag type="party" party="opposing" hover>hover</ecs-tag>
|
|
37
|
+
<ecs-tag type="party" party="opposing" active>active</ecs-tag>
|
|
38
38
|
</main>
|
|
39
39
|
<main class="mb-4">
|
|
40
40
|
<ecs-tag type="party" party="joint">joint</ecs-tag>
|
|
@@ -70,4 +70,4 @@ export const tagsLoading = () => ({
|
|
|
70
70
|
<ecs-tag type="group" loading>hover</ecs-tag>
|
|
71
71
|
<ecs-tag type="filter" loading>active</ecs-tag>
|
|
72
72
|
</main>`,
|
|
73
|
-
});
|
|
73
|
+
});
|
|
@@ -66,9 +66,9 @@ For the party tag style, set the `type` prop to `party`. Party tags require the
|
|
|
66
66
|
<ecs-tag type="party" party="client">client</ecs-tag>
|
|
67
67
|
<ecs-tag type="party" party="client" hover>hover</ecs-tag>
|
|
68
68
|
<ecs-tag type="party" party="client" active>active</ecs-tag>
|
|
69
|
-
<ecs-tag type="party" party="
|
|
70
|
-
<ecs-tag type="party" party="
|
|
71
|
-
<ecs-tag type="party" party="
|
|
69
|
+
<ecs-tag type="party" party="opposing">opposition</ecs-tag>
|
|
70
|
+
<ecs-tag type="party" party="opposing" hover>hover</ecs-tag>
|
|
71
|
+
<ecs-tag type="party" party="opposing" active>active</ecs-tag>
|
|
72
72
|
<ecs-tag type="party" party="joint">joint</ecs-tag>
|
|
73
73
|
<ecs-tag type="party" party="joint" hover>hover</ecs-tag>
|
|
74
74
|
<ecs-tag type="party" party="joint" active>active</ecs-tag>
|
|
@@ -114,4 +114,4 @@ Add the `loading` attribute to show a skeleton loader within the tag.
|
|
|
114
114
|
|
|
115
115
|
## Props, Slots and Events
|
|
116
116
|
|
|
117
|
-
<ArgsTable of={EcsTag} />
|
|
117
|
+
<ArgsTable of={EcsTag} />
|