@maggioli-design-system/mds-input-otp 1.0.1
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-3ce43d21.js +1360 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/mds-input-otp.cjs.entry.js +101 -0
- package/dist/cjs/mds-input-otp.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/common/aria.js +45 -0
- package/dist/collection/common/browser.js +7 -0
- package/dist/collection/common/date.js +13 -0
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/file.js +48 -0
- package/dist/collection/common/floating-controller.js +201 -0
- package/dist/collection/common/icon.js +15 -0
- package/dist/collection/common/keyboard-manager.js +46 -0
- package/dist/collection/common/locale.js +66 -0
- package/dist/collection/common/slot.js +28 -0
- package/dist/collection/common/string.js +30 -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-otp/mds-input-otp.css +16 -0
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +159 -0
- package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +56 -0
- package/dist/collection/dictionary/animation.js +5 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +39 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/file-extensions.js +69 -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/keyboard.js +84 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/text.js +65 -0
- package/dist/collection/dictionary/tree.js +13 -0
- package/dist/collection/dictionary/typography.js +67 -0
- package/dist/collection/dictionary/variant.js +116 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/fixtures/filenames.js +118 -0
- package/dist/collection/type/animation.js +1 -0
- package/dist/collection/type/autocomplete.js +1 -0
- package/dist/collection/type/button.js +1 -0
- package/dist/collection/type/date.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/header-bar.js +1 -0
- package/dist/collection/type/input-tip.js +1 -0
- package/dist/collection/type/input.js +1 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/collection/type/loading.js +1 -0
- package/dist/collection/type/preference.js +1 -0
- package/dist/collection/type/text.js +1 -0
- package/dist/collection/type/tree.js +1 -0
- package/dist/collection/type/typography.js +1 -0
- package/dist/collection/type/variant-file-format.js +91 -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-otp.d.ts +11 -0
- package/dist/components/mds-input-otp.js +113 -0
- package/dist/documentation.d.ts +443 -0
- package/dist/documentation.json +105 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-7080a0cd.js +1332 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/mds-input-otp.entry.js +97 -0
- package/dist/esm/mds-input-otp.js +20 -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/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/index-7080a0cd.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-otp.entry.js +1 -0
- package/dist/esm-es5/mds-input-otp.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-input-otp/index.esm.js +0 -0
- package/dist/mds-input-otp/mds-input-otp.esm.js +1 -0
- package/dist/mds-input-otp/mds-input-otp.js +127 -0
- package/dist/mds-input-otp/p-0b4b7d22.system.js +1 -0
- package/dist/mds-input-otp/p-50ea2036.system.js +1 -0
- package/dist/mds-input-otp/p-56ba5cbf.system.js +1 -0
- package/dist/mds-input-otp/p-6fa28cad.entry.js +1 -0
- package/dist/mds-input-otp/p-8d749fc9.system.entry.js +1 -0
- package/dist/mds-input-otp/p-9c3d33cc.system.js +2 -0
- package/dist/mds-input-otp/p-dea9d1b9.js +2 -0
- package/dist/mds-input-otp/p-e1255160.js +1 -0
- package/dist/stats.json +588 -0
- package/dist/types/common/aria.d.ts +7 -0
- package/dist/types/common/browser.d.ts +2 -0
- package/dist/types/common/date.d.ts +4 -0
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/file.d.ts +11 -0
- package/dist/types/common/floating-controller.d.ts +47 -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 +20 -0
- package/dist/types/common/slot.d.ts +4 -0
- package/dist/types/common/string.d.ts +4 -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-otp/mds-input-otp.d.ts +27 -0
- package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +21 -0
- package/dist/types/components.d.ts +61 -0
- package/dist/types/dictionary/animation.d.ts +2 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +7 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/file-extensions.d.ts +12 -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/keyboard.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +4 -0
- package/dist/types/dictionary/tree.d.ts +4 -0
- package/dist/types/dictionary/typography.d.ts +11 -0
- package/dist/types/dictionary/variant.d.ts +13 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/fixtures/filenames.d.ts +63 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/type/animation.d.ts +1 -0
- package/dist/types/type/autocomplete.d.ts +2 -0
- package/dist/types/type/button.d.ts +5 -0
- package/dist/types/type/date.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/header-bar.d.ts +2 -0
- package/dist/types/type/input-tip.d.ts +1 -0
- package/dist/types/type/input.d.ts +7 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/dist/types/type/loading.d.ts +1 -0
- package/dist/types/type/preference.d.ts +2 -0
- package/dist/types/type/text.d.ts +3 -0
- package/dist/types/type/tree.d.ts +3 -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 +13 -0
- package/documentation.json +703 -0
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/loader/package.json +11 -0
- package/package.json +54 -0
- package/readme.md +41 -0
- package/src/common/aria.ts +59 -0
- package/src/common/browser.ts +10 -0
- package/src/common/date.ts +21 -0
- package/src/common/device.ts +9 -0
- package/src/common/file.ts +62 -0
- package/src/common/floating-controller.ts +286 -0
- package/src/common/icon.ts +25 -0
- package/src/common/keyboard-manager.ts +51 -0
- package/src/common/locale.ts +90 -0
- package/src/common/slot.ts +35 -0
- package/src/common/string.ts +42 -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-otp/.gitlab-ci.yml +20 -0
- package/src/components/mds-input-otp/mds-input-otp.css +16 -0
- package/src/components/mds-input-otp/mds-input-otp.tsx +123 -0
- package/src/components/mds-input-otp/readme.md +19 -0
- package/src/components/mds-input-otp/test/mds-input-otp.e2e.ts +11 -0
- package/src/components/mds-input-otp/test/mds-input-otp.stories.tsx +90 -0
- package/src/components.d.ts +61 -0
- package/src/dictionary/animation.ts +8 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +52 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/file-extensions.ts +88 -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/keyboard.ts +87 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/text.ts +73 -0
- package/src/dictionary/tree.ts +21 -0
- package/src/dictionary/typography.ts +88 -0
- package/src/dictionary/variant.ts +141 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/fixtures/filenames.ts +123 -0
- package/src/fixtures/icons.json +447 -0
- package/src/fixtures/iconsauce.json +306 -0
- package/src/meta/file-format/locale.el.json +44 -0
- package/src/meta/file-format/locale.en.json +44 -0
- package/src/meta/file-format/locale.es.json +44 -0
- package/src/meta/file-format/locale.it.json +44 -0
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +51 -0
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/animation.ts +3 -0
- package/src/type/autocomplete.ts +68 -0
- package/src/type/button.ts +32 -0
- package/src/type/date.ts +10 -0
- package/src/type/file-types.ts +61 -0
- package/src/type/floating-ui.ts +17 -0
- package/src/type/form-rel.ts +11 -0
- package/src/type/header-bar.ts +11 -0
- package/src/type/input-tip.ts +11 -0
- package/src/type/input.ts +33 -0
- package/src/type/keyboard.ts +93 -0
- package/src/type/loading.ts +3 -0
- package/src/type/preference.ts +11 -0
- package/src/type/text.ts +63 -0
- package/src/type/tree.ts +12 -0
- package/src/type/typography.ts +65 -0
- package/src/type/variant-file-format.ts +126 -0
- package/src/type/variant.ts +119 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-input-otp.esm.js +1 -0
- package/www/build/mds-input-otp.js +127 -0
- package/www/build/p-0b4b7d22.system.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-56ba5cbf.system.js +1 -0
- package/www/build/p-6fa28cad.entry.js +1 -0
- package/www/build/p-8d749fc9.system.entry.js +1 -0
- package/www/build/p-9c3d33cc.system.js +2 -0
- package/www/build/p-dea9d1b9.js +2 -0
- package/www/build/p-e1255160.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type AutocompleteType =
|
|
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-given-name'
|
|
22
|
+
| 'cc-name'
|
|
23
|
+
| 'cc-number'
|
|
24
|
+
| 'cc-type'
|
|
25
|
+
| 'country'
|
|
26
|
+
| 'country-name'
|
|
27
|
+
| 'current-password'
|
|
28
|
+
| 'email'
|
|
29
|
+
| 'family-name'
|
|
30
|
+
| 'given-name'
|
|
31
|
+
| 'honorific-prefix'
|
|
32
|
+
| 'honorific-suffix'
|
|
33
|
+
| 'impp'
|
|
34
|
+
| 'language'
|
|
35
|
+
| 'name'
|
|
36
|
+
| 'new-password'
|
|
37
|
+
| 'nickname'
|
|
38
|
+
| 'off'
|
|
39
|
+
| 'on'
|
|
40
|
+
| 'one-time-code'
|
|
41
|
+
| 'organization'
|
|
42
|
+
| 'organization-title'
|
|
43
|
+
| 'photo'
|
|
44
|
+
| 'postal-code'
|
|
45
|
+
| 'sex'
|
|
46
|
+
| 'street-address'
|
|
47
|
+
| 'tel'
|
|
48
|
+
| 'tel-area-code'
|
|
49
|
+
| 'tel-country-code'
|
|
50
|
+
| 'tel-extension'
|
|
51
|
+
| 'tel-local'
|
|
52
|
+
| 'tel-national'
|
|
53
|
+
| 'transaction-amount'
|
|
54
|
+
| 'transaction-currency'
|
|
55
|
+
| 'url'
|
|
56
|
+
| 'username'
|
|
57
|
+
|
|
58
|
+
export type InputTextType =
|
|
59
|
+
| 'date'
|
|
60
|
+
| 'email'
|
|
61
|
+
| 'number'
|
|
62
|
+
| 'password'
|
|
63
|
+
| 'search'
|
|
64
|
+
| 'tel'
|
|
65
|
+
| 'text'
|
|
66
|
+
| 'textarea'
|
|
67
|
+
| 'time'
|
|
68
|
+
| 'url'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ButtonType =
|
|
2
|
+
| 'a'
|
|
3
|
+
| 'button'
|
|
4
|
+
| 'reset'
|
|
5
|
+
| 'submit'
|
|
6
|
+
|
|
7
|
+
export type ButtonTargetType =
|
|
8
|
+
|'self'
|
|
9
|
+
|'blank'
|
|
10
|
+
|
|
11
|
+
export type ButtonSizeType =
|
|
12
|
+
| 'sm'
|
|
13
|
+
| 'md'
|
|
14
|
+
| 'lg'
|
|
15
|
+
| 'xl'
|
|
16
|
+
|
|
17
|
+
export type ButtonIconPositionType =
|
|
18
|
+
| 'left'
|
|
19
|
+
| 'right'
|
|
20
|
+
|
|
21
|
+
export type ButtonVariantType =
|
|
22
|
+
| 'ai'
|
|
23
|
+
| 'apple'
|
|
24
|
+
| 'dark'
|
|
25
|
+
| 'error'
|
|
26
|
+
| 'google'
|
|
27
|
+
| 'info'
|
|
28
|
+
| 'light'
|
|
29
|
+
| 'primary'
|
|
30
|
+
| 'secondary'
|
|
31
|
+
| 'success'
|
|
32
|
+
| 'warning'
|
package/src/type/date.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ISO8601DateFormat<K, T> = K & { __isISO8601DateFormat: T };
|
|
2
|
+
|
|
3
|
+
// Defines a branded type for the date ISO 8601 string
|
|
4
|
+
type ISO8601Date = ISO8601DateFormat<string, 'ISO8601Date'>
|
|
5
|
+
|
|
6
|
+
// const validDate: ISO8601Date = sanitizeISO8601Date('2024-09-24T15:30:00Z')
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
ISO8601Date,
|
|
10
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type ExtensionSuffixType =
|
|
2
|
+
| '7z'
|
|
3
|
+
| 'ace'
|
|
4
|
+
| 'ai'
|
|
5
|
+
| 'db'
|
|
6
|
+
| 'default'
|
|
7
|
+
| 'dmg'
|
|
8
|
+
| 'doc'
|
|
9
|
+
| 'docm'
|
|
10
|
+
| 'docx'
|
|
11
|
+
| 'eml'
|
|
12
|
+
| 'eps'
|
|
13
|
+
| 'exe'
|
|
14
|
+
| 'flac'
|
|
15
|
+
| 'gif'
|
|
16
|
+
| 'heic'
|
|
17
|
+
| 'htm'
|
|
18
|
+
| 'html'
|
|
19
|
+
| 'jpe'
|
|
20
|
+
| 'jpeg'
|
|
21
|
+
| 'jpg'
|
|
22
|
+
| 'js'
|
|
23
|
+
| 'json'
|
|
24
|
+
| 'jsx'
|
|
25
|
+
| 'm2v'
|
|
26
|
+
| 'mp2'
|
|
27
|
+
| 'mp3'
|
|
28
|
+
| 'mp4'
|
|
29
|
+
| 'mp4v'
|
|
30
|
+
| 'mpeg'
|
|
31
|
+
| 'mpg'
|
|
32
|
+
| 'mpg4'
|
|
33
|
+
| 'mpga'
|
|
34
|
+
| 'odf'
|
|
35
|
+
| 'odp'
|
|
36
|
+
| 'ods'
|
|
37
|
+
| 'odt'
|
|
38
|
+
| 'odt'
|
|
39
|
+
| 'ole'
|
|
40
|
+
| 'p7m'
|
|
41
|
+
| 'pdf'
|
|
42
|
+
| 'php'
|
|
43
|
+
| 'png'
|
|
44
|
+
| 'ppt'
|
|
45
|
+
| 'rar'
|
|
46
|
+
| 'rtf'
|
|
47
|
+
| 'sass'
|
|
48
|
+
| 'shtml'
|
|
49
|
+
| 'svg'
|
|
50
|
+
| 'tar'
|
|
51
|
+
| 'tiff'
|
|
52
|
+
| 'ts'
|
|
53
|
+
| 'tsd'
|
|
54
|
+
| 'txt'
|
|
55
|
+
| 'wav'
|
|
56
|
+
| 'webp'
|
|
57
|
+
| 'xar'
|
|
58
|
+
| 'xls'
|
|
59
|
+
| 'xlsx'
|
|
60
|
+
| 'xml'
|
|
61
|
+
| 'zip'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FloatingUIPlacement =
|
|
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
|
+
|
|
15
|
+
export type FloatingUIStrategy =
|
|
16
|
+
| 'absolute'
|
|
17
|
+
| 'fixed'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type FormRelType =
|
|
2
|
+
| 'external' // Specifies that the referenced document is not a part of the current site
|
|
3
|
+
| 'help' // Links to a help document
|
|
4
|
+
| 'license' // Links to copyright information for the document
|
|
5
|
+
| 'next' // The next document in a selection
|
|
6
|
+
| 'nofollow' // Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
|
|
7
|
+
| 'noopener'
|
|
8
|
+
| 'noreferrer' // Specifies that the browser should not send a HTTP referrer header if the user follows the hyperlink
|
|
9
|
+
| 'opener'
|
|
10
|
+
| 'prev' // The previous document in a selection
|
|
11
|
+
| 'search' // Links to a search tool for the document
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type InputControlsLayoutType =
|
|
2
|
+
| 'horizontal'
|
|
3
|
+
| 'vertical'
|
|
4
|
+
|
|
5
|
+
export type InputControlsIconType =
|
|
6
|
+
| 'arrow'
|
|
7
|
+
| 'arithmetic'
|
|
8
|
+
|
|
9
|
+
export type InputValueType =
|
|
10
|
+
| null
|
|
11
|
+
| number
|
|
12
|
+
| string
|
|
13
|
+
| undefined
|
|
14
|
+
|
|
15
|
+
export type InputTextType =
|
|
16
|
+
| 'date'
|
|
17
|
+
| 'email'
|
|
18
|
+
| 'number'
|
|
19
|
+
| 'password'
|
|
20
|
+
| 'search'
|
|
21
|
+
| 'tel'
|
|
22
|
+
| 'text'
|
|
23
|
+
| 'textarea'
|
|
24
|
+
| 'time'
|
|
25
|
+
| 'url'
|
|
26
|
+
| 'cc'
|
|
27
|
+
| 'cf'
|
|
28
|
+
| 'isbn'
|
|
29
|
+
| 'piva'
|
|
30
|
+
|
|
31
|
+
export interface MdsInputEventDetail {
|
|
32
|
+
value?: File | string | FormData | null
|
|
33
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export type KeyboardKeyData = {
|
|
2
|
+
alias: string
|
|
3
|
+
description: string
|
|
4
|
+
group: string
|
|
5
|
+
keyCodes: string[]
|
|
6
|
+
keyboardPosition?: { left?: boolean; right?: boolean }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type KeyboardKeyName =
|
|
10
|
+
| '0'
|
|
11
|
+
| '1'
|
|
12
|
+
| '2'
|
|
13
|
+
| '3'
|
|
14
|
+
| '4'
|
|
15
|
+
| '5'
|
|
16
|
+
| '6'
|
|
17
|
+
| '7'
|
|
18
|
+
| '8'
|
|
19
|
+
| '9'
|
|
20
|
+
| 'a'
|
|
21
|
+
| 'alt'
|
|
22
|
+
| 'altleft'
|
|
23
|
+
| 'altright'
|
|
24
|
+
| 'arrowdown'
|
|
25
|
+
| 'arrowleft'
|
|
26
|
+
| 'arrowright'
|
|
27
|
+
| 'arrowup'
|
|
28
|
+
| 'b'
|
|
29
|
+
| 'backspace'
|
|
30
|
+
| 'c'
|
|
31
|
+
| 'capslock'
|
|
32
|
+
| 'command'
|
|
33
|
+
| 'commandleft'
|
|
34
|
+
| 'commandright'
|
|
35
|
+
| 'control'
|
|
36
|
+
| 'controlleft'
|
|
37
|
+
| 'controlright'
|
|
38
|
+
| 'd'
|
|
39
|
+
| 'delete'
|
|
40
|
+
| 'e'
|
|
41
|
+
| 'end'
|
|
42
|
+
| 'enter'
|
|
43
|
+
| 'escape'
|
|
44
|
+
| 'f'
|
|
45
|
+
| 'f1'
|
|
46
|
+
| 'f10'
|
|
47
|
+
| 'f11'
|
|
48
|
+
| 'f12'
|
|
49
|
+
| 'f2'
|
|
50
|
+
| 'f3'
|
|
51
|
+
| 'f4'
|
|
52
|
+
| 'f5'
|
|
53
|
+
| 'f6'
|
|
54
|
+
| 'f7'
|
|
55
|
+
| 'f8'
|
|
56
|
+
| 'f9'
|
|
57
|
+
| 'g'
|
|
58
|
+
| 'h'
|
|
59
|
+
| 'home'
|
|
60
|
+
| 'i'
|
|
61
|
+
| 'j'
|
|
62
|
+
| 'k'
|
|
63
|
+
| 'l'
|
|
64
|
+
| 'm'
|
|
65
|
+
| 'n'
|
|
66
|
+
| 'o'
|
|
67
|
+
| 'option'
|
|
68
|
+
| 'optionleft'
|
|
69
|
+
| 'optionright'
|
|
70
|
+
| 'p'
|
|
71
|
+
| 'pagedown'
|
|
72
|
+
| 'pageup'
|
|
73
|
+
| 'q'
|
|
74
|
+
| 'r'
|
|
75
|
+
| 's'
|
|
76
|
+
| 'shift'
|
|
77
|
+
| 'shiftleft'
|
|
78
|
+
| 'shiftright'
|
|
79
|
+
| 'space'
|
|
80
|
+
| 't'
|
|
81
|
+
| 'tab'
|
|
82
|
+
| 'u'
|
|
83
|
+
| 'v'
|
|
84
|
+
| 'w'
|
|
85
|
+
| 'windows'
|
|
86
|
+
| 'windowsleft'
|
|
87
|
+
| 'windowsright'
|
|
88
|
+
| 'x'
|
|
89
|
+
| 'y'
|
|
90
|
+
| 'z'
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export type KeyboardKeyMap = Record<KeyboardKeyName, KeyboardKeyData>;
|
package/src/type/text.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type TypographyTagType =
|
|
2
|
+
| 'abbr'
|
|
3
|
+
| 'address'
|
|
4
|
+
| 'article'
|
|
5
|
+
| 'b'
|
|
6
|
+
| 'bdo'
|
|
7
|
+
| 'blockquote'
|
|
8
|
+
| 'cite'
|
|
9
|
+
| 'code'
|
|
10
|
+
| 'dd'
|
|
11
|
+
| 'del'
|
|
12
|
+
| 'details'
|
|
13
|
+
| 'dfn'
|
|
14
|
+
| 'div'
|
|
15
|
+
| 'dl'
|
|
16
|
+
| 'dt'
|
|
17
|
+
| 'em'
|
|
18
|
+
| 'figcaption'
|
|
19
|
+
| 'h1'
|
|
20
|
+
| 'h2'
|
|
21
|
+
| 'h3'
|
|
22
|
+
| 'h4'
|
|
23
|
+
| 'h5'
|
|
24
|
+
| 'h6'
|
|
25
|
+
| 'i'
|
|
26
|
+
| 'ins'
|
|
27
|
+
| 'kbd'
|
|
28
|
+
| 'label'
|
|
29
|
+
| 'legend'
|
|
30
|
+
| 'li'
|
|
31
|
+
| 'mark'
|
|
32
|
+
| 'ol'
|
|
33
|
+
| 'p'
|
|
34
|
+
| 'pre'
|
|
35
|
+
| 'q'
|
|
36
|
+
| 'rb'
|
|
37
|
+
| 'rt'
|
|
38
|
+
| 'ruby'
|
|
39
|
+
| 's'
|
|
40
|
+
| 'samp'
|
|
41
|
+
| 'small'
|
|
42
|
+
| 'span'
|
|
43
|
+
| 'strong'
|
|
44
|
+
| 'sub'
|
|
45
|
+
| 'summary'
|
|
46
|
+
| 'sup'
|
|
47
|
+
| 'time'
|
|
48
|
+
| 'u'
|
|
49
|
+
| 'ul'
|
|
50
|
+
| 'var'
|
|
51
|
+
|
|
52
|
+
export type TypographyHeadingTagType =
|
|
53
|
+
| 'h1'
|
|
54
|
+
| 'h2'
|
|
55
|
+
| 'h3'
|
|
56
|
+
| 'h4'
|
|
57
|
+
| 'h5'
|
|
58
|
+
| 'h6'
|
|
59
|
+
|
|
60
|
+
export type TypographyTruncateType =
|
|
61
|
+
| 'all'
|
|
62
|
+
| 'none'
|
|
63
|
+
| 'word'
|
package/src/type/tree.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type TypographyType =
|
|
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
|
+
export type TypographyVariants =
|
|
19
|
+
| 'title'
|
|
20
|
+
| 'info'
|
|
21
|
+
| 'read'
|
|
22
|
+
| 'code'
|
|
23
|
+
|
|
24
|
+
export type TypographyReadingVariants =
|
|
25
|
+
| 'info'
|
|
26
|
+
| 'read'
|
|
27
|
+
|
|
28
|
+
export type TypographyTitleType =
|
|
29
|
+
| 'action'
|
|
30
|
+
| 'h1'
|
|
31
|
+
| 'h2'
|
|
32
|
+
| 'h3'
|
|
33
|
+
| 'h4'
|
|
34
|
+
| 'h5'
|
|
35
|
+
| 'h6'
|
|
36
|
+
|
|
37
|
+
export type TypographyInfoType =
|
|
38
|
+
| 'caption'
|
|
39
|
+
| 'detail'
|
|
40
|
+
| 'label'
|
|
41
|
+
| 'option'
|
|
42
|
+
| 'paragraph'
|
|
43
|
+
| 'tip'
|
|
44
|
+
|
|
45
|
+
export type TypographyReadType =
|
|
46
|
+
| 'caption'
|
|
47
|
+
| 'detail'
|
|
48
|
+
| 'paragraph'
|
|
49
|
+
|
|
50
|
+
export type TypographySmallerType =
|
|
51
|
+
| 'tip'
|
|
52
|
+
| 'option'
|
|
53
|
+
|
|
54
|
+
export type TypographyMonoType =
|
|
55
|
+
| 'snippet'
|
|
56
|
+
| 'hack'
|
|
57
|
+
|
|
58
|
+
export type TypographyTooltipType =
|
|
59
|
+
| 'caption'
|
|
60
|
+
| 'detail'
|
|
61
|
+
| 'tip'
|
|
62
|
+
|
|
63
|
+
export type TypographyInputType =
|
|
64
|
+
| 'snippet'
|
|
65
|
+
| 'detail'
|