@vonage/vivid 3.0.0-next.9 → 3.0.0-next.90

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 (190) hide show
  1. package/README.md +141 -4
  2. package/accordion/index.js +3 -12
  3. package/accordion-item/index.js +30 -38
  4. package/action-group/index.js +41 -0
  5. package/avatar/index.js +60 -0
  6. package/badge/index.js +16 -30
  7. package/banner/index.js +25 -111
  8. package/breadcrumb/index.js +21 -18
  9. package/breadcrumb-item/index.js +23 -20
  10. package/button/index.js +19 -757
  11. package/calendar/index.js +72 -67
  12. package/calendar-event/index.js +112 -0
  13. package/card/index.js +113 -0
  14. package/checkbox/index.js +176 -0
  15. package/dialog/index.js +229 -0
  16. package/divider/index.js +4 -0
  17. package/elevation/index.js +3 -31
  18. package/fab/index.js +99 -0
  19. package/focus/index.js +18 -3
  20. package/header/index.js +61 -0
  21. package/icon/index.js +10 -9
  22. package/index.js +57 -20
  23. package/layout/index.js +5 -15
  24. package/lib/accordion-item/accordion-item.d.ts +2 -2
  25. package/lib/accordion-item/index.d.ts +2 -1
  26. package/lib/action-group/action-group.d.ts +10 -0
  27. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  28. package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
  29. package/lib/avatar/avatar.d.ts +15 -0
  30. package/lib/avatar/avatar.template.d.ts +4 -0
  31. package/lib/avatar/index.d.ts +3 -0
  32. package/lib/badge/badge.d.ts +3 -5
  33. package/lib/badge/index.d.ts +1 -1
  34. package/lib/banner/banner.d.ts +1 -1
  35. package/lib/banner/banner.template.d.ts +0 -2
  36. package/lib/banner/index.d.ts +1 -0
  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 +1 -0
  40. package/lib/button/button.d.ts +6 -5
  41. package/lib/button/index.d.ts +2 -19
  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/card/index.d.ts +4 -0
  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 +4 -0
  53. package/lib/components.d.ts +29 -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 +5 -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 +11 -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 +4 -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 +3 -0
  70. package/lib/icon/icon.d.ts +4 -3
  71. package/lib/layout/index.d.ts +1 -1
  72. package/lib/layout/layout.d.ts +3 -3
  73. package/lib/listbox-option/index.d.ts +4 -0
  74. package/lib/listbox-option/listbox-option.d.ts +7 -0
  75. package/lib/listbox-option/listbox-option.template.d.ts +4 -0
  76. package/lib/menu/index.d.ts +12 -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 +3 -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 +4 -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 +4 -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/{text → note}/index.d.ts +1 -1
  92. package/lib/note/note.d.ts +10 -0
  93. package/lib/note/note.template.d.ts +5 -0
  94. package/lib/number-field/index.d.ts +4 -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/popup/index.d.ts +1 -1
  98. package/lib/popup/popup.d.ts +2 -1
  99. package/lib/progress/progress.d.ts +1 -1
  100. package/lib/progress-ring/progress-ring.d.ts +2 -1
  101. package/lib/radio/index.d.ts +3 -0
  102. package/lib/radio/radio.d.ts +4 -0
  103. package/lib/radio/radio.template.d.ts +4 -0
  104. package/lib/radio-group/index.d.ts +10 -0
  105. package/lib/radio-group/radio-group.d.ts +4 -0
  106. package/lib/radio-group/radio-group.template.d.ts +4 -0
  107. package/lib/side-drawer/index.d.ts +1 -1
  108. package/lib/side-drawer/side-drawer.d.ts +3 -2
  109. package/lib/text-anchor/text-anchor.d.ts +1 -1
  110. package/lib/text-area/index.d.ts +4 -0
  111. package/lib/text-area/text-area.d.ts +9 -0
  112. package/lib/text-area/text-area.template.d.ts +4 -0
  113. package/lib/text-field/index.d.ts +4 -0
  114. package/lib/text-field/text-field.d.ts +14 -0
  115. package/lib/text-field/text-field.template.d.ts +5 -0
  116. package/lib/tooltip/tooltip.d.ts +2 -2
  117. package/listbox-option/index.js +248 -0
  118. package/menu/index.js +376 -0
  119. package/menu-item/index.js +20 -0
  120. package/nav/index.js +17 -0
  121. package/nav-disclosure/index.js +81 -0
  122. package/nav-item/index.js +45 -0
  123. package/note/index.js +58 -0
  124. package/number-field/index.js +516 -0
  125. package/package.json +58 -10
  126. package/popup/index.js +22 -2061
  127. package/progress/index.js +35 -36
  128. package/progress-ring/index.js +11 -11
  129. package/radio/index.js +50 -0
  130. package/radio-group/index.js +435 -0
  131. package/shared/affix.js +1 -6
  132. package/shared/anchor.js +10 -2
  133. package/shared/apply-mixins.js +5 -4
  134. package/shared/aria-global.js +2 -86
  135. package/shared/aria.js +9 -0
  136. package/shared/base-progress.js +5 -0
  137. package/shared/breadcrumb-item.js +1 -1
  138. package/shared/button.js +200 -0
  139. package/shared/calendar-event.js +19 -0
  140. package/shared/dialog-polyfill.esm.js +858 -0
  141. package/shared/direction.js +20 -0
  142. package/shared/enums.js +62 -0
  143. package/shared/es.object.assign.js +3 -2
  144. package/shared/export.js +1017 -0
  145. package/shared/focus.js +5 -0
  146. package/shared/focus2.js +11 -0
  147. package/shared/form-associated.js +466 -0
  148. package/shared/form-elements.js +331 -0
  149. package/shared/icon.js +534 -531
  150. package/shared/index.js +108 -79
  151. package/shared/index2.js +100 -14
  152. package/shared/index3.js +31 -0
  153. package/shared/index4.js +77 -0
  154. package/shared/index5.js +1525 -0
  155. package/shared/index6.js +349 -0
  156. package/shared/iterators.js +61 -0
  157. package/shared/key-codes.js +96 -0
  158. package/shared/object-keys.js +13 -0
  159. package/shared/patterns/focus.d.ts +3 -0
  160. package/shared/patterns/form-elements/form-elements.d.ts +28 -0
  161. package/shared/patterns/form-elements/index.d.ts +1 -0
  162. package/shared/patterns/index.d.ts +2 -0
  163. package/shared/radio.js +127 -0
  164. package/shared/ref.js +41 -0
  165. package/shared/slotted.js +1 -1
  166. package/shared/start-end.js +50 -0
  167. package/shared/text-anchor.js +2 -13
  168. package/shared/text-anchor.template.js +6 -5
  169. package/shared/to-string.js +51 -0
  170. package/shared/web.dom-collections.iterator.js +74 -1081
  171. package/side-drawer/index.js +41 -33
  172. package/styles/core/all.css +75 -0
  173. package/styles/core/theme.css +11 -0
  174. package/styles/core/typography.css +69 -0
  175. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  176. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  177. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  178. package/styles/fonts/spezia.css +9 -12
  179. package/styles/tokens/theme-dark.css +230 -0
  180. package/styles/tokens/theme-light.css +230 -0
  181. package/text-anchor/index.js +9 -1
  182. package/text-area/index.js +288 -0
  183. package/text-field/index.js +129 -0
  184. package/tooltip/index.js +23 -24
  185. package/lib/text/text.d.ts +0 -10
  186. package/shared/style-inject.es.js +0 -28
  187. package/sidenav-item/index.js +0 -38
  188. package/styles/themes/dark.css +0 -205
  189. package/styles/themes/light.css +0 -205
  190. package/text/index.js +0 -45
package/banner/index.js CHANGED
@@ -1,187 +1,101 @@
1
+ import '../shared/index2.js';
1
2
  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
3
  import '../shared/web.dom-collections.iterator.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';
9
+ import '../icon/index.js';
10
10
  import '../shared/icon.js';
11
+ import '../shared/export.js';
12
+ import '../shared/iterators.js';
13
+ import '../shared/to-string.js';
11
14
  import '../shared/_has.js';
12
- import '../icon/index.js';
13
- import '../shared/index2.js';
15
+ import '../focus/index.js';
16
+ import '../shared/focus.js';
17
+ import '../shared/button.js';
18
+ import '../shared/form-associated.js';
19
+ import '../shared/key-codes.js';
14
20
  import '../shared/aria-global.js';
15
- import '../shared/text-anchor.js';
16
- import '../shared/anchor.js';
17
- import '../shared/text-anchor.template.js';
18
-
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 = {}));
21
+ import '../shared/start-end.js';
22
+ import '../shared/ref.js';
23
+ import '../shared/focus2.js';
24
+ import '../shared/object-keys.js';
48
25
 
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 = {}));
26
+ var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 03 Nov 2022 17:18:46 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-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\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
27
 
92
28
  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
-
29
+ 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']]);
30
+ const defaultConnotation = (connotation = Connotation.Information) => connotationIconMap.get(connotation);
97
31
  class Banner extends FoundationElement {
98
32
  constructor() {
99
33
  super(...arguments);
100
34
  this.removable = false;
101
-
102
35
  _Banner_handleRemoveEnd.set(this, () => {
103
- this.$emit('vwc-banner:removed');
36
+ this.$emit('removed');
104
37
  this.parentElement && this.parentElement.removeChild(this);
105
38
  });
106
-
107
39
  _Banner_closeOnKeyDown.set(this, e => {
108
40
  if (e.key !== 'Escape' || !this.removable) {
109
41
  return;
110
42
  }
111
-
112
43
  this.remove();
113
44
  });
114
45
  }
115
-
116
46
  get conditionedIcon() {
117
47
  var _a;
118
-
119
48
  return (_a = this.icon) !== null && _a !== void 0 ? _a : defaultConnotation(this.connotation);
120
49
  }
121
-
122
50
  connectedCallback() {
123
51
  super.connectedCallback();
124
52
  this.addEventListener('keydown', __classPrivateFieldGet(this, _Banner_closeOnKeyDown, "f"));
125
53
  }
126
-
127
54
  disconnectedCallback() {
128
55
  super.disconnectedCallback();
129
56
  this.removeEventListener('keydown', __classPrivateFieldGet(this, _Banner_closeOnKeyDown, "f"));
130
57
  }
131
-
132
58
  remove() {
133
- this.$emit('vwc-banner:removing');
59
+ this.$emit('removing');
134
60
  const banner = this.shadowRoot && this.shadowRoot.querySelector('.banner');
135
-
136
61
  if (banner) {
137
62
  banner.classList.add('removing');
138
63
  banner.addEventListener('transitionend', __classPrivateFieldGet(this, _Banner_handleRemoveEnd, "f"));
139
64
  }
140
65
  }
141
-
142
66
  }
143
67
  _Banner_handleRemoveEnd = new WeakMap(), _Banner_closeOnKeyDown = new WeakMap();
144
-
145
68
  __decorate([attr({
146
69
  attribute: 'action-href'
147
70
  }), __metadata("design:type", Object)], Banner.prototype, "actionHref", void 0);
148
-
149
71
  __decorate([attr({
150
72
  attribute: 'action-text'
151
73
  }), __metadata("design:type", Object)], Banner.prototype, "actionText", void 0);
152
-
153
74
  __decorate([attr({
154
75
  mode: 'boolean'
155
76
  }), __metadata("design:type", Object)], Banner.prototype, "removable", void 0);
156
-
157
77
  __decorate([attr({
158
78
  attribute: 'aria-live'
159
79
  }), __metadata("design:type", Object)], Banner.prototype, "ariaLive", void 0);
160
-
161
80
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "role", void 0);
162
-
163
81
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "text", void 0);
164
-
165
82
  __decorate([attr(), __metadata("design:type", Object)], Banner.prototype, "connotation", void 0);
166
-
167
83
  applyMixins(Banner, AffixIcon);
168
84
 
169
85
  let _2 = t => t,
170
- _t,
171
- _t2;
172
-
86
+ _t,
87
+ _t2;
173
88
  const getClasses = _ => classNames('control', [`connotation-${_.connotation}`, !!_.connotation]);
174
-
175
89
  function renderDismissButton() {
176
90
  return html(_t || (_t = _2`
177
91
  <vwc-button
178
- size="base-small"
92
+ part="vvd-theme-alternate"
93
+ density="condensed"
179
94
  class="dismiss-button"
180
95
  icon="close-line"
181
96
  @click="${0}">
182
97
  </vwc-button>`), x => x.remove());
183
98
  }
184
-
185
99
  const BannerTemplate = context => {
186
100
  const affixIconTemplate = affixIconTemplateFactory(context);
187
101
  return html(_t2 || (_t2 = _2`
@@ -194,7 +108,7 @@ const BannerTemplate = context => {
194
108
  aria-live="${0}">
195
109
  ${0}
196
110
  </div>
197
- <slot class="action-items" name="actionItems"></slot>
111
+ <slot class="action-items" name="action-items"></slot>
198
112
  </div>
199
113
 
200
114
  ${0}
@@ -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, o as observable, h as html, d as designSystem } 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
 
@@ -1,54 +1,57 @@
1
1
  import '../icon/index.js';
2
+ import '../focus/index.js';
2
3
  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';
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
8
  import '../shared/icon.js';
9
- import '../shared/web.dom-collections.iterator.js';
9
+ import '../shared/export.js';
10
+ import '../shared/iterators.js';
11
+ import '../shared/to-string.js';
10
12
  import '../shared/_has.js';
13
+ import '../shared/focus.js';
11
14
  import '../shared/anchor.js';
12
15
  import '../shared/apply-mixins.js';
13
16
  import '../shared/aria-global.js';
17
+ import '../shared/start-end.js';
18
+ import '../shared/ref.js';
14
19
  import '../shared/affix.js';
20
+ import '../shared/web.dom-collections.iterator.js';
21
+ import '../shared/object-keys.js';
22
+ import '../shared/focus2.js';
15
23
 
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-neutral-70);\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-on-canvas);\n font-size: 12px;\n}";
17
- styleInject(css_248z);
24
+ var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 03 Nov 2022 17:18:46 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
25
 
19
26
  class BreadcrumbItem extends BreadcrumbItem$1 {
20
27
  constructor() {
21
28
  super();
22
- this.text = '';
23
29
  }
24
-
25
30
  }
26
-
27
- __decorate([attr({
28
- mode: 'fromView'
29
- }), __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
31
+ __decorate([attr, __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
30
32
 
31
33
  let _2 = t => t,
32
- _t,
33
- _t2,
34
- _t3,
35
- _t4;
36
-
37
- const getClasses = _ => classNames('control', 'breadcrumb-item');
38
-
34
+ _t,
35
+ _t2,
36
+ _t3,
37
+ _t4;
38
+ const getClasses = _ => classNames('base');
39
39
  const BreadcrumbItemTemplate = (context, definition) => html(_t || (_t = _2`
40
- <div roll="listitem" part="listitem" class="${0}">
40
+ <div role="listitem" class="${0}">
41
41
  ${0}
42
42
 
43
43
  ${0}
44
44
 
45
45
  ${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-line"></vwc-icon>`))));
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>`))));
47
47
 
48
48
  const vividBreadcrumbItem = BreadcrumbItem.compose({
49
49
  baseName: 'breadcrumb-item',
50
50
  template: BreadcrumbItemTemplate,
51
- styles: css_248z
51
+ styles: css_248z,
52
+ shadowOptions: {
53
+ delegatesFocus: true
54
+ }
52
55
  });
53
56
  designSystem.register(vividBreadcrumbItem());
54
57