@vonage/vivid 3.0.0-next.2 → 3.0.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -4
- package/accordion/index.js +61 -0
- package/accordion-item/index.js +128 -0
- package/action-group/index.js +34 -0
- package/badge/index.js +27 -22
- package/banner/index.js +149 -0
- package/breadcrumb/index.js +103 -0
- package/breadcrumb-item/index.js +26 -11
- package/button/index.js +41 -663
- package/calendar/index.js +1550 -0
- package/calendar-event/index.js +117 -0
- package/card/index.js +134 -0
- package/elevation/index.js +8 -15
- package/fab/index.js +99 -0
- package/focus/index.js +20 -3
- package/icon/index.js +40 -5
- package/index.d.ts +1 -0
- package/index.js +49 -12
- package/layout/index.js +5 -5
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +5 -0
- package/lib/action-group/action-group.d.ts +9 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/badge/badge.d.ts +8 -8
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +3 -3
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +2 -0
- package/lib/button/button.d.ts +9 -8
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/components.d.ts +20 -3
- package/lib/elevation/elevation.d.ts +1 -1
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +14 -7
- package/lib/fab/fab.d.ts +10 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/icon/icon.d.ts +4 -5
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +17 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +15 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/sidenav-item/index.d.ts +1 -0
- package/lib/sidenav-item/sidenav-item.d.ts +4 -5
- package/lib/text/index.d.ts +2 -0
- package/lib/text/text.d.ts +10 -0
- package/lib/text/text.template.d.ts +4 -0
- package/lib/text-anchor/text-anchor.d.ts +4 -1
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +21 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/note/index.js +68 -0
- package/package.json +37 -6
- package/popup/index.js +2111 -0
- package/progress/index.js +101 -0
- package/progress-ring/index.js +82 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +10 -25
- package/shared/anchor.js +11 -4
- package/shared/aria-global.js +22 -59
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/button.js +195 -0
- package/shared/calendar-event.js +26 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/export.js +972 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +460 -0
- package/shared/icon.js +1389 -0
- package/shared/index.js +4940 -1426
- package/shared/iterators.js +61 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +3 -4
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +119 -0
- package/shared/text-anchor.js +12 -0
- package/shared/text-anchor.template.js +18 -20
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +46 -1059
- package/shared/when.js +15 -0
- package/side-drawer/index.js +8660 -0
- package/sidenav-item/index.js +25 -61
- package/styles/themes/dark.css +16 -4
- package/styles/themes/light.css +16 -4
- package/text/index.js +48 -0
- package/text-anchor/index.js +13 -2
- package/text-field/index.js +398 -0
- package/tooltip/index.js +71 -0
- package/shared/index2.js +0 -4911
- package/shared/index3.js +0 -21
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Appearance, Shape } from '../enums.js';
|
|
3
|
+
export declare type ActionGroupAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.Ghost>;
|
|
4
|
+
declare type ActionGroupShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
5
|
+
export declare class ActionGroup extends FoundationElement {
|
|
6
|
+
shape?: ActionGroupShape;
|
|
7
|
+
appearance?: ActionGroupAppearance;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { ActionGroup } from './action-group';
|
|
4
|
+
export declare const ActionGroupTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<ActionGroup>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividActionGroup: (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/badge/badge.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import {
|
|
3
|
-
import type { Appearance, Connotation,
|
|
4
|
-
declare type BadgeConnotation = Extract<Connotation, Connotation.
|
|
5
|
-
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.
|
|
2
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
|
+
import type { Appearance, Connotation, Density, Shape } from '../enums.js';
|
|
4
|
+
declare type BadgeConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info>;
|
|
5
|
+
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
|
|
6
6
|
declare type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
-
declare type
|
|
7
|
+
declare type BadgeDensity = Extract<Density, Density.Condensed | Density.Normal | Density.Extended>;
|
|
8
8
|
export declare class Badge extends FoundationElement {
|
|
9
9
|
connotation?: BadgeConnotation;
|
|
10
10
|
shape?: BadgeShape;
|
|
11
11
|
appearance?: BadgeAppearance;
|
|
12
|
-
|
|
13
|
-
text
|
|
12
|
+
density?: BadgeDensity;
|
|
13
|
+
text?: string;
|
|
14
14
|
}
|
|
15
|
-
export interface Badge extends
|
|
15
|
+
export interface Badge extends AffixIconWithTrailing {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
package/lib/badge/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const vividBadge: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Connotation } from '../enums';
|
|
3
|
+
import { AffixIcon } from '../../shared/patterns/affix';
|
|
4
|
+
export declare type BannerConnotation = Connotation.Info | Connotation.Announcement | Connotation.Success | Connotation.Warning | Connotation.Alert;
|
|
5
|
+
export declare class Banner extends FoundationElement {
|
|
6
|
+
#private;
|
|
7
|
+
actionHref: string | undefined;
|
|
8
|
+
actionText: string | undefined;
|
|
9
|
+
removable: boolean;
|
|
10
|
+
ariaLive: any;
|
|
11
|
+
role: string | undefined;
|
|
12
|
+
text: string | undefined;
|
|
13
|
+
connotation: BannerConnotation | undefined;
|
|
14
|
+
get conditionedIcon(): string;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
remove(): void;
|
|
18
|
+
}
|
|
19
|
+
export interface Banner extends AffixIcon {
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Banner } from './banner';
|
|
4
|
+
export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../button';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const vividBanner: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividBreadcrumb: (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,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BreadcrumbItem extends
|
|
3
|
-
|
|
1
|
+
import { BreadcrumbItem as FastBreadcrumbItem } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class BreadcrumbItem extends FastBreadcrumbItem {
|
|
3
|
+
text?: string;
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
3
|
import type { BreadcrumbItem } from './breadcrumb-item';
|
|
4
|
-
import '../icon';
|
|
5
4
|
export declare const BreadcrumbItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<BreadcrumbItem>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
1
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
4
|
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/button.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Button as FoundationButton } from '@microsoft/fast-foundation';
|
|
2
|
-
import type { Appearance, Connotation,
|
|
3
|
-
import {
|
|
4
|
-
declare type ButtonConnotation = Extract<Connotation, Connotation.
|
|
5
|
-
export declare type ButtonAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.
|
|
2
|
+
import type { Appearance, Connotation, Density, Shape } from '../enums.js';
|
|
3
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
4
|
+
declare type ButtonConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert>;
|
|
5
|
+
export declare type ButtonAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.Ghost>;
|
|
6
6
|
declare type ButtonShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
-
declare type
|
|
7
|
+
declare type ButtonDensity = Extract<Density, Density.Condensed | Density.Normal | Density.Extended>;
|
|
8
8
|
export declare class Button extends FoundationButton {
|
|
9
9
|
connotation?: ButtonConnotation;
|
|
10
10
|
shape?: ButtonShape;
|
|
11
11
|
appearance?: ButtonAppearance;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
density?: ButtonDensity;
|
|
13
|
+
stacked: boolean;
|
|
14
|
+
label?: string;
|
|
14
15
|
}
|
|
15
|
-
export interface Button extends
|
|
16
|
+
export interface Button extends AffixIconWithTrailing {
|
|
16
17
|
}
|
|
17
18
|
export {};
|
package/lib/button/index.d.ts
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../focus';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
export declare const vividButton: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
6
|
-
baseName: string;
|
|
7
|
-
baseClass: typeof FastButton;
|
|
8
|
-
template: any;
|
|
9
|
-
styles: import("@microsoft/fast-element").ComposableStyles;
|
|
10
|
-
shadowOptions: {
|
|
11
|
-
delegatesFocus: true;
|
|
12
|
-
};
|
|
13
|
-
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
14
|
-
baseName: string;
|
|
15
|
-
baseClass: typeof FastButton;
|
|
16
|
-
template: any;
|
|
17
|
-
styles: import("@microsoft/fast-element").ComposableStyles;
|
|
18
|
-
shadowOptions: {
|
|
19
|
-
delegatesFocus: true;
|
|
20
|
-
};
|
|
21
|
-
}, typeof Button>;
|
|
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>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class Calendar extends FoundationElement {
|
|
3
|
+
#private;
|
|
4
|
+
datetime?: Date | string;
|
|
5
|
+
startDay?: 'sunday' | 'monday';
|
|
6
|
+
locales?: string | string[] | undefined;
|
|
7
|
+
hour12: boolean;
|
|
8
|
+
getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
|
|
9
|
+
private getCalendarEventContainingCell;
|
|
10
|
+
private arrowKeysInteractions;
|
|
11
|
+
private activateElement;
|
|
12
|
+
onKeydown({ key }: KeyboardEvent): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Calendar } from './calendar';
|
|
4
|
+
export declare const CalendarTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Calendar>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Calendar } from '../calendar';
|
|
2
|
+
export declare const ARROW_UP = "ArrowUp";
|
|
3
|
+
export declare const ARROW_RIGHT = "ArrowRight";
|
|
4
|
+
export declare const ARROW_DOWN = "ArrowDown";
|
|
5
|
+
export declare const ARROW_LEFT = "ArrowLeft";
|
|
6
|
+
export declare type PredefindKeys = typeof ARROW_UP | typeof ARROW_RIGHT | typeof ARROW_DOWN | typeof ARROW_LEFT;
|
|
7
|
+
export declare function isCellOrHeader(el: unknown): el is HTMLElement;
|
|
8
|
+
export declare function getNextFocusableGridElement(this: Calendar, key: PredefindKeys, activeElement: HTMLElement): Element | null | void;
|
|
9
|
+
export declare function getHeaderDescendantGridCell(this: Calendar, key: PredefindKeys, activeElement: HTMLElement): Element | null | undefined;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividCalendar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Appearance, Connotation } from '../enums';
|
|
3
|
+
declare type CalendarEventConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info | Connotation.Announcement>;
|
|
4
|
+
declare type CalendarEventAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
|
|
5
|
+
export declare class CalendarEvent extends FoundationElement {
|
|
6
|
+
heading?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
connotation?: CalendarEventConnotation;
|
|
9
|
+
appearance?: CalendarEventAppearance;
|
|
10
|
+
overlapCount?: number;
|
|
11
|
+
start?: number;
|
|
12
|
+
duration?: number;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { CalendarEvent } from './calendar-event';
|
|
4
|
+
export declare const CalendarEventTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<CalendarEvent>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividCalendarEvent: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class Card extends FoundationElement {
|
|
3
|
+
heading?: string;
|
|
4
|
+
subheading?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
elevation?: 0 | 2 | 4 | 8 | 12 | 16 | 24;
|
|
8
|
+
graphicSlottedContent?: HTMLElement[];
|
|
9
|
+
hasMetaSlottedContent?: HTMLElement[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Card } from './card';
|
|
4
|
+
export declare const CardTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Card>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../elevation';
|
|
2
|
+
import '../icon';
|
|
3
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
+
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/components.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './accordion-item';
|
|
3
|
+
export * from './action-group';
|
|
2
4
|
export * from './badge';
|
|
5
|
+
export * from './banner';
|
|
6
|
+
export * from './breadcrumb';
|
|
7
|
+
export * from './breadcrumb-item';
|
|
3
8
|
export * from './button';
|
|
4
|
-
export * from './
|
|
9
|
+
export * from './calendar';
|
|
10
|
+
export * from './calendar-event';
|
|
11
|
+
export * from './card';
|
|
12
|
+
export * from './elevation';
|
|
13
|
+
export * from './fab';
|
|
5
14
|
export * from './icon';
|
|
6
15
|
export * from './layout';
|
|
7
|
-
export * from './
|
|
16
|
+
export * from './note';
|
|
17
|
+
export * from './popup';
|
|
18
|
+
export * from './progress';
|
|
19
|
+
export * from './progress-ring';
|
|
20
|
+
export * from './side-drawer';
|
|
21
|
+
export * from './sidenav-item';
|
|
22
|
+
export * from './text';
|
|
23
|
+
export * from './text-field';
|
|
24
|
+
export * from './tooltip';
|
package/lib/elevation/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const vividElevation: (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/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare enum Connotation {
|
|
2
|
-
|
|
2
|
+
Accent = "accent",
|
|
3
3
|
CTA = "cta",
|
|
4
4
|
Success = "success",
|
|
5
5
|
Alert = "alert",
|
|
@@ -13,19 +13,26 @@ export declare enum ConnotationDecorative {
|
|
|
13
13
|
export declare enum Shape {
|
|
14
14
|
Rounded = "rounded",
|
|
15
15
|
Pill = "pill",
|
|
16
|
-
Circled = "circled"
|
|
16
|
+
Circled = "circled",
|
|
17
|
+
Sharp = "sharp"
|
|
17
18
|
}
|
|
18
19
|
export declare enum Appearance {
|
|
19
|
-
Text = "text",
|
|
20
20
|
Filled = "filled",
|
|
21
21
|
Outlined = "outlined",
|
|
22
|
-
|
|
22
|
+
Duotone = "duotone",
|
|
23
|
+
Fieldset = "fieldset",
|
|
24
|
+
Subtle = "subtle",
|
|
23
25
|
Ghost = "ghost"
|
|
24
26
|
}
|
|
27
|
+
export declare enum Density {
|
|
28
|
+
Condensed = "condensed",
|
|
29
|
+
Normal = "normal",
|
|
30
|
+
Extended = "extended"
|
|
31
|
+
}
|
|
25
32
|
export declare enum Size {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
Small = "small",
|
|
34
|
+
Medium = "medium",
|
|
35
|
+
Large = "large"
|
|
29
36
|
}
|
|
30
37
|
export declare enum Position {
|
|
31
38
|
Top = "TOP",
|
package/lib/fab/fab.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Button as FoundationButton } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums.js';
|
|
3
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
4
|
+
export declare type FabConnotation = Extract<Connotation, Connotation.CTA | Connotation.Accent>;
|
|
5
|
+
export declare class Fab extends FoundationButton {
|
|
6
|
+
connotation?: FabConnotation;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Fab extends AffixIconWithTrailing {
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Fab } from './fab';
|
|
4
|
+
export declare const FabTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Fab>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
3
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
+
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/focus/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const vividFocus: (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/icon/icon.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
2
|
import type { Connotation, Size } from '../enums';
|
|
3
|
-
declare type IconConnotation = Extract<Connotation, Connotation.
|
|
3
|
+
declare type IconConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Announcement | Connotation.Success | Connotation.Alert | Connotation.Info>;
|
|
4
|
+
declare type IconSize = Extract<Size, Size.Small | Size.Medium | Size.Large>;
|
|
4
5
|
export declare class Icon extends FoundationElement {
|
|
5
6
|
connotation?: IconConnotation;
|
|
6
|
-
size?:
|
|
7
|
-
|
|
8
|
-
svg: any;
|
|
9
|
-
placeholder: any;
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
svg?: string;
|
|
10
9
|
type?: string;
|
|
11
10
|
typeChanged(): Promise<void>;
|
|
12
11
|
}
|
package/lib/layout/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const vividLayout: (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/layout/layout.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export declare enum AUTO_SIZING {
|
|
|
4
4
|
Fit = "fit",
|
|
5
5
|
Fill = "fill"
|
|
6
6
|
}
|
|
7
|
-
declare type Gutters = Extract<Size, Size.
|
|
8
|
-
declare type ColumnSpacing = Extract<Size, Size.
|
|
9
|
-
declare type ColumnBasis = Extract<Size, Size.
|
|
7
|
+
declare type Gutters = Extract<Size, Size.Small | Size.Medium | Size.Large>;
|
|
8
|
+
declare type ColumnSpacing = Extract<Size, Size.Small | Size.Medium | Size.Large>;
|
|
9
|
+
declare type ColumnBasis = Extract<Size, Size.Small | Size.Medium | Size.Large> | 'block';
|
|
10
10
|
export declare class Layout extends FoundationElement {
|
|
11
11
|
gutters?: Gutters;
|
|
12
12
|
columnBasis?: ColumnBasis;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividNote: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums';
|
|
3
|
+
import { AffixIcon } from '../../shared/patterns';
|
|
4
|
+
export declare type NoteConnotation = Connotation.Info | Connotation.Announcement | Connotation.Success | Connotation.Warning | Connotation.Alert;
|
|
5
|
+
export declare class Note extends FoundationElement {
|
|
6
|
+
heading?: string;
|
|
7
|
+
connotation?: NoteConnotation;
|
|
8
|
+
}
|
|
9
|
+
export interface Note extends AffixIcon {
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import '../icon/index';
|
|
4
|
+
import type { Note } from './note';
|
|
5
|
+
export declare const NoteTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Note>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../elevation';
|
|
2
|
+
import '../button';
|
|
3
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
+
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>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Placement } from '@floating-ui/dom';
|
|
3
|
+
export declare class Popup extends FoundationElement {
|
|
4
|
+
#private;
|
|
5
|
+
popupEl: HTMLElement;
|
|
6
|
+
arrowEl: HTMLElement;
|
|
7
|
+
open: boolean;
|
|
8
|
+
dismissible: boolean;
|
|
9
|
+
arrow: boolean;
|
|
10
|
+
alternate: boolean;
|
|
11
|
+
corner?: Placement;
|
|
12
|
+
anchor: string;
|
|
13
|
+
constructor();
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
16
|
+
updatePosition(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Popup } from './popup';
|
|
4
|
+
export declare const popupTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Popup>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividProgress: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseProgress } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation, ConnotationDecorative, Shape } from '../enums';
|
|
3
|
+
export declare type ProgressConnotation = Connotation.Accent | Connotation.Success | Connotation.Alert | Connotation.CTA | ConnotationDecorative.Pacific;
|
|
4
|
+
export declare type ProgressShape = Shape.Rounded | Shape.Sharp;
|
|
5
|
+
export declare class Progress extends BaseProgress {
|
|
6
|
+
shape?: ProgressShape;
|
|
7
|
+
connotation?: ProgressConnotation;
|
|
8
|
+
reverse: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { ProgressOptions } from '@microsoft/fast-foundation';
|
|
4
|
+
import type { Progress } from './progress';
|
|
5
|
+
export declare const ProgressTemplate: (context: ElementDefinitionContext, definition: ProgressOptions) => ViewTemplate<Progress>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividProgressRing: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseProgress } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums';
|
|
3
|
+
export declare type ProgressRingConnotation = Connotation.Accent | Connotation.Success | Connotation.Alert | Connotation.CTA;
|
|
4
|
+
export declare class ProgressRing extends BaseProgress {
|
|
5
|
+
connotation?: ProgressRingConnotation;
|
|
6
|
+
density?: -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3;
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { ProgressRing } from './progress-ring';
|
|
4
|
+
export declare const ProgressRingTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<ProgressRing>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividSideDrawer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'blocking-elements';
|
|
2
|
+
import 'wicg-inert';
|
|
3
|
+
import 'babel-polyfill';
|
|
4
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
|
+
export declare class SideDrawer extends FoundationElement {
|
|
6
|
+
#private;
|
|
7
|
+
asideEl: HTMLElement;
|
|
8
|
+
scrimEl: any;
|
|
9
|
+
alternate: boolean;
|
|
10
|
+
modal: boolean;
|
|
11
|
+
open: boolean;
|
|
12
|
+
position?: 'start' | 'end';
|
|
13
|
+
headerSlottedContent?: HTMLElement[];
|
|
14
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { SideDrawer } from './side-drawer';
|
|
4
|
+
export declare const sideDrawerTemplate: FoundationElementTemplate<ViewTemplate<SideDrawer>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '../icon';
|
|
2
|
+
import '../focus';
|
|
2
3
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
4
|
export declare const vividSidenavItem: (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,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class SidenavItem extends
|
|
4
|
-
text: string;
|
|
1
|
+
import { AffixIcon } from '../../shared/patterns/affix';
|
|
2
|
+
import { TextAnchor } from '../text-anchor/text-anchor';
|
|
3
|
+
export declare class SidenavItem extends TextAnchor {
|
|
5
4
|
}
|
|
6
|
-
export interface SidenavItem extends
|
|
5
|
+
export interface SidenavItem extends AffixIcon {
|
|
7
6
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividText: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums.js';
|
|
3
|
+
import type { VVDFontFace } from '../../../../../node_modules/@vonage/vivid-tokens/dist/types/typography/font-faces';
|
|
4
|
+
declare type TextConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Announcement | Connotation.Info>;
|
|
5
|
+
export declare class Text extends FoundationElement {
|
|
6
|
+
connotation?: TextConnotation;
|
|
7
|
+
fontFace?: VVDFontFace;
|
|
8
|
+
tight: boolean;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Text } from './text';
|
|
4
|
+
export declare const TextTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Text>;
|