@everchron/ec-shards 0.6.87 → 0.6.91
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 +66 -54
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +66 -54
- 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/.DS_Store +0 -0
- package/src/components/data-card/data-card.vue +1 -1
- package/src/components/modal/modal.vue +16 -2
- package/src/components/modal-base/modal-base.vue +1 -1
- package/src/components/party-entry/party-entry.vue +37 -3
- package/src/stories/modal/modal.stories.js +1 -1
- 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,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition name="dialog-fade">
|
|
3
|
-
<div v-if="isShown" class="ecs-modal" :class="typeClass">
|
|
3
|
+
<div v-if="isShown" class="ecs-modal" :class="[typeClass, clickthroughBackdrop ? 'ecs-modal-click-through' : '']">
|
|
4
4
|
|
|
5
5
|
<div class="ecs-modal-dialog ecs-modal-sheet">
|
|
6
6
|
<div v-if="$slots.header" class="ecs-modal-header-wrap">
|
|
@@ -34,7 +34,11 @@
|
|
|
34
34
|
type: String,
|
|
35
35
|
validator: v => ['default', 'drawer',].includes(v),
|
|
36
36
|
default: 'default'
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
clickthroughBackdrop: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
38
42
|
},
|
|
39
43
|
|
|
40
44
|
data () {
|
|
@@ -94,6 +98,8 @@
|
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
100
|
|
|
101
|
+
// Drawer modal variant
|
|
102
|
+
|
|
97
103
|
.ecs-modal-drawer{
|
|
98
104
|
.ecs-modal-sheet{
|
|
99
105
|
margin: 5px auto;
|
|
@@ -121,5 +127,13 @@
|
|
|
121
127
|
&-footer-wrap{
|
|
122
128
|
flex-shrink: 0;
|
|
123
129
|
}
|
|
130
|
+
|
|
131
|
+
&.ecs-modal-click-through{
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
|
|
134
|
+
.ecs-modal-dialog{
|
|
135
|
+
pointer-events: auto;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
124
138
|
}
|
|
125
139
|
</style>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="ecs-
|
|
3
|
-
:class="[
|
|
2
|
+
<div class="ecs-party-entry"
|
|
3
|
+
:class="[
|
|
4
|
+
party,
|
|
5
|
+
shared ? 'shared' : '',
|
|
6
|
+
background ? 'ecs-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
|
-
.ecs-
|
|
93
|
+
.ecs-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,7 +33,7 @@ export const drawer = () => ({
|
|
|
33
33
|
},
|
|
34
34
|
template: `<div>
|
|
35
35
|
<button @click="showdialog = !showdialog">Open</button>
|
|
36
|
-
<ecs-modal type="drawer" :show="showdialog">
|
|
36
|
+
<ecs-modal type="drawer" :show="showdialog" clickthrough-backdrop>
|
|
37
37
|
<p>Modal Content Slot</p>
|
|
38
38
|
</ecs-modal>
|
|
39
39
|
</div>`,
|
|
@@ -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>
|