@vonage/vivid 3.0.0-next.109 → 3.0.0-next.110
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 +24 -0
- package/accordion/index.js +3 -3
- package/accordion-item/index.js +12 -12
- package/action-group/index.js +3 -7
- package/avatar/index.js +10 -10
- package/badge/index.js +9 -9
- package/banner/index.js +9 -19
- package/breadcrumb/index.js +2 -2
- package/breadcrumb-item/index.js +13 -14
- package/button/index.js +92 -16
- package/calendar/index.js +3 -7
- package/calendar-event/index.js +3 -6
- package/card/index.js +9 -11
- package/checkbox/index.js +11 -12
- package/custom-elements.json +49 -49
- package/dialog/index.js +9 -25
- package/divider/index.js +26 -3
- package/elevation/index.js +25 -3
- package/fab/index.js +12 -14
- package/focus/index.js +4 -4
- package/header/index.js +10 -8
- package/icon/index.js +3 -5
- package/index.js +24 -22
- package/layout/index.js +2 -2
- package/lib/accordion-item/index.d.ts +0 -2
- package/lib/avatar/index.d.ts +0 -1
- package/lib/badge/index.d.ts +0 -1
- package/lib/banner/index.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +0 -2
- package/lib/button/index.d.ts +1 -4
- package/lib/card/index.d.ts +0 -2
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/components.d.ts +1 -1
- package/lib/dialog/index.d.ts +0 -3
- package/lib/fab/index.d.ts +0 -2
- package/lib/header/index.d.ts +0 -1
- package/lib/listbox/index.d.ts +1 -4
- package/lib/menu/index.d.ts +0 -2
- package/lib/menu-item/index.d.ts +0 -1
- package/lib/nav-disclosure/index.d.ts +0 -2
- package/lib/nav-item/index.d.ts +0 -2
- package/lib/note/note.template.d.ts +0 -1
- package/lib/number-field/index.d.ts +0 -2
- package/lib/{listbox-option → option}/index.d.ts +0 -2
- package/lib/{listbox-option/listbox-option.d.ts → option/option.d.ts} +0 -0
- package/lib/{listbox-option/listbox-option.template.d.ts → option/option.template.d.ts} +1 -1
- package/lib/popup/index.d.ts +0 -2
- package/lib/radio/index.d.ts +0 -1
- package/lib/slider/index.d.ts +0 -1
- package/lib/switch/index.d.ts +0 -2
- package/lib/text-area/index.d.ts +0 -2
- package/lib/text-field/index.d.ts +0 -2
- package/lib/text-field/text-field.template.d.ts +0 -1
- package/lib/tooltip/index.d.ts +0 -1
- package/listbox/index.js +14 -18
- package/menu/index.js +12 -26
- package/menu-item/index.js +82 -13
- package/nav/index.js +2 -2
- package/nav-disclosure/index.js +11 -13
- package/nav-item/index.js +11 -13
- package/note/index.js +10 -10
- package/number-field/index.js +14 -15
- package/option/index.js +75 -0
- package/package.json +3 -2
- package/popup/index.js +57 -20
- package/progress/index.js +3 -7
- package/progress-ring/index.js +3 -3
- package/radio/index.js +11 -6
- package/radio-group/index.js +3 -3
- package/shared/affix.js +0 -1
- package/shared/anchor.js +1 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/base-progress.js +1 -1
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +18 -195
- package/shared/button2.js +200 -0
- package/shared/calendar-event.js +1 -1
- package/shared/design-system/index.d.ts +1 -1
- package/shared/{index4.js → divider.js} +2 -24
- package/shared/elevation.js +10 -0
- package/shared/es.object.assign.js +1 -59
- package/shared/es.promise.resolve.js +944 -0
- package/shared/es.regexp.to-string.js +1 -2
- package/shared/focus.js +9 -3
- package/shared/focus2.js +3 -9
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.js +2 -3
- package/shared/icon.js +9 -1098
- package/shared/index.js +3673 -5
- package/shared/index2.js +6 -104
- package/shared/{index5.js → listbox-option.js} +11 -71
- package/shared/{index7.js → menu-item.js} +13 -85
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/{index6.js → popup.js} +3 -43
- package/shared/radio.js +1 -1
- package/shared/ref.js +1 -1
- package/shared/slotted.js +1 -1
- package/shared/string-trim.js +1 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/utils/index.d.ts +1 -0
- package/side-drawer/index.js +3 -7
- package/slider/index.js +10 -10
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/switch/index.js +11 -11
- package/text-anchor/index.js +4 -8
- package/text-area/index.js +11 -12
- package/text-field/index.js +11 -12
- package/tooltip/index.js +11 -27
- package/vivid.api.json +11 -189
- package/listbox-option/index.js +0 -22
- package/shared/export.js +0 -1017
- package/shared/index3.js +0 -31
- package/shared/iterators.js +0 -61
- package/shared/object-keys.js +0 -13
- package/shared/to-string.js +0 -51
- package/shared/web.dom-collections.iterator.js +0 -472
package/README.md
CHANGED
|
@@ -75,6 +75,30 @@ Note: scss users can simply [forward](https://sass-lang.com/documentation/at-rul
|
|
|
75
75
|
@forward 'node_modules/@vonage/vivid/styles/[path to file].css';
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
## Advanced Usage
|
|
79
|
+
|
|
80
|
+
### Scoped Elements
|
|
81
|
+
|
|
82
|
+
Custom elements, by browsers limitations, are registered globally, and thus may conflict when multiple versions of the library are used in the same application as all custom elements register under the same namespace.
|
|
83
|
+
|
|
84
|
+
This burdens micro frontend architecture and updates to outdated versions of the Vivid, enforcing a single version of the library to be used. Meaning, any update to the library will require a full application update.
|
|
85
|
+
|
|
86
|
+
To avoid this bottleneck, Vivid provides a way for authors' to scope each custom element namespace by setting a `prefix` query parameter to their import call.
|
|
87
|
+
|
|
88
|
+
The following example will register *badge* custom element as `dashboard-badge`:
|
|
89
|
+
|
|
90
|
+
```js
|
|
91
|
+
import '/node_modules/@vonage/vivid/badge/index.js?prefix=dashboard';
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
then use it as:
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<dashboard-badge text="I'm a custom prefixed badge"></dashboard-badge>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Even though the custom elements are registered under different namespaces, [npm packages version range handling](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#dependencies) can still be used for multiple versions saving.
|
|
101
|
+
|
|
78
102
|
## Support
|
|
79
103
|
|
|
80
104
|
This library is open source, developed and maintained by the [Vonage Vivid team](Vonage/vivid).
|
package/accordion/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
2
2
|
import { c as classNames } from '../shared/class-names.js';
|
|
3
3
|
|
|
4
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
4
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.base {\n display: flex;\n flex-direction: column;\n}\n\n::slotted(vwc-accordion-item:not(:only-of-type)) {\n border-bottom: 1px solid var(--vvd-color-neutral-200);\n}";
|
|
5
5
|
|
|
6
6
|
class Accordion extends FoundationElement {
|
|
7
7
|
constructor() {
|
|
@@ -47,6 +47,6 @@ const vividAccordion = Accordion.compose({
|
|
|
47
47
|
template: AccordionTemplate,
|
|
48
48
|
styles: css_248z
|
|
49
49
|
});
|
|
50
|
-
designSystem.register(vividAccordion());
|
|
50
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividAccordion());
|
|
51
51
|
|
|
52
52
|
export { vividAccordion };
|
package/accordion-item/index.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import '../
|
|
3
|
-
import {
|
|
4
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
5
4
|
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
6
5
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
|
-
import { f as focusTemplateFactory } from '../shared/
|
|
6
|
+
import { f as focusTemplateFactory } from '../shared/focus.js';
|
|
8
7
|
import { w as when } from '../shared/when.js';
|
|
9
8
|
import { c as classNames } from '../shared/class-names.js';
|
|
10
9
|
import '../shared/icon.js';
|
|
11
|
-
import '../shared/export.js';
|
|
12
|
-
import '../shared/iterators.js';
|
|
13
|
-
import '../shared/to-string.js';
|
|
14
10
|
import '../shared/string-trim.js';
|
|
15
11
|
import '../shared/_has.js';
|
|
16
|
-
import '../shared/
|
|
17
|
-
import '../shared/object-keys.js';
|
|
12
|
+
import '../shared/focus2.js';
|
|
18
13
|
|
|
19
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
14
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.body {\n padding: 8px 32px 24px 16px;\n font: var(--vvd-typography-base);\n}\n.icon:not(.icon-trailing) .body {\n padding-left: 48px;\n}\n\n.base {\n display: flex;\n flex-direction: column;\n}\n.base:not(.open) .body {\n display: none;\n}\n\n.header {\n padding: 0;\n margin: 0;\n}\n\n.button {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 16px;\n border: 0 none;\n margin: 0;\n background-color: var(--_appearance-color-fill);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n cursor: pointer;\n font: var(--vvd-typography-heading-4);\n}\n.button {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.button:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.button: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: transparent;\n}\n.button {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n@supports selector(:focus-visible) {\n .button:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .button {\n user-select: none;\n }\n}\n.button .heading-text {\n flex-grow: 1;\n margin-inline-end: auto;\n text-align: left;\n}\n.button .meta {\n overflow: hidden;\n max-width: 20%;\n flex-shrink: 0;\n color: var(--vvd-color-neutral-600);\n font: var(--vvd-typography-base-bold);\n margin-inline-start: 16px;\n text-align: end;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.button .indicator {\n display: flex;\n}\n.button .indicator vwc-icon,\n.button .indicator slot[name=indicator i]::slotted(vwc-icon) {\n margin-inline-start: 16px;\n}\n.button .icon {\n color: var(--vvd-color-neutral-600);\n margin-inline-end: 16px;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}\n\n.button:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
20
15
|
|
|
21
16
|
class AccordionItem extends FoundationElement {
|
|
22
17
|
constructor() {
|
|
@@ -105,6 +100,8 @@ const renderHeaderButton = context => {
|
|
|
105
100
|
`), when(x => !x.open, html(_t6 || (_t6 = _`<vwc-icon name='chevron-down-solid'></vwc-icon>`))), when(x => x.open, html(_t7 || (_t7 = _`<vwc-icon name='chevron-up-solid'></vwc-icon>`))))));
|
|
106
101
|
};
|
|
107
102
|
|
|
103
|
+
const prefix = getPrefix(import.meta.url);
|
|
104
|
+
const dependencies = ['icon', 'focus'];
|
|
108
105
|
const vividAccordionItem = AccordionItem.compose({
|
|
109
106
|
baseName: 'accordion-item',
|
|
110
107
|
template: AccordionItemTemplate,
|
|
@@ -113,6 +110,9 @@ const vividAccordionItem = AccordionItem.compose({
|
|
|
113
110
|
delegatesFocus: true
|
|
114
111
|
}
|
|
115
112
|
});
|
|
116
|
-
|
|
113
|
+
(async () => {
|
|
114
|
+
await loadComponentsModules(dependencies, prefix);
|
|
115
|
+
designSystem.withPrefix(prefix).register(vividAccordionItem());
|
|
116
|
+
})();
|
|
117
117
|
|
|
118
118
|
export { vividAccordionItem };
|
package/action-group/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
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';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
3
2
|
import { c as classNames } from '../shared/class-names.js';
|
|
4
|
-
import '../shared/export.js';
|
|
5
|
-
import '../shared/object-keys.js';
|
|
6
|
-
import '../shared/iterators.js';
|
|
7
3
|
|
|
8
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
4
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n:host {\n display: inline-block;\n}\n\n.base {\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n inline-size: inherit;\n vertical-align: middle;\n}\n.base {\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base::before {\n position: absolute;\n z-index: 1;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n content: \"\";\n inset: 0;\n pointer-events: none;\n}\n.base:not(.tight) {\n padding: 4px;\n column-gap: 4px;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n border-radius: 6px;\n}\n\n.base.shape-pill {\n border-radius: 24px;\n}\n\n/* Separator */\n::slotted(vwc-divider) {\n align-self: stretch;\n margin-block: 4px;\n}";
|
|
9
5
|
|
|
10
6
|
class ActionGroup extends FoundationElement {
|
|
11
7
|
constructor() {
|
|
@@ -36,6 +32,6 @@ const vividActionGroup = ActionGroup.compose({
|
|
|
36
32
|
template: ActionGroupTemplate,
|
|
37
33
|
styles: css_248z
|
|
38
34
|
});
|
|
39
|
-
designSystem.register(vividActionGroup());
|
|
35
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividActionGroup());
|
|
40
36
|
|
|
41
37
|
export { vividActionGroup };
|
package/avatar/index.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
3
4
|
import { w as when } from '../shared/when.js';
|
|
4
5
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
-
import '../shared/icon.js';
|
|
6
|
-
import '../shared/export.js';
|
|
7
|
-
import '../shared/iterators.js';
|
|
8
|
-
import '../shared/to-string.js';
|
|
9
|
-
import '../shared/string-trim.js';
|
|
10
|
-
import '../shared/_has.js';
|
|
11
6
|
|
|
12
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
7
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.base {\n display: inline-flex;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_size);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n inline-size: var(--_size);\n vertical-align: middle;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-firm: var(--vvd-color-cta-600);\n}\n.base:not(.connotation-cta) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base.appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.size-condensed {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8));\n}\n.base.size-condensed .initials {\n font: var(--vvd-typography-base-condensed-bold);\n}\n.base.size-condensed .icon {\n font-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8)) / 2);\n}\n.base.size-expanded {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n}\n.base.size-expanded .initials {\n font: var(--vvd-typography-heading-4);\n}\n.base.size-expanded .icon {\n font-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8)) / 2);\n}\n.base:not(.size-condensed, .size-expanded) {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n}\n.base:not(.size-condensed, .size-expanded) .initials {\n font: var(--vvd-typography-base-extended-bold);\n}\n.base:not(.size-condensed, .size-expanded) .icon {\n font-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2))) / 2);\n}\n.base:not(.shape-pill) {\n border-radius: 6px;\n}\n.base.shape-pill {\n border-radius: 50%;\n}\n.base .initials {\n text-transform: uppercase;\n}\n.base ::slotted(*) {\n block-size: 100%;\n inline-size: 100%;\n object-fit: cover;\n}";
|
|
13
8
|
|
|
14
9
|
class Avatar extends FoundationElement {}
|
|
15
10
|
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "connotation", void 0);
|
|
@@ -51,11 +46,16 @@ const AvatarTemplate = () => html(_t3 || (_t3 = _`
|
|
|
51
46
|
</slot>
|
|
52
47
|
</span>`), getClasses, when(x => x.name, renderInitials()), when(x => !x.name, renderIcon()));
|
|
53
48
|
|
|
49
|
+
const prefix = getPrefix(import.meta.url);
|
|
50
|
+
const dependencies = ['icon'];
|
|
54
51
|
const vividAvatar = Avatar.compose({
|
|
55
52
|
baseName: 'avatar',
|
|
56
53
|
template: AvatarTemplate,
|
|
57
54
|
styles: css_248z
|
|
58
55
|
});
|
|
59
|
-
|
|
56
|
+
(async () => {
|
|
57
|
+
await loadComponentsModules(dependencies, prefix);
|
|
58
|
+
designSystem.withPrefix(prefix).register(vividAvatar());
|
|
59
|
+
})();
|
|
60
60
|
|
|
61
61
|
export { vividAvatar };
|
package/badge/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
3
4
|
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
4
5
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
5
6
|
import { w as when } from '../shared/when.js';
|
|
6
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
7
8
|
import '../shared/icon.js';
|
|
8
|
-
import '../shared/export.js';
|
|
9
|
-
import '../shared/iterators.js';
|
|
10
|
-
import '../shared/to-string.js';
|
|
11
9
|
import '../shared/string-trim.js';
|
|
12
10
|
import '../shared/_has.js';
|
|
13
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
14
|
-
import '../shared/object-keys.js';
|
|
15
11
|
|
|
16
12
|
class Badge extends FoundationElement {}
|
|
17
13
|
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "connotation", void 0);
|
|
@@ -20,7 +16,7 @@ __decorate([attr, __metadata("design:type", String)], Badge.prototype, "appearan
|
|
|
20
16
|
__decorate([attr, __metadata("design:type", String)], Badge.prototype, "text", void 0);
|
|
21
17
|
applyMixins(Badge, AffixIconWithTrailing);
|
|
22
18
|
|
|
23
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
19
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.base {\n --_badge-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_badge-block-size);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n column-gap: 8px;\n font: var(--vvd-typography-base-condensed-bold);\n max-inline-size: 100%;\n padding-inline: 8px;\n vertical-align: middle;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-cta-500);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-success-500);\n --_connotation-color-soft: var(--vvd-color-success-100);\n --_connotation-color-contrast: var(--vvd-color-success-800);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-alert-500);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-primary-text: var(--vvd-color-canvas-text);\n --_connotation-color-intermediate: var(--vvd-color-warning-500);\n --_connotation-color-soft: var(--vvd-color-warning-100);\n --_connotation-color-contrast: var(--vvd-color-warning-800);\n}\n.base.connotation-information {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-information-500);\n --_connotation-color-soft: var(--vvd-color-information-100);\n --_connotation-color-contrast: var(--vvd-color-information-800);\n}\n.base:not(.connotation-cta, .connotation-success, .connotation-alert, .connotation-warning, .connotation-information) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base.appearance-duotone {\n --_appearance-color-text: var(--_connotation-color-contrast);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n.base.appearance-subtle {\n --_appearance-color-text: var(--_connotation-color-contrast);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n.base.icon-only {\n contain: size;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .base.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .base.icon-only {\n inline-size: var(--_badge-block-size);\n }\n}\n\n.text {\n overflow: hidden;\n max-inline-size: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n border-radius: 4px;\n}\n\n.base.shape-pill {\n border-radius: 14px;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}";
|
|
24
20
|
|
|
25
21
|
let _ = t => t,
|
|
26
22
|
_t,
|
|
@@ -42,11 +38,15 @@ const badgeTemplate = context => {
|
|
|
42
38
|
</span>`), getClasses, x => affixIconTemplate(x.icon), when(x => x.text, x => html(_t2 || (_t2 = _`<span class="text">${0}</span>`), x.text)));
|
|
43
39
|
};
|
|
44
40
|
|
|
41
|
+
const prefix = getPrefix(import.meta.url);
|
|
45
42
|
const vividBadge = Badge.compose({
|
|
46
43
|
baseName: 'badge',
|
|
47
44
|
template: badgeTemplate,
|
|
48
45
|
styles: css_248z
|
|
49
46
|
});
|
|
50
|
-
|
|
47
|
+
(async () => {
|
|
48
|
+
await loadComponentsModules(['icon'], prefix);
|
|
49
|
+
designSystem.withPrefix(prefix).register(vividBadge());
|
|
50
|
+
})();
|
|
51
51
|
|
|
52
52
|
export { vividBadge };
|
package/banner/index.js
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
import '../shared/
|
|
2
|
-
import { F as FoundationElement,
|
|
3
|
-
import '../shared/
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, Y as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
4
4
|
import { C as Connotation } from '../shared/enums.js';
|
|
5
5
|
import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
6
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
7
|
import { w as when } from '../shared/when.js';
|
|
8
8
|
import { c as classNames } from '../shared/class-names.js';
|
|
9
|
-
import '../icon/index.js';
|
|
10
9
|
import '../shared/icon.js';
|
|
11
|
-
import '../shared/export.js';
|
|
12
|
-
import '../shared/iterators.js';
|
|
13
|
-
import '../shared/to-string.js';
|
|
14
10
|
import '../shared/string-trim.js';
|
|
15
11
|
import '../shared/_has.js';
|
|
16
|
-
import '../focus/index.js';
|
|
17
|
-
import '../shared/focus.js';
|
|
18
|
-
import '../shared/button.js';
|
|
19
|
-
import '../shared/form-associated.js';
|
|
20
|
-
import '../shared/key-codes.js';
|
|
21
|
-
import '../shared/aria-global.js';
|
|
22
|
-
import '../shared/start-end.js';
|
|
23
|
-
import '../shared/ref.js';
|
|
24
|
-
import '../shared/focus2.js';
|
|
25
|
-
import '../shared/object-keys.js';
|
|
26
12
|
|
|
27
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
13
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.control {\n overflow: hidden;\n max-height: 160px;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-primary-text: var(--vvd-color-canvas-text);\n}\n.control:not(.connotation-success, .connotation-alert, .connotation-announcement, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control.removing {\n max-height: 0;\n}\n.control > .header {\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: flex-start;\n font: var(--vvd-typography-base-bold);\n}\n.control > .header > .user-content {\n display: flex;\n flex: 1 0;\n align-items: center;\n justify-content: center;\n padding-inline: 16px;\n}\n.control > .header > .user-content > .icon {\n flex: 0 0 auto;\n font-size: 20px;\n margin-inline-end: 15px;\n}\n.control > .header > .user-content > .action-items {\n display: inline-block;\n flex: 0 0 auto;\n padding-inline-start: 15px;\n}\n.control > .header > .user-content > .message {\n padding: 20px 0;\n}\n.control > .header > .dismiss-button {\n --vvd-icon-button-color: inherit;\n flex: 0 0 auto;\n margin-inline-end: 8px;\n}";
|
|
28
14
|
|
|
29
15
|
var _Banner_handleRemoveEnd, _Banner_closeOnKeyDown;
|
|
30
16
|
const connotationIconMap = new Map([[Connotation.Information, 'info-solid'], [Connotation.Announcement, 'megaphone-solid'], [Connotation.Success, 'check-circle-solid'], [Connotation.Warning, 'warning-solid'], [Connotation.Alert, 'error-solid']]);
|
|
@@ -118,11 +104,15 @@ const BannerTemplate = context => {
|
|
|
118
104
|
`), getClasses, x => affixIconTemplate(x.conditionedIcon), x => x.role ? x.role : 'status', x => x.ariaLive ? x.ariaLive : 'polite', x => x.text, when(x => x.removable, renderDismissButton()));
|
|
119
105
|
};
|
|
120
106
|
|
|
107
|
+
const prefix = getPrefix(import.meta.url);
|
|
121
108
|
const vividBanner = Banner.compose({
|
|
122
109
|
baseName: 'banner',
|
|
123
110
|
template: BannerTemplate,
|
|
124
111
|
styles: css_248z
|
|
125
112
|
});
|
|
126
|
-
|
|
113
|
+
(async () => {
|
|
114
|
+
await loadComponentsModules(['button'], prefix);
|
|
115
|
+
designSystem.withPrefix(prefix).register(vividBanner());
|
|
116
|
+
})();
|
|
127
117
|
|
|
128
118
|
export { vividBanner };
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate,
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, V as observable, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
2
2
|
import { s as slotted, e as elements } from '../shared/slotted.js';
|
|
3
3
|
import { B as BreadcrumbItem } from '../shared/breadcrumb-item.js';
|
|
4
4
|
import '../shared/anchor.js';
|
|
@@ -98,6 +98,6 @@ const vividBreadcrumb = Breadcrumb.compose({
|
|
|
98
98
|
template: breadcrumbTemplate,
|
|
99
99
|
styles: css_248z
|
|
100
100
|
});
|
|
101
|
-
designSystem.register(vividBreadcrumb());
|
|
101
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividBreadcrumb());
|
|
102
102
|
|
|
103
103
|
export { vividBreadcrumb };
|
package/breadcrumb-item/index.js
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import '../
|
|
3
|
-
import {
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
4
4
|
import { B as BreadcrumbItem$1 } from '../shared/breadcrumb-item.js';
|
|
5
5
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
|
-
import '../shared/icon.js';
|
|
9
|
-
import '../shared/export.js';
|
|
10
|
-
import '../shared/iterators.js';
|
|
11
|
-
import '../shared/to-string.js';
|
|
12
|
-
import '../shared/string-trim.js';
|
|
13
|
-
import '../shared/_has.js';
|
|
14
|
-
import '../shared/focus.js';
|
|
15
8
|
import '../shared/anchor.js';
|
|
16
9
|
import '../shared/apply-mixins.js';
|
|
17
10
|
import '../shared/aria-global.js';
|
|
18
11
|
import '../shared/start-end.js';
|
|
19
12
|
import '../shared/ref.js';
|
|
20
13
|
import '../shared/affix.js';
|
|
21
|
-
import '../shared/
|
|
22
|
-
import '../shared/
|
|
14
|
+
import '../shared/icon.js';
|
|
15
|
+
import '../shared/string-trim.js';
|
|
16
|
+
import '../shared/_has.js';
|
|
17
|
+
import '../shared/focus.js';
|
|
23
18
|
import '../shared/focus2.js';
|
|
24
19
|
|
|
25
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
20
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.base {\n display: flex;\n align-items: center;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n}\n.base vwc-icon {\n margin: 0 16px;\n color: var(--vvd-color-neutral-600);\n font-size: 12px;\n}\n\n.control {\n position: relative;\n font: inherit;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control:any-link {\n color: var(--vvd-color-cta-600);\n text-decoration: none;\n}\n.control:any-link:hover {\n text-decoration: underline;\n}\n\n.focus-indicator {\n --focus-inset: -4px -8px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.control:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
26
21
|
|
|
27
22
|
class BreadcrumbItem extends BreadcrumbItem$1 {
|
|
28
23
|
constructor() {
|
|
@@ -46,6 +41,7 @@ const BreadcrumbItemTemplate = (context, definition) => html(_t || (_t = _2`
|
|
|
46
41
|
${0}
|
|
47
42
|
</div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<vwc-icon name="chevron-right-solid"></vwc-icon>`))));
|
|
48
43
|
|
|
44
|
+
const prefix = getPrefix(import.meta.url);
|
|
49
45
|
const vividBreadcrumbItem = BreadcrumbItem.compose({
|
|
50
46
|
baseName: 'breadcrumb-item',
|
|
51
47
|
template: BreadcrumbItemTemplate,
|
|
@@ -54,6 +50,9 @@ const vividBreadcrumbItem = BreadcrumbItem.compose({
|
|
|
54
50
|
delegatesFocus: true
|
|
55
51
|
}
|
|
56
52
|
});
|
|
57
|
-
|
|
53
|
+
(async () => {
|
|
54
|
+
await loadComponentsModules(['icon', 'focus'], prefix);
|
|
55
|
+
designSystem.withPrefix(prefix).register(vividBreadcrumbItem());
|
|
56
|
+
})();
|
|
58
57
|
|
|
59
58
|
export { vividBreadcrumbItem };
|
package/button/index.js
CHANGED
|
@@ -1,24 +1,100 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import '../
|
|
3
|
-
import '../shared/
|
|
4
|
-
|
|
5
|
-
import '../shared/
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
4
|
+
import { B as Button } from '../shared/button.js';
|
|
5
|
+
import { a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
6
|
+
import { f as focusTemplateFactory } from '../shared/focus.js';
|
|
7
|
+
import { r as ref } from '../shared/ref.js';
|
|
8
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
9
|
+
import { B as Button$1 } from '../shared/button2.js';
|
|
10
|
+
import '../shared/apply-mixins.js';
|
|
6
11
|
import '../shared/icon.js';
|
|
7
|
-
import '../shared/export.js';
|
|
8
|
-
import '../shared/iterators.js';
|
|
9
|
-
import '../shared/to-string.js';
|
|
10
12
|
import '../shared/string-trim.js';
|
|
11
13
|
import '../shared/_has.js';
|
|
12
|
-
import '../shared/when.js';
|
|
13
|
-
import '../shared/class-names.js';
|
|
14
|
-
import '../shared/focus.js';
|
|
15
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
16
|
-
import '../shared/object-keys.js';
|
|
17
|
-
import '../shared/affix.js';
|
|
18
|
-
import '../shared/apply-mixins.js';
|
|
19
14
|
import '../shared/focus2.js';
|
|
20
|
-
import '../shared/ref.js';
|
|
21
15
|
import '../shared/form-associated.js';
|
|
22
16
|
import '../shared/key-codes.js';
|
|
23
17
|
import '../shared/aria-global.js';
|
|
24
18
|
import '../shared/start-end.js';
|
|
19
|
+
|
|
20
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n:host {\n display: inline-block;\n}\n\n.control {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n margin: 0;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_button-block-size);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n gap: var(--_button-icon-gap);\n vertical-align: middle;\n white-space: nowrap;\n /* Size */\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-cta-600);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-fierce: var(--vvd-color-cta-700);\n --_connotation-color-firm: var(--vvd-color-cta-600);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n --_connotation-color-faint: var(--vvd-color-cta-50);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-success-600);\n --_connotation-color-contrast: var(--vvd-color-success-800);\n --_connotation-color-fierce: var(--vvd-color-success-700);\n --_connotation-color-firm: var(--vvd-color-success-600);\n --_connotation-color-soft: var(--vvd-color-success-100);\n --_connotation-color-faint: var(--vvd-color-success-50);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-alert-600);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n --_connotation-color-fierce: var(--vvd-color-alert-700);\n --_connotation-color-firm: var(--vvd-color-alert-600);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n --_connotation-color-faint: var(--vvd-color-alert-50);\n}\n.control:not(.connotation-cta, .connotation-success, .connotation-alert) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-fierce: var(--vvd-color-neutral-700);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n}\n.control.appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control.appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-filled {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-outlined {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: var(--_connotation-color-firm);\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: transparent;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .control {\n user-select: none;\n }\n}\n.control:not(:disabled) {\n cursor: pointer;\n}\n.control:disabled {\n cursor: not-allowed;\n}\n.control.icon-only {\n contain: size;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_button-block-size);\n }\n}\n.control:not(.stacked).size-condensed {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8));\n font: var(--vvd-typography-base-condensed-bold);\n}\n.control:not(.stacked).size-condensed:not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 12px;\n}\n.control:not(.stacked).size-condensed .icon {\n font-size: 16px;\n}\n.control:not(.stacked).size-expanded {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n font: var(--vvd-typography-base-extended-bold);\n}\n.control:not(.stacked).size-expanded:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:not(.stacked).size-expanded .icon {\n font-size: 24px;\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded) {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n font: var(--vvd-typography-base-bold);\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded):not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 16px;\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded) .icon {\n font-size: 20px;\n}\n.control.stacked {\n flex-direction: column;\n justify-content: center;\n --_button-block-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8)) + calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20)));\n font: var(--vvd-typography-base-bold);\n}\n.control.stacked:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 16px;\n}\n.control.stacked .icon {\n font-size: 20px;\n}\n\n/* Shape */\n.control:not(.shape-pill:not(.stacked)) {\n border-radius: 6px;\n}\n\n.control.shape-pill:not(.stacked):not(.icon-only) {\n border-radius: 24px;\n}\n.control.shape-pill:not(.stacked).icon-only {\n border-radius: 50%;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) > .focus-indicator {\n display: none;\n}\n.appearance-outlined .focus-indicator, .appearance-ghost .focus-indicator {\n --focus-stroke-gap-color: transparent;\n}";
|
|
21
|
+
|
|
22
|
+
let _ = t => t,
|
|
23
|
+
_t;
|
|
24
|
+
const getAppearanceClassName = (appearance, disabled) => {
|
|
25
|
+
let className = `appearance-${appearance}`;
|
|
26
|
+
disabled && (className += ' disabled');
|
|
27
|
+
return className;
|
|
28
|
+
};
|
|
29
|
+
const getClasses = ({
|
|
30
|
+
connotation,
|
|
31
|
+
appearance,
|
|
32
|
+
shape,
|
|
33
|
+
iconTrailing,
|
|
34
|
+
icon,
|
|
35
|
+
label,
|
|
36
|
+
disabled,
|
|
37
|
+
stacked,
|
|
38
|
+
size
|
|
39
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [getAppearanceClassName(appearance, disabled), Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`size-${size}`, Boolean(size)], ['icon-only', !label && !!icon], ['icon-trailing', iconTrailing], ['stacked', Boolean(stacked)]);
|
|
40
|
+
const buttonTemplate = context => {
|
|
41
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
42
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
43
|
+
return html(_t || (_t = _`
|
|
44
|
+
<button
|
|
45
|
+
class="${0}"
|
|
46
|
+
?autofocus="${0}"
|
|
47
|
+
?disabled="${0}"
|
|
48
|
+
form="${0}"
|
|
49
|
+
formaction="${0}"
|
|
50
|
+
formenctype="${0}"
|
|
51
|
+
formmethod="${0}"
|
|
52
|
+
formnovalidate="${0}"
|
|
53
|
+
formtarget="${0}"
|
|
54
|
+
name="${0}"
|
|
55
|
+
type="${0}"
|
|
56
|
+
value="${0}"
|
|
57
|
+
aria-atomic="${0}"
|
|
58
|
+
aria-busy="${0}"
|
|
59
|
+
aria-controls="${0}"
|
|
60
|
+
aria-current="${0}"
|
|
61
|
+
aria-describedby="${0}"
|
|
62
|
+
aria-details="${0}"
|
|
63
|
+
aria-disabled="${0}"
|
|
64
|
+
aria-errormessage="${0}"
|
|
65
|
+
aria-expanded="${0}"
|
|
66
|
+
aria-flowto="${0}"
|
|
67
|
+
aria-haspopup="${0}"
|
|
68
|
+
aria-hidden="${0}"
|
|
69
|
+
aria-invalid="${0}"
|
|
70
|
+
aria-keyshortcuts="${0}"
|
|
71
|
+
aria-label="${0}"
|
|
72
|
+
aria-labelledby="${0}"
|
|
73
|
+
aria-live="${0}"
|
|
74
|
+
aria-owns="${0}"
|
|
75
|
+
aria-pressed="${0}"
|
|
76
|
+
aria-relevant="${0}"
|
|
77
|
+
aria-roledescription="${0}"
|
|
78
|
+
${0}
|
|
79
|
+
>
|
|
80
|
+
${0}
|
|
81
|
+
${0}
|
|
82
|
+
${0}
|
|
83
|
+
</button>
|
|
84
|
+
`), getClasses, x => x.autofocus, x => x.disabled, x => x.formId, x => x.formaction, x => x.formenctype, x => x.formmethod, x => x.formnovalidate, x => x.formtarget, x => x.name, x => x.type, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaExpanded, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaPressed, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, x => affixIconTemplate(x.icon), x => x.label);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const vividButton = Button.compose({
|
|
88
|
+
baseName: 'button',
|
|
89
|
+
baseClass: Button$1,
|
|
90
|
+
template: buttonTemplate,
|
|
91
|
+
styles: css_248z,
|
|
92
|
+
shadowOptions: {
|
|
93
|
+
delegatesFocus: true
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const prefix = getPrefix(import.meta.url);
|
|
97
|
+
(async () => {
|
|
98
|
+
await loadComponentsModules(['icon', 'focus'], prefix);
|
|
99
|
+
designSystem.withPrefix(prefix).register(vividButton());
|
|
100
|
+
})();
|
package/calendar/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
1
|
+
import { $ as emptyArray, Z as Observable, a3 as SubscriberSet, a2 as DOM, a4 as HTMLDirective, a5 as HTMLView, F as FoundationElement, Y as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
3
2
|
import { C as CalendarEvent } from '../shared/calendar-event.js';
|
|
4
3
|
import '../shared/es.object.assign.js';
|
|
5
4
|
import { b as _has, _ as _curry1, a as _curry2 } from '../shared/_has.js';
|
|
6
|
-
import '../shared/export.js';
|
|
7
|
-
import '../shared/object-keys.js';
|
|
8
|
-
import '../shared/iterators.js';
|
|
9
5
|
|
|
10
6
|
/** @internal */
|
|
11
7
|
function newSplice(index, removed, addedCount) {
|
|
@@ -1261,7 +1257,7 @@ _curry1(function isEmpty(x) {
|
|
|
1261
1257
|
|
|
1262
1258
|
var isEmpty$1 = isEmpty;
|
|
1263
1259
|
|
|
1264
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
1260
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\nol {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n[role=grid i] {\n position: relative;\n z-index: 0;\n display: grid;\n margin: auto;\n grid-template-areas: \". column-headers\" \"row-headers calendar\";\n grid-template-columns: min-content auto;\n inline-size: max(100%, 500px);\n min-inline-size: 880px;\n}\n\n.row-headers {\n display: grid;\n grid-area: row-headers;\n grid-template-rows: repeat(24, 1fr);\n margin-inline-end: 2px;\n}\n.row-headers > [role=rowheader i] {\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n}\n.row-headers > [role=rowheader i] > time {\n font: var(--vvd-typography-base-condensed);\n font-size: small;\n line-height: 1;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.calendar-row {\n display: contents;\n}\n\n.calendar-grid-presentation {\n display: grid;\n overflow: hidden;\n background: var(--vvd-color-surface-2dp);\n border-radius: 6px;\n counter-reset: listing;\n filter: var(--vvd-shadow-surface-2dp);\n gap: 1px;\n grid-area: calendar;\n grid-auto-flow: column;\n grid-template: repeat(24, 1fr)/repeat(7, 1fr);\n}\n\n.hours {\n display: contents;\n}\n.hours > [role=listitem i] {\n position: relative;\n grid-column: 1/8;\n grid-row: var(--row);\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n pointer-events: none;\n}\n.hours > [role=listitem i]:not(:first-child)::after {\n position: absolute;\n border-block-end: var(--vvd-color-neutral-100) 1px solid;\n content: \"\";\n inline-size: 100%;\n margin-block-start: -1px;\n}\n.hours > [role=listitem i]:nth-child(24n+1) {\n --row: 1;\n}\n.hours > [role=listitem i]:nth-child(24n+2) {\n --row: 2;\n}\n.hours > [role=listitem i]:nth-child(24n+3) {\n --row: 3;\n}\n.hours > [role=listitem i]:nth-child(24n+4) {\n --row: 4;\n}\n.hours > [role=listitem i]:nth-child(24n+5) {\n --row: 5;\n}\n.hours > [role=listitem i]:nth-child(24n+6) {\n --row: 6;\n}\n.hours > [role=listitem i]:nth-child(24n+7) {\n --row: 7;\n}\n.hours > [role=listitem i]:nth-child(24n+8) {\n --row: 8;\n}\n.hours > [role=listitem i]:nth-child(24n+9) {\n --row: 9;\n}\n.hours > [role=listitem i]:nth-child(24n+10) {\n --row: 10;\n}\n.hours > [role=listitem i]:nth-child(24n+11) {\n --row: 11;\n}\n.hours > [role=listitem i]:nth-child(24n+12) {\n --row: 12;\n}\n.hours > [role=listitem i]:nth-child(24n+13) {\n --row: 13;\n}\n.hours > [role=listitem i]:nth-child(24n+14) {\n --row: 14;\n}\n.hours > [role=listitem i]:nth-child(24n+15) {\n --row: 15;\n}\n.hours > [role=listitem i]:nth-child(24n+16) {\n --row: 16;\n}\n.hours > [role=listitem i]:nth-child(24n+17) {\n --row: 17;\n}\n.hours > [role=listitem i]:nth-child(24n+18) {\n --row: 18;\n}\n.hours > [role=listitem i]:nth-child(24n+19) {\n --row: 19;\n}\n.hours > [role=listitem i]:nth-child(24n+20) {\n --row: 20;\n}\n.hours > [role=listitem i]:nth-child(24n+21) {\n --row: 21;\n}\n.hours > [role=listitem i]:nth-child(24n+22) {\n --row: 22;\n}\n.hours > [role=listitem i]:nth-child(24n+23) {\n --row: 23;\n}\n.hours > [role=listitem i]:nth-child(24n+24) {\n --row: 24;\n}\n\n[role=gridcell i] {\n display: grid;\n gap: 1px;\n grid-auto-flow: column;\n}\n\n[role=gridcell i],\n[role=columnheader i],\n[role=columnheader i] [role=button i] {\n position: relative;\n}\n[role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n position: absolute;\n z-index: -1;\n background-color: var(--vvd-color-information-400);\n content: \"\";\n}\n@supports (inset: 0) {\n [role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n inset: 0;\n }\n}\n@supports not (inset: 0) {\n [role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n}\n[role=gridcell i]:focus,\n[role=columnheader i]:focus,\n[role=columnheader i] [role=button i]:focus {\n outline: none;\n}\n[role=gridcell i]:not(:focus-visible)::before,\n[role=columnheader i]:not(:focus-visible)::before,\n[role=columnheader i] [role=button i]:not(:focus-visible)::before {\n display: none;\n}\n\n.columns {\n display: contents;\n}\n.columns > [role=gridcell i] {\n position: relative;\n grid-column: var(--column);\n grid-row: 1/25;\n}\n.columns > [role=gridcell i]:nth-child(1) {\n --column: 1;\n}\n.columns > [role=gridcell i]:nth-child(2) {\n --column: 2;\n}\n.columns > [role=gridcell i]:nth-child(3) {\n --column: 3;\n}\n.columns > [role=gridcell i]:nth-child(4) {\n --column: 4;\n}\n.columns > [role=gridcell i]:nth-child(5) {\n --column: 5;\n}\n.columns > [role=gridcell i]:nth-child(6) {\n --column: 6;\n}\n.columns > [role=gridcell i]:nth-child(7) {\n --column: 7;\n}\n.columns > [role=gridcell i]:not(:first-child)::after {\n position: absolute;\n block-size: 100%;\n border-inline-end: var(--vvd-color-neutral-100) 1px solid;\n content: \"\";\n margin-inline-start: -1px;\n}\n\n.column-headers {\n display: grid;\n grid-area: column-headers;\n grid-template-columns: repeat(7, 1fr);\n}\n.column-headers [role=columnheader i] h2 {\n display: grid;\n align-items: baseline;\n margin: 0;\n font: var(--vvd-typography-heading-4);\n grid-template-columns: 1fr auto 1fr;\n}\n.column-headers [role=columnheader i] h2 > em {\n font: inherit;\n inline-size: min-content;\n}\n@supports (inset: 0) {\n .column-headers [role=columnheader i] h2 > em {\n inset-inline-start: 0;\n }\n}\n@supports not (inset: 0) {\n .column-headers [role=columnheader i] h2 > em {\n left: 0;\n }\n}\n.column-headers [role=columnheader i] h2 > small {\n font: var(--vvd-typography-base-condensed);\n text-transform: uppercase;\n}";
|
|
1265
1261
|
|
|
1266
1262
|
const ARROW_UP = 'ArrowUp';
|
|
1267
1263
|
const ARROW_RIGHT = 'ArrowRight';
|
|
@@ -1521,6 +1517,6 @@ const vividCalendar = Calendar.compose({
|
|
|
1521
1517
|
delegatesFocus: true
|
|
1522
1518
|
}
|
|
1523
1519
|
});
|
|
1524
|
-
designSystem.register(vividCalendar());
|
|
1520
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividCalendar());
|
|
1525
1521
|
|
|
1526
1522
|
export { vividCalendar };
|
package/calendar-event/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { h as html, d as designSystem } from '../shared/index.js';
|
|
1
|
+
import { E as _export, i as descriptors, e as global$1, n as functionUncurryThis, y as hasOwnProperty_1, r as isCallable$1, o as objectDefineProperty, a8 as copyConstructorProperties$1, P as objectIsPrototypeOf, X as toString$1, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
2
2
|
import { C as CalendarEvent } from '../shared/calendar-event.js';
|
|
3
3
|
import '../shared/es.object.assign.js';
|
|
4
|
-
import { _ as _export, d as descriptors, g as global$1, f as functionUncurryThis, q as hasOwnProperty_1, i as isCallable$1, o as objectDefineProperty, Q as copyConstructorProperties$1, b as objectIsPrototypeOf } from '../shared/export.js';
|
|
5
|
-
import { t as toString$1 } from '../shared/to-string.js';
|
|
6
4
|
import { w as when } from '../shared/when.js';
|
|
7
5
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
|
-
import '../shared/object-keys.js';
|
|
9
6
|
|
|
10
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
7
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n:host {\n display: contents;\n}\n\n.base {\n /* 4 as the indentation limit */\n /* per cell divider */\n /* per cell divider */\n --vvd-calendar-event--indent: calc(0px + var(--vvd-calendar-event--overlap-count, 0) * 8px);\n position: absolute;\n z-index: var(--vvd-calendar-event--overlap-count);\n top: calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0)));\n overflow: hidden;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: var(--_appearance-color-fill);\n block-size: calc(var(--vvd-calendar-event--duration, 1) * calc((100% - 23px) / 24) + calc(1px * (var(--vvd-calendar-event--duration, 1) - 1)) - 4px);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n inline-size: calc(100% - 8px - min(var(--vvd-calendar-event--indent), 32px));\n margin-block-start: 2px;\n margin-inline-end: 8px;\n margin-inline-start: min(var(--vvd-calendar-event--indent), 32px);\n max-block-size: calc(100% - calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0))) - 4px);\n}\n.base.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-success-800);\n --_connotation-color-soft: var(--vvd-color-success-100);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-primary-text: var(--vvd-color-canvas-text);\n --_connotation-color-contrast: var(--vvd-color-warning-800);\n --_connotation-color-soft: var(--vvd-color-warning-100);\n}\n.base.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-announcement-800);\n --_connotation-color-soft: var(--vvd-color-announcement-100);\n}\n.base:not(.connotation-accent, .connotation-cta, .connotation-success, .connotation-alert, .connotation-warning, .connotation-announcement) {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-information-800);\n --_connotation-color-soft: var(--vvd-color-information-100);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base.appearance-subtle {\n --_appearance-color-text: var(--_connotation-color-contrast);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n@supports (contain: content) {\n .base {\n contain: strict;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n.base:focus {\n z-index: 2000;\n filter: var(--vvd-shadow-surface-8dp);\n outline: none;\n}\n\nh2 {\n margin: 0;\n font: var(--vvd-typography-base-condensed-bold);\n}\nh2 > strong {\n font: inherit;\n}\n\np {\n margin: 0;\n font: var(--vvd-typography-base-condensed);\n}";
|
|
11
8
|
|
|
12
9
|
var $ = _export;
|
|
13
10
|
var DESCRIPTORS = descriptors;
|
|
@@ -107,6 +104,6 @@ const vividCalendarEvent = CalendarEvent.compose({
|
|
|
107
104
|
delegatesFocus: true
|
|
108
105
|
}
|
|
109
106
|
});
|
|
110
|
-
designSystem.register(vividCalendarEvent());
|
|
107
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividCalendarEvent());
|
|
111
108
|
|
|
112
109
|
export { vividCalendarEvent };
|