@maggioli-design-system/mds-push-notification 2.2.0 → 2.3.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/mds-push-notification.cjs.entry.js +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +121 -2
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- package/dist/mds-push-notification/mds-push-notification.esm.js +1 -1
- package/dist/mds-push-notification/p-5e9cbc6e.entry.js +6 -0
- package/dist/mds-push-notification/p-764f675d.system.entry.js +6 -0
- package/dist/mds-push-notification/p-be470da4.system.js +1 -1
- package/dist/stats.json +22 -16
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +21 -1
- package/package.json +5 -5
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-push-notification/mds-push-notification.css +1 -0
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -0
- package/src/tailwind/fouc.css +118 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-push-notification.esm.js +1 -1
- package/www/build/p-5e9cbc6e.entry.js +6 -0
- package/www/build/p-764f675d.system.entry.js +6 -0
- package/www/build/p-be470da4.system.js +1 -1
- package/dist/mds-push-notification/p-1c60e347.entry.js +0 -6
- package/dist/mds-push-notification/p-4ff55f8a.system.entry.js +0 -6
- package/www/build/p-1c60e347.entry.js +0 -6
- package/www/build/p-4ff55f8a.system.entry.js +0 -6
|
@@ -1001,7 +1001,7 @@ const sanitizeISO8601Date = (dateString) => {
|
|
|
1001
1001
|
return new Date(dateString).toISOString();
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
|
-
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n";
|
|
1004
|
+
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n";
|
|
1005
1005
|
const MdsPushNotificationStyle0 = mdsPushNotificationCss;
|
|
1006
1006
|
|
|
1007
1007
|
dayjs.extend(relativeTime);
|
|
@@ -143,12 +143,12 @@ export class FloatingController {
|
|
|
143
143
|
}
|
|
144
144
|
export class Backdrop {
|
|
145
145
|
constructor(backdropId) {
|
|
146
|
-
this.defaultBackdropId = '
|
|
146
|
+
this.defaultBackdropId = 'magma-backdrop';
|
|
147
147
|
this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
|
|
148
148
|
this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
|
|
149
149
|
this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
|
|
150
|
-
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
|
|
151
|
-
this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
|
|
150
|
+
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index, 4000)`;
|
|
151
|
+
this.cssBackdropDuration = `var(--${this.backdropId}-animation-duration, 300ms)`;
|
|
152
152
|
}
|
|
153
153
|
attachBackdrop() {
|
|
154
154
|
if (!this.backdropEl) {
|
|
@@ -16,4 +16,13 @@ const hasSlottedNodes = (el, name) => {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const hasSlotted = (el, name) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
|
22
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
|
23
|
+
if (slot) {
|
|
24
|
+
return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
};
|
|
28
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const levenshteinDistance = (a, b) => {
|
|
2
|
+
const dp = Array.from({ length: a.length + 1 }, (_, i) =>
|
|
3
|
+
// eslint-disable-next-line no-nested-ternary
|
|
4
|
+
Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
|
|
5
|
+
for (let i = 1; i <= a.length; i++) {
|
|
6
|
+
for (let j = 1; j <= b.length; j++) {
|
|
7
|
+
if (a[i - 1] === b[j - 1]) {
|
|
8
|
+
dp[i][j] = dp[i - 1][j - 1];
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return dp[a.length][b.length];
|
|
16
|
+
};
|
|
17
|
+
const closest = (input, validCodes) => {
|
|
18
|
+
let [closest] = validCodes;
|
|
19
|
+
let minDistance = levenshteinDistance(input, closest);
|
|
20
|
+
for (const code of validCodes) {
|
|
21
|
+
const distance = levenshteinDistance(input, code);
|
|
22
|
+
if (distance < minDistance) {
|
|
23
|
+
minDistance = distance;
|
|
24
|
+
closest = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return closest;
|
|
28
|
+
};
|
|
29
|
+
const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
30
|
+
export { closest, firstLetterUppercase, levenshteinDistance, };
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
--mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);
|
|
124
124
|
|
|
125
|
-
line-height:
|
|
125
|
+
line-height: 0.875rem;
|
|
126
126
|
text-overflow: ellipsis;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
|
|
131
131
|
--mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);
|
|
132
132
|
|
|
133
|
-
line-height:
|
|
133
|
+
line-height: 0.875rem;
|
|
134
134
|
text-overflow: ellipsis;
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -509,3 +509,122 @@
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
:host(:not(:is([hydrated], .hydrated))) {
|
|
513
|
+
animation-duration: 0s;
|
|
514
|
+
border-color: transparent;
|
|
515
|
+
box-shadow: 0 0 0 transparent;
|
|
516
|
+
opacity: 0;
|
|
517
|
+
outline-color: transparent;
|
|
518
|
+
transition-delay: 0s;
|
|
519
|
+
transition-duration: 0s;
|
|
520
|
+
visibility: hidden;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
|
|
524
|
+
|
|
525
|
+
mds-accordion:not(:is([hydrated], .hydrated)),
|
|
526
|
+
mds-accordion-item:not(:is([hydrated], .hydrated)),
|
|
527
|
+
mds-accordion-timer:not(:is([hydrated], .hydrated)),
|
|
528
|
+
mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
|
|
529
|
+
mds-author:not(:is([hydrated], .hydrated)),
|
|
530
|
+
mds-avatar:not(:is([hydrated], .hydrated)),
|
|
531
|
+
mds-badge:not(:is([hydrated], .hydrated)),
|
|
532
|
+
mds-banner:not(:is([hydrated], .hydrated)),
|
|
533
|
+
mds-benchmark-bar:not(:is([hydrated], .hydrated)),
|
|
534
|
+
mds-bibliography:not(:is([hydrated], .hydrated)),
|
|
535
|
+
mds-breadcrumb:not(:is([hydrated], .hydrated)),
|
|
536
|
+
mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
|
|
537
|
+
mds-button:not(:is([hydrated], .hydrated)),
|
|
538
|
+
mds-card:not(:is([hydrated], .hydrated)),
|
|
539
|
+
mds-card-content:not(:is([hydrated], .hydrated)),
|
|
540
|
+
mds-card-footer:not(:is([hydrated], .hydrated)),
|
|
541
|
+
mds-card-header:not(:is([hydrated], .hydrated)),
|
|
542
|
+
mds-card-media:not(:is([hydrated], .hydrated)),
|
|
543
|
+
mds-chip:not(:is([hydrated], .hydrated)),
|
|
544
|
+
mds-details:not(:is([hydrated], .hydrated)),
|
|
545
|
+
mds-dropdown:not(:is([hydrated], .hydrated)),
|
|
546
|
+
mds-entity:not(:is([hydrated], .hydrated)),
|
|
547
|
+
mds-file:not(:is([hydrated], .hydrated)),
|
|
548
|
+
mds-file-preview:not(:is([hydrated], .hydrated)),
|
|
549
|
+
mds-filter:not(:is([hydrated], .hydrated)),
|
|
550
|
+
mds-filter-item:not(:is([hydrated], .hydrated)),
|
|
551
|
+
mds-header:not(:is([hydrated], .hydrated)),
|
|
552
|
+
mds-header-bar:not(:is([hydrated], .hydrated)),
|
|
553
|
+
mds-help:not(:is([hydrated], .hydrated)),
|
|
554
|
+
mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
|
|
555
|
+
mds-hr:not(:is([hydrated], .hydrated)),
|
|
556
|
+
mds-icon:not(:is([hydrated], .hydrated)),
|
|
557
|
+
mds-img:not(:is([hydrated], .hydrated)),
|
|
558
|
+
mds-input:not(:is([hydrated], .hydrated)),
|
|
559
|
+
mds-input-field:not(:is([hydrated], .hydrated)),
|
|
560
|
+
mds-input-range:not(:is([hydrated], .hydrated)),
|
|
561
|
+
mds-input-select:not(:is([hydrated], .hydrated)),
|
|
562
|
+
mds-input-switch:not(:is([hydrated], .hydrated)),
|
|
563
|
+
mds-input-tip:not(:is([hydrated], .hydrated)),
|
|
564
|
+
mds-input-tip-item:not(:is([hydrated], .hydrated)),
|
|
565
|
+
mds-input-upload:not(:is([hydrated], .hydrated)),
|
|
566
|
+
mds-keyboard:not(:is([hydrated], .hydrated)),
|
|
567
|
+
mds-keyboard-key:not(:is([hydrated], .hydrated)),
|
|
568
|
+
mds-kpi:not(:is([hydrated], .hydrated)),
|
|
569
|
+
mds-kpi-item:not(:is([hydrated], .hydrated)),
|
|
570
|
+
mds-label:not(:is([hydrated], .hydrated)),
|
|
571
|
+
mds-list:not(:is([hydrated], .hydrated)),
|
|
572
|
+
mds-list-item:not(:is([hydrated], .hydrated)),
|
|
573
|
+
mds-modal:not(:is([hydrated], .hydrated)),
|
|
574
|
+
mds-note:not(:is([hydrated], .hydrated)),
|
|
575
|
+
mds-notification:not(:is([hydrated], .hydrated)),
|
|
576
|
+
mds-paginator:not(:is([hydrated], .hydrated)),
|
|
577
|
+
mds-paginator-item:not(:is([hydrated], .hydrated)),
|
|
578
|
+
mds-pref:not(:is([hydrated], .hydrated)),
|
|
579
|
+
mds-pref-animation:not(:is([hydrated], .hydrated)),
|
|
580
|
+
mds-pref-consumption:not(:is([hydrated], .hydrated)),
|
|
581
|
+
mds-pref-contrast:not(:is([hydrated], .hydrated)),
|
|
582
|
+
mds-pref-language:not(:is([hydrated], .hydrated)),
|
|
583
|
+
mds-pref-language-item:not(:is([hydrated], .hydrated)),
|
|
584
|
+
mds-pref-theme:not(:is([hydrated], .hydrated)),
|
|
585
|
+
mds-price-table:not(:is([hydrated], .hydrated)),
|
|
586
|
+
mds-price-table-features:not(:is([hydrated], .hydrated)),
|
|
587
|
+
mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
|
|
588
|
+
mds-price-table-features-row:not(:is([hydrated], .hydrated)),
|
|
589
|
+
mds-price-table-header:not(:is([hydrated], .hydrated)),
|
|
590
|
+
mds-price-table-list:not(:is([hydrated], .hydrated)),
|
|
591
|
+
mds-price-table-list-item:not(:is([hydrated], .hydrated)),
|
|
592
|
+
mds-progress:not(:is([hydrated], .hydrated)),
|
|
593
|
+
mds-push-notification:not(:is([hydrated], .hydrated)),
|
|
594
|
+
mds-push-notifications:not(:is([hydrated], .hydrated)),
|
|
595
|
+
mds-quote:not(:is([hydrated], .hydrated)),
|
|
596
|
+
mds-separator:not(:is([hydrated], .hydrated)),
|
|
597
|
+
mds-spinner:not(:is([hydrated], .hydrated)),
|
|
598
|
+
mds-stepper-bar:not(:is([hydrated], .hydrated)),
|
|
599
|
+
mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
|
|
600
|
+
mds-tab:not(:is([hydrated], .hydrated)),
|
|
601
|
+
mds-tab-bar:not(:is([hydrated], .hydrated)),
|
|
602
|
+
mds-tab-bar-item:not(:is([hydrated], .hydrated)),
|
|
603
|
+
mds-tab-item:not(:is([hydrated], .hydrated)),
|
|
604
|
+
mds-table:not(:is([hydrated], .hydrated)),
|
|
605
|
+
mds-table-body:not(:is([hydrated], .hydrated)),
|
|
606
|
+
mds-table-cell:not(:is([hydrated], .hydrated)),
|
|
607
|
+
mds-table-footer:not(:is([hydrated], .hydrated)),
|
|
608
|
+
mds-table-header:not(:is([hydrated], .hydrated)),
|
|
609
|
+
mds-table-header-cell:not(:is([hydrated], .hydrated)),
|
|
610
|
+
mds-table-row:not(:is([hydrated], .hydrated)),
|
|
611
|
+
mds-text:not(:is([hydrated], .hydrated)),
|
|
612
|
+
mds-toast:not(:is([hydrated], .hydrated)),
|
|
613
|
+
mds-tooltip:not(:is([hydrated], .hydrated)),
|
|
614
|
+
mds-tree:not(:is([hydrated], .hydrated)),
|
|
615
|
+
mds-tree-item:not(:is([hydrated], .hydrated)),
|
|
616
|
+
mds-url-view:not(:is([hydrated], .hydrated)),
|
|
617
|
+
mds-usage:not(:is([hydrated], .hydrated)),
|
|
618
|
+
mds-video-wall:not(:is([hydrated], .hydrated)),
|
|
619
|
+
mds-zero:not(:is([hydrated], .hydrated))
|
|
620
|
+
{
|
|
621
|
+
animation-duration: 0s;
|
|
622
|
+
border-color: transparent;
|
|
623
|
+
box-shadow: 0 0 0 transparent;
|
|
624
|
+
opacity: 0;
|
|
625
|
+
outline-color: transparent;
|
|
626
|
+
transition-delay: 0s;
|
|
627
|
+
transition-duration: 0s;
|
|
628
|
+
visibility: hidden;
|
|
629
|
+
}
|
|
630
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const keyboardKeyNameDictionary = [
|
|
2
|
+
'0',
|
|
3
|
+
'1',
|
|
4
|
+
'2',
|
|
5
|
+
'3',
|
|
6
|
+
'4',
|
|
7
|
+
'5',
|
|
8
|
+
'6',
|
|
9
|
+
'7',
|
|
10
|
+
'8',
|
|
11
|
+
'9',
|
|
12
|
+
'a',
|
|
13
|
+
'alt',
|
|
14
|
+
'altleft',
|
|
15
|
+
'altright',
|
|
16
|
+
'arrowdown',
|
|
17
|
+
'arrowleft',
|
|
18
|
+
'arrowright',
|
|
19
|
+
'arrowup',
|
|
20
|
+
'b',
|
|
21
|
+
'backspace',
|
|
22
|
+
'c',
|
|
23
|
+
'capslock',
|
|
24
|
+
'command',
|
|
25
|
+
'commandleft',
|
|
26
|
+
'commandright',
|
|
27
|
+
'control',
|
|
28
|
+
'controlleft',
|
|
29
|
+
'controlright',
|
|
30
|
+
'd',
|
|
31
|
+
'delete',
|
|
32
|
+
'e',
|
|
33
|
+
'end',
|
|
34
|
+
'enter',
|
|
35
|
+
'escape',
|
|
36
|
+
'f',
|
|
37
|
+
'f1',
|
|
38
|
+
'f10',
|
|
39
|
+
'f11',
|
|
40
|
+
'f12',
|
|
41
|
+
'f2',
|
|
42
|
+
'f3',
|
|
43
|
+
'f4',
|
|
44
|
+
'f5',
|
|
45
|
+
'f6',
|
|
46
|
+
'f7',
|
|
47
|
+
'f8',
|
|
48
|
+
'f9',
|
|
49
|
+
'g',
|
|
50
|
+
'h',
|
|
51
|
+
'home',
|
|
52
|
+
'i',
|
|
53
|
+
'j',
|
|
54
|
+
'k',
|
|
55
|
+
'l',
|
|
56
|
+
'm',
|
|
57
|
+
'n',
|
|
58
|
+
'o',
|
|
59
|
+
'option',
|
|
60
|
+
'optionleft',
|
|
61
|
+
'optionright',
|
|
62
|
+
'p',
|
|
63
|
+
'pagedown',
|
|
64
|
+
'pageup',
|
|
65
|
+
'q',
|
|
66
|
+
'r',
|
|
67
|
+
's',
|
|
68
|
+
'shift',
|
|
69
|
+
'shiftleft',
|
|
70
|
+
'shiftright',
|
|
71
|
+
'space',
|
|
72
|
+
't',
|
|
73
|
+
'tab',
|
|
74
|
+
'u',
|
|
75
|
+
'v',
|
|
76
|
+
'w',
|
|
77
|
+
'windows',
|
|
78
|
+
'windowsleft',
|
|
79
|
+
'windowsright',
|
|
80
|
+
'x',
|
|
81
|
+
'y',
|
|
82
|
+
'z',
|
|
83
|
+
];
|
|
84
|
+
export { keyboardKeyNameDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -997,7 +997,7 @@ const sanitizeISO8601Date = (dateString) => {
|
|
|
997
997
|
return new Date(dateString).toISOString();
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
|
-
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n";
|
|
1000
|
+
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n";
|
|
1001
1001
|
const MdsPushNotificationStyle0 = mdsPushNotificationCss;
|
|
1002
1002
|
|
|
1003
1003
|
dayjs.extend(relativeTime);
|
package/dist/documentation.json
CHANGED
|
@@ -997,7 +997,7 @@ const sanitizeISO8601Date = (dateString) => {
|
|
|
997
997
|
return new Date(dateString).toISOString();
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
|
-
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n";
|
|
1000
|
+
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 0.875rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\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 .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n";
|
|
1001
1001
|
const MdsPushNotificationStyle0 = mdsPushNotificationCss;
|
|
1002
1002
|
|
|
1003
1003
|
dayjs.extend(relativeTime);
|