@xplortech/apollo-core 2.6.0 → 2.7.1

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 (310) hide show
  1. package/.typings/apollo-components.html-data.json +626 -35
  2. package/build/style.css +5949 -3070
  3. package/dist/apollo-core/apollo-core.css +29 -19
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/p-0bf50890.entry.js +1 -0
  6. package/dist/apollo-core/p-1947e7a8.entry.js +1 -0
  7. package/dist/apollo-core/p-27928cb0.entry.js +1 -0
  8. package/dist/apollo-core/{p-5549756c.entry.js → p-34438721.entry.js} +1 -1
  9. package/dist/apollo-core/p-35c2f72d.entry.js +1 -0
  10. package/dist/apollo-core/p-368c81f1.entry.js +1 -0
  11. package/dist/apollo-core/{p-f5af9539.entry.js → p-36ba29da.entry.js} +1 -1
  12. package/dist/apollo-core/p-406b27a8.entry.js +1 -0
  13. package/dist/apollo-core/p-5d63b4ce.entry.js +1 -0
  14. package/dist/apollo-core/{p-02167464.entry.js → p-6a15f1e0.entry.js} +1 -1
  15. package/dist/apollo-core/p-8d692d05.entry.js +1 -0
  16. package/dist/apollo-core/{p-C_Z2nG0p.js → p-C7bgJs6C.js} +2 -2
  17. package/dist/apollo-core/{p-42016063.entry.js → p-b61d7952.entry.js} +1 -1
  18. package/dist/apollo-core/{p-8a1affce.entry.js → p-ca127ee8.entry.js} +1 -1
  19. package/dist/apollo-core/p-d1c9c233.entry.js +1 -0
  20. package/dist/apollo-core/p-dc205893.entry.js +1 -0
  21. package/dist/apollo-core/p-e2a5d41c.entry.js +1 -0
  22. package/dist/cjs/apollo-core.cjs.js +3 -3
  23. package/dist/cjs/{index-DH6pgWru.js → index-BQ97-AWw.js} +18 -7
  24. package/dist/cjs/loader.cjs.js +2 -2
  25. package/dist/cjs/xpl-accordion.cjs.entry.js +3 -3
  26. package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
  27. package/dist/cjs/{xpl-avatar_47.cjs.entry.js → xpl-avatar_54.cjs.entry.js} +3726 -536
  28. package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
  29. package/dist/cjs/xpl-calendar.cjs.entry.js +2 -2
  30. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +3 -3
  31. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +3 -3
  32. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +2 -2
  33. package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
  34. package/dist/cjs/xpl-grid.cjs.entry.js +2 -2
  35. package/dist/cjs/xpl-large-card.cjs.entry.js +2 -2
  36. package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
  37. package/dist/cjs/xpl-table-header-cell.cjs.entry.js +1 -1
  38. package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
  39. package/dist/cjs/xpl-toggle.cjs.entry.js +4 -4
  40. package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
  41. package/dist/collection/collection-manifest.json +11 -5
  42. package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
  43. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
  44. package/dist/collection/components/xpl-avatar/avatar.stories.js +122 -107
  45. package/dist/collection/components/xpl-avatar/xpl-avatar.js +249 -15
  46. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
  47. package/dist/collection/components/xpl-badge/badge.stories.js +1 -33
  48. package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
  49. package/dist/collection/components/xpl-banner/xpl-banner.js +4 -3
  50. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
  51. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
  52. package/dist/collection/components/xpl-button/xpl-button.js +21 -3
  53. package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
  54. package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
  55. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +25 -3
  56. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
  57. package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
  58. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
  59. package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
  60. package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
  63. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
  64. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +77 -7
  65. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
  66. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
  67. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
  68. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
  69. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
  70. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
  71. package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
  72. package/dist/collection/components/xpl-input/input.stories.js +96 -1
  73. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
  74. package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
  75. package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
  76. package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
  77. package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +485 -0
  78. package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
  79. package/dist/collection/components/xpl-input/xpl-input.js +130 -18
  80. package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
  81. package/dist/collection/components/xpl-list/list.stories.js +300 -63
  82. package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +818 -0
  83. package/dist/collection/components/xpl-list/xpl-list.js +579 -21
  84. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
  85. package/dist/collection/components/xpl-modal/xpl-modal.js +1 -1
  86. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
  87. package/dist/collection/components/xpl-pagination/pagination.stories.js +18 -0
  88. package/dist/collection/components/xpl-pagination/xpl-pagination.js +7 -3
  89. package/dist/collection/components/xpl-panel/panel.stories.js +5 -3
  90. package/dist/collection/components/xpl-panel/xpl-panel.js +3 -3
  91. package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
  92. package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
  93. package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +118 -0
  94. package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +171 -0
  95. package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
  96. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
  97. package/dist/collection/components/xpl-select/xpl-select.js +58 -6
  98. package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
  99. package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +2 -2
  100. package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
  101. package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
  102. package/dist/collection/components/xpl-spotlight/spotlight.stories.js +385 -0
  103. package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +1085 -0
  104. package/dist/collection/components/xpl-tab/xpl-tab.js +261 -8
  105. package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +22 -15
  106. package/dist/collection/components/xpl-table/xpl-table.js +5 -5
  107. package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
  108. package/dist/collection/components/xpl-tabs/segment-control.stories.js +31 -0
  109. package/dist/collection/components/xpl-tabs/tabs.shared.js +156 -0
  110. package/dist/collection/components/xpl-tabs/tabs.stories.js +10 -60
  111. package/dist/collection/components/xpl-tabs/xpl-tabs.js +338 -62
  112. package/dist/collection/components/xpl-tag/tag.stories.js +153 -0
  113. package/dist/collection/components/xpl-tag/xpl-tag.js +312 -9
  114. package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
  115. package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
  116. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
  117. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
  118. package/dist/collection/components/xpl-top-nav/top-nav.stories.js +625 -0
  119. package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +122 -0
  120. package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +481 -0
  121. package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +433 -0
  122. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
  123. package/dist/collection/utils/lifecycle.js +79 -0
  124. package/dist/collection/utils/tab-a11y-ids.js +22 -0
  125. package/dist/components/floating-ui.dom.js +1 -0
  126. package/dist/components/index.js +1 -1
  127. package/dist/components/tab-a11y-ids.js +1 -0
  128. package/dist/components/xpl-accordion.js +1 -1
  129. package/dist/components/xpl-application-shell.js +1 -1
  130. package/dist/components/xpl-avatar2.js +1 -1
  131. package/dist/components/xpl-backdrop2.js +1 -1
  132. package/dist/components/xpl-badge2.js +1 -1
  133. package/dist/components/xpl-banner.js +1 -1
  134. package/dist/components/xpl-breadcrumb-item.js +1 -1
  135. package/dist/components/xpl-breadcrumbs.js +1 -1
  136. package/dist/components/xpl-button-row.js +1 -1
  137. package/dist/components/xpl-button2.js +1 -1
  138. package/dist/components/xpl-calendar.js +1 -1
  139. package/dist/components/xpl-checkbox2.js +1 -1
  140. package/dist/components/xpl-choicelist.js +1 -1
  141. package/dist/components/xpl-content-area.js +1 -1
  142. package/dist/components/xpl-dashboard.js +1 -1
  143. package/dist/components/xpl-data-card.js +1 -1
  144. package/dist/components/xpl-divider2.js +1 -1
  145. package/dist/components/xpl-dropdown-group2.js +1 -1
  146. package/dist/components/xpl-dropdown-heading2.js +1 -1
  147. package/dist/components/xpl-dropdown-option2.js +1 -1
  148. package/dist/components/xpl-dropdown2.js +1 -1
  149. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  150. package/dist/components/xpl-dynamic-table-row.js +1 -1
  151. package/dist/components/xpl-dynamic-table.js +1 -1
  152. package/dist/components/xpl-grid-item.js +1 -1
  153. package/dist/components/xpl-grid.js +1 -1
  154. package/dist/components/xpl-header-accordion.js +1 -1
  155. package/dist/components/xpl-icon2.js +1 -1
  156. package/dist/components/xpl-input-date2.js +1 -1
  157. package/dist/components/xpl-input-file2.js +1 -1
  158. package/dist/components/xpl-input-search.d.ts +11 -0
  159. package/dist/components/xpl-input-search.js +1 -0
  160. package/dist/components/xpl-input-search2.js +1 -0
  161. package/dist/components/xpl-input2.js +1 -1
  162. package/dist/components/xpl-large-card.js +1 -1
  163. package/dist/components/{xpl-progress.d.ts → xpl-list-item.d.ts} +4 -4
  164. package/dist/components/xpl-list-item.js +1 -0
  165. package/dist/components/xpl-list-item2.js +1 -0
  166. package/dist/components/xpl-list.js +1 -1
  167. package/dist/components/xpl-main-nav.js +1 -1
  168. package/dist/components/xpl-modal.js +1 -1
  169. package/dist/components/xpl-nav-header-menu.d.ts +11 -0
  170. package/dist/components/xpl-nav-header-menu.js +1 -0
  171. package/dist/components/xpl-nav-item.js +1 -1
  172. package/dist/components/xpl-pagination.js +1 -1
  173. package/dist/components/xpl-panel.js +1 -1
  174. package/dist/components/xpl-popover2.js +1 -1
  175. package/dist/components/xpl-progress-bar.js +1 -1
  176. package/dist/components/xpl-progress-indicator.d.ts +11 -0
  177. package/dist/components/xpl-progress-indicator.js +1 -0
  178. package/dist/components/xpl-radio2.js +1 -1
  179. package/dist/components/xpl-secondary-nav.js +1 -1
  180. package/dist/components/xpl-select2.js +1 -1
  181. package/dist/components/xpl-side-nav-item.js +1 -1
  182. package/dist/components/xpl-side-nav.js +1 -1
  183. package/dist/components/xpl-skeleton.js +1 -1
  184. package/dist/components/xpl-slideout.js +1 -1
  185. package/dist/components/xpl-spotlight.d.ts +11 -0
  186. package/dist/components/xpl-spotlight.js +1 -0
  187. package/dist/components/xpl-tab-panel.js +1 -1
  188. package/dist/components/xpl-tab.js +1 -1
  189. package/dist/components/xpl-table-header.js +1 -1
  190. package/dist/components/xpl-table.js +1 -1
  191. package/dist/components/xpl-tabs.js +1 -1
  192. package/dist/components/xpl-tag2.js +1 -1
  193. package/dist/components/xpl-toast.js +1 -1
  194. package/dist/components/xpl-toggle.js +1 -1
  195. package/dist/components/xpl-toolbar.js +1 -1
  196. package/dist/components/xpl-tooltip2.js +1 -1
  197. package/dist/components/xpl-top-nav-item.d.ts +11 -0
  198. package/dist/components/xpl-top-nav-item.js +1 -0
  199. package/dist/components/xpl-top-nav-item2.js +1 -0
  200. package/dist/components/xpl-top-nav.d.ts +11 -0
  201. package/dist/components/xpl-top-nav.js +1 -0
  202. package/dist/components/xpl-utility-bar.js +1 -1
  203. package/dist/docs/xpl-avatar/readme.md +289 -15
  204. package/dist/docs/xpl-badge/readme.md +14 -9
  205. package/dist/docs/xpl-banner/readme.md +48 -11
  206. package/dist/docs/xpl-button/readme.md +28 -18
  207. package/dist/docs/xpl-calendar/readme.md +1 -1
  208. package/dist/docs/xpl-checkbox/readme.md +12 -11
  209. package/dist/docs/xpl-divider/readme.md +6 -4
  210. package/dist/docs/xpl-dropdown/readme.md +14 -12
  211. package/dist/docs/xpl-icon/readme.md +14 -2
  212. package/dist/docs/xpl-input/readme.md +66 -41
  213. package/dist/docs/xpl-input/xpl-input-color/readme.md +1 -0
  214. package/dist/docs/xpl-input/xpl-input-phone/readme.md +1 -0
  215. package/dist/docs/xpl-input/xpl-input-search/readme.md +175 -0
  216. package/dist/docs/xpl-input/xpl-input-time/readme.md +1 -0
  217. package/dist/docs/xpl-list/readme.md +320 -10
  218. package/dist/docs/xpl-list/xpl-list-item/readme.md +99 -0
  219. package/dist/docs/xpl-pagination/readme.md +1 -0
  220. package/dist/docs/xpl-panel/readme.md +108 -17
  221. package/dist/docs/xpl-popover/readme.md +2 -0
  222. package/dist/docs/xpl-progress-indicator/readme.md +234 -0
  223. package/dist/docs/xpl-radio/readme.md +6 -4
  224. package/dist/docs/xpl-select/readme.md +19 -16
  225. package/dist/docs/xpl-side-nav/readme.md +2 -2
  226. package/dist/docs/xpl-slideout/readme.md +1 -1
  227. package/dist/docs/xpl-spotlight/readme.md +235 -0
  228. package/dist/docs/xpl-tab/readme.md +43 -7
  229. package/dist/docs/xpl-tab-panel/readme.md +42 -0
  230. package/dist/docs/xpl-tabs/readme.md +62 -8
  231. package/dist/docs/xpl-tag/readme.md +379 -4
  232. package/dist/docs/xpl-toast/readme.md +1 -1
  233. package/dist/docs/xpl-top-nav/readme.md +179 -0
  234. package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +81 -0
  235. package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +87 -0
  236. package/dist/esm/apollo-core.js +4 -4
  237. package/dist/esm/{index-C_Z2nG0p.js → index-C7bgJs6C.js} +18 -8
  238. package/dist/esm/loader.js +3 -3
  239. package/dist/esm/xpl-accordion.entry.js +3 -3
  240. package/dist/esm/xpl-application-shell.entry.js +2 -2
  241. package/dist/esm/{xpl-avatar_47.entry.js → xpl-avatar_54.entry.js} +3719 -536
  242. package/dist/esm/xpl-button-row.entry.js +2 -2
  243. package/dist/esm/xpl-calendar.entry.js +2 -2
  244. package/dist/esm/xpl-dynamic-table-cell.entry.js +3 -3
  245. package/dist/esm/xpl-dynamic-table-row.entry.js +3 -3
  246. package/dist/esm/xpl-dynamic-table.entry.js +2 -2
  247. package/dist/esm/xpl-grid-item.entry.js +2 -2
  248. package/dist/esm/xpl-grid.entry.js +2 -2
  249. package/dist/esm/xpl-large-card.entry.js +2 -2
  250. package/dist/esm/xpl-main-nav.entry.js +2 -2
  251. package/dist/esm/xpl-table-header-cell.entry.js +1 -1
  252. package/dist/esm/xpl-table-header.entry.js +2 -2
  253. package/dist/esm/xpl-toggle.entry.js +4 -4
  254. package/dist/esm/xpl-toolbar.entry.js +3 -3
  255. package/dist/types/components/xpl-avatar/avatar.stories.d.ts +88 -29
  256. package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +29 -2
  257. package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -19
  258. package/dist/types/components/xpl-button/xpl-button.d.ts +7 -0
  259. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +2 -1
  260. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -0
  261. package/dist/types/components/xpl-input/input.stories.d.ts +1 -0
  262. package/dist/types/components/xpl-input/xpl-input-search/xpl-input-search.d.ts +39 -0
  263. package/dist/types/components/xpl-input/xpl-input.d.ts +13 -5
  264. package/dist/types/components/xpl-list/list.stories.d.ts +299 -13
  265. package/dist/types/components/xpl-list/listitem.d.ts +13 -0
  266. package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +71 -0
  267. package/dist/types/components/xpl-list/xpl-list.d.ts +55 -2
  268. package/dist/types/components/xpl-pagination/pagination.stories.d.ts +13 -0
  269. package/dist/types/components/xpl-panel/panel.stories.d.ts +2 -0
  270. package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +62 -0
  271. package/dist/types/components/xpl-progress-indicator/xpl-progress-indicator.d.ts +11 -0
  272. package/dist/types/components/xpl-select/xpl-select.d.ts +3 -0
  273. package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +197 -0
  274. package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +101 -0
  275. package/dist/types/components/xpl-tab/xpl-tab.d.ts +14 -1
  276. package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +2 -1
  277. package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +112 -0
  278. package/dist/types/components/xpl-tabs/tabs.shared.d.ts +156 -0
  279. package/dist/types/components/xpl-tabs/tabs.stories.d.ts +65 -12
  280. package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +37 -18
  281. package/dist/types/components/xpl-tag/tag.stories.d.ts +65 -0
  282. package/dist/types/components/xpl-tag/xpl-tag.d.ts +36 -1
  283. package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +471 -0
  284. package/dist/types/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.d.ts +18 -0
  285. package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +48 -0
  286. package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +51 -0
  287. package/dist/types/components.d.ts +1521 -83
  288. package/dist/types/utils/lifecycle.d.ts +16 -0
  289. package/dist/types/utils/tab-a11y-ids.d.ts +4 -0
  290. package/package.json +12 -3
  291. package/dist/apollo-core/p-0bce3874.entry.js +0 -1
  292. package/dist/apollo-core/p-1fd3dc87.entry.js +0 -1
  293. package/dist/apollo-core/p-56fa4941.entry.js +0 -1
  294. package/dist/apollo-core/p-76c324da.entry.js +0 -1
  295. package/dist/apollo-core/p-7a3224b4.entry.js +0 -1
  296. package/dist/apollo-core/p-7e924697.entry.js +0 -1
  297. package/dist/apollo-core/p-9efca9e1.entry.js +0 -1
  298. package/dist/apollo-core/p-b252b380.entry.js +0 -1
  299. package/dist/apollo-core/p-c91daac1.entry.js +0 -1
  300. package/dist/apollo-core/p-d9b62508.entry.js +0 -1
  301. package/dist/apollo-core/p-eaea16d1.entry.js +0 -1
  302. package/dist/apollo-core/p-eed13bca.entry.js +0 -1
  303. package/dist/cjs/xpl-list.cjs.entry.js +0 -32
  304. package/dist/collection/components/xpl-progress/progress.stories.js +0 -106
  305. package/dist/collection/components/xpl-progress/xpl-progress.js +0 -60
  306. package/dist/components/xpl-progress.js +0 -1
  307. package/dist/docs/xpl-progress/readme.md +0 -22
  308. package/dist/esm/xpl-list.entry.js +0 -30
  309. package/dist/types/components/xpl-progress/progress.stories.d.ts +0 -38
  310. package/dist/types/components/xpl-progress/xpl-progress.d.ts +0 -6
@@ -1,78 +1,28 @@
1
+ import { renderTabsStoryMarkup, tabsPlainDomUnderlineStoryHtml, tabsStoryBaseArgTypes, tabsUnderlineDefaultArgs, } from "./tabs.shared";
1
2
  export default {
2
3
  title: 'Components/Tabs',
4
+ component: 'xpl-tabs',
3
5
  parameters: {
4
6
  actions: {
5
7
  handles: ['tabChange'],
6
8
  },
7
- },
8
- argTypes: {
9
- tabsLength: {
10
- control: {
11
- type: 'number',
12
- },
13
- },
14
- fullWidth: {
15
- control: {
16
- type: 'boolean',
9
+ docs: {
10
+ description: {
11
+ component: 'Underline tabs use `xpl-tabs` with `type="tabs"` (default). **Segment Control** is the same component with `type="segment"` — see **Components/Segment Control** in the sidebar.',
17
12
  },
18
13
  },
19
14
  },
15
+ argTypes: Object.assign(Object.assign({}, tabsStoryBaseArgTypes), { type: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.type), { table: { disable: true } }), icon: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.icon), { table: { disable: true } }), iconPosition: Object.assign(Object.assign({}, tabsStoryBaseArgTypes.iconPosition), { table: { disable: true } }) }),
20
16
  };
21
- const renderHeadingAndPanel = (tabsLength) => Array.from({ length: tabsLength }, (_, index) => `
22
- <xpl-tab target="tab${index}" slot="heading">Tab ${index + 1}</xpl-tab>
23
- <xpl-tab-panel target="tab${index}" slot="panel">Tab ${index + 1} content</xpl-tab-panel>
24
- `).join('');
25
- export const Tabs = ({ tabsLength, fullWidth }) => `
26
- <xpl-tabs value="tab${tabsLength - 1}" full-width="${fullWidth}">
27
- ${renderHeadingAndPanel(tabsLength)}
28
- </xpl-tabs>
29
- `;
30
- Tabs.args = {
31
- tabsLength: 2,
32
- fullWidth: false,
33
- };
17
+ export const Tabs = (args, context) => renderTabsStoryMarkup(args, context !== null && context !== void 0 ? context : {});
18
+ Tabs.args = tabsUnderlineDefaultArgs;
34
19
  Tabs.parameters = {
35
20
  layout: 'padded',
36
21
  'web-component': {
37
- render: (({ tabsLength, fullWidth }) => [
38
- `<xpl-tabs value="tab2" full-width="${fullWidth}">
39
- ${renderHeadingAndPanel(tabsLength)}
40
- </xpl-tabs>`,
41
- ])(Tabs.args),
22
+ render: renderTabsStoryMarkup(tabsUnderlineDefaultArgs),
42
23
  },
43
24
  html: {
44
- render: (({ fullWidth }) => [
45
- `<div class="xpl-tabs ${fullWidth ? 'xpl-tabs--full-width' : ''}">
46
- <xpl-select classnames="xpl-tabs__mobile-select" selectedvalues="tab0"></xpl-select>
47
- <div class="xpl-tabs__headings" role="tablist">
48
- <div
49
- class="xpl-tabs__active-bar"
50
- style="transform: translateX(77.5156px); width: 47.75px"
51
- ></div>
52
- <div class="xpl-tab">
53
- <a class="xpl-tab__button" role="tab" aria-controls="tab0">Tab 1</a>
54
- </div>
55
- <div class="xpl-tab">
56
- <a class="xpl-tab__button" role="tab" aria-controls="tab1">Tab 2</a>
57
- </div>
58
- </div>
59
-
60
- <div class="xpl-tabs__panels">
61
- <div class="xpl-tab-panel">
62
- <div class="xpl-text-title-4">Tab 1 content</div>
63
- <p class="xpl-text-body">
64
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
65
- </p>
66
- </div>
67
- <div class="xpl-tab-panel">
68
- <div class="xpl-text-title-4">Tab 2 content</div>
69
- <p class="xpl-text-body">
70
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
71
- </p>
72
- </div>
73
- </div>
74
- </div>`,
75
- ])(Tabs.args),
25
+ render: tabsPlainDomUnderlineStoryHtml,
76
26
  },
77
27
  design: {
78
28
  type: 'figma',
@@ -1,39 +1,190 @@
1
1
  import { Host, h, } from "@stencil/core";
2
+ const PILL_LABEL_ICON_SELECTORS = '.xpl-button__icon, xpl-icon';
3
+ let xplTabsInstanceCounter = 0;
4
+ function tabHeadingLabelFromElement(tab) {
5
+ var _a, _b;
6
+ const pillInner = tab.querySelector('xpl-button button');
7
+ if (pillInner) {
8
+ const clone = pillInner.cloneNode(true);
9
+ if (clone instanceof HTMLElement) {
10
+ clone.querySelectorAll(PILL_LABEL_ICON_SELECTORS).forEach((node) => node.remove());
11
+ const text = (_a = clone.textContent) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, ' ').trim();
12
+ if (text) {
13
+ return text;
14
+ }
15
+ }
16
+ }
17
+ const underline = tab.querySelector('.xpl-tab__button');
18
+ if (underline) {
19
+ return Array.from(underline.childNodes)
20
+ .filter((node) => node.nodeType === Node.TEXT_NODE)
21
+ .map((node) => { var _a; return ((_a = node.textContent) !== null && _a !== void 0 ? _a : '').trim(); })
22
+ .join(' ');
23
+ }
24
+ return (_b = tab.getAttribute('target')) !== null && _b !== void 0 ? _b : '';
25
+ }
2
26
  export class Tabs {
3
27
  constructor() {
4
- this.fullWidth = false;
5
- this.selectedValue = this.getDefaultValue();
28
+ this.tabHeadings = [];
29
+ this.tabPanels = [];
30
+ this.tablistKeydownBound = false;
6
31
  this.activeBarPosition = {
7
32
  left: 0,
8
33
  width: 0,
9
34
  };
35
+ this.choicesTick = 1;
10
36
  this.isMobileSelectChange = false;
11
- this.tabHeadings = [];
12
- this.tabPanels = [];
37
+ this.selectedValue = '';
38
+ this.disabled = false;
39
+ this.fullWidth = false;
40
+ this.type = 'tabs';
13
41
  this.handleTabChange = (target) => {
14
- this.updateTabsSelectedState(target);
42
+ this.applySelection(target);
43
+ };
44
+ this.onTablistKeydown = async (ev) => {
45
+ var _a, _b;
46
+ if (this.disabled) {
47
+ return;
48
+ }
49
+ const tabHost = (_b = (_a = ev.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, 'xpl-tab');
50
+ if (!tabHost || !this.tabHeadings.includes(tabHost)) {
51
+ return;
52
+ }
53
+ const { key } = ev;
54
+ const rtl = this.isTablistRtl();
55
+ let moveForward = false;
56
+ let moveBackward = false;
57
+ if (rtl) {
58
+ if (key === 'ArrowLeft' || key === 'ArrowDown') {
59
+ moveForward = true;
60
+ }
61
+ else if (key === 'ArrowRight' || key === 'ArrowUp') {
62
+ moveBackward = true;
63
+ }
64
+ }
65
+ else if (key === 'ArrowRight' || key === 'ArrowDown') {
66
+ moveForward = true;
67
+ }
68
+ else if (key === 'ArrowLeft' || key === 'ArrowUp') {
69
+ moveBackward = true;
70
+ }
71
+ const isArrow = moveForward || moveBackward;
72
+ const isHome = key === 'Home';
73
+ const isEnd = key === 'End';
74
+ if (!isArrow && !isHome && !isEnd) {
75
+ return;
76
+ }
77
+ const enabled = this.getEnabledTabHeadingsSync();
78
+ if (enabled.length === 0) {
79
+ return;
80
+ }
81
+ const currentIndex = enabled.indexOf(tabHost);
82
+ if (currentIndex === -1) {
83
+ return;
84
+ }
85
+ let nextIndex;
86
+ if (isArrow) {
87
+ if (moveForward) {
88
+ nextIndex = (currentIndex + 1) % enabled.length;
89
+ }
90
+ else {
91
+ nextIndex = (currentIndex - 1 + enabled.length) % enabled.length;
92
+ }
93
+ }
94
+ else if (isHome) {
95
+ nextIndex = 0;
96
+ }
97
+ else {
98
+ nextIndex = enabled.length - 1;
99
+ }
100
+ const nextTab = enabled[nextIndex];
101
+ const nextValue = nextTab === null || nextTab === void 0 ? void 0 : nextTab.getAttribute('target');
102
+ if (!nextValue) {
103
+ return;
104
+ }
105
+ const currentTarget = tabHost.getAttribute('target');
106
+ ev.preventDefault();
107
+ if (nextValue === currentTarget) {
108
+ return;
109
+ }
110
+ this.applySelection(nextValue);
111
+ await nextTab.focusTrigger();
112
+ this.tabChange.emit(nextValue);
15
113
  };
16
114
  }
17
- onWindowResize() {
18
- this.updateActiveBarPosition();
115
+ onDisabledChanged() {
116
+ this.syncGroupDisabledOnTabs();
117
+ if (!this.disabled) {
118
+ this.syncRovingTabindex();
119
+ }
19
120
  }
20
- getDefaultValue() {
21
- var _a, _b;
22
- return this.value || ((_b = (_a = this.tabHeadings) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getAttribute('target')) || '';
121
+ onFullWidthChanged() {
122
+ this.syncFullWidthOnTabs();
23
123
  }
24
- updateActiveBarPosition() {
25
- const tabHeading = this.tabHeadings.find((heading) => heading.getAttribute('target') === this.selectedValue);
26
- if (!this.headingsContainerRef || !tabHeading) {
124
+ onTypeChanged() {
125
+ this.syncVariantOnTabs();
126
+ }
127
+ onValueChanged(newValue) {
128
+ this.applySelection(newValue);
129
+ }
130
+ connectedCallback() {
131
+ if (!this.el.hasAttribute('data-tabs-instance-id')) {
132
+ xplTabsInstanceCounter += 1;
133
+ this.el.setAttribute('data-tabs-instance-id', `xpl-tg-${xplTabsInstanceCounter}`);
134
+ }
135
+ if (typeof MutationObserver === 'undefined') {
27
136
  return;
28
137
  }
29
- const tabRect = tabHeading.getBoundingClientRect();
30
- const containerRect = this.headingsContainerRef.getBoundingClientRect();
31
- this.activeBarPosition = {
32
- left: tabRect.left - containerRect.left,
33
- width: tabRect.width,
34
- };
138
+ this.observer = new MutationObserver(() => {
139
+ this.collectTabs(true);
140
+ });
141
+ this.observer.observe(this.el, {
142
+ childList: true,
143
+ subtree: true,
144
+ });
145
+ }
146
+ disconnectedCallback() {
147
+ var _a;
148
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
149
+ if (this.headingsContainerRef && this.tablistKeydownBound) {
150
+ this.headingsContainerRef.removeEventListener('keydown', this.onTablistKeydown);
151
+ this.tablistKeydownBound = false;
152
+ }
153
+ if (this.rafId !== undefined) {
154
+ cancelAnimationFrame(this.rafId);
155
+ this.rafId = undefined;
156
+ }
157
+ }
158
+ componentWillLoad() {
159
+ this.selectedValue = this.getDefaultValue();
35
160
  }
36
- updateTabsSelectedState(newValue) {
161
+ componentDidLoad() {
162
+ this.collectTabs(false);
163
+ this.attachTablistKeydown();
164
+ }
165
+ componentDidUpdate() {
166
+ this.updateActiveBarPosition();
167
+ this.syncRovingTabindex();
168
+ }
169
+ componentDidRender() {
170
+ if (!this.tablistKeydownBound && this.headingsContainerRef) {
171
+ this.attachTablistKeydown();
172
+ }
173
+ }
174
+ onWindowResize() {
175
+ this.updateActiveBarPosition();
176
+ }
177
+ syncGroupDisabledOnTabs() {
178
+ this.tabHeadings.forEach((tabHeading) => {
179
+ if (this.disabled) {
180
+ tabHeading.setAttribute('data-group-disabled', '');
181
+ }
182
+ else {
183
+ tabHeading.removeAttribute('data-group-disabled');
184
+ }
185
+ });
186
+ }
187
+ applySelection(newValue) {
37
188
  this.tabHeadings.forEach((tabHeading) => {
38
189
  const isSelected = newValue === tabHeading.getAttribute('target');
39
190
  if (isSelected) {
@@ -52,52 +203,125 @@ export class Tabs {
52
203
  tabPanel.removeAttribute('selected');
53
204
  }
54
205
  });
55
- requestAnimationFrame(() => {
206
+ this.syncGroupDisabledOnTabs();
207
+ if (this.rafId !== undefined) {
208
+ cancelAnimationFrame(this.rafId);
209
+ }
210
+ this.rafId = requestAnimationFrame(() => {
211
+ this.rafId = undefined;
56
212
  this.selectedValue = newValue;
57
213
  this.updateActiveBarPosition();
214
+ this.syncRovingTabindex();
58
215
  });
59
216
  }
60
- collectTabs() {
61
- this.tabHeadings = Array.from(this.el.querySelectorAll('xpl-tab'));
62
- this.tabPanels = Array.from(this.el.querySelectorAll('xpl-tab-panel'));
63
- this.handleTabChange(this.getDefaultValue());
217
+ isOwnedTabOrPanel(node) {
218
+ return node.closest('xpl-tabs') === this.el;
64
219
  }
65
- renderChoices() {
66
- return this.tabHeadings.map((tabHeading) => {
67
- var _a, _b;
68
- return ({
69
- label: Array.from((_b = (_a = tabHeading.querySelector('.xpl-tab__button')) === null || _a === void 0 ? void 0 : _a.childNodes) !== null && _b !== void 0 ? _b : [])
70
- .filter((node) => node.nodeType === Node.TEXT_NODE)
71
- .map((node) => node.textContent.trim())
72
- .join(' '),
73
- value: tabHeading.getAttribute('target'),
74
- });
220
+ collectTabs(bumpChoicesTick) {
221
+ this.tabHeadings = Array.from(this.el.querySelectorAll('xpl-tab')).filter((tab) => this.isOwnedTabOrPanel(tab));
222
+ this.tabPanels = Array.from(this.el.querySelectorAll('xpl-tab-panel')).filter((panel) => this.isOwnedTabOrPanel(panel));
223
+ this.syncVariantOnTabs();
224
+ this.syncFullWidthOnTabs();
225
+ this.applySelection(this.getDefaultValue());
226
+ if (bumpChoicesTick) {
227
+ this.choicesTick += 1;
228
+ }
229
+ }
230
+ syncVariantOnTabs() {
231
+ this.tabHeadings.forEach((tabHeading) => {
232
+ tabHeading.variant = this.type;
75
233
  });
76
234
  }
77
- connectedCallback() {
78
- if (typeof MutationObserver === 'undefined') {
235
+ syncFullWidthOnTabs() {
236
+ this.tabHeadings.forEach((tabHeading) => {
237
+ tabHeading.fullWidth = this.fullWidth;
238
+ });
239
+ }
240
+ getDefaultValue() {
241
+ var _a, _b;
242
+ return this.value || ((_b = (_a = this.tabHeadings) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getAttribute('target')) || '';
243
+ }
244
+ async syncRovingTabindex() {
245
+ if (this.disabled) {
79
246
  return;
80
247
  }
81
- this.observer = new MutationObserver(() => {
82
- this.collectTabs();
248
+ await Promise.all(this.tabHeadings.map(async (tabHeading) => {
249
+ var _a;
250
+ const target = (_a = tabHeading.getAttribute('target')) !== null && _a !== void 0 ? _a : '';
251
+ const isSelected = target === this.selectedValue;
252
+ await tabHeading.setTabIndex(isSelected ? 0 : -1);
253
+ }));
254
+ }
255
+ getEnabledTabHeadingsSync() {
256
+ return this.tabHeadings.filter((tabHeading) => {
257
+ if (this.disabled || tabHeading.hasAttribute('disabled')) {
258
+ return false;
259
+ }
260
+ const btn = tabHeading.variant === 'segment'
261
+ ? tabHeading.querySelector('xpl-button button')
262
+ : tabHeading.querySelector('.xpl-tab__button');
263
+ return Boolean(btn && !btn.disabled);
83
264
  });
84
- this.observer.observe(this.el, {
85
- childList: true,
86
- subtree: true,
265
+ }
266
+ attachTablistKeydown() {
267
+ const nav = this.headingsContainerRef;
268
+ if (!nav || this.tablistKeydownBound) {
269
+ return;
270
+ }
271
+ nav.addEventListener('keydown', this.onTablistKeydown);
272
+ this.tablistKeydownBound = true;
273
+ }
274
+ isTablistRtl() {
275
+ const nav = this.headingsContainerRef;
276
+ if (!nav) {
277
+ return false;
278
+ }
279
+ return getComputedStyle(nav).direction === 'rtl';
280
+ }
281
+ renderChoices() {
282
+ return this.tabHeadings.map((tabHeading) => {
283
+ var _a;
284
+ const target = (_a = tabHeading.getAttribute('target')) !== null && _a !== void 0 ? _a : '';
285
+ const tabDisabled = this.disabled || tabHeading.hasAttribute('disabled');
286
+ const icon = this.type === 'segment' ? tabHeading.getAttribute('icon') || undefined : undefined;
287
+ return Object.assign({ label: tabHeadingLabelFromElement(tabHeading), value: target, isDisabled: tabDisabled }, (icon ? { icon } : {}));
87
288
  });
88
289
  }
89
- disconnectedCallback() {
90
- var _a;
91
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
290
+ updateActiveBarPosition() {
291
+ if (this.type === 'segment') {
292
+ return;
293
+ }
294
+ const tabHeading = this.tabHeadings.find((heading) => heading.getAttribute('target') === this.selectedValue);
295
+ if (!this.headingsContainerRef || !tabHeading) {
296
+ return;
297
+ }
298
+ const tabRect = tabHeading.getBoundingClientRect();
299
+ const containerRect = this.headingsContainerRef.getBoundingClientRect();
300
+ const nextLeft = tabRect.left - containerRect.left;
301
+ const nextWidth = tabRect.width;
302
+ if (this.activeBarPosition.left === nextLeft &&
303
+ this.activeBarPosition.width === nextWidth) {
304
+ return;
305
+ }
306
+ this.activeBarPosition = {
307
+ left: nextLeft,
308
+ width: nextWidth,
309
+ };
92
310
  }
93
- componentDidLoad() {
94
- this.collectTabs();
311
+ mobileSelectClassNames() {
312
+ const base = 'xpl-tabs__mobile-select';
313
+ if (this.type === 'segment') {
314
+ return `${base} xpl-tabs__mobile-select--segment`;
315
+ }
316
+ return base;
95
317
  }
96
318
  render() {
97
- return (h(Host, { key: '0f74359ee1e50de711500ed4d91a7f305a0c8b43', class: {
319
+ const isSegment = this.type === 'segment';
320
+ return (h(Host, { key: '9998ae067e13e7c08338ae29bfe05bc3adacaa87', class: {
98
321
  'xpl-tabs': true,
99
322
  'xpl-tabs--full-width': this.fullWidth,
100
- } }, h("xpl-select", { key: '9315829ad692ec8b80fe00f588974ed8f1b5dbc9', classNames: "xpl-tabs__mobile-select", choices: this.renderChoices(), selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
323
+ 'xpl-tabs--segment': isSegment,
324
+ }, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: '18209c354e77267a13ce0c7380df0e419595cca7', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
101
325
  if (event.detail) {
102
326
  this.isMobileSelectChange = true;
103
327
  }
@@ -108,37 +332,40 @@ export class Tabs {
108
332
  this.tabChange.emit(selectedValue);
109
333
  this.isMobileSelectChange = false;
110
334
  }
111
- } }), h("nav", { key: '7abdf0d065f25c78b393ec9808fe7f44c84bfb27', class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
335
+ } }), h("nav", { key: 'cf1bf2ec95fbbe7f0a6b8774cc5ce26928c7d6ca', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
112
336
  this.headingsContainerRef = el;
113
337
  }, onTabChange: (event) => {
338
+ event.stopPropagation();
114
339
  this.isMobileSelectChange = false;
115
340
  this.handleTabChange(event.detail);
116
- } }, h("div", { key: 'de5157e6ce7914060f25e9b21bd8051a1437f92a', class: "xpl-tabs__active-bar", style: {
341
+ this.tabChange.emit(event.detail);
342
+ } }, !isSegment && (h("div", { key: '5bfd13566a17723ec166a934bc72e59307eacb8c', class: "xpl-tabs__active-bar", style: {
117
343
  transform: `translateX(${this.activeBarPosition.left}px)`,
118
344
  width: `${this.activeBarPosition.width}px`,
119
- } }), h("slot", { key: 'fc61c457e2a4eb10609b97e911b9ddbb2a64757f', name: "heading" })), h("div", { key: 'd6187a0de12b34f61ad10a602085d4525c2850ca', class: "xpl-tabs__panels" }, h("slot", { key: 'c5cf20e4677ee9f998c115d472cfc1cd5e5fa1fd', name: "panel" }))));
345
+ } })), h("slot", { key: '52baf508a46759fe908f8721b3089d3db0189383', name: "heading" })), h("div", { key: '363fe87f244eace0dc0af0903e0b8c25da3a613f', class: "xpl-tabs__panels" }, h("slot", { key: 'f3872844f486cf831bca26a228eba88fa18b42c3', name: "panel" }))));
120
346
  }
121
347
  static get is() { return "xpl-tabs"; }
122
348
  static get properties() {
123
349
  return {
124
- "value": {
125
- "type": "string",
350
+ "disabled": {
351
+ "type": "boolean",
126
352
  "mutable": false,
127
353
  "complexType": {
128
- "original": "string",
129
- "resolved": "string",
354
+ "original": "boolean",
355
+ "resolved": "boolean",
130
356
  "references": {}
131
357
  },
132
358
  "required": false,
133
359
  "optional": false,
134
360
  "docs": {
135
361
  "tags": [],
136
- "text": "The selected tab target value, defaults to the first tab"
362
+ "text": "Disables the whole tab group (headings, mobile select, and segment pills)."
137
363
  },
138
364
  "getter": false,
139
365
  "setter": false,
140
366
  "reflect": false,
141
- "attribute": "value"
367
+ "attribute": "disabled",
368
+ "defaultValue": "false"
142
369
  },
143
370
  "fullWidth": {
144
371
  "type": "boolean",
@@ -159,14 +386,54 @@ export class Tabs {
159
386
  "reflect": false,
160
387
  "attribute": "full-width",
161
388
  "defaultValue": "false"
389
+ },
390
+ "type": {
391
+ "type": "string",
392
+ "mutable": false,
393
+ "complexType": {
394
+ "original": "'tabs' | 'segment'",
395
+ "resolved": "\"segment\" | \"tabs\"",
396
+ "references": {}
397
+ },
398
+ "required": false,
399
+ "optional": false,
400
+ "docs": {
401
+ "tags": [],
402
+ "text": "Visual and layout variant: classic underline tabs or segment (pill) controls."
403
+ },
404
+ "getter": false,
405
+ "setter": false,
406
+ "reflect": true,
407
+ "attribute": "type",
408
+ "defaultValue": "'tabs'"
409
+ },
410
+ "value": {
411
+ "type": "string",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "string",
415
+ "resolved": "string",
416
+ "references": {}
417
+ },
418
+ "required": false,
419
+ "optional": false,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "The selected tab target value, defaults to the first tab"
423
+ },
424
+ "getter": false,
425
+ "setter": false,
426
+ "reflect": false,
427
+ "attribute": "value"
162
428
  }
163
429
  };
164
430
  }
165
431
  static get states() {
166
432
  return {
167
- "selectedValue": {},
168
433
  "activeBarPosition": {},
169
- "isMobileSelectChange": {}
434
+ "choicesTick": {},
435
+ "isMobileSelectChange": {},
436
+ "selectedValue": {}
170
437
  };
171
438
  }
172
439
  static get events() {
@@ -178,7 +445,7 @@ export class Tabs {
178
445
  "composed": true,
179
446
  "docs": {
180
447
  "tags": [],
181
- "text": "Event that emits the target of the selected tab"
448
+ "text": "Emitted when the selected tab changes (click, keyboard, or mobile `xpl-select`).\nThe event `detail` is the selected tab\u2019s `target` string.\nAlways dispatched from this host (including after heading clicks) so `event.target` is\nconsistent for listeners on `xpl-tabs` or bubbling ancestors."
182
449
  },
183
450
  "complexType": {
184
451
  "original": "string",
@@ -190,8 +457,17 @@ export class Tabs {
190
457
  static get elementRef() { return "el"; }
191
458
  static get watchers() {
192
459
  return [{
460
+ "propName": "disabled",
461
+ "methodName": "onDisabledChanged"
462
+ }, {
463
+ "propName": "fullWidth",
464
+ "methodName": "onFullWidthChanged"
465
+ }, {
466
+ "propName": "type",
467
+ "methodName": "onTypeChanged"
468
+ }, {
193
469
  "propName": "value",
194
- "methodName": "updateTabsSelectedState"
470
+ "methodName": "onValueChanged"
195
471
  }];
196
472
  }
197
473
  static get listeners() {