@maggioli-design-system/mds-input-tip 1.0.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-fe2df682.js +1571 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/mds-input-tip.cjs.entry.js +21 -0
- package/dist/cjs/mds-input-tip.cjs.js +23 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/common/aria.js +29 -0
- package/dist/collection/common/file.js +48 -0
- package/dist/collection/common/icon.js +15 -0
- package/dist/collection/common/keyboard-manager.js +45 -0
- package/dist/collection/common/locale.js +20 -0
- package/dist/collection/common/unit.js +22 -0
- package/dist/collection/common/yugop/core.js +16 -0
- package/dist/collection/common/yugop/index.js +3 -0
- package/dist/collection/common/yugop/random-text.js +59 -0
- package/dist/collection/common/yugop/utils/math.js +11 -0
- package/dist/collection/common/yugop/utils/noop.js +1 -0
- package/dist/collection/common/yugop/utils/prng.js +21 -0
- package/dist/collection/common/yugop/utils/string.js +2 -0
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +280 -0
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +68 -0
- package/dist/collection/components/mds-input-tip/meta/types.js +1 -0
- package/dist/collection/components/mds-input-tip/test/mds-input-tip.e2e.js +9 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +30 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/file-extensions.js +64 -0
- package/dist/collection/dictionary/floating-ui.js +19 -0
- package/dist/collection/dictionary/icon.js +10 -0
- package/dist/collection/dictionary/input.js +37 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/text.js +6 -0
- package/dist/collection/dictionary/typography.js +67 -0
- package/dist/collection/dictionary/variant.js +90 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/fixtures/filenames.js +57 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/type/autocomplete.js +1 -0
- package/dist/collection/type/button.js +1 -0
- package/dist/collection/type/file-types.js +1 -0
- package/dist/collection/type/floating-ui.js +1 -0
- package/dist/collection/type/form-rel.js +1 -0
- package/dist/collection/type/input.js +1 -0
- package/dist/collection/type/loading.js +1 -0
- package/dist/collection/type/text.js +1 -0
- package/dist/collection/type/typography.js +1 -0
- package/dist/collection/type/variant-file-format.js +120 -0
- package/dist/collection/type/variant.js +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +1 -0
- package/dist/components/mds-input-tip.d.ts +11 -0
- package/dist/components/mds-input-tip.js +38 -0
- package/dist/documentation.d.ts +401 -0
- package/dist/documentation.json +97 -0
- package/dist/esm/index-351c5c8a.js +1544 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +9 -0
- package/dist/esm/mds-input-tip.entry.js +17 -0
- package/dist/esm/mds-input-tip.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-351c5c8a.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-input-tip.entry.js +1 -0
- package/dist/esm-es5/mds-input-tip.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-input-tip/index.esm.js +0 -0
- package/dist/mds-input-tip/mds-input-tip.esm.js +1 -0
- package/dist/mds-input-tip/mds-input-tip.js +127 -0
- package/dist/mds-input-tip/p-22b86e20.js +2 -0
- package/dist/mds-input-tip/p-3428f886.system.js +2 -0
- package/dist/mds-input-tip/p-50ea2036.system.js +1 -0
- package/dist/mds-input-tip/p-630886b5.entry.js +1 -0
- package/dist/mds-input-tip/p-89e037f5.system.entry.js +1 -0
- package/dist/mds-input-tip/p-e5fe0b68.system.js +1 -0
- package/dist/stats.json +500 -0
- package/dist/types/common/aria.d.ts +5 -0
- package/dist/types/common/file.d.ts +12 -0
- package/dist/types/common/icon.d.ts +5 -0
- package/dist/types/common/keyboard-manager.d.ts +12 -0
- package/dist/types/common/locale.d.ts +14 -0
- package/dist/types/common/unit.d.ts +3 -0
- package/dist/types/common/yugop/core.d.ts +10 -0
- package/dist/types/common/yugop/index.d.ts +1 -0
- package/dist/types/common/yugop/random-text.d.ts +31 -0
- package/dist/types/common/yugop/utils/math.d.ts +3 -0
- package/dist/types/common/yugop/utils/noop.d.ts +1 -0
- package/dist/types/common/yugop/utils/prng.d.ts +8 -0
- package/dist/types/common/yugop/utils/string.d.ts +1 -0
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +12 -0
- package/dist/types/components/mds-input-tip/meta/types.d.ts +1 -0
- package/dist/types/components.d.ts +55 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +6 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/file-extensions.d.ts +11 -0
- package/dist/types/dictionary/floating-ui.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +4 -0
- package/dist/types/dictionary/input.d.ts +5 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +11 -0
- package/dist/types/dictionary/variant.d.ts +11 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/fixtures/filenames.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/type/autocomplete.d.ts +2 -0
- package/dist/types/type/button.d.ts +5 -0
- package/dist/types/type/file-types.d.ts +1 -0
- package/dist/types/type/floating-ui.d.ts +2 -0
- package/dist/types/type/form-rel.d.ts +1 -0
- package/dist/types/type/input.d.ts +4 -0
- package/dist/types/type/loading.d.ts +1 -0
- package/dist/types/type/text.d.ts +1 -0
- package/dist/types/type/typography.d.ts +10 -0
- package/dist/types/type/variant-file-format.d.ts +11 -0
- package/dist/types/type/variant.d.ts +12 -0
- package/documentation.json +568 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +59 -0
- package/readme.md +33 -0
- package/src/common/aria.ts +39 -0
- package/src/common/file.ts +63 -0
- package/src/common/icon.ts +25 -0
- package/src/common/keyboard-manager.ts +50 -0
- package/src/common/locale.ts +31 -0
- package/src/common/unit.ts +33 -0
- package/src/common/yugop/core.ts +47 -0
- package/src/common/yugop/index.ts +4 -0
- package/src/common/yugop/random-text.ts +95 -0
- package/src/common/yugop/utils/math.ts +21 -0
- package/src/common/yugop/utils/noop.ts +1 -0
- package/src/common/yugop/utils/prng.ts +35 -0
- package/src/common/yugop/utils/string.ts +4 -0
- package/src/components/mds-input-tip/.gitlab-ci.yml +25 -0
- package/src/components/mds-input-tip/mds-input-tip.css +52 -0
- package/src/components/mds-input-tip/mds-input-tip.tsx +28 -0
- package/src/components/mds-input-tip/meta/types.ts +3 -0
- package/src/components/mds-input-tip/readme.md +18 -0
- package/src/components/mds-input-tip/test/mds-input-tip.e2e.ts +11 -0
- package/src/components.d.ts +55 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +41 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/file-extensions.ts +81 -0
- package/src/dictionary/floating-ui.ts +25 -0
- package/src/dictionary/icon.ts +15 -0
- package/src/dictionary/input.ts +48 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/text.ts +9 -0
- package/src/dictionary/typography.ts +88 -0
- package/src/dictionary/variant.ts +111 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/fixtures/filenames.ts +60 -0
- package/src/fixtures/icons.json +344 -0
- package/src/fixtures/iconsauce.json +257 -0
- package/src/interface/input-value.ts +5 -0
- package/src/tailwind/components.css +15 -0
- package/src/type/autocomplete.ts +69 -0
- package/src/type/button.ts +28 -0
- package/src/type/file-types.ts +55 -0
- package/src/type/floating-ui.ts +17 -0
- package/src/type/form-rel.ts +11 -0
- package/src/type/input.ts +25 -0
- package/src/type/loading.ts +3 -0
- package/src/type/text.ts +4 -0
- package/src/type/typography.ts +65 -0
- package/src/type/variant-file-format.ts +137 -0
- package/src/type/variant.ts +99 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-input-tip.esm.js +1 -0
- package/www/build/mds-input-tip.js +127 -0
- package/www/build/p-22b86e20.js +2 -0
- package/www/build/p-3428f886.system.js +2 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-630886b5.entry.js +1 -0
- package/www/build/p-89e037f5.system.entry.js +1 -0
- package/www/build/p-e5fe0b68.system.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { newE2EPage } from '@stencil/core/testing'
|
|
2
|
+
|
|
3
|
+
describe('mds-input-tip', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newE2EPage()
|
|
6
|
+
await page.setContent('<mds-input-tip></mds-input-tip>')
|
|
7
|
+
|
|
8
|
+
const element = await page.find('mds-input-tip')
|
|
9
|
+
expect(element).toHaveAttribute('hydrated')
|
|
10
|
+
})
|
|
11
|
+
})
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
|
8
|
+
import { InputTipPositionType } from "./components/mds-input-tip/meta/types";
|
|
9
|
+
export { InputTipPositionType } from "./components/mds-input-tip/meta/types";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface MdsInputTip {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the position of the element relative to its container
|
|
14
|
+
*/
|
|
15
|
+
"active"?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the position of the element relative to its container
|
|
18
|
+
*/
|
|
19
|
+
"position"?: InputTipPositionType;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLMdsInputTipElement extends Components.MdsInputTip, HTMLStencilElement {
|
|
24
|
+
}
|
|
25
|
+
var HTMLMdsInputTipElement: {
|
|
26
|
+
prototype: HTMLMdsInputTipElement;
|
|
27
|
+
new (): HTMLMdsInputTipElement;
|
|
28
|
+
};
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
"mds-input-tip": HTMLMdsInputTipElement;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
declare namespace LocalJSX {
|
|
34
|
+
interface MdsInputTip {
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the position of the element relative to its container
|
|
37
|
+
*/
|
|
38
|
+
"active"?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the position of the element relative to its container
|
|
41
|
+
*/
|
|
42
|
+
"position"?: InputTipPositionType;
|
|
43
|
+
}
|
|
44
|
+
interface IntrinsicElements {
|
|
45
|
+
"mds-input-tip": MdsInputTip;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export { LocalJSX as JSX };
|
|
49
|
+
declare module "@stencil/core" {
|
|
50
|
+
export namespace JSX {
|
|
51
|
+
interface IntrinsicElements {
|
|
52
|
+
"mds-input-tip": LocalJSX.MdsInputTip & JSXBase.HTMLAttributes<HTMLMdsInputTipElement>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const autoCompleteDictionary = [
|
|
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
|
+
]
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
autoCompleteDictionary,
|
|
62
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const buttonVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const buttonToneVariantDictionary = [
|
|
12
|
+
'strong',
|
|
13
|
+
'weak',
|
|
14
|
+
'ghost',
|
|
15
|
+
'quiet',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
const buttonTargetDictionary = [
|
|
19
|
+
'blank',
|
|
20
|
+
'self',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
const buttonSizeDictionary = [
|
|
24
|
+
'sm',
|
|
25
|
+
'md',
|
|
26
|
+
'lg',
|
|
27
|
+
'xl',
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const buttonIconPositionDictionary = [
|
|
31
|
+
'left',
|
|
32
|
+
'right',
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
buttonIconPositionDictionary,
|
|
37
|
+
buttonSizeDictionary,
|
|
38
|
+
buttonTargetDictionary,
|
|
39
|
+
buttonToneVariantDictionary,
|
|
40
|
+
buttonVariantDictionary,
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const colorLabelDictionary = [
|
|
2
|
+
'amaranth',
|
|
3
|
+
'aqua',
|
|
4
|
+
'blue',
|
|
5
|
+
'green',
|
|
6
|
+
'lime',
|
|
7
|
+
'orange',
|
|
8
|
+
'orchid',
|
|
9
|
+
'sky',
|
|
10
|
+
'violet',
|
|
11
|
+
'yellow',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const colorStatusDictionary = [
|
|
15
|
+
'error',
|
|
16
|
+
'info',
|
|
17
|
+
'success',
|
|
18
|
+
'warning',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
colorLabelDictionary,
|
|
23
|
+
colorStatusDictionary,
|
|
24
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
interface FileExtenstion {
|
|
2
|
+
[key: string]: ExtensionInfo
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface ExtensionInfo {
|
|
6
|
+
preview?: boolean
|
|
7
|
+
format: string
|
|
8
|
+
description: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const fileExtensionsDictionary: FileExtenstion = {
|
|
12
|
+
'7z': { format: 'archive', description: 'Archivio compresso' },
|
|
13
|
+
ace: { format: 'archive', description: 'Archivio compresso' },
|
|
14
|
+
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
|
|
15
|
+
dart: { format: 'code', description: 'Dart' },
|
|
16
|
+
db: { format: 'data', description: 'File di database' },
|
|
17
|
+
default: { format: 'attachment', description: 'Formato sconosciuto' },
|
|
18
|
+
dmg: { format: 'executable', description: 'Apple Disk Image' },
|
|
19
|
+
doc: { format: 'text', description: 'Documento Microsoft Word' },
|
|
20
|
+
docm: { format: 'text', description: 'Documento Microsoft Word' },
|
|
21
|
+
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
|
|
22
|
+
eml: { format: 'email', description: 'E-mail di posta elettronica' },
|
|
23
|
+
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
|
|
24
|
+
exe: { format: 'executable', description: 'File eseguibile Windows' },
|
|
25
|
+
flac: { format: 'audio', description: 'Audio non compresso' },
|
|
26
|
+
gif: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
27
|
+
htm: { format: 'markup', description: 'Pagina web' },
|
|
28
|
+
heic: { format: 'image', description: 'High Efficiency Image File Format' },
|
|
29
|
+
html: { format: 'markup', description: 'Pagina web' },
|
|
30
|
+
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
31
|
+
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
32
|
+
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
33
|
+
js: { format: 'code', description: 'JavaScript' },
|
|
34
|
+
json: { format: 'data', description: 'JavaScript Object Notation' },
|
|
35
|
+
jsx: { format: 'code', description: 'JavaScript' },
|
|
36
|
+
m2v: { format: 'video', description: 'Filmato SD' },
|
|
37
|
+
mp2: { format: 'audio', description: 'Audio compresso' },
|
|
38
|
+
mp3: { format: 'audio', description: 'Audio compresso' },
|
|
39
|
+
mp4: { format: 'video', description: 'Filmato HD' },
|
|
40
|
+
mp4v: { format: 'video', description: 'Filmato HD' },
|
|
41
|
+
mpeg: { format: 'video', description: 'Filmato SD' },
|
|
42
|
+
mpg4: { format: 'video', description: 'Filmato SD' },
|
|
43
|
+
mpg: { format: 'video', description: 'Filmato SD' },
|
|
44
|
+
mpga: { format: 'audio', description: 'Audio compresso' },
|
|
45
|
+
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
|
|
46
|
+
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
|
|
47
|
+
odt: { format: 'text', description: 'File di testo LibreOffice' },
|
|
48
|
+
pdf: { format: 'document', description: 'Documento Adobe' },
|
|
49
|
+
php: { format: 'code', description: 'Hypertext Preprocessor' },
|
|
50
|
+
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
|
|
51
|
+
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
|
|
52
|
+
rar: { format: 'archive', description: 'Archivio compresso' },
|
|
53
|
+
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
|
|
54
|
+
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
|
|
55
|
+
shtml: { format: 'markup', description: 'Pagina web' },
|
|
56
|
+
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
|
|
57
|
+
tar: { format: 'archive', description: 'Archivio non compresso' },
|
|
58
|
+
tiff: { format: 'image', description: 'Tag Image File Format' },
|
|
59
|
+
ts: { format: 'code', description: 'TypeScript' },
|
|
60
|
+
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
|
|
61
|
+
txt: { format: 'text', description: 'Documento di testo non formattato' },
|
|
62
|
+
wav: { format: 'audio', description: 'Audio non compresso' },
|
|
63
|
+
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
|
|
64
|
+
xar: { format: 'archive', description: 'Archivio compresso' },
|
|
65
|
+
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
66
|
+
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
67
|
+
zip: { format: 'archive', description: 'Archivio compresso' },
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const genericMimeToExt: Map<string, string[]> = new Map([
|
|
71
|
+
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
|
72
|
+
['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
|
|
73
|
+
['video', ['.mv2', '.mp4', '.mp4v', '.mpeg', '.mpg4', '.mpg']],
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
FileExtenstion,
|
|
78
|
+
ExtensionInfo,
|
|
79
|
+
fileExtensionsDictionary,
|
|
80
|
+
genericMimeToExt,
|
|
81
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
const floatingUIPlacementDictionary = [
|
|
3
|
+
'bottom',
|
|
4
|
+
'bottom-end',
|
|
5
|
+
'bottom-start',
|
|
6
|
+
'left',
|
|
7
|
+
'left-end',
|
|
8
|
+
'left-start',
|
|
9
|
+
'right',
|
|
10
|
+
'right-end',
|
|
11
|
+
'right-start',
|
|
12
|
+
'top',
|
|
13
|
+
'top-end',
|
|
14
|
+
'top-start',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
const floatingUIStrategyDictionary = [
|
|
18
|
+
'absolute',
|
|
19
|
+
'fixed',
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
floatingUIPlacementDictionary,
|
|
24
|
+
floatingUIStrategyDictionary,
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import jsonIconsDictionary from '../fixtures/icons.json'
|
|
2
|
+
import jsonMggIconsDictionary from '../fixtures/iconsauce.json'
|
|
3
|
+
const iconsDictionary = jsonIconsDictionary
|
|
4
|
+
const mggIconsDictionary = jsonMggIconsDictionary
|
|
5
|
+
const svgIconsDictionary = [
|
|
6
|
+
`${location.origin}/svg/mi/baseline/email.svg`,
|
|
7
|
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Im0yMzMtODAgNjUtMjgxTDgwLTU1MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5TDIzMy04MFoiLz48L3N2Zz4=',
|
|
8
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
iconsDictionary,
|
|
13
|
+
mggIconsDictionary,
|
|
14
|
+
svgIconsDictionary,
|
|
15
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
14
|
+
const inputFieldTypeDictionary = [
|
|
15
|
+
'date',
|
|
16
|
+
'email',
|
|
17
|
+
'number',
|
|
18
|
+
'password',
|
|
19
|
+
'search',
|
|
20
|
+
'tel',
|
|
21
|
+
'text',
|
|
22
|
+
'textarea',
|
|
23
|
+
'time',
|
|
24
|
+
'url',
|
|
25
|
+
'cc',
|
|
26
|
+
'cf',
|
|
27
|
+
'isbn',
|
|
28
|
+
'piva',
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const inputControlsLayoutDictionary = [
|
|
33
|
+
'horizontal',
|
|
34
|
+
'vertical',
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const inputControlsIconDictionary = [
|
|
38
|
+
'arrow',
|
|
39
|
+
'arithmetic',
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
inputControlsIconDictionary,
|
|
44
|
+
inputControlsLayoutDictionary,
|
|
45
|
+
inputTextTypeDictionary,
|
|
46
|
+
inputFieldTypeDictionary,
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const typographyDictionary = [
|
|
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
|
+
]
|
|
18
|
+
|
|
19
|
+
const typographyVariationsDictionary = [
|
|
20
|
+
'title',
|
|
21
|
+
'info',
|
|
22
|
+
'read',
|
|
23
|
+
'code',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
const typographyReadingVariationsDictionary = [
|
|
27
|
+
'info',
|
|
28
|
+
'read',
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
const typographyMonoDictionary = [
|
|
32
|
+
'snippet',
|
|
33
|
+
'hack',
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
const typographyTitleDictionary = [
|
|
37
|
+
'action',
|
|
38
|
+
'h1',
|
|
39
|
+
'h2',
|
|
40
|
+
'h3',
|
|
41
|
+
'h4',
|
|
42
|
+
'h5',
|
|
43
|
+
'h6',
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
const typographyInfoDictionary = [
|
|
47
|
+
'caption',
|
|
48
|
+
'detail',
|
|
49
|
+
'label',
|
|
50
|
+
'option',
|
|
51
|
+
'paragraph',
|
|
52
|
+
'tip',
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const typographyReadDictionary = [
|
|
56
|
+
'caption',
|
|
57
|
+
'detail',
|
|
58
|
+
'paragraph',
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
const typographySmallerDictionary = [
|
|
62
|
+
'option',
|
|
63
|
+
'tip',
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
const typographyTooltipDictionary = [
|
|
67
|
+
'caption',
|
|
68
|
+
'detail',
|
|
69
|
+
'tip',
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
const typographyInputDictionary = [
|
|
73
|
+
'snippet',
|
|
74
|
+
'detail',
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
typographyDictionary,
|
|
79
|
+
typographyInfoDictionary,
|
|
80
|
+
typographyInputDictionary,
|
|
81
|
+
typographyMonoDictionary,
|
|
82
|
+
typographyReadDictionary,
|
|
83
|
+
typographyReadingVariationsDictionary,
|
|
84
|
+
typographySmallerDictionary,
|
|
85
|
+
typographyTitleDictionary,
|
|
86
|
+
typographyTooltipDictionary,
|
|
87
|
+
typographyVariationsDictionary,
|
|
88
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const themeVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const themeLuminanceVariantDictionary = [
|
|
12
|
+
'dark',
|
|
13
|
+
'light',
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
const themeStatusVariantDictionary = [
|
|
17
|
+
'error',
|
|
18
|
+
'info',
|
|
19
|
+
'success',
|
|
20
|
+
'warning',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
const themeFullVariantDictionary = [
|
|
24
|
+
'amaranth',
|
|
25
|
+
'aqua',
|
|
26
|
+
'blue',
|
|
27
|
+
'dark',
|
|
28
|
+
'error',
|
|
29
|
+
'green',
|
|
30
|
+
'info',
|
|
31
|
+
'light',
|
|
32
|
+
'lime',
|
|
33
|
+
'orange',
|
|
34
|
+
'orchid',
|
|
35
|
+
'sky',
|
|
36
|
+
'success',
|
|
37
|
+
'violet',
|
|
38
|
+
'warning',
|
|
39
|
+
'yellow',
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
const themeFullVariantAvatarDictionary = [
|
|
43
|
+
'amaranth',
|
|
44
|
+
'aqua',
|
|
45
|
+
'blue',
|
|
46
|
+
'error',
|
|
47
|
+
'green',
|
|
48
|
+
'info',
|
|
49
|
+
'lime',
|
|
50
|
+
'orange',
|
|
51
|
+
'orchid',
|
|
52
|
+
'primary',
|
|
53
|
+
'sky',
|
|
54
|
+
'success',
|
|
55
|
+
'violet',
|
|
56
|
+
'warning',
|
|
57
|
+
'yellow',
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
const themeLabelVariantDictionary = [
|
|
61
|
+
'amaranth',
|
|
62
|
+
'aqua',
|
|
63
|
+
'blue',
|
|
64
|
+
'green',
|
|
65
|
+
'lime',
|
|
66
|
+
'orange',
|
|
67
|
+
'orchid',
|
|
68
|
+
'sky',
|
|
69
|
+
'violet',
|
|
70
|
+
'yellow',
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
const toneVariantDictionary = [
|
|
74
|
+
'strong',
|
|
75
|
+
'weak',
|
|
76
|
+
'ghost',
|
|
77
|
+
'quiet',
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
const toneActionVariantDictionary = [
|
|
81
|
+
'primary',
|
|
82
|
+
'secondary',
|
|
83
|
+
'tertiary',
|
|
84
|
+
'strong',
|
|
85
|
+
'weak',
|
|
86
|
+
'quiet',
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
const toneSimpleVariantDictionary = [
|
|
90
|
+
'strong',
|
|
91
|
+
'weak',
|
|
92
|
+
'quiet',
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
const toneMinimalVariantDictionary = [
|
|
96
|
+
'strong',
|
|
97
|
+
'weak',
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
themeFullVariantAvatarDictionary,
|
|
102
|
+
themeFullVariantDictionary,
|
|
103
|
+
themeLabelVariantDictionary,
|
|
104
|
+
themeLuminanceVariantDictionary,
|
|
105
|
+
themeStatusVariantDictionary,
|
|
106
|
+
themeVariantDictionary,
|
|
107
|
+
toneActionVariantDictionary,
|
|
108
|
+
toneMinimalVariantDictionary,
|
|
109
|
+
toneSimpleVariantDictionary,
|
|
110
|
+
toneVariantDictionary,
|
|
111
|
+
}
|