@xplortech/apollo-core 1.0.0-beta.18 → 1.0.0-beta.2

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 (459) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/build/style.css +2758 -1516
  3. package/dist/apollo-core/apollo-core.css +14 -4597
  4. package/dist/apollo-core/apollo-core.esm.js +1 -2
  5. package/dist/apollo-core/index.esm.js +0 -2
  6. package/dist/apollo-core/p-09b2f746.entry.js +1 -0
  7. package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
  8. package/dist/apollo-core/p-20389bb6.entry.js +1 -0
  9. package/dist/apollo-core/p-25983fde.entry.js +1 -0
  10. package/dist/apollo-core/p-2f90296c.js +10 -0
  11. package/dist/apollo-core/p-4a348764.entry.js +1 -0
  12. package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
  13. package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
  14. package/dist/apollo-core/p-880c0359.entry.js +1 -0
  15. package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
  16. package/dist/apollo-core/p-93958292.entry.js +1 -0
  17. package/dist/apollo-core/p-93c27db5.entry.js +1 -0
  18. package/dist/apollo-core/p-ad90fe4d.js +1 -2
  19. package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
  20. package/dist/apollo-core/p-c3a12469.entry.js +1 -0
  21. package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
  22. package/dist/apollo-core/p-e369d7af.entry.js +1 -0
  23. package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
  24. package/dist/apollo-core/p-f929c958.js +1 -0
  25. package/dist/cjs/apollo-core.cjs.js +3 -12
  26. package/dist/cjs/{index-000e170c.js → index-54ba5804.js} +216 -768
  27. package/dist/cjs/index.cjs.js +0 -2
  28. package/dist/cjs/loader.cjs.js +3 -6
  29. package/dist/cjs/regular-872f5226.js +16043 -0
  30. package/dist/cjs/v4-14140ff3.js +0 -2
  31. package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
  32. package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
  33. package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
  34. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
  35. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
  36. package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
  37. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
  38. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
  39. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
  40. package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
  41. package/dist/cjs/xpl-input.cjs.entry.js +25 -22
  42. package/dist/cjs/xpl-list.cjs.entry.js +25 -4
  43. package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
  44. package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
  45. package/dist/cjs/xpl-select.cjs.entry.js +25 -51
  46. package/dist/cjs/xpl-toggle.cjs.entry.js +4 -9
  47. package/dist/collection/collection-manifest.json +3 -6
  48. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +109 -125
  49. package/dist/collection/components/xpl-avatar/xpl-avatar.js +144 -151
  50. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +28 -27
  51. package/dist/collection/components/xpl-badge/xpl-badge.js +39 -44
  52. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +5 -3
  53. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -3
  54. package/dist/collection/components/xpl-button/xpl-button.js +188 -228
  55. package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
  56. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
  57. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
  58. package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
  59. package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
  63. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
  64. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
  65. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
  66. package/dist/collection/components/xpl-input/xpl-input.js +419 -397
  67. package/dist/collection/components/xpl-list/xpl-list.js +77 -43
  68. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
  69. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
  70. package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
  71. package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
  72. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
  73. package/dist/collection/components/xpl-select/xpl-select.js +235 -306
  74. package/dist/collection/components/xpl-table/xpl-table.js +148 -215
  75. package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
  76. package/dist/collection/components/xpl-toggle/xpl-toggle.js +135 -138
  77. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +52 -79
  78. package/dist/custom-elements/index.d.ts +219 -0
  79. package/dist/custom-elements/index.js +20201 -0
  80. package/dist/esm/apollo-core.js +3 -9
  81. package/dist/esm/{index-56581b5c.js → index-3df6db84.js} +217 -768
  82. package/dist/esm/index.js +0 -2
  83. package/dist/esm/loader.js +3 -6
  84. package/dist/esm/polyfills/css-shim.js +1 -1
  85. package/dist/esm/regular-86225e9d.js +16041 -0
  86. package/dist/esm/v4-929670b7.js +0 -2
  87. package/dist/esm/xpl-application-shell.entry.js +13 -10
  88. package/dist/esm/xpl-avatar_12.entry.js +284 -0
  89. package/dist/esm/xpl-backdrop.entry.js +5 -3
  90. package/dist/esm/xpl-button-row.entry.js +1 -6
  91. package/dist/esm/xpl-choicelist.entry.js +1 -10
  92. package/dist/esm/xpl-divider.entry.js +1 -4
  93. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
  94. package/dist/esm/xpl-dropdown_2.entry.js +12 -14
  95. package/dist/esm/xpl-grid-item.entry.js +1 -3
  96. package/dist/esm/xpl-grid.entry.js +1 -3
  97. package/dist/esm/xpl-input.entry.js +25 -22
  98. package/dist/esm/xpl-list.entry.js +25 -4
  99. package/dist/esm/xpl-main-nav.entry.js +4 -3
  100. package/dist/esm/xpl-pagination.entry.js +2 -7
  101. package/dist/esm/xpl-select.entry.js +25 -51
  102. package/dist/esm/xpl-toggle.entry.js +4 -9
  103. package/dist/stories/application-shell.stories.js +8 -18
  104. package/dist/stories/avatar.stories.js +0 -1
  105. package/dist/stories/backdrop.stories.js +0 -1
  106. package/dist/stories/badge.stories.js +0 -1
  107. package/dist/stories/breadcrumbs.stories.js +0 -1
  108. package/dist/stories/button-row.stories.js +0 -1
  109. package/dist/stories/button.stories.js +5 -18
  110. package/dist/stories/checkbox.stories.js +0 -1
  111. package/dist/stories/choicelist.stories.js +0 -1
  112. package/dist/stories/content-area.stories.js +0 -1
  113. package/dist/stories/divider.stories.js +0 -1
  114. package/dist/stories/dropdown.stories.js +65 -74
  115. package/dist/stories/grid.stories.js +0 -1
  116. package/dist/stories/input.stories.js +0 -1
  117. package/dist/stories/list.stories.js +2 -3
  118. package/dist/stories/main-nav.stories.js +0 -1
  119. package/dist/stories/pagination.stories.js +0 -1
  120. package/dist/stories/radio.stories.js +0 -1
  121. package/dist/stories/secondary-nav.stories.js +0 -1
  122. package/dist/stories/select.stories.js +32 -109
  123. package/dist/stories/table.stories.js +7 -24
  124. package/dist/stories/tabs.stories.js +0 -1
  125. package/dist/stories/toggle.stories.js +0 -1
  126. package/dist/stories/utility-bar.stories.js +6 -2
  127. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
  128. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +2 -10
  129. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
  130. package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
  131. package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
  132. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
  133. package/dist/types/components/xpl-button/xpl-button.d.ts +0 -6
  134. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
  135. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
  136. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
  137. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
  138. package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
  139. package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
  140. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -21
  141. package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
  142. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
  143. package/dist/types/components.d.ts +21 -276
  144. package/dist/types/stencil-public-runtime.d.ts +23 -97
  145. package/loader/index.d.ts +1 -9
  146. package/loader/package.json +0 -1
  147. package/package.json +28 -21
  148. package/LICENSE +0 -21
  149. package/dist/apollo-core/apollo-core.esm.js.map +0 -1
  150. package/dist/apollo-core/index.esm.js.map +0 -1
  151. package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
  152. package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
  153. package/dist/apollo-core/p-29f4679d.entry.js +0 -2
  154. package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
  155. package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
  156. package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
  157. package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
  158. package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
  159. package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
  160. package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
  161. package/dist/apollo-core/p-60d4d252.entry.js +0 -2
  162. package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
  163. package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
  164. package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
  165. package/dist/apollo-core/p-6acc4122.entry.js +0 -2
  166. package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
  167. package/dist/apollo-core/p-787bac91.entry.js +0 -2
  168. package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
  169. package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
  170. package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
  171. package/dist/apollo-core/p-807d8de9.entry.js +0 -2
  172. package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
  173. package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
  174. package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
  175. package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
  176. package/dist/apollo-core/p-da5a8e74.entry.js +0 -2
  177. package/dist/apollo-core/p-da5a8e74.entry.js.map +0 -1
  178. package/dist/apollo-core/p-e0541e23.entry.js +0 -2
  179. package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
  180. package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
  181. package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
  182. package/dist/apollo-core/p-e8953b60.js +0 -3
  183. package/dist/apollo-core/p-e8953b60.js.map +0 -1
  184. package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
  185. package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
  186. package/dist/cjs/apollo-core.cjs.js.map +0 -1
  187. package/dist/cjs/index-000e170c.js.map +0 -1
  188. package/dist/cjs/index.cjs.js.map +0 -1
  189. package/dist/cjs/loader.cjs.js.map +0 -1
  190. package/dist/cjs/v4-14140ff3.js.map +0 -1
  191. package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
  192. package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
  193. package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
  194. package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
  195. package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
  196. package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
  197. package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
  198. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
  199. package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
  200. package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
  201. package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
  202. package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
  203. package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
  204. package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
  205. package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
  206. package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
  207. package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
  208. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
  209. package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
  210. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
  211. package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
  212. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
  213. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
  214. package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
  215. package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
  216. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
  217. package/dist/collection/components/xpl-choicelist/choice.js +0 -2
  218. package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
  219. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
  220. package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
  221. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
  222. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
  223. package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
  224. package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
  225. package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
  226. package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
  227. package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
  228. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
  229. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
  230. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
  231. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
  232. package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
  233. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
  234. package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
  235. package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
  236. package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
  237. package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
  238. package/dist/collection/components/xpl-list/listitem.js +0 -2
  239. package/dist/collection/components/xpl-list/listitem.js.map +0 -1
  240. package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
  241. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
  242. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
  243. package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
  244. package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
  245. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
  246. package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
  247. package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
  248. package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
  249. package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
  250. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
  251. package/dist/components/index.d.ts +0 -39
  252. package/dist/components/index.js +0 -82
  253. package/dist/components/index.js.map +0 -1
  254. package/dist/components/v4.js +0 -77
  255. package/dist/components/v4.js.map +0 -1
  256. package/dist/components/xpl-application-shell.d.ts +0 -11
  257. package/dist/components/xpl-application-shell.js +0 -80
  258. package/dist/components/xpl-application-shell.js.map +0 -1
  259. package/dist/components/xpl-avatar.d.ts +0 -11
  260. package/dist/components/xpl-avatar.js +0 -8
  261. package/dist/components/xpl-avatar.js.map +0 -1
  262. package/dist/components/xpl-avatar2.js +0 -51
  263. package/dist/components/xpl-avatar2.js.map +0 -1
  264. package/dist/components/xpl-backdrop.d.ts +0 -11
  265. package/dist/components/xpl-backdrop.js +0 -8
  266. package/dist/components/xpl-backdrop.js.map +0 -1
  267. package/dist/components/xpl-backdrop2.js +0 -35
  268. package/dist/components/xpl-backdrop2.js.map +0 -1
  269. package/dist/components/xpl-badge.d.ts +0 -11
  270. package/dist/components/xpl-badge.js +0 -8
  271. package/dist/components/xpl-badge.js.map +0 -1
  272. package/dist/components/xpl-badge2.js +0 -38
  273. package/dist/components/xpl-badge2.js.map +0 -1
  274. package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
  275. package/dist/components/xpl-breadcrumb-item.js +0 -36
  276. package/dist/components/xpl-breadcrumb-item.js.map +0 -1
  277. package/dist/components/xpl-breadcrumbs.d.ts +0 -11
  278. package/dist/components/xpl-breadcrumbs.js +0 -31
  279. package/dist/components/xpl-breadcrumbs.js.map +0 -1
  280. package/dist/components/xpl-button-row.d.ts +0 -11
  281. package/dist/components/xpl-button-row.js +0 -50
  282. package/dist/components/xpl-button-row.js.map +0 -1
  283. package/dist/components/xpl-button.d.ts +0 -11
  284. package/dist/components/xpl-button.js +0 -8
  285. package/dist/components/xpl-button.js.map +0 -1
  286. package/dist/components/xpl-button2.js +0 -85
  287. package/dist/components/xpl-button2.js.map +0 -1
  288. package/dist/components/xpl-checkbox.d.ts +0 -11
  289. package/dist/components/xpl-checkbox.js +0 -8
  290. package/dist/components/xpl-checkbox.js.map +0 -1
  291. package/dist/components/xpl-checkbox2.js +0 -59
  292. package/dist/components/xpl-checkbox2.js.map +0 -1
  293. package/dist/components/xpl-choicelist.d.ts +0 -11
  294. package/dist/components/xpl-choicelist.js +0 -85
  295. package/dist/components/xpl-choicelist.js.map +0 -1
  296. package/dist/components/xpl-content-area.d.ts +0 -11
  297. package/dist/components/xpl-content-area.js +0 -34
  298. package/dist/components/xpl-content-area.js.map +0 -1
  299. package/dist/components/xpl-dashboard.d.ts +0 -11
  300. package/dist/components/xpl-dashboard.js +0 -31
  301. package/dist/components/xpl-dashboard.js.map +0 -1
  302. package/dist/components/xpl-data-card.d.ts +0 -11
  303. package/dist/components/xpl-data-card.js +0 -80
  304. package/dist/components/xpl-data-card.js.map +0 -1
  305. package/dist/components/xpl-divider.d.ts +0 -11
  306. package/dist/components/xpl-divider.js +0 -36
  307. package/dist/components/xpl-divider.js.map +0 -1
  308. package/dist/components/xpl-dropdown-group.d.ts +0 -11
  309. package/dist/components/xpl-dropdown-group.js +0 -8
  310. package/dist/components/xpl-dropdown-group.js.map +0 -1
  311. package/dist/components/xpl-dropdown-group2.js +0 -69
  312. package/dist/components/xpl-dropdown-group2.js.map +0 -1
  313. package/dist/components/xpl-dropdown-heading.d.ts +0 -11
  314. package/dist/components/xpl-dropdown-heading.js +0 -8
  315. package/dist/components/xpl-dropdown-heading.js.map +0 -1
  316. package/dist/components/xpl-dropdown-heading2.js +0 -31
  317. package/dist/components/xpl-dropdown-heading2.js.map +0 -1
  318. package/dist/components/xpl-dropdown-option.d.ts +0 -11
  319. package/dist/components/xpl-dropdown-option.js +0 -8
  320. package/dist/components/xpl-dropdown-option.js.map +0 -1
  321. package/dist/components/xpl-dropdown-option2.js +0 -89
  322. package/dist/components/xpl-dropdown-option2.js.map +0 -1
  323. package/dist/components/xpl-dropdown.d.ts +0 -11
  324. package/dist/components/xpl-dropdown.js +0 -8
  325. package/dist/components/xpl-dropdown.js.map +0 -1
  326. package/dist/components/xpl-dropdown2.js +0 -147
  327. package/dist/components/xpl-dropdown2.js.map +0 -1
  328. package/dist/components/xpl-grid-item.d.ts +0 -11
  329. package/dist/components/xpl-grid-item.js +0 -45
  330. package/dist/components/xpl-grid-item.js.map +0 -1
  331. package/dist/components/xpl-grid.d.ts +0 -11
  332. package/dist/components/xpl-grid.js +0 -50
  333. package/dist/components/xpl-grid.js.map +0 -1
  334. package/dist/components/xpl-icon.d.ts +0 -11
  335. package/dist/components/xpl-icon.js +0 -8
  336. package/dist/components/xpl-icon.js.map +0 -1
  337. package/dist/components/xpl-icon2.js +0 -1850
  338. package/dist/components/xpl-icon2.js.map +0 -1
  339. package/dist/components/xpl-input.d.ts +0 -11
  340. package/dist/components/xpl-input.js +0 -2574
  341. package/dist/components/xpl-input.js.map +0 -1
  342. package/dist/components/xpl-list.d.ts +0 -11
  343. package/dist/components/xpl-list.js +0 -73
  344. package/dist/components/xpl-list.js.map +0 -1
  345. package/dist/components/xpl-main-nav.d.ts +0 -11
  346. package/dist/components/xpl-main-nav.js +0 -44
  347. package/dist/components/xpl-main-nav.js.map +0 -1
  348. package/dist/components/xpl-nav-item.d.ts +0 -11
  349. package/dist/components/xpl-nav-item.js +0 -44
  350. package/dist/components/xpl-nav-item.js.map +0 -1
  351. package/dist/components/xpl-pagination.d.ts +0 -11
  352. package/dist/components/xpl-pagination.js +0 -100
  353. package/dist/components/xpl-pagination.js.map +0 -1
  354. package/dist/components/xpl-radio.d.ts +0 -11
  355. package/dist/components/xpl-radio.js +0 -8
  356. package/dist/components/xpl-radio.js.map +0 -1
  357. package/dist/components/xpl-radio2.js +0 -57
  358. package/dist/components/xpl-radio2.js.map +0 -1
  359. package/dist/components/xpl-secondary-nav.d.ts +0 -11
  360. package/dist/components/xpl-secondary-nav.js +0 -31
  361. package/dist/components/xpl-secondary-nav.js.map +0 -1
  362. package/dist/components/xpl-select.d.ts +0 -11
  363. package/dist/components/xpl-select.js +0 -712
  364. package/dist/components/xpl-select.js.map +0 -1
  365. package/dist/components/xpl-table.d.ts +0 -11
  366. package/dist/components/xpl-table.js +0 -170
  367. package/dist/components/xpl-table.js.map +0 -1
  368. package/dist/components/xpl-tag.d.ts +0 -11
  369. package/dist/components/xpl-tag.js +0 -8
  370. package/dist/components/xpl-tag.js.map +0 -1
  371. package/dist/components/xpl-tag2.js +0 -33
  372. package/dist/components/xpl-tag2.js.map +0 -1
  373. package/dist/components/xpl-toggle.d.ts +0 -11
  374. package/dist/components/xpl-toggle.js +0 -61
  375. package/dist/components/xpl-toggle.js.map +0 -1
  376. package/dist/components/xpl-utility-bar.d.ts +0 -11
  377. package/dist/components/xpl-utility-bar.js +0 -55
  378. package/dist/components/xpl-utility-bar.js.map +0 -1
  379. package/dist/esm/apollo-core.js.map +0 -1
  380. package/dist/esm/index-56581b5c.js.map +0 -1
  381. package/dist/esm/index.js.map +0 -1
  382. package/dist/esm/loader.js.map +0 -1
  383. package/dist/esm/v4-929670b7.js.map +0 -1
  384. package/dist/esm/xpl-application-shell.entry.js.map +0 -1
  385. package/dist/esm/xpl-avatar_15.entry.js +0 -2260
  386. package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
  387. package/dist/esm/xpl-backdrop.entry.js.map +0 -1
  388. package/dist/esm/xpl-button-row.entry.js.map +0 -1
  389. package/dist/esm/xpl-choicelist.entry.js.map +0 -1
  390. package/dist/esm/xpl-divider.entry.js.map +0 -1
  391. package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
  392. package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
  393. package/dist/esm/xpl-grid-item.entry.js.map +0 -1
  394. package/dist/esm/xpl-grid.entry.js.map +0 -1
  395. package/dist/esm/xpl-input.entry.js.map +0 -1
  396. package/dist/esm/xpl-list.entry.js.map +0 -1
  397. package/dist/esm/xpl-main-nav.entry.js.map +0 -1
  398. package/dist/esm/xpl-pagination.entry.js.map +0 -1
  399. package/dist/esm/xpl-select.entry.js.map +0 -1
  400. package/dist/esm/xpl-toggle.entry.js.map +0 -1
  401. package/dist/stories/application-shell.stories.js.map +0 -1
  402. package/dist/stories/avatar.stories.js.map +0 -1
  403. package/dist/stories/backdrop.stories.js.map +0 -1
  404. package/dist/stories/badge.stories.js.map +0 -1
  405. package/dist/stories/breadcrumbs.stories.js.map +0 -1
  406. package/dist/stories/button-row.stories.js.map +0 -1
  407. package/dist/stories/button.stories.js.map +0 -1
  408. package/dist/stories/checkbox.stories.js.map +0 -1
  409. package/dist/stories/choicelist.stories.js.map +0 -1
  410. package/dist/stories/content-area.stories.js.map +0 -1
  411. package/dist/stories/dashboard.stories.js +0 -51
  412. package/dist/stories/dashboard.stories.js.map +0 -1
  413. package/dist/stories/data-card.stories.js +0 -70
  414. package/dist/stories/data-card.stories.js.map +0 -1
  415. package/dist/stories/divider.stories.js.map +0 -1
  416. package/dist/stories/dropdown.stories.js.map +0 -1
  417. package/dist/stories/grid.stories.js.map +0 -1
  418. package/dist/stories/icons.stories.js +0 -69
  419. package/dist/stories/icons.stories.js.map +0 -1
  420. package/dist/stories/input.stories.js.map +0 -1
  421. package/dist/stories/list.stories.js.map +0 -1
  422. package/dist/stories/main-nav.stories.js.map +0 -1
  423. package/dist/stories/pagination.stories.js.map +0 -1
  424. package/dist/stories/radio.stories.js.map +0 -1
  425. package/dist/stories/secondary-nav.stories.js.map +0 -1
  426. package/dist/stories/select.stories.js.map +0 -1
  427. package/dist/stories/table.stories.js.map +0 -1
  428. package/dist/stories/tabs.stories.js.map +0 -1
  429. package/dist/stories/toggle.stories.js.map +0 -1
  430. package/dist/stories/utility-bar.stories.js.map +0 -1
  431. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
  432. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
  433. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
  434. package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
  435. package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
  436. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
  437. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
  438. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +0 -11
  439. package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
  440. package/dist/types/components/xpl-list/listitem.d.ts +0 -16
  441. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  442. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  443. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  444. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  445. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
  446. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  447. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
  448. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  449. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
  450. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
  451. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
  452. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
  453. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  454. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  455. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  456. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  457. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  458. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
  459. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -1,4 +1,5 @@
1
- import { r as registerInstance, h, H as Host, F as Fragment } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host, F as Fragment } from './index-3df6db84.js';
2
+ import './regular-86225e9d.js';
2
3
 
3
4
  const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
4
5
  const hasRight = avatars || badges || subtext;
@@ -8,7 +9,7 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
8
9
  return h("li", null, d);
9
10
  }
10
11
  else {
11
- return (h("li", null, h("xpl-icon", { icon: d.icon }), ' ', d.text));
12
+ return (h("li", null, h("span", { class: `far fa-${d.icon}` }), ' ', d.text));
12
13
  }
13
14
  }))))), hasRight && (h("div", { class: "xpl-list-right" }, subtext && (h("div", { class: "xpl-list-item-subtext" }, subtext)), avatars && (h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (h("img", { src: a, alt: "" }))))), badges &&
14
15
  badges.map((b) => {
@@ -24,6 +25,28 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
24
25
  const XplList = class {
25
26
  constructor(hostRef) {
26
27
  registerInstance(this, hostRef);
28
+ /**
29
+ * `items` should be an array of objects with the following signature:
30
+ * {
31
+ * avatar?: string; // The URL of the avatar, or the placeholder initials (ex. "SPD").
32
+ * avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right.
33
+ * badges?: string[] | { // An array of strings or badge-like objects to be displayed as badges
34
+ * dot?: boolean; // in a group on the right. See <xpl-badge> for more details.
35
+ * text: string;
36
+ * variant?: string;
37
+ * }[];
38
+ * href?: string; // A URL, if this list item is meant to link somewhere.
39
+ * title: string; // The text to be displayed for the list item.
40
+ * metadata?: string[] | { // An array of strings or strings with icons (reference the allowed
41
+ * icon: string; // Font Awesome icons) to be displayed as metadata below the title.
42
+ * text: string;
43
+ * }[];
44
+ * subtext?: string; // Subtext to be displayed on the right.
45
+ * }
46
+ *
47
+ * - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering
48
+ * the right-hand side of the list item.
49
+ */
27
50
  this.items = [];
28
51
  }
29
52
  render() {
@@ -32,5 +55,3 @@ const XplList = class {
32
55
  };
33
56
 
34
57
  export { XplList as xpl_list };
35
-
36
- //# sourceMappingURL=xpl-list.entry.js.map
@@ -1,9 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-3df6db84.js';
2
2
 
3
3
  const XplMainNav = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
6
  this.navWidth = createEvent(this, "navWidth", 7);
7
+ /**
8
+ * @property {string} width - The width of the Main Nav.
9
+ */
7
10
  this.width = 'default';
8
11
  }
9
12
  navWidthHandler() {
@@ -21,5 +24,3 @@ const XplMainNav = class {
21
24
  };
22
25
 
23
26
  export { XplMainNav as xpl_main_nav };
24
-
25
- //# sourceMappingURL=xpl-main-nav.entry.js.map
@@ -1,9 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-3df6db84.js';
2
2
 
3
3
  const XplPagination = class {
4
4
  constructor(hostRef) {
5
5
  registerInstance(this, hostRef);
6
6
  this.page = createEvent(this, "page", 7);
7
+ this.current = 1;
7
8
  /**
8
9
  * Private `_goto` method respects the `waitForCallback` prop --
9
10
  * it will always emit the `page` event, but won't actually update
@@ -25,10 +26,6 @@ const XplPagination = class {
25
26
  if (this.current < numPages)
26
27
  this._goto(this.current + 1);
27
28
  };
28
- this.total = undefined;
29
- this.perPage = undefined;
30
- this.waitForCallback = undefined;
31
- this.current = 1;
32
29
  }
33
30
  /**
34
31
  * Calling `goto` with a page number (which should probably be
@@ -73,5 +70,3 @@ const XplPagination = class {
73
70
  };
74
71
 
75
72
  export { XplPagination as xpl_pagination };
76
-
77
- //# sourceMappingURL=xpl-pagination.entry.js.map
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-3df6db84.js';
2
2
  import { v as v4 } from './v4-929670b7.js';
3
3
 
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -452,58 +452,42 @@ function tagWidth(text) {
452
452
  const XplSelect = class {
453
453
  constructor(hostRef) {
454
454
  registerInstance(this, hostRef);
455
- this.selectChange = createEvent(this, "selectChange", 7);
455
+ /**
456
+ * An array of choices for the user to choose from.
457
+ * Each choice should be of the form:
458
+ * {
459
+ * label: string;
460
+ * href?: string;
461
+ * value?: string;
462
+ * isGroupHeading?: boolean;
463
+ * }
464
+ */
456
465
  this.choices = [];
457
- this.description = undefined;
458
- this.disabled = undefined;
459
- this.error = undefined;
460
- this.label = undefined;
466
+ /**
467
+ * Whether to allow a single choice or multiple choices.
468
+ */
461
469
  this.mode = 'single';
462
- this.name = undefined;
463
- this.placeholder = undefined;
470
+ /**
471
+ * Only used in multi-choice selects. If `true`,
472
+ * badges representing selections that would overflow the
473
+ * container are replaced with "+x more" (where x is the
474
+ * number not shown). If `false`, the container's height will
475
+ * adjust to show all badges representing selections.
476
+ */
464
477
  this.truncate = true;
465
- this.selectedValues = undefined;
466
478
  this.active = false;
467
479
  this.id = v4();
468
480
  this.keepFocus = false;
469
- this.selected = undefined;
470
481
  this.value = '';
471
482
  this.displayValue = '';
483
+ // infinity isn't real, it's just a mathematical construct, it can't hurt you
472
484
  this.visibleChoices = Infinity;
473
485
  }
474
- /**
475
- *
476
- * @param _choices
477
- */
478
- onChoicesChanged(_choices) {
479
- this.update();
480
- }
481
486
  componentWillLoad() {
482
487
  this.selected =
483
488
  this.choices && this.choices.length > 0
484
489
  ? this.choices.map(() => false)
485
490
  : [];
486
- if (this.selectedValues) {
487
- const isSingleMode = this.mode === 'single';
488
- if (isSingleMode) {
489
- const selectedValue = this.selectedValues;
490
- const shouldBeSelected = this.choices.find((choice) => (choice.value !== undefined
491
- ? choice.value
492
- : choice.label) === selectedValue);
493
- if (shouldBeSelected !== undefined)
494
- shouldBeSelected.isSelected = true;
495
- }
496
- else {
497
- this.choices.forEach(({ options }) => {
498
- options.forEach((option) => {
499
- const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
500
- if (shouldBeSelected)
501
- option.isSelected = true;
502
- });
503
- });
504
- }
505
- this.update();
506
- }
507
491
  window.addEventListener('click', (e) => {
508
492
  const el = e.target;
509
493
  const select = el.closest('.xpl-select');
@@ -566,9 +550,6 @@ const XplSelect = class {
566
550
  .join('|');
567
551
  }
568
552
  }
569
- handleValueStateChange(newValue) {
570
- this.selectChange.emit(newValue);
571
- }
572
553
  render() {
573
554
  let visibleChoices = 0;
574
555
  return (h(Host, { class: {
@@ -599,9 +580,8 @@ const XplSelect = class {
599
580
  ? this.selected.map((v, i) => {
600
581
  if (!v)
601
582
  return null;
602
- if (visibleChoices >= this.visibleChoices) {
583
+ if (visibleChoices >= this.visibleChoices)
603
584
  return null;
604
- }
605
585
  visibleChoices++;
606
586
  return (h("xpl-tag", { onClose: () => {
607
587
  this.flattenChoices().forEach((v, j) => {
@@ -631,17 +611,11 @@ const XplSelect = class {
631
611
  const { dropdown } = this;
632
612
  if (!this.disabled)
633
613
  dropdown.isOpen = !dropdown.isOpen;
634
- }, type: "button" })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
614
+ } })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
635
615
  this.update();
636
616
  this.maybeTruncateChoices();
637
- } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", name: this.name, value: this.value })));
617
+ } })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", value: this.value })));
638
618
  }
639
- static get watchers() { return {
640
- "choices": ["onChoicesChanged"],
641
- "value": ["handleValueStateChange"]
642
- }; }
643
619
  };
644
620
 
645
621
  export { XplSelect as xpl_select };
646
-
647
- //# sourceMappingURL=xpl-select.entry.js.map
@@ -1,15 +1,12 @@
1
- import { r as registerInstance, h, H as Host } from './index-56581b5c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-3df6db84.js';
2
2
  import { v as v4 } from './v4-929670b7.js';
3
3
 
4
4
  const XplToggle = class {
5
5
  constructor(hostRef) {
6
6
  registerInstance(this, hostRef);
7
- this.checked = undefined;
8
- this.description = undefined;
9
- this.disabled = undefined;
10
- this.heading = undefined;
11
- this.label = undefined;
12
- this.name = undefined;
7
+ /**
8
+ * The size of the toggle -- `default` or `small`
9
+ */
13
10
  this.variant = 'default';
14
11
  this.id = v4();
15
12
  }
@@ -31,5 +28,3 @@ const XplToggle = class {
31
28
  };
32
29
 
33
30
  export { XplToggle as xpl_toggle };
34
-
35
- //# sourceMappingURL=xpl-toggle.entry.js.map
@@ -23,17 +23,11 @@ export default {
23
23
  type: 'select',
24
24
  },
25
25
  },
26
- isNavOpenAtStartup: {
27
- options: [true, false],
28
- control: {
29
- type: 'boolean',
30
- },
31
- },
32
26
  },
33
27
  };
34
28
  const renderBlock = (showBlock, block) => showBlock ? block : '';
35
- const utilityBar = (isNavOpenAtStartup) => `
36
- <xpl-utility-bar slot="utility" nav-control is-nav-open-at-startup=${isNavOpenAtStartup}>
29
+ const utilityBar = `
30
+ <xpl-utility-bar slot="utility" nav-control>
37
31
  <xpl-breadcrumbs slot="aside">
38
32
  <xpl-breadcrumb-item>
39
33
  <a href="javascript:;">Locations</a>
@@ -88,11 +82,10 @@ const secondaryNav = `
88
82
  </ul>
89
83
  </xpl-secondary-nav>
90
84
  `;
91
- export const ApplicationShell = ({ contentSize, isNavOpenAtStartup, navWidth, showSecondaryNav, showUtilityBar, }) => {
85
+ export const ApplicationShell = ({ navWidth, showSecondaryNav, showUtilityBar, contentSize, }) => {
92
86
  return `
93
87
  <xpl-application-shell
94
88
  ${showSecondaryNav ? 'with-subnav' : ''}
95
- is-nav-open-at-startup=${isNavOpenAtStartup}
96
89
  >
97
90
  <xpl-main-nav slot="nav" width="${navWidth}">
98
91
  <svg
@@ -230,7 +223,7 @@ export const ApplicationShell = ({ contentSize, isNavOpenAtStartup, navWidth, sh
230
223
  </xpl-nav-item>
231
224
  </ul>
232
225
  </xpl-main-nav>
233
- ${renderBlock(showUtilityBar, utilityBar(isNavOpenAtStartup))}
226
+ ${renderBlock(showUtilityBar, utilityBar)}
234
227
  ${renderBlock(showSecondaryNav, secondaryNav)}
235
228
  <xpl-content-area slot="content" size="${contentSize}">
236
229
  <div>
@@ -345,10 +338,10 @@ export const ApplicationShell = ({ contentSize, isNavOpenAtStartup, navWidth, sh
345
338
  ApplicationShell.parameters = {
346
339
  layout: 'fullscreen',
347
340
  'web-component': {
348
- render: ({ navWidth, showSecondaryNav, showUtilityBar, contentSize, isNavOpenAtStartup, }) => {
341
+ render: ({ navWidth, showSecondaryNav, showUtilityBar, contentSize, }) => {
349
342
  const renderBlock = (showBlock, block) => showBlock ? block : '';
350
343
  const utilityBar = `
351
- <xpl-utility-bar slot="utility" nav-control is-nav-open-at-startup=${isNavOpenAtStartup}>
344
+ <xpl-utility-bar slot="utility" nav-control>
352
345
  <xpl-breadcrumbs slot="aside">
353
346
  <xpl-breadcrumb-item>
354
347
  <a href="javascript:;">Locations</a>
@@ -405,7 +398,6 @@ ApplicationShell.parameters = {
405
398
  return `
406
399
  <xpl-application-shell
407
400
  ${showSecondaryNav ? 'with-subnav' : ''}
408
- is-nav-open-at-startup=${isNavOpenAtStartup}
409
401
  >
410
402
  <xpl-main-nav slot="nav" width="${navWidth}">
411
403
  <svg
@@ -768,10 +760,8 @@ ApplicationShell.parameters = {
768
760
  },
769
761
  };
770
762
  ApplicationShell.args = {
771
- contentSize: 'wide',
772
- isNavOpenAtStartup: true,
773
763
  navWidth: 'default',
774
- showSecondaryNav: true,
775
764
  showUtilityBar: true,
765
+ showSecondaryNav: true,
766
+ contentSize: 'wide',
776
767
  };
777
- //# sourceMappingURL=application-shell.stories.js.map
@@ -171,4 +171,3 @@ AvatarGroup.args = {
171
171
  reverse: false,
172
172
  };
173
173
  */
174
- //# sourceMappingURL=avatar.stories.js.map
@@ -16,4 +16,3 @@ Backdrop.parameters = {
16
16
  },
17
17
  },
18
18
  };
19
- //# sourceMappingURL=backdrop.stories.js.map
@@ -46,4 +46,3 @@ Badge.args = {
46
46
  dot: false,
47
47
  text: 'Badge',
48
48
  };
49
- //# sourceMappingURL=badge.stories.js.map
@@ -115,4 +115,3 @@ Breadcrumbs.args = {
115
115
  third: '<a href="javascript:;">Class A</a>',
116
116
  items: 3,
117
117
  };
118
- //# sourceMappingURL=breadcrumbs.stories.js.map
@@ -66,4 +66,3 @@ ButtonRow.args = {
66
66
  secondary: '',
67
67
  tertiary: '',
68
68
  };
69
- //# sourceMappingURL=button-row.stories.js.map
@@ -27,11 +27,6 @@ export default {
27
27
  type: 'select',
28
28
  },
29
29
  },
30
- fullWidth: {
31
- control: {
32
- type: 'boolean',
33
- },
34
- },
35
30
  icon: {
36
31
  options: ['none', 'leading', 'trailing'],
37
32
  control: {
@@ -45,7 +40,7 @@ export default {
45
40
  },
46
41
  },
47
42
  };
48
- export const Button = ({ variant, size, disabled, fullWidth, state, text, icon, link, }) => {
43
+ export const Button = ({ variant, size, disabled, state, text, icon, link, }) => {
49
44
  let attrs = '';
50
45
  if (variant !== 'primary')
51
46
  attrs += ` variant="${variant}"`;
@@ -64,31 +59,25 @@ export const Button = ({ variant, size, disabled, fullWidth, state, text, icon,
64
59
  `;
65
60
  return link ? `<a href='javascript:;'>${textBlock}</a>` : textBlock;
66
61
  };
67
- return `<div style="width: 50vw; text-align: center;"><xpl-button
68
- id="123"
62
+ return `<xpl-button
69
63
  variant='${variant}'
70
64
  size='${size}'
71
65
  state='${state}'
72
- data-test-attribute
73
- data-test-attribute-with-value="1"
74
66
  ${attrs}
75
67
  ${link ? 'link' : ''}
76
- ${fullWidth ? 'full-width' : ''}
77
68
  >
78
69
  ${innerHtml(link)}
79
- </xpl-button></div>`;
70
+ </xpl-button>`;
80
71
  };
81
- const HtmlButton = ({ variant, size, state, disabled, text, icon, link, fullWidth, }) => {
72
+ const HtmlButton = ({ variant, size, state, disabled, text, icon, link }) => {
82
73
  const iconSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-coffee"><path d="M18 8h1a4 4 0 0 1 0 8h-1"/><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"/><line x1="6" y1="1" x2="6" y2="4"/><line x1="10" y1="1" x2="10" y2="4"/><line x1="14" y1="1" x2="14" y2="4"/></svg>`;
83
- let className = `xpl-button
74
+ const className = `xpl-button
84
75
  xpl-button--${size}
85
76
  xpl-button--${state}
86
77
  xpl-button--${variant} `;
87
78
  let attrs = '';
88
79
  if (disabled)
89
80
  attrs += ' disabled';
90
- if (fullWidth)
91
- className += ' xpl-button--full-width';
92
81
  const innerHtml = (link) => {
93
82
  const textBlock = `
94
83
  ${icon == 'leading' ? iconSvg : ''}
@@ -118,6 +107,4 @@ Button.args = {
118
107
  state: 'neutral',
119
108
  text: 'Get Coffee',
120
109
  icon: 'leading',
121
- fullWidth: true,
122
110
  };
123
- //# sourceMappingURL=button.stories.js.map
@@ -76,4 +76,3 @@ Checkbox.args = {
76
76
  indeterminate: false,
77
77
  styled: false,
78
78
  };
79
- //# sourceMappingURL=checkbox.stories.js.map
@@ -110,4 +110,3 @@ Choicelist.args = {
110
110
  multi: false,
111
111
  styled: false,
112
112
  };
113
- //# sourceMappingURL=choicelist.stories.js.map
@@ -51,4 +51,3 @@ ContentArea.parameters = {
51
51
  ContentArea.args = {
52
52
  size: 'wide',
53
53
  };
54
- //# sourceMappingURL=content-area.stories.js.map
@@ -32,4 +32,3 @@ Divider.args = {
32
32
  tier: 3,
33
33
  text: 'Lorem Ipsum',
34
34
  };
35
- //# sourceMappingURL=divider.stories.js.map
@@ -1,54 +1,47 @@
1
1
  export default {
2
2
  title: 'Components/Dropdown',
3
3
  };
4
- const simpleOptions = [
5
- {
6
- label: 'Choice 1',
7
- value: 'choice-1',
8
- },
9
- {
10
- label: 'Choice 2',
11
- value: 'choice-2',
12
- isSelected: true,
13
- },
14
- {
15
- label: 'Choice 3 (disabled example)',
16
- value: 'choice-3',
17
- isDisabled: true,
18
- },
19
- {
20
- label: 'Choice 4',
21
- value: 'choice-4',
22
- },
23
- {
24
- label: 'Choice 5',
25
- value: 'choice-5',
26
- },
27
- {
28
- label: 'Choice 6',
29
- value: 'choice-6',
30
- },
31
- {
32
- label: 'Choice 7',
33
- value: 'choice-7',
34
- },
35
- ];
36
- export const Simple = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, options, }) => {
4
+ export const Simple = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, }) => {
37
5
  const attributes = {
38
6
  'close-on-select': closeOnSelect,
39
7
  mode,
40
8
  open,
41
9
  'select-on-focus': selectOnFocus,
42
10
  };
11
+ const options = [
12
+ {
13
+ label: 'Choice 1',
14
+ },
15
+ {
16
+ label: 'Choice 2',
17
+ isSelected: true,
18
+ },
19
+ {
20
+ label: 'Choice 3 (disabled example)',
21
+ isDisabled: true,
22
+ },
23
+ {
24
+ label: 'Choice 4',
25
+ },
26
+ {
27
+ label: 'Choice 5',
28
+ },
29
+ {
30
+ label: 'Choice 6',
31
+ },
32
+ {
33
+ label: 'Choice 7',
34
+ },
35
+ ];
43
36
  return `
44
37
  <div style="width:75vw">
45
- <div style="position: relative; min-width: 200px; width: 100%">
46
- <xpl-dropdown
47
- id="xpl-dropdown-simple"
48
- ${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
49
- >
50
- </xpl-dropdown>
51
- </div>
38
+ <div style="position: relative; min-width: 200px; width: 100%">
39
+ <xpl-dropdown
40
+ id="xpl-dropdown-simple"
41
+ ${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
42
+ >
43
+ </xpl-dropdown>
44
+ </div>
52
45
  </div>
53
46
  <script>
54
47
  element = document.querySelector("#xpl-dropdown-simple");
@@ -75,7 +68,6 @@ Simple.args = {
75
68
  isOpen: true,
76
69
  mode: 'single',
77
70
  selectOnFocus: false,
78
- options: simpleOptions,
79
71
  };
80
72
  export const SimpleWithChildren = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, }) => {
81
73
  const attributes = {
@@ -86,39 +78,39 @@ export const SimpleWithChildren = ({ closeOnSelect, isOpen: open, mode, selectOn
86
78
  };
87
79
  return `
88
80
  <div style="width:75vw">
89
- <div style="position: relative; min-width: 200px; width: 100%">
90
- <xpl-dropdown
91
- id="xpl-dropdown-simple-w-children"
92
- ${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
81
+ <div style="position: relative; min-width: 200px; width: 100%">
82
+ <xpl-dropdown
83
+ id="xpl-dropdown-simple"
84
+ ${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
85
+ >
86
+ <xpl-dropdown-option
87
+ selected
88
+ slot="options"
93
89
  >
94
- <xpl-dropdown-option
95
- selected
96
- slot="options"
97
- >
98
- <label slot="option">
99
- <input type="radio" name="animal" value="dog"/>
100
- dog
101
- </label>
102
- </xpl-dropdown-option>
103
- <xpl-dropdown-option
104
- disabled
105
- slot="options"
106
- >
107
- <label slot="option">
108
- <input disabled type="radio" name="animal" value="cat"/>
109
- cat (disabled)
110
- </label>
111
- </xpl-dropdown-option>
112
- <xpl-dropdown-option
113
- slot="options"
114
- >
115
- <label slot="option">
116
- <input type="radio" name="animal" value="fish"/>
117
- fish (selected)
118
- </label>
119
- </xpl-dropdown-option>
120
- </xpl-dropdown>
121
- </div>
90
+ <label slot="option">
91
+ <input type="radio" name="animal" value="dog"/>
92
+ dog
93
+ </label>
94
+ </xpl-dropdown-option>
95
+ <xpl-dropdown-option
96
+ disabled
97
+ slot="options"
98
+ >
99
+ <label slot="option">
100
+ <input disabled type="radio" name="animal" value="cat"/>
101
+ cat (disabled)
102
+ </label>
103
+ </xpl-dropdown-option>
104
+ <xpl-dropdown-option
105
+ slot="options"
106
+ >
107
+ <label slot="option">
108
+ <input type="radio" name="animal" value="fish"/>
109
+ fish (selected)
110
+ </label>
111
+ </xpl-dropdown-option>
112
+ </xpl-dropdown>
113
+ </div>
122
114
  </div>
123
115
  `;
124
116
  };
@@ -383,4 +375,3 @@ GroupSubComponent.parameters = {
383
375
  GroupSubComponent.args = {
384
376
  groupName: 'Choice 1',
385
377
  };
386
- //# sourceMappingURL=dropdown.stories.js.map
@@ -98,4 +98,3 @@ Grid.args = {
98
98
  unit4Sm: 6,
99
99
  unit4Xs: 6,
100
100
  };
101
- //# sourceMappingURL=grid.stories.js.map
@@ -266,4 +266,3 @@ Password.args = {
266
266
  error: false,
267
267
  errorMessage: '',
268
268
  };
269
- //# sourceMappingURL=input.stories.js.map
@@ -62,7 +62,7 @@ const script = ({ id, avatar, avatars, badges, metadata, link, title, subtext, }
62
62
  ? [
63
63
  'Metadata',
64
64
  {
65
- icon: 'mail',
65
+ icon: 'envelope',
66
66
  text: 'Metadata w/ Icon',
67
67
  },
68
68
  ]
@@ -113,7 +113,7 @@ const item = {${avatar !== 'none'
113
113
  metadata: [
114
114
  "Metadata",
115
115
  {
116
- icon: "mail",
116
+ icon: "envelope",
117
117
  text: "Metadata w/ Icon",
118
118
  },
119
119
  ],`
@@ -152,4 +152,3 @@ List.args = {
152
152
  title: 'List Item',
153
153
  subtext: '',
154
154
  };
155
- //# sourceMappingURL=list.stories.js.map
@@ -306,4 +306,3 @@ MainNav.parameters = {
306
306
  MainNav.args = {
307
307
  width: 'default',
308
308
  };
309
- //# sourceMappingURL=main-nav.stories.js.map
@@ -82,4 +82,3 @@ export const NumberedPaging = ({ currentPage }) => {
82
82
  </div>`;
83
83
  };
84
84
  */
85
- //# sourceMappingURL=pagination.stories.js.map