@vonage/vivid 3.0.0-next.3 → 3.0.0-next.32
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/README.md +49 -4
- package/accordion/index.js +61 -0
- package/accordion-item/index.js +133 -0
- package/action-group/index.js +49 -0
- package/badge/index.js +27 -22
- package/banner/index.js +148 -0
- package/breadcrumb/index.js +41 -150
- package/breadcrumb-item/index.js +18 -8
- package/button/index.js +40 -663
- package/calendar/index.js +1550 -0
- package/calendar-event/index.js +117 -0
- package/card/index.js +134 -0
- package/checkbox/index.js +176 -0
- package/dialog/index.js +277 -0
- package/divider/index.js +88 -0
- package/elevation/index.js +4 -38
- package/fab/index.js +101 -0
- package/focus/index.js +20 -3
- package/header/index.js +68 -0
- package/icon/index.js +40 -5
- package/index.d.ts +1 -0
- package/index.js +50 -14
- package/layout/index.js +5 -5
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +4 -0
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/badge/badge.d.ts +8 -8
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +2 -0
- package/lib/button/button.d.ts +9 -8
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +23 -5
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +2 -1
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +14 -7
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -5
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +17 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +7 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/sidenav/index.d.ts +2 -0
- package/lib/sidenav/sidenav.d.ts +3 -0
- package/lib/sidenav/sidenav.template.d.ts +4 -0
- package/lib/sidenav-item/index.d.ts +1 -0
- package/lib/sidenav-item/sidenav-item.d.ts +4 -5
- package/lib/text/index.d.ts +2 -0
- package/lib/text/text.d.ts +10 -0
- package/lib/text/text.template.d.ts +4 -0
- package/lib/text-anchor/text-anchor.d.ts +4 -1
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +23 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/note/index.js +68 -0
- package/package.json +39 -6
- package/popup/index.js +2118 -0
- package/progress/index.js +107 -0
- package/progress-ring/index.js +82 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +10 -25
- package/shared/anchor.js +10 -3
- package/shared/aria-global.js +20 -20
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +2 -2
- package/shared/button.js +195 -0
- package/shared/calendar-event.js +26 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/export.js +972 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +548 -0
- package/shared/icon.js +1389 -0
- package/shared/index.js +4940 -1426
- package/shared/index2.js +27 -4901
- package/shared/iterators.js +61 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +3 -4
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/slotted.js +119 -0
- package/shared/text-anchor.js +12 -0
- package/shared/text-anchor.template.js +16 -6
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +46 -1059
- package/shared/when.js +15 -0
- package/side-drawer/index.js +82 -0
- package/sidenav/index.js +17 -0
- package/sidenav-item/index.js +24 -61
- package/styles/themes/dark.css +16 -4
- package/styles/themes/light.css +16 -4
- package/text/index.js +48 -0
- package/text-anchor/index.js +13 -13
- package/text-field/index.js +411 -0
- package/tooltip/index.js +70 -0
- package/shared/index3.js +0 -21
package/shared/when.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A directive that enables basic conditional rendering in a template.
|
|
3
|
+
* @param binding - The condition to test for rendering.
|
|
4
|
+
* @param templateOrTemplateBinding - The template or a binding that gets
|
|
5
|
+
* the template to render when the condition is true.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
function when(binding, templateOrTemplateBinding) {
|
|
9
|
+
const getTemplate = typeof templateOrTemplateBinding === "function"
|
|
10
|
+
? templateOrTemplateBinding
|
|
11
|
+
: () => templateOrTemplateBinding;
|
|
12
|
+
return (source, context) => binding(source, context) ? getTemplate(source, context) : null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { when as w };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
3
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
|
+
import { w as when } from '../shared/when.js';
|
|
5
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
6
|
+
import '../shared/export.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
9
|
+
|
|
10
|
+
class SideDrawer extends FoundationElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.alternate = false;
|
|
14
|
+
this.modal = false;
|
|
15
|
+
this.open = false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
__decorate([attr({
|
|
21
|
+
mode: 'boolean'
|
|
22
|
+
}), __metadata("design:type", Object)], SideDrawer.prototype, "alternate", void 0);
|
|
23
|
+
|
|
24
|
+
__decorate([attr({
|
|
25
|
+
mode: 'boolean'
|
|
26
|
+
}), __metadata("design:type", Object)], SideDrawer.prototype, "modal", void 0);
|
|
27
|
+
|
|
28
|
+
__decorate([attr({
|
|
29
|
+
mode: 'boolean'
|
|
30
|
+
}), __metadata("design:type", Object)], SideDrawer.prototype, "open", void 0);
|
|
31
|
+
|
|
32
|
+
__decorate([attr, __metadata("design:type", String)], SideDrawer.prototype, "position", void 0);
|
|
33
|
+
|
|
34
|
+
var css_248z = ".control {\n position: fixed;\n z-index: 1;\n background-color: var(--vvd-color-canvas);\n color: var(--vvd-color-on-canvas);\n inline-size: 280px;\n inset-block: 0;\n overflow-y: auto;\n}\n.control.alternate {\n background-color: var(--vvd-color-canvas);\n}\n.control.position-end {\n inset-inline-end: 0;\n}\n.control:not(.open).position-end {\n transform: translateX(100%);\n}\n.control:not(.open):not(.position-end) {\n transform: translateX(-100%);\n}\n.control.open:not(.modal).position-end + .side-drawer-app-content {\n margin-inline-end: var(--side-drawer-app-content-offset, 280px);\n}\n.control.open:not(.modal):not(.position-end) + .side-drawer-app-content {\n margin-inline-start: var(--side-drawer-app-content-offset, 280px);\n}\n@media (prefers-reduced-motion: no-preference) {\n .control {\n transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n }\n}\n\n.scrim {\n background-color: var(--vvd-color-on-canvas);\n opacity: 0.5;\n position: fixed;\n inset: 0;\n}\n.scrim:not(.open) {\n display: none;\n}";
|
|
35
|
+
styleInject(css_248z);
|
|
36
|
+
|
|
37
|
+
let _ = t => t,
|
|
38
|
+
_t,
|
|
39
|
+
_t2;
|
|
40
|
+
|
|
41
|
+
const getClasses = ({
|
|
42
|
+
alternate,
|
|
43
|
+
modal,
|
|
44
|
+
open,
|
|
45
|
+
position
|
|
46
|
+
}) => classNames('control', ['alternate', alternate], ['modal', modal], ['open', open], [`position-${position}`, Boolean(position)]);
|
|
47
|
+
|
|
48
|
+
const getScrimClasses = ({
|
|
49
|
+
open
|
|
50
|
+
}) => classNames('scrim', ['open', open]);
|
|
51
|
+
|
|
52
|
+
const sideDrawerTemplate = () => html(_t || (_t = _`
|
|
53
|
+
<aside class="${0}" part="base ${0}"
|
|
54
|
+
@keydown="${0}">
|
|
55
|
+
<slot></slot>
|
|
56
|
+
</aside>
|
|
57
|
+
|
|
58
|
+
<div class="side-drawer-app-content" ?inert="${0}">
|
|
59
|
+
<slot name="app-content"></slot>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
${0}
|
|
63
|
+
`), getClasses, x => x.alternate ? 'vvd-theme-alternate' : '', (x, c) => handleKeydown(x, c.event), x => x.open && x.modal, when(x => x.modal, html(_t2 || (_t2 = _`<div class="${0}" @click="${0}"></div>`), getScrimClasses, x => x.open = false)));
|
|
64
|
+
|
|
65
|
+
const handleKeydown = (x, {
|
|
66
|
+
key
|
|
67
|
+
}) => {
|
|
68
|
+
if (key === 'Escape') {
|
|
69
|
+
x.open = false;
|
|
70
|
+
} else {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const vividSideDrawer = SideDrawer.compose({
|
|
76
|
+
baseName: 'side-drawer',
|
|
77
|
+
template: sideDrawerTemplate,
|
|
78
|
+
styles: css_248z
|
|
79
|
+
});
|
|
80
|
+
designSystem.register(vividSideDrawer());
|
|
81
|
+
|
|
82
|
+
export { vividSideDrawer };
|
package/sidenav/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { F as FoundationElement, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
|
|
3
|
+
class Sidenav extends FoundationElement {}
|
|
4
|
+
|
|
5
|
+
let _ = t => t,
|
|
6
|
+
_t;
|
|
7
|
+
const SidenavTemplate = () => html(_t || (_t = _`
|
|
8
|
+
<nav><slot></slot></nav>
|
|
9
|
+
`));
|
|
10
|
+
|
|
11
|
+
const vividSidenav = Sidenav.compose({
|
|
12
|
+
baseName: 'sidenav',
|
|
13
|
+
template: SidenavTemplate
|
|
14
|
+
});
|
|
15
|
+
designSystem.register(vividSidenav());
|
|
16
|
+
|
|
17
|
+
export { vividSidenav };
|
package/sidenav-item/index.js
CHANGED
|
@@ -1,78 +1,41 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import
|
|
1
|
+
import '../icon/index.js';
|
|
2
|
+
import '../focus/index.js';
|
|
3
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
3
4
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
|
-
import '../shared/
|
|
5
|
-
import {
|
|
6
|
-
import { A as Anchor } from '../shared/anchor.js';
|
|
5
|
+
import { b as AffixIcon } from '../shared/affix.js';
|
|
6
|
+
import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
|
-
import {
|
|
8
|
+
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
9
|
+
import '../shared/icon.js';
|
|
10
|
+
import '../shared/export.js';
|
|
11
|
+
import '../shared/iterators.js';
|
|
12
|
+
import '../shared/to-string.js';
|
|
13
|
+
import '../shared/_has.js';
|
|
14
|
+
import '../shared/when.js';
|
|
15
|
+
import '../shared/class-names.js';
|
|
16
|
+
import '../shared/focus.js';
|
|
17
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
18
|
+
import '../shared/object-keys.js';
|
|
19
|
+
import '../shared/anchor.js';
|
|
9
20
|
import '../shared/aria-global.js';
|
|
21
|
+
import '../shared/focus2.js';
|
|
10
22
|
|
|
11
|
-
var css_248z = "/*\n Do not edit directly\n Generated on
|
|
23
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n gap: 8px;\n -webkit-hyphens: auto;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: 40px;\n padding-block: 10px;\n padding-inline: 8px;\n text-decoration: none;\n vertical-align: middle;\n word-break: break-word;\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-faint: var(--vvd-color-neutral-10);\n --_connotation-color-soft: var(--vvd-color-neutral-20);\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control.icon-only {\n display: flex;\n block-size: 40px;\n inline-size: 40px;\n place-content: center;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}";
|
|
12
24
|
styleInject(css_248z);
|
|
13
25
|
|
|
14
|
-
class SidenavItem extends
|
|
15
|
-
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.text = '';
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
__decorate([attr, __metadata("design:type", Object)], SidenavItem.prototype, "text", void 0);
|
|
23
|
-
|
|
24
|
-
applyMixins(SidenavItem, Prefix);
|
|
26
|
+
class SidenavItem extends TextAnchor {}
|
|
27
|
+
applyMixins(SidenavItem, AffixIcon);
|
|
25
28
|
|
|
26
29
|
let _ = t => t,
|
|
27
30
|
_t;
|
|
28
|
-
|
|
29
|
-
const getClasses = ({
|
|
30
|
-
text,
|
|
31
|
-
icon
|
|
32
|
-
}) => classNames('control', ['icon-only', !text && !!icon]);
|
|
33
|
-
|
|
34
|
-
const SidenavItemTemplate = context => html(_t || (_t = _`<a
|
|
35
|
-
class="${0}"
|
|
36
|
-
download="${0}"
|
|
37
|
-
href="${0}"
|
|
38
|
-
hreflang="${0}"
|
|
39
|
-
ping="${0}"
|
|
40
|
-
referrerpolicy="${0}"
|
|
41
|
-
rel="${0}"
|
|
42
|
-
target="${0}"
|
|
43
|
-
type="${0}"
|
|
44
|
-
aria-atomic="${0}"
|
|
45
|
-
aria-busy="${0}"
|
|
46
|
-
aria-controls="${0}"
|
|
47
|
-
aria-current="${0}"
|
|
48
|
-
aria-describedBy="${0}"
|
|
49
|
-
aria-details="${0}"
|
|
50
|
-
aria-disabled="${0}"
|
|
51
|
-
aria-errormessage="${0}"
|
|
52
|
-
aria-expanded="${0}"
|
|
53
|
-
aria-flowto="${0}"
|
|
54
|
-
aria-haspopup="${0}"
|
|
55
|
-
aria-hidden="${0}"
|
|
56
|
-
aria-invalid="${0}"
|
|
57
|
-
aria-keyshortcuts="${0}"
|
|
58
|
-
aria-label="${0}"
|
|
59
|
-
aria-labelledby="${0}"
|
|
60
|
-
aria-live="${0}"
|
|
61
|
-
aria-owns="${0}"
|
|
62
|
-
aria-relevant="${0}"
|
|
63
|
-
aria-roledescription="${0}"
|
|
64
|
-
>
|
|
65
|
-
${0}
|
|
31
|
+
const SidenavItemTemplate = (context, definition) => html(_t || (_t = _`
|
|
66
32
|
${0}
|
|
67
|
-
|
|
33
|
+
`), textAnchorTemplate(context));
|
|
68
34
|
|
|
69
35
|
const vividSidenavItem = SidenavItem.compose({
|
|
70
36
|
baseName: 'sidenav-item',
|
|
71
37
|
template: SidenavItemTemplate,
|
|
72
|
-
styles: css_248z
|
|
73
|
-
shadowOptions: {
|
|
74
|
-
delegatesFocus: true
|
|
75
|
-
}
|
|
38
|
+
styles: css_248z
|
|
76
39
|
});
|
|
77
40
|
designSystem.register(vividSidenavItem());
|
|
78
41
|
|
package/styles/themes/dark.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
--vvd-color-cta-20: rgb(68,2,145);
|
|
45
45
|
--vvd-color-cta-30: rgb(100,5,209);
|
|
46
46
|
--vvd-color-cta-70: rgb(203,161,250);
|
|
47
|
+
--vvd-color-cta-80: rgb(220,193,252);
|
|
47
48
|
--vvd-color-cta-90: rgb(236,226,250);
|
|
48
49
|
--vvd-color-success: rgb(48,168,73);
|
|
49
50
|
--vvd-color-on-success: rgb(0,0,0);
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
--vvd-color-success-20: rgb(24,58,30);
|
|
52
53
|
--vvd-color-success-30: rgb(21,89,35);
|
|
53
54
|
--vvd-color-success-70: rgb(83,202,106);
|
|
55
|
+
--vvd-color-success-80: rgb(134,224,144);
|
|
54
56
|
--vvd-color-success-90: rgb(207,238,212);
|
|
55
57
|
--vvd-color-alert: rgb(247,89,89);
|
|
56
58
|
--vvd-color-on-alert: rgb(0,0,0);
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
--vvd-color-alert-20: rgb(110,0,0);
|
|
59
61
|
--vvd-color-alert-30: rgb(159,2,2);
|
|
60
62
|
--vvd-color-alert-70: rgb(254,150,150);
|
|
63
|
+
--vvd-color-alert-80: rgb(255,187,187);
|
|
61
64
|
--vvd-color-alert-90: rgb(254,223,223);
|
|
62
65
|
--vvd-color-warning: rgb(224,121,2);
|
|
63
66
|
--vvd-color-on-warning: rgb(0,0,0);
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
--vvd-color-warning-20: rgb(82,40,1);
|
|
66
69
|
--vvd-color-warning-30: rgb(128,56,7);
|
|
67
70
|
--vvd-color-warning-70: rgb(250,159,0);
|
|
71
|
+
--vvd-color-warning-80: rgb(255,195,33);
|
|
68
72
|
--vvd-color-warning-90: rgb(253,231,109);
|
|
69
73
|
--vvd-color-info: rgb(41,151,240);
|
|
70
74
|
--vvd-color-on-info: rgb(0,0,0);
|
|
@@ -72,6 +76,7 @@
|
|
|
72
76
|
--vvd-color-info-20: rgb(14,48,109);
|
|
73
77
|
--vvd-color-info-30: rgb(9,74,158);
|
|
74
78
|
--vvd-color-info-70: rgb(101,186,255);
|
|
79
|
+
--vvd-color-info-80: rgb(157,210,254);
|
|
75
80
|
--vvd-color-info-90: rgb(211,233,252);
|
|
76
81
|
--vvd-color-announcement: rgb(229,96,187);
|
|
77
82
|
--vvd-color-on-announcement: rgb(0,0,0);
|
|
@@ -79,6 +84,7 @@
|
|
|
79
84
|
--vvd-color-announcement-20: rgb(98,2,86);
|
|
80
85
|
--vvd-color-announcement-30: rgb(143,22,105);
|
|
81
86
|
--vvd-color-announcement-70: rgb(251,143,216);
|
|
87
|
+
--vvd-color-announcement-80: rgb(248,185,231);
|
|
82
88
|
--vvd-color-announcement-90: rgb(255,220,247);
|
|
83
89
|
--vvd-shadow-surface-0dp: drop-shadow(1px 0 0 rgba(77, 77, 77, 1)) drop-shadow(0 1px 0 rgba(77, 77, 77, 1)) drop-shadow(0 -1px 0 rgba(77, 77, 77, 1)) drop-shadow(-1px 0 0 rgba(77, 77, 77, 1));
|
|
84
90
|
--vvd-shadow-surface-2dp: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
|
|
@@ -88,9 +94,9 @@
|
|
|
88
94
|
--vvd-shadow-surface-16dp: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.25)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
|
|
89
95
|
--vvd-shadow-surface-24dp: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.25)) drop-shadow(0 24px 32px rgba(0, 0, 0, 0.25)) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.25));
|
|
90
96
|
}
|
|
91
|
-
@supports (color-
|
|
97
|
+
@supports (color-scheme: dark) {
|
|
92
98
|
:root, .vvd-theme-main, ::part(vvd-theme-main) {
|
|
93
|
-
color-
|
|
99
|
+
color-scheme: dark;
|
|
94
100
|
}
|
|
95
101
|
}
|
|
96
102
|
|
|
@@ -140,6 +146,7 @@
|
|
|
140
146
|
--vvd-color-cta-20: rgb(236,226,250);
|
|
141
147
|
--vvd-color-cta-30: rgb(220,193,252);
|
|
142
148
|
--vvd-color-cta-70: rgb(135,30,255);
|
|
149
|
+
--vvd-color-cta-80: rgb(100,5,209);
|
|
143
150
|
--vvd-color-cta-90: rgb(68,2,145);
|
|
144
151
|
--vvd-color-success: rgb(28,135,49);
|
|
145
152
|
--vvd-color-on-success: rgb(255,255,255);
|
|
@@ -147,6 +154,7 @@
|
|
|
147
154
|
--vvd-color-success-20: rgb(207,238,212);
|
|
148
155
|
--vvd-color-success-30: rgb(134,224,144);
|
|
149
156
|
--vvd-color-success-70: rgb(22,118,41);
|
|
157
|
+
--vvd-color-success-80: rgb(21,89,35);
|
|
150
158
|
--vvd-color-success-90: rgb(24,58,30);
|
|
151
159
|
--vvd-color-alert: rgb(230,29,29);
|
|
152
160
|
--vvd-color-on-alert: rgb(255,255,255);
|
|
@@ -154,6 +162,7 @@
|
|
|
154
162
|
--vvd-color-alert-20: rgb(254,223,223);
|
|
155
163
|
--vvd-color-alert-30: rgb(255,187,187);
|
|
156
164
|
--vvd-color-alert-70: rgb(205,13,13);
|
|
165
|
+
--vvd-color-alert-80: rgb(159,2,2);
|
|
157
166
|
--vvd-color-alert-90: rgb(110,0,0);
|
|
158
167
|
--vvd-color-warning: rgb(250,159,0);
|
|
159
168
|
--vvd-color-on-warning: rgb(0,0,0);
|
|
@@ -161,6 +170,7 @@
|
|
|
161
170
|
--vvd-color-warning-20: rgb(253,231,109);
|
|
162
171
|
--vvd-color-warning-30: rgb(255,195,33);
|
|
163
172
|
--vvd-color-warning-70: rgb(166,76,3);
|
|
173
|
+
--vvd-color-warning-80: rgb(128,56,7);
|
|
164
174
|
--vvd-color-warning-90: rgb(82,40,1);
|
|
165
175
|
--vvd-color-info: rgb(2,118,213);
|
|
166
176
|
--vvd-color-on-info: rgb(255,255,255);
|
|
@@ -168,6 +178,7 @@
|
|
|
168
178
|
--vvd-color-info-20: rgb(211,233,252);
|
|
169
179
|
--vvd-color-info-30: rgb(157,210,254);
|
|
170
180
|
--vvd-color-info-70: rgb(14,101,194);
|
|
181
|
+
--vvd-color-info-80: rgb(9,74,158);
|
|
171
182
|
--vvd-color-info-90: rgb(14,48,109);
|
|
172
183
|
--vvd-color-announcement: rgb(214,33,156);
|
|
173
184
|
--vvd-color-on-announcement: rgb(255,255,255);
|
|
@@ -175,6 +186,7 @@
|
|
|
175
186
|
--vvd-color-announcement-20: rgb(255,220,247);
|
|
176
187
|
--vvd-color-announcement-30: rgb(248,185,231);
|
|
177
188
|
--vvd-color-announcement-70: rgb(187,30,137);
|
|
189
|
+
--vvd-color-announcement-80: rgb(143,22,105);
|
|
178
190
|
--vvd-color-announcement-90: rgb(98,2,86);
|
|
179
191
|
--vvd-shadow-surface-0dp: drop-shadow(1px 0 0 rgba(204, 204, 204, 1)) drop-shadow(0 1px 0 rgba(204, 204, 204, 1)) drop-shadow(0 -1px 0 rgba(204, 204, 204, 1)) drop-shadow(-1px 0 0 rgba(204, 204, 204, 1));
|
|
180
192
|
--vvd-shadow-surface-2dp: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.05));
|
|
@@ -184,9 +196,9 @@
|
|
|
184
196
|
--vvd-shadow-surface-16dp: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.1)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.05)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.05));
|
|
185
197
|
--vvd-shadow-surface-24dp: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.2)) drop-shadow(0 24px 32px rgba(0, 0, 0, 0.05)) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.05));
|
|
186
198
|
}
|
|
187
|
-
@supports (color-
|
|
199
|
+
@supports (color-scheme: light) {
|
|
188
200
|
.vvd-theme-alternate, ::part(vvd-theme-alternate) {
|
|
189
|
-
color-
|
|
201
|
+
color-scheme: light;
|
|
190
202
|
}
|
|
191
203
|
}
|
|
192
204
|
|
package/styles/themes/light.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
--vvd-color-cta-20: rgb(236,226,250);
|
|
45
45
|
--vvd-color-cta-30: rgb(220,193,252);
|
|
46
46
|
--vvd-color-cta-70: rgb(135,30,255);
|
|
47
|
+
--vvd-color-cta-80: rgb(100,5,209);
|
|
47
48
|
--vvd-color-cta-90: rgb(68,2,145);
|
|
48
49
|
--vvd-color-success: rgb(28,135,49);
|
|
49
50
|
--vvd-color-on-success: rgb(255,255,255);
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
--vvd-color-success-20: rgb(207,238,212);
|
|
52
53
|
--vvd-color-success-30: rgb(134,224,144);
|
|
53
54
|
--vvd-color-success-70: rgb(22,118,41);
|
|
55
|
+
--vvd-color-success-80: rgb(21,89,35);
|
|
54
56
|
--vvd-color-success-90: rgb(24,58,30);
|
|
55
57
|
--vvd-color-alert: rgb(230,29,29);
|
|
56
58
|
--vvd-color-on-alert: rgb(255,255,255);
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
--vvd-color-alert-20: rgb(254,223,223);
|
|
59
61
|
--vvd-color-alert-30: rgb(255,187,187);
|
|
60
62
|
--vvd-color-alert-70: rgb(205,13,13);
|
|
63
|
+
--vvd-color-alert-80: rgb(159,2,2);
|
|
61
64
|
--vvd-color-alert-90: rgb(110,0,0);
|
|
62
65
|
--vvd-color-warning: rgb(250,159,0);
|
|
63
66
|
--vvd-color-on-warning: rgb(0,0,0);
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
--vvd-color-warning-20: rgb(253,231,109);
|
|
66
69
|
--vvd-color-warning-30: rgb(255,195,33);
|
|
67
70
|
--vvd-color-warning-70: rgb(166,76,3);
|
|
71
|
+
--vvd-color-warning-80: rgb(128,56,7);
|
|
68
72
|
--vvd-color-warning-90: rgb(82,40,1);
|
|
69
73
|
--vvd-color-info: rgb(2,118,213);
|
|
70
74
|
--vvd-color-on-info: rgb(255,255,255);
|
|
@@ -72,6 +76,7 @@
|
|
|
72
76
|
--vvd-color-info-20: rgb(211,233,252);
|
|
73
77
|
--vvd-color-info-30: rgb(157,210,254);
|
|
74
78
|
--vvd-color-info-70: rgb(14,101,194);
|
|
79
|
+
--vvd-color-info-80: rgb(9,74,158);
|
|
75
80
|
--vvd-color-info-90: rgb(14,48,109);
|
|
76
81
|
--vvd-color-announcement: rgb(214,33,156);
|
|
77
82
|
--vvd-color-on-announcement: rgb(255,255,255);
|
|
@@ -79,6 +84,7 @@
|
|
|
79
84
|
--vvd-color-announcement-20: rgb(255,220,247);
|
|
80
85
|
--vvd-color-announcement-30: rgb(248,185,231);
|
|
81
86
|
--vvd-color-announcement-70: rgb(187,30,137);
|
|
87
|
+
--vvd-color-announcement-80: rgb(143,22,105);
|
|
82
88
|
--vvd-color-announcement-90: rgb(98,2,86);
|
|
83
89
|
--vvd-shadow-surface-0dp: drop-shadow(1px 0 0 rgba(204, 204, 204, 1)) drop-shadow(0 1px 0 rgba(204, 204, 204, 1)) drop-shadow(0 -1px 0 rgba(204, 204, 204, 1)) drop-shadow(-1px 0 0 rgba(204, 204, 204, 1));
|
|
84
90
|
--vvd-shadow-surface-2dp: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.05));
|
|
@@ -88,9 +94,9 @@
|
|
|
88
94
|
--vvd-shadow-surface-16dp: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.1)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.05)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.05));
|
|
89
95
|
--vvd-shadow-surface-24dp: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.2)) drop-shadow(0 24px 32px rgba(0, 0, 0, 0.05)) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.05));
|
|
90
96
|
}
|
|
91
|
-
@supports (color-
|
|
97
|
+
@supports (color-scheme: light) {
|
|
92
98
|
:root, .vvd-theme-main, ::part(vvd-theme-main) {
|
|
93
|
-
color-
|
|
99
|
+
color-scheme: light;
|
|
94
100
|
}
|
|
95
101
|
}
|
|
96
102
|
|
|
@@ -140,6 +146,7 @@
|
|
|
140
146
|
--vvd-color-cta-20: rgb(68,2,145);
|
|
141
147
|
--vvd-color-cta-30: rgb(100,5,209);
|
|
142
148
|
--vvd-color-cta-70: rgb(203,161,250);
|
|
149
|
+
--vvd-color-cta-80: rgb(220,193,252);
|
|
143
150
|
--vvd-color-cta-90: rgb(236,226,250);
|
|
144
151
|
--vvd-color-success: rgb(48,168,73);
|
|
145
152
|
--vvd-color-on-success: rgb(0,0,0);
|
|
@@ -147,6 +154,7 @@
|
|
|
147
154
|
--vvd-color-success-20: rgb(24,58,30);
|
|
148
155
|
--vvd-color-success-30: rgb(21,89,35);
|
|
149
156
|
--vvd-color-success-70: rgb(83,202,106);
|
|
157
|
+
--vvd-color-success-80: rgb(134,224,144);
|
|
150
158
|
--vvd-color-success-90: rgb(207,238,212);
|
|
151
159
|
--vvd-color-alert: rgb(247,89,89);
|
|
152
160
|
--vvd-color-on-alert: rgb(0,0,0);
|
|
@@ -154,6 +162,7 @@
|
|
|
154
162
|
--vvd-color-alert-20: rgb(110,0,0);
|
|
155
163
|
--vvd-color-alert-30: rgb(159,2,2);
|
|
156
164
|
--vvd-color-alert-70: rgb(254,150,150);
|
|
165
|
+
--vvd-color-alert-80: rgb(255,187,187);
|
|
157
166
|
--vvd-color-alert-90: rgb(254,223,223);
|
|
158
167
|
--vvd-color-warning: rgb(224,121,2);
|
|
159
168
|
--vvd-color-on-warning: rgb(0,0,0);
|
|
@@ -161,6 +170,7 @@
|
|
|
161
170
|
--vvd-color-warning-20: rgb(82,40,1);
|
|
162
171
|
--vvd-color-warning-30: rgb(128,56,7);
|
|
163
172
|
--vvd-color-warning-70: rgb(250,159,0);
|
|
173
|
+
--vvd-color-warning-80: rgb(255,195,33);
|
|
164
174
|
--vvd-color-warning-90: rgb(253,231,109);
|
|
165
175
|
--vvd-color-info: rgb(41,151,240);
|
|
166
176
|
--vvd-color-on-info: rgb(0,0,0);
|
|
@@ -168,6 +178,7 @@
|
|
|
168
178
|
--vvd-color-info-20: rgb(14,48,109);
|
|
169
179
|
--vvd-color-info-30: rgb(9,74,158);
|
|
170
180
|
--vvd-color-info-70: rgb(101,186,255);
|
|
181
|
+
--vvd-color-info-80: rgb(157,210,254);
|
|
171
182
|
--vvd-color-info-90: rgb(211,233,252);
|
|
172
183
|
--vvd-color-announcement: rgb(229,96,187);
|
|
173
184
|
--vvd-color-on-announcement: rgb(0,0,0);
|
|
@@ -175,6 +186,7 @@
|
|
|
175
186
|
--vvd-color-announcement-20: rgb(98,2,86);
|
|
176
187
|
--vvd-color-announcement-30: rgb(143,22,105);
|
|
177
188
|
--vvd-color-announcement-70: rgb(251,143,216);
|
|
189
|
+
--vvd-color-announcement-80: rgb(248,185,231);
|
|
178
190
|
--vvd-color-announcement-90: rgb(255,220,247);
|
|
179
191
|
--vvd-shadow-surface-0dp: drop-shadow(1px 0 0 rgba(77, 77, 77, 1)) drop-shadow(0 1px 0 rgba(77, 77, 77, 1)) drop-shadow(0 -1px 0 rgba(77, 77, 77, 1)) drop-shadow(-1px 0 0 rgba(77, 77, 77, 1));
|
|
180
192
|
--vvd-shadow-surface-2dp: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
|
|
@@ -184,9 +196,9 @@
|
|
|
184
196
|
--vvd-shadow-surface-16dp: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.25)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
|
|
185
197
|
--vvd-shadow-surface-24dp: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.25)) drop-shadow(0 24px 32px rgba(0, 0, 0, 0.25)) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.25));
|
|
186
198
|
}
|
|
187
|
-
@supports (color-
|
|
199
|
+
@supports (color-scheme: dark) {
|
|
188
200
|
.vvd-theme-alternate, ::part(vvd-theme-alternate) {
|
|
189
|
-
color-
|
|
201
|
+
color-scheme: dark;
|
|
190
202
|
}
|
|
191
203
|
}
|
|
192
204
|
|
package/text/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
import '../shared/export.js';
|
|
6
|
+
import '../shared/object-keys.js';
|
|
7
|
+
import '../shared/iterators.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control:not(.tight):not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1:not(.tight), .control.font-face-body-1-bold:not(.tight), .control.font-face-body-1-code:not(.tight), .control.font-face-body-1-link:not(.tight), .control.font-face-body-2:not(.tight), .control.font-face-body-2-bold:not(.tight), .control.font-face-body-2-code:not(.tight), .control.font-face-body-2-link:not(.tight), .control.font-face-subtitle-1:not(.tight), .control.font-face-subtitle-2:not(.tight), .control.font-face-title-1:not(.tight), .control.font-face-title-2:not(.tight), .control.font-face-headline-1:not(.tight), .control.font-face-headline-2:not(.tight) {\n display: block;\n margin: var(--font-face-margin, 0);\n}\n\n.control {\n color: var(--_connotation-color-primary);\n}\n.control.font-face-body-1 {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-bold {\n font: 600 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-code {\n font: 400 ultra-condensed 16px / 24px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-link {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-body-2 {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-bold {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-code {\n font: 400 ultra-condensed 14px / 20px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-link {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-button {\n font: 600 ultra-condensed 14px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-dense {\n font: 600 ultra-condensed 12px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-enlarge {\n font: 600 ultra-condensed 16px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-bold {\n font: 600 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-code {\n font: 400 ultra-condensed 12px / 16px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-link {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-headline-1 {\n font: 500 condensed 66px / 88px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-headline-2 {\n font: 500 condensed 52px / 68px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-1 {\n font: 500 condensed 26px / 36px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-2 {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-1 {\n font: 500 condensed 40px / 52px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-2 {\n font: 500 condensed 32px / 44px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2) {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n.control.font-face-headline-1, .control.font-face-headline-2 {\n --font-face-margin: 2.5rem 0;\n}\n.control.font-face-title-1, .control.font-face-title-2 {\n --font-face-margin: 2rem 0;\n}\n.control.font-face-subtitle-1, .control.font-face-subtitle-2 {\n --font-face-margin: 1.5rem 0;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1, .control.font-face-body-1-bold, .control.font-face-body-1-code, .control.font-face-body-1-link, .control.font-face-body-2, .control.font-face-body-2-bold, .control.font-face-body-2-code, .control.font-face-body-2-link {\n --font-face-margin: 1rem 0;\n}\n\n::slotted(:where(h1, h2, h3, h4, h5, h6, p)) {\n margin: initial;\n}\n\n::slotted(*) {\n color: inherit;\n font: inherit;\n}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
class Text extends FoundationElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.tight = false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
__decorate([attr, __metadata("design:type", String)], Text.prototype, "connotation", void 0);
|
|
21
|
+
|
|
22
|
+
__decorate([attr({
|
|
23
|
+
attribute: 'font-face'
|
|
24
|
+
}), __metadata("design:type", String)], Text.prototype, "fontFace", void 0);
|
|
25
|
+
|
|
26
|
+
__decorate([attr({
|
|
27
|
+
mode: 'boolean'
|
|
28
|
+
}), __metadata("design:type", Object)], Text.prototype, "tight", void 0);
|
|
29
|
+
|
|
30
|
+
let _ = t => t,
|
|
31
|
+
_t;
|
|
32
|
+
|
|
33
|
+
const getClasses = ({
|
|
34
|
+
connotation,
|
|
35
|
+
fontFace,
|
|
36
|
+
tight
|
|
37
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`font-face-${fontFace}`, Boolean(fontFace)], ['tight', tight]);
|
|
38
|
+
|
|
39
|
+
const TextTemplate = () => html(_t || (_t = _`<slot class="${0}"></slot>`), getClasses);
|
|
40
|
+
|
|
41
|
+
const vividText = Text.compose({
|
|
42
|
+
baseName: 'text',
|
|
43
|
+
template: TextTemplate,
|
|
44
|
+
styles: css_248z
|
|
45
|
+
});
|
|
46
|
+
designSystem.register(vividText());
|
|
47
|
+
|
|
48
|
+
export { vividText };
|
package/text-anchor/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../shared/
|
|
3
|
-
import { A as Anchor } from '../shared/anchor.js';
|
|
1
|
+
import { d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
4
3
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
4
|
+
import '../shared/affix.js';
|
|
5
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
6
|
+
import '../shared/export.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
9
|
+
import '../shared/icon.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
11
|
+
import '../shared/_has.js';
|
|
12
|
+
import '../shared/anchor.js';
|
|
5
13
|
import '../shared/apply-mixins.js';
|
|
6
14
|
import '../shared/aria-global.js';
|
|
15
|
+
import '../shared/focus2.js';
|
|
16
|
+
import '../shared/focus.js';
|
|
7
17
|
import '../shared/class-names.js';
|
|
8
18
|
|
|
9
|
-
class TextAnchor extends Anchor {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.text = '';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
__decorate([attr, __metadata("design:type", Object)], TextAnchor.prototype, "text", void 0);
|
|
18
|
-
|
|
19
19
|
const vividTextAnchor = TextAnchor.compose({
|
|
20
20
|
baseName: 'text-anchor',
|
|
21
21
|
template: textAnchorTemplate
|