@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
@@ -0,0 +1,885 @@
1
+ import { css } from "lit";
2
+ const styles = css `
3
+ @import '../../design-tokens/core/scss/theming/component';
4
+
5
+ :host {
6
+ display: inline-flex;
7
+ }
8
+ :host([fullWidth]) {
9
+ display: flex;
10
+
11
+ }
12
+ /**
13
+ * 1) Button or link that has functionality to it
14
+ */
15
+
16
+ /**
17
+ * Primary button
18
+ */
19
+ .cre8-c-button {
20
+ @include cre8-typography-label-default();
21
+ width: var(--cre8-button-width, auto);
22
+ height: var(--cre8-button-height, auto);
23
+ min-width: var(--cre8-button-min-width, auto);
24
+ min-height: var(--cre8-button-min-height, auto);
25
+ justify-content: center;
26
+ text-align: center;
27
+ margin-top: var( --cre8-button-margin-top, 0);
28
+ margin-bottom: var( --cre8-button-margin-bottom, 0);
29
+ margin-left: var( --cre8-button-margin-left, 0);
30
+ margin-right: var( --cre8-button-margin-right, 0);
31
+ display: inline-flex;
32
+ align-items: center;
33
+ border-width: var(--cre8-border-width-button-default);
34
+ box-shadow: var(--cre8-shadow-button);
35
+ padding-top: var(--cre8-button-padding-vertical-medium);
36
+ padding-right: var(--cre8-button-padding-horizontal-medium);
37
+ padding-bottom: var(--cre8-button-padding-vertical-medium);
38
+ padding-left: var(--cre8-button-padding-horizontal-medium);
39
+ margin: 0;
40
+ cursor: pointer;
41
+ border-style: var(--cre8-border-style-default);
42
+ transition: revert;
43
+ transform: revert;
44
+ white-space: nowrap;
45
+ &:hover,
46
+ &:focus,
47
+ &:active,
48
+ &:focus-visible {
49
+ border-style: var(--cre8-border-style-default);
50
+ box-shadow: none;
51
+ transform: revert;
52
+ transition: revert;
53
+ }
54
+ &.cre8-c-button--primary {
55
+ background: var(--cre8-color-button-primary-bg);
56
+ border-width: var(--cre8-border-width-button-default);
57
+ border-color: var(--cre8-color-button-primary-border);
58
+ border-radius: var(--cre8-border-radius-button);
59
+ box-shadow: var(--cre8-shadow-button);
60
+ color: var(--cre8-color-button-primary-content);
61
+ --cre8-icon-fill: var(--cre8-color-button-primary-content);
62
+ &:hover,
63
+ &:focus {
64
+ box-shadow: none;
65
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-hover);
66
+ color: var(--cre8-color-button-primary-content-hover);
67
+ border-color: var(--cre8-color-button-primary-border-hover);
68
+ background: var(--cre8-color-button-primary-bg-hover);
69
+ text-decoration: none;
70
+ &:focus {
71
+ @includefocus();
72
+ }
73
+ }
74
+ &:focus-visible,
75
+ &:active,
76
+ &.cre8-c-button--loading {
77
+ box-shadow: none;
78
+ color: var(--cre8-color-button-primary-content-active);
79
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-active);
80
+ border-color: var(--cre8-color-button-primary-border-active);
81
+ background-color: var(--cre8-color-button-primary-bg-active);
82
+ }
83
+ &:focus-visible{
84
+ @includefocus();
85
+ }
86
+ &.cre8-c-button--loading{
87
+ cursor: not-allowed;
88
+ }
89
+ /**
90
+ * Disabled primary and secondary button
91
+ */
92
+ &:disabled {
93
+ box-shadow: none;
94
+ background-color: var(--cre8-color-button-primary-bg-disabled);
95
+ border-color: var(--cre8-color-button-primary-border-disabled);
96
+ color: var(--cre8-color-button-primary-content-disabled);
97
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
98
+ cursor: not-allowed;
99
+ outline: none;
100
+ &:hover,
101
+ &:focus,
102
+ &:active,
103
+ &:focus-visible {
104
+ outline: none;
105
+ background-color: var(--cre8-color-button-primary-bg-disabled);
106
+ border-color: var(--cre8-color-button-primary-border-disabled);
107
+ color: var(--cre8-color-button-primary-content-disabled);
108
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
109
+ }
110
+ }
111
+ }
112
+
113
+ /**
114
+ * Primary button inverse
115
+ */
116
+ &.cre8-c-button--primary.cre8-c-button--inverse {
117
+ background: var(--cre8-color-button-primary-inverse-bg);
118
+ border-width: var(--cre8-border-width-button-default);
119
+ border-color: var(--cre8-color-button-primary-inverse-border);
120
+ border-radius: var(--cre8-border-radius-button);
121
+ box-shadow: var(--cre8-shadow-button);
122
+ color: var(--cre8-color-button-primary-inverse-content);
123
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content);
124
+ &:hover,
125
+ &:focus {
126
+ box-shadow: none;
127
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-hover);
128
+ color: var(--cre8-color-button-primary-inverse-content-hover);
129
+ border-color: var(--cre8-color-button-primary-inverse-border-hover);
130
+ background: var(--cre8-color-button-primary-inverse-bg-hover);
131
+ text-decoration: none;
132
+ &:focus {
133
+ @includefocus();
134
+ }
135
+ }
136
+ &:focus-visible,
137
+ &:active,
138
+ &.cre8-c-button--loading {
139
+ box-shadow: none;
140
+ color: var(--cre8-color-button-primary-inverse-content-active);
141
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-active);
142
+ border-color: var(--cre8-color-button-primary-inverse-border-active);
143
+ background-color: var(--cre8-color-button-primary-inverse-bg-active);
144
+ }
145
+ &:focus-visible{
146
+ @includefocus();
147
+ }
148
+ &.cre8-c-button--loading{
149
+ cursor: not-allowed;
150
+ }
151
+
152
+ &:disabled {
153
+ box-shadow: none;
154
+ background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
155
+ border-color: var(--cre8-color-button-primary-inverse-border-disabled);
156
+ color: var(--cre8-color-button-primary-inverse-content-disabled);
157
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
158
+ cursor: not-allowed;
159
+ outline: none;
160
+ &:hover,
161
+ &:focus,
162
+ &:active,
163
+ &:focus-visible {
164
+ outline: none;
165
+ background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
166
+ border-color: var(--cre8-color-button-primary-inverse-border-disabled);
167
+ color: var(--cre8-color-button-primary-inverse-content-disabled);
168
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
169
+ }
170
+ }
171
+ }
172
+
173
+ /**
174
+ * Secondary button
175
+ * The icon button shares the styles of the standard secondary button
176
+ */
177
+ &.cre8-c-button--secondary {
178
+ background-color: var(--cre8-color-button-secondary-bg);
179
+ border-color: var(--cre8-color-button-secondary-border);
180
+ color: var(--cre8-color-button-secondary-content);
181
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content);
182
+ border-radius: var(--cre8-border-radius-button);
183
+ border-width: var(--cre8-border-width-button-default);
184
+
185
+ &:hover,
186
+ &:focus {
187
+ background-color: var(--cre8-color-button-secondary-bg-hover);
188
+ border-color: var(--cre8-color-button-secondary-border-hover);
189
+ color: var(--cre8-color-button-secondary-content-hover);
190
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
191
+ &:focus {
192
+ @includefocus();
193
+ }
194
+ }
195
+ &:focus-visible,
196
+ &:active,
197
+ &.cre8-c-button--loading {
198
+ transition: none;
199
+ transform: none;
200
+ background-color: var(--cre8-color-button-secondary-bg-active);
201
+ border-color: var(--cre8-color-button-secondary-border-active);
202
+ color: var(--cre8-color-button-secondary-content-active);
203
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
204
+ }
205
+ &:focus-visible {
206
+ @includefocus();
207
+ }
208
+ &.cre8-c-button--loading {
209
+ cursor: not-allowed;
210
+ }
211
+
212
+ &:disabled {
213
+ box-shadow: none;
214
+ background-color: var(--cre8-color-button-secondary-bg-disabled);
215
+ border-color: var(--cre8-color-button-secondary-border-disabled);
216
+ color: var(--cre8-color-button-secondary-content-disabled);
217
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
218
+ outline: none;
219
+ border-radius: var(--cre8-border-radius-button);
220
+ border-width: var(--cre8-border-width-button-default);
221
+ cursor: not-allowed;
222
+ &:hover,
223
+ &:focus,
224
+ &:active,
225
+ &:focus-visible {
226
+ outline: none;
227
+ background-color: var(--cre8-color-button-secondary-bg-disabled);
228
+ border-color: var(--cre8-color-button-secondary-border-disabled);
229
+ color: var(--cre8-color-button-secondary-content-disabled);
230
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
231
+ }
232
+ }
233
+ }
234
+
235
+ /**
236
+ * Secondary button neutral
237
+ */
238
+ &.cre8-c-button--secondary.cre8-c-button--neutral {
239
+ background-color: var(--cre8-color-button-secondary-neutral-bg);
240
+ border-color: var(--cre8-color-button-secondary-neutral-border);
241
+ color: var(--cre8-color-button-secondary-neutral-content);
242
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content);
243
+ border-radius: var(--cre8-border-radius-button);
244
+ border-width: var(--cre8-border-width-button-default);
245
+
246
+ &:hover,
247
+ &:focus {
248
+ background-color: var(--cre8-color-button-secondary-neutral-bg-hover);
249
+ border-color: var(--cre8-color-button-secondary-neutral-border-hover);
250
+ color: var(--cre8-color-button-secondary-neutral-content-hover);
251
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-hover);
252
+ &:focus {
253
+ @includefocus();
254
+ }
255
+ }
256
+ &:focus-visible,
257
+ &:active,
258
+ &.cre8-c-button--loading {
259
+ transition: none;
260
+ transform: none;
261
+ background-color: var(--cre8-color-button-secondary-neutral-bg-active);
262
+ border-color: var(--cre8-color-button-secondary-neutral-border-active);
263
+ color: var(--cre8-color-button-secondary-neutral-content-active);
264
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-active);
265
+ }
266
+ &:focus-visible {
267
+ @includefocus();
268
+ }
269
+
270
+ &:disabled {
271
+ box-shadow: none;
272
+ background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
273
+ border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
274
+ color: var(--cre8-color-button-secondary-neutral-content-disabled);
275
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
276
+ outline: none;
277
+ border-radius: var(--cre8-border-radius-button);
278
+ border-width: var(--cre8-border-width-button-default);
279
+ cursor: not-allowed;
280
+ &:hover,
281
+ &:focus,
282
+ &:active,
283
+ &:focus-visible {
284
+ outline: none;
285
+ background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
286
+ border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
287
+ color: var(--cre8-color-button-secondary-neutral-content-disabled);
288
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
289
+ }
290
+ }
291
+ }
292
+
293
+ /**
294
+ * Secondary button inverse
295
+ */
296
+ &.cre8-c-button--secondary.cre8-c-button--inverse {
297
+ background-color: var(--cre8-color-button-secondary-inverse-bg);
298
+ border-color: var(--cre8-color-button-secondary-inverse-border);
299
+ color: var(--cre8-color-button-secondary-inverse-content);
300
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content);
301
+ border-radius: var(--cre8-border-radius-button);
302
+ border-width: var(--cre8-border-width-button-default);
303
+
304
+ &:hover,
305
+ &:focus {
306
+ background-color: var(--cre8-color-button-secondary-inverse-bg-hover);
307
+ border-color: var(--cre8-color-button-secondary-inverse-border-hover);
308
+ color: var(--cre8-color-button-secondary-inverse-content-hover);
309
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-hover);
310
+ &:focus {
311
+ @includefocus();
312
+ }
313
+ }
314
+ &:focus-visible,
315
+ &:active,
316
+ &.cre8-c-button--loading {
317
+ transition: none;
318
+ transform: none;
319
+ background-color: var(--cre8-color-button-secondary-inverse-bg-active);
320
+ border-color: var(--cre8-color-button-secondary-inverse-border-active);
321
+ color: var(--cre8-color-button-secondary-inverse-content-active);
322
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-active);
323
+ }
324
+ &:focus-visible {
325
+ @includefocus();
326
+ }
327
+
328
+ &:disabled {
329
+ box-shadow: none;
330
+ background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
331
+ border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
332
+ color: var(--cre8-color-button-secondary-inverse-content-disabled);
333
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
334
+ outline: none;
335
+ border-radius: var(--cre8-border-radius-button);
336
+ border-width: var(--cre8-border-width-button-default);
337
+ cursor: not-allowed;
338
+ &:hover,
339
+ &:focus,
340
+ &:active,
341
+ &:focus-visible {
342
+ outline: none;
343
+ background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
344
+ border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
345
+ color: var(--cre8-color-button-secondary-inverse-content-disabled);
346
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
347
+ }
348
+ }
349
+ }
350
+
351
+ /**
352
+ * Secondary button neutral inverse
353
+ */
354
+ &.cre8-c-button--secondary.cre8-c-button--neutral.cre8-c-button--inverse {
355
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg);
356
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border);
357
+ color: var(--cre8-color-button-secondary-neutral-inverse-content);
358
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content);
359
+ border-radius: var(--cre8-border-radius-button);
360
+ border-width: var(--cre8-border-width-button-default);
361
+
362
+ &:hover,
363
+ &:focus {
364
+ @includefocus();
365
+ background-color: var(--cre8-color-button-secondary-neutral-bg-active);
366
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
367
+ outline-color: var(--cre8-color-button-secondary-neutral-inverse-outline);
368
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
369
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
370
+ }
371
+
372
+ &:focus-visible,
373
+ &:active,
374
+ &.cre8-c-button--loading {
375
+ transition: none;
376
+ transform: none;
377
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-active);
378
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
379
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
380
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
381
+ }
382
+ &:focus-visible {
383
+ @includefocus();
384
+ }
385
+
386
+ &:disabled {
387
+ box-shadow: none;
388
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
389
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
390
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
391
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
392
+ outline: none;
393
+ border-radius: var(--cre8-border-radius-button);
394
+ border-width: var(--cre8-border-width-button-default);
395
+ cursor: not-allowed;
396
+ &:hover,
397
+ &:focus,
398
+ &:active,
399
+ &:focus-visible {
400
+ outline: none;
401
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
402
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
403
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
404
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
405
+ }
406
+ }
407
+ }
408
+
409
+ /**
410
+ * Tertiary button
411
+ */
412
+ &.cre8-c-button--tertiary {
413
+ border-radius: var(--cre8-border-radius-button);
414
+ background-color: var(--cre8-color-button-tertiary-bg);
415
+ border-width: var(--cre8-border-width-button-default);
416
+ border-color: var(--cre8-color-button-tertiary-border);
417
+ color: var(--cre8-color-button-tertiary-content);
418
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content);
419
+ box-shadow: none;
420
+ &:hover,
421
+ &:focus {
422
+ border-radius: var(--cre8-border-radius-button);
423
+ background-color: var(--cre8-color-button-tertiary-bg-hover);
424
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
425
+ border-color: var(--cre8-color-button-tertiary-border-hover);
426
+ color: var(--cre8-color-button-tertiary-content-hover);
427
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-hover);
428
+ &:focus {
429
+ @includefocusTertiary();
430
+ }
431
+ }
432
+
433
+ &:focus-visible,
434
+ &:active,
435
+ &.cre8-c-button--loading {
436
+ border-radius: var(--cre8-border-radius-button);
437
+ background-color: var(--cre8-color-button-tertiary-bg-active);
438
+ border-color: var(--cre8-color-button-tertiary-border-active);
439
+ border-width: var(--cre8-border-width-button-default);
440
+ color: var(--cre8-color-button-tertiary-content-active);
441
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-active);
442
+ }
443
+ &:focus-visible {
444
+ @includefocusTertiary();
445
+ }
446
+ &.cre8-c-button--loading {
447
+ cursor: not-allowed;
448
+ }
449
+ &:disabled {
450
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
451
+ border-color: transparent;
452
+ color: var(--cre8-color-button-tertiary-content-disabled);
453
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
454
+ outline: none;
455
+ box-shadow: none;
456
+ cursor: not-allowed;
457
+
458
+ &:hover,
459
+ &:focus {
460
+ outline: none;
461
+ box-shadow: none;
462
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
463
+ color: var(--cre8-color-button-tertiary-content-disabled);
464
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
465
+ }
466
+ &:active,
467
+ &:focus-visible {
468
+ outline: none;
469
+ box-shadow: none;
470
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
471
+ color: var(--cre8-color-button-tertiary-content-disabled);
472
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
473
+ }
474
+ }
475
+ }
476
+
477
+ /**
478
+ * Tertiary button neutral
479
+ */
480
+ &.cre8-c-button--tertiary.cre8-c-button--neutral {
481
+ background-color: var(--cre8-color-button-tertiary-neutral-bg);
482
+ border-color: var(--cre8-color-button-tertiary-border);
483
+ color: var(--cre8-color-button-tertiary-neutral-content);
484
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content);
485
+ border-radius: var(--cre8-border-radius-button);
486
+ border-width: var(--cre8-border-width-button-default);
487
+
488
+ &:hover,
489
+ &:focus {
490
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-hover);
491
+ border-color: var(--cre8-color-button-tertiary-neutral-border-hover);
492
+ color: var(--cre8-color-button-tertiary-neutral-content-hover);
493
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-hover);
494
+ outline-color: var(--cre8-color-button-tertiary-neutral-outline);
495
+ }
496
+
497
+ &:focus-visible,
498
+ &:active,
499
+ &.cre8-c-button--loading {
500
+ transition: none;
501
+ transform: none;
502
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-active);
503
+ border-color: var(--cre8-color-button-tertiary-neutral-border-active);
504
+ color: var(--cre8-color-button-tertiary-neutral-content-active);
505
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-active);
506
+ }
507
+
508
+ &:focus-visible {
509
+ @includefocus();
510
+ }
511
+
512
+ &:disabled {
513
+ box-shadow: none;
514
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-disabled);
515
+ border-color: var(--cre8-color-button-tertiary-neutral-border-disabled);
516
+ color: var(--cre8-color-button-tertiary-neutral-content-disabled);
517
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-disabled);
518
+ outline: none;
519
+ border-radius: var(--cre8-border-radius-button);
520
+ border-width: var(--cre8-border-width-button-default);
521
+
522
+ cursor: not-allowed;
523
+ }
524
+ }
525
+
526
+ /**
527
+ * Tertiary button inverse
528
+ */
529
+ &.cre8-c-button--tertiary.cre8-c-button--inverse {
530
+ border-radius: var(--cre8-border-radius-button);
531
+ background-color: var(--cre8-color-button-tertiary-inverse-bg);
532
+ border-width: var(--cre8-border-width-button-default);
533
+ border-color: var(--cre8-color-button-tertiary-inverse-border);
534
+ color: var(--cre8-color-button-tertiary-inverse-content);
535
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content);
536
+ box-shadow: none;
537
+
538
+ &:hover,
539
+ &:focus {
540
+ border-radius: var(--cre8-border-radius-button);
541
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-hover);
542
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
543
+ border-color: var(--cre8-color-button-tertiary-inverse-border-hover);
544
+ color: var(--cre8-color-button-tertiary-inverse-content-hover);
545
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-hover);
546
+ outline-color: var(--cre8-color-button-tertiary-inverse-outline);
547
+ }
548
+
549
+ &:focus-visible,
550
+ &:active,
551
+ &.cre8-c-button--loading {
552
+ border-radius: var(--cre8-border-radius-button);
553
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-active);
554
+ border-color: var(--cre8-color-button-tertiary-inverse-border-active);
555
+ border-width: var(--cre8-border-width-button-default);
556
+ color: var(--cre8-color-button-tertiary-inverse-content-active);
557
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-active);
558
+ outline-color: var(--cre8-color-button-tertiary-inverse-outline);
559
+ }
560
+
561
+ &.cre8-c-button--loading {
562
+ cursor: not-allowed;
563
+ }
564
+ &:disabled {
565
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
566
+ border-color: transparent;
567
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
568
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
569
+ outline: none;
570
+ box-shadow: none;
571
+ cursor: not-allowed;
572
+
573
+ &:hover,
574
+ &:focus {
575
+ outline: none;
576
+ box-shadow: none;
577
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
578
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
579
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
580
+ }
581
+ &:active,
582
+ &:focus-visible {
583
+ outline: none;
584
+ box-shadow: none;
585
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
586
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
587
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
588
+ }
589
+ }
590
+ }
591
+
592
+ /**
593
+ * Tertiary Neutral button inverse
594
+ */
595
+ &.cre8-c-button--tertiary.cre8-c-button--neutral.cre8-c-button--inverse {
596
+ border-radius: var(--cre8-border-radius-button);
597
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg);
598
+ border-width: var(--cre8-border-width-button-default);
599
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content);
600
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content);
601
+ box-shadow: none;
602
+
603
+ &:hover,
604
+ &:focus {
605
+ border-radius: var(--cre8-border-radius-button);
606
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-hover);
607
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
608
+ border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-hover);
609
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
610
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
611
+ outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
612
+ }
613
+
614
+ &:focus-visible,
615
+ &:active,
616
+ &.cre8-c-button--loading {
617
+ border-radius: var(--cre8-border-radius-button);
618
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-active);
619
+ border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-active);
620
+ border-width: var(--cre8-border-width-button-default);
621
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
622
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
623
+ outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
624
+ }
625
+
626
+ &.cre8-c-button--loading {
627
+ cursor: not-allowed;
628
+ }
629
+
630
+ &:disabled {
631
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-disabled);
632
+ border-color: transparent;
633
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
634
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
635
+ outline: none;
636
+ box-shadow: none;
637
+ cursor: not-allowed;
638
+ }
639
+ }
640
+
641
+ &.cre8-c-button.cre8-c-button--secondary.cre8-c-button--split-button-text {
642
+ border-radius: var(--cre8-border-radius-button) var(--cre8-border-radius-none) var(--cre8-border-radius-none) var(--cre8-border-radius-button);
643
+ border-color: var(--cre8-color-button-secondary-border);
644
+ border-width: var(--cre8-border-width-button-default);
645
+ color: var(--cre8-color-button-secondary-content);
646
+ &:active,
647
+ &:focus-visible {
648
+ outline: none;
649
+ }
650
+ &.cre8-c-button--lg {
651
+ padding: var(--cre8-button-padding-vertical-large) var(--cre8-button-padding-horizontal-large);
652
+ }
653
+ &.cre8-c-button--sm {
654
+ padding: var(--cre8-button-padding-vertical-small) var(--cre8-button-padding-horizontal-small);
655
+ }
656
+ }
657
+
658
+ &.cre8-c-button.cre8-c-button--icon-only.cre8-c-button--split-button-caret {
659
+ padding: var(--cre8-button-padding-vertical-medium);
660
+ border-radius: var(--cre8-border-radius-none) var(--cre8-border-radius-button) var(--cre8-border-radius-button) var(--cre8-border-radius-none);
661
+ height: 100%;
662
+ border-left: none !important ;
663
+ border-collapse: collapse;
664
+ background: var(--cre8-color-button-secondary-bg);
665
+ border-color: var(--cre8-color-button-secondary-border);
666
+ border-width: var(--cre8-border-width-button-default);
667
+ color: var(--cre8-color-button-secondary-content);
668
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content);
669
+
670
+ &:hover,
671
+ &:focus {
672
+ background: var(--cre8-color-button-secondary-bg-hover);
673
+ border-color: var(--cre8-color-button-secondary-border-hover);
674
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
675
+ outline: none;
676
+ border-left: none;
677
+ border-collapse: collapse;
678
+ }
679
+ &:active,
680
+ &:focus-visible {
681
+ background: var(--cre8-color-button-secondary-bg-active);
682
+ border-color: var(--cre8-color-button-secondary-border-active);
683
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
684
+ outline: none;
685
+ border-left: none;
686
+ border-collapse: collapse;
687
+ }
688
+ }
689
+ }
690
+
691
+ .cre8-c-button--lg {
692
+ padding: var(--cre8-button-padding-vertical-large);
693
+ }
694
+ .cre8-c-button--sm {
695
+ padding: var(--cre8-button-padding-vertical-small);
696
+ }
697
+
698
+ .cre8-c-button--icon-only {
699
+ padding: var(--cre8-button-padding-vertical-small);
700
+ color: var(--cre8-icon-fill, currentColor);
701
+ }
702
+
703
+ /**
704
+  * Full-width button
705
+  */
706
+ .cre8-c-button--full-width {
707
+ width: 100%;
708
+ display: flex;
709
+ }
710
+
711
+ /**
712
+ * Small button
713
+ */
714
+ .cre8-c-button--sm {
715
+ @include cre8-typography-label-small();
716
+ padding-top: var(--cre8-button-padding-vertical-small);
717
+ padding-right: var(--cre8-button-padding-horizontal-small);
718
+ padding-bottom: var(--cre8-button-padding-vertical-small);
719
+ padding-left: var(--cre8-button-padding-horizontal-small);
720
+ }
721
+
722
+ /**
723
+ * Small button sized for icon only
724
+ */
725
+ .cre8-c-button--sm.cre8-c-button--icon-only {
726
+ @include cre8-typography-label-small();
727
+ padding-top: var(--cre8-button-padding-vertical-small-icon-only);
728
+ padding-right: var(--cre8-button-padding-horizontal-small-icon-only);
729
+ padding-bottom: var(--cre8-button-padding-vertical-small-icon-only);
730
+ padding-left: var(--cre8-button-padding-horizontal-small-icon-only);
731
+ }
732
+
733
+ /**
734
+ * Large button
735
+ */
736
+ .cre8-c-button--lg {
737
+ @include cre8-typography-label-large();
738
+ padding-top: var(--cre8-button-padding-vertical-large);
739
+ padding-right: var(--cre8-button-padding-horizontal-large);
740
+ padding-bottom: var(--cre8-button-padding-vertical-large);
741
+ padding-left: var(--cre8-button-padding-horizontal-large);
742
+ }
743
+
744
+ /**
745
+ * Large button sized for icon only
746
+ */
747
+ .cre8-c-button--lg.cre8-c-button--icon-only {
748
+ @include cre8-typography-label-large();
749
+ padding-top: var(--cre8-button-padding-vertical-large-icon-only);
750
+ padding-right: var(--cre8-button-padding-horizontal-large-icon-only);
751
+ padding-bottom: var(--cre8-button-padding-vertical-large-icon-only);
752
+ padding-left: var(--cre8-button-padding-horizontal-large-icon-only);
753
+ }
754
+
755
+ /**
756
+ * Icon within small button
757
+ */
758
+ .cre8-c-button--sm cre8-icon-legacy {
759
+ --cre8-icon-height: var(--cre8-icon-size-small);
760
+ --cre8-icon-width: var(--cre8-icon-size-small);
761
+ }
762
+
763
+ .cre8-c-button--sm cre8-icon {
764
+ svg {
765
+ height: size(1.75);
766
+ width: size(1.75);
767
+ }
768
+ }
769
+
770
+ /**
771
+ * Icon within large button
772
+ */
773
+ .cre8-c-button--lg cre8-icon-legacy {
774
+ --cre8-icon-height: var(--cre8-icon-size-large);
775
+ --cre8-icon-width: var(--cre8-icon-size-large);
776
+ }
777
+
778
+ .cre8-c-button--lg cre8-icon {
779
+ svg {
780
+ height: size(2.25);
781
+ width: size(2.25);
782
+ }
783
+ }
784
+
785
+ ::slotted(*) {
786
+ margin-right: 0;
787
+ }
788
+ /**
789
+ * Button icon directly before button text
790
+ */
791
+
792
+ cre8-icon-legacy + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
793
+ margin-left: size(1);
794
+ }
795
+
796
+ cre8-icon + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
797
+ margin-left: size(1);
798
+ }
799
+
800
+ /**
801
+ * Button icon directly after button text
802
+ */
803
+ .cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon-legacy {
804
+ margin-left: size(1);
805
+ }
806
+
807
+ .cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon {
808
+ margin-left: size(1);
809
+ }
810
+ /**
811
+ * Button icon only
812
+ */
813
+ .cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon-legacy {
814
+ border-radius: var(--cre8-border-radius-button);
815
+ }
816
+
817
+ .cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon {
818
+ border-radius: var(--cre8-border-radius-button);
819
+ }
820
+
821
+ .cre8-c-button__text.cre8-u-is-vishidden + cre8-icon-legacy {
822
+ margin-left: 0px;
823
+ margin-right: 0px;
824
+ }
825
+
826
+ .cre8-c-button__text.cre8-u-is-vishidden + cre8-icon {
827
+ margin-left: 0px;
828
+ margin-right: 0px;
829
+ }
830
+
831
+ .cre8-c-button__text.cre8-u-is-vishidden {
832
+ @include visuallyHidden();
833
+ }
834
+
835
+ .cre8-c-button--primary.cre8-c-button--loading {
836
+ --cre8-icon-fill: var(--cre8-color-content-knockout);
837
+ }
838
+ .cre8-c-button--secondary.cre8-c-button--loading,
839
+ .cre8-c-button--tertiary.cre8-c-button--loading {
840
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
841
+ }
842
+
843
+ /**
844
+ * Aria live span
845
+ */
846
+ .cre8-u-is-vishidden {
847
+ --cre8-icon-height: 0px;
848
+ --cre8-icon-width: 0px;
849
+ max-width: fit-content;
850
+ min-width: 0px;
851
+ width: auto;
852
+ height: auto;
853
+ max-height: fit-content;
854
+ min-width: 0px;
855
+
856
+ @include visuallyHidden();
857
+ }
858
+
859
+ cre8-icon-legacy.cre8-u-is-vishidden {
860
+ @include visuallyHidden();
861
+ }
862
+
863
+ span.cre8-c-button__icon {
864
+ margin-left: size(1);
865
+ max-width: fit-content;
866
+ min-width: 0px;
867
+ width: auto;
868
+ height: auto;
869
+ max-height: fit-content;
870
+ min-width: 0px;
871
+ }
872
+
873
+ cre8-icon {
874
+ display: flex;
875
+ align-items: center;
876
+ justify-content: center;
877
+
878
+ svg {
879
+ height: size(2);
880
+ width: size(2);
881
+ }
882
+ }
883
+ `;
884
+ export default styles;
885
+ //# sourceMappingURL=button.styles.js.map