@vonage/vivid 2.30.0 → 3.0.0-next.12

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 (114) hide show
  1. package/README.md +7 -0
  2. package/accordion/index.js +61 -0
  3. package/accordion-item/index.js +120 -0
  4. package/badge/index.js +57 -0
  5. package/banner/index.js +214 -0
  6. package/breadcrumb/index.js +100 -0
  7. package/breadcrumb-item/index.js +53 -0
  8. package/button/index.js +754 -0
  9. package/calendar/index.js +1522 -0
  10. package/elevation/index.js +31 -0
  11. package/focus/index.js +3 -0
  12. package/icon/index.js +38 -0
  13. package/index.d.ts +2 -0
  14. package/index.js +33 -63
  15. package/layout/index.js +53 -0
  16. package/lib/accordion/accordion.d.ts +9 -0
  17. package/lib/accordion/accordion.template.d.ts +4 -0
  18. package/lib/accordion/index.d.ts +2 -0
  19. package/lib/accordion-item/accordion-item.d.ts +13 -0
  20. package/lib/accordion-item/accordion-item.template.d.ts +4 -0
  21. package/lib/accordion-item/index.d.ts +3 -0
  22. package/lib/badge/badge.d.ts +17 -0
  23. package/lib/badge/badge.template.d.ts +4 -0
  24. package/lib/badge/index.d.ts +3 -0
  25. package/lib/banner/banner.d.ts +20 -0
  26. package/lib/banner/banner.template.d.ts +6 -0
  27. package/lib/banner/index.d.ts +2 -0
  28. package/lib/breadcrumb/breadcrumb.d.ts +3 -0
  29. package/lib/breadcrumb/index.d.ts +2 -0
  30. package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
  31. package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
  32. package/lib/breadcrumb-item/index.d.ts +3 -0
  33. package/lib/button/button.d.ts +17 -0
  34. package/lib/button/button.template.d.ts +4 -0
  35. package/lib/button/index.d.ts +21 -0
  36. package/lib/calendar/calendar.d.ts +11 -0
  37. package/lib/calendar/calendar.template.d.ts +4 -0
  38. package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
  39. package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
  40. package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
  41. package/lib/calendar/index.d.ts +3 -0
  42. package/lib/components.d.ts +16 -0
  43. package/lib/elevation/elevation.d.ts +4 -0
  44. package/lib/elevation/elevation.template.d.ts +4 -0
  45. package/lib/elevation/index.d.ts +2 -0
  46. package/lib/enums.d.ts +46 -0
  47. package/lib/focus/focus.d.ts +3 -0
  48. package/lib/focus/focus.template.d.ts +4 -0
  49. package/lib/focus/index.d.ts +2 -0
  50. package/lib/icon/icon.d.ts +11 -0
  51. package/lib/icon/icon.placeholder.d.ts +1 -0
  52. package/lib/icon/icon.template.d.ts +4 -0
  53. package/lib/icon/index.d.ts +2 -0
  54. package/lib/layout/index.d.ts +2 -0
  55. package/lib/layout/layout.d.ts +16 -0
  56. package/lib/layout/layout.template.d.ts +4 -0
  57. package/lib/popup/index.d.ts +4 -0
  58. package/lib/popup/popup.d.ts +17 -0
  59. package/lib/popup/popup.template.d.ts +4 -0
  60. package/lib/progress/index.d.ts +2 -0
  61. package/lib/progress/progress.d.ts +9 -0
  62. package/lib/progress/progress.template.d.ts +5 -0
  63. package/lib/progress-ring/index.d.ts +2 -0
  64. package/lib/progress-ring/progress-ring.d.ts +6 -0
  65. package/lib/progress-ring/progress-ring.template.d.ts +4 -0
  66. package/lib/side-drawer/index.d.ts +2 -0
  67. package/lib/side-drawer/side-drawer.d.ts +8 -0
  68. package/lib/side-drawer/side-drawer.template.d.ts +4 -0
  69. package/lib/sidenav-item/index.d.ts +3 -0
  70. package/lib/sidenav-item/sidenav-item.d.ts +6 -0
  71. package/lib/sidenav-item/sidenav-item.template.d.ts +4 -0
  72. package/lib/text/index.d.ts +2 -0
  73. package/lib/text/text.d.ts +10 -0
  74. package/lib/text/text.template.d.ts +4 -0
  75. package/lib/text-anchor/index.d.ts +2 -0
  76. package/lib/text-anchor/text-anchor.d.ts +7 -0
  77. package/lib/text-anchor/text-anchor.template.d.ts +4 -0
  78. package/lib/tooltip/index.d.ts +3 -0
  79. package/lib/tooltip/tooltip.d.ts +8 -0
  80. package/lib/tooltip/tooltip.template.d.ts +4 -0
  81. package/package.json +13 -317
  82. package/popup/index.js +2066 -0
  83. package/progress/index.js +99 -0
  84. package/progress-ring/index.js +76 -0
  85. package/shared/_has.js +58 -0
  86. package/shared/affix.js +29 -0
  87. package/shared/anchor.js +78 -0
  88. package/shared/apply-mixins.js +22 -0
  89. package/shared/aria-global.js +156 -0
  90. package/shared/base-progress.js +65 -0
  91. package/shared/breadcrumb-item.js +25 -0
  92. package/shared/class-names.js +15 -0
  93. package/shared/design-system/index.d.ts +3 -0
  94. package/shared/es.object.assign.js +69 -0
  95. package/shared/icon.js +1388 -0
  96. package/shared/index.js +4998 -0
  97. package/shared/index2.js +21 -0
  98. package/shared/object-set-prototype-of.js +1009 -0
  99. package/shared/patterns/affix.d.ts +9 -0
  100. package/shared/patterns/index.d.ts +1 -0
  101. package/shared/slotted.js +119 -0
  102. package/shared/style-inject.es.js +28 -0
  103. package/shared/text-anchor.js +12 -0
  104. package/shared/text-anchor.template.js +54 -0
  105. package/shared/web.dom-collections.iterator.js +473 -0
  106. package/shared/when.js +15 -0
  107. package/side-drawer/index.js +82 -0
  108. package/sidenav-item/index.js +39 -0
  109. package/styles/fonts/spezia.css +23 -0
  110. package/styles/themes/dark.css +205 -0
  111. package/styles/themes/light.css +205 -0
  112. package/text/index.js +46 -0
  113. package/text-anchor/index.js +20 -0
  114. package/tooltip/index.js +63 -0
@@ -0,0 +1,31 @@
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 { c as classNames } from '../shared/class-names.js';
4
+
5
+ class Elevation extends FoundationElement {}
6
+
7
+ __decorate([attr, __metadata("design:type", Number)], Elevation.prototype, "dp", void 0);
8
+
9
+ var css_248z = ".control.dp-0 ::slotted(*) {\n background-color: var(--vvd-color-surface-0dp);\n filter: var(--vvd-shadow-surface-0dp);\n}\n.control.dp-2 ::slotted(*) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}\n.control.dp-4 ::slotted(*) {\n background-color: var(--vvd-color-surface-4dp);\n filter: var(--vvd-shadow-surface-4dp);\n}\n.control.dp-8 ::slotted(*) {\n background-color: var(--vvd-color-surface-8dp);\n filter: var(--vvd-shadow-surface-8dp);\n}\n.control.dp-12 ::slotted(*) {\n background-color: var(--vvd-color-surface-12dp);\n filter: var(--vvd-shadow-surface-12dp);\n}\n.control.dp-16 ::slotted(*) {\n background-color: var(--vvd-color-surface-16dp);\n filter: var(--vvd-shadow-surface-16dp);\n}\n.control.dp-24 ::slotted(*) {\n background-color: var(--vvd-color-surface-24dp);\n filter: var(--vvd-shadow-surface-24dp);\n}\n.control:not(.dp-0, .dp-4, .dp-8, .dp-12, .dp-16, .dp-24) ::slotted(*) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}";
10
+ styleInject(css_248z);
11
+
12
+ let _ = t => t,
13
+ _t;
14
+
15
+ const getClasses = ({
16
+ dp
17
+ }) => classNames('control', [`dp-${dp}`, Boolean(dp)]);
18
+
19
+ const elevationTemplate = () => html(_t || (_t = _`
20
+ <div class="${0}" part="base">
21
+ <slot></slot>
22
+ </div>`), getClasses);
23
+
24
+ const VIVIDElevation = Elevation.compose({
25
+ baseName: 'elevation',
26
+ template: elevationTemplate,
27
+ styles: css_248z
28
+ });
29
+ designSystem.register(VIVIDElevation());
30
+
31
+ export { VIVIDElevation };
package/focus/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import '../shared/index.js';
2
+ export { V as VIVIDFocus } from '../shared/index2.js';
3
+ import '../shared/style-inject.es.js';
package/icon/index.js ADDED
@@ -0,0 +1,38 @@
1
+ import { h as html, d as designSystem } from '../shared/index.js';
2
+ import { s as styleInject } from '../shared/style-inject.es.js';
3
+ import { I as Icon } from '../shared/icon.js';
4
+ import { w as when } from '../shared/when.js';
5
+ import { c as classNames } from '../shared/class-names.js';
6
+ import '../shared/object-set-prototype-of.js';
7
+ import '../shared/_has.js';
8
+
9
+ var css_248z = ":host {\n display: inline-block;\n vertical-align: sub;\n}\n\n.control {\n display: flex;\n margin: unset;\n color: currentColor;\n contain: strict;\n}\n.control.connotation-primary {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n}\n\n.control.connotation-announcement {\n --connotation: var(--vvd-color-announcement);\n --on-connotation: var(--vvd-color-on-announcement);\n}\n\n.control.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n}\n\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n\n.control.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n\n.control.connotation-info {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n}\n\n.control[class*=connotation] {\n color: var(--connotation);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-base-small):not(.size-base):not(.size-base-large) {\n block-size: 1em;\n inline-size: 1em;\n}\n\n.control.size-base-small {\n block-size: 16px;\n inline-size: 16px;\n}\n\n.control.size-base {\n block-size: 24px;\n inline-size: 24px;\n}\n\n.control.size-base-large {\n block-size: 32px;\n inline-size: 32px;\n}";
10
+ styleInject(css_248z);
11
+
12
+ let _ = t => t,
13
+ _t,
14
+ _t2;
15
+
16
+ const getClasses = ({
17
+ connotation,
18
+ size
19
+ }) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`size-${size}`, Boolean(size)]);
20
+
21
+ const iconTemplate = () => html(_t || (_t = _`
22
+ <figure class="${0}">
23
+ ${0}
24
+ </figure>
25
+ `), getClasses, when(x => isValidString(x.svg), x => html(_t2 || (_t2 = _`${0}`), x.svg)));
26
+
27
+ function isValidString(value) {
28
+ return typeof value === 'string' && value.length > 0;
29
+ }
30
+
31
+ const vividIcon = Icon.compose({
32
+ baseName: 'icon',
33
+ template: iconTemplate,
34
+ styles: css_248z
35
+ });
36
+ designSystem.register(vividIcon());
37
+
38
+ export { vividIcon };
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './lib/components';
2
+ export * from './shared/design-system';
package/index.js CHANGED
@@ -1,63 +1,33 @@
1
- export { VWCIconButtonToggle as VWCIconButtonToggle } from "@vonage/vwc-icon-button-toggle";
2
- export { VWCNotchedOutline as VWCNotchedOutline } from "@vonage/vwc-notched-outline";
3
- export { VWCSchemeSelect as VWCSchemeSelect } from "@vonage/vwc-scheme-select";
4
- export { VWCTopAppBarFixed as VWCTopAppBarFixed } from "@vonage/vwc-top-app-bar-fixed";
5
- export { VWCAudio as VWCAudio } from "@vonage/vwc-audio";
6
- export { VWCButtonToggleGroup as VWCButtonToggleGroup } from "@vonage/vwc-button-toggle-group";
7
- export { VWCCard as VWCCard } from "@vonage/vwc-card";
8
- export { VWCCheckbox as VWCCheckbox } from "@vonage/vwc-checkbox";
9
- export { VWCCircularProgress as VWCCircularProgress } from "@vonage/vwc-circular-progress";
10
- export { VWCDatepicker as VWCDatepicker } from "@vonage/vwc-datepicker";
11
- export { VWCDialog as VWCDialog } from "@vonage/vwc-dialog";
12
- export { VWCDropdown as VWCDropdown } from "@vonage/vwc-dropdown";
13
- export { VWCElevation as VWCElevation } from "@vonage/vwc-elevation";
14
- export { VWCFab as VWCFab } from "@vonage/vwc-fab";
15
- export { VWCFilePicker as VWCFilePicker } from "@vonage/vwc-file-picker";
16
- export { VWCFormfield as VWCFormfield } from "@vonage/vwc-formfield";
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 { VwcTooltip as VWCTooltip } from "@vonage/vwc-tooltip";
44
- export { VWCBanner as VWCBanner } from "@vonage/vwc-banner";
45
- export { VWCButton as VWCButton } from "@vonage/vwc-button";
46
- export { VWCExpansionPanel as VWCExpansionPanel } from "@vonage/vwc-expansion-panel";
47
- export { VwcMediaController as VWCMediaController } from "@vonage/vwc-media-controller";
48
- export { VWCScrubBar as VWCScrubBar } from "@vonage/vwc-media-controller/vwc-scrub-bar";
49
- export { VWCCarouselItem as VWCCarouselItem } from "@vonage/vwc-carousel/vwc-carousel-item";
50
- export { VWCCarousel as VWCCarousel } from "@vonage/vwc-carousel";
51
- export { VWCTabBar as VWCTabBar } from "@vonage/vwc-tab-bar";
52
- export { VWCTab as VWCTab } from "@vonage/vwc-tab-bar/vwc-tab";
53
- export { GRID_COMPONENT as VWCDataGrid } from "@vonage/vwc-data-grid";
54
- export { VWCTextField as VWCTextfield } from "@vonage/vwc-textfield";
55
- export { VWCCalendarEvent as VWCCalendarEvent } from "@vonage/vwc-calendar/vwc-calendar-event";
56
- export { VWCCalendar as VWCCalendar } from "@vonage/vwc-calendar";
57
- export { VWCCheckListItem as VWCCheckListItem } from "@vonage/vwc-list/vwc-check-list-item";
58
- export { VWCListExpansionPanel as VWCListExpansionPanel } from "@vonage/vwc-list/vwc-list-expansion-panel";
59
- export { VWCListItem as VWCListItem } from "@vonage/vwc-list/vwc-list-item";
60
- export { VWCList as VWCList } from "@vonage/vwc-list";
61
- export { VWCRadioListItem as VWCRadioListItem } from "@vonage/vwc-list/vwc-radio-list-item";
62
- export { default as VVDCore } from "@vonage/vvd-core";
63
- 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/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';
9
+ export { vividBreadcrumb } from './breadcrumb/index.js';
10
+ export { VIVIDSideDrawer } from './side-drawer/index.js';
11
+ export { vividCalendar } from './calendar/index.js';
12
+ export { VIVIDPopup } from './popup/index.js';
13
+ export { vividTooltip } from './tooltip/index.js';
14
+ export { vividBanner } from './banner/index.js';
15
+ export { vividAccordionItem } from './accordion-item/index.js';
16
+ export { vividAccordion } from './accordion/index.js';
17
+ export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
18
+ import './shared/text-anchor.js';
19
+ import './shared/affix.js';
20
+ import './shared/web.dom-collections.iterator.js';
21
+ import './shared/object-set-prototype-of.js';
22
+ import './shared/icon.js';
23
+ import './shared/_has.js';
24
+ import './shared/anchor.js';
25
+ import './shared/apply-mixins.js';
26
+ import './shared/aria-global.js';
27
+ import './shared/text-anchor.template.js';
28
+ import './shared/class-names.js';
29
+ import './shared/style-inject.es.js';
30
+ import './shared/when.js';
31
+ import './shared/breadcrumb-item.js';
32
+ import './shared/slotted.js';
33
+ import './shared/es.object.assign.js';
@@ -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/index.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,9 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare class Accordion extends FoundationElement {
3
+ private accordionItems;
4
+ multi: boolean;
5
+ constructor();
6
+ connectedCallback(): void;
7
+ private handleOpened;
8
+ closeAll(): void;
9
+ }
@@ -0,0 +1,4 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import type { Accordion } from './accordion';
4
+ export declare const AccordionTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Accordion>;
@@ -0,0 +1,2 @@
1
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
+ export declare const vividAccordion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,13 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import { AffixIconWithTrailing } from '../../shared/patterns/affix';
3
+ export declare class AccordionItem extends FoundationElement {
4
+ heading?: string;
5
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
6
+ noIndicator: boolean;
7
+ meta?: string;
8
+ open: boolean;
9
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
10
+ private emitEvent;
11
+ }
12
+ export interface AccordionItem extends AffixIconWithTrailing {
13
+ }
@@ -0,0 +1,4 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import type { AccordionItem } from './accordion-item';
4
+ export declare const AccordionItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<AccordionItem>;
@@ -0,0 +1,3 @@
1
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
+ import '../icon';
3
+ export declare const vividAccordionItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,17 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import { AffixIconWithTrailing } 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.Duotone | Appearance.Subtle>;
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 AffixIconWithTrailing {
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,20 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import { Connotation } from '../enums';
3
+ import { AffixIcon } from '../../shared/patterns/affix';
4
+ export declare type BannerConnotation = Connotation.Info | Connotation.Announcement | Connotation.Success | Connotation.Warning | Connotation.Alert;
5
+ export declare class Banner extends FoundationElement {
6
+ #private;
7
+ actionHref: string | undefined;
8
+ actionText: string | undefined;
9
+ removable: boolean;
10
+ ariaLive: any;
11
+ role: string | undefined;
12
+ text: string | undefined;
13
+ connotation: BannerConnotation | undefined;
14
+ get conditionedIcon(): string;
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ remove(): void;
18
+ }
19
+ export interface Banner extends AffixIcon {
20
+ }
@@ -0,0 +1,6 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import '../button';
4
+ import '../text-anchor';
5
+ import type { Banner } from './banner';
6
+ export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
@@ -0,0 +1,2 @@
1
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
+ export declare const vividBanner: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,3 @@
1
+ import { Breadcrumb as FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare class Breadcrumb extends FoundationElement {
3
+ }
@@ -0,0 +1,2 @@
1
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
2
+ export declare const vividBreadcrumb: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,5 @@
1
+ import { BreadcrumbItem as FastBreadcrumbItem } from '@microsoft/fast-foundation';
2
+ export declare class BreadcrumbItem extends FastBreadcrumbItem {
3
+ text?: string;
4
+ constructor();
5
+ }
@@ -0,0 +1,4 @@
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
+ export declare const BreadcrumbItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<BreadcrumbItem>;
@@ -0,0 +1,3 @@
1
+ import '../icon';
2
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ export declare const vividBreadcrumbItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -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 { AffixIconWithTrailing } 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.Ghost>;
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 AffixIconWithTrailing {
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,11 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare class Calendar extends FoundationElement {
3
+ datetime?: Date | string;
4
+ startDay?: 'sunday' | 'monday';
5
+ locales?: string | string[] | undefined;
6
+ hour12: boolean;
7
+ getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
8
+ private arrowKeysInteractions;
9
+ private moveTo;
10
+ onKeydown({ key }: KeyboardEvent): boolean;
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import type { Calendar } from './calendar';
4
+ export declare const CalendarTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Calendar>;
@@ -0,0 +1,2 @@
1
+ export declare function getValidDateString(date: Date): string;
2
+ export declare function getFirstDateOfTheWeek(date: Date | undefined, startDay: 'sunday' | 'monday'): Date;
@@ -0,0 +1,6 @@
1
+ import type { Calendar } from '../calendar';
2
+ export interface CalendarEventContext {
3
+ day?: number;
4
+ hour?: number;
5
+ }
6
+ export declare const getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => CalendarEventContext | null;
@@ -0,0 +1,9 @@
1
+ import type { Calendar } from '../calendar';
2
+ export declare const ARROW_UP = "ArrowUp";
3
+ export declare const ARROW_RIGHT = "ArrowRight";
4
+ export declare const ARROW_DOWN = "ArrowDown";
5
+ export declare const ARROW_LEFT = "ArrowLeft";
6
+ export declare type PredefindKeys = typeof ARROW_UP | typeof ARROW_RIGHT | typeof ARROW_DOWN | typeof ARROW_LEFT;
7
+ export declare function isCellOrHeader(el: unknown): el is HTMLElement;
8
+ export declare function getNextFocusableGridElement(this: Calendar, key: PredefindKeys, activeElement: HTMLElement): Element | null | void;
9
+ export declare function getHeaderDescendantGridCell(this: Calendar, key: PredefindKeys, activeElement: HTMLElement): Element | null | undefined;
@@ -0,0 +1,3 @@
1
+ import '../elevation';
2
+ import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ export declare const vividCalendar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
@@ -0,0 +1,16 @@
1
+ export * from './text-anchor';
2
+ export * from './badge';
3
+ export * from './button';
4
+ export * from './focus';
5
+ export * from './icon';
6
+ 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';
12
+ export * from './popup';
13
+ export * from './tooltip';
14
+ export * from './banner';
15
+ export * from './accordion-item';
16
+ export * from './accordion';
@@ -0,0 +1,4 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare class Elevation extends FoundationElement {
3
+ dp?: 0 | 2 | 4 | 8 | 12 | 16 | 24;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
+ import type { 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,46 @@
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
+ Sharp = "sharp"
18
+ }
19
+ export declare enum Appearance {
20
+ Text = "text",
21
+ Filled = "filled",
22
+ Outlined = "outlined",
23
+ Duotone = "duotone",
24
+ Subtle = "subtle",
25
+ Ghost = "ghost"
26
+ }
27
+ export declare enum Size {
28
+ BaseSmall = "base-small",
29
+ Base = "base",
30
+ BaseLarge = "base-large"
31
+ }
32
+ export declare enum Position {
33
+ Top = "TOP",
34
+ Bottom = "BOTTOM",
35
+ Start = "START",
36
+ Center = "CENTER",
37
+ End = "END"
38
+ }
39
+ export declare enum Role {
40
+ Status = "status",
41
+ Alert = "alert"
42
+ }
43
+ export declare enum AriaLive {
44
+ Polite = "polite",
45
+ Assertive = "assertive"
46
+ }
@@ -0,0 +1,3 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare class Focus extends FoundationElement {
3
+ }
@@ -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,11 @@
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
+ svg?: string;
8
+ type?: string;
9
+ typeChanged(): Promise<void>;
10
+ }
11
+ 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>>;