@vonage/vivid 3.9.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/index.js +28 -0
- package/avatar/index.js +1 -1
- package/badge/index.js +1 -1
- package/banner/index.js +3 -3
- package/breadcrumb/index.js +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/button/index.js +2 -2
- package/calendar/index.js +1 -1
- package/calendar-event/index.js +1 -1
- package/card/index.js +2 -2
- package/checkbox/index.js +1 -1
- package/combobox/index.js +6 -6
- package/custom-elements.json +269 -27
- package/data-grid/index.js +1 -1
- package/dialog/index.js +4 -4
- package/divider/index.js +1 -1
- package/elevation/index.js +1 -1
- package/fab/index.js +1 -1
- package/header/index.js +2 -2
- package/index.js +51 -50
- package/layout/index.js +1 -1
- package/lib/alert/alert.d.ts +24 -0
- package/lib/alert/alert.template.d.ts +4 -0
- package/lib/alert/definition.d.ts +2 -0
- package/lib/alert/index.d.ts +1 -0
- package/lib/components.d.ts +1 -0
- package/lib/text-area/text-area.d.ts +2 -1
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/listbox/index.js +2 -2
- package/menu/index.js +6 -6
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/number-field/index.js +4 -4
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/popup/index.js +4 -4
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/select/index.js +6 -6
- package/shared/definition.js +1 -1
- package/shared/definition10.js +46 -63
- package/shared/definition11.js +38 -92
- package/shared/definition12.js +96 -31
- package/shared/definition13.js +84 -757
- package/shared/definition14.js +32 -95
- package/shared/definition15.js +758 -100
- package/shared/definition16.js +103 -24
- package/shared/definition17.js +96 -154
- package/shared/definition18.js +108 -663
- package/shared/definition19.js +667 -1532
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1544 -223
- package/shared/definition21.js +183 -964
- package/shared/definition22.js +1037 -222
- package/shared/definition23.js +226 -67
- package/shared/definition24.js +68 -77
- package/shared/definition25.js +76 -47
- package/shared/definition26.js +46 -32
- package/shared/definition27.js +35 -49
- package/shared/definition28.js +48 -344
- package/shared/definition29.js +273 -282
- package/shared/definition30.js +356 -14
- package/shared/definition31.js +13 -67
- package/shared/definition32.js +65 -21
- package/shared/definition33.js +21 -39
- package/shared/definition34.js +31 -432
- package/shared/definition35.js +432 -76
- package/shared/definition36.js +82 -33
- package/shared/definition37.js +31 -422
- package/shared/definition38.js +357 -564
- package/shared/definition39.js +628 -75
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +70 -573
- package/shared/definition41.js +538 -81
- package/shared/definition42.js +127 -47
- package/shared/definition43.js +51 -16
- package/shared/definition44.js +17 -425
- package/shared/definition45.js +421 -103
- package/shared/definition46.js +114 -19
- package/shared/definition47.js +19 -269
- package/shared/definition48.js +244 -86
- package/shared/definition49.js +110 -70
- package/shared/definition5.js +1 -1
- package/shared/definition50.js +80 -67
- package/shared/definition51.js +69 -295
- package/shared/definition52.js +305 -0
- package/shared/definition6.js +142 -45
- package/shared/definition7.js +95 -23
- package/shared/definition8.js +22 -103
- package/shared/definition9.js +62 -102
- package/shared/es.object.assign.js +1 -1
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.js +2 -2
- package/shared/index.js +1 -1
- package/shared/listbox.js +2 -2
- package/shared/patterns/form-elements/form-elements.d.ts +4 -4
- package/shared/repeat.js +1 -1
- package/shared/text-field.js +1 -1
- package/shared/text-field2.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +1 -1
- 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 +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +3 -3
- package/tag/index.js +1 -1
- package/tag-group/index.js +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.js +1 -1
- package/tooltip/index.js +5 -5
- package/tree-item/index.js +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +91 -0
package/index.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
export { a as accordionDefinition, b as accordionRegistries, r as registerAccordion } from './shared/definition.js';
|
|
2
2
|
export { b as accordionItemDefinition, a as accordionItemRegistries, r as registerAccordionItem } from './shared/definition2.js';
|
|
3
3
|
export { a as actionGroupDefinition, b as actionGroupRegistries, r as registerActionGroup } from './shared/definition5.js';
|
|
4
|
-
export { a as avatarDefinition, b as avatarRegistries, r as registerAvatar } from './shared/
|
|
5
|
-
export { b as badgeDefinition, r as registerBadge } from './shared/
|
|
6
|
-
export { b as bannerDefinition, a as bannerRegistries, r as registerBanner } from './shared/
|
|
7
|
-
export {
|
|
8
|
-
export { b as
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { c as
|
|
12
|
-
export { c as
|
|
13
|
-
export { c as
|
|
14
|
-
export { c as
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
4
|
+
export { a as avatarDefinition, b as avatarRegistries, r as registerAvatar } from './shared/definition10.js';
|
|
5
|
+
export { b as badgeDefinition, r as registerBadge } from './shared/definition11.js';
|
|
6
|
+
export { b as bannerDefinition, a as bannerRegistries, r as registerBanner } from './shared/definition12.js';
|
|
7
|
+
export { a as alertDefinition, b as alertRegistries, r as registerAlert } from './shared/definition6.js';
|
|
8
|
+
export { b as breadcrumbDefinition, a as breadcrumbRegistries, r as registerBreadcrumb } from './shared/definition13.js';
|
|
9
|
+
export { b as breadcrumbItemDefinition, a as breadcrumbItemRegistries, r as registerBreadcrumbItem } from './shared/definition14.js';
|
|
10
|
+
export { a as buttonDefinition, b as buttonRegistries, r as registerButton } from './shared/definition7.js';
|
|
11
|
+
export { c as calendarDefinition, a as calendarRegistries, r as registerCalendar } from './shared/definition15.js';
|
|
12
|
+
export { c as calendarEventDefinition, a as calendarEventRegistries, r as registerCalendarEvent } from './shared/definition16.js';
|
|
13
|
+
export { c as cardDefinition, a as cardRegistries, r as registerCard } from './shared/definition17.js';
|
|
14
|
+
export { c as checkboxDefinition, a as checkboxRegistries, r as registerCheckbox } from './shared/definition18.js';
|
|
15
|
+
export { c as combobox, a as comboboxRegistries, r as registerCombobox } from './shared/definition19.js';
|
|
16
|
+
export { a as elevationDefinition, e as elevationRegistries, r as registerElevation } from './shared/definition8.js';
|
|
17
|
+
export { d as dialogDefinition, a as dialogRegistries, r as registerDialog } from './shared/definition23.js';
|
|
18
|
+
export { a as dividerDefinition, d as dividerRegistries, r as registerDivider } from './shared/definition24.js';
|
|
19
|
+
export { d as dataGrid, b as dataGridCell, c as dataGridElements, a as dataGridRow, r as registerDataGrid } from './shared/definition22.js';
|
|
20
|
+
export { f as fabDefinition, a as fabRegistries, r as registerFab } from './shared/definition25.js';
|
|
21
|
+
export { h as headerDefinition, a as headerRegistries, r as registerHeader } from './shared/definition26.js';
|
|
21
22
|
export { a as iconDefinition, i as iconRegistries, r as registerIcon } from './shared/definition3.js';
|
|
22
|
-
export { l as layoutDefinition, a as layoutRegistries, r as registerLayout } from './shared/
|
|
23
|
-
export { l as listboxDefinition, a as listboxRegistries, r as registerListbox } from './shared/
|
|
24
|
-
export { a as listboxOptionDefinition, l as listboxOptionRegistries, r as registerOption } from './shared/
|
|
25
|
-
export { m as menuDefinition, a as menuRegistries, r as registerMenu } from './shared/
|
|
26
|
-
export { c as menuItemDefinition, m as menuItemRegistries, b as registerMenuItem } from './shared/
|
|
27
|
-
export { n as navDefinition, a as navRegistries, r as registerNav } from './shared/
|
|
28
|
-
export { n as navDisclosureDefinition, a as navDisclosureRegistries, r as registerNavDisclosure } from './shared/
|
|
29
|
-
export { n as navItemDefinition, a as navItemRegistries, r as registerNavItem } from './shared/
|
|
30
|
-
export { n as noteDefinition, a as noteRegistries, r as registerNote } from './shared/
|
|
31
|
-
export { n as numberFieldDefinition, a as numberFieldRegistries, r as registerNumberField } from './shared/
|
|
32
|
-
export { a as popupDefinition, p as popupRegistries, r as registerPopup } from './shared/
|
|
33
|
-
export { p as progressDefinition, a as progressRegistries, r as registerProgress } from './shared/
|
|
34
|
-
export { a as progressRingDefinition, p as progressRingRegistries, r as registerProgressRing } from './shared/
|
|
35
|
-
export { a as radioDefinition, b as radioRegistries, r as registerRadio } from './shared/
|
|
36
|
-
export { a as radioGroupDefinition, b as radioGroupRegistries, r as registerRadioGroup } from './shared/
|
|
37
|
-
export { r as registerSelect, s as selectDefinition, a as selectRegistries } from './shared/
|
|
38
|
-
export { r as registerSideDrawer, s as sideDrawerDefinition, a as sideDrawerRegistries } from './shared/
|
|
39
|
-
export { r as registerSlider, s as sliderDefinition, a as sliderRegistries } from './shared/
|
|
40
|
-
export { r as registerSwitch, s as switchDefinition, a as switchRegistries } from './shared/
|
|
41
|
-
export { r as registerTextField, t as textFieldDefinition, a as textFieldRegistries } from './shared/
|
|
42
|
-
export { r as registerTextArea, t as textAreaDefinition, a as textAreaRegistries } from './shared/
|
|
43
|
-
export { r as registerTooltip, t as tooltipDefinition, a as tooltipRegistries } from './shared/
|
|
44
|
-
export { r as registerTabs, t as tabsDefinition, a as tabsRegistries } from './shared/
|
|
45
|
-
export { r as registerTab, a as tabDefinition, t as tabRegistries } from './shared/
|
|
46
|
-
export { r as registerTabPanel, a as tabPanelDefinition, t as tabPanelRegistries } from './shared/
|
|
47
|
-
export { r as registerTreeView, t as treeViewDefinition, a as treeViewRegistries } from './shared/
|
|
48
|
-
export { r as registerTreeItem, t as treeItemDefinition, a as treeItemRegistries } from './shared/
|
|
49
|
-
export { r as registerTag, t as tagDefinition } from './shared/
|
|
50
|
-
export { r as registerTagGroup, t as tagGroupDefinition, a as tagGroupRegistries } from './shared/
|
|
23
|
+
export { l as layoutDefinition, a as layoutRegistries, r as registerLayout } from './shared/definition27.js';
|
|
24
|
+
export { l as listboxDefinition, a as listboxRegistries, r as registerListbox } from './shared/definition28.js';
|
|
25
|
+
export { a as listboxOptionDefinition, l as listboxOptionRegistries, r as registerOption } from './shared/definition21.js';
|
|
26
|
+
export { m as menuDefinition, a as menuRegistries, r as registerMenu } from './shared/definition29.js';
|
|
27
|
+
export { c as menuItemDefinition, m as menuItemRegistries, b as registerMenuItem } from './shared/definition30.js';
|
|
28
|
+
export { n as navDefinition, a as navRegistries, r as registerNav } from './shared/definition31.js';
|
|
29
|
+
export { n as navDisclosureDefinition, a as navDisclosureRegistries, r as registerNavDisclosure } from './shared/definition32.js';
|
|
30
|
+
export { n as navItemDefinition, a as navItemRegistries, r as registerNavItem } from './shared/definition33.js';
|
|
31
|
+
export { n as noteDefinition, a as noteRegistries, r as registerNote } from './shared/definition34.js';
|
|
32
|
+
export { n as numberFieldDefinition, a as numberFieldRegistries, r as registerNumberField } from './shared/definition35.js';
|
|
33
|
+
export { a as popupDefinition, p as popupRegistries, r as registerPopup } from './shared/definition20.js';
|
|
34
|
+
export { p as progressDefinition, a as progressRegistries, r as registerProgress } from './shared/definition36.js';
|
|
35
|
+
export { a as progressRingDefinition, p as progressRingRegistries, r as registerProgressRing } from './shared/definition9.js';
|
|
36
|
+
export { a as radioDefinition, b as radioRegistries, r as registerRadio } from './shared/definition37.js';
|
|
37
|
+
export { a as radioGroupDefinition, b as radioGroupRegistries, r as registerRadioGroup } from './shared/definition38.js';
|
|
38
|
+
export { r as registerSelect, s as selectDefinition, a as selectRegistries } from './shared/definition39.js';
|
|
39
|
+
export { r as registerSideDrawer, s as sideDrawerDefinition, a as sideDrawerRegistries } from './shared/definition40.js';
|
|
40
|
+
export { r as registerSlider, s as sliderDefinition, a as sliderRegistries } from './shared/definition41.js';
|
|
41
|
+
export { r as registerSwitch, s as switchDefinition, a as switchRegistries } from './shared/definition42.js';
|
|
42
|
+
export { r as registerTextField, t as textFieldDefinition, a as textFieldRegistries } from './shared/definition49.js';
|
|
43
|
+
export { r as registerTextArea, t as textAreaDefinition, a as textAreaRegistries } from './shared/definition48.js';
|
|
44
|
+
export { r as registerTooltip, t as tooltipDefinition, a as tooltipRegistries } from './shared/definition50.js';
|
|
45
|
+
export { r as registerTabs, t as tabsDefinition, a as tabsRegistries } from './shared/definition45.js';
|
|
46
|
+
export { r as registerTab, a as tabDefinition, t as tabRegistries } from './shared/definition43.js';
|
|
47
|
+
export { r as registerTabPanel, a as tabPanelDefinition, t as tabPanelRegistries } from './shared/definition44.js';
|
|
48
|
+
export { r as registerTreeView, t as treeViewDefinition, a as treeViewRegistries } from './shared/definition52.js';
|
|
49
|
+
export { r as registerTreeItem, t as treeItemDefinition, a as treeItemRegistries } from './shared/definition51.js';
|
|
50
|
+
export { r as registerTag, t as tagDefinition } from './shared/definition46.js';
|
|
51
|
+
export { r as registerTagGroup, t as tagGroupDefinition, a as tagGroupRegistries } from './shared/definition47.js';
|
|
51
52
|
export { A as Appearance, c as AriaLive, C as Connotation, a as ConnotationDecorative, L as LayoutSize, P as Position, R as Role, S as Shape, b as Size } from './shared/enums.js';
|
|
52
53
|
export { a7 as designSystem, r as registerFactory } from './shared/index.js';
|
|
53
54
|
import './shared/key-codes.js';
|
|
@@ -66,17 +67,17 @@ import './shared/ref.js';
|
|
|
66
67
|
import './shared/apply-mixins.js';
|
|
67
68
|
import './shared/focus2.js';
|
|
68
69
|
import './shared/when.js';
|
|
70
|
+
import './shared/form-elements.js';
|
|
71
|
+
import './shared/button.js';
|
|
72
|
+
import './shared/form-associated.js';
|
|
73
|
+
import './shared/aria-global.js';
|
|
69
74
|
import './shared/breadcrumb-item.js';
|
|
70
75
|
import './shared/anchor.js';
|
|
71
|
-
import './shared/aria-global.js';
|
|
72
76
|
import './shared/text-anchor.template.js';
|
|
73
|
-
import './shared/button.js';
|
|
74
|
-
import './shared/form-associated.js';
|
|
75
77
|
import './shared/calendar-event.js';
|
|
76
78
|
import './shared/es.object.assign.js';
|
|
77
79
|
import './shared/repeat.js';
|
|
78
80
|
import './shared/text-field.js';
|
|
79
|
-
import './shared/form-elements.js';
|
|
80
81
|
import './shared/listbox.js';
|
|
81
82
|
import './shared/strings.js';
|
|
82
83
|
import './shared/select.options.js';
|
package/layout/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Connotation } from '../enums';
|
|
3
|
+
import { AffixIcon } from '../../shared/patterns/affix';
|
|
4
|
+
export declare type AlertConnotation = Connotation.Accent | Connotation.Information | Connotation.Success | Connotation.Warning | Connotation.Alert;
|
|
5
|
+
export declare type AlertPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
6
|
+
export declare class Alert extends FoundationElement {
|
|
7
|
+
#private;
|
|
8
|
+
private timeout;
|
|
9
|
+
removable: boolean;
|
|
10
|
+
placement?: AlertPlacement;
|
|
11
|
+
headline?: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
open: boolean;
|
|
15
|
+
timeoutms: number;
|
|
16
|
+
connotation?: AlertConnotation;
|
|
17
|
+
get conditionedIcon(): string;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
21
|
+
remove: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface Alert extends AffixIcon {
|
|
24
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Alert } from './alert';
|
|
4
|
+
export declare const AlertTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Alert>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './action-group/definition';
|
|
|
4
4
|
export * from './avatar/definition';
|
|
5
5
|
export * from './badge/definition';
|
|
6
6
|
export * from './banner/definition';
|
|
7
|
+
export * from './alert/definition';
|
|
7
8
|
export * from './breadcrumb/definition';
|
|
8
9
|
export * from './breadcrumb-item/definition';
|
|
9
10
|
export * from './button/definition';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TextArea as FoundationElement } from '@microsoft/fast-foundation';
|
|
2
2
|
import { FormElement, FormElementCharCount, FormElementHelperText, FormElementSuccessText } from '../../shared/patterns';
|
|
3
|
+
import { ErrorText } from '../../shared/patterns';
|
|
3
4
|
export declare type TextAreaWrap = 'hard' | 'soft' | 'off';
|
|
4
5
|
export declare class TextArea extends FoundationElement {
|
|
5
6
|
wrap?: TextAreaWrap;
|
|
6
7
|
}
|
|
7
|
-
export interface TextArea extends FormElement, FormElementCharCount, FormElementHelperText, FormElementSuccessText {
|
|
8
|
+
export interface TextArea extends FormElement, ErrorText, FormElementCharCount, FormElementHelperText, FormElementSuccessText {
|
|
8
9
|
}
|
package/lib/tooltip/tooltip.d.ts
CHANGED
package/listbox/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerListbox } from '../shared/
|
|
1
|
+
import { r as registerListbox } from '../shared/definition28.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition4.js';
|
|
4
4
|
import '../shared/focus.js';
|
|
5
|
-
import '../shared/
|
|
5
|
+
import '../shared/definition21.js';
|
|
6
6
|
import '../shared/definition3.js';
|
|
7
7
|
import '../shared/icon.js';
|
|
8
8
|
import '../shared/to-string.js';
|
package/menu/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerMenu } from '../shared/
|
|
1
|
+
import { r as registerMenu } from '../shared/definition29.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
4
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition20.js';
|
|
4
|
+
import '../shared/definition7.js';
|
|
5
5
|
import '../shared/definition3.js';
|
|
6
6
|
import '../shared/icon.js';
|
|
7
7
|
import '../shared/to-string.js';
|
|
@@ -11,7 +11,7 @@ import '../shared/class-names.js';
|
|
|
11
11
|
import '../shared/when.js';
|
|
12
12
|
import '../shared/definition4.js';
|
|
13
13
|
import '../shared/focus.js';
|
|
14
|
-
import '../shared/
|
|
14
|
+
import '../shared/definition9.js';
|
|
15
15
|
import '../shared/base-progress.js';
|
|
16
16
|
import '../shared/affix.js';
|
|
17
17
|
import '../shared/button.js';
|
|
@@ -22,9 +22,9 @@ import '../shared/aria-global.js';
|
|
|
22
22
|
import '../shared/start-end.js';
|
|
23
23
|
import '../shared/ref.js';
|
|
24
24
|
import '../shared/focus2.js';
|
|
25
|
-
import '../shared/
|
|
25
|
+
import '../shared/definition8.js';
|
|
26
26
|
import '../shared/es.object.assign.js';
|
|
27
|
-
import '../shared/
|
|
27
|
+
import '../shared/definition30.js';
|
|
28
28
|
import '../shared/direction.js';
|
|
29
29
|
import '../shared/dom.js';
|
|
30
30
|
import '../shared/slotted.js';
|
package/menu-item/index.js
CHANGED
package/nav/index.js
CHANGED
package/nav-disclosure/index.js
CHANGED
package/nav-item/index.js
CHANGED
package/note/index.js
CHANGED
package/number-field/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerNumberField } from '../shared/
|
|
1
|
+
import { r as registerNumberField } from '../shared/definition35.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition7.js';
|
|
4
4
|
import '../shared/definition3.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
6
|
import '../shared/to-string.js';
|
|
@@ -10,7 +10,7 @@ import '../shared/class-names.js';
|
|
|
10
10
|
import '../shared/when.js';
|
|
11
11
|
import '../shared/definition4.js';
|
|
12
12
|
import '../shared/focus.js';
|
|
13
|
-
import '../shared/
|
|
13
|
+
import '../shared/definition9.js';
|
|
14
14
|
import '../shared/base-progress.js';
|
|
15
15
|
import '../shared/affix.js';
|
|
16
16
|
import '../shared/button.js';
|
|
@@ -21,7 +21,7 @@ import '../shared/aria-global.js';
|
|
|
21
21
|
import '../shared/start-end.js';
|
|
22
22
|
import '../shared/ref.js';
|
|
23
23
|
import '../shared/focus2.js';
|
|
24
|
-
import '../shared/
|
|
24
|
+
import '../shared/definition24.js';
|
|
25
25
|
import '../shared/aria.js';
|
|
26
26
|
import '../shared/form-elements.js';
|
|
27
27
|
import '../shared/text-field2.js';
|
package/option/index.js
CHANGED
package/package.json
CHANGED
package/popup/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerPopup } from '../shared/
|
|
1
|
+
import { r as registerPopup } from '../shared/definition20.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition7.js';
|
|
4
4
|
import '../shared/definition3.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
6
|
import '../shared/to-string.js';
|
|
@@ -10,7 +10,7 @@ import '../shared/class-names.js';
|
|
|
10
10
|
import '../shared/when.js';
|
|
11
11
|
import '../shared/definition4.js';
|
|
12
12
|
import '../shared/focus.js';
|
|
13
|
-
import '../shared/
|
|
13
|
+
import '../shared/definition9.js';
|
|
14
14
|
import '../shared/base-progress.js';
|
|
15
15
|
import '../shared/affix.js';
|
|
16
16
|
import '../shared/button.js';
|
|
@@ -21,7 +21,7 @@ import '../shared/aria-global.js';
|
|
|
21
21
|
import '../shared/start-end.js';
|
|
22
22
|
import '../shared/ref.js';
|
|
23
23
|
import '../shared/focus2.js';
|
|
24
|
-
import '../shared/
|
|
24
|
+
import '../shared/definition8.js';
|
|
25
25
|
import '../shared/es.object.assign.js';
|
|
26
26
|
|
|
27
27
|
registerPopup();
|
package/progress/index.js
CHANGED
package/progress-ring/index.js
CHANGED
package/radio/index.js
CHANGED
package/radio-group/index.js
CHANGED
package/select/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerSelect } from '../shared/
|
|
1
|
+
import { r as registerSelect } from '../shared/definition39.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition4.js';
|
|
4
4
|
import '../shared/focus.js';
|
|
5
|
-
import '../shared/
|
|
6
|
-
import '../shared/
|
|
5
|
+
import '../shared/definition20.js';
|
|
6
|
+
import '../shared/definition7.js';
|
|
7
7
|
import '../shared/definition3.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
9
|
import '../shared/to-string.js';
|
|
@@ -11,7 +11,7 @@ import '../shared/string-trim.js';
|
|
|
11
11
|
import '../shared/_has.js';
|
|
12
12
|
import '../shared/class-names.js';
|
|
13
13
|
import '../shared/when.js';
|
|
14
|
-
import '../shared/
|
|
14
|
+
import '../shared/definition9.js';
|
|
15
15
|
import '../shared/base-progress.js';
|
|
16
16
|
import '../shared/affix.js';
|
|
17
17
|
import '../shared/button.js';
|
|
@@ -22,9 +22,9 @@ import '../shared/aria-global.js';
|
|
|
22
22
|
import '../shared/start-end.js';
|
|
23
23
|
import '../shared/ref.js';
|
|
24
24
|
import '../shared/focus2.js';
|
|
25
|
-
import '../shared/
|
|
25
|
+
import '../shared/definition8.js';
|
|
26
26
|
import '../shared/es.object.assign.js';
|
|
27
|
-
import '../shared/
|
|
27
|
+
import '../shared/definition21.js';
|
|
28
28
|
import '../shared/dom.js';
|
|
29
29
|
import '../shared/form-elements.js';
|
|
30
30
|
import '../shared/listbox.js';
|
package/shared/definition.js
CHANGED
|
@@ -186,7 +186,7 @@ __decorate([
|
|
|
186
186
|
observable
|
|
187
187
|
], Accordion$1.prototype, "accordionItems", void 0);
|
|
188
188
|
|
|
189
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
189
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 27 Apr 2023 09:20:45 GMT\n */\n.base {\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n}\n\n::slotted(:not(:only-of-type)) {\n border-bottom: 1px solid var(--vvd-color-neutral-200);\n}";
|
|
190
190
|
|
|
191
191
|
class Accordion extends Accordion$1 {
|
|
192
192
|
constructor() {
|
package/shared/definition10.js
CHANGED
|
@@ -1,77 +1,60 @@
|
|
|
1
|
-
import { _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
|
-
import {
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { i as iconRegistries } from './definition3.js';
|
|
3
|
+
import { I as Icon } from './icon.js';
|
|
3
4
|
import { w as when } from './when.js';
|
|
4
5
|
import { c as classNames } from './class-names.js';
|
|
5
6
|
|
|
6
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
7
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 27 Apr 2023 09:20: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 --_connotation-color-fierce: var(--vvd-color-cta-700);\n --_connotation-color-pale: var(--vvd-color-cta-300);\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 --_connotation-color-fierce: var(--vvd-color-neutral-700);\n --_connotation-color-pale: var(--vvd-color-neutral-300);\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-duotone {\n --_appearance-color-text: var(--_connotation-color-fierce);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-pale);\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 line-height: 1;\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 line-height: 1;\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 line-height: 1;\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}";
|
|
7
8
|
|
|
8
|
-
class
|
|
9
|
-
__decorate([attr, __metadata("design:type", String)],
|
|
10
|
-
__decorate([attr, __metadata("design:type",
|
|
9
|
+
class Avatar extends FoundationElement {}
|
|
10
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "connotation", void 0);
|
|
11
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "shape", void 0);
|
|
12
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "appearance", void 0);
|
|
13
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "size", void 0);
|
|
14
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "icon", void 0);
|
|
15
|
+
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "initials", void 0);
|
|
11
16
|
|
|
12
|
-
let
|
|
17
|
+
let _ = t => t,
|
|
13
18
|
_t,
|
|
14
19
|
_t2,
|
|
15
20
|
_t3;
|
|
16
21
|
const getClasses = ({
|
|
22
|
+
appearance,
|
|
17
23
|
connotation,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}) => classNames('base', [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class="determinate"
|
|
46
|
-
style="stroke-dasharray: ${0}px ${0}px"
|
|
47
|
-
cx="8px"
|
|
48
|
-
cy="8px"
|
|
49
|
-
r="7px"
|
|
50
|
-
></circle>
|
|
51
|
-
</svg>
|
|
52
|
-
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
53
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
-
<circle
|
|
55
|
-
class="background"
|
|
56
|
-
cx="8px"
|
|
57
|
-
cy="8px"
|
|
58
|
-
r="7px"
|
|
59
|
-
></circle>
|
|
60
|
-
<circle
|
|
61
|
-
class="indeterminate-indicator-1"
|
|
62
|
-
cx="8px"
|
|
63
|
-
cy="8px"
|
|
64
|
-
r="7px"
|
|
65
|
-
></circle>
|
|
66
|
-
</svg>
|
|
67
|
-
`))));
|
|
24
|
+
shape,
|
|
25
|
+
size
|
|
26
|
+
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`size-${size}`, Boolean(size)]);
|
|
27
|
+
function renderIcon(iconTag) {
|
|
28
|
+
return html(_t || (_t = _`
|
|
29
|
+
<span class="icon">
|
|
30
|
+
<${0} name="${0}"></${0}>
|
|
31
|
+
</span>
|
|
32
|
+
`), iconTag, x => x.icon ? `${x.icon}` : 'user-line', iconTag);
|
|
33
|
+
}
|
|
34
|
+
function renderInitials() {
|
|
35
|
+
return html(_t2 || (_t2 = _`
|
|
36
|
+
<span class="initials">${0}</span>
|
|
37
|
+
`), ({
|
|
38
|
+
initials
|
|
39
|
+
}) => initials.substring(0, 2));
|
|
40
|
+
}
|
|
41
|
+
const AvatarTemplate = context => {
|
|
42
|
+
const iconTag = context.tagFor(Icon);
|
|
43
|
+
return html(_t3 || (_t3 = _`
|
|
44
|
+
<span class="${0}">
|
|
45
|
+
<slot name="graphic">
|
|
46
|
+
${0}
|
|
47
|
+
${0}
|
|
48
|
+
</slot>
|
|
49
|
+
</span>`), getClasses, when(x => x.initials, renderInitials()), when(x => !x.initials, renderIcon(iconTag)));
|
|
50
|
+
};
|
|
68
51
|
|
|
69
|
-
const
|
|
70
|
-
baseName: '
|
|
71
|
-
template:
|
|
52
|
+
const avatarDefinition = Avatar.compose({
|
|
53
|
+
baseName: 'avatar',
|
|
54
|
+
template: AvatarTemplate,
|
|
72
55
|
styles: css_248z
|
|
73
56
|
});
|
|
74
|
-
const
|
|
75
|
-
const
|
|
57
|
+
const avatarRegistries = [avatarDefinition(), ...iconRegistries];
|
|
58
|
+
const registerAvatar = registerFactory(avatarRegistries);
|
|
76
59
|
|
|
77
|
-
export {
|
|
60
|
+
export { avatarDefinition as a, avatarRegistries as b, registerAvatar as r };
|