@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,115 +1,142 @@
1
- import { d as h, f as u, b as g } from "../../icon-D22g8aWB.js";
2
- import { s as f } from "../../Error-aYunUubM.js";
3
- import { css as m, nothing as v, html as e } from "lit";
4
- import { property as n } from "lit/decorators.js";
5
- import { Cre8Element as b } from "../cre8-element.js";
6
- const p = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
7
- <path d="M8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346628 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C15.9978 5.87895 15.1542 3.84542 13.6544 2.34562C12.1546 0.845814 10.121 0.00223986 8 0ZM8 12.9231C7.81743 12.9231 7.63897 12.8689 7.48717 12.7675C7.33537 12.6661 7.21706 12.5219 7.14719 12.3532C7.07732 12.1846 7.05904 11.999 7.09466 11.8199C7.13028 11.6409 7.21819 11.4764 7.34729 11.3473C7.47638 11.2182 7.64086 11.1303 7.81992 11.0947C7.99898 11.059 8.18458 11.0773 8.35325 11.1472C8.52192 11.2171 8.66608 11.3354 8.76751 11.4872C8.86894 11.639 8.92308 11.8174 8.92308 12C8.92308 12.2448 8.82583 12.4796 8.65271 12.6527C8.4796 12.8258 8.24482 12.9231 8 12.9231ZM8.61539 9.17538V9.23077C8.61539 9.39398 8.55055 9.5505 8.43514 9.66591C8.31974 9.78132 8.16321 9.84615 8 9.84615C7.83679 9.84615 7.68027 9.78132 7.56486 9.66591C7.44945 9.5505 7.38462 9.39398 7.38462 9.23077V8.61538C7.38462 8.45217 7.44945 8.29565 7.56486 8.18024C7.68027 8.06483 7.83679 8 8 8C9.01769 8 9.84616 7.30769 9.84616 6.46154C9.84616 5.61538 9.01769 4.92308 8 4.92308C6.98231 4.92308 6.15385 5.61538 6.15385 6.46154V6.76923C6.15385 6.93244 6.08901 7.08896 5.97361 7.20437C5.8582 7.31978 5.70167 7.38461 5.53846 7.38461C5.37525 7.38461 5.21873 7.31978 5.10332 7.20437C4.98791 7.08896 4.92308 6.93244 4.92308 6.76923V6.46154C4.92308 4.93461 6.30308 3.69231 8 3.69231C9.69692 3.69231 11.0769 4.93461 11.0769 6.46154C11.0769 7.79846 10.0185 8.91769 8.61539 9.17538Z"/>
8
- </svg>
9
- `, y = 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}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-inline-alert{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);font-weight:normal;display:inline-flex;align-items:flex-start;gap:0.5rem;padding:1rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-info);border-color:var(--cre8-color-border-info);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);border-radius:var(--cre8-border-radius-default)}.cre8-c-inline-alert--full-width{width:100%}.cre8-c-inline-alert--error{background-color:var(--cre8-color-bg-error);border-color:var(--cre8-color-border-error)}.cre8-c-inline-alert--warning{background-color:var(--cre8-color-bg-warning);border-color:var(--cre8-color-border-warning)}.cre8-c-inline-alert--success{background-color:var(--cre8-color-bg-success);border-color:var(--cre8-color-border-success)}.cre8-c-inline-alert--attention{background-color:var(--cre8-color-bg-attention);border-color:var(--cre8-color-border-attention)}.cre8-c-inline-alert--neutral{background-color:var(--cre8-color-bg-subtle);border-color:var(--cre8-color-border-strong)}.cre8-c-inline-alert--transparent{padding:0;border:none;background-color:rgba(0,0,0,0);gap:0.5rem;border-radius:none}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--error{color:var(--cre8-color-content-error)}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--success{color:var(--cre8-color-content-success)}.cre8-c-inline-alert__icon{position:relative;color:var(--cre8-color-content-info-icon);height:1.5rem;width:1.5rem}.cre8-c-inline-alert--error .cre8-c-inline-alert__icon{color:var(--cre8-color-content-error-icon)}.cre8-c-inline-alert--warning .cre8-c-inline-alert__icon{color:var(--cre8-color-content-warning-icon)}.cre8-c-inline-alert--success .cre8-c-inline-alert__icon{color:var(--cre8-color-content-success-icon)}.cre8-c-inline-alert__icon .cre8-c-inline-alert--help,.cre8-c-inline-alert--info .cre8-c-inline-alert__icon{color:var(--cre8-color-content-info-icon)}.cre8-c-inline-alert--attention .cre8-c-inline-alert__icon{color:var(--cre8-color-content-attention-icon)}.cre8-c-inline-alert--neutral .cre8-c-inline-alert__icon{color:var(--cre8-color-content-default)}.cre8-c-inline-alert--transparent .cre8-c-inline-alert__icon{top:0;padding:0.125rem}`;
10
- var w = Object.defineProperty, a = (l, t, s, x) => {
11
- for (var i = void 0, c = l.length - 1, d; c >= 0; c--)
12
- (d = l[c]) && (i = d(t, s, i) || i);
13
- return i && w(t, s, i), i;
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;
14
6
  };
15
- const o = class o extends b {
16
- constructor() {
17
- super(...arguments), this.variant = "subtle", this.status = "info";
18
- }
19
- /*
20
- * Maps modal icons and modal status variants to what the alt text of the related icon should be see:
21
- *#
22
- * this provides the recommendated alt text of different statuses
23
- */
24
- mapStatusToIconInlineAlert(t) {
25
- switch (t) {
26
- case "error":
27
- return e`<cre8-icon
28
- svg='${f}'
7
+ import svgWarningFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Warning.svg?raw';
8
+ import svgCheckCircle from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Check.svg?raw';
9
+ import svgInfoFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Info.svg?raw';
10
+ import svgErrorFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Error.svg?raw';
11
+ import svgHelpFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Help.svg?raw';
12
+ import { html, nothing, } from 'lit';
13
+ import { property } from 'lit/decorators.js';
14
+ import { Cre8Element } from '../cre8-element';
15
+ import styles from './inline-alert.styles.js';
16
+ import '../icon/icon';
17
+ /**
18
+ * In cases when it is necessary to alert the user but a less strong message that cannot be dismissed is desired,
19
+ * use an in-line contextual alert message as the least "severe" message type.
20
+ * These can be displayed anywhere on the page, but should never cover content.
21
+ * Inline alerts do not include a title or close capability and are considered minimally intrusive user messaging.
22
+ *
23
+ * @slot - The component content
24
+ */
25
+ export class Cre8InlineAlert extends Cre8Element {
26
+ constructor() {
27
+ super(...arguments);
28
+ /**
29
+ * Variant
30
+ * - **subtle** (default) renders an alert message in a padded container with a with a border and background color
31
+ * - **transparent** renders an alert message with no padded container, border, or background color
32
+ */
33
+ this.variant = 'subtle';
34
+ /**
35
+ * Status
36
+ * - **default** renders an inline alert with the brand colors
37
+ * - **error** renders an inline alert with an error state
38
+ * - **warning** renders an inline alert with a warning state
39
+ * - **success** renders an inline alert with a success state
40
+ * - **attention** renders an inline alert with an attention state
41
+ * - **neutral** renders an inline alert with a nuetral state
42
+ */
43
+ this.status = 'info';
44
+ }
45
+ /*
46
+ * Maps modal icons and modal status variants to what the alt text of the related icon should be see:
47
+ *#
48
+ * this provides the recommendated alt text of different statuses
49
+ */
50
+ mapStatusToIconInlineAlert(status) {
51
+ switch (status) {
52
+ case 'error':
53
+ return html `<cre8-icon
54
+ svg='${svgErrorFilled}'
29
55
  aria-label="${this.iconTitle}"
30
56
  aria-hidden="true"
31
57
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
32
- case "success":
33
- return e`<cre8-icon
34
- svg='${g}'
58
+ case 'success':
59
+ return html `<cre8-icon
60
+ svg='${svgCheckCircle}'
35
61
  aria-label="${this.iconTitle}"
36
62
  aria-hidden="true"
37
63
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
38
- case "warning":
39
- return e`<cre8-icon
40
- svg='${u}'
64
+ case 'warning':
65
+ return html `<cre8-icon
66
+ svg='${svgWarningFilled}'
41
67
  aria-label="${this.iconTitle}"
42
68
  aria-hidden="true"
43
69
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
44
- case "help":
45
- return e`<cre8-icon
46
- svg='${p}'
70
+ case 'help':
71
+ return html `<cre8-icon
72
+ svg='${svgHelpFilled}'
47
73
  aria-label="${this.iconTitle}"
48
74
  aria-hidden="true"
49
75
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
50
- case "info":
51
- return e`<cre8-icon
52
- svg='${h}'
76
+ case 'info':
77
+ return html `<cre8-icon
78
+ svg='${svgInfoFilled}'
53
79
  aria-label="${this.iconTitle}"
54
80
  aria-hidden="true"
55
81
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
56
- case "attention":
57
- return e`<cre8-icon
58
- svg='${h}'
82
+ case 'attention':
83
+ return html `<cre8-icon
84
+ svg='${svgInfoFilled}'
59
85
  aria-label="${this.iconTitle}"
60
86
  aria-hidden="true"
61
87
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
62
- case "neutral":
63
- return e`<cre8-icon
64
- svg='${p}'
88
+ case 'neutral':
89
+ return html `<cre8-icon
90
+ svg='${svgHelpFilled}'
65
91
  aria-label="${this.iconTitle}"
66
92
  aria-hidden="true"
67
93
  class="cre8-c-inline-alert__icon"></cre8-icon>`;
68
- default:
69
- return v;
94
+ default:
95
+ return nothing;
96
+ }
70
97
  }
71
- }
72
- render() {
73
- const t = this.componentClassNames("cre8-c-inline-alert", {
74
- "cre8-c-inline-alert--transparent": this.variant === "transparent",
75
- "cre8-c-inline-alert--error": this.status === "error",
76
- "cre8-c-inline-alert--warning": this.status === "warning",
77
- "cre8-c-inline-alert--success": this.status === "success",
78
- "cre8-c-inline-alert--attention": this.status === "attention",
79
- "cre8-c-inline-alert--neutral": this.status === "neutral",
80
- "cre8-c-inline-alert--help": this.status === "help",
81
- "cre8-c-inline-alert--info": this.status === "info",
82
- "cre8-c-inline-alert--full-width": this.fullWidth
83
- });
84
- return e`
85
- <div class="${t}">
86
- ${this.iconName || this.status ? e` ${this.mapStatusToIconInlineAlert(this.status)}` : ""}
98
+ render() {
99
+ const componentClassNames = this.componentClassNames('cre8-c-inline-alert', {
100
+ 'cre8-c-inline-alert--transparent': this.variant === 'transparent',
101
+ 'cre8-c-inline-alert--error': this.status === 'error',
102
+ 'cre8-c-inline-alert--warning': this.status === 'warning',
103
+ 'cre8-c-inline-alert--success': this.status === 'success',
104
+ 'cre8-c-inline-alert--attention': this.status === 'attention',
105
+ 'cre8-c-inline-alert--neutral': this.status === 'neutral',
106
+ 'cre8-c-inline-alert--help': this.status === 'help',
107
+ 'cre8-c-inline-alert--info': this.status === 'info',
108
+ 'cre8-c-inline-alert--full-width': this.fullWidth,
109
+ });
110
+ return html `
111
+ <div class="${componentClassNames}">
112
+ ${this.iconName || this.status
113
+ ? html ` ${this.mapStatusToIconInlineAlert(this.status)}`
114
+ : ''}
87
115
  <div class="cre8-c-inline-alert__body">
88
116
  <slot></slot>
89
117
  </div>
90
118
  </div>
91
119
  `;
92
- }
93
- };
94
- o.styles = [y];
95
- let r = o;
96
- a([
97
- n()
98
- ], r.prototype, "iconName");
99
- a([
100
- n({ type: Boolean, reflect: !0 })
101
- ], r.prototype, "fullWidth");
102
- a([
103
- n()
104
- ], r.prototype, "iconTitle");
105
- a([
106
- n()
107
- ], r.prototype, "variant");
108
- a([
109
- n({ type: String })
110
- ], r.prototype, "status");
111
- customElements.get("cre8-inline-alert") === void 0 && customElements.define("cre8-inline-alert", r);
112
- export {
113
- r as Cre8InlineAlert,
114
- r as default
115
- };
120
+ }
121
+ }
122
+ Cre8InlineAlert.styles = [styles];
123
+ __decorate([
124
+ property()
125
+ ], Cre8InlineAlert.prototype, "iconName", void 0);
126
+ __decorate([
127
+ property({ type: Boolean, reflect: true })
128
+ ], Cre8InlineAlert.prototype, "fullWidth", void 0);
129
+ __decorate([
130
+ property()
131
+ ], Cre8InlineAlert.prototype, "iconTitle", void 0);
132
+ __decorate([
133
+ property()
134
+ ], Cre8InlineAlert.prototype, "variant", void 0);
135
+ __decorate([
136
+ property({ type: String })
137
+ ], Cre8InlineAlert.prototype, "status", void 0);
138
+ if (customElements.get('cre8-inline-alert') === undefined) {
139
+ customElements.define('cre8-inline-alert', Cre8InlineAlert);
140
+ }
141
+ export default Cre8InlineAlert;
142
+ //# sourceMappingURL=inline-alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-alert.js","sourceRoot":"","sources":["../../../components/inline-alert/inline-alert.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,gBAAgB,MAAM,oGAAoG,CAAC;AAClI,OAAO,cAAc,MAAM,kGAAkG,CAAC;AAC9H,OAAO,aAAa,MAAM,iGAAiG,CAAC;AAC5H,OAAO,cAAc,MAAM,kGAAkG,CAAC;AAC9H,OAAO,aAAa,MAAM,iGAAiG,CAAC;AAC5H,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,0BAA0B,CAAC;AAC9C,OAAO,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QAuBI;;;;WAIG;QAEC,YAAO,GAA6B,QAAQ,CAAC;QAEjD;;;;;;;;WAQG;QAEC,WAAM,GAAiF,MAAM,CAAC;IAiFtG,CAAC;IA/EG;;;;MAIE;IACM,0BAA0B,CAAC,MAAc;QAC7C,QAAQ,MAAM,EAAE,CAAC;YACb,KAAK,OAAO;gBACR,OAAO,IAAI,CAAA;uBACJ,cAAc;8BACP,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,SAAS;gBACV,OAAO,IAAI,CAAA;uBACJ,cAAc;8BACP,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,SAAS;gBACV,OAAO,IAAI,CAAA;uBACJ,gBAAgB;8BACT,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,MAAM;gBACP,OAAO,IAAI,CAAA;uBACJ,aAAa;8BACN,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,MAAM;gBACP,OAAO,IAAI,CAAA;uBACJ,aAAa;8BACN,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,WAAW;gBACZ,OAAO,IAAI,CAAA;uBACJ,aAAa;8BACN,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD,KAAK,SAAS;gBACV,OAAO,IAAI,CAAA;uBACJ,aAAa;8BACN,IAAI,CAAC,SAAS;;+DAEmB,CAAC;YACpD;gBACI,OAAO,OAAO,CAAC;QACvB,CAAC;IACL,CAAC;IAED,MAAM;QACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,EAAE;YACxE,kCAAkC,EAAE,IAAI,CAAC,OAAO,KAAK,aAAa;YAClE,4BAA4B,EAAE,IAAI,CAAC,MAAM,KAAK,OAAO;YACrD,8BAA8B,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS;YACzD,8BAA8B,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS;YACzD,gCAAgC,EAAE,IAAI,CAAC,MAAM,KAAK,WAAW;YAC7D,8BAA8B,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS;YACzD,2BAA2B,EAAE,IAAI,CAAC,MAAM,KAAK,MAAM;YACnD,2BAA2B,EAAE,IAAI,CAAC,MAAM,KAAK,MAAM;YACnD,iCAAiC,EAAE,IAAI,CAAC,SAAS;SACpD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;sBACG,mBAAmB;cAC3B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM;YAClC,CAAC,CAAC,IAAI,CAAA,IAAI,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACxD,CAAC,CAAC,EACV;;;;;SAKS,CAAC;IACN,CAAC;;AAxHM,sBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAOrB;IADH,QAAQ,EAAE;iDACW;AAOlB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACnB;AAMpB;IADH,QAAQ,EAAE;kDACY;AAQnB;IADH,QAAQ,EAAE;gDACsC;AAY7C;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACuE;AAmFtG,IAAI,cAAc,CAAC,GAAG,CAAC,mBAAmB,CAAC,KAAK,SAAS,EAAE,CAAC;IACxD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAChE,CAAC;AAQD,eAAe,eAAe,CAAC","sourcesContent":["import svgWarningFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Warning.svg?raw';\nimport svgCheckCircle from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Check.svg?raw';\nimport svgInfoFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Info.svg?raw';\nimport svgErrorFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Error.svg?raw';\nimport svgHelpFilled from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Help.svg?raw';\nimport { html, nothing, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './inline-alert.styles.js';\nimport '../icon/icon';\n\n/**\n * In cases when it is necessary to alert the user but a less strong message that cannot be dismissed is desired,\n * use an in-line contextual alert message as the least \"severe\" message type.\n * These can be displayed anywhere on the page, but should never cover content.\n * Inline alerts do not include a title or close capability and are considered minimally intrusive user messaging.\n *\n * @slot - The component content\n */\nexport class Cre8InlineAlert extends Cre8Element {\n static styles = [styles];\n\n /**\n * DEPRECATED: Icon name used for the icon before to the field note\n * @deprecated\n */\n @property()\n iconName?: string;\n\n /**\n * Full width Inline Alert\n * @attr {boolean}\n */\n @property({ type: Boolean, reflect: true })\n fullWidth?: boolean;\n\n /**\n * Icon title used for the icon alt text\n */\n @property()\n iconTitle?: string;\n\n /**\n * Variant\n * - **subtle** (default) renders an alert message in a padded container with a with a border and background color\n * - **transparent** renders an alert message with no padded container, border, or background color\n */\n @property()\n variant: 'transparent' | 'subtle' = 'subtle';\n\n /**\n * Status\n * - **default** renders an inline alert with the brand colors\n * - **error** renders an inline alert with an error state\n * - **warning** renders an inline alert with a warning state\n * - **success** renders an inline alert with a success state\n * - **attention** renders an inline alert with an attention state\n * - **neutral** renders an inline alert with a nuetral state\n */\n @property({ type: String })\n status?: 'error' | 'warning' | 'success' | 'attention' | 'neutral' | 'help' | 'info' = 'info';\n\n /*\n * Maps modal icons and modal status variants to what the alt text of the related icon should be see:\n *#\n * this provides the recommendated alt text of different statuses\n */\n private mapStatusToIconInlineAlert(status: string) {\n switch (status) {\n case 'error':\n return html`<cre8-icon \n svg='${svgErrorFilled}' \n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'success':\n return html`<cre8-icon \n svg='${svgCheckCircle}' \n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'warning':\n return html`<cre8-icon \n svg='${svgWarningFilled}'\n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'help':\n return html`<cre8-icon \n svg='${svgHelpFilled}'\n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'info':\n return html`<cre8-icon \n svg='${svgInfoFilled}'\n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'attention':\n return html`<cre8-icon \n svg='${svgInfoFilled}'\n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n case 'neutral':\n return html`<cre8-icon \n svg='${svgHelpFilled}'\n aria-label=\"${this.iconTitle}\"\n aria-hidden=\"true\"\n class=\"cre8-c-inline-alert__icon\"></cre8-icon>`;\n default:\n return nothing;\n }\n }\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-inline-alert', {\n 'cre8-c-inline-alert--transparent': this.variant === 'transparent',\n 'cre8-c-inline-alert--error': this.status === 'error',\n 'cre8-c-inline-alert--warning': this.status === 'warning',\n 'cre8-c-inline-alert--success': this.status === 'success',\n 'cre8-c-inline-alert--attention': this.status === 'attention',\n 'cre8-c-inline-alert--neutral': this.status === 'neutral',\n 'cre8-c-inline-alert--help': this.status === 'help',\n 'cre8-c-inline-alert--info': this.status === 'info',\n 'cre8-c-inline-alert--full-width': this.fullWidth,\n });\n\n return html`\n <div class=\"${componentClassNames}\">\n ${this.iconName || this.status\n ? html` ${this.mapStatusToIconInlineAlert(this.status)}`\n : ''\n}\n <div class=\"cre8-c-inline-alert__body\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-inline-alert') === undefined) {\n customElements.define('cre8-inline-alert', Cre8InlineAlert);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-inline-alert': Cre8InlineAlert;\n }\n}\n\nexport default Cre8InlineAlert;\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}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-inline-alert{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);font-weight:normal;display:inline-flex;align-items:flex-start;gap:0.5rem;padding:1rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-info);border-color:var(--cre8-color-border-info);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);border-radius:var(--cre8-border-radius-default)}.cre8-c-inline-alert--full-width{width:100%}.cre8-c-inline-alert--error{background-color:var(--cre8-color-bg-error);border-color:var(--cre8-color-border-error)}.cre8-c-inline-alert--warning{background-color:var(--cre8-color-bg-warning);border-color:var(--cre8-color-border-warning)}.cre8-c-inline-alert--success{background-color:var(--cre8-color-bg-success);border-color:var(--cre8-color-border-success)}.cre8-c-inline-alert--attention{background-color:var(--cre8-color-bg-attention);border-color:var(--cre8-color-border-attention)}.cre8-c-inline-alert--neutral{background-color:var(--cre8-color-bg-subtle);border-color:var(--cre8-color-border-strong)}.cre8-c-inline-alert--transparent{padding:0;border:none;background-color:rgba(0,0,0,0);gap:0.5rem;border-radius:none}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--error{color:var(--cre8-color-content-error)}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--success{color:var(--cre8-color-content-success)}.cre8-c-inline-alert__icon{position:relative;color:var(--cre8-color-content-info-icon);height:1.5rem;width:1.5rem}.cre8-c-inline-alert--error .cre8-c-inline-alert__icon{color:var(--cre8-color-content-error-icon)}.cre8-c-inline-alert--warning .cre8-c-inline-alert__icon{color:var(--cre8-color-content-warning-icon)}.cre8-c-inline-alert--success .cre8-c-inline-alert__icon{color:var(--cre8-color-content-success-icon)}.cre8-c-inline-alert__icon .cre8-c-inline-alert--help,.cre8-c-inline-alert--info .cre8-c-inline-alert__icon{color:var(--cre8-color-content-info-icon)}.cre8-c-inline-alert--attention .cre8-c-inline-alert__icon{color:var(--cre8-color-content-attention-icon)}.cre8-c-inline-alert--neutral .cre8-c-inline-alert__icon{color:var(--cre8-color-content-default)}.cre8-c-inline-alert--transparent .cre8-c-inline-alert__icon{top:0;padding:0.125rem}`;
3
+ export default styles;
4
+ //# sourceMappingURL=inline-alert.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-alert.styles.js","sourceRoot":"","sources":["../../../components/inline-alert/inline-alert.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,20IAA20I,CAAC;AAC91I,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}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-inline-alert{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);font-weight:normal;display:inline-flex;align-items:flex-start;gap:0.5rem;padding:1rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-info);border-color:var(--cre8-color-border-info);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);border-radius:var(--cre8-border-radius-default)}.cre8-c-inline-alert--full-width{width:100%}.cre8-c-inline-alert--error{background-color:var(--cre8-color-bg-error);border-color:var(--cre8-color-border-error)}.cre8-c-inline-alert--warning{background-color:var(--cre8-color-bg-warning);border-color:var(--cre8-color-border-warning)}.cre8-c-inline-alert--success{background-color:var(--cre8-color-bg-success);border-color:var(--cre8-color-border-success)}.cre8-c-inline-alert--attention{background-color:var(--cre8-color-bg-attention);border-color:var(--cre8-color-border-attention)}.cre8-c-inline-alert--neutral{background-color:var(--cre8-color-bg-subtle);border-color:var(--cre8-color-border-strong)}.cre8-c-inline-alert--transparent{padding:0;border:none;background-color:rgba(0,0,0,0);gap:0.5rem;border-radius:none}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--error{color:var(--cre8-color-content-error)}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--success{color:var(--cre8-color-content-success)}.cre8-c-inline-alert__icon{position:relative;color:var(--cre8-color-content-info-icon);height:1.5rem;width:1.5rem}.cre8-c-inline-alert--error .cre8-c-inline-alert__icon{color:var(--cre8-color-content-error-icon)}.cre8-c-inline-alert--warning .cre8-c-inline-alert__icon{color:var(--cre8-color-content-warning-icon)}.cre8-c-inline-alert--success .cre8-c-inline-alert__icon{color:var(--cre8-color-content-success-icon)}.cre8-c-inline-alert__icon .cre8-c-inline-alert--help,.cre8-c-inline-alert--info .cre8-c-inline-alert__icon{color:var(--cre8-color-content-info-icon)}.cre8-c-inline-alert--attention .cre8-c-inline-alert__icon{color:var(--cre8-color-content-attention-icon)}.cre8-c-inline-alert--neutral .cre8-c-inline-alert__icon{color:var(--cre8-color-content-default)}.cre8-c-inline-alert--transparent .cre8-c-inline-alert__icon{top:0;padding:0.125rem}`;\nexport default styles;\n"]}
@@ -1,31 +1,34 @@
1
- import { css as m, html as n } from "lit";
2
- import { property as o } from "lit/decorators.js";
3
- import { Cre8Element as p } 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-layout{display:grid;flex:1;gap:1rem;grid-template-columns:minmax(0, 1fr)}@media all and (min-width: 960px){.cre8-c-layout{gap:2rem;grid-template-columns:minmax(0, 1fr) calc(var(--cre8-sidebar-width, 40%) - (0.5rem))}}@media all and (min-width: 960px){.cre8-c-layout--left-sidebar{grid-template-columns:calc(var(--cre8-sidebar-width, 40%) - (0.5rem)) minmax(0, 1fr)}}`;
5
- var c = Object.defineProperty, f = (s, t, d, x) => {
6
- for (var e = void 0, i = s.length - 1, l; i >= 0; i--)
7
- (l = s[i]) && (e = l(t, d, e) || e);
8
- return e && c(t, 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 a = class a extends p {
11
- render() {
12
- const t = this.componentClassNames("cre8-c-layout", {
13
- "cre8-c-layout--left-sidebar": this.variant === "left-sidebar"
14
- });
15
- return n`
16
- <div class="${t}">
7
+ import { html, } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { Cre8Element } from '../cre8-element';
10
+ import styles from './layout.styles.js';
11
+ /**
12
+ * @slot - The layout content
13
+ */
14
+ export class Cre8Layout extends Cre8Element {
15
+ render() {
16
+ const componentClassName = this.componentClassNames('cre8-c-layout', {
17
+ 'cre8-c-layout--left-sidebar': this.variant === 'left-sidebar',
18
+ });
19
+ return html `
20
+ <div class="${componentClassName}">
17
21
  <slot></slot>
18
22
  </div>
19
23
  `;
20
- }
21
- };
22
- a.styles = [h];
23
- let r = a;
24
- f([
25
- o()
26
- ], r.prototype, "variant");
27
- customElements.get("cre8-layout") === void 0 && customElements.define("cre8-layout", r);
28
- export {
29
- r as Cre8Layout,
30
- r as default
31
- };
24
+ }
25
+ }
26
+ Cre8Layout.styles = [styles];
27
+ __decorate([
28
+ property()
29
+ ], Cre8Layout.prototype, "variant", void 0);
30
+ if (customElements.get('cre8-layout') === undefined) {
31
+ customElements.define('cre8-layout', Cre8Layout);
32
+ }
33
+ export default Cre8Layout;
34
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../components/layout/layout.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,oBAAoB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IAezC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE;YACjE,6BAA6B,EAAE,IAAI,CAAC,OAAO,KAAK,cAAc;SACjE,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACG,kBAAkB;;;KAGjC,CAAC;IACJ,CAAC;;AAxBQ,iBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAYvB;IADH,QAAQ,EAAE;2CACkB;AAe/B,IAAI,cAAc,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,SAAS,EAAE,CAAC;IAClD,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC;AAQD,eAAe,UAAU,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './layout.styles.js';\n\n/**\n * @slot - The layout content\n */\nexport class Cre8Layout extends Cre8Element {\n static styles = [styles];\n\n /**\n * Style variants\n * <cre8-text-passage size=\"sm\">\n * <ul>\n * <li>Default is a right sidebar</li>\n * <li>**left-sidebar** formats the first `layout-section` component as a left sidebar</li>\n * </ul>\n * </cre8-text-passage>\n */\n @property()\n variant?: 'left-sidebar';\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-layout', {\n 'cre8-c-layout--left-sidebar': this.variant === 'left-sidebar',\n });\n\n return html`\n <div class=\"${componentClassName}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-layout') === undefined) {\n customElements.define('cre8-layout', Cre8Layout);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-layout': Cre8Layout;\n }\n}\n\nexport default Cre8Layout;\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-layout{display:grid;flex:1;gap:1rem;grid-template-columns:minmax(0, 1fr)}@media all and (min-width: 960px){.cre8-c-layout{gap:2rem;grid-template-columns:minmax(0, 1fr) calc(var(--cre8-sidebar-width, 40%) - (0.5rem))}}@media all and (min-width: 960px){.cre8-c-layout--left-sidebar{grid-template-columns:calc(var(--cre8-sidebar-width, 40%) - (0.5rem)) minmax(0, 1fr)}}`;
3
+ export default styles;
4
+ //# sourceMappingURL=layout.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.styles.js","sourceRoot":"","sources":["../../../components/layout/layout.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,goEAAgoE,CAAC;AACnpE,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-layout{display:grid;flex:1;gap:1rem;grid-template-columns:minmax(0, 1fr)}@media all and (min-width: 960px){.cre8-c-layout{gap:2rem;grid-template-columns:minmax(0, 1fr) calc(var(--cre8-sidebar-width, 40%) - (0.5rem))}}@media all and (min-width: 960px){.cre8-c-layout--left-sidebar{grid-template-columns:calc(var(--cre8-sidebar-width, 40%) - (0.5rem)) minmax(0, 1fr)}}`;\nexport default styles;\n"]}
@@ -1,31 +1,34 @@
1
- import { css as n, html as o } from "lit";
2
- import { property as h } from "lit/decorators.js";
3
- import { Cre8Element as m } from "../cre8-element.js";
4
- const p = n`*,::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-l-layout-container{width:100%;max-width:var(--cre8-l-max-width);padding-right:1rem;padding-left:1rem;margin:0 auto}.cre8-l-layout-container--full-height{display:flex;flex-direction:column;flex:1;height:100%}`;
5
- var c = Object.defineProperty, f = (s, t, l, x) => {
6
- for (var e = void 0, i = s.length - 1, d; i >= 0; i--)
7
- (d = s[i]) && (e = d(t, l, e) || e);
8
- return e && c(t, l, 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 a = class a extends m {
11
- render() {
12
- const t = this.componentClassNames("cre8-l-layout-container", {
13
- "cre8-l-layout-container--full-height": this.fullHeight === !0
14
- });
15
- return o`
16
- <div class="${t}">
7
+ import { html, } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { Cre8Element } from '../cre8-element';
10
+ import styles from './layout-container.styles.js';
11
+ /**
12
+ * @slot - The contents of the layout container
13
+ */
14
+ export class Cre8LayoutContainer extends Cre8Element {
15
+ render() {
16
+ const componentClassName = this.componentClassNames('cre8-l-layout-container', {
17
+ 'cre8-l-layout-container--full-height': this.fullHeight === true,
18
+ });
19
+ return html `
20
+ <div class="${componentClassName}">
17
21
  <slot></slot>
18
22
  </div>
19
23
  `;
20
- }
21
- };
22
- a.styles = [p];
23
- let r = a;
24
- f([
25
- h({ type: Boolean, reflect: !0 })
26
- ], r.prototype, "fullHeight");
27
- customElements.get("cre8-layout-container") === void 0 && customElements.define("cre8-layout-container", r);
28
- export {
29
- r as Cre8LayoutContainer,
30
- r as default
31
- };
24
+ }
25
+ }
26
+ Cre8LayoutContainer.styles = [styles];
27
+ __decorate([
28
+ property({ type: Boolean, reflect: true })
29
+ ], Cre8LayoutContainer.prototype, "fullHeight", void 0);
30
+ if (customElements.get('cre8-layout-container') === undefined) {
31
+ customElements.define('cre8-layout-container', Cre8LayoutContainer);
32
+ }
33
+ export default Cre8LayoutContainer;
34
+ //# sourceMappingURL=layout-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-container.js","sourceRoot":"","sources":["../../../components/layout-container/layout-container.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,8BAA8B,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAUlD,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,yBAAyB,EAAE;YAC3E,sCAAsC,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;SACnE,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACG,kBAAkB;;;KAGjC,CAAC;IACJ,CAAC;;AAnBQ,0BAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAOvB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAClB;AAe3B,IAAI,cAAc,CAAC,GAAG,CAAC,uBAAuB,CAAC,KAAK,SAAS,EAAE,CAAC;IAC5D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;AACxE,CAAC;AAQD,eAAe,mBAAmB,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './layout-container.styles.js';\n\n/**\n * @slot - The contents of the layout container\n */\nexport class Cre8LayoutContainer extends Cre8Element {\n static styles = [styles];\n\n /**\n * Full height variant\n * 1) Sets the height to 100%\n */\n @property({ type: Boolean, reflect: true })\n fullHeight?: boolean;\n\n render() {\n const componentClassName = this.componentClassNames('cre8-l-layout-container', {\n 'cre8-l-layout-container--full-height': this.fullHeight === true,\n });\n\n return html`\n <div class=\"${componentClassName}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-layout-container') === undefined) {\n customElements.define('cre8-layout-container', Cre8LayoutContainer);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-layout-container': Cre8LayoutContainer;\n }\n}\n\nexport default Cre8LayoutContainer;\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-l-layout-container{width:100%;max-width:var(--cre8-l-max-width);padding-right:1rem;padding-left:1rem;margin:0 auto}.cre8-l-layout-container--full-height{display:flex;flex-direction:column;flex:1;height:100%}`;
3
+ export default styles;
4
+ //# sourceMappingURL=layout-container.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-container.styles.js","sourceRoot":"","sources":["../../../components/layout-container/layout-container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,+9DAA+9D,CAAC;AACl/D,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-l-layout-container{width:100%;max-width:var(--cre8-l-max-width);padding-right:1rem;padding-left:1rem;margin:0 auto}.cre8-l-layout-container--full-height{display:flex;flex-direction:column;flex:1;height:100%}`;\nexport default styles;\n"]}
@@ -1,37 +1,45 @@
1
- import { css as h, html as p } from "lit";
2
- import { property as l } from "lit/decorators.js";
3
- import { Cre8Element as m } from "../cre8-element.js";
4
- const c = h`*,::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-layout-section{width:100%;height:100%}`;
5
- var f = Object.defineProperty, n = (a, r, d, x) => {
6
- for (var e = void 0, i = a.length - 1, o; i >= 0; i--)
7
- (o = a[i]) && (e = o(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 m {
11
- constructor() {
12
- super(...arguments), this.top = "1rem";
13
- }
14
- render() {
15
- const r = this.componentClassNames("cre8-c-layout-section", {
16
- "cre8-c-layout-section--sticky": this.behavior === "sticky"
17
- });
18
- return p`
19
- <div class="${r}" style=${`top: ${this.top}`}>
7
+ import { html, } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { Cre8Element } from '../cre8-element';
10
+ import styles from './layout-section.styles.js';
11
+ /**
12
+ * @slot - The content of the layout section
13
+ */
14
+ export class Cre8LayoutSection extends Cre8Element {
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Top style
19
+ * 1) Used to create dynamic sticky containers that can be adjusted based on the content
20
+ */
21
+ this.top = '1rem';
22
+ }
23
+ render() {
24
+ const componentClassName = this.componentClassNames('cre8-c-layout-section', {
25
+ 'cre8-c-layout-section--sticky': this.behavior === 'sticky',
26
+ });
27
+ return html `
28
+ <div class="${componentClassName}" style=${`top: ${this.top}`}>
20
29
  <slot></slot>
21
30
  </div>
22
31
  `;
23
- }
24
- };
25
- s.styles = [c];
26
- let t = s;
27
- n([
28
- l()
29
- ], t.prototype, "behavior");
30
- n([
31
- l()
32
- ], t.prototype, "top");
33
- customElements.get("cre8-layout-section") === void 0 && customElements.define("cre8-layout-section", t);
34
- export {
35
- t as Cre8LayoutSection,
36
- t as default
37
- };
32
+ }
33
+ }
34
+ Cre8LayoutSection.styles = [styles];
35
+ __decorate([
36
+ property()
37
+ ], Cre8LayoutSection.prototype, "behavior", void 0);
38
+ __decorate([
39
+ property()
40
+ ], Cre8LayoutSection.prototype, "top", void 0);
41
+ if (customElements.get('cre8-layout-section') === undefined) {
42
+ customElements.define('cre8-layout-section', Cre8LayoutSection);
43
+ }
44
+ export default Cre8LayoutSection;
45
+ //# sourceMappingURL=layout-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-section.js","sourceRoot":"","sources":["../../../components/layout-section/layout-section.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,4BAA4B,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QAWE;;;WAGG;QAEC,QAAG,GAAY,MAAM,CAAC;IAa5B,CAAC;IAXC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,uBAAuB,EAAE;YACzE,+BAA+B,EAAE,IAAI,CAAC,QAAQ,KAAK,QAAQ;SAC9D,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACG,kBAAkB,WAAW,QAAQ,IAAI,CAAC,GAAG,EAAE;;;KAG9D,CAAC;IACJ,CAAC;;AA3BQ,wBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAQvB;IADH,QAAQ,EAAE;mDACa;AAOpB;IADH,QAAQ,EAAE;8CACe;AAe5B,IAAI,cAAc,CAAC,GAAG,CAAC,qBAAqB,CAAC,KAAK,SAAS,EAAE,CAAC;IAC1D,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;AACpE,CAAC;AAQD,eAAe,iBAAiB,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './layout-section.styles.js';\n\n/**\n * @slot - The content of the layout section\n */\nexport class Cre8LayoutSection extends Cre8Element {\n static styles = [styles];\n\n /**\n * Behavioral variants\n * - **sticky** allows the layout section to stick to the screen until the\n * section reaches the bottom of the layout or the next layout section.\n */\n @property()\n behavior?: 'sticky';\n\n /**\n * Top style\n * 1) Used to create dynamic sticky containers that can be adjusted based on the content\n */\n @property()\n top?: string = '1rem';\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-layout-section', {\n 'cre8-c-layout-section--sticky': this.behavior === 'sticky',\n });\n\n return html`\n <div class=\"${componentClassName}\" style=${`top: ${this.top}`}>\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-layout-section') === undefined) {\n customElements.define('cre8-layout-section', Cre8LayoutSection);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-layout-section': Cre8LayoutSection;\n }\n}\n\nexport default Cre8LayoutSection;\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-layout-section{width:100%;height:100%}`;
3
+ export default styles;
4
+ //# sourceMappingURL=layout-section.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-section.styles.js","sourceRoot":"","sources":["../../../components/layout-section/layout-section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,wzDAAwzD,CAAC;AAC30D,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-layout-section{width:100%;height:100%}`;\nexport default styles;\n"]}