@vonage/vivid 2.25.9 → 3.0.0-next.2
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 +7 -0
- package/badge/index.js +55 -0
- package/breadcrumb-item/index.js +48 -0
- package/button/index.js +752 -0
- package/elevation/index.js +38 -0
- package/focus/index.js +3 -0
- package/icon/index.js +5 -0
- package/index.d.ts +1 -0
- package/index.js +16 -62
- package/layout/index.js +53 -0
- package/lib/badge/badge.d.ts +17 -0
- package/lib/badge/badge.template.d.ts +4 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +5 -0
- package/lib/breadcrumb-item/index.d.ts +2 -0
- package/lib/button/button.d.ts +17 -0
- package/lib/button/button.template.d.ts +4 -0
- package/lib/button/index.d.ts +21 -0
- package/lib/components.d.ts +7 -0
- package/lib/elevation/elevation.d.ts +4 -0
- package/lib/elevation/elevation.template.d.ts +4 -0
- package/lib/elevation/index.d.ts +2 -0
- package/lib/enums.d.ts +44 -0
- package/lib/focus/focus.d.ts +3 -0
- package/lib/focus/focus.template.d.ts +4 -0
- package/lib/focus/index.d.ts +2 -0
- package/lib/icon/icon.d.ts +13 -0
- package/lib/icon/icon.placeholder.d.ts +1 -0
- package/lib/icon/icon.template.d.ts +4 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/layout.d.ts +16 -0
- package/lib/layout/layout.template.d.ts +4 -0
- package/lib/sidenav-item/index.d.ts +3 -0
- package/lib/sidenav-item/sidenav-item.d.ts +7 -0
- package/lib/sidenav-item/sidenav-item.template.d.ts +4 -0
- package/lib/text-anchor/index.d.ts +2 -0
- package/lib/text-anchor/text-anchor.d.ts +4 -0
- package/lib/text-anchor/text-anchor.template.d.ts +4 -0
- package/package.json +10 -312
- package/shared/affix.js +44 -0
- package/shared/anchor.js +78 -0
- package/shared/apply-mixins.js +22 -0
- package/shared/aria-global.js +156 -0
- package/shared/class-names.js +15 -0
- package/shared/design-system/index.d.ts +3 -0
- package/shared/index.js +1500 -0
- package/shared/index2.js +4911 -0
- package/shared/index3.js +21 -0
- package/shared/patterns/affix.d.ts +10 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/style-inject.es.js +28 -0
- package/shared/text-anchor.template.js +59 -0
- package/shared/web.dom-collections.iterator.js +1479 -0
- package/sidenav-item/index.js +79 -0
- package/styles/fonts/spezia.css +23 -0
- package/styles/themes/dark.css +193 -0
- package/styles/themes/light.css +193 -0
- package/text-anchor/index.js +15 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index2.js';
|
|
2
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
3
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
|
|
6
|
+
class Elevation extends FoundationElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.dp = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
__decorate([attr, __metadata("design:type", Object)], Elevation.prototype, "dp", void 0);
|
|
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}";
|
|
17
|
+
styleInject(css_248z);
|
|
18
|
+
|
|
19
|
+
let _ = t => t,
|
|
20
|
+
_t;
|
|
21
|
+
|
|
22
|
+
const getClasses = ({
|
|
23
|
+
dp
|
|
24
|
+
}) => classNames('control', [`dp-${dp}`, Boolean(dp)]);
|
|
25
|
+
|
|
26
|
+
const elevationTemplate = () => html(_t || (_t = _`
|
|
27
|
+
<div class="${0}">
|
|
28
|
+
<slot></slot>
|
|
29
|
+
</div>`), getClasses);
|
|
30
|
+
|
|
31
|
+
const VIVIDElevation = Elevation.compose({
|
|
32
|
+
baseName: 'elevation',
|
|
33
|
+
template: elevationTemplate,
|
|
34
|
+
styles: css_248z
|
|
35
|
+
});
|
|
36
|
+
designSystem.register(VIVIDElevation());
|
|
37
|
+
|
|
38
|
+
export { VIVIDElevation };
|
package/focus/index.js
ADDED
package/icon/index.js
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/components';
|
package/index.js
CHANGED
|
@@ -1,62 +1,16 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export { VWCHelperMessage as VWCHelperMessage } from "@vonage/vwc-helper-message";
|
|
18
|
-
export { VWCIconButton as VWCIconButton } from "@vonage/vwc-icon-button";
|
|
19
|
-
export { VWCIcon as VWCIcon } from "@vonage/vwc-icon";
|
|
20
|
-
export { VWCKeypad as VWCKeypad } from "@vonage/vwc-keypad";
|
|
21
|
-
export { Layout as VWCLayout } from "@vonage/vwc-layout";
|
|
22
|
-
export { VWCLinearProgress as VWCLinearProgress } from "@vonage/vwc-linear-progress";
|
|
23
|
-
export { VWCMenu as VWCMenu } from "@vonage/vwc-menu";
|
|
24
|
-
export { VWCNote as VWCNote } from "@vonage/vwc-note";
|
|
25
|
-
export { VWCPagination as VWCPagination } from "@vonage/vwc-pagination";
|
|
26
|
-
export { VWCRadio as VWCRadio } from "@vonage/vwc-radio";
|
|
27
|
-
export { VWCSlider as VWCSlider } from "@vonage/vwc-slider";
|
|
28
|
-
export { VWCSnackbar as VWCSnackbar } from "@vonage/vwc-snackbar";
|
|
29
|
-
export { VWCSurface as VWCSurface } from "@vonage/vwc-surface";
|
|
30
|
-
export { VWCSwitch as VWCSwitch } from "@vonage/vwc-switch";
|
|
31
|
-
export { VWCTextArea as VWCTextarea } from "@vonage/vwc-textarea";
|
|
32
|
-
export { VWCThemeSwitch as VWCThemeSwitch } from "@vonage/vwc-theme-switch";
|
|
33
|
-
export { VWCTopAppBar as VWCTopAppBar } from "@vonage/vwc-top-app-bar";
|
|
34
|
-
export { VWCAccordion as VWCAccordion } from "@vonage/vwc-accordion";
|
|
35
|
-
export { VWCBadge as VWCBadge } from "@vonage/vwc-badge";
|
|
36
|
-
export { VWCDrawer as VWCDrawer } from "@vonage/vwc-drawer";
|
|
37
|
-
export { VWCEmptyState as VWCEmptyState } from "@vonage/vwc-empty-state";
|
|
38
|
-
export { VWCPopup as VWCPopup } from "@vonage/vwc-popup";
|
|
39
|
-
export { VWCSelect as VWCSelect } from "@vonage/vwc-select";
|
|
40
|
-
export { VWCSideDrawer as VWCSideDrawer } from "@vonage/vwc-side-drawer";
|
|
41
|
-
export { VWCTag as VWCTag } from "@vonage/vwc-tags/vwc-tag";
|
|
42
|
-
export { VWCText as VWCText } from "@vonage/vwc-text";
|
|
43
|
-
export { VWCBanner as VWCBanner } from "@vonage/vwc-banner";
|
|
44
|
-
export { VWCButton as VWCButton } from "@vonage/vwc-button";
|
|
45
|
-
export { VWCExpansionPanel as VWCExpansionPanel } from "@vonage/vwc-expansion-panel";
|
|
46
|
-
export { VwcMediaController as VWCMediaController } from "@vonage/vwc-media-controller";
|
|
47
|
-
export { VWCScrubBar as VWCScrubBar } from "@vonage/vwc-media-controller/vwc-scrub-bar";
|
|
48
|
-
export { VWCCarouselItem as VWCCarouselItem } from "@vonage/vwc-carousel/vwc-carousel-item";
|
|
49
|
-
export { VWCCarousel as VWCCarousel } from "@vonage/vwc-carousel";
|
|
50
|
-
export { VWCTabBar as VWCTabBar } from "@vonage/vwc-tab-bar";
|
|
51
|
-
export { VWCTab as VWCTab } from "@vonage/vwc-tab-bar/vwc-tab";
|
|
52
|
-
export { GRID_COMPONENT as VWCDataGrid } from "@vonage/vwc-data-grid";
|
|
53
|
-
export { VWCTextField as VWCTextfield } from "@vonage/vwc-textfield";
|
|
54
|
-
export { VWCCalendarEvent as VWCCalendarEvent } from "@vonage/vwc-calendar/vwc-calendar-event";
|
|
55
|
-
export { VWCCalendar as VWCCalendar } from "@vonage/vwc-calendar";
|
|
56
|
-
export { VWCCheckListItem as VWCCheckListItem } from "@vonage/vwc-list/vwc-check-list-item";
|
|
57
|
-
export { VWCListExpansionPanel as VWCListExpansionPanel } from "@vonage/vwc-list/vwc-list-expansion-panel";
|
|
58
|
-
export { VWCListItem as VWCListItem } from "@vonage/vwc-list/vwc-list-item";
|
|
59
|
-
export { VWCList as VWCList } from "@vonage/vwc-list";
|
|
60
|
-
export { VWCRadioListItem as VWCRadioListItem } from "@vonage/vwc-list/vwc-radio-list-item";
|
|
61
|
-
export { default as VVDCore } from "@vonage/vvd-core";
|
|
62
|
-
export { default as VVDContext } from "@vonage/vvd-context";
|
|
1
|
+
export { vividTextAnchor } from './text-anchor/index.js';
|
|
2
|
+
export { VIVIDBadge } from './badge/index.js';
|
|
3
|
+
export { vividButton } from './button/index.js';
|
|
4
|
+
export { V as VIVIDFocus } from './shared/index3.js';
|
|
5
|
+
export { v as vividIcon } from './shared/index.js';
|
|
6
|
+
export { VIVIDLayout } from './layout/index.js';
|
|
7
|
+
export { VIVIDElevation } from './elevation/index.js';
|
|
8
|
+
import './shared/index2.js';
|
|
9
|
+
import './shared/text-anchor.template.js';
|
|
10
|
+
import './shared/web.dom-collections.iterator.js';
|
|
11
|
+
import './shared/anchor.js';
|
|
12
|
+
import './shared/apply-mixins.js';
|
|
13
|
+
import './shared/aria-global.js';
|
|
14
|
+
import './shared/class-names.js';
|
|
15
|
+
import './shared/affix.js';
|
|
16
|
+
import './shared/style-inject.es.js';
|
package/layout/index.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index2.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
4
|
+
|
|
5
|
+
var AUTO_SIZING;
|
|
6
|
+
|
|
7
|
+
(function (AUTO_SIZING) {
|
|
8
|
+
AUTO_SIZING["Fit"] = "fit";
|
|
9
|
+
AUTO_SIZING["Fill"] = "fill";
|
|
10
|
+
})(AUTO_SIZING || (AUTO_SIZING = {}));
|
|
11
|
+
|
|
12
|
+
class Layout extends FoundationElement {}
|
|
13
|
+
|
|
14
|
+
__decorate([attr, __metadata("design:type", String)], Layout.prototype, "gutters", void 0);
|
|
15
|
+
|
|
16
|
+
__decorate([attr({
|
|
17
|
+
attribute: 'column-basis'
|
|
18
|
+
}), __metadata("design:type", String)], Layout.prototype, "columnBasis", void 0);
|
|
19
|
+
|
|
20
|
+
__decorate([attr({
|
|
21
|
+
attribute: 'column-spacing'
|
|
22
|
+
}), __metadata("design:type", String)], Layout.prototype, "columnSpacing", void 0);
|
|
23
|
+
|
|
24
|
+
__decorate([attr({
|
|
25
|
+
attribute: 'auto-sizing'
|
|
26
|
+
}), __metadata("design:type", String)], Layout.prototype, "autoSizing", void 0);
|
|
27
|
+
|
|
28
|
+
var css_248z = "/* #region SIZEs */\n/* #region BASES */\n/* #region SPACES */\n.control {\n display: grid;\n grid-auto-rows: min-content;\n}\n.control.column-basis-base-small {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(10rem, 1fr)));\n}\n.control:not(.column-basis-base-small):not(.column-basis-base):not(.column-basis-base-large):not(.column-basis-block), .control.column-basis-base {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(20rem, 1fr)));\n}\n.control.column-basis-base-large {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(30rem, 1fr)));\n}\n.control.column-basis-block {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(1fr, 1fr)));\n}\n.control.column-spacing-base-small {\n gap: 16px;\n}\n.control:not(.column-spacing-base-small):not(.column-spacing-base):not(.column-spacing-base-large), .control.column-spacing-base {\n gap: 24px;\n}\n.control.column-spacing-base-large {\n gap: 32px;\n}\n.control.gutters-base-small {\n margin: 16px;\n}\n.control.gutters-base {\n margin: 24px;\n}\n.control.gutters-base-large {\n margin: 32px;\n}\n.control.auto-sizing-fill {\n --_auto-sizing: auto-fill;\n}\n.control:not(.auto-sizing-fill):not(.auto-sizing-fit), .control.auto-sizing-fit {\n --_auto-sizing: auto-fit;\n}";
|
|
29
|
+
styleInject(css_248z);
|
|
30
|
+
|
|
31
|
+
let _ = t => t,
|
|
32
|
+
_t;
|
|
33
|
+
|
|
34
|
+
const getClasses = ({
|
|
35
|
+
columnBasis,
|
|
36
|
+
gutters,
|
|
37
|
+
columnSpacing,
|
|
38
|
+
autoSizing
|
|
39
|
+
}) => classNames('control', [`column-basis-${columnBasis}`, Boolean(columnBasis)], [`gutters-${gutters}`, Boolean(gutters)], [`column-spacing-${columnSpacing}`, Boolean(columnSpacing)], [`auto-sizing-${autoSizing}`, Boolean(autoSizing)]);
|
|
40
|
+
|
|
41
|
+
const layoutTemplate = () => html(_t || (_t = _`
|
|
42
|
+
<div class="${0}">
|
|
43
|
+
<slot></slot>
|
|
44
|
+
</div>`), getClasses);
|
|
45
|
+
|
|
46
|
+
const VIVIDLayout = Layout.compose({
|
|
47
|
+
baseName: 'layout',
|
|
48
|
+
template: layoutTemplate,
|
|
49
|
+
styles: css_248z
|
|
50
|
+
});
|
|
51
|
+
designSystem.register(VIVIDLayout());
|
|
52
|
+
|
|
53
|
+
export { VIVIDLayout };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { PrefixOrSuffix } from '../../shared/patterns/affix';
|
|
3
|
+
import type { Appearance, Connotation, Shape, Size } from '../enums.js';
|
|
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.Soft>;
|
|
6
|
+
declare type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
+
declare type BadgeSize = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
8
|
+
export declare class Badge extends FoundationElement {
|
|
9
|
+
connotation?: BadgeConnotation;
|
|
10
|
+
shape?: BadgeShape;
|
|
11
|
+
appearance?: BadgeAppearance;
|
|
12
|
+
size?: BadgeSize;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Badge extends PrefixOrSuffix {
|
|
16
|
+
}
|
|
17
|
+
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 { Badge } from './badge';
|
|
4
|
+
export declare const badgeTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Badge>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
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,5 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { BreadcrumbItem } from './breadcrumb-item';
|
|
4
|
+
import '../icon';
|
|
5
|
+
export declare const BreadcrumbItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<BreadcrumbItem>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividBreadcrumbItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button as FoundationButton } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Appearance, Connotation, Shape, Size } from '../enums.js';
|
|
3
|
+
import { PrefixOrSuffix } from '../../shared/patterns/affix';
|
|
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.Soft>;
|
|
6
|
+
declare type ButtonShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
+
declare type ButtonSize = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
8
|
+
export declare class Button extends FoundationButton {
|
|
9
|
+
connotation?: ButtonConnotation;
|
|
10
|
+
shape?: ButtonShape;
|
|
11
|
+
appearance?: ButtonAppearance;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Button extends PrefixOrSuffix {
|
|
16
|
+
}
|
|
17
|
+
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 { Button } from './button';
|
|
4
|
+
export declare const buttonTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Button>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
3
|
+
import { Button as FastButton } from '@microsoft/fast-foundation';
|
|
4
|
+
import { Button } from './button';
|
|
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>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Elevation } from './elevation';
|
|
4
|
+
export declare const elevationTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Elevation>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
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
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare enum Connotation {
|
|
2
|
+
Primary = "primary",
|
|
3
|
+
CTA = "cta",
|
|
4
|
+
Success = "success",
|
|
5
|
+
Alert = "alert",
|
|
6
|
+
Warning = "warning",
|
|
7
|
+
Info = "info",
|
|
8
|
+
Announcement = "announcement"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ConnotationDecorative {
|
|
11
|
+
Pacific = "pacific"
|
|
12
|
+
}
|
|
13
|
+
export declare enum Shape {
|
|
14
|
+
Rounded = "rounded",
|
|
15
|
+
Pill = "pill",
|
|
16
|
+
Circled = "circled"
|
|
17
|
+
}
|
|
18
|
+
export declare enum Appearance {
|
|
19
|
+
Text = "text",
|
|
20
|
+
Filled = "filled",
|
|
21
|
+
Outlined = "outlined",
|
|
22
|
+
Soft = "soft",
|
|
23
|
+
Ghost = "ghost"
|
|
24
|
+
}
|
|
25
|
+
export declare enum Size {
|
|
26
|
+
BaseSmall = "base-small",
|
|
27
|
+
Base = "base",
|
|
28
|
+
BaseLarge = "base-large"
|
|
29
|
+
}
|
|
30
|
+
export declare enum Position {
|
|
31
|
+
Top = "TOP",
|
|
32
|
+
Bottom = "BOTTOM",
|
|
33
|
+
Start = "START",
|
|
34
|
+
Center = "CENTER",
|
|
35
|
+
End = "END"
|
|
36
|
+
}
|
|
37
|
+
export declare enum Role {
|
|
38
|
+
Status = "status",
|
|
39
|
+
Alert = "alert"
|
|
40
|
+
}
|
|
41
|
+
export declare enum AriaLive {
|
|
42
|
+
Polite = "polite",
|
|
43
|
+
Assertive = "assertive"
|
|
44
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Focus } from './focus';
|
|
4
|
+
export declare const focusTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Focus>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
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>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Connotation, Size } from '../enums';
|
|
3
|
+
declare type IconConnotation = Extract<Connotation, Connotation.Primary | Connotation.CTA | Connotation.Announcement | Connotation.Success | Connotation.Alert | Connotation.Info>;
|
|
4
|
+
export declare class Icon extends FoundationElement {
|
|
5
|
+
connotation?: IconConnotation;
|
|
6
|
+
size?: Size;
|
|
7
|
+
state: 'idle' | 'loading' | 'loaded' | 'fail';
|
|
8
|
+
svg: any;
|
|
9
|
+
placeholder: any;
|
|
10
|
+
type?: string;
|
|
11
|
+
typeChanged(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLACEHOLDER_ICON = "<svg width=\"80%\" height=\"80%\" viewBox=\"0 0 64 64\">\n <g>\n <g stroke-width=\"6\" stroke-linecap=\"round\" fill=\"none\">\n <path stroke=\"currentColor\" d=\"M4,32 c0,15,12,28,28,28c8,0,16-4,21-9\">\n </path>\n <path d=\"M60,32 C60,16,47.464,4,32,4S4,16,4,32\">\n </path>\n <animateTransform values=\"0,32,32;360,32,32\" attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"750ms\">\n </animateTransform>\n </g>\n </g>\n</svg>";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Icon } from './icon';
|
|
4
|
+
export declare const iconTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Icon>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividIcon: (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 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>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Size } from '../enums.js';
|
|
3
|
+
export declare enum AUTO_SIZING {
|
|
4
|
+
Fit = "fit",
|
|
5
|
+
Fill = "fill"
|
|
6
|
+
}
|
|
7
|
+
declare type Gutters = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
8
|
+
declare type ColumnSpacing = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
9
|
+
declare type ColumnBasis = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge> | 'block';
|
|
10
|
+
export declare class Layout extends FoundationElement {
|
|
11
|
+
gutters?: Gutters;
|
|
12
|
+
columnBasis?: ColumnBasis;
|
|
13
|
+
columnSpacing?: ColumnSpacing;
|
|
14
|
+
autoSizing?: AUTO_SIZING;
|
|
15
|
+
}
|
|
16
|
+
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 { Layout } from './layout';
|
|
4
|
+
export declare const layoutTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Layout>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
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>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { SidenavItem } from './sidenav-item';
|
|
4
|
+
export declare const SidenavItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<SidenavItem>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividTextAnchor: (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,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { TextAnchor } from './text-anchor';
|
|
4
|
+
export declare const textAnchorTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<TextAnchor>;
|