@maggioli-design-system/mds-paginator-item 2.9.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-8b2ba36f.js → index-68d3530c.js} +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator-item.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-paginator-item/mds-paginator-item.css +18 -261
- 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-paginator-item.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-af884f0f.js → index-fda259f3.js} +14 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator-item.js +3 -3
- package/dist/esm-es5/index-fda259f3.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.js +1 -1
- package/dist/mds-paginator-item/p-670ef709.system.entry.js +1 -0
- package/dist/mds-paginator-item/p-b83f8c1b.js +2 -0
- package/dist/mds-paginator-item/p-ca7d14fd.entry.js +1 -0
- package/dist/mds-paginator-item/p-f3b520b3.system.js +1 -0
- package/dist/mds-paginator-item/p-f479ab45.system.js +2 -0
- package/dist/stats.json +39 -37
- 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/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 +5 -5
- 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-paginator-item/.gitlab-ci.yml +5 -10
- package/src/components/mds-paginator-item/css/mds-paginator-item-pref-theme.css +2 -2
- package/src/components/mds-paginator-item/mds-paginator-item.css +16 -16
- 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-paginator-item.esm.js +1 -1
- package/www/build/mds-paginator-item.js +1 -1
- package/www/build/p-670ef709.system.entry.js +1 -0
- package/www/build/p-b83f8c1b.js +2 -0
- package/www/build/p-ca7d14fd.entry.js +1 -0
- package/www/build/p-f3b520b3.system.js +1 -0
- package/www/build/p-f479ab45.system.js +2 -0
- package/dist/esm-es5/index-af884f0f.js +0 -1
- package/dist/mds-paginator-item/p-26952db2.entry.js +0 -1
- package/dist/mds-paginator-item/p-6e03aa48.system.js +0 -2
- package/dist/mds-paginator-item/p-70537efa.system.js +0 -1
- package/dist/mds-paginator-item/p-c4aab76f.system.entry.js +0 -1
- package/dist/mds-paginator-item/p-d1dae1ba.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-26952db2.entry.js +0 -1
- package/www/build/p-6e03aa48.system.js +0 -2
- package/www/build/p-70537efa.system.js +0 -1
- package/www/build/p-c4aab76f.system.entry.js +0 -1
- package/www/build/p-d1dae1ba.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-paginator-item';
|
|
|
24
24
|
const BUILD = /* mds-paginator-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, 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: true, 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: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, 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) => {
|
|
@@ -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-68d3530c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -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-68d3530c.js');
|
|
6
6
|
|
|
7
7
|
class KeyboardManager {
|
|
8
8
|
constructor() {
|
|
@@ -50,7 +50,7 @@ class KeyboardManager {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\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@tailwind utilities;\n\n/**\n * @prop --mds-paginator-item-background-disabled: Sets the background-color of the item when is disabled\n * @prop --mds-paginator-item-background-hover: Sets the background-color of the item when the mouse is over it\n * @prop --mds-paginator-item-background-selected: Sets the background-color of the item when is selected\n * @prop --mds-paginator-item-background: Sets the background-color of the pages area and the item\n * @prop --mds-paginator-item-color-disabled: Sets the color of the item when is disabled\n * @prop --mds-paginator-item-color-hover: Sets the text color of the item when the mouse is over it\n * @prop --mds-paginator-item-color-selected: Sets the text color of the item when is selected\n * @prop --mds-paginator-item-color: Sets the text color of the component\n * @prop --mds-paginator-item-radius: Sets the border-radius of the component\n * @prop --mds-paginator-item-shadow-disabled: Sets the box-shadow of the item when is disabled\n * @prop --mds-paginator-item-shadow-hover: Sets the box-shadow of the item when the mouse is over it\n * @prop --mds-paginator-item-shadow-selected: Sets the box-shadow of the item when is selected\n * @prop --mds-paginator-item-shadow: Sets the box-shadow of the component\n * @prop --mds-paginator-item-size: Sets the height and the min-width of the paginator item\n */\n\n:host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--brand-maggioli-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-radius: 200px;\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n --mds-paginator-item-size: 2.25rem;\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n}\n\n:host:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-paginator-item-background);\n border-radius: var(--mds-paginator-item-radius);\n -webkit-box-shadow: var(--mds-paginator-item-shadow);\n box-shadow: var(--mds-paginator-item-shadow);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-paginator-item-color);\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: var(--mds-paginator-item-size);\n -ms-flex-pack: center;\n justify-content: center;\n min-width: var(--mds-paginator-item-size);\n -webkit-transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, box-shadow, color, outline, outline-offset;\n transition-property: background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n:host(:focus-visible) {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host(:hover) {\n background-color: var(--mds-paginator-item-background-hover);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-hover);\n box-shadow: var(--mds-paginator-item-shadow-hover);\n color: var(--mds-paginator-item-color-hover);\n fill: var(--mds-paginator-item-color-hover);\n}\n\n:host([icon]) {\n padding: 0rem;\n}\n\n:host([selected]) {\n background-color: var(--mds-paginator-item-background-selected);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-selected);\n box-shadow: var(--mds-paginator-item-shadow-selected);\n color: var(--mds-paginator-item-color-selected);\n fill: var(--mds-paginator-item-color-selected);\n pointer-events: none;\n}\n\n:host([disabled]) {\n background-color: var(--mds-paginator-item-background-disabled);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-disabled);\n box-shadow: var(--mds-paginator-item-shadow-disabled);\n color: var(--mds-paginator-item-color-disabled);\n fill: var(--mds-paginator-item-color-disabled);\n pointer-events: none;\n}\n\n.icon {\n padding-left: 0rem;\n padding-right: 0rem;\n\n fill: currentcolor;\n}\n\n@tailwind utilities;\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\n\n.static {\n position: static;\n}\n\n\n\n.fixed {\n position: fixed;\n}\n\n\n\n.absolute {\n position: absolute;\n}\n\n\n\n.border {\n border-width: 1px;\n}\n\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\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\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\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\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\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\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\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\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\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\n\n.fill-label-amaranth-04 {\n fill: rgb(var(--label-amaranth-04));\n}\n\n\n\n.fill-label-aqua-04 {\n fill: rgb(var(--label-aqua-04));\n}\n\n\n\n.fill-label-blue-04 {\n fill: rgb(var(--label-blue-04));\n}\n\n\n\n.fill-label-green-04 {\n fill: rgb(var(--label-green-04));\n}\n\n\n\n.fill-label-lime-04 {\n fill: rgb(var(--label-lime-04));\n}\n\n\n\n.fill-label-orange-04 {\n fill: rgb(var(--label-orange-04));\n}\n\n\n\n.fill-label-orchid-04 {\n fill: rgb(var(--label-orchid-04));\n}\n\n\n\n.fill-label-violet-04 {\n fill: rgb(var(--label-violet-04));\n}\n\n\n\n.fill-label-yellow-04 {\n fill: rgb(var(--label-yellow-04));\n}\n\n\n\n.fill-tone-neutral-04 {\n fill: rgb(var(--tone-neutral-04));\n}\n\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\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\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\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\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\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\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\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\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\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\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\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--brand-maggioli-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--brand-maggioli-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n }\n}\n\n";
|
|
53
|
+
const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-paginator-item-background-disabled: Sets the background-color of the item when is disabled\n * @prop --mds-paginator-item-background-hover: Sets the background-color of the item when the mouse is over it\n * @prop --mds-paginator-item-background-selected: Sets the background-color of the item when is selected\n * @prop --mds-paginator-item-background: Sets the background-color of the pages area and the item\n * @prop --mds-paginator-item-color-disabled: Sets the color of the item when is disabled\n * @prop --mds-paginator-item-color-hover: Sets the text color of the item when the mouse is over it\n * @prop --mds-paginator-item-color-selected: Sets the text color of the item when is selected\n * @prop --mds-paginator-item-color: Sets the text color of the component\n * @prop --mds-paginator-item-radius: Sets the border-radius of the component\n * @prop --mds-paginator-item-shadow-disabled: Sets the box-shadow of the item when is disabled\n * @prop --mds-paginator-item-shadow-hover: Sets the box-shadow of the item when the mouse is over it\n * @prop --mds-paginator-item-shadow-selected: Sets the box-shadow of the item when is selected\n * @prop --mds-paginator-item-shadow: Sets the box-shadow of the component\n * @prop --mds-paginator-item-size: Sets the height and the min-width of the paginator item\n */\n\n:host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-radius: 200px;\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n --mds-paginator-item-size: 2.25rem;\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n}\n\n:host:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-paginator-item-background);\n border-radius: var(--mds-paginator-item-radius);\n -webkit-box-shadow: var(--mds-paginator-item-shadow);\n box-shadow: var(--mds-paginator-item-shadow);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-paginator-item-color);\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: var(--mds-paginator-item-size);\n -ms-flex-pack: center;\n justify-content: center;\n min-width: var(--mds-paginator-item-size);\n -webkit-transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, box-shadow, color, outline, outline-offset;\n transition-property: background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n:host(:focus-visible) {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host(:hover) {\n background-color: var(--mds-paginator-item-background-hover);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-hover);\n box-shadow: var(--mds-paginator-item-shadow-hover);\n color: var(--mds-paginator-item-color-hover);\n fill: var(--mds-paginator-item-color-hover);\n}\n\n:host([icon]) {\n padding: 0rem;\n}\n\n:host([selected]) {\n background-color: var(--mds-paginator-item-background-selected);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-selected);\n box-shadow: var(--mds-paginator-item-shadow-selected);\n color: var(--mds-paginator-item-color-selected);\n fill: var(--mds-paginator-item-color-selected);\n pointer-events: none;\n}\n\n:host([disabled]) {\n background-color: var(--mds-paginator-item-background-disabled);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-disabled);\n box-shadow: var(--mds-paginator-item-shadow-disabled);\n color: var(--mds-paginator-item-color-disabled);\n fill: var(--mds-paginator-item-color-disabled);\n pointer-events: none;\n}\n\n.icon {\n padding-left: 0rem;\n padding-right: 0rem;\n\n fill: currentcolor;\n}\n\n@tailwind utilities;\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@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n }\n}\n\n";
|
|
54
54
|
const MdsPaginatorItemStyle0 = mdsPaginatorItemCss;
|
|
55
55
|
|
|
56
56
|
const MdsPaginatorItem = 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-68d3530c.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-paginator-item.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
|
}
|
|
@@ -11,39 +11,28 @@
|
|
|
11
11
|
@tailwind components;
|
|
12
12
|
@tailwind utilities;
|
|
13
13
|
|
|
14
|
-
.svg {
|
|
15
|
-
display: flex;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.svg svg {
|
|
19
|
-
aspect-ratio: 1/1;
|
|
20
|
-
height: 100%;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
@tailwind utilities;
|
|
24
|
-
|
|
25
14
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
15
|
+
* @prop --mds-paginator-item-background-disabled: Sets the background-color of the item when is disabled
|
|
16
|
+
* @prop --mds-paginator-item-background-hover: Sets the background-color of the item when the mouse is over it
|
|
17
|
+
* @prop --mds-paginator-item-background-selected: Sets the background-color of the item when is selected
|
|
18
|
+
* @prop --mds-paginator-item-background: Sets the background-color of the pages area and the item
|
|
19
|
+
* @prop --mds-paginator-item-color-disabled: Sets the color of the item when is disabled
|
|
20
|
+
* @prop --mds-paginator-item-color-hover: Sets the text color of the item when the mouse is over it
|
|
21
|
+
* @prop --mds-paginator-item-color-selected: Sets the text color of the item when is selected
|
|
22
|
+
* @prop --mds-paginator-item-color: Sets the text color of the component
|
|
23
|
+
* @prop --mds-paginator-item-radius: Sets the border-radius of the component
|
|
24
|
+
* @prop --mds-paginator-item-shadow-disabled: Sets the box-shadow of the item when is disabled
|
|
25
|
+
* @prop --mds-paginator-item-shadow-hover: Sets the box-shadow of the item when the mouse is over it
|
|
26
|
+
* @prop --mds-paginator-item-shadow-selected: Sets the box-shadow of the item when is selected
|
|
27
|
+
* @prop --mds-paginator-item-shadow: Sets the box-shadow of the component
|
|
28
|
+
* @prop --mds-paginator-item-size: Sets the height and the min-width of the paginator item
|
|
29
|
+
*/
|
|
41
30
|
|
|
42
31
|
:host {
|
|
43
32
|
|
|
44
33
|
--mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));
|
|
45
34
|
--mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));
|
|
46
|
-
--mds-paginator-item-background-selected: rgb(var(--
|
|
35
|
+
--mds-paginator-item-background-selected: rgb(var(--variant-primary-03));
|
|
47
36
|
--mds-paginator-item-background: transparent;
|
|
48
37
|
--mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));
|
|
49
38
|
--mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));
|
|
@@ -156,244 +145,12 @@
|
|
|
156
145
|
}
|
|
157
146
|
}
|
|
158
147
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
.static {
|
|
162
|
-
position: static;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
.fixed {
|
|
168
|
-
position: fixed;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
.absolute {
|
|
174
|
-
position: absolute;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
.border {
|
|
180
|
-
border-width: 1px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
.bg-label-amaranth-10 {
|
|
186
|
-
--tw-bg-opacity: 1;
|
|
187
|
-
background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
.bg-label-aqua-10 {
|
|
193
|
-
--tw-bg-opacity: 1;
|
|
194
|
-
background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
.bg-label-blue-10 {
|
|
200
|
-
--tw-bg-opacity: 1;
|
|
201
|
-
background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
.bg-label-green-10 {
|
|
207
|
-
--tw-bg-opacity: 1;
|
|
208
|
-
background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
.bg-label-lime-10 {
|
|
214
|
-
--tw-bg-opacity: 1;
|
|
215
|
-
background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
.bg-label-orange-10 {
|
|
221
|
-
--tw-bg-opacity: 1;
|
|
222
|
-
background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.bg-label-orchid-10 {
|
|
228
|
-
--tw-bg-opacity: 1;
|
|
229
|
-
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
.bg-label-violet-10 {
|
|
235
|
-
--tw-bg-opacity: 1;
|
|
236
|
-
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
.bg-label-yellow-10 {
|
|
242
|
-
--tw-bg-opacity: 1;
|
|
243
|
-
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
.bg-tone-neutral-10 {
|
|
249
|
-
--tw-bg-opacity: 1;
|
|
250
|
-
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
.fill-label-amaranth-04 {
|
|
256
|
-
fill: rgb(var(--label-amaranth-04));
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
.fill-label-aqua-04 {
|
|
262
|
-
fill: rgb(var(--label-aqua-04));
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
.fill-label-blue-04 {
|
|
268
|
-
fill: rgb(var(--label-blue-04));
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
.fill-label-green-04 {
|
|
274
|
-
fill: rgb(var(--label-green-04));
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
.fill-label-lime-04 {
|
|
280
|
-
fill: rgb(var(--label-lime-04));
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
.fill-label-orange-04 {
|
|
286
|
-
fill: rgb(var(--label-orange-04));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
.fill-label-orchid-04 {
|
|
292
|
-
fill: rgb(var(--label-orchid-04));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
.fill-label-violet-04 {
|
|
298
|
-
fill: rgb(var(--label-violet-04));
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
.fill-label-yellow-04 {
|
|
304
|
-
fill: rgb(var(--label-yellow-04));
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
.fill-tone-neutral-04 {
|
|
310
|
-
fill: rgb(var(--tone-neutral-04));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
.text-label-amaranth-04 {
|
|
316
|
-
--tw-text-opacity: 1;
|
|
317
|
-
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
.text-label-aqua-04 {
|
|
323
|
-
--tw-text-opacity: 1;
|
|
324
|
-
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
.text-label-blue-04 {
|
|
330
|
-
--tw-text-opacity: 1;
|
|
331
|
-
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
.text-label-green-04 {
|
|
337
|
-
--tw-text-opacity: 1;
|
|
338
|
-
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
.text-label-lime-04 {
|
|
344
|
-
--tw-text-opacity: 1;
|
|
345
|
-
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
.text-label-orange-04 {
|
|
351
|
-
--tw-text-opacity: 1;
|
|
352
|
-
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
.text-label-orchid-04 {
|
|
358
|
-
--tw-text-opacity: 1;
|
|
359
|
-
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
.text-label-violet-04 {
|
|
365
|
-
--tw-text-opacity: 1;
|
|
366
|
-
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
.text-label-yellow-04 {
|
|
372
|
-
--tw-text-opacity: 1;
|
|
373
|
-
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
.text-tone-neutral-04 {
|
|
379
|
-
--tw-text-opacity: 1;
|
|
380
|
-
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
.shadow {
|
|
386
|
-
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
387
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
388
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
148
|
@container style(--magma-pref-theme: dark) {
|
|
392
149
|
:host {
|
|
393
150
|
|
|
394
151
|
--mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));
|
|
395
152
|
--mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));
|
|
396
|
-
--mds-paginator-item-background-selected: rgb(var(--
|
|
153
|
+
--mds-paginator-item-background-selected: rgb(var(--variant-primary-03));
|
|
397
154
|
--mds-paginator-item-background: transparent;
|
|
398
155
|
--mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));
|
|
399
156
|
--mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));
|
|
@@ -413,7 +170,7 @@
|
|
|
413
170
|
|
|
414
171
|
--mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));
|
|
415
172
|
--mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));
|
|
416
|
-
--mds-paginator-item-background-selected: rgb(var(--
|
|
173
|
+
--mds-paginator-item-background-selected: rgb(var(--variant-primary-03));
|
|
417
174
|
--mds-paginator-item-background: transparent;
|
|
418
175
|
--mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));
|
|
419
176
|
--mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));
|
|
@@ -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, };
|
|
@@ -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
|
};
|