@vonage/vivid 3.0.0-next.15 → 3.0.0-next.18

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/card/index.js CHANGED
@@ -9,10 +9,13 @@ import { c as classNames } from '../shared/class-names.js';
9
9
  import '../shared/icon.js';
10
10
  import '../shared/object-set-prototype-of.js';
11
11
  import '../shared/_has.js';
12
- import '../shared/index2.js';
12
+ import '../focus/index.js';
13
+ import '../shared/focus.js';
13
14
  import '../shared/web.dom-collections.iterator.js';
14
15
  import '../shared/affix.js';
16
+ import '../shared/button.js';
15
17
  import '../shared/apply-mixins.js';
18
+ import '../shared/focus2.js';
16
19
  import '../shared/aria-global.js';
17
20
 
18
21
  var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n block-size: 100%;\n border-radius: 6px;\n}\n\n.wrapper {\n display: flex;\n overflow: hidden;\n flex-flow: column;\n block-size: inherit;\n border-radius: inherit;\n color: var(--vvd-color-on-canvas);\n}\n\n.content {\n display: flex;\n flex-flow: column;\n padding: 1.5rem;\n}\n.content-container {\n display: flex;\n gap: 0.5rem;\n}\n\n.header {\n display: flex;\n flex: 1;\n align-items: flex-start;\n gap: 0.5rem;\n}\n.header-content {\n flex: 1;\n}\n.header-title, .header-subheading {\n /* stylelint-disable value-no-vendor-prefix */\n display: -webkit-box;\n /* stylelint-enable value-no-vendor-prefix */\n overflow: hidden;\n -webkit-box-orient: vertical;\n}\n.header-title {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n -webkit-line-clamp: var(--heading-line-clamp);\n}\n.header-subheading {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n -webkit-line-clamp: var(--subheading-line-clamp);\n}\n.hide-header .header {\n display: none;\n}\n\n.header-subheading,\n.text {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n color: var(--vvd-color-neutral-70);\n}\n\n.text {\n padding-right: 8px;\n margin-top: 12px;\n}\n\n.footer {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n padding-bottom: 1.5rem;\n margin-top: auto;\n padding-inline: 1.5rem;\n}\n.hide-footer .footer {\n display: none;\n}\n\n::slotted([slot=graphic i]),\n.icon {\n flex-shrink: 0;\n align-self: baseline;\n margin-block-start: 4px;\n}\n\n.icon {\n font-size: 20px;\n}\n\n::slotted([slot=meta i]) {\n flex-shrink: 0;\n align-self: flex-start;\n margin-block-start: -0.5rem;\n margin-inline-end: -0.5rem;\n margin-inline-start: auto;\n}\n\nvwc-elevation {\n block-size: inherit;\n}\nvwc-elevation::part(base) {\n block-size: inherit;\n}";
@@ -21,11 +21,11 @@ const elevationTemplate = () => html(_t || (_t = _`
21
21
  <slot></slot>
22
22
  </div>`), getClasses);
23
23
 
24
- const VIVIDElevation = Elevation.compose({
24
+ const vividElevation = Elevation.compose({
25
25
  baseName: 'elevation',
26
26
  template: elevationTemplate,
27
27
  styles: css_248z
28
28
  });
29
- designSystem.register(VIVIDElevation());
29
+ designSystem.register(vividElevation());
30
30
 
31
- export { VIVIDElevation };
31
+ export { vividElevation };
package/fab/index.js ADDED
@@ -0,0 +1,94 @@
1
+ import '../icon/index.js';
2
+ import '../focus/index.js';
3
+ import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
4
+ import { s as styleInject } from '../shared/style-inject.es.js';
5
+ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../shared/affix.js';
6
+ import { B as Button } from '../shared/button.js';
7
+ import { a as applyMixins } from '../shared/apply-mixins.js';
8
+ import { f as focusTemplateFactory } from '../shared/focus2.js';
9
+ import { r as ref } from '../shared/aria-global.js';
10
+ import { c as classNames } from '../shared/class-names.js';
11
+ import '../shared/icon.js';
12
+ import '../shared/object-set-prototype-of.js';
13
+ import '../shared/_has.js';
14
+ import '../shared/when.js';
15
+ import '../shared/focus.js';
16
+ import '../shared/web.dom-collections.iterator.js';
17
+
18
+ var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 600 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n --_fab-block-size: 48px;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_fab-block-size);\n border-radius: 24px;\n color: var(--_appearance-color-text);\n column-gap: var(--fab-icon-gap);\n filter: var(--_elevation-shadow);\n outline: 0 none;\n vertical-align: middle;\n}\n.control.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n --connotation-basis: var(--vvd-color-cta);\n --connotation-basis-increment: var(--vvd-color-cta-70);\n --connotation-contrast: var(--vvd-color-cta-90);\n --connotation-fierce: var(--vvd-color-cta-80);\n --connotation-firm: var(--vvd-color-cta-70);\n}\n.control.connotation-primary {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n --connotation-basis: var(--vvd-color-neutral);\n --connotation-basis-increment: var(--vvd-color-neutral-90);\n --connotation-contrast: var(--vvd-color-neutral-90);\n --connotation-fierce: var(--vvd-color-neutral-80);\n --connotation-firm: var(--vvd-color-primary);\n}\n.control:not(.connotation-cta, .connotation-primary) {\n --connotation: var(--vvd-color-canvas);\n --on-connotation: var(--vvd-color-on-canvas);\n --connotation-basis: var(--vvd-color-canvas);\n --connotation-basis-increment: var(--vvd-color-neutral-20);\n --connotation-contrast: var(--vvd-color-on-canvas);\n --connotation-fierce: var(--vvd-color-neutral-30);\n --connotation-firm: var(--vvd-color-primary);\n}\n.control {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation-basis-increment);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-30);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation-fierce);\n --_appearance-color-outline: transaprent;\n}\n.control.icon-only {\n border-radius: 50%;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_fab-block-size);\n }\n}\n.control:not(.icon-only) {\n --fab-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:disabled {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n cursor: not-allowed;\n}\n.control:not(:disabled) {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n cursor: pointer;\n}\n.control:not(:disabled):active {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n\n/* Icon */\n.icon {\n font-size: 24px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus) .focus-indicator {\n display: none;\n}";
19
+ styleInject(css_248z);
20
+
21
+ class Fab extends Button {}
22
+
23
+ __decorate([attr, __metadata("design:type", String)], Fab.prototype, "connotation", void 0);
24
+
25
+ __decorate([attr, __metadata("design:type", String)], Fab.prototype, "label", void 0);
26
+
27
+ applyMixins(Fab, AffixIconWithTrailing);
28
+
29
+ let _ = t => t,
30
+ _t;
31
+
32
+ const getClasses = ({
33
+ connotation,
34
+ icon,
35
+ label,
36
+ iconTrailing,
37
+ disabled
38
+ }) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], ['icon-only', !label && !!icon], ['icon-trailing', iconTrailing], ['disabled', disabled]);
39
+
40
+ const FabTemplate = context => {
41
+ const affixIconTemplate = affixIconTemplateFactory(context);
42
+ const focusTemplate = focusTemplateFactory(context);
43
+ return html(_t || (_t = _`
44
+ <button
45
+ class="${0} "
46
+ ?autofocus="${0}"
47
+ ?disabled="${0}"
48
+ form="${0}"
49
+ formaction="${0}"
50
+ formenctype="${0}"
51
+ formmethod="${0}"
52
+ formnovalidate="${0}"
53
+ formtarget="${0}"
54
+ name="${0}"
55
+ type="${0}"
56
+ value="${0}"
57
+ aria-atomic="${0}"
58
+ aria-busy="${0}"
59
+ aria-controls="${0}"
60
+ aria-current="${0}"
61
+ aria-describedby="${0}"
62
+ aria-details="${0}"
63
+ aria-disabled="${0}"
64
+ aria-errormessage="${0}"
65
+ aria-expanded="${0}"
66
+ aria-flowto="${0}"
67
+ aria-haspopup="${0}"
68
+ aria-hidden="${0}"
69
+ aria-invalid="${0}"
70
+ aria-keyshortcuts="${0}"
71
+ aria-label="${0}"
72
+ aria-labelledby="${0}"
73
+ aria-live="${0}"
74
+ aria-owns="${0}"
75
+ aria-pressed="${0}"
76
+ aria-relevant="${0}"
77
+ aria-roledescription="${0}"
78
+ ${0}
79
+ >
80
+ ${0}
81
+ ${0}
82
+ ${0}
83
+ </button>
84
+ `), getClasses, x => x.autofocus, x => x.disabled, x => x.formId, x => x.formaction, x => x.formenctype, x => x.formmethod, x => x.formnovalidate, x => x.formtarget, x => x.name, x => x.type, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaExpanded, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaPressed, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, x => affixIconTemplate(x.icon), x => x.label);
85
+ };
86
+
87
+ const vividFab = Fab.compose({
88
+ baseName: 'fab',
89
+ template: FabTemplate,
90
+ styles: css_248z
91
+ });
92
+ designSystem.register(vividFab());
93
+
94
+ export { vividFab };
package/focus/index.js CHANGED
@@ -1,3 +1,20 @@
1
- import '../shared/index.js';
2
- export { V as VIVIDFocus } from '../shared/index2.js';
3
- import '../shared/style-inject.es.js';
1
+ import { h as html, d as designSystem } from '../shared/index.js';
2
+ import { F as Focus } from '../shared/focus.js';
3
+ import { s as styleInject } from '../shared/style-inject.es.js';
4
+
5
+ var css_248z = ":host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0 2px var(--focus-stroke-color, var(--vvd-color-on-canvas)), inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);\n inset: 0;\n}";
6
+ styleInject(css_248z);
7
+
8
+ let _ = t => t,
9
+ _t;
10
+ const focusTemplate = () => html(_t || (_t = _`
11
+ <span class="control"></span>`));
12
+
13
+ const vividFocus = Focus.compose({
14
+ baseName: 'focus',
15
+ template: focusTemplate,
16
+ styles: css_248z
17
+ });
18
+ designSystem.register(vividFocus());
19
+
20
+ export { vividFocus };
package/index.js CHANGED
@@ -1,33 +1,45 @@
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/index2.js';
5
- export { vividIcon } from './icon/index.js';
6
- export { VIVIDLayout } from './layout/index.js';
7
- export { VIVIDElevation } from './elevation/index.js';
8
- export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
1
+ export { vividAccordion } from './accordion/index.js';
2
+ export { vividAccordionItem } from './accordion-item/index.js';
3
+ export { vividBadge } from './badge/index.js';
4
+ export { vividBanner } from './banner/index.js';
9
5
  export { vividBreadcrumb } from './breadcrumb/index.js';
10
- export { VIVIDSideDrawer } from './side-drawer/index.js';
6
+ export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
7
+ export { vividButton } from './button/index.js';
11
8
  export { vividCalendar } from './calendar/index.js';
12
- export { VIVIDPopup } from './popup/index.js';
9
+ export { vividCard } from './card/index.js';
10
+ export { vividElevation } from './elevation/index.js';
11
+ export { vividFab } from './fab/index.js';
12
+ export { vividIcon } from './icon/index.js';
13
+ export { vividLayout } from './layout/index.js';
14
+ export { vividNote } from './note/index.js';
15
+ export { vividPopup } from './popup/index.js';
16
+ export { vividProgress } from './progress/index.js';
17
+ export { vividProgressRing } from './progress-ring/index.js';
18
+ export { vividSideDrawer } from './side-drawer/index.js';
19
+ export { vividSidenavItem } from './sidenav-item/index.js';
20
+ export { vividText } from './text/index.js';
13
21
  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
22
  export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
18
- import './shared/text-anchor.js';
19
- import './shared/affix.js';
23
+ import './shared/style-inject.es.js';
24
+ import './shared/class-names.js';
20
25
  import './shared/web.dom-collections.iterator.js';
21
26
  import './shared/object-set-prototype-of.js';
27
+ import './shared/affix.js';
22
28
  import './shared/icon.js';
23
29
  import './shared/_has.js';
24
- import './shared/anchor.js';
25
30
  import './shared/apply-mixins.js';
31
+ import './shared/when.js';
32
+ import './shared/enums.js';
33
+ import './text-anchor/index.js';
34
+ import './shared/text-anchor.js';
35
+ import './shared/anchor.js';
26
36
  import './shared/aria-global.js';
27
37
  import './shared/text-anchor.template.js';
28
- import './shared/class-names.js';
29
- import './shared/style-inject.es.js';
30
- import './shared/when.js';
38
+ import './focus/index.js';
39
+ import './shared/focus.js';
40
+ import './shared/button.js';
41
+ import './shared/focus2.js';
31
42
  import './shared/breadcrumb-item.js';
32
43
  import './shared/slotted.js';
33
44
  import './shared/es.object.assign.js';
45
+ import './shared/base-progress.js';
package/layout/index.js CHANGED
@@ -43,11 +43,11 @@ const layoutTemplate = () => html(_t || (_t = _`
43
43
  <slot></slot>
44
44
  </div>`), getClasses);
45
45
 
46
- const VIVIDLayout = Layout.compose({
46
+ const vividLayout = Layout.compose({
47
47
  baseName: 'layout',
48
48
  template: layoutTemplate,
49
49
  styles: css_248z
50
50
  });
51
- designSystem.register(VIVIDLayout());
51
+ designSystem.register(vividLayout());
52
52
 
53
- export { VIVIDLayout };
53
+ export { vividLayout };
@@ -1,3 +1,3 @@
1
1
  import '../icon';
2
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>>;
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>>;
@@ -1,21 +1,4 @@
1
1
  import '../icon';
2
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>;
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>>;
@@ -1,16 +1,21 @@
1
- export * from './text-anchor';
1
+ export * from './accordion';
2
+ export * from './accordion-item';
2
3
  export * from './badge';
4
+ export * from './banner';
5
+ export * from './breadcrumb';
6
+ export * from './breadcrumb-item';
3
7
  export * from './button';
4
- export * from './focus';
8
+ export * from './calendar';
9
+ export * from './card';
10
+ export * from './elevation';
11
+ export * from './fab';
5
12
  export * from './icon';
6
13
  export * from './layout';
7
- export * from './elevation';
8
- export * from './breadcrumb-item';
9
- export * from './breadcrumb';
10
- export * from './side-drawer';
11
- export * from './calendar';
14
+ export * from './note';
12
15
  export * from './popup';
16
+ export * from './progress';
17
+ export * from './progress-ring';
18
+ export * from './side-drawer';
19
+ export * from './sidenav-item';
20
+ export * from './text';
13
21
  export * from './tooltip';
14
- export * from './banner';
15
- export * from './accordion-item';
16
- export * from './accordion';
@@ -1,2 +1,2 @@
1
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>>;
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,4 +1,5 @@
1
1
  export declare enum Connotation {
2
+ Canvas = "canvas",
2
3
  Primary = "primary",
3
4
  CTA = "cta",
4
5
  Success = "success",
@@ -17,10 +18,10 @@ export declare enum Shape {
17
18
  Sharp = "sharp"
18
19
  }
19
20
  export declare enum Appearance {
20
- Text = "text",
21
21
  Filled = "filled",
22
22
  Outlined = "outlined",
23
23
  Duotone = "duotone",
24
+ Fieldset = "fieldset",
24
25
  Subtle = "subtle",
25
26
  Ghost = "ghost"
26
27
  }
@@ -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.Canvas | Connotation.CTA | Connotation.Primary>;
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>>;
@@ -1,2 +1,2 @@
1
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>>;
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>>;
@@ -1,2 +1,2 @@
1
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>>;
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,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>;
@@ -1,4 +1,4 @@
1
1
  import '../elevation';
2
2
  import '../button';
3
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>>;
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>>;
@@ -1,2 +1,2 @@
1
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>>;
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,4 @@
1
+ import '../icon';
2
+ import '../focus';
3
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
4
+ export declare const vividTextfield: (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 { TextField as FoundationTextfield } from '@microsoft/fast-foundation';
2
+ import type { Appearance, Density, Shape } from '../enums';
3
+ import { AffixIcon } from '../../shared/patterns';
4
+ declare type TextFieldDensity = Extract<Density, Density.Normal | Density.Extended>;
5
+ declare type TextFieldAppearance = Extract<Appearance, Appearance.Outlined | Appearance.Ghost>;
6
+ declare type TextFieldShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
7
+ export declare class TextField extends FoundationTextfield {
8
+ label?: string;
9
+ helperText?: string;
10
+ charCount: boolean;
11
+ density?: TextFieldDensity;
12
+ appearance?: TextFieldAppearance;
13
+ shape?: TextFieldShape;
14
+ userValid: boolean;
15
+ get errorValidationMessage(): string;
16
+ validate(): void;
17
+ }
18
+ export interface TextField extends AffixIcon {
19
+ }
20
+ export {};
@@ -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 { TextField } from './text-field';
5
+ export declare const TextfieldTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<TextField>;
package/note/index.js ADDED
@@ -0,0 +1,65 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
2
+ import { s as styleInject } from '../shared/style-inject.es.js';
3
+ import { b as AffixIcon } from '../shared/affix.js';
4
+ import '../shared/focus.js';
5
+ import { a as applyMixins } from '../shared/apply-mixins.js';
6
+ import '../shared/web.dom-collections.iterator.js';
7
+ import '../icon/index.js';
8
+ import { C as Connotation } from '../shared/enums.js';
9
+ import { w as when } from '../shared/when.js';
10
+ import { c as classNames } from '../shared/class-names.js';
11
+ import '../shared/icon.js';
12
+ import '../shared/object-set-prototype-of.js';
13
+ import '../shared/_has.js';
14
+
15
+ var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.base {\n display: flex;\n align-items: stretch;\n padding: 20px;\n border-left: 8px solid var(--connotation);\n background-color: var(--vvd-color-canvas);\n border-radius: 6px;\n box-shadow: inset 0 1px 0 0 var(--vvd-color-neutral-40), inset -1px 0 0 0 var(--vvd-color-neutral-40), inset 0 -1px 0 0 var(--vvd-color-neutral-40);\n color: var(--vvd-color-on-canvas);\n}\n.base.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n.base.connotation-info {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n}\n.base.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n.base.connotation-warning {\n --connotation: var(--vvd-color-warning);\n --on-connotation: var(--vvd-color-on-warning);\n}\n.base:not(.connotation-success, .connotation-info, .connotation-alert, .connotation-warning) {\n --connotation: var(--vvd-color-announcement);\n --on-connotation: var(--vvd-color-on-announcement);\n}\n@supports (contain: content) {\n .base {\n contain: content;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n\n.icon {\n --connotation: currentColor;\n align-self: flex-start;\n font-size: 24px;\n margin-inline-end: 16px;\n}\n\n.text {\n display: flex;\n min-height: 24px;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n gap: 4px;\n text-align: start;\n}\n.text .heading {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.text .message {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}";
16
+ styleInject(css_248z);
17
+
18
+ class Note extends FoundationElement {}
19
+
20
+ __decorate([attr, __metadata("design:type", String)], Note.prototype, "heading", void 0);
21
+
22
+ __decorate([attr, __metadata("design:type", String)], Note.prototype, "connotation", void 0);
23
+
24
+ applyMixins(Note, AffixIcon);
25
+
26
+ let _ = t => t,
27
+ _t,
28
+ _t2,
29
+ _t3;
30
+ const connotationIconMap = new Map([[Connotation.Info, 'info-solid'], [Connotation.Announcement, 'megaphone-solid'], [Connotation.Success, 'check-circle-solid'], [Connotation.Warning, 'warning-solid'], [Connotation.Alert, 'error-solid']]);
31
+
32
+ const getClasses = ({
33
+ connotation
34
+ }) => classNames('base', `connotation-${connotation}`);
35
+
36
+ function getHeaderTemplate() {
37
+ return html(_t || (_t = _`<div class="heading">${0}</div>`), x => x.heading);
38
+ }
39
+
40
+ function getIconType(note) {
41
+ return note.icon ? note.icon : note.connotation ? connotationIconMap.get(note.connotation) : 'megaphone-solid';
42
+ }
43
+
44
+ function getIconTemplate() {
45
+ return html(_t2 || (_t2 = _`<vwc-icon class="icon" type="${0}"></vwc-icon>`), getIconType);
46
+ }
47
+
48
+ const NoteTemplate = () => html(_t3 || (_t3 = _`
49
+ <div class="${0}">
50
+ ${0}
51
+ <div class="text">
52
+ ${0}
53
+ <slot class="message"></slot>
54
+ </div>
55
+ </div>
56
+ `), getClasses, getIconTemplate(), when(x => x.heading, getHeaderTemplate()));
57
+
58
+ const vividNote = Note.compose({
59
+ baseName: 'note',
60
+ template: NoteTemplate,
61
+ styles: css_248z
62
+ });
63
+ designSystem.register(vividNote());
64
+
65
+ export { vividNote };
package/package.json CHANGED
@@ -1,11 +1,32 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "3.0.0-next.15",
3
+ "version": "3.0.0-next.18",
4
4
  "type": "module",
5
5
  "module": "./index.esm.js",
6
- "main": "index.js",
6
+ "main": "./index.js",
7
7
  "exports": {
8
- "import": "./index.js"
8
+ "./accordion": "./accordion",
9
+ "./accordion-item": "./accordion-item",
10
+ "./badge": "./badge",
11
+ "./banner": "./banner",
12
+ "./breadcrumb": "./breadcrumb",
13
+ "./breadcrumb-item": "./breadcrumb-item",
14
+ "./button": "./button",
15
+ "./calendar": "./calendar",
16
+ "./card": "./card",
17
+ "./elevation": "./elevation",
18
+ "./fab": "./fab",
19
+ "./icon": "./icon",
20
+ "./layout": "./layout",
21
+ "./note": "./note",
22
+ "./popup": "./popup",
23
+ "./progress": "./progress",
24
+ "./progress-ring": "./progress-ring",
25
+ "./side-drawer": "./side-drawer",
26
+ "./sidenav-item": "./sidenav-item",
27
+ "./text": "./text",
28
+ "./text-field": "./text-field",
29
+ "./tooltip": "./tooltip"
9
30
  },
10
31
  "typings": "./index.d.ts",
11
32
  "dependencies": {
@@ -13,7 +34,7 @@
13
34
  "@microsoft/fast-foundation": "^2.41.1",
14
35
  "@microsoft/fast-web-utilities": "^5.2.0",
15
36
  "ramda": "^0.27.2",
16
- "@floating-ui/dom": "^0.4.0"
37
+ "@floating-ui/dom": "^0.5.1"
17
38
  },
18
39
  "peerDependencies": {}
19
40
  }