@maggioli-design-system/mds-input-tip 1.1.3 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{index-f87612f6.js → index-442db91d.js} +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-input-tip.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-tip.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/locale.js +17 -5
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -228
- package/dist/collection/dictionary/button.js +1 -0
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/collection/type/variant-file-format.js +0 -34
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-a04da9f4.js → index-8fed469d.js} +14 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-input-tip.entry.js +2 -2
- package/dist/esm/mds-input-tip.js +3 -3
- package/dist/esm-es5/index-8fed469d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-tip.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip.js +1 -1
- package/dist/mds-input-tip/mds-input-tip.esm.js +1 -1
- package/dist/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/mds-input-tip/p-37c61f56.system.js +2 -0
- package/dist/mds-input-tip/p-3e967425.js +2 -0
- package/dist/mds-input-tip/p-4486a5e4.entry.js +1 -0
- package/dist/mds-input-tip/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
- package/dist/mds-input-tip/p-fadf816e.system.entry.js +1 -0
- package/dist/stats.json +34 -36
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/file.d.ts +3 -4
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/dictionary/file-extensions.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/button.d.ts +1 -1
- package/dist/types/type/header-bar.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/variant-file-format.d.ts +4 -4
- package/dist/types/type/variant.d.ts +2 -1
- package/documentation.json +39 -24
- package/package.json +5 -5
- package/src/common/file.ts +2 -3
- package/src/common/locale.ts +20 -6
- package/src/common/unit.ts +1 -1
- package/src/components/mds-input-tip/.gitlab-ci.yml +5 -10
- package/src/components/mds-input-tip/mds-input-tip.css +2 -2
- package/src/dictionary/button.ts +1 -0
- package/src/dictionary/file-extensions.ts +3 -1
- package/src/dictionary/variant.ts +11 -0
- package/src/fixtures/icons.json +29 -3
- package/src/fixtures/iconsauce.json +21 -1
- package/src/tailwind/components.css +1 -1
- package/src/type/autocomplete.ts +0 -1
- package/src/type/button.ts +1 -0
- package/src/type/header-bar.ts +11 -0
- package/src/type/input.ts +4 -0
- package/src/type/variant-file-format.ts +20 -37
- package/src/type/variant.ts +9 -1
- package/www/build/mds-input-tip.esm.js +1 -1
- package/www/build/mds-input-tip.js +1 -1
- package/www/build/p-37c61f56.system.js +2 -0
- package/www/build/p-3e967425.js +2 -0
- package/www/build/p-4486a5e4.entry.js +1 -0
- package/www/build/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
- package/www/build/p-fadf816e.system.entry.js +1 -0
- package/dist/collection/type/language.js +0 -1
- package/dist/esm-es5/index-a04da9f4.js +0 -1
- package/dist/mds-input-tip/p-14639038.entry.js +0 -1
- package/dist/mds-input-tip/p-58828816.system.js +0 -2
- package/dist/mds-input-tip/p-96bf634c.js +0 -2
- package/dist/mds-input-tip/p-ed74ada1.system.entry.js +0 -1
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -1
- package/src/interface/input-value.ts +0 -5
- package/src/type/language.ts +0 -4
- package/www/build/p-14639038.entry.js +0 -1
- package/www/build/p-58828816.system.js +0 -2
- package/www/build/p-96bf634c.js +0 -2
- package/www/build/p-ed74ada1.system.entry.js +0 -1
- /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
@@ -24,7 +24,7 @@ const NAMESPACE = 'mds-input-tip';
|
|
24
24
|
const BUILD = /* mds-input-tip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
25
25
|
|
26
26
|
/*
|
27
|
-
Stencil Client Platform v4.
|
27
|
+
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
@@ -343,10 +343,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
343
343
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
344
344
|
if (styleContainerNode.nodeName === "HEAD") {
|
345
345
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
346
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
346
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
347
347
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
348
348
|
} else if ("host" in styleContainerNode) {
|
349
|
-
|
349
|
+
if (supportsConstructableStylesheets) {
|
350
|
+
const stylesheet = new CSSStyleSheet();
|
351
|
+
stylesheet.replaceSync(style);
|
352
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
353
|
+
} else {
|
354
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
355
|
+
if (existingStyleContainer) {
|
356
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
357
|
+
} else {
|
358
|
+
styleContainerNode.prepend(styleElm);
|
359
|
+
}
|
360
|
+
}
|
350
361
|
} else {
|
351
362
|
styleContainerNode.append(styleElm);
|
352
363
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-442db91d.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-442db91d.js');
|
6
6
|
|
7
|
-
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-
|
7
|
+
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-pack: end;\n justify-content: flex-end;\n pointer-events: none;\n position: absolute;\n -webkit-transform: var(--mds-input-tip-active-translate);\n transform: var(--mds-input-tip-active-translate);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host(:empty) {\n display: none;\n}\n\n:host([position=\"top\"]) {\n top: 0.25rem;\n}\n\n:host([position=\"bottom\"]) {\n bottom: 0.25rem;\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), calc(0.25rem * -1));\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), 0.25rem);\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
|
8
8
|
const MdsInputTipStyle0 = mdsInputTipCss;
|
9
9
|
|
10
10
|
const MdsInputTip = class {
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-442db91d.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.
|
9
|
+
Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com
|
10
10
|
*/
|
11
11
|
var patchBrowser = () => {
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-input-tip.cjs.js', document.baseURI).href));
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import
|
1
|
+
import { render } from "mustache";
|
2
2
|
export class Locale {
|
3
3
|
constructor(configData) {
|
4
4
|
this.rollbackLanguage = 'en';
|
5
5
|
this.set = (configData) => {
|
6
6
|
this.config = configData;
|
7
7
|
};
|
8
|
-
this.lang = (
|
9
|
-
this.
|
8
|
+
this.lang = (el) => {
|
9
|
+
this.element = el;
|
10
|
+
this.closestElement = this.element.closest('[lang]');
|
10
11
|
if (this.closestElement) {
|
11
12
|
if (this.closestElement.lang) {
|
12
13
|
this.language = this.closestElement.lang;
|
@@ -16,6 +17,18 @@ export class Locale {
|
|
16
17
|
this.language = this.rollbackLanguage;
|
17
18
|
return this.language;
|
18
19
|
};
|
20
|
+
this.update = (doc) => {
|
21
|
+
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
22
|
+
context && context.querySelectorAll('*').forEach(el => {
|
23
|
+
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
24
|
+
// eslint-disable-next-line no-restricted-syntax
|
25
|
+
if (el && 'updateLang' in el) {
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
27
|
+
el.updateLang();
|
28
|
+
}
|
29
|
+
}
|
30
|
+
});
|
31
|
+
};
|
19
32
|
this.pluralize = (tag, context) => {
|
20
33
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
21
34
|
const phrases = [];
|
@@ -38,8 +51,7 @@ export class Locale {
|
|
38
51
|
}
|
39
52
|
}
|
40
53
|
}
|
41
|
-
|
42
|
-
return template(context);
|
54
|
+
return render(translatePhrase, context);
|
43
55
|
};
|
44
56
|
this.get = (tag, context) => {
|
45
57
|
if (context) {
|
@@ -10,10 +10,6 @@
|
|
10
10
|
|
11
11
|
gap: 0.25rem;
|
12
12
|
|
13
|
-
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
14
|
-
|
15
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
16
|
-
|
17
13
|
transition-duration: 300ms;
|
18
14
|
|
19
15
|
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
@@ -23,6 +19,7 @@
|
|
23
19
|
pointer-events: none;
|
24
20
|
position: absolute;
|
25
21
|
transform: var(--mds-input-tip-active-translate);
|
22
|
+
transition-property: transform;
|
26
23
|
}
|
27
24
|
|
28
25
|
:host(:empty) {
|
@@ -57,230 +54,6 @@
|
|
57
54
|
border-bottom-right-radius: 0;
|
58
55
|
}
|
59
56
|
|
60
|
-
.static{
|
61
|
-
|
62
|
-
position: static;
|
63
|
-
}
|
64
|
-
|
65
|
-
.fixed{
|
66
|
-
|
67
|
-
position: fixed;
|
68
|
-
}
|
69
|
-
|
70
|
-
.absolute{
|
71
|
-
|
72
|
-
position: absolute;
|
73
|
-
}
|
74
|
-
|
75
|
-
.relative{
|
76
|
-
|
77
|
-
position: relative;
|
78
|
-
}
|
79
|
-
|
80
|
-
.border{
|
81
|
-
|
82
|
-
border-width: 1px;
|
83
|
-
}
|
84
|
-
|
85
|
-
.bg-label-amaranth-10{
|
86
|
-
|
87
|
-
--tw-bg-opacity: 1;
|
88
|
-
|
89
|
-
background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
|
90
|
-
}
|
91
|
-
|
92
|
-
.bg-label-aqua-10{
|
93
|
-
|
94
|
-
--tw-bg-opacity: 1;
|
95
|
-
|
96
|
-
background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
|
97
|
-
}
|
98
|
-
|
99
|
-
.bg-label-blue-10{
|
100
|
-
|
101
|
-
--tw-bg-opacity: 1;
|
102
|
-
|
103
|
-
background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
|
104
|
-
}
|
105
|
-
|
106
|
-
.bg-label-green-10{
|
107
|
-
|
108
|
-
--tw-bg-opacity: 1;
|
109
|
-
|
110
|
-
background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
|
111
|
-
}
|
112
|
-
|
113
|
-
.bg-label-lime-10{
|
114
|
-
|
115
|
-
--tw-bg-opacity: 1;
|
116
|
-
|
117
|
-
background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
|
118
|
-
}
|
119
|
-
|
120
|
-
.bg-label-orange-10{
|
121
|
-
|
122
|
-
--tw-bg-opacity: 1;
|
123
|
-
|
124
|
-
background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
|
125
|
-
}
|
126
|
-
|
127
|
-
.bg-label-orchid-10{
|
128
|
-
|
129
|
-
--tw-bg-opacity: 1;
|
130
|
-
|
131
|
-
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
132
|
-
}
|
133
|
-
|
134
|
-
.bg-label-violet-10{
|
135
|
-
|
136
|
-
--tw-bg-opacity: 1;
|
137
|
-
|
138
|
-
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
139
|
-
}
|
140
|
-
|
141
|
-
.bg-label-yellow-10{
|
142
|
-
|
143
|
-
--tw-bg-opacity: 1;
|
144
|
-
|
145
|
-
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
146
|
-
}
|
147
|
-
|
148
|
-
.bg-tone-neutral-10{
|
149
|
-
|
150
|
-
--tw-bg-opacity: 1;
|
151
|
-
|
152
|
-
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
153
|
-
}
|
154
|
-
|
155
|
-
.fill-label-amaranth-04{
|
156
|
-
|
157
|
-
fill: rgb(var(--label-amaranth-04));
|
158
|
-
}
|
159
|
-
|
160
|
-
.fill-label-aqua-04{
|
161
|
-
|
162
|
-
fill: rgb(var(--label-aqua-04));
|
163
|
-
}
|
164
|
-
|
165
|
-
.fill-label-blue-04{
|
166
|
-
|
167
|
-
fill: rgb(var(--label-blue-04));
|
168
|
-
}
|
169
|
-
|
170
|
-
.fill-label-green-04{
|
171
|
-
|
172
|
-
fill: rgb(var(--label-green-04));
|
173
|
-
}
|
174
|
-
|
175
|
-
.fill-label-lime-04{
|
176
|
-
|
177
|
-
fill: rgb(var(--label-lime-04));
|
178
|
-
}
|
179
|
-
|
180
|
-
.fill-label-orange-04{
|
181
|
-
|
182
|
-
fill: rgb(var(--label-orange-04));
|
183
|
-
}
|
184
|
-
|
185
|
-
.fill-label-orchid-04{
|
186
|
-
|
187
|
-
fill: rgb(var(--label-orchid-04));
|
188
|
-
}
|
189
|
-
|
190
|
-
.fill-label-violet-04{
|
191
|
-
|
192
|
-
fill: rgb(var(--label-violet-04));
|
193
|
-
}
|
194
|
-
|
195
|
-
.fill-label-yellow-04{
|
196
|
-
|
197
|
-
fill: rgb(var(--label-yellow-04));
|
198
|
-
}
|
199
|
-
|
200
|
-
.fill-tone-neutral-04{
|
201
|
-
|
202
|
-
fill: rgb(var(--tone-neutral-04));
|
203
|
-
}
|
204
|
-
|
205
|
-
.text-label-amaranth-04{
|
206
|
-
|
207
|
-
--tw-text-opacity: 1;
|
208
|
-
|
209
|
-
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
210
|
-
}
|
211
|
-
|
212
|
-
.text-label-aqua-04{
|
213
|
-
|
214
|
-
--tw-text-opacity: 1;
|
215
|
-
|
216
|
-
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
217
|
-
}
|
218
|
-
|
219
|
-
.text-label-blue-04{
|
220
|
-
|
221
|
-
--tw-text-opacity: 1;
|
222
|
-
|
223
|
-
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
224
|
-
}
|
225
|
-
|
226
|
-
.text-label-green-04{
|
227
|
-
|
228
|
-
--tw-text-opacity: 1;
|
229
|
-
|
230
|
-
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
231
|
-
}
|
232
|
-
|
233
|
-
.text-label-lime-04{
|
234
|
-
|
235
|
-
--tw-text-opacity: 1;
|
236
|
-
|
237
|
-
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
238
|
-
}
|
239
|
-
|
240
|
-
.text-label-orange-04{
|
241
|
-
|
242
|
-
--tw-text-opacity: 1;
|
243
|
-
|
244
|
-
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
245
|
-
}
|
246
|
-
|
247
|
-
.text-label-orchid-04{
|
248
|
-
|
249
|
-
--tw-text-opacity: 1;
|
250
|
-
|
251
|
-
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
252
|
-
}
|
253
|
-
|
254
|
-
.text-label-violet-04{
|
255
|
-
|
256
|
-
--tw-text-opacity: 1;
|
257
|
-
|
258
|
-
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
259
|
-
}
|
260
|
-
|
261
|
-
.text-label-yellow-04{
|
262
|
-
|
263
|
-
--tw-text-opacity: 1;
|
264
|
-
|
265
|
-
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
266
|
-
}
|
267
|
-
|
268
|
-
.text-tone-neutral-04{
|
269
|
-
|
270
|
-
--tw-text-opacity: 1;
|
271
|
-
|
272
|
-
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
273
|
-
}
|
274
|
-
|
275
|
-
.shadow{
|
276
|
-
|
277
|
-
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
278
|
-
|
279
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
280
|
-
|
281
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
282
|
-
}
|
283
|
-
|
284
57
|
@container style(--magma-pref-animation: reduce) {
|
285
58
|
:host {
|
286
59
|
transition-duration: 0s;
|
@@ -70,6 +70,15 @@ const toneVariantDictionary = [
|
|
70
70
|
'ghost',
|
71
71
|
'quiet',
|
72
72
|
];
|
73
|
+
const themeVariantChipDictionary = [
|
74
|
+
'primary',
|
75
|
+
'secondary',
|
76
|
+
'dark',
|
77
|
+
'error',
|
78
|
+
'info',
|
79
|
+
'success',
|
80
|
+
'warning',
|
81
|
+
];
|
73
82
|
const toneActionVariantDictionary = [
|
74
83
|
'primary',
|
75
84
|
'secondary',
|
@@ -92,4 +101,4 @@ const toneMinimalVariantDictionary = [
|
|
92
101
|
'strong',
|
93
102
|
'weak',
|
94
103
|
];
|
95
|
-
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
|
104
|
+
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, themeVariantChipDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
|
@@ -15,105 +15,71 @@ import mdiVectorCurve from "@icon/mdi/vector-curve.svg";
|
|
15
15
|
import baselineVideocam from "@icon/mi/baseline/videocam.svg";
|
16
16
|
const fileFormatsVariant = {
|
17
17
|
archive: {
|
18
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
19
18
|
icon: baselineFolderZip,
|
20
|
-
iconBackground: 'bg-label-amaranth-10',
|
21
19
|
variant: 'amaranth',
|
22
20
|
},
|
23
21
|
attachment: {
|
24
|
-
color: 'fill-tone-neutral-04 text-tone-neutral-04',
|
25
22
|
icon: baselineAttachFile,
|
26
|
-
iconBackground: 'bg-tone-neutral-10',
|
27
23
|
variant: 'dark',
|
28
24
|
},
|
29
25
|
audio: {
|
30
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
31
26
|
icon: baselineAudiotrack,
|
32
|
-
iconBackground: 'bg-label-violet-10',
|
33
27
|
variant: 'violet',
|
34
28
|
},
|
35
29
|
code: {
|
36
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
37
30
|
icon: baselineTerminal,
|
38
|
-
iconBackground: 'bg-label-yellow-10',
|
39
31
|
variant: 'yellow',
|
40
32
|
},
|
41
33
|
data: {
|
42
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
43
34
|
icon: mdiHardDisk,
|
44
|
-
iconBackground: 'bg-label-yellow-10',
|
45
35
|
variant: 'yellow',
|
46
36
|
},
|
47
37
|
document: {
|
48
|
-
color: 'fill-label-orange-04 text-label-orange-04',
|
49
38
|
icon: baselineInsertDriveFile,
|
50
|
-
iconBackground: 'bg-label-orange-10',
|
51
39
|
variant: 'orange',
|
52
40
|
},
|
53
41
|
email: {
|
54
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
55
42
|
icon: baselineEmail,
|
56
|
-
iconBackground: 'bg-label-blue-10',
|
57
43
|
variant: 'blue',
|
58
44
|
},
|
59
45
|
executable: {
|
60
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
61
46
|
icon: baselineWysiwyg,
|
62
|
-
iconBackground: 'bg-label-amaranth-10',
|
63
47
|
variant: 'amaranth',
|
64
48
|
},
|
65
49
|
image: {
|
66
|
-
color: 'fill-label-green-04 text-label-green-04',
|
67
50
|
icon: baselinePanorama,
|
68
|
-
iconBackground: 'bg-label-green-10',
|
69
51
|
variant: 'green',
|
70
52
|
},
|
71
53
|
imageRaster: {
|
72
|
-
color: 'fill-label-green-04 text-label-green-04',
|
73
54
|
icon: baselinePanorama,
|
74
|
-
iconBackground: 'bg-label-green-10',
|
75
55
|
variant: 'green',
|
76
56
|
},
|
77
57
|
markup: {
|
78
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
79
58
|
icon: baselineWeb,
|
80
|
-
iconBackground: 'bg-label-yellow-10',
|
81
59
|
variant: 'yellow',
|
82
60
|
},
|
83
61
|
slide: {
|
84
|
-
color: 'fill-label-orchid-04 text-label-orchid-04',
|
85
62
|
icon: baselineTV,
|
86
|
-
iconBackground: 'bg-label-orchid-10',
|
87
63
|
variant: 'orchid',
|
88
64
|
},
|
89
65
|
spreadsheet: {
|
90
|
-
color: 'fill-label-lime-04 text-label-lime-04',
|
91
66
|
icon: baselineBorderAll,
|
92
|
-
iconBackground: 'bg-label-lime-10',
|
93
67
|
variant: 'lime',
|
94
68
|
},
|
95
69
|
text: {
|
96
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
97
70
|
icon: baselineDescription,
|
98
|
-
iconBackground: 'bg-label-blue-10',
|
99
71
|
variant: 'blue',
|
100
72
|
},
|
101
73
|
vectorImage: {
|
102
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
103
74
|
icon: mdiVectorCurve,
|
104
|
-
iconBackground: 'bg-label-aqua-10',
|
105
75
|
variant: 'aqua',
|
106
76
|
},
|
107
77
|
vector: {
|
108
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
109
78
|
icon: mdiVectorCurve,
|
110
|
-
iconBackground: 'bg-label-aqua-10',
|
111
79
|
variant: 'aqua',
|
112
80
|
},
|
113
81
|
video: {
|
114
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
115
82
|
icon: baselineVideocam,
|
116
|
-
iconBackground: 'bg-label-violet-10',
|
117
83
|
variant: 'violet',
|
118
84
|
},
|
119
85
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
|
3
|
-
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-
|
3
|
+
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-pack: end;\n justify-content: flex-end;\n pointer-events: none;\n position: absolute;\n -webkit-transform: var(--mds-input-tip-active-translate);\n transform: var(--mds-input-tip-active-translate);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host(:empty) {\n display: none;\n}\n\n:host([position=\"top\"]) {\n top: 0.25rem;\n}\n\n:host([position=\"bottom\"]) {\n bottom: 0.25rem;\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), calc(0.25rem * -1));\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), 0.25rem);\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
|
4
4
|
const MdsInputTipStyle0 = mdsInputTipCss;
|
5
5
|
|
6
6
|
const MdsInputTip$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTip extends HTMLElement {
|
package/dist/documentation.json
CHANGED
@@ -2,7 +2,7 @@ const NAMESPACE = 'mds-input-tip';
|
|
2
2
|
const BUILD = /* mds-input-tip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
3
3
|
|
4
4
|
/*
|
5
|
-
Stencil Client Platform v4.
|
5
|
+
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __export = (target, all) => {
|
@@ -321,10 +321,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
321
321
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
322
322
|
if (styleContainerNode.nodeName === "HEAD") {
|
323
323
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
324
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
324
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
325
325
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
326
326
|
} else if ("host" in styleContainerNode) {
|
327
|
-
|
327
|
+
if (supportsConstructableStylesheets) {
|
328
|
+
const stylesheet = new CSSStyleSheet();
|
329
|
+
stylesheet.replaceSync(style);
|
330
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
331
|
+
} else {
|
332
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
333
|
+
if (existingStyleContainer) {
|
334
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
335
|
+
} else {
|
336
|
+
styleContainerNode.prepend(styleElm);
|
337
|
+
}
|
338
|
+
}
|
328
339
|
} else {
|
329
340
|
styleContainerNode.append(styleElm);
|
330
341
|
}
|
package/dist/esm/loader.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { b as bootstrapLazy } from './index-8fed469d.js';
|
2
|
+
export { s as setNonce } from './index-8fed469d.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-8fed469d.js';
|
2
2
|
|
3
|
-
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-
|
3
|
+
const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-pack: end;\n justify-content: flex-end;\n pointer-events: none;\n position: absolute;\n -webkit-transform: var(--mds-input-tip-active-translate);\n transform: var(--mds-input-tip-active-translate);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host(:empty) {\n display: none;\n}\n\n:host([position=\"top\"]) {\n top: 0.25rem;\n}\n\n:host([position=\"bottom\"]) {\n bottom: 0.25rem;\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), calc(0.25rem * -1));\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), 0.25rem);\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
|
4
4
|
const MdsInputTipStyle0 = mdsInputTipCss;
|
5
5
|
|
6
6
|
const MdsInputTip = class {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-8fed469d.js';
|
2
|
+
export { s as setNonce } from './index-8fed469d.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
6
|
-
Stencil Client Patch Browser v4.
|
6
|
+
Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com
|
7
7
|
*/
|
8
8
|
var patchBrowser = () => {
|
9
9
|
const importMeta = import.meta.url;
|