@maggioli-design-system/mds-modal 4.4.2 → 4.7.0
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/cjs/{index-7b67ecdb.js → index-a75ae767.js} +15 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +3 -3
- package/dist/cjs/mds-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/mds-modal/mds-modal.css +157 -275
- package/dist/collection/components/mds-modal/mds-modal.js +1 -1
- package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +2 -2
- package/dist/collection/dictionary/input.js +21 -0
- package/dist/collection/dictionary/typography.js +5 -1
- package/dist/components/mds-modal.js +2 -2
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-5f4fd73d.js → index-67f67ae4.js} +15 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-modal.entry.js +3 -3
- package/dist/esm/mds-modal.js +3 -3
- package/dist/esm-es5/index-67f67ae4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-7a54ebc0.system.entry.js +1 -0
- package/dist/mds-modal/{p-3289100c.system.js → p-8b71f825.system.js} +1 -1
- package/dist/mds-modal/p-9bfc9516.js +2 -0
- package/dist/mds-modal/p-e765d0c2.entry.js +1 -0
- package/dist/mds-modal/p-f6c96de9.system.js +2 -0
- package/dist/stats.json +35 -37
- package/dist/types/components.d.ts +11 -0
- package/dist/types/dictionary/input.d.ts +4 -0
- package/dist/types/dictionary/typography.d.ts +2 -1
- package/dist/types/interface/input-value.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/type/input.d.ts +4 -0
- package/dist/types/type/typography.d.ts +1 -0
- package/documentation.json +26 -11
- package/package.json +4 -4
- package/src/components/mds-modal/mds-modal.css +4 -4
- package/src/components/mds-modal/mds-modal.tsx +1 -1
- package/src/components/mds-modal/test/mds-modal.e2e.ts +2 -2
- package/src/components.d.ts +11 -0
- package/src/dictionary/input.ts +30 -0
- package/src/dictionary/typography.ts +7 -1
- package/src/fixtures/icons.json +18 -0
- package/src/fixtures/iconsauce.json +16 -0
- package/src/interface/input-value.ts +1 -1
- package/src/type/input.ts +25 -0
- package/src/type/typography.ts +4 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-7a54ebc0.system.entry.js +1 -0
- package/www/build/{p-3289100c.system.js → p-8b71f825.system.js} +1 -1
- package/www/build/p-9bfc9516.js +2 -0
- package/www/build/p-e765d0c2.entry.js +1 -0
- package/www/build/p-f6c96de9.system.js +2 -0
- package/dist/collection/dictionary/input-text-type.js +0 -13
- package/dist/collection/type/input-value-type.js +0 -1
- package/dist/esm-es5/index-5f4fd73d.js +0 -1
- package/dist/mds-modal/p-b327d4c0.js +0 -2
- package/dist/mds-modal/p-bc48f1e8.system.js +0 -2
- package/dist/mds-modal/p-e441efd8.entry.js +0 -1
- package/dist/mds-modal/p-ff89867f.system.entry.js +0 -1
- package/dist/types/dictionary/input-text-type.d.ts +0 -2
- package/dist/types/type/input-text-type.d.ts +0 -1
- package/dist/types/type/input-value-type.d.ts +0 -1
- package/src/dictionary/input-text-type.ts +0 -17
- package/src/type/input-text-type.ts +0 -11
- package/src/type/input-value-type.ts +0 -5
- package/www/build/p-b327d4c0.js +0 -2
- package/www/build/p-bc48f1e8.system.js +0 -2
- package/www/build/p-e441efd8.entry.js +0 -1
- package/www/build/p-ff89867f.system.entry.js +0 -1
- /package/dist/collection/type/{input-text-type.js → input.js} +0 -0
|
@@ -1,52 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.focus-off,
|
|
7
|
-
.focusable,
|
|
8
|
-
.focusable-light,
|
|
9
|
-
.focusable-light-off{
|
|
10
|
-
|
|
11
|
-
transition-duration: 200ms;
|
|
12
|
-
|
|
13
|
-
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
14
|
-
|
|
15
|
-
outline-offset: var(--magma-outline-blur-offset);
|
|
16
|
-
outline: var(--magma-outline-blur);
|
|
17
|
-
transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.focus-on,
|
|
22
|
-
.focusable-light:focus-visible,
|
|
23
|
-
.focusable:focus-visible {
|
|
24
|
-
|
|
25
|
-
--magma-outline-blur-offset: var(--magma-outline-focus-offset);
|
|
26
|
-
--magma-outline-blur: var(--magma-outline-focus);
|
|
1
|
+
@keyframes focus-bounce {
|
|
2
|
+
0%, 75%, 100% {
|
|
3
|
+
outline-offset: var(--magma-outline-focus-offset);
|
|
27
4
|
}
|
|
28
5
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.focusable-light:focus-visible {
|
|
32
|
-
|
|
33
|
-
--magma-outline-blur: 2px solid rgb(var(--tone-neutral));
|
|
6
|
+
50% {
|
|
7
|
+
outline-offset: var(--magma-outline-blur-offset);
|
|
34
8
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.svg{
|
|
38
|
-
|
|
39
|
-
display: flex;
|
|
40
9
|
}
|
|
10
|
+
/* included for focus effect */
|
|
11
|
+
@tailwind components;
|
|
12
|
+
@tailwind utilities;
|
|
41
13
|
|
|
42
14
|
|
|
43
|
-
.svg
|
|
44
|
-
|
|
45
|
-
|
|
15
|
+
.svg {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
46
18
|
|
|
47
|
-
height: 100%;
|
|
48
19
|
|
|
49
|
-
|
|
20
|
+
.svg svg {
|
|
21
|
+
aspect-ratio: 1 / 1;
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
50
24
|
}
|
|
51
25
|
|
|
52
26
|
|
|
@@ -54,113 +28,82 @@
|
|
|
54
28
|
.animate-right-outro {
|
|
55
29
|
transform: translateX(calc(100% + 50px));
|
|
56
30
|
}
|
|
57
|
-
.fixed{
|
|
58
|
-
|
|
59
|
-
position: fixed;
|
|
31
|
+
.fixed {
|
|
32
|
+
position: fixed;
|
|
60
33
|
}
|
|
61
|
-
.absolute{
|
|
62
|
-
|
|
63
|
-
position: absolute;
|
|
34
|
+
.absolute {
|
|
35
|
+
position: absolute;
|
|
64
36
|
}
|
|
65
|
-
.mx-6{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
margin-right: 1.5rem;
|
|
37
|
+
.mx-6 {
|
|
38
|
+
margin-left: 1.5rem;
|
|
39
|
+
margin-right: 1.5rem;
|
|
70
40
|
}
|
|
71
|
-
.ml-auto{
|
|
72
|
-
|
|
73
|
-
margin-left: auto;
|
|
41
|
+
.ml-auto {
|
|
42
|
+
margin-left: auto;
|
|
74
43
|
}
|
|
75
|
-
.flex{
|
|
76
|
-
|
|
77
|
-
display: flex;
|
|
44
|
+
.flex {
|
|
45
|
+
display: flex;
|
|
78
46
|
}
|
|
79
|
-
.w-16{
|
|
80
|
-
|
|
81
|
-
width: 4rem;
|
|
47
|
+
.w-16 {
|
|
48
|
+
width: 4rem;
|
|
82
49
|
}
|
|
83
|
-
.min-w-0{
|
|
84
|
-
|
|
85
|
-
min-width: 0px;
|
|
50
|
+
.min-w-0 {
|
|
51
|
+
min-width: 0px;
|
|
86
52
|
}
|
|
87
|
-
.max-w-lg{
|
|
88
|
-
|
|
89
|
-
max-width: 32rem;
|
|
53
|
+
.max-w-lg {
|
|
54
|
+
max-width: 32rem;
|
|
90
55
|
}
|
|
91
|
-
.max-w-xl{
|
|
92
|
-
|
|
93
|
-
max-width: 36rem;
|
|
56
|
+
.max-w-xl {
|
|
57
|
+
max-width: 36rem;
|
|
94
58
|
}
|
|
95
|
-
.items-center{
|
|
96
|
-
|
|
97
|
-
align-items: center;
|
|
59
|
+
.items-center {
|
|
60
|
+
align-items: center;
|
|
98
61
|
}
|
|
99
|
-
.gap-4{
|
|
100
|
-
|
|
101
|
-
gap: 1rem;
|
|
62
|
+
.gap-4 {
|
|
63
|
+
gap: 1rem;
|
|
102
64
|
}
|
|
103
|
-
.truncate{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
text-overflow: ellipsis;
|
|
108
|
-
|
|
109
|
-
white-space: nowrap;
|
|
65
|
+
.truncate {
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
white-space: nowrap;
|
|
110
69
|
}
|
|
111
|
-
.rounded-full{
|
|
112
|
-
|
|
113
|
-
border-radius: 9999px;
|
|
70
|
+
.rounded-full {
|
|
71
|
+
border-radius: 9999px;
|
|
114
72
|
}
|
|
115
|
-
.border{
|
|
116
|
-
|
|
117
|
-
border-width: 1px;
|
|
73
|
+
.border {
|
|
74
|
+
border-width: 1px;
|
|
118
75
|
}
|
|
119
|
-
.border-b{
|
|
120
|
-
|
|
121
|
-
border-bottom-width: 1px;
|
|
76
|
+
.border-b {
|
|
77
|
+
border-bottom-width: 1px;
|
|
122
78
|
}
|
|
123
|
-
.border-t{
|
|
124
|
-
|
|
125
|
-
border-top-width: 1px;
|
|
79
|
+
.border-t {
|
|
80
|
+
border-top-width: 1px;
|
|
126
81
|
}
|
|
127
|
-
.border-tone-neutral-09{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
border-color: rgba(var(--tone-neutral-09), var(--tw-border-opacity));
|
|
82
|
+
.border-tone-neutral-09 {
|
|
83
|
+
--tw-border-opacity: 1;
|
|
84
|
+
border-color: rgb(var(--tone-neutral-09) / var(--tw-border-opacity));
|
|
132
85
|
}
|
|
133
|
-
.bg-transparent{
|
|
134
|
-
|
|
135
|
-
background-color: transparent;
|
|
86
|
+
.bg-transparent {
|
|
87
|
+
background-color: transparent;
|
|
136
88
|
}
|
|
137
|
-
.p-4{
|
|
138
|
-
|
|
139
|
-
padding: 1rem;
|
|
89
|
+
.p-4 {
|
|
90
|
+
padding: 1rem;
|
|
140
91
|
}
|
|
141
|
-
.p-8{
|
|
142
|
-
|
|
143
|
-
padding: 2rem;
|
|
92
|
+
.p-8 {
|
|
93
|
+
padding: 2rem;
|
|
144
94
|
}
|
|
145
|
-
.text-tone-neutral-02{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
color: rgba(var(--tone-neutral-02), var(--tw-text-opacity));
|
|
95
|
+
.text-tone-neutral-02 {
|
|
96
|
+
--tw-text-opacity: 1;
|
|
97
|
+
color: rgb(var(--tone-neutral-02) / var(--tw-text-opacity));
|
|
150
98
|
}
|
|
151
|
-
.text-tone-neutral-04{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
color: rgba(var(--tone-neutral-04), var(--tw-text-opacity));
|
|
99
|
+
.text-tone-neutral-04 {
|
|
100
|
+
--tw-text-opacity: 1;
|
|
101
|
+
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
156
102
|
}
|
|
157
|
-
.shadow{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
162
|
-
|
|
163
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
103
|
+
.shadow {
|
|
104
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
105
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
106
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
164
107
|
}
|
|
165
108
|
|
|
166
109
|
/**
|
|
@@ -195,12 +138,12 @@
|
|
|
195
138
|
z-index: var(--mds-modal-z-index, 1000);
|
|
196
139
|
}
|
|
197
140
|
|
|
198
|
-
:host( [position=top] ) {
|
|
141
|
+
:host( [position="top"] ) {
|
|
199
142
|
align-items: flex-start;
|
|
200
143
|
justify-content: center;
|
|
201
144
|
}
|
|
202
145
|
|
|
203
|
-
:host( [position=bottom] ) {
|
|
146
|
+
:host( [position="bottom"] ) {
|
|
204
147
|
align-items: flex-end;
|
|
205
148
|
justify-content: center;
|
|
206
149
|
}
|
|
@@ -209,47 +152,35 @@
|
|
|
209
152
|
:host( .to-center-opened ),
|
|
210
153
|
:host( .to-left-opened ),
|
|
211
154
|
:host( .to-right-opened ),
|
|
212
|
-
:host( .to-top-opened ){
|
|
213
|
-
|
|
214
|
-
transition-duration: 500ms;
|
|
155
|
+
:host( .to-top-opened ) {
|
|
156
|
+
transition-duration: 500ms;
|
|
215
157
|
|
|
216
158
|
background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));
|
|
217
159
|
pointer-events: auto;
|
|
218
160
|
}
|
|
219
161
|
|
|
220
|
-
.close{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
font-size: 2.25rem;
|
|
231
|
-
|
|
232
|
-
line-height: 2.5rem;
|
|
233
|
-
|
|
234
|
-
opacity: 0;
|
|
235
|
-
|
|
236
|
-
transition-duration: 500ms;
|
|
237
|
-
|
|
238
|
-
transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
162
|
+
.close {
|
|
163
|
+
top: 0px;
|
|
164
|
+
height: 2.25rem;
|
|
165
|
+
width: 2.25rem;
|
|
166
|
+
border-radius: 9999px;
|
|
167
|
+
font-size: 2.25rem;
|
|
168
|
+
line-height: 2.5rem;
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transition-duration: 500ms;
|
|
171
|
+
transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
239
172
|
|
|
240
173
|
cursor: pointer;
|
|
241
174
|
fill: inherit;
|
|
242
175
|
position: absolute;
|
|
243
|
-
transform-origin: center;
|
|
244
176
|
transform: translate(0, 24px) rotate(90deg);
|
|
177
|
+
transform-origin: center;
|
|
245
178
|
transition-property: opacity, outline, outline-offset, transform;
|
|
246
179
|
}
|
|
247
180
|
|
|
248
|
-
.window{
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
gap: 0px;
|
|
181
|
+
.window {
|
|
182
|
+
height: 100%;
|
|
183
|
+
gap: 0px;
|
|
253
184
|
|
|
254
185
|
background-color: var(--mds-modal-window-background);
|
|
255
186
|
box-shadow: var(--mds-modal-window-shadow);
|
|
@@ -271,18 +202,14 @@
|
|
|
271
202
|
grid-template-rows: auto 1fr auto;
|
|
272
203
|
}
|
|
273
204
|
|
|
274
|
-
:host( .to-bottom ){
|
|
275
|
-
|
|
276
|
-
padding: 2rem;
|
|
205
|
+
:host( .to-bottom ) {
|
|
206
|
+
padding: 2rem;
|
|
277
207
|
}
|
|
278
208
|
|
|
279
|
-
@media (max-width: 767px){
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
padding: 1rem;
|
|
285
|
-
}
|
|
209
|
+
@media (max-width: 767px) {
|
|
210
|
+
:host( .to-bottom ) {
|
|
211
|
+
padding: 1rem;
|
|
212
|
+
}
|
|
286
213
|
}
|
|
287
214
|
|
|
288
215
|
:host( .to-bottom ) {
|
|
@@ -291,17 +218,12 @@
|
|
|
291
218
|
}
|
|
292
219
|
|
|
293
220
|
:host( .to-bottom ) .window,
|
|
294
|
-
:host( .to-bottom ) > ::slotted( [slot="window"] ){
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
301
|
-
|
|
302
|
-
transition-duration: 500ms;
|
|
303
|
-
|
|
304
|
-
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
221
|
+
:host( .to-bottom ) > ::slotted( [slot="window"] ) {
|
|
222
|
+
opacity: 0;
|
|
223
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
224
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
225
|
+
transition-duration: 500ms;
|
|
226
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
305
227
|
}
|
|
306
228
|
|
|
307
229
|
:host( .to-bottom-intro ) .window,
|
|
@@ -312,9 +234,8 @@
|
|
|
312
234
|
:host( .to-bottom-opened.to-bottom-outro ) .window,
|
|
313
235
|
:host( .to-bottom-opened.to-bottom-outro ) > ::slotted( [slot="window"] ),
|
|
314
236
|
:host( .to-bottom-opened ) .window,
|
|
315
|
-
:host( .to-bottom-opened ) > ::slotted( [slot="window"] ){
|
|
316
|
-
|
|
317
|
-
opacity: 1;
|
|
237
|
+
:host( .to-bottom-opened ) > ::slotted( [slot="window"] ) {
|
|
238
|
+
opacity: 1;
|
|
318
239
|
|
|
319
240
|
transform: rotateX(0) scale(1) translateY(0);
|
|
320
241
|
}
|
|
@@ -324,18 +245,14 @@
|
|
|
324
245
|
transform: rotateX(-22deg) scale(0.5) translateY(-40%);
|
|
325
246
|
}
|
|
326
247
|
|
|
327
|
-
:host( .to-center ){
|
|
328
|
-
|
|
329
|
-
padding: 2rem;
|
|
248
|
+
:host( .to-center ) {
|
|
249
|
+
padding: 2rem;
|
|
330
250
|
}
|
|
331
251
|
|
|
332
|
-
@media (max-width: 767px){
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
padding: 1rem;
|
|
338
|
-
}
|
|
252
|
+
@media (max-width: 767px) {
|
|
253
|
+
:host( .to-center ) {
|
|
254
|
+
padding: 1rem;
|
|
255
|
+
}
|
|
339
256
|
}
|
|
340
257
|
|
|
341
258
|
:host( .to-center ) {
|
|
@@ -344,17 +261,12 @@
|
|
|
344
261
|
}
|
|
345
262
|
|
|
346
263
|
:host( .to-center ) .window,
|
|
347
|
-
:host( .to-center ) > ::slotted( [slot="window"] ){
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
354
|
-
|
|
355
|
-
transition-duration: 500ms;
|
|
356
|
-
|
|
357
|
-
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
264
|
+
:host( .to-center ) > ::slotted( [slot="window"] ) {
|
|
265
|
+
opacity: 0;
|
|
266
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
267
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
268
|
+
transition-duration: 500ms;
|
|
269
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
358
270
|
}
|
|
359
271
|
|
|
360
272
|
:host( .to-center-intro ) .window,
|
|
@@ -365,9 +277,8 @@
|
|
|
365
277
|
:host( .to-center-opened.to-center-outro ) .window,
|
|
366
278
|
:host( .to-center-opened.to-center-outro ) > ::slotted( [slot="window"] ),
|
|
367
279
|
:host( .to-center-opened ) .window,
|
|
368
|
-
:host( .to-center-opened ) > ::slotted( [slot="window"] ){
|
|
369
|
-
|
|
370
|
-
opacity: 1;
|
|
280
|
+
:host( .to-center-opened ) > ::slotted( [slot="window"] ) {
|
|
281
|
+
opacity: 1;
|
|
371
282
|
|
|
372
283
|
transform: rotateX(0) scale(1) translateY(0);
|
|
373
284
|
}
|
|
@@ -382,17 +293,12 @@
|
|
|
382
293
|
}
|
|
383
294
|
|
|
384
295
|
:host( .to-left ) .window,
|
|
385
|
-
:host( .to-left ) > ::slotted( [slot="window"] ){
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
392
|
-
|
|
393
|
-
transition-duration: 500ms;
|
|
394
|
-
|
|
395
|
-
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
296
|
+
:host( .to-left ) > ::slotted( [slot="window"] ) {
|
|
297
|
+
opacity: 0;
|
|
298
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
299
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
300
|
+
transition-duration: 500ms;
|
|
301
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
396
302
|
}
|
|
397
303
|
|
|
398
304
|
:host( .to-left-intro ) .window,
|
|
@@ -403,17 +309,15 @@
|
|
|
403
309
|
:host( .to-left-opened.to-left-outro ) .window,
|
|
404
310
|
:host( .to-left-opened.to-left-outro ) > ::slotted( [slot="window"] ),
|
|
405
311
|
:host( .to-left-opened ) .window,
|
|
406
|
-
:host( .to-left-opened ) > ::slotted( [slot="window"] ){
|
|
407
|
-
|
|
408
|
-
opacity: 1;
|
|
312
|
+
:host( .to-left-opened ) > ::slotted( [slot="window"] ) {
|
|
313
|
+
opacity: 1;
|
|
409
314
|
|
|
410
315
|
transform: translateX(0);
|
|
411
316
|
}
|
|
412
317
|
|
|
413
318
|
:host( .to-left-opened ) .close,
|
|
414
|
-
:host( .to-left-opened.to-left-outro ) .close{
|
|
415
|
-
|
|
416
|
-
opacity: 1;
|
|
319
|
+
:host( .to-left-opened.to-left-outro ) .close {
|
|
320
|
+
opacity: 1;
|
|
417
321
|
|
|
418
322
|
transform: translate(-24px, 24px) rotate(0);
|
|
419
323
|
}
|
|
@@ -427,9 +331,8 @@
|
|
|
427
331
|
transform: translate(24px, 24px) rotate(-90deg);
|
|
428
332
|
}
|
|
429
333
|
|
|
430
|
-
:host( .to-left ) .close{
|
|
431
|
-
|
|
432
|
-
right: 0px;
|
|
334
|
+
:host( .to-left ) .close {
|
|
335
|
+
right: 0px;
|
|
433
336
|
|
|
434
337
|
transform: translate(36px, 24px) rotate(90deg);
|
|
435
338
|
}
|
|
@@ -439,17 +342,12 @@
|
|
|
439
342
|
}
|
|
440
343
|
|
|
441
344
|
:host( .to-right ) .window,
|
|
442
|
-
:host( .to-right ) > ::slotted([slot="window"]){
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
449
|
-
|
|
450
|
-
transition-duration: 500ms;
|
|
451
|
-
|
|
452
|
-
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
345
|
+
:host( .to-right ) > ::slotted([slot="window"]) {
|
|
346
|
+
opacity: 0;
|
|
347
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
348
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
349
|
+
transition-duration: 500ms;
|
|
350
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
453
351
|
}
|
|
454
352
|
|
|
455
353
|
:host( .to-right-intro ) .window,
|
|
@@ -460,17 +358,15 @@
|
|
|
460
358
|
:host( .to-right-opened.to-right-outro ) .window,
|
|
461
359
|
:host( .to-right-opened.to-right-outro ) > ::slotted( [slot="window"] ),
|
|
462
360
|
:host( .to-right-opened ) .window,
|
|
463
|
-
:host( .to-right-opened ) > ::slotted( [slot="window"] ){
|
|
464
|
-
|
|
465
|
-
opacity: 1;
|
|
361
|
+
:host( .to-right-opened ) > ::slotted( [slot="window"] ) {
|
|
362
|
+
opacity: 1;
|
|
466
363
|
|
|
467
364
|
transform: translateX(0);
|
|
468
365
|
}
|
|
469
366
|
|
|
470
367
|
:host( .to-right-opened ) .close,
|
|
471
|
-
:host( .to-right-opened.to-right-outro ) .close{
|
|
472
|
-
|
|
473
|
-
opacity: 1;
|
|
368
|
+
:host( .to-right-opened.to-right-outro ) .close {
|
|
369
|
+
opacity: 1;
|
|
474
370
|
|
|
475
371
|
transform: translate(24px, 24px) rotate(0);
|
|
476
372
|
}
|
|
@@ -484,25 +380,20 @@
|
|
|
484
380
|
transform: translate(-24px, 24px) rotate(90deg);
|
|
485
381
|
}
|
|
486
382
|
|
|
487
|
-
:host( .to-right ) .close{
|
|
488
|
-
|
|
489
|
-
left: 0px;
|
|
383
|
+
:host( .to-right ) .close {
|
|
384
|
+
left: 0px;
|
|
490
385
|
|
|
491
386
|
transform: translate(-36px, 24px) rotate(-90deg);
|
|
492
387
|
}
|
|
493
388
|
|
|
494
|
-
:host( .to-top ){
|
|
495
|
-
|
|
496
|
-
padding: 2rem;
|
|
389
|
+
:host( .to-top ) {
|
|
390
|
+
padding: 2rem;
|
|
497
391
|
}
|
|
498
392
|
|
|
499
|
-
@media (max-width: 767px){
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
padding: 1rem;
|
|
505
|
-
}
|
|
393
|
+
@media (max-width: 767px) {
|
|
394
|
+
:host( .to-top ) {
|
|
395
|
+
padding: 1rem;
|
|
396
|
+
}
|
|
506
397
|
}
|
|
507
398
|
|
|
508
399
|
:host( .to-top ) {
|
|
@@ -511,17 +402,12 @@
|
|
|
511
402
|
}
|
|
512
403
|
|
|
513
404
|
:host( .to-top ) .window,
|
|
514
|
-
:host( .to-top ) > ::slotted( [slot="window"] ){
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
521
|
-
|
|
522
|
-
transition-duration: 500ms;
|
|
523
|
-
|
|
524
|
-
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
405
|
+
:host( .to-top ) > ::slotted( [slot="window"] ) {
|
|
406
|
+
opacity: 0;
|
|
407
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
408
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
409
|
+
transition-duration: 500ms;
|
|
410
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
525
411
|
}
|
|
526
412
|
|
|
527
413
|
:host( .to-top-intro ) .window,
|
|
@@ -532,9 +418,8 @@
|
|
|
532
418
|
:host( .to-top-opened.to-top-outro ) .window,
|
|
533
419
|
:host( .to-top-opened.to-top-outro ) > ::slotted( [slot="window"] ),
|
|
534
420
|
:host( .to-top-opened ) .window,
|
|
535
|
-
:host( .to-top-opened ) > ::slotted( [slot="window"] ){
|
|
536
|
-
|
|
537
|
-
opacity: 1;
|
|
421
|
+
:host( .to-top-opened ) > ::slotted( [slot="window"] ) {
|
|
422
|
+
opacity: 1;
|
|
538
423
|
|
|
539
424
|
transform: rotateX(0) scale(1) translateY(0);
|
|
540
425
|
}
|
|
@@ -544,13 +429,10 @@
|
|
|
544
429
|
transform: rotateX(-22deg) scale(0.5) translateY(-40%);
|
|
545
430
|
}
|
|
546
431
|
|
|
547
|
-
@media (max-width: 767px){
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
width: 3rem;
|
|
553
|
-
}
|
|
432
|
+
@media (max-width: 767px) {
|
|
433
|
+
.mobile\:w-12 {
|
|
434
|
+
width: 3rem;
|
|
435
|
+
}
|
|
554
436
|
}
|
|
555
437
|
|
|
556
438
|
|
|
@@ -91,7 +91,7 @@ export class MdsModal {
|
|
|
91
91
|
? h("slot", { name: "window" })
|
|
92
92
|
: h("div", { class: clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`), role: "dialog", part: "window" }, this.top &&
|
|
93
93
|
h("slot", { name: "top" }), h("slot", null), this.bottom &&
|
|
94
|
-
h("slot", { name: "bottom" })), !this.window && h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close
|
|
94
|
+
h("slot", { name: "bottom" })), !this.window && h("i", { innerHTML: miBaselineClose, tabindex: "0", onClick: (e) => { this.closeModal(e); }, class: "svg close focus-bounce-light" })));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "mds-modal"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ describe('mds-modal', () => {
|
|
|
15
15
|
<div class="window" part="window" role="dialog">
|
|
16
16
|
<slot></slot>
|
|
17
17
|
</div>
|
|
18
|
-
<i class="close
|
|
18
|
+
<i class="close focus-bounce-light svg" tabindex="0">
|
|
19
19
|
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
20
20
|
<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"></path>
|
|
21
21
|
</svg>
|
|
@@ -31,7 +31,7 @@ describe('mds-modal', () => {
|
|
|
31
31
|
<div class="window" part="window" role="dialog">
|
|
32
32
|
<slot></slot>
|
|
33
33
|
</div>
|
|
34
|
-
<i class="close
|
|
34
|
+
<i class="close focus-bounce-light svg" tabindex="0">
|
|
35
35
|
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
36
36
|
<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"></path>
|
|
37
37
|
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const inputTextTypeDictionary = [
|
|
2
|
+
'date',
|
|
3
|
+
'email',
|
|
4
|
+
'number',
|
|
5
|
+
'password',
|
|
6
|
+
'search',
|
|
7
|
+
'tel',
|
|
8
|
+
'text',
|
|
9
|
+
'textarea',
|
|
10
|
+
'time',
|
|
11
|
+
'url',
|
|
12
|
+
];
|
|
13
|
+
const inputControlsLayoutDictionary = [
|
|
14
|
+
'horizontal',
|
|
15
|
+
'vertical',
|
|
16
|
+
];
|
|
17
|
+
const inputControlsIconDictionary = [
|
|
18
|
+
'arrow',
|
|
19
|
+
'arithmetic',
|
|
20
|
+
];
|
|
21
|
+
export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, };
|
|
@@ -60,4 +60,8 @@ const typographyTooltipDictionary = [
|
|
|
60
60
|
'detail',
|
|
61
61
|
'tip',
|
|
62
62
|
];
|
|
63
|
-
|
|
63
|
+
const typographyInputDictionary = [
|
|
64
|
+
'snippet',
|
|
65
|
+
'detail',
|
|
66
|
+
];
|
|
67
|
+
export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
|