@maggioli-design-system/mds-modal 4.7.1 → 4.7.3
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-1c3a970e.js → index-b3e2062a.js} +51 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +130 -130
- package/dist/cjs/mds-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/aria.js +18 -18
- package/dist/collection/common/keyboard-manager.js +38 -38
- package/dist/collection/common/unit.js +7 -7
- package/dist/collection/components/mds-modal/mds-modal.css +7 -30
- package/dist/collection/components/mds-modal/mds-modal.js +188 -188
- package/dist/collection/components/mds-modal/meta/dictionary.js +5 -5
- package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +34 -34
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +16 -16
- package/dist/collection/dictionary/autocomplete.js +56 -56
- package/dist/collection/dictionary/button.js +19 -19
- package/dist/collection/dictionary/color.js +14 -14
- package/dist/collection/dictionary/floating-ui.js +14 -14
- package/dist/collection/dictionary/input.js +31 -15
- package/dist/collection/dictionary/loading.js +2 -2
- package/dist/collection/dictionary/typography.js +46 -46
- package/dist/collection/dictionary/variant.js +54 -54
- package/dist/collection/fixtures/cities.js +107 -107
- package/dist/components/mds-modal.d.ts +2 -2
- package/dist/components/mds-modal.js +150 -150
- package/dist/documentation.d.ts +1 -21
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-a33ffd58.js → index-fd30d325.js} +51 -31
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-modal.entry.js +130 -130
- package/dist/esm/mds-modal.js +3 -3
- package/dist/esm-es5/index-fd30d325.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 +15 -15
- package/dist/mds-modal/p-14f0bf74.system.js +2 -0
- package/dist/mds-modal/p-59a0095c.system.entry.js +1 -0
- package/dist/mds-modal/p-6086db8a.entry.js +1 -0
- package/dist/mds-modal/{p-7ead5b8b.system.js → p-88c57c56.system.js} +1 -1
- package/dist/mds-modal/p-aff993b4.js +2 -0
- package/dist/stats.json +37 -34
- package/dist/types/common/keyboard-manager.d.ts +9 -9
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +20 -20
- package/dist/types/dictionary/input.d.ts +2 -1
- package/dist/types/interface/input-value.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/documentation.json +14 -4
- package/package.json +4 -4
- 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-top.css +2 -2
- package/src/components/mds-modal/mds-modal.css +2 -2
- package/src/dictionary/input.ts +18 -0
- package/src/fixtures/icons.json +3 -0
- package/src/fixtures/iconsauce.json +3 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +15 -15
- package/www/build/p-14f0bf74.system.js +2 -0
- package/www/build/p-59a0095c.system.entry.js +1 -0
- package/www/build/p-6086db8a.entry.js +1 -0
- package/www/build/{p-7ead5b8b.system.js → p-88c57c56.system.js} +1 -1
- package/www/build/p-aff993b4.js +2 -0
- package/dist/esm-es5/index-a33ffd58.js +0 -1
- package/dist/mds-modal/p-506f8ff7.system.js +0 -2
- package/dist/mds-modal/p-602c50be.js +0 -2
- package/dist/mds-modal/p-a0636f54.system.entry.js +0 -1
- package/dist/mds-modal/p-c5a84e4d.entry.js +0 -1
- package/www/build/p-506f8ff7.system.js +0 -2
- package/www/build/p-602c50be.js +0 -2
- package/www/build/p-a0636f54.system.entry.js +0 -1
- package/www/build/p-c5a84e4d.entry.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { newE2EPage } from "@stencil/core/testing";
|
|
2
2
|
describe('mds-modal', () => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<mds-modal></mds-modal>');
|
|
6
|
+
const element = await page.find('mds-modal');
|
|
7
|
+
// La riga seguente non è valida perché `animate-right-intro` viene impostato in `componentDidRender`
|
|
8
|
+
// e quindi appena instanziato non è presente come classe
|
|
9
|
+
expect(element).toHaveClass('to-right');
|
|
10
|
+
expect(element).toHaveAttribute('hydrated');
|
|
11
|
+
expect(element).toHaveAttribute('position');
|
|
12
|
+
expect(element.getAttribute('position')).toBe('right');
|
|
13
|
+
expect(element).not.toHaveAttribute('opened');
|
|
14
|
+
expect(element.shadowRoot).toEqualHtml(`
|
|
15
15
|
<div class="window" part="window" role="dialog">
|
|
16
16
|
<slot></slot>
|
|
17
17
|
</div>
|
|
@@ -21,13 +21,13 @@ describe('mds-modal', () => {
|
|
|
21
21
|
</svg>
|
|
22
22
|
</i>
|
|
23
23
|
`);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
});
|
|
25
|
+
it('renders opened', async () => {
|
|
26
|
+
const page = await newE2EPage();
|
|
27
|
+
await page.setContent('<mds-modal opened="true"></mds-modal>');
|
|
28
|
+
const element = await page.find('mds-modal');
|
|
29
|
+
expect(element.getAttribute('opened')).not.toBe('false');
|
|
30
|
+
expect(element.shadowRoot).toEqualHtml(`
|
|
31
31
|
<div class="window" part="window" role="dialog">
|
|
32
32
|
<slot></slot>
|
|
33
33
|
</div>
|
|
@@ -37,19 +37,19 @@ describe('mds-modal', () => {
|
|
|
37
37
|
</svg>
|
|
38
38
|
</i>
|
|
39
39
|
`);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
});
|
|
41
|
+
it('can be closed', async () => {
|
|
42
|
+
const page = await newE2EPage();
|
|
43
|
+
await page.setContent('<mds-modal opened="true"></mds-modal>');
|
|
44
|
+
const element = await page.find('mds-modal');
|
|
45
|
+
expect(element.getAttribute('opened')).not.toBe('false');
|
|
46
|
+
await page.mouse.click(window.innerWidth / 2, window.innerHeight / 2);
|
|
47
|
+
// const mdsIcon = element.shadowRoot.querySelector('mds-icon') as HTMLElement
|
|
48
|
+
// console.info('mdsIcon', mdsIcon)
|
|
49
|
+
// const closeButton = mdsIcon.shadowRoot.querySelector('i') as HTMLElement
|
|
50
|
+
// console.info('closeButton', closeButton)
|
|
51
|
+
// closeButton.click()
|
|
52
|
+
await page.waitForChanges();
|
|
53
|
+
expect(element).not.toHaveClass('opened');
|
|
54
|
+
});
|
|
55
55
|
});
|
|
@@ -2,19 +2,19 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { modalPositionDictionary } from "../meta/dictionary";
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
title: 'UI / Modal',
|
|
6
|
+
argTypes: {
|
|
7
|
+
opened: {
|
|
8
|
+
description: 'Specifies if the modal is opened or not',
|
|
9
|
+
type: { name: 'boolean', required: false },
|
|
10
|
+
},
|
|
11
|
+
position: {
|
|
12
|
+
control: { type: 'select' },
|
|
13
|
+
description: 'Specifies the animation position of the modal window',
|
|
14
|
+
options: modalPositionDictionary,
|
|
15
|
+
type: { name: 'string', required: false },
|
|
16
|
+
},
|
|
10
17
|
},
|
|
11
|
-
position: {
|
|
12
|
-
control: { type: 'select' },
|
|
13
|
-
description: 'Specifies the animation position of the modal window',
|
|
14
|
-
options: modalPositionDictionary,
|
|
15
|
-
type: { name: 'string', required: false },
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
18
|
};
|
|
19
19
|
const firstName = 'Mario';
|
|
20
20
|
const lastName = 'Rossi';
|
|
@@ -23,10 +23,10 @@ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com
|
|
|
23
23
|
const Template = args => h("mds-modal", Object.assign({}, args), h("header", { slot: "top", class: "p-8 max-w-lg flex gap-4 items-center border-b border-tone-neutral-09" }, h("mds-img", { class: "w-16", src: "/logo-gruppo-maggioli-512w.webp" }), h("div", { class: "text-tone-neutral-02" }, h("mds-text", { typography: "h5", class: "truncate min-w-0" }, "Maggioli Editore"), h("mds-text", { typography: "detail", class: "truncate min-w-0" }, "Menu di servizio"))), h("div", { class: "p-8 max-w-lg" }, h("mds-text", null, "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\u2019re future-proofing our components as more brands adopt NewsKit.")), h("footer", { slot: "bottom", class: "p-8 max-w-lg flex gap-4 text-tone-neutral-02 border-t border-tone-neutral-09" }, h("mds-author", null, h("mds-avatar", { slot: "avatar", class: "w-16 mobile:w-12", src: "/avatar-01-200x200.jpeg" }), h("mds-text", { typography: "h6", class: "truncate min-w-0" }, fullName), h("mds-text", { typography: "caption", class: "text-tone-neutral-04 truncate min-w-0" }, email)), h("mds-button", { icon: "mdi/dots-vertical", class: "ml-auto bg-transparent text-tone-neutral-02 p-4 border border-tone-neutral-09 rounded-full" })));
|
|
24
24
|
const CustomTemplate = args => h("mds-modal", Object.assign({}, args), h("mds-banner", { slot: "window", class: "max-w-xl mx-6", deletable: true, headline: "Action required" }, h("mds-text", { typography: "detail" }, "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\u2019re future-proofing our components as more brands adopt NewsKit."), h("mds-button", { slot: "actions", variant: "primary", tone: "quiet" }, "Cancel"), h("mds-button", { slot: "actions", variant: "primary" }, "Confirm")));
|
|
25
25
|
const AriaTemplate = () => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
// Click not working with reader
|
|
27
|
+
const [opened, setOpened] = useState(false);
|
|
28
|
+
window.addEventListener('mdsModalClose', () => { setOpened(false); });
|
|
29
|
+
return h("div", null, h("mds-button", { onClick: () => setOpened(true) }, "Apri modale"), h("mds-modal", { opened: opened, onMdsModalClose: () => setOpened(false) }, h("mds-banner", { slot: "window", class: "max-w-xl mx-6", deletable: true, headline: "Action required" }, h("mds-text", { typography: "detail" }, "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\u2019re future-proofing our components as more brands adopt NewsKit."), h("mds-button", { slot: "actions", variant: "dark", tone: "quiet", onClick: () => setOpened(false) }, "Cancel"), h("mds-button", { slot: "actions", variant: "primary" }, "Confirm"))));
|
|
30
30
|
};
|
|
31
31
|
export const Default = Template.bind({});
|
|
32
32
|
export const CustomWindow = CustomTemplate.bind({});
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
const autoCompleteDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
'additional-name',
|
|
3
|
+
'address',
|
|
4
|
+
'address-level1',
|
|
5
|
+
'address-level2',
|
|
6
|
+
'address-level3',
|
|
7
|
+
'address-level4',
|
|
8
|
+
'address-line1',
|
|
9
|
+
'address-line2',
|
|
10
|
+
'address-line3',
|
|
11
|
+
'bday',
|
|
12
|
+
'bday-day',
|
|
13
|
+
'bday-month',
|
|
14
|
+
'bday-year',
|
|
15
|
+
'cc-additional-name',
|
|
16
|
+
'cc-csc',
|
|
17
|
+
'cc-exp',
|
|
18
|
+
'cc-exp-month',
|
|
19
|
+
'cc-exp-year',
|
|
20
|
+
'cc-family-name',
|
|
21
|
+
'cc-family-name',
|
|
22
|
+
'cc-given-name',
|
|
23
|
+
'cc-name',
|
|
24
|
+
'cc-number',
|
|
25
|
+
'cc-type',
|
|
26
|
+
'country',
|
|
27
|
+
'country-name',
|
|
28
|
+
'current-password',
|
|
29
|
+
'email',
|
|
30
|
+
'family-name',
|
|
31
|
+
'given-name',
|
|
32
|
+
'honorific-prefix',
|
|
33
|
+
'honorific-suffix',
|
|
34
|
+
'impp',
|
|
35
|
+
'language',
|
|
36
|
+
'name',
|
|
37
|
+
'new-password',
|
|
38
|
+
'nickname',
|
|
39
|
+
'off',
|
|
40
|
+
'on',
|
|
41
|
+
'one-time-code',
|
|
42
|
+
'organization',
|
|
43
|
+
'organization-title',
|
|
44
|
+
'photo',
|
|
45
|
+
'postal-code',
|
|
46
|
+
'sex',
|
|
47
|
+
'street-address',
|
|
48
|
+
'tel',
|
|
49
|
+
'tel-area-code',
|
|
50
|
+
'tel-country-code',
|
|
51
|
+
'tel-extension',
|
|
52
|
+
'tel-local',
|
|
53
|
+
'tel-national',
|
|
54
|
+
'transaction-amount',
|
|
55
|
+
'transaction-currency',
|
|
56
|
+
'url',
|
|
57
|
+
'username',
|
|
58
58
|
];
|
|
59
59
|
export { autoCompleteDictionary, };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
const buttonVariantDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
9
|
];
|
|
10
10
|
const buttonToneVariantDictionary = [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
'strong',
|
|
12
|
+
'weak',
|
|
13
|
+
'ghost',
|
|
14
|
+
'quiet',
|
|
15
15
|
];
|
|
16
16
|
const buttonTargetDictionary = [
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
'blank',
|
|
18
|
+
'self',
|
|
19
19
|
];
|
|
20
20
|
const buttonSizeDictionary = [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
'sm',
|
|
22
|
+
'md',
|
|
23
|
+
'lg',
|
|
24
|
+
'xl',
|
|
25
25
|
];
|
|
26
26
|
const buttonIconPositionDictionary = [
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
'left',
|
|
28
|
+
'right',
|
|
29
29
|
];
|
|
30
30
|
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
const colorLabelDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
'amaranth',
|
|
3
|
+
'aqua',
|
|
4
|
+
'blue',
|
|
5
|
+
'green',
|
|
6
|
+
'lime',
|
|
7
|
+
'orange',
|
|
8
|
+
'orchid',
|
|
9
|
+
'sky',
|
|
10
|
+
'violet',
|
|
11
|
+
'yellow',
|
|
12
12
|
];
|
|
13
13
|
const colorStatusDictionary = [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
'error',
|
|
15
|
+
'info',
|
|
16
|
+
'success',
|
|
17
|
+
'warning',
|
|
18
18
|
];
|
|
19
19
|
export { colorLabelDictionary, colorStatusDictionary, };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
const floatingUIPlacementDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
'bottom',
|
|
3
|
+
'bottom-end',
|
|
4
|
+
'bottom-start',
|
|
5
|
+
'left',
|
|
6
|
+
'left-end',
|
|
7
|
+
'left-start',
|
|
8
|
+
'right',
|
|
9
|
+
'right-end',
|
|
10
|
+
'right-start',
|
|
11
|
+
'top',
|
|
12
|
+
'top-end',
|
|
13
|
+
'top-start',
|
|
14
14
|
];
|
|
15
15
|
const floatingUIStrategyDictionary = [
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
'absolute',
|
|
17
|
+
'fixed',
|
|
18
18
|
];
|
|
19
19
|
export { floatingUIPlacementDictionary, floatingUIStrategyDictionary, };
|
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
const inputTextTypeDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
'date',
|
|
3
|
+
'email',
|
|
4
|
+
'number',
|
|
5
|
+
'password',
|
|
6
|
+
'search',
|
|
7
|
+
'tel',
|
|
8
|
+
'text',
|
|
9
|
+
'textarea',
|
|
10
|
+
'time',
|
|
11
|
+
'url',
|
|
12
|
+
];
|
|
13
|
+
const inputFieldTypeDictionary = [
|
|
14
|
+
'date',
|
|
15
|
+
'email',
|
|
16
|
+
'number',
|
|
17
|
+
'password',
|
|
18
|
+
'search',
|
|
19
|
+
'tel',
|
|
20
|
+
'text',
|
|
21
|
+
'textarea',
|
|
22
|
+
'time',
|
|
23
|
+
'url',
|
|
24
|
+
'cc',
|
|
25
|
+
'cf',
|
|
26
|
+
'isbn',
|
|
27
|
+
'piva',
|
|
12
28
|
];
|
|
13
29
|
const inputControlsLayoutDictionary = [
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
'horizontal',
|
|
31
|
+
'vertical',
|
|
16
32
|
];
|
|
17
33
|
const inputControlsIconDictionary = [
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
'arrow',
|
|
35
|
+
'arithmetic',
|
|
20
36
|
];
|
|
21
|
-
export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, };
|
|
37
|
+
export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, inputFieldTypeDictionary, };
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
const typographyDictionary = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
'action',
|
|
3
|
+
'caption',
|
|
4
|
+
'snippet',
|
|
5
|
+
'detail',
|
|
6
|
+
'h1',
|
|
7
|
+
'h2',
|
|
8
|
+
'h3',
|
|
9
|
+
'h4',
|
|
10
|
+
'h5',
|
|
11
|
+
'h6',
|
|
12
|
+
'hack',
|
|
13
|
+
'label',
|
|
14
|
+
'option',
|
|
15
|
+
'paragraph',
|
|
16
|
+
'tip',
|
|
17
17
|
];
|
|
18
18
|
const typographyVariationsDictionary = [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
'title',
|
|
20
|
+
'info',
|
|
21
|
+
'read',
|
|
22
|
+
'code',
|
|
23
23
|
];
|
|
24
24
|
const typographyReadingVariationsDictionary = [
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
'info',
|
|
26
|
+
'read',
|
|
27
27
|
];
|
|
28
28
|
const typographyMonoDictionary = [
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
'snippet',
|
|
30
|
+
'hack',
|
|
31
31
|
];
|
|
32
32
|
const typographyTitleDictionary = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
'action',
|
|
34
|
+
'h1',
|
|
35
|
+
'h2',
|
|
36
|
+
'h3',
|
|
37
|
+
'h4',
|
|
38
|
+
'h5',
|
|
39
|
+
'h6',
|
|
40
40
|
];
|
|
41
41
|
const typographyInfoDictionary = [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
'caption',
|
|
43
|
+
'detail',
|
|
44
|
+
'label',
|
|
45
|
+
'option',
|
|
46
|
+
'paragraph',
|
|
47
|
+
'tip',
|
|
48
48
|
];
|
|
49
49
|
const typographyReadDictionary = [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
'caption',
|
|
51
|
+
'detail',
|
|
52
|
+
'paragraph',
|
|
53
53
|
];
|
|
54
54
|
const typographySmallerDictionary = [
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
'option',
|
|
56
|
+
'tip',
|
|
57
57
|
];
|
|
58
58
|
const typographyTooltipDictionary = [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
'caption',
|
|
60
|
+
'detail',
|
|
61
|
+
'tip',
|
|
62
62
|
];
|
|
63
63
|
const typographyInputDictionary = [
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
'snippet',
|
|
65
|
+
'detail',
|
|
66
66
|
];
|
|
67
67
|
export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
|