@maggioli-design-system/mds-input-tip 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,137 @@
|
|
1
|
+
import baselineFolderZip from '@icon/mi/baseline/folder-zip.svg'
|
2
|
+
import baselineAttachFile from '@icon/mi/baseline/attach-file.svg'
|
3
|
+
import baselineAudiotrack from '@icon/mi/baseline/audiotrack.svg'
|
4
|
+
import baselineTerminal from '@icon/mi/baseline/terminal.svg'
|
5
|
+
import baselineInsertDriveFile from '@icon/mi/baseline/insert-drive-file.svg'
|
6
|
+
import mdiHardDisk from '@icon/mdi/harddisk.svg'
|
7
|
+
import baselineEmail from '@icon/mi/baseline/email.svg'
|
8
|
+
import baselineWysiwyg from '@icon/mi/baseline/wysiwyg.svg'
|
9
|
+
import baselinePanorama from '@icon/mi/baseline/panorama.svg'
|
10
|
+
import baselineWeb from '@icon/mi/baseline/web.svg'
|
11
|
+
import baselineTV from '@icon/mi/baseline/tv.svg'
|
12
|
+
import baselineBorderAll from '@icon/mi/baseline/border-all.svg'
|
13
|
+
import baselineDescription from '@icon/mi/baseline/description.svg'
|
14
|
+
import mdiVectorCurve from '@icon/mdi/vector-curve.svg'
|
15
|
+
import baselineVideocam from '@icon/mi/baseline/videocam.svg'
|
16
|
+
|
17
|
+
interface FileFormatVariant {
|
18
|
+
color: string
|
19
|
+
icon: string
|
20
|
+
iconBackground: string
|
21
|
+
variant: string
|
22
|
+
}
|
23
|
+
|
24
|
+
interface FileFormatVariants {
|
25
|
+
[key: string]: FileFormatVariant
|
26
|
+
}
|
27
|
+
|
28
|
+
const fileFormatsVariant: FileFormatVariants = {
|
29
|
+
archive: {
|
30
|
+
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
31
|
+
icon: baselineFolderZip,
|
32
|
+
iconBackground: 'bg-label-amaranth-10',
|
33
|
+
variant: 'amaranth',
|
34
|
+
},
|
35
|
+
attachment: {
|
36
|
+
color: 'fill-tone-neutral-04 text-tone-neutral-04',
|
37
|
+
icon: baselineAttachFile,
|
38
|
+
iconBackground: 'bg-tone-neutral-10',
|
39
|
+
variant: 'dark',
|
40
|
+
},
|
41
|
+
audio: {
|
42
|
+
color: 'fill-label-violet-04 text-label-violet-04',
|
43
|
+
icon: baselineAudiotrack,
|
44
|
+
iconBackground: 'bg-label-violet-10',
|
45
|
+
variant: 'violet',
|
46
|
+
},
|
47
|
+
code: {
|
48
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
49
|
+
icon: baselineTerminal,
|
50
|
+
iconBackground: 'bg-label-yellow-10',
|
51
|
+
variant: 'yellow',
|
52
|
+
},
|
53
|
+
data: {
|
54
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
55
|
+
icon: mdiHardDisk,
|
56
|
+
iconBackground: 'bg-label-yellow-10',
|
57
|
+
variant: 'yellow',
|
58
|
+
},
|
59
|
+
document: {
|
60
|
+
color: 'fill-label-orange-04 text-label-orange-04',
|
61
|
+
icon: baselineInsertDriveFile,
|
62
|
+
iconBackground: 'bg-label-orange-10',
|
63
|
+
variant: 'orange',
|
64
|
+
},
|
65
|
+
email: {
|
66
|
+
color: 'fill-label-blue-04 text-label-blue-04',
|
67
|
+
icon: baselineEmail,
|
68
|
+
iconBackground: 'bg-label-blue-10',
|
69
|
+
variant: 'blue',
|
70
|
+
},
|
71
|
+
executable: {
|
72
|
+
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
73
|
+
icon: baselineWysiwyg,
|
74
|
+
iconBackground: 'bg-label-amaranth-10',
|
75
|
+
variant: 'amaranth',
|
76
|
+
},
|
77
|
+
image: {
|
78
|
+
color: 'fill-label-green-04 text-label-green-04',
|
79
|
+
icon: baselinePanorama,
|
80
|
+
iconBackground: 'bg-label-green-10',
|
81
|
+
variant: 'green',
|
82
|
+
},
|
83
|
+
imageRaster: {
|
84
|
+
color: 'fill-label-green-04 text-label-green-04',
|
85
|
+
icon: baselinePanorama,
|
86
|
+
iconBackground: 'bg-label-green-10',
|
87
|
+
variant: 'green',
|
88
|
+
},
|
89
|
+
markup: {
|
90
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
91
|
+
icon: baselineWeb,
|
92
|
+
iconBackground: 'bg-label-yellow-10',
|
93
|
+
variant: 'yellow',
|
94
|
+
},
|
95
|
+
slide: {
|
96
|
+
color: 'fill-label-orchid-04 text-label-orchid-04',
|
97
|
+
icon: baselineTV,
|
98
|
+
iconBackground: 'bg-label-orchid-10',
|
99
|
+
variant: 'orchid',
|
100
|
+
},
|
101
|
+
spreadsheet: {
|
102
|
+
color: 'fill-label-lime-04 text-label-lime-04',
|
103
|
+
icon: baselineBorderAll,
|
104
|
+
iconBackground: 'bg-label-lime-10',
|
105
|
+
variant: 'lime',
|
106
|
+
},
|
107
|
+
text: {
|
108
|
+
color: 'fill-label-blue-04 text-label-blue-04',
|
109
|
+
icon: baselineDescription,
|
110
|
+
iconBackground: 'bg-label-blue-10',
|
111
|
+
variant: 'blue',
|
112
|
+
},
|
113
|
+
vectorImage: {
|
114
|
+
color: 'fill-label-aqua-04 text-label-aqua-04',
|
115
|
+
icon: mdiVectorCurve,
|
116
|
+
iconBackground: 'bg-label-aqua-10',
|
117
|
+
variant: 'aqua',
|
118
|
+
},
|
119
|
+
vector: {
|
120
|
+
color: 'fill-label-aqua-04 text-label-aqua-04',
|
121
|
+
icon: mdiVectorCurve,
|
122
|
+
iconBackground: 'bg-label-aqua-10',
|
123
|
+
variant: 'aqua',
|
124
|
+
},
|
125
|
+
video: {
|
126
|
+
color: 'fill-label-violet-04 text-label-violet-04',
|
127
|
+
icon: baselineVideocam,
|
128
|
+
iconBackground: 'bg-label-violet-10',
|
129
|
+
variant: 'violet',
|
130
|
+
},
|
131
|
+
}
|
132
|
+
|
133
|
+
export {
|
134
|
+
fileFormatsVariant,
|
135
|
+
FileFormatVariant,
|
136
|
+
FileFormatVariants,
|
137
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
export type ThemeStatusVariantType =
|
2
|
+
| 'error'
|
3
|
+
| 'info'
|
4
|
+
| 'success'
|
5
|
+
| 'warning'
|
6
|
+
|
7
|
+
export type ThemeVariantType =
|
8
|
+
| 'dark'
|
9
|
+
| 'error'
|
10
|
+
| 'info'
|
11
|
+
| 'light'
|
12
|
+
| 'primary'
|
13
|
+
| 'success'
|
14
|
+
| 'warning'
|
15
|
+
|
16
|
+
export type ThemeFullVariantType =
|
17
|
+
| 'amaranth'
|
18
|
+
| 'aqua'
|
19
|
+
| 'blue'
|
20
|
+
| 'dark'
|
21
|
+
| 'error'
|
22
|
+
| 'green'
|
23
|
+
| 'info'
|
24
|
+
| 'light'
|
25
|
+
| 'lime'
|
26
|
+
| 'orange'
|
27
|
+
| 'orchid'
|
28
|
+
| 'sky'
|
29
|
+
| 'success'
|
30
|
+
| 'violet'
|
31
|
+
| 'warning'
|
32
|
+
| 'yellow'
|
33
|
+
|
34
|
+
export type ThemeFullVariantAvatarType =
|
35
|
+
| 'amaranth'
|
36
|
+
| 'aqua'
|
37
|
+
| 'blue'
|
38
|
+
| 'error'
|
39
|
+
| 'green'
|
40
|
+
| 'info'
|
41
|
+
| 'lime'
|
42
|
+
| 'orange'
|
43
|
+
| 'orchid'
|
44
|
+
| 'primary'
|
45
|
+
| 'sky'
|
46
|
+
| 'success'
|
47
|
+
| 'violet'
|
48
|
+
| 'warning'
|
49
|
+
| 'yellow'
|
50
|
+
|
51
|
+
export type ThemeLuminanceVariantType =
|
52
|
+
| 'dark'
|
53
|
+
| 'light'
|
54
|
+
|
55
|
+
export type LabelVariantType =
|
56
|
+
| 'amaranth'
|
57
|
+
| 'aqua'
|
58
|
+
| 'blue'
|
59
|
+
| 'green'
|
60
|
+
| 'lime'
|
61
|
+
| 'orange'
|
62
|
+
| 'orchid'
|
63
|
+
| 'sky'
|
64
|
+
| 'violet'
|
65
|
+
| 'yellow'
|
66
|
+
|
67
|
+
export type ActionVariantType =
|
68
|
+
| 'primary'
|
69
|
+
| 'dark'
|
70
|
+
| 'light'
|
71
|
+
|
72
|
+
export type StateVariantType =
|
73
|
+
| 'disabled'
|
74
|
+
| 'focused'
|
75
|
+
| 'readonly'
|
76
|
+
|
77
|
+
export type ToneActionVariantType =
|
78
|
+
| 'primary' // background strong
|
79
|
+
| 'secondary' // background weak
|
80
|
+
| 'tertiary' // no background, no border
|
81
|
+
| 'strong' // background strong
|
82
|
+
| 'weak' // background weak
|
83
|
+
| 'ghost' // bordered
|
84
|
+
| 'quiet' // no background, no border
|
85
|
+
|
86
|
+
export type ToneVariantType =
|
87
|
+
| 'strong' // background strong
|
88
|
+
| 'weak' // background weak
|
89
|
+
| 'ghost' // bordered
|
90
|
+
| 'quiet' // no background, no border
|
91
|
+
|
92
|
+
export type ToneSimpleVariantType =
|
93
|
+
| 'strong'
|
94
|
+
| 'weak'
|
95
|
+
| 'quiet'
|
96
|
+
|
97
|
+
export type ToneMinimalVariantType =
|
98
|
+
| 'strong'
|
99
|
+
| 'weak'
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{p as t,b as p}from"./p-22b86e20.js";export{s as setNonce}from"./p-22b86e20.js";(()=>{const p=import.meta.url,s={};return""!==p&&(s.resourcesUrl=new URL(".",p).href),t(s)})().then((t=>p([["p-630886b5",[[1,"mds-input-tip",{active:[516],position:[513]}]]]],t)));
|