@xplortech/apollo-core 2.4.3 → 2.6.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 (438) hide show
  1. package/.typings/apollo-components.html-data.json +1257 -3360
  2. package/build/style.css +4227 -1019
  3. package/dist/apollo-core/apollo-core.css +18 -27
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/p-02167464.entry.js +1 -0
  6. package/dist/apollo-core/p-0bce3874.entry.js +1 -0
  7. package/dist/apollo-core/{p-8c1f73ea.entry.js → p-1fd3dc87.entry.js} +1 -1
  8. package/dist/apollo-core/{p-0ac33b3a.entry.js → p-42016063.entry.js} +1 -1
  9. package/dist/apollo-core/{p-31461db7.entry.js → p-5549756c.entry.js} +1 -1
  10. package/dist/apollo-core/p-56fa4941.entry.js +1 -0
  11. package/dist/apollo-core/p-76c324da.entry.js +1 -0
  12. package/dist/apollo-core/p-7a3224b4.entry.js +1 -0
  13. package/dist/apollo-core/p-7e924697.entry.js +1 -0
  14. package/dist/apollo-core/{p-b1f4604d.entry.js → p-8a1affce.entry.js} +1 -1
  15. package/dist/apollo-core/p-9efca9e1.entry.js +1 -0
  16. package/dist/apollo-core/p-C_Z2nG0p.js +2 -0
  17. package/dist/apollo-core/p-b252b380.entry.js +1 -0
  18. package/dist/apollo-core/p-c91daac1.entry.js +1 -0
  19. package/dist/apollo-core/p-d9b62508.entry.js +1 -0
  20. package/dist/apollo-core/p-eaea16d1.entry.js +1 -0
  21. package/dist/apollo-core/p-eed13bca.entry.js +1 -0
  22. package/dist/apollo-core/{p-4fab8172.entry.js → p-f5af9539.entry.js} +1 -1
  23. package/dist/cjs/apollo-core.cjs.js +3 -3
  24. package/dist/cjs/{index-D__N_vw2.js → index-DH6pgWru.js} +137 -87
  25. package/dist/cjs/loader.cjs.js +2 -2
  26. package/dist/cjs/xpl-accordion.cjs.entry.js +5 -5
  27. package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -4
  28. package/dist/cjs/xpl-avatar_47.cjs.entry.js +18618 -0
  29. package/dist/cjs/xpl-button-row.cjs.entry.js +4 -4
  30. package/dist/cjs/xpl-calendar.cjs.entry.js +4 -4
  31. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +5 -5
  32. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
  33. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +4 -4
  34. package/dist/cjs/xpl-grid-item.cjs.entry.js +4 -4
  35. package/dist/cjs/xpl-grid.cjs.entry.js +4 -4
  36. package/dist/cjs/xpl-large-card.cjs.entry.js +4 -4
  37. package/dist/cjs/xpl-list.cjs.entry.js +4 -4
  38. package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -4
  39. package/dist/cjs/xpl-table-header-cell.cjs.entry.js +3 -3
  40. package/dist/cjs/xpl-table-header.cjs.entry.js +4 -4
  41. package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
  42. package/dist/cjs/xpl-toolbar.cjs.entry.js +5 -5
  43. package/dist/collection/collection-manifest.json +10 -3
  44. package/dist/collection/components/xpl-accordion/accordion.stories.js +4 -0
  45. package/dist/collection/components/xpl-accordion/xpl-accordion.js +3 -3
  46. package/dist/collection/components/xpl-application-shell/application-shell.stories.js +4 -0
  47. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +2 -2
  48. package/dist/collection/components/xpl-avatar/avatar.stories.js +4 -0
  49. package/dist/collection/components/xpl-avatar/xpl-avatar.js +3 -3
  50. package/dist/collection/components/xpl-backdrop/backdrop.stories.js +4 -0
  51. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +2 -2
  52. package/dist/collection/components/xpl-badge/badge.stories.js +108 -33
  53. package/dist/collection/components/xpl-badge/xpl-badge.js +122 -14
  54. package/dist/collection/components/xpl-banner/banner.stories.js +64 -0
  55. package/dist/collection/components/xpl-banner/xpl-banner.js +295 -0
  56. package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +4 -0
  57. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -2
  58. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -2
  59. package/dist/collection/components/xpl-button/button.stories.js +102 -98
  60. package/dist/collection/components/xpl-button/xpl-button.js +183 -93
  61. package/dist/collection/components/xpl-button-row/xpl-button-row.js +2 -2
  62. package/dist/collection/components/xpl-calendar/calendar.stories.js +4 -0
  63. package/dist/collection/components/xpl-calendar/xpl-calendar.js +2 -2
  64. package/dist/collection/components/xpl-checkbox/checkbox.stories.js +4 -0
  65. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +4 -4
  66. package/dist/collection/components/xpl-choicelist/choicelist.stories.js +4 -0
  67. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +2 -2
  68. package/dist/collection/components/xpl-content-area/xpl-content-area.js +2 -2
  69. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +2 -2
  70. package/dist/collection/components/xpl-data-card/data-card.stories.js +4 -0
  71. package/dist/collection/components/xpl-data-card/xpl-data-card.js +12 -26
  72. package/dist/collection/components/xpl-divider/divider.stories.js +4 -0
  73. package/dist/collection/components/xpl-divider/xpl-divider.js +2 -2
  74. package/dist/collection/components/xpl-dropdown/dropdown.stories.js +4 -0
  75. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -2
  76. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +2 -2
  77. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +29 -4
  78. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +120 -79
  79. package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +4 -0
  80. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
  81. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +3 -3
  82. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +3 -3
  83. package/dist/collection/components/xpl-grid/xpl-grid.js +2 -2
  84. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +2 -2
  85. package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +4 -0
  86. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +2 -2
  87. package/dist/collection/components/xpl-icon/icon-types.js +1 -0
  88. package/dist/collection/components/xpl-icon/icons.stories.js +47 -12
  89. package/dist/collection/components/xpl-icon/xpl-icon.js +14 -16
  90. package/dist/collection/components/xpl-input/input.stories.js +79 -9
  91. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +9 -9
  92. package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +55 -17
  93. package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +5 -5
  94. package/dist/collection/components/xpl-input/xpl-input-phone/phone-country-data.js +58 -0
  95. package/dist/collection/components/xpl-input/xpl-input-phone/phone-format.js +219 -0
  96. package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +469 -0
  97. package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +3 -3
  98. package/dist/collection/components/xpl-input/xpl-input.js +101 -7
  99. package/dist/collection/components/xpl-large-card/large-card.stories.js +4 -0
  100. package/dist/collection/components/xpl-large-card/xpl-large-card.js +2 -2
  101. package/dist/collection/components/xpl-list/list.stories.js +4 -0
  102. package/dist/collection/components/xpl-list/xpl-list.js +2 -2
  103. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +2 -2
  104. package/dist/collection/components/xpl-modal/modal.stories.js +4 -0
  105. package/dist/collection/components/xpl-modal/xpl-modal.js +2 -2
  106. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +3 -3
  107. package/dist/collection/components/xpl-pagination/pagination.stories.js +4 -0
  108. package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
  109. package/dist/collection/components/xpl-panel/panel.stories.js +51 -0
  110. package/dist/collection/components/xpl-panel/xpl-panel.js +60 -0
  111. package/dist/collection/components/xpl-popover/popover.stories.js +4 -0
  112. package/dist/collection/components/xpl-popover/xpl-popover.js +5 -5
  113. package/dist/collection/components/xpl-progress/progress.stories.js +4 -0
  114. package/dist/collection/components/xpl-progress/xpl-progress.js +2 -2
  115. package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +96 -0
  116. package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +158 -0
  117. package/dist/collection/components/xpl-radio/radio.stories.js +4 -0
  118. package/dist/collection/components/xpl-radio/xpl-radio.js +4 -4
  119. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -2
  120. package/dist/collection/components/xpl-select/select.stories.js +4 -0
  121. package/dist/collection/components/xpl-select/xpl-select.js +11 -17
  122. package/dist/collection/components/xpl-side-nav/side-nav.stories.js +519 -0
  123. package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +259 -0
  124. package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +32 -0
  125. package/dist/collection/components/xpl-skeleton/skeleton.stories.js +4 -0
  126. package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +2 -2
  127. package/dist/collection/components/xpl-slideout/slideout.stories.js +6 -0
  128. package/dist/collection/components/xpl-slideout/xpl-slideout.js +2 -2
  129. package/dist/collection/components/xpl-tab/xpl-tab.js +3 -3
  130. package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -3
  131. package/dist/collection/components/xpl-table/table.stories.js +4 -0
  132. package/dist/collection/components/xpl-table/xpl-table.js +6 -6
  133. package/dist/collection/components/xpl-table-header/table-header.stories.js +4 -0
  134. package/dist/collection/components/xpl-table-header/xpl-table-header.js +2 -2
  135. package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +4 -0
  136. package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +6 -16
  137. package/dist/collection/components/xpl-tabs/tabs.stories.js +4 -0
  138. package/dist/collection/components/xpl-tabs/xpl-tabs.js +6 -6
  139. package/dist/collection/components/xpl-tag/xpl-tag.js +3 -3
  140. package/dist/collection/components/xpl-toast/toast.stories.js +4 -0
  141. package/dist/collection/components/xpl-toast/xpl-toast.js +3 -3
  142. package/dist/collection/components/xpl-toggle/toggle.stories.js +4 -0
  143. package/dist/collection/components/xpl-toggle/xpl-toggle.js +4 -4
  144. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +3 -3
  145. package/dist/collection/components/xpl-tooltip/tooltip.stories.js +4 -0
  146. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +2 -2
  147. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +2 -2
  148. package/dist/collection/utils/layout-ancestors.js +22 -0
  149. package/dist/components/index.js +1 -1
  150. package/dist/components/xpl-accordion.js +1 -1
  151. package/dist/components/xpl-application-shell.js +1 -1
  152. package/dist/components/xpl-avatar.js +1 -1
  153. package/dist/components/xpl-avatar2.js +1 -1
  154. package/dist/components/xpl-backdrop.js +1 -1
  155. package/dist/components/xpl-backdrop2.js +1 -1
  156. package/dist/components/xpl-badge.js +1 -1
  157. package/dist/components/xpl-badge2.js +1 -1
  158. package/dist/components/xpl-banner.d.ts +11 -0
  159. package/dist/components/xpl-banner.js +1 -0
  160. package/dist/components/xpl-breadcrumb-item.js +1 -1
  161. package/dist/components/xpl-breadcrumbs.js +1 -1
  162. package/dist/components/xpl-button-row.js +1 -1
  163. package/dist/components/xpl-button.js +1 -1
  164. package/dist/components/xpl-button2.js +1 -1
  165. package/dist/components/xpl-calendar.js +1 -1
  166. package/dist/components/xpl-checkbox.js +1 -1
  167. package/dist/components/xpl-checkbox2.js +1 -1
  168. package/dist/components/xpl-choicelist.js +1 -1
  169. package/dist/components/xpl-content-area.js +1 -1
  170. package/dist/components/xpl-dashboard.js +1 -1
  171. package/dist/components/xpl-data-card.js +1 -1
  172. package/dist/components/xpl-divider.js +1 -1
  173. package/dist/components/xpl-divider2.js +1 -1
  174. package/dist/components/xpl-dropdown-group.js +1 -1
  175. package/dist/components/xpl-dropdown-group2.js +1 -1
  176. package/dist/components/xpl-dropdown-heading.js +1 -1
  177. package/dist/components/xpl-dropdown-heading2.js +1 -1
  178. package/dist/components/xpl-dropdown-option.js +1 -1
  179. package/dist/components/xpl-dropdown-option2.js +1 -1
  180. package/dist/components/xpl-dropdown.js +1 -1
  181. package/dist/components/xpl-dropdown2.js +1 -1
  182. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  183. package/dist/components/xpl-dynamic-table-row.js +1 -1
  184. package/dist/components/xpl-dynamic-table.js +1 -1
  185. package/dist/components/xpl-grid-item.js +1 -1
  186. package/dist/components/xpl-grid.js +1 -1
  187. package/dist/components/xpl-header-accordion.js +1 -1
  188. package/dist/components/xpl-icon.js +1 -1
  189. package/dist/components/xpl-icon2.js +1 -6
  190. package/dist/components/xpl-input-date.js +1 -1
  191. package/dist/components/xpl-input-date2.js +1 -1
  192. package/dist/components/xpl-input-file.js +1 -1
  193. package/dist/components/xpl-input-file2.js +1 -1
  194. package/dist/components/xpl-input-phone.d.ts +11 -0
  195. package/dist/components/xpl-input-phone.js +1 -0
  196. package/dist/components/xpl-input-time.js +1 -1
  197. package/dist/components/xpl-input.js +1 -1
  198. package/dist/components/xpl-input2.js +1 -1
  199. package/dist/components/xpl-large-card.js +1 -1
  200. package/dist/components/xpl-list.js +1 -1
  201. package/dist/components/xpl-main-nav.js +1 -1
  202. package/dist/components/xpl-modal.js +1 -1
  203. package/dist/components/xpl-nav-item.js +1 -1
  204. package/dist/components/xpl-pagination.js +1 -1
  205. package/dist/components/xpl-panel.d.ts +11 -0
  206. package/dist/components/xpl-panel.js +1 -0
  207. package/dist/components/xpl-popover.js +1 -1
  208. package/dist/components/xpl-popover2.js +1 -1
  209. package/dist/components/xpl-progress-bar.d.ts +11 -0
  210. package/dist/components/xpl-progress-bar.js +1 -0
  211. package/dist/components/xpl-progress.js +1 -1
  212. package/dist/components/xpl-radio.js +1 -1
  213. package/dist/components/xpl-radio2.js +1 -1
  214. package/dist/components/xpl-secondary-nav.js +1 -1
  215. package/dist/components/xpl-select.js +1 -1
  216. package/dist/components/xpl-select2.js +1 -1
  217. package/dist/components/xpl-side-nav-item.d.ts +11 -0
  218. package/dist/components/xpl-side-nav-item.js +1 -0
  219. package/dist/components/xpl-side-nav.d.ts +11 -0
  220. package/dist/components/xpl-side-nav.js +1 -0
  221. package/dist/components/xpl-skeleton.js +1 -1
  222. package/dist/components/xpl-slideout.js +1 -1
  223. package/dist/components/xpl-tab-panel.js +1 -1
  224. package/dist/components/xpl-tab.js +1 -1
  225. package/dist/components/xpl-table-header.js +1 -1
  226. package/dist/components/xpl-table.js +1 -1
  227. package/dist/components/xpl-tabs.js +1 -1
  228. package/dist/components/xpl-tag.js +1 -1
  229. package/dist/components/xpl-tag2.js +1 -1
  230. package/dist/components/xpl-toast.js +1 -1
  231. package/dist/components/xpl-toggle.js +1 -1
  232. package/dist/components/xpl-toolbar.js +1 -1
  233. package/dist/components/xpl-tooltip.js +1 -1
  234. package/dist/components/xpl-tooltip2.js +1 -1
  235. package/dist/components/xpl-utility-bar.js +1 -1
  236. package/dist/docs/xpl-accordion/readme.md +66 -0
  237. package/dist/docs/xpl-application-shell/readme.md +33 -0
  238. package/dist/docs/xpl-avatar/readme.md +40 -0
  239. package/dist/docs/xpl-backdrop/readme.md +34 -0
  240. package/dist/docs/xpl-badge/readme.md +122 -0
  241. package/dist/docs/xpl-banner/readme.md +166 -0
  242. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +19 -0
  243. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +22 -0
  244. package/dist/docs/xpl-button/readme.md +181 -0
  245. package/dist/docs/xpl-button-row/readme.md +42 -0
  246. package/dist/docs/xpl-calendar/readme.md +49 -0
  247. package/dist/docs/xpl-checkbox/readme.md +49 -0
  248. package/dist/docs/xpl-choicelist/readme.md +44 -0
  249. package/dist/docs/xpl-content-area/readme.md +17 -0
  250. package/dist/docs/xpl-dashboard/readme.md +10 -0
  251. package/dist/docs/xpl-data-card/readme.md +54 -0
  252. package/dist/docs/xpl-divider/readme.md +30 -0
  253. package/dist/docs/xpl-dropdown/readme.md +83 -0
  254. package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +40 -0
  255. package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +30 -0
  256. package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +42 -0
  257. package/dist/docs/xpl-dynamic-table/readme.md +19 -0
  258. package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -0
  259. package/dist/docs/xpl-dynamic-table-row/readme.md +19 -0
  260. package/dist/docs/xpl-grid/readme.md +10 -0
  261. package/dist/docs/xpl-grid-item/readme.md +20 -0
  262. package/dist/docs/xpl-header-accordion/readme.md +39 -0
  263. package/dist/docs/xpl-icon/readme.md +92 -0
  264. package/dist/docs/xpl-input/readme.md +100 -0
  265. package/dist/docs/xpl-input/xpl-input-color/readme.md +65 -0
  266. package/dist/docs/xpl-input/xpl-input-date/readme.md +56 -0
  267. package/dist/docs/xpl-input/xpl-input-file/readme.md +79 -0
  268. package/dist/docs/xpl-input/xpl-input-phone/readme.md +167 -0
  269. package/dist/docs/xpl-input/xpl-input-time/readme.md +73 -0
  270. package/dist/docs/xpl-large-card/readme.md +40 -0
  271. package/dist/docs/xpl-list/readme.md +34 -0
  272. package/dist/docs/xpl-main-nav/readme.md +28 -0
  273. package/dist/docs/xpl-modal/readme.md +58 -0
  274. package/dist/docs/xpl-nav-item/readme.md +24 -0
  275. package/dist/docs/xpl-pagination/readme.md +55 -0
  276. package/dist/docs/xpl-panel/readme.md +83 -0
  277. package/dist/docs/xpl-popover/readme.md +48 -0
  278. package/dist/docs/xpl-progress/readme.md +22 -0
  279. package/dist/docs/xpl-progress-bar/readme.md +145 -0
  280. package/dist/docs/xpl-radio/readme.md +43 -0
  281. package/dist/docs/xpl-secondary-nav/readme.md +10 -0
  282. package/dist/docs/xpl-select/readme.md +89 -0
  283. package/dist/docs/xpl-side-nav/readme.md +71 -0
  284. package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +115 -0
  285. package/dist/docs/xpl-skeleton/readme.md +31 -0
  286. package/dist/docs/xpl-slideout/readme.md +47 -0
  287. package/dist/docs/xpl-tab/readme.md +25 -0
  288. package/dist/docs/xpl-tab-panel/readme.md +18 -0
  289. package/dist/docs/xpl-table/readme.md +46 -0
  290. package/dist/docs/xpl-table-header/readme.md +13 -0
  291. package/dist/docs/xpl-table-header-cell/readme.md +47 -0
  292. package/dist/docs/xpl-tabs/readme.md +55 -0
  293. package/dist/docs/xpl-tag/readme.md +30 -0
  294. package/dist/docs/xpl-toast/readme.md +97 -0
  295. package/dist/docs/xpl-toggle/readme.md +23 -0
  296. package/dist/docs/xpl-toolbar/readme.md +18 -0
  297. package/dist/docs/xpl-tooltip/readme.md +35 -0
  298. package/dist/docs/xpl-utility-bar/readme.md +55 -0
  299. package/dist/esm/apollo-core.js +4 -4
  300. package/dist/esm/{index-DhZas3eX.js → index-C_Z2nG0p.js} +137 -87
  301. package/dist/esm/loader.js +3 -3
  302. package/dist/esm/xpl-accordion.entry.js +5 -5
  303. package/dist/esm/xpl-application-shell.entry.js +4 -4
  304. package/dist/esm/xpl-avatar_47.entry.js +18570 -0
  305. package/dist/esm/xpl-button-row.entry.js +4 -4
  306. package/dist/esm/xpl-calendar.entry.js +4 -4
  307. package/dist/esm/xpl-dynamic-table-cell.entry.js +5 -5
  308. package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
  309. package/dist/esm/xpl-dynamic-table.entry.js +4 -4
  310. package/dist/esm/xpl-grid-item.entry.js +4 -4
  311. package/dist/esm/xpl-grid.entry.js +4 -4
  312. package/dist/esm/xpl-large-card.entry.js +4 -4
  313. package/dist/esm/xpl-list.entry.js +4 -4
  314. package/dist/esm/xpl-main-nav.entry.js +4 -4
  315. package/dist/esm/xpl-table-header-cell.entry.js +3 -3
  316. package/dist/esm/xpl-table-header.entry.js +4 -4
  317. package/dist/esm/xpl-toggle.entry.js +6 -6
  318. package/dist/esm/xpl-toolbar.entry.js +5 -5
  319. package/dist/types/components/xpl-accordion/xpl-accordion.d.ts +1 -1
  320. package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +4 -0
  321. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
  322. package/dist/types/components/xpl-avatar/avatar.stories.d.ts +4 -0
  323. package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +1 -1
  324. package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +4 -0
  325. package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +1 -1
  326. package/dist/types/components/xpl-badge/badge.stories.d.ts +66 -11
  327. package/dist/types/components/xpl-badge/xpl-badge.d.ts +9 -2
  328. package/dist/types/components/xpl-banner/banner.stories.d.ts +77 -0
  329. package/dist/types/components/xpl-banner/xpl-banner.d.ts +20 -0
  330. package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +4 -0
  331. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +1 -1
  332. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +1 -1
  333. package/dist/types/components/xpl-button/button.stories.d.ts +68 -30
  334. package/dist/types/components/xpl-button/xpl-button.d.ts +14 -8
  335. package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +1 -1
  336. package/dist/types/components/xpl-calendar/calendar.stories.d.ts +4 -0
  337. package/dist/types/components/xpl-calendar/xpl-calendar.d.ts +1 -1
  338. package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +4 -0
  339. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +1 -1
  340. package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +4 -0
  341. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -1
  342. package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +1 -1
  343. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +1 -1
  344. package/dist/types/components/xpl-data-card/data-card.stories.d.ts +4 -0
  345. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +3 -4
  346. package/dist/types/components/xpl-divider/divider.stories.d.ts +4 -0
  347. package/dist/types/components/xpl-divider/xpl-divider.d.ts +1 -1
  348. package/dist/types/components/xpl-dropdown/dropdown-option.d.ts +1 -0
  349. package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +1 -1
  350. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -1
  351. package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +1 -1
  352. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +3 -2
  353. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +11 -8
  354. package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +4 -0
  355. package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +1 -1
  356. package/dist/types/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.d.ts +1 -1
  357. package/dist/types/components/xpl-dynamic-table-row/xpl-dynamic-table-row.d.ts +1 -1
  358. package/dist/types/components/xpl-grid/xpl-grid.d.ts +1 -1
  359. package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +1 -1
  360. package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +4 -0
  361. package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +1 -1
  362. package/dist/types/components/xpl-icon/icon-types.d.ts +2 -0
  363. package/dist/types/components/xpl-icon/xpl-icon.d.ts +2 -4
  364. package/dist/types/components/xpl-input/input.stories.d.ts +40 -7
  365. package/dist/types/components/xpl-input/xpl-input-color/xpl-input-color.d.ts +1 -1
  366. package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +10 -3
  367. package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
  368. package/dist/types/components/xpl-input/xpl-input-phone/phone-country-data.d.ts +13 -0
  369. package/dist/types/components/xpl-input/xpl-input-phone/phone-format.d.ts +5 -0
  370. package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +48 -0
  371. package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
  372. package/dist/types/components/xpl-input/xpl-input.d.ts +12 -2
  373. package/dist/types/components/xpl-large-card/large-card.stories.d.ts +4 -0
  374. package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +1 -1
  375. package/dist/types/components/xpl-list/list.stories.d.ts +4 -0
  376. package/dist/types/components/xpl-list/xpl-list.d.ts +1 -1
  377. package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
  378. package/dist/types/components/xpl-modal/modal.stories.d.ts +4 -0
  379. package/dist/types/components/xpl-modal/xpl-modal.d.ts +1 -1
  380. package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +1 -1
  381. package/dist/types/components/xpl-pagination/pagination.stories.d.ts +4 -0
  382. package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
  383. package/dist/types/components/xpl-panel/panel.stories.d.ts +20 -0
  384. package/dist/types/components/xpl-panel/xpl-panel.d.ts +5 -0
  385. package/dist/types/components/xpl-popover/xpl-popover.d.ts +1 -1
  386. package/dist/types/components/xpl-progress/progress.stories.d.ts +4 -0
  387. package/dist/types/components/xpl-progress/xpl-progress.d.ts +1 -1
  388. package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +73 -0
  389. package/dist/types/components/xpl-progress-bar/xpl-progress-bar.d.ts +15 -0
  390. package/dist/types/components/xpl-radio/radio.stories.d.ts +4 -0
  391. package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
  392. package/dist/types/components/xpl-secondary-nav/xpl-secondary-nav.d.ts +1 -1
  393. package/dist/types/components/xpl-select/select.stories.d.ts +4 -0
  394. package/dist/types/components/xpl-select/xpl-select.d.ts +2 -4
  395. package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +80 -0
  396. package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +20 -0
  397. package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +4 -0
  398. package/dist/types/components/xpl-skeleton/xpl-skeleton.d.ts +1 -1
  399. package/dist/types/components/xpl-slideout/slideout.stories.d.ts +6 -0
  400. package/dist/types/components/xpl-slideout/xpl-slideout.d.ts +1 -1
  401. package/dist/types/components/xpl-tab/xpl-tab.d.ts +1 -1
  402. package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +1 -1
  403. package/dist/types/components/xpl-table/table.stories.d.ts +4 -0
  404. package/dist/types/components/xpl-table/xpl-table.d.ts +1 -1
  405. package/dist/types/components/xpl-table-header/table-header.stories.d.ts +4 -0
  406. package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +1 -1
  407. package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +4 -0
  408. package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +2 -3
  409. package/dist/types/components/xpl-tabs/tabs.stories.d.ts +4 -0
  410. package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +2 -2
  411. package/dist/types/components/xpl-tag/xpl-tag.d.ts +1 -1
  412. package/dist/types/components/xpl-toast/toast.stories.d.ts +4 -0
  413. package/dist/types/components/xpl-toast/xpl-toast.d.ts +1 -1
  414. package/dist/types/components/xpl-toggle/toggle.stories.d.ts +4 -0
  415. package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
  416. package/dist/types/components/xpl-toolbar/xpl-toolbar.d.ts +1 -1
  417. package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +4 -0
  418. package/dist/types/components/xpl-tooltip/xpl-tooltip.d.ts +1 -1
  419. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -1
  420. package/dist/types/components.d.ts +1210 -173
  421. package/dist/types/stencil-public-runtime.d.ts +23 -2
  422. package/dist/types/utils/layout-ancestors.d.ts +2 -0
  423. package/package.json +45 -28
  424. package/dist/apollo-core/p-3b5f8989.entry.js +0 -1
  425. package/dist/apollo-core/p-576ce90f.entry.js +0 -1
  426. package/dist/apollo-core/p-5c0236db.entry.js +0 -6
  427. package/dist/apollo-core/p-5ec45742.entry.js +0 -1
  428. package/dist/apollo-core/p-7b7db57a.entry.js +0 -1
  429. package/dist/apollo-core/p-7f8e5cd0.entry.js +0 -1
  430. package/dist/apollo-core/p-812bb0e4.entry.js +0 -1
  431. package/dist/apollo-core/p-845eef0d.entry.js +0 -1
  432. package/dist/apollo-core/p-94209785.entry.js +0 -1
  433. package/dist/apollo-core/p-9853028c.entry.js +0 -1
  434. package/dist/apollo-core/p-9d65ece7.entry.js +0 -1
  435. package/dist/apollo-core/p-DhZas3eX.js +0 -2
  436. package/dist/apollo-core/p-be292555.entry.js +0 -1
  437. package/dist/cjs/xpl-avatar_41.cjs.entry.js +0 -5522
  438. package/dist/esm/xpl-avatar_41.entry.js +0 -5480
@@ -0,0 +1,65 @@
1
+ # xpl-input-color
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ---------------- | ------------------ | ----------------------------------------------------------------------------- | --------- | ---------------- |
12
+ | `disabled` | `disabled` | Indicates whether the color picker is disabled. | `boolean` | `undefined` |
13
+ | `hideEyeDropper` | `hide-eye-dropper` | Hide eye dropper | `boolean` | `undefined` |
14
+ | `placeholder` | `placeholder` | Placeholder text for the color input. This is used when no color is selected. | `string` | `'Select color'` |
15
+ | `required` | `required` | Indicates whether the color picker is required. | `boolean` | `undefined` |
16
+ | `value` | `value` | The color value of the picker. | `string` | `undefined` |
17
+
18
+
19
+ ## Events
20
+
21
+ | Event | Description | Type |
22
+ | ---------------------- | ----------------------------------------------------------- | --------------------- |
23
+ | `hasErrorStateChanged` | Event that is emitted when the hasErrorState state changes. | `CustomEvent<string>` |
24
+ | `inputChange` | Event that is emitted when the color value changes. | `CustomEvent<string>` |
25
+
26
+
27
+ ## Dependencies
28
+
29
+ ### Used by
30
+
31
+ - [xpl-input](..)
32
+
33
+ ### Depends on
34
+
35
+ - [xpl-popover](../../xpl-popover)
36
+ - [xpl-icon](../../xpl-icon)
37
+ - [xpl-input](..)
38
+
39
+ ### Graph
40
+ ```mermaid
41
+ graph TD;
42
+ xpl-input-color --> xpl-popover
43
+ xpl-input-color --> xpl-icon
44
+ xpl-input-color --> xpl-input
45
+ xpl-input --> xpl-input-color
46
+ xpl-input-file --> xpl-icon
47
+ xpl-input-date --> xpl-icon
48
+ xpl-input-time --> xpl-input
49
+ xpl-input-time --> xpl-icon
50
+ xpl-input-time --> xpl-dropdown
51
+ xpl-dropdown --> xpl-dropdown-group
52
+ xpl-dropdown --> xpl-dropdown-option
53
+ xpl-dropdown-group --> xpl-dropdown-group
54
+ xpl-dropdown-group --> xpl-dropdown-option
55
+ xpl-dropdown-group --> xpl-dropdown-heading
56
+ xpl-dropdown-option --> xpl-icon
57
+ xpl-input-phone --> xpl-icon
58
+ xpl-input-phone --> xpl-dropdown
59
+ xpl-input-phone --> xpl-input
60
+ style xpl-input-color fill:#f9f,stroke:#333,stroke-width:4px
61
+ ```
62
+
63
+ ----------------------------------------------
64
+
65
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,56 @@
1
+ # xpl-input-date
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------- |
12
+ | `dateFormat` | `date-format` | The date format to use for the datepicker input. This is used by flatpickr to format the date. Default is 'Y-m-d' (e.g., 2023-10-01). See https://flatpickr.js.org/formatting/ for more details. | `string` | `'Y-m-d'` |
13
+ | `disabled` | `disabled` | Whether the field is disabled | `boolean` | `undefined` |
14
+ | `inputId` | `input-id` | The `inputId` is used to associate the input with a label. | `string` | `undefined` |
15
+ | `max` | `max` | Maximum value for the input. | `number \| string` | `undefined` |
16
+ | `min` | `min` | The minimum value for the input. | `number \| string` | `undefined` |
17
+ | `mode` | `mode` | For datepicker inputs, whether to allow only a single date or a range of dates. (Multiple non-consecutive dates planned to be supported in the future.) | `"range" \| "single"` | `'single'` |
18
+ | `name` | `name` | Most inputs are used in forms, and should have a `name` associated with the input for handling form data. Applies to all input types. | `string` | `undefined` |
19
+ | `placeholder` | `placeholder` | Placeholder text that appears when the field has no value Applies to text, password, number, and date inputs. | `string` | `undefined` |
20
+ | `post` | `post` | A string (recommended max 3 characters) that gets shown visually to the left of (before) the input. | `string` | `undefined` |
21
+ | `pre` | `pre` | A string (recommended max 8 characters) that gets shown visually to the right of (after) the input. | `string` | `undefined` |
22
+ | `readonly` | `readonly` | Whether the input is editable | `boolean` | `undefined` |
23
+ | `required` | `required` | Whether the input is required | `boolean` | `undefined` |
24
+ | `value` | `value` | Including a `value` will pre-populate the input with the given string. | `string` | `undefined` |
25
+
26
+
27
+ ## Events
28
+
29
+ | Event | Description | Type |
30
+ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------ |
31
+ | `hasErrorStateChanged` | Event that is emitted when the hasErrorState state changes. | `CustomEvent<string>` |
32
+ | `rangeSelected` | Event that emits the selected date range when the mode is 'range'. The emitted value is an object with `start` and `end` properties. | `CustomEvent<{ start: Date; end: Date; }>` |
33
+ | `valueChange` | Event that emits the current value of the input | `CustomEvent<string>` |
34
+
35
+
36
+ ## Dependencies
37
+
38
+ ### Used by
39
+
40
+ - [xpl-input](..)
41
+
42
+ ### Depends on
43
+
44
+ - [xpl-icon](../../xpl-icon)
45
+
46
+ ### Graph
47
+ ```mermaid
48
+ graph TD;
49
+ xpl-input-date --> xpl-icon
50
+ xpl-input --> xpl-input-date
51
+ style xpl-input-date fill:#f9f,stroke:#333,stroke-width:4px
52
+ ```
53
+
54
+ ----------------------------------------------
55
+
56
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,79 @@
1
+ # xpl-file-upload
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Overview
9
+
10
+ `xpl-input-file` is a component that allows users to upload files.
11
+
12
+ ## Properties
13
+
14
+ | Property | Attribute | Description | Type | Default |
15
+ | --------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------- |
16
+ | `_id` | `_id` | Because `id` is a reserved HTMLElement attribute, we prefix it with an underscore here so that it doesn't get automatically applied to the outer container. | `string` | `undefined` |
17
+ | `accept` | `accept` | The accepted file types for the file input. Corresponds to the `accept` attribute on the input element. Example: 'image/*' for all image types, '.pdf' for PDF files, etc. | `string` | `''` |
18
+ | `disabled` | `disabled` | Whether the field is disabled | `boolean` | `undefined` |
19
+ | `hideAcceptText` | `hide-accept-text` | Hides the "Accept" text that indicates the accepted file types | `boolean` | `false` |
20
+ | `hideFileNames` | `hide-file-names` | Hides the file names in the file upload component | `boolean` | `false` |
21
+ | `hideTriggerOnSelect` | `hide-trigger-on-select` | Hides the trigger element when a file is selected. | `boolean` | `false` |
22
+ | `multiple` | `multiple` | Whether the user can select multiple files at once. Corresponds to the `multiple` attribute on the input element. | `boolean` | `false` |
23
+ | `name` | `name` | Most inputs are used in forms, and should have a `name` associated with the input for handling form data. | `string` | `undefined` |
24
+
25
+
26
+ ## Events
27
+
28
+ | Event | Description | Type |
29
+ | ------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------- |
30
+ | `inputChange` | Event emitted when a file is selected. The event detail contains the FileList object. | `CustomEvent<{ type: string; value: File[]; }>` |
31
+
32
+
33
+ ## Methods
34
+
35
+ ### `removeFileByIndex(fileIndex: number) => Promise<void>`
36
+
37
+ Removes a file from the selected files by its index.
38
+
39
+ #### Parameters
40
+
41
+ | Name | Type | Description |
42
+ | ----------- | -------- | -------------------------------- |
43
+ | `fileIndex` | `number` | The index of the file to remove. |
44
+
45
+ #### Returns
46
+
47
+ Type: `Promise<void>`
48
+
49
+
50
+
51
+
52
+ ## Slots
53
+
54
+ | Slot | Description |
55
+ | ----------- | ----------------------------------------------------------------- |
56
+ | `"trigger"` | The element that, when clicked, will open the file select dialog. |
57
+
58
+
59
+ ## Dependencies
60
+
61
+ ### Used by
62
+
63
+ - [xpl-input](..)
64
+
65
+ ### Depends on
66
+
67
+ - [xpl-icon](../../xpl-icon)
68
+
69
+ ### Graph
70
+ ```mermaid
71
+ graph TD;
72
+ xpl-input-file --> xpl-icon
73
+ xpl-input --> xpl-input-file
74
+ style xpl-input-file fill:#f9f,stroke:#333,stroke-width:4px
75
+ ```
76
+
77
+ ----------------------------------------------
78
+
79
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,167 @@
1
+ # xpl-input-phone
2
+
3
+ The Phone Input Field allows users to input properly formatted phone numbers. It supports two modes: **international** (country selector + dial code prefix) and **domestic** (single country, no selector). Used as a subcomponent of `xpl-input` when `type="phone"`. The value is always emitted in **E.164** format (e.g. `+14155551234`).
4
+
5
+ ## Usage
6
+
7
+ ### International mode (default)
8
+
9
+ Use via the parent component for full international support with a country selector:
10
+
11
+ ```html
12
+ <xpl-input type="phone" label="Phone number" name="phone"></xpl-input>
13
+ ```
14
+
15
+ With preferred countries pinned to the top of the list:
16
+
17
+ ```html
18
+ <xpl-input
19
+ type="phone"
20
+ label="Phone number"
21
+ name="phone"
22
+ preferred-countries='["US","CA","GB"]'
23
+ ></xpl-input>
24
+ ```
25
+
26
+ ### Domestic mode
27
+
28
+ Set `is-international="false"` to lock the input to a single country. The country selector trigger and dropdown are hidden, and no dial code is shown in the input. The emitted value is still E.164.
29
+
30
+ ```html
31
+ <xpl-input
32
+ type="phone"
33
+ label="Phone number"
34
+ name="phone"
35
+ default-country="US"
36
+ is-international="false"
37
+ ></xpl-input>
38
+ ```
39
+
40
+ ### Pre-populating a value
41
+
42
+ Pass an E.164 string to `value`. The component parses it into the correct country and national number:
43
+
44
+ ```html
45
+ <xpl-input type="phone" label="Phone" value="+14155551234"></xpl-input>
46
+ ```
47
+
48
+ ## Value format
49
+
50
+ - **value** / **valueChange**: E.164 string (e.g. `+14155551234`). You can set `value` to pre-fill; the component parses it into country and national number.
51
+ - **defaultCountry**: ISO 3166-1 alpha-2 code (e.g. `"US"`) used when value is empty. In domestic mode, this locks the country permanently.
52
+ - **preferredCountries**: Optional array of country codes to show at the top of the country list (international mode only).
53
+ - **isInternational**: When `true` (default), the full international UI is shown. When `false`, the component is a simple domestic phone input locked to `defaultCountry`.
54
+
55
+ ## Design and behaviour
56
+
57
+ ### Country selector (international mode)
58
+
59
+ - The **trigger** displays a country flag icon (`xpl-icon`) and a chevron-down icon.
60
+ - Clicking the trigger opens an `xpl-dropdown` panel containing a **type-ahead search** field and a scrollable list of countries. Each option shows its flag icon, name, and dial code.
61
+ - Search filters by country name, dial code, or ISO country code.
62
+ - When a country is selected, focus returns to the phone input and the cursor is positioned after the dial code.
63
+ - Countries sharing a dial code (e.g. US and Canada both use `+1`) are handled correctly: changing the country in the dropdown preserves the selection even when the dial code is the same.
64
+
65
+ ### Domestic mode
66
+
67
+ No country selector is rendered. The input behaves as a standard phone field with country-specific formatting and validation based on `defaultCountry`. The dial code is not displayed in the input, but the emitted value is still E.164.
68
+
69
+ ### Input handling
70
+
71
+ - **Sanitization**: Non-numeric characters are automatically stripped on every keystroke, paste, or autofill. The input only accepts digits.
72
+ - **Max length**: Enforced per country based on the national number format (e.g. 10 digits for US/CA, 9 for AU/FR).
73
+ - **Cursor protection** (international mode): The dial code prefix (e.g. `+1 `) is read-only within the input. Users cannot backspace into it, click before it, or use Home/ArrowLeft to move the cursor before it.
74
+ - **Clear button**: A clear (`x-circle`) button appears when there is input and the field is not disabled or readonly.
75
+
76
+ ### Phone formatting
77
+
78
+ The national number is formatted as the user types (e.g. US: `415 555 1234`, FR: `6 12 34 56 78`). The stored and emitted value remains E.164. Cursor position is intelligently preserved during formatting so it does not jump.
79
+
80
+ Countries with custom formatters: US/CA, GB, AU, DE/AT/CH, FR, BR, MX, JP, CN, IN, KR. All other countries use a generic grouping format.
81
+
82
+ ### Validation and errors
83
+
84
+ - When `required` is set, the component emits a `hasErrorStateChanged` event with `"required"` if the national number is empty on change.
85
+ - The parent `xpl-input` can pass an `error` prop for external error messages (e.g. server-side validation).
86
+ - The component applies `xpl-input-phone--error` to the host when an internal error state is active.
87
+
88
+ ### Accessibility
89
+
90
+ - The country selector trigger has `aria-haspopup="listbox"` and `aria-expanded`.
91
+ - The country selector trigger has `aria-label="Select country"` for screen-reader clarity.
92
+ - The dropdown panel has `aria-label="Country"`.
93
+ - The clear button has `aria-label="Clear phone number"`.
94
+ - The input uses `inputmode="numeric"` to hint a numeric keyboard on mobile and `autocomplete="tel-national"` (international) or `autocomplete="tel"` (domestic).
95
+ - The input sets `aria-invalid="true"` when in an error state (e.g. required field left empty).
96
+ - Decorative icons (flag, chevron) use `aria-hidden="true"` to avoid screen reader noise.
97
+
98
+ ## Supported countries
99
+
100
+ 28 countries are currently supported. See `phone-country-data.ts` for the full list. Countries with custom number formatting are noted above. To add a new country, add an entry to the `PHONE_COUNTRIES` array and optionally add a formatter in `phone-format.ts`.
101
+
102
+ <!-- Auto Generated Below -->
103
+
104
+
105
+ ## Properties
106
+
107
+ | Property | Attribute | Description | Type | Default |
108
+ | -------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | ----------- |
109
+ | `defaultCountry` | `default-country` | Default country code (ISO 3166-1 alpha-2) when value is empty, e.g. "US". | `string` | `'US'` |
110
+ | `disabled` | `disabled` | Whether the field is disabled | `boolean` | `undefined` |
111
+ | `inputId` | `input-id` | The `inputId` is used to associate the input with a label. | `string` | `undefined` |
112
+ | `isInternational` | `is-international` | Enables international mode with a country selector and dial code prefix. When false, the input is locked to `defaultCountry` with no country picker and no dial code shown in the display value. Emitted value is still E.164. | `boolean` | `true` |
113
+ | `name` | `name` | Most inputs are used in forms, and should have a `name` associated with the input for handling form data. | `string` | `undefined` |
114
+ | `placeholder` | `placeholder` | Placeholder text that appears when the field has no value | `string` | `undefined` |
115
+ | `preferredCountries` | -- | Country codes to show at the top of the country list, e.g. ["US", "CA", "GB"]. | `string[]` | `undefined` |
116
+ | `readonly` | `readonly` | Whether the input is editable | `boolean` | `undefined` |
117
+ | `required` | `required` | Whether the input is required | `boolean` | `undefined` |
118
+ | `value` | `value` | Including a `value` will pre-populate the input (E.164 format, e.g. +14155551234). | `string` | `undefined` |
119
+
120
+
121
+ ## Events
122
+
123
+ | Event | Description | Type |
124
+ | ---------------------- | --------------------------------------------------------------- | --------------------- |
125
+ | `hasErrorStateChanged` | Event that is emitted when the hasErrorState state changes. | `CustomEvent<string>` |
126
+ | `valueChange` | Event that emits the current value of the input (E.164 format). | `CustomEvent<string>` |
127
+
128
+
129
+ ## Dependencies
130
+
131
+ ### Used by
132
+
133
+ - [xpl-input](..)
134
+
135
+ ### Depends on
136
+
137
+ - [xpl-icon](../../xpl-icon)
138
+ - [xpl-dropdown](../../xpl-dropdown)
139
+ - [xpl-input](..)
140
+
141
+ ### Graph
142
+ ```mermaid
143
+ graph TD;
144
+ xpl-input-phone --> xpl-icon
145
+ xpl-input-phone --> xpl-dropdown
146
+ xpl-input-phone --> xpl-input
147
+ xpl-dropdown --> xpl-dropdown-group
148
+ xpl-dropdown --> xpl-dropdown-option
149
+ xpl-dropdown-group --> xpl-dropdown-group
150
+ xpl-dropdown-group --> xpl-dropdown-option
151
+ xpl-dropdown-group --> xpl-dropdown-heading
152
+ xpl-dropdown-option --> xpl-icon
153
+ xpl-input --> xpl-input-phone
154
+ xpl-input-file --> xpl-icon
155
+ xpl-input-color --> xpl-popover
156
+ xpl-input-color --> xpl-icon
157
+ xpl-input-color --> xpl-input
158
+ xpl-input-date --> xpl-icon
159
+ xpl-input-time --> xpl-input
160
+ xpl-input-time --> xpl-icon
161
+ xpl-input-time --> xpl-dropdown
162
+ style xpl-input-phone fill:#f9f,stroke:#333,stroke-width:4px
163
+ ```
164
+
165
+ ----------------------------------------------
166
+
167
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,73 @@
1
+ # xpl-input-time
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------- |
12
+ | `allowCustomOption` | `allow-custom-option` | For time inputs, whether to allow custom option in the input even if not available in the dropdown. Example: A step of 30 minutes will allow 15:03, 15:37, etc. Applies to time inputs. | `boolean` | `false` |
13
+ | `disabled` | `disabled` | Whether the field is disabled | `boolean` | `undefined` |
14
+ | `inputId` | `input-id` | The `inputId` is used to associate the input with a label. | `string` | `undefined` |
15
+ | `max` | `max` | Maximum value for the input. | `number \| string` | `'23:59'` |
16
+ | `min` | `min` | The minimum value for the input. | `number \| string` | `'00:00'` |
17
+ | `mode` | `mode` | Whether the input is a single time or a range of times. Currently, only single time is supported. | `"range" \| "single"` | `'single'` |
18
+ | `name` | `name` | Most inputs are used in forms, and should have a `name` associated with the input for handling form data. Applies to all input types. | `string` | `undefined` |
19
+ | `placeholder` | `placeholder` | Placeholder text that appears when the field has no value Applies to text, password, number, and date inputs. | `string` | `undefined` |
20
+ | `readonly` | `readonly` | Whether the input is editable | `boolean` | `undefined` |
21
+ | `required` | `required` | Whether the input is required | `boolean` | `undefined` |
22
+ | `step` | `step` | Time increment for dropdown options | `number` | `30` |
23
+ | `timeFormat` | `time-format` | The time format to display for the input. | `"12h" \| "24h"` | `'24h'` |
24
+ | `value` | `value` | Including a `value` will pre-populate the input with the given string. Must be in 24 hour format, ex: 15:25 for 3:25 PM | `string` | `undefined` |
25
+
26
+
27
+ ## Events
28
+
29
+ | Event | Description | Type |
30
+ | ---------------------- | ----------------------------------------------------------- | --------------------- |
31
+ | `hasErrorStateChanged` | Event that is emitted when the hasErrorState state changes. | `CustomEvent<string>` |
32
+ | `valueChange` | Event that emits the current value of the input | `CustomEvent<string>` |
33
+
34
+
35
+ ## Dependencies
36
+
37
+ ### Used by
38
+
39
+ - [xpl-input](..)
40
+
41
+ ### Depends on
42
+
43
+ - [xpl-input](..)
44
+ - [xpl-icon](../../xpl-icon)
45
+ - [xpl-dropdown](../../xpl-dropdown)
46
+
47
+ ### Graph
48
+ ```mermaid
49
+ graph TD;
50
+ xpl-input-time --> xpl-input
51
+ xpl-input-time --> xpl-icon
52
+ xpl-input-time --> xpl-dropdown
53
+ xpl-input --> xpl-input-time
54
+ xpl-input-file --> xpl-icon
55
+ xpl-input-color --> xpl-popover
56
+ xpl-input-color --> xpl-icon
57
+ xpl-input-color --> xpl-input
58
+ xpl-input-date --> xpl-icon
59
+ xpl-input-phone --> xpl-icon
60
+ xpl-input-phone --> xpl-dropdown
61
+ xpl-input-phone --> xpl-input
62
+ xpl-dropdown --> xpl-dropdown-group
63
+ xpl-dropdown --> xpl-dropdown-option
64
+ xpl-dropdown-group --> xpl-dropdown-group
65
+ xpl-dropdown-group --> xpl-dropdown-option
66
+ xpl-dropdown-group --> xpl-dropdown-heading
67
+ xpl-dropdown-option --> xpl-icon
68
+ style xpl-input-time fill:#f9f,stroke:#333,stroke-width:4px
69
+ ```
70
+
71
+ ----------------------------------------------
72
+
73
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,40 @@
1
+ # xpl-large-card
2
+
3
+ A card is a container and can contain any type of information. Cards contain actions and a content slot. Cards are flexible and can be arranged in grids or lists.
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------- | ------------- | --------------------------------- | --------- | ----------- |
12
+ | `description` | `description` | Description of the Card | `string` | `undefined` |
13
+ | `link` | `link` | Whether the card is a link or not | `boolean` | `undefined` |
14
+ | `name` | `name` | Name of the Card | `string` | `undefined` |
15
+
16
+
17
+ ## Slots
18
+
19
+ | Slot | Description |
20
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
21
+ | `"graph-content"` | Content that is shown on the right-side of the card. Generally used for supplemental data visualizations for the data-card |
22
+ | `"title"` | The title for the card. This slot should be used as a replacement for the name field. Used to define a title and tooltip for the data-card |
23
+
24
+
25
+ ## Dependencies
26
+
27
+ ### Depends on
28
+
29
+ - [xpl-icon](../xpl-icon)
30
+
31
+ ### Graph
32
+ ```mermaid
33
+ graph TD;
34
+ xpl-large-card --> xpl-icon
35
+ style xpl-large-card fill:#f9f,stroke:#333,stroke-width:4px
36
+ ```
37
+
38
+ ----------------------------------------------
39
+
40
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,34 @@
1
+ # xpl-list
2
+
3
+ A list item is a card with interactive states. List items allow users to select items from a list of items and view more information or make edits.
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------- |
12
+ | `items` | -- | `items` should be an array of objects with the following signature: { avatar?: string; // The URL of the avatar, or the placeholder initials (ex. "SPD"). avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right. badges?: string[] \| { // An array of strings or badge-like objects to be displayed as badges dot?: boolean; // in a group on the right. See <xpl-badge> for more details. text: string; variant?: string; }[]; href?: string; // A URL, if this list item is meant to link somewhere. title: string; // The text to be displayed for the list item. metadata?: string[] \| { // An array of strings or strings with icons (reference the allowed icon: string; // Apollo icons) to be displayed as metadata below the title. text: string; }[]; subtext?: string; // Subtext to be displayed on the right. } - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering the right-hand side of the list item. | `ListItem[]` | `[]` |
13
+
14
+
15
+ ## Dependencies
16
+
17
+ ### Depends on
18
+
19
+ - [xpl-avatar](../xpl-avatar)
20
+ - [xpl-icon](../xpl-icon)
21
+ - [xpl-badge](../xpl-badge)
22
+
23
+ ### Graph
24
+ ```mermaid
25
+ graph TD;
26
+ xpl-list --> xpl-avatar
27
+ xpl-list --> xpl-icon
28
+ xpl-list --> xpl-badge
29
+ style xpl-list fill:#f9f,stroke:#333,stroke-width:4px
30
+ ```
31
+
32
+ ----------------------------------------------
33
+
34
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,28 @@
1
+ # xpl-main-nav
2
+
3
+ The Main Nav component contains is split in 3 areas. The top area is where the branding goes. It's divided into 2 slots `logo` and `brand-name`.
4
+ The middle area is where the main navigation links go. It's a `<nav>` tag with a slot named `navigation`, where a `<ul slot="navigation">` with `<xpl-nav-items>` should be rendered.
5
+
6
+ The bottom area is fixed to the bottom and should be used for actions. To render content within this area use the slot `footer` with a `<ul slot="footer">` tag.
7
+
8
+
9
+ <!-- Auto Generated Below -->
10
+
11
+
12
+ ## Properties
13
+
14
+ | Property | Attribute | Description | Type | Default |
15
+ | -------- | --------- | ----------- | --------------------------- | ----------- |
16
+ | `width` | `width` | | `"default" \| "md" \| "sm"` | `'default'` |
17
+
18
+
19
+ ## Events
20
+
21
+ | Event | Description | Type |
22
+ | ---------- | ----------- | --------------------- |
23
+ | `navWidth` | | `CustomEvent<string>` |
24
+
25
+
26
+ ----------------------------------------------
27
+
28
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,58 @@
1
+ # xpl-modal
2
+
3
+ Modals are dialogs that focus the user’s attention exclusively on one task or piece of information via a window layer above the current content.
4
+
5
+ Modals are disruptive and should only be used when disrupting the user’s flow is desired.
6
+
7
+ <!-- Auto Generated Below -->
8
+
9
+
10
+ ## Properties
11
+
12
+ | Property | Attribute | Description | Type | Default |
13
+ | --------- | --------- | -------------------------------- | -------------------------------- | ----------- |
14
+ | `isOpen` | `is-open` | Whether the modal is open. | `boolean` | `false` |
15
+ | `size` | `size` | The size of the modal. | `"large" \| "medium" \| "small"` | `'medium'` |
16
+ | `variant` | `variant` | The visual variant of the modal. | `"default" \| "warning"` | `'default'` |
17
+
18
+
19
+ ## Events
20
+
21
+ | Event | Description | Type |
22
+ | ------------- | --------------------------------- | ------------------- |
23
+ | `modalClosed` | Emitted when the modal is closed. | `CustomEvent<void>` |
24
+
25
+
26
+ ## Slots
27
+
28
+ | Slot | Description |
29
+ | ------------- | ---------------------------------- |
30
+ | `"body"` | The body of the modal. |
31
+ | `"primary"` | The primary button of the modal. |
32
+ | `"secondary"` | The secondary button of the modal. |
33
+ | `"subtitle"` | The subtitle of the modal. |
34
+ | `"tertiary"` | The tertiary button of the modal. |
35
+ | `"title"` | The title of the modal. |
36
+
37
+
38
+ ## Dependencies
39
+
40
+ ### Depends on
41
+
42
+ - [xpl-backdrop](../xpl-backdrop)
43
+ - [xpl-icon](../xpl-icon)
44
+ - [xpl-button](../xpl-button)
45
+
46
+ ### Graph
47
+ ```mermaid
48
+ graph TD;
49
+ xpl-modal --> xpl-backdrop
50
+ xpl-modal --> xpl-icon
51
+ xpl-modal --> xpl-button
52
+ xpl-button --> xpl-icon
53
+ style xpl-modal fill:#f9f,stroke:#333,stroke-width:4px
54
+ ```
55
+
56
+ ----------------------------------------------
57
+
58
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -0,0 +1,24 @@
1
+ # xpl-nav-item
2
+
3
+ This component should be used within sections of the `<xpl-main-nav>`. This component yields a slot named `link`, where a `<a>` tag should be used. Within the `<a>` tag, there are two slots, one named `icon`, where any svg can be placed. An an unnamed slot, where the link text should be placed.
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------ | ------------- | ----------- | --------- | ------- |
12
+ | `navControl` | `nav-control` | | `boolean` | `false` |
13
+
14
+
15
+ ## Events
16
+
17
+ | Event | Description | Type |
18
+ | --------- | ----------- | ---------------------- |
19
+ | `navOpen` | | `CustomEvent<boolean>` |
20
+
21
+
22
+ ----------------------------------------------
23
+
24
+ *Built with [StencilJS](https://stenciljs.com/)*