@everchron/ec-shards 0.6.87 → 0.6.88
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 +62 -50
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +62 -50
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +1 -1
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/data-card/data-card.vue +1 -1
- package/src/components/party-entry/party-entry.vue +37 -3
- package/src/stories/party-entry/party-entry.stories.js +12 -0
- package/src/stories/party-entry/party-entry.stories.mdx +6 -0
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
:class="[
|
|
2
|
+
<div class="party-entry"
|
|
3
|
+
:class="[
|
|
4
|
+
party,
|
|
5
|
+
shared ? 'shared' : '',
|
|
6
|
+
background ? 'party-entry-background' : ''
|
|
7
|
+
]">
|
|
4
8
|
<ecs-icon v-if="icon && iconPosition == 'left'" :type="iconType" :color="iconColor" :style="'margin-right:'+iconSpacing" :width="iconSize" :height="iconSize" />
|
|
5
9
|
<slot></slot>
|
|
6
10
|
<ecs-icon v-if="icon && iconPosition == 'right'" :type="iconType" :color="iconColor" :style="'margin-left:'+iconSpacing" :width="iconSize" :height="iconSize" />
|
|
@@ -22,6 +26,10 @@
|
|
|
22
26
|
validator: v => ['client', 'opposing', 'joint', 'other', 'court', 'unaffiliated'].includes(v),
|
|
23
27
|
required: true
|
|
24
28
|
},
|
|
29
|
+
background: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
25
33
|
shared: {
|
|
26
34
|
type: Boolean,
|
|
27
35
|
default: false
|
|
@@ -82,7 +90,7 @@
|
|
|
82
90
|
@import "../tokens/tokens";
|
|
83
91
|
@import "../mixins/svg-uri";
|
|
84
92
|
|
|
85
|
-
.
|
|
93
|
+
.party-entry{
|
|
86
94
|
position: relative;
|
|
87
95
|
display: inline-flex;
|
|
88
96
|
align-items: center;
|
|
@@ -130,5 +138,31 @@
|
|
|
130
138
|
&.unaffiliated{
|
|
131
139
|
color: $party-other-text;
|
|
132
140
|
}
|
|
141
|
+
|
|
142
|
+
&-background{
|
|
143
|
+
&.client{
|
|
144
|
+
background-color: $party-client-background;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.opposing{
|
|
148
|
+
background-color: $party-opposition-background;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.joint{
|
|
152
|
+
background-color: $party-joint-background;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.other{
|
|
156
|
+
background-color: $party-other-background;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.court{
|
|
160
|
+
background-color: $party-court-background;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.unaffiliated{
|
|
164
|
+
background-color: $party-other-background;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
133
167
|
}
|
|
134
168
|
</style>
|
|
@@ -33,3 +33,15 @@ export const partyEntrySides = () => ({
|
|
|
33
33
|
<ecs-party-entry icon="document" party="unaffiliated">Unaffiliated</ecs-party-entry>
|
|
34
34
|
</main>`,
|
|
35
35
|
});
|
|
36
|
+
|
|
37
|
+
export const partyEntryWithBackground = () => ({
|
|
38
|
+
components: { EcsPartyEntry },
|
|
39
|
+
template: `<main>
|
|
40
|
+
<ecs-party-entry background icon="document" party="opposing">Opposition</ecs-party-entry>
|
|
41
|
+
<ecs-party-entry background icon="document" party="client">Client</ecs-party-entry>
|
|
42
|
+
<ecs-party-entry background icon="document" party="joint">Joint</ecs-party-entry>
|
|
43
|
+
<ecs-party-entry background icon="document" party="other">Other</ecs-party-entry>
|
|
44
|
+
<ecs-party-entry background icon="document" party="court">Court</ecs-party-entry>
|
|
45
|
+
<ecs-party-entry background icon="document" party="unaffiliated">Unaffiliated</ecs-party-entry>
|
|
46
|
+
</main>`,
|
|
47
|
+
});
|
|
@@ -56,6 +56,12 @@ Use the `party` attribute to set the party side. The following sides are availab
|
|
|
56
56
|
</Story>
|
|
57
57
|
</Canvas>
|
|
58
58
|
|
|
59
|
+
<Canvas withSource="none" withToolbar={true}>
|
|
60
|
+
<Story name="Party Entry with Background" height="80px">
|
|
61
|
+
{stories.partyEntryWithBackground()}
|
|
62
|
+
</Story>
|
|
63
|
+
</Canvas>
|
|
64
|
+
|
|
59
65
|
```js
|
|
60
66
|
<ecs-party-entry icon="document" party="opposing">Opposition</ecs-party-entry>
|
|
61
67
|
<ecs-party-entry icon="document" party="client">Client</ecs-party-entry>
|