@tmorrow/cre8-wc 1.1.2 → 1.1.3

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 (435) hide show
  1. package/cdn/cre8-wc.esm.js +1 -1
  2. package/cdn/cre8-wc.esm.js.map +1 -1
  3. package/cdn/cre8-wc.min.js +1 -1
  4. package/cdn/cre8-wc.min.js.map +1 -1
  5. package/lib/cdn-entry.js +129 -0
  6. package/lib/cdn-entry.js.map +1 -0
  7. package/lib/components/accordion/accordion.js +58 -40
  8. package/lib/components/accordion/accordion.js.map +1 -0
  9. package/lib/components/accordion/accordion.styles.js +4 -0
  10. package/lib/components/accordion/accordion.styles.js.map +1 -0
  11. package/lib/components/accordion-item/accordion-item.js +187 -98
  12. package/lib/components/accordion-item/accordion-item.js.map +1 -0
  13. package/lib/components/accordion-item/accordion-item.styles.js +4 -0
  14. package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
  15. package/lib/components/alert/alert.js +146 -107
  16. package/lib/components/alert/alert.js.map +1 -0
  17. package/lib/components/alert/alert.styles.js +4 -0
  18. package/lib/components/alert/alert.styles.js.map +1 -0
  19. package/lib/components/badge/badge.js +73 -50
  20. package/lib/components/badge/badge.js.map +1 -0
  21. package/lib/components/badge/badge.styles.js +4 -0
  22. package/lib/components/badge/badge.styles.js.map +1 -0
  23. package/lib/components/band/band.js +34 -31
  24. package/lib/components/band/band.js.map +1 -0
  25. package/lib/components/band/band.styles.js +4 -0
  26. package/lib/components/band/band.styles.js.map +1 -0
  27. package/lib/components/breadcrumbs/breadcrumbs.js +52 -28
  28. package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
  29. package/lib/components/breadcrumbs/breadcrumbs.styles.js +4 -0
  30. package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
  31. package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -27
  32. package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
  33. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +4 -0
  34. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
  35. package/lib/components/button/button.js +297 -1040
  36. package/lib/components/button/button.js.map +1 -0
  37. package/lib/components/button/button.styles.js +885 -0
  38. package/lib/components/button/button.styles.js.map +1 -0
  39. package/lib/components/button-group/button-group.js +30 -27
  40. package/lib/components/button-group/button-group.js.map +1 -0
  41. package/lib/components/button-group/button-group.styles.js +4 -0
  42. package/lib/components/button-group/button-group.styles.js.map +1 -0
  43. package/lib/components/card/card.js +57 -35
  44. package/lib/components/card/card.js.map +1 -0
  45. package/lib/components/card/card.styles.js +4 -0
  46. package/lib/components/card/card.styles.js.map +1 -0
  47. package/lib/components/chart/chart.js +528 -354
  48. package/lib/components/chart/chart.js.map +1 -0
  49. package/lib/components/chart/chart.styles.js +4 -0
  50. package/lib/components/chart/chart.styles.js.map +1 -0
  51. package/lib/components/checkbox-field/checkbox-field.js +66 -53
  52. package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
  53. package/lib/components/checkbox-field/checkbox-field.styles.js +4 -0
  54. package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
  55. package/lib/components/checkbox-field-item/checkbox-field-item.js +252 -183
  56. package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
  57. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +4 -0
  58. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -0
  59. package/lib/components/contexts/form-internals-context.js +9 -0
  60. package/lib/components/contexts/form-internals-context.js.map +1 -0
  61. package/lib/components/cre8-element.js +57 -56
  62. package/lib/components/cre8-element.js.map +1 -0
  63. package/lib/components/cre8-form-element.js +212 -244
  64. package/lib/components/cre8-form-element.js.map +1 -0
  65. package/lib/components/danger-button/danger-button.js +274 -147
  66. package/lib/components/danger-button/danger-button.js.map +1 -0
  67. package/lib/components/danger-button/danger-button.styles.js +4 -0
  68. package/lib/components/danger-button/danger-button.styles.js.map +1 -0
  69. package/lib/components/date-picker/calendar/calendar.js +465 -0
  70. package/lib/components/date-picker/calendar/calendar.js.map +1 -0
  71. package/lib/components/date-picker/calendar/calendar.styles.js +4 -0
  72. package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -0
  73. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js +76 -0
  74. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js.map +1 -0
  75. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +4 -0
  76. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -0
  77. package/lib/components/date-picker/calendar-navigation/calendar-navigation.js +110 -0
  78. package/lib/components/date-picker/calendar-navigation/calendar-navigation.js.map +1 -0
  79. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +4 -0
  80. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -0
  81. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js +116 -0
  82. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js.map +1 -0
  83. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +4 -0
  84. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
  85. package/lib/components/date-picker/date-picker.js +91 -784
  86. package/lib/components/date-picker/date-picker.js.map +1 -0
  87. package/lib/components/date-picker/date-picker.styles.js +4 -0
  88. package/lib/components/date-picker/date-picker.styles.js.map +1 -0
  89. package/lib/components/divider/divider.js +45 -35
  90. package/lib/components/divider/divider.js.map +1 -0
  91. package/lib/components/divider/divider.styles.js +4 -0
  92. package/lib/components/divider/divider.styles.js.map +1 -0
  93. package/lib/components/dropdown/dropdown.js +97 -63
  94. package/lib/components/dropdown/dropdown.js.map +1 -0
  95. package/lib/components/dropdown/dropdown.styles.js +4 -0
  96. package/lib/components/dropdown/dropdown.styles.js.map +1 -0
  97. package/lib/components/dropdown-item/dropdown-item.js +38 -31
  98. package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
  99. package/lib/components/dropdown-item/dropdown-item.styles.js +4 -0
  100. package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
  101. package/lib/components/feature/feature.js +40 -35
  102. package/lib/components/feature/feature.js.map +1 -0
  103. package/lib/components/feature/feature.styles.js +4 -0
  104. package/lib/components/feature/feature.styles.js.map +1 -0
  105. package/lib/components/field/field.js +218 -153
  106. package/lib/components/field/field.js.map +1 -0
  107. package/lib/components/field/field.styles.js +4 -0
  108. package/lib/components/field/field.styles.js.map +1 -0
  109. package/lib/components/field-note/field-note.js +58 -45
  110. package/lib/components/field-note/field-note.js.map +1 -0
  111. package/lib/components/field-note/field-note.styles.js +4 -0
  112. package/lib/components/field-note/field-note.styles.js.map +1 -0
  113. package/lib/components/footer/footer.js +25 -18
  114. package/lib/components/footer/footer.js.map +1 -0
  115. package/lib/components/footer/footer.styles.js +4 -0
  116. package/lib/components/footer/footer.styles.js.map +1 -0
  117. package/lib/components/global-nav/global-nav.js +44 -37
  118. package/lib/components/global-nav/global-nav.js.map +1 -0
  119. package/lib/components/global-nav/global-nav.styles.js +4 -0
  120. package/lib/components/global-nav/global-nav.styles.js.map +1 -0
  121. package/lib/components/global-nav-item/global-nav-item.js +149 -112
  122. package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
  123. package/lib/components/global-nav-item/global-nav-item.styles.js +4 -0
  124. package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
  125. package/lib/components/grid/grid.js +48 -45
  126. package/lib/components/grid/grid.js.map +1 -0
  127. package/lib/components/grid/grid.styles.js +4 -0
  128. package/lib/components/grid/grid.styles.js.map +1 -0
  129. package/lib/components/grid-item/grid-item.js +19 -16
  130. package/lib/components/grid-item/grid-item.js.map +1 -0
  131. package/lib/components/grid-item/grid-item.styles.js +4 -0
  132. package/lib/components/grid-item/grid-item.styles.js.map +1 -0
  133. package/lib/components/header/header.js +34 -29
  134. package/lib/components/header/header.js.map +1 -0
  135. package/lib/components/header/header.styles.js +4 -0
  136. package/lib/components/header/header.styles.js.map +1 -0
  137. package/lib/components/heading/heading.js +113 -76
  138. package/lib/components/heading/heading.js.map +1 -0
  139. package/lib/components/heading/heading.styles.js +4 -0
  140. package/lib/components/heading/heading.styles.js.map +1 -0
  141. package/lib/components/hero/hero.js +43 -40
  142. package/lib/components/hero/hero.js.map +1 -0
  143. package/lib/components/hero/hero.styles.js +4 -0
  144. package/lib/components/hero/hero.styles.js.map +1 -0
  145. package/lib/components/icon/icon.js +232 -9
  146. package/lib/components/icon/icon.js.map +1 -0
  147. package/lib/components/icon/icon.styles.js +4 -0
  148. package/lib/components/icon/icon.styles.js.map +1 -0
  149. package/lib/components/inline-alert/inline-alert.js +114 -87
  150. package/lib/components/inline-alert/inline-alert.js.map +1 -0
  151. package/lib/components/inline-alert/inline-alert.styles.js +4 -0
  152. package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
  153. package/lib/components/layout/layout.js +30 -27
  154. package/lib/components/layout/layout.js.map +1 -0
  155. package/lib/components/layout/layout.styles.js +4 -0
  156. package/lib/components/layout/layout.styles.js.map +1 -0
  157. package/lib/components/layout-container/layout-container.js +30 -27
  158. package/lib/components/layout-container/layout-container.js.map +1 -0
  159. package/lib/components/layout-container/layout-container.styles.js +4 -0
  160. package/lib/components/layout-container/layout-container.styles.js.map +1 -0
  161. package/lib/components/layout-section/layout-section.js +41 -33
  162. package/lib/components/layout-section/layout-section.js.map +1 -0
  163. package/lib/components/layout-section/layout-section.styles.js +4 -0
  164. package/lib/components/layout-section/layout-section.styles.js.map +1 -0
  165. package/lib/components/linelength-container/linelength-container.js +19 -16
  166. package/lib/components/linelength-container/linelength-container.js.map +1 -0
  167. package/lib/components/linelength-container/linelength-container.styles.js +4 -0
  168. package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
  169. package/lib/components/link/link.js +125 -87
  170. package/lib/components/link/link.js.map +1 -0
  171. package/lib/components/link/link.styles.js +4 -0
  172. package/lib/components/link/link.styles.js.map +1 -0
  173. package/lib/components/link-list/link-list.js +48 -45
  174. package/lib/components/link-list/link-list.js.map +1 -0
  175. package/lib/components/link-list/link-list.styles.js +4 -0
  176. package/lib/components/link-list/link-list.styles.js.map +1 -0
  177. package/lib/components/link-list-item/link-list-item.js +40 -37
  178. package/lib/components/link-list-item/link-list-item.js.map +1 -0
  179. package/lib/components/link-list-item/link-list-item.styles.js +4 -0
  180. package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
  181. package/lib/components/list/list.js +35 -32
  182. package/lib/components/list/list.js.map +1 -0
  183. package/lib/components/list/list.styles.js +4 -0
  184. package/lib/components/list/list.styles.js.map +1 -0
  185. package/lib/components/list-item/list-item.js +25 -21
  186. package/lib/components/list-item/list-item.js.map +1 -0
  187. package/lib/components/list-item/list-item.styles.js +4 -0
  188. package/lib/components/list-item/list-item.styles.js.map +1 -0
  189. package/lib/components/loading-spinner/loading-spinner.js +126 -71
  190. package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
  191. package/lib/components/loading-spinner/loading-spinner.styles.js +4 -0
  192. package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
  193. package/lib/components/logo/logo.js +28 -25
  194. package/lib/components/logo/logo.js.map +1 -0
  195. package/lib/components/logo/logo.styles.js +4 -0
  196. package/lib/components/logo/logo.styles.js.map +1 -0
  197. package/lib/components/main/main.js +29 -26
  198. package/lib/components/main/main.js.map +1 -0
  199. package/lib/components/main/main.styles.js +4 -0
  200. package/lib/components/main/main.styles.js.map +1 -0
  201. package/lib/components/modal/modal.js +174 -125
  202. package/lib/components/modal/modal.js.map +1 -0
  203. package/lib/components/modal/modal.styles.js +4 -0
  204. package/lib/components/modal/modal.styles.js.map +1 -0
  205. package/lib/components/multi-select/multi-select.js +300 -211
  206. package/lib/components/multi-select/multi-select.js.map +1 -0
  207. package/lib/components/multi-select/multi-select.styles.js +4 -0
  208. package/lib/components/multi-select/multi-select.styles.js.map +1 -0
  209. package/lib/components/nav-container/nav-container.js +19 -16
  210. package/lib/components/nav-container/nav-container.js.map +1 -0
  211. package/lib/components/nav-container/nav-container.styles.js +4 -0
  212. package/lib/components/nav-container/nav-container.styles.js.map +1 -0
  213. package/lib/components/page-header/page-header.js +36 -29
  214. package/lib/components/page-header/page-header.js.map +1 -0
  215. package/lib/components/page-header/page-header.styles.js +4 -0
  216. package/lib/components/page-header/page-header.styles.js.map +1 -0
  217. package/lib/components/pagination/page-counter/page-counter.js +67 -0
  218. package/lib/components/pagination/page-counter/page-counter.js.map +1 -0
  219. package/lib/components/pagination/page-counter/page-counter.styles.js +4 -0
  220. package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
  221. package/lib/components/pagination/pagination.js +282 -237
  222. package/lib/components/pagination/pagination.js.map +1 -0
  223. package/lib/components/pagination/pagination.styles.js +4 -0
  224. package/lib/components/pagination/pagination.styles.js.map +1 -0
  225. package/lib/components/percent-bar/percent-bar.js +56 -48
  226. package/lib/components/percent-bar/percent-bar.js.map +1 -0
  227. package/lib/components/percent-bar/percent-bar.styles.js +4 -0
  228. package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
  229. package/lib/components/popover/popover.js +304 -179
  230. package/lib/components/popover/popover.js.map +1 -0
  231. package/lib/components/popover/popover.styles.js +4 -0
  232. package/lib/components/popover/popover.styles.js.map +1 -0
  233. package/lib/components/primary-nav/primary-nav.js +44 -37
  234. package/lib/components/primary-nav/primary-nav.js.map +1 -0
  235. package/lib/components/primary-nav/primary-nav.styles.js +4 -0
  236. package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
  237. package/lib/components/primary-nav-item/primary-nav-item.js +151 -113
  238. package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
  239. package/lib/components/primary-nav-item/primary-nav-item.styles.js +4 -0
  240. package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
  241. package/lib/components/progress-meter/progress-meter.js +74 -57
  242. package/lib/components/progress-meter/progress-meter.js.map +1 -0
  243. package/lib/components/progress-meter/progress-meter.styles.js +4 -0
  244. package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
  245. package/lib/components/progress-steps/progress-steps.js +19 -0
  246. package/lib/components/progress-steps/progress-steps.js.map +1 -0
  247. package/lib/components/progress-steps/progress-steps.styles.js +4 -0
  248. package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
  249. package/lib/components/progress-steps-item/progress-steps-item.js +52 -40
  250. package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
  251. package/lib/components/progress-steps-item/progress-steps-item.styles.js +4 -0
  252. package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
  253. package/lib/components/radio-field/radio-field.js +59 -49
  254. package/lib/components/radio-field/radio-field.js.map +1 -0
  255. package/lib/components/radio-field/radio-field.styles.js +4 -0
  256. package/lib/components/radio-field/radio-field.styles.js.map +1 -0
  257. package/lib/components/radio-field-item/radio-field-item.js +222 -179
  258. package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
  259. package/lib/components/radio-field-item/radio-field-item.styles.js +4 -0
  260. package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
  261. package/lib/components/remove-tag/remove-tag.js +89 -60
  262. package/lib/components/remove-tag/remove-tag.js.map +1 -0
  263. package/lib/components/remove-tag/remove-tag.styles.js +4 -0
  264. package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
  265. package/lib/components/section/section.js +46 -27
  266. package/lib/components/section/section.js.map +1 -0
  267. package/lib/components/section/section.styles.js +4 -0
  268. package/lib/components/section/section.styles.js.map +1 -0
  269. package/lib/components/select/select.js +243 -158
  270. package/lib/components/select/select.js.map +1 -0
  271. package/lib/components/select/select.styles.js +4 -0
  272. package/lib/components/select/select.styles.js.map +1 -0
  273. package/lib/components/select-tile/select-tile-checkbox-controller.js +60 -0
  274. package/lib/components/select-tile/select-tile-checkbox-controller.js.map +1 -0
  275. package/lib/components/select-tile/select-tile-radio-controller.js +167 -0
  276. package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
  277. package/lib/components/select-tile/select-tile.js +228 -223
  278. package/lib/components/select-tile/select-tile.js.map +1 -0
  279. package/lib/components/select-tile/select-tile.styles.js +4 -0
  280. package/lib/components/select-tile/select-tile.styles.js.map +1 -0
  281. package/lib/components/select-tile-list/select-tile-list.js +76 -62
  282. package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
  283. package/lib/components/select-tile-list/select-tile-list.styles.js +4 -0
  284. package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
  285. package/lib/components/skeleton-loader/skeleton-loader.js +68 -39
  286. package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
  287. package/lib/components/skeleton-loader/skeleton-loader.styles.js +4 -0
  288. package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
  289. package/lib/components/split-button/split-button.js +51 -46
  290. package/lib/components/split-button/split-button.js.map +1 -0
  291. package/lib/components/split-button/split-button.styles.js +4 -0
  292. package/lib/components/split-button/split-button.styles.js.map +1 -0
  293. package/lib/components/submenu/submenu.js +19 -16
  294. package/lib/components/submenu/submenu.js.map +1 -0
  295. package/lib/components/submenu/submenu.styles.js +4 -0
  296. package/lib/components/submenu/submenu.styles.js.map +1 -0
  297. package/lib/components/submenu-item/submenu-item.js +32 -26
  298. package/lib/components/submenu-item/submenu-item.js.map +1 -0
  299. package/lib/components/submenu-item/submenu-item.styles.js +4 -0
  300. package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
  301. package/lib/components/tab/tab.js +74 -63
  302. package/lib/components/tab/tab.js.map +1 -0
  303. package/lib/components/tab/tab.styles.js +4 -0
  304. package/lib/components/tab/tab.styles.js.map +1 -0
  305. package/lib/components/tab-panel/tab-panel.js +49 -43
  306. package/lib/components/tab-panel/tab-panel.js.map +1 -0
  307. package/lib/components/tab-panel/tab-panel.styles.js +4 -0
  308. package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
  309. package/lib/components/table/table.js +46 -41
  310. package/lib/components/table/table.js.map +1 -0
  311. package/lib/components/table/table.styles.js +4 -0
  312. package/lib/components/table/table.styles.js.map +1 -0
  313. package/lib/components/table-body/table-body.js +20 -17
  314. package/lib/components/table-body/table-body.js.map +1 -0
  315. package/lib/components/table-body/table-body.styles.js +4 -0
  316. package/lib/components/table-body/table-body.styles.js.map +1 -0
  317. package/lib/components/table-cell/table-cell.js +39 -36
  318. package/lib/components/table-cell/table-cell.js.map +1 -0
  319. package/lib/components/table-cell/table-cell.styles.js +4 -0
  320. package/lib/components/table-cell/table-cell.styles.js.map +1 -0
  321. package/lib/components/table-header/table-header.js +20 -17
  322. package/lib/components/table-header/table-header.js.map +1 -0
  323. package/lib/components/table-header/table-header.styles.js +4 -0
  324. package/lib/components/table-header/table-header.styles.js.map +1 -0
  325. package/lib/components/table-header-cell/table-header-cell.js +35 -32
  326. package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
  327. package/lib/components/table-header-cell/table-header-cell.styles.js +4 -0
  328. package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
  329. package/lib/components/table-object/table-object.js +21 -18
  330. package/lib/components/table-object/table-object.js.map +1 -0
  331. package/lib/components/table-object/table-object.styles.js +4 -0
  332. package/lib/components/table-object/table-object.styles.js.map +1 -0
  333. package/lib/components/table-row/table-row.js +76 -55
  334. package/lib/components/table-row/table-row.js.map +1 -0
  335. package/lib/components/table-row/table-row.styles.js +4 -0
  336. package/lib/components/table-row/table-row.styles.js.map +1 -0
  337. package/lib/components/tabs/tabs.js +452 -303
  338. package/lib/components/tabs/tabs.js.map +1 -0
  339. package/lib/components/tabs/tabs.styles.js +4 -0
  340. package/lib/components/tabs/tabs.styles.js.map +1 -0
  341. package/lib/components/tag/tag.js +236 -167
  342. package/lib/components/tag/tag.js.map +1 -0
  343. package/lib/components/tag/tag.styles.js +4 -0
  344. package/lib/components/tag/tag.styles.js.map +1 -0
  345. package/lib/components/tag-list/tag-list.js +40 -35
  346. package/lib/components/tag-list/tag-list.js.map +1 -0
  347. package/lib/components/tag-list/tag-list.styles.js +4 -0
  348. package/lib/components/tag-list/tag-list.styles.js.map +1 -0
  349. package/lib/components/tertiary-nav/tertiary-nav.js +40 -33
  350. package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
  351. package/lib/components/tertiary-nav/tertiary-nav.styles.js +4 -0
  352. package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
  353. package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -43
  354. package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
  355. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +4 -0
  356. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
  357. package/lib/components/text-link/text-link.js +45 -41
  358. package/lib/components/text-link/text-link.js.map +1 -0
  359. package/lib/components/text-link/text-link.styles.js +4 -0
  360. package/lib/components/text-link/text-link.styles.js.map +1 -0
  361. package/lib/components/text-passage/text-passage-light-dom.js +145 -0
  362. package/lib/components/text-passage/text-passage-light-dom.js.map +1 -0
  363. package/lib/components/text-passage/text-passage-light-dom.styles.js +4 -0
  364. package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
  365. package/lib/components/text-passage/text-passage.js +72 -44
  366. package/lib/components/text-passage/text-passage.js.map +1 -0
  367. package/lib/components/text-passage/text-passage.styles.js +4 -0
  368. package/lib/components/text-passage/text-passage.styles.js.map +1 -0
  369. package/lib/components/tooltip/tooltip.js +278 -173
  370. package/lib/components/tooltip/tooltip.js.map +1 -0
  371. package/lib/components/tooltip/tooltip.styles.js +4 -0
  372. package/lib/components/tooltip/tooltip.styles.js.map +1 -0
  373. package/lib/components/utility-nav/utility-nav.js +40 -33
  374. package/lib/components/utility-nav/utility-nav.js.map +1 -0
  375. package/lib/components/utility-nav/utility-nav.styles.js +4 -0
  376. package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
  377. package/lib/components/utility-nav-item/utility-nav-item.js +70 -49
  378. package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
  379. package/lib/components/utility-nav-item/utility-nav-item.styles.js +4 -0
  380. package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
  381. package/lib/design-tokens/brands/blue/css/tokens_blue.module.js +737 -0
  382. package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
  383. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
  384. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
  385. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js +771 -0
  386. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js.map +1 -0
  387. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +772 -0
  388. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -0
  389. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js +737 -0
  390. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
  391. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
  392. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
  393. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
  394. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
  395. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
  396. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
  397. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
  398. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
  399. package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
  400. package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
  401. package/lib/design-tokens/brands/starbucks/tokens.module.js +552 -0
  402. package/lib/design-tokens/brands/starbucks/tokens.module.js.map +1 -0
  403. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js +776 -0
  404. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
  405. package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.js +253 -0
  406. package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.js.map +1 -0
  407. package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
  408. package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
  409. package/lib/design-tokens/tokens_netflix.theme.js +806 -0
  410. package/lib/design-tokens/tokens_netflix.theme.js.map +1 -0
  411. package/lib/directives/if-truthy.js +24 -0
  412. package/lib/directives/if-truthy.js.map +1 -0
  413. package/lib/directives/spread.js +29 -0
  414. package/lib/directives/spread.js.map +1 -0
  415. package/lib/index.js +84 -168
  416. package/lib/index.js.map +1 -0
  417. package/lib/scripts/convert-scss-to-ts.js +25 -0
  418. package/lib/scripts/convert-scss-to-ts.js.map +1 -0
  419. package/lib/scripts/extract-tokens.js +120 -0
  420. package/lib/scripts/extract-tokens.js.map +1 -0
  421. package/lib/scripts/generate-react-wrappers.js +229 -0
  422. package/lib/scripts/generate-react-wrappers.js.map +1 -0
  423. package/lib/scripts/generateWesparkleThemes.js +52 -0
  424. package/lib/scripts/generateWesparkleThemes.js.map +1 -0
  425. package/lib/toBeAccessible.js +18 -0
  426. package/lib/toBeAccessible.js.map +1 -0
  427. package/lib/utilities/is-mobile.js +10 -0
  428. package/lib/utilities/is-mobile.js.map +1 -0
  429. package/lib/utilities/story-helpers.js +14 -0
  430. package/lib/utilities/story-helpers.js.map +1 -0
  431. package/lib/vite.config.cdn.js +85 -0
  432. package/lib/vite.config.cdn.js.map +1 -0
  433. package/lib/vite.config.js +156 -0
  434. package/lib/vite.config.js.map +1 -0
  435. package/package.json +8 -9
@@ -1,48 +1,51 @@
1
- import { css as m, html as l } from "lit";
2
- import { ifDefined as h } from "lit-html/directives/if-defined.js";
3
- import { property as s } from "lit/decorators.js";
4
- import { Cre8Element as p } from "../cre8-element.js";
5
- const f = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-link-list__item{display:flex;align-items:center}.cre8-c-link-list__link{display:flex;align-items:center;color:var(--cre8-link-list-link-color, var(--cre8-color-content-link));text-decoration:underline}.cre8-c-link-list__link:hover,.cre8-c-link-list__link:focus{color:var(--cre8-link-list-link-hover-color, var(--cre8-color-content-link-hover));text-decoration:none}.cre8-c-link-list__item.cre8-is-active .cre8-c-link-list__link{color:var(--cre8-link-list-item-active-text-color);font-weight:var(--cre8-font-weight-bold)}.cre8-c-link-list__item-before{margin-right:0.5rem}.cre8-c-link-list__item-after{margin-left:0.5rem}::slotted(cre8-icon-legacy){--cre8-icon-height: 1.5rem;--cre8-icon-width: 1.5rem}`;
6
- var x = Object.defineProperty, a = (n, i, c, k) => {
7
- for (var e = void 0, r = n.length - 1, d; r >= 0; r--)
8
- (d = n[r]) && (e = d(i, c, e) || e);
9
- return e && x(i, c, e), e;
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
6
  };
11
- const o = class o extends p {
12
- render() {
13
- const i = this.componentClassNames("cre8-c-link-list__item", {
14
- "cre8-is-active": this.isActive === !0
15
- });
16
- return l`
17
- <li class="${i}">
18
- <a class="cre8-c-link-list__link" href="${h(this.href)}">
19
- ${this.slotNotEmpty("itemBefore") && l`
7
+ import { html, } from 'lit';
8
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
9
+ import { property } from 'lit/decorators.js';
10
+ import { Cre8Element } from '../cre8-element';
11
+ import styles from './link-list-item.styles.js';
12
+ /**
13
+ * @slot - The default slot to put badges or other Components
14
+ */
15
+ export class Cre8LinkListItem extends Cre8Element {
16
+ render() {
17
+ const componentClassName = this.componentClassNames('cre8-c-link-list__item', {
18
+ 'cre8-is-active': this.isActive === true,
19
+ });
20
+ return html `
21
+ <li class="${componentClassName}">
22
+ <a class="cre8-c-link-list__link" href="${ifDefined(this.href)}">
23
+ ${this.slotNotEmpty('itemBefore') && html `
20
24
  <div class="cre8-c-link-list__item-before">
21
25
  <slot name="itemBefore"></slot>
22
26
  </div>`}
23
27
  <slot></slot>
24
28
  </a>
25
- ${this.slotNotEmpty("itemAfter") && l`
29
+ ${this.slotNotEmpty('itemAfter') && html `
26
30
  <div class="cre8-c-link-list__item-after">
27
31
  <slot name="itemAfter"></slot>
28
32
  </div>`}
29
33
  </li>
30
34
  `;
31
- }
32
- };
33
- o.styles = [f];
34
- let t = o;
35
- a([
36
- s()
37
- ], t.prototype, "text");
38
- a([
39
- s({ type: Boolean, reflect: !0 })
40
- ], t.prototype, "isActive");
41
- a([
42
- s()
43
- ], t.prototype, "href");
44
- customElements.get("cre8-link-list-item") === void 0 && customElements.define("cre8-link-list-item", t);
45
- export {
46
- t as Cre8LinkListItem,
47
- t as default
48
- };
35
+ }
36
+ }
37
+ Cre8LinkListItem.styles = [styles];
38
+ __decorate([
39
+ property()
40
+ ], Cre8LinkListItem.prototype, "text", void 0);
41
+ __decorate([
42
+ property({ type: Boolean, reflect: true })
43
+ ], Cre8LinkListItem.prototype, "isActive", void 0);
44
+ __decorate([
45
+ property()
46
+ ], Cre8LinkListItem.prototype, "href", void 0);
47
+ if (customElements.get('cre8-link-list-item') === undefined) {
48
+ customElements.define('cre8-link-list-item', Cre8LinkListItem);
49
+ }
50
+ export default Cre8LinkListItem;
51
+ //# sourceMappingURL=link-list-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-list-item.js","sourceRoot":"","sources":["../../../components/link-list-item/link-list-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAqB/C,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,wBAAwB,EAAE;YAC1E,gBAAgB,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI;SAC3C,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;mBACE,kBAAkB;kDACa,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC1D,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,IAAI,CAAA;;;iBAGlC;;;UAGP,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,IAAI,CAAA;;;eAGjC;;KAEV,CAAC;IACJ,CAAC;;AAxCQ,uBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAMvB;IADH,QAAQ,EAAE;8CACO;AAMd;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACpB;AAMnB;IADH,QAAQ,EAAE;8CACO;AAyBpB,IAAI,cAAc,CAAC,GAAG,CAAC,qBAAqB,CAAC,KAAK,SAAS,EAAE,CAAC;IAC1D,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC;AAQD,eAAe,gBAAgB,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './link-list-item.styles.js';\n\n/**\n * @slot - The default slot to put badges or other Components\n */\nexport class Cre8LinkListItem extends Cre8Element {\n static styles = [styles];\n\n /**\n * The link text\n */\n @property()\n text?: string;\n\n /**\n * Active link\n */\n @property({ type: Boolean, reflect: true })\n isActive?: boolean;\n\n /**\n * The link URL\n */\n @property()\n href?: string;\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-link-list__item', {\n 'cre8-is-active': this.isActive === true,\n });\n\n return html`\n <li class=\"${componentClassName}\">\n <a class=\"cre8-c-link-list__link\" href=\"${ifDefined(this.href)}\">\n ${this.slotNotEmpty('itemBefore') && html`\n <div class=\"cre8-c-link-list__item-before\">\n <slot name=\"itemBefore\"></slot>\n </div>`}\n <slot></slot>\n </a>\n ${this.slotNotEmpty('itemAfter') && html`\n <div class=\"cre8-c-link-list__item-after\">\n <slot name=\"itemAfter\"></slot>\n </div>`}\n </li>\n `;\n }\n}\n\nif (customElements.get('cre8-link-list-item') === undefined) {\n customElements.define('cre8-link-list-item', Cre8LinkListItem);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-link-list-item': Cre8LinkListItem;\n }\n}\n\nexport default Cre8LinkListItem;\n"]}
@@ -0,0 +1,4 @@
1
+ import { css } from 'lit';
2
+ const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-link-list__item{display:flex;align-items:center}.cre8-c-link-list__link{display:flex;align-items:center;color:var(--cre8-link-list-link-color, var(--cre8-color-content-link));text-decoration:underline}.cre8-c-link-list__link:hover,.cre8-c-link-list__link:focus{color:var(--cre8-link-list-link-hover-color, var(--cre8-color-content-link-hover));text-decoration:none}.cre8-c-link-list__item.cre8-is-active .cre8-c-link-list__link{color:var(--cre8-link-list-item-active-text-color);font-weight:var(--cre8-font-weight-bold)}.cre8-c-link-list__item-before{margin-right:0.5rem}.cre8-c-link-list__item-after{margin-left:0.5rem}::slotted(cre8-icon-legacy){--cre8-icon-height: 1.5rem;--cre8-icon-width: 1.5rem}`;
3
+ export default styles;
4
+ //# sourceMappingURL=link-list-item.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-list-item.styles.js","sourceRoot":"","sources":["../../../components/link-list-item/link-list-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,+8EAA+8E,CAAC;AACl+E,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst styles = css`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-link-list__item{display:flex;align-items:center}.cre8-c-link-list__link{display:flex;align-items:center;color:var(--cre8-link-list-link-color, var(--cre8-color-content-link));text-decoration:underline}.cre8-c-link-list__link:hover,.cre8-c-link-list__link:focus{color:var(--cre8-link-list-link-hover-color, var(--cre8-color-content-link-hover));text-decoration:none}.cre8-c-link-list__item.cre8-is-active .cre8-c-link-list__link{color:var(--cre8-link-list-item-active-text-color);font-weight:var(--cre8-font-weight-bold)}.cre8-c-link-list__item-before{margin-right:0.5rem}.cre8-c-link-list__item-after{margin-left:0.5rem}::slotted(cre8-icon-legacy){--cre8-icon-height: 1.5rem;--cre8-icon-width: 1.5rem}`;\nexport default styles;\n"]}
@@ -1,36 +1,39 @@
1
- import { css as m, html as p } from "lit";
2
- import { property as o } from "lit/decorators.js";
3
- import { Cre8Element as c } from "../cre8-element.js";
4
- const h = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-list{list-style:none;padding:0;margin:0;margin-bottom:1rem}::slotted(cre8-list-item){display:block;padding-top:1rem;padding-bottom:1rem;border-bottom:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-subtle)}.cre8-c-list--bare ::slotted(cre8-list-item){border-bottom:0}.cre8-c-list--condensed ::slotted(cre8-list-item){padding-top:0.5rem;padding-bottom:0.5rem}.cre8-c-list--padded ::slotted(cre8-list-item){padding-top:2rem;padding-bottom:2rem}`;
5
- var f = Object.defineProperty, n = (a, r, d, g) => {
6
- for (var e = void 0, i = a.length - 1, l; i >= 0; i--)
7
- (l = a[i]) && (e = l(r, d, e) || e);
8
- return e && f(r, d, e), e;
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9
6
  };
10
- const s = class s extends c {
11
- render() {
12
- const r = this.componentClassNames("cre8-c-list", {
13
- "cre8-c-list--bare": this.variant === "bare",
14
- "cre8-c-list--padded": this.spacing === "padded",
15
- "cre8-c-list--condensed": this.spacing === "condensed"
16
- });
17
- return p`
18
- <ul class="${r}">
7
+ import { html, } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { Cre8Element } from '../cre8-element';
10
+ import styles from './list.styles.js';
11
+ /**
12
+ * @slot - The list items
13
+ */
14
+ export class Cre8List extends Cre8Element {
15
+ render() {
16
+ const componentClassName = this.componentClassNames('cre8-c-list', {
17
+ 'cre8-c-list--bare': this.variant === 'bare',
18
+ 'cre8-c-list--padded': this.spacing === 'padded',
19
+ 'cre8-c-list--condensed': this.spacing === 'condensed',
20
+ });
21
+ return html `
22
+ <ul class="${componentClassName}">
19
23
  <slot></slot>
20
24
  </ul>
21
25
  `;
22
- }
23
- };
24
- s.styles = [h];
25
- let t = s;
26
- n([
27
- o()
28
- ], t.prototype, "variant");
29
- n([
30
- o()
31
- ], t.prototype, "spacing");
32
- customElements.get("cre8-list") === void 0 && customElements.define("cre8-list", t);
33
- export {
34
- t as Cre8List,
35
- t as default
36
- };
26
+ }
27
+ }
28
+ Cre8List.styles = [styles];
29
+ __decorate([
30
+ property()
31
+ ], Cre8List.prototype, "variant", void 0);
32
+ __decorate([
33
+ property()
34
+ ], Cre8List.prototype, "spacing", void 0);
35
+ if (customElements.get('cre8-list') === undefined) {
36
+ customElements.define('cre8-list', Cre8List);
37
+ }
38
+ export default Cre8List;
39
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../components/list/list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IA0BvC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YAC/D,mBAAmB,EAAE,IAAI,CAAC,OAAO,KAAK,MAAM;YAC5C,qBAAqB,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;YAChD,wBAAwB,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;SACzD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;mBACE,kBAAkB;;;KAGhC,CAAC;IACJ,CAAC;;AArCQ,eAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAWvB;IADH,QAAQ,EAAE;yCACU;AAYjB;IADH,QAAQ,EAAE;yCAC0B;AAiBvC,IAAI,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;IAChD,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAQD,eAAe,QAAQ,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './list.styles.js';\n\n/**\n * @slot - The list items\n */\nexport class Cre8List extends Cre8Element {\n static styles = [styles];\n\n /**\n * Style variants\n * <cre8-text-passage size=\"sm\">\n * <ul>\n * <li>**bare** removes any lines from in between list items</li>\n * </ul>\n * </cre8-text-passage>\n */\n @property()\n variant?: 'bare';\n\n /**\n * Spacing variants\n * <cre8-text-passage size=\"sm\">\n * <ul>\n * <li>**padded** applies more padding in between list items compared to the default</li>\n * <li>**condensed** reduces padding in between list items compared to the default</li>\n * </ul>\n * </cre8-text-passage>\n */\n @property()\n spacing?: 'padded' | 'condensed';\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-list', {\n 'cre8-c-list--bare': this.variant === 'bare',\n 'cre8-c-list--padded': this.spacing === 'padded',\n 'cre8-c-list--condensed': this.spacing === 'condensed',\n });\n\n return html`\n <ul class=\"${componentClassName}\">\n <slot></slot>\n </ul>\n `;\n }\n}\n\nif (customElements.get('cre8-list') === undefined) {\n customElements.define('cre8-list', Cre8List);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-list': Cre8List;\n }\n}\n\nexport default Cre8List;\n"]}
@@ -0,0 +1,4 @@
1
+ import { css } from 'lit';
2
+ const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-list{list-style:none;padding:0;margin:0;margin-bottom:1rem}::slotted(cre8-list-item){display:block;padding-top:1rem;padding-bottom:1rem;border-bottom:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-subtle)}.cre8-c-list--bare ::slotted(cre8-list-item){border-bottom:0}.cre8-c-list--condensed ::slotted(cre8-list-item){padding-top:0.5rem;padding-bottom:0.5rem}.cre8-c-list--padded ::slotted(cre8-list-item){padding-top:2rem;padding-bottom:2rem}`;
3
+ export default styles;
4
+ //# sourceMappingURL=list.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.styles.js","sourceRoot":"","sources":["../../../components/list/list.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,svEAAsvE,CAAC;AACzwE,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst styles = css`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-list{list-style:none;padding:0;margin:0;margin-bottom:1rem}::slotted(cre8-list-item){display:block;padding-top:1rem;padding-bottom:1rem;border-bottom:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-subtle)}.cre8-c-list--bare ::slotted(cre8-list-item){border-bottom:0}.cre8-c-list--condensed ::slotted(cre8-list-item){padding-top:0.5rem;padding-bottom:0.5rem}.cre8-c-list--padded ::slotted(cre8-list-item){padding-top:2rem;padding-bottom:2rem}`;\nexport default styles;\n"]}
@@ -1,24 +1,28 @@
1
- import { css as r, html as s } from "lit";
2
- import { Cre8Element as a } from "../cre8-element.js";
3
- const d = r`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}`, t = class t extends a {
4
- // Set the role before rendering for better accessibility
5
- // Because we're settting this role, we don't wrap the slot in an <li>
6
- connectedCallback() {
7
- this.setAttribute("role", "listitem"), super.connectedCallback();
8
- }
9
- render() {
10
- const i = this.componentClassNames("cre8-c-list__item", {});
11
- return s`
12
- <div class="${i}">
1
+ import { html, } from 'lit';
2
+ import { Cre8Element } from '../cre8-element';
3
+ import styles from './list-item.styles.js';
4
+ /**
5
+ * @slot - The content of the list item
6
+ */
7
+ export class Cre8ListItem extends Cre8Element {
8
+ // Set the role before rendering for better accessibility
9
+ // Because we're settting this role, we don't wrap the slot in an <li>
10
+ connectedCallback() {
11
+ this.setAttribute('role', 'listitem');
12
+ super.connectedCallback();
13
+ }
14
+ render() {
15
+ const componentClassName = this.componentClassNames('cre8-c-list__item', {});
16
+ return html `
17
+ <div class="${componentClassName}">
13
18
  <slot></slot>
14
19
  </div>
15
20
  `;
16
- }
17
- };
18
- t.styles = [d];
19
- let e = t;
20
- customElements.get("cre8-list-item") === void 0 && customElements.define("cre8-list-item", e);
21
- export {
22
- e as Cre8ListItem,
23
- e as default
24
- };
21
+ }
22
+ }
23
+ Cre8ListItem.styles = [styles];
24
+ if (customElements.get('cre8-list-item') === undefined) {
25
+ customElements.define('cre8-list-item', Cre8ListItem);
26
+ }
27
+ export default Cre8ListItem;
28
+ //# sourceMappingURL=list-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item.js","sourceRoot":"","sources":["../../../components/list-item/list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAGzC,yDAAyD;IACzD,sEAAsE;IACtE,iBAAiB;QACb,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACtC,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC9B,CAAC;IAED,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAE7E,OAAO,IAAI,CAAA;sBACG,kBAAkB;;;OAGjC,CAAC;IACJ,CAAC;;AAjBM,mBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAoB7B,IAAI,cAAc,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;IACrD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AAC1D,CAAC;AAQD,eAAe,YAAY,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './list-item.styles.js';\n\n/**\n * @slot - The content of the list item\n */\nexport class Cre8ListItem extends Cre8Element {\n static styles = [styles];\n\n // Set the role before rendering for better accessibility\n // Because we're settting this role, we don't wrap the slot in an <li>\n connectedCallback() {\n this.setAttribute('role', 'listitem');\n super.connectedCallback();\n }\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-list__item', {});\n\n return html`\n <div class=\"${componentClassName}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-list-item') === undefined) {\n customElements.define('cre8-list-item', Cre8ListItem);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-list-item': Cre8ListItem;\n }\n}\n\nexport default Cre8ListItem;\n"]}
@@ -0,0 +1,4 @@
1
+ import { css } from 'lit';
2
+ const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}`;
3
+ export default styles;
4
+ //# sourceMappingURL=list-item.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item.styles.js","sourceRoot":"","sources":["../../../components/list-item/list-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,0wDAA0wD,CAAC;AAC7xD,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst styles = css`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}`;\nexport default styles;\n"]}
@@ -1,96 +1,151 @@
1
- import { css as d, html as n, nothing as h } from "lit";
2
- import { property as i } from "lit/decorators.js";
3
- import { Cre8Element as m } from "../cre8-element.js";
4
- const g = d`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}@keyframes loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-circle-animation{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}:host{display:inline-block;--spinner-stroke-dasharray: 282.743px;--spinner-large-stroke-width: 10;--spinner-small-stroke-width: 14;--spinner-large-width: 4.5rem;--spinner-small-width: 1.5rem;font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform)}.cre8-c-spinner,.cre8-c-spinner--large{--spinner-height: var(--spinner-large-width);--spinner-width: var(--spinner-large-width);--icon-color: var(--cre8-color-content-brand)}.cre8-c-spinner .cre8-c-spinner__icon,.cre8-c-spinner--large .cre8-c-spinner__icon{display:block}.cre8-c-spinner .cre8-c-spinner__label,.cre8-c-spinner--large .cre8-c-spinner__label{display:block;margin-top:var(--cre8-spacing-8)}.cre8-c-spinner--small{--spinner-height: var(--spinner-small-width);--spinner-width: var(--spinner-small-width);--icon-color: var(--cre8-color-content-brand);display:flex;align-items:center}.cre8-c-spinner--small .cre8-c-spinner__label{display:inline-block;margin-left:var(--cre8-spacing-8);margin-top:0;vertical-align:.35rem}.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-content-brand-knockout);--label-color: var(--cre8-color-content-brand-knockout)}.cre8-c-spinner--secondary.cre8-c-spinner--inverse.cre8-c-spinner--neutral{--icon-color: var(--cre8-color-button-secondary-neutral-inverse-content-active);--label-color: var(--cre8-color-button-secondary-neutral-inverse-content-active)}.cre8-c-spinner--neutral{--icon-color: var(--cre8-color-button-secondary-neutral-content-active)}.cre8-c-spinner--primary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-primary-inverse-content-active)}.cre8-c-spinner--secondary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-secondary-inverse-content-active)}.cre8-c-spinner--tertiary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-tertiary-inverse-content-active)}.cre8-c-spinner__label{color:var(--label-color, var(--cre8-color-content-default))}.cre8-c-spinner__hidden-label{display:none}.cre8-c-spinner__icon{height:var(--spinner-height, 1em);width:var(--spinner-width, 1em)}.cre8-c-spinner__icon circle{fill:rgba(0,0,0,0);stroke:var(--icon-color, inherit);stroke-dasharray:var(--spinner-stroke-dasharray);stroke-linecap:round;stroke-width:var(--spinner-large-stroke-width);transform-origin:50% 50%}.cre8-c-spinner__icon-small circle{stroke-width:var(--spinner-small-stroke-width)}.cre8-c-spinner--indeterminate .cre8-c-spinner__icon{animation:loading 2s linear 0s infinite}.cre8-c-spinner--indeterminate .cre8-c-spinner__icon circle{animation-duration:1.4s;animation-iteration-count:infinite;animation-name:spinner-circle-animation;animation-timing-function:ease-in-out}.cre8-c-spinner--determinate .cre8-c-spinner__icon{overflow:hidden;transform:rotate(-90deg);transform-origin:center center}`;
5
- var f = Object.defineProperty, t = (l, r, s, v) => {
6
- for (var a = void 0, c = l.length - 1, p; c >= 0; c--)
7
- (p = l[c]) && (a = p(r, s, a) || a);
8
- return a && f(r, s, a), a;
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9
6
  };
10
- const o = class o extends m {
11
- constructor() {
12
- super(), this.progress = 0, this.size = "large";
13
- const r = Math.floor(Math.random() * 9e5) + 1e5;
14
- this.labelId = `cre8-spinner-${r}`;
15
- }
16
- renderDeterminateSpinner() {
17
- const r = Math.max(Math.min(100, this.progress === 0 ? this.progress = 1 : this.progress), 0), s = 2 * 3.1415926 * 45 - r / 100 * (2 * 3.1415926 * 45);
18
- return n` ${this.size === "small" ? n`
7
+ import { html, nothing, } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { Cre8Element } from '../cre8-element';
10
+ import styles from './loading-spinner.styles.js';
11
+ /**
12
+ * A loading spinner notifies the user that their request is being processed while the front end is retrieving data
13
+ * or performing slow computations.
14
+ *
15
+ * Providing visibility of a system's status is one of the most important rules of UI design. When the user has to
16
+ * guess or assume that the system is responding to their input, they may send a command such as submit multiple
17
+ * times, while also being anxious that the application is frozen or not working.
18
+ *
19
+ * While it is most ideal to improve system performance such that there is no perceptible delay, in some cases this
20
+ * is not possible. In these cases, the immediate response should be a progress indicator to give a visual indication
21
+ * that their command was received and that the application is working.
22
+ *
23
+ * The length of time for the system response is a good general guideline for which progress indicator to use.
24
+ *
25
+ * ## Determinable vs indeterminate progress
26
+ *
27
+ * A progress meter provides feedback that the system is working and gives the user an indication of how much time
28
+ * they will wait. This indicator should be used when the system response time is longer and determinable. See
29
+ * ProgressMeter component for further examples and accessibility considerations.
30
+ *
31
+ * ## How to Use
32
+ *
33
+ * The loading-spinner component can be used to indicate loading state on the component level all the way up to the
34
+ * page level. There are two loading styles: determinate (loading progress represents percentage of total load time)
35
+ * and indeterminate (a spinning animation that persists while loading continues)
36
+ *
37
+ * 1. Choose determinate or indeterminate. UX best practices leans more towards recommending the indeterminate
38
+ * progress indicator if load time is unknown, while determinate is less user friendly unless the label indicates
39
+ * the percentage loaded as well.
40
+ * 2. Choose a size and use it according to context, guidance should be given by your design or content team.
41
+ * 3. A common label to use is `Loading…`, guidance should be given by your design content team.
42
+ * 4. If you choose to use the determinate loader then you must also control the progress attribute's value which
43
+ * controls the percentage of the circle that shows (values 0-100 accepted);
44
+ * 5. For dark backgrounds, add the `inverse` attribute to the `<cre8-loading-spinner>` tag.
45
+ * 6. For accessibility reasons, always include a label input unless explicitly informed to do otherwise by design or
46
+ * accessibility teams.
47
+ * 7. The lg variant is usually suitable for containers or block level loading placeholders while the sm size is
48
+ * meant for more inline loading states.
49
+ *
50
+ */
51
+ export class Cre8LoadingSpinner extends Cre8Element {
52
+ constructor() {
53
+ super();
54
+ /**
55
+ * Progress to display, between 0 and 100. Requires determinate property to be set to true.
56
+ * */
57
+ this.progress = 0;
58
+ /**
59
+ * Size of the progress indicator and position of the label, if a label has been defined using the label property.
60
+ * - **large** renders a large progress indicator at 72px in width/height with the label below.
61
+ * - **small** renders a small progress indicator at 24px in width/height with the label to the right.
62
+ */
63
+ this.size = 'large';
64
+ const randomId = Math.floor(Math.random() * 900000) + 100000;
65
+ this.labelId = `cre8-spinner-${randomId}`;
66
+ }
67
+ renderDeterminateSpinner() {
68
+ const progress = Math.max(Math.min(100, this.progress === 0 ? (this.progress = 1) : this.progress), 0);
69
+ const dashOffset = 2 * 3.1415926 * 45 - (progress / 100) * (2 * 3.1415926 * 45);
70
+ return html ` ${this.size === 'small'
71
+ ? html `
19
72
  <svg class="cre8-c-spinner__icon cre8-c-spinner__icon-small" aria-hidden="true" viewBox="0 0 100 100">
20
- <circle cx="50%" cy="50%" r="43" stroke-dashoffset="${s}"></circle>
73
+ <circle cx="50%" cy="50%" r="43" stroke-dashoffset="${dashOffset}"></circle>
21
74
  </svg>
22
- ` : n` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
23
- <circle cx="50%" cy="50%" r="45" stroke-dashoffset="${s}"></circle>
75
+ `
76
+ : html ` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
77
+ <circle cx="50%" cy="50%" r="45" stroke-dashoffset="${dashOffset}"></circle>
24
78
  </svg>`}`;
25
- }
26
- renderInDeterminateSpinner() {
27
- return n` ${this.size === "small" ? n`
79
+ }
80
+ renderInDeterminateSpinner() {
81
+ return html ` ${this.size === 'small'
82
+ ? html `
28
83
  <svg class="cre8-c-spinner__icon cre8-c-spinner__icon-small" aria-hidden="true" viewBox="0 0 100 100">
29
84
  <circle cx="50%" cy="50%" r="43"></circle>
30
85
  </svg>
31
- ` : n` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
86
+ `
87
+ : html ` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
32
88
  <circle cx="50%" cy="50%" r="45"></circle>
33
89
  </svg>`}`;
34
- }
35
- render() {
36
- const r = this.componentClassNames("cre8-c-spinner", {
37
- "cre8-c-spinner--large": this.size === "large",
38
- "cre8-c-spinner--small": this.size === "small",
39
- "cre8-c-spinner--inverse": this.inverse,
40
- "cre8-c-spinner--neutral": this.neutral,
41
- "cre8-c-spinner--primary": this.buttonVariant === "primary",
42
- "cre8-c-spinner--secondary": this.buttonVariant === "secondary",
43
- "cre8-c-spinner--tertiary": this.buttonVariant === "tertiary",
44
- "cre8-c-spinner--determinate": this.determinate,
45
- "cre8-c-spinner--indeterminate": !this.determinate
46
- });
47
- return n`
90
+ }
91
+ render() {
92
+ const componentClassNames = this.componentClassNames('cre8-c-spinner', {
93
+ 'cre8-c-spinner--large': this.size === 'large',
94
+ 'cre8-c-spinner--small': this.size === 'small',
95
+ 'cre8-c-spinner--inverse': this.inverse,
96
+ 'cre8-c-spinner--neutral': this.neutral,
97
+ 'cre8-c-spinner--primary': this.buttonVariant === 'primary',
98
+ 'cre8-c-spinner--secondary': this.buttonVariant === 'secondary',
99
+ 'cre8-c-spinner--tertiary': this.buttonVariant === 'tertiary',
100
+ 'cre8-c-spinner--determinate': this.determinate,
101
+ 'cre8-c-spinner--indeterminate': !this.determinate,
102
+ });
103
+ return html `
48
104
  <div
49
- class="${r}"
105
+ class="${componentClassNames}"
50
106
  role="progressbar"
51
107
  aria-labelledby="${this.labelId}"
52
108
  aria-valuemin="0"
53
109
  aria-valuemax="100"
54
- aria-valuenow="${this.determinate ? this.progress : h}"
110
+ aria-valuenow="${this.determinate ? this.progress : nothing}"
55
111
  part="base"
56
112
  >
57
113
  ${this.determinate ? this.renderDeterminateSpinner() : this.renderInDeterminateSpinner()}
58
114
  <div
59
115
  id="${this.labelId}"
60
- class="${this.label ? "cre8-c-spinner__label" : "cre8-c-spinner__hidden-label"}"
116
+ class="${!this.label ? 'cre8-c-spinner__hidden-label' : 'cre8-c-spinner__label'}"
61
117
  part="label"
62
118
  >
63
119
  ${this.label}
64
120
  </div>
65
121
  </div>
66
122
  `;
67
- }
68
- };
69
- o.styles = g;
70
- let e = o;
71
- t([
72
- i({ type: Boolean, reflect: !0 })
73
- ], e.prototype, "determinate");
74
- t([
75
- i({ type: Boolean, reflect: !0 })
76
- ], e.prototype, "inverse");
77
- t([
78
- i({ type: Boolean, reflect: !0 })
79
- ], e.prototype, "neutral");
80
- t([
81
- i()
82
- ], e.prototype, "buttonVariant");
83
- t([
84
- i()
85
- ], e.prototype, "label");
86
- t([
87
- i({ reflect: !0, type: Number })
88
- ], e.prototype, "progress");
89
- t([
90
- i()
91
- ], e.prototype, "size");
92
- customElements.get("cre8-loading-spinner") === void 0 && customElements.define("cre8-loading-spinner", e);
93
- export {
94
- e as Cre8LoadingSpinner,
95
- e as default
96
- };
123
+ }
124
+ }
125
+ Cre8LoadingSpinner.styles = (styles);
126
+ __decorate([
127
+ property({ type: Boolean, reflect: true })
128
+ ], Cre8LoadingSpinner.prototype, "determinate", void 0);
129
+ __decorate([
130
+ property({ type: Boolean, reflect: true })
131
+ ], Cre8LoadingSpinner.prototype, "inverse", void 0);
132
+ __decorate([
133
+ property({ type: Boolean, reflect: true })
134
+ ], Cre8LoadingSpinner.prototype, "neutral", void 0);
135
+ __decorate([
136
+ property()
137
+ ], Cre8LoadingSpinner.prototype, "buttonVariant", void 0);
138
+ __decorate([
139
+ property()
140
+ ], Cre8LoadingSpinner.prototype, "label", void 0);
141
+ __decorate([
142
+ property({ reflect: true, type: Number })
143
+ ], Cre8LoadingSpinner.prototype, "progress", void 0);
144
+ __decorate([
145
+ property()
146
+ ], Cre8LoadingSpinner.prototype, "size", void 0);
147
+ if (customElements.get('cre8-loading-spinner') === undefined) {
148
+ customElements.define('cre8-loading-spinner', Cre8LoadingSpinner);
149
+ }
150
+ export default Cre8LoadingSpinner;
151
+ //# sourceMappingURL=loading-spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading-spinner.js","sourceRoot":"","sources":["../../../components/loading-spinner/loading-spinner.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,GAAI,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAqDjD;QACI,KAAK,EAAE,CAAC;QAjBZ;;aAEK;QAED,aAAQ,GAAG,CAAC,CAAC;QAEjB;;;;WAIG;QAEC,SAAI,GAAuB,OAAO,CAAC;QAMnC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,gBAAgB,QAAQ,EAAE,CAAC;IAC9C,CAAC;IAEO,wBAAwB;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QACvG,MAAM,UAAU,GAAG,CAAC,GAAG,SAAS,GAAG,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC;QAEhF,OAAO,IAAI,CAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;YAChC,CAAC,CAAC,IAAI,CAAA;;kEAEkD,UAAU;;SAEnE;YACC,CAAC,CAAC,IAAI,CAAA;gEACgD,UAAU;eAC3D,EAAE,CAAC;IAChB,CAAC;IAEO,0BAA0B;QAC9B,OAAO,IAAI,CAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;YAChC,CAAC,CAAC,IAAI,CAAA;;;;SAIP;YACC,CAAC,CAAC,IAAI,CAAA;;eAED,EAAE,CAAC;IAChB,CAAC;IAED,MAAM;QACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,EAAE;YACnE,uBAAuB,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;YAC9C,uBAAuB,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;YAC9C,yBAAyB,EAAE,IAAI,CAAC,OAAO;YACvC,yBAAyB,EAAE,IAAI,CAAC,OAAO;YACvC,yBAAyB,EAAE,IAAI,CAAC,aAAa,KAAK,SAAS;YAC3D,2BAA2B,EAAE,IAAI,CAAC,aAAa,KAAK,WAAW;YAC/D,0BAA0B,EAAE,IAAI,CAAC,aAAa,KAAK,UAAU;YAC7D,6BAA6B,EAAE,IAAI,CAAC,WAAW;YAC/C,+BAA+B,EAAE,CAAC,IAAI,CAAC,WAAW;SACrD,CAAC,CAAC;QACH,OAAO,IAAI,CAAA;;iBAEA,mBAAmB;;2BAET,IAAI,CAAC,OAAO;;;yBAGd,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;;;UAGzD,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,EAAE;;gBAEhF,IAAI,CAAC,OAAO;mBACT,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,uBAAuB;;;YAG7E,IAAI,CAAC,KAAK;;;KAGjB,CAAC;IACJ,CAAC;;AArHQ,yBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AASvB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDACjB;AAMtB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACrB;AAMlB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACrB;AAMlB;IADH,QAAQ,EAAE;yDAC+C;AAOtD;IADH,QAAQ,EAAE;iDACQ;AAMf;IADH,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDACzB;AAQb;IADH,QAAQ,EAAE;gDAC4B;AAuEzC,IAAI,cAAc,CAAC,GAAG,CAAC,sBAAsB,CAAC,KAAK,SAAS,EAAE,CAAC;IAC3D,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AACtE,CAAC;AAQD,eAAe,kBAAkB,CAAC","sourcesContent":["import { html, nothing, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './loading-spinner.styles.js';\n\n/**\n * A loading spinner notifies the user that their request is being processed while the front end is retrieving data\n * or performing slow computations.\n *\n * Providing visibility of a system's status is one of the most important rules of UI design. When the user has to\n * guess or assume that the system is responding to their input, they may send a command such as submit multiple\n * times, while also being anxious that the application is frozen or not working.\n *\n * While it is most ideal to improve system performance such that there is no perceptible delay, in some cases this\n * is not possible. In these cases, the immediate response should be a progress indicator to give a visual indication\n * that their command was received and that the application is working.\n *\n * The length of time for the system response is a good general guideline for which progress indicator to use.\n *\n * ## Determinable vs indeterminate progress\n *\n * A progress meter provides feedback that the system is working and gives the user an indication of how much time\n * they will wait. This indicator should be used when the system response time is longer and determinable. See\n * ProgressMeter component for further examples and accessibility considerations.\n *\n * ## How to Use\n *\n * The loading-spinner component can be used to indicate loading state on the component level all the way up to the\n * page level. There are two loading styles: determinate (loading progress represents percentage of total load time)\n * and indeterminate (a spinning animation that persists while loading continues)\n *\n * 1. Choose determinate or indeterminate. UX best practices leans more towards recommending the indeterminate\n * progress indicator if load time is unknown, while determinate is less user friendly unless the label indicates\n * the percentage loaded as well.\n * 2. Choose a size and use it according to context, guidance should be given by your design or content team.\n * 3. A common label to use is `Loading…`, guidance should be given by your design content team.\n * 4. If you choose to use the determinate loader then you must also control the progress attribute's value which\n * controls the percentage of the circle that shows (values 0-100 accepted);\n * 5. For dark backgrounds, add the `inverse` attribute to the `<cre8-loading-spinner>` tag.\n * 6. For accessibility reasons, always include a label input unless explicitly informed to do otherwise by design or\n * accessibility teams.\n * 7. The lg variant is usually suitable for containers or block level loading placeholders while the sm size is\n * meant for more inline loading states.\n *\n */\nexport class Cre8LoadingSpinner extends Cre8Element {\n static styles = (styles);\n\n /**\n * Mode of the spinner, defaults to indeterminate.\n * If true, renders a standard progress indicator, fills via the progress property from 0% to 100%.\n * If false or undefined, renders indeterminate spinner which animates in a spinning motion until component is\n * destroyed.\n */\n @property({ type: Boolean, reflect: true })\n determinate?: boolean;\n\n /**\n * Inverse property used for dark backgrounds.\n */\n @property({ type: Boolean, reflect: true })\n inverse?: boolean;\n\n /**\n * Neutral property used for secondary neutral loading button.\n */\n @property({ type: Boolean, reflect: true })\n neutral?: boolean;\n\n /**\n * Property that specifies which button variant is using the loading spinner\n */\n @property()\n buttonVariant? : 'primary' | 'secondary' | 'tertiary';\n\n /**\n * Label to show along with progress indicator.\n * This is required to meet accessibility requirements for this component.\n */\n @property()\n label?: string;\n\n /**\n * Progress to display, between 0 and 100. Requires determinate property to be set to true.\n * */\n @property({ reflect: true, type: Number })\n progress = 0;\n\n /**\n * Size of the progress indicator and position of the label, if a label has been defined using the label property.\n * - **large** renders a large progress indicator at 72px in width/height with the label below.\n * - **small** renders a small progress indicator at 24px in width/height with the label to the right.\n */\n @property()\n size?: 'large' | 'small' = 'large';\n\n private labelId: string;\n\n constructor() {\n super();\n const randomId = Math.floor(Math.random() * 900000) + 100000;\n this.labelId = `cre8-spinner-${randomId}`;\n }\n\n private renderDeterminateSpinner() {\n const progress = Math.max(Math.min(100, this.progress === 0 ? (this.progress = 1) : this.progress), 0);\n const dashOffset = 2 * 3.1415926 * 45 - (progress / 100) * (2 * 3.1415926 * 45);\n\n return html` ${this.size === 'small'\n ? html`\n <svg class=\"cre8-c-spinner__icon cre8-c-spinner__icon-small\" aria-hidden=\"true\" viewBox=\"0 0 100 100\">\n <circle cx=\"50%\" cy=\"50%\" r=\"43\" stroke-dashoffset=\"${dashOffset}\"></circle>\n </svg>\n `\n : html` <svg class=\"cre8-c-spinner__icon\" aria-hidden=\"true\" viewBox=\"0 0 100 100\">\n <circle cx=\"50%\" cy=\"50%\" r=\"45\" stroke-dashoffset=\"${dashOffset}\"></circle>\n </svg>`}`;\n }\n\n private renderInDeterminateSpinner() {\n return html` ${this.size === 'small'\n ? html`\n <svg class=\"cre8-c-spinner__icon cre8-c-spinner__icon-small\" aria-hidden=\"true\" viewBox=\"0 0 100 100\">\n <circle cx=\"50%\" cy=\"50%\" r=\"43\"></circle>\n </svg>\n `\n : html` <svg class=\"cre8-c-spinner__icon\" aria-hidden=\"true\" viewBox=\"0 0 100 100\">\n <circle cx=\"50%\" cy=\"50%\" r=\"45\"></circle>\n </svg>`}`;\n }\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-spinner', {\n 'cre8-c-spinner--large': this.size === 'large',\n 'cre8-c-spinner--small': this.size === 'small',\n 'cre8-c-spinner--inverse': this.inverse,\n 'cre8-c-spinner--neutral': this.neutral,\n 'cre8-c-spinner--primary': this.buttonVariant === 'primary',\n 'cre8-c-spinner--secondary': this.buttonVariant === 'secondary',\n 'cre8-c-spinner--tertiary': this.buttonVariant === 'tertiary',\n 'cre8-c-spinner--determinate': this.determinate,\n 'cre8-c-spinner--indeterminate': !this.determinate,\n });\n return html`\n <div\n class=\"${componentClassNames}\"\n role=\"progressbar\"\n aria-labelledby=\"${this.labelId}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow=\"${this.determinate ? this.progress : nothing}\"\n part=\"base\"\n >\n ${this.determinate ? this.renderDeterminateSpinner() : this.renderInDeterminateSpinner()}\n <div\n id=\"${this.labelId}\"\n class=\"${!this.label ? 'cre8-c-spinner__hidden-label' : 'cre8-c-spinner__label'}\"\n part=\"label\"\n >\n ${this.label}\n </div>\n </div>\n `;\n }\n}\nif (customElements.get('cre8-loading-spinner') === undefined) {\n customElements.define('cre8-loading-spinner', Cre8LoadingSpinner);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-loading-spinner': Cre8LoadingSpinner;\n }\n}\n\nexport default Cre8LoadingSpinner;\n"]}
@@ -0,0 +1,4 @@
1
+ import { css } from 'lit';
2
+ const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}@keyframes loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-circle-animation{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}:host{display:inline-block;--spinner-stroke-dasharray: 282.743px;--spinner-large-stroke-width: 10;--spinner-small-stroke-width: 14;--spinner-large-width: 4.5rem;--spinner-small-width: 1.5rem;font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform)}.cre8-c-spinner,.cre8-c-spinner--large{--spinner-height: var(--spinner-large-width);--spinner-width: var(--spinner-large-width);--icon-color: var(--cre8-color-content-brand)}.cre8-c-spinner .cre8-c-spinner__icon,.cre8-c-spinner--large .cre8-c-spinner__icon{display:block}.cre8-c-spinner .cre8-c-spinner__label,.cre8-c-spinner--large .cre8-c-spinner__label{display:block;margin-top:var(--cre8-spacing-8)}.cre8-c-spinner--small{--spinner-height: var(--spinner-small-width);--spinner-width: var(--spinner-small-width);--icon-color: var(--cre8-color-content-brand);display:flex;align-items:center}.cre8-c-spinner--small .cre8-c-spinner__label{display:inline-block;margin-left:var(--cre8-spacing-8);margin-top:0;vertical-align:.35rem}.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-content-brand-knockout);--label-color: var(--cre8-color-content-brand-knockout)}.cre8-c-spinner--secondary.cre8-c-spinner--inverse.cre8-c-spinner--neutral{--icon-color: var(--cre8-color-button-secondary-neutral-inverse-content-active);--label-color: var(--cre8-color-button-secondary-neutral-inverse-content-active)}.cre8-c-spinner--neutral{--icon-color: var(--cre8-color-button-secondary-neutral-content-active)}.cre8-c-spinner--primary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-primary-inverse-content-active)}.cre8-c-spinner--secondary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-secondary-inverse-content-active)}.cre8-c-spinner--tertiary.cre8-c-spinner--inverse{--icon-color: var(--cre8-color-button-tertiary-inverse-content-active)}.cre8-c-spinner__label{color:var(--label-color, var(--cre8-color-content-default))}.cre8-c-spinner__hidden-label{display:none}.cre8-c-spinner__icon{height:var(--spinner-height, 1em);width:var(--spinner-width, 1em)}.cre8-c-spinner__icon circle{fill:rgba(0,0,0,0);stroke:var(--icon-color, inherit);stroke-dasharray:var(--spinner-stroke-dasharray);stroke-linecap:round;stroke-width:var(--spinner-large-stroke-width);transform-origin:50% 50%}.cre8-c-spinner__icon-small circle{stroke-width:var(--spinner-small-stroke-width)}.cre8-c-spinner--indeterminate .cre8-c-spinner__icon{animation:loading 2s linear 0s infinite}.cre8-c-spinner--indeterminate .cre8-c-spinner__icon circle{animation-duration:1.4s;animation-iteration-count:infinite;animation-name:spinner-circle-animation;animation-timing-function:ease-in-out}.cre8-c-spinner--determinate .cre8-c-spinner__icon{overflow:hidden;transform:rotate(-90deg);transform-origin:center center}`;
3
+ export default styles;
4
+ //# sourceMappingURL=loading-spinner.styles.js.map