@maggioli-design-system/mds-modal 5.3.0 → 5.5.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-6f236cfa.js → index-a263ff04.js} +139 -101
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +35 -4
- package/dist/cjs/mds-modal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-modal/mds-modal.css +171 -73
- package/dist/collection/components/mds-modal/mds-modal.js +59 -2
- package/dist/collection/components/mds-modal/meta/dictionary.js +5 -1
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +20 -2
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-modal.js +36 -4
- package/dist/documentation.json +47 -2
- package/dist/esm/{index-f8d2dee4.js → index-efd0657a.js} +139 -101
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-modal.entry.js +35 -4
- package/dist/esm/mds-modal.js +4 -4
- package/dist/esm-es5/index-efd0657a.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-26971abb.js +2 -0
- package/dist/mds-modal/p-52bb21e4.system.entry.js +1 -0
- package/dist/mds-modal/p-785b3b47.system.js +2 -0
- package/dist/mds-modal/p-96b782c7.system.js +1 -0
- package/dist/mds-modal/p-df986a83.entry.js +1 -0
- package/dist/stats.json +100 -33
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-modal/meta/dictionary.d.ts +2 -1
- package/dist/types/components/mds-modal/meta/types.d.ts +1 -0
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +11 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +62 -2
- package/package.json +4 -4
- package/readme.md +18 -16
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-modal/css/mds-modal-animate-bottom-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate.css +4 -4
- package/src/components/mds-modal/css/mds-modal-pref-animation.css +14 -23
- package/src/components/mds-modal/css/mds-modal-pref-contrast.css +5 -13
- package/src/components/mds-modal/css/mds-modal-pref-theme.css +6 -15
- package/src/components/mds-modal/mds-modal.css +9 -6
- package/src/components/mds-modal/mds-modal.tsx +36 -1
- package/src/components/mds-modal/meta/dictionary.ts +6 -0
- package/src/components/mds-modal/meta/types.ts +4 -0
- package/src/components/mds-modal/readme.md +18 -16
- package/src/components/mds-modal/test/mds-modal.stories.tsx +57 -3
- package/src/components.d.ts +10 -2
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-26971abb.js +2 -0
- package/www/build/p-52bb21e4.system.entry.js +1 -0
- package/www/build/p-785b3b47.system.js +2 -0
- package/www/build/p-96b782c7.system.js +1 -0
- package/www/build/p-df986a83.entry.js +1 -0
- package/dist/esm-es5/index-f8d2dee4.js +0 -1
- package/dist/mds-modal/p-413a00c5.entry.js +0 -1
- package/dist/mds-modal/p-96958acc.system.entry.js +0 -1
- package/dist/mds-modal/p-bc1fa4e4.system.js +0 -2
- package/dist/mds-modal/p-c6899cb0.system.js +0 -1
- package/dist/mds-modal/p-ee90f86a.js +0 -2
- package/www/build/p-413a00c5.entry.js +0 -1
- package/www/build/p-96958acc.system.entry.js +0 -1
- package/www/build/p-bc1fa4e4.system.js +0 -2
- package/www/build/p-c6899cb0.system.js +0 -1
- package/www/build/p-ee90f86a.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { h } from '@stencil/core'
|
|
3
3
|
import { useState } from 'react'
|
|
4
|
-
import { modalPositionDictionary } from '../meta/dictionary'
|
|
4
|
+
import { modalPositionDictionary, modalOverflowDictionary } from '../meta/dictionary'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'UI / Modal',
|
|
@@ -10,6 +10,12 @@ export default {
|
|
|
10
10
|
description: 'Specifies if the modal is opened or not',
|
|
11
11
|
type: { name: 'boolean' },
|
|
12
12
|
},
|
|
13
|
+
overflow: {
|
|
14
|
+
description: 'Specifies if the component prevents the body from scrolling when modal window is opened',
|
|
15
|
+
control: { type: 'select' },
|
|
16
|
+
options: modalOverflowDictionary,
|
|
17
|
+
type: { name: 'string' },
|
|
18
|
+
},
|
|
13
19
|
position: {
|
|
14
20
|
control: { type: 'select' },
|
|
15
21
|
description: 'Specifies the animation position of the modal window',
|
|
@@ -27,7 +33,7 @@ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com
|
|
|
27
33
|
const Template = args =>
|
|
28
34
|
<mds-modal {...args}>
|
|
29
35
|
<header slot="top" class="p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
30
|
-
<mds-img class="w-1600" src="
|
|
36
|
+
<mds-img class="w-1600" src="./logo-gruppo-maggioli-512w.webp"/>
|
|
31
37
|
<div class="text-tone-neutral-02">
|
|
32
38
|
<mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
|
|
33
39
|
<mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
|
|
@@ -40,7 +46,7 @@ const Template = args =>
|
|
|
40
46
|
</div>
|
|
41
47
|
<footer slot="bottom" class="p-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
42
48
|
<mds-author class="flex-grow">
|
|
43
|
-
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="
|
|
49
|
+
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="./avatar-01-200x200.jpeg"/>
|
|
44
50
|
<mds-text typography="h6">{ fullName }</mds-text>
|
|
45
51
|
<mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
|
|
46
52
|
</mds-author>
|
|
@@ -48,6 +54,41 @@ const Template = args =>
|
|
|
48
54
|
</footer>
|
|
49
55
|
</mds-modal>
|
|
50
56
|
|
|
57
|
+
const TemplateOverflow = args =>
|
|
58
|
+
<div>
|
|
59
|
+
<div class="grid">
|
|
60
|
+
{Array(40).fill(null).map((_value, index) => (
|
|
61
|
+
<div key={index} class="h-[100px] flex items-start justify-center text-center border-0 border-t border-solid border-t-tone-neutral-07">
|
|
62
|
+
<mds-text class="px-200 py-100 rounded-b-lg bg-tone-neutral-10 border-t-0 border border-solid border-tone-neutral-07" typography="snippet" tag="div">
|
|
63
|
+
{ index === 0 ? '0px' : index + '00px' }
|
|
64
|
+
</mds-text>
|
|
65
|
+
</div>
|
|
66
|
+
))}
|
|
67
|
+
</div>
|
|
68
|
+
<mds-modal {...args}>
|
|
69
|
+
<header slot="top" class="p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
70
|
+
<mds-img class="w-1600" src="./logo-gruppo-maggioli-512w.webp"/>
|
|
71
|
+
<div class="text-tone-neutral-02">
|
|
72
|
+
<mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
|
|
73
|
+
<mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
|
|
74
|
+
</div>
|
|
75
|
+
</header>
|
|
76
|
+
<div class="p-800 max-w-[400px]">
|
|
77
|
+
<mds-text>
|
|
78
|
+
As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we’re future-proofing our components as more brands adopt NewsKit.
|
|
79
|
+
</mds-text>
|
|
80
|
+
</div>
|
|
81
|
+
<footer slot="bottom" class="p-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
82
|
+
<mds-author class="flex-grow">
|
|
83
|
+
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="./avatar-01-200x200.jpeg"/>
|
|
84
|
+
<mds-text typography="h6">{ fullName }</mds-text>
|
|
85
|
+
<mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
|
|
86
|
+
</mds-author>
|
|
87
|
+
<mds-button icon="mdi/dots-vertical" variant="light"></mds-button>
|
|
88
|
+
</footer>
|
|
89
|
+
</mds-modal>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
51
92
|
const CustomTemplate = args =>
|
|
52
93
|
<mds-modal {...args}>
|
|
53
94
|
<mds-banner slot="window" class="max-w-xl mx-6" deletable headline="Action required">
|
|
@@ -80,15 +121,28 @@ const InteractiveTemplate = () => {
|
|
|
80
121
|
export const Default = Template.bind({})
|
|
81
122
|
Default.args = {
|
|
82
123
|
position: 'right',
|
|
124
|
+
opened: true,
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const BodyOverflowDisabled = TemplateOverflow.bind({})
|
|
128
|
+
BodyOverflowDisabled.args = {
|
|
129
|
+
overflow: 'auto',
|
|
130
|
+
opened: true,
|
|
131
|
+
position: 'right',
|
|
83
132
|
}
|
|
84
133
|
|
|
85
134
|
export const DefaultWindowCustomized = Template.bind({})
|
|
86
135
|
DefaultWindowCustomized.args = {
|
|
87
136
|
position: 'right',
|
|
137
|
+
opened: true,
|
|
88
138
|
style: { '--mds-modal-window-distance': '1rem', '--mds-modal-window-radius': '1rem' },
|
|
89
139
|
}
|
|
90
140
|
export const CustomWindowElement = CustomTemplate.bind({})
|
|
141
|
+
CustomWindowElement.args = {
|
|
142
|
+
opened: true,
|
|
143
|
+
}
|
|
91
144
|
export const Interactive = InteractiveTemplate.bind({})
|
|
145
|
+
|
|
92
146
|
export const ARIATest = CustomTemplate.bind({})
|
|
93
147
|
ARIATest.args = {
|
|
94
148
|
opened: true,
|
package/src/components.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
|
8
|
-
import { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
-
export { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
8
|
+
import { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
+
export { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
10
10
|
export namespace Components {
|
|
11
11
|
interface MdsModal {
|
|
12
12
|
/**
|
|
@@ -17,6 +17,10 @@ export namespace Components {
|
|
|
17
17
|
* Specifies if the modal is opened or not
|
|
18
18
|
*/
|
|
19
19
|
"opened": boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
22
|
+
*/
|
|
23
|
+
"overflow": ModalOverflowType;
|
|
20
24
|
/**
|
|
21
25
|
* Specifies the animation position of the modal window
|
|
22
26
|
*/
|
|
@@ -68,6 +72,10 @@ declare namespace LocalJSX {
|
|
|
68
72
|
* Specifies if the modal is opened or not
|
|
69
73
|
*/
|
|
70
74
|
"opened"?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
77
|
+
*/
|
|
78
|
+
"overflow"?: ModalOverflowType;
|
|
71
79
|
/**
|
|
72
80
|
* Specifies the animation position of the modal window
|
|
73
81
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const keyboardKeyNameDictionary = [
|
|
2
|
+
'0',
|
|
3
|
+
'1',
|
|
4
|
+
'2',
|
|
5
|
+
'3',
|
|
6
|
+
'4',
|
|
7
|
+
'5',
|
|
8
|
+
'6',
|
|
9
|
+
'7',
|
|
10
|
+
'8',
|
|
11
|
+
'9',
|
|
12
|
+
'a',
|
|
13
|
+
'alt',
|
|
14
|
+
'altleft',
|
|
15
|
+
'altright',
|
|
16
|
+
'arrowdown',
|
|
17
|
+
'arrowleft',
|
|
18
|
+
'arrowright',
|
|
19
|
+
'arrowup',
|
|
20
|
+
'b',
|
|
21
|
+
'backspace',
|
|
22
|
+
'c',
|
|
23
|
+
'capslock',
|
|
24
|
+
'command',
|
|
25
|
+
'commandleft',
|
|
26
|
+
'commandright',
|
|
27
|
+
'control',
|
|
28
|
+
'controlleft',
|
|
29
|
+
'controlright',
|
|
30
|
+
'd',
|
|
31
|
+
'delete',
|
|
32
|
+
'e',
|
|
33
|
+
'end',
|
|
34
|
+
'enter',
|
|
35
|
+
'escape',
|
|
36
|
+
'f',
|
|
37
|
+
'f1',
|
|
38
|
+
'f10',
|
|
39
|
+
'f11',
|
|
40
|
+
'f12',
|
|
41
|
+
'f2',
|
|
42
|
+
'f3',
|
|
43
|
+
'f4',
|
|
44
|
+
'f5',
|
|
45
|
+
'f6',
|
|
46
|
+
'f7',
|
|
47
|
+
'f8',
|
|
48
|
+
'f9',
|
|
49
|
+
'g',
|
|
50
|
+
'h',
|
|
51
|
+
'home',
|
|
52
|
+
'i',
|
|
53
|
+
'j',
|
|
54
|
+
'k',
|
|
55
|
+
'l',
|
|
56
|
+
'm',
|
|
57
|
+
'n',
|
|
58
|
+
'o',
|
|
59
|
+
'option',
|
|
60
|
+
'optionleft',
|
|
61
|
+
'optionright',
|
|
62
|
+
'p',
|
|
63
|
+
'pagedown',
|
|
64
|
+
'pageup',
|
|
65
|
+
'q',
|
|
66
|
+
'r',
|
|
67
|
+
's',
|
|
68
|
+
'shift',
|
|
69
|
+
'shiftleft',
|
|
70
|
+
'shiftright',
|
|
71
|
+
'space',
|
|
72
|
+
't',
|
|
73
|
+
'tab',
|
|
74
|
+
'u',
|
|
75
|
+
'v',
|
|
76
|
+
'w',
|
|
77
|
+
'windows',
|
|
78
|
+
'windowsleft',
|
|
79
|
+
'windowsright',
|
|
80
|
+
'x',
|
|
81
|
+
'y',
|
|
82
|
+
'z',
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
keyboardKeyNameDictionary,
|
|
87
|
+
}
|
package/src/fixtures/icons.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"mdi/alien",
|
|
3
|
+
"mdi/apple-keyboard-shift",
|
|
3
4
|
"mdi/barley",
|
|
4
5
|
"mdi/baseball",
|
|
5
6
|
"mdi/crown",
|
|
@@ -12,8 +13,10 @@
|
|
|
12
13
|
"mdi/folder-open",
|
|
13
14
|
"mdi/handshake",
|
|
14
15
|
"mdi/harddisk",
|
|
16
|
+
"mdi/keyboard-space",
|
|
15
17
|
"mdi/license",
|
|
16
18
|
"mdi/map-marker",
|
|
19
|
+
"mdi/npm",
|
|
17
20
|
"mdi/replay",
|
|
18
21
|
"mdi/vector-curve",
|
|
19
22
|
"mgg/abitazione-principale",
|
|
@@ -368,8 +371,16 @@
|
|
|
368
371
|
"mi/baseline/indeterminate-check-box",
|
|
369
372
|
"mi/baseline/info",
|
|
370
373
|
"mi/baseline/insert-drive-file",
|
|
374
|
+
"mi/baseline/keyboard",
|
|
371
375
|
"mi/baseline/keyboard-arrow-down",
|
|
376
|
+
"mi/baseline/keyboard-arrow-left",
|
|
377
|
+
"mi/baseline/keyboard-arrow-right",
|
|
372
378
|
"mi/baseline/keyboard-arrow-up",
|
|
379
|
+
"mi/baseline/keyboard-capslock",
|
|
380
|
+
"mi/baseline/keyboard-command-key",
|
|
381
|
+
"mi/baseline/keyboard-option-key",
|
|
382
|
+
"mi/baseline/keyboard-return",
|
|
383
|
+
"mi/baseline/keyboard-tab",
|
|
373
384
|
"mi/baseline/light-mode",
|
|
374
385
|
"mi/baseline/local-activity",
|
|
375
386
|
"mi/baseline/location-city",
|
|
@@ -379,6 +390,7 @@
|
|
|
379
390
|
"mi/baseline/meeting-room",
|
|
380
391
|
"mi/baseline/more-vert",
|
|
381
392
|
"mi/baseline/navigate-next",
|
|
393
|
+
"mi/baseline/north",
|
|
382
394
|
"mi/baseline/panorama",
|
|
383
395
|
"mi/baseline/person",
|
|
384
396
|
"mi/baseline/pets",
|
|
@@ -389,6 +401,7 @@
|
|
|
389
401
|
"mi/baseline/route",
|
|
390
402
|
"mi/baseline/send",
|
|
391
403
|
"mi/baseline/settings",
|
|
404
|
+
"mi/baseline/south",
|
|
392
405
|
"mi/baseline/sports",
|
|
393
406
|
"mi/baseline/sports-soccer",
|
|
394
407
|
"mi/baseline/stadium",
|
|
@@ -397,6 +410,8 @@
|
|
|
397
410
|
"mi/baseline/tv",
|
|
398
411
|
"mi/baseline/unfold-less",
|
|
399
412
|
"mi/baseline/unfold-more",
|
|
413
|
+
"mi/baseline/vertical-align-bottom",
|
|
414
|
+
"mi/baseline/vertical-align-top",
|
|
400
415
|
"mi/baseline/videocam",
|
|
401
416
|
"mi/baseline/visibility",
|
|
402
417
|
"mi/baseline/visibility-off",
|
|
@@ -405,6 +420,7 @@
|
|
|
405
420
|
"mi/baseline/web",
|
|
406
421
|
"mi/baseline/wysiwyg",
|
|
407
422
|
"mi/outline/auto-awesome",
|
|
423
|
+
"mi/outline/backspace",
|
|
408
424
|
"mi/outline/circle",
|
|
409
425
|
"mi/outline/dark-mode",
|
|
410
426
|
"mi/outline/help-outline",
|
|
@@ -413,5 +429,6 @@
|
|
|
413
429
|
"mi/round/email",
|
|
414
430
|
"mi/round/menu",
|
|
415
431
|
"mi/round/more-vert",
|
|
416
|
-
"mi/round/person"
|
|
432
|
+
"mi/round/person",
|
|
433
|
+
"mi/sharp/window"
|
|
417
434
|
]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"0": { "description": "keyNumber", "group": "Number", "alias": "0", "keyCodes": ["Digit0", "Numpad0"] },
|
|
3
|
+
"1": { "description": "keyNumber", "group": "Number", "alias": "1", "keyCodes": ["Digit1", "Numpad1"] },
|
|
4
|
+
"2": { "description": "keyNumber", "group": "Number", "alias": "2", "keyCodes": ["Digit2", "Numpad2"] },
|
|
5
|
+
"3": { "description": "keyNumber", "group": "Number", "alias": "3", "keyCodes": ["Digit3", "Numpad3"] },
|
|
6
|
+
"4": { "description": "keyNumber", "group": "Number", "alias": "4", "keyCodes": ["Digit4", "Numpad4"] },
|
|
7
|
+
"5": { "description": "keyNumber", "group": "Number", "alias": "5", "keyCodes": ["Digit5", "Numpad5"] },
|
|
8
|
+
"6": { "description": "keyNumber", "group": "Number", "alias": "6", "keyCodes": ["Digit6", "Numpad6"] },
|
|
9
|
+
"7": { "description": "keyNumber", "group": "Number", "alias": "7", "keyCodes": ["Digit7", "Numpad7"] },
|
|
10
|
+
"8": { "description": "keyNumber", "group": "Number", "alias": "8", "keyCodes": ["Digit8", "Numpad8"] },
|
|
11
|
+
"9": { "description": "keyNumber", "group": "Number", "alias": "9", "keyCodes": ["Digit9", "Numpad9"] },
|
|
12
|
+
"a": { "description": "keyCharacter", "group": "Character", "alias": "A", "keyCodes": ["KeyA"] },
|
|
13
|
+
"alt": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyCodes": ["AltLeft", "AltRight"] },
|
|
14
|
+
"altleft": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyboardPosition": {"left": true}, "keyCodes": ["AltLeft"] },
|
|
15
|
+
"altright": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyboardPosition": {"right": true}, "keyCodes": ["AltRight"] },
|
|
16
|
+
"arrowdown": { "description": "navArrowDown", "group": "Arrow", "alias": "ArrowDown", "keyCodes": ["ArrowDown"] },
|
|
17
|
+
"arrowleft": { "description": "navArrowLeft", "group": "Arrow", "alias": "ArrowLeft", "keyCodes": ["ArrowLeft"] },
|
|
18
|
+
"arrowright": { "description": "navArrowRight", "group": "Arrow", "alias": "ArrowRight", "keyCodes": ["ArrowRight"] },
|
|
19
|
+
"arrowup": { "description": "navArrowUp", "group": "Arrow", "alias": "ArrowUp", "keyCodes": ["ArrowUp"] },
|
|
20
|
+
"b": { "description": "keyCharacter", "group": "Character", "alias": "B", "keyCodes": ["KeyB"] },
|
|
21
|
+
"backspace": { "description": "specBackspace", "group": "Special", "alias": "Backspace", "keyCodes": ["Backspace"] },
|
|
22
|
+
"c": { "description": "keyCharacter", "group": "Character", "alias": "C", "keyCodes": ["KeyC"] },
|
|
23
|
+
"capslock": { "description": "specCapsLock", "group": "Special", "alias": "CapsLock", "keyCodes": ["CapsLock"] },
|
|
24
|
+
"command": { "description": "modMeta", "group": "Modificator", "alias": "Cmd", "keyCodes": ["MetaLeft", "MetaRight"] },
|
|
25
|
+
"commandleft": { "description": "modMeta", "group": "Modificator", "alias": "Cmd", "keyboardPosition": {"left": true}, "keyCodes": ["MetaLeft"] },
|
|
26
|
+
"commandright": { "description": "modMeta", "group": "Modificator", "alias": "Cmd", "keyboardPosition": {"right": true}, "keyCodes": ["MetaRight"] },
|
|
27
|
+
"control": { "description": "modControl", "group": "Modificator", "alias": "Ctrl", "keyCodes": ["ControlLeft", "ControlRight"] },
|
|
28
|
+
"controlleft": { "description": "modControl", "group": "Modificator", "alias": "Ctrl", "keyboardPosition": {"left": true}, "keyCode": "Control", "keyCodes": ["ControlLeft"] },
|
|
29
|
+
"controlright": { "description": "modControl", "group": "Modificator", "alias": "Ctrl", "keyboardPosition": {"right": true}, "keyCode": "Control", "keyCodes": ["ControlRight"] },
|
|
30
|
+
"d": { "description": "keyCharacter", "group": "Character", "alias": "D", "keyCodes": ["KeyD"] },
|
|
31
|
+
"delete": { "description": "specDelete", "group": "Special", "alias": "Delete", "keyCodes": ["Delete"] },
|
|
32
|
+
"e": { "description": "keyCharacter", "group": "Character", "alias": "E", "keyCodes": ["KeyE"] },
|
|
33
|
+
"end": { "description": "navEnd", "group": "Navigator", "alias": "End", "keyCodes": ["End"] },
|
|
34
|
+
"enter": { "description": "specEnter", "group": "Special", "alias": "Enter", "keyCodes": ["Enter"] },
|
|
35
|
+
"escape": { "description": "specEscape", "group": "Special", "alias": "Esc", "keyCodes": ["Escape"] },
|
|
36
|
+
"f": { "description": "keyCharacter", "group": "Character", "alias": "F", "keyCodes": ["KeyF"] },
|
|
37
|
+
"f1": { "description": "keyFunction", "group": "Function", "alias": "F1", "keyCodes": ["F1"] },
|
|
38
|
+
"f10": { "description": "keyFunction", "group": "Function", "alias": "F10", "keyCodes": ["F10"] },
|
|
39
|
+
"f11": { "description": "keyFunction", "group": "Function", "alias": "F11", "keyCodes": ["F11"] },
|
|
40
|
+
"f12": { "description": "keyFunction", "group": "Function", "alias": "F12", "keyCodes": ["F12"] },
|
|
41
|
+
"f2": { "description": "keyFunction", "group": "Function", "alias": "F2", "keyCodes": ["F2"] },
|
|
42
|
+
"f3": { "description": "keyFunction", "group": "Function", "alias": "F3", "keyCodes": ["F3"] },
|
|
43
|
+
"f4": { "description": "keyFunction", "group": "Function", "alias": "F4", "keyCodes": ["F4"] },
|
|
44
|
+
"f5": { "description": "keyFunction", "group": "Function", "alias": "F5", "keyCodes": ["F5"] },
|
|
45
|
+
"f6": { "description": "keyFunction", "group": "Function", "alias": "F6", "keyCodes": ["F6"] },
|
|
46
|
+
"f7": { "description": "keyFunction", "group": "Function", "alias": "F7", "keyCodes": ["F7"] },
|
|
47
|
+
"f8": { "description": "keyFunction", "group": "Function", "alias": "F8", "keyCodes": ["F8"] },
|
|
48
|
+
"f9": { "description": "keyFunction", "group": "Function", "alias": "F9", "keyCodes": ["F9"] },
|
|
49
|
+
"g": { "description": "keyCharacter", "group": "Character", "alias": "G", "keyCodes": ["KeyG"] },
|
|
50
|
+
"h": { "description": "keyCharacter", "group": "Character", "alias": "H", "keyCodes": ["KeyH"] },
|
|
51
|
+
"home": { "description": "navHome", "group": "Navigator", "alias": "Home", "keyCodes": ["Home"] },
|
|
52
|
+
"i": { "description": "keyCharacter", "group": "Character", "alias": "I", "keyCodes": ["KeyI"] },
|
|
53
|
+
"j": { "description": "keyCharacter", "group": "Character", "alias": "J", "keyCodes": ["KeyJ"] },
|
|
54
|
+
"k": { "description": "keyCharacter", "group": "Character", "alias": "K", "keyCodes": ["KeyK"] },
|
|
55
|
+
"l": { "description": "keyCharacter", "group": "Character", "alias": "L", "keyCodes": ["KeyL"] },
|
|
56
|
+
"m": { "description": "keyCharacter", "group": "Character", "alias": "M", "keyCodes": ["KeyM"] },
|
|
57
|
+
"n": { "description": "keyCharacter", "group": "Character", "alias": "N", "keyCodes": ["KeyN"] },
|
|
58
|
+
"o": { "description": "keyCharacter", "group": "Character", "alias": "O", "keyCodes": ["KeyO"] },
|
|
59
|
+
"option": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyCodes": ["AltLeft", "AltRight"] },
|
|
60
|
+
"optionleft": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyboardPosition": {"left": true}, "keyCodes": ["AltLeft"] },
|
|
61
|
+
"optionright": { "description": "modAlt", "group": "Modificator", "alias": "Alt", "keyboardPosition": {"right": true}, "keyCodes": ["AltRight"] },
|
|
62
|
+
"p": { "description": "keyCharacter", "group": "Character", "alias": "P", "keyCodes": ["KeyP"] },
|
|
63
|
+
"pagedown": { "description": "navPageDown", "group": "Navigator", "alias": "PageDown", "keyCodes": ["PageDown"] },
|
|
64
|
+
"pageup": { "description": "navPageUp", "group": "Navigator", "alias": "PageUp", "keyCodes": ["PageUp"] },
|
|
65
|
+
"q": { "description": "keyCharacter", "group": "Character", "alias": "Q", "keyCodes": ["KeyQ"] },
|
|
66
|
+
"r": { "description": "keyCharacter", "group": "Character", "alias": "R", "keyCodes": ["KeyR"] },
|
|
67
|
+
"s": { "description": "keyCharacter", "group": "Character", "alias": "S", "keyCodes": ["KeyS"] },
|
|
68
|
+
"shift": { "description": "modShift", "group": "Modificator", "alias": "Shift", "keyCodes": ["ShiftLeft", "ShiftRight"] },
|
|
69
|
+
"shiftleft": { "description": "modShift", "group": "Modificator", "alias": "Shift", "keyboardPosition": {"left": true}, "keyCodes": ["ShiftLeft"] },
|
|
70
|
+
"shiftright": { "description": "modShift", "group": "Modificator", "alias": "Shift", "keyboardPosition": {"right": true}, "keyCodes": ["ShiftRight"] },
|
|
71
|
+
"space": { "description": "specSpace", "group": "Special", "alias": "Space", "keyCodes": ["Space"] },
|
|
72
|
+
"t": { "description": "keyCharacter", "group": "Character", "alias": "T", "keyCodes": ["KeyT"] },
|
|
73
|
+
"tab": { "description": "specTab", "group": "Special", "alias": "Tab", "keyCodes": ["Tab"] },
|
|
74
|
+
"u": { "description": "keyCharacter", "group": "Character", "alias": "U", "keyCodes": ["KeyU"] },
|
|
75
|
+
"v": { "description": "keyCharacter", "group": "Character", "alias": "V", "keyCodes": ["KeyV"] },
|
|
76
|
+
"w": { "description": "keyCharacter", "group": "Character", "alias": "W", "keyCodes": ["KeyW"] },
|
|
77
|
+
"windows": { "description": "modMeta", "group": "Modificator", "alias": "Win", "keyCodes": ["MetaLeft", "MetaRight"] },
|
|
78
|
+
"windowsleft": { "description": "modMeta", "group": "Modificator", "alias": "Win", "keyboardPosition": {"left": true}, "keyCodes": ["MetaLeft"] },
|
|
79
|
+
"windowsright": { "description": "modMeta", "group": "Modificator", "alias": "Win", "keyboardPosition": {"right": true}, "keyCodes": ["MetaRight"] },
|
|
80
|
+
"x": { "description": "keyCharacter", "group": "Character", "alias": "X", "keyCodes": ["KeyX"] },
|
|
81
|
+
"y": { "description": "keyCharacter", "group": "Character", "alias": "Y", "keyCodes": ["KeyY"] },
|
|
82
|
+
"z": { "description": "keyCharacter", "group": "Character", "alias": "Z", "keyCodes": ["KeyZ"] }
|
|
83
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
@import '~@maggioli-design-system/styles/dist/tailwind/components.css';
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
2
|
|
|
5
3
|
@layer components {
|
|
6
4
|
.svg {
|
|
@@ -38,49 +36,16 @@
|
|
|
38
36
|
box-shadow: theme('boxShadow.outline') inset;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} */
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@container style(--magma-pref-contrast: system) {
|
|
55
|
-
|
|
56
|
-
@media (prefers-contrast: more) {
|
|
57
|
-
.contrast-area,
|
|
58
|
-
.contrast-area-50 {
|
|
59
|
-
@apply
|
|
60
|
-
block
|
|
61
|
-
opacity-100;
|
|
62
|
-
|
|
63
|
-
/* @starting-style {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
} */
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@container style(--magma-pref-animation: reduce) {
|
|
71
|
-
.contrast-area,
|
|
72
|
-
.contrast-area-50 {
|
|
73
|
-
@apply duration-0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@container style(--magma-pref-animation: system) {
|
|
78
|
-
|
|
79
|
-
@media (prefers-reduced-motion) {
|
|
80
|
-
.contrast-area,
|
|
81
|
-
.contrast-area-50 {
|
|
82
|
-
@apply duration-0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
39
|
+
.not-hydrated {
|
|
40
|
+
animation-duration: 0s;
|
|
41
|
+
border-color: transparent;
|
|
42
|
+
box-shadow: 0 0 0 transparent;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
outline-color: transparent;
|
|
45
|
+
transition-delay: 0s;
|
|
46
|
+
transition-duration: 0s;
|
|
47
|
+
visibility: hidden;
|
|
85
48
|
}
|
|
86
49
|
}
|
|
50
|
+
|
|
51
|
+
@tailwind components;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
:host(:not(:is([hydrated], .hydrated))) {
|
|
2
|
+
animation-duration: 0s;
|
|
3
|
+
border-color: transparent;
|
|
4
|
+
box-shadow: 0 0 0 transparent;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
outline-color: transparent;
|
|
7
|
+
transition-delay: 0s;
|
|
8
|
+
transition-duration: 0s;
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
|
|
13
|
+
|
|
14
|
+
mds-accordion:not(:is([hydrated], .hydrated)),
|
|
15
|
+
mds-accordion-item:not(:is([hydrated], .hydrated)),
|
|
16
|
+
mds-accordion-timer:not(:is([hydrated], .hydrated)),
|
|
17
|
+
mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
|
|
18
|
+
mds-author:not(:is([hydrated], .hydrated)),
|
|
19
|
+
mds-avatar:not(:is([hydrated], .hydrated)),
|
|
20
|
+
mds-badge:not(:is([hydrated], .hydrated)),
|
|
21
|
+
mds-banner:not(:is([hydrated], .hydrated)),
|
|
22
|
+
mds-benchmark-bar:not(:is([hydrated], .hydrated)),
|
|
23
|
+
mds-bibliography:not(:is([hydrated], .hydrated)),
|
|
24
|
+
mds-breadcrumb:not(:is([hydrated], .hydrated)),
|
|
25
|
+
mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
|
|
26
|
+
mds-button:not(:is([hydrated], .hydrated)),
|
|
27
|
+
mds-card:not(:is([hydrated], .hydrated)),
|
|
28
|
+
mds-card-content:not(:is([hydrated], .hydrated)),
|
|
29
|
+
mds-card-footer:not(:is([hydrated], .hydrated)),
|
|
30
|
+
mds-card-header:not(:is([hydrated], .hydrated)),
|
|
31
|
+
mds-card-media:not(:is([hydrated], .hydrated)),
|
|
32
|
+
mds-chip:not(:is([hydrated], .hydrated)),
|
|
33
|
+
mds-details:not(:is([hydrated], .hydrated)),
|
|
34
|
+
mds-dropdown:not(:is([hydrated], .hydrated)),
|
|
35
|
+
mds-entity:not(:is([hydrated], .hydrated)),
|
|
36
|
+
mds-file:not(:is([hydrated], .hydrated)),
|
|
37
|
+
mds-file-preview:not(:is([hydrated], .hydrated)),
|
|
38
|
+
mds-filter:not(:is([hydrated], .hydrated)),
|
|
39
|
+
mds-filter-item:not(:is([hydrated], .hydrated)),
|
|
40
|
+
mds-header:not(:is([hydrated], .hydrated)),
|
|
41
|
+
mds-header-bar:not(:is([hydrated], .hydrated)),
|
|
42
|
+
mds-help:not(:is([hydrated], .hydrated)),
|
|
43
|
+
mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
|
|
44
|
+
mds-hr:not(:is([hydrated], .hydrated)),
|
|
45
|
+
mds-icon:not(:is([hydrated], .hydrated)),
|
|
46
|
+
mds-img:not(:is([hydrated], .hydrated)),
|
|
47
|
+
mds-input:not(:is([hydrated], .hydrated)),
|
|
48
|
+
mds-input-field:not(:is([hydrated], .hydrated)),
|
|
49
|
+
mds-input-range:not(:is([hydrated], .hydrated)),
|
|
50
|
+
mds-input-select:not(:is([hydrated], .hydrated)),
|
|
51
|
+
mds-input-switch:not(:is([hydrated], .hydrated)),
|
|
52
|
+
mds-input-tip:not(:is([hydrated], .hydrated)),
|
|
53
|
+
mds-input-tip-item:not(:is([hydrated], .hydrated)),
|
|
54
|
+
mds-input-upload:not(:is([hydrated], .hydrated)),
|
|
55
|
+
mds-keyboard:not(:is([hydrated], .hydrated)),
|
|
56
|
+
mds-keyboard-key:not(:is([hydrated], .hydrated)),
|
|
57
|
+
mds-kpi:not(:is([hydrated], .hydrated)),
|
|
58
|
+
mds-kpi-item:not(:is([hydrated], .hydrated)),
|
|
59
|
+
mds-label:not(:is([hydrated], .hydrated)),
|
|
60
|
+
mds-list:not(:is([hydrated], .hydrated)),
|
|
61
|
+
mds-list-item:not(:is([hydrated], .hydrated)),
|
|
62
|
+
mds-modal:not(:is([hydrated], .hydrated)),
|
|
63
|
+
mds-note:not(:is([hydrated], .hydrated)),
|
|
64
|
+
mds-notification:not(:is([hydrated], .hydrated)),
|
|
65
|
+
mds-paginator:not(:is([hydrated], .hydrated)),
|
|
66
|
+
mds-paginator-item:not(:is([hydrated], .hydrated)),
|
|
67
|
+
mds-pref:not(:is([hydrated], .hydrated)),
|
|
68
|
+
mds-pref-animation:not(:is([hydrated], .hydrated)),
|
|
69
|
+
mds-pref-consumption:not(:is([hydrated], .hydrated)),
|
|
70
|
+
mds-pref-contrast:not(:is([hydrated], .hydrated)),
|
|
71
|
+
mds-pref-language:not(:is([hydrated], .hydrated)),
|
|
72
|
+
mds-pref-language-item:not(:is([hydrated], .hydrated)),
|
|
73
|
+
mds-pref-theme:not(:is([hydrated], .hydrated)),
|
|
74
|
+
mds-price-table:not(:is([hydrated], .hydrated)),
|
|
75
|
+
mds-price-table-features:not(:is([hydrated], .hydrated)),
|
|
76
|
+
mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
|
|
77
|
+
mds-price-table-features-row:not(:is([hydrated], .hydrated)),
|
|
78
|
+
mds-price-table-header:not(:is([hydrated], .hydrated)),
|
|
79
|
+
mds-price-table-list:not(:is([hydrated], .hydrated)),
|
|
80
|
+
mds-price-table-list-item:not(:is([hydrated], .hydrated)),
|
|
81
|
+
mds-progress:not(:is([hydrated], .hydrated)),
|
|
82
|
+
mds-push-notification:not(:is([hydrated], .hydrated)),
|
|
83
|
+
mds-push-notifications:not(:is([hydrated], .hydrated)),
|
|
84
|
+
mds-quote:not(:is([hydrated], .hydrated)),
|
|
85
|
+
mds-separator:not(:is([hydrated], .hydrated)),
|
|
86
|
+
mds-spinner:not(:is([hydrated], .hydrated)),
|
|
87
|
+
mds-stepper-bar:not(:is([hydrated], .hydrated)),
|
|
88
|
+
mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
|
|
89
|
+
mds-tab:not(:is([hydrated], .hydrated)),
|
|
90
|
+
mds-tab-bar:not(:is([hydrated], .hydrated)),
|
|
91
|
+
mds-tab-bar-item:not(:is([hydrated], .hydrated)),
|
|
92
|
+
mds-tab-item:not(:is([hydrated], .hydrated)),
|
|
93
|
+
mds-table:not(:is([hydrated], .hydrated)),
|
|
94
|
+
mds-table-body:not(:is([hydrated], .hydrated)),
|
|
95
|
+
mds-table-cell:not(:is([hydrated], .hydrated)),
|
|
96
|
+
mds-table-footer:not(:is([hydrated], .hydrated)),
|
|
97
|
+
mds-table-header:not(:is([hydrated], .hydrated)),
|
|
98
|
+
mds-table-header-cell:not(:is([hydrated], .hydrated)),
|
|
99
|
+
mds-table-row:not(:is([hydrated], .hydrated)),
|
|
100
|
+
mds-text:not(:is([hydrated], .hydrated)),
|
|
101
|
+
mds-toast:not(:is([hydrated], .hydrated)),
|
|
102
|
+
mds-tooltip:not(:is([hydrated], .hydrated)),
|
|
103
|
+
mds-tree:not(:is([hydrated], .hydrated)),
|
|
104
|
+
mds-tree-item:not(:is([hydrated], .hydrated)),
|
|
105
|
+
mds-url-view:not(:is([hydrated], .hydrated)),
|
|
106
|
+
mds-usage:not(:is([hydrated], .hydrated)),
|
|
107
|
+
mds-video-wall:not(:is([hydrated], .hydrated)),
|
|
108
|
+
mds-zero:not(:is([hydrated], .hydrated))
|
|
109
|
+
{
|
|
110
|
+
animation-duration: 0s;
|
|
111
|
+
border-color: transparent;
|
|
112
|
+
box-shadow: 0 0 0 transparent;
|
|
113
|
+
opacity: 0;
|
|
114
|
+
outline-color: transparent;
|
|
115
|
+
transition-delay: 0s;
|
|
116
|
+
transition-duration: 0s;
|
|
117
|
+
visibility: hidden;
|
|
118
|
+
}
|