@maggioli-design-system/mds-progress 2.10.2 → 3.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-2c37527a.js → index-9725b4b4.js} +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/date.js +13 -0
- package/dist/collection/common/locale.js +25 -7
- package/dist/collection/components/mds-progress/mds-progress.css +28 -259
- package/dist/collection/dictionary/button.js +7 -1
- package/dist/collection/dictionary/variant.js +15 -1
- package/dist/collection/type/variant-file-format.js +0 -34
- package/dist/components/mds-progress.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-2c599ac6.js → index-9f9c0c97.js} +14 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-progress.entry.js +2 -2
- package/dist/esm/mds-progress.js +3 -3
- package/dist/esm-es5/index-9f9c0c97.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +1 -1
- package/dist/mds-progress/{p-247bfa7b.system.js → p-0e39acfd.system.js} +1 -1
- package/dist/mds-progress/{p-313d3f72.js → p-93b285aa.js} +2 -2
- package/dist/mds-progress/p-b8db6677.entry.js +1 -0
- package/dist/mds-progress/p-c09df41d.system.js +2 -0
- package/dist/mds-progress/p-fafac9b1.system.entry.js +1 -0
- package/dist/stats.json +38 -36
- package/dist/types/common/date.d.ts +4 -0
- package/dist/types/common/file.d.ts +3 -4
- package/dist/types/common/locale.d.ts +5 -2
- package/dist/types/components/mds-progress/mds-progress.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/dictionary/button.d.ts +2 -1
- package/dist/types/dictionary/file-extensions.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +3 -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/date.d.ts +5 -0
- 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 +3 -2
- package/documentation.json +58 -33
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/common/date.ts +21 -0
- package/src/common/file.ts +2 -3
- package/src/common/locale.ts +29 -9
- package/src/common/unit.ts +1 -1
- package/src/components/mds-progress/.gitlab-ci.yml +5 -10
- package/src/components/mds-progress/css/mds-progress-pref-contrast.css +2 -2
- package/src/components/mds-progress/css/mds-progress-pref-theme.css +14 -14
- package/src/components/mds-progress/css/mds-progress-variant.css +1 -1
- package/src/components/mds-progress/mds-progress.css +14 -12
- package/src/components.d.ts +2 -2
- package/src/dictionary/button.ts +8 -0
- package/src/dictionary/file-extensions.ts +3 -1
- package/src/dictionary/variant.ts +18 -0
- package/src/fixtures/icons.json +45 -2
- package/src/fixtures/iconsauce.json +37 -0
- package/src/tailwind/components.css +1 -1
- package/src/type/autocomplete.ts +0 -1
- package/src/type/button.ts +1 -0
- package/src/type/date.ts +10 -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 +10 -2
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +1 -1
- package/www/build/{p-247bfa7b.system.js → p-0e39acfd.system.js} +1 -1
- package/www/build/{p-313d3f72.js → p-93b285aa.js} +2 -2
- package/www/build/p-b8db6677.entry.js +1 -0
- package/www/build/p-c09df41d.system.js +2 -0
- package/www/build/p-fafac9b1.system.entry.js +1 -0
- package/dist/esm-es5/index-2c599ac6.js +0 -1
- package/dist/mds-progress/p-63b6c1a0.system.entry.js +0 -1
- package/dist/mds-progress/p-a9121660.entry.js +0 -1
- package/dist/mds-progress/p-ecdde885.system.js +0 -2
- 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-63b6c1a0.system.entry.js +0 -1
- package/www/build/p-a9121660.entry.js +0 -1
- package/www/build/p-ecdde885.system.js +0 -2
- /package/dist/collection/{interface/input-value.js → type/date.js} +0 -0
- /package/dist/collection/type/{language.js → header-bar.js} +0 -0
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'mds-progress';
|
|
|
24
24
|
const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
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) => {
|
|
@@ -350,10 +350,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
350
350
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
351
351
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
352
352
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
353
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
353
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
354
354
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
355
355
|
} else if ("host" in styleContainerNode) {
|
|
356
|
-
|
|
356
|
+
if (supportsConstructableStylesheets) {
|
|
357
|
+
const stylesheet = new CSSStyleSheet();
|
|
358
|
+
stylesheet.replaceSync(style);
|
|
359
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
360
|
+
} else {
|
|
361
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
362
|
+
if (existingStyleContainer) {
|
|
363
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
364
|
+
} else {
|
|
365
|
+
styleContainerNode.prepend(styleElm);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
357
368
|
} else {
|
|
358
369
|
styleContainerNode.append(styleElm);
|
|
359
370
|
}
|
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-9725b4b4.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-9725b4b4.js');
|
|
6
6
|
|
|
7
|
-
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n\n/* @import '../../tailwind/static-components.css'; */\n\n.svg{\n display: -ms-flexbox;\n display: flex;\n}\n\n.svg svg{\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\n\n.contrast-area {\n border-radius: inherit;\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;\n display: none;\n inset: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n transition-behavior: allow-discrete;\n -webkit-transition-property: display opacity;\n transition-property: display opacity;\n\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n\n@container style(--magma-pref-contrast: more) {\n .contrast-area,\n .contrast-area-50{\n display: block;\n opacity: 1;\n\n /* @starting-style {\n opacity: 0;\n } */\n }\n }\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n .contrast-area,\n .contrast-area-50{\n display: block;\n opacity: 1;\n\n /* @starting-style {\n opacity: 0;\n } */\n }\n }\n }\n\n@container style(--magma-pref-animation: reduce) {\n .contrast-area,\n .contrast-area-50{\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 .contrast-area,\n .contrast-area-50{\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n }\n@tailwind utilities;\n\n/**\n* @prop --mds-progress-background: Sets the background-color of the component\n* @prop --mds-progress-color: Sets the background-color of the progress\n* @prop --mds-progress-duration: Sets the duration of the progress bar animation\n* @prop --mds-progress-radius: Sets the border-radius of the component\n* @prop --mds-progress-thickness: Sets the thickness of the progress bar\n*/\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--brand-maggioli-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\n -webkit-transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 150ms;\n transition-duration: 150ms;\n\n background-color: var(--mds-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--brand-maggioli-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n.static{\n position: static;\n}\n\n.fixed{\n position: fixed;\n}\n\n.absolute{\n position: absolute;\n}\n\n.border{\n border-width: 1px;\n}\n\n.bg-label-amaranth-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-aqua-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-blue-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-green-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-lime-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orange-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orchid-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-violet-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-yellow-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));\n}\n\n.bg-tone-neutral-10{\n --tw-bg-opacity: 1;\n background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));\n}\n\n.fill-label-amaranth-04{\n fill: rgb(var(--label-amaranth-04));\n}\n\n.fill-label-aqua-04{\n fill: rgb(var(--label-aqua-04));\n}\n\n.fill-label-blue-04{\n fill: rgb(var(--label-blue-04));\n}\n\n.fill-label-green-04{\n fill: rgb(var(--label-green-04));\n}\n\n.fill-label-lime-04{\n fill: rgb(var(--label-lime-04));\n}\n\n.fill-label-orange-04{\n fill: rgb(var(--label-orange-04));\n}\n\n.fill-label-orchid-04{\n fill: rgb(var(--label-orchid-04));\n}\n\n.fill-label-violet-04{\n fill: rgb(var(--label-violet-04));\n}\n\n.fill-label-yellow-04{\n fill: rgb(var(--label-yellow-04));\n}\n\n.fill-tone-neutral-04{\n fill: rgb(var(--tone-neutral-04));\n}\n\n.text-label-amaranth-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));\n}\n\n.text-label-aqua-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));\n}\n\n.text-label-blue-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-blue-04) / var(--tw-text-opacity));\n}\n\n.text-label-green-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-green-04) / var(--tw-text-opacity));\n}\n\n.text-label-lime-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-lime-04) / var(--tw-text-opacity));\n}\n\n.text-label-orange-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-orange-04) / var(--tw-text-opacity));\n}\n\n.text-label-orchid-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));\n}\n\n.text-label-violet-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-violet-04) / var(--tw-text-opacity));\n}\n\n.text-label-yellow-04{\n --tw-text-opacity: 1;\n color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-04{\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));\n}\n\n.shadow{\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--brand-maggioli-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n \n :host( [variant=\"warning\"] ) {\n \n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n \n :host( [variant=\"success\"] ) {\n \n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n \n :host( [variant=\"info\"] ) {\n \n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--brand-maggioli-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n \n :host( [variant=\"warning\"] ) {\n \n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n \n :host( [variant=\"success\"] ) {\n \n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n \n :host( [variant=\"info\"] ) {\n \n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
7
|
+
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\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 background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
8
8
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
9
9
|
|
|
10
10
|
const MdsProgress = 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-9725b4b4.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-progress.cjs.js', document.baseURI).href));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// ISO 8601 date regex allowing optional components (month, day, time)
|
|
2
|
+
const ISO8601RegexString = '^\\d{4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?(\\.\\d{3})?)?([+-]\\d{2}:\\d{2}|Z)?$';
|
|
3
|
+
const isISO8601Date = (dateString) => {
|
|
4
|
+
const ISO8601Regex = new RegExp(ISO8601RegexString);
|
|
5
|
+
return ISO8601Regex.test(dateString);
|
|
6
|
+
};
|
|
7
|
+
const sanitizeISO8601Date = (dateString) => {
|
|
8
|
+
if (isISO8601Date(dateString)) {
|
|
9
|
+
return dateString;
|
|
10
|
+
}
|
|
11
|
+
return new Date(dateString).toISOString();
|
|
12
|
+
};
|
|
13
|
+
export { sanitizeISO8601Date, isISO8601Date, };
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { render } from "mustache";
|
|
2
2
|
export class Locale {
|
|
3
3
|
constructor(configData) {
|
|
4
4
|
this.rollbackLanguage = 'en';
|
|
5
|
-
this.
|
|
6
|
-
this.
|
|
5
|
+
this.set = (configData) => {
|
|
6
|
+
this.config = configData;
|
|
7
|
+
};
|
|
8
|
+
this.lang = (el) => {
|
|
9
|
+
this.element = el;
|
|
10
|
+
this.closestElement = this.element.closest('[lang]');
|
|
7
11
|
if (this.closestElement) {
|
|
8
12
|
if (this.closestElement.lang) {
|
|
9
13
|
this.language = this.closestElement.lang;
|
|
10
|
-
return;
|
|
14
|
+
return this.language;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
this.language = this.rollbackLanguage;
|
|
18
|
+
return this.language;
|
|
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
|
+
});
|
|
14
31
|
};
|
|
15
32
|
this.pluralize = (tag, context) => {
|
|
16
33
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
|
@@ -34,8 +51,7 @@ export class Locale {
|
|
|
34
51
|
}
|
|
35
52
|
}
|
|
36
53
|
}
|
|
37
|
-
|
|
38
|
-
return template(context);
|
|
54
|
+
return render(translatePhrase, context);
|
|
39
55
|
};
|
|
40
56
|
this.get = (tag, context) => {
|
|
41
57
|
if (context) {
|
|
@@ -43,6 +59,8 @@ export class Locale {
|
|
|
43
59
|
}
|
|
44
60
|
return this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
|
45
61
|
};
|
|
46
|
-
|
|
62
|
+
if (configData) {
|
|
63
|
+
this.set(configData);
|
|
64
|
+
}
|
|
47
65
|
}
|
|
48
66
|
}
|
|
@@ -1,96 +1,23 @@
|
|
|
1
1
|
@tailwind components;
|
|
2
2
|
@tailwind utilities;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
/* @import '../../tailwind/static-components.css'; */
|
|
6
|
-
|
|
7
|
-
.svg{
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.svg svg{
|
|
12
|
-
aspect-ratio: 1/1;
|
|
13
|
-
height: 100%;
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.contrast-area {
|
|
18
|
-
border-radius: inherit;
|
|
19
|
-
box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;
|
|
20
|
-
display: none;
|
|
21
|
-
inset: 0;
|
|
22
|
-
opacity: 0;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
position: absolute;
|
|
25
|
-
transition-behavior: allow-discrete;
|
|
26
|
-
transition-property: display opacity;
|
|
27
|
-
|
|
28
|
-
box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@container style(--magma-pref-contrast: more) {
|
|
32
|
-
.contrast-area,
|
|
33
|
-
.contrast-area-50{
|
|
34
|
-
display: block;
|
|
35
|
-
opacity: 1;
|
|
36
|
-
|
|
37
|
-
/* @starting-style {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
} */
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@container style(--magma-pref-contrast: system) {
|
|
44
|
-
|
|
45
|
-
@media (prefers-contrast: more) {
|
|
46
|
-
.contrast-area,
|
|
47
|
-
.contrast-area-50{
|
|
48
|
-
display: block;
|
|
49
|
-
opacity: 1;
|
|
50
|
-
|
|
51
|
-
/* @starting-style {
|
|
52
|
-
opacity: 0;
|
|
53
|
-
} */
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@container style(--magma-pref-animation: reduce) {
|
|
59
|
-
.contrast-area,
|
|
60
|
-
.contrast-area-50{
|
|
61
|
-
transition-duration: 0s;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@container style(--magma-pref-animation: system) {
|
|
66
|
-
|
|
67
|
-
@media (prefers-reduced-motion) {
|
|
68
|
-
.contrast-area,
|
|
69
|
-
.contrast-area-50{
|
|
70
|
-
transition-duration: 0s;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
@tailwind utilities;
|
|
75
|
-
|
|
76
4
|
/**
|
|
77
|
-
* @prop --mds-progress-background: Sets the background-color of the component
|
|
78
|
-
* @prop --mds-progress-color: Sets the background-color of the progress
|
|
79
|
-
* @prop --mds-progress-duration: Sets the duration of the progress bar animation
|
|
80
|
-
* @prop --mds-progress-radius: Sets the border-radius of the component
|
|
81
|
-
* @prop --mds-progress-thickness: Sets the thickness of the progress bar
|
|
82
|
-
*/
|
|
5
|
+
* @prop --mds-progress-background: Sets the background-color of the component
|
|
6
|
+
* @prop --mds-progress-color: Sets the background-color of the progress
|
|
7
|
+
* @prop --mds-progress-duration: Sets the duration of the progress bar animation
|
|
8
|
+
* @prop --mds-progress-radius: Sets the border-radius of the component
|
|
9
|
+
* @prop --mds-progress-thickness: Sets the thickness of the progress bar
|
|
10
|
+
*/
|
|
83
11
|
|
|
84
12
|
:host {
|
|
85
13
|
|
|
86
14
|
--mds-progress-background: rgb(var(--tone-neutral-08));
|
|
87
|
-
--mds-progress-color: rgb(var(--
|
|
15
|
+
--mds-progress-color: rgb(var(--variant-primary-03));
|
|
88
16
|
--mds-progress-duration: 750ms;
|
|
89
17
|
--mds-progress-radius: 0.5rem;
|
|
90
18
|
--mds-progress-thickness: 0.5rem;
|
|
91
|
-
transition-
|
|
19
|
+
transition-duration: 300ms;
|
|
92
20
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
93
|
-
transition-duration: 150ms;
|
|
94
21
|
|
|
95
22
|
background-color: var(--mds-progress-background);
|
|
96
23
|
border-radius: var(--mds-progress-radius);
|
|
@@ -99,6 +26,7 @@
|
|
|
99
26
|
min-width: var(--mds-progress-thickness);
|
|
100
27
|
overflow: hidden;
|
|
101
28
|
position: relative;
|
|
29
|
+
transition-property: background-color;
|
|
102
30
|
width: 100%;
|
|
103
31
|
}
|
|
104
32
|
|
|
@@ -110,7 +38,10 @@
|
|
|
110
38
|
}
|
|
111
39
|
|
|
112
40
|
.progress{
|
|
113
|
-
|
|
41
|
+
|
|
42
|
+
transition-duration: 500ms;
|
|
43
|
+
|
|
44
|
+
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
114
45
|
|
|
115
46
|
background-color: var(--mds-progress-color);
|
|
116
47
|
border-radius: var(--mds-progress-radius);
|
|
@@ -158,7 +89,7 @@
|
|
|
158
89
|
|
|
159
90
|
:host( [variant="primary"] ) {
|
|
160
91
|
|
|
161
|
-
--mds-progress-color: rgb(var(--
|
|
92
|
+
--mds-progress-color: rgb(var(--variant-primary-03));
|
|
162
93
|
--mds-progress-background: rgb(var(--tone-neutral-08));
|
|
163
94
|
}
|
|
164
95
|
|
|
@@ -181,173 +112,11 @@
|
|
|
181
112
|
}
|
|
182
113
|
}
|
|
183
114
|
|
|
184
|
-
.static{
|
|
185
|
-
position: static;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.fixed{
|
|
189
|
-
position: fixed;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.absolute{
|
|
193
|
-
position: absolute;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.border{
|
|
197
|
-
border-width: 1px;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.bg-label-amaranth-10{
|
|
201
|
-
--tw-bg-opacity: 1;
|
|
202
|
-
background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.bg-label-aqua-10{
|
|
206
|
-
--tw-bg-opacity: 1;
|
|
207
|
-
background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.bg-label-blue-10{
|
|
211
|
-
--tw-bg-opacity: 1;
|
|
212
|
-
background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.bg-label-green-10{
|
|
216
|
-
--tw-bg-opacity: 1;
|
|
217
|
-
background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.bg-label-lime-10{
|
|
221
|
-
--tw-bg-opacity: 1;
|
|
222
|
-
background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.bg-label-orange-10{
|
|
226
|
-
--tw-bg-opacity: 1;
|
|
227
|
-
background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.bg-label-orchid-10{
|
|
231
|
-
--tw-bg-opacity: 1;
|
|
232
|
-
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.bg-label-violet-10{
|
|
236
|
-
--tw-bg-opacity: 1;
|
|
237
|
-
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.bg-label-yellow-10{
|
|
241
|
-
--tw-bg-opacity: 1;
|
|
242
|
-
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.bg-tone-neutral-10{
|
|
246
|
-
--tw-bg-opacity: 1;
|
|
247
|
-
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.fill-label-amaranth-04{
|
|
251
|
-
fill: rgb(var(--label-amaranth-04));
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.fill-label-aqua-04{
|
|
255
|
-
fill: rgb(var(--label-aqua-04));
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.fill-label-blue-04{
|
|
259
|
-
fill: rgb(var(--label-blue-04));
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.fill-label-green-04{
|
|
263
|
-
fill: rgb(var(--label-green-04));
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.fill-label-lime-04{
|
|
267
|
-
fill: rgb(var(--label-lime-04));
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.fill-label-orange-04{
|
|
271
|
-
fill: rgb(var(--label-orange-04));
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.fill-label-orchid-04{
|
|
275
|
-
fill: rgb(var(--label-orchid-04));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.fill-label-violet-04{
|
|
279
|
-
fill: rgb(var(--label-violet-04));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.fill-label-yellow-04{
|
|
283
|
-
fill: rgb(var(--label-yellow-04));
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.fill-tone-neutral-04{
|
|
287
|
-
fill: rgb(var(--tone-neutral-04));
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.text-label-amaranth-04{
|
|
291
|
-
--tw-text-opacity: 1;
|
|
292
|
-
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.text-label-aqua-04{
|
|
296
|
-
--tw-text-opacity: 1;
|
|
297
|
-
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.text-label-blue-04{
|
|
301
|
-
--tw-text-opacity: 1;
|
|
302
|
-
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.text-label-green-04{
|
|
306
|
-
--tw-text-opacity: 1;
|
|
307
|
-
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.text-label-lime-04{
|
|
311
|
-
--tw-text-opacity: 1;
|
|
312
|
-
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.text-label-orange-04{
|
|
316
|
-
--tw-text-opacity: 1;
|
|
317
|
-
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.text-label-orchid-04{
|
|
321
|
-
--tw-text-opacity: 1;
|
|
322
|
-
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.text-label-violet-04{
|
|
326
|
-
--tw-text-opacity: 1;
|
|
327
|
-
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.text-label-yellow-04{
|
|
331
|
-
--tw-text-opacity: 1;
|
|
332
|
-
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.text-tone-neutral-04{
|
|
336
|
-
--tw-text-opacity: 1;
|
|
337
|
-
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.shadow{
|
|
341
|
-
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
342
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
343
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
115
|
@container style(--magma-pref-theme: dark) {
|
|
347
116
|
:host,
|
|
348
117
|
:host( [variant="primary"] ) {
|
|
349
118
|
|
|
350
|
-
--mds-progress-color: rgb(var(--
|
|
119
|
+
--mds-progress-color: rgb(var(--variant-primary-05));
|
|
351
120
|
--mds-progress-background: rgb(var(--tone-neutral-07));
|
|
352
121
|
}
|
|
353
122
|
|
|
@@ -356,21 +125,21 @@
|
|
|
356
125
|
--mds-progress-color: rgb(var(--status-error-04));
|
|
357
126
|
--mds-progress-background: rgb(var(--status-error-07));
|
|
358
127
|
}
|
|
359
|
-
|
|
128
|
+
|
|
360
129
|
:host( [variant="warning"] ) {
|
|
361
|
-
|
|
130
|
+
|
|
362
131
|
--mds-progress-color: rgb(var(--status-warning-04));
|
|
363
132
|
--mds-progress-background: rgb(var(--status-warning-07));
|
|
364
133
|
}
|
|
365
|
-
|
|
134
|
+
|
|
366
135
|
:host( [variant="success"] ) {
|
|
367
|
-
|
|
136
|
+
|
|
368
137
|
--mds-progress-color: rgb(var(--status-success-04));
|
|
369
138
|
--mds-progress-background: rgb(var(--status-success-07));
|
|
370
139
|
}
|
|
371
|
-
|
|
140
|
+
|
|
372
141
|
:host( [variant="info"] ) {
|
|
373
|
-
|
|
142
|
+
|
|
374
143
|
--mds-progress-color: rgb(var(--status-info-04));
|
|
375
144
|
--mds-progress-background: rgb(var(--status-info-07));
|
|
376
145
|
}
|
|
@@ -382,7 +151,7 @@
|
|
|
382
151
|
:host,
|
|
383
152
|
:host( [variant="primary"] ) {
|
|
384
153
|
|
|
385
|
-
--mds-progress-color: rgb(var(--
|
|
154
|
+
--mds-progress-color: rgb(var(--variant-primary-05));
|
|
386
155
|
--mds-progress-background: rgb(var(--tone-neutral-07));
|
|
387
156
|
}
|
|
388
157
|
|
|
@@ -391,21 +160,21 @@
|
|
|
391
160
|
--mds-progress-color: rgb(var(--status-error-04));
|
|
392
161
|
--mds-progress-background: rgb(var(--status-error-07));
|
|
393
162
|
}
|
|
394
|
-
|
|
163
|
+
|
|
395
164
|
:host( [variant="warning"] ) {
|
|
396
|
-
|
|
165
|
+
|
|
397
166
|
--mds-progress-color: rgb(var(--status-warning-04));
|
|
398
167
|
--mds-progress-background: rgb(var(--status-warning-07));
|
|
399
168
|
}
|
|
400
|
-
|
|
169
|
+
|
|
401
170
|
:host( [variant="success"] ) {
|
|
402
|
-
|
|
171
|
+
|
|
403
172
|
--mds-progress-color: rgb(var(--status-success-04));
|
|
404
173
|
--mds-progress-background: rgb(var(--status-success-07));
|
|
405
174
|
}
|
|
406
|
-
|
|
175
|
+
|
|
407
176
|
:host( [variant="info"] ) {
|
|
408
|
-
|
|
177
|
+
|
|
409
178
|
--mds-progress-color: rgb(var(--status-info-04));
|
|
410
179
|
--mds-progress-background: rgb(var(--status-info-07));
|
|
411
180
|
}
|
|
@@ -4,6 +4,7 @@ const buttonVariantDictionary = [
|
|
|
4
4
|
'info',
|
|
5
5
|
'light',
|
|
6
6
|
'primary',
|
|
7
|
+
'secondary',
|
|
7
8
|
'success',
|
|
8
9
|
'warning',
|
|
9
10
|
];
|
|
@@ -27,4 +28,9 @@ const buttonIconPositionDictionary = [
|
|
|
27
28
|
'left',
|
|
28
29
|
'right',
|
|
29
30
|
];
|
|
30
|
-
|
|
31
|
+
const buttonTypeDictionary = [
|
|
32
|
+
'button',
|
|
33
|
+
'submit',
|
|
34
|
+
'reset',
|
|
35
|
+
];
|
|
36
|
+
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, };
|
|
@@ -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',
|
|
@@ -83,8 +92,13 @@ const toneSimpleVariantDictionary = [
|
|
|
83
92
|
'weak',
|
|
84
93
|
'quiet',
|
|
85
94
|
];
|
|
95
|
+
const toneSmartVariantDictionary = [
|
|
96
|
+
'strong',
|
|
97
|
+
'weak',
|
|
98
|
+
'ghost',
|
|
99
|
+
];
|
|
86
100
|
const toneMinimalVariantDictionary = [
|
|
87
101
|
'strong',
|
|
88
102
|
'weak',
|
|
89
103
|
];
|
|
90
|
-
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
104
|
+
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, themeVariantChipDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
|