@vonage/vivid 3.0.0-next.3 → 3.0.0-next.6
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/accordion/index.js +61 -0
- package/accordion-item/index.js +125 -0
- package/badge/index.js +19 -10
- package/banner/index.js +212 -0
- package/breadcrumb/index.js +24 -136
- package/breadcrumb-item/index.js +13 -7
- package/button/index.js +24 -15
- package/calendar/index.js +1521 -0
- package/elevation/index.js +5 -12
- package/focus/index.js +2 -2
- package/icon/index.js +33 -4
- package/index.d.ts +1 -0
- package/index.js +17 -4
- package/layout/index.js +1 -1
- 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 +3 -0
- package/lib/badge/badge.d.ts +3 -3
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +6 -0
- package/lib/banner/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +3 -3
- package/lib/calendar/calendar.d.ts +11 -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 +3 -0
- package/lib/components.d.ts +7 -0
- package/lib/elevation/elevation.d.ts +1 -1
- package/lib/enums.d.ts +3 -2
- package/lib/icon/icon.d.ts +1 -3
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +29 -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 +6 -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 +12 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -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 +3 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +10 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/package.json +10 -5
- package/popup/index.js +2087 -0
- package/progress/index.js +98 -0
- package/progress-ring/index.js +76 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +10 -25
- package/shared/anchor.js +2 -2
- package/shared/aria-global.js +20 -20
- package/shared/base-progress.js +65 -0
- package/shared/breadcrumb-item.js +2 -2
- package/shared/es.object.assign.js +68 -0
- package/shared/icon.js +1393 -0
- package/shared/index.js +4918 -1427
- package/shared/index2.js +15 -4905
- package/shared/patterns/affix.d.ts +3 -4
- package/shared/slotted.js +119 -0
- package/shared/text-anchor.js +21 -0
- package/shared/text-anchor.template.js +13 -6
- package/shared/web.dom-collections.iterator.js +639 -639
- package/shared/when.js +15 -0
- package/side-drawer/index.js +103 -0
- package/sidenav-item/index.js +15 -56
- package/styles/themes/dark.css +4 -4
- package/styles/themes/light.css +4 -4
- package/text/index.js +45 -0
- package/text-anchor/index.js +7 -13
- package/tooltip/index.js +73 -0
- package/shared/index3.js +0 -21
package/elevation/index.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/
|
|
2
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
3
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
4
|
|
|
6
|
-
class Elevation extends FoundationElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.dp = 2;
|
|
10
|
-
}
|
|
5
|
+
class Elevation extends FoundationElement {}
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
__decorate([attr, __metadata("design:type", Number)], Elevation.prototype, "dp", void 0);
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var css_248z = ".dp-0:not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-0dp);\n filter: var(--vvd-shadow-surface-0dp);\n}\n\n.dp-2:not(.dp-0):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}\n\n.dp-4:not(.dp-0):not(.dp-2):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-4dp);\n filter: var(--vvd-shadow-surface-4dp);\n}\n\n.dp-8:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-8dp);\n filter: var(--vvd-shadow-surface-8dp);\n}\n\n.dp-12:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-12dp);\n filter: var(--vvd-shadow-surface-12dp);\n}\n\n.dp-16:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-24) {\n background-color: var(--vvd-color-surface-16dp);\n filter: var(--vvd-shadow-surface-16dp);\n}\n\n.dp-24:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16) {\n background-color: var(--vvd-color-surface-24dp);\n filter: var(--vvd-shadow-surface-24dp);\n}\n\n.control {\n --elevation-border-radius: 6px;\n border-radius: var(--elevation-border-radius);\n}";
|
|
9
|
+
var css_248z = ".control.dp-0 ::slotted(*) {\n background-color: var(--vvd-color-surface-0dp);\n filter: var(--vvd-shadow-surface-0dp);\n}\n.control.dp-2 ::slotted(*) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}\n.control.dp-4 ::slotted(*) {\n background-color: var(--vvd-color-surface-4dp);\n filter: var(--vvd-shadow-surface-4dp);\n}\n.control.dp-8 ::slotted(*) {\n background-color: var(--vvd-color-surface-8dp);\n filter: var(--vvd-shadow-surface-8dp);\n}\n.control.dp-12 ::slotted(*) {\n background-color: var(--vvd-color-surface-12dp);\n filter: var(--vvd-shadow-surface-12dp);\n}\n.control.dp-16 ::slotted(*) {\n background-color: var(--vvd-color-surface-16dp);\n filter: var(--vvd-shadow-surface-16dp);\n}\n.control.dp-24 ::slotted(*) {\n background-color: var(--vvd-color-surface-24dp);\n filter: var(--vvd-shadow-surface-24dp);\n}\n.control:not(.dp-0, .dp-4, .dp-8, .dp-12, .dp-16, .dp-24) ::slotted(*) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}";
|
|
17
10
|
styleInject(css_248z);
|
|
18
11
|
|
|
19
12
|
let _ = t => t,
|
|
@@ -24,7 +17,7 @@ const getClasses = ({
|
|
|
24
17
|
}) => classNames('control', [`dp-${dp}`, Boolean(dp)]);
|
|
25
18
|
|
|
26
19
|
const elevationTemplate = () => html(_t || (_t = _`
|
|
27
|
-
<div class="${0}">
|
|
20
|
+
<div class="${0}" part="base">
|
|
28
21
|
<slot></slot>
|
|
29
22
|
</div>`), getClasses);
|
|
30
23
|
|
package/focus/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import '../shared/
|
|
2
|
-
export { V as VIVIDFocus } from '../shared/
|
|
1
|
+
import '../shared/index.js';
|
|
2
|
+
export { V as VIVIDFocus } from '../shared/index2.js';
|
|
3
3
|
import '../shared/style-inject.es.js';
|
package/icon/index.js
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
import '../shared/
|
|
2
|
-
|
|
3
|
-
import '../shared/
|
|
1
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import { I as Icon } from '../shared/icon.js';
|
|
4
|
+
import { w as when } from '../shared/when.js';
|
|
5
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
4
6
|
import '../shared/web.dom-collections.iterator.js';
|
|
5
|
-
import '../shared/
|
|
7
|
+
import '../shared/_has.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = ":host {\n display: inline-block;\n vertical-align: sub;\n}\n\n.control {\n display: flex;\n margin: unset;\n color: currentColor;\n contain: strict;\n}\n.control.connotation-primary {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n}\n\n.control.connotation-announcement {\n --connotation: var(--vvd-color-announcement);\n --on-connotation: var(--vvd-color-on-announcement);\n}\n\n.control.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n}\n\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n\n.control.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n\n.control.connotation-info {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n}\n\n.control[class*=connotation] {\n color: var(--connotation);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-base-small):not(.size-base):not(.size-base-large) {\n block-size: 1em;\n inline-size: 1em;\n}\n\n.control.size-base-small {\n block-size: 16px;\n inline-size: 16px;\n}\n\n.control.size-base {\n block-size: 24px;\n inline-size: 24px;\n}\n\n.control.size-base-large {\n block-size: 32px;\n inline-size: 32px;\n}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
let _ = t => t,
|
|
13
|
+
_t,
|
|
14
|
+
_t2;
|
|
15
|
+
|
|
16
|
+
const getClasses = ({
|
|
17
|
+
connotation,
|
|
18
|
+
size
|
|
19
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`size-${size}`, Boolean(size)]);
|
|
20
|
+
|
|
21
|
+
const iconTemplate = () => html(_t || (_t = _`
|
|
22
|
+
<figure class="${0}">
|
|
23
|
+
${0}
|
|
24
|
+
</figure>
|
|
25
|
+
`), getClasses, when(x => x.svg, x => html(_t2 || (_t2 = _`${0}`), x.svg)));
|
|
26
|
+
|
|
27
|
+
const vividIcon = Icon.compose({
|
|
28
|
+
baseName: 'icon',
|
|
29
|
+
template: iconTemplate,
|
|
30
|
+
styles: css_248z
|
|
31
|
+
});
|
|
32
|
+
designSystem.register(vividIcon());
|
|
33
|
+
|
|
34
|
+
export { vividIcon };
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
export { vividTextAnchor } from './text-anchor/index.js';
|
|
2
2
|
export { VIVIDBadge } from './badge/index.js';
|
|
3
3
|
export { vividButton } from './button/index.js';
|
|
4
|
-
export { V as VIVIDFocus } from './shared/
|
|
5
|
-
export {
|
|
4
|
+
export { V as VIVIDFocus } from './shared/index2.js';
|
|
5
|
+
export { vividIcon } from './icon/index.js';
|
|
6
6
|
export { VIVIDLayout } from './layout/index.js';
|
|
7
7
|
export { VIVIDElevation } from './elevation/index.js';
|
|
8
8
|
export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
9
9
|
export { vividBreadcrumb } from './breadcrumb/index.js';
|
|
10
|
-
|
|
10
|
+
export { VIVIDSideDrawer } from './side-drawer/index.js';
|
|
11
|
+
export { vividCalendar } from './calendar/index.js';
|
|
12
|
+
export { VIVIDPopup } from './popup/index.js';
|
|
13
|
+
export { vividTooltip } from './tooltip/index.js';
|
|
14
|
+
export { vividBanner } from './banner/index.js';
|
|
15
|
+
export { vividAccordionItem } from './accordion-item/index.js';
|
|
16
|
+
export { vividAccordion } from './accordion/index.js';
|
|
17
|
+
export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
|
|
18
|
+
import './shared/text-anchor.js';
|
|
11
19
|
import './shared/web.dom-collections.iterator.js';
|
|
20
|
+
import './shared/affix.js';
|
|
21
|
+
import './shared/icon.js';
|
|
22
|
+
import './shared/_has.js';
|
|
12
23
|
import './shared/anchor.js';
|
|
13
24
|
import './shared/apply-mixins.js';
|
|
14
25
|
import './shared/aria-global.js';
|
|
15
26
|
import './shared/text-anchor.template.js';
|
|
16
27
|
import './shared/class-names.js';
|
|
17
|
-
import './shared/affix.js';
|
|
18
28
|
import './shared/style-inject.es.js';
|
|
29
|
+
import './shared/when.js';
|
|
19
30
|
import './shared/breadcrumb-item.js';
|
|
31
|
+
import './shared/slotted.js';
|
|
32
|
+
import './shared/es.object.assign.js';
|
package/layout/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import { c as classNames } from '../shared/class-names.js';
|
|
4
4
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Accordion } from './accordion';
|
|
4
|
+
export declare const AccordionTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Accordion>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividAccordion: (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
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
|
+
export declare class AccordionItem extends FoundationElement {
|
|
4
|
+
heading: string;
|
|
5
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
noIndicator: boolean;
|
|
7
|
+
meta: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
10
|
+
private emitEvent;
|
|
11
|
+
}
|
|
12
|
+
export interface AccordionItem extends AffixIconWithTrailing {
|
|
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 { AccordionItem } from './accordion-item';
|
|
4
|
+
export declare const AccordionItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<AccordionItem>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
import '../icon';
|
|
3
|
+
export declare const vividAccordionItem: (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,8 +1,8 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import {
|
|
2
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
3
|
import type { Appearance, Connotation, Shape, Size } from '../enums.js';
|
|
4
4
|
declare type BadgeConnotation = Extract<Connotation, Connotation.Primary | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info>;
|
|
5
|
-
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.
|
|
5
|
+
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.Subtle>;
|
|
6
6
|
declare type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
7
|
declare type BadgeSize = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
8
8
|
export declare class Badge extends FoundationElement {
|
|
@@ -12,6 +12,6 @@ export declare class Badge extends FoundationElement {
|
|
|
12
12
|
size?: BadgeSize;
|
|
13
13
|
text: string;
|
|
14
14
|
}
|
|
15
|
-
export interface Badge extends
|
|
15
|
+
export interface Badge extends AffixIconWithTrailing {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -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,6 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import '../button';
|
|
4
|
+
import '../text-anchor';
|
|
5
|
+
import type { Banner } from './banner';
|
|
6
|
+
export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
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>>;
|
|
@@ -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,3 @@
|
|
|
1
|
+
import '../icon';
|
|
1
2
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
3
|
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,8 +1,8 @@
|
|
|
1
1
|
import { Button as FoundationButton } from '@microsoft/fast-foundation';
|
|
2
2
|
import type { Appearance, Connotation, Shape, Size } from '../enums.js';
|
|
3
|
-
import {
|
|
3
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
4
4
|
declare type ButtonConnotation = Extract<Connotation, Connotation.Primary | Connotation.CTA | Connotation.Success | Connotation.Alert>;
|
|
5
|
-
export declare type ButtonAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.
|
|
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
7
|
declare type ButtonSize = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
8
8
|
export declare class Button extends FoundationButton {
|
|
@@ -12,6 +12,6 @@ export declare class Button extends FoundationButton {
|
|
|
12
12
|
size?: ButtonSize;
|
|
13
13
|
label: string;
|
|
14
14
|
}
|
|
15
|
-
export interface Button extends
|
|
15
|
+
export interface Button extends AffixIconWithTrailing {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class Calendar extends FoundationElement {
|
|
3
|
+
datetime?: Date | string;
|
|
4
|
+
startDay?: 'sunday' | 'monday';
|
|
5
|
+
locales?: string | string[] | undefined;
|
|
6
|
+
hour12: boolean;
|
|
7
|
+
getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
|
|
8
|
+
private arrowKeysInteractions;
|
|
9
|
+
private moveTo;
|
|
10
|
+
onKeydown({ key }: KeyboardEvent): boolean;
|
|
11
|
+
}
|
|
@@ -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,3 @@
|
|
|
1
|
+
import '../elevation';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
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>>;
|
package/lib/components.d.ts
CHANGED
|
@@ -7,3 +7,10 @@ export * from './layout';
|
|
|
7
7
|
export * from './elevation';
|
|
8
8
|
export * from './breadcrumb-item';
|
|
9
9
|
export * from './breadcrumb';
|
|
10
|
+
export * from './side-drawer';
|
|
11
|
+
export * from './calendar';
|
|
12
|
+
export * from './popup';
|
|
13
|
+
export * from './tooltip';
|
|
14
|
+
export * from './banner';
|
|
15
|
+
export * from './accordion-item';
|
|
16
|
+
export * from './accordion';
|
package/lib/enums.d.ts
CHANGED
|
@@ -13,13 +13,14 @@ 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
20
|
Text = "text",
|
|
20
21
|
Filled = "filled",
|
|
21
22
|
Outlined = "outlined",
|
|
22
|
-
|
|
23
|
+
Subtle = "subtle",
|
|
23
24
|
Ghost = "ghost"
|
|
24
25
|
}
|
|
25
26
|
export declare enum Size {
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ declare type IconConnotation = Extract<Connotation, Connotation.Primary | Connot
|
|
|
4
4
|
export declare class Icon extends FoundationElement {
|
|
5
5
|
connotation?: IconConnotation;
|
|
6
6
|
size?: Size;
|
|
7
|
-
|
|
8
|
-
svg: any;
|
|
9
|
-
placeholder: any;
|
|
7
|
+
svg: string;
|
|
10
8
|
type?: string;
|
|
11
9
|
typeChanged(): Promise<void>;
|
|
12
10
|
}
|
|
@@ -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,29 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Placement } from '@floating-ui/dom';
|
|
3
|
+
export declare class Popup extends FoundationElement {
|
|
4
|
+
private static ARROW_POSITION;
|
|
5
|
+
private get PADDING();
|
|
6
|
+
private get DISTANCE();
|
|
7
|
+
private get STRATEGY();
|
|
8
|
+
popupEl: HTMLElement;
|
|
9
|
+
arrowEl: HTMLElement;
|
|
10
|
+
private cleanup?;
|
|
11
|
+
private get middleware();
|
|
12
|
+
open: boolean;
|
|
13
|
+
dismissible: boolean;
|
|
14
|
+
arrow: boolean;
|
|
15
|
+
alternate: boolean;
|
|
16
|
+
corner?: Placement;
|
|
17
|
+
anchor: string;
|
|
18
|
+
private anchorEl;
|
|
19
|
+
constructor();
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
22
|
+
updatePosition(): Promise<void>;
|
|
23
|
+
show(): void;
|
|
24
|
+
hide(): void;
|
|
25
|
+
handleDismissClick(): void;
|
|
26
|
+
private assignPopupPosition;
|
|
27
|
+
private assignArrowPosition;
|
|
28
|
+
private getAnchorById;
|
|
29
|
+
}
|
|
@@ -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.Primary | 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,6 @@
|
|
|
1
|
+
import { BaseProgress } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation } from '../enums';
|
|
3
|
+
export declare type ProgressRingConnotation = Connotation.Primary | Connotation.Success | Connotation.Alert | Connotation.CTA;
|
|
4
|
+
export declare class ProgressRing extends BaseProgress {
|
|
5
|
+
connotation?: ProgressRingConnotation;
|
|
6
|
+
}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { FoundationElement, FoundationElementDefinition, StartEndOptions } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare type SideDrawerOptions = FoundationElementDefinition & StartEndOptions;
|
|
3
|
+
export declare class SideDrawer extends FoundationElement {
|
|
4
|
+
alternate: boolean;
|
|
5
|
+
modal: boolean;
|
|
6
|
+
open: boolean;
|
|
7
|
+
position?: 'start' | 'end';
|
|
8
|
+
show(): void;
|
|
9
|
+
hide(): void;
|
|
10
|
+
handleScrimClick: () => void;
|
|
11
|
+
handleKeydown({ key }: KeyboardEvent): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { SideDrawer, SideDrawerOptions } from './side-drawer';
|
|
4
|
+
export declare const sideDrawerTemplate: FoundationElementTemplate<ViewTemplate<SideDrawer>, SideDrawerOptions>;
|
|
@@ -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.Primary | 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>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../popup';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const vividTooltip: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Placement } from '@floating-ui/dom';
|
|
3
|
+
export declare class Tooltip extends FoundationElement {
|
|
4
|
+
text: string;
|
|
5
|
+
open: boolean;
|
|
6
|
+
corner?: Placement;
|
|
7
|
+
anchor?: string;
|
|
8
|
+
show(): void;
|
|
9
|
+
hide(): void;
|
|
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 { Tooltip } from './tooltip';
|
|
4
|
+
export declare const TooltipTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Tooltip>;
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.6",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
"import": "./index.js"
|
|
7
|
+
},
|
|
4
8
|
"main": "./index.umd.js",
|
|
5
9
|
"module": "./index.esm.js",
|
|
6
10
|
"typings": "./index.d.ts",
|
|
7
11
|
"dependencies": {
|
|
8
|
-
"@microsoft/fast-element": "^1.
|
|
9
|
-
"@microsoft/fast-foundation": "^2.
|
|
10
|
-
"@microsoft/fast-web-utilities": "^5.
|
|
11
|
-
"ramda": "^0.27.2"
|
|
12
|
+
"@microsoft/fast-element": "^1.9.0",
|
|
13
|
+
"@microsoft/fast-foundation": "^2.41.1",
|
|
14
|
+
"@microsoft/fast-web-utilities": "^5.2.0",
|
|
15
|
+
"ramda": "^0.27.2",
|
|
16
|
+
"@floating-ui/dom": "^0.4.0"
|
|
12
17
|
},
|
|
13
18
|
"peerDependencies": {}
|
|
14
19
|
}
|