@vonage/vivid 3.0.0-next.11 → 3.0.0-next.110

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 (209) hide show
  1. package/README.md +165 -4
  2. package/accordion/index.js +5 -14
  3. package/accordion-item/index.js +34 -41
  4. package/action-group/index.js +37 -0
  5. package/avatar/index.js +61 -0
  6. package/badge/index.js +23 -35
  7. package/banner/index.js +20 -115
  8. package/breadcrumb/index.js +22 -19
  9. package/breadcrumb-item/index.js +28 -25
  10. package/button/index.js +29 -690
  11. package/calendar/index.js +70 -69
  12. package/calendar-event/index.js +109 -0
  13. package/card/index.js +112 -0
  14. package/checkbox/index.js +178 -0
  15. package/custom-elements.json +3941 -0
  16. package/dialog/index.js +214 -0
  17. package/divider/index.js +27 -0
  18. package/elevation/index.js +10 -16
  19. package/fab/index.js +98 -0
  20. package/focus/index.js +18 -3
  21. package/header/index.js +63 -0
  22. package/icon/index.js +9 -12
  23. package/index.js +68 -22
  24. package/layout/index.js +6 -16
  25. package/lib/accordion-item/accordion-item.d.ts +2 -2
  26. package/lib/accordion-item/index.d.ts +0 -1
  27. package/lib/action-group/action-group.d.ts +10 -0
  28. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  29. package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
  30. package/lib/avatar/avatar.d.ts +15 -0
  31. package/lib/avatar/avatar.template.d.ts +4 -0
  32. package/lib/avatar/index.d.ts +2 -0
  33. package/lib/badge/badge.d.ts +3 -5
  34. package/lib/badge/index.d.ts +1 -2
  35. package/lib/banner/banner.d.ts +1 -1
  36. package/lib/banner/banner.template.d.ts +0 -2
  37. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  38. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  39. package/lib/breadcrumb-item/index.d.ts +0 -1
  40. package/lib/button/button.d.ts +4 -3
  41. package/lib/button/index.d.ts +1 -21
  42. package/lib/calendar/calendar.d.ts +3 -1
  43. package/lib/calendar/index.d.ts +0 -1
  44. package/lib/calendar-event/calendar-event.d.ts +14 -0
  45. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  46. package/lib/calendar-event/index.d.ts +2 -0
  47. package/lib/card/card.d.ts +10 -0
  48. package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
  49. package/lib/{text → card}/index.d.ts +1 -1
  50. package/lib/checkbox/checkbox.d.ts +5 -0
  51. package/lib/checkbox/checkbox.template.d.ts +4 -0
  52. package/lib/checkbox/index.d.ts +2 -0
  53. package/lib/components.d.ts +32 -10
  54. package/lib/dialog/dialog.d.ts +20 -0
  55. package/lib/dialog/dialog.template.d.ts +4 -0
  56. package/lib/dialog/index.d.ts +2 -0
  57. package/lib/divider/divider.d.ts +3 -0
  58. package/lib/divider/divider.template.d.ts +4 -0
  59. package/lib/divider/index.d.ts +2 -0
  60. package/lib/elevation/elevation.d.ts +1 -0
  61. package/lib/elevation/index.d.ts +1 -1
  62. package/lib/enums.d.ts +19 -6
  63. package/lib/fab/fab.d.ts +13 -0
  64. package/lib/fab/fab.template.d.ts +4 -0
  65. package/lib/fab/index.d.ts +2 -0
  66. package/lib/focus/index.d.ts +1 -1
  67. package/lib/header/header.d.ts +5 -0
  68. package/lib/header/header.template.d.ts +4 -0
  69. package/lib/header/index.d.ts +2 -0
  70. package/lib/icon/icon.d.ts +5 -6
  71. package/lib/layout/index.d.ts +1 -1
  72. package/lib/layout/layout.d.ts +4 -4
  73. package/lib/listbox/index.d.ts +1 -0
  74. package/lib/listbox/listbox.d.ts +9 -0
  75. package/lib/listbox/listbox.template.d.ts +4 -0
  76. package/lib/menu/index.d.ts +10 -0
  77. package/lib/menu/menu.d.ts +10 -0
  78. package/lib/menu/menu.template.d.ts +3 -0
  79. package/lib/menu-item/index.d.ts +2 -0
  80. package/lib/menu-item/menu-item.d.ts +7 -0
  81. package/lib/menu-item/menu-item.template.d.ts +5 -0
  82. package/lib/nav/index.d.ts +2 -0
  83. package/lib/nav/nav.d.ts +3 -0
  84. package/lib/nav/nav.template.d.ts +4 -0
  85. package/lib/nav-disclosure/index.d.ts +2 -0
  86. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  87. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  88. package/lib/nav-item/index.d.ts +2 -0
  89. package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
  90. package/lib/nav-item/nav-item.template.d.ts +4 -0
  91. package/lib/note/index.d.ts +2 -0
  92. package/lib/note/note.d.ts +10 -0
  93. package/lib/note/note.template.d.ts +4 -0
  94. package/lib/number-field/index.d.ts +2 -0
  95. package/lib/number-field/number-field.d.ts +14 -0
  96. package/lib/number-field/number-field.template.d.ts +4 -0
  97. package/lib/option/index.d.ts +2 -0
  98. package/lib/option/option.d.ts +9 -0
  99. package/lib/option/option.template.d.ts +4 -0
  100. package/lib/popup/index.d.ts +1 -3
  101. package/lib/popup/popup.d.ts +3 -2
  102. package/lib/progress/progress.d.ts +1 -1
  103. package/lib/progress-ring/progress-ring.d.ts +2 -1
  104. package/lib/radio/index.d.ts +2 -0
  105. package/lib/radio/radio.d.ts +4 -0
  106. package/lib/radio/radio.template.d.ts +4 -0
  107. package/lib/radio-group/index.d.ts +10 -0
  108. package/lib/radio-group/radio-group.d.ts +4 -0
  109. package/lib/radio-group/radio-group.template.d.ts +4 -0
  110. package/lib/side-drawer/index.d.ts +1 -1
  111. package/lib/side-drawer/side-drawer.d.ts +3 -2
  112. package/lib/slider/index.d.ts +2 -0
  113. package/lib/slider/slider.d.ts +4 -0
  114. package/lib/slider/slider.template.d.ts +4 -0
  115. package/lib/switch/index.d.ts +2 -0
  116. package/lib/switch/switch.d.ts +7 -0
  117. package/lib/switch/switch.template.d.ts +4 -0
  118. package/lib/text-anchor/text-anchor.d.ts +1 -1
  119. package/lib/text-area/index.d.ts +2 -0
  120. package/lib/text-area/text-area.d.ts +9 -0
  121. package/lib/text-area/text-area.template.d.ts +4 -0
  122. package/lib/text-field/index.d.ts +2 -0
  123. package/lib/text-field/text-field.d.ts +14 -0
  124. package/lib/text-field/text-field.template.d.ts +4 -0
  125. package/lib/tooltip/index.d.ts +0 -1
  126. package/lib/tooltip/tooltip.d.ts +7 -7
  127. package/listbox/index.js +1086 -0
  128. package/menu/index.js +357 -0
  129. package/menu-item/index.js +90 -0
  130. package/nav/index.js +17 -0
  131. package/nav-disclosure/index.js +80 -0
  132. package/nav-item/index.js +44 -0
  133. package/note/index.js +59 -0
  134. package/number-field/index.js +460 -0
  135. package/option/index.js +75 -0
  136. package/package.json +62 -10
  137. package/popup/index.js +35 -2036
  138. package/progress/index.js +33 -38
  139. package/progress-ring/index.js +13 -13
  140. package/radio/index.js +52 -0
  141. package/radio-group/index.js +435 -0
  142. package/shared/affix.js +2 -8
  143. package/shared/anchor.js +11 -3
  144. package/shared/apply-mixins.js +5 -4
  145. package/shared/aria-global.js +2 -86
  146. package/shared/aria.js +9 -0
  147. package/shared/base-progress.js +6 -1
  148. package/shared/breadcrumb-item.js +2 -2
  149. package/shared/button.js +23 -0
  150. package/shared/button2.js +200 -0
  151. package/shared/calendar-event.js +19 -0
  152. package/shared/design-system/index.d.ts +1 -1
  153. package/shared/dialog-polyfill.esm.js +858 -0
  154. package/shared/direction.js +20 -0
  155. package/shared/divider.js +55 -0
  156. package/shared/dom.js +8 -0
  157. package/shared/elevation.js +10 -0
  158. package/shared/enums.js +70 -0
  159. package/shared/es.object.assign.js +2 -59
  160. package/shared/es.promise.resolve.js +944 -0
  161. package/shared/es.regexp.to-string.js +58 -0
  162. package/shared/focus.js +11 -0
  163. package/shared/focus2.js +5 -0
  164. package/shared/form-associated.js +466 -0
  165. package/shared/form-elements.js +343 -0
  166. package/shared/icon.js +32 -1153
  167. package/shared/index.js +3780 -83
  168. package/shared/index2.js +7 -19
  169. package/shared/key-codes.js +97 -0
  170. package/shared/listbox-option.js +201 -0
  171. package/shared/menu-item.js +277 -0
  172. package/shared/numbers.js +25 -0
  173. package/shared/patterns/focus.d.ts +3 -0
  174. package/shared/patterns/form-elements/form-elements.d.ts +31 -0
  175. package/shared/patterns/form-elements/index.d.ts +1 -0
  176. package/shared/patterns/index.d.ts +2 -0
  177. package/shared/popup.js +1484 -0
  178. package/shared/radio.js +127 -0
  179. package/shared/ref.js +41 -0
  180. package/shared/slotted.js +1 -1
  181. package/shared/start-end.js +50 -0
  182. package/shared/string-trim.js +39 -0
  183. package/shared/text-anchor.js +2 -13
  184. package/shared/text-anchor.template.js +6 -5
  185. package/shared/utils/index.d.ts +1 -0
  186. package/side-drawer/index.js +38 -34
  187. package/slider/index.js +596 -0
  188. package/styles/core/all.css +86 -0
  189. package/styles/core/theme.css +11 -0
  190. package/styles/core/typography.css +80 -0
  191. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  192. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  193. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  194. package/styles/fonts/spezia.css +9 -12
  195. package/styles/tokens/theme-dark.css +230 -0
  196. package/styles/tokens/theme-light.css +230 -0
  197. package/switch/index.js +153 -0
  198. package/text-anchor/index.js +8 -3
  199. package/text-area/index.js +288 -0
  200. package/text-field/index.js +129 -0
  201. package/tooltip/index.js +59 -43
  202. package/vivid.api.json +2979 -0
  203. package/lib/text/text.d.ts +0 -10
  204. package/shared/style-inject.es.js +0 -28
  205. package/shared/web.dom-collections.iterator.js +0 -1479
  206. package/sidenav-item/index.js +0 -38
  207. package/styles/themes/dark.css +0 -205
  208. package/styles/themes/light.css +0 -205
  209. package/text/index.js +0 -45
package/banner/index.js CHANGED
@@ -1,187 +1,88 @@
1
- import { F as FoundationElement, c as __classPrivateFieldGet, _ 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 '../shared/web.dom-collections.iterator.js';
1
+ import '../shared/es.promise.resolve.js';
2
+ import { F as FoundationElement, Y as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
3
+ import { l as loadComponentsModules } from '../shared/index2.js';
4
+ import { C as Connotation } from '../shared/enums.js';
4
5
  import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
5
6
  import { a as applyMixins } from '../shared/apply-mixins.js';
6
- import '../button/index.js';
7
- import '../text-anchor/index.js';
8
7
  import { w as when } from '../shared/when.js';
9
8
  import { c as classNames } from '../shared/class-names.js';
10
9
  import '../shared/icon.js';
10
+ import '../shared/string-trim.js';
11
11
  import '../shared/_has.js';
12
- import '../icon/index.js';
13
- import '../shared/index2.js';
14
- import '../shared/aria-global.js';
15
- import '../shared/text-anchor.js';
16
- import '../shared/anchor.js';
17
- import '../shared/text-anchor.template.js';
18
12
 
19
- var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n overflow: hidden;\n max-height: 10rem;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n --connotation-firm: var(--vvd-color-success-70);\n}\n\n.control:not(.connotation-success):not(.connotation-alert):not(.connotation-announcement):not(.connotation-warning) {\n --connotation: var(--vvd-color-info);\n --on-connotation: var(--vvd-color-on-info);\n --connotation-firm: var(--vvd-color-info-70);\n}\n\n.control.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n --connotation-firm: var(--vvd-color-alert-70);\n}\n\n.control.connotation-announcement {\n --connotation: var(--vvd-color-announcement);\n --on-connotation: var(--vvd-color-on-announcement);\n --connotation-firm: var(--vvd-color-announcement-70);\n}\n\n.control.connotation-warning {\n --connotation: var(--vvd-color-warning);\n --on-connotation: var(--vvd-color-on-warning);\n --connotation-firm: var(--vvd-color-warning-70);\n}\n\n.control {\n --_appearance-color-text: var(--on-connotation);\n --_appearance-color-fill: var(--connotation);\n --_appearance-color-outline: transaprent;\n}\n.control.removing {\n max-height: 0;\n}\n.control > .header {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: flex-start;\n}\n.control > .header > .user-content {\n display: flex;\n flex: 1 0;\n align-items: center;\n justify-content: center;\n padding-inline: 16px;\n}\n.control > .header > .user-content > .icon {\n flex: 0 0 auto;\n font-size: 20px;\n margin-inline-end: 15px;\n}\n.control > .header > .user-content > .action-items {\n display: inline-block;\n flex: 0 0 auto;\n padding-inline-start: 15px;\n}\n.control > .header > .user-content > .message {\n padding: 20px 0;\n}\n.control > .header > .dismiss-button {\n --vvd-icon-button-color: inherit;\n flex: 0 0 auto;\n margin-inline-end: 8px;\n}";
20
- styleInject(css_248z);
21
-
22
- var Connotation;
23
-
24
- (function (Connotation) {
25
- Connotation["Primary"] = "primary";
26
- Connotation["CTA"] = "cta";
27
- Connotation["Success"] = "success";
28
- Connotation["Alert"] = "alert";
29
- Connotation["Warning"] = "warning";
30
- Connotation["Info"] = "info";
31
- Connotation["Announcement"] = "announcement";
32
- })(Connotation || (Connotation = {}));
33
-
34
- var ConnotationDecorative;
35
-
36
- (function (ConnotationDecorative) {
37
- ConnotationDecorative["Pacific"] = "pacific";
38
- })(ConnotationDecorative || (ConnotationDecorative = {}));
39
-
40
- var Shape;
41
-
42
- (function (Shape) {
43
- Shape["Rounded"] = "rounded";
44
- Shape["Pill"] = "pill";
45
- Shape["Circled"] = "circled";
46
- Shape["Sharp"] = "sharp";
47
- })(Shape || (Shape = {}));
48
-
49
- var Appearance;
50
-
51
- (function (Appearance) {
52
- Appearance["Text"] = "text";
53
- Appearance["Filled"] = "filled";
54
- Appearance["Outlined"] = "outlined";
55
- Appearance["Duotone"] = "duotone";
56
- Appearance["Subtle"] = "subtle";
57
- Appearance["Ghost"] = "ghost";
58
- })(Appearance || (Appearance = {}));
59
-
60
- var Size;
61
-
62
- (function (Size) {
63
- Size["BaseSmall"] = "base-small";
64
- Size["Base"] = "base";
65
- Size["BaseLarge"] = "base-large";
66
- })(Size || (Size = {}));
67
-
68
- var Position;
69
-
70
- (function (Position) {
71
- Position["Top"] = "TOP";
72
- Position["Bottom"] = "BOTTOM";
73
- Position["Start"] = "START";
74
- Position["Center"] = "CENTER";
75
- Position["End"] = "END";
76
- })(Position || (Position = {}));
77
-
78
- var Role;
79
-
80
- (function (Role) {
81
- Role["Status"] = "status";
82
- Role["Alert"] = "alert";
83
- })(Role || (Role = {}));
84
-
85
- var AriaLive;
86
-
87
- (function (AriaLive) {
88
- AriaLive["Polite"] = "polite";
89
- AriaLive["Assertive"] = "assertive";
90
- })(AriaLive || (AriaLive = {}));
13
+ var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.control {\n overflow: hidden;\n max-height: 160px;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-primary-text: var(--vvd-color-canvas-text);\n}\n.control:not(.connotation-success, .connotation-alert, .connotation-announcement, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control.removing {\n max-height: 0;\n}\n.control > .header {\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: flex-start;\n font: var(--vvd-typography-base-bold);\n}\n.control > .header > .user-content {\n display: flex;\n flex: 1 0;\n align-items: center;\n justify-content: center;\n padding-inline: 16px;\n}\n.control > .header > .user-content > .icon {\n flex: 0 0 auto;\n font-size: 20px;\n margin-inline-end: 15px;\n}\n.control > .header > .user-content > .action-items {\n display: inline-block;\n flex: 0 0 auto;\n padding-inline-start: 15px;\n}\n.control > .header > .user-content > .message {\n padding: 20px 0;\n}\n.control > .header > .dismiss-button {\n --vvd-icon-button-color: inherit;\n flex: 0 0 auto;\n margin-inline-end: 8px;\n}";
91
14
 
92
15
  var _Banner_handleRemoveEnd, _Banner_closeOnKeyDown;
93
- 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']]);
94
-
95
- const defaultConnotation = (connotation = Connotation.Info) => connotationIconMap.get(connotation);
96
-
16
+ const connotationIconMap = new Map([[Connotation.Information, 'info-solid'], [Connotation.Announcement, 'megaphone-solid'], [Connotation.Success, 'check-circle-solid'], [Connotation.Warning, 'warning-solid'], [Connotation.Alert, 'error-solid']]);
17
+ const defaultConnotation = (connotation = Connotation.Information) => connotationIconMap.get(connotation);
97
18
  class Banner extends FoundationElement {
98
19
  constructor() {
99
20
  super(...arguments);
100
21
  this.removable = false;
101
-
102
22
  _Banner_handleRemoveEnd.set(this, () => {
103
- this.$emit('vwc-banner:removed');
23
+ this.$emit('removed');
104
24
  this.parentElement && this.parentElement.removeChild(this);
105
25
  });
106
-
107
26
  _Banner_closeOnKeyDown.set(this, e => {
108
27
  if (e.key !== 'Escape' || !this.removable) {
109
28
  return;
110
29
  }
111
-
112
30
  this.remove();
113
31
  });
114
32
  }
115
-
116
33
  get conditionedIcon() {
117
34
  var _a;
118
-
119
35
  return (_a = this.icon) !== null && _a !== void 0 ? _a : defaultConnotation(this.connotation);
120
36
  }
121
-
122
37
  connectedCallback() {
123
38
  super.connectedCallback();
124
39
  this.addEventListener('keydown', __classPrivateFieldGet(this, _Banner_closeOnKeyDown, "f"));
125
40
  }
126
-
127
41
  disconnectedCallback() {
128
42
  super.disconnectedCallback();
129
43
  this.removeEventListener('keydown', __classPrivateFieldGet(this, _Banner_closeOnKeyDown, "f"));
130
44
  }
131
-
132
45
  remove() {
133
- this.$emit('vwc-banner:removing');
46
+ this.$emit('removing');
134
47
  const banner = this.shadowRoot && this.shadowRoot.querySelector('.banner');
135
-
136
48
  if (banner) {
137
49
  banner.classList.add('removing');
138
50
  banner.addEventListener('transitionend', __classPrivateFieldGet(this, _Banner_handleRemoveEnd, "f"));
139
51
  }
140
52
  }
141
-
142
53
  }
143
54
  _Banner_handleRemoveEnd = new WeakMap(), _Banner_closeOnKeyDown = new WeakMap();
144
-
145
55
  __decorate([attr({
146
56
  attribute: 'action-href'
147
57
  }), __metadata("design:type", Object)], Banner.prototype, "actionHref", void 0);
148
-
149
58
  __decorate([attr({
150
59
  attribute: 'action-text'
151
60
  }), __metadata("design:type", Object)], Banner.prototype, "actionText", void 0);
152
-
153
61
  __decorate([attr({
154
62
  mode: 'boolean'
155
63
  }), __metadata("design:type", Object)], Banner.prototype, "removable", void 0);
156
-
157
64
  __decorate([attr({
158
65
  attribute: 'aria-live'
159
66
  }), __metadata("design:type", Object)], Banner.prototype, "ariaLive", void 0);
160
-
161
67
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "role", void 0);
162
-
163
68
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "text", void 0);
164
-
165
69
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "connotation", void 0);
166
-
167
70
  applyMixins(Banner, AffixIcon);
168
71
 
169
72
  let _2 = t => t,
170
- _t,
171
- _t2;
172
-
73
+ _t,
74
+ _t2;
173
75
  const getClasses = _ => classNames('control', [`connotation-${_.connotation}`, !!_.connotation]);
174
-
175
76
  function renderDismissButton() {
176
77
  return html(_t || (_t = _2`
177
78
  <vwc-button
178
- size="base-small"
79
+ part="vvd-theme-alternate"
80
+ size="condensed"
179
81
  class="dismiss-button"
180
82
  icon="close-line"
181
83
  @click="${0}">
182
84
  </vwc-button>`), x => x.remove());
183
85
  }
184
-
185
86
  const BannerTemplate = context => {
186
87
  const affixIconTemplate = affixIconTemplateFactory(context);
187
88
  return html(_t2 || (_t2 = _2`
@@ -194,7 +95,7 @@ const BannerTemplate = context => {
194
95
  aria-live="${0}">
195
96
  ${0}
196
97
  </div>
197
- <slot class="action-items" name="actionItems"></slot>
98
+ <slot class="action-items" name="action-items"></slot>
198
99
  </div>
199
100
 
200
101
  ${0}
@@ -203,11 +104,15 @@ const BannerTemplate = context => {
203
104
  `), getClasses, x => affixIconTemplate(x.conditionedIcon), x => x.role ? x.role : 'status', x => x.ariaLive ? x.ariaLive : 'polite', x => x.text, when(x => x.removable, renderDismissButton()));
204
105
  };
205
106
 
107
+ const prefix = getPrefix(import.meta.url);
206
108
  const vividBanner = Banner.compose({
207
109
  baseName: 'banner',
208
110
  template: BannerTemplate,
209
111
  styles: css_248z
210
112
  });
211
- designSystem.register(vividBanner());
113
+ (async () => {
114
+ await loadComponentsModules(['button'], prefix);
115
+ designSystem.withPrefix(prefix).register(vividBanner());
116
+ })();
212
117
 
213
118
  export { vividBanner };
@@ -1,27 +1,16 @@
1
- import { h as html, F as FoundationElement, _ as __decorate, o as observable, d as designSystem } from '../shared/index.js';
2
- import { s as styleInject } from '../shared/style-inject.es.js';
3
- import { B as BreadcrumbItem } from '../shared/breadcrumb-item.js';
1
+ import { F as FoundationElement, _ as __decorate, V as observable, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
4
2
  import { s as slotted, e as elements } from '../shared/slotted.js';
3
+ import { B as BreadcrumbItem } from '../shared/breadcrumb-item.js';
5
4
  import '../shared/anchor.js';
6
5
  import '../shared/apply-mixins.js';
7
6
  import '../shared/aria-global.js';
8
-
9
- /**
10
- * The template for the {@link @microsoft/fast-foundation#Breadcrumb} component.
11
- * @public
12
- */
13
- const breadcrumbTemplate = (context, definition) => html `
14
- <template role="navigation">
15
- <div role="list" class="list" part="list">
16
- <slot
17
- ${slotted({ property: "slottedBreadcrumbItems", filter: elements() })}
18
- ></slot>
19
- </div>
20
- </template>
21
- `;
7
+ import '../shared/start-end.js';
8
+ import '../shared/ref.js';
22
9
 
23
10
  /**
24
11
  * A Breadcrumb Custom HTML Element.
12
+ * @slot - The default slot for the breadcrumb items
13
+ * @csspart list - The element wrapping the slotted items
25
14
  *
26
15
  * @public
27
16
  */
@@ -85,8 +74,22 @@ __decorate([
85
74
  observable
86
75
  ], Breadcrumb$1.prototype, "slottedBreadcrumbItems", void 0);
87
76
 
77
+ let _ = t => t,
78
+ _t;
79
+ const breadcrumbTemplate = () => html(_t || (_t = _`
80
+ <nav aria-label="breadcrumbs" class="base">
81
+ <div role="list" class="list">
82
+ <slot
83
+ ${0}
84
+ ></slot>
85
+ </div>
86
+ </nav>
87
+ `), slotted({
88
+ property: 'slottedBreadcrumbItems',
89
+ filter: elements()
90
+ }));
91
+
88
92
  var css_248z = ".list {\n display: flex;\n}";
89
- styleInject(css_248z);
90
93
 
91
94
  class Breadcrumb extends Breadcrumb$1 {}
92
95
 
@@ -95,6 +98,6 @@ const vividBreadcrumb = Breadcrumb.compose({
95
98
  template: breadcrumbTemplate,
96
99
  styles: css_248z
97
100
  });
98
- designSystem.register(vividBreadcrumb());
101
+ designSystem.withPrefix(getPrefix(import.meta.url)).register(vividBreadcrumb());
99
102
 
100
103
  export { vividBreadcrumb };
@@ -1,55 +1,58 @@
1
- import '../icon/index.js';
2
- import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
3
- import { s as styleInject } from '../shared/style-inject.es.js';
1
+ import '../shared/es.promise.resolve.js';
2
+ import { _ as __decorate, a as attr, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
3
+ import { l as loadComponentsModules } from '../shared/index2.js';
4
4
  import { B as BreadcrumbItem$1 } from '../shared/breadcrumb-item.js';
5
5
  import { t as textAnchorTemplate } from '../shared/text-anchor.template.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/icon.js';
9
- import '../shared/web.dom-collections.iterator.js';
10
- import '../shared/_has.js';
11
8
  import '../shared/anchor.js';
12
9
  import '../shared/apply-mixins.js';
13
10
  import '../shared/aria-global.js';
11
+ import '../shared/start-end.js';
12
+ import '../shared/ref.js';
14
13
  import '../shared/affix.js';
14
+ import '../shared/icon.js';
15
+ import '../shared/string-trim.js';
16
+ import '../shared/_has.js';
17
+ import '../shared/focus.js';
18
+ import '../shared/focus2.js';
15
19
 
16
- var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.breadcrumb-item {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: flex;\n align-items: center;\n color: var(--vvd-color-on-canvas);\n}\n.breadcrumb-item a {\n color: var(--vvd-color-cta-70);\n font: inherit;\n text-decoration: none;\n}\n.breadcrumb-item a:hover {\n text-decoration: underline;\n}\n.breadcrumb-item vwc-icon {\n margin: 0 16px;\n color: var(--vvd-color-neutral-70);\n font-size: 12px;\n}";
17
- styleInject(css_248z);
20
+ var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.base {\n display: flex;\n align-items: center;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n}\n.base vwc-icon {\n margin: 0 16px;\n color: var(--vvd-color-neutral-600);\n font-size: 12px;\n}\n\n.control {\n position: relative;\n font: inherit;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control:any-link {\n color: var(--vvd-color-cta-600);\n text-decoration: none;\n}\n.control:any-link:hover {\n text-decoration: underline;\n}\n\n.focus-indicator {\n --focus-inset: -4px -8px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.control:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
18
21
 
19
22
  class BreadcrumbItem extends BreadcrumbItem$1 {
20
23
  constructor() {
21
24
  super();
22
- this.text = '';
23
25
  }
24
-
25
26
  }
26
-
27
- __decorate([attr({
28
- mode: 'fromView'
29
- }), __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
27
+ __decorate([attr, __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
30
28
 
31
29
  let _2 = t => t,
32
- _t,
33
- _t2,
34
- _t3,
35
- _t4;
36
-
37
- const getClasses = _ => classNames('control', 'breadcrumb-item');
38
-
30
+ _t,
31
+ _t2,
32
+ _t3,
33
+ _t4;
34
+ const getClasses = _ => classNames('base');
39
35
  const BreadcrumbItemTemplate = (context, definition) => html(_t || (_t = _2`
40
- <div roll="listitem" part="listitem" class="${0}">
36
+ <div role="listitem" class="${0}">
41
37
  ${0}
42
38
 
43
39
  ${0}
44
40
 
45
41
  ${0}
46
- </div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<vwc-icon type="chevron-right-solid"></vwc-icon>`))));
42
+ </div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<vwc-icon name="chevron-right-solid"></vwc-icon>`))));
47
43
 
44
+ const prefix = getPrefix(import.meta.url);
48
45
  const vividBreadcrumbItem = BreadcrumbItem.compose({
49
46
  baseName: 'breadcrumb-item',
50
47
  template: BreadcrumbItemTemplate,
51
- styles: css_248z
48
+ styles: css_248z,
49
+ shadowOptions: {
50
+ delegatesFocus: true
51
+ }
52
52
  });
53
- designSystem.register(vividBreadcrumbItem());
53
+ (async () => {
54
+ await loadComponentsModules(['icon', 'focus'], prefix);
55
+ designSystem.withPrefix(prefix).register(vividBreadcrumbItem());
56
+ })();
54
57
 
55
58
  export { vividBreadcrumbItem };