@xplortech/apollo-core 2.11.0 → 2.12.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 (720) hide show
  1. package/.typings/apollo-components.html-data.json +99 -10
  2. package/AGENTS.md +27 -3
  3. package/README.md +12 -0
  4. package/build/components/accordion.css +1 -0
  5. package/build/components/application-shell.css +1 -0
  6. package/build/components/avatar.css +1 -0
  7. package/build/components/backdrop.css +1 -0
  8. package/build/components/badge.css +1 -0
  9. package/build/components/banner.css +1 -0
  10. package/build/components/breadcrumbs.css +1 -0
  11. package/build/components/button-row.css +1 -0
  12. package/build/components/button.css +1 -0
  13. package/build/components/calendar.css +1 -0
  14. package/build/components/checkbox-radio.css +1 -0
  15. package/build/components/choicelist.css +1 -0
  16. package/build/components/content-area.css +1 -0
  17. package/build/components/dashboard.css +1 -0
  18. package/build/components/data-card.css +1 -0
  19. package/build/components/divider.css +1 -0
  20. package/build/components/dropdown.css +1 -0
  21. package/build/components/dynamic-table-cell.css +1 -0
  22. package/build/components/dynamic-table-row.css +1 -0
  23. package/build/components/dynamic-table.css +1 -0
  24. package/build/components/grid.css +1 -0
  25. package/build/components/header-accordion.css +1 -0
  26. package/build/components/icon.css +1 -0
  27. package/build/components/input-color.css +1 -0
  28. package/build/components/input-date.css +1 -0
  29. package/build/components/input-file.css +1 -0
  30. package/build/components/input-phone.css +1 -0
  31. package/build/components/input-search.css +1 -0
  32. package/build/components/input-time.css +1 -0
  33. package/build/components/input.css +1 -0
  34. package/build/components/label.css +1 -0
  35. package/build/components/large-card.css +1 -0
  36. package/build/components/list-action.css +1 -0
  37. package/build/components/list-item.css +1 -0
  38. package/build/components/list.css +1 -0
  39. package/build/components/main-nav.css +1 -0
  40. package/build/components/modal.css +1 -0
  41. package/build/components/nav-item.css +1 -0
  42. package/build/components/pagination.css +1 -0
  43. package/build/components/panel.css +1 -0
  44. package/build/components/popover.css +1 -0
  45. package/build/components/progress-bar.css +1 -0
  46. package/build/components/progress-indicator.css +1 -0
  47. package/build/components/secondary-nav.css +1 -0
  48. package/build/components/select.css +1 -0
  49. package/build/components/side-nav.css +1 -0
  50. package/build/components/skeleton.css +1 -0
  51. package/build/components/slideout.css +1 -0
  52. package/build/components/spotlight.css +1 -0
  53. package/build/components/table-header-cell.css +1 -0
  54. package/build/components/table-header.css +1 -0
  55. package/build/components/table.css +1 -0
  56. package/build/components/tabs.css +1 -0
  57. package/build/components/tag.css +1 -0
  58. package/build/components/toast.css +1 -0
  59. package/build/components/toggle.css +1 -0
  60. package/build/components/toolbar.css +1 -0
  61. package/build/components/tooltip.css +1 -0
  62. package/build/components/top-nav.css +1 -0
  63. package/build/components/utility-bar.css +1 -0
  64. package/build/components-manifest.json +220 -0
  65. package/build/core.css +2 -0
  66. package/build/reset.css +394 -0
  67. package/build/style.css +2 -13345
  68. package/build/tailwind-theme.css +2 -0
  69. package/build/typography.css +1 -0
  70. package/build/variables/apollo.css +779 -0
  71. package/build/variables/field-edge.css +554 -0
  72. package/build/vendor/flatpickr.css +1 -0
  73. package/dist/apollo-core/apollo-core.css +2 -55
  74. package/dist/apollo-core/apollo-core.esm.js +1 -1
  75. package/dist/apollo-core/p-0095174c.entry.js +1 -0
  76. package/dist/apollo-core/p-020ecd66.entry.js +1 -0
  77. package/dist/apollo-core/p-0463c29f.entry.js +1 -0
  78. package/dist/apollo-core/p-091411e3.entry.js +1 -0
  79. package/dist/apollo-core/p-0be4dbb8.entry.js +1 -0
  80. package/dist/apollo-core/p-1139fac0.entry.js +1 -0
  81. package/dist/apollo-core/p-121d1a4b.entry.js +1 -0
  82. package/dist/apollo-core/p-140a96c7.entry.js +1 -0
  83. package/dist/apollo-core/p-1M1pu0C2.js +1 -0
  84. package/dist/apollo-core/p-1a417191.entry.js +1 -0
  85. package/dist/apollo-core/p-256ece8b.entry.js +1 -0
  86. package/dist/apollo-core/p-26861d09.entry.js +1 -0
  87. package/dist/apollo-core/p-26b6a0ed.entry.js +1 -0
  88. package/dist/apollo-core/p-39e71d86.entry.js +1 -0
  89. package/dist/apollo-core/p-3d9c90ee.entry.js +1 -0
  90. package/dist/apollo-core/p-3dd1de49.entry.js +1 -0
  91. package/dist/apollo-core/p-4129d971.entry.js +1 -0
  92. package/dist/apollo-core/p-46d21684.entry.js +1 -0
  93. package/dist/apollo-core/p-4e61587f.entry.js +1 -0
  94. package/dist/apollo-core/p-5afc9831.entry.js +1 -0
  95. package/dist/apollo-core/p-5ca18bc1.entry.js +1 -0
  96. package/dist/apollo-core/p-5d25a84a.entry.js +1 -0
  97. package/dist/apollo-core/p-5e5c5016.entry.js +1 -0
  98. package/dist/apollo-core/p-601b3ab5.entry.js +1 -0
  99. package/dist/apollo-core/p-616c5a32.entry.js +1 -0
  100. package/dist/apollo-core/p-638fd9b1.entry.js +1 -0
  101. package/dist/apollo-core/p-643c8038.entry.js +1 -0
  102. package/dist/apollo-core/p-707b1918.entry.js +1 -0
  103. package/dist/apollo-core/p-724c5038.entry.js +1 -0
  104. package/dist/apollo-core/p-76f64d65.entry.js +1 -0
  105. package/dist/apollo-core/p-7976cd3b.entry.js +1 -0
  106. package/dist/apollo-core/p-7f105d63.entry.js +1 -0
  107. package/dist/apollo-core/p-80a11cad.entry.js +1 -0
  108. package/dist/apollo-core/p-853418be.entry.js +1 -0
  109. package/dist/apollo-core/p-875e0eaa.entry.js +1 -0
  110. package/dist/apollo-core/p-8845106f.entry.js +1 -0
  111. package/dist/apollo-core/p-8a81ef98.entry.js +1 -0
  112. package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
  113. package/dist/apollo-core/p-8ddbf2e2.entry.js +1 -0
  114. package/dist/apollo-core/p-9747cf43.entry.js +1 -0
  115. package/dist/apollo-core/p-9b0174b1.entry.js +1 -0
  116. package/dist/apollo-core/p-9bf2ff9f.entry.js +1 -0
  117. package/dist/apollo-core/p-BFTU3MAI.js +1 -0
  118. package/dist/apollo-core/p-BQtbf88X.js +1 -0
  119. package/dist/apollo-core/p-CWdQxaaX.js +1 -0
  120. package/dist/apollo-core/p-C_PEOQWj.js +1 -0
  121. package/dist/apollo-core/p-CzwViN3U.js +1 -0
  122. package/dist/apollo-core/p-DkqlawVY.js +1 -0
  123. package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
  124. package/dist/apollo-core/p-_r9-FML8.js +1 -0
  125. package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
  126. package/dist/apollo-core/p-a33b0943.entry.js +1 -0
  127. package/dist/apollo-core/p-b537f72d.entry.js +1 -0
  128. package/dist/apollo-core/p-ba41bbd5.entry.js +1 -0
  129. package/dist/apollo-core/p-bb22ed2a.entry.js +1 -0
  130. package/dist/apollo-core/p-c25aebe5.entry.js +1 -0
  131. package/dist/apollo-core/p-c427a31d.entry.js +1 -0
  132. package/dist/apollo-core/p-cde21f72.entry.js +1 -0
  133. package/dist/apollo-core/p-d288c1d1.entry.js +1 -0
  134. package/dist/apollo-core/p-d37488d4.entry.js +1 -0
  135. package/dist/apollo-core/p-d3f2b8b8.entry.js +1 -0
  136. package/dist/apollo-core/p-dfaba114.entry.js +1 -0
  137. package/dist/apollo-core/p-e00ed4f4.entry.js +1 -0
  138. package/dist/apollo-core/p-e2a16242.entry.js +1 -0
  139. package/dist/apollo-core/p-e4ae3f60.entry.js +1 -0
  140. package/dist/apollo-core/p-ec488f9c.entry.js +1 -0
  141. package/dist/apollo-core/p-efa21ec0.entry.js +1 -0
  142. package/dist/apollo-core/p-f199ad66.entry.js +1 -0
  143. package/dist/apollo-core/p-f2bfe6a6.entry.js +1 -0
  144. package/dist/apollo-core/p-fd2756d8.entry.js +1 -0
  145. package/dist/apollo-core/p-fef6c256.entry.js +1 -0
  146. package/dist/apollo-core/p-ff8acf15.entry.js +1 -0
  147. package/dist/apollo-core/p-ukZKsqqq.js +2 -0
  148. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  149. package/dist/cjs/apollo-core.cjs.js +2 -2
  150. package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
  151. package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +756 -9
  152. package/dist/cjs/index-DP4JWqOH.js +456 -0
  153. package/dist/cjs/{lifecycle-Bf3QwiVa.js → lifecycle-DeSsFfQZ.js} +4 -0
  154. package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
  155. package/dist/cjs/loader.cjs.js +2 -2
  156. package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
  157. package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
  158. package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
  159. package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
  160. package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
  161. package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
  162. package/dist/cjs/xpl-avatar_3.cjs.entry.js +210 -0
  163. package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
  164. package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
  165. package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
  166. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
  167. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
  168. package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
  169. package/dist/cjs/xpl-button.cjs.entry.js +81 -0
  170. package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
  171. package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
  172. package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
  173. package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
  174. package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
  175. package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
  176. package/dist/cjs/xpl-dropdown_4.cjs.entry.js +577 -0
  177. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
  178. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
  179. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
  180. package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
  181. package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
  182. package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
  183. package/dist/{esm/xpl-avatar_54.entry.js → cjs/xpl-icon.cjs.entry.js} +1205 -10568
  184. package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
  185. package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
  186. package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
  187. package/dist/cjs/xpl-input_4.cjs.entry.js +524 -0
  188. package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
  189. package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
  190. package/dist/cjs/xpl-list.cjs.entry.js +396 -0
  191. package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
  192. package/dist/cjs/xpl-modal.cjs.entry.js +78 -0
  193. package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
  194. package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
  195. package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
  196. package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
  197. package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
  198. package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
  199. package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
  200. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
  201. package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
  202. package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
  203. package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
  204. package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
  205. package/dist/cjs/xpl-side-nav.cjs.entry.js +272 -0
  206. package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
  207. package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
  208. package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
  209. package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
  210. package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
  211. package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
  212. package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
  213. package/dist/cjs/xpl-table.cjs.entry.js +185 -0
  214. package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
  215. package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
  216. package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
  217. package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
  218. package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
  219. package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
  220. package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +16 -22
  221. package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
  222. package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
  223. package/dist/collection/collection-manifest.json +3 -1
  224. package/dist/collection/components/xpl-accordion/accordion.stories.js +6 -2
  225. package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
  226. package/dist/collection/components/xpl-application-shell/application-shell.stories.js +19 -1
  227. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
  228. package/dist/collection/components/xpl-avatar/avatar.stories.js +19 -9
  229. package/dist/collection/components/xpl-avatar/xpl-avatar.js +12 -16
  230. package/dist/collection/components/xpl-backdrop/backdrop.stories.js +17 -3
  231. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
  232. package/dist/collection/components/xpl-badge/badge.stories.js +21 -8
  233. package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
  234. package/dist/collection/components/xpl-banner/banner.stories.js +1 -1
  235. package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
  236. package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +5 -0
  237. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
  238. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
  239. package/dist/collection/components/xpl-button/button.stories.js +2 -0
  240. package/dist/collection/components/xpl-button/xpl-button.js +17 -14
  241. package/dist/collection/components/xpl-button-row/button-row.stories.js +9 -0
  242. package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
  243. package/dist/collection/components/xpl-calendar/calendar.stories.js +11 -3
  244. package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
  245. package/dist/collection/components/xpl-checkbox/checkbox.stories.js +11 -2
  246. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
  247. package/dist/collection/components/xpl-choicelist/choicelist.stories.js +24 -0
  248. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
  249. package/dist/collection/components/xpl-content-area/content-area.stories.js +13 -24
  250. package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
  251. package/dist/collection/components/xpl-dashboard/dashboard.stories.js +9 -0
  252. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
  253. package/dist/collection/components/xpl-data-card/data-card.stories.js +55 -0
  254. package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
  255. package/dist/collection/components/xpl-divider/divider.stories.js +11 -0
  256. package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
  257. package/dist/collection/components/xpl-dropdown/dropdown.stories.js +13 -5
  258. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
  259. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
  260. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
  261. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +108 -116
  262. package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +5 -1
  263. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
  264. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
  265. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
  266. package/dist/collection/components/xpl-grid/grid.stories.js +9 -0
  267. package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
  268. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
  269. package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +6 -2
  270. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
  271. package/dist/collection/components/xpl-icon/icons.stories.js +21 -2
  272. package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
  273. package/dist/collection/components/xpl-input/input.stories.js +120 -104
  274. package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +12 -6
  275. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
  276. package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
  277. package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
  278. package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
  279. package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
  280. package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
  281. package/dist/collection/components/xpl-input/xpl-input.js +69 -37
  282. package/dist/collection/components/xpl-large-card/large-card.stories.js +27 -3
  283. package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
  284. package/dist/collection/components/xpl-list/list.stories.js +11 -2
  285. package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
  286. package/dist/collection/components/xpl-list/xpl-list.js +21 -26
  287. package/dist/collection/components/xpl-main-nav/main-nav.stories.js +5 -0
  288. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
  289. package/dist/collection/components/xpl-modal/modal.stories.js +15 -6
  290. package/dist/collection/components/xpl-modal/xpl-modal.js +21 -8
  291. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
  292. package/dist/collection/components/xpl-pagination/pagination.stories.js +10 -2
  293. package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
  294. package/dist/collection/components/xpl-panel/panel.stories.js +9 -0
  295. package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
  296. package/dist/collection/components/xpl-popover/popover.stories.js +15 -5
  297. package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
  298. package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +10 -1
  299. package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
  300. package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +9 -1
  301. package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
  302. package/dist/collection/components/xpl-radio/radio.stories.js +9 -0
  303. package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
  304. package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +10 -5
  305. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
  306. package/dist/collection/components/xpl-select/select.stories.js +11 -8
  307. package/dist/collection/components/xpl-select/xpl-select.js +91 -49
  308. package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
  309. package/dist/collection/components/xpl-side-nav/side-nav.stories.js +454 -18
  310. package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
  311. package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
  312. package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
  313. package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +75 -12
  314. package/dist/collection/components/xpl-skeleton/skeleton.stories.js +10 -1
  315. package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
  316. package/dist/collection/components/xpl-slideout/slideout.stories.js +13 -0
  317. package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
  318. package/dist/collection/components/xpl-spotlight/spotlight.stories.js +22 -15
  319. package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
  320. package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
  321. package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
  322. package/dist/collection/components/xpl-table/table.stories.js +11 -2
  323. package/dist/collection/components/xpl-table/xpl-table.js +52 -36
  324. package/dist/collection/components/xpl-table-header/table-header.stories.js +9 -1
  325. package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
  326. package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +10 -2
  327. package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
  328. package/dist/collection/components/xpl-tabs/segment-control.stories.js +10 -1
  329. package/dist/collection/components/xpl-tabs/tabs.shared.js +77 -19
  330. package/dist/collection/components/xpl-tabs/tabs.stories.js +14 -2
  331. package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
  332. package/dist/collection/components/xpl-tag/tag.stories.js +15 -9
  333. package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
  334. package/dist/collection/components/xpl-toast/toast.stories.js +43 -17
  335. package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
  336. package/dist/collection/components/xpl-toggle/toggle.stories.js +8 -1
  337. package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
  338. package/dist/collection/components/xpl-toolbar/toolbar.stories.js +39 -0
  339. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
  340. package/dist/collection/components/xpl-tooltip/tooltip.stories.js +9 -0
  341. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
  342. package/dist/collection/components/xpl-top-nav/top-nav.stories.js +35 -16
  343. package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
  344. package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +50 -32
  345. package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +13 -18
  346. package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +96 -34
  347. package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +16 -9
  348. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
  349. package/dist/collection/utils/floating.js +69 -0
  350. package/dist/collection/utils/layout-ancestors.js +7 -0
  351. package/dist/collection/utils/lifecycle.js +13 -10
  352. package/dist/collection/utils/light-dom-slots.js +15 -0
  353. package/dist/collection/utils/slot-presence.js +6 -0
  354. package/dist/collection/utils/ssr-known-mismatches.js +50 -0
  355. package/dist/collection/utils/tab-a11y-ids.js +1 -2
  356. package/dist/components/index.d.ts +4 -0
  357. package/dist/components/index.js +1 -1
  358. package/dist/components/p-1M1pu0C2.js +1 -0
  359. package/dist/components/p-2jYZ7ACH.js +1 -0
  360. package/dist/components/p-BGqQbjLl.js +1 -0
  361. package/dist/components/p-BQtbf88X.js +1 -0
  362. package/dist/components/p-BSHdGbmH.js +1 -0
  363. package/dist/components/p-BnTsRbko.js +1 -0
  364. package/dist/components/p-Bseq_BgD.js +1 -0
  365. package/dist/components/p-CCgZCY_A.js +1 -0
  366. package/dist/components/p-CJzsLWeV.js +1 -0
  367. package/dist/components/p-CRKY79vL.js +1 -0
  368. package/dist/components/p-C_PEOQWj.js +1 -0
  369. package/dist/components/p-CjbPCnPP.js +1 -0
  370. package/dist/components/p-Cjxw-qOg.js +1 -0
  371. package/dist/components/p-D6JUVA1x.js +1 -0
  372. package/dist/components/p-DFGw0APN.js +1 -0
  373. package/dist/components/p-DLLQBDCb.js +1 -0
  374. package/dist/components/p-DS2Kv5fl.js +1 -0
  375. package/dist/components/p-DWUJ_jsx.js +1 -0
  376. package/dist/components/p-Di1NDy0w.js +1 -0
  377. package/dist/components/p-DkM7jyQB.js +1 -0
  378. package/dist/components/p-DkqlawVY.js +1 -0
  379. package/dist/components/p-Dqb1pIRo.js +1 -0
  380. package/dist/components/p-DsRsm61K.js +1 -0
  381. package/dist/components/p-DywQ3S73.js +1 -0
  382. package/dist/components/p-Dzp5p-eh.js +1 -0
  383. package/dist/components/p-Mehog36m.js +1 -0
  384. package/dist/components/p-RYnBuuDE.js +1 -0
  385. package/dist/components/p-_r9-FML8.js +1 -0
  386. package/dist/components/{p-ByJRw26d.js → p-imCMp2Nl.js} +1 -1
  387. package/dist/components/xpl-accordion.js +1 -1
  388. package/dist/components/xpl-application-shell.js +1 -1
  389. package/dist/components/xpl-avatar.js +1 -1
  390. package/dist/components/xpl-backdrop.js +1 -1
  391. package/dist/components/xpl-badge.js +1 -1
  392. package/dist/components/xpl-banner.js +1 -1
  393. package/dist/components/xpl-breadcrumb-item.js +1 -1
  394. package/dist/components/xpl-breadcrumbs.js +1 -1
  395. package/dist/components/xpl-button-row.js +1 -1
  396. package/dist/components/xpl-button.js +1 -1
  397. package/dist/components/xpl-calendar.js +1 -1
  398. package/dist/components/xpl-checkbox.js +1 -1
  399. package/dist/components/xpl-choicelist.js +1 -1
  400. package/dist/components/xpl-content-area.js +1 -1
  401. package/dist/components/xpl-dashboard.js +1 -1
  402. package/dist/components/xpl-data-card.js +1 -1
  403. package/dist/components/xpl-divider.js +1 -1
  404. package/dist/components/xpl-dropdown-group.js +1 -1
  405. package/dist/components/xpl-dropdown-heading.js +1 -1
  406. package/dist/components/xpl-dropdown-option.js +1 -1
  407. package/dist/components/xpl-dropdown.js +1 -1
  408. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  409. package/dist/components/xpl-dynamic-table-row.js +1 -1
  410. package/dist/components/xpl-dynamic-table.js +1 -1
  411. package/dist/components/xpl-grid-item.js +1 -1
  412. package/dist/components/xpl-grid.js +1 -1
  413. package/dist/components/xpl-header-accordion.js +1 -1
  414. package/dist/components/xpl-icon.js +1 -1
  415. package/dist/components/xpl-input-color.js +1 -1
  416. package/dist/components/xpl-input-date.js +1 -1
  417. package/dist/components/xpl-input-file.js +1 -1
  418. package/dist/components/xpl-input-phone.js +1 -1
  419. package/dist/components/xpl-input-search.js +1 -1
  420. package/dist/components/xpl-input-time.js +1 -1
  421. package/dist/components/xpl-input.js +1 -1
  422. package/dist/components/xpl-large-card.js +1 -1
  423. package/dist/components/xpl-list-item.js +1 -1
  424. package/dist/components/xpl-list.js +1 -1
  425. package/dist/components/xpl-main-nav.js +1 -1
  426. package/dist/components/xpl-modal.js +1 -1
  427. package/dist/components/xpl-nav-header-menu.js +1 -1
  428. package/dist/components/xpl-nav-item.js +1 -1
  429. package/dist/components/xpl-pagination.js +1 -1
  430. package/dist/components/xpl-panel.js +1 -1
  431. package/dist/components/xpl-popover.js +1 -1
  432. package/dist/components/xpl-progress-bar.js +1 -1
  433. package/dist/components/xpl-progress-indicator.js +1 -1
  434. package/dist/components/xpl-radio.js +1 -1
  435. package/dist/components/xpl-secondary-nav.js +1 -1
  436. package/dist/components/xpl-select.js +1 -1
  437. package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
  438. package/dist/components/xpl-side-nav-header-item.js +1 -0
  439. package/dist/components/xpl-side-nav-item.js +1 -1
  440. package/dist/components/xpl-side-nav-section.d.ts +11 -0
  441. package/dist/components/xpl-side-nav-section.js +1 -0
  442. package/dist/components/xpl-side-nav.js +1 -1
  443. package/dist/components/xpl-skeleton.js +1 -1
  444. package/dist/components/xpl-slideout.js +1 -1
  445. package/dist/components/xpl-spotlight.js +1 -1
  446. package/dist/components/xpl-tab-panel.js +1 -1
  447. package/dist/components/xpl-tab.js +1 -1
  448. package/dist/components/xpl-table-header-cell.js +1 -1
  449. package/dist/components/xpl-table-header.js +1 -1
  450. package/dist/components/xpl-table.js +1 -1
  451. package/dist/components/xpl-tabs.js +1 -1
  452. package/dist/components/xpl-tag.js +1 -1
  453. package/dist/components/xpl-toast.js +1 -1
  454. package/dist/components/xpl-toggle.js +1 -1
  455. package/dist/components/xpl-toolbar.js +1 -1
  456. package/dist/components/xpl-tooltip.js +1 -1
  457. package/dist/components/xpl-top-nav-item.js +1 -1
  458. package/dist/components/xpl-top-nav-menu.js +1 -1
  459. package/dist/components/xpl-top-nav.js +1 -1
  460. package/dist/components/xpl-utility-bar.js +1 -1
  461. package/dist/css/typography.stories.js +9 -0
  462. package/dist/docs/xpl-application-shell/readme.md +33 -0
  463. package/dist/docs/xpl-backdrop/readme.md +7 -0
  464. package/dist/docs/xpl-badge/readme.md +2 -0
  465. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
  466. package/dist/docs/xpl-button/readme.md +4 -2
  467. package/dist/docs/xpl-checkbox/readme.md +12 -0
  468. package/dist/docs/xpl-choicelist/readme.md +21 -0
  469. package/dist/docs/xpl-content-area/readme.md +8 -0
  470. package/dist/docs/xpl-data-card/readme.md +26 -0
  471. package/dist/docs/xpl-dropdown/readme.md +32 -6
  472. package/dist/docs/xpl-dynamic-table/readme.md +35 -0
  473. package/dist/docs/xpl-header-accordion/readme.md +18 -0
  474. package/dist/docs/xpl-icon/readme.md +21 -0
  475. package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
  476. package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
  477. package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
  478. package/dist/docs/xpl-large-card/readme.md +18 -0
  479. package/dist/docs/xpl-list/readme.md +2 -2
  480. package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
  481. package/dist/docs/xpl-main-nav/readme.md +16 -0
  482. package/dist/docs/xpl-modal/readme.md +20 -0
  483. package/dist/docs/xpl-nav-item/readme.md +14 -0
  484. package/dist/docs/xpl-pagination/readme.md +29 -0
  485. package/dist/docs/xpl-radio/readme.md +12 -0
  486. package/dist/docs/xpl-secondary-nav/readme.md +25 -0
  487. package/dist/docs/xpl-select/readme.md +13 -0
  488. package/dist/docs/xpl-side-nav/readme.md +12 -7
  489. package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
  490. package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
  491. package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
  492. package/dist/docs/xpl-slideout/readme.md +23 -0
  493. package/dist/docs/xpl-tab/readme.md +14 -8
  494. package/dist/docs/xpl-table/readme.md +4 -4
  495. package/dist/docs/xpl-toast/readme.md +90 -7
  496. package/dist/docs/xpl-toggle/readme.md +46 -0
  497. package/dist/docs/xpl-toolbar/readme.md +19 -0
  498. package/dist/docs/xpl-top-nav/readme.md +2 -1
  499. package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +5 -5
  500. package/dist/docs/xpl-utility-bar/readme.md +12 -0
  501. package/dist/docs.d.ts +480 -0
  502. package/dist/docs.json +16441 -0
  503. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  504. package/dist/esm/apollo-core.js +3 -3
  505. package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
  506. package/dist/esm/index-BhYfWG18.js +454 -0
  507. package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +756 -9
  508. package/dist/esm/{lifecycle-BUgtURvw.js → lifecycle-Dqb1pIRo.js} +4 -1
  509. package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
  510. package/dist/esm/loader.js +3 -3
  511. package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
  512. package/dist/esm/slot-presence-_r9-FML8.js +8 -0
  513. package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
  514. package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
  515. package/dist/esm/xpl-accordion.entry.js +5 -3
  516. package/dist/esm/xpl-application-shell.entry.js +2 -2
  517. package/dist/esm/xpl-avatar_3.entry.js +206 -0
  518. package/dist/esm/xpl-backdrop.entry.js +17 -0
  519. package/dist/esm/xpl-badge.entry.js +35 -0
  520. package/dist/esm/xpl-banner.entry.js +72 -0
  521. package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
  522. package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
  523. package/dist/esm/xpl-button-row.entry.js +2 -2
  524. package/dist/esm/xpl-button.entry.js +79 -0
  525. package/dist/esm/xpl-calendar.entry.js +10 -6
  526. package/dist/esm/xpl-checkbox.entry.js +30 -0
  527. package/dist/esm/xpl-choicelist.entry.js +66 -0
  528. package/dist/esm/xpl-content-area.entry.js +13 -0
  529. package/dist/esm/xpl-dashboard.entry.js +12 -0
  530. package/dist/esm/xpl-data-card.entry.js +109 -0
  531. package/dist/esm/xpl-dropdown_4.entry.js +572 -0
  532. package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
  533. package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
  534. package/dist/esm/xpl-dynamic-table.entry.js +11 -18
  535. package/dist/esm/xpl-grid-item.entry.js +2 -2
  536. package/dist/esm/xpl-grid.entry.js +6 -6
  537. package/dist/esm/xpl-header-accordion.entry.js +67 -0
  538. package/dist/{cjs/xpl-avatar_54.cjs.entry.js → esm/xpl-icon.entry.js} +1202 -10622
  539. package/dist/esm/xpl-input-color.entry.js +433 -0
  540. package/dist/esm/xpl-input-phone.entry.js +507 -0
  541. package/dist/esm/xpl-input-time.entry.js +194 -0
  542. package/dist/esm/xpl-input_4.entry.js +519 -0
  543. package/dist/esm/xpl-large-card.entry.js +63 -4
  544. package/dist/esm/xpl-list-item.entry.js +458 -0
  545. package/dist/esm/xpl-list.entry.js +394 -0
  546. package/dist/esm/xpl-main-nav.entry.js +2 -2
  547. package/dist/esm/xpl-modal.entry.js +76 -0
  548. package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
  549. package/dist/esm/xpl-nav-item.entry.js +23 -0
  550. package/dist/esm/xpl-pagination.entry.js +110 -0
  551. package/dist/esm/xpl-panel.entry.js +19 -0
  552. package/dist/esm/xpl-popover.entry.js +263 -0
  553. package/dist/esm/xpl-progress-bar.entry.js +39 -0
  554. package/dist/esm/xpl-progress-indicator.entry.js +72 -0
  555. package/dist/esm/xpl-secondary-nav.entry.js +12 -0
  556. package/dist/esm/xpl-select_2.entry.js +490 -0
  557. package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
  558. package/dist/esm/xpl-side-nav-item.entry.js +128 -0
  559. package/dist/esm/xpl-side-nav-section.entry.js +103 -0
  560. package/dist/esm/xpl-side-nav.entry.js +270 -0
  561. package/dist/esm/xpl-skeleton.entry.js +24 -0
  562. package/dist/esm/xpl-slideout.entry.js +45 -0
  563. package/dist/esm/xpl-spotlight.entry.js +720 -0
  564. package/dist/esm/xpl-tab-panel.entry.js +22 -0
  565. package/dist/esm/xpl-tab.entry.js +85 -0
  566. package/dist/esm/xpl-table-header-cell.entry.js +5 -3
  567. package/dist/esm/xpl-table-header.entry.js +2 -2
  568. package/dist/esm/xpl-table.entry.js +183 -0
  569. package/dist/esm/xpl-tabs.entry.js +371 -0
  570. package/dist/esm/xpl-toast.entry.js +89 -0
  571. package/dist/esm/xpl-toggle.entry.js +6 -6
  572. package/dist/esm/xpl-toolbar.entry.js +3 -3
  573. package/dist/esm/xpl-tooltip.entry.js +16 -0
  574. package/dist/esm/xpl-top-nav-item.entry.js +433 -0
  575. package/dist/esm/xpl-top-nav-menu.entry.js +15 -21
  576. package/dist/esm/xpl-top-nav.entry.js +340 -0
  577. package/dist/esm/xpl-utility-bar.entry.js +21 -0
  578. package/dist/types/components/xpl-accordion/accordion.stories.d.ts +11 -2
  579. package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +5 -23
  580. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
  581. package/dist/types/components/xpl-avatar/avatar.stories.d.ts +17 -116
  582. package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +2 -0
  583. package/dist/types/components/xpl-badge/badge.stories.d.ts +7 -0
  584. package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +10 -27
  585. package/dist/types/components/xpl-button/button.stories.d.ts +4 -0
  586. package/dist/types/components/xpl-button-row/button-row.stories.d.ts +10 -21
  587. package/dist/types/components/xpl-calendar/calendar.stories.d.ts +11 -28
  588. package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +13 -31
  589. package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +9 -23
  590. package/dist/types/components/xpl-content-area/content-area.stories.d.ts +7 -1
  591. package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +8 -17
  592. package/dist/types/components/xpl-data-card/data-card.stories.d.ts +32 -37
  593. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
  594. package/dist/types/components/xpl-divider/divider.stories.d.ts +10 -23
  595. package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +160 -8
  596. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
  597. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
  598. package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +7 -22
  599. package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
  600. package/dist/types/components/xpl-grid/grid.stories.d.ts +23 -47
  601. package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +8 -24
  602. package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
  603. package/dist/types/components/xpl-icon/icons.stories.d.ts +16 -39
  604. package/dist/types/components/xpl-input/input.stories.d.ts +255 -54
  605. package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
  606. package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
  607. package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
  608. package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
  609. package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
  610. package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
  611. package/dist/types/components/xpl-large-card/large-card.stories.d.ts +12 -30
  612. package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
  613. package/dist/types/components/xpl-list/list.stories.d.ts +33 -1
  614. package/dist/types/components/xpl-list/listitem.d.ts +5 -0
  615. package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
  616. package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +7 -1
  617. package/dist/types/components/xpl-modal/modal.stories.d.ts +16 -16
  618. package/dist/types/components/xpl-modal/xpl-modal.d.ts +3 -1
  619. package/dist/types/components/xpl-pagination/pagination.stories.d.ts +9 -30
  620. package/dist/types/components/xpl-panel/panel.stories.d.ts +9 -1
  621. package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -3
  622. package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
  623. package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +13 -24
  624. package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +2 -0
  625. package/dist/types/components/xpl-radio/radio.stories.d.ts +3 -0
  626. package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +4 -1
  627. package/dist/types/components/xpl-select/select.stories.d.ts +35 -45
  628. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
  629. package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
  630. package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +73 -1
  631. package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
  632. package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
  633. package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
  634. package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
  635. package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +11 -1
  636. package/dist/types/components/xpl-slideout/slideout.stories.d.ts +20 -16
  637. package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +7 -1
  638. package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
  639. package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
  640. package/dist/types/components/xpl-table/table.stories.d.ts +16 -37
  641. package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
  642. package/dist/types/components/xpl-table-header/table-header.stories.d.ts +21 -48
  643. package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +11 -34
  644. package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +22 -0
  645. package/dist/types/components/xpl-tabs/tabs.shared.d.ts +35 -1
  646. package/dist/types/components/xpl-tabs/tabs.stories.d.ts +29 -19
  647. package/dist/types/components/xpl-tag/tag.stories.d.ts +3 -0
  648. package/dist/types/components/xpl-toast/toast.stories.d.ts +17 -13
  649. package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
  650. package/dist/types/components/xpl-toggle/toggle.stories.d.ts +13 -31
  651. package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +35 -0
  652. package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +10 -24
  653. package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +9 -0
  654. package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +3 -0
  655. package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +7 -2
  656. package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
  657. package/dist/types/components.d.ts +1006 -46
  658. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +11 -0
  659. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +1 -0
  660. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +76 -0
  661. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/form-bindings.d.ts +4 -0
  662. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/story-vrt.d.ts +1 -0
  663. package/dist/types/third-party.d.ts +20 -0
  664. package/dist/types/utils/floating.d.ts +26 -0
  665. package/dist/types/utils/lifecycle.d.ts +1 -1
  666. package/dist/types/utils/light-dom-slots.d.ts +6 -0
  667. package/dist/types/utils/slot-presence.d.ts +1 -0
  668. package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
  669. package/dist/utils/form-bindings.js +64 -0
  670. package/dist/utils/story-vrt.js +48 -0
  671. package/hydrate/index.d.ts +287 -0
  672. package/hydrate/index.js +51669 -0
  673. package/hydrate/index.mjs +51659 -0
  674. package/hydrate/package.json +12 -0
  675. package/package.json +99 -42
  676. package/dist/apollo-core/p-048fdde0.entry.js +0 -1
  677. package/dist/apollo-core/p-0abc496e.entry.js +0 -1
  678. package/dist/apollo-core/p-1442c052.entry.js +0 -1
  679. package/dist/apollo-core/p-1e498763.entry.js +0 -1
  680. package/dist/apollo-core/p-26c3a508.entry.js +0 -1
  681. package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
  682. package/dist/apollo-core/p-4ce52107.entry.js +0 -1
  683. package/dist/apollo-core/p-6710fb29.entry.js +0 -1
  684. package/dist/apollo-core/p-7e622809.entry.js +0 -1
  685. package/dist/apollo-core/p-87068144.entry.js +0 -1
  686. package/dist/apollo-core/p-BUgtURvw.js +0 -1
  687. package/dist/apollo-core/p-CXkZUm1c.js +0 -2
  688. package/dist/apollo-core/p-a3b4820a.entry.js +0 -1
  689. package/dist/apollo-core/p-b2d6dd0e.entry.js +0 -1
  690. package/dist/apollo-core/p-bd2249ef.entry.js +0 -1
  691. package/dist/apollo-core/p-c96b7957.entry.js +0 -1
  692. package/dist/apollo-core/p-d6be63cd.entry.js +0 -1
  693. package/dist/apollo-core/p-ddf76cee.entry.js +0 -1
  694. package/dist/apollo-core/p-f0554edd.entry.js +0 -1
  695. package/dist/components/p-2xGSxBGa.js +0 -1
  696. package/dist/components/p-B8RYNiz-.js +0 -1
  697. package/dist/components/p-BDWXBWGE.js +0 -1
  698. package/dist/components/p-BJqNuBZr.js +0 -1
  699. package/dist/components/p-BT_Lq3Vd.js +0 -1
  700. package/dist/components/p-BUgtURvw.js +0 -1
  701. package/dist/components/p-B_sq_SAX.js +0 -1
  702. package/dist/components/p-Bsy-VVS5.js +0 -1
  703. package/dist/components/p-BxHFEnPN.js +0 -1
  704. package/dist/components/p-C5_Yo0ZP.js +0 -1
  705. package/dist/components/p-C8rmEAx6.js +0 -1
  706. package/dist/components/p-CF_YTx16.js +0 -1
  707. package/dist/components/p-CFpsSZyr.js +0 -1
  708. package/dist/components/p-CUYkG-PB.js +0 -1
  709. package/dist/components/p-CaW0fL0P.js +0 -1
  710. package/dist/components/p-CuisR8WP.js +0 -1
  711. package/dist/components/p-D2SFagIb.js +0 -1
  712. package/dist/components/p-DKUNbsb0.js +0 -1
  713. package/dist/components/p-DcXL24UI.js +0 -1
  714. package/dist/components/p-Dp3H99Yc.js +0 -1
  715. package/dist/components/p-M900WO1C.js +0 -1
  716. package/dist/components/p-Yj_QFaRn.js +0 -1
  717. package/dist/components/p-ZTFt9sBy.js +0 -1
  718. package/dist/components/p-gfb3l9Pr.js +0 -1
  719. package/dist/components/p-h1Gbk5lO.js +0 -1
  720. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
@@ -2,10 +2,9 @@ import { Host, h, } from "@stencil/core";
2
2
  import { TimerManager } from "../../utils/lifecycle";
3
3
  let xplListItemsPropDeprecationWarned = false;
4
4
  function getListItemFromComposedPath(e) {
5
- var _a, _b;
6
- const path = (_b = (_a = e.composedPath) === null || _a === void 0 ? void 0 : _a.call(e)) !== null && _b !== void 0 ? _b : [];
5
+ const path = e.composedPath?.() ?? [];
7
6
  const fromPath = path.find((node) => node instanceof HTMLElement && node.tagName.toLowerCase() === 'xpl-list-item');
8
- return fromPath !== null && fromPath !== void 0 ? fromPath : null;
7
+ return fromPath ?? null;
9
8
  }
10
9
  export class List {
11
10
  constructor() {
@@ -79,8 +78,7 @@ export class List {
79
78
  this.collectListItems();
80
79
  }
81
80
  handleItemDragStart(event) {
82
- var _a;
83
- const row = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
81
+ const row = event.detail?.item;
84
82
  if (!row || row.parentElement !== this.el) {
85
83
  return;
86
84
  }
@@ -89,23 +87,21 @@ export class List {
89
87
  }
90
88
  this.draggedItem = row;
91
89
  const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
92
- wrapper === null || wrapper === void 0 ? void 0 : wrapper.classList.add('dragging');
90
+ wrapper?.classList.add('dragging');
93
91
  }
94
92
  handleItemDragEnd(event) {
95
- var _a;
96
- const row = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
93
+ const row = event.detail?.item;
97
94
  if (!row || row.parentElement !== this.el) {
98
95
  return;
99
96
  }
100
97
  if (this.draggedItem) {
101
98
  const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
102
- wrapper === null || wrapper === void 0 ? void 0 : wrapper.classList.remove('dragging');
99
+ wrapper?.classList.remove('dragging');
103
100
  }
104
101
  this.draggedItem = null;
105
102
  }
106
103
  handleItemDrop(event) {
107
- var _a;
108
- const dropTarget = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.item;
104
+ const dropTarget = event.detail?.item;
109
105
  if (!dropTarget || dropTarget.parentElement !== this.el) {
110
106
  return;
111
107
  }
@@ -115,7 +111,7 @@ export class List {
115
111
  }
116
112
  if (this.draggedItem) {
117
113
  const wrapper = this.draggedItem.querySelector('.xpl-list-item__wrapper');
118
- wrapper === null || wrapper === void 0 ? void 0 : wrapper.classList.remove('dragging');
114
+ wrapper?.classList.remove('dragging');
119
115
  }
120
116
  if (this.draggedItem && dropTarget && this.draggedItem !== dropTarget) {
121
117
  const visibleItems = this.getVisibleListItemElements();
@@ -159,7 +155,7 @@ export class List {
159
155
  event.stopPropagation();
160
156
  const { direction, itemId, keyboardMode, exitKeyboardMode } = event.detail;
161
157
  if (keyboardMode !== undefined) {
162
- this.keyboardReorderItemId = keyboardMode ? itemId : null;
158
+ this.keyboardReorderItemId = keyboardMode ? (itemId ?? null) : null;
163
159
  }
164
160
  if (exitKeyboardMode) {
165
161
  this.keyboardReorderItemId = null;
@@ -170,7 +166,10 @@ export class List {
170
166
  this.el.dispatchEvent(new CustomEvent('xplListReorder', {
171
167
  bubbles: true,
172
168
  composed: true,
173
- detail: Object.assign(Object.assign({}, event.detail), { orderedItemIds: this.getOrderedItemIds() }),
169
+ detail: {
170
+ ...event.detail,
171
+ orderedItemIds: this.getOrderedItemIds(),
172
+ },
174
173
  }));
175
174
  }
176
175
  }
@@ -246,13 +245,12 @@ export class List {
246
245
  });
247
246
  this.announceReorder(itemId, orderedItemIds);
248
247
  this.timers.requestAnimationFrame(() => {
249
- var _a;
250
248
  if (!this.el.isConnected) {
251
249
  return;
252
250
  }
253
251
  const movedItem = this.getDirectChildListItems().find((el) => this.getItemRowId(el) === itemId);
254
- const handleRoot = movedItem === null || movedItem === void 0 ? void 0 : movedItem.querySelector('.xpl-list-item__drag-handle');
255
- const focusTarget = ((_a = handleRoot === null || handleRoot === void 0 ? void 0 : handleRoot.querySelector) === null || _a === void 0 ? void 0 : _a.call(handleRoot, 'button')) instanceof HTMLElement
252
+ const handleRoot = movedItem?.querySelector('.xpl-list-item__drag-handle');
253
+ const focusTarget = handleRoot?.querySelector?.('button') instanceof HTMLElement
256
254
  ? handleRoot.querySelector('button')
257
255
  : handleRoot;
258
256
  if (focusTarget instanceof HTMLElement) {
@@ -365,15 +363,12 @@ export class List {
365
363
  return item.getAttribute('item-id') || item.id || item.itemId || '';
366
364
  }
367
365
  render() {
368
- var _a, _b, _c;
369
- const ariaLabelledBy = ((_a = this.labelledBy) === null || _a === void 0 ? void 0 : _a.trim()) ? this.labelledBy.trim() : undefined;
370
- const ariaLabel = !ariaLabelledBy && ((_b = this.label) === null || _b === void 0 ? void 0 : _b.trim()) ? this.label.trim() : undefined;
371
- return (h(Host, { key: '66c41bf0c252a6ae1e61aea6d8c1c40fc594d8c7', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, (_c = this.items) === null || _c === void 0 ? void 0 :
372
- _c.map((item, index) => {
373
- var _a;
374
- const legacyRowId = (_a = item.id) !== null && _a !== void 0 ? _a : `item-${index}`;
375
- return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
376
- }), h("slot", { key: '922088a7fe36e8bb2ee905ac79ac845eff101707' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
366
+ const ariaLabelledBy = this.labelledBy?.trim() ? this.labelledBy.trim() : undefined;
367
+ const ariaLabel = !ariaLabelledBy && this.label?.trim() ? this.label.trim() : undefined;
368
+ return (h(Host, { key: '1bfa7238314b7560cdd4dbafae3240fc5e89f72c', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, this.items?.map((item, index) => {
369
+ const legacyRowId = item.id ?? `item-${index}`;
370
+ return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
371
+ }), h("slot", { key: 'ee1e57aff365af47ec0ace762cdfeabd0783ee6f' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
377
372
  }
378
373
  static get is() { return "xpl-list"; }
379
374
  static get properties() {
@@ -1,5 +1,10 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
1
2
  export default {
2
3
  title: 'Components/Navigation/Main Nav',
4
+ tags: ['vrt'],
5
+ beforeEach() {
6
+ setAutoSnapshotOptions({ enable: true });
7
+ },
3
8
  argTypes: {
4
9
  width: {
5
10
  options: ['default', 'sm', 'md'],
@@ -13,7 +13,7 @@ export class MainNav {
13
13
  this.navWidthHandler();
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '15982141de742a1daeae5ffbb172ea18e0667e2d', class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", { key: '41efe9e9a68a3a27653efee7f6ed92d7fde9e902' }, h("header", { key: '18c08d774991cd41dc3b395891d1621343a5d505', "aria-label": "Sidebar Header" }, h("slot", { key: 'b82477e1ae127d30e80ac4e82c22a5e8cbed94e4', name: "logo" }), h("slot", { key: '3841701331da0ea203c356b20098e36b67255384', name: "brand-name" })), h("div", { key: '512df331c13b69154550fe510a8887323167081e', class: "xpl-main-nav__main_section" }, h("slot", { key: '30da0851944d7ce43648efe3b22786b57079042a', name: "navigation" })), h("footer", { key: '3c58ec415052a4b7930ed8861593cb1c52bcd1f5', class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { key: 'fac051cf4e6bc7635d58df0fbf9b504af244eb52', name: "footer" })))));
16
+ return (h(Host, { key: 'a2bd0e9fc9de814e5522b315dbb6da2672c6da72', class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", { key: 'f6c75ca9ef37747054994457c2bf2b1d44941479' }, h("header", { key: 'a338af682f79147b22fcb7e72a86fcaab867e19f', "aria-label": "Sidebar Header" }, h("slot", { key: '7208e18c6bc8202ef709ee9a2c07369aeb3f7a8f', name: "logo" }), h("slot", { key: '189761d3d465c4a8ddbdc8dca05ff81b2f2dc2a4', name: "brand-name" })), h("div", { key: '0c981cfaf3267a82319864185d55b4ffad06d114', class: "xpl-main-nav__main_section" }, h("slot", { key: '1301a128dfb5399867527d2afbf350c1e2e92b26', name: "navigation" })), h("footer", { key: 'b3010ec6e8773fad12d60abffcb4226dc5ae091b', class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { key: 'a662e627533ec313acc169a1c01093cf8f450c8a', name: "footer" })))));
17
17
  }
18
18
  static get is() { return "xpl-main-nav"; }
19
19
  static get properties() {
@@ -1,7 +1,19 @@
1
- import { INITIAL_VIEWPORTS } from "storybook/viewport";
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForComponentsRender } from "../../../../src/utils/story-vrt";
2
3
  export default {
3
4
  title: 'Components/Modal',
4
5
  component: 'xpl-modal',
6
+ tags: ['vrt'],
7
+ beforeEach() {
8
+ setAutoSnapshotOptions({
9
+ enable: true,
10
+ failureThreshold: 1,
11
+ failureThresholdType: 'percent',
12
+ });
13
+ },
14
+ play: async ({ canvasElement }) => {
15
+ await waitForComponentsRender(canvasElement);
16
+ },
5
17
  argTypes: {
6
18
  isOpen: {
7
19
  control: {
@@ -46,18 +58,15 @@ export default {
46
58
  },
47
59
  },
48
60
  };
49
- export const Modal = ({ isOpen, title, subtitle, body, actions, primaryButtonText, secondaryButtonText, tertiaryButtonText, size, variant, }, { globals: { viewport } }) => {
61
+ export const Modal = ({ isOpen, title, subtitle, body, actions, primaryButtonText, secondaryButtonText, tertiaryButtonText, size, variant, }) => {
50
62
  const renderButtons = () => {
51
- var _a, _b;
52
- const viewportWidth = parseInt((_b = (_a = INITIAL_VIEWPORTS[viewport]) === null || _a === void 0 ? void 0 : _a.styles) === null || _b === void 0 ? void 0 : _b.width, 10);
53
- const isDesktop = viewport === 'reset' || viewportWidth > 768;
54
63
  const buttons = [];
55
64
  buttons.push(`<xpl-button slot="primary" variant=${variant === 'warning' ? 'warning' : 'primary'}>${primaryButtonText}</xpl-button>`);
56
65
  if (actions >= 2) {
57
66
  buttons.push(`<xpl-button slot="secondary" variant="secondary">${secondaryButtonText}</xpl-button>`);
58
67
  }
59
68
  if (actions === 3) {
60
- buttons.push(`<xpl-button slot="tertiary" variant=${isDesktop ? 'secondary' : 'subtle'}>${tertiaryButtonText}</xpl-button>`);
69
+ buttons.push(`<xpl-button slot="tertiary" variant="secondary">${tertiaryButtonText}</xpl-button>`);
61
70
  }
62
71
  return buttons;
63
72
  };
@@ -1,6 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class Modal {
3
3
  constructor() {
4
+ this.dialogElement = null;
4
5
  this.isOpen = false;
5
6
  this.size = 'medium';
6
7
  this.variant = 'default';
@@ -9,10 +10,11 @@ export class Modal {
9
10
  this.modalClosed.emit();
10
11
  };
11
12
  this.handleNativeBackdropClick = (event) => {
12
- if (event.target !== this.dialogElement) {
13
+ const { dialogElement } = this;
14
+ if (!dialogElement || event.target !== dialogElement) {
13
15
  return;
14
16
  }
15
- const rect = this.dialogElement.getBoundingClientRect();
17
+ const rect = dialogElement.getBoundingClientRect();
16
18
  const clickedOutsideDialog = event.clientX < rect.left ||
17
19
  event.clientX > rect.right ||
18
20
  event.clientY < rect.top ||
@@ -24,30 +26,41 @@ export class Modal {
24
26
  }
25
27
  componentDidLoad() {
26
28
  this.dialogElement = this.element.querySelector('dialog');
29
+ if (!this.dialogElement) {
30
+ return;
31
+ }
27
32
  this.updateModalState();
28
33
  this.dialogElement.addEventListener('cancel', this.handleDialogClose);
29
34
  this.dialogElement.addEventListener('click', this.handleNativeBackdropClick);
30
35
  }
31
36
  disconnectedCallback() {
37
+ this.clearCloseTimer();
32
38
  if (this.dialogElement) {
33
39
  this.dialogElement.removeEventListener('cancel', this.handleDialogClose);
34
40
  this.dialogElement.removeEventListener('click', this.handleNativeBackdropClick);
35
41
  }
36
42
  }
37
43
  updateModalState() {
38
- var _a, _b;
39
44
  if (this.isOpen) {
40
- (_b = (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal) === null || _b === void 0 ? void 0 : _b.call(_a);
45
+ this.clearCloseTimer();
46
+ this.dialogElement?.showModal?.();
41
47
  }
42
48
  else if (this.dialogElement && typeof this.dialogElement.close === 'function') {
43
- setTimeout(() => {
44
- var _a;
45
- (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.close();
49
+ this.clearCloseTimer();
50
+ this.closeTimerId = setTimeout(() => {
51
+ this.closeTimerId = undefined;
52
+ this.dialogElement?.close();
46
53
  }, 250);
47
54
  }
48
55
  }
56
+ clearCloseTimer() {
57
+ if (this.closeTimerId !== undefined) {
58
+ clearTimeout(this.closeTimerId);
59
+ this.closeTimerId = undefined;
60
+ }
61
+ }
49
62
  render() {
50
- return (h(Host, { key: 'd1457065d1448b866f21a5a7a903fbc8504567a5', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: '05807b08500c1ba557c9dabe04ca059f3638f36c' }), h("dialog", { key: '14f78e63f6e19f83fd159604175381b054848ad6', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, h("div", { key: '54cbd855c642bad93f74d8f6f875c32728d8539a', class: "xpl-modal__header" }, h("div", { key: 'd0ae962e9ddb8df05eeefd2cd083c0aaf6253814', class: "xpl-modal__title" }, this.variant === 'warning' && (h("xpl-icon", { key: '896dbc9e4c614b456f2b22626c294f86e655f811', size: 20, icon: "alert-triangle", class: "xpl-modal__alert-icon" })), h("slot", { key: '859b27499e4ae644c06d376225f56d47b0081dc2', name: "title" }), h("xpl-button", { key: '288822a0310d17b13360acb7d358e7b5711fa79f', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, h("xpl-icon", { key: '14181eec31afd43bf07a21f6ae65664ea12f789a', icon: "x" }))), h("div", { key: '4d23417d83bdb3312f1c883a367687e1d4fdfa7c', class: "xpl-modal__subtitle" }, h("slot", { key: '5db4d5c7997a4a27f7195cdd0ff56d81238835e1', name: "subtitle" }))), h("div", { key: 'e17d7805f75d00422d6eaa8148a1f0f3297369df', class: "xpl-modal__body" }, h("slot", { key: 'f1f43ce5fce6c1567bf856071b5d283c28a64bbe', name: "body" })), h("div", { key: 'c7757cabc4d718a19ee8c91020f20e4437b73d6d', class: "xpl-modal__footer" }, h("slot", { key: 'bdcf1d5ca962025e7cdd2368b1dd6117b5dc190a', name: "tertiary" }), h("slot", { key: '483ce3eb24f84d4c08a84e97e6e6a9af9829b007', name: "secondary" }), h("slot", { key: '7c7ec707d80fecb81a21c997c84a1622370285b0', name: "primary" })))));
63
+ return (h(Host, { key: 'f7778c1d428d6a008cfe7731a7cbef692cf0dce8', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: '764ba9d33983e2c680c732e909226a6295326b85' }), h("dialog", { key: '0d8c01d5dd3c9cb14cd3ca5d6c6a2a466cfbeb7c', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, h("div", { key: '825ee88c897ba15bb75e851481f2f5078b647b6d', class: "xpl-modal__header" }, h("div", { key: '7630900b3e13a9fcbe5e73db3cabe3f43efe5cb0', class: "xpl-modal__title" }, this.variant === 'warning' && (h("xpl-icon", { key: '5f1aadc57fe05727395f6feabbc4c9ce8c83dd61', size: 20, icon: "triangle-warning", class: "xpl-modal__alert-icon" })), h("slot", { key: '2735d03fbc4e2520855a5225eed51c4c725c3732', name: "title" }), h("xpl-button", { key: '8c0196cb3d07388308451a050a4becac995cd281', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, h("xpl-icon", { key: '8f1764666f2b86592c0c62b06750edf29cc14a14', icon: "xmark" }))), h("div", { key: '6e4fc6a67288640f8a8ac1f69fb4f44df1c9d229', class: "xpl-modal__subtitle" }, h("slot", { key: 'ce59d8d14ffd3200e64c65a1ea2bda7918190a1f', name: "subtitle" }))), h("div", { key: 'a1e6dd317884149a38863ba97b480f21feaf2657', class: "xpl-modal__body" }, h("slot", { key: '43eb4ccf4febe7fe5ae5ed992ce5f6e701231247', name: "body" })), h("div", { key: 'a0648d0b989c86ed2592fa15c2c0a06d6b5470e5', class: "xpl-modal__footer" }, h("slot", { key: '3f6d0f703cb726d9f603aeeee42cf673dfbbeca6', name: "tertiary" }), h("slot", { key: '98412e5f51a4e86cc68dd3133de2611638deee7e', name: "secondary" }), h("slot", { key: '0121aca5ebaaa738fabf32da32e962deb7920fd5', name: "primary" })))));
51
64
  }
52
65
  static get is() { return "xpl-modal"; }
53
66
  static get properties() {
@@ -9,11 +9,11 @@ export class NavItem {
9
9
  }
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'f7494edb113b4eccf244c312447e69248af495ba', class: "xpl-nav-item", role: "listitem", onClick: () => {
12
+ return (h(Host, { key: 'ffbe4b34fe5a30cec5bfe506fbc325663db7d02b', class: "xpl-nav-item", role: "listitem", onClick: () => {
13
13
  if (this.navControl) {
14
14
  this.onNavToggle();
15
15
  }
16
- } }, h("slot", { key: 'acde5d80edbead75a558b964954caa18e1cc0c5f', name: "link" }, h("slot", { key: '66838cf7e6610e48d7102475cc6463aa65f4651b', name: "icon" }), h("slot", { key: 'de185eaab42a425cf82eaaf6883b1472fecb9754' }))));
16
+ } }, h("slot", { key: 'c772716a5cac78963468f7e6ae7a34f16dbd2636', name: "link" }, h("slot", { key: '0b120ea6bc0e596fee7730459689906e2233521c', name: "icon" }), h("slot", { key: 'fd9edd0051e771ba87a37b72245d3bcfa71bd468' }))));
17
17
  }
18
18
  static get is() { return "xpl-nav-item"; }
19
19
  static get properties() {
@@ -1,3 +1,5 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
1
3
  export default {
2
4
  title: 'Components/Pagination',
3
5
  parameters: {
@@ -5,7 +7,13 @@ export default {
5
7
  handles: ['pageChange', 'rowsPerPageChange'],
6
8
  },
7
9
  },
8
- tags: ['beta'],
10
+ tags: ['beta', 'vrt'],
11
+ beforeEach() {
12
+ setAutoSnapshotOptions({ enable: true });
13
+ },
14
+ async play({ canvasElement }) {
15
+ await waitForHydration(canvasElement);
16
+ },
9
17
  argTypes: {
10
18
  totalPages: {
11
19
  control: {
@@ -40,7 +48,7 @@ Pagination.parameters = {
40
48
  export const PaginationWithPageControl = (args) => {
41
49
  const { totalPages, withPageControl } = args;
42
50
  return `
43
- <div style="min-height: 120vh; display: flex; align-items: flex-end; padding: 24px;">
51
+ <div style="display: flex; align-items: flex-end; padding: 24px;">
44
52
  <xpl-pagination total-pages="${totalPages}" with-page-control="${withPageControl}"></xpl-pagination>
45
53
  </div>
46
54
  `;
@@ -66,31 +66,29 @@ export class Pagination {
66
66
  this.buildPageChoices();
67
67
  }
68
68
  componentDidLoad() {
69
- var _a, _b;
70
- (_a = this.rowsPerPageSelectRef) === null || _a === void 0 ? void 0 : _a.addEventListener('changeEvent', this.handleRowsChange);
71
- (_b = this.pageSelectRef) === null || _b === void 0 ? void 0 : _b.addEventListener('changeEvent', this.handlePageChange);
69
+ this.rowsPerPageSelectRef?.addEventListener('changeEvent', this.handleRowsChange);
70
+ this.pageSelectRef?.addEventListener('changeEvent', this.handlePageChange);
72
71
  }
73
72
  disconnectedCallback() {
74
- var _a, _b;
75
- (_a = this.rowsPerPageSelectRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('changeEvent', this.handleRowsChange);
76
- (_b = this.pageSelectRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('changeEvent', this.handlePageChange);
73
+ this.rowsPerPageSelectRef?.removeEventListener('changeEvent', this.handleRowsChange);
74
+ this.pageSelectRef?.removeEventListener('changeEvent', this.handlePageChange);
77
75
  }
78
76
  render() {
79
77
  const disablePrev = this.currentPage <= 1;
80
78
  const disableNext = this.currentPage >= this.totalPages;
81
- return (h(Host, { key: '7ee32b9506487555cf9c96b8204bc06acff20614', class: {
79
+ return (h(Host, { key: '9184904c32aa8d4e552f9493f343a162b8f2d8ee', class: {
82
80
  'xpl-pagination': true,
83
81
  'xpl-pagination__with-page-control': this.withPageControl,
84
82
  'xpl-pagination__no-page-control': !this.withPageControl,
85
- } }, this.withPageControl && (h("div", { key: 'd0b77c50e30c046df37e806912d9d144066ce8ea', class: "xpl-pagination__rows-per-page" }, h("label", { key: '5a596a7f2e440f007cc51ffb965f8c6da057bd11', class: "xpl-pagination__rows-label" }, "Rows per page:"), h("xpl-select", { key: '3592c6c2b8efa704536e64bf6ae085f228921573', class: "xpl-pagination__rows-per-page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.rowsPerPageOptionsArray.map((option) => ({
83
+ } }, this.withPageControl && (h("div", { key: '26febbb3a6bf061bfcf8d61190dc7947aa04efb1', class: "xpl-pagination__rows-per-page" }, h("label", { key: '7a5b406ee8bfd2582e8b543db14b39a493ff2d9c', class: "xpl-pagination__rows-label" }, "Rows per page:"), h("xpl-select", { key: 'd82e693f4ada5897f163ae5243c047348be63a08', class: "xpl-pagination__rows-per-page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.rowsPerPageOptionsArray.map((option) => ({
86
84
  label: option.toString(),
87
85
  value: option.toString(),
88
86
  isSelected: option === this.selectedRowsPerPage,
89
87
  })), ref: (el) => {
90
- this.rowsPerPageSelectRef = el;
91
- } }))), h("div", { key: '0c4e020f133b9bff31e185fb3ea11d3e98f0ac00', class: "xpl-pagination__pager" }, h("button", { key: 'add5b2b91bb1c1d08637bc7e8cf907274126765c', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, h("xpl-icon", { key: 'ca29bdc9acb1f220afb7cbb5a2f1bfc8602c07c9', icon: "arrow-left", size: 20 })), h("xpl-select", { key: '89244ec17d7e8f10188a6b7b25dde30f9885aef2', class: "xpl-pagination__page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.pageChoices, "custom-display-value": true, ref: (el) => {
92
- this.pageSelectRef = el;
93
- } }, h("div", { key: '916de27d7e201ba0920c265109edf2a6e9bd0620', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), h("button", { key: '7ddaf9be0ab94e8e0e1fdbdca20e76294d7d2706', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, h("xpl-icon", { key: '37703d9e35a8288bf24c8675e4e973a400f7a0e9', icon: "arrow-right", size: 20 })))));
88
+ this.rowsPerPageSelectRef = el ?? null;
89
+ } }))), h("div", { key: '23fdb444921471c1121a82f6b17050beea69a93c', class: "xpl-pagination__pager" }, h("button", { key: 'bae0457c8c0cda02feb837de3c20965aabc937c0', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, h("xpl-icon", { key: '714f2d15b2e2c129d2bd70c28858ac95ae3518a7', icon: "arrow-left", size: 20 })), h("xpl-select", { key: 'c52b9974fc675706cdcfe43fe939225a4561cef5', class: "xpl-pagination__page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.pageChoices, "custom-display-value": true, ref: (el) => {
90
+ this.pageSelectRef = el ?? null;
91
+ } }, h("div", { key: '7dcc6c4b3f0b0470986006c2ab7dbcfcbaba0f92', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), h("button", { key: '0afaf6e4b4acd626e7972c0fb5d5f8aad1e16f2a', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, h("xpl-icon", { key: '3759f242a05741cf53938539cd69b9074c6cf323', icon: "arrow-right", size: 20 })))));
94
92
  }
95
93
  static get is() { return "xpl-pagination"; }
96
94
  static get properties() {
@@ -1,4 +1,13 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
1
3
  export default {
4
+ tags: ['vrt'],
5
+ beforeEach() {
6
+ setAutoSnapshotOptions({ enable: true });
7
+ },
8
+ async play({ canvasElement }) {
9
+ await waitForHydration(canvasElement);
10
+ },
2
11
  title: 'Components/Panel',
3
12
  component: 'xpl-panel',
4
13
  argTypes: {
@@ -6,11 +6,11 @@ export class XplPanel {
6
6
  }
7
7
  render() {
8
8
  const hasAccent = this.accent !== 'none';
9
- return (h(Host, { key: 'f7216acfba4419e26d171a24aa64153991841701', class: {
9
+ return (h(Host, { key: '2be99cac0dda8442b54752745f3bf647df334e70', class: {
10
10
  'xpl-panel': true,
11
11
  [`xpl-panel--accent-${this.accent}`]: hasAccent,
12
12
  [`xpl-panel--padding-${this.padding}`]: true,
13
- } }, hasAccent && h("div", { key: '18f1ed385cb4d29dbe18e7272e779a40a2ead05e', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: 'd0a13066c9c4b472b505ffd7592f882bb886b9a2', class: "xpl-panel__content" }, h("slot", { key: '0c8c6495afcbd3a897a6f118e17df75dc7328363' }))));
13
+ } }, hasAccent && h("div", { key: 'ff25fa59eff4d886540a5abc3b637478b533b23b', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: '415205b25333615cfe22d41fdfaf4e114547746b', class: "xpl-panel__content" }, h("slot", { key: '5573ed5bb1cb102720d2c6e1245656fba8d36b8f' }))));
14
14
  }
15
15
  static get is() { return "xpl-panel"; }
16
16
  static get properties() {
@@ -1,4 +1,13 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
1
3
  export default {
4
+ tags: ['vrt'],
5
+ beforeEach() {
6
+ setAutoSnapshotOptions({ enable: true });
7
+ },
8
+ async play({ canvasElement }) {
9
+ await waitForHydration(canvasElement);
10
+ },
2
11
  title: 'Components/Popover',
3
12
  parameters: {
4
13
  actions: {
@@ -74,7 +83,8 @@ export const LargerContent = ({ isOpen = true, position }) => {
74
83
  `;
75
84
  };
76
85
  [Simple, LargerTrigger, LargerContent].forEach((comp) => {
77
- comp.argTypes = {
86
+ const story = comp;
87
+ story.argTypes = {
78
88
  isOpen: {
79
89
  control: 'boolean',
80
90
  description: 'Whether the popover is open initially',
@@ -106,15 +116,15 @@ export const LargerContent = ({ isOpen = true, position }) => {
106
116
  description: 'Display style of the popover',
107
117
  },
108
118
  };
109
- comp.args = {
119
+ story.args = {
110
120
  isOpen: true,
111
121
  position: 'top-middle',
112
122
  display: 'arrow',
113
123
  };
114
- comp.parameters = {
124
+ story.parameters = {
115
125
  layout: 'centered',
116
126
  'web-component': {
117
- render: comp(comp.args),
127
+ render: story(story.args ?? { isOpen: true, position: 'top-middle', display: 'arrow' }),
118
128
  },
119
129
  html: {
120
130
  render: (({ isOpen = true, position = 'top-middle', display = 'arrow' }) => `
@@ -154,7 +164,7 @@ export const LargerContent = ({ isOpen = true, position }) => {
154
164
  Content for the popover goes here.
155
165
  </div>
156
166
  </div>
157
- `)(comp.args),
167
+ `)(story.args ?? { isOpen: true, position: 'top-middle', display: 'arrow' }),
158
168
  },
159
169
  design: {
160
170
  type: 'figma',
@@ -20,11 +20,31 @@ export class Popover {
20
20
  }
21
21
  };
22
22
  this.handleClickOutside = ({ target }) => {
23
+ if (!target || !(target instanceof Node)) {
24
+ return;
25
+ }
23
26
  const isInside = this.el.contains(target);
24
27
  if (!isInside && this.isOpenState) {
25
28
  this.isOpenState = false;
26
29
  }
27
30
  };
31
+ this.handleWindowBlur = () => {
32
+ if (!this.isOpenState) {
33
+ return;
34
+ }
35
+ if (this.blurCloseTimeoutId !== undefined) {
36
+ clearTimeout(this.blurCloseTimeoutId);
37
+ }
38
+ this.blurCloseTimeoutId = setTimeout(() => {
39
+ this.blurCloseTimeoutId = undefined;
40
+ const active = document.activeElement;
41
+ if (this.isOpenState &&
42
+ active instanceof HTMLIFrameElement &&
43
+ !this.el.contains(active)) {
44
+ this.isOpenState = false;
45
+ }
46
+ }, 0);
47
+ };
28
48
  }
29
49
  onIsOpenPropChange(newValue) {
30
50
  this.isOpenState = newValue;
@@ -34,7 +54,9 @@ export class Popover {
34
54
  this.isOpenChange.emit(newValue);
35
55
  }
36
56
  updateActualPosition(opened) {
37
- if (!this.triggerRef || !this.contentRef || !opened) {
57
+ const { triggerRef } = this;
58
+ const { contentRef } = this;
59
+ if (!triggerRef || !contentRef || !opened) {
38
60
  return;
39
61
  }
40
62
  const preferredOrderMap = {
@@ -136,8 +158,8 @@ export class Popover {
136
158
  ],
137
159
  };
138
160
  const fitsPosition = (position) => {
139
- const { top: triggerTop, left: triggerLeft, bottom: triggerBottom, right: triggerRight, } = this.triggerRef.getBoundingClientRect();
140
- const { width: popoverWidth, height: popoverHeight } = this.contentRef.getBoundingClientRect();
161
+ const { top: triggerTop, left: triggerLeft, bottom: triggerBottom, right: triggerRight, } = triggerRef.getBoundingClientRect();
162
+ const { width: popoverWidth, height: popoverHeight } = contentRef.getBoundingClientRect();
141
163
  const { innerWidth: screenWidth, innerHeight: screenHeight } = window;
142
164
  const visibleBottom = triggerBottom + popoverHeight < screenHeight;
143
165
  const visibleTop = triggerTop - popoverHeight >= 0;
@@ -187,8 +209,9 @@ export class Popover {
187
209
  this.actualPosition = actual;
188
210
  }
189
211
  connectedCallback() {
190
- document.addEventListener('mousedown', this.handleClickOutside.bind(this));
212
+ document.addEventListener('mousedown', this.handleClickOutside);
191
213
  document.addEventListener('keydown', this.handleKeyDown);
214
+ window.addEventListener('blur', this.handleWindowBlur);
192
215
  this.updateListener = throttle(() => {
193
216
  this.updateActualPosition(this.isOpenState);
194
217
  });
@@ -199,23 +222,28 @@ export class Popover {
199
222
  });
200
223
  }
201
224
  disconnectedCallback() {
225
+ if (this.blurCloseTimeoutId !== undefined) {
226
+ clearTimeout(this.blurCloseTimeoutId);
227
+ this.blurCloseTimeoutId = undefined;
228
+ }
202
229
  document.removeEventListener('mousedown', this.handleClickOutside);
203
230
  document.removeEventListener('keydown', this.handleKeyDown);
231
+ window.removeEventListener('blur', this.handleWindowBlur);
204
232
  ['resize', 'scroll'].forEach((event) => {
205
233
  window.removeEventListener(event, this.updateListener);
206
234
  });
207
235
  }
208
236
  render() {
209
- return (h(Host, { key: 'fd4ba66077f4909fe71a47b719fc76e8b0970bcc' }, h("div", { key: 'f54d27275be2e332ae72e225197eb76350803db3', class: {
237
+ return (h(Host, { key: '0e697fc04e3fd17595eb05f70104c6ffaa2c641c' }, h("div", { key: '749de61a600d9eb55074910d3093217b3fb08863', class: {
210
238
  'xpl-popover': true,
211
239
  [`xpl-popover--${this.actualPosition}`]: true,
212
240
  'xpl-popover--is-open': this.isOpenState,
213
- } }, h("span", { key: 'a45378d297636bcb6eddd0ea2927703291f27571', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
241
+ } }, h("span", { key: 'd42b2a4893a5dc18e4298e5ed79eac0c93996385', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
214
242
  this.triggerRef = el;
215
- } }, h("slot", { key: 'e40f33425dede71e45fefca68eed6231f569b6f4', name: "trigger" })), this.display === 'arrow' && (h("div", { key: '4c6dbd56d3b6c782bdd25c9674df29b92866e55c', class: "xpl-popover__arrow" }, h("svg", { key: '6492c5f9ffd7609ed0fb334f515bf5448db9b837', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e1e92c7c65caece9b89b9b23f6031409cd67312c', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: '496097d86300cdd3a09732e3fb5492e8b3e4a292', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'ed12d8116e9c230dbe166b4479b19d640849b873', class: {
243
+ } }, h("slot", { key: 'e99d7e89b3d825ae716a93c423d31854914e5fa9', name: "trigger" })), this.display === 'arrow' && (h("div", { key: '18809dc747e4646920238a0b05e54be568e63311', class: "xpl-popover__arrow" }, h("svg", { key: 'b3f78f3c82cc0969cd4c36117f562eb538864cbe', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c2f12882970e1e599e7e508e5cd57210b7d08015', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: 'bce5aecd1ee49ae8252a27bf8db0677c891beb54', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'd970490de0d7ed8413afcc8fa1b1f0985352b796', class: {
216
244
  'xpl-popover__content': true,
217
245
  [`xpl-popover__content--display-${this.display}`]: true,
218
- }, ref: (el) => (this.contentRef = el) }, h("slot", { key: 'ad827a2a95546d4e3c975cd410ba4067fd69ad04' })))));
246
+ }, ref: (el) => (this.contentRef = el) }, h("slot", { key: '742a4d13a4bb0e21ab0135f316bfec76da6fde82' })))));
219
247
  }
220
248
  static get is() { return "xpl-popover"; }
221
249
  static get properties() {
@@ -1,4 +1,13 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
1
3
  export default {
4
+ tags: ['vrt'],
5
+ beforeEach() {
6
+ setAutoSnapshotOptions({ enable: true });
7
+ },
8
+ async play({ canvasElement }) {
9
+ await waitForHydration(canvasElement);
10
+ },
2
11
  title: 'Components/Progress Bar',
3
12
  argTypes: {
4
13
  label: {
@@ -70,7 +79,7 @@ ProgressBar.parameters = {
70
79
  const helperHtml = helperText
71
80
  ? `<div class="xpl-progress-bar__helper">${helperText}</div>`
72
81
  : '';
73
- const maxValue = max !== null && max !== void 0 ? max : 100;
82
+ const maxValue = max ?? 100;
74
83
  const currentValue = variant !== 'indeterminate' && value !== undefined ? value : maxValue;
75
84
  const className = `xpl-progress-bar xpl-progress-bar--${size} xpl-progress-bar--${variant}`;
76
85
  const progressHtml = variant === 'indeterminate'
@@ -25,12 +25,12 @@ export class ProgressBar {
25
25
  return this.variant === 'indeterminate';
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: 'bae4b080ca10ce596b7f889fc50b41199bcee67b', class: {
28
+ return (h(Host, { key: 'e6c2e96d1af4b56204eba288d35b065fbe7d3c71', class: {
29
29
  'xpl-progress-bar': true,
30
30
  [`xpl-progress-bar--${this.size}`]: true,
31
31
  [`xpl-progress-bar--${this.variant}`]: true,
32
32
  'xpl-progress-bar--complete': this.isComplete,
33
- } }, h("div", { key: '3e13c35002888a7ea5b4710ec96ea72ab6e8811c', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: 'c41d0c11ef55fc3be48b8007716439a0791245c5', class: "xpl-progress-bar__header" }, this.label && h("div", { key: 'c680eb355e174bfa3a17b29e64d5d9e8d3699718', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: 'a4d541ee3fa68549dbfa8f371b8d3e5a5d9dcfd0', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: '24aa03523c672a1604b91da88dae9a58895a412b', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, h("div", { class: "xpl-progress-bar__indeterminate" }))) : (h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (h("div", { key: '67a687ba35eb5208286833834b1a4e75d64ca47d', class: "xpl-progress-bar__helper" }, this.helperText)))));
33
+ } }, h("div", { key: '5d8e7731bf5588c8549398dca087e7f39078eec0', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: 'b36f70ed46b5a8dd46a9f8ea0b5188b90f33741e', class: "xpl-progress-bar__header" }, this.label && h("div", { key: '1fed869f23b4c449c56ff4b40d79fe315118de94', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: '8ec535833016b380a133599311aa02f8a7765901', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: 'ea1e88ff71d2e10a71df1c6d63269b16b0c03129', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, h("div", { class: "xpl-progress-bar__indeterminate" }))) : (h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (h("div", { key: '71a2ceee37369f823b598f385dd895b807693aa1', class: "xpl-progress-bar__helper" }, this.helperText)))));
34
34
  }
35
35
  static get is() { return "xpl-progress-bar"; }
36
36
  static get properties() {
@@ -1,3 +1,5 @@
1
+ import { setAutoSnapshotOptions } from "vitest-plugin-vis";
2
+ import { waitForHydration } from "../../../../.storybook/utils/wait-for-hydration";
1
3
  export default {
2
4
  title: 'Components/Progress Indicator',
3
5
  component: 'xpl-progress-indicator',
@@ -8,7 +10,13 @@ export default {
8
10
  showNumbers: { control: { type: 'boolean' } },
9
11
  showLabels: { control: { type: 'boolean' } },
10
12
  },
11
- tags: ['beta'],
13
+ tags: ['beta', 'vrt'],
14
+ beforeEach() {
15
+ setAutoSnapshotOptions({ enable: true });
16
+ },
17
+ async play({ canvasElement }) {
18
+ await waitForHydration(canvasElement);
19
+ },
12
20
  };
13
21
  const defaultSteps = ['Details', 'Location', 'Instructor', 'Customers'];
14
22
  export const ProgressIndicator = ({ steps = defaultSteps, currentStep = 1, layout = 'horizontal', showNumbers = true, showLabels = true, }) => {
@@ -55,7 +55,7 @@ export class ProgressIndicator {
55
55
  ? `Progress: all ${totalSteps} ${totalSteps === 1 ? 'step' : 'steps'} complete`
56
56
  : `Progress: step ${currentStepNumber} of ${totalSteps}`
57
57
  : 'Progress';
58
- return (h(Host, { key: '267a70a3c6ceffe23390abb57a524d5ddb2b53a6', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: 'd34a875d04fb035cc5cda9c8194135d173f7ebae', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
58
+ return (h(Host, { key: 'bba19d0d09e3bf9ae1fa1e04824f84f4a74b3431', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: '529becbce8bfcc02ddf0f4de3c550bfef94ec7ba', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
59
59
  }
60
60
  static get is() { return "xpl-progress-indicator"; }
61
61
  static get properties() {