@vonage/vivid 3.0.0-next.20 → 3.0.0-next.23

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/accordion-item/index.js +13 -5
  3. package/action-group/index.js +19 -4
  4. package/badge/index.js +4 -1
  5. package/banner/index.js +10 -9
  6. package/breadcrumb/index.js +1 -0
  7. package/breadcrumb-item/index.js +14 -4
  8. package/button/index.js +8 -3
  9. package/calendar/index.js +33 -9
  10. package/calendar-event/index.js +117 -0
  11. package/card/index.js +12 -17
  12. package/fab/index.js +8 -3
  13. package/focus/index.js +1 -1
  14. package/icon/index.js +3 -1
  15. package/index.js +15 -9
  16. package/lib/accordion-item/index.d.ts +2 -0
  17. package/lib/action-group/action-group.d.ts +1 -0
  18. package/lib/banner/banner.template.d.ts +0 -2
  19. package/lib/banner/index.d.ts +1 -0
  20. package/lib/breadcrumb-item/index.d.ts +1 -0
  21. package/lib/calendar/calendar.d.ts +3 -1
  22. package/lib/calendar/index.d.ts +0 -1
  23. package/lib/calendar-event/calendar-event.d.ts +14 -0
  24. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  25. package/lib/calendar-event/index.d.ts +2 -0
  26. package/lib/card/index.d.ts +0 -1
  27. package/lib/components.d.ts +1 -0
  28. package/lib/side-drawer/side-drawer.d.ts +8 -1
  29. package/lib/sidenav-item/index.d.ts +1 -0
  30. package/lib/text-field/text-field.d.ts +1 -0
  31. package/note/index.js +4 -1
  32. package/package.json +6 -2
  33. package/popup/index.js +10 -5
  34. package/progress/index.js +31 -23
  35. package/shared/aria-global.js +3 -40
  36. package/shared/button.js +1 -1
  37. package/shared/calendar-event.js +26 -0
  38. package/shared/es.object.assign.js +2 -2
  39. package/shared/{object-set-prototype-of.js → export.js} +472 -530
  40. package/shared/focus2.js +2 -459
  41. package/shared/form-associated.js +460 -0
  42. package/shared/icon.js +23 -69
  43. package/shared/iterators.js +61 -0
  44. package/shared/object-keys.js +13 -0
  45. package/shared/ref.js +41 -0
  46. package/shared/text-anchor.template.js +5 -2
  47. package/shared/to-string.js +51 -0
  48. package/shared/web.dom-collections.iterator.js +5 -13
  49. package/side-drawer/index.js +8588 -10
  50. package/sidenav-item/index.js +10 -6
  51. package/text/index.js +3 -1
  52. package/text-anchor/index.js +7 -1
  53. package/text-field/index.js +14 -5
  54. package/tooltip/index.js +7 -2
package/fab/index.js CHANGED
@@ -6,16 +6,21 @@ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../sh
6
6
  import { B as Button } from '../shared/button.js';
7
7
  import { a as applyMixins } from '../shared/apply-mixins.js';
8
8
  import { f as focusTemplateFactory } from '../shared/focus2.js';
9
- import { r as ref } from '../shared/aria-global.js';
9
+ import { r as ref } from '../shared/ref.js';
10
10
  import { c as classNames } from '../shared/class-names.js';
11
11
  import '../shared/icon.js';
12
- import '../shared/object-set-prototype-of.js';
12
+ import '../shared/export.js';
13
+ import '../shared/iterators.js';
14
+ import '../shared/to-string.js';
13
15
  import '../shared/_has.js';
14
16
  import '../shared/when.js';
15
17
  import '../shared/focus.js';
16
18
  import '../shared/web.dom-collections.iterator.js';
19
+ import '../shared/object-keys.js';
20
+ import '../shared/form-associated.js';
21
+ import '../shared/aria-global.js';
17
22
 
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-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n --_connotation-color-primary-increment: var(--vvd-color-cta-70);\n --_connotation-color-contrast: var(--vvd-color-cta-90);\n --_connotation-color-fierce: var(--vvd-color-cta-80);\n --_connotation-color-firm: var(--vvd-color-cta-70);\n}\n.control:not(.connotation-cta) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-90);\n --_connotation-color-contrast: var(--vvd-color-neutral-90);\n --_connotation-color-fierce: var(--vvd-color-neutral-80);\n --_connotation-color-firm: var(--vvd-color-on-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary-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(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-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}";
23
+ 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 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n --_fab-block-size: 40px;\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-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n --_connotation-color-primary-increment: var(--vvd-color-cta-70);\n --_connotation-color-contrast: var(--vvd-color-cta-90);\n --_connotation-color-fierce: var(--vvd-color-cta-80);\n --_connotation-color-firm: var(--vvd-color-cta-70);\n}\n.control:not(.connotation-cta) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-90);\n --_connotation-color-contrast: var(--vvd-color-neutral-90);\n --_connotation-color-fierce: var(--vvd-color-neutral-80);\n --_connotation-color-firm: var(--vvd-color-on-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary-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(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-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: 20px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) .focus-indicator {\n display: none;\n}";
19
24
  styleInject(css_248z);
20
25
 
21
26
  class Fab extends Button {}
package/focus/index.js CHANGED
@@ -2,7 +2,7 @@ import { h as html, d as designSystem } from '../shared/index.js';
2
2
  import { F as Focus } from '../shared/focus.js';
3
3
  import { s as styleInject } from '../shared/style-inject.es.js';
4
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}";
5
+ var css_248z = ":host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n z-index: 1;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);\n inset: 0;\n outline: 2px solid var(--focus-stroke-color, var(--vvd-color-on-canvas));\n outline-offset: -2px;\n}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  let _ = t => t,
package/icon/index.js CHANGED
@@ -3,7 +3,9 @@ import { s as styleInject } from '../shared/style-inject.es.js';
3
3
  import { I as Icon } from '../shared/icon.js';
4
4
  import { w as when } from '../shared/when.js';
5
5
  import { c as classNames } from '../shared/class-names.js';
6
- import '../shared/object-set-prototype-of.js';
6
+ import '../shared/export.js';
7
+ import '../shared/iterators.js';
8
+ import '../shared/to-string.js';
7
9
  import '../shared/_has.js';
8
10
 
9
11
  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-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n\n.control[class*=connotation] {\n color: var(--_connotation-color-basis);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-small):not(.size-medium):not(.size-large) {\n block-size: 1em;\n inline-size: 1em;\n}\n\n.control.size-small {\n block-size: 16px;\n inline-size: 16px;\n}\n\n.control.size-medium {\n block-size: 24px;\n inline-size: 24px;\n}\n\n.control.size-large {\n block-size: 32px;\n inline-size: 32px;\n}";
package/index.js CHANGED
@@ -7,6 +7,7 @@ export { vividBreadcrumb } from './breadcrumb/index.js';
7
7
  export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
8
8
  export { vividButton } from './button/index.js';
9
9
  export { vividCalendar } from './calendar/index.js';
10
+ export { vividCalendarEvent } from './calendar-event/index.js';
10
11
  export { vividCard } from './card/index.js';
11
12
  export { vividElevation } from './elevation/index.js';
12
13
  export { vividFab } from './fab/index.js';
@@ -24,24 +25,29 @@ export { vividTooltip } from './tooltip/index.js';
24
25
  export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
25
26
  import './shared/style-inject.es.js';
26
27
  import './shared/class-names.js';
28
+ import './focus/index.js';
29
+ import './shared/focus.js';
27
30
  import './shared/web.dom-collections.iterator.js';
28
- import './shared/object-set-prototype-of.js';
31
+ import './shared/export.js';
32
+ import './shared/object-keys.js';
33
+ import './shared/iterators.js';
29
34
  import './shared/affix.js';
30
35
  import './shared/icon.js';
36
+ import './shared/to-string.js';
31
37
  import './shared/_has.js';
32
38
  import './shared/apply-mixins.js';
39
+ import './shared/focus2.js';
33
40
  import './shared/when.js';
34
41
  import './shared/enums.js';
35
- import './text-anchor/index.js';
36
- import './shared/text-anchor.js';
37
- import './shared/anchor.js';
38
- import './shared/aria-global.js';
39
- import './shared/text-anchor.template.js';
40
- import './focus/index.js';
41
- import './shared/focus.js';
42
42
  import './shared/button.js';
43
- import './shared/focus2.js';
43
+ import './shared/form-associated.js';
44
+ import './shared/aria-global.js';
45
+ import './shared/ref.js';
44
46
  import './shared/breadcrumb-item.js';
47
+ import './shared/anchor.js';
45
48
  import './shared/slotted.js';
49
+ import './shared/text-anchor.template.js';
50
+ import './shared/calendar-event.js';
46
51
  import './shared/es.object.assign.js';
47
52
  import './shared/base-progress.js';
53
+ import './shared/text-anchor.js';
@@ -1,3 +1,5 @@
1
+ import '../icon';
2
+ import '../focus';
1
3
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
4
  import '../icon';
3
5
  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>>;
@@ -5,5 +5,6 @@ declare type ActionGroupShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
5
5
  export declare class ActionGroup extends FoundationElement {
6
6
  shape?: ActionGroupShape;
7
7
  appearance?: ActionGroupAppearance;
8
+ tight: boolean;
8
9
  }
9
10
  export {};
@@ -1,6 +1,4 @@
1
1
  import type { ViewTemplate } from '@microsoft/fast-element';
2
2
  import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
- import '../button';
4
- import '../text-anchor';
5
3
  import type { Banner } from './banner';
6
4
  export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
@@ -1,2 +1,3 @@
1
+ import '../button';
1
2
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
3
  export declare const vividBanner: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -1,3 +1,4 @@
1
1
  import '../icon';
2
+ import '../focus';
2
3
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
3
4
  export declare const 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>>;
@@ -1,11 +1,13 @@
1
1
  import { FoundationElement } from '@microsoft/fast-foundation';
2
2
  export declare class Calendar extends FoundationElement {
3
+ #private;
3
4
  datetime?: Date | string;
4
5
  startDay?: 'sunday' | 'monday';
5
6
  locales?: string | string[] | undefined;
6
7
  hour12: boolean;
7
8
  getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
9
+ private getCalendarEventContainingCell;
8
10
  private arrowKeysInteractions;
9
- private moveTo;
11
+ private activateElement;
10
12
  onKeydown({ key }: KeyboardEvent): boolean;
11
13
  }
@@ -1,3 +1,2 @@
1
- import '../elevation';
2
1
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
3
2
  export declare const vividCalendar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,14 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import type { Appearance, Connotation } from '../enums';
3
+ declare type CalendarEventConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info | Connotation.Announcement>;
4
+ declare type CalendarEventAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
5
+ export declare class CalendarEvent extends FoundationElement {
6
+ heading?: string;
7
+ description?: string;
8
+ connotation?: CalendarEventConnotation;
9
+ appearance?: CalendarEventAppearance;
10
+ overlapCount?: number;
11
+ start?: number;
12
+ duration?: number;
13
+ }
14
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import type { CalendarEvent } from './calendar-event';
4
+ export declare const CalendarEventTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<CalendarEvent>;
@@ -0,0 +1,2 @@
1
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
+ export declare const vividCalendarEvent: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -1,5 +1,4 @@
1
1
  import '../elevation';
2
2
  import '../icon';
3
- import '../button';
4
3
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
5
4
  export declare const vividCard: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -7,6 +7,7 @@ export * from './breadcrumb';
7
7
  export * from './breadcrumb-item';
8
8
  export * from './button';
9
9
  export * from './calendar';
10
+ export * from './calendar-event';
10
11
  export * from './card';
11
12
  export * from './elevation';
12
13
  export * from './fab';
@@ -1,8 +1,15 @@
1
+ import 'blocking-elements';
2
+ import 'wicg-inert';
3
+ import 'babel-polyfill';
1
4
  import { FoundationElement } from '@microsoft/fast-foundation';
2
5
  export declare class SideDrawer extends FoundationElement {
6
+ #private;
7
+ asideEl: HTMLElement;
8
+ scrimEl: any;
3
9
  alternate: boolean;
4
10
  modal: boolean;
5
11
  open: boolean;
6
12
  position?: 'start' | 'end';
7
- hasTopBar: HTMLElement[] | undefined;
13
+ headerSlottedContent?: HTMLElement[];
14
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
8
15
  }
@@ -1,3 +1,4 @@
1
1
  import '../icon';
2
+ import '../focus';
2
3
  import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
3
4
  export declare const vividSidenavItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -12,6 +12,7 @@ export declare class TextField extends FoundationTextfield {
12
12
  appearance?: TextFieldAppearance;
13
13
  shape?: TextFieldShape;
14
14
  userValid: boolean;
15
+ autoComplete?: string;
15
16
  get errorValidationMessage(): string;
16
17
  validate(): void;
17
18
  }
package/note/index.js CHANGED
@@ -9,8 +9,11 @@ import { C as Connotation } from '../shared/enums.js';
9
9
  import { w as when } from '../shared/when.js';
10
10
  import { c as classNames } from '../shared/class-names.js';
11
11
  import '../shared/icon.js';
12
- import '../shared/object-set-prototype-of.js';
12
+ import '../shared/export.js';
13
+ import '../shared/iterators.js';
14
+ import '../shared/to-string.js';
13
15
  import '../shared/_has.js';
16
+ import '../shared/object-keys.js';
14
17
 
15
18
  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-color-primary);\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-color-primary: var(--vvd-color-success);\n}\n.base.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning);\n}\n.base:not(.connotation-success, .connotation-info, .connotation-alert, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-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 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
19
  styleInject(css_248z);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "3.0.0-next.20",
3
+ "version": "3.0.0-next.23",
4
4
  "type": "module",
5
5
  "module": "./index.esm.js",
6
6
  "main": "./index.js",
@@ -14,6 +14,7 @@
14
14
  "./breadcrumb-item": "./breadcrumb-item",
15
15
  "./button": "./button",
16
16
  "./calendar": "./calendar",
17
+ "./calendar-event": "./calendar-event",
17
18
  "./card": "./card",
18
19
  "./elevation": "./elevation",
19
20
  "./fab": "./fab",
@@ -35,7 +36,10 @@
35
36
  "@microsoft/fast-foundation": "^2.46.9",
36
37
  "@microsoft/fast-web-utilities": "^5.4.1",
37
38
  "ramda": "^0.27.2",
38
- "@floating-ui/dom": "^0.5.2"
39
+ "@floating-ui/dom": "^0.5.2",
40
+ "blocking-elements": "^0.1.1",
41
+ "wicg-inert": "^3.1.2",
42
+ "babel-polyfill": "^6.26.0"
39
43
  },
40
44
  "peerDependencies": {}
41
45
  }
package/popup/index.js CHANGED
@@ -1,22 +1,27 @@
1
1
  import '../elevation/index.js';
2
2
  import '../button/index.js';
3
3
  import { F as FoundationElement, c as __classPrivateFieldGet, g as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
4
- import { t as toString$3, s as speciesConstructor$1, f as functionApply } from '../shared/icon.js';
5
- import { a as objectCreate } from '../shared/web.dom-collections.iterator.js';
4
+ import { s as speciesConstructor$1, f as functionApply } from '../shared/icon.js';
5
+ import { o as objectCreate } from '../shared/web.dom-collections.iterator.js';
6
6
  import '../shared/es.object.assign.js';
7
- import { b as anObject$3, g as fails$5, z as global$3, u as functionCall, D as functionUncurryThis, T as shared$1, y as internalState, _ as _export, w as wellKnownSymbol$2, l as defineBuiltIn$1, r as createNonEnumerableProperty$1, M as isObject$1, A as classofRaw, P as requireObjectCoercible$2, U as toIntegerOrInfinity$1, V as toPropertyKey$1, a as objectDefineProperty, m as createPropertyDescriptor$1, O as lengthOfArrayLike$1, W as toAbsoluteIndex$1, j as isCallable$1, X as toLength$1, N as getMethod$1 } from '../shared/object-set-prototype-of.js';
7
+ import { j as anObject$3, e as fails$5, g as global$3, v as functionCall, f as functionUncurryThis, Q as shared$1, y as internalState, _ as _export, w as wellKnownSymbol$2, u as defineBuiltIn$1, K as createNonEnumerableProperty$1, x as isObject$1, c as classofRaw, B as requireObjectCoercible$2, R as toIntegerOrInfinity$1, S as toPropertyKey$1, o as objectDefineProperty, J as createPropertyDescriptor$1, A as lengthOfArrayLike$1, T as toAbsoluteIndex$1, i as isCallable$1, U as toLength$1, z as getMethod$1 } from '../shared/export.js';
8
+ import { t as toString$3 } from '../shared/to-string.js';
8
9
  import { s as styleInject } from '../shared/style-inject.es.js';
9
10
  import { w as when } from '../shared/when.js';
10
- import { r as ref } from '../shared/aria-global.js';
11
+ import { r as ref } from '../shared/ref.js';
11
12
  import { c as classNames } from '../shared/class-names.js';
12
13
  import '../icon/index.js';
14
+ import '../shared/iterators.js';
13
15
  import '../shared/_has.js';
14
16
  import '../focus/index.js';
15
17
  import '../shared/focus.js';
16
18
  import '../shared/affix.js';
17
19
  import '../shared/button.js';
18
20
  import '../shared/apply-mixins.js';
21
+ import '../shared/form-associated.js';
22
+ import '../shared/aria-global.js';
19
23
  import '../shared/focus2.js';
24
+ import '../shared/object-keys.js';
20
25
 
21
26
  var anObject$2 = anObject$3;
22
27
 
@@ -2066,7 +2071,7 @@ __decorate([attr({
2066
2071
 
2067
2072
  __decorate([attr, __metadata("design:type", String)], Popup.prototype, "anchor", void 0);
2068
2073
 
2069
- var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas); /* neutral-100 */\n}\n.dismissible .popup-content {\n align-content: start;\n grid-template-columns: 1fr auto;\n}\n\n.arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background-color: var(--vvd-color-surface-4dp);\n transform: rotate(45deg);\n}\n\n.dismissible-button {\n align-self: flex-start;\n margin-block-start: 0.25rem;\n margin-inline-end: 0.25rem;\n}";
2074
+ var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas); /* neutral-100 */\n}\n.dismissible .popup-content {\n align-content: start;\n grid-template-columns: 1fr auto;\n}\n\n.arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background-color: var(--vvd-color-surface-4dp);\n transform: rotate(45deg);\n}\n\n.dismissible-button {\n align-self: flex-start;\n margin-block-start: 4px;\n margin-inline-end: 4px;\n}";
2070
2075
  styleInject(css_248z);
2071
2076
 
2072
2077
  let _ = t => t,
package/progress/index.js CHANGED
@@ -1,12 +1,14 @@
1
1
  import { _ 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 '../shared/web.dom-collections.iterator.js';
4
- import { A as classofRaw, _ as _export, D as functionUncurryThis } from '../shared/object-set-prototype-of.js';
4
+ import { c as classofRaw, _ as _export, f as functionUncurryThis } from '../shared/export.js';
5
5
  import { B as BaseProgress } from '../shared/base-progress.js';
6
6
  import { w as when } from '../shared/when.js';
7
7
  import { c as classNames } from '../shared/class-names.js';
8
+ import '../shared/object-keys.js';
9
+ import '../shared/iterators.js';
8
10
 
9
- var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-info-30), var(--vvd-color-cta-70));\n}\n\n.indeterminate {\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n}\n\n.progress {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 100%;\n}\n.progress .indeterminate {\n background-color: var(--_connotation-color-primary);\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: 3px;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n\n.indeterminate-indicator-1, .indeterminate-indicator-2 {\n position: absolute;\n animation: indeterminate-1 2s infinite;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 30%;\n opacity: 0;\n}\n\n.indeterminate-indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.connotation-pacific .indeterminate-indicator-1, .connotation-pacific .indeterminate-indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n\n.reverse .indeterminate-indicator-1, .reverse .indeterminate-indicator-2 {\n animation-direction: reverse;\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n\n.base.shape-sharp .determinate, .base.shape-sharp .indeterminate {\n border-radius: 0;\n}\n\n.base.paused .indeterminate-indicator-1,\n.base.paused .indeterminate-indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n\n.base.paused .determinate {\n background-color: var(--vvd-color-neutral-40);\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
11
+ var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-info-30), var(--vvd-color-cta-70));\n}\n\n.progress {\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 100%;\n /* Shape */\n}\n.base:not(.shape-sharp) .progress {\n border-radius: 3px;\n}\n\n.indeterminate {\n display: flex;\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n inline-size: 100%;\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n.paused .determinate {\n background-color: var(--vvd-color-neutral-40);\n}\n\n.indicator-1 {\n animation: indeterminate-1 2s infinite;\n inline-size: 30%;\n}\n\n.indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.indicator-1,\n.indicator-2 {\n position: absolute;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n opacity: 0;\n}\n.connotation-pacific .indicator-1,\n.connotation-pacific .indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n.paused .indicator-1,\n.paused .indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n.reverse .indicator-1,\n.reverse .indicator-2 {\n animation-direction: reverse;\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
10
12
  styleInject(css_248z);
11
13
 
12
14
  var classof = classofRaw;
@@ -58,35 +60,41 @@ let _2 = t => t,
58
60
  _t2,
59
61
  _t3;
60
62
 
61
- const getClasses = _ => classNames('base', [`connotation-${_.connotation}`, !!_.connotation], [`shape-${_.shape}`, !!_.shape], ['reverse', _.reverse]);
63
+ const getClasses = ({
64
+ connotation,
65
+ shape,
66
+ reverse,
67
+ paused
68
+ }) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ['reverse', Boolean(reverse)], ['paused', Boolean(paused)]);
62
69
 
63
- const ProgressTemplate = _ => {
70
+ function determinate() {
64
71
  return html(_t || (_t = _2`
72
+ <span class="determinate" style="width: ${0}%"></span>`), x => x.percentComplete);
73
+ }
74
+
75
+ function indeterminate() {
76
+ return html(_t2 || (_t2 = _2`
77
+ <span class="indeterminate" name="indeterminate">
78
+ <span class="indicator-1"></span>
79
+ <span class="indicator-2"></span>
80
+ </span>`));
81
+ }
82
+
83
+ const ProgressTemplate = _ => {
84
+ return html(_t3 || (_t3 = _2`
65
85
  <div
66
86
  role="progressbar"
67
87
  aria-valuenow="${0}"
68
88
  aria-valuemin="${0}"
69
89
  aria-valuemax="${0}"
70
- class="${0} ${0}"
90
+ class="${0}"
71
91
  >
72
- ${0}
73
- ${0}
74
- </div>
75
- `), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
76
- <div class="progress">
77
- <div
78
- class="determinate"
79
- style="width: ${0}%"
80
- ></div>
81
- </div>
82
- `), x => x.percentComplete)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
83
- <div class="progress indeterminate">
84
- <span class="indeterminate" name="indeterminate">
85
- <span class="indeterminate-indicator-1"></span>
86
- <span class="indeterminate-indicator-2"></span>
87
- </span>
88
- </div>
89
- `))));
92
+ <div class="progress">
93
+ ${0}
94
+ ${0}
95
+ </div>
96
+ </div>
97
+ `), x => x.value, x => x.min, x => x.max, getClasses, when(x => typeof x.value === 'number', determinate()), when(x => typeof x.value !== 'number', indeterminate()));
90
98
  };
91
99
 
92
100
  const vividProgress = Progress.compose({
@@ -1,42 +1,5 @@
1
- import { A as AttachedBehaviorHTMLDirective, h as html, _ as __decorate, a as attr } from './index.js';
2
-
3
- /**
4
- * The runtime behavior for template references.
5
- * @public
6
- */
7
- class RefBehavior {
8
- /**
9
- * Creates an instance of RefBehavior.
10
- * @param target - The element to reference.
11
- * @param propertyName - The name of the property to assign the reference to.
12
- */
13
- constructor(target, propertyName) {
14
- this.target = target;
15
- this.propertyName = propertyName;
16
- }
17
- /**
18
- * Bind this behavior to the source.
19
- * @param source - The source to bind to.
20
- * @param context - The execution context that the binding is operating within.
21
- */
22
- bind(source) {
23
- source[this.propertyName] = this.target;
24
- }
25
- /**
26
- * Unbinds this behavior from the source.
27
- * @param source - The source to unbind from.
28
- */
29
- /* eslint-disable-next-line @typescript-eslint/no-empty-function */
30
- unbind() { }
31
- }
32
- /**
33
- * A directive that observes the updates a property with a reference to the element.
34
- * @param propertyName - The name of the property to assign the reference to.
35
- * @public
36
- */
37
- function ref(propertyName) {
38
- return new AttachedBehaviorHTMLDirective("fast-ref", RefBehavior, propertyName);
39
- }
1
+ import { h as html, _ as __decorate, a as attr } from './index.js';
2
+ import { r as ref } from './ref.js';
40
3
 
41
4
  /**
42
5
  * A mixin class implementing start and end elements.
@@ -153,4 +116,4 @@ __decorate([
153
116
  attr({ attribute: "aria-roledescription" })
154
117
  ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
155
118
 
156
- export { ARIAGlobalStatesAndProperties as A, StartEnd as S, ref as r };
119
+ export { ARIAGlobalStatesAndProperties as A, StartEnd as S };
package/shared/button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
2
2
  import { a as applyMixins } from './apply-mixins.js';
3
- import { F as FormAssociated } from './focus2.js';
3
+ import { F as FormAssociated } from './form-associated.js';
4
4
  import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from './aria-global.js';
5
5
 
6
6
  class _Button extends FoundationElement {
@@ -0,0 +1,26 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, n as nullableNumberConverter } from './index.js';
2
+
3
+ class CalendarEvent extends FoundationElement {}
4
+
5
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "heading", void 0);
6
+
7
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "description", void 0);
8
+
9
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "connotation", void 0);
10
+
11
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "appearance", void 0);
12
+
13
+ __decorate([attr({
14
+ converter: nullableNumberConverter,
15
+ attribute: 'overlap-count'
16
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "overlapCount", void 0);
17
+
18
+ __decorate([attr({
19
+ converter: nullableNumberConverter
20
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "start", void 0);
21
+
22
+ __decorate([attr({
23
+ converter: nullableNumberConverter
24
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "duration", void 0);
25
+
26
+ export { CalendarEvent as C };
@@ -1,5 +1,5 @@
1
- import { d as descriptors, D as functionUncurryThis, u as functionCall, g as fails$1, k as toObject$1, Q as indexedObject, R as objectGetOwnPropertySymbols, S as objectPropertyIsEnumerable, _ as _export } from './object-set-prototype-of.js';
2
- import { o as objectKeys$1 } from './web.dom-collections.iterator.js';
1
+ import { d as descriptors, f as functionUncurryThis, v as functionCall, e as fails$1, I as toObject$1, M as indexedObject, N as objectGetOwnPropertySymbols, O as objectPropertyIsEnumerable, _ as _export } from './export.js';
2
+ import { o as objectKeys$1 } from './object-keys.js';
3
3
 
4
4
  var DESCRIPTORS = descriptors;
5
5
  var uncurryThis = functionUncurryThis;