@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
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividBreadcrumbItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/button/index.d.ts
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '../focus';
|
|
3
|
-
import { type FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
-
export declare const vividButton: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
1
|
+
export {};
|
package/lib/card/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../elevation';
|
|
2
|
-
import '../icon';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividCard: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/checkbox/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { CheckboxOptions } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividCheckbox: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<CheckboxOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<CheckboxOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/components.d.ts
CHANGED
package/lib/dialog/index.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../button';
|
|
3
|
-
import '../elevation';
|
|
4
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
5
2
|
export declare const vividDialog: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/fab/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividFab: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/header/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../elevation';
|
|
2
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividHeader: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/listbox/index.d.ts
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '../listbox-option';
|
|
3
|
-
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
-
export declare const vividListbox: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
1
|
+
export {};
|
package/lib/menu/index.d.ts
CHANGED
package/lib/menu-item/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
1
|
import type { MenuItemOptions } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividMenuItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<MenuItemOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<MenuItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividNavDisclosure: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/nav-item/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividNavItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import '../icon/index';
|
|
4
3
|
import type { Note } from './note';
|
|
5
4
|
export declare const NoteTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Note>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
import '../button';
|
|
3
|
-
import '../divider';
|
|
4
2
|
export declare const vividNumberField: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividListboxOption: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import type { ListboxOption } from './
|
|
3
|
+
import type { ListboxOption } from './option';
|
|
4
4
|
export declare const ListboxOptionTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<ListboxOption>;
|
package/lib/popup/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../elevation';
|
|
2
|
-
import '../button';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividPopup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/radio/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../focus';
|
|
2
1
|
import type { RadioOptions } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividRadio: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<RadioOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<RadioOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/slider/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../focus';
|
|
2
1
|
import type { SliderOptions } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividSlider: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<SliderOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<SliderOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/switch/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../focus';
|
|
2
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import '../focus';
|
|
4
2
|
export declare const vividSwitch: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/lib/text-area/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../focus';
|
|
2
|
-
import '../icon';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividTextArea: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
import '../focus';
|
|
3
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
2
|
export declare const vividTextfield: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import '../icon/index';
|
|
4
3
|
import type { TextField } from './text-field';
|
|
5
4
|
export declare const TextfieldTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<TextField>;
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import '../popup';
|
|
2
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
2
|
export declare const vividTooltip: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
package/listbox/index.js
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../shared/
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, Z as Observable, _ as __decorate, a as attr, V as observable, a2 as DOM, a6 as nullableNumberConverter, Y as __classPrivateFieldGet, 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
|
+
import { i as isListboxOption } from '../shared/listbox-option.js';
|
|
5
5
|
import { A as ARIAGlobalStatesAndProperties } from '../shared/aria-global.js';
|
|
6
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
7
|
import { a as keySpace, b as keyEscape, k as keyEnter, c as keyTab, d as keyEnd, e as keyArrowUp, f as keyArrowDown, g as keyHome } from '../shared/key-codes.js';
|
|
8
8
|
import { i as inRange } from '../shared/numbers.js';
|
|
9
9
|
import '../shared/affix.js';
|
|
10
|
-
import { f as focusTemplateFactory } from '../shared/
|
|
10
|
+
import { f as focusTemplateFactory } from '../shared/focus.js';
|
|
11
11
|
import '../shared/icon.js';
|
|
12
12
|
import { s as slotted } from '../shared/slotted.js';
|
|
13
13
|
import { c as classNames } from '../shared/class-names.js';
|
|
14
|
-
import '../shared/focus.js';
|
|
15
|
-
import '../icon/index.js';
|
|
16
|
-
import '../shared/when.js';
|
|
17
|
-
import '../shared/export.js';
|
|
18
|
-
import '../shared/iterators.js';
|
|
19
|
-
import '../shared/to-string.js';
|
|
20
|
-
import '../shared/string-trim.js';
|
|
21
|
-
import '../shared/_has.js';
|
|
22
14
|
import '../shared/start-end.js';
|
|
23
15
|
import '../shared/ref.js';
|
|
24
16
|
import '../shared/dom.js';
|
|
25
|
-
import '../shared/
|
|
17
|
+
import '../shared/focus2.js';
|
|
18
|
+
import '../shared/string-trim.js';
|
|
19
|
+
import '../shared/_has.js';
|
|
26
20
|
|
|
27
21
|
/**
|
|
28
22
|
* Returns the index of the last element in the array where predicate is true, and -1 otherwise.
|
|
@@ -1078,13 +1072,15 @@ const ListboxTemplate = context => {
|
|
|
1078
1072
|
}));
|
|
1079
1073
|
};
|
|
1080
1074
|
|
|
1081
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
1075
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n:host {\n display: block;\n}\n\n:host(:focus-within) {\n outline: none;\n}\n\n.base {\n position: relative;\n padding: 4px;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n contain: paint;\n}\n.base {\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\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:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n\n.focus-indicator {\n pointer-events: none;\n}\n:host(:not(:focus-within)) .focus-indicator {\n display: none;\n}\n\nslot {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}";
|
|
1082
1076
|
|
|
1077
|
+
const prefix = getPrefix(import.meta.url);
|
|
1083
1078
|
const vividListbox = Listbox.compose({
|
|
1084
1079
|
baseName: 'listbox',
|
|
1085
1080
|
template: ListboxTemplate,
|
|
1086
1081
|
styles: css_248z
|
|
1087
1082
|
});
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1083
|
+
(async () => {
|
|
1084
|
+
await loadComponentsModules(['option', 'focus'], prefix);
|
|
1085
|
+
designSystem.withPrefix(prefix).register(vividListbox());
|
|
1086
|
+
})();
|
package/menu/index.js
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../shared/
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, a2 as DOM, _ as __decorate, V as observable, 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
|
+
import { M as MenuItem, a as MenuItemRole, r as roleForMenuItem } from '../shared/menu-item.js';
|
|
5
5
|
import { i as isHTMLElement } from '../shared/dom.js';
|
|
6
6
|
import { g as keyHome, d as keyEnd, e as keyArrowUp, f as keyArrowDown } from '../shared/key-codes.js';
|
|
7
|
+
import { P as Popup } from '../shared/popup.js';
|
|
7
8
|
import { s as slotted } from '../shared/slotted.js';
|
|
8
9
|
import { r as ref } from '../shared/ref.js';
|
|
9
|
-
import '../shared/index3.js';
|
|
10
|
-
import '../shared/class-names.js';
|
|
11
|
-
import '../shared/index2.js';
|
|
12
|
-
import '../icon/index.js';
|
|
13
|
-
import '../shared/icon.js';
|
|
14
|
-
import '../shared/export.js';
|
|
15
|
-
import '../shared/iterators.js';
|
|
16
|
-
import '../shared/to-string.js';
|
|
17
|
-
import '../shared/string-trim.js';
|
|
18
|
-
import '../shared/_has.js';
|
|
19
|
-
import '../shared/when.js';
|
|
20
|
-
import '../focus/index.js';
|
|
21
|
-
import '../shared/focus.js';
|
|
22
|
-
import '../shared/affix.js';
|
|
23
|
-
import '../shared/button.js';
|
|
24
|
-
import '../shared/apply-mixins.js';
|
|
25
|
-
import '../shared/form-associated.js';
|
|
26
|
-
import '../shared/aria-global.js';
|
|
27
10
|
import '../shared/start-end.js';
|
|
28
|
-
import '../shared/focus2.js';
|
|
29
|
-
import '../shared/es.object.assign.js';
|
|
30
|
-
import '../shared/object-keys.js';
|
|
31
11
|
import '../shared/direction.js';
|
|
12
|
+
import '../shared/apply-mixins.js';
|
|
13
|
+
import '../shared/es.object.assign.js';
|
|
32
14
|
|
|
33
15
|
/**
|
|
34
16
|
* A Menu Custom HTML Element.
|
|
@@ -361,11 +343,15 @@ const MenuTemplate = context => {
|
|
|
361
343
|
</template>`), x => x.slot || x.isNestedMenu() ? 'submenu' : void 0, popupTag, x => x.placement, x => x.open, x => x.anchor, x => x.popupOpenChanged(), x => x.popupOpenChanged(), ref('_popup'), (x, c) => x.handleMenuKeyDown(c.event), (x, c) => x.handleFocusOut(c.event), slotted('items'), popupTag);
|
|
362
344
|
};
|
|
363
345
|
|
|
346
|
+
const prefix = getPrefix(import.meta.url);
|
|
364
347
|
const vividMenu = Menu.compose({
|
|
365
348
|
baseName: 'menu',
|
|
366
349
|
template: MenuTemplate,
|
|
367
350
|
styles: css_248z
|
|
368
351
|
});
|
|
369
|
-
|
|
352
|
+
(async () => {
|
|
353
|
+
await loadComponentsModules(['popup', 'menu-item'], prefix);
|
|
354
|
+
designSystem.withPrefix(prefix).register(vividMenu());
|
|
355
|
+
})();
|
|
370
356
|
|
|
371
357
|
export { vividMenu };
|
package/menu-item/index.js
CHANGED
|
@@ -1,21 +1,90 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import '../shared/index.js';
|
|
3
|
-
|
|
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
|
+
import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
5
|
+
import { M as MenuItem$1, a as MenuItemRole } from '../shared/menu-item.js';
|
|
6
|
+
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
|
+
import { f as focusTemplateFactory } from '../shared/focus.js';
|
|
8
|
+
import { w as when } from '../shared/when.js';
|
|
9
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
4
10
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/export.js';
|
|
6
|
-
import '../shared/iterators.js';
|
|
7
|
-
import '../shared/to-string.js';
|
|
8
11
|
import '../shared/string-trim.js';
|
|
9
12
|
import '../shared/_has.js';
|
|
10
|
-
import '../shared/when.js';
|
|
11
|
-
import '../shared/class-names.js';
|
|
12
|
-
import '../shared/affix.js';
|
|
13
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
14
|
-
import '../shared/object-keys.js';
|
|
15
13
|
import '../shared/start-end.js';
|
|
16
14
|
import '../shared/ref.js';
|
|
17
15
|
import '../shared/direction.js';
|
|
18
|
-
import '../shared/apply-mixins.js';
|
|
19
16
|
import '../shared/key-codes.js';
|
|
20
17
|
import '../shared/focus2.js';
|
|
21
|
-
|
|
18
|
+
|
|
19
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n@supports selector(:focus-visible) {\n :host(:focus) {\n outline: none;\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 block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-typography-base);\n gap: 12px;\n inline-size: 100%;\n padding-inline: 16px;\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base: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.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base: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.base:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\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:where(.selected, [aria-current]):where(:hover, .hover) {\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.base {\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-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n cursor: pointer;\n}\n.base.disabled {\n cursor: not-allowed;\n}\n\n.focus-indicator {\n border-radius: 6px;\n}\n:host(:not(:focus-visible)) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}\n.base:not(.disabled, .item-checkbox, .item-radio) .icon {\n color: var(--vvd-color-neutral-600);\n}\n.base:is(.disabled, .item-checkbox, .item-radio) .icon {\n color: var(--_appearance-color-text);\n}\n\n.text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}";
|
|
20
|
+
|
|
21
|
+
class MenuItem extends MenuItem$1 {}
|
|
22
|
+
__decorate([attr, __metadata("design:type", String)], MenuItem.prototype, "text", void 0);
|
|
23
|
+
applyMixins(MenuItem, AffixIcon);
|
|
24
|
+
|
|
25
|
+
let _ = t => t,
|
|
26
|
+
_t,
|
|
27
|
+
_t2,
|
|
28
|
+
_t3,
|
|
29
|
+
_t4,
|
|
30
|
+
_t5;
|
|
31
|
+
const getClasses = ({
|
|
32
|
+
disabled,
|
|
33
|
+
checked,
|
|
34
|
+
expanded,
|
|
35
|
+
role
|
|
36
|
+
}) => classNames('base', ['disabled', Boolean(disabled)], ['selected', role !== MenuItemRole.menuitem && Boolean(checked)], ['expanded', Boolean(expanded)], ['item-checkbox', role === MenuItemRole.menuitemcheckbox], ['item-radio', role === MenuItemRole.menuitemradio]);
|
|
37
|
+
const MenuItemTemplate = (context, definition) => {
|
|
38
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
39
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
40
|
+
return html(_t || (_t = _`
|
|
41
|
+
<template
|
|
42
|
+
aria-checked="${0}"
|
|
43
|
+
aria-disabled="${0}"
|
|
44
|
+
aria-expanded="${0}"
|
|
45
|
+
@keydown="${0}"
|
|
46
|
+
@click="${0}"
|
|
47
|
+
@mouseover="${0}"
|
|
48
|
+
@mouseout="${0}"
|
|
49
|
+
>
|
|
50
|
+
<div class="${0}">
|
|
51
|
+
|
|
52
|
+
${0}
|
|
53
|
+
${0}
|
|
54
|
+
|
|
55
|
+
${0}
|
|
56
|
+
|
|
57
|
+
${0}
|
|
58
|
+
|
|
59
|
+
${0}
|
|
60
|
+
|
|
61
|
+
<span class="text">
|
|
62
|
+
${0}
|
|
63
|
+
</span>
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
66
|
+
`), x => x.role !== MenuItemRole.menuitem ? x.checked : void 0, x => x.disabled, x => x.expanded, (x, c) => x.handleMenuItemKeyDown(c.event), (x, c) => x.handleMenuItemClick(c.event), (x, c) => x.handleMouseOver(c.event), (x, c) => x.handleMouseOut(c.event), getClasses, when(x => x.hasSubmenu, html(_t2 || (_t2 = _`
|
|
67
|
+
<div
|
|
68
|
+
class="expand-collapse-glyph-container"
|
|
69
|
+
>
|
|
70
|
+
<span class="expand-collapse">
|
|
71
|
+
<slot name="expand-collapse-indicator">
|
|
72
|
+
${0}
|
|
73
|
+
</slot>
|
|
74
|
+
</span>
|
|
75
|
+
</div>
|
|
76
|
+
`), definition.expandCollapseGlyph || '')), () => focusTemplate, when(x => x.role === MenuItemRole.menuitemcheckbox, html(_t3 || (_t3 = _`${0}`), x => affixIconTemplate(x.checked ? 'checkbox-checked-line' : 'checkbox-unchecked-line'))), when(x => x.role === MenuItemRole.menuitemradio, html(_t4 || (_t4 = _`${0}`), x => affixIconTemplate(x.checked ? 'radio-checked-line' : 'radio-unchecked-line'))), when(x => x.role === MenuItemRole.menuitem && x.icon, html(_t5 || (_t5 = _`${0}`), x => affixIconTemplate(x.icon))), x => x.text);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const prefix = getPrefix(import.meta.url);
|
|
80
|
+
const vividMenuItem = MenuItem.compose({
|
|
81
|
+
baseName: 'menu-item',
|
|
82
|
+
template: MenuItemTemplate,
|
|
83
|
+
styles: css_248z
|
|
84
|
+
});
|
|
85
|
+
(async () => {
|
|
86
|
+
await loadComponentsModules(['icon', 'focus'], prefix);
|
|
87
|
+
designSystem.withPrefix(prefix).register(vividMenuItem());
|
|
88
|
+
})();
|
|
89
|
+
|
|
90
|
+
export { vividMenuItem };
|
package/nav/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FoundationElement, h as html, d as designSystem } from '../shared/index.js';
|
|
1
|
+
import { F as FoundationElement, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
2
2
|
|
|
3
3
|
class Nav extends FoundationElement {}
|
|
4
4
|
|
|
@@ -12,6 +12,6 @@ const vividNav = Nav.compose({
|
|
|
12
12
|
baseName: 'nav',
|
|
13
13
|
template: NavTemplate
|
|
14
14
|
});
|
|
15
|
-
designSystem.register(vividNav());
|
|
15
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividNav());
|
|
16
16
|
|
|
17
17
|
export { vividNav };
|
package/nav-disclosure/index.js
CHANGED
|
@@ -1,23 +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, 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';
|
|
5
4
|
import { b as AffixIcon, 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 { r as ref } from '../shared/ref.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/focus.js';
|
|
18
|
-
import '../shared/object-keys.js';
|
|
12
|
+
import '../shared/focus2.js';
|
|
19
13
|
|
|
20
|
-
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.control {\n position: relative;\n display: 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 cursor: pointer;\n font: var(--vvd-typography-base);\n gap: 12px;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n padding-inline: 16px;\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: transparent;\n --_appearance-color-outline: transparent;\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(: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.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\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 {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\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 .control:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .control {\n user-select: none;\n }\n}\n.control .toggleIcon {\n margin-inline-start: auto;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}\n.control:not(.icon-only) .icon {\n color: var(--vvd-color-neutral-600);\n}\n\n.content {\n border-inline-start: 1px solid var(--vvd-color-neutral-200);\n margin-inline-start: 20px;\n padding-inline-start: 12px;\n}\n\ndetails > summary {\n list-style: none;\n}\n\ndetails > summary::-webkit-details-marker {\n display: none;\n}";
|
|
21
15
|
|
|
22
16
|
var _NavDisclosure_onToggle;
|
|
23
17
|
class NavDisclosure extends FoundationElement {
|
|
@@ -72,11 +66,15 @@ const NavDisclosureTemplate = context => {
|
|
|
72
66
|
`), ref('details'), x => x.open, x => x.open, x => affixIconTemplate(x.icon), x => x.label, when(x => x.open, html(_t2 || (_t2 = _`<vwc-icon class="toggleIcon" name='chevron-up-solid'></vwc-icon>`))), when(x => !x.open, html(_t3 || (_t3 = _`<vwc-icon class="toggleIcon" name='chevron-down-solid'></vwc-icon>`))), () => focusTemplate);
|
|
73
67
|
};
|
|
74
68
|
|
|
69
|
+
const prefix = getPrefix(import.meta.url);
|
|
75
70
|
const vividNavDisclosure = NavDisclosure.compose({
|
|
76
71
|
baseName: 'nav-disclosure',
|
|
77
72
|
template: NavDisclosureTemplate,
|
|
78
73
|
styles: css_248z
|
|
79
74
|
});
|
|
80
|
-
|
|
75
|
+
(async () => {
|
|
76
|
+
await loadComponentsModules(['icon', 'focus'], prefix);
|
|
77
|
+
designSystem.withPrefix(prefix).register(vividNavDisclosure());
|
|
78
|
+
})();
|
|
81
79
|
|
|
82
80
|
export { vividNavDisclosure };
|
package/nav-item/index.js
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import '../
|
|
3
|
-
import {
|
|
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
4
|
import { b as AffixIcon } from '../shared/affix.js';
|
|
5
5
|
import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
6
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
7
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
|
-
import '../shared/export.js';
|
|
10
|
-
import '../shared/iterators.js';
|
|
11
|
-
import '../shared/to-string.js';
|
|
12
9
|
import '../shared/string-trim.js';
|
|
13
10
|
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
11
|
import '../shared/anchor.js';
|
|
20
12
|
import '../shared/aria-global.js';
|
|
21
13
|
import '../shared/start-end.js';
|
|
22
14
|
import '../shared/ref.js';
|
|
15
|
+
import '../shared/focus.js';
|
|
23
16
|
import '../shared/focus2.js';
|
|
17
|
+
import '../shared/class-names.js';
|
|
24
18
|
|
|
25
|
-
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.control {\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 font: var(--vvd-typography-base);\n gap: 12px;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\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: transparent;\n --_appearance-color-outline: transparent;\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(: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.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\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:where(.selected, [aria-current]):where(:hover, .hover) {\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 {\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-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control.icon-only {\n display: flex;\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n inline-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n place-content: center;\n}\n.control:not(.icon-only) {\n padding-inline: 16px;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}\n.control:not(.icon-only) .icon {\n color: var(--vvd-color-neutral-600);\n}";
|
|
26
20
|
|
|
27
21
|
class NavItem extends TextAnchor {}
|
|
28
22
|
applyMixins(NavItem, AffixIcon);
|
|
@@ -33,6 +27,7 @@ const NavItemTemplate = (context, definition) => html(_t || (_t = _`
|
|
|
33
27
|
${0}
|
|
34
28
|
`), textAnchorTemplate(context));
|
|
35
29
|
|
|
30
|
+
const prefix = getPrefix(import.meta.url);
|
|
36
31
|
const vividNavItem = NavItem.compose({
|
|
37
32
|
baseName: 'nav-item',
|
|
38
33
|
template: NavItemTemplate,
|
|
@@ -41,6 +36,9 @@ const vividNavItem = NavItem.compose({
|
|
|
41
36
|
delegatesFocus: true
|
|
42
37
|
}
|
|
43
38
|
});
|
|
44
|
-
|
|
39
|
+
(async () => {
|
|
40
|
+
await loadComponentsModules(['icon', 'focus'], prefix);
|
|
41
|
+
designSystem.withPrefix(prefix).register(vividNavItem());
|
|
42
|
+
})();
|
|
45
43
|
|
|
46
44
|
export { vividNavItem };
|
package/note/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import
|
|
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';
|
|
2
4
|
import { b as AffixIcon } from '../shared/affix.js';
|
|
3
|
-
import '../shared/
|
|
4
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
5
|
+
import '../shared/focus2.js';
|
|
5
6
|
import '../shared/icon.js';
|
|
6
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
|
-
import '../icon/index.js';
|
|
8
8
|
import { C as Connotation } from '../shared/enums.js';
|
|
9
9
|
import { w as when } from '../shared/when.js';
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
|
-
import '../shared/export.js';
|
|
12
|
-
import '../shared/object-keys.js';
|
|
13
|
-
import '../shared/iterators.js';
|
|
14
|
-
import '../shared/to-string.js';
|
|
15
11
|
import '../shared/string-trim.js';
|
|
16
12
|
import '../shared/_has.js';
|
|
17
13
|
|
|
18
|
-
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.base {\n display: flex;\n align-items: stretch;\n padding: 20px;\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}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-intermediate: var(--vvd-color-success-500);\n --_connotation-color-backdrop: var(--vvd-color-success-50);\n}\n.base.connotation-information {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-intermediate: var(--vvd-color-information-500);\n --_connotation-color-backdrop: var(--vvd-color-information-50);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-intermediate: var(--vvd-color-alert-500);\n --_connotation-color-backdrop: var(--vvd-color-alert-50);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-intermediate: var(--vvd-color-warning-500);\n --_connotation-color-backdrop: var(--vvd-color-warning-50);\n}\n.base:not(.connotation-success, .connotation-information, .connotation-alert, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-intermediate: var(--vvd-color-announcement-500);\n --_connotation-color-backdrop: var(--vvd-color-announcement-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@supports (contain: content) {\n .base {\n contain: content;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n\n.icon {\n align-self: flex-start;\n color: var(--_appearance-color-outline);\n font-size: 24px;\n margin-inline-end: 16px;\n}\n\n.text {\n display: flex;\n min-height: 24px;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n gap: 4px;\n text-align: start;\n}\n.text .headline {\n font: var(--vvd-typography-base-bold);\n}\n.text .message {\n font: var(--vvd-typography-base);\n}";
|
|
19
15
|
|
|
20
16
|
class Note extends FoundationElement {}
|
|
21
17
|
__decorate([attr, __metadata("design:type", String)], Note.prototype, "headline", void 0);
|
|
@@ -49,11 +45,15 @@ const NoteTemplate = () => html(_t3 || (_t3 = _`
|
|
|
49
45
|
</div>
|
|
50
46
|
`), getClasses, getIconTemplate(), when(x => x.headline, getHeaderTemplate()));
|
|
51
47
|
|
|
48
|
+
const prefix = getPrefix(import.meta.url);
|
|
52
49
|
const vividNote = Note.compose({
|
|
53
50
|
baseName: 'note',
|
|
54
51
|
template: NoteTemplate,
|
|
55
52
|
styles: css_248z
|
|
56
53
|
});
|
|
57
|
-
|
|
54
|
+
(async () => {
|
|
55
|
+
await loadComponentsModules(['icon'], prefix);
|
|
56
|
+
designSystem.withPrefix(prefix).register(vividNote());
|
|
57
|
+
})();
|
|
58
58
|
|
|
59
59
|
export { vividNote };
|