@mgdis/mg-components 5.4.0 → 5.6.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-94497267.js → index-4dcc1812.js} +11 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{mg-badge_29.cjs.entry.js → mg-badge_30.cjs.entry.js} +1112 -859
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +5 -4
- package/dist/collection/components/atoms/mg-badge/doc/mg-badge.stories.js +0 -7
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +13 -0
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +7 -10
- package/dist/collection/components/atoms/mg-button/doc/mg-button.stories.js +0 -7
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.css +15 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +12 -29
- package/dist/collection/components/atoms/mg-card/mg-card.css +17 -5
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +2 -3
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +0 -6
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +13 -3
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +5 -12
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +4 -8
- package/dist/collection/components/atoms/mg-tag/doc/mg-tag.stories.js +1 -9
- package/dist/collection/components/atoms/mg-tag/mg-tag.css +58 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +61 -16
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +2 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -22
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +17 -33
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +21 -26
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +24 -47
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +17 -29
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +18 -33
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +30 -36
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +23 -41
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +23 -45
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +16 -33
- package/dist/collection/components/molecules/menu/mg-menu/doc/mg-menu.stories.js +43 -11
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js +17 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.css +27 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +145 -25
- package/dist/collection/components/molecules/menu/mg-menu-item/doc/mg-menu-item.stories.js +7 -5
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +0 -4
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.css +51 -21
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +129 -92
- package/dist/collection/components/molecules/mg-details/mg-details.js +4 -8
- package/dist/collection/components/molecules/mg-form/mg-form.js +8 -22
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +2 -2
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +4 -9
- package/dist/collection/components/molecules/mg-message/mg-message.css +20 -19
- package/dist/collection/components/molecules/mg-message/mg-message.js +55 -33
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +20 -8
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -26
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +4 -13
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +17 -5
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +11 -22
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +82 -20
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +54 -26
- package/dist/collection/components/molecules/mg-skip-links/doc/mg-skip-links.stories.js +24 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js +1 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.css +28 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +108 -0
- package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +5 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +11 -7
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +109 -75
- package/dist/collection/locales/en/messages.json +7 -0
- package/dist/collection/locales/fr/messages.json +7 -0
- package/dist/collection/locales/index.js +2 -25
- package/dist/collection/styles/a11y.scss +32 -0
- package/dist/collection/styles/components.scss +3 -0
- package/dist/collection/styles/fonts.scss +21 -0
- package/dist/collection/styles/form.scss +3 -0
- package/dist/collection/styles/global.scss +87 -0
- package/dist/collection/styles/layout.scss +29 -0
- package/dist/collection/styles/main.scss +23 -0
- package/dist/collection/styles/navigation-button.scss +76 -0
- package/dist/collection/styles/reset-mg-card-slotted-variables.scss +9 -0
- package/dist/collection/styles/typography.scss +75 -0
- package/dist/collection/styles/utilities.scss +21 -0
- package/dist/collection/utils/behaviors.utils.js +169 -0
- package/dist/collection/utils/components.utils.js +50 -0
- package/dist/collection/utils/locale.utils.js +22 -0
- package/dist/collection/utils/unit.test.utils.js +37 -32
- package/dist/collection/variables.css +9 -9
- package/dist/components/components.utils.js +51 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +73 -18
- package/dist/components/mg-badge2.js +8 -11
- package/dist/components/mg-button2.js +13 -30
- package/dist/components/mg-card.js +1 -37
- package/dist/components/mg-card2.js +39 -0
- package/dist/components/mg-character-left2.js +2 -3
- package/dist/components/mg-details.js +4 -8
- package/dist/components/mg-divider.js +0 -6
- package/dist/components/mg-form.js +8 -22
- package/dist/components/mg-icon2.js +18 -15
- package/dist/components/mg-illustrated-message.js +5 -10
- package/dist/components/mg-input-checkbox.js +17 -33
- package/dist/components/mg-input-date.js +23 -29
- package/dist/components/mg-input-numeric.js +26 -50
- package/dist/components/mg-input-password.js +18 -30
- package/dist/components/mg-input-radio.js +18 -33
- package/dist/components/mg-input-select2.js +32 -38
- package/dist/components/mg-input-text2.js +24 -42
- package/dist/components/mg-input-textarea.js +24 -46
- package/dist/components/mg-input-title2.js +4 -8
- package/dist/components/mg-input-toggle.js +16 -33
- package/dist/components/mg-menu-item.js +1 -264
- package/dist/components/mg-menu-item2.js +517 -0
- package/dist/components/mg-menu.js +142 -28
- package/dist/components/mg-message.js +64 -36
- package/dist/components/mg-modal.js +18 -30
- package/dist/components/mg-pagination.js +4 -13
- package/dist/components/mg-panel.js +20 -25
- package/dist/components/mg-popover.js +1 -200
- package/dist/components/mg-popover2.js +212 -0
- package/dist/components/mg-skip-links.d.ts +11 -0
- package/dist/components/mg-skip-links.js +80 -0
- package/dist/components/mg-tabs.js +108 -73
- package/dist/components/mg-tag.js +35 -13
- package/dist/components/mg-tooltip2.js +10 -23
- package/dist/esm/{index-aad0184c.js → index-dc9a2348.js} +11 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-badge_29.entry.js → mg-badge_30.entry.js} +1112 -860
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/mg-components/locales/en/messages.json +7 -0
- package/dist/mg-components/locales/fr/messages.json +7 -0
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-3899d5d2.js → p-182bd802.js} +2 -2
- package/dist/mg-components/p-f7da9dd2.entry.js +1 -0
- package/dist/mg-components/styles/a11y.scss +32 -0
- package/dist/mg-components/styles/components.scss +3 -0
- package/dist/mg-components/styles/fonts.scss +21 -0
- package/dist/mg-components/styles/form.scss +3 -0
- package/dist/mg-components/styles/global.scss +87 -0
- package/dist/mg-components/styles/layout.scss +29 -0
- package/dist/mg-components/styles/main.scss +23 -0
- package/dist/mg-components/styles/navigation-button.scss +76 -0
- package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +9 -0
- package/dist/mg-components/styles/typography.scss +75 -0
- package/dist/mg-components/styles/utilities.scss +21 -0
- package/dist/mg-components/variables.css +9 -9
- package/dist/types/components/atoms/mg-badge/doc/mg-badge.stories.d.ts +0 -11
- package/dist/types/components/atoms/mg-badge/mg-badge.conf.d.ts +2 -2
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
- package/dist/types/components/atoms/mg-button/doc/mg-button.stories.d.ts +0 -11
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +4 -4
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +6 -6
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +2 -2
- package/dist/types/components/atoms/mg-tag/doc/mg-tag.stories.d.ts +0 -13
- package/dist/types/components/atoms/mg-tag/mg-tag.conf.d.ts +5 -1
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +27 -6
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +1 -1
- package/dist/types/components/molecules/menu/mg-menu/doc/mg-menu.stories.d.ts +5 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.conf.d.ts +37 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +51 -3
- package/dist/types/components/molecules/menu/mg-menu-item/doc/mg-menu-item.stories.d.ts +1 -0
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +0 -8
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +55 -15
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +22 -5
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +1 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +12 -0
- package/dist/types/components/molecules/mg-skip-links/doc/mg-skip-links.stories.d.ts +11 -0
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.conf.d.ts +7 -0
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +49 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +5 -3
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +24 -14
- package/dist/types/components.d.ts +81 -18
- package/dist/types/locales/index.d.ts +16 -9
- package/dist/types/stencil-public-runtime.d.ts +44 -3
- package/dist/types/utils/behaviors.utils.d.ts +83 -0
- package/dist/types/utils/components.utils.d.ts +14 -0
- package/dist/types/utils/locale.utils.d.ts +13 -0
- package/dist/types/utils/unit.test.utils.d.ts +78 -0
- package/package.json +51 -46
- package/readme.md +25 -14
- package/dist/components/locale.utils.js +0 -40
- package/dist/components/mg-menu.conf.js +0 -10
- package/dist/mg-components/p-059a9a59.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-4dcc1812.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.21.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mg-components.cjs.js', document.baseURI).href));
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["mg-
|
|
18
|
+
return index.bootstrapLazy([["mg-badge_30.cjs",[[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1025,"title-pattern"],"titlePatternErrorMessage":[1025,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[1028,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]}],[1,"mg-divider",{"size":[1]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"requiredMessage":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1]}],[1,"mg-skip-links",{"links":[1040]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classList":[32]}],[1,"mg-menu",{"label":[1],"direction":[513],"moreitem":[16],"size":[1],"isChildMenu":[32],"hasOverflow":[32]}],[1,"mg-menu-item",{"href":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isInMainMenu":[32],"hasChildren":[32],"displayNotificationBadge":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028],"classList":[32]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[1,"mg-card"],[1,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"fullWidth":[1028,"full-width"],"form":[1025],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[1,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[1028]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"spin":[4],"classList":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./components/atoms/mg-badge/mg-badge.js",
|
|
4
3
|
"./components/atoms/mg-icon/mg-icon.js",
|
|
4
|
+
"./components/molecules/menu/mg-menu/mg-menu.js",
|
|
5
|
+
"./components/atoms/mg-badge/mg-badge.js",
|
|
5
6
|
"./components/atoms/mg-button/mg-button.js",
|
|
6
7
|
"./components/atoms/mg-card/mg-card.js",
|
|
7
8
|
"./components/atoms/mg-character-left/mg-character-left.js",
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
"./components/molecules/inputs/mg-input-text/mg-input-text.js",
|
|
19
20
|
"./components/molecules/inputs/mg-input-textarea/mg-input-textarea.js",
|
|
20
21
|
"./components/molecules/inputs/mg-input-toggle/mg-input-toggle.js",
|
|
21
|
-
"./components/molecules/menu/mg-menu/mg-menu.js",
|
|
22
22
|
"./components/molecules/menu/mg-menu-item/mg-menu-item.js",
|
|
23
23
|
"./components/molecules/mg-details/mg-details.js",
|
|
24
24
|
"./components/molecules/mg-form/mg-form.js",
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"./components/molecules/mg-pagination/mg-pagination.js",
|
|
29
29
|
"./components/molecules/mg-panel/mg-panel.js",
|
|
30
30
|
"./components/molecules/mg-popover/mg-popover.js",
|
|
31
|
+
"./components/molecules/mg-skip-links/mg-skip-links.js",
|
|
31
32
|
"./components/molecules/mg-tabs/mg-tabs.js"
|
|
32
33
|
],
|
|
33
34
|
"compiler": {
|
|
34
35
|
"name": "@stencil/core",
|
|
35
|
-
"version": "2.
|
|
36
|
-
"typescriptVersion": "4.
|
|
36
|
+
"version": "2.21.0",
|
|
37
|
+
"typescriptVersion": "4.9.4"
|
|
37
38
|
},
|
|
38
39
|
"collections": [],
|
|
39
40
|
"bundles": []
|
|
@@ -5,13 +5,6 @@ export default {
|
|
|
5
5
|
component: 'mg-badge',
|
|
6
6
|
title: 'Atoms/mg-badge',
|
|
7
7
|
argTypes: {
|
|
8
|
-
variant: {
|
|
9
|
-
options: variants,
|
|
10
|
-
control: { type: 'select' },
|
|
11
|
-
table: {
|
|
12
|
-
defaultValue: { summary: variants[0] },
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
8
|
value: {
|
|
16
9
|
control: { type: 'text' },
|
|
17
10
|
},
|
|
@@ -94,6 +94,19 @@
|
|
|
94
94
|
background-color: transparent;
|
|
95
95
|
color: hsl(var(--color-info));
|
|
96
96
|
}
|
|
97
|
+
.mg-badge.mg-badge--text-color {
|
|
98
|
+
background-color: currentColor;
|
|
99
|
+
border-color: currentColor;
|
|
100
|
+
}
|
|
101
|
+
.mg-badge.mg-badge--text-color .mg-badge__value {
|
|
102
|
+
color: hsl(var(--mg-badge-text-color, var(--color-light)));
|
|
103
|
+
}
|
|
104
|
+
.mg-badge.mg-badge--text-color.mg-badge--outline {
|
|
105
|
+
background-color: transparent;
|
|
106
|
+
}
|
|
107
|
+
.mg-badge.mg-badge--text-color.mg-badge--outline .mg-badge__value {
|
|
108
|
+
color: currentColor;
|
|
109
|
+
}
|
|
97
110
|
|
|
98
111
|
.mg-badge,
|
|
99
112
|
mg-badge {
|
|
@@ -8,18 +8,15 @@ export class MgBadge {
|
|
|
8
8
|
************/
|
|
9
9
|
// Classes
|
|
10
10
|
this.classOutline = `mg-badge--outline`;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.
|
|
15
|
-
/**
|
|
16
|
-
* Component classes
|
|
17
|
-
*/
|
|
11
|
+
this.value = undefined;
|
|
12
|
+
this.label = undefined;
|
|
13
|
+
this.variant = variants[0];
|
|
14
|
+
this.outline = undefined;
|
|
18
15
|
this.classList = new ClassList(['mg-badge']);
|
|
19
16
|
}
|
|
20
17
|
validateValue(newValue) {
|
|
21
18
|
if (`${newValue}`.match(/^(\d+\+*|[?*!a-z])$/i) === null) {
|
|
22
|
-
throw new Error('<mg-badge> prop "value" must be
|
|
19
|
+
throw new Error('<mg-badge> prop "value" must be integer or ponctuation character.');
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
validateLabel(newValue) {
|
|
@@ -61,7 +58,7 @@ export class MgBadge {
|
|
|
61
58
|
* @returns {HTMLElement} HTML Element
|
|
62
59
|
*/
|
|
63
60
|
render() {
|
|
64
|
-
return (h("span", { class: this.classList.join() }, this.value, h("span", { class: "sr-only" }, this.label)));
|
|
61
|
+
return (h("span", { class: this.classList.join() }, h("span", { class: "mg-badge__value" }, this.value), h("span", { class: "sr-only" }, this.label)));
|
|
65
62
|
}
|
|
66
63
|
static get is() { return "mg-badge"; }
|
|
67
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -116,7 +113,7 @@ export class MgBadge {
|
|
|
116
113
|
"mutable": false,
|
|
117
114
|
"complexType": {
|
|
118
115
|
"original": "BadgeVariantType",
|
|
119
|
-
"resolved": "\"danger\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
|
|
116
|
+
"resolved": "\"danger\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"text-color\" | \"warning\"",
|
|
120
117
|
"references": {
|
|
121
118
|
"BadgeVariantType": {
|
|
122
119
|
"location": "import",
|
|
@@ -6,13 +6,6 @@ export default {
|
|
|
6
6
|
component: 'mg-button',
|
|
7
7
|
title: 'Atoms/mg-button',
|
|
8
8
|
argTypes: {
|
|
9
|
-
variant: {
|
|
10
|
-
options: variants,
|
|
11
|
-
control: { type: 'select' },
|
|
12
|
-
table: {
|
|
13
|
-
defaultValue: { summary: variants[0] },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
9
|
type: {
|
|
17
10
|
options: [undefined, ...buttonTypes],
|
|
18
11
|
control: { type: 'select' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List of all possibles variants
|
|
3
3
|
*/
|
|
4
|
-
export const variants = ['primary', 'secondary', 'danger', 'danger-alt', 'info', 'flat', 'success'];
|
|
4
|
+
export const variants = ['primary', 'secondary', 'danger', 'danger-alt', 'info', 'flat', 'success', 'link'];
|
|
5
5
|
/**
|
|
6
6
|
* List of all possibles button types
|
|
7
7
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:host(:hover) .mg-button--flat:not(.mg-button--disabled),
|
|
19
19
|
:host(:focus) .mg-button--flat:not(.mg-button--disabled),
|
|
20
20
|
:host(:active) .mg-button--flat:not(.mg-button--disabled) {
|
|
21
|
-
background:
|
|
21
|
+
background: hsl(var(--color-dark), 0.1);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:host([full-width]) {
|
|
@@ -149,6 +149,20 @@
|
|
|
149
149
|
background: none;
|
|
150
150
|
border: none;
|
|
151
151
|
}
|
|
152
|
+
.mg-button.mg-button--link {
|
|
153
|
+
padding: unset;
|
|
154
|
+
min-height: unset;
|
|
155
|
+
background: unset;
|
|
156
|
+
border: unset;
|
|
157
|
+
border-radius: unset;
|
|
158
|
+
text-decoration: underline;
|
|
159
|
+
}
|
|
160
|
+
.mg-button.mg-button--link slot {
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
}
|
|
163
|
+
.mg-button.mg-button--link:hover {
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
}
|
|
152
166
|
.mg-button.mg-button--full-width {
|
|
153
167
|
display: flex;
|
|
154
168
|
justify-content: center;
|
|
@@ -10,34 +10,6 @@ export class MgButton {
|
|
|
10
10
|
this.classDisabled = 'mg-button--disabled';
|
|
11
11
|
this.classLoading = 'mg-button--loading';
|
|
12
12
|
this.classFullWidth = 'mg-button--full-width';
|
|
13
|
-
/**
|
|
14
|
-
* Define button variant
|
|
15
|
-
*/
|
|
16
|
-
this.variant = variants[0]; // Primary
|
|
17
|
-
/**
|
|
18
|
-
* Set button to full-width
|
|
19
|
-
*/
|
|
20
|
-
this.fullWidth = false;
|
|
21
|
-
/**
|
|
22
|
-
* Define if button is round.
|
|
23
|
-
* Used for icon button.
|
|
24
|
-
*/
|
|
25
|
-
this.isIcon = false;
|
|
26
|
-
/**
|
|
27
|
-
* Option to set input disable on click, in order to prevent multi-click.
|
|
28
|
-
* Parent component have to remove the attribute 'disabled' when the process ends.
|
|
29
|
-
*/
|
|
30
|
-
this.disableOnClick = false;
|
|
31
|
-
/**
|
|
32
|
-
* Define if button is loading, default to false.
|
|
33
|
-
* Trigger when button is clicked or key-up ['enter', 'space], then value change to true.
|
|
34
|
-
* It's required to reset to false when action/promise in parent is done to stop the loading state
|
|
35
|
-
*/
|
|
36
|
-
this.loading = false;
|
|
37
|
-
/**
|
|
38
|
-
* Component classes
|
|
39
|
-
*/
|
|
40
|
-
this.classList = new ClassList(['mg-button']);
|
|
41
13
|
/**
|
|
42
14
|
* Trigger actions onClick event
|
|
43
15
|
*
|
|
@@ -80,6 +52,17 @@ export class MgButton {
|
|
|
80
52
|
this.element.dispatchEvent(new MouseEvent('click', { bubbles: true }));
|
|
81
53
|
}
|
|
82
54
|
};
|
|
55
|
+
this.variant = variants[0];
|
|
56
|
+
this.identifier = undefined;
|
|
57
|
+
this.label = undefined;
|
|
58
|
+
this.type = undefined;
|
|
59
|
+
this.fullWidth = false;
|
|
60
|
+
this.form = undefined;
|
|
61
|
+
this.disabled = undefined;
|
|
62
|
+
this.isIcon = false;
|
|
63
|
+
this.disableOnClick = false;
|
|
64
|
+
this.loading = false;
|
|
65
|
+
this.classList = new ClassList(['mg-button']);
|
|
83
66
|
}
|
|
84
67
|
validateVariant(newValue, oldValue) {
|
|
85
68
|
if (!variants.includes(newValue)) {
|
|
@@ -173,7 +156,7 @@ export class MgButton {
|
|
|
173
156
|
"mutable": false,
|
|
174
157
|
"complexType": {
|
|
175
158
|
"original": "VariantType",
|
|
176
|
-
"resolved": "\"danger\" | \"danger-alt\" | \"flat\" | \"info\" | \"primary\" | \"secondary\" | \"success\"",
|
|
159
|
+
"resolved": "\"danger\" | \"danger-alt\" | \"flat\" | \"info\" | \"link\" | \"primary\" | \"secondary\" | \"success\"",
|
|
177
160
|
"references": {
|
|
178
161
|
"VariantType": {
|
|
179
162
|
"location": "import",
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
.mg-card {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
box-
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: var(--mg-card-padding, var(--mg-card-padding-default));
|
|
5
|
+
overflow: var(--mg-card-overflow, var(--mg-card-overflow-default));
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
z-index: inherit;
|
|
8
|
+
background: var(--mg-card-background, var(--mg-card-background-default));
|
|
9
|
+
border: var(--mg-card-border, var(--mg-card-border-default));
|
|
10
|
+
border-radius: var(--mg-card-border-radius, var(--mg-card-border-radius-default));
|
|
11
|
+
box-shadow: var(--mg-card-box-shadow, var(--mg-card-box-shadow-default));
|
|
12
|
+
}
|
|
13
|
+
.mg-card ::slotted(*) {
|
|
14
|
+
--mg-card-border: var(--mg-card-border-default);
|
|
15
|
+
--mg-card-padding: var(--mg-card-padding-default);
|
|
16
|
+
--mg-card-border-radius: var(--mg-card-border-radius-default);
|
|
17
|
+
--mg-card-background: var(--mg-card-background-default);
|
|
18
|
+
--mg-card-box-shadow: var(--mg-card-box-shadow-default);
|
|
7
19
|
}
|
|
@@ -2,10 +2,9 @@ import { h } from '@stencil/core';
|
|
|
2
2
|
import { initLocales } from '../../../locales';
|
|
3
3
|
export class MgCharacterLeft {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
* Sets the characters to count
|
|
7
|
-
*/
|
|
5
|
+
this.identifier = undefined;
|
|
8
6
|
this.characters = '';
|
|
7
|
+
this.maxlength = undefined;
|
|
9
8
|
}
|
|
10
9
|
validateMaxlength(newValue) {
|
|
11
10
|
if (typeof newValue !== 'number') {
|
|
@@ -12,6 +12,7 @@ export const icons = {
|
|
|
12
12
|
'archive': () => (h("path", { fill: "currentColor", d: "M3 6v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6H3Zm7 2H6V7h4v1Zm3-3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1Z" })),
|
|
13
13
|
'archive-outline': () => (h("path", { fill: "currentColor", d: "M13 2H3c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1Zm-1 11H4.04S4 12.98 4 12.96V6h8v7Zm1-8H3V3h10v2Zm-3 3H6V7h4v1Z" })),
|
|
14
14
|
'arrow-down': () => (h("path", { fill: "currentColor", d: "M13,10.1H10.23a.31.31,0,0,1-.32-.28h0V.94A.3.3,0,0,0,9.59.65H6.37A.32.32,0,0,0,6,.94H6V9.81a.29.29,0,0,1-.31.29H3a.3.3,0,0,0-.31.29.27.27,0,0,0,.08.22l5.06,4.58a.36.36,0,0,0,.46,0l5-4.58a.29.29,0,0,0,0-.42C13.22,10.1,13.12,10.1,13,10.1Z" })),
|
|
15
|
+
'arrow-down-a-z': () => (h("path", { fill: "currentColor", d: "m6.53 10.9-1.41 1.41-.71.71-2.12-2.12.71-.71.88.88V3.02h1v8.12l.95-.95.71.71ZM12.29 6H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06l-.36-1Zm-.36-1.02-.53-1.49-.53 1.49h1.06Zm1.79 5.18V9H9.09v1h3.29l-3.29 2.84V14h4.63v-1h-3.29l3.29-2.84Z" })),
|
|
15
16
|
'arrow-down-right': () => (h("path", { fill: "currentColor", d: "m1.98 3.47 8.75 8.75H6.94c-.58 0-1.05.47-1.05 1.06s.47 1.05 1.05 1.05h6.33c.58 0 1.05-.47 1.05-1.05V6.94a1.05 1.05 0 1 0-2.1 0v3.79L3.47 1.98c-.41-.41-1.08-.41-1.49 0-.41.41-.41 1.08 0 1.49Z" })),
|
|
16
17
|
'arrow-left': () => (h("path", { fill: "currentColor", d: "M5.88,12.93V10.18a.3.3,0,0,1,.28-.32H15a.31.31,0,0,0,.29-.33h0V6.32A.31.31,0,0,0,15,6H6.17a.32.32,0,0,1-.29-.31h0V2.93a.3.3,0,0,0-.28-.32.32.32,0,0,0-.23.09L.79,7.76a.36.36,0,0,0,0,.46l4.58,5a.31.31,0,0,0,.43,0A.4.4,0,0,0,5.88,12.93Z" })),
|
|
17
18
|
'arrow-right': () => (h("path", { fill: "currentColor", d: "M10.16,3V5.75a.3.3,0,0,1-.28.32H1a.31.31,0,0,0-.29.33h0V9.61A.31.31,0,0,0,1,9.94H9.87a.29.29,0,0,1,.29.31h0V13a.3.3,0,0,0,.28.32.32.32,0,0,0,.23-.09l4.58-5.06a.36.36,0,0,0,0-.46l-4.58-5a.3.3,0,0,0-.42,0C10.16,2.76,10.16,2.87,10.16,3Z" })),
|
|
@@ -20,6 +21,7 @@ export const icons = {
|
|
|
20
21
|
'arrow-up': () => (h("path", { fill: "currentColor", d: "M3.06,5.82H5.81a.31.31,0,0,1,.32.28h0V15a.31.31,0,0,0,.33.29H9.67A.3.3,0,0,0,10,15h0V6.11a.3.3,0,0,1,.31-.29h2.75a.3.3,0,0,0,.23-.51L8.23.73a.36.36,0,0,0-.46,0l-5,4.58a.3.3,0,0,0,0,.43C2.82,5.83,2.92,5.82,3.06,5.82Z" })),
|
|
21
22
|
'arrow-up-right': () => (h("path", { fill: "currentColor", d: "m3.47 14.02 8.75-8.75v3.78c0 .58.47 1.05 1.06 1.05s1.05-.47 1.05-1.05V2.72c0-.58-.47-1.05-1.05-1.05H6.94a1.05 1.05 0 1 0 0 2.1h3.78l-8.74 8.76c-.41.41-.41 1.08 0 1.49s1.08.41 1.49 0Z" })),
|
|
22
23
|
'arrow-up-right-square': () => (h("path", { fill: "currentColor", d: "M14.33 3v10A1.34 1.34 0 0 1 13 14.33H3A1.34 1.34 0 0 1 1.67 13V3A1.34 1.34 0 0 1 3 1.67h10A1.34 1.34 0 0 1 14.33 3Zm-2.48.46H8.68a.67.67 0 0 0-.68.7.63.63 0 0 0 .2.47l.91.91-5.53 5.53a.33.33 0 0 0 0 .48l.87.87a.33.33 0 0 0 .48 0l5.53-5.52.91.9a.69.69 0 0 0 1 0 .71.71 0 0 0 .19-.48V4.15a.67.67 0 0 0-.67-.67Z" })),
|
|
24
|
+
'arrow-up-z-a': () => (h("path", { fill: "currentColor", d: "m5.82 5.85-.94-.94v8.11h-1V4.96l-.89.89-.71-.71 1.41-1.41.71-.71.71.71 1.41 1.41-.71.71ZM12.29 13H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06l-.36-1Zm-.36-1.02-.53-1.49-.53 1.49h1.06Zm1.79-8.82V2H9.09v1h3.29L9.09 5.84V7h4.63V6h-3.29l3.29-2.84Z" })),
|
|
23
25
|
'arrows-compare': () => h("path", { fill: "currentColor", d: "M5.81 9.47H.67v1.47h5.14v2.2l2.93-2.93-2.93-2.93v2.2Zm4.39-.73v-2.2h5.14V5.07H10.2v-2.2L7.27 5.8l2.93 2.93Z" }),
|
|
24
26
|
'arrows-right-down': () => (h("path", { fill: "currentColor", d: "M10.68 10.78c.16.17.16.45-.02.61l-2.8 2.78a.43.43 0 0 1-.31.12.42.42 0 0 1-.31-.12l-2.8-2.78a.44.44 0 0 1 0-.62.44.44 0 0 1 .62 0l2.06 2.05V5.38H2.11c-.24 0-.44-.19-.44-.44 0-.24.2-.44.44-.44H8v8.32l2.06-2.05a.44.44 0 0 1 .62 0Zm3.53-6.14-2.78-2.8a.438.438 0 0 0-.61-.02.44.44 0 0 0 0 .62l2.05 2.06H8.89v.88h3.98l-2.05 2.06a.44.44 0 0 0 0 .62c.17.17.45.17.62 0l2.78-2.8s.07-.09.09-.14c.02-.05.03-.11.03-.17 0-.11-.04-.23-.12-.31Z" })),
|
|
25
27
|
'arrows-right-left': () => (h("path", { fill: "currentColor", d: "M.73,5.65V5.23a.64.64,0,0,1,.64-.64H12V3.31a.64.64,0,0,1,.64-.64.63.63,0,0,1,.45.18L15.19,5a.63.63,0,0,1,0,.9L13.05,8A.65.65,0,0,1,12,7.57V6.29H1.37a.64.64,0,0,1-.64-.64Zm14,4.06H4.09V8.43A.64.64,0,0,0,3,8L.87,10.11a.63.63,0,0,0,0,.9L3,13.15a.64.64,0,0,0,.91,0,.61.61,0,0,0,.18-.45V11.41H14.73a.63.63,0,0,0,.64-.64h0v-.42a.63.63,0,0,0-.64-.64Z" })),
|
|
@@ -30,8 +32,13 @@ export const icons = {
|
|
|
30
32
|
'briefcase': () => (h("path", { fill: "currentColor", d: "M14 4.5h-3v-1c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-7c0-.55-.45-1-1-1Zm-8-1h4v1H6v-1Z" })),
|
|
31
33
|
'briefcase-outline': () => (h("path", { fill: "currentColor", d: "M14 4.5h-3v-1c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-7c0-.55-.45-1-1-1Zm-8-1h4v1H6v-1Zm8 9H2v-7h12v7Z" })),
|
|
32
34
|
'calculator': () => (h("path", { fill: "currentColor", d: "M12.83.67H3.17a.5.5 0 0 0-.5.5v13.66a.5.5 0 0 0 .5.5h9.66a.5.5 0 0 0 .5-.5V1.17a.5.5 0 0 0-.5-.5ZM5.58 13.39a.29.29 0 0 1-.28.3H4.1a.29.29 0 0 1-.3-.28v-1.2a.29.29 0 0 1 .28-.3h1.2a.29.29 0 0 1 .3.28v1.2Zm0-3.28a.29.29 0 0 1-.3.3H4.1a.29.29 0 0 1-.3-.3V8.93a.29.29 0 0 1 .28-.3h1.2a.29.29 0 0 1 .3.28v1.2Zm3.29 3.28a.29.29 0 0 1-.3.3H7.38a.29.29 0 0 1-.3-.3v-1.18a.29.29 0 0 1 .3-.3h1.19a.29.29 0 0 1 .3.3Zm0-3.28a.32.32 0 0 1-.3.3H7.38a.32.32 0 0 1-.3-.3V8.93a.29.29 0 0 1 .3-.3h1.19a.29.29 0 0 1 .3.3Zm3.33 3.28a.29.29 0 0 1-.28.3h-1.25a.29.29 0 0 1-.3-.28V8.93a.29.29 0 0 1 .28-.3h1.25a.29.29 0 0 1 .3.28v4.48Zm0-7.15a.29.29 0 0 1-.3.3H4.1a.29.29 0 0 1-.3-.3V2.61a.29.29 0 0 1 .28-.3h7.82a.29.29 0 0 1 .3.28v3.65Z" })),
|
|
33
|
-
'calendar': () => (h("path", { fill: "currentColor", d: "M14
|
|
34
|
-
'calendar-
|
|
35
|
+
'calendar': () => (h("path", { fill: "currentColor", d: "M14 3.5c0-.55-.45-1-1-1h-1v-1h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v.98s0 .02.02.02H2v9c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-9h-.02s.02 0 .02-.02V3.5Zm-11 10v-8h10v8H3Z" })),
|
|
36
|
+
'calendar-outline': () => (h("path", { fill: "currentColor", d: "M13 2.5h-1v-1h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1Zm-10 11v-8h10v8H3Zm0-9v-1h10v1H3Z" })),
|
|
37
|
+
'calendar-euro': () => [
|
|
38
|
+
h("path", { d: "M13 2.5h-1v-1h-1v1H5v-1H4v1H3c-.6 0-1 .4-1 1v10c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-10c0-.6-.4-1-1-1Zm-10 11v-8h10v8H3Z" }),
|
|
39
|
+
h("path", { d: "m9.79 11.03.71.71c-.53.48-1.23.78-2 .78-1.31 0-2.43-.85-2.83-2.02H4.5v-.75h1.02c-.02-.07-.02-.15-.02-.23 0-.09 0-.18.02-.27H4.5V8.5h1.19a2.974 2.974 0 0 1 4.81-1.2l-.71.71c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49Z" }),
|
|
40
|
+
],
|
|
41
|
+
'calendar-euro-outline': () => (h("path", { d: "m9.79 11.02.71.71a2.976 2.976 0 0 1-4.83-1.24H4.5v-.75h1.01c-.01-.08-.01-.15-.01-.23 0-.09 0-.18.02-.27H4.5v-.75h1.19a2.974 2.974 0 0 1 4.81-1.2L9.79 8c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49ZM13 3.5v1H3v-1h10m-1-2h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1h-1v-1Zm-9 12v-8h10v8H3Z" })),
|
|
35
42
|
'check': () => (h("path", { fill: "currentColor", d: "m15.27 4.23-1.11-1.18c-.11-.1-.27-.1-.38 0L6 10.36l-3.76-4a.187.187 0 0 0-.26 0L.71 7.6c-.07.07-.07.19 0 .26l5.12 5.41c.07.07.18.07.25 0l1.3-1.23 7.87-7.45c.1-.1.11-.26.01-.37h.01Z" })),
|
|
36
43
|
'check-circle': () => (h("path", { fill: "currentColor", d: "M15.33 8A7.33 7.33 0 1 1 8 .67 7.33 7.33 0 0 1 15.33 8Zm-8.18 3.88 5.44-5.44a.46.46 0 0 0 0-.65l-.67-.67a.48.48 0 0 0-.67 0L6.82 9.54 4.75 7.47a.46.46 0 0 0-.65 0l-.67.67a.46.46 0 0 0 0 .65l3.07 3.07a.46.46 0 0 0 .65 0Z" })),
|
|
37
44
|
'chevron-down': () => (h("path", { fill: "currentColor", d: "M7.43,12.21.9,5.69a.81.81,0,0,1,0-1.14h0l.76-.77a.81.81,0,0,1,1.14,0L8,9l5.2-5.18a.81.81,0,0,1,1.14,0l.76.77a.8.8,0,0,1,0,1.13h0L8.57,12.21a.79.79,0,0,1-1.13,0Z" })),
|
|
@@ -43,6 +50,8 @@ export const icons = {
|
|
|
43
50
|
'chevron-up': () => (h("path", { fill: "currentColor", d: "M8.57,3.79l6.53,6.52a.81.81,0,0,1,0,1.14h0l-.76.77a.81.81,0,0,1-1.14,0L8,7,2.8,12.22a.81.81,0,0,1-1.14,0L.9,11.45a.8.8,0,0,1,0-1.13h0L7.43,3.79a.79.79,0,0,1,1.13,0Z" })),
|
|
44
51
|
'chevron-up-circle': () => (h("path", { fill: "currentColor", d: "M.67 8C.67 3.95 3.95.67 8 .67S15.33 3.95 15.33 8 12.05 15.33 8 15.33C3.95 15.33.67 12.05.67 8ZM7.5 4.63l-4 4c-.28.27-.28.71-.01.99h.01l.5.53c.28.27.72.27 1 0l3-3 3 3c.28.27.72.27 1 0l.5-.51c.28-.27.28-.71.01-.99h-.01l-4-4.01a.697.697 0 0 0-.99-.01H7.5Z" })),
|
|
45
52
|
'clock': () => (h("path", { fill: "currentColor", d: "M8,.67C3.95,.67,.67,3.95,.67,8s3.28,7.33,7.33,7.33,7.33-3.28,7.33-7.33h0C15.33,3.95,12.05,.67,8,.67h0Zm1.69,10.33l-2.61-1.88c-.09-.07-.14-.17-.14-.28V3.84c0-.19,.16-.35,.35-.36h1.42c.2,0,.35,.16,.36,.36V7.93l1.87,1.37c.16,.1,.2,.32,.09,.47v.02h-.01l-.83,1.15c-.12,.15-.34,.18-.5,.06Z" })),
|
|
53
|
+
'clock-outline': () => (h("path", { fill: "currentColor", d: "m10.95 10.04-.71.71L7.5 8.01v-4h1V7.6l2.45 2.45ZM8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0-1c3.87 0 7 3.13 7 7s-3.13 7-7 7-7-3.13-7-7 3.13-7 7-7Z" })),
|
|
54
|
+
'code-square-outline': () => (h("path", { fill: "currentColor", d: "m6.32 10.28.73-.73L5.5 8l1.53-1.53-.73-.73-2.27 2.27 2.28 2.28Zm3.37 0L11.97 8 9.69 5.72l-.73.73L10.51 8 8.96 9.55l.73.73ZM3.01 14c-.27 0-.5-.1-.7-.3-.2-.2-.3-.43-.3-.7V3c0-.27.1-.5.3-.7.2-.2.43-.3.7-.3h10c.27 0 .5.1.7.3.2.2.3.43.3.7v10c0 .27-.1.5-.3.7-.2.2-.43.3-.7.3H3Zm0-1h10V3H3v10Zm0-10v10V3Z" })),
|
|
46
55
|
'conversation': () => (h("path", { fill: "currentColor", d: "M11.22,6.48c0-2.11-2.36-3.81-5.28-3.81S.67,4.37.67,6.48a3.15,3.15,0,0,0,1,2.19A5.17,5.17,0,0,1,.72,10a.2.2,0,0,0,0,.21.23.23,0,0,0,.19.12,4.79,4.79,0,0,0,2.25-.6,6.84,6.84,0,0,0,2.82.6C8.86,10.29,11.22,8.58,11.22,6.48Zm3.1,5.23a3.08,3.08,0,0,0,1-2.19C15.28,7.93,14,6.57,12,6a3.84,3.84,0,0,1,0,.48C12,9,9.3,11.05,6,11.05a7.16,7.16,0,0,1-.8-.05A5.6,5.6,0,0,0,10,13.33a6.7,6.7,0,0,0,2.82-.59,4.66,4.66,0,0,0,2.25.59.21.21,0,0,0,.19-.11.2.2,0,0,0,0-.21,5.15,5.15,0,0,1-.91-1.3Z" })),
|
|
47
56
|
'conversation-outline': () => [
|
|
48
57
|
h("path", { fill: "currentColor", d: "M15 8.5c0 .79-.39 1.51-1.01 2.09v1.91a.508.508 0 0 1-.68.47l-2.26-1.05c-.34.05-.69.08-1.05.08-.23 0-.47-.01-.69-.04-.18 0-.35-.03-.52-.07-.02 0-.03 0-.05-.01-.16-.02-.31-.06-.46-.1-.42-.1-.82-.25-1.18-.43l-.42-.24c-.06-.04-.12-.08-.18-.13.58-.03 1.13-.12 1.64-.27.56.19 1.19.29 1.86.29.29 0 .6-.02.91-.07l.29-.04.28.12 1.5.7v-1.12l.01-.43.31-.3c.32-.29.7-.77.7-1.36 0-.91-.82-1.72-2.01-2.15-.01-.39-.09-.77-.23-1.13.06.02.12.04.19.06.25.08.5.17.73.27.11.05.23.11.34.17.11.06.21.12.31.18.11.07.2.13.3.2.48.35.86.78 1.1 1.26a2.288 2.288 0 0 1 .17.45c.03.11.06.22.07.33.02.12.03.24.03.36Z" }),
|
|
@@ -60,9 +69,10 @@ export const icons = {
|
|
|
60
69
|
'download': () => (h("path", { fill: "currentColor", d: "M6.4 2v4.1c0 .2-.1.3-.3.3H4c-.2 0-.3.1-.3.3 0 .1 0 .2.1.2l4 4c.1.1.3.1.4 0l4-4c.1-.1.1-.3 0-.4-.1-.1-.1-.1-.2-.1H9.9c-.2 0-.3-.1-.3-.3V2c0-.2-.1-.3-.3-.3H6.7c-.1 0-.3.1-.3.3zm7.9 11v1c0 .2-.1.3-.3.3H2c-.2 0-.3-.1-.3-.3v-1c0-.2.1-.3.3-.3h12c.2 0 .3.1.3.3z" })),
|
|
61
70
|
'ellipsis': () => (h("path", { fill: "currentColor", d: "M2.5 6.17A1.83 1.83 0 1 0 4.33 8c0-1.01-.82-1.83-1.83-1.83Zm11 0A1.83 1.83 0 1 0 15.33 8c0-1.01-.82-1.83-1.83-1.83Zm-5.5 0A1.83 1.83 0 1 0 9.83 8c0-1.01-.82-1.83-1.83-1.83Z" })),
|
|
62
71
|
'ellipsis-vertical': () => (h("path", { fill: "currentColor", d: "M6.17 13.5A1.83 1.83 0 1 0 8 11.67c-1.01 0-1.83.82-1.83 1.83Zm0-11A1.83 1.83 0 1 0 8 .67c-1.01 0-1.83.82-1.83 1.83Zm0 5.5A1.83 1.83 0 1 0 8 6.17c-1.01 0-1.83.82-1.83 1.83Z" })),
|
|
63
|
-
'euro': () => (h("path", { fill: "currentColor", d: "
|
|
72
|
+
'euro': () => (h("path", { fill: "currentColor", d: "m12.1 11.02 1.4 1.42a5.948 5.948 0 0 1-4 1.56c-2.64 0-4.86-1.68-5.66-4.04H1.5v-1.5h2.02C3.5 8.3 3.5 8.16 3.5 8c0-.18 0-.36.04-.54H1.5v-1.5h2.38C4.7 3.66 6.9 2 9.5 2c1.54 0 2.94.6 4 1.56l-1.4 1.42c-.7-.6-1.6-.98-2.6-.98-1.46 0-2.74.78-3.44 1.96h3.5v1.5H5.54c-.02.18-.04.36-.04.54 0 .16 0 .32.02.46h4.04v1.5H6.02C6.7 11.18 8.02 12 9.5 12c1 0 1.9-.38 2.6-.98Z" })),
|
|
64
73
|
'euro-circle': () => (h("path", { fill: "currentColor", d: "M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67Zm2.27 11.4c-.38.09-.76.14-1.15.14a4.038 4.038 0 0 1-3.99-2.92h-.58c-.13 0-.23-.1-.23-.22v-.54c0-.12.11-.22.23-.22h.41a5.34 5.34 0 0 1 0-.8h-.41c-.13 0-.23-.1-.23-.22v-.58c0-.13.11-.22.23-.22h.63c.6-1.65 2.18-2.74 3.94-2.71.34 0 .68.03 1.02.1.12.03.19.16.16.28l-.23.84c-.03.12-.15.19-.27.17-.24-.05-.48-.08-.73-.08A2.42 2.42 0 0 0 6.81 6.5h2.71c.12.03.2.15.17.27l-.13.58c-.02.1-.12.18-.22.18H6.52c-.03.26-.03.53 0 .8h2.63c.12.03.2.15.17.27l-.11.52c-.03.1-.12.18-.22.18H6.8c.36.96 1.28 1.6 2.31 1.61.3 0 .59-.04.88-.1.12-.02.24.05.27.18l.17.84c.02.12-.05.24-.17.27v-.03Z" })),
|
|
65
74
|
'exclamation-circle': () => (h("path", { fill: "currentColor", d: "M8 15.33c4.05 0 7.33-3.28 7.33-7.33S12.05.67 8 .67.67 3.95.67 8 3.95 15.33 8 15.33Zm.95-3.3c0 .15-.12.27-.28.27h-1.4c-.15 0-.28-.12-.28-.27v-1.31c0-.15.12-.28.28-.28h1.4c.15 0 .28.12.28.28v1.31ZM7 3.96c0-.14.11-.25.25-.25H8.7c.14 0 .25.11.25.25v4.8c0 .14-.11.25-.25.25H7.25c-.14 0-.25-.11-.25-.25V3.95Z" })),
|
|
75
|
+
'exclamation-stamp': () => (h("path", { fill: "currentColor", d: "m15 8-1.55-1.86.22-2.46-2.3-.55L10.17 1 8 1.98 5.84 1 4.63 3.13l-2.29.54.22 2.46L1.01 8l1.55 1.86-.22 2.47 2.3.55 1.2 2.13L8 14.03l2.17.98 1.2-2.13 2.3-.55-.22-2.46L15 8.01Zm-6.36 3.35H7.36v-1.34h1.28v1.34Zm0-2.67H7.36V4.67h1.28v4.01Z" })),
|
|
66
76
|
'exclamation-triangle': () => (h("path", { fill: "currentColor", d: "m14.3 13.88-6-12a.32.32 0 0 0-.41-.15.31.31 0 0 0-.15.15l-6 12a.31.31 0 0 0 .14.42.32.32 0 0 0 .14 0H14a.31.31 0 0 0 .33-.29.23.23 0 0 0-.03-.13ZM7 6a.28.28 0 0 1 .28-.28h1.46A.28.28 0 0 1 9 6v4a.29.29 0 0 1-.28.29H7.3A.29.29 0 0 1 7 10Zm2 7a.31.31 0 0 1-.31.32H7.34A.32.32 0 0 1 7 13v-1.37a.31.31 0 0 1 .32-.31h1.39a.31.31 0 0 1 .31.31Z" })),
|
|
67
77
|
'eye': () => [
|
|
68
78
|
h("circle", { fill: "currentColor", cx: "8.01", cy: "7.96", r: "2.44" }),
|
|
@@ -3,24 +3,17 @@ import { icons, sizes, variants } from './mg-icon.conf';
|
|
|
3
3
|
import { ClassList } from '../../../utils/components.utils';
|
|
4
4
|
export class MgIcon {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Define icon size
|
|
8
|
-
*/
|
|
9
|
-
this.size = 'regular';
|
|
10
|
-
/**
|
|
11
|
-
* Make the icon spin
|
|
12
|
-
*/
|
|
13
|
-
this.spin = false;
|
|
14
|
-
/**
|
|
15
|
-
* Component classes
|
|
16
|
-
*/
|
|
17
|
-
this.classList = new ClassList(['mg-icon']);
|
|
18
6
|
/**
|
|
19
7
|
* getIcon
|
|
20
8
|
*
|
|
21
9
|
* @returns {HTMLElement} icon html
|
|
22
10
|
*/
|
|
23
11
|
this.getIcon = () => icons[this.icon]();
|
|
12
|
+
this.icon = undefined;
|
|
13
|
+
this.size = 'regular';
|
|
14
|
+
this.variant = undefined;
|
|
15
|
+
this.spin = false;
|
|
16
|
+
this.classList = new ClassList(['mg-icon']);
|
|
24
17
|
}
|
|
25
18
|
validateIcon(newValue, oldValue) {
|
|
26
19
|
if (!Object.keys(icons).includes(newValue)) {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
export class MgInputTitle {
|
|
3
3
|
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Switch from label to fieldset sementic
|
|
6
|
-
*/
|
|
7
|
-
this.isLegend = false;
|
|
8
|
-
/**
|
|
9
|
-
* Component parent tagname
|
|
10
|
-
*/
|
|
11
|
-
this.tagName = 'label';
|
|
12
4
|
this.getTagName = () => {
|
|
13
5
|
this.tagName = this.isLegend ? 'legend' : 'label';
|
|
14
6
|
};
|
|
7
|
+
this.identifier = undefined;
|
|
8
|
+
this.required = undefined;
|
|
9
|
+
this.isLegend = false;
|
|
10
|
+
this.tagName = 'label';
|
|
15
11
|
}
|
|
16
12
|
validateIdentifier(newValue) {
|
|
17
13
|
if (typeof newValue !== 'string' || newValue.trim() === '') {
|
|
@@ -4,15 +4,6 @@ import { variants } from '../mg-tag.conf';
|
|
|
4
4
|
export default {
|
|
5
5
|
component: 'mg-tag',
|
|
6
6
|
title: 'Atoms/mg-tag',
|
|
7
|
-
argTypes: {
|
|
8
|
-
variant: {
|
|
9
|
-
options: variants,
|
|
10
|
-
control: { type: 'select' },
|
|
11
|
-
table: {
|
|
12
|
-
defaultValue: { summary: variants[0] },
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
7
|
};
|
|
17
8
|
/**
|
|
18
9
|
* Template
|
|
@@ -27,4 +18,5 @@ MgTag.args = {
|
|
|
27
18
|
slot: 'Label',
|
|
28
19
|
variant: variants[0],
|
|
29
20
|
outline: false,
|
|
21
|
+
soft: false,
|
|
30
22
|
};
|
|
@@ -20,6 +20,15 @@
|
|
|
20
20
|
background-color: transparent;
|
|
21
21
|
color: hsl(var(--color-dark));
|
|
22
22
|
}
|
|
23
|
+
.mg-tag.mg-tag--primary.mg-tag--soft {
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
background-color: hsl(var(--color-dark-h), var(--color-dark-s), 90%);
|
|
26
|
+
border-color: hsl(var(--color-dark-h), var(--color-dark-s), 90%);
|
|
27
|
+
color: hsl(var(--color-dark));
|
|
28
|
+
}
|
|
29
|
+
.mg-tag.mg-tag--primary.mg-tag--soft ::slotted(mg-icon) {
|
|
30
|
+
color: hsl(var(--color-dark));
|
|
31
|
+
}
|
|
23
32
|
.mg-tag.mg-tag--secondary {
|
|
24
33
|
background-color: hsl(var(--color-light));
|
|
25
34
|
border-color: hsl(var(--color-light));
|
|
@@ -29,6 +38,15 @@
|
|
|
29
38
|
background-color: transparent;
|
|
30
39
|
color: hsl(var(--color-light));
|
|
31
40
|
}
|
|
41
|
+
.mg-tag.mg-tag--secondary.mg-tag--soft {
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
background-color: hsl(var(--color-light-h), var(--color-light-s), 90%);
|
|
44
|
+
border-color: hsl(var(--color-light-h), var(--color-light-s), 90%);
|
|
45
|
+
color: hsl(var(--color-dark));
|
|
46
|
+
}
|
|
47
|
+
.mg-tag.mg-tag--secondary.mg-tag--soft ::slotted(mg-icon) {
|
|
48
|
+
color: hsl(var(--color-dark));
|
|
49
|
+
}
|
|
32
50
|
.mg-tag.mg-tag--success {
|
|
33
51
|
background-color: hsl(var(--color-success));
|
|
34
52
|
border-color: hsl(var(--color-success));
|
|
@@ -38,6 +56,15 @@
|
|
|
38
56
|
background-color: transparent;
|
|
39
57
|
color: hsl(var(--color-success));
|
|
40
58
|
}
|
|
59
|
+
.mg-tag.mg-tag--success.mg-tag--soft {
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
background-color: hsl(var(--color-success-h), var(--color-success-s), 90%);
|
|
62
|
+
border-color: hsl(var(--color-success-h), var(--color-success-s), 90%);
|
|
63
|
+
color: hsl(var(--color-dark));
|
|
64
|
+
}
|
|
65
|
+
.mg-tag.mg-tag--success.mg-tag--soft ::slotted(mg-icon) {
|
|
66
|
+
color: hsl(var(--color-success));
|
|
67
|
+
}
|
|
41
68
|
.mg-tag.mg-tag--warning {
|
|
42
69
|
background-color: hsl(var(--color-warning));
|
|
43
70
|
border-color: hsl(var(--color-warning));
|
|
@@ -47,6 +74,15 @@
|
|
|
47
74
|
background-color: transparent;
|
|
48
75
|
color: hsl(var(--color-warning));
|
|
49
76
|
}
|
|
77
|
+
.mg-tag.mg-tag--warning.mg-tag--soft {
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
background-color: hsl(var(--color-warning-h), var(--color-warning-s), 90%);
|
|
80
|
+
border-color: hsl(var(--color-warning-h), var(--color-warning-s), 90%);
|
|
81
|
+
color: hsl(var(--color-dark));
|
|
82
|
+
}
|
|
83
|
+
.mg-tag.mg-tag--warning.mg-tag--soft ::slotted(mg-icon) {
|
|
84
|
+
color: hsl(var(--color-warning));
|
|
85
|
+
}
|
|
50
86
|
.mg-tag.mg-tag--danger {
|
|
51
87
|
background-color: hsl(var(--color-danger));
|
|
52
88
|
border-color: hsl(var(--color-danger));
|
|
@@ -56,6 +92,15 @@
|
|
|
56
92
|
background-color: transparent;
|
|
57
93
|
color: hsl(var(--color-danger));
|
|
58
94
|
}
|
|
95
|
+
.mg-tag.mg-tag--danger.mg-tag--soft {
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
background-color: hsl(var(--color-danger-h), var(--color-danger-s), 90%);
|
|
98
|
+
border-color: hsl(var(--color-danger-h), var(--color-danger-s), 90%);
|
|
99
|
+
color: hsl(var(--color-dark));
|
|
100
|
+
}
|
|
101
|
+
.mg-tag.mg-tag--danger.mg-tag--soft ::slotted(mg-icon) {
|
|
102
|
+
color: hsl(var(--color-danger));
|
|
103
|
+
}
|
|
59
104
|
.mg-tag.mg-tag--info {
|
|
60
105
|
background-color: hsl(var(--color-info));
|
|
61
106
|
border-color: hsl(var(--color-info));
|
|
@@ -65,9 +110,22 @@
|
|
|
65
110
|
background-color: transparent;
|
|
66
111
|
color: hsl(var(--color-info));
|
|
67
112
|
}
|
|
113
|
+
.mg-tag.mg-tag--info.mg-tag--soft {
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
background-color: hsl(var(--color-info-h), var(--color-info-s), 90%);
|
|
116
|
+
border-color: hsl(var(--color-info-h), var(--color-info-s), 90%);
|
|
117
|
+
color: hsl(var(--color-dark));
|
|
118
|
+
}
|
|
119
|
+
.mg-tag.mg-tag--info.mg-tag--soft ::slotted(mg-icon) {
|
|
120
|
+
color: hsl(var(--color-info));
|
|
121
|
+
}
|
|
68
122
|
|
|
69
123
|
.mg-tag,
|
|
70
124
|
mg-tag {
|
|
71
125
|
display: inline-block;
|
|
72
126
|
vertical-align: middle;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
::slotted(mg-icon) {
|
|
130
|
+
margin-right: 0.4rem;
|
|
73
131
|
}
|