@vonage/vivid 3.27.0 → 3.29.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/README.md +2 -1
- package/accordion/index.js +0 -2
- package/accordion-item/index.js +0 -2
- package/alert/index.js +0 -2
- package/avatar/index.js +0 -2
- package/badge/index.js +0 -2
- package/banner/index.js +0 -2
- package/breadcrumb-item/index.js +0 -2
- package/button/index.js +0 -2
- package/calendar/index.js +0 -1
- package/calendar-event/index.js +0 -2
- package/card/index.js +0 -2
- package/checkbox/index.js +0 -2
- package/combobox/index.js +0 -3
- package/custom-elements.json +173 -52
- package/data-grid/index.js +1 -5
- package/dialog/index.js +0 -2
- package/empty-state/index.js +0 -2
- package/fab/index.js +0 -2
- package/file-picker/index.js +0 -2
- package/icon/index.js +0 -2
- package/index.d.ts +3 -3
- package/index.js +1 -6
- package/lib/accordion/accordion.d.ts +5 -5
- package/lib/accordion/accordion.template.d.ts +3 -3
- package/lib/accordion/definition.d.ts +2 -2
- package/lib/accordion/index.d.ts +1 -1
- package/lib/accordion-item/accordion-item.d.ts +12 -12
- package/lib/accordion-item/accordion-item.template.d.ts +4 -4
- package/lib/accordion-item/definition.d.ts +1 -1
- package/lib/accordion-item/index.d.ts +1 -1
- package/lib/action-group/action-group.d.ts +11 -11
- package/lib/action-group/action-group.template.d.ts +4 -4
- package/lib/action-group/definition.d.ts +2 -2
- package/lib/action-group/index.d.ts +1 -1
- package/lib/alert/alert.d.ts +22 -22
- package/lib/alert/alert.template.d.ts +4 -4
- package/lib/alert/definition.d.ts +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/avatar/avatar.d.ts +14 -14
- package/lib/avatar/avatar.template.d.ts +4 -4
- package/lib/avatar/definition.d.ts +2 -2
- package/lib/avatar/index.d.ts +1 -1
- package/lib/badge/badge.d.ts +14 -14
- package/lib/badge/badge.template.d.ts +4 -4
- package/lib/badge/definition.d.ts +4 -4
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -20
- package/lib/banner/banner.template.d.ts +4 -4
- package/lib/banner/definition.d.ts +2 -2
- package/lib/banner/index.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +3 -3
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -4
- package/lib/breadcrumb/definition.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -5
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -4
- package/lib/breadcrumb-item/definition.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -1
- package/lib/button/button.d.ts +18 -18
- package/lib/button/button.template.d.ts +4 -4
- package/lib/button/definition.d.ts +2 -2
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/calendar.d.ts +13 -13
- package/lib/calendar/calendar.template.d.ts +4 -4
- package/lib/calendar/definition.d.ts +1 -1
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -2
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -6
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -9
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +13 -13
- package/lib/calendar-event/calendar-event.template.d.ts +4 -4
- package/lib/calendar-event/definition.d.ts +2 -2
- package/lib/calendar-event/index.d.ts +1 -1
- package/lib/card/card.d.ts +10 -10
- package/lib/card/card.template.d.ts +4 -4
- package/lib/card/definition.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +10 -11
- package/lib/checkbox/checkbox.template.d.ts +4 -4
- package/lib/checkbox/definition.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/combobox/combobox.d.ts +12 -13
- package/lib/combobox/combobox.template.d.ts +4 -4
- package/lib/combobox/definition.d.ts +3 -4
- package/lib/combobox/index.d.ts +1 -1
- package/lib/components.d.ts +52 -52
- package/lib/data-grid/data-grid-cell.d.ts +22 -22
- package/lib/data-grid/data-grid-cell.template.d.ts +4 -4
- package/lib/data-grid/data-grid-row.d.ts +4 -4
- package/lib/data-grid/data-grid-row.template.d.ts +3 -3
- package/lib/data-grid/data-grid.d.ts +20 -20
- package/lib/data-grid/data-grid.options.d.ts +38 -38
- package/lib/data-grid/data-grid.template.d.ts +3 -3
- package/lib/data-grid/definition.d.ts +6 -6
- package/lib/data-grid/index.d.ts +1 -1
- package/lib/dialog/definition.d.ts +2 -2
- package/lib/dialog/dialog.d.ts +26 -26
- package/lib/dialog/dialog.template.d.ts +4 -4
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/definition.d.ts +1 -1
- package/lib/divider/divider.d.ts +3 -3
- package/lib/divider/divider.template.d.ts +4 -4
- package/lib/divider/index.d.ts +1 -1
- package/lib/elevation/definition.d.ts +1 -1
- package/lib/elevation/elevation.d.ts +5 -5
- package/lib/elevation/elevation.template.d.ts +4 -4
- package/lib/elevation/index.d.ts +1 -1
- package/lib/empty-state/definition.d.ts +3 -3
- package/lib/empty-state/empty-state.d.ts +5 -5
- package/lib/empty-state/empty-state.template.d.ts +4 -4
- package/lib/empty-state/index.d.ts +1 -1
- package/lib/enums.d.ts +60 -60
- package/lib/fab/definition.d.ts +4 -4
- package/lib/fab/fab.d.ts +12 -12
- package/lib/fab/fab.template.d.ts +4 -4
- package/lib/fab/index.d.ts +1 -1
- package/lib/file-picker/definition.d.ts +3 -3
- package/lib/file-picker/file-picker.d.ts +22 -22
- package/lib/file-picker/file-picker.template.d.ts +4 -4
- package/lib/file-picker/index.d.ts +1 -1
- package/lib/focus/definition.d.ts +3 -3
- package/lib/focus/focus.d.ts +3 -3
- package/lib/focus/focus.template.d.ts +4 -4
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/definition.d.ts +3 -3
- package/lib/header/header.d.ts +5 -5
- package/lib/header/header.template.d.ts +4 -4
- package/lib/header/index.d.ts +1 -1
- package/lib/icon/definition.d.ts +4 -4
- package/lib/icon/icon.d.ts +12 -12
- package/lib/icon/icon.placeholder.d.ts +1 -1
- package/lib/icon/icon.template.d.ts +4 -4
- package/lib/icon/index.d.ts +1 -1
- package/lib/layout/definition.d.ts +4 -4
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +17 -17
- package/lib/layout/layout.template.d.ts +4 -4
- package/lib/listbox/definition.d.ts +4 -4
- package/lib/listbox/index.d.ts +1 -1
- package/lib/listbox/listbox.d.ts +6 -6
- package/lib/listbox/listbox.template.d.ts +4 -4
- package/lib/menu/definition.d.ts +12 -12
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/menu.d.ts +16 -15
- package/lib/menu/menu.template.d.ts +3 -3
- package/lib/menu-item/definition.d.ts +3 -3
- package/lib/menu-item/index.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +14 -14
- package/lib/menu-item/menu-item.template.d.ts +4 -4
- package/lib/nav/definition.d.ts +3 -3
- package/lib/nav/index.d.ts +1 -1
- package/lib/nav/nav.d.ts +3 -3
- package/lib/nav/nav.template.d.ts +4 -4
- package/lib/nav-disclosure/definition.d.ts +3 -3
- package/lib/nav-disclosure/index.d.ts +1 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -10
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -4
- package/lib/nav-item/definition.d.ts +3 -3
- package/lib/nav-item/index.d.ts +1 -1
- package/lib/nav-item/nav-item.d.ts +7 -7
- package/lib/nav-item/nav-item.template.d.ts +4 -4
- package/lib/note/definition.d.ts +4 -4
- package/lib/note/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -10
- package/lib/note/note.template.d.ts +4 -4
- package/lib/number-field/definition.d.ts +5 -5
- package/lib/number-field/index.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +13 -13
- package/lib/number-field/number-field.template.d.ts +4 -4
- package/lib/option/definition.d.ts +3 -3
- package/lib/option/index.d.ts +1 -1
- package/lib/option/option.d.ts +12 -12
- package/lib/option/option.template.d.ts +4 -4
- package/lib/pagination/definition.d.ts +3 -3
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/pagination.d.ts +18 -18
- package/lib/pagination/pagination.template.d.ts +4 -4
- package/lib/popup/definition.d.ts +5 -5
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +21 -21
- package/lib/popup/popup.template.d.ts +4 -4
- package/lib/progress/definition.d.ts +4 -4
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/progress.d.ts +9 -9
- package/lib/progress/progress.template.d.ts +5 -5
- package/lib/progress-ring/definition.d.ts +4 -4
- package/lib/progress-ring/index.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +7 -7
- package/lib/progress-ring/progress-ring.template.d.ts +4 -4
- package/lib/radio/definition.d.ts +3 -3
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.template.d.ts +4 -4
- package/lib/radio-group/definition.d.ts +11 -11
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-group/radio-group.d.ts +4 -4
- package/lib/radio-group/radio-group.template.d.ts +4 -4
- package/lib/select/definition.d.ts +4 -4
- package/lib/select/index.d.ts +1 -1
- package/lib/select/select.d.ts +17 -18
- package/lib/select/select.template.d.ts +4 -4
- package/lib/side-drawer/definition.d.ts +3 -3
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +9 -9
- package/lib/side-drawer/side-drawer.template.d.ts +4 -4
- package/lib/slider/definition.d.ts +3 -3
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.template.d.ts +4 -4
- package/lib/switch/definition.d.ts +4 -4
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/switch.d.ts +7 -7
- package/lib/switch/switch.template.d.ts +4 -4
- package/lib/tab/definition.d.ts +4 -4
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab.d.ts +14 -14
- package/lib/tab/tab.template.d.ts +3 -3
- package/lib/tab-panel/definition.d.ts +3 -3
- package/lib/tab-panel/index.d.ts +1 -1
- package/lib/tab-panel/tab-panel.d.ts +3 -3
- package/lib/tab-panel/tab-panel.template.d.ts +2 -2
- package/lib/tabs/definition.d.ts +3 -3
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +15 -15
- package/lib/tabs/tabs.template.d.ts +2 -2
- package/lib/tag/definition.d.ts +4 -4
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/tag.d.ts +22 -22
- package/lib/tag/tag.template.d.ts +4 -4
- package/lib/tag-group/definition.d.ts +3 -3
- package/lib/tag-group/index.d.ts +1 -1
- package/lib/tag-group/tag-group.d.ts +3 -3
- package/lib/tag-group/tag-group.template.d.ts +4 -4
- package/lib/text-anchor/definition.d.ts +3 -3
- package/lib/text-anchor/index.d.ts +1 -1
- package/lib/text-anchor/text-anchor.d.ts +7 -7
- package/lib/text-anchor/text-anchor.template.d.ts +4 -4
- package/lib/text-area/definition.d.ts +4 -4
- package/lib/text-area/index.d.ts +1 -1
- package/lib/text-area/text-area.d.ts +8 -9
- package/lib/text-area/text-area.template.d.ts +4 -4
- package/lib/text-field/definition.d.ts +4 -4
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +13 -14
- package/lib/text-field/text-field.template.d.ts +4 -4
- package/lib/toggletip/definition.d.ts +3 -3
- package/lib/toggletip/index.d.ts +1 -1
- package/lib/toggletip/toggletip.d.ts +15 -15
- package/lib/toggletip/toggletip.template.d.ts +4 -4
- package/lib/tooltip/definition.d.ts +3 -3
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +14 -14
- package/lib/tooltip/tooltip.template.d.ts +4 -4
- package/lib/tree-item/definition.d.ts +3 -3
- package/lib/tree-item/index.d.ts +1 -1
- package/lib/tree-item/tree-item.d.ts +7 -7
- package/lib/tree-item/tree-item.template.d.ts +4 -4
- package/lib/tree-view/definition.d.ts +3 -3
- package/lib/tree-view/index.d.ts +1 -1
- package/lib/tree-view/tree-view.d.ts +3 -3
- package/lib/tree-view/tree-view.template.d.ts +2 -2
- package/listbox/index.js +17 -21
- package/menu/index.js +0 -3
- package/menu-item/index.js +0 -3
- package/nav-disclosure/index.js +0 -2
- package/nav-item/index.js +0 -2
- package/note/index.js +0 -2
- package/number-field/index.js +0 -3
- package/option/index.js +0 -2
- package/package.json +9 -8
- package/pagination/index.js +1 -5
- package/popup/index.js +0 -3
- package/radio-group/index.js +2 -2
- package/select/index.js +0 -3
- package/shared/affix.js +2 -5
- package/shared/anchor.js +2 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/definition.js +7 -9
- package/shared/definition10.js +13 -17
- package/shared/definition11.js +6 -9
- package/shared/definition12.js +16 -18
- package/shared/definition13.js +6 -8
- package/shared/definition14.js +7 -12
- package/shared/definition15.js +43 -52
- package/shared/definition16.js +8 -71
- package/shared/definition17.js +36 -45
- package/shared/definition18.js +19 -24
- package/shared/definition19.js +45 -49
- package/shared/definition2.js +24 -28
- package/shared/definition20.js +389 -280
- package/shared/definition21.js +12 -16
- package/shared/definition22.js +82 -168
- package/shared/definition23.js +35 -41
- package/shared/definition24.js +6 -8
- package/shared/definition25.js +10 -14
- package/shared/definition26.js +40 -42
- package/shared/definition27.js +24 -27
- package/shared/definition28.js +6 -8
- package/shared/definition29.js +3 -5
- package/shared/definition3.js +5 -9
- package/shared/definition30.js +88 -45
- package/shared/definition31.js +33 -43
- package/shared/definition32.js +2 -4
- package/shared/definition33.js +11 -15
- package/shared/definition34.js +5 -9
- package/shared/definition35.js +7 -11
- package/shared/definition36.js +66 -71
- package/shared/definition37.js +60 -101
- package/shared/definition38.js +14 -46
- package/shared/definition39.js +11 -14
- package/shared/definition4.js +3 -5
- package/shared/definition40.js +17 -20
- package/shared/definition41.js +56 -62
- package/shared/definition42.js +8 -11
- package/shared/definition43.js +20 -58
- package/shared/definition44.js +14 -17
- package/shared/definition45.js +8 -10
- package/shared/definition46.js +2 -4
- package/shared/definition47.js +12 -15
- package/shared/definition48.js +19 -24
- package/shared/definition49.js +3 -5
- package/shared/definition5.js +7 -8
- package/shared/definition50.js +51 -55
- package/shared/definition51.js +56 -60
- package/shared/definition52.js +12 -520
- package/shared/definition53.js +9 -11
- package/shared/definition54.js +27 -31
- package/shared/definition55.js +12 -14
- package/shared/definition6.js +17 -23
- package/shared/definition7.js +43 -47
- package/shared/definition8.js +3 -5
- package/shared/definition9.js +13 -17
- package/shared/design-system/index.d.ts +3 -3
- package/shared/focus2.js +1 -3
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.js +16 -20
- package/shared/icon.js +2 -1171
- package/shared/index.js +41 -1549
- package/shared/listbox.js +1 -1
- package/shared/patterns/affix.d.ts +9 -9
- package/shared/patterns/focus.d.ts +3 -3
- package/shared/patterns/form-elements/form-elements.d.ts +57 -57
- package/shared/patterns/form-elements/index.d.ts +1 -1
- package/shared/patterns/index.d.ts +3 -3
- package/shared/repeat.js +1 -1
- package/shared/text-anchor.template.js +38 -40
- package/shared/text-field.js +1 -1
- package/shared/text-field2.js +1 -1
- package/shared/when.js +19 -5
- package/slider/index.js +0 -3
- 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 +17 -17
- package/styles/tokens/theme-light.css +17 -17
- package/switch/index.js +0 -2
- package/tab/index.js +0 -2
- package/tabs/index.js +0 -2
- package/tag/index.js +0 -2
- package/text-anchor/index.js +0 -2
- package/text-area/index.js +0 -2
- package/text-field/index.js +0 -2
- package/toggletip/index.js +0 -4
- package/tooltip/index.js +0 -3
- package/tree-item/index.js +1 -3
- package/vivid.api.json +48 -84
- package/shared/es.object.assign.js +0 -68
- package/shared/es.regexp.to-string.js +0 -61
- package/shared/es.string.includes.js +0 -83
- package/shared/string-trim.js +0 -40
- package/shared/to-string.js +0 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import type { Toggletip } from './toggletip';
|
|
4
|
-
export declare const ToggletipTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Toggletip>;
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Toggletip } from './toggletip';
|
|
4
|
+
export declare const ToggletipTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Toggletip>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const tooltipDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
-
export declare const registerTooltip: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const tooltipDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerTooltip: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import type { Placement } from '@floating-ui/dom';
|
|
3
|
-
|
|
4
|
-
export declare class Tooltip extends FoundationElement {
|
|
5
|
-
#private;
|
|
6
|
-
text?: string;
|
|
7
|
-
placement?: Placement;
|
|
8
|
-
open: boolean;
|
|
9
|
-
anchor?: anchorType;
|
|
10
|
-
anchorChanged(_: anchorType, newValue: anchorType): void;
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
-
openChanged(_: boolean, newValue: boolean): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Placement } from '@floating-ui/dom';
|
|
3
|
+
type anchorType = string | HTMLElement;
|
|
4
|
+
export declare class Tooltip extends FoundationElement {
|
|
5
|
+
#private;
|
|
6
|
+
text?: string;
|
|
7
|
+
placement?: Placement;
|
|
8
|
+
open: boolean;
|
|
9
|
+
anchor?: anchorType;
|
|
10
|
+
anchorChanged(_: anchorType, newValue: anchorType): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
openChanged(_: boolean, newValue: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
import type { Tooltip } from './tooltip';
|
|
4
|
-
export declare const TooltipTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Tooltip>;
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Tooltip } from './tooltip';
|
|
4
|
+
export declare const TooltipTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Tooltip>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const treeItemDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
-
export declare const registerTreeItem: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const treeItemDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerTreeItem: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
package/lib/tree-item/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TreeItem as FastTreeItem } from '@microsoft/fast-foundation';
|
|
2
|
-
import { AffixIcon } from '../../shared/patterns/affix';
|
|
3
|
-
export declare class TreeItem extends FastTreeItem {
|
|
4
|
-
text?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TreeItem extends AffixIcon {
|
|
7
|
-
}
|
|
1
|
+
import { TreeItem as FastTreeItem } from '@microsoft/fast-foundation';
|
|
2
|
+
import { AffixIcon } from '../../shared/patterns/affix';
|
|
3
|
+
export declare class TreeItem extends FastTreeItem {
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TreeItem extends AffixIcon {
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
2
|
-
import type { TreeItem } from './tree-item';
|
|
3
|
-
export declare const expandCollapseButton: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
4
|
-
export declare const TreeItemTemplate: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
1
|
+
import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { TreeItem } from './tree-item';
|
|
3
|
+
export declare const expandCollapseButton: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
4
|
+
export declare const TreeItemTemplate: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const treeViewDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
-
export declare const registerTreeView: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const treeViewDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerTreeView: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
package/lib/tree-view/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TreeView as FastTreeView } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare class TreeView extends FastTreeView {
|
|
3
|
-
}
|
|
1
|
+
import { TreeView as FastTreeView } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class TreeView extends FastTreeView {
|
|
3
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TreeView } from './tree-view';
|
|
2
|
-
export declare const TreeViewTemplate: () => import("@microsoft/fast-element").ViewTemplate<TreeView, any>;
|
|
1
|
+
import type { TreeView } from './tree-view';
|
|
2
|
+
export declare const TreeViewTemplate: () => import("@microsoft/fast-element").ViewTemplate<TreeView, any>;
|
package/listbox/index.js
CHANGED
|
@@ -10,8 +10,6 @@ import { c as classNames } from '../shared/class-names.js';
|
|
|
10
10
|
import '../shared/focus.js';
|
|
11
11
|
import '../shared/definition3.js';
|
|
12
12
|
import '../shared/icon.js';
|
|
13
|
-
import '../shared/to-string.js';
|
|
14
|
-
import '../shared/string-trim.js';
|
|
15
13
|
import '../shared/_has.js';
|
|
16
14
|
import '../shared/when.js';
|
|
17
15
|
import '../shared/aria-global.js';
|
|
@@ -24,44 +22,42 @@ import '../shared/strings.js';
|
|
|
24
22
|
import '../shared/numbers.js';
|
|
25
23
|
import '../shared/node-observation.js';
|
|
26
24
|
|
|
27
|
-
let _ = t => t,
|
|
28
|
-
_t;
|
|
29
25
|
const getClasses = ({
|
|
30
26
|
appearance,
|
|
31
27
|
disabled
|
|
32
28
|
}) => classNames('base', ['disabled', disabled], [`appearance-${appearance}`, Boolean(appearance)]);
|
|
33
29
|
const ListboxTemplate = context => {
|
|
34
30
|
const focusTemplate = focusTemplateFactory(context);
|
|
35
|
-
return html
|
|
31
|
+
return html`
|
|
36
32
|
<template
|
|
37
|
-
aria-activedescendant="${
|
|
38
|
-
aria-multiselectable="${
|
|
33
|
+
aria-activedescendant="${x => x.ariaActiveDescendant}"
|
|
34
|
+
aria-multiselectable="${x => x.ariaMultiSelectable}"
|
|
39
35
|
aria-label="listbox"
|
|
40
36
|
role="listbox"
|
|
41
|
-
@click="${
|
|
42
|
-
@focusin="${
|
|
43
|
-
@keydown="${
|
|
44
|
-
@mousedown="${
|
|
45
|
-
tabindex="${0}"
|
|
37
|
+
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
38
|
+
@focusin="${(x, c) => x.focusinHandler(c.event)}"
|
|
39
|
+
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
40
|
+
@mousedown="${(x, c) => x.mousedownHandler(c.event)}"
|
|
41
|
+
tabindex="${x => !x.disabled ? '0' : null}"
|
|
46
42
|
>
|
|
47
43
|
<div
|
|
48
|
-
class="${
|
|
44
|
+
class="${getClasses}"
|
|
49
45
|
>
|
|
50
|
-
${
|
|
46
|
+
${() => focusTemplate}
|
|
51
47
|
|
|
52
48
|
<slot
|
|
53
|
-
${
|
|
54
|
-
></slot>
|
|
55
|
-
</div>
|
|
56
|
-
</template>
|
|
57
|
-
`), x => x.ariaActiveDescendant, x => x.ariaMultiSelectable, (x, c) => x.clickHandler(c.event), (x, c) => x.focusinHandler(c.event), (x, c) => x.keydownHandler(c.event), (x, c) => x.mousedownHandler(c.event), x => !x.disabled ? '0' : null, getClasses, () => focusTemplate, slotted({
|
|
49
|
+
${slotted({
|
|
58
50
|
filter: ListboxElement.slottedOptionFilter,
|
|
59
51
|
flatten: true,
|
|
60
52
|
property: 'slottedOptions'
|
|
61
|
-
})
|
|
53
|
+
})}
|
|
54
|
+
></slot>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
`;
|
|
62
58
|
};
|
|
63
59
|
|
|
64
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
60
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 09 Aug 2023 13:23:44 GMT\n */\n:host {\n display: block;\n inline-size: fit-content;\n}\n\n:host(:focus-within) {\n outline: none;\n}\n\n.base {\n position: relative;\n display: flex;\n flex-direction: column;\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 gap: 4px;\n}\n.base {\n /* @cssprop [--vvd-listbox-accent-backdrop=var(--vvd-color-canvas)] */\n --_connotation-color-backdrop: var(--vvd-listbox-accent-backdrop, var(--vvd-color-canvas));\n /* @cssprop [--vvd-listbox-accent-intermediate=var(--vvd-color-neutral-500)] */\n --_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));\n /* @cssprop [--vvd-listbox-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-listbox-accent-soft=var(--vvd-color-neutral-100)] */\n --_connotation-color-soft: var(--vvd-listbox-accent-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-300);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-300);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-300);\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\n.base.disabled ::slotted([role=option]) {\n --_option-appearance-color-text: var(--_appearance-color-outline);\n cursor: not-allowed;\n pointer-events: none;\n}";
|
|
65
61
|
|
|
66
62
|
const listboxDefinition = Listbox.compose({
|
|
67
63
|
baseName: 'listbox',
|
package/menu/index.js
CHANGED
|
@@ -4,8 +4,6 @@ import '../shared/definition20.js';
|
|
|
4
4
|
import '../shared/definition7.js';
|
|
5
5
|
import '../shared/definition3.js';
|
|
6
6
|
import '../shared/icon.js';
|
|
7
|
-
import '../shared/to-string.js';
|
|
8
|
-
import '../shared/string-trim.js';
|
|
9
7
|
import '../shared/_has.js';
|
|
10
8
|
import '../shared/class-names.js';
|
|
11
9
|
import '../shared/when.js';
|
|
@@ -23,7 +21,6 @@ import '../shared/start-end.js';
|
|
|
23
21
|
import '../shared/ref.js';
|
|
24
22
|
import '../shared/focus2.js';
|
|
25
23
|
import '../shared/definition8.js';
|
|
26
|
-
import '../shared/es.object.assign.js';
|
|
27
24
|
import '../shared/definition31.js';
|
|
28
25
|
import '../shared/direction.js';
|
|
29
26
|
import '../shared/slotted.js';
|
package/menu-item/index.js
CHANGED
|
@@ -2,14 +2,11 @@ import { b as registerMenuItem } from '../shared/definition31.js';
|
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/to-string.js';
|
|
6
|
-
import '../shared/string-trim.js';
|
|
7
5
|
import '../shared/_has.js';
|
|
8
6
|
import '../shared/class-names.js';
|
|
9
7
|
import '../shared/when.js';
|
|
10
8
|
import '../shared/definition4.js';
|
|
11
9
|
import '../shared/focus.js';
|
|
12
|
-
import '../shared/es.object.assign.js';
|
|
13
10
|
import '../shared/affix.js';
|
|
14
11
|
import '../shared/start-end.js';
|
|
15
12
|
import '../shared/ref.js';
|
package/nav-disclosure/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import { r as registerNavDisclosure } from '../shared/definition33.js';
|
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/to-string.js';
|
|
6
|
-
import '../shared/string-trim.js';
|
|
7
5
|
import '../shared/_has.js';
|
|
8
6
|
import '../shared/class-names.js';
|
|
9
7
|
import '../shared/when.js';
|
package/nav-item/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import { r as registerNavItem } from '../shared/definition34.js';
|
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/to-string.js';
|
|
6
|
-
import '../shared/string-trim.js';
|
|
7
5
|
import '../shared/_has.js';
|
|
8
6
|
import '../shared/class-names.js';
|
|
9
7
|
import '../shared/when.js';
|
package/note/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import { r as registerNote } from '../shared/definition35.js';
|
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/to-string.js';
|
|
6
|
-
import '../shared/string-trim.js';
|
|
7
5
|
import '../shared/_has.js';
|
|
8
6
|
import '../shared/class-names.js';
|
|
9
7
|
import '../shared/when.js';
|
package/number-field/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import '../shared/index.js';
|
|
|
3
3
|
import '../shared/definition7.js';
|
|
4
4
|
import '../shared/definition3.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
|
-
import '../shared/to-string.js';
|
|
7
|
-
import '../shared/string-trim.js';
|
|
8
6
|
import '../shared/_has.js';
|
|
9
7
|
import '../shared/class-names.js';
|
|
10
8
|
import '../shared/when.js';
|
|
@@ -25,6 +23,5 @@ import '../shared/definition24.js';
|
|
|
25
23
|
import '../shared/aria.js';
|
|
26
24
|
import '../shared/form-elements.js';
|
|
27
25
|
import '../shared/text-field2.js';
|
|
28
|
-
import '../shared/es.regexp.to-string.js';
|
|
29
26
|
|
|
30
27
|
registerNumberField();
|
package/option/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import { r as registerOption } from '../shared/definition21.js';
|
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition3.js';
|
|
4
4
|
import '../shared/icon.js';
|
|
5
|
-
import '../shared/to-string.js';
|
|
6
|
-
import '../shared/string-trim.js';
|
|
7
5
|
import '../shared/_has.js';
|
|
8
6
|
import '../shared/class-names.js';
|
|
9
7
|
import '../shared/when.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
"url": "https://github.com/Vonage/vivid-3/issues"
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
|
-
"types": "./index.d.ts",
|
|
18
|
+
"types": "./src/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"
|
|
21
|
-
"@microsoft/fast-
|
|
22
|
-
"@microsoft/fast-
|
|
23
|
-
"@microsoft/fast-web-utilities": "
|
|
24
|
-
"ramda": "0.28.0",
|
|
20
|
+
"@floating-ui/dom": "1.4.5",
|
|
21
|
+
"@microsoft/fast-element": "1.12.0",
|
|
22
|
+
"@microsoft/fast-foundation": "2.49.0",
|
|
23
|
+
"@microsoft/fast-web-utilities": "6.0.0",
|
|
25
24
|
"dialog-polyfill": "0.5.6",
|
|
26
25
|
"dropzone": "6.0.0-beta.2",
|
|
27
|
-
"
|
|
26
|
+
"promise": "7.3.1",
|
|
27
|
+
"ramda": "0.28.0",
|
|
28
|
+
"rollup-plugin-postcss": "4.0.2"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {}
|
|
30
31
|
}
|
package/pagination/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import '../shared/definition7.js';
|
|
|
3
3
|
import '../shared/index.js';
|
|
4
4
|
import '../shared/definition3.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
|
-
import '../shared/to-string.js';
|
|
7
|
-
import '../shared/string-trim.js';
|
|
8
6
|
import '../shared/_has.js';
|
|
9
7
|
import '../shared/class-names.js';
|
|
10
8
|
import '../shared/when.js';
|
|
@@ -21,10 +19,8 @@ import '../shared/aria-global.js';
|
|
|
21
19
|
import '../shared/start-end.js';
|
|
22
20
|
import '../shared/ref.js';
|
|
23
21
|
import '../shared/focus2.js';
|
|
24
|
-
import '../shared/es.regexp.to-string.js';
|
|
25
|
-
import '../shared/es.string.includes.js';
|
|
26
22
|
import '../shared/node-observation.js';
|
|
27
|
-
import '../shared/repeat.js';
|
|
28
23
|
import '../shared/children.js';
|
|
24
|
+
import '../shared/repeat.js';
|
|
29
25
|
|
|
30
26
|
registerPagination();
|
package/popup/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import '../shared/index.js';
|
|
|
3
3
|
import '../shared/definition7.js';
|
|
4
4
|
import '../shared/definition3.js';
|
|
5
5
|
import '../shared/icon.js';
|
|
6
|
-
import '../shared/to-string.js';
|
|
7
|
-
import '../shared/string-trim.js';
|
|
8
6
|
import '../shared/_has.js';
|
|
9
7
|
import '../shared/class-names.js';
|
|
10
8
|
import '../shared/when.js';
|
|
@@ -22,6 +20,5 @@ import '../shared/start-end.js';
|
|
|
22
20
|
import '../shared/ref.js';
|
|
23
21
|
import '../shared/focus2.js';
|
|
24
22
|
import '../shared/definition8.js';
|
|
25
|
-
import '../shared/es.object.assign.js';
|
|
26
23
|
|
|
27
24
|
registerPopup();
|
package/radio-group/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import '../shared/key-codes.js';
|
|
|
5
5
|
import '../shared/aria.js';
|
|
6
6
|
import '../shared/radio.js';
|
|
7
7
|
import '../shared/form-associated.js';
|
|
8
|
-
import '../shared/node-observation.js';
|
|
9
8
|
import '../shared/aria2.js';
|
|
10
|
-
import '../shared/
|
|
9
|
+
import '../shared/node-observation.js';
|
|
11
10
|
import '../shared/when.js';
|
|
11
|
+
import '../shared/slotted.js';
|
|
12
12
|
|
|
13
13
|
registerRadioGroup();
|
package/select/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import '../shared/definition20.js';
|
|
|
6
6
|
import '../shared/definition7.js';
|
|
7
7
|
import '../shared/definition3.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
|
-
import '../shared/to-string.js';
|
|
10
|
-
import '../shared/string-trim.js';
|
|
11
9
|
import '../shared/_has.js';
|
|
12
10
|
import '../shared/class-names.js';
|
|
13
11
|
import '../shared/when.js';
|
|
@@ -23,7 +21,6 @@ import '../shared/start-end.js';
|
|
|
23
21
|
import '../shared/ref.js';
|
|
24
22
|
import '../shared/focus2.js';
|
|
25
23
|
import '../shared/definition8.js';
|
|
26
|
-
import '../shared/es.object.assign.js';
|
|
27
24
|
import '../shared/definition21.js';
|
|
28
25
|
import '../shared/dom.js';
|
|
29
26
|
import '../shared/form-elements.js';
|
package/shared/affix.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { _ as __decorate, a as attr, b as __metadata, h as html } from './index.js';
|
|
2
2
|
import { I as Icon } from './icon.js';
|
|
3
3
|
|
|
4
|
-
let _ = t => t,
|
|
5
|
-
_t,
|
|
6
|
-
_t2;
|
|
7
4
|
class AffixIcon {}
|
|
8
5
|
__decorate([attr, __metadata("design:type", String)], AffixIcon.prototype, "icon", void 0);
|
|
9
6
|
class AffixIconWithTrailing extends AffixIcon {
|
|
@@ -22,8 +19,8 @@ const affixIconTemplateFactory = (context, withWrapper = true) => {
|
|
|
22
19
|
if (!icon) {
|
|
23
20
|
return null;
|
|
24
21
|
}
|
|
25
|
-
const iconTemplate = html
|
|
26
|
-
return withWrapper ? html
|
|
22
|
+
const iconTemplate = html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
|
|
23
|
+
return withWrapper ? html`<span class="icon">${iconTemplate}</span>` : iconTemplate;
|
|
27
24
|
};
|
|
28
25
|
};
|
|
29
26
|
|
package/shared/anchor.js
CHANGED
|
@@ -30,7 +30,8 @@ class Anchor extends FoundationElement {
|
|
|
30
30
|
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
31
31
|
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
32
32
|
this.focus = () => {
|
|
33
|
-
|
|
33
|
+
var _a;
|
|
34
|
+
(_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
};
|
package/shared/apply-mixins.js
CHANGED
package/shared/definition.js
CHANGED
|
@@ -187,7 +187,7 @@ __decorate([
|
|
|
187
187
|
observable
|
|
188
188
|
], Accordion$1.prototype, "accordionItems", void 0);
|
|
189
189
|
|
|
190
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
190
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 09 Aug 2023 13:23:44 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}";
|
|
191
191
|
|
|
192
192
|
class Accordion extends Accordion$1 {
|
|
193
193
|
constructor() {
|
|
@@ -203,17 +203,15 @@ class Accordion extends Accordion$1 {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
let _2 = t => t,
|
|
207
|
-
_t;
|
|
208
206
|
const getClasses = _ => classNames('base');
|
|
209
|
-
const AccordionTemplate = () => html
|
|
210
|
-
<div class="${
|
|
211
|
-
<slot ${
|
|
212
|
-
</div>
|
|
213
|
-
`), getClasses, slotted({
|
|
207
|
+
const AccordionTemplate = () => html`
|
|
208
|
+
<div class="${getClasses}">
|
|
209
|
+
<slot ${slotted({
|
|
214
210
|
property: 'accordionItems',
|
|
215
211
|
filter: elements()
|
|
216
|
-
})
|
|
212
|
+
})}></slot>
|
|
213
|
+
</div>
|
|
214
|
+
`;
|
|
217
215
|
|
|
218
216
|
const accordionDefinition = Accordion.compose({
|
|
219
217
|
baseName: 'accordion',
|
package/shared/definition10.js
CHANGED
|
@@ -4,7 +4,7 @@ import { I as Icon } from './icon.js';
|
|
|
4
4
|
import { w as when } from './when.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
6
6
|
|
|
7
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
7
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 09 Aug 2023 13:23:44 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 /* @cssprop [--vvd-avatar-cta-primary=var(--vvd-color-cta-500)] */\n --_connotation-color-primary: var(--vvd-avatar-cta-primary, var(--vvd-color-cta-500));\n /* @cssprop [--vvd-avatar-cta-primary-text=var(--vvd-color-canvas)] */\n --_connotation-color-primary-text: var(--vvd-avatar-cta-primary-text, var(--vvd-color-canvas));\n /* @cssprop [--vvd-avatar-cta-firm=var(--vvd-color-cta-600)] */\n --_connotation-color-firm: var(--vvd-avatar-cta-firm, var(--vvd-color-cta-600));\n /* @cssprop [--vvd-avatar-cta-fierce=var(--vvd-color-cta-700)] */\n --_connotation-color-fierce: var(--vvd-avatar-cta-fierce, var(--vvd-color-cta-700));\n /* @cssprop [--vvd-avatar-cta-pale=var(--vvd-color-cta-300)] */\n --_connotation-color-pale: var(--vvd-avatar-cta-pale, var(--vvd-color-cta-300));\n}\n.base:not(.connotation-cta) {\n /* @cssprop [--vvd-avatar-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-avatar-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-avatar-accent-primary-text=var(--vvd-color-canvas)] */\n --_connotation-color-primary-text: var(--vvd-avatar-accent-primary-text, var(--vvd-color-canvas));\n /* @cssprop [--vvd-avatar-accent-firm=var(--vvd-color-canvas-text)] */\n --_connotation-color-firm: var(--vvd-avatar-accent-firm, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-avatar-accent-fierce=var(--vvd-color-neutral-700)] */\n --_connotation-color-fierce: var(--vvd-avatar-accent-fierce, var(--vvd-color-neutral-700));\n /* @cssprop [--vvd-avatar-accent-pale=var(--vvd-color-neutral-300)] */\n --_connotation-color-pale: var(--vvd-avatar-accent-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}";
|
|
8
8
|
|
|
9
9
|
class Avatar extends FoundationElement {}
|
|
10
10
|
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "connotation", void 0);
|
|
@@ -14,10 +14,6 @@ __decorate([attr, __metadata("design:type", String)], Avatar.prototype, "size",
|
|
|
14
14
|
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "icon", void 0);
|
|
15
15
|
__decorate([attr, __metadata("design:type", String)], Avatar.prototype, "initials", void 0);
|
|
16
16
|
|
|
17
|
-
let _ = t => t,
|
|
18
|
-
_t,
|
|
19
|
-
_t2,
|
|
20
|
-
_t3;
|
|
21
17
|
const getClasses = ({
|
|
22
18
|
appearance,
|
|
23
19
|
connotation,
|
|
@@ -25,28 +21,28 @@ const getClasses = ({
|
|
|
25
21
|
size
|
|
26
22
|
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`size-${size}`, Boolean(size)]);
|
|
27
23
|
function renderIcon(iconTag) {
|
|
28
|
-
return html
|
|
24
|
+
return html`
|
|
29
25
|
<span class="icon">
|
|
30
|
-
<${
|
|
26
|
+
<${iconTag} name="${x => x.icon ? `${x.icon}` : 'user-line'}"></${iconTag}>
|
|
31
27
|
</span>
|
|
32
|
-
|
|
28
|
+
`;
|
|
33
29
|
}
|
|
34
30
|
function renderInitials() {
|
|
35
|
-
return html
|
|
36
|
-
<span class="initials">${
|
|
37
|
-
`), ({
|
|
31
|
+
return html`
|
|
32
|
+
<span class="initials">${({
|
|
38
33
|
initials
|
|
39
|
-
}) => initials.substring(0, 2)
|
|
34
|
+
}) => initials.substring(0, 2)}</span>
|
|
35
|
+
`;
|
|
40
36
|
}
|
|
41
37
|
const AvatarTemplate = context => {
|
|
42
38
|
const iconTag = context.tagFor(Icon);
|
|
43
|
-
return html
|
|
44
|
-
<span class="${
|
|
39
|
+
return html`
|
|
40
|
+
<span class="${getClasses}">
|
|
45
41
|
<slot name="graphic">
|
|
46
|
-
${
|
|
47
|
-
${
|
|
42
|
+
${when(x => x.initials, renderInitials())}
|
|
43
|
+
${when(x => !x.initials, renderIcon(iconTag))}
|
|
48
44
|
</slot>
|
|
49
|
-
</span
|
|
45
|
+
</span>`;
|
|
50
46
|
};
|
|
51
47
|
|
|
52
48
|
const avatarDefinition = Avatar.compose({
|