@tmorrow/cre8-wc 1.0.14

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 (791) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +5 -0
  3. package/cdn/cre8-wc.esm.js +24106 -0
  4. package/cdn/cre8-wc.esm.js.map +1 -0
  5. package/cdn/cre8-wc.min.js +10029 -0
  6. package/cdn/cre8-wc.min.js.map +1 -0
  7. package/dist/Image.png +0 -0
  8. package/dist/cre8.png +0 -0
  9. package/dist/cre8.svg +6 -0
  10. package/dist/favicon.svg +7 -0
  11. package/dist/index.html +173 -0
  12. package/dist/index.json +1 -0
  13. package/dist/leaf.png +0 -0
  14. package/dist/leafDS.png +0 -0
  15. package/dist/leafLogo.svg +1 -0
  16. package/dist/project.json +1 -0
  17. package/dist/sb-addons/a11y-1/manager-bundle.js +3 -0
  18. package/dist/sb-addons/a11y-1/manager-bundle.js.LEGAL.txt +0 -0
  19. package/dist/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
  20. package/dist/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
  21. package/dist/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
  22. package/dist/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
  23. package/dist/sb-addons/essentials-controls-2/manager-bundle.js +62 -0
  24. package/dist/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +18 -0
  25. package/dist/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
  26. package/dist/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
  27. package/dist/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
  28. package/dist/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
  29. package/dist/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
  30. package/dist/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
  31. package/dist/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
  32. package/dist/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
  33. package/dist/sb-addons/etchteam-css-variables-theme-0/manager-bundle.js +3 -0
  34. package/dist/sb-addons/etchteam-css-variables-theme-0/manager-bundle.js.LEGAL.txt +0 -0
  35. package/dist/sb-addons/storybook-10/manager-bundle.js +9 -0
  36. package/dist/sb-addons/storybook-10/manager-bundle.js.LEGAL.txt +0 -0
  37. package/dist/sb-addons/whitespace-html-esm-preset-9/manager-bundle.js +194 -0
  38. package/dist/sb-addons/whitespace-html-esm-preset-9/manager-bundle.js.LEGAL.txt +20 -0
  39. package/dist/sb-common-assets/fonts.css +31 -0
  40. package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  41. package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  42. package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  43. package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  44. package/dist/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +1 -0
  45. package/dist/sb-manager/chunk-5QAFKPS7.js +7 -0
  46. package/dist/sb-manager/chunk-7PRFHFSS.js +9 -0
  47. package/dist/sb-manager/chunk-XE6LDGTE.js +406 -0
  48. package/dist/sb-manager/chunk-YDUB7CS6.js +348 -0
  49. package/dist/sb-manager/chunk-ZEU7PDD3.js +1 -0
  50. package/dist/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  51. package/dist/sb-manager/globals-module-info.js +1 -0
  52. package/dist/sb-manager/globals.js +1 -0
  53. package/dist/sb-manager/index.js +1 -0
  54. package/dist/sb-manager/runtime.js +1 -0
  55. package/dist/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +1 -0
  56. package/dist/sb-preview/globals.js +1 -0
  57. package/dist/sb-preview/runtime.js +112 -0
  58. package/dist/stories.json +1 -0
  59. package/lib/cdn-entry.d.ts +106 -0
  60. package/lib/cdn-entry.d.ts.map +1 -0
  61. package/lib/components/accordion/accordion.d.ts +39 -0
  62. package/lib/components/accordion/accordion.d.ts.map +1 -0
  63. package/lib/components/accordion/accordion.styles.d.ts +3 -0
  64. package/lib/components/accordion/accordion.styles.d.ts.map +1 -0
  65. package/lib/components/accordion-item/accordion-item.d.ts +141 -0
  66. package/lib/components/accordion-item/accordion-item.d.ts.map +1 -0
  67. package/lib/components/accordion-item/accordion-item.styles.d.ts +3 -0
  68. package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -0
  69. package/lib/components/alert/alert.d.ts +60 -0
  70. package/lib/components/alert/alert.d.ts.map +1 -0
  71. package/lib/components/alert/alert.styles.d.ts +3 -0
  72. package/lib/components/alert/alert.styles.d.ts.map +1 -0
  73. package/lib/components/badge/badge.d.ts +62 -0
  74. package/lib/components/badge/badge.d.ts.map +1 -0
  75. package/lib/components/badge/badge.styles.d.ts +3 -0
  76. package/lib/components/badge/badge.styles.d.ts.map +1 -0
  77. package/lib/components/band/band.d.ts +29 -0
  78. package/lib/components/band/band.d.ts.map +1 -0
  79. package/lib/components/band/band.styles.d.ts +3 -0
  80. package/lib/components/band/band.styles.d.ts.map +1 -0
  81. package/lib/components/breadcrumbs/breadcrumbs.d.ts +32 -0
  82. package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  83. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
  84. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
  85. package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts +17 -0
  86. package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts.map +1 -0
  87. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts +3 -0
  88. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -0
  89. package/lib/components/button/button.d.ts +229 -0
  90. package/lib/components/button/button.d.ts.map +1 -0
  91. package/lib/components/button/button.styles.d.ts +3 -0
  92. package/lib/components/button/button.styles.d.ts.map +1 -0
  93. package/lib/components/button-group/button-group.d.ts +19 -0
  94. package/lib/components/button-group/button-group.d.ts.map +1 -0
  95. package/lib/components/button-group/button-group.styles.d.ts +3 -0
  96. package/lib/components/button-group/button-group.styles.d.ts.map +1 -0
  97. package/lib/components/card/card.d.ts +45 -0
  98. package/lib/components/card/card.d.ts.map +1 -0
  99. package/lib/components/card/card.styles.d.ts +3 -0
  100. package/lib/components/card/card.styles.d.ts.map +1 -0
  101. package/lib/components/chart/chart.d.ts +18 -0
  102. package/lib/components/chart/chart.d.ts.map +1 -0
  103. package/lib/components/chart/chart.styles.d.ts +3 -0
  104. package/lib/components/chart/chart.styles.d.ts.map +1 -0
  105. package/lib/components/checkbox-field/checkbox-field.d.ts +54 -0
  106. package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -0
  107. package/lib/components/checkbox-field/checkbox-field.styles.d.ts +3 -0
  108. package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -0
  109. package/lib/components/checkbox-field-item/checkbox-field-item.d.ts +177 -0
  110. package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -0
  111. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts +3 -0
  112. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -0
  113. package/lib/components/components/cre8-element/components/cre8-element.js +58 -0
  114. package/lib/components/components/cre8-form-element/components/cre8-form-element.js +47 -0
  115. package/lib/components/cre8-element.d.ts +54 -0
  116. package/lib/components/cre8-element.d.ts.map +1 -0
  117. package/lib/components/cre8-field/cre8-field.js +10 -0
  118. package/lib/components/cre8-form-element.d.ts +62 -0
  119. package/lib/components/cre8-form-element.d.ts.map +1 -0
  120. package/lib/components/danger-button/danger-button.d.ts +208 -0
  121. package/lib/components/danger-button/danger-button.d.ts.map +1 -0
  122. package/lib/components/danger-button/danger-button.styles.d.ts +3 -0
  123. package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -0
  124. package/lib/components/date-picker/calendar/calendar.d.ts +115 -0
  125. package/lib/components/date-picker/calendar/calendar.d.ts.map +1 -0
  126. package/lib/components/date-picker/calendar/calendar.styles.d.ts +3 -0
  127. package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -0
  128. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts +22 -0
  129. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts.map +1 -0
  130. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts +3 -0
  131. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -0
  132. package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts +19 -0
  133. package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts.map +1 -0
  134. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts +3 -0
  135. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -0
  136. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts +28 -0
  137. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts.map +1 -0
  138. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts +3 -0
  139. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -0
  140. package/lib/components/date-picker/date-picker.d.ts +40 -0
  141. package/lib/components/date-picker/date-picker.d.ts.map +1 -0
  142. package/lib/components/date-picker/date-picker.js +9 -0
  143. package/lib/components/date-picker/date-picker.styles.d.ts +3 -0
  144. package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -0
  145. package/lib/components/divider/divider.d.ts +29 -0
  146. package/lib/components/divider/divider.d.ts.map +1 -0
  147. package/lib/components/divider/divider.styles.d.ts +3 -0
  148. package/lib/components/divider/divider.styles.d.ts.map +1 -0
  149. package/lib/components/dropdown/dropdown.d.ts +35 -0
  150. package/lib/components/dropdown/dropdown.d.ts.map +1 -0
  151. package/lib/components/dropdown/dropdown.styles.d.ts +3 -0
  152. package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -0
  153. package/lib/components/dropdown-item/dropdown-item.d.ts +19 -0
  154. package/lib/components/dropdown-item/dropdown-item.d.ts.map +1 -0
  155. package/lib/components/dropdown-item/dropdown-item.styles.d.ts +3 -0
  156. package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -0
  157. package/lib/components/feature/feature.d.ts +28 -0
  158. package/lib/components/feature/feature.d.ts.map +1 -0
  159. package/lib/components/feature/feature.styles.d.ts +3 -0
  160. package/lib/components/feature/feature.styles.d.ts.map +1 -0
  161. package/lib/components/field/field.d.ts +210 -0
  162. package/lib/components/field/field.d.ts.map +1 -0
  163. package/lib/components/field/field.styles.d.ts +3 -0
  164. package/lib/components/field/field.styles.d.ts.map +1 -0
  165. package/lib/components/field-note/field-note.d.ts +37 -0
  166. package/lib/components/field-note/field-note.d.ts.map +1 -0
  167. package/lib/components/field-note/field-note.styles.d.ts +3 -0
  168. package/lib/components/field-note/field-note.styles.d.ts.map +1 -0
  169. package/lib/components/footer/footer.d.ts +17 -0
  170. package/lib/components/footer/footer.d.ts.map +1 -0
  171. package/lib/components/footer/footer.styles.d.ts +3 -0
  172. package/lib/components/footer/footer.styles.d.ts.map +1 -0
  173. package/lib/components/global-nav/global-nav.d.ts +33 -0
  174. package/lib/components/global-nav/global-nav.d.ts.map +1 -0
  175. package/lib/components/global-nav/global-nav.styles.d.ts +3 -0
  176. package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -0
  177. package/lib/components/global-nav-item/global-nav-item.d.ts +71 -0
  178. package/lib/components/global-nav-item/global-nav-item.d.ts.map +1 -0
  179. package/lib/components/global-nav-item/global-nav-item.styles.d.ts +3 -0
  180. package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -0
  181. package/lib/components/grid/grid.d.ts +49 -0
  182. package/lib/components/grid/grid.d.ts.map +1 -0
  183. package/lib/components/grid/grid.styles.d.ts +3 -0
  184. package/lib/components/grid/grid.styles.d.ts.map +1 -0
  185. package/lib/components/grid-item/grid-item.d.ts +15 -0
  186. package/lib/components/grid-item/grid-item.d.ts.map +1 -0
  187. package/lib/components/grid-item/grid-item.styles.d.ts +3 -0
  188. package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -0
  189. package/lib/components/header/header.d.ts +20 -0
  190. package/lib/components/header/header.d.ts.map +1 -0
  191. package/lib/components/header/header.styles.d.ts +3 -0
  192. package/lib/components/header/header.styles.d.ts.map +1 -0
  193. package/lib/components/heading/heading.d.ts +81 -0
  194. package/lib/components/heading/heading.d.ts.map +1 -0
  195. package/lib/components/heading/heading.styles.d.ts +3 -0
  196. package/lib/components/heading/heading.styles.d.ts.map +1 -0
  197. package/lib/components/hero/hero.d.ts +39 -0
  198. package/lib/components/hero/hero.d.ts.map +1 -0
  199. package/lib/components/hero/hero.styles.d.ts +3 -0
  200. package/lib/components/hero/hero.styles.d.ts.map +1 -0
  201. package/lib/components/icon/icon.d.ts +78 -0
  202. package/lib/components/icon/icon.d.ts.map +1 -0
  203. package/lib/components/icon/icon.js +9 -0
  204. package/lib/components/icon/icon.styles.d.ts +3 -0
  205. package/lib/components/icon/icon.styles.d.ts.map +1 -0
  206. package/lib/components/inline-alert/inline-alert.d.ts +52 -0
  207. package/lib/components/inline-alert/inline-alert.d.ts.map +1 -0
  208. package/lib/components/inline-alert/inline-alert.styles.d.ts +3 -0
  209. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -0
  210. package/lib/components/layout/layout.d.ts +25 -0
  211. package/lib/components/layout/layout.d.ts.map +1 -0
  212. package/lib/components/layout/layout.styles.d.ts +3 -0
  213. package/lib/components/layout/layout.styles.d.ts.map +1 -0
  214. package/lib/components/layout-container/layout-container.d.ts +20 -0
  215. package/lib/components/layout-container/layout-container.d.ts.map +1 -0
  216. package/lib/components/layout-container/layout-container.styles.d.ts +3 -0
  217. package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -0
  218. package/lib/components/layout-section/layout-section.d.ts +26 -0
  219. package/lib/components/layout-section/layout-section.d.ts.map +1 -0
  220. package/lib/components/layout-section/layout-section.styles.d.ts +3 -0
  221. package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -0
  222. package/lib/components/linelength-container/linelength-container.d.ts +15 -0
  223. package/lib/components/linelength-container/linelength-container.d.ts.map +1 -0
  224. package/lib/components/linelength-container/linelength-container.styles.d.ts +3 -0
  225. package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -0
  226. package/lib/components/link/link.d.ts +93 -0
  227. package/lib/components/link/link.d.ts.map +1 -0
  228. package/lib/components/link/link.styles.d.ts +3 -0
  229. package/lib/components/link/link.styles.d.ts.map +1 -0
  230. package/lib/components/link-list/link-list.d.ts +42 -0
  231. package/lib/components/link-list/link-list.d.ts.map +1 -0
  232. package/lib/components/link-list/link-list.styles.d.ts +3 -0
  233. package/lib/components/link-list/link-list.styles.d.ts.map +1 -0
  234. package/lib/components/link-list-item/link-list-item.d.ts +27 -0
  235. package/lib/components/link-list-item/link-list-item.d.ts.map +1 -0
  236. package/lib/components/link-list-item/link-list-item.styles.d.ts +3 -0
  237. package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -0
  238. package/lib/components/list/list.d.ts +34 -0
  239. package/lib/components/list/list.d.ts.map +1 -0
  240. package/lib/components/list/list.styles.d.ts +3 -0
  241. package/lib/components/list/list.styles.d.ts.map +1 -0
  242. package/lib/components/list-item/list-item.d.ts +16 -0
  243. package/lib/components/list-item/list-item.d.ts.map +1 -0
  244. package/lib/components/list-item/list-item.styles.d.ts +3 -0
  245. package/lib/components/list-item/list-item.styles.d.ts.map +1 -0
  246. package/lib/components/loading-spinner/loading-spinner.d.ts +90 -0
  247. package/lib/components/loading-spinner/loading-spinner.d.ts.map +1 -0
  248. package/lib/components/loading-spinner/loading-spinner.styles.d.ts +3 -0
  249. package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -0
  250. package/lib/components/logo/logo.d.ts +19 -0
  251. package/lib/components/logo/logo.d.ts.map +1 -0
  252. package/lib/components/logo/logo.styles.d.ts +3 -0
  253. package/lib/components/logo/logo.styles.d.ts.map +1 -0
  254. package/lib/components/main/main.d.ts +20 -0
  255. package/lib/components/main/main.d.ts.map +1 -0
  256. package/lib/components/main/main.styles.d.ts +3 -0
  257. package/lib/components/main/main.styles.d.ts.map +1 -0
  258. package/lib/components/modal/modal.d.ts +99 -0
  259. package/lib/components/modal/modal.d.ts.map +1 -0
  260. package/lib/components/modal/modal.styles.d.ts +3 -0
  261. package/lib/components/modal/modal.styles.d.ts.map +1 -0
  262. package/lib/components/multi-select/multi-select.d.ts +131 -0
  263. package/lib/components/multi-select/multi-select.d.ts.map +1 -0
  264. package/lib/components/multi-select/multi-select.styles.d.ts +3 -0
  265. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -0
  266. package/lib/components/nav-container/nav-container.d.ts +15 -0
  267. package/lib/components/nav-container/nav-container.d.ts.map +1 -0
  268. package/lib/components/nav-container/nav-container.styles.d.ts +3 -0
  269. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -0
  270. package/lib/components/page-header/page-header.d.ts +19 -0
  271. package/lib/components/page-header/page-header.d.ts.map +1 -0
  272. package/lib/components/page-header/page-header.styles.d.ts +3 -0
  273. package/lib/components/page-header/page-header.styles.d.ts.map +1 -0
  274. package/lib/components/pagination/page-counter/page-counter.d.ts +20 -0
  275. package/lib/components/pagination/page-counter/page-counter.d.ts.map +1 -0
  276. package/lib/components/pagination/page-counter/page-counter.styles.d.ts +3 -0
  277. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -0
  278. package/lib/components/pagination/pagination.d.ts +126 -0
  279. package/lib/components/pagination/pagination.d.ts.map +1 -0
  280. package/lib/components/pagination/pagination.styles.d.ts +3 -0
  281. package/lib/components/pagination/pagination.styles.d.ts.map +1 -0
  282. package/lib/components/percent-bar/percent-bar.d.ts +26 -0
  283. package/lib/components/percent-bar/percent-bar.d.ts.map +1 -0
  284. package/lib/components/percent-bar/percent-bar.styles.d.ts +3 -0
  285. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -0
  286. package/lib/components/popover/popover.d.ts +155 -0
  287. package/lib/components/popover/popover.d.ts.map +1 -0
  288. package/lib/components/popover/popover.styles.d.ts +3 -0
  289. package/lib/components/popover/popover.styles.d.ts.map +1 -0
  290. package/lib/components/primary-nav/primary-nav.d.ts +33 -0
  291. package/lib/components/primary-nav/primary-nav.d.ts.map +1 -0
  292. package/lib/components/primary-nav/primary-nav.styles.d.ts +3 -0
  293. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -0
  294. package/lib/components/primary-nav-item/primary-nav-item.d.ts +71 -0
  295. package/lib/components/primary-nav-item/primary-nav-item.d.ts.map +1 -0
  296. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts +3 -0
  297. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -0
  298. package/lib/components/progress-meter/progress-meter.d.ts +51 -0
  299. package/lib/components/progress-meter/progress-meter.d.ts.map +1 -0
  300. package/lib/components/progress-meter/progress-meter.styles.d.ts +3 -0
  301. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -0
  302. package/lib/components/progress-steps/progress-steps.d.ts +3 -0
  303. package/lib/components/progress-steps/progress-steps.d.ts.map +1 -0
  304. package/lib/components/progress-steps/progress-steps.styles.d.ts +3 -0
  305. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -0
  306. package/lib/components/progress-steps-item/progress-steps-item.d.ts +44 -0
  307. package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -0
  308. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts +3 -0
  309. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -0
  310. package/lib/components/radio-field/radio-field.d.ts +56 -0
  311. package/lib/components/radio-field/radio-field.d.ts.map +1 -0
  312. package/lib/components/radio-field/radio-field.styles.d.ts +3 -0
  313. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -0
  314. package/lib/components/radio-field-item/radio-field-item.d.ts +162 -0
  315. package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -0
  316. package/lib/components/radio-field-item/radio-field-item.styles.d.ts +3 -0
  317. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -0
  318. package/lib/components/remove-tag/remove-tag.d.ts +53 -0
  319. package/lib/components/remove-tag/remove-tag.d.ts.map +1 -0
  320. package/lib/components/remove-tag/remove-tag.styles.d.ts +3 -0
  321. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -0
  322. package/lib/components/section/section.d.ts +33 -0
  323. package/lib/components/section/section.d.ts.map +1 -0
  324. package/lib/components/section/section.styles.d.ts +3 -0
  325. package/lib/components/section/section.styles.d.ts.map +1 -0
  326. package/lib/components/select/select.d.ts +173 -0
  327. package/lib/components/select/select.d.ts.map +1 -0
  328. package/lib/components/select/select.styles.d.ts +3 -0
  329. package/lib/components/select/select.styles.d.ts.map +1 -0
  330. package/lib/components/select-tile/select-tile-checkbox-controller.d.ts +40 -0
  331. package/lib/components/select-tile/select-tile-checkbox-controller.d.ts.map +1 -0
  332. package/lib/components/select-tile/select-tile-radio-controller.d.ts +87 -0
  333. package/lib/components/select-tile/select-tile-radio-controller.d.ts.map +1 -0
  334. package/lib/components/select-tile/select-tile.d.ts +163 -0
  335. package/lib/components/select-tile/select-tile.d.ts.map +1 -0
  336. package/lib/components/select-tile/select-tile.styles.d.ts +3 -0
  337. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -0
  338. package/lib/components/select-tile-list/select-tile-list.d.ts +52 -0
  339. package/lib/components/select-tile-list/select-tile-list.d.ts.map +1 -0
  340. package/lib/components/select-tile-list/select-tile-list.styles.d.ts +3 -0
  341. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -0
  342. package/lib/components/skeleton-loader/skeleton-loader.d.ts +53 -0
  343. package/lib/components/skeleton-loader/skeleton-loader.d.ts.map +1 -0
  344. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts +3 -0
  345. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -0
  346. package/lib/components/split-button/split-button.d.ts +34 -0
  347. package/lib/components/split-button/split-button.d.ts.map +1 -0
  348. package/lib/components/split-button/split-button.styles.d.ts +3 -0
  349. package/lib/components/split-button/split-button.styles.d.ts.map +1 -0
  350. package/lib/components/submenu/submenu.d.ts +15 -0
  351. package/lib/components/submenu/submenu.d.ts.map +1 -0
  352. package/lib/components/submenu/submenu.styles.d.ts +3 -0
  353. package/lib/components/submenu/submenu.styles.d.ts.map +1 -0
  354. package/lib/components/submenu-item/submenu-item.d.ts +19 -0
  355. package/lib/components/submenu-item/submenu-item.d.ts.map +1 -0
  356. package/lib/components/submenu-item/submenu-item.styles.d.ts +3 -0
  357. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -0
  358. package/lib/components/tab/tab.d.ts +58 -0
  359. package/lib/components/tab/tab.d.ts.map +1 -0
  360. package/lib/components/tab/tab.styles.d.ts +3 -0
  361. package/lib/components/tab/tab.styles.d.ts.map +1 -0
  362. package/lib/components/tab-panel/tab-panel.d.ts +38 -0
  363. package/lib/components/tab-panel/tab-panel.d.ts.map +1 -0
  364. package/lib/components/tab-panel/tab-panel.styles.d.ts +3 -0
  365. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -0
  366. package/lib/components/table/table.d.ts +43 -0
  367. package/lib/components/table/table.d.ts.map +1 -0
  368. package/lib/components/table/table.styles.d.ts +3 -0
  369. package/lib/components/table/table.styles.d.ts.map +1 -0
  370. package/lib/components/table-body/table-body.d.ts +15 -0
  371. package/lib/components/table-body/table-body.d.ts.map +1 -0
  372. package/lib/components/table-body/table-body.styles.d.ts +3 -0
  373. package/lib/components/table-body/table-body.styles.d.ts.map +1 -0
  374. package/lib/components/table-cell/table-cell.d.ts +32 -0
  375. package/lib/components/table-cell/table-cell.d.ts.map +1 -0
  376. package/lib/components/table-cell/table-cell.styles.d.ts +3 -0
  377. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -0
  378. package/lib/components/table-header/table-header.d.ts +15 -0
  379. package/lib/components/table-header/table-header.d.ts.map +1 -0
  380. package/lib/components/table-header/table-header.styles.d.ts +3 -0
  381. package/lib/components/table-header/table-header.styles.d.ts.map +1 -0
  382. package/lib/components/table-header-cell/table-header-cell.d.ts +24 -0
  383. package/lib/components/table-header-cell/table-header-cell.d.ts.map +1 -0
  384. package/lib/components/table-header-cell/table-header-cell.styles.d.ts +3 -0
  385. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -0
  386. package/lib/components/table-object/table-object.d.ts +15 -0
  387. package/lib/components/table-object/table-object.d.ts.map +1 -0
  388. package/lib/components/table-object/table-object.styles.d.ts +3 -0
  389. package/lib/components/table-object/table-object.styles.d.ts.map +1 -0
  390. package/lib/components/table-row/table-row.d.ts +43 -0
  391. package/lib/components/table-row/table-row.d.ts.map +1 -0
  392. package/lib/components/table-row/table-row.styles.d.ts +3 -0
  393. package/lib/components/table-row/table-row.styles.d.ts.map +1 -0
  394. package/lib/components/tabs/tabs.d.ts +238 -0
  395. package/lib/components/tabs/tabs.d.ts.map +1 -0
  396. package/lib/components/tabs/tabs.styles.d.ts +3 -0
  397. package/lib/components/tabs/tabs.styles.d.ts.map +1 -0
  398. package/lib/components/tag/tag.d.ts +92 -0
  399. package/lib/components/tag/tag.d.ts.map +1 -0
  400. package/lib/components/tag/tag.styles.d.ts +3 -0
  401. package/lib/components/tag/tag.styles.d.ts.map +1 -0
  402. package/lib/components/tag-list/tag-list.d.ts +28 -0
  403. package/lib/components/tag-list/tag-list.d.ts.map +1 -0
  404. package/lib/components/tag-list/tag-list.styles.d.ts +3 -0
  405. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -0
  406. package/lib/components/tertiary-nav/tertiary-nav.d.ts +23 -0
  407. package/lib/components/tertiary-nav/tertiary-nav.d.ts.map +1 -0
  408. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts +3 -0
  409. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -0
  410. package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts +29 -0
  411. package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts.map +1 -0
  412. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts +3 -0
  413. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -0
  414. package/lib/components/text-link/text-link.d.ts +43 -0
  415. package/lib/components/text-link/text-link.d.ts.map +1 -0
  416. package/lib/components/text-link/text-link.styles.d.ts +3 -0
  417. package/lib/components/text-link/text-link.styles.d.ts.map +1 -0
  418. package/lib/components/text-passage/text-passage-light-dom.d.ts +3 -0
  419. package/lib/components/text-passage/text-passage-light-dom.d.ts.map +1 -0
  420. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts +3 -0
  421. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -0
  422. package/lib/components/text-passage/text-passage.d.ts +44 -0
  423. package/lib/components/text-passage/text-passage.d.ts.map +1 -0
  424. package/lib/components/text-passage/text-passage.styles.d.ts +3 -0
  425. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -0
  426. package/lib/components/tooltip/tooltip.d.ts +171 -0
  427. package/lib/components/tooltip/tooltip.d.ts.map +1 -0
  428. package/lib/components/tooltip/tooltip.styles.d.ts +3 -0
  429. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -0
  430. package/lib/components/utility-nav/utility-nav.d.ts +24 -0
  431. package/lib/components/utility-nav/utility-nav.d.ts.map +1 -0
  432. package/lib/components/utility-nav/utility-nav.styles.d.ts +3 -0
  433. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -0
  434. package/lib/components/utility-nav-item/utility-nav-item.d.ts +39 -0
  435. package/lib/components/utility-nav-item/utility-nav-item.d.ts.map +1 -0
  436. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts +3 -0
  437. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -0
  438. package/lib/date-picker-C8EEd7H8.js +2366 -0
  439. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts +3 -0
  440. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -0
  441. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts +3 -0
  442. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -0
  443. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts +3 -0
  444. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts.map +1 -0
  445. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts +3 -0
  446. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -0
  447. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts +3 -0
  448. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -0
  449. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts +3 -0
  450. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -0
  451. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts +3 -0
  452. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -0
  453. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +3 -0
  454. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -0
  455. package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts +3 -0
  456. package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts.map +1 -0
  457. package/lib/design-tokens/brands/starbucks/tokens.module.d.ts +3 -0
  458. package/lib/design-tokens/brands/starbucks/tokens.module.d.ts.map +1 -0
  459. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts +3 -0
  460. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -0
  461. package/lib/design-tokens/brands copy/blue/_base.scss +142 -0
  462. package/lib/design-tokens/brands copy/blue/badge.scss +5 -0
  463. package/lib/design-tokens/brands copy/blue/bg.scss +35 -0
  464. package/lib/design-tokens/brands copy/blue/border-style.scss +5 -0
  465. package/lib/design-tokens/brands copy/blue/border.scss +21 -0
  466. package/lib/design-tokens/brands copy/blue/borderRadius.scss +15 -0
  467. package/lib/design-tokens/brands copy/blue/borderWidth.scss +11 -0
  468. package/lib/design-tokens/brands copy/blue/breakpoint.scss +9 -0
  469. package/lib/design-tokens/brands copy/blue/button.scss +225 -0
  470. package/lib/design-tokens/brands copy/blue/content.scss +29 -0
  471. package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts +3 -0
  472. package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts.map +1 -0
  473. package/lib/design-tokens/brands copy/blue/desktop-menu.scss +5 -0
  474. package/lib/design-tokens/brands copy/blue/fontFamilies.scss +5 -0
  475. package/lib/design-tokens/brands copy/blue/fontSize.scss +17 -0
  476. package/lib/design-tokens/brands copy/blue/fontWeights.scss +7 -0
  477. package/lib/design-tokens/brands copy/blue/footer.scss +9 -0
  478. package/lib/design-tokens/brands copy/blue/header.scss +81 -0
  479. package/lib/design-tokens/brands copy/blue/icon-size.scss +6 -0
  480. package/lib/design-tokens/brands copy/blue/letterSpacing.scss +9 -0
  481. package/lib/design-tokens/brands copy/blue/lineHeights.scss +15 -0
  482. package/lib/design-tokens/brands copy/blue/link.scss +4 -0
  483. package/lib/design-tokens/brands copy/blue/paragraphIndent.scss +4 -0
  484. package/lib/design-tokens/brands copy/blue/paragraphSpacing.scss +4 -0
  485. package/lib/design-tokens/brands copy/blue/progress-meter.scss +4 -0
  486. package/lib/design-tokens/brands copy/blue/shadow.scss +8 -0
  487. package/lib/design-tokens/brands copy/blue/spacing.scss +21 -0
  488. package/lib/design-tokens/brands copy/blue/textCase.scss +5 -0
  489. package/lib/design-tokens/brands copy/blue/textDecoration.scss +5 -0
  490. package/lib/design-tokens/brands copy/blue/tokens-all-blue.scss +628 -0
  491. package/lib/design-tokens/brands copy/blue/tokens-brand.scss +31 -0
  492. package/lib/design-tokens/brands copy/blue-v1/_base.scss +76 -0
  493. package/lib/design-tokens/brands copy/blue-v1/badge.scss +5 -0
  494. package/lib/design-tokens/brands copy/blue-v1/bg.scss +34 -0
  495. package/lib/design-tokens/brands copy/blue-v1/border-style.scss +5 -0
  496. package/lib/design-tokens/brands copy/blue-v1/border.scss +21 -0
  497. package/lib/design-tokens/brands copy/blue-v1/borderRadius.scss +15 -0
  498. package/lib/design-tokens/brands copy/blue-v1/borderWidth.scss +11 -0
  499. package/lib/design-tokens/brands copy/blue-v1/breakpoint.scss +9 -0
  500. package/lib/design-tokens/brands copy/blue-v1/button.scss +199 -0
  501. package/lib/design-tokens/brands copy/blue-v1/content.scss +29 -0
  502. package/lib/design-tokens/brands copy/blue-v1/desktop-menu.scss +5 -0
  503. package/lib/design-tokens/brands copy/blue-v1/fontFamilies.scss +5 -0
  504. package/lib/design-tokens/brands copy/blue-v1/fontSize.scss +17 -0
  505. package/lib/design-tokens/brands copy/blue-v1/fontWeights.scss +9 -0
  506. package/lib/design-tokens/brands copy/blue-v1/footer.scss +9 -0
  507. package/lib/design-tokens/brands copy/blue-v1/header.scss +79 -0
  508. package/lib/design-tokens/brands copy/blue-v1/icon-size.scss +6 -0
  509. package/lib/design-tokens/brands copy/blue-v1/letterSpacing.scss +9 -0
  510. package/lib/design-tokens/brands copy/blue-v1/lineHeights.scss +15 -0
  511. package/lib/design-tokens/brands copy/blue-v1/link.scss +4 -0
  512. package/lib/design-tokens/brands copy/blue-v1/paragraphIndent.scss +4 -0
  513. package/lib/design-tokens/brands copy/blue-v1/paragraphSpacing.scss +4 -0
  514. package/lib/design-tokens/brands copy/blue-v1/shadow.scss +8 -0
  515. package/lib/design-tokens/brands copy/blue-v1/spacing.scss +21 -0
  516. package/lib/design-tokens/brands copy/blue-v1/textCase.scss +5 -0
  517. package/lib/design-tokens/brands copy/blue-v1/textDecoration.scss +5 -0
  518. package/lib/design-tokens/brands copy/blue-v1/tokens-all-blue-v1.scss +534 -0
  519. package/lib/design-tokens/brands copy/blue-v1/tokens-brand.scss +30 -0
  520. package/lib/design-tokens/brands copy/cre8/_base.scss +157 -0
  521. package/lib/design-tokens/brands copy/cre8/badge.scss +5 -0
  522. package/lib/design-tokens/brands copy/cre8/bg.scss +34 -0
  523. package/lib/design-tokens/brands copy/cre8/border-style.scss +5 -0
  524. package/lib/design-tokens/brands copy/cre8/border.scss +18 -0
  525. package/lib/design-tokens/brands copy/cre8/borderRadius.scss +15 -0
  526. package/lib/design-tokens/brands copy/cre8/borderWidth.scss +11 -0
  527. package/lib/design-tokens/brands copy/cre8/breakpoint.scss +9 -0
  528. package/lib/design-tokens/brands copy/cre8/button.scss +211 -0
  529. package/lib/design-tokens/brands copy/cre8/content.scss +29 -0
  530. package/lib/design-tokens/brands copy/cre8/desktop-menu.scss +5 -0
  531. package/lib/design-tokens/brands copy/cre8/fontFamilies.scss +4 -0
  532. package/lib/design-tokens/brands copy/cre8/fontSize.scss +17 -0
  533. package/lib/design-tokens/brands copy/cre8/fontWeights.scss +7 -0
  534. package/lib/design-tokens/brands copy/cre8/footer.scss +8 -0
  535. package/lib/design-tokens/brands copy/cre8/header.scss +81 -0
  536. package/lib/design-tokens/brands copy/cre8/icon-size.scss +6 -0
  537. package/lib/design-tokens/brands copy/cre8/letterSpacing.scss +10 -0
  538. package/lib/design-tokens/brands copy/cre8/lineHeights.scss +22 -0
  539. package/lib/design-tokens/brands copy/cre8/link.scss +4 -0
  540. package/lib/design-tokens/brands copy/cre8/paragraphIndent.scss +4 -0
  541. package/lib/design-tokens/brands copy/cre8/paragraphSpacing.scss +4 -0
  542. package/lib/design-tokens/brands copy/cre8/progress-meter.scss +4 -0
  543. package/lib/design-tokens/brands copy/cre8/shadow.scss +8 -0
  544. package/lib/design-tokens/brands copy/cre8/spacing.scss +21 -0
  545. package/lib/design-tokens/brands copy/cre8/textCase.scss +5 -0
  546. package/lib/design-tokens/brands copy/cre8/textDecoration.scss +5 -0
  547. package/lib/design-tokens/brands copy/cre8/tokens-all-cre8.scss +631 -0
  548. package/lib/design-tokens/brands copy/cre8/tokens-brand.scss +31 -0
  549. package/lib/design-tokens/brands copy/femmecubator/base.scss +64 -0
  550. package/lib/design-tokens/brands copy/femmecubator/border.scss +15 -0
  551. package/lib/design-tokens/brands copy/femmecubator/color.scss +56 -0
  552. package/lib/design-tokens/brands copy/femmecubator/spacing.scss +13 -0
  553. package/lib/design-tokens/brands copy/femmecubator/tokens-all-femmecubator.scss +139 -0
  554. package/lib/design-tokens/brands copy/femmecubator/tokens-brand.scss +8 -0
  555. package/lib/design-tokens/brands copy/legacy/_base.scss +103 -0
  556. package/lib/design-tokens/brands copy/legacy/badge.scss +5 -0
  557. package/lib/design-tokens/brands copy/legacy/bg.scss +34 -0
  558. package/lib/design-tokens/brands copy/legacy/border-style.scss +5 -0
  559. package/lib/design-tokens/brands copy/legacy/border.scss +17 -0
  560. package/lib/design-tokens/brands copy/legacy/borderRadius.scss +15 -0
  561. package/lib/design-tokens/brands copy/legacy/borderWidth.scss +11 -0
  562. package/lib/design-tokens/brands copy/legacy/breakpoint.scss +9 -0
  563. package/lib/design-tokens/brands copy/legacy/button.scss +225 -0
  564. package/lib/design-tokens/brands copy/legacy/content.scss +29 -0
  565. package/lib/design-tokens/brands copy/legacy/desktop-menu.scss +5 -0
  566. package/lib/design-tokens/brands copy/legacy/fontFamilies.scss +4 -0
  567. package/lib/design-tokens/brands copy/legacy/fontSize.scss +17 -0
  568. package/lib/design-tokens/brands copy/legacy/fontWeights.scss +10 -0
  569. package/lib/design-tokens/brands copy/legacy/footer.scss +9 -0
  570. package/lib/design-tokens/brands copy/legacy/header.scss +81 -0
  571. package/lib/design-tokens/brands copy/legacy/icon-size.scss +6 -0
  572. package/lib/design-tokens/brands copy/legacy/letterSpacing.scss +9 -0
  573. package/lib/design-tokens/brands copy/legacy/lineHeights.scss +19 -0
  574. package/lib/design-tokens/brands copy/legacy/paragraphIndent.scss +4 -0
  575. package/lib/design-tokens/brands copy/legacy/paragraphSpacing.scss +4 -0
  576. package/lib/design-tokens/brands copy/legacy/progress-meter.scss +4 -0
  577. package/lib/design-tokens/brands copy/legacy/shadow.scss +8 -0
  578. package/lib/design-tokens/brands copy/legacy/spacing.scss +20 -0
  579. package/lib/design-tokens/brands copy/legacy/textCase.scss +5 -0
  580. package/lib/design-tokens/brands copy/legacy/textDecoration.scss +5 -0
  581. package/lib/design-tokens/brands copy/legacy/tokens-all-legacy.scss +588 -0
  582. package/lib/design-tokens/brands copy/legacy/tokens-brand.scss +30 -0
  583. package/lib/design-tokens/brands copy/marketing/_base.scss +137 -0
  584. package/lib/design-tokens/brands copy/marketing/asset.scss +7 -0
  585. package/lib/design-tokens/brands copy/marketing/badge.scss +5 -0
  586. package/lib/design-tokens/brands copy/marketing/bg.scss +35 -0
  587. package/lib/design-tokens/brands copy/marketing/border-style.scss +5 -0
  588. package/lib/design-tokens/brands copy/marketing/border.scss +21 -0
  589. package/lib/design-tokens/brands copy/marketing/borderRadius.scss +15 -0
  590. package/lib/design-tokens/brands copy/marketing/borderWidth.scss +11 -0
  591. package/lib/design-tokens/brands copy/marketing/breakpoint.scss +9 -0
  592. package/lib/design-tokens/brands copy/marketing/button.scss +225 -0
  593. package/lib/design-tokens/brands copy/marketing/content.scss +29 -0
  594. package/lib/design-tokens/brands copy/marketing/desktop-menu.scss +5 -0
  595. package/lib/design-tokens/brands copy/marketing/fontFamilies.scss +4 -0
  596. package/lib/design-tokens/brands copy/marketing/fontSize.scss +17 -0
  597. package/lib/design-tokens/brands copy/marketing/fontWeights.scss +7 -0
  598. package/lib/design-tokens/brands copy/marketing/footer.scss +9 -0
  599. package/lib/design-tokens/brands copy/marketing/header.scss +81 -0
  600. package/lib/design-tokens/brands copy/marketing/icon-size.scss +6 -0
  601. package/lib/design-tokens/brands copy/marketing/letterSpacing.scss +9 -0
  602. package/lib/design-tokens/brands copy/marketing/lineHeights.scss +22 -0
  603. package/lib/design-tokens/brands copy/marketing/link.scss +4 -0
  604. package/lib/design-tokens/brands copy/marketing/paragraphIndent.scss +4 -0
  605. package/lib/design-tokens/brands copy/marketing/paragraphSpacing.scss +4 -0
  606. package/lib/design-tokens/brands copy/marketing/progress-meter.scss +4 -0
  607. package/lib/design-tokens/brands copy/marketing/shadow.scss +8 -0
  608. package/lib/design-tokens/brands copy/marketing/spacing.scss +21 -0
  609. package/lib/design-tokens/brands copy/marketing/textCase.scss +5 -0
  610. package/lib/design-tokens/brands copy/marketing/textDecoration.scss +5 -0
  611. package/lib/design-tokens/brands copy/marketing/tokens-all-marketing.scss +633 -0
  612. package/lib/design-tokens/brands copy/marketing/tokens-brand.scss +32 -0
  613. package/lib/design-tokens/brands copy/minimalist/_base.scss +81 -0
  614. package/lib/design-tokens/brands copy/minimalist/asset.scss +6 -0
  615. package/lib/design-tokens/brands copy/minimalist/badge.scss +5 -0
  616. package/lib/design-tokens/brands copy/minimalist/bg.scss +34 -0
  617. package/lib/design-tokens/brands copy/minimalist/border-style.scss +5 -0
  618. package/lib/design-tokens/brands copy/minimalist/border.scss +17 -0
  619. package/lib/design-tokens/brands copy/minimalist/borderRadius.scss +15 -0
  620. package/lib/design-tokens/brands copy/minimalist/borderWidth.scss +11 -0
  621. package/lib/design-tokens/brands copy/minimalist/breakpoint.scss +9 -0
  622. package/lib/design-tokens/brands copy/minimalist/button.scss +225 -0
  623. package/lib/design-tokens/brands copy/minimalist/content.scss +29 -0
  624. package/lib/design-tokens/brands copy/minimalist/desktop-menu.scss +5 -0
  625. package/lib/design-tokens/brands copy/minimalist/fontFamilies.scss +4 -0
  626. package/lib/design-tokens/brands copy/minimalist/fontFamily.scss +4 -0
  627. package/lib/design-tokens/brands copy/minimalist/fontSize.scss +17 -0
  628. package/lib/design-tokens/brands copy/minimalist/fontWeights.scss +6 -0
  629. package/lib/design-tokens/brands copy/minimalist/footer.scss +9 -0
  630. package/lib/design-tokens/brands copy/minimalist/header.scss +81 -0
  631. package/lib/design-tokens/brands copy/minimalist/icon-size.scss +6 -0
  632. package/lib/design-tokens/brands copy/minimalist/letterSpacing.scss +9 -0
  633. package/lib/design-tokens/brands copy/minimalist/lineHeights.scss +20 -0
  634. package/lib/design-tokens/brands copy/minimalist/paragraphIndent.scss +4 -0
  635. package/lib/design-tokens/brands copy/minimalist/paragraphSpacing.scss +4 -0
  636. package/lib/design-tokens/brands copy/minimalist/progress-meter.scss +4 -0
  637. package/lib/design-tokens/brands copy/minimalist/shadow.scss +8 -0
  638. package/lib/design-tokens/brands copy/minimalist/spacing.scss +20 -0
  639. package/lib/design-tokens/brands copy/minimalist/textCase.scss +5 -0
  640. package/lib/design-tokens/brands copy/minimalist/textDecoration.scss +5 -0
  641. package/lib/design-tokens/brands copy/minimalist/tokens-all-minimalist.scss +567 -0
  642. package/lib/design-tokens/brands copy/minimalist/tokens-brand.scss +32 -0
  643. package/lib/design-tokens/core/scss/theming/animation.scss +152 -0
  644. package/lib/design-tokens/core/scss/theming/body.scss +29 -0
  645. package/lib/design-tokens/core/scss/theming/breakpoints.scss +21 -0
  646. package/lib/design-tokens/core/scss/theming/colors.scss +10 -0
  647. package/lib/design-tokens/core/scss/theming/component.scss +8 -0
  648. package/lib/design-tokens/core/scss/theming/display.scss +17 -0
  649. package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
  650. package/lib/design-tokens/core/scss/theming/head.module.d.ts +3 -0
  651. package/lib/design-tokens/core/scss/theming/head.module.d.ts.map +1 -0
  652. package/lib/design-tokens/core/scss/theming/head.scss +7 -0
  653. package/lib/design-tokens/core/scss/theming/media.scss +8 -0
  654. package/lib/design-tokens/core/scss/theming/reset.scss +9 -0
  655. package/lib/design-tokens/core/scss/theming/spacing.scss +504 -0
  656. package/lib/design-tokens/core/scss/theming/typography-usage.scss +449 -0
  657. package/lib/design-tokens/core/scss/theming/variables.scss +407 -0
  658. package/lib/design-tokens/core/scss/theming/visibility.scss +122 -0
  659. package/lib/design-tokens/layouts/breakpoints.scss +9 -0
  660. package/lib/design-tokens/mixins/typography-usage.scss +452 -0
  661. package/lib/design-tokens/tokens_netflix.theme.d.ts +3 -0
  662. package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -0
  663. package/lib/directives/if-truthy.d.ts +10 -0
  664. package/lib/directives/if-truthy.d.ts.map +1 -0
  665. package/lib/directives/spread.d.ts +10 -0
  666. package/lib/directives/spread.d.ts.map +1 -0
  667. package/lib/field-J4OEwkTq.js +315 -0
  668. package/lib/icon-ClNBixxp.js +707 -0
  669. package/lib/icons/add.svg +3 -0
  670. package/lib/icons/arrow-back.svg +10 -0
  671. package/lib/icons/arrow-down.svg +3 -0
  672. package/lib/icons/arrow-fat-up-fill.svg +1 -0
  673. package/lib/icons/arrow-forward.svg +10 -0
  674. package/lib/icons/arrow-left.svg +3 -0
  675. package/lib/icons/arrow-right.svg +3 -0
  676. package/lib/icons/arrow-up.svg +3 -0
  677. package/lib/icons/assistant.svg +3 -0
  678. package/lib/icons/attention.svg +3 -0
  679. package/lib/icons/bold-arrow-up.svg +5 -0
  680. package/lib/icons/calendar.svg +5 -0
  681. package/lib/icons/caret-down.svg +4 -0
  682. package/lib/icons/check-circle.svg +3 -0
  683. package/lib/icons/check.svg +3 -0
  684. package/lib/icons/close.svg +3 -0
  685. package/lib/icons/contacts.svg +3 -0
  686. package/lib/icons/cre8-icons.svg +358 -0
  687. package/lib/icons/delta-down.svg +3 -0
  688. package/lib/icons/delta-up.svg +3 -0
  689. package/lib/icons/download.svg +5 -0
  690. package/lib/icons/edit.svg +5 -0
  691. package/lib/icons/ellipsis.svg +3 -0
  692. package/lib/icons/email.svg +3 -0
  693. package/lib/icons/envelope.svg +3 -0
  694. package/lib/icons/error-alt copy.svg +1 -0
  695. package/lib/icons/error-alt.svg +1 -0
  696. package/lib/icons/error-round.svg +3 -0
  697. package/lib/icons/error.svg +3 -0
  698. package/lib/icons/express-scripts copy.svg +8 -0
  699. package/lib/icons/express-scripts.svg +8 -0
  700. package/lib/icons/external-file.svg +3 -0
  701. package/lib/icons/external.svg +5 -0
  702. package/lib/icons/facebook copy.svg +3 -0
  703. package/lib/icons/facebook.svg +3 -0
  704. package/lib/icons/find-drug.svg +3 -0
  705. package/lib/icons/globe.svg +3 -0
  706. package/lib/icons/hand-heart.svg +5 -0
  707. package/lib/icons/help.svg +3 -0
  708. package/lib/icons/icon1.svg +72 -0
  709. package/lib/icons/info.svg +3 -0
  710. package/lib/icons/instagram copy.svg +10 -0
  711. package/lib/icons/instagram.svg +10 -0
  712. package/lib/icons/keyboard-arrow-down.svg +3 -0
  713. package/lib/icons/keyboard-arrow-left.svg +3 -0
  714. package/lib/icons/keyboard-arrow-right.svg +3 -0
  715. package/lib/icons/keyboard-arrow-up.svg +3 -0
  716. package/lib/icons/language.svg +3 -0
  717. package/lib/icons/light-bulb.svg +8 -0
  718. package/lib/icons/link.svg +4 -0
  719. package/lib/icons/linkedin copy.svg +3 -0
  720. package/lib/icons/linkedin.svg +3 -0
  721. package/lib/icons/location-on.svg +3 -0
  722. package/lib/icons/menu.svg +5 -0
  723. package/lib/icons/minus.svg +6 -0
  724. package/lib/icons/neutral.svg +3 -0
  725. package/lib/icons/new-rx-icon.svg +15 -0
  726. package/lib/icons/new-rx.svg +15 -0
  727. package/lib/icons/notifications.svg +3 -0
  728. package/lib/icons/open copy.svg +3 -0
  729. package/lib/icons/open.svg +3 -0
  730. package/lib/icons/order-status.svg +5 -0
  731. package/lib/icons/pause copy.svg +3 -0
  732. package/lib/icons/pause.svg +3 -0
  733. package/lib/icons/payment.svg +4 -0
  734. package/lib/icons/people.svg +3 -0
  735. package/lib/icons/person-bubble copy.svg +9 -0
  736. package/lib/icons/person-bubble.svg +9 -0
  737. package/lib/icons/person.svg +3 -0
  738. package/lib/icons/pinterest copy.svg +3 -0
  739. package/lib/icons/pinterest.svg +3 -0
  740. package/lib/icons/play-arrow.svg +3 -0
  741. package/lib/icons/play-circle-outline.svg +10 -0
  742. package/lib/icons/products.svg +6 -0
  743. package/lib/icons/progress-spinner.svg +5 -0
  744. package/lib/icons/refresh.svg +5 -0
  745. package/lib/icons/replay.svg +3 -0
  746. package/lib/icons/rss-feed copy.svg +4 -0
  747. package/lib/icons/rss-feed.svg +4 -0
  748. package/lib/icons/rx copy.svg +3 -0
  749. package/lib/icons/rx.svg +3 -0
  750. package/lib/icons/scheduler.svg +3 -0
  751. package/lib/icons/search.svg +10 -0
  752. package/lib/icons/settings.svg +3 -0
  753. package/lib/icons/share.svg +3 -0
  754. package/lib/icons/shop.svg +3 -0
  755. package/lib/icons/site.svg +4 -0
  756. package/lib/icons/spinner.svg +5 -0
  757. package/lib/icons/square.svg +3 -0
  758. package/lib/icons/success.svg +3 -0
  759. package/lib/icons/swap copy.svg +3 -0
  760. package/lib/icons/swap.svg +3 -0
  761. package/lib/icons/thumb-up copy.svg +3 -0
  762. package/lib/icons/thumb-up.svg +3 -0
  763. package/lib/icons/trending-flat copy.svg +3 -0
  764. package/lib/icons/trending-flat.svg +3 -0
  765. package/lib/icons/trending-up copy.svg +3 -0
  766. package/lib/icons/trending-up.svg +3 -0
  767. package/lib/icons/twitter copy.svg +3 -0
  768. package/lib/icons/twitter.svg +3 -0
  769. package/lib/icons/vaccine.svg +10 -0
  770. package/lib/icons/warning.svg +3 -0
  771. package/lib/icons/wellness.svg +7 -0
  772. package/lib/index.d.ts +84 -0
  773. package/lib/index.d.ts.map +1 -0
  774. package/lib/index.js +11685 -0
  775. package/lib/scripts/convert-scss-to-ts.d.ts +2 -0
  776. package/lib/scripts/convert-scss-to-ts.d.ts.map +1 -0
  777. package/lib/scripts/extract-tokens.d.ts +3 -0
  778. package/lib/scripts/extract-tokens.d.ts.map +1 -0
  779. package/lib/scripts/generateWesparkleThemes.d.ts +3 -0
  780. package/lib/scripts/generateWesparkleThemes.d.ts.map +1 -0
  781. package/lib/toBeAccessible.d.ts +9 -0
  782. package/lib/toBeAccessible.d.ts.map +1 -0
  783. package/lib/utilities/is-mobile.d.ts +5 -0
  784. package/lib/utilities/is-mobile.d.ts.map +1 -0
  785. package/lib/utilities/story-helpers.d.ts +9 -0
  786. package/lib/utilities/story-helpers.d.ts.map +1 -0
  787. package/lib/vite.config.cdn.d.ts +18 -0
  788. package/lib/vite.config.cdn.d.ts.map +1 -0
  789. package/lib/vite.config.d.ts +3 -0
  790. package/lib/vite.config.d.ts.map +1 -0
  791. package/package.json +150 -0
@@ -0,0 +1,2366 @@
1
+ import { css as f, html as c, nothing as p } from "lit";
2
+ import { ifDefined as b } from "lit-html/directives/if-defined.js";
3
+ import { property as a, query as C, state as v } from "lit/decorators.js";
4
+ import { a as B } from "./field-J4OEwkTq.js";
5
+ import { Cre8Element as _ } from "./components/components/cre8-element/components/cre8-element.js";
6
+ import "./icon-ClNBixxp.js";
7
+ import { Cre8FormElement as I } from "./components/components/cre8-form-element/components/cre8-form-element.js";
8
+ const P = f`@import '../../design-tokens/core/scss/theming/component';
9
+ @import '../../design-tokens/core/scss/theming/component';
10
+ @import "design-tokens/core/scss/utilities/visibility";
11
+
12
+ :host {
13
+ display: block;
14
+ }
15
+
16
+ /**
17
+ * Date Field Label
18
+ */
19
+ .cre8-c-date-picker__label {
20
+ @include label-styles;
21
+ }
22
+
23
+ /**
24
+ * Date Field Body
25
+ * 1) The div that contains the input and icons
26
+ */
27
+ .cre8-c-date-picker__body {
28
+ position: relative;
29
+ display: flex;
30
+ align-items: center;
31
+ }
32
+
33
+ /**
34
+ * Date Field Default Calendar Icon Button
35
+ * 1) Removes default calendar button and default calendar in Chrome
36
+ */
37
+ input::-webkit-calendar-picker-indicator {
38
+ display: none;
39
+ }
40
+
41
+ input[type="date"]::-webkit-input-placeholder {
42
+ visibility: hidden !important;
43
+ }
44
+
45
+ .cre8-c-date-picker__calendar-icon-button {
46
+ position: absolute;
47
+ right: size(1);
48
+ background: var(--cre8-color-bg-default);
49
+ border: none;
50
+ border-radius: 0;
51
+
52
+ --cre8-icon-height: size(3);
53
+ --cre8-icon-width: size(3);
54
+
55
+ .cre8-c-date-picker--disabled &, .cre8-c-date-picker--read-only & {
56
+ background: var(--cre8-color-bg-disabled);
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Date Field Input
62
+ * 1) The html5 input element
63
+ */
64
+ .cre8-c-date-picker__input {
65
+ @include input-styles;
66
+
67
+ /**
68
+ * Readonly input styles
69
+ */
70
+ &:read-only {
71
+ background-color: var(--cre8-color-bg-disabled);
72
+ border-color: var(--cre8-color-border-disabled);
73
+ cursor: default;
74
+ }
75
+ }
76
+ `, R = f`@import '../../design-tokens/core/scss/theming/component';
77
+
78
+ .cre8-c-calendar {
79
+ min-width: 340px; // this is the width of a calendar with the longest character month (September)
80
+ border: var(--cre8-color-border-strong);
81
+ border-radius: var(--cre8-border-radius-default);
82
+ border-width: var(--cre8-border-width-default);
83
+ border-style: var(--cre8-border-style-default);
84
+ margin-top: size(0.5);
85
+ background-color: var(--cre8-color-bg-default);
86
+ position: absolute;
87
+ }
88
+
89
+ /* shortcuts */
90
+ .cre8-c-calendar__header-shortcuts {
91
+ display: inline-flex;
92
+ justify-content: center;
93
+ width: 100%;
94
+ padding-top: size(2);
95
+ padding-bottom: size(1);
96
+
97
+ cre8-button + cre8-button {
98
+ padding-left: size(1);
99
+ }
100
+
101
+ cre8-button {
102
+ max-height: 32px;
103
+ }
104
+ }
105
+
106
+ table {
107
+ width: 100%;
108
+ }
109
+
110
+ /* table row */
111
+ tr {
112
+ @include cre8-typography-body-default();
113
+ display: grid;
114
+ grid-row-gap: 0.33em;
115
+ grid-template-columns: repeat(7, 1fr);
116
+ list-style: none;
117
+ margin: unset;
118
+ padding: unset;
119
+ position: relative;
120
+ }
121
+
122
+ /* day wrappers */
123
+ td {
124
+ align-items: center;
125
+ display: flex;
126
+ height: 48px;
127
+ justify-content: center;
128
+ width: 48px;
129
+ }
130
+
131
+ /* days */
132
+ .cre8-c-calendar :is(thead, tbody) :is(span, button) {
133
+ @include cre8-typography-body-default();
134
+ align-items: center;
135
+ block-size: 2em;
136
+ border-radius: var(--cre8-border-radius-brand);
137
+ display: flex;
138
+ inline-size: 2em;
139
+ justify-content: center;
140
+ margin-block: var(0, 0 0.33em);
141
+ user-select: none;
142
+ }
143
+
144
+ /* day buttons */
145
+ .cre8-c-calendar__day-button {
146
+ border: none;
147
+ background: none;
148
+ margin: 0;
149
+ padding: 0;
150
+
151
+ &:hover,
152
+ &:focus {
153
+ background: var(--cre8-color-bg-default-hover);
154
+ }
155
+
156
+ &.cre8-c-calendar__different-month {
157
+ color: var(--cre8-color-content-subtle);
158
+
159
+ &:hover,
160
+ &:focus {
161
+ background: var(--cre8-color-bg-subtle);
162
+ }
163
+ }
164
+
165
+ &[data-today] {
166
+ color: var(--cre8-color-content-brand);
167
+ border-color: var(--cre8-color-border-brand);
168
+ border-width: var(--cre8-border-width-default);
169
+ border-style: var(--cre8-border-style-default);
170
+ }
171
+
172
+ &[data-selected] {
173
+ background: var(--cre8-color-bg-brand-strong);
174
+ color: var(--cre8-color-content-knockout);
175
+
176
+ &:hover,
177
+ &:focus {
178
+ background: var(--cre8-color-bg-brand-strong-hover);
179
+ }
180
+ }
181
+ }
182
+
183
+ `, q = f`@import '../../design-tokens/core/scss/theming/component';
184
+
185
+ .cre8-c-calendar-month-modal {
186
+ padding: size(1);
187
+ }
188
+
189
+ /* grid */
190
+ ol {
191
+ @include cre8-typography-body-default();
192
+ display: grid;
193
+ grid-row-gap: 0.33em;
194
+ grid-template-columns: repeat(3, 1fr);
195
+ list-style: none;
196
+ margin: unset;
197
+ padding: unset;
198
+ }
199
+
200
+ li {
201
+ display: inline-flex;
202
+ justify-content: center;
203
+ }
204
+ `, j = f`@import '../../design-tokens/core/scss/theming/component';
205
+
206
+ /* ------------------------------------ *\
207
+ #SPINNER
208
+ \* ------------------------------------ */
209
+
210
+ @keyframes loading {
211
+ 0% {
212
+ transform: rotate(0deg);
213
+ }
214
+ 100% {
215
+ transform: rotate(360deg);
216
+ }
217
+ }
218
+
219
+ @keyframes spinner-circle-animation {
220
+ 0%,
221
+ 25% {
222
+ stroke-dashoffset: 280;
223
+ transform: rotate(0);
224
+ }
225
+
226
+ 50%,
227
+ 75% {
228
+ stroke-dashoffset: 75;
229
+ transform: rotate(45deg);
230
+ }
231
+
232
+ 100% {
233
+ stroke-dashoffset: 280;
234
+ transform: rotate(360deg);
235
+ }
236
+ }
237
+
238
+ :host {
239
+ display: inline-block;
240
+ --spinner-stroke-dasharray: 282.743px;
241
+ --spinner-large-stroke-width: 10;
242
+ --spinner-small-stroke-width: 14;
243
+ --spinner-large-width: 4.5rem;
244
+ --spinner-small-width: 1.5rem;
245
+ @include cre8-typography-label-small();
246
+ }
247
+
248
+ .cre8-c-spinner,
249
+ .cre8-c-spinner--large {
250
+ --spinner-height: var(--spinner-large-width);
251
+ --spinner-width: var(--spinner-large-width);
252
+ --icon-color: var(--cre8-color-content-brand);
253
+
254
+ .cre8-c-spinner__icon {
255
+ display: block;
256
+ }
257
+
258
+ .cre8-c-spinner__label {
259
+ display: block;
260
+ margin-top: var(--cre8-spacing-8);
261
+ }
262
+ }
263
+
264
+ .cre8-c-spinner--small {
265
+ --spinner-height: var(--spinner-small-width);
266
+ --spinner-width: var(--spinner-small-width);
267
+ --icon-color: var(--cre8-color-content-brand);
268
+ display: flex;
269
+ align-items: center;
270
+ .cre8-c-spinner__label {
271
+ display: inline-block;
272
+ margin-left: var(--cre8-spacing-8);
273
+ margin-top: 0;
274
+ vertical-align: 0.35rem;
275
+ }
276
+ }
277
+
278
+ .cre8-c-spinner--inverse {
279
+ --icon-color: var(--cre8-color-content-brand-knockout);
280
+ --label-color: var(--cre8-color-content-brand-knockout); // --cre8-color-content-default-knockout
281
+ }
282
+
283
+ .cre8-c-spinner--secondary.cre8-c-spinner--inverse.cre8-c-spinner--neutral {
284
+ --icon-color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
285
+ --label-color: var(--cre8-color-button-secondary-neutral-inverse-content-active); // --cre8-color-content-default-knockout
286
+ }
287
+
288
+ .cre8-c-spinner--neutral {
289
+ --icon-color: var(--cre8-color-button-secondary-neutral-content-active);
290
+ }
291
+
292
+ .cre8-c-spinner--primary.cre8-c-spinner--inverse {
293
+ --icon-color: var(--cre8-color-button-primary-inverse-content-active);
294
+ }
295
+
296
+ .cre8-c-spinner--secondary.cre8-c-spinner--inverse {
297
+ --icon-color: var(--cre8-color-button-secondary-inverse-content-active);
298
+ }
299
+
300
+ .cre8-c-spinner--tertiary.cre8-c-spinner--inverse {
301
+ --icon-color: var(--cre8-color-button-tertiary-inverse-content-active);
302
+ }
303
+
304
+ .cre8-c-spinner__label {
305
+ color: var(--label-color, var(--cre8-color-content-default));
306
+ }
307
+
308
+ .cre8-c-spinner__hidden-label {
309
+ display: none;
310
+ }
311
+
312
+ .cre8-c-spinner__icon {
313
+ height: var(--spinner-height, 1em);
314
+ width: var(--spinner-width, 1em);
315
+
316
+ circle {
317
+ fill: transparent;
318
+ stroke: var(--icon-color, inherit);
319
+ stroke-dasharray: var(--spinner-stroke-dasharray);
320
+ stroke-linecap: round;
321
+ stroke-width: var(--spinner-large-stroke-width);
322
+ transform-origin: 50% 50%;
323
+ }
324
+ }
325
+
326
+ .cre8-c-spinner__icon-small {
327
+ circle {
328
+ stroke-width: var(--spinner-small-stroke-width);
329
+ }
330
+ }
331
+
332
+ .cre8-c-spinner--indeterminate .cre8-c-spinner__icon {
333
+ animation: loading 2s linear 0s infinite;
334
+
335
+ circle {
336
+ animation-duration: 1.4s;
337
+ animation-iteration-count: infinite;
338
+ animation-name: spinner-circle-animation;
339
+ animation-timing-function: ease-in-out;
340
+ }
341
+ }
342
+
343
+ .cre8-c-spinner--determinate .cre8-c-spinner__icon {
344
+ overflow: hidden;
345
+ transform: rotate(-90deg);
346
+ transform-origin: center center;
347
+ }
348
+ `;
349
+ var L = Object.defineProperty, w = (u, e, r, o) => {
350
+ for (var t = void 0, n = u.length - 1, i; n >= 0; n--)
351
+ (i = u[n]) && (t = i(e, r, t) || t);
352
+ return t && L(e, r, t), t;
353
+ };
354
+ const S = class S extends _ {
355
+ constructor() {
356
+ super(), this.progress = 0, this.size = "large";
357
+ const e = Math.floor(Math.random() * 9e5) + 1e5;
358
+ this.labelId = `cre8-spinner-${e}`;
359
+ }
360
+ renderDeterminateSpinner() {
361
+ const e = Math.max(Math.min(100, this.progress === 0 ? this.progress = 1 : this.progress), 0), r = 2 * 3.1415926 * 45 - e / 100 * (2 * 3.1415926 * 45);
362
+ return c` ${this.size === "small" ? c`
363
+ <svg class="cre8-c-spinner__icon cre8-c-spinner__icon-small" aria-hidden="true" viewBox="0 0 100 100">
364
+ <circle cx="50%" cy="50%" r="43" stroke-dashoffset="${r}"></circle>
365
+ </svg>
366
+ ` : c` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
367
+ <circle cx="50%" cy="50%" r="45" stroke-dashoffset="${r}"></circle>
368
+ </svg>`}`;
369
+ }
370
+ renderInDeterminateSpinner() {
371
+ return c` ${this.size === "small" ? c`
372
+ <svg class="cre8-c-spinner__icon cre8-c-spinner__icon-small" aria-hidden="true" viewBox="0 0 100 100">
373
+ <circle cx="50%" cy="50%" r="43"></circle>
374
+ </svg>
375
+ ` : c` <svg class="cre8-c-spinner__icon" aria-hidden="true" viewBox="0 0 100 100">
376
+ <circle cx="50%" cy="50%" r="45"></circle>
377
+ </svg>`}`;
378
+ }
379
+ render() {
380
+ const e = this.componentClassNames("cre8-c-spinner", {
381
+ "cre8-c-spinner--large": this.size === "large",
382
+ "cre8-c-spinner--small": this.size === "small",
383
+ "cre8-c-spinner--inverse": this.inverse,
384
+ "cre8-c-spinner--neutral": this.neutral,
385
+ "cre8-c-spinner--primary": this.buttonVariant === "primary",
386
+ "cre8-c-spinner--secondary": this.buttonVariant === "secondary",
387
+ "cre8-c-spinner--tertiary": this.buttonVariant === "tertiary",
388
+ "cre8-c-spinner--determinate": this.determinate,
389
+ "cre8-c-spinner--indeterminate": !this.determinate
390
+ });
391
+ return c`
392
+ <div
393
+ class="${e}"
394
+ role="progressbar"
395
+ aria-labelledby="${this.labelId}"
396
+ aria-valuemin="0"
397
+ aria-valuemax="100"
398
+ aria-valuenow="${this.determinate ? this.progress : p}"
399
+ part="base"
400
+ >
401
+ ${this.determinate ? this.renderDeterminateSpinner() : this.renderInDeterminateSpinner()}
402
+ <div
403
+ id="${this.labelId}"
404
+ class="${this.label ? "cre8-c-spinner__label" : "cre8-c-spinner__hidden-label"}"
405
+ part="label"
406
+ >
407
+ ${this.label}
408
+ </div>
409
+ </div>
410
+ `;
411
+ }
412
+ };
413
+ S.styles = j;
414
+ let g = S;
415
+ w([
416
+ a({ type: Boolean, reflect: !0 })
417
+ ], g.prototype, "determinate");
418
+ w([
419
+ a({ type: Boolean, reflect: !0 })
420
+ ], g.prototype, "inverse");
421
+ w([
422
+ a({ type: Boolean, reflect: !0 })
423
+ ], g.prototype, "neutral");
424
+ w([
425
+ a()
426
+ ], g.prototype, "buttonVariant");
427
+ w([
428
+ a()
429
+ ], g.prototype, "label");
430
+ w([
431
+ a({ reflect: !0, type: Number })
432
+ ], g.prototype, "progress");
433
+ w([
434
+ a()
435
+ ], g.prototype, "size");
436
+ customElements.get("cre8-loading-spinner") === void 0 && customElements.define("cre8-loading-spinner", g);
437
+ const K = f`
438
+ @import '../../design-tokens/core/scss/theming/component';
439
+
440
+ :host {
441
+ display: inline-flex;
442
+ }
443
+ :host([fullWidth]) {
444
+ display: flex;
445
+
446
+ }
447
+ /**
448
+ * 1) Button or link that has functionality to it
449
+ */
450
+
451
+ /**
452
+ * Primary button
453
+ */
454
+ .cre8-c-button {
455
+ @include cre8-typography-label-default();
456
+ width: var(--cre8-button-width, auto);
457
+ height: var(--cre8-button-height, auto);
458
+ min-width: var(--cre8-button-min-width, auto);
459
+ min-height: var(--cre8-button-min-height, auto);
460
+ justify-content: center;
461
+ text-align: center;
462
+ margin-top: var( --cre8-button-margin-top, 0);
463
+ margin-bottom: var( --cre8-button-margin-bottom, 0);
464
+ margin-left: var( --cre8-button-margin-left, 0);
465
+ margin-right: var( --cre8-button-margin-right, 0);
466
+ display: inline-flex;
467
+ align-items: center;
468
+ border-width: var(--cre8-border-width-button-default);
469
+ box-shadow: var(--cre8-shadow-button);
470
+ padding-top: var(--cre8-button-padding-vertical-medium);
471
+ padding-right: var(--cre8-button-padding-horizontal-medium);
472
+ padding-bottom: var(--cre8-button-padding-vertical-medium);
473
+ padding-left: var(--cre8-button-padding-horizontal-medium);
474
+ margin: 0;
475
+ cursor: pointer;
476
+ border-style: var(--cre8-border-style-default);
477
+ transition: revert;
478
+ transform: revert;
479
+ white-space: nowrap;
480
+ &:hover,
481
+ &:focus,
482
+ &:active,
483
+ &:focus-visible {
484
+ border-style: var(--cre8-border-style-default);
485
+ box-shadow: none;
486
+ transform: revert;
487
+ transition: revert;
488
+ }
489
+ &.cre8-c-button--primary {
490
+ background: var(--cre8-color-button-primary-bg);
491
+ border-width: var(--cre8-border-width-button-default);
492
+ border-color: var(--cre8-color-button-primary-border);
493
+ border-radius: var(--cre8-border-radius-button);
494
+ box-shadow: var(--cre8-shadow-button);
495
+ color: var(--cre8-color-button-primary-content);
496
+ --cre8-icon-fill: var(--cre8-color-button-primary-content);
497
+ &:hover,
498
+ &:focus {
499
+ box-shadow: none;
500
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-hover);
501
+ color: var(--cre8-color-button-primary-content-hover);
502
+ border-color: var(--cre8-color-button-primary-border-hover);
503
+ background: var(--cre8-color-button-primary-bg-hover);
504
+ text-decoration: none;
505
+ &:focus {
506
+ @includefocus();
507
+ }
508
+ }
509
+ &:focus-visible,
510
+ &:active,
511
+ &.cre8-c-button--loading {
512
+ box-shadow: none;
513
+ color: var(--cre8-color-button-primary-content-active);
514
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-active);
515
+ border-color: var(--cre8-color-button-primary-border-active);
516
+ background-color: var(--cre8-color-button-primary-bg-active);
517
+ }
518
+ &:focus-visible{
519
+ @includefocus();
520
+ }
521
+ &.cre8-c-button--loading{
522
+ cursor: not-allowed;
523
+ }
524
+ /**
525
+ * Disabled primary and secondary button
526
+ */
527
+ &:disabled {
528
+ box-shadow: none;
529
+ background-color: var(--cre8-color-button-primary-bg-disabled);
530
+ border-color: var(--cre8-color-button-primary-border-disabled);
531
+ color: var(--cre8-color-button-primary-content-disabled);
532
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
533
+ cursor: not-allowed;
534
+ outline: none;
535
+ &:hover,
536
+ &:focus,
537
+ &:active,
538
+ &:focus-visible {
539
+ outline: none;
540
+ background-color: var(--cre8-color-button-primary-bg-disabled);
541
+ border-color: var(--cre8-color-button-primary-border-disabled);
542
+ color: var(--cre8-color-button-primary-content-disabled);
543
+ --cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
544
+ }
545
+ }
546
+ }
547
+
548
+ /**
549
+ * Primary button inverse
550
+ */
551
+ &.cre8-c-button--primary.cre8-c-button--inverse {
552
+ background: var(--cre8-color-button-primary-inverse-bg);
553
+ border-width: var(--cre8-border-width-button-default);
554
+ border-color: var(--cre8-color-button-primary-inverse-border);
555
+ border-radius: var(--cre8-border-radius-button);
556
+ box-shadow: var(--cre8-shadow-button);
557
+ color: var(--cre8-color-button-primary-inverse-content);
558
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content);
559
+ &:hover,
560
+ &:focus {
561
+ box-shadow: none;
562
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-hover);
563
+ color: var(--cre8-color-button-primary-inverse-content-hover);
564
+ border-color: var(--cre8-color-button-primary-inverse-border-hover);
565
+ background: var(--cre8-color-button-primary-inverse-bg-hover);
566
+ text-decoration: none;
567
+ &:focus {
568
+ @includefocus();
569
+ }
570
+ }
571
+ &:focus-visible,
572
+ &:active,
573
+ &.cre8-c-button--loading {
574
+ box-shadow: none;
575
+ color: var(--cre8-color-button-primary-inverse-content-active);
576
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-active);
577
+ border-color: var(--cre8-color-button-primary-inverse-border-active);
578
+ background-color: var(--cre8-color-button-primary-inverse-bg-active);
579
+ }
580
+ &:focus-visible{
581
+ @includefocus();
582
+ }
583
+ &.cre8-c-button--loading{
584
+ cursor: not-allowed;
585
+ }
586
+
587
+ &:disabled {
588
+ box-shadow: none;
589
+ background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
590
+ border-color: var(--cre8-color-button-primary-inverse-border-disabled);
591
+ color: var(--cre8-color-button-primary-inverse-content-disabled);
592
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
593
+ cursor: not-allowed;
594
+ outline: none;
595
+ &:hover,
596
+ &:focus,
597
+ &:active,
598
+ &:focus-visible {
599
+ outline: none;
600
+ background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
601
+ border-color: var(--cre8-color-button-primary-inverse-border-disabled);
602
+ color: var(--cre8-color-button-primary-inverse-content-disabled);
603
+ --cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
604
+ }
605
+ }
606
+ }
607
+
608
+ /**
609
+ * Secondary button
610
+ * The icon button shares the styles of the standard secondary button
611
+ */
612
+ &.cre8-c-button--secondary {
613
+ background-color: var(--cre8-color-button-secondary-bg);
614
+ border-color: var(--cre8-color-button-secondary-border);
615
+ color: var(--cre8-color-button-secondary-content);
616
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content);
617
+ border-radius: var(--cre8-border-radius-button);
618
+ border-width: var(--cre8-border-width-button-default);
619
+
620
+ &:hover,
621
+ &:focus {
622
+ background-color: var(--cre8-color-button-secondary-bg-hover);
623
+ border-color: var(--cre8-color-button-secondary-border-hover);
624
+ color: var(--cre8-color-button-secondary-content-hover);
625
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
626
+ &:focus {
627
+ @includefocus();
628
+ }
629
+ }
630
+ &:focus-visible,
631
+ &:active,
632
+ &.cre8-c-button--loading {
633
+ transition: none;
634
+ transform: none;
635
+ background-color: var(--cre8-color-button-secondary-bg-active);
636
+ border-color: var(--cre8-color-button-secondary-border-active);
637
+ color: var(--cre8-color-button-secondary-content-active);
638
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
639
+ }
640
+ &:focus-visible {
641
+ @includefocus();
642
+ }
643
+ &.cre8-c-button--loading {
644
+ cursor: not-allowed;
645
+ }
646
+
647
+ &:disabled {
648
+ box-shadow: none;
649
+ background-color: var(--cre8-color-button-secondary-bg-disabled);
650
+ border-color: var(--cre8-color-button-secondary-border-disabled);
651
+ color: var(--cre8-color-button-secondary-content-disabled);
652
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
653
+ outline: none;
654
+ border-radius: var(--cre8-border-radius-button);
655
+ border-width: var(--cre8-border-width-button-default);
656
+ cursor: not-allowed;
657
+ &:hover,
658
+ &:focus,
659
+ &:active,
660
+ &:focus-visible {
661
+ outline: none;
662
+ background-color: var(--cre8-color-button-secondary-bg-disabled);
663
+ border-color: var(--cre8-color-button-secondary-border-disabled);
664
+ color: var(--cre8-color-button-secondary-content-disabled);
665
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
666
+ }
667
+ }
668
+ }
669
+
670
+ /**
671
+ * Secondary button neutral
672
+ */
673
+ &.cre8-c-button--secondary.cre8-c-button--neutral {
674
+ background-color: var(--cre8-color-button-secondary-neutral-bg);
675
+ border-color: var(--cre8-color-button-secondary-neutral-border);
676
+ color: var(--cre8-color-button-secondary-neutral-content);
677
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content);
678
+ border-radius: var(--cre8-border-radius-button);
679
+ border-width: var(--cre8-border-width-button-default);
680
+
681
+ &:hover,
682
+ &:focus {
683
+ background-color: var(--cre8-color-button-secondary-neutral-bg-hover);
684
+ border-color: var(--cre8-color-button-secondary-neutral-border-hover);
685
+ color: var(--cre8-color-button-secondary-neutral-content-hover);
686
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-hover);
687
+ &:focus {
688
+ @includefocus();
689
+ }
690
+ }
691
+ &:focus-visible,
692
+ &:active,
693
+ &.cre8-c-button--loading {
694
+ transition: none;
695
+ transform: none;
696
+ background-color: var(--cre8-color-button-secondary-neutral-bg-active);
697
+ border-color: var(--cre8-color-button-secondary-neutral-border-active);
698
+ color: var(--cre8-color-button-secondary-neutral-content-active);
699
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-active);
700
+ }
701
+ &:focus-visible {
702
+ @includefocus();
703
+ }
704
+
705
+ &:disabled {
706
+ box-shadow: none;
707
+ background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
708
+ border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
709
+ color: var(--cre8-color-button-secondary-neutral-content-disabled);
710
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
711
+ outline: none;
712
+ border-radius: var(--cre8-border-radius-button);
713
+ border-width: var(--cre8-border-width-button-default);
714
+ cursor: not-allowed;
715
+ &:hover,
716
+ &:focus,
717
+ &:active,
718
+ &:focus-visible {
719
+ outline: none;
720
+ background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
721
+ border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
722
+ color: var(--cre8-color-button-secondary-neutral-content-disabled);
723
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
724
+ }
725
+ }
726
+ }
727
+
728
+ /**
729
+ * Secondary button inverse
730
+ */
731
+ &.cre8-c-button--secondary.cre8-c-button--inverse {
732
+ background-color: var(--cre8-color-button-secondary-inverse-bg);
733
+ border-color: var(--cre8-color-button-secondary-inverse-border);
734
+ color: var(--cre8-color-button-secondary-inverse-content);
735
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content);
736
+ border-radius: var(--cre8-border-radius-button);
737
+ border-width: var(--cre8-border-width-button-default);
738
+
739
+ &:hover,
740
+ &:focus {
741
+ background-color: var(--cre8-color-button-secondary-inverse-bg-hover);
742
+ border-color: var(--cre8-color-button-secondary-inverse-border-hover);
743
+ color: var(--cre8-color-button-secondary-inverse-content-hover);
744
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-hover);
745
+ &:focus {
746
+ @includefocus();
747
+ }
748
+ }
749
+ &:focus-visible,
750
+ &:active,
751
+ &.cre8-c-button--loading {
752
+ transition: none;
753
+ transform: none;
754
+ background-color: var(--cre8-color-button-secondary-inverse-bg-active);
755
+ border-color: var(--cre8-color-button-secondary-inverse-border-active);
756
+ color: var(--cre8-color-button-secondary-inverse-content-active);
757
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-active);
758
+ }
759
+ &:focus-visible {
760
+ @includefocus();
761
+ }
762
+
763
+ &:disabled {
764
+ box-shadow: none;
765
+ background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
766
+ border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
767
+ color: var(--cre8-color-button-secondary-inverse-content-disabled);
768
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
769
+ outline: none;
770
+ border-radius: var(--cre8-border-radius-button);
771
+ border-width: var(--cre8-border-width-button-default);
772
+ cursor: not-allowed;
773
+ &:hover,
774
+ &:focus,
775
+ &:active,
776
+ &:focus-visible {
777
+ outline: none;
778
+ background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
779
+ border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
780
+ color: var(--cre8-color-button-secondary-inverse-content-disabled);
781
+ --cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
782
+ }
783
+ }
784
+ }
785
+
786
+ /**
787
+ * Secondary button neutral inverse
788
+ */
789
+ &.cre8-c-button--secondary.cre8-c-button--neutral.cre8-c-button--inverse {
790
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg);
791
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border);
792
+ color: var(--cre8-color-button-secondary-neutral-inverse-content);
793
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content);
794
+ border-radius: var(--cre8-border-radius-button);
795
+ border-width: var(--cre8-border-width-button-default);
796
+
797
+ &:hover,
798
+ &:focus {
799
+ @includefocus();
800
+ background-color: var(--cre8-color-button-secondary-neutral-bg-active);
801
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
802
+ outline-color: var(--cre8-color-button-secondary-neutral-inverse-outline);
803
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
804
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
805
+ }
806
+
807
+ &:focus-visible,
808
+ &:active,
809
+ &.cre8-c-button--loading {
810
+ transition: none;
811
+ transform: none;
812
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-active);
813
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
814
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
815
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
816
+ }
817
+ &:focus-visible {
818
+ @includefocus();
819
+ }
820
+
821
+ &:disabled {
822
+ box-shadow: none;
823
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
824
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
825
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
826
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
827
+ outline: none;
828
+ border-radius: var(--cre8-border-radius-button);
829
+ border-width: var(--cre8-border-width-button-default);
830
+ cursor: not-allowed;
831
+ &:hover,
832
+ &:focus,
833
+ &:active,
834
+ &:focus-visible {
835
+ outline: none;
836
+ background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
837
+ border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
838
+ color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
839
+ --cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
840
+ }
841
+ }
842
+ }
843
+
844
+ /**
845
+ * Tertiary button
846
+ */
847
+ &.cre8-c-button--tertiary {
848
+ border-radius: var(--cre8-border-radius-button);
849
+ background-color: var(--cre8-color-button-tertiary-bg);
850
+ border-width: var(--cre8-border-width-button-default);
851
+ border-color: var(--cre8-color-button-tertiary-border);
852
+ color: var(--cre8-color-button-tertiary-content);
853
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content);
854
+ box-shadow: none;
855
+ &:hover,
856
+ &:focus {
857
+ border-radius: var(--cre8-border-radius-button);
858
+ background-color: var(--cre8-color-button-tertiary-bg-hover);
859
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
860
+ border-color: var(--cre8-color-button-tertiary-border-hover);
861
+ color: var(--cre8-color-button-tertiary-content-hover);
862
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-hover);
863
+ &:focus {
864
+ @includefocusTertiary();
865
+ }
866
+ }
867
+
868
+ &:focus-visible,
869
+ &:active,
870
+ &.cre8-c-button--loading {
871
+ border-radius: var(--cre8-border-radius-button);
872
+ background-color: var(--cre8-color-button-tertiary-bg-active);
873
+ border-color: var(--cre8-color-button-tertiary-border-active);
874
+ border-width: var(--cre8-border-width-button-default);
875
+ color: var(--cre8-color-button-tertiary-content-active);
876
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-active);
877
+ }
878
+ &:focus-visible {
879
+ @includefocusTertiary();
880
+ }
881
+ &.cre8-c-button--loading {
882
+ cursor: not-allowed;
883
+ }
884
+ &:disabled {
885
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
886
+ border-color: transparent;
887
+ color: var(--cre8-color-button-tertiary-content-disabled);
888
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
889
+ outline: none;
890
+ box-shadow: none;
891
+ cursor: not-allowed;
892
+
893
+ &:hover,
894
+ &:focus {
895
+ outline: none;
896
+ box-shadow: none;
897
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
898
+ color: var(--cre8-color-button-tertiary-content-disabled);
899
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
900
+ }
901
+ &:active,
902
+ &:focus-visible {
903
+ outline: none;
904
+ box-shadow: none;
905
+ background-color: var(--cre8-color-button-tertiary-bg-disabled);
906
+ color: var(--cre8-color-button-tertiary-content-disabled);
907
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
908
+ }
909
+ }
910
+ }
911
+
912
+ /**
913
+ * Tertiary button neutral
914
+ */
915
+ &.cre8-c-button--tertiary.cre8-c-button--neutral {
916
+ background-color: var(--cre8-color-button-tertiary-neutral-bg);
917
+ border-color: var(--cre8-color-button-tertiary-border);
918
+ color: var(--cre8-color-button-tertiary-neutral-content);
919
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content);
920
+ border-radius: var(--cre8-border-radius-button);
921
+ border-width: var(--cre8-border-width-button-default);
922
+
923
+ &:hover,
924
+ &:focus {
925
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-hover);
926
+ border-color: var(--cre8-color-button-tertiary-neutral-border-hover);
927
+ color: var(--cre8-color-button-tertiary-neutral-content-hover);
928
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-hover);
929
+ outline-color: var(--cre8-color-button-tertiary-neutral-outline);
930
+ }
931
+
932
+ &:focus-visible,
933
+ &:active,
934
+ &.cre8-c-button--loading {
935
+ transition: none;
936
+ transform: none;
937
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-active);
938
+ border-color: var(--cre8-color-button-tertiary-neutral-border-active);
939
+ color: var(--cre8-color-button-tertiary-neutral-content-active);
940
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-active);
941
+ }
942
+
943
+ &:focus-visible {
944
+ @includefocus();
945
+ }
946
+
947
+ &:disabled {
948
+ box-shadow: none;
949
+ background-color: var(--cre8-color-button-tertiary-neutral-bg-disabled);
950
+ border-color: var(--cre8-color-button-tertiary-neutral-border-disabled);
951
+ color: var(--cre8-color-button-tertiary-neutral-content-disabled);
952
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-disabled);
953
+ outline: none;
954
+ border-radius: var(--cre8-border-radius-button);
955
+ border-width: var(--cre8-border-width-button-default);
956
+
957
+ cursor: not-allowed;
958
+ }
959
+ }
960
+
961
+ /**
962
+ * Tertiary button inverse
963
+ */
964
+ &.cre8-c-button--tertiary.cre8-c-button--inverse {
965
+ border-radius: var(--cre8-border-radius-button);
966
+ background-color: var(--cre8-color-button-tertiary-inverse-bg);
967
+ border-width: var(--cre8-border-width-button-default);
968
+ border-color: var(--cre8-color-button-tertiary-inverse-border);
969
+ color: var(--cre8-color-button-tertiary-inverse-content);
970
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content);
971
+ box-shadow: none;
972
+
973
+ &:hover,
974
+ &:focus {
975
+ border-radius: var(--cre8-border-radius-button);
976
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-hover);
977
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
978
+ border-color: var(--cre8-color-button-tertiary-inverse-border-hover);
979
+ color: var(--cre8-color-button-tertiary-inverse-content-hover);
980
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-hover);
981
+ outline-color: var(--cre8-color-button-tertiary-inverse-outline);
982
+ }
983
+
984
+ &:focus-visible,
985
+ &:active,
986
+ &.cre8-c-button--loading {
987
+ border-radius: var(--cre8-border-radius-button);
988
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-active);
989
+ border-color: var(--cre8-color-button-tertiary-inverse-border-active);
990
+ border-width: var(--cre8-border-width-button-default);
991
+ color: var(--cre8-color-button-tertiary-inverse-content-active);
992
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-active);
993
+ outline-color: var(--cre8-color-button-tertiary-inverse-outline);
994
+ }
995
+
996
+ &.cre8-c-button--loading {
997
+ cursor: not-allowed;
998
+ }
999
+ &:disabled {
1000
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
1001
+ border-color: transparent;
1002
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
1003
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
1004
+ outline: none;
1005
+ box-shadow: none;
1006
+ cursor: not-allowed;
1007
+
1008
+ &:hover,
1009
+ &:focus {
1010
+ outline: none;
1011
+ box-shadow: none;
1012
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
1013
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
1014
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
1015
+ }
1016
+ &:active,
1017
+ &:focus-visible {
1018
+ outline: none;
1019
+ box-shadow: none;
1020
+ background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
1021
+ color: var(--cre8-color-button-tertiary-inverse-content-disabled);
1022
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
1023
+ }
1024
+ }
1025
+ }
1026
+
1027
+ /**
1028
+ * Tertiary Neutral button inverse
1029
+ */
1030
+ &.cre8-c-button--tertiary.cre8-c-button--neutral.cre8-c-button--inverse {
1031
+ border-radius: var(--cre8-border-radius-button);
1032
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg);
1033
+ border-width: var(--cre8-border-width-button-default);
1034
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content);
1035
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content);
1036
+ box-shadow: none;
1037
+
1038
+ &:hover,
1039
+ &:focus {
1040
+ border-radius: var(--cre8-border-radius-button);
1041
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-hover);
1042
+ border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
1043
+ border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-hover);
1044
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
1045
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
1046
+ outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
1047
+ }
1048
+
1049
+ &:focus-visible,
1050
+ &:active,
1051
+ &.cre8-c-button--loading {
1052
+ border-radius: var(--cre8-border-radius-button);
1053
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-active);
1054
+ border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-active);
1055
+ border-width: var(--cre8-border-width-button-default);
1056
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
1057
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
1058
+ outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
1059
+ }
1060
+
1061
+ &.cre8-c-button--loading {
1062
+ cursor: not-allowed;
1063
+ }
1064
+
1065
+ &:disabled {
1066
+ background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-disabled);
1067
+ border-color: transparent;
1068
+ color: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
1069
+ --cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
1070
+ outline: none;
1071
+ box-shadow: none;
1072
+ cursor: not-allowed;
1073
+ }
1074
+ }
1075
+
1076
+ &.cre8-c-button.cre8-c-button--secondary.cre8-c-button--split-button-text {
1077
+ border-radius: var(--cre8-border-radius-button) var(--cre8-border-radius-none) var(--cre8-border-radius-none) var(--cre8-border-radius-button);
1078
+ border-color: var(--cre8-color-button-secondary-border);
1079
+ border-width: var(--cre8-border-width-button-default);
1080
+ color: var(--cre8-color-button-secondary-content);
1081
+ &:active,
1082
+ &:focus-visible {
1083
+ outline: none;
1084
+ }
1085
+ &.cre8-c-button--lg {
1086
+ padding: var(--cre8-button-padding-vertical-large) var(--cre8-button-padding-horizontal-large);
1087
+ }
1088
+ &.cre8-c-button--sm {
1089
+ padding: var(--cre8-button-padding-vertical-small) var(--cre8-button-padding-horizontal-small);
1090
+ }
1091
+ }
1092
+
1093
+ &.cre8-c-button.cre8-c-button--icon-only.cre8-c-button--split-button-caret {
1094
+ padding: var(--cre8-button-padding-vertical-medium);
1095
+ border-radius: var(--cre8-border-radius-none) var(--cre8-border-radius-button) var(--cre8-border-radius-button) var(--cre8-border-radius-none);
1096
+ height: 100%;
1097
+ border-left: none !important ;
1098
+ border-collapse: collapse;
1099
+ background: var(--cre8-color-button-secondary-bg);
1100
+ border-color: var(--cre8-color-button-secondary-border);
1101
+ border-width: var(--cre8-border-width-button-default);
1102
+ color: var(--cre8-color-button-secondary-content);
1103
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content);
1104
+
1105
+ &:hover,
1106
+ &:focus {
1107
+ background: var(--cre8-color-button-secondary-bg-hover);
1108
+ border-color: var(--cre8-color-button-secondary-border-hover);
1109
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
1110
+ outline: none;
1111
+ border-left: none;
1112
+ border-collapse: collapse;
1113
+ }
1114
+ &:active,
1115
+ &:focus-visible {
1116
+ background: var(--cre8-color-button-secondary-bg-active);
1117
+ border-color: var(--cre8-color-button-secondary-border-active);
1118
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
1119
+ outline: none;
1120
+ border-left: none;
1121
+ border-collapse: collapse;
1122
+ }
1123
+ }
1124
+ }
1125
+
1126
+ .cre8-c-button--lg {
1127
+ padding: var(--cre8-button-padding-vertical-large);
1128
+ }
1129
+ .cre8-c-button--sm {
1130
+ padding: var(--cre8-button-padding-vertical-small);
1131
+ }
1132
+
1133
+ .cre8-c-button--icon-only {
1134
+ padding: var(--cre8-button-padding-vertical-small);
1135
+ color: var(--cre8-icon-fill, currentColor);
1136
+ }
1137
+
1138
+ /**
1139
+  * Full-width button
1140
+  */
1141
+ .cre8-c-button--full-width {
1142
+ width: 100%;
1143
+ display: flex;
1144
+ }
1145
+
1146
+ /**
1147
+ * Small button
1148
+ */
1149
+ .cre8-c-button--sm {
1150
+ @include cre8-typography-label-small();
1151
+ padding-top: var(--cre8-button-padding-vertical-small);
1152
+ padding-right: var(--cre8-button-padding-horizontal-small);
1153
+ padding-bottom: var(--cre8-button-padding-vertical-small);
1154
+ padding-left: var(--cre8-button-padding-horizontal-small);
1155
+ }
1156
+
1157
+ /**
1158
+ * Small button sized for icon only
1159
+ */
1160
+ .cre8-c-button--sm.cre8-c-button--icon-only {
1161
+ @include cre8-typography-label-small();
1162
+ padding-top: var(--cre8-button-padding-vertical-small-icon-only);
1163
+ padding-right: var(--cre8-button-padding-horizontal-small-icon-only);
1164
+ padding-bottom: var(--cre8-button-padding-vertical-small-icon-only);
1165
+ padding-left: var(--cre8-button-padding-horizontal-small-icon-only);
1166
+ }
1167
+
1168
+ /**
1169
+ * Large button
1170
+ */
1171
+ .cre8-c-button--lg {
1172
+ @include cre8-typography-label-large();
1173
+ padding-top: var(--cre8-button-padding-vertical-large);
1174
+ padding-right: var(--cre8-button-padding-horizontal-large);
1175
+ padding-bottom: var(--cre8-button-padding-vertical-large);
1176
+ padding-left: var(--cre8-button-padding-horizontal-large);
1177
+ }
1178
+
1179
+ /**
1180
+ * Large button sized for icon only
1181
+ */
1182
+ .cre8-c-button--lg.cre8-c-button--icon-only {
1183
+ @include cre8-typography-label-large();
1184
+ padding-top: var(--cre8-button-padding-vertical-large-icon-only);
1185
+ padding-right: var(--cre8-button-padding-horizontal-large-icon-only);
1186
+ padding-bottom: var(--cre8-button-padding-vertical-large-icon-only);
1187
+ padding-left: var(--cre8-button-padding-horizontal-large-icon-only);
1188
+ }
1189
+
1190
+ /**
1191
+ * Icon within small button
1192
+ */
1193
+ .cre8-c-button--sm cre8-icon-legacy {
1194
+ --cre8-icon-height: var(--cre8-icon-size-small);
1195
+ --cre8-icon-width: var(--cre8-icon-size-small);
1196
+ }
1197
+
1198
+ .cre8-c-button--sm cre8-icon {
1199
+ svg {
1200
+ height: size(1.75);
1201
+ width: size(1.75);
1202
+ }
1203
+ }
1204
+
1205
+ /**
1206
+ * Icon within large button
1207
+ */
1208
+ .cre8-c-button--lg cre8-icon-legacy {
1209
+ --cre8-icon-height: var(--cre8-icon-size-large);
1210
+ --cre8-icon-width: var(--cre8-icon-size-large);
1211
+ }
1212
+
1213
+ .cre8-c-button--lg cre8-icon {
1214
+ svg {
1215
+ height: size(2.25);
1216
+ width: size(2.25);
1217
+ }
1218
+ }
1219
+
1220
+ ::slotted(*) {
1221
+ margin-right: 0;
1222
+ }
1223
+ /**
1224
+ * Button icon directly before button text
1225
+ */
1226
+
1227
+ cre8-icon-legacy + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
1228
+ margin-left: size(1);
1229
+ }
1230
+
1231
+ cre8-icon + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
1232
+ margin-left: size(1);
1233
+ }
1234
+
1235
+ /**
1236
+ * Button icon directly after button text
1237
+ */
1238
+ .cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon-legacy {
1239
+ margin-left: size(1);
1240
+ }
1241
+
1242
+ .cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon {
1243
+ margin-left: size(1);
1244
+ }
1245
+ /**
1246
+ * Button icon only
1247
+ */
1248
+ .cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon-legacy {
1249
+ border-radius: var(--cre8-border-radius-button);
1250
+ }
1251
+
1252
+ .cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon {
1253
+ border-radius: var(--cre8-border-radius-button);
1254
+ }
1255
+
1256
+ .cre8-c-button__text.cre8-u-is-vishidden + cre8-icon-legacy {
1257
+ margin-left: 0px;
1258
+ margin-right: 0px;
1259
+ }
1260
+
1261
+ .cre8-c-button__text.cre8-u-is-vishidden + cre8-icon {
1262
+ margin-left: 0px;
1263
+ margin-right: 0px;
1264
+ }
1265
+
1266
+ .cre8-c-button__text.cre8-u-is-vishidden {
1267
+ @include visuallyHidden();
1268
+ }
1269
+
1270
+ .cre8-c-button--primary.cre8-c-button--loading {
1271
+ --cre8-icon-fill: var(--cre8-color-content-knockout);
1272
+ }
1273
+ .cre8-c-button--secondary.cre8-c-button--loading,
1274
+ .cre8-c-button--tertiary.cre8-c-button--loading {
1275
+ --cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
1276
+ }
1277
+
1278
+ /**
1279
+ * Aria live span
1280
+ */
1281
+ .cre8-u-is-vishidden {
1282
+ --cre8-icon-height: 0px;
1283
+ --cre8-icon-width: 0px;
1284
+ max-width: fit-content;
1285
+ min-width: 0px;
1286
+ width: auto;
1287
+ height: auto;
1288
+ max-height: fit-content;
1289
+ min-width: 0px;
1290
+
1291
+ @include visuallyHidden();
1292
+ }
1293
+
1294
+ cre8-icon-legacy.cre8-u-is-vishidden {
1295
+ @include visuallyHidden();
1296
+ }
1297
+
1298
+ span.cre8-c-button__icon {
1299
+ margin-left: size(1);
1300
+ max-width: fit-content;
1301
+ min-width: 0px;
1302
+ width: auto;
1303
+ height: auto;
1304
+ max-height: fit-content;
1305
+ min-width: 0px;
1306
+ }
1307
+
1308
+ cre8-icon {
1309
+ display: flex;
1310
+ align-items: center;
1311
+ justify-content: center;
1312
+
1313
+ svg {
1314
+ height: size(2);
1315
+ width: size(2);
1316
+ }
1317
+ }
1318
+ `;
1319
+ var V = Object.defineProperty, l = (u, e, r, o) => {
1320
+ for (var t = void 0, n = u.length - 1, i; n >= 0; n--)
1321
+ (i = u[n]) && (t = i(e, r, t) || t);
1322
+ return t && V(e, r, t), t;
1323
+ };
1324
+ const T = class T extends I {
1325
+ constructor() {
1326
+ super(...arguments), this.text = "Button", this.variant = "primary", this.type = "button", this.iconRotateDegree = 0, this.iconPosition = void 0, this.size = "md", this.ariaLive = "assertive";
1327
+ }
1328
+ formSubmit() {
1329
+ const e = this.internals.form;
1330
+ e && e.requestSubmit();
1331
+ }
1332
+ formReset() {
1333
+ const e = this.internals.form;
1334
+ e && e.reset();
1335
+ }
1336
+ generateIconBefore() {
1337
+ if (this.iconPosition === "before") {
1338
+ if (this.iconName)
1339
+ return c`<cre8-icon-legacy slot="before" aria-hidden="true" name="${b(this.iconName)}">
1340
+ </cre8-icon-legacy>`;
1341
+ if (this.svg)
1342
+ return c`<cre8-icon slot="before" aria-hidden="true"
1343
+ svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
1344
+ </cre8-icon>`;
1345
+ }
1346
+ return p;
1347
+ }
1348
+ generateIconAfter() {
1349
+ if (this.iconPosition === "after") {
1350
+ if (this.iconName)
1351
+ return c`<cre8-icon-legacy slot="after" aria-hidden="true" name="${b(this.iconName)}">
1352
+ </cre8-icon-legacy>`;
1353
+ if (this.svg)
1354
+ return c`<cre8-icon slot="after" aria-hidden="true"
1355
+ svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
1356
+ </cre8-icon>`;
1357
+ }
1358
+ return p;
1359
+ }
1360
+ // TODO: Temporarily keep eslint complexity as warning. Update during specific story for this rule.
1361
+ /* eslint complexity: ["warn", 10] */
1362
+ render() {
1363
+ const e = this.componentClassNames("cre8-c-button", {
1364
+ "cre8-c-button--primary": this.variant === "primary",
1365
+ "cre8-c-button--secondary": this.variant === "secondary",
1366
+ "cre8-c-button--tertiary": this.variant === "tertiary",
1367
+ "cre8-c-button--full-width": this.fullWidth === !0,
1368
+ "cre8-c-button--sm": this.size === "sm",
1369
+ "cre8-c-button--lg": this.size === "lg",
1370
+ "cre8-c-button--icon-only": this.hideText,
1371
+ "cre8-c-button--split-button-text": this.splitButtonType === "text",
1372
+ "cre8-c-button--split-button-caret": this.splitButtonType === "caret",
1373
+ "cre8-c-button--neutral": this.neutral,
1374
+ "cre8-c-button--inverse": this.inverse,
1375
+ "cre8-c-button--loading": this.loading
1376
+ });
1377
+ return this.hideText && (this.iconPosition = "after"), this.href ? c`
1378
+ <a
1379
+ href="${b(this.href)}"
1380
+ class="${e}"
1381
+ rel="${b(this.rel)}"
1382
+ target="${b(this.target)}"
1383
+ >
1384
+ ${this.generateIconBefore()}
1385
+ <span
1386
+ class="${this.hideText ? "cre8-u-is-vishidden cre8-c-button__text" : "cre8-c-button__text"}"
1387
+ >
1388
+ ${this.text}
1389
+ </span>
1390
+ ${this.generateIconAfter()}
1391
+ </a>
1392
+ ` : c` <button
1393
+ class="${e}"
1394
+ part="button"
1395
+ aria-disabled="${b(this.loading)}"
1396
+ ?disabled=${this.disabled}
1397
+ @click="${this._buttonClick}"
1398
+ aria-expanded="${b(this.buttonAriaExpanded)}"
1399
+ >
1400
+ <slot name="before"></slot>
1401
+ ${this.generateIconBefore()}
1402
+ <span
1403
+ class="${this.hideText ? "cre8-u-is-vishidden cre8-c-button__text" : "cre8-c-button__text"}"
1404
+ >
1405
+ ${this.text}
1406
+ </span>
1407
+ ${this.generateIconAfter()}
1408
+ <slot name="after"></slot>
1409
+ ${this.loading || this.loadingComplete ? c`<span class="cre8-c-button__icon" aria-live="${this.ariaLive}" role="alert">
1410
+ <span class="cre8-u-is-vishidden">${this.loadingComplete ? "Loading Complete" : "Loading"}</span>
1411
+ ${this.loadingComplete ? p : c`
1412
+ <cre8-loading-spinner
1413
+ class="cre8-c-button__loading-icon"
1414
+ size="small"
1415
+ ?neutral=${this.neutral}
1416
+ ?inverse=${this.inverse}
1417
+ buttonVariant=${this.variant}
1418
+ aria-hidden="true"
1419
+ ></cre8-loading-spinner>`}
1420
+ </span>` : p}
1421
+ </button>`;
1422
+ }
1423
+ _buttonClick(e) {
1424
+ if (this.loading)
1425
+ e.stopPropagation();
1426
+ else
1427
+ switch (this.type) {
1428
+ case "submit":
1429
+ this.formSubmit();
1430
+ break;
1431
+ case "reset":
1432
+ this.formReset();
1433
+ break;
1434
+ }
1435
+ }
1436
+ };
1437
+ T.styles = [K];
1438
+ let s = T;
1439
+ l([
1440
+ a()
1441
+ ], s.prototype, "text");
1442
+ l([
1443
+ a({ type: String })
1444
+ ], s.prototype, "variant");
1445
+ l([
1446
+ a({ type: Boolean, reflect: !0 })
1447
+ ], s.prototype, "disabled");
1448
+ l([
1449
+ a({ type: Boolean, reflect: !0 })
1450
+ ], s.prototype, "neutral");
1451
+ l([
1452
+ a({ type: Boolean, reflect: !0 })
1453
+ ], s.prototype, "inverse");
1454
+ l([
1455
+ a()
1456
+ ], s.prototype, "href");
1457
+ l([
1458
+ a()
1459
+ ], s.prototype, "target");
1460
+ l([
1461
+ a()
1462
+ ], s.prototype, "type");
1463
+ l([
1464
+ a()
1465
+ ], s.prototype, "rel");
1466
+ l([
1467
+ a()
1468
+ ], s.prototype, "iconName");
1469
+ l([
1470
+ a()
1471
+ ], s.prototype, "svg");
1472
+ l([
1473
+ a({ type: Number })
1474
+ ], s.prototype, "iconRotateDegree");
1475
+ l([
1476
+ a()
1477
+ ], s.prototype, "iconFlipDirection");
1478
+ l([
1479
+ a()
1480
+ ], s.prototype, "iconPosition");
1481
+ l([
1482
+ a()
1483
+ ], s.prototype, "size");
1484
+ l([
1485
+ a({ type: Boolean, reflect: !0 })
1486
+ ], s.prototype, "hideText");
1487
+ l([
1488
+ a({ type: Boolean, reflect: !0 })
1489
+ ], s.prototype, "fullWidth");
1490
+ l([
1491
+ a({ type: Boolean, reflect: !0 })
1492
+ ], s.prototype, "loading");
1493
+ l([
1494
+ a({ type: Boolean, reflect: !0 })
1495
+ ], s.prototype, "loadingComplete");
1496
+ l([
1497
+ a()
1498
+ ], s.prototype, "ariaLive");
1499
+ l([
1500
+ a()
1501
+ ], s.prototype, "splitButtonType");
1502
+ l([
1503
+ a({ type: Boolean, reflect: !0 })
1504
+ ], s.prototype, "buttonAriaExpanded");
1505
+ l([
1506
+ C("button")
1507
+ ], s.prototype, "field");
1508
+ customElements.get("cre8-button") === void 0 && customElements.define("cre8-button", s);
1509
+ var U = Object.defineProperty, O = (u, e, r, o) => {
1510
+ for (var t = void 0, n = u.length - 1, i; n >= 0; n--)
1511
+ (i = u[n]) && (t = i(e, r, t) || t);
1512
+ return t && U(e, r, t), t;
1513
+ };
1514
+ const N = class N extends _ {
1515
+ constructor() {
1516
+ super(), this.monthNames = [
1517
+ "January",
1518
+ "February",
1519
+ "March",
1520
+ "April",
1521
+ "May",
1522
+ "June",
1523
+ "July",
1524
+ "August",
1525
+ "September",
1526
+ "October",
1527
+ "November",
1528
+ "December"
1529
+ ];
1530
+ }
1531
+ firstUpdated() {
1532
+ this.focusOnCurrentMonth();
1533
+ }
1534
+ async focusOnCurrentMonth() {
1535
+ await this.updateComplete, (this.shadowRoot?.querySelector(
1536
+ "li[data-current-month]"
1537
+ ).children[0].shadowRoot?.querySelector("button")).focus();
1538
+ }
1539
+ emitMonth(e) {
1540
+ const r = new CustomEvent("changeMonth", {
1541
+ detail: {
1542
+ month: e
1543
+ }
1544
+ });
1545
+ this.dispatchEvent(r);
1546
+ }
1547
+ getMonthListItems() {
1548
+ return this.monthNames.map(
1549
+ (e, r) => c` <li ?data-current-month="${r === this.currentMonth}" >
1550
+ <cre8-button text="${e}" variant="tertiary" size="sm"
1551
+ @click="${() => this.emitMonth(r)}"></cre8-button>
1552
+ </li>`
1553
+ );
1554
+ }
1555
+ render() {
1556
+ const e = this.componentClassNames("cre8-c-calendar-month-modal", {});
1557
+ return c` <div class="${e}">
1558
+ <ol aria-label="choose a month">
1559
+ ${this.getMonthListItems()}
1560
+ </ol>
1561
+ </div> `;
1562
+ }
1563
+ };
1564
+ N.styles = [q];
1565
+ let $ = N;
1566
+ O([
1567
+ v()
1568
+ ], $.prototype, "monthNames");
1569
+ O([
1570
+ a({ reflect: !0, type: Number })
1571
+ ], $.prototype, "currentMonth");
1572
+ customElements.get("cre8-calendar-month-modal") === void 0 && customElements.define("cre8-calendar-month-modal", $);
1573
+ const W = f`@import '../../design-tokens/core/scss/theming/component';
1574
+
1575
+ .cre8-c-calendar-year-modal {
1576
+ display: flex;
1577
+ justify-content: space-around;
1578
+ align-items: center;
1579
+ padding: size(1);
1580
+ }
1581
+
1582
+ /* grid */
1583
+ ol {
1584
+ @include cre8-typography-body-default();
1585
+ display: grid;
1586
+ grid-row-gap: 0.33em;
1587
+ grid-template-columns: repeat(3, 1fr);
1588
+ list-style: none;
1589
+ margin: unset;
1590
+ padding: unset;
1591
+ }
1592
+
1593
+ li {
1594
+ display: inline-flex;
1595
+ justify-content: center;
1596
+ }
1597
+
1598
+ cre8-button {
1599
+ height: fit-content;
1600
+ }
1601
+ `;
1602
+ var H = Object.defineProperty, J = Object.getOwnPropertyDescriptor, x = (u, e, r, o) => {
1603
+ for (var t = o > 1 ? void 0 : o ? J(e, r) : e, n = u.length - 1, i; n >= 0; n--)
1604
+ (i = u[n]) && (t = (o ? i(e, r, t) : i(t)) || t);
1605
+ return o && t && H(e, r, t), t;
1606
+ };
1607
+ const Y = class Y extends _ {
1608
+ get currentYear() {
1609
+ return this._currentYear;
1610
+ }
1611
+ set currentYear(e) {
1612
+ const r = this._currentYear;
1613
+ this._currentYear = e, this.modalAnchorYear = e, this.requestUpdate("currentDate", r), this.createYearArray(this.currentYear);
1614
+ }
1615
+ constructor() {
1616
+ super(), this.yearNumbers = [];
1617
+ }
1618
+ emitYear(e) {
1619
+ const r = new CustomEvent("changeYear", {
1620
+ detail: {
1621
+ year: e
1622
+ }
1623
+ });
1624
+ this.dispatchEvent(r);
1625
+ }
1626
+ createYearArray(e) {
1627
+ const r = Array.from(Array(12).keys());
1628
+ this.yearNumbers = r.map((o) => o + (e - 7));
1629
+ }
1630
+ getYearListItems() {
1631
+ return this.yearNumbers.map(
1632
+ ((e) => c` <li
1633
+ ?data-current-year="${e === this.currentYear}"
1634
+ >
1635
+ <cre8-button
1636
+ text="${e}"
1637
+ variant="tertiary"
1638
+ size="sm"
1639
+ @click="${() => this.emitYear(e)}"
1640
+ ></cre8-button>
1641
+ </li>`)
1642
+ );
1643
+ }
1644
+ firstUpdated() {
1645
+ this.focusOnCurrentYear();
1646
+ }
1647
+ async focusOnCurrentYear() {
1648
+ await this.updateComplete, (this.shadowRoot?.querySelector(
1649
+ "li[data-current-year]"
1650
+ ).children[0].shadowRoot?.querySelector("button")).focus();
1651
+ }
1652
+ previousYearArray() {
1653
+ this.modalAnchorYear -= 12, this.createYearArray(this.modalAnchorYear);
1654
+ }
1655
+ nextYearArray() {
1656
+ this.modalAnchorYear += 12, this.createYearArray(this.modalAnchorYear);
1657
+ }
1658
+ render() {
1659
+ const e = this.componentClassNames(
1660
+ "cre8-c-calendar-year-modal",
1661
+ {}
1662
+ );
1663
+ return c`
1664
+ <div class="${e}">
1665
+ <cre8-button
1666
+ class="cre8-c-calendar-year-modal__nav-button"
1667
+ @click="${this.previousYearArray}"
1668
+ variant="tertiary"
1669
+ text="Previous 12 years"
1670
+ ?hideText=${!0}
1671
+ iconName="keyboard-arrow-left"
1672
+ ></cre8-button>
1673
+ <ol aria-label="choose a year">
1674
+ ${this.getYearListItems()}
1675
+ </ol>
1676
+ <cre8-button
1677
+ class="cre8-c-calendar-year-modal__nav-button"
1678
+ @click="${this.nextYearArray}"
1679
+ variant="tertiary"
1680
+ text="Next 12 years"
1681
+ ?hideText=${!0}
1682
+ iconName="keyboard-arrow-right"
1683
+ ></cre8-button>
1684
+ </div>
1685
+ `;
1686
+ }
1687
+ };
1688
+ Y.styles = [W];
1689
+ let m = Y;
1690
+ x([
1691
+ v()
1692
+ ], m.prototype, "yearNumbers", 2);
1693
+ x([
1694
+ v()
1695
+ ], m.prototype, "_currentYear", 2);
1696
+ x([
1697
+ v()
1698
+ ], m.prototype, "modalAnchorYear", 2);
1699
+ x([
1700
+ a({ reflect: !0, type: Number })
1701
+ ], m.prototype, "currentYear", 1);
1702
+ customElements.get("cre8-calendar-year-modal") === void 0 && customElements.define("cre8-calendar-year-modal", m);
1703
+ const G = f`@import '../../design-tokens/core/scss/theming/component';
1704
+
1705
+ .cre8-c-calendar-navigation {
1706
+ align-items: center;
1707
+ display: flex;
1708
+ height: 60px;
1709
+ justify-content: center;
1710
+ }
1711
+
1712
+ .cre8-c-calendar-navigation__inner-buttons {
1713
+ display: flex;
1714
+ min-width: 188px;
1715
+ justify-content: space-around;
1716
+ }`;
1717
+ var Q = Object.defineProperty, E = (u, e, r, o) => {
1718
+ for (var t = void 0, n = u.length - 1, i; n >= 0; n--)
1719
+ (i = u[n]) && (t = i(e, r, t) || t);
1720
+ return t && Q(e, r, t), t;
1721
+ };
1722
+ const z = class z extends _ {
1723
+ activateModal(e) {
1724
+ const r = new CustomEvent("activateModal", {
1725
+ detail: {
1726
+ modal: e
1727
+ }
1728
+ });
1729
+ this.dispatchEvent(r);
1730
+ }
1731
+ changeMonth(e) {
1732
+ const r = new CustomEvent("changeMonth", {
1733
+ detail: {
1734
+ addend: e
1735
+ }
1736
+ });
1737
+ this.dispatchEvent(r);
1738
+ }
1739
+ changeYear(e) {
1740
+ const r = new CustomEvent("changeYear", {
1741
+ detail: {
1742
+ addend: e
1743
+ }
1744
+ });
1745
+ this.dispatchEvent(r);
1746
+ }
1747
+ render() {
1748
+ const e = this.componentClassNames(
1749
+ "cre8-c-calendar-navigation",
1750
+ {}
1751
+ );
1752
+ return c`
1753
+ <div class="${e}">
1754
+ <cre8-button
1755
+ variant="tertiary"
1756
+ text="Previous year"
1757
+ ?hideText=${!0}
1758
+ iconName="caret-double-left"
1759
+ @click="${() => this.changeYear(-1)}"
1760
+ ></cre8-button>
1761
+
1762
+ <cre8-button
1763
+ variant="tertiary"
1764
+ text="Previous month"
1765
+ ?hideText=${!0}
1766
+ iconName="keyboard-arrow-left"
1767
+ @click="${() => this.changeMonth(-1)}"
1768
+ ></cre8-button>
1769
+
1770
+ <div class="cre8-c-calendar-navigation__inner-buttons">
1771
+ <cre8-button
1772
+ class="cre8-c-calendar-navigation__month-modal-button"
1773
+ variant="tertiary"
1774
+ text="${this.monthName}"
1775
+ aria-label="${this.monthName}, month picker modal"
1776
+ size="sm"
1777
+ @click="${() => this.activateModal("month")}"
1778
+ ></cre8-button>
1779
+
1780
+ <cre8-button
1781
+ class="cre8-c-calendar-navigation__year-modal-button"
1782
+ variant="tertiary"
1783
+ text="${this.year}"
1784
+ aria-label="${this.year}, year picker modal"
1785
+ size="sm"
1786
+ @click="${() => this.activateModal("year")}"
1787
+ ></cre8-button>
1788
+ </div>
1789
+
1790
+ <cre8-button
1791
+ variant="tertiary"
1792
+ text="Next month"
1793
+ ?hideText=${!0}
1794
+ iconName="keyboard-arrow-right"
1795
+ @click="${() => this.changeMonth(1)}"
1796
+ ></cre8-button>
1797
+
1798
+ <cre8-button
1799
+ variant="tertiary"
1800
+ text="Next year"
1801
+ ?hideText=${!0}
1802
+ iconName="caret-double-right"
1803
+ @click="${() => this.changeYear(1)}"
1804
+ ></cre8-button>
1805
+ </div>
1806
+ `;
1807
+ }
1808
+ };
1809
+ z.styles = [G];
1810
+ let D = z;
1811
+ E([
1812
+ a({ type: String, reflect: !0 })
1813
+ ], D.prototype, "monthName");
1814
+ E([
1815
+ a({ type: String, reflect: !0 })
1816
+ ], D.prototype, "year");
1817
+ customElements.get("cre8-calendar-navigation") === void 0 && customElements.define("cre8-calendar-navigation", D);
1818
+ var X = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, y = (u, e, r, o) => {
1819
+ for (var t = o > 1 ? void 0 : o ? Z(e, r) : e, n = u.length - 1, i; n >= 0; n--)
1820
+ (i = u[n]) && (t = (o ? i(e, r, t) : i(t)) || t);
1821
+ return o && t && X(e, r, t), t;
1822
+ }, d;
1823
+ const h = (d = class extends _ {
1824
+ constructor() {
1825
+ super(), this._activeModal = "none", this._handleOnClickOutside = this._handleOnClickOutside.bind(this), this.currentDate = (this.fieldDate && /* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)) ?? /* @__PURE__ */ new Date(), this.locale = document.documentElement.getAttribute("lang") || "en-US", this.dateConfig = {
1826
+ locale: this.locale,
1827
+ today: /* @__PURE__ */ new Date(),
1828
+ weekInfo: {
1829
+ firstDay: 7,
1830
+ weekend: [6, 7]
1831
+ }
1832
+ }, this.weekDays = [
1833
+ "Sunday",
1834
+ "Monday",
1835
+ "Tuesday",
1836
+ "Wednesday",
1837
+ "Thursday",
1838
+ "Friday",
1839
+ "Saturday"
1840
+ ], this.dateFormatOptions = {
1841
+ weekday: "long",
1842
+ year: "numeric",
1843
+ month: "long",
1844
+ day: "numeric"
1845
+ };
1846
+ }
1847
+ get activeModal() {
1848
+ return this._activeModal;
1849
+ }
1850
+ set activeModal(e) {
1851
+ this._activeModal = e;
1852
+ }
1853
+ get fieldDate() {
1854
+ return this._fieldDate;
1855
+ }
1856
+ set fieldDate(e) {
1857
+ const r = this._fieldDate;
1858
+ this.requestUpdate("fieldDate", r);
1859
+ const o = !!(e && (/* @__PURE__ */ new Date(`${e}T00:00`)).getTime());
1860
+ this.currentDate = o ? /* @__PURE__ */ new Date(`${e}T00:00`) : /* @__PURE__ */ new Date(), this._fieldDate = o ? e : "";
1861
+ }
1862
+ get currentDate() {
1863
+ return this._currentDate;
1864
+ }
1865
+ set currentDate(e) {
1866
+ const r = this._currentDate;
1867
+ this._currentDate = e, this.requestUpdate("currentDate", r);
1868
+ }
1869
+ connectedCallback() {
1870
+ super.connectedCallback(), window.addEventListener("click", this._handleOnClickOutside, !1);
1871
+ }
1872
+ disconnectedCallback() {
1873
+ super.disconnectedCallback(), window.removeEventListener("click", this._handleOnClickOutside, !1);
1874
+ }
1875
+ /* Click Event Functions */
1876
+ _handleOnClickOutside(e) {
1877
+ if (!this.shadowRoot?.host)
1878
+ throw Error(
1879
+ "Could not determine navigation context during click handler"
1880
+ );
1881
+ if (!e.composedPath().includes(this.shadowRoot.host)) {
1882
+ const o = new CustomEvent("outsideClick", {
1883
+ detail: {
1884
+ composedPath: e.composedPath()
1885
+ }
1886
+ });
1887
+ this.dispatchEvent(o);
1888
+ }
1889
+ }
1890
+ emitSelectedDate(e) {
1891
+ const r = new CustomEvent("dateSelect", {
1892
+ detail: {
1893
+ date: e
1894
+ }
1895
+ });
1896
+ this.currentDate = /* @__PURE__ */ new Date(`${e}T00:00`), this.dispatchEvent(r);
1897
+ }
1898
+ changeYear(e) {
1899
+ const r = this.currentDate, o = new Date(r.setFullYear(e));
1900
+ this.currentDate = o, this.activeModal = "none";
1901
+ }
1902
+ changeMonth(e) {
1903
+ const r = this.currentDate, o = new Date(r.setMonth(e));
1904
+ this.currentDate = o, this.activeModal = "none";
1905
+ }
1906
+ activateModal(e) {
1907
+ this.activeModal = e;
1908
+ }
1909
+ /* Helper/Get Functions */
1910
+ static formatMonthOrDayIndex(e) {
1911
+ return (e + 1).toString().padStart(2, "0");
1912
+ }
1913
+ static formatDate(e) {
1914
+ return e.toString().padStart(2, "0");
1915
+ }
1916
+ numberOfDaysinMonth() {
1917
+ return new Date(this.getYear(), this.getMonth() + 1, 0).getDate();
1918
+ }
1919
+ getMonth() {
1920
+ return this.currentDate.getMonth();
1921
+ }
1922
+ getMonthName() {
1923
+ return new Intl.DateTimeFormat(this.locale, {
1924
+ month: "long"
1925
+ }).format(this.currentDate);
1926
+ }
1927
+ getYear() {
1928
+ return this.currentDate.getFullYear();
1929
+ }
1930
+ static dateToString(e) {
1931
+ return `${e.getFullYear()}-${d.formatMonthOrDayIndex(
1932
+ e.getMonth()
1933
+ )}-${d.formatDate(e.getDate())}`;
1934
+ }
1935
+ async updateFocusForKeydown(e) {
1936
+ this.currentDate = e, await this.updateComplete;
1937
+ const r = this.shadowRoot?.querySelector(
1938
+ `button[datetime="${d.dateToString(e)}"]`
1939
+ );
1940
+ r.setAttribute("tabindex", "0"), r.focus();
1941
+ }
1942
+ _handleCalendarKeyDown(e) {
1943
+ const r = this.shadowRoot?.querySelector(
1944
+ `button[datetime="${d.dateToString(this.currentDate)}"]`
1945
+ );
1946
+ if (e.key === "ArrowUp") {
1947
+ const o = new Date(
1948
+ this.getYear(),
1949
+ this.getMonth(),
1950
+ this.currentDate.getDate() - 7
1951
+ );
1952
+ this.updateFocusForKeydown(o), r.setAttribute("tabindex", "-1");
1953
+ }
1954
+ if (e.key === "ArrowDown") {
1955
+ const o = new Date(
1956
+ this.getYear(),
1957
+ this.getMonth(),
1958
+ this.currentDate.getDate() + 7
1959
+ );
1960
+ this.updateFocusForKeydown(o), r.setAttribute("tabindex", "-1");
1961
+ }
1962
+ if (e.key === "ArrowLeft") {
1963
+ const o = new Date(
1964
+ this.getYear(),
1965
+ this.getMonth(),
1966
+ this.currentDate.getDate() - 1
1967
+ );
1968
+ this.updateFocusForKeydown(o), r.setAttribute("tabindex", "-1");
1969
+ }
1970
+ if (e.key === "ArrowRight") {
1971
+ const o = new Date(
1972
+ this.getYear(),
1973
+ this.getMonth(),
1974
+ this.currentDate.getDate() + 1
1975
+ );
1976
+ this.updateFocusForKeydown(o), r.setAttribute("tabindex", "-1");
1977
+ }
1978
+ if (e.key === "Tab" && !e.shiftKey) {
1979
+ const o = new CustomEvent("outsideClick", {
1980
+ detail: {
1981
+ composedPath: []
1982
+ }
1983
+ });
1984
+ setTimeout(() => {
1985
+ this.dispatchEvent(o);
1986
+ }, 20);
1987
+ }
1988
+ }
1989
+ async changeMonthFromNav(e) {
1990
+ this.changeMonth(e), await this.updateComplete;
1991
+ const o = (this.shadowRoot?.querySelector(
1992
+ "cre8-calendar-navigation"
1993
+ )).shadowRoot?.querySelector(
1994
+ ".cre8-c-calendar-navigation__month-modal-button"
1995
+ );
1996
+ await this.updateComplete, o.shadowRoot.querySelector("button").focus();
1997
+ }
1998
+ async changeYearFromNav(e) {
1999
+ this.changeYear(e), await this.updateComplete;
2000
+ const o = (this.shadowRoot?.querySelector(
2001
+ "cre8-calendar-navigation"
2002
+ )).shadowRoot?.querySelector(
2003
+ ".cre8-c-calendar-navigation__year-modal-button"
2004
+ );
2005
+ await this.updateComplete, o.shadowRoot.querySelector("button").focus();
2006
+ }
2007
+ /* Template Map Functions */
2008
+ getDaysOfWeekAbbreviations() {
2009
+ return this.weekDays.map(
2010
+ (e) => c` <td>
2011
+ <span aria-label="${e}">${e[0]}</span>
2012
+ </td>`
2013
+ );
2014
+ }
2015
+ /**
2016
+ * Create array of Day Buttons to fill in excess calendar space at the beginning of the month.
2017
+ *
2018
+ * 1. Map from empty array of length equal to the amount of access calendar "slots" in the beginning of the month.
2019
+ * (i.e. if the month starts on Wednesday (getDay = 3), there are 3 days prior that week from last month.)
2020
+ *
2021
+ * 2. Based on the indice of array, get the given day button's date, where the date is
2022
+ * the last day of last month minus the max of the array plus the indice plus one -> x = lastday - (max - (i + 1))
2023
+ * (Note: (max - (i + 1) equals the keys of the array in reverse order:
2024
+ * [max - i + 1] -> [3-1, 3-2, 3-3] -> [2,1,0] for an array of [3])
2025
+ * (i.e. if the calendar is starting on Wednesday June 1st, the access days on the calendar will be
2026
+ * Sunday May 29th (31 - (2)), Monday May 30th (31 - (1)), Tuesday May 31st (31 - (0)))
2027
+ *
2028
+ * 3. Build out day button with necessary props
2029
+ * */
2030
+ getPreviousMonthDayButtons() {
2031
+ return [
2032
+ ...Array(new Date(this.getYear(), this.getMonth(), 1).getDay()).keys()
2033
+ ].map((e) => {
2034
+ const r = new Date(
2035
+ this.getYear(),
2036
+ this.getMonth(),
2037
+ 1
2038
+ ).getDay(), o = new Date(this.getYear(), this.getMonth(), 0), t = o.getDate(), n = new Date(
2039
+ o.getFullYear(),
2040
+ o.getMonth(),
2041
+ t - r + (e + 1)
2042
+ ), i = this.dateConfig.today.getDate() === n.getDate() && this.dateConfig.today.getMonth() === n.getMonth() && this.dateConfig.today.getFullYear() === n.getFullYear(), A = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === n.getTime();
2043
+ return c` <td>
2044
+ <button
2045
+ class="cre8-c-calendar__day-button cre8-c-calendar__different-month"
2046
+ datetime="${d.dateToString(n)}"
2047
+ ?data-today="${i}"
2048
+ ?data-selected="${A}"
2049
+ tabindex="-1"
2050
+ aria-label="${new Intl.DateTimeFormat(this.locale, {
2051
+ weekday: "long",
2052
+ year: "numeric",
2053
+ month: "long",
2054
+ day: "numeric"
2055
+ }).format(
2056
+ /* @__PURE__ */ new Date(`${d.dateToString(n)}T00:00`)
2057
+ )}"
2058
+ @click="${() => this.emitSelectedDate(d.dateToString(n))}"
2059
+ >
2060
+ ${new Intl.NumberFormat(this.locale).format(n.getDate())}
2061
+ </button>
2062
+ </td>`;
2063
+ });
2064
+ }
2065
+ /**
2066
+ * Create array of Day Buttons to fill out current month
2067
+ *
2068
+ * 1. Map from empty array of length equal to the amount days in this month
2069
+ *
2070
+ * 2. Get the date of the current month based on indice of array (i.e. 0 -> 1st, 1 -> 2nd ...)
2071
+ *
2072
+ * 3. Build out day button with necessary props
2073
+ * */
2074
+ getCurrentMonthDayButtons() {
2075
+ return [...Array(this.numberOfDaysinMonth()).keys()].map((e) => {
2076
+ const r = e + 1, o = new Date(this.getYear(), this.getMonth(), r), t = this.dateConfig.today.getDate() === r && this.dateConfig.today.getMonth() === this.getMonth() && this.dateConfig.today.getFullYear() === this.getYear(), n = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === o.getTime();
2077
+ return c` <td>
2078
+ <button
2079
+ class="cre8-c-calendar__day-button"
2080
+ datetime="${d.dateToString(o)}"
2081
+ ?data-today="${t}"
2082
+ ?data-selected="${n}"
2083
+ tabindex="${r === this.currentDate.getDate() ? "0" : "-1"}"
2084
+ aria-label="${new Intl.DateTimeFormat(this.locale, {
2085
+ weekday: "long",
2086
+ year: "numeric",
2087
+ month: "long",
2088
+ day: "numeric"
2089
+ }).format(/* @__PURE__ */ new Date(`${d.dateToString(o)}T00:00`))}"
2090
+ @click="${() => this.emitSelectedDate(d.dateToString(o))}"
2091
+ >
2092
+ ${new Intl.NumberFormat(this.locale).format(e + 1)}
2093
+ </button>
2094
+ </td>`;
2095
+ });
2096
+ }
2097
+ /**
2098
+ * Create array of Day Buttons to fill in excess calendar space at the end of the month.
2099
+ *
2100
+ * 1. Map from empty array of length equal to the amount of access calendar "slots" at the end of the month.
2101
+ * The array have an amount of slots equal to the number of days in a week minus how many days have already past
2102
+ * and since getDay returns the index of the day of the week (Sunday = 0, Monday = 1 ...) our equations is
2103
+ * x = 7 - (getDay() + 1)
2104
+ * Note: (we need to add 1 because indexing starts at 0)
2105
+ * so if the month ends on Monday (getDay() = 1), 5 = 7 - (1 + 1), there are 5 days that week from the new month
2106
+ *
2107
+ * 2. Get the date from the next month based on indice of array (i.e. 0 -> 1st, 1 -> 2nd ...)
2108
+ *
2109
+ * 3. Build out day button with necessary props
2110
+ * */
2111
+ getNextMonthDayButtons() {
2112
+ return [
2113
+ ...Array(
2114
+ 6 - new Date(
2115
+ this.getYear(),
2116
+ this.getMonth(),
2117
+ this.numberOfDaysinMonth()
2118
+ ).getDay()
2119
+ ).keys()
2120
+ ].map((e) => {
2121
+ const r = new Date(
2122
+ this.getYear(),
2123
+ this.getMonth(),
2124
+ this.numberOfDaysinMonth()
2125
+ ), o = new Date(
2126
+ r.setDate(r.getDate() + 1)
2127
+ ), t = new Date(
2128
+ o.getFullYear(),
2129
+ o.getMonth(),
2130
+ e + 1
2131
+ ), n = this.dateConfig.today.getDate() === t.getDate() && this.dateConfig.today.getMonth() === t.getMonth() && this.dateConfig.today.getFullYear() === t.getFullYear(), i = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === t.getTime();
2132
+ return c` <td>
2133
+ <button
2134
+ class="cre8-c-calendar__day-button cre8-c-calendar__different-month"
2135
+ datetime="${d.dateToString(t)}"
2136
+ ?data-today="${n}"
2137
+ ?data-selected="${i}"
2138
+ tabindex="-1"
2139
+ aria-label="${new Intl.DateTimeFormat(this.locale, {
2140
+ weekday: "long",
2141
+ year: "numeric",
2142
+ month: "long",
2143
+ day: "numeric"
2144
+ }).format(
2145
+ /* @__PURE__ */ new Date(`${d.dateToString(t)}T00:00`)
2146
+ )}"
2147
+ @click="${() => this.emitSelectedDate(d.dateToString(t))}"
2148
+ >
2149
+ ${new Intl.NumberFormat(this.locale).format(t.getDate())}
2150
+ </button>
2151
+ </td>`;
2152
+ });
2153
+ }
2154
+ render() {
2155
+ const e = this.componentClassNames("cre8-c-calendar", {});
2156
+ return c` <div class="${e}">
2157
+ ${this._activeModal === "month" ? c`<cre8-calendar-month-modal
2158
+ currentMonth="${this.getMonth()}"
2159
+ @changeMonth="${(r) => this.changeMonthFromNav(r.detail.month)}"
2160
+ ></cre8-calendar-month-modal>` : p}
2161
+ ${this._activeModal === "year" ? c`<cre8-calendar-year-modal
2162
+ currentYear="${this.getYear()}"
2163
+ @changeYear="${(r) => this.changeYearFromNav(r.detail.year)}"
2164
+ ></cre8-calendar-year-modal>` : p}
2165
+ ${this._activeModal === "none" ? c` ${this.hasShortcuts ? c`<div class="cre8-c-calendar__header-shortcuts">
2166
+ <cre8-button
2167
+ text="Today"
2168
+ variant="secondary"
2169
+ size="sm"
2170
+ @click="${() => this.emitSelectedDate(
2171
+ d.dateToString(this.dateConfig.today)
2172
+ )}"
2173
+ ></cre8-button>
2174
+ <cre8-button
2175
+ text="Tomorrow"
2176
+ variant="secondary"
2177
+ size="sm"
2178
+ @click="${() => this.emitSelectedDate(
2179
+ d.dateToString(
2180
+ new Date(
2181
+ this.dateConfig.today.setDate(
2182
+ this.dateConfig.today.getDate() + 1
2183
+ )
2184
+ )
2185
+ )
2186
+ )}"
2187
+ ></cre8-button>
2188
+ <cre8-button
2189
+ text="In 2 days"
2190
+ variant="secondary"
2191
+ size="sm"
2192
+ @click="${() => this.emitSelectedDate(
2193
+ d.dateToString(
2194
+ new Date(
2195
+ this.dateConfig.today.setDate(
2196
+ this.dateConfig.today.getDate() + 2
2197
+ )
2198
+ )
2199
+ )
2200
+ )}"
2201
+ ></cre8-button>
2202
+ </div>` : p}
2203
+ <cre8-calendar-navigation
2204
+ monthName="${this.getMonthName()}"
2205
+ year="${this.getYear()}"
2206
+ @activateModal="${(r) => this.activateModal(r.detail.modal)}"
2207
+ @changeMonth="${(r) => this.changeMonth(this.getMonth() + r.detail.addend)}"
2208
+ @changeYear="${(r) => this.changeYear(this.getYear() + r.detail.addend)}"
2209
+ >
2210
+ </cre8-calendar-navigation>
2211
+ <table>
2212
+ <thead>
2213
+ <tr>
2214
+ ${this.getDaysOfWeekAbbreviations()}
2215
+ </tr>
2216
+ </thead>
2217
+ <tbody>
2218
+ <tr @keydown=${this._handleCalendarKeyDown}>
2219
+ ${this.getPreviousMonthDayButtons()}
2220
+ ${this.getCurrentMonthDayButtons()}
2221
+ ${this.getNextMonthDayButtons()}
2222
+ </tr>
2223
+ </tbody>
2224
+ </table>` : p}
2225
+ </div>`;
2226
+ }
2227
+ }, d.styles = [R], d);
2228
+ y([
2229
+ C(".cre8-c-calendar__navigation-wrapper")
2230
+ ], h.prototype, "_navWrapper", 2);
2231
+ y([
2232
+ a({ type: Boolean, reflect: !0 })
2233
+ ], h.prototype, "hasShortcuts", 2);
2234
+ y([
2235
+ v()
2236
+ ], h.prototype, "_activeModal", 2);
2237
+ y([
2238
+ a({ reflect: !0, type: String })
2239
+ ], h.prototype, "activeModal", 1);
2240
+ y([
2241
+ v()
2242
+ ], h.prototype, "_fieldDate", 2);
2243
+ y([
2244
+ a({ reflect: !0, type: Date })
2245
+ ], h.prototype, "fieldDate", 1);
2246
+ y([
2247
+ v()
2248
+ ], h.prototype, "_currentDate", 2);
2249
+ y([
2250
+ a({ reflect: !0, type: Date })
2251
+ ], h.prototype, "currentDate", 1);
2252
+ y([
2253
+ v()
2254
+ ], h.prototype, "locale", 2);
2255
+ y([
2256
+ v()
2257
+ ], h.prototype, "weekDays", 2);
2258
+ y([
2259
+ v()
2260
+ ], h.prototype, "dateConfig", 2);
2261
+ y([
2262
+ v()
2263
+ ], h.prototype, "dateFormatOptions", 2);
2264
+ let ee = h;
2265
+ customElements.get("cre8-calendar") === void 0 && customElements.define("cre8-calendar", ee);
2266
+ var re = Object.defineProperty, M = (u, e, r, o) => {
2267
+ for (var t = void 0, n = u.length - 1, i; n >= 0; n--)
2268
+ (i = u[n]) && (t = i(e, r, t) || t);
2269
+ return t && re(e, r, t), t;
2270
+ };
2271
+ const F = class F extends B {
2272
+ constructor() {
2273
+ super(...arguments), this.type = "date", this.showCalendar = !1;
2274
+ }
2275
+ /**
2276
+ * Handle Date On Input
2277
+ * 1) Set the input's value equal to the event.target.value when the input is changed.
2278
+ * 2) Set the internal form value of the input to the updated value
2279
+ */
2280
+ handleDateOnInput(e) {
2281
+ this.value = e.target.value, this.internals.setFormValue(this.value);
2282
+ }
2283
+ handleCalendarSelect(e) {
2284
+ this.value = e.detail.date, this.internals.setFormValue(this.value), this.showCalendar = !1;
2285
+ }
2286
+ handleOutsideClick(e) {
2287
+ const r = this.renderRoot.querySelector(".cre8-c-date-picker");
2288
+ this.showCalendar && !e.detail.composedPath.includes(r) && (this.showCalendar = !1);
2289
+ }
2290
+ toggleCalendar() {
2291
+ !this.disabled && !this.readonly && (this.showCalendar = !this.showCalendar);
2292
+ }
2293
+ render() {
2294
+ const e = this.componentClassNames("cre8-c-date-picker", {
2295
+ "cre8-is-error": this.isError,
2296
+ "cre8-is-success": this.isSuccess,
2297
+ "cre8-c-date-picker--disabled": this.disabled,
2298
+ "cre8-c-date-picker--read-only": this.readonly
2299
+ });
2300
+ return this.type = "date", c`
2301
+ <div class="${e}">
2302
+ <label class="cre8-c-date-picker__label" for="${this.fieldId}"
2303
+ >${this.label}</label
2304
+ >
2305
+ <div class="cre8-c-date-picker__body">
2306
+ <input
2307
+ class="cre8-c-date-picker__input"
2308
+ autocomplete=${b(this.autocomplete)}
2309
+ type="${this.type}"
2310
+ id="${this.fieldId}"
2311
+ name="${b(this.name)}"
2312
+ max=${b(this.max)}
2313
+ min=${b(this.min)}
2314
+ value="${b(this.value)}"
2315
+ ?readonly=${this.readonly}
2316
+ ?required=${this.required}
2317
+ ?disabled="${this.disabled}"
2318
+ aria-describedby="${b(this.fieldNoteAria())}"
2319
+ placeholder="${b(this.placeholder)}"
2320
+ @input=${this.handleDateOnInput}
2321
+ @click=${this.toggleCalendar}
2322
+ />
2323
+ <cre8-button
2324
+ class="cre8-c-date-picker__calendar-icon-button"
2325
+ aria-expanded="${this.showCalendar}"
2326
+ aria-label="Show Calendar"
2327
+ ?disabled="${this.disabled || this.readonly}"
2328
+ ?hideText=${!0}
2329
+ iconName="calendar-datepicker"
2330
+ variant="tertiary"
2331
+ @click="${this.toggleCalendar}"
2332
+ ></cre8-button>
2333
+ </div>
2334
+ ${this.showCalendar ? c`<cre8-calendar
2335
+ fieldDate="${b(this.value)}"
2336
+ ?hasShortcuts=${this.hasShortcuts}
2337
+ @dateSelect="${this.handleCalendarSelect}"
2338
+ @outsideClick="${this.handleOutsideClick}"
2339
+ ></cre8-calendar>` : p}
2340
+ ${this.fieldNote || this.slotNotEmpty("fieldNote") ? c`<cre8-field-note
2341
+ id=${this.ariaDescribedBy}
2342
+ class="cre8-c-date-picker__field-note"
2343
+ ><slot name="fieldNote">${this.fieldNote}</slot></cre8-field-note
2344
+ >` : p}
2345
+ ${this.renderSuccessErrorFieldNote()}
2346
+ </div>
2347
+ `;
2348
+ }
2349
+ };
2350
+ F.styles = [P];
2351
+ let k = F;
2352
+ M([
2353
+ C('input[type="date"]')
2354
+ ], k.prototype, "field");
2355
+ M([
2356
+ v()
2357
+ ], k.prototype, "showCalendar");
2358
+ M([
2359
+ a({ type: Boolean, reflect: !0 })
2360
+ ], k.prototype, "hasShortcuts");
2361
+ customElements.get("cre8-date-picker") === void 0 && customElements.define("cre8-date-picker", k);
2362
+ export {
2363
+ s as C,
2364
+ g as a,
2365
+ k as b
2366
+ };