@vonage/vivid 3.0.0 → 3.1.0

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 (337) hide show
  1. package/README.md +176 -4
  2. package/accordion/index.js +22 -61
  3. package/accordion-item/index.js +16 -118
  4. package/action-group/index.js +5 -0
  5. package/avatar/index.js +11 -0
  6. package/badge/index.js +9 -53
  7. package/banner/index.js +20 -210
  8. package/breadcrumb/index.js +7 -96
  9. package/breadcrumb-item/index.js +15 -46
  10. package/button/index.js +19 -751
  11. package/calendar/index.js +6 -1520
  12. package/calendar-event/index.js +9 -0
  13. package/card/index.js +10 -133
  14. package/checkbox/index.js +16 -0
  15. package/combobox/index.js +35 -0
  16. package/custom-elements.json +6214 -0
  17. package/data-grid/index.js +1104 -0
  18. package/dialog/index.js +24 -0
  19. package/divider/index.js +6 -0
  20. package/elevation/index.js +4 -30
  21. package/fab/index.js +22 -0
  22. package/focus/index.js +4 -2
  23. package/header/index.js +6 -0
  24. package/icon/index.js +8 -36
  25. package/index.js +77 -26
  26. package/layout/index.js +4 -52
  27. package/lib/accordion/accordion.d.ts +3 -7
  28. package/lib/accordion/accordion.template.d.ts +1 -2
  29. package/lib/accordion/definition.d.ts +1 -0
  30. package/lib/accordion/index.d.ts +1 -2
  31. package/lib/accordion-item/accordion-item.d.ts +2 -6
  32. package/lib/accordion-item/accordion-item.template.d.ts +4 -4
  33. package/lib/accordion-item/definition.d.ts +1 -0
  34. package/lib/accordion-item/index.d.ts +1 -3
  35. package/lib/action-group/action-group.d.ts +10 -0
  36. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  37. package/lib/action-group/definition.d.ts +1 -0
  38. package/lib/action-group/index.d.ts +1 -0
  39. package/lib/avatar/avatar.d.ts +15 -0
  40. package/lib/avatar/avatar.template.d.ts +4 -0
  41. package/lib/avatar/definition.d.ts +1 -0
  42. package/lib/avatar/index.d.ts +1 -0
  43. package/lib/badge/badge.d.ts +2 -4
  44. package/lib/badge/definition.d.ts +3 -0
  45. package/lib/badge/index.d.ts +1 -3
  46. package/lib/banner/banner.d.ts +1 -1
  47. package/lib/banner/banner.template.d.ts +0 -2
  48. package/lib/banner/definition.d.ts +1 -0
  49. package/lib/banner/index.d.ts +1 -2
  50. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  51. package/lib/breadcrumb/definition.d.ts +1 -0
  52. package/lib/breadcrumb/index.d.ts +1 -2
  53. package/lib/breadcrumb-item/definition.d.ts +1 -0
  54. package/lib/breadcrumb-item/index.d.ts +1 -3
  55. package/lib/button/button.d.ts +3 -2
  56. package/lib/button/definition.d.ts +1 -0
  57. package/lib/button/index.d.ts +1 -21
  58. package/lib/calendar/calendar.d.ts +3 -1
  59. package/lib/calendar/definition.d.ts +1 -0
  60. package/lib/calendar/index.d.ts +1 -3
  61. package/lib/calendar-event/calendar-event.d.ts +14 -0
  62. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  63. package/lib/calendar-event/definition.d.ts +1 -0
  64. package/lib/calendar-event/index.d.ts +1 -0
  65. package/lib/card/card.d.ts +2 -2
  66. package/lib/card/definition.d.ts +1 -0
  67. package/lib/card/index.d.ts +1 -5
  68. package/lib/checkbox/checkbox.d.ts +5 -0
  69. package/lib/checkbox/checkbox.template.d.ts +4 -0
  70. package/lib/checkbox/definition.d.ts +1 -0
  71. package/lib/checkbox/index.d.ts +1 -0
  72. package/lib/combobox/combobox.d.ts +14 -0
  73. package/lib/combobox/combobox.template.d.ts +4 -0
  74. package/lib/combobox/definition.d.ts +3 -0
  75. package/lib/combobox/index.d.ts +1 -0
  76. package/lib/components.d.ts +44 -16
  77. package/lib/data-grid/data-grid-cell.d.ts +5 -0
  78. package/lib/data-grid/data-grid-cell.template.d.ts +4 -0
  79. package/lib/data-grid/data-grid-row.d.ts +3 -0
  80. package/lib/data-grid/data-grid-row.template.d.ts +3 -0
  81. package/lib/data-grid/data-grid.d.ts +3 -0
  82. package/lib/data-grid/data-grid.options.d.ts +31 -0
  83. package/lib/data-grid/data-grid.template.d.ts +3 -0
  84. package/lib/data-grid/definition.d.ts +6 -0
  85. package/lib/data-grid/index.d.ts +1 -0
  86. package/lib/dialog/definition.d.ts +1 -0
  87. package/lib/dialog/dialog.d.ts +23 -0
  88. package/lib/dialog/dialog.template.d.ts +4 -0
  89. package/lib/dialog/index.d.ts +1 -0
  90. package/lib/divider/definition.d.ts +1 -0
  91. package/lib/divider/divider.d.ts +3 -0
  92. package/lib/divider/divider.template.d.ts +4 -0
  93. package/lib/divider/index.d.ts +1 -0
  94. package/lib/elevation/definition.d.ts +1 -0
  95. package/lib/elevation/elevation.d.ts +1 -0
  96. package/lib/elevation/index.d.ts +1 -2
  97. package/lib/enums.d.ts +19 -6
  98. package/lib/fab/definition.d.ts +3 -0
  99. package/lib/fab/fab.d.ts +13 -0
  100. package/lib/fab/fab.template.d.ts +4 -0
  101. package/lib/fab/index.d.ts +1 -0
  102. package/lib/focus/definition.d.ts +3 -0
  103. package/lib/focus/index.d.ts +1 -2
  104. package/lib/{sidenav-item/index.d.ts → header/definition.d.ts} +2 -2
  105. package/lib/header/header.d.ts +5 -0
  106. package/lib/header/header.template.d.ts +4 -0
  107. package/lib/header/index.d.ts +1 -0
  108. package/lib/icon/definition.d.ts +3 -0
  109. package/lib/icon/icon.d.ts +5 -6
  110. package/lib/icon/index.d.ts +1 -2
  111. package/lib/layout/definition.d.ts +3 -0
  112. package/lib/layout/index.d.ts +1 -2
  113. package/lib/layout/layout.d.ts +4 -4
  114. package/lib/listbox/definition.d.ts +3 -0
  115. package/lib/listbox/index.d.ts +1 -0
  116. package/lib/listbox/listbox.d.ts +6 -0
  117. package/lib/listbox/listbox.template.d.ts +4 -0
  118. package/lib/menu/definition.d.ts +11 -0
  119. package/lib/menu/index.d.ts +1 -0
  120. package/lib/menu/menu.d.ts +10 -0
  121. package/lib/menu/menu.template.d.ts +3 -0
  122. package/lib/menu-item/definition.d.ts +3 -0
  123. package/lib/menu-item/index.d.ts +1 -0
  124. package/lib/menu-item/menu-item.d.ts +8 -0
  125. package/lib/menu-item/menu-item.template.d.ts +5 -0
  126. package/lib/nav/definition.d.ts +3 -0
  127. package/lib/nav/index.d.ts +1 -0
  128. package/lib/nav/nav.d.ts +3 -0
  129. package/lib/nav/nav.template.d.ts +4 -0
  130. package/lib/nav-disclosure/definition.d.ts +3 -0
  131. package/lib/nav-disclosure/index.d.ts +1 -0
  132. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  133. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  134. package/lib/nav-item/definition.d.ts +3 -0
  135. package/lib/nav-item/index.d.ts +1 -0
  136. package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
  137. package/lib/nav-item/nav-item.template.d.ts +4 -0
  138. package/lib/note/definition.d.ts +3 -0
  139. package/lib/note/index.d.ts +1 -0
  140. package/lib/note/note.d.ts +10 -0
  141. package/lib/{text/text.template.d.ts → note/note.template.d.ts} +2 -2
  142. package/lib/number-field/definition.d.ts +4 -0
  143. package/lib/number-field/index.d.ts +1 -0
  144. package/lib/number-field/number-field.d.ts +14 -0
  145. package/lib/number-field/number-field.template.d.ts +4 -0
  146. package/lib/option/definition.d.ts +3 -0
  147. package/lib/option/index.d.ts +1 -0
  148. package/lib/option/option.d.ts +9 -0
  149. package/lib/option/option.template.d.ts +4 -0
  150. package/lib/popup/definition.d.ts +3 -0
  151. package/lib/popup/index.d.ts +1 -4
  152. package/lib/popup/popup.d.ts +8 -4
  153. package/lib/progress/definition.d.ts +3 -0
  154. package/lib/progress/index.d.ts +1 -2
  155. package/lib/progress/progress.d.ts +1 -1
  156. package/lib/progress-ring/definition.d.ts +3 -0
  157. package/lib/progress-ring/index.d.ts +1 -2
  158. package/lib/progress-ring/progress-ring.d.ts +2 -1
  159. package/lib/radio/definition.d.ts +3 -0
  160. package/lib/radio/index.d.ts +1 -0
  161. package/lib/radio/radio.d.ts +4 -0
  162. package/lib/radio/radio.template.d.ts +4 -0
  163. package/lib/radio-group/definition.d.ts +11 -0
  164. package/lib/radio-group/index.d.ts +1 -0
  165. package/lib/radio-group/radio-group.d.ts +4 -0
  166. package/lib/radio-group/radio-group.template.d.ts +4 -0
  167. package/lib/select/definition.d.ts +3 -0
  168. package/lib/select/index.d.ts +1 -0
  169. package/lib/select/select.d.ts +17 -0
  170. package/lib/select/select.template.d.ts +4 -0
  171. package/lib/side-drawer/definition.d.ts +3 -0
  172. package/lib/side-drawer/index.d.ts +1 -2
  173. package/lib/side-drawer/side-drawer.d.ts +3 -2
  174. package/lib/slider/definition.d.ts +3 -0
  175. package/lib/slider/index.d.ts +1 -0
  176. package/lib/slider/slider.d.ts +4 -0
  177. package/lib/slider/slider.template.d.ts +4 -0
  178. package/lib/switch/definition.d.ts +3 -0
  179. package/lib/switch/index.d.ts +1 -0
  180. package/lib/switch/switch.d.ts +7 -0
  181. package/lib/switch/switch.template.d.ts +4 -0
  182. package/lib/tab/definition.d.ts +3 -0
  183. package/lib/tab/index.d.ts +1 -0
  184. package/lib/tab/tab.d.ts +9 -0
  185. package/lib/tab/tab.template.d.ts +3 -0
  186. package/lib/tab-panel/definition.d.ts +3 -0
  187. package/lib/tab-panel/index.d.ts +1 -0
  188. package/lib/tab-panel/tab-panel.d.ts +3 -0
  189. package/lib/tab-panel/tab-panel.template.d.ts +2 -0
  190. package/lib/tabs/definition.d.ts +3 -0
  191. package/lib/tabs/index.d.ts +1 -0
  192. package/lib/tabs/tabs.d.ts +10 -0
  193. package/lib/tabs/tabs.template.d.ts +2 -0
  194. package/lib/text-anchor/definition.d.ts +3 -0
  195. package/lib/text-anchor/index.d.ts +1 -2
  196. package/lib/text-area/definition.d.ts +3 -0
  197. package/lib/text-area/index.d.ts +1 -0
  198. package/lib/text-area/text-area.d.ts +9 -0
  199. package/lib/text-area/text-area.template.d.ts +4 -0
  200. package/lib/text-field/definition.d.ts +3 -0
  201. package/lib/text-field/index.d.ts +1 -0
  202. package/lib/text-field/text-field.d.ts +14 -0
  203. package/lib/text-field/text-field.template.d.ts +4 -0
  204. package/lib/tooltip/definition.d.ts +3 -0
  205. package/lib/tooltip/index.d.ts +1 -3
  206. package/lib/tooltip/tooltip.d.ts +6 -6
  207. package/listbox/index.js +27 -0
  208. package/menu/index.js +30 -0
  209. package/menu-item/index.js +20 -0
  210. package/nav/index.js +4 -0
  211. package/nav-disclosure/index.js +17 -0
  212. package/nav-item/index.js +22 -0
  213. package/note/index.js +15 -0
  214. package/number-field/index.js +459 -0
  215. package/option/index.js +21 -0
  216. package/package.json +21 -11
  217. package/popup/index.js +21 -2062
  218. package/progress/index.js +6 -98
  219. package/progress-ring/index.js +6 -75
  220. package/radio/index.js +12 -0
  221. package/radio-group/index.js +11 -0
  222. package/select/index.js +34 -0
  223. package/shared/affix.js +2 -8
  224. package/shared/anchor.js +10 -2
  225. package/shared/apply-mixins.js +5 -4
  226. package/shared/aria-global.js +2 -86
  227. package/shared/aria.js +9 -0
  228. package/shared/base-progress.js +5 -0
  229. package/shared/breadcrumb-item.js +1 -1
  230. package/shared/button.js +200 -0
  231. package/shared/calendar-event.js +19 -0
  232. package/shared/definition.js +225 -0
  233. package/shared/definition10.js +99 -0
  234. package/shared/definition11.js +48 -0
  235. package/shared/definition12.js +763 -0
  236. package/shared/definition13.js +111 -0
  237. package/shared/definition14.js +114 -0
  238. package/shared/definition15.js +32 -0
  239. package/shared/definition16.js +172 -0
  240. package/shared/definition17.js +727 -0
  241. package/shared/definition18.js +1531 -0
  242. package/shared/definition19.js +261 -0
  243. package/shared/definition2.js +150 -0
  244. package/shared/definition20.js +221 -0
  245. package/shared/definition21.js +78 -0
  246. package/shared/definition22.js +87 -0
  247. package/shared/definition23.js +58 -0
  248. package/shared/definition24.js +44 -0
  249. package/shared/definition25.js +58 -0
  250. package/shared/definition26.js +348 -0
  251. package/shared/definition27.js +363 -0
  252. package/shared/definition28.js +21 -0
  253. package/shared/definition29.js +75 -0
  254. package/shared/definition3.js +29 -0
  255. package/shared/definition30.js +31 -0
  256. package/shared/definition31.js +49 -0
  257. package/shared/definition32.js +94 -0
  258. package/shared/definition33.js +77 -0
  259. package/shared/definition34.js +45 -0
  260. package/shared/definition35.js +435 -0
  261. package/shared/definition36.js +634 -0
  262. package/shared/definition37.js +86 -0
  263. package/shared/definition38.js +592 -0
  264. package/shared/definition39.js +147 -0
  265. package/shared/definition4.js +19 -0
  266. package/shared/definition40.js +67 -0
  267. package/shared/definition41.js +32 -0
  268. package/shared/definition42.js +440 -0
  269. package/shared/definition43.js +282 -0
  270. package/shared/definition44.js +119 -0
  271. package/shared/definition45.js +77 -0
  272. package/shared/definition5.js +38 -0
  273. package/shared/definition6.js +60 -0
  274. package/shared/definition7.js +45 -0
  275. package/shared/definition8.js +113 -0
  276. package/shared/definition9.js +107 -0
  277. package/shared/design-system/index.d.ts +1 -1
  278. package/shared/dialog-polyfill.esm.js +858 -0
  279. package/shared/direction.js +20 -0
  280. package/shared/dom.js +8 -0
  281. package/shared/enums.js +70 -0
  282. package/shared/es.object.assign.js +2 -3
  283. package/shared/es.regexp.to-string.js +59 -0
  284. package/shared/focus.js +5 -0
  285. package/shared/focus2.js +11 -0
  286. package/shared/form-associated.js +466 -0
  287. package/shared/form-elements.js +127 -0
  288. package/shared/icon.js +538 -567
  289. package/shared/index.js +1664 -83
  290. package/shared/key-codes.js +100 -0
  291. package/shared/listbox.js +995 -0
  292. package/shared/numbers.js +34 -0
  293. package/shared/patterns/affix.d.ts +1 -1
  294. package/shared/patterns/focus.d.ts +3 -0
  295. package/shared/patterns/form-elements/form-elements.d.ts +43 -0
  296. package/shared/patterns/form-elements/index.d.ts +1 -0
  297. package/shared/patterns/index.d.ts +2 -0
  298. package/shared/radio.js +127 -0
  299. package/shared/ref.js +41 -0
  300. package/shared/repeat.js +764 -0
  301. package/shared/select.options.js +10 -0
  302. package/shared/slotted.js +1 -1
  303. package/shared/start-end.js +50 -0
  304. package/shared/string-trim.js +40 -0
  305. package/shared/strings.js +9 -0
  306. package/shared/text-anchor.js +0 -2
  307. package/shared/text-anchor.template.js +6 -5
  308. package/shared/text-field.js +3 -0
  309. package/shared/text-field2.js +225 -0
  310. package/shared/to-string.js +51 -0
  311. package/side-drawer/index.js +5 -81
  312. package/slider/index.js +17 -0
  313. package/styles/core/all.css +83 -0
  314. package/styles/core/theme.css +11 -0
  315. package/styles/core/typography.css +77 -0
  316. package/styles/tokens/theme-dark.css +228 -0
  317. package/styles/tokens/theme-light.css +228 -0
  318. package/switch/index.js +18 -0
  319. package/tab/index.js +16 -0
  320. package/tab-panel/index.js +4 -0
  321. package/tabs/index.js +24 -0
  322. package/text-anchor/index.js +11 -6
  323. package/text-area/index.js +23 -0
  324. package/text-field/index.js +24 -0
  325. package/tooltip/index.js +18 -55
  326. package/vivid.api.json +3695 -0
  327. package/lib/text/index.d.ts +0 -2
  328. package/lib/text/text.d.ts +0 -10
  329. package/shared/index2.js +0 -21
  330. package/shared/object-set-prototype-of.js +0 -1009
  331. package/shared/style-inject.es.js +0 -28
  332. package/shared/web.dom-collections.iterator.js +0 -473
  333. package/sidenav-item/index.js +0 -39
  334. package/styles/fonts/spezia.css +0 -23
  335. package/styles/themes/dark.css +0 -205
  336. package/styles/themes/light.css +0 -205
  337. package/text/index.js +0 -46
package/progress/index.js CHANGED
@@ -1,99 +1,7 @@
1
- import { _ 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';
4
- import { F as classofRaw, _ as _export, C as functionUncurryThis } from '../shared/object-set-prototype-of.js';
5
- import { B as BaseProgress } from '../shared/base-progress.js';
6
- import { w as when } from '../shared/when.js';
7
- import { c as classNames } from '../shared/class-names.js';
1
+ import { r as registerProgress } from '../shared/definition32.js';
2
+ import '../shared/index.js';
3
+ import '../shared/base-progress.js';
4
+ import '../shared/when.js';
5
+ import '../shared/class-names.js';
8
6
 
9
- var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n}\n\n.base:not(.connotation-pacific):not(.connotation-cta):not(.connotation-alert):not(.connotation-success) {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n}\n\n.base.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n\n.base.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n\n.base.connotation-pacific {\n --connotation: linear-gradient(to right, var(--vvd-color-info-30), var(--vvd-color-cta-70));\n}\n\n.indeterminate {\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n}\n\n.progress {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 100%;\n}\n.progress .indeterminate {\n background-color: var(--connotation);\n}\n\n.determinate {\n background-color: var(--connotation);\n block-size: 100%;\n border-radius: 3px;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--connotation);\n}\n\n.indeterminate-indicator-1, .indeterminate-indicator-2 {\n position: absolute;\n animation: indeterminate-1 2s infinite;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 30%;\n opacity: 0;\n}\n\n.indeterminate-indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.connotation-pacific .indeterminate-indicator-1, .connotation-pacific .indeterminate-indicator-2 {\n background-image: var(--connotation);\n}\n\n.reverse .indeterminate-indicator-1, .reverse .indeterminate-indicator-2 {\n animation-direction: reverse;\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n\n.base.shape-sharp .determinate, .base.shape-sharp .indeterminate {\n border-radius: 0;\n}\n\n.base.paused .indeterminate-indicator-1,\n.base.paused .indeterminate-indicator-2 {\n animation-play-state: paused;\n background-color: var(--connotation);\n}\n\n.base.paused .determinate {\n background-color: var(--vvd-color-neutral-40);\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
10
- styleInject(css_248z);
11
-
12
- var classof = classofRaw;
13
-
14
- // `IsArray` abstract operation
15
- // https://tc39.es/ecma262/#sec-isarray
16
- // eslint-disable-next-line es/no-array-isarray -- safe
17
- var isArray$1 = Array.isArray || function isArray(argument) {
18
- return classof(argument) == 'Array';
19
- };
20
-
21
- var $ = _export;
22
- var uncurryThis = functionUncurryThis;
23
- var isArray = isArray$1;
24
-
25
- var un$Reverse = uncurryThis([].reverse);
26
- var test = [1, 2];
27
-
28
- // `Array.prototype.reverse` method
29
- // https://tc39.es/ecma262/#sec-array.prototype.reverse
30
- // fix for Safari 12.0 bug
31
- // https://bugs.webkit.org/show_bug.cgi?id=188794
32
- $({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
33
- reverse: function reverse() {
34
- // eslint-disable-next-line no-self-assign -- dirty hack
35
- if (isArray(this)) this.length = this.length;
36
- return un$Reverse(this);
37
- }
38
- });
39
-
40
- class Progress extends BaseProgress {
41
- constructor() {
42
- super(...arguments);
43
- this.reverse = false;
44
- }
45
-
46
- }
47
-
48
- __decorate([attr(), __metadata("design:type", String)], Progress.prototype, "shape", void 0);
49
-
50
- __decorate([attr(), __metadata("design:type", String)], Progress.prototype, "connotation", void 0);
51
-
52
- __decorate([attr({
53
- mode: 'boolean'
54
- }), __metadata("design:type", Object)], Progress.prototype, "reverse", void 0);
55
-
56
- let _2 = t => t,
57
- _t,
58
- _t2,
59
- _t3;
60
-
61
- const getClasses = _ => classNames('base', [`connotation-${_.connotation}`, !!_.connotation], [`shape-${_.shape}`, !!_.shape], ['reverse', _.reverse]);
62
-
63
- const ProgressTemplate = _ => {
64
- return html(_t || (_t = _2`
65
- <div
66
- role="progressbar"
67
- aria-valuenow="${0}"
68
- aria-valuemin="${0}"
69
- aria-valuemax="${0}"
70
- class="${0} ${0}"
71
- >
72
- ${0}
73
- ${0}
74
- </div>
75
- `), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
76
- <div class="progress">
77
- <div
78
- class="determinate"
79
- style="width: ${0}%"
80
- ></div>
81
- </div>
82
- `), x => x.percentComplete)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
83
- <div class="progress indeterminate">
84
- <span class="indeterminate" name="indeterminate">
85
- <span class="indeterminate-indicator-1"></span>
86
- <span class="indeterminate-indicator-2"></span>
87
- </span>
88
- </div>
89
- `))));
90
- };
91
-
92
- const vividProgress = Progress.compose({
93
- baseName: 'progress',
94
- template: ProgressTemplate,
95
- styles: css_248z
96
- });
97
- designSystem.register(vividProgress());
98
-
99
- export { vividProgress };
7
+ registerProgress();
@@ -1,76 +1,7 @@
1
- import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
2
- import { s as styleInject } from '../shared/style-inject.es.js';
3
- import { B as BaseProgress } from '../shared/base-progress.js';
4
- import { w as when } from '../shared/when.js';
5
- import { c as classNames } from '../shared/class-names.js';
1
+ import { r as registerProgressRing } from '../shared/definition33.js';
2
+ import '../shared/index.js';
3
+ import '../shared/base-progress.js';
4
+ import '../shared/when.js';
5
+ import '../shared/class-names.js';
6
6
 
7
- var css_248z = ".base {\n width: 36px;\n height: 36px;\n align-items: center;\n outline: none;\n}\n.base.connotation-cta {\n --connotation: var(--vvd-color-cta);\n --on-connotation: var(--vvd-color-on-cta);\n}\n\n.base:not(.connotation-cta):not(.connotation-alert):not(.connotation-success) {\n --connotation: var(--vvd-color-primary);\n --on-connotation: var(--vvd-color-on-primary);\n}\n\n.base.connotation-alert {\n --connotation: var(--vvd-color-alert);\n --on-connotation: var(--vvd-color-on-alert);\n}\n\n.base.connotation-success {\n --connotation: var(--vvd-color-success);\n --on-connotation: var(--vvd-color-on-success);\n}\n\n.base.base-large {\n width: 48px;\n height: 48px;\n}\n\n.base.base-small {\n width: 24px;\n height: 24px;\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: var(--connotation);\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: var(--connotation);\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n stroke: var(--vvd-color-neutral);\n}\n\n.base.paused .determinate {\n stroke: var(--vvd-color-neutral);\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
8
- styleInject(css_248z);
9
-
10
- class ProgressRing extends BaseProgress {}
11
-
12
- __decorate([attr(), __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
13
-
14
- let _2 = t => t,
15
- _t,
16
- _t2,
17
- _t3;
18
-
19
- const getClasses = _ => classNames('base', [`connotation-${_.connotation}`, !!_.connotation]);
20
-
21
- const progressSegments = 44;
22
- const ProgressRingTemplate = _ => html(_t || (_t = _2`
23
- <div
24
- role="progressbar"
25
- aria-valuenow="${0}"
26
- aria-valuemin="${0}"
27
- aria-valuemax="${0}"
28
- class="${0} ${0}"
29
- >
30
- ${0}
31
- ${0}
32
- </div>
33
- `), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
34
- <svg
35
- class="progress"
36
- viewBox="0 0 16 16"
37
- >
38
- <circle
39
- class="background"
40
- cx="8px"
41
- cy="8px"
42
- r="7px"
43
- ></circle>
44
- <circle
45
- class="determinate"
46
- style="stroke-dasharray: ${0}px ${0}px"
47
- cx="8px"
48
- cy="8px"
49
- r="7px"
50
- ></circle>
51
- </svg>
52
- `), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
53
- <svg class="progress" viewBox="0 0 16 16">
54
- <circle
55
- class="background"
56
- cx="8px"
57
- cy="8px"
58
- r="7px"
59
- ></circle>
60
- <circle
61
- class="indeterminate-indicator-1"
62
- cx="8px"
63
- cy="8px"
64
- r="7px"
65
- ></circle>
66
- </svg>
67
- `))));
68
-
69
- const vividProgressRing = ProgressRing.compose({
70
- baseName: 'progress-ring',
71
- template: ProgressRingTemplate,
72
- styles: css_248z
73
- });
74
- designSystem.register(vividProgressRing());
75
-
76
- export { vividProgressRing };
7
+ registerProgressRing();
package/radio/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import { r as registerRadio } from '../shared/definition34.js';
2
+ import '../shared/index.js';
3
+ import '../shared/definition4.js';
4
+ import '../shared/focus.js';
5
+ import '../shared/radio.js';
6
+ import '../shared/form-associated.js';
7
+ import '../shared/key-codes.js';
8
+ import '../shared/focus2.js';
9
+ import '../shared/when.js';
10
+ import '../shared/class-names.js';
11
+
12
+ registerRadio();
@@ -0,0 +1,11 @@
1
+ import { r as registerRadioGroup } from '../shared/definition35.js';
2
+ import '../shared/index.js';
3
+ import '../shared/direction.js';
4
+ import '../shared/key-codes.js';
5
+ import '../shared/aria.js';
6
+ import '../shared/radio.js';
7
+ import '../shared/form-associated.js';
8
+ import '../shared/slotted.js';
9
+ import '../shared/when.js';
10
+
11
+ registerRadioGroup();
@@ -0,0 +1,34 @@
1
+ import { r as registerSelect } from '../shared/definition36.js';
2
+ import '../shared/index.js';
3
+ import '../shared/definition4.js';
4
+ import '../shared/focus.js';
5
+ import '../shared/definition18.js';
6
+ import '../shared/definition9.js';
7
+ import '../shared/definition3.js';
8
+ import '../shared/icon.js';
9
+ import '../shared/to-string.js';
10
+ import '../shared/string-trim.js';
11
+ import '../shared/_has.js';
12
+ import '../shared/class-names.js';
13
+ import '../shared/when.js';
14
+ import '../shared/affix.js';
15
+ import '../shared/button.js';
16
+ import '../shared/apply-mixins.js';
17
+ import '../shared/form-associated.js';
18
+ import '../shared/key-codes.js';
19
+ import '../shared/aria-global.js';
20
+ import '../shared/start-end.js';
21
+ import '../shared/ref.js';
22
+ import '../shared/focus2.js';
23
+ import '../shared/definition15.js';
24
+ import '../shared/es.object.assign.js';
25
+ import '../shared/definition19.js';
26
+ import '../shared/dom.js';
27
+ import '../shared/form-elements.js';
28
+ import '../shared/listbox.js';
29
+ import '../shared/strings.js';
30
+ import '../shared/numbers.js';
31
+ import '../shared/select.options.js';
32
+ import '../shared/slotted.js';
33
+
34
+ registerSelect();
package/shared/affix.js CHANGED
@@ -1,29 +1,23 @@
1
- import './web.dom-collections.iterator.js';
2
1
  import { _ as __decorate, a as attr, b as __metadata, h as html } from './index.js';
3
2
  import { I as Icon } from './icon.js';
4
3
 
5
4
  let _ = t => t,
6
- _t;
5
+ _t;
7
6
  class AffixIcon {}
8
-
9
7
  __decorate([attr, __metadata("design:type", String)], AffixIcon.prototype, "icon", void 0);
10
-
11
8
  class AffixIconWithTrailing extends AffixIcon {
12
9
  constructor() {
13
10
  super(...arguments);
14
11
  this.iconTrailing = false;
15
12
  }
16
-
17
13
  }
18
-
19
14
  __decorate([attr({
20
15
  mode: 'boolean',
21
16
  attribute: 'icon-trailing'
22
17
  }), __metadata("design:type", Object)], AffixIconWithTrailing.prototype, "iconTrailing", void 0);
23
-
24
18
  const affixIconTemplateFactory = context => {
25
19
  const iconTag = context.tagFor(Icon);
26
- return icon => icon ? html(_t || (_t = _`<span class="icon"><${0} :type="${0}"></${0}></span>`), iconTag, () => icon, iconTag) : null;
20
+ return icon => icon ? html(_t || (_t = _`<span class="${0}"><${0} :name="${0}"></${0}></span>`), 'icon', iconTag, () => icon, iconTag) : null;
27
21
  };
28
22
 
29
23
  export { AffixIconWithTrailing as A, affixIconTemplateFactory as a, AffixIcon as b };
package/shared/anchor.js CHANGED
@@ -1,11 +1,18 @@
1
1
  import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
2
2
  import { a as applyMixins } from './apply-mixins.js';
3
- import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from './aria-global.js';
3
+ import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
4
+ import { S as StartEnd } from './start-end.js';
4
5
 
5
6
  /**
6
7
  * An Anchor Custom HTML Element.
7
8
  * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
8
9
  *
10
+ * @slot start - Content which can be provided before the anchor content
11
+ * @slot end - Content which can be provided after the anchor content
12
+ * @slot - The default slot for anchor content
13
+ * @csspart control - The anchor element
14
+ * @csspart content - The element wrapping anchor content
15
+ *
9
16
  * @public
10
17
  */
11
18
  class Anchor extends FoundationElement {
@@ -20,7 +27,8 @@ class Anchor extends FoundationElement {
20
27
  var _a;
21
28
  // Check to see if delegatesFocus is supported
22
29
  if (window.ShadowRoot &&
23
- !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") && ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
30
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
31
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
24
32
  this.focus = () => {
25
33
  this.control.focus();
26
34
  };
@@ -1,9 +1,12 @@
1
+ import { S as AttributeConfiguration } from './index.js';
2
+
1
3
  /**
2
4
  * Apply mixins to a constructor.
3
5
  * Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }.
4
6
  * @public
5
7
  */
6
8
  function applyMixins(derivedCtor, ...baseCtors) {
9
+ const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
7
10
  baseCtors.forEach(baseCtor => {
8
11
  Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
9
12
  if (name !== "constructor") {
@@ -12,10 +15,8 @@ function applyMixins(derivedCtor, ...baseCtors) {
12
15
  Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
13
16
  }
14
17
  });
15
- if (baseCtor.attributes) {
16
- const existing = derivedCtor.attributes || [];
17
- derivedCtor.attributes = existing.concat(baseCtor.attributes);
18
- }
18
+ const baseAttributes = AttributeConfiguration.locate(baseCtor);
19
+ baseAttributes.forEach(x => derivedAttributes.push(x));
19
20
  });
20
21
  }
21
22
 
@@ -1,88 +1,4 @@
1
- import { A as AttachedBehaviorHTMLDirective, h as html, _ as __decorate, a as attr } from './index.js';
2
-
3
- /**
4
- * The runtime behavior for template references.
5
- * @public
6
- */
7
- class RefBehavior {
8
- /**
9
- * Creates an instance of RefBehavior.
10
- * @param target - The element to reference.
11
- * @param propertyName - The name of the property to assign the reference to.
12
- */
13
- constructor(target, propertyName) {
14
- this.target = target;
15
- this.propertyName = propertyName;
16
- }
17
- /**
18
- * Bind this behavior to the source.
19
- * @param source - The source to bind to.
20
- * @param context - The execution context that the binding is operating within.
21
- */
22
- bind(source) {
23
- source[this.propertyName] = this.target;
24
- }
25
- /**
26
- * Unbinds this behavior from the source.
27
- * @param source - The source to unbind from.
28
- */
29
- /* eslint-disable-next-line @typescript-eslint/no-empty-function */
30
- unbind() { }
31
- }
32
- /**
33
- * A directive that observes the updates a property with a reference to the element.
34
- * @param propertyName - The name of the property to assign the reference to.
35
- * @public
36
- */
37
- function ref(propertyName) {
38
- return new AttachedBehaviorHTMLDirective("fast-ref", RefBehavior, propertyName);
39
- }
40
-
41
- /**
42
- * A mixin class implementing start and end elements.
43
- * These are generally used to decorate text elements with icons or other visual indicators.
44
- * @public
45
- */
46
- class StartEnd {
47
- handleStartContentChange() {
48
- this.startContainer.classList.toggle("start", this.start.assignedNodes().length > 0);
49
- }
50
- handleEndContentChange() {
51
- this.endContainer.classList.toggle("end", this.end.assignedNodes().length > 0);
52
- }
53
- }
54
- /**
55
- * The template for the end element.
56
- * For use with {@link StartEnd}
57
- *
58
- * @public
59
- * @deprecated - use endSlotTemplate
60
- */
61
- html `
62
- <span part="end" ${ref("endContainer")}>
63
- <slot
64
- name="end"
65
- ${ref("end")}
66
- @slotchange="${x => x.handleEndContentChange()}"
67
- ></slot>
68
- </span>
69
- `;
70
- /**
71
- * The template for the start element.
72
- * For use with {@link StartEnd}
73
- *
74
- * @public
75
- * @deprecated - use startSlotTemplate
76
- */
77
- html `
78
- <span part="start" ${ref("startContainer")}>
79
- <slot
80
- name="start"
81
- ${ref("start")}
82
- @slotchange="${x => x.handleStartContentChange()}"
83
- ></slot>
84
- </span>
85
- `;
1
+ import { _ as __decorate, a as attr } from './index.js';
86
2
 
87
3
  /**
88
4
  * Some states and properties are applicable to all host language elements regardless of whether a role is applied.
@@ -153,4 +69,4 @@ __decorate([
153
69
  attr({ attribute: "aria-roledescription" })
154
70
  ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
155
71
 
156
- export { ARIAGlobalStatesAndProperties as A, StartEnd as S, ref as r };
72
+ export { ARIAGlobalStatesAndProperties as A };
package/shared/aria.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Standard orientation values
3
+ */
4
+ const Orientation = {
5
+ horizontal: "horizontal",
6
+ vertical: "vertical",
7
+ };
8
+
9
+ export { Orientation as O };
@@ -4,6 +4,11 @@ import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumber
4
4
  * An Progress HTML Element.
5
5
  * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
6
6
  *
7
+ * @slot indeterminate - The slot for a custom indeterminate indicator
8
+ * @csspart progress - Represents the progress element
9
+ * @csspart determinate - The determinate indicator
10
+ * @csspart indeterminate - The indeterminate indicator
11
+ *
7
12
  * @public
8
13
  */
9
14
  class BaseProgress extends FoundationElement {
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate, o as observable } from './index.js';
2
2
  import { A as Anchor, D as DelegatesARIALink } from './anchor.js';
3
3
  import { a as applyMixins } from './apply-mixins.js';
4
- import { S as StartEnd } from './aria-global.js';
4
+ import { S as StartEnd } from './start-end.js';
5
5
 
6
6
  /**
7
7
  * A Breadcrumb Item Custom HTML Element.
@@ -0,0 +1,200 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
2
+ import { a as applyMixins } from './apply-mixins.js';
3
+ import { F as FormAssociated } from './form-associated.js';
4
+ import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
5
+ import { S as StartEnd } from './start-end.js';
6
+
7
+ class _Button extends FoundationElement {
8
+ }
9
+ /**
10
+ * A form-associated base class for the {@link @microsoft/fast-foundation#(Button:class)} component.
11
+ *
12
+ * @internal
13
+ */
14
+ class FormAssociatedButton extends FormAssociated(_Button) {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.proxy = document.createElement("input");
18
+ }
19
+ }
20
+
21
+ /**
22
+ * A Button Custom HTML Element.
23
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
24
+ *
25
+ * @slot start - Content which can be provided before the button content
26
+ * @slot end - Content which can be provided after the button content
27
+ * @slot - The default slot for button content
28
+ * @csspart control - The button element
29
+ * @csspart content - The element wrapping button content
30
+ *
31
+ * @public
32
+ */
33
+ class Button extends FormAssociatedButton {
34
+ constructor() {
35
+ super(...arguments);
36
+ /**
37
+ * Prevent events to propagate if disabled and has no slotted content wrapped in HTML elements
38
+ * @internal
39
+ */
40
+ this.handleClick = (e) => {
41
+ var _a;
42
+ if (this.disabled && ((_a = this.defaultSlottedContent) === null || _a === void 0 ? void 0 : _a.length) <= 1) {
43
+ e.stopPropagation();
44
+ }
45
+ };
46
+ /**
47
+ * Submits the parent form
48
+ */
49
+ this.handleSubmission = () => {
50
+ if (!this.form) {
51
+ return;
52
+ }
53
+ const attached = this.proxy.isConnected;
54
+ if (!attached) {
55
+ this.attachProxy();
56
+ }
57
+ // Browser support for requestSubmit is not comprehensive
58
+ // so click the proxy if it isn't supported
59
+ typeof this.form.requestSubmit === "function"
60
+ ? this.form.requestSubmit(this.proxy)
61
+ : this.proxy.click();
62
+ if (!attached) {
63
+ this.detachProxy();
64
+ }
65
+ };
66
+ /**
67
+ * Resets the parent form
68
+ */
69
+ this.handleFormReset = () => {
70
+ var _a;
71
+ (_a = this.form) === null || _a === void 0 ? void 0 : _a.reset();
72
+ };
73
+ /**
74
+ * Overrides the focus call for where delegatesFocus is unsupported.
75
+ * This check works for Chrome, Edge Chromium, FireFox, and Safari
76
+ * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
77
+ */
78
+ this.handleUnsupportedDelegatesFocus = () => {
79
+ var _a;
80
+ // Check to see if delegatesFocus is supported
81
+ if (window.ShadowRoot &&
82
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
83
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
84
+ this.focus = () => {
85
+ this.control.focus();
86
+ };
87
+ }
88
+ };
89
+ }
90
+ formactionChanged() {
91
+ if (this.proxy instanceof HTMLInputElement) {
92
+ this.proxy.formAction = this.formaction;
93
+ }
94
+ }
95
+ formenctypeChanged() {
96
+ if (this.proxy instanceof HTMLInputElement) {
97
+ this.proxy.formEnctype = this.formenctype;
98
+ }
99
+ }
100
+ formmethodChanged() {
101
+ if (this.proxy instanceof HTMLInputElement) {
102
+ this.proxy.formMethod = this.formmethod;
103
+ }
104
+ }
105
+ formnovalidateChanged() {
106
+ if (this.proxy instanceof HTMLInputElement) {
107
+ this.proxy.formNoValidate = this.formnovalidate;
108
+ }
109
+ }
110
+ formtargetChanged() {
111
+ if (this.proxy instanceof HTMLInputElement) {
112
+ this.proxy.formTarget = this.formtarget;
113
+ }
114
+ }
115
+ typeChanged(previous, next) {
116
+ if (this.proxy instanceof HTMLInputElement) {
117
+ this.proxy.type = this.type;
118
+ }
119
+ next === "submit" && this.addEventListener("click", this.handleSubmission);
120
+ previous === "submit" && this.removeEventListener("click", this.handleSubmission);
121
+ next === "reset" && this.addEventListener("click", this.handleFormReset);
122
+ previous === "reset" && this.removeEventListener("click", this.handleFormReset);
123
+ }
124
+ /** {@inheritDoc (FormAssociated:interface).validate} */
125
+ validate() {
126
+ super.validate(this.control);
127
+ }
128
+ /**
129
+ * @internal
130
+ */
131
+ connectedCallback() {
132
+ var _a;
133
+ super.connectedCallback();
134
+ this.proxy.setAttribute("type", this.type);
135
+ this.handleUnsupportedDelegatesFocus();
136
+ const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
137
+ if (elements) {
138
+ elements.forEach((span) => {
139
+ span.addEventListener("click", this.handleClick);
140
+ });
141
+ }
142
+ }
143
+ /**
144
+ * @internal
145
+ */
146
+ disconnectedCallback() {
147
+ var _a;
148
+ super.disconnectedCallback();
149
+ const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
150
+ if (elements) {
151
+ elements.forEach((span) => {
152
+ span.removeEventListener("click", this.handleClick);
153
+ });
154
+ }
155
+ }
156
+ }
157
+ __decorate([
158
+ attr({ mode: "boolean" })
159
+ ], Button.prototype, "autofocus", void 0);
160
+ __decorate([
161
+ attr({ attribute: "form" })
162
+ ], Button.prototype, "formId", void 0);
163
+ __decorate([
164
+ attr
165
+ ], Button.prototype, "formaction", void 0);
166
+ __decorate([
167
+ attr
168
+ ], Button.prototype, "formenctype", void 0);
169
+ __decorate([
170
+ attr
171
+ ], Button.prototype, "formmethod", void 0);
172
+ __decorate([
173
+ attr({ mode: "boolean" })
174
+ ], Button.prototype, "formnovalidate", void 0);
175
+ __decorate([
176
+ attr
177
+ ], Button.prototype, "formtarget", void 0);
178
+ __decorate([
179
+ attr
180
+ ], Button.prototype, "type", void 0);
181
+ __decorate([
182
+ observable
183
+ ], Button.prototype, "defaultSlottedContent", void 0);
184
+ /**
185
+ * Includes ARIA states and properties relating to the ARIA button role
186
+ *
187
+ * @public
188
+ */
189
+ class DelegatesARIAButton {
190
+ }
191
+ __decorate([
192
+ attr({ attribute: "aria-expanded" })
193
+ ], DelegatesARIAButton.prototype, "ariaExpanded", void 0);
194
+ __decorate([
195
+ attr({ attribute: "aria-pressed" })
196
+ ], DelegatesARIAButton.prototype, "ariaPressed", void 0);
197
+ applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
198
+ applyMixins(Button, StartEnd, DelegatesARIAButton);
199
+
200
+ export { Button as B };