@tmorrow/cre8-wc 1.2.4 → 1.2.6

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 (855) hide show
  1. package/lib/cdn-entry.d.ts +126 -0
  2. package/lib/cdn-entry.d.ts.map +1 -0
  3. package/lib/cdn-entry.js +131 -0
  4. package/lib/cdn-entry.js.map +1 -0
  5. package/lib/components/accordion/accordion.d.ts +39 -0
  6. package/lib/components/accordion/accordion.d.ts.map +1 -0
  7. package/lib/components/accordion/accordion.js +58 -666
  8. package/lib/components/accordion/accordion.js.map +1 -0
  9. package/lib/components/accordion/accordion.styles.d.ts +3 -0
  10. package/lib/components/accordion/accordion.styles.d.ts.map +1 -0
  11. package/lib/components/accordion/accordion.styles.js +630 -0
  12. package/lib/components/accordion/accordion.styles.js.map +1 -0
  13. package/lib/components/accordion-item/accordion-item.d.ts +141 -0
  14. package/lib/components/accordion-item/accordion-item.d.ts.map +1 -0
  15. package/lib/components/accordion-item/accordion-item.js +183 -904
  16. package/lib/components/accordion-item/accordion-item.js.map +1 -0
  17. package/lib/components/accordion-item/accordion-item.styles.d.ts +3 -0
  18. package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -0
  19. package/lib/components/accordion-item/accordion-item.styles.js +811 -0
  20. package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
  21. package/lib/components/alert/alert.d.ts +60 -0
  22. package/lib/components/alert/alert.d.ts.map +1 -0
  23. package/lib/components/alert/alert.js +146 -866
  24. package/lib/components/alert/alert.js.map +1 -0
  25. package/lib/components/alert/alert.styles.d.ts +3 -0
  26. package/lib/components/alert/alert.styles.d.ts.map +1 -0
  27. package/lib/components/alert/alert.styles.js +749 -0
  28. package/lib/components/alert/alert.styles.js.map +1 -0
  29. package/lib/components/badge/badge.d.ts +62 -0
  30. package/lib/components/badge/badge.d.ts.map +1 -0
  31. package/lib/components/badge/badge.js +72 -764
  32. package/lib/components/badge/badge.js.map +1 -0
  33. package/lib/components/badge/badge.styles.d.ts +3 -0
  34. package/lib/components/badge/badge.styles.d.ts.map +1 -0
  35. package/lib/components/badge/badge.styles.js +719 -0
  36. package/lib/components/badge/badge.styles.js.map +1 -0
  37. package/lib/components/band/band.d.ts +29 -0
  38. package/lib/components/band/band.d.ts.map +1 -0
  39. package/lib/components/band/band.js +34 -641
  40. package/lib/components/band/band.js.map +1 -0
  41. package/lib/components/band/band.styles.d.ts +3 -0
  42. package/lib/components/band/band.styles.d.ts.map +1 -0
  43. package/lib/components/band/band.styles.js +614 -0
  44. package/lib/components/band/band.styles.js.map +1 -0
  45. package/lib/components/breadcrumbs/breadcrumbs.d.ts +32 -0
  46. package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  47. package/lib/components/breadcrumbs/breadcrumbs.js +52 -625
  48. package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
  49. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
  50. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
  51. package/lib/components/breadcrumbs/breadcrumbs.styles.js +601 -0
  52. package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
  53. package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts +17 -0
  54. package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts.map +1 -0
  55. package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -641
  56. package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
  57. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts +3 -0
  58. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -0
  59. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +616 -0
  60. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
  61. package/lib/components/button/button.d.ts +229 -0
  62. package/lib/components/button/button.d.ts.map +1 -0
  63. package/lib/components/button/button.js +290 -1040
  64. package/lib/components/button/button.js.map +1 -0
  65. package/lib/components/button/button.styles.d.ts +3 -0
  66. package/lib/components/button/button.styles.d.ts.map +1 -0
  67. package/lib/components/button/button.styles.js +885 -0
  68. package/lib/components/button/button.styles.js.map +1 -0
  69. package/lib/components/button-group/button-group.d.ts +19 -0
  70. package/lib/components/button-group/button-group.d.ts.map +1 -0
  71. package/lib/components/button-group/button-group.js +30 -638
  72. package/lib/components/button-group/button-group.js.map +1 -0
  73. package/lib/components/button-group/button-group.styles.d.ts +3 -0
  74. package/lib/components/button-group/button-group.styles.d.ts.map +1 -0
  75. package/lib/components/button-group/button-group.styles.js +615 -0
  76. package/lib/components/button-group/button-group.styles.js.map +1 -0
  77. package/lib/components/card/card.d.ts +45 -0
  78. package/lib/components/card/card.d.ts.map +1 -0
  79. package/lib/components/card/card.js +57 -734
  80. package/lib/components/card/card.js.map +1 -0
  81. package/lib/components/card/card.styles.d.ts +3 -0
  82. package/lib/components/card/card.styles.d.ts.map +1 -0
  83. package/lib/components/card/card.styles.js +703 -0
  84. package/lib/components/card/card.styles.js.map +1 -0
  85. package/lib/components/chart/chart.d.ts +224 -0
  86. package/lib/components/chart/chart.d.ts.map +1 -0
  87. package/lib/components/chart/chart.js +528 -714
  88. package/lib/components/chart/chart.js.map +1 -0
  89. package/lib/components/chart/chart.styles.d.ts +3 -0
  90. package/lib/components/chart/chart.styles.d.ts.map +1 -0
  91. package/lib/components/chart/chart.styles.js +364 -0
  92. package/lib/components/chart/chart.styles.js.map +1 -0
  93. package/lib/components/checkbox-field/checkbox-field.d.ts +54 -0
  94. package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -0
  95. package/lib/components/checkbox-field/checkbox-field.js +64 -669
  96. package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
  97. package/lib/components/checkbox-field/checkbox-field.styles.d.ts +3 -0
  98. package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -0
  99. package/lib/components/checkbox-field/checkbox-field.styles.js +622 -0
  100. package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
  101. package/lib/components/checkbox-field-item/checkbox-field-item.d.ts +172 -0
  102. package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -0
  103. package/lib/components/checkbox-field-item/checkbox-field-item.js +241 -1038
  104. package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
  105. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts +3 -0
  106. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -0
  107. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +867 -0
  108. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -0
  109. package/lib/components/contexts/form-internals-context.d.ts +35 -0
  110. package/lib/components/contexts/form-internals-context.d.ts.map +1 -0
  111. package/lib/components/contexts/form-internals-context.js +9 -0
  112. package/lib/components/contexts/form-internals-context.js.map +1 -0
  113. package/lib/components/cre8-element.d.ts +54 -0
  114. package/lib/components/cre8-element.d.ts.map +1 -0
  115. package/lib/components/cre8-element.js +57 -56
  116. package/lib/components/cre8-element.js.map +1 -0
  117. package/lib/components/cre8-form-element.d.ts +137 -0
  118. package/lib/components/cre8-form-element.d.ts.map +1 -0
  119. package/lib/components/cre8-form-element.js +213 -6
  120. package/lib/components/cre8-form-element.js.map +1 -0
  121. package/lib/components/danger-button/danger-button.d.ts +208 -0
  122. package/lib/components/danger-button/danger-button.d.ts.map +1 -0
  123. package/lib/components/danger-button/danger-button.js +271 -1257
  124. package/lib/components/danger-button/danger-button.js.map +1 -0
  125. package/lib/components/danger-button/danger-button.styles.d.ts +3 -0
  126. package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -0
  127. package/lib/components/danger-button/danger-button.styles.js +1117 -0
  128. package/lib/components/danger-button/danger-button.styles.js.map +1 -0
  129. package/lib/components/date-picker/calendar/calendar.d.ts +115 -0
  130. package/lib/components/date-picker/calendar/calendar.d.ts.map +1 -0
  131. package/lib/components/date-picker/calendar/calendar.js +465 -0
  132. package/lib/components/date-picker/calendar/calendar.js.map +1 -0
  133. package/lib/components/date-picker/calendar/calendar.styles.d.ts +3 -0
  134. package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -0
  135. package/lib/components/date-picker/calendar/calendar.styles.js +689 -0
  136. package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -0
  137. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts +22 -0
  138. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts.map +1 -0
  139. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js +76 -0
  140. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js.map +1 -0
  141. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts +3 -0
  142. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -0
  143. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +610 -0
  144. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -0
  145. package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts +19 -0
  146. package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts.map +1 -0
  147. package/lib/components/date-picker/calendar-navigation/calendar-navigation.js +110 -0
  148. package/lib/components/date-picker/calendar-navigation/calendar-navigation.js.map +1 -0
  149. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts +3 -0
  150. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -0
  151. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +598 -0
  152. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -0
  153. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts +28 -0
  154. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts.map +1 -0
  155. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js +116 -0
  156. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js.map +1 -0
  157. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts +3 -0
  158. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -0
  159. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +617 -0
  160. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
  161. package/lib/components/date-picker/date-picker.d.ts +43 -0
  162. package/lib/components/date-picker/date-picker.d.ts.map +1 -0
  163. package/lib/components/date-picker/date-picker.js +97 -3320
  164. package/lib/components/date-picker/date-picker.js.map +1 -0
  165. package/lib/components/date-picker/date-picker.styles.d.ts +3 -0
  166. package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -0
  167. package/lib/components/date-picker/date-picker.styles.js +4 -0
  168. package/lib/components/date-picker/date-picker.styles.js.map +1 -0
  169. package/lib/components/divider/divider.d.ts +29 -0
  170. package/lib/components/divider/divider.d.ts.map +1 -0
  171. package/lib/components/divider/divider.js +44 -653
  172. package/lib/components/divider/divider.js.map +1 -0
  173. package/lib/components/divider/divider.styles.d.ts +3 -0
  174. package/lib/components/divider/divider.styles.d.ts.map +1 -0
  175. package/lib/components/divider/divider.styles.js +623 -0
  176. package/lib/components/divider/divider.styles.js.map +1 -0
  177. package/lib/components/dropdown/dropdown.d.ts +35 -0
  178. package/lib/components/dropdown/dropdown.d.ts.map +1 -0
  179. package/lib/components/dropdown/dropdown.js +90 -713
  180. package/lib/components/dropdown/dropdown.js.map +1 -0
  181. package/lib/components/dropdown/dropdown.styles.d.ts +3 -0
  182. package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -0
  183. package/lib/components/dropdown/dropdown.styles.js +659 -0
  184. package/lib/components/dropdown/dropdown.styles.js.map +1 -0
  185. package/lib/components/dropdown-item/dropdown-item.d.ts +19 -0
  186. package/lib/components/dropdown-item/dropdown-item.d.ts.map +1 -0
  187. package/lib/components/dropdown-item/dropdown-item.js +37 -640
  188. package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
  189. package/lib/components/dropdown-item/dropdown-item.styles.d.ts +3 -0
  190. package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -0
  191. package/lib/components/dropdown-item/dropdown-item.styles.js +614 -0
  192. package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
  193. package/lib/components/feature/feature.d.ts +28 -0
  194. package/lib/components/feature/feature.d.ts.map +1 -0
  195. package/lib/components/feature/feature.js +40 -679
  196. package/lib/components/feature/feature.js.map +1 -0
  197. package/lib/components/feature/feature.styles.d.ts +3 -0
  198. package/lib/components/feature/feature.styles.d.ts.map +1 -0
  199. package/lib/components/feature/feature.styles.js +648 -0
  200. package/lib/components/feature/feature.styles.js.map +1 -0
  201. package/lib/components/field/field.d.ts +209 -0
  202. package/lib/components/field/field.d.ts.map +1 -0
  203. package/lib/components/field/field.js +213 -854
  204. package/lib/components/field/field.js.map +1 -0
  205. package/lib/components/field/field.styles.d.ts +3 -0
  206. package/lib/components/field/field.styles.d.ts.map +1 -0
  207. package/lib/components/field/field.styles.js +710 -0
  208. package/lib/components/field/field.styles.js.map +1 -0
  209. package/lib/components/field-note/field-note.d.ts +37 -0
  210. package/lib/components/field-note/field-note.d.ts.map +1 -0
  211. package/lib/components/field-note/field-note.js +58 -674
  212. package/lib/components/field-note/field-note.js.map +1 -0
  213. package/lib/components/field-note/field-note.styles.d.ts +3 -0
  214. package/lib/components/field-note/field-note.styles.d.ts.map +1 -0
  215. package/lib/components/field-note/field-note.styles.js +628 -0
  216. package/lib/components/field-note/field-note.styles.js.map +1 -0
  217. package/lib/components/footer/footer.d.ts +17 -0
  218. package/lib/components/footer/footer.d.ts.map +1 -0
  219. package/lib/components/footer/footer.js +25 -620
  220. package/lib/components/footer/footer.js.map +1 -0
  221. package/lib/components/footer/footer.styles.d.ts +3 -0
  222. package/lib/components/footer/footer.styles.d.ts.map +1 -0
  223. package/lib/components/footer/footer.styles.js +606 -0
  224. package/lib/components/footer/footer.styles.js.map +1 -0
  225. package/lib/components/global-nav/global-nav.d.ts +33 -0
  226. package/lib/components/global-nav/global-nav.d.ts.map +1 -0
  227. package/lib/components/global-nav/global-nav.js +44 -638
  228. package/lib/components/global-nav/global-nav.js.map +1 -0
  229. package/lib/components/global-nav/global-nav.styles.d.ts +3 -0
  230. package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -0
  231. package/lib/components/global-nav/global-nav.styles.js +605 -0
  232. package/lib/components/global-nav/global-nav.styles.js.map +1 -0
  233. package/lib/components/global-nav-item/global-nav-item.d.ts +71 -0
  234. package/lib/components/global-nav-item/global-nav-item.d.ts.map +1 -0
  235. package/lib/components/global-nav-item/global-nav-item.js +144 -768
  236. package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
  237. package/lib/components/global-nav-item/global-nav-item.styles.d.ts +3 -0
  238. package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -0
  239. package/lib/components/global-nav-item/global-nav-item.styles.js +665 -0
  240. package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
  241. package/lib/components/grid/grid.d.ts +49 -0
  242. package/lib/components/grid/grid.d.ts.map +1 -0
  243. package/lib/components/grid/grid.js +48 -976
  244. package/lib/components/grid/grid.js.map +1 -0
  245. package/lib/components/grid/grid.styles.d.ts +3 -0
  246. package/lib/components/grid/grid.styles.d.ts.map +1 -0
  247. package/lib/components/grid/grid.styles.js +935 -0
  248. package/lib/components/grid/grid.styles.js.map +1 -0
  249. package/lib/components/grid-item/grid-item.d.ts +15 -0
  250. package/lib/components/grid-item/grid-item.d.ts.map +1 -0
  251. package/lib/components/grid-item/grid-item.js +17 -602
  252. package/lib/components/grid-item/grid-item.js.map +1 -0
  253. package/lib/components/grid-item/grid-item.styles.d.ts +3 -0
  254. package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -0
  255. package/lib/components/grid-item/grid-item.styles.js +592 -0
  256. package/lib/components/grid-item/grid-item.styles.js.map +1 -0
  257. package/lib/components/header/header.d.ts +20 -0
  258. package/lib/components/header/header.d.ts.map +1 -0
  259. package/lib/components/header/header.js +34 -670
  260. package/lib/components/header/header.js.map +1 -0
  261. package/lib/components/header/header.styles.d.ts +3 -0
  262. package/lib/components/header/header.styles.d.ts.map +1 -0
  263. package/lib/components/header/header.styles.js +645 -0
  264. package/lib/components/header/header.styles.js.map +1 -0
  265. package/lib/components/heading/heading.d.ts +81 -0
  266. package/lib/components/heading/heading.d.ts.map +1 -0
  267. package/lib/components/heading/heading.js +111 -977
  268. package/lib/components/heading/heading.js.map +1 -0
  269. package/lib/components/heading/heading.styles.d.ts +3 -0
  270. package/lib/components/heading/heading.styles.d.ts.map +1 -0
  271. package/lib/components/heading/heading.styles.js +907 -0
  272. package/lib/components/heading/heading.styles.js.map +1 -0
  273. package/lib/components/hero/hero.d.ts +39 -0
  274. package/lib/components/hero/hero.d.ts.map +1 -0
  275. package/lib/components/hero/hero.js +43 -760
  276. package/lib/components/hero/hero.js.map +1 -0
  277. package/lib/components/hero/hero.styles.d.ts +3 -0
  278. package/lib/components/hero/hero.styles.d.ts.map +1 -0
  279. package/lib/components/hero/hero.styles.js +724 -0
  280. package/lib/components/hero/hero.styles.js.map +1 -0
  281. package/lib/components/icon/icon.d.ts +78 -0
  282. package/lib/components/icon/icon.d.ts.map +1 -0
  283. package/lib/components/icon/icon.js +228 -1246
  284. package/lib/components/icon/icon.js.map +1 -0
  285. package/lib/components/icon/icon.styles.d.ts +3 -0
  286. package/lib/components/icon/icon.styles.d.ts.map +1 -0
  287. package/lib/components/icon/icon.styles.js +660 -0
  288. package/lib/components/icon/icon.styles.js.map +1 -0
  289. package/lib/components/inline-alert/inline-alert.d.ts +52 -0
  290. package/lib/components/inline-alert/inline-alert.d.ts.map +1 -0
  291. package/lib/components/inline-alert/inline-alert.js +114 -849
  292. package/lib/components/inline-alert/inline-alert.js.map +1 -0
  293. package/lib/components/inline-alert/inline-alert.styles.d.ts +3 -0
  294. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -0
  295. package/lib/components/inline-alert/inline-alert.styles.js +755 -0
  296. package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
  297. package/lib/components/layout/layout.d.ts +25 -0
  298. package/lib/components/layout/layout.d.ts.map +1 -0
  299. package/lib/components/layout/layout.js +30 -641
  300. package/lib/components/layout/layout.js.map +1 -0
  301. package/lib/components/layout/layout.styles.d.ts +3 -0
  302. package/lib/components/layout/layout.styles.d.ts.map +1 -0
  303. package/lib/components/layout/layout.styles.js +618 -0
  304. package/lib/components/layout/layout.styles.js.map +1 -0
  305. package/lib/components/layout-container/layout-container.d.ts +20 -0
  306. package/lib/components/layout-container/layout-container.d.ts.map +1 -0
  307. package/lib/components/layout-container/layout-container.js +30 -628
  308. package/lib/components/layout-container/layout-container.js.map +1 -0
  309. package/lib/components/layout-container/layout-container.styles.d.ts +3 -0
  310. package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -0
  311. package/lib/components/layout-container/layout-container.styles.js +605 -0
  312. package/lib/components/layout-container/layout-container.styles.js.map +1 -0
  313. package/lib/components/layout-section/layout-section.d.ts +26 -0
  314. package/lib/components/layout-section/layout-section.d.ts.map +1 -0
  315. package/lib/components/layout-section/layout-section.js +41 -622
  316. package/lib/components/layout-section/layout-section.js.map +1 -0
  317. package/lib/components/layout-section/layout-section.styles.d.ts +3 -0
  318. package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -0
  319. package/lib/components/layout-section/layout-section.styles.js +593 -0
  320. package/lib/components/layout-section/layout-section.styles.js.map +1 -0
  321. package/lib/components/linelength-container/linelength-container.d.ts +15 -0
  322. package/lib/components/linelength-container/linelength-container.d.ts.map +1 -0
  323. package/lib/components/linelength-container/linelength-container.js +17 -602
  324. package/lib/components/linelength-container/linelength-container.js.map +1 -0
  325. package/lib/components/linelength-container/linelength-container.styles.d.ts +3 -0
  326. package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -0
  327. package/lib/components/linelength-container/linelength-container.styles.js +592 -0
  328. package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
  329. package/lib/components/link/link.d.ts +93 -0
  330. package/lib/components/link/link.d.ts.map +1 -0
  331. package/lib/components/link/link.js +123 -846
  332. package/lib/components/link/link.js.map +1 -0
  333. package/lib/components/link/link.styles.d.ts +3 -0
  334. package/lib/components/link/link.styles.d.ts.map +1 -0
  335. package/lib/components/link/link.styles.js +765 -0
  336. package/lib/components/link/link.styles.js.map +1 -0
  337. package/lib/components/link-list/link-list.d.ts +42 -0
  338. package/lib/components/link-list/link-list.d.ts.map +1 -0
  339. package/lib/components/link-list/link-list.js +48 -739
  340. package/lib/components/link-list/link-list.js.map +1 -0
  341. package/lib/components/link-list/link-list.styles.d.ts +3 -0
  342. package/lib/components/link-list/link-list.styles.d.ts.map +1 -0
  343. package/lib/components/link-list/link-list.styles.js +698 -0
  344. package/lib/components/link-list/link-list.styles.js.map +1 -0
  345. package/lib/components/link-list-item/link-list-item.d.ts +27 -0
  346. package/lib/components/link-list-item/link-list-item.d.ts.map +1 -0
  347. package/lib/components/link-list-item/link-list-item.js +40 -677
  348. package/lib/components/link-list-item/link-list-item.js.map +1 -0
  349. package/lib/components/link-list-item/link-list-item.styles.d.ts +3 -0
  350. package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -0
  351. package/lib/components/link-list-item/link-list-item.styles.js +644 -0
  352. package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
  353. package/lib/components/list/list.d.ts +34 -0
  354. package/lib/components/list/list.d.ts.map +1 -0
  355. package/lib/components/list/list.js +35 -662
  356. package/lib/components/list/list.js.map +1 -0
  357. package/lib/components/list/list.styles.d.ts +3 -0
  358. package/lib/components/list/list.styles.d.ts.map +1 -0
  359. package/lib/components/list/list.styles.js +634 -0
  360. package/lib/components/list/list.styles.js.map +1 -0
  361. package/lib/components/list-item/list-item.d.ts +16 -0
  362. package/lib/components/list-item/list-item.d.ts.map +1 -0
  363. package/lib/components/list-item/list-item.js +25 -606
  364. package/lib/components/list-item/list-item.js.map +1 -0
  365. package/lib/components/list-item/list-item.styles.d.ts +3 -0
  366. package/lib/components/list-item/list-item.styles.d.ts.map +1 -0
  367. package/lib/components/list-item/list-item.styles.js +589 -0
  368. package/lib/components/list-item/list-item.styles.js.map +1 -0
  369. package/lib/components/loading-spinner/loading-spinner.d.ts +90 -0
  370. package/lib/components/loading-spinner/loading-spinner.d.ts.map +1 -0
  371. package/lib/components/loading-spinner/loading-spinner.js +124 -787
  372. package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
  373. package/lib/components/loading-spinner/loading-spinner.styles.d.ts +3 -0
  374. package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -0
  375. package/lib/components/loading-spinner/loading-spinner.styles.js +722 -0
  376. package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
  377. package/lib/components/logo/logo.d.ts +19 -0
  378. package/lib/components/logo/logo.d.ts.map +1 -0
  379. package/lib/components/logo/logo.js +28 -613
  380. package/lib/components/logo/logo.js.map +1 -0
  381. package/lib/components/logo/logo.styles.d.ts +3 -0
  382. package/lib/components/logo/logo.styles.d.ts.map +1 -0
  383. package/lib/components/logo/logo.styles.js +592 -0
  384. package/lib/components/logo/logo.styles.js.map +1 -0
  385. package/lib/components/main/main.d.ts +20 -0
  386. package/lib/components/main/main.d.ts.map +1 -0
  387. package/lib/components/main/main.js +29 -628
  388. package/lib/components/main/main.js.map +1 -0
  389. package/lib/components/main/main.styles.d.ts +3 -0
  390. package/lib/components/main/main.styles.d.ts.map +1 -0
  391. package/lib/components/main/main.styles.js +606 -0
  392. package/lib/components/main/main.styles.js.map +1 -0
  393. package/lib/components/modal/modal.d.ts +99 -0
  394. package/lib/components/modal/modal.d.ts.map +1 -0
  395. package/lib/components/modal/modal.js +170 -878
  396. package/lib/components/modal/modal.js.map +1 -0
  397. package/lib/components/modal/modal.styles.d.ts +3 -0
  398. package/lib/components/modal/modal.styles.d.ts.map +1 -0
  399. package/lib/components/modal/modal.styles.js +743 -0
  400. package/lib/components/modal/modal.styles.js.map +1 -0
  401. package/lib/components/multi-select/multi-select.d.ts +131 -0
  402. package/lib/components/multi-select/multi-select.d.ts.map +1 -0
  403. package/lib/components/multi-select/multi-select.js +294 -1030
  404. package/lib/components/multi-select/multi-select.js.map +1 -0
  405. package/lib/components/multi-select/multi-select.styles.d.ts +3 -0
  406. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -0
  407. package/lib/components/multi-select/multi-select.styles.js +829 -0
  408. package/lib/components/multi-select/multi-select.styles.js.map +1 -0
  409. package/lib/components/nav-container/nav-container.d.ts +15 -0
  410. package/lib/components/nav-container/nav-container.d.ts.map +1 -0
  411. package/lib/components/nav-container/nav-container.js +17 -631
  412. package/lib/components/nav-container/nav-container.js.map +1 -0
  413. package/lib/components/nav-container/nav-container.styles.d.ts +3 -0
  414. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -0
  415. package/lib/components/nav-container/nav-container.styles.js +621 -0
  416. package/lib/components/nav-container/nav-container.styles.js.map +1 -0
  417. package/lib/components/page-header/page-header.d.ts +19 -0
  418. package/lib/components/page-header/page-header.d.ts.map +1 -0
  419. package/lib/components/page-header/page-header.js +36 -664
  420. package/lib/components/page-header/page-header.js.map +1 -0
  421. package/lib/components/page-header/page-header.styles.d.ts +3 -0
  422. package/lib/components/page-header/page-header.styles.d.ts.map +1 -0
  423. package/lib/components/page-header/page-header.styles.js +639 -0
  424. package/lib/components/page-header/page-header.styles.js.map +1 -0
  425. package/lib/components/pagination/page-counter/page-counter.d.ts +20 -0
  426. package/lib/components/pagination/page-counter/page-counter.d.ts.map +1 -0
  427. package/lib/components/pagination/page-counter/page-counter.js +67 -0
  428. package/lib/components/pagination/page-counter/page-counter.js.map +1 -0
  429. package/lib/components/pagination/page-counter/page-counter.styles.d.ts +3 -0
  430. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -0
  431. package/lib/components/pagination/page-counter/page-counter.styles.js +602 -0
  432. package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
  433. package/lib/components/pagination/pagination.d.ts +126 -0
  434. package/lib/components/pagination/pagination.d.ts.map +1 -0
  435. package/lib/components/pagination/pagination.js +272 -1475
  436. package/lib/components/pagination/pagination.js.map +1 -0
  437. package/lib/components/pagination/pagination.styles.d.ts +3 -0
  438. package/lib/components/pagination/pagination.styles.d.ts.map +1 -0
  439. package/lib/components/pagination/pagination.styles.js +648 -0
  440. package/lib/components/pagination/pagination.styles.js.map +1 -0
  441. package/lib/components/percent-bar/percent-bar.d.ts +26 -0
  442. package/lib/components/percent-bar/percent-bar.d.ts.map +1 -0
  443. package/lib/components/percent-bar/percent-bar.js +53 -657
  444. package/lib/components/percent-bar/percent-bar.js.map +1 -0
  445. package/lib/components/percent-bar/percent-bar.styles.d.ts +3 -0
  446. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -0
  447. package/lib/components/percent-bar/percent-bar.styles.js +614 -0
  448. package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
  449. package/lib/components/popover/popover.d.ts +155 -0
  450. package/lib/components/popover/popover.d.ts.map +1 -0
  451. package/lib/components/popover/popover.js +293 -933
  452. package/lib/components/popover/popover.js.map +1 -0
  453. package/lib/components/popover/popover.styles.d.ts +3 -0
  454. package/lib/components/popover/popover.styles.d.ts.map +1 -0
  455. package/lib/components/popover/popover.styles.js +769 -0
  456. package/lib/components/popover/popover.styles.js.map +1 -0
  457. package/lib/components/primary-nav/primary-nav.d.ts +33 -0
  458. package/lib/components/primary-nav/primary-nav.d.ts.map +1 -0
  459. package/lib/components/primary-nav/primary-nav.js +44 -649
  460. package/lib/components/primary-nav/primary-nav.js.map +1 -0
  461. package/lib/components/primary-nav/primary-nav.styles.d.ts +3 -0
  462. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -0
  463. package/lib/components/primary-nav/primary-nav.styles.js +616 -0
  464. package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
  465. package/lib/components/primary-nav-item/primary-nav-item.d.ts +71 -0
  466. package/lib/components/primary-nav-item/primary-nav-item.d.ts.map +1 -0
  467. package/lib/components/primary-nav-item/primary-nav-item.js +146 -874
  468. package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
  469. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts +3 -0
  470. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -0
  471. package/lib/components/primary-nav-item/primary-nav-item.styles.js +770 -0
  472. package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
  473. package/lib/components/progress-meter/progress-meter.d.ts +51 -0
  474. package/lib/components/progress-meter/progress-meter.d.ts.map +1 -0
  475. package/lib/components/progress-meter/progress-meter.js +72 -753
  476. package/lib/components/progress-meter/progress-meter.js.map +1 -0
  477. package/lib/components/progress-meter/progress-meter.styles.d.ts +3 -0
  478. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -0
  479. package/lib/components/progress-meter/progress-meter.styles.js +702 -0
  480. package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
  481. package/lib/components/progress-steps/progress-steps.d.ts +34 -0
  482. package/lib/components/progress-steps/progress-steps.d.ts.map +1 -0
  483. package/lib/components/progress-steps/progress-steps.js +38 -617
  484. package/lib/components/progress-steps/progress-steps.js.map +1 -0
  485. package/lib/components/progress-steps/progress-steps.styles.d.ts +3 -0
  486. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -0
  487. package/lib/components/progress-steps/progress-steps.styles.js +604 -0
  488. package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
  489. package/lib/components/progress-steps-item/progress-steps-item.d.ts +44 -0
  490. package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -0
  491. package/lib/components/progress-steps-item/progress-steps-item.js +51 -749
  492. package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
  493. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts +3 -0
  494. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -0
  495. package/lib/components/progress-steps-item/progress-steps-item.styles.js +714 -0
  496. package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
  497. package/lib/components/radio-field/radio-field.d.ts +56 -0
  498. package/lib/components/radio-field/radio-field.d.ts.map +1 -0
  499. package/lib/components/radio-field/radio-field.js +59 -672
  500. package/lib/components/radio-field/radio-field.js.map +1 -0
  501. package/lib/components/radio-field/radio-field.styles.d.ts +3 -0
  502. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -0
  503. package/lib/components/radio-field/radio-field.styles.js +627 -0
  504. package/lib/components/radio-field/radio-field.styles.js.map +1 -0
  505. package/lib/components/radio-field-item/radio-field-item.d.ts +158 -0
  506. package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -0
  507. package/lib/components/radio-field-item/radio-field-item.js +213 -890
  508. package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
  509. package/lib/components/radio-field-item/radio-field-item.styles.d.ts +3 -0
  510. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -0
  511. package/lib/components/radio-field-item/radio-field-item.styles.js +724 -0
  512. package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
  513. package/lib/components/remove-tag/remove-tag.d.ts +53 -0
  514. package/lib/components/remove-tag/remove-tag.d.ts.map +1 -0
  515. package/lib/components/remove-tag/remove-tag.js +86 -742
  516. package/lib/components/remove-tag/remove-tag.js.map +1 -0
  517. package/lib/components/remove-tag/remove-tag.styles.d.ts +3 -0
  518. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -0
  519. package/lib/components/remove-tag/remove-tag.styles.js +684 -0
  520. package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
  521. package/lib/components/section/section.d.ts +33 -0
  522. package/lib/components/section/section.d.ts.map +1 -0
  523. package/lib/components/section/section.js +46 -634
  524. package/lib/components/section/section.js.map +1 -0
  525. package/lib/components/section/section.styles.d.ts +3 -0
  526. package/lib/components/section/section.styles.d.ts.map +1 -0
  527. package/lib/components/section/section.styles.js +611 -0
  528. package/lib/components/section/section.styles.js.map +1 -0
  529. package/lib/components/select/select.d.ts +169 -0
  530. package/lib/components/select/select.d.ts.map +1 -0
  531. package/lib/components/select/select.js +235 -890
  532. package/lib/components/select/select.js.map +1 -0
  533. package/lib/components/select/select.styles.d.ts +3 -0
  534. package/lib/components/select/select.styles.d.ts.map +1 -0
  535. package/lib/components/select/select.styles.js +742 -0
  536. package/lib/components/select/select.styles.js.map +1 -0
  537. package/lib/components/select-tile/select-tile-checkbox-controller.d.ts +40 -0
  538. package/lib/components/select-tile/select-tile-checkbox-controller.d.ts.map +1 -0
  539. package/lib/components/select-tile/select-tile-checkbox-controller.js +60 -0
  540. package/lib/components/select-tile/select-tile-checkbox-controller.js.map +1 -0
  541. package/lib/components/select-tile/select-tile-radio-controller.d.ts +87 -0
  542. package/lib/components/select-tile/select-tile-radio-controller.d.ts.map +1 -0
  543. package/lib/components/select-tile/select-tile-radio-controller.js +167 -0
  544. package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
  545. package/lib/components/select-tile/select-tile.d.ts +159 -0
  546. package/lib/components/select-tile/select-tile.d.ts.map +1 -0
  547. package/lib/components/select-tile/select-tile.js +228 -226
  548. package/lib/components/select-tile/select-tile.js.map +1 -0
  549. package/lib/components/select-tile/select-tile.styles.d.ts +3 -0
  550. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -0
  551. package/lib/components/select-tile/select-tile.styles.js +4 -0
  552. package/lib/components/select-tile/select-tile.styles.js.map +1 -0
  553. package/lib/components/select-tile-list/select-tile-list.d.ts +52 -0
  554. package/lib/components/select-tile-list/select-tile-list.d.ts.map +1 -0
  555. package/lib/components/select-tile-list/select-tile-list.js +73 -678
  556. package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
  557. package/lib/components/select-tile-list/select-tile-list.styles.d.ts +3 -0
  558. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -0
  559. package/lib/components/select-tile-list/select-tile-list.styles.js +623 -0
  560. package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
  561. package/lib/components/skeleton-loader/skeleton-loader.d.ts +53 -0
  562. package/lib/components/skeleton-loader/skeleton-loader.d.ts.map +1 -0
  563. package/lib/components/skeleton-loader/skeleton-loader.js +68 -672
  564. package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
  565. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts +3 -0
  566. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -0
  567. package/lib/components/skeleton-loader/skeleton-loader.styles.js +637 -0
  568. package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
  569. package/lib/components/split-button/split-button.d.ts +34 -0
  570. package/lib/components/split-button/split-button.d.ts.map +1 -0
  571. package/lib/components/split-button/split-button.js +49 -638
  572. package/lib/components/split-button/split-button.js.map +1 -0
  573. package/lib/components/split-button/split-button.styles.d.ts +3 -0
  574. package/lib/components/split-button/split-button.styles.d.ts.map +1 -0
  575. package/lib/components/split-button/split-button.styles.js +598 -0
  576. package/lib/components/split-button/split-button.styles.js.map +1 -0
  577. package/lib/components/submenu/submenu.d.ts +15 -0
  578. package/lib/components/submenu/submenu.d.ts.map +1 -0
  579. package/lib/components/submenu/submenu.js +17 -604
  580. package/lib/components/submenu/submenu.js.map +1 -0
  581. package/lib/components/submenu/submenu.styles.d.ts +3 -0
  582. package/lib/components/submenu/submenu.styles.d.ts.map +1 -0
  583. package/lib/components/submenu/submenu.styles.js +594 -0
  584. package/lib/components/submenu/submenu.styles.js.map +1 -0
  585. package/lib/components/submenu-item/submenu-item.d.ts +19 -0
  586. package/lib/components/submenu-item/submenu-item.d.ts.map +1 -0
  587. package/lib/components/submenu-item/submenu-item.js +32 -624
  588. package/lib/components/submenu-item/submenu-item.js.map +1 -0
  589. package/lib/components/submenu-item/submenu-item.styles.d.ts +3 -0
  590. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -0
  591. package/lib/components/submenu-item/submenu-item.styles.js +602 -0
  592. package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
  593. package/lib/components/tab/tab.d.ts +58 -0
  594. package/lib/components/tab/tab.d.ts.map +1 -0
  595. package/lib/components/tab/tab.js +73 -741
  596. package/lib/components/tab/tab.js.map +1 -0
  597. package/lib/components/tab/tab.styles.d.ts +3 -0
  598. package/lib/components/tab/tab.styles.d.ts.map +1 -0
  599. package/lib/components/tab/tab.styles.js +683 -0
  600. package/lib/components/tab/tab.styles.js.map +1 -0
  601. package/lib/components/tab-panel/tab-panel.d.ts +38 -0
  602. package/lib/components/tab-panel/tab-panel.d.ts.map +1 -0
  603. package/lib/components/tab-panel/tab-panel.js +49 -657
  604. package/lib/components/tab-panel/tab-panel.js.map +1 -0
  605. package/lib/components/tab-panel/tab-panel.styles.d.ts +3 -0
  606. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -0
  607. package/lib/components/tab-panel/tab-panel.styles.js +618 -0
  608. package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
  609. package/lib/components/table/table.d.ts +43 -0
  610. package/lib/components/table/table.d.ts.map +1 -0
  611. package/lib/components/table/table.js +46 -673
  612. package/lib/components/table/table.js.map +1 -0
  613. package/lib/components/table/table.styles.d.ts +3 -0
  614. package/lib/components/table/table.styles.d.ts.map +1 -0
  615. package/lib/components/table/table.styles.js +636 -0
  616. package/lib/components/table/table.styles.js.map +1 -0
  617. package/lib/components/table-body/table-body.d.ts +15 -0
  618. package/lib/components/table-body/table-body.d.ts.map +1 -0
  619. package/lib/components/table-body/table-body.js +19 -607
  620. package/lib/components/table-body/table-body.js.map +1 -0
  621. package/lib/components/table-body/table-body.styles.d.ts +3 -0
  622. package/lib/components/table-body/table-body.styles.d.ts.map +1 -0
  623. package/lib/components/table-body/table-body.styles.js +595 -0
  624. package/lib/components/table-body/table-body.styles.js.map +1 -0
  625. package/lib/components/table-cell/table-cell.d.ts +32 -0
  626. package/lib/components/table-cell/table-cell.d.ts.map +1 -0
  627. package/lib/components/table-cell/table-cell.js +39 -660
  628. package/lib/components/table-cell/table-cell.js.map +1 -0
  629. package/lib/components/table-cell/table-cell.styles.d.ts +3 -0
  630. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -0
  631. package/lib/components/table-cell/table-cell.styles.js +628 -0
  632. package/lib/components/table-cell/table-cell.styles.js.map +1 -0
  633. package/lib/components/table-header/table-header.d.ts +15 -0
  634. package/lib/components/table-header/table-header.d.ts.map +1 -0
  635. package/lib/components/table-header/table-header.js +19 -627
  636. package/lib/components/table-header/table-header.js.map +1 -0
  637. package/lib/components/table-header/table-header.styles.d.ts +3 -0
  638. package/lib/components/table-header/table-header.styles.d.ts.map +1 -0
  639. package/lib/components/table-header/table-header.styles.js +615 -0
  640. package/lib/components/table-header/table-header.styles.js.map +1 -0
  641. package/lib/components/table-header-cell/table-header-cell.d.ts +24 -0
  642. package/lib/components/table-header-cell/table-header-cell.d.ts.map +1 -0
  643. package/lib/components/table-header-cell/table-header-cell.js +35 -635
  644. package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
  645. package/lib/components/table-header-cell/table-header-cell.styles.d.ts +3 -0
  646. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -0
  647. package/lib/components/table-header-cell/table-header-cell.styles.js +607 -0
  648. package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
  649. package/lib/components/table-object/table-object.d.ts +15 -0
  650. package/lib/components/table-object/table-object.d.ts.map +1 -0
  651. package/lib/components/table-object/table-object.js +21 -616
  652. package/lib/components/table-object/table-object.js.map +1 -0
  653. package/lib/components/table-object/table-object.styles.d.ts +3 -0
  654. package/lib/components/table-object/table-object.styles.d.ts.map +1 -0
  655. package/lib/components/table-object/table-object.styles.js +602 -0
  656. package/lib/components/table-object/table-object.styles.js.map +1 -0
  657. package/lib/components/table-row/table-row.d.ts +43 -0
  658. package/lib/components/table-row/table-row.d.ts.map +1 -0
  659. package/lib/components/table-row/table-row.js +74 -745
  660. package/lib/components/table-row/table-row.js.map +1 -0
  661. package/lib/components/table-row/table-row.styles.d.ts +3 -0
  662. package/lib/components/table-row/table-row.styles.d.ts.map +1 -0
  663. package/lib/components/table-row/table-row.styles.js +694 -0
  664. package/lib/components/table-row/table-row.styles.js.map +1 -0
  665. package/lib/components/tabs/tabs.d.ts +238 -0
  666. package/lib/components/tabs/tabs.d.ts.map +1 -0
  667. package/lib/components/tabs/tabs.js +441 -969
  668. package/lib/components/tabs/tabs.js.map +1 -0
  669. package/lib/components/tabs/tabs.styles.d.ts +3 -0
  670. package/lib/components/tabs/tabs.styles.d.ts.map +1 -0
  671. package/lib/components/tabs/tabs.styles.js +681 -0
  672. package/lib/components/tabs/tabs.styles.js.map +1 -0
  673. package/lib/components/tag/tag.d.ts +92 -0
  674. package/lib/components/tag/tag.d.ts.map +1 -0
  675. package/lib/components/tag/tag.js +222 -850
  676. package/lib/components/tag/tag.js.map +1 -0
  677. package/lib/components/tag/tag.styles.d.ts +3 -0
  678. package/lib/components/tag/tag.styles.d.ts.map +1 -0
  679. package/lib/components/tag/tag.styles.js +698 -0
  680. package/lib/components/tag/tag.styles.js.map +1 -0
  681. package/lib/components/tag-list/tag-list.d.ts +28 -0
  682. package/lib/components/tag-list/tag-list.d.ts.map +1 -0
  683. package/lib/components/tag-list/tag-list.js +40 -646
  684. package/lib/components/tag-list/tag-list.js.map +1 -0
  685. package/lib/components/tag-list/tag-list.styles.d.ts +3 -0
  686. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -0
  687. package/lib/components/tag-list/tag-list.styles.js +615 -0
  688. package/lib/components/tag-list/tag-list.styles.js.map +1 -0
  689. package/lib/components/tertiary-nav/tertiary-nav.d.ts +23 -0
  690. package/lib/components/tertiary-nav/tertiary-nav.d.ts.map +1 -0
  691. package/lib/components/tertiary-nav/tertiary-nav.js +40 -645
  692. package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
  693. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts +3 -0
  694. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -0
  695. package/lib/components/tertiary-nav/tertiary-nav.styles.js +616 -0
  696. package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
  697. package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts +29 -0
  698. package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts.map +1 -0
  699. package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -677
  700. package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
  701. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts +3 -0
  702. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -0
  703. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +638 -0
  704. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
  705. package/lib/components/text-link/text-link.d.ts +43 -0
  706. package/lib/components/text-link/text-link.d.ts.map +1 -0
  707. package/lib/components/text-link/text-link.js +45 -692
  708. package/lib/components/text-link/text-link.js.map +1 -0
  709. package/lib/components/text-link/text-link.styles.d.ts +3 -0
  710. package/lib/components/text-link/text-link.styles.d.ts.map +1 -0
  711. package/lib/components/text-link/text-link.styles.js +655 -0
  712. package/lib/components/text-link/text-link.styles.js.map +1 -0
  713. package/lib/components/text-passage/text-passage-light-dom.d.ts +3 -0
  714. package/lib/components/text-passage/text-passage-light-dom.d.ts.map +1 -0
  715. package/lib/components/text-passage/text-passage-light-dom.js +145 -0
  716. package/lib/components/text-passage/text-passage-light-dom.js.map +1 -0
  717. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts +3 -0
  718. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -0
  719. package/lib/components/text-passage/text-passage-light-dom.styles.js +843 -0
  720. package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
  721. package/lib/components/text-passage/text-passage.d.ts +44 -0
  722. package/lib/components/text-passage/text-passage.d.ts.map +1 -0
  723. package/lib/components/text-passage/text-passage.js +73 -1505
  724. package/lib/components/text-passage/text-passage.js.map +1 -0
  725. package/lib/components/text-passage/text-passage.styles.d.ts +3 -0
  726. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -0
  727. package/lib/components/text-passage/text-passage.styles.js +625 -0
  728. package/lib/components/text-passage/text-passage.styles.js.map +1 -0
  729. package/lib/components/tooltip/tooltip.d.ts +171 -0
  730. package/lib/components/tooltip/tooltip.d.ts.map +1 -0
  731. package/lib/components/tooltip/tooltip.js +270 -945
  732. package/lib/components/tooltip/tooltip.js.map +1 -0
  733. package/lib/components/tooltip/tooltip.styles.d.ts +3 -0
  734. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -0
  735. package/lib/components/tooltip/tooltip.styles.js +784 -0
  736. package/lib/components/tooltip/tooltip.styles.js.map +1 -0
  737. package/lib/components/utility-nav/utility-nav.d.ts +24 -0
  738. package/lib/components/utility-nav/utility-nav.d.ts.map +1 -0
  739. package/lib/components/utility-nav/utility-nav.js +40 -645
  740. package/lib/components/utility-nav/utility-nav.js.map +1 -0
  741. package/lib/components/utility-nav/utility-nav.styles.d.ts +3 -0
  742. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -0
  743. package/lib/components/utility-nav/utility-nav.styles.js +616 -0
  744. package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
  745. package/lib/components/utility-nav-item/utility-nav-item.d.ts +39 -0
  746. package/lib/components/utility-nav-item/utility-nav-item.d.ts.map +1 -0
  747. package/lib/components/utility-nav-item/utility-nav-item.js +70 -691
  748. package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
  749. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts +3 -0
  750. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -0
  751. package/lib/components/utility-nav-item/utility-nav-item.styles.js +646 -0
  752. package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
  753. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts +3 -0
  754. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -0
  755. package/lib/design-tokens/brands/blue/css/tokens_blue.module.js +737 -0
  756. package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
  757. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts +3 -0
  758. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -0
  759. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
  760. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
  761. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts +3 -0
  762. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts.map +1 -0
  763. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js +771 -0
  764. package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js.map +1 -0
  765. package/lib/design-tokens/brands/cre8-a2ui/css/fonts.css +4 -8
  766. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
  767. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
  768. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +776 -0
  769. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -0
  770. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts +3 -0
  771. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -0
  772. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js +737 -0
  773. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
  774. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts +3 -0
  775. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -0
  776. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
  777. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
  778. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts +3 -0
  779. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -0
  780. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
  781. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
  782. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts +3 -0
  783. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -0
  784. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
  785. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
  786. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +3 -0
  787. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -0
  788. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
  789. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
  790. package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts +3 -0
  791. package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts.map +1 -0
  792. package/lib/design-tokens/brands/notion/tokens_notion.module.js +91 -0
  793. package/lib/design-tokens/brands/notion/tokens_notion.module.js.map +1 -0
  794. package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts +3 -0
  795. package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts.map +1 -0
  796. package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
  797. package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
  798. package/lib/design-tokens/brands/starbucks/tokens.module.d.ts +3 -0
  799. package/lib/design-tokens/brands/starbucks/tokens.module.d.ts.map +1 -0
  800. package/lib/design-tokens/brands/starbucks/tokens.module.js +552 -0
  801. package/lib/design-tokens/brands/starbucks/tokens.module.js.map +1 -0
  802. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts +3 -0
  803. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -0
  804. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js +776 -0
  805. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
  806. package/lib/design-tokens/core/scss/theming/head.module.d.ts +3 -0
  807. package/lib/design-tokens/core/scss/theming/head.module.d.ts.map +1 -0
  808. package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
  809. package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
  810. package/lib/directives/if-truthy.d.ts +10 -0
  811. package/lib/directives/if-truthy.d.ts.map +1 -0
  812. package/lib/directives/if-truthy.js +24 -0
  813. package/lib/directives/if-truthy.js.map +1 -0
  814. package/lib/directives/spread.d.ts +10 -0
  815. package/lib/directives/spread.d.ts.map +1 -0
  816. package/lib/directives/spread.js +29 -0
  817. package/lib/directives/spread.js.map +1 -0
  818. package/lib/index.d.ts +88 -0
  819. package/lib/index.d.ts.map +1 -0
  820. package/lib/index.js +86 -172
  821. package/lib/index.js.map +1 -0
  822. package/lib/scripts/convert-scss-to-ts.d.ts +2 -0
  823. package/lib/scripts/convert-scss-to-ts.d.ts.map +1 -0
  824. package/lib/scripts/convert-scss-to-ts.js +100 -0
  825. package/lib/scripts/convert-scss-to-ts.js.map +1 -0
  826. package/lib/scripts/generate-mcp-manifest.d.ts +8 -0
  827. package/lib/scripts/generate-mcp-manifest.d.ts.map +1 -0
  828. package/lib/scripts/generate-mcp-manifest.js +350 -0
  829. package/lib/scripts/generate-mcp-manifest.js.map +1 -0
  830. package/lib/scripts/generate-react-wrappers.d.ts +2 -0
  831. package/lib/scripts/generate-react-wrappers.d.ts.map +1 -0
  832. package/lib/scripts/generate-react-wrappers.js +292 -0
  833. package/lib/scripts/generate-react-wrappers.js.map +1 -0
  834. package/lib/toBeAccessible.d.ts +9 -0
  835. package/lib/toBeAccessible.d.ts.map +1 -0
  836. package/lib/toBeAccessible.js +18 -0
  837. package/lib/toBeAccessible.js.map +1 -0
  838. package/lib/utilities/is-mobile.d.ts +5 -0
  839. package/lib/utilities/is-mobile.d.ts.map +1 -0
  840. package/lib/utilities/is-mobile.js +10 -0
  841. package/lib/utilities/is-mobile.js.map +1 -0
  842. package/lib/utilities/story-helpers.d.ts +9 -0
  843. package/lib/utilities/story-helpers.d.ts.map +1 -0
  844. package/lib/utilities/story-helpers.js +14 -0
  845. package/lib/utilities/story-helpers.js.map +1 -0
  846. package/lib/vite.config.cdn.d.ts +18 -0
  847. package/lib/vite.config.cdn.d.ts.map +1 -0
  848. package/lib/vite.config.cdn.js +87 -0
  849. package/lib/vite.config.cdn.js.map +1 -0
  850. package/lib/vite.config.d.ts +3 -0
  851. package/lib/vite.config.d.ts.map +1 -0
  852. package/lib/vite.config.js +195 -0
  853. package/lib/vite.config.js.map +1 -0
  854. package/mcp-manifest.json +1 -1
  855. package/package.json +1 -1
@@ -1,3312 +1,82 @@
1
- import { css as x, html as s, nothing as f } from "lit";
2
- import { ifDefined as g } from "lit-html/directives/if-defined.js";
3
- import { state as c, property as p, query as R } from "lit/decorators.js";
4
- import { Cre8Element as w } from "../cre8-element.js";
5
- import "../icon/icon.js";
6
- import "../button/button.js";
7
- import { s as O, f as Y } from "../../cre8-form-element-BymRdQUC.js";
8
- import { Cre8Field as F } from "../field/field.js";
9
- class M {
10
- constructor(t, e, a, r) {
11
- if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (i, n) => {
12
- this.unsubscribe && (this.unsubscribe !== n && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = i, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(i, n)), this.unsubscribe = n;
13
- }, this.host = t, e.context !== void 0) {
14
- const i = e;
15
- this.context = i.context, this.callback = i.callback, this.subscribe = i.subscribe ?? !1;
16
- } else this.context = e, this.callback = a, this.subscribe = r ?? !1;
17
- this.host.addController(this);
18
- }
19
- hostConnected() {
20
- this.dispatchRequest();
21
- }
22
- hostDisconnected() {
23
- this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
24
- }
25
- dispatchRequest() {
26
- this.host.dispatchEvent(new O(this.context, this.host, this.t, this.subscribe));
27
- }
28
- }
29
- function S({ context: d, subscribe: t }) {
30
- return (e, a) => {
31
- typeof a == "object" ? a.addInitializer((function() {
32
- new M(this, { context: d, callback: (r) => {
33
- e.set.call(this, r);
34
- }, subscribe: t });
35
- })) : e.constructor.addInitializer(((r) => {
36
- new M(r, { context: d, callback: (i) => {
37
- r[a] = i;
38
- }, subscribe: t });
39
- }));
40
- };
41
- }
42
- const N = x`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-date-picker__label{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);display:block;margin-bottom:0.5rem}.cre8-c-date-picker__body{position:relative;display:flex;align-items:center}input::-webkit-calendar-picker-indicator{display:none}input[type=date]::-webkit-input-placeholder{visibility:hidden !important}.cre8-c-date-picker__calendar-icon-button{position:absolute;right:0.5rem;background:var(--cre8-color-bg-default);border:none;border-radius:0;--cre8-icon-height: size(3);--cre8-icon-width: size(3)}.cre8-c-date-picker--disabled .cre8-c-date-picker__calendar-icon-button,.cre8-c-date-picker--read-only .cre8-c-date-picker__calendar-icon-button{background:var(--cre8-color-bg-disabled)}.cre8-c-date-picker__input{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);outline:var(--cre8-border-width-focus) solid rgba(0,0,0,0);outline-offset:0.125rem;-webkit-appearance:none;width:100%;border-width:var(--cre8-border-width-default);border-style:solid;border-color:var(--cre8-color-border-strong);border-radius:var(--cre8-border-radius-default);padding:0.75rem 0.5rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-default);transition:outline-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),border-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),background-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),color var(--cre8-anim-fade-quick) var(--cre8-anim-ease)}.cre8-c-date-picker__input:hover:not(:disabled),.cre8-c-date-picker__input:focus:not(:disabled),.cre8-c-date-picker__input:active:not(:disabled),.cre8-c-date-picker__input:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-is-error .cre8-c-date-picker__input:hover:not(:disabled),.cre8-is-error .cre8-c-date-picker__input:focus:not(:disabled),.cre8-is-error .cre8-c-date-picker__input:active:not(:disabled),.cre8-is-error .cre8-c-date-picker__input:focus-visible{outline-color:var(--cre8-color-border-error)}.cre8-is-success .cre8-c-date-picker__input:hover:not(:disabled),.cre8-is-success .cre8-c-date-picker__input:focus:not(:disabled),.cre8-is-success .cre8-c-date-picker__input:active:not(:disabled),.cre8-is-success .cre8-c-date-picker__input:focus-visible{outline-color:var(--cre8-color-border-success)}.cre8-c-date-picker__input:disabled{background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled);color:var(--cre8-color-content-disabled);cursor:not-allowed}.cre8-c-date-picker__input:disabled::placeholder{color:var(--cre8-color-content-disabled)}.cre8-c-date-picker__input::placeholder{color:var(--cre8-color-content-subtle)}.cre8-is-error .cre8-c-date-picker__input{border-color:var(--cre8-color-border-error)}.cre8-is-success .cre8-c-date-picker__input{border-color:var(--cre8-color-border-success)}.cre8-c-date-picker__input:read-only{background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled);cursor:default}`, X = x`.cre8-u-content-knockout-brand {
43
- color: var(----cre8-color-content-knockout-brand);
44
- }
45
-
46
- .cre8-u-is-hidden {
47
- display: none !important;
48
- visibility: hidden !important;
49
- }
50
-
51
- .cre8-u-is-vishidden {
52
- position: absolute !important;
53
- overflow: hidden;
54
- width: 1px;
55
- height: 1px;
56
- padding: 0;
57
- border: 0;
58
- clip: rect(1px, 1px, 1px, 1px);
59
- }
60
-
61
- @media all and (min-width: 23.4375rem) {
62
- .cre8-u-hide-sm {
63
- display: none !important;
64
- }
65
- }
66
- @media all and (min-width: 35rem) {
67
- .cre8-u-hide-sm-2 {
68
- display: none !important;
69
- }
70
- }
71
- @media all and (min-width: 48rem) {
72
- .cre8-u-hide-md {
73
- display: none !important;
74
- }
75
- }
76
- @media all and (min-width: 60rem) {
77
- .cre8-u-hide-lg {
78
- display: none !important;
79
- }
80
- }
81
- @media all and (min-width: 75rem) {
82
- .cre8-u-hide-xl {
83
- display: none !important;
84
- }
85
- }
86
- @media all and (max-width: 23.4375rem) {
87
- .cre8-u-show-sm {
88
- display: none !important;
89
- }
90
- }
91
- @media all and (max-width: 35rem) {
92
- .cre8-u-show-sm-2 {
93
- display: none !important;
94
- }
95
- }
96
- @media all and (max-width: 48rem) {
97
- .cre8-u-show-md {
98
- display: none !important;
99
- }
100
- }
101
- @media all and (max-width: 60rem) {
102
- .cre8-u-show-lg {
103
- display: none !important;
104
- }
105
- }
106
- @media all and (max-width: 75rem) {
107
- .cre8-u-show-xl {
108
- display: none !important;
109
- }
110
- }
111
- .cre8-u-margin-none {
112
- margin: 0 !important;
113
- }
114
-
115
- .cre8-u-margin-sm {
116
- margin: size(1) !important;
117
- }
118
-
119
- .cre8-u-margin-md {
120
- margin: size(2) !important;
121
- }
122
-
123
- .cre8-u-margin-lg {
124
- margin: size(3) !important;
125
- }
126
-
127
- .cre8-u-margin-xl {
128
- margin: size(4) !important;
129
- }
130
-
131
- .cre8-u-margin-xxl {
132
- margin: size(8) !important;
133
- }
134
-
135
- .cre8-u-margin-top-none {
136
- margin-top: 0 !important;
137
- }
138
-
139
- .cre8-u-margin-top-sm {
140
- margin-top: size(1) !important;
141
- }
142
-
143
- .cre8-u-margin-top-md {
144
- margin-top: size(2) !important;
145
- }
146
-
147
- .cre8-u-margin-top-lg {
148
- margin-top: size(3) !important;
149
- }
150
-
151
- .cre8-u-margin-top-xl {
152
- margin-top: size(4) !important;
153
- }
154
-
155
- .cre8-u-margin-top-xxl {
156
- margin-top: size(8) !important;
157
- }
158
-
159
- .cre8-u-margin-right-none {
160
- margin-right: 0 !important;
161
- }
162
-
163
- .cre8-u-margin-right-sm {
164
- margin-right: size(1) !important;
165
- }
166
-
167
- .cre8-u-margin-right-md {
168
- margin-right: size(2) !important;
169
- }
170
-
171
- .cre8-u-margin-right-lg {
172
- margin-right: size(3) !important;
173
- }
174
-
175
- .cre8-u-margin-right-xl {
176
- margin-right: size(4) !important;
177
- }
178
-
179
- .cre8-u-margin-right-xxl {
180
- margin-right: size(8) !important;
181
- }
182
-
183
- .cre8-u-margin-bottom-none {
184
- margin-bottom: 0 !important;
185
- }
186
-
187
- .cre8-u-margin-bottom-sm {
188
- margin-bottom: size(1) !important;
189
- }
190
-
191
- .cre8-u-margin-bottom-md {
192
- margin-bottom: size(2) !important;
193
- }
194
-
195
- .cre8-u-margin-bottom-lg {
196
- margin-bottom: size(3) !important;
197
- }
198
-
199
- .cre8-u-margin-bottom-xl {
200
- margin-bottom: size(4) !important;
201
- }
202
-
203
- .cre8-u-margin-bottom-xxl {
204
- margin-bottom: size(8) !important;
205
- }
206
-
207
- .cre8-u-margin-bottom-xl-xxl {
208
- margin-bottom: size(4) !important;
209
- }
210
-
211
- @media all and (min-width: 768px) {
212
- .cre8-u-margin-bottom-xl-xxl {
213
- margin-bottom: size(8) !important;
214
- }
215
- }
216
- .cre8-u-margin-left-none {
217
- margin-left: 0 !important;
218
- }
219
-
220
- .cre8-u-margin-left-sm {
221
- margin-left: size(1) !important;
222
- }
223
-
224
- .cre8-u-margin-left-md {
225
- margin-left: size(2) !important;
226
- }
227
-
228
- .cre8-u-margin-left-lg {
229
- margin-left: size(3) !important;
230
- }
231
-
232
- .cre8-u-margin-left-xl {
233
- margin-left: size(4) !important;
234
- }
235
-
236
- .cre8-u-margin-left-xxl {
237
- margin-left: size(8) !important;
238
- }
239
-
240
- .cre8-u-padding-none {
241
- padding: 0 !important;
242
- }
243
-
244
- .cre8-u-padding-sm {
245
- padding: size(1) !important;
246
- }
247
-
248
- .cre8-u-padding-md {
249
- padding: size(2) !important;
250
- }
251
-
252
- .cre8-u-padding-lg {
253
- padding: size(3) !important;
254
- }
255
-
256
- .cre8-u-padding-xl {
257
- padding: size(4) !important;
258
- }
259
-
260
- .cre8-u-padding-xxl {
261
- padding: size(8) !important;
262
- }
263
-
264
- .cre8-u-padding-top-none {
265
- padding-top: 0 !important;
266
- }
267
-
268
- .cre8-u-padding-top-sm {
269
- padding-top: size(1) !important;
270
- }
271
-
272
- .cre8-u-padding-top-md {
273
- padding-top: size(2) !important;
274
- }
275
-
276
- .cre8-u-padding-top-lg {
277
- padding-top: size(3) !important;
278
- }
279
-
280
- .cre8-u-padding-top-xl {
281
- padding-top: size(4) !important;
282
- }
283
-
284
- .cre8-u-padding-top-xxl {
285
- padding-top: size(8) !important;
286
- }
287
-
288
- .cre8-u-padding-right-none {
289
- padding-right: 0 !important;
290
- }
291
-
292
- .cre8-u-padding-right-sm {
293
- padding-right: size(1) !important;
294
- }
295
-
296
- .cre8-u-padding-right-md {
297
- padding-right: size(2) !important;
298
- }
299
-
300
- .cre8-u-padding-right-lg {
301
- padding-right: size(3) !important;
302
- }
303
-
304
- .cre8-u-padding-right-xl {
305
- padding-right: size(4) !important;
306
- }
307
-
308
- .cre8-u-padding-right-xxl {
309
- padding-right: size(8) !important;
310
- }
311
-
312
- .cre8-u-padding-bottom-none {
313
- padding-bottom: 0 !important;
314
- }
315
-
316
- .cre8-u-padding-bottom-sm {
317
- padding-bottom: size(1) !important;
318
- }
319
-
320
- .cre8-u-padding-bottom-md {
321
- padding-bottom: size(2) !important;
322
- }
323
-
324
- .cre8-u-padding-bottom-lg {
325
- padding-bottom: size(3) !important;
326
- }
327
-
328
- .cre8-u-padding-bottom-xl {
329
- padding-bottom: size(4) !important;
330
- }
331
-
332
- .cre8-u-padding-bottom-xxl {
333
- padding-bottom: size(8) !important;
334
- }
335
-
336
- .cre8-u-padding-left-none {
337
- padding-left: 0 !important;
338
- }
339
-
340
- .cre8-u-padding-left-sm {
341
- padding-left: size(1) !important;
342
- }
343
-
344
- .cre8-u-padding-left-md {
345
- padding-left: size(2) !important;
346
- }
347
-
348
- .cre8-u-padding-left-lg {
349
- padding-left: size(3) !important;
350
- }
351
-
352
- .cre8-u-padding-left-xl {
353
- padding-left: size(4) !important;
354
- }
355
-
356
- .cre8-u-padding-left-xxl {
357
- padding-left: size(8) !important;
358
- }
359
-
360
- .cre8-u-display-flex {
361
- display: flex !important;
362
- }
363
-
364
- .cre8-u-display-block {
365
- display: block !important;
366
- }
367
-
368
- body {
369
- font-family: var(--cre8-typography-body-default-font-family);
370
- font-size: var(--cre8-typography-body-default-font-size);
371
- font-weight: var(--cre8-typography-body-default-font-weight);
372
- line-height: var(--cre8-typography-body-default-line-height);
373
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
374
- text-decoration: var(--cre8-typography-body-default-text-decoration);
375
- text-transform: var(--cre8-typography-body-default-text-transform);
376
- display: flex;
377
- flex-direction: column;
378
- padding: 0;
379
- margin: 0;
380
- color: var(--cre8-color-content-default);
381
- background: var(--background-default);
382
- }
383
-
384
- @media all and (min-width: 60rem) {
385
- .page-container {
386
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
387
- }
388
- }
389
- .band__inner {
390
- margin-left: 2rem;
391
- margin-right: 2rem;
392
- }
393
-
394
- @media all and (min-width: 60rem) {
395
- .band__inner {
396
- margin-right: 0;
397
- }
398
- }
399
- img {
400
- max-width: 100%;
401
- height: auto;
402
- }
403
-
404
- /**
405
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
406
- */
407
- *,
408
- ::slotted(*),
409
- *:before,
410
- *:after {
411
- box-sizing: border-box;
412
- }
413
-
414
- :root {
415
- --size-base-unit: 0.5rem;
416
- }
417
-
418
- /**
419
- * RTL support for values logical properties can't automatically adjust for
420
- * 1) Percentage based horizontal translate values need to be flipped
421
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
422
- * 3) Inverse items that have 45degs
423
- */
424
- [dir=rtl] {
425
- --rtlTranslateX: 50%;
426
- /* 1 */
427
- --rtlGradientToRight: 270deg;
428
- /* 2 */
429
- --rtlRotate45Inverse: -45deg;
430
- /* 3 */
431
- }
432
-
433
- /**
434
- * Visible focus outline for elements on a light background
435
- */
436
- /**
437
- * Visible focus outline for elements with an error status
438
- */
439
- /**
440
- * Visible focus outline for elements on a dark background
441
- */
442
- /**
443
- * Focus state for themes that need a dashed outline for focus
444
- * state
445
- **/
446
- /**
447
- * Invisible focus outline for elements that need a more visible
448
- * focus state for high-contrast mode
449
- */
450
- /**
451
- * Visually hidden from display
452
- */
453
- /*
454
- =======
455
- Animations
456
- =======
457
- */
458
- :host {
459
- --cre8-z-index-1: 1;
460
- --cre8-z-index-50: 50;
461
- --cre8-z-index-100: 100;
462
- --cre8-z-index-200: 200;
463
- --cre8-z-index-1030: 1030;
464
- --cre8-anim-fade-quick: 0.35s;
465
- --cre8-anim-ease: ease;
466
- }
467
-
468
- @keyframes fadeIn {
469
- 100% {
470
- opacity: 1;
471
- }
472
- }
473
- @keyframes slideIn {
474
- 100% {
475
- transform: translateX(0);
476
- }
477
- }
478
- @keyframes slideInFwd {
479
- 100% {
480
- width: 272px;
481
- height: 272px;
482
- }
483
- }
484
- @keyframes slideOutRight {
485
- 100% {
486
- width: 272px;
487
- height: 272px;
488
- }
489
- }
490
- @keyframes slideUp {
491
- 100% {
492
- transform: translateY(0);
493
- }
494
- }
495
- @media (width >= 481px) {
496
- @keyframes slideInFwd {
497
- 100% {
498
- width: 417px;
499
- height: 417px;
500
- }
501
- }
502
- @keyframes slideOutRight {
503
- 100% {
504
- width: 417px;
505
- height: 417px;
506
- }
507
- }
508
- }
509
- @media (width >= 48rem) {
510
- @keyframes slideInFwd {
511
- 100% {
512
- width: 330px;
513
- height: 330px;
514
- }
515
- }
516
- @keyframes slideOutRight {
517
- 100% {
518
- width: 330px;
519
- height: 330px;
520
- transform: translateX(calc(100vw - 45px));
521
- }
522
- }
523
- }
524
- @media (width >= 60rem) {
525
- @keyframes slideInFwd {
526
- 100% {
527
- width: 460px;
528
- height: 460px;
529
- }
530
- }
531
- @keyframes slideOutRight {
532
- 100% {
533
- width: 460px;
534
- height: 460px;
535
- transform: translateX(calc(100vw - 45px));
536
- }
537
- }
538
- }
539
- @media (width >= 75rem) {
540
- @keyframes slideInFwd {
541
- 100% {
542
- width: 592px;
543
- height: 591px;
544
- }
545
- }
546
- @keyframes slideOutRight {
547
- 100% {
548
- width: 592px;
549
- height: 591px;
550
- transform: translateX(calc(100vw - 45px));
551
- }
552
- }
553
- }
554
- @media (width >= 87.5rem) {
555
- @keyframes slideOutRight {
556
- 100% {
557
- width: 592px;
558
- height: 591px;
559
- transform: translateX(calc(100vw - 120px));
560
- }
561
- }
562
- }
563
- @media (width >= 2200px) {
564
- @keyframes slideOutRight {
565
- 100% {
566
- width: 592px;
567
- height: 591px;
568
- transform: translateX(calc(100vw - 592px));
569
- }
570
- }
571
- }
572
- span.ripple {
573
- position: absolute;
574
- border-radius: 50%;
575
- transform: scale(0);
576
- animation: ripple 600ms linear;
577
- background-color: var(--ripple-bg-color);
578
- }
579
-
580
- @keyframes ripple {
581
- to {
582
- transform: scale(4);
583
- opacity: 1;
584
- }
585
- }
586
- :root {
587
- --size-base-unit: 0.5rem;
588
- }
589
-
590
- /**
591
- * RTL support for values logical properties can't automatically adjust for
592
- * 1) Percentage based horizontal translate values need to be flipped
593
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
594
- * 3) Inverse items that have 45degs
595
- */
596
- [dir=rtl] {
597
- --rtlTranslateX: 50%;
598
- /* 1 */
599
- --rtlGradientToRight: 270deg;
600
- /* 2 */
601
- --rtlRotate45Inverse: -45deg;
602
- /* 3 */
603
- }
604
-
605
- /**
606
- * Visible focus outline for elements on a light background
607
- */
608
- /**
609
- * Visible focus outline for elements with an error status
610
- */
611
- /**
612
- * Visible focus outline for elements on a dark background
613
- */
614
- /**
615
- * Focus state for themes that need a dashed outline for focus
616
- * state
617
- **/
618
- /**
619
- * Invisible focus outline for elements that need a more visible
620
- * focus state for high-contrast mode
621
- */
622
- /**
623
- * Visually hidden from display
624
- */
625
- .cre8-c-calendar {
626
- min-width: 340px;
627
- border: var(--cre8-color-border-strong);
628
- border-radius: var(--cre8-border-radius-container);
629
- border-width: var(--cre8-border-width-default);
630
- border-style: var(--cre8-border-style-default);
631
- margin-top: 0.25rem;
632
- background-color: var(--cre8-color-bg-default);
633
- position: absolute;
634
- }
635
-
636
- /* shortcuts */
637
- .cre8-c-calendar__header-shortcuts {
638
- display: inline-flex;
639
- justify-content: center;
640
- width: 100%;
641
- padding-top: 1rem;
642
- padding-bottom: 0.5rem;
643
- }
644
- .cre8-c-calendar__header-shortcuts cre8-button + cre8-button {
645
- padding-left: 0.5rem;
646
- }
647
- .cre8-c-calendar__header-shortcuts cre8-button {
648
- max-height: 32px;
649
- }
650
-
651
- table {
652
- width: 100%;
653
- }
654
-
655
- /* table row */
656
- tr {
657
- font-family: var(--cre8-typography-body-default-font-family);
658
- font-size: var(--cre8-typography-body-default-font-size);
659
- font-weight: var(--cre8-typography-body-default-font-weight);
660
- line-height: var(--cre8-typography-body-default-line-height);
661
- text-decoration: var(--cre8-typography-body-default-text-decoration);
662
- text-transform: var(--cre8-typography-body-default-text-transform);
663
- display: grid;
664
- grid-row-gap: 0.33em;
665
- grid-template-columns: repeat(7, 1fr);
666
- list-style: none;
667
- margin: unset;
668
- padding: unset;
669
- position: relative;
670
- }
671
-
672
- /* day wrappers */
673
- td {
674
- align-items: center;
675
- display: flex;
676
- height: 48px;
677
- justify-content: center;
678
- width: 48px;
679
- }
680
-
681
- /* days */
682
- .cre8-c-calendar :is(thead, tbody) :is(span, button) {
683
- font-family: var(--cre8-typography-body-default-font-family);
684
- font-size: var(--cre8-typography-body-default-font-size);
685
- font-weight: var(--cre8-typography-body-default-font-weight);
686
- line-height: var(--cre8-typography-body-default-line-height);
687
- text-decoration: var(--cre8-typography-body-default-text-decoration);
688
- text-transform: var(--cre8-typography-body-default-text-transform);
689
- align-items: center;
690
- block-size: 2em;
691
- border-radius: var(--cre8-border-radius-brand);
692
- display: flex;
693
- inline-size: 2em;
694
- justify-content: center;
695
- margin-block: var(0, 0 0.33em);
696
- user-select: none;
697
- }
698
-
699
- /* day buttons */
700
- .cre8-c-calendar__day-button {
701
- border: none;
702
- background: none;
703
- margin: 0;
704
- padding: 0;
705
- }
706
- .cre8-c-calendar__day-button:hover, .cre8-c-calendar__day-button:focus {
707
- background: var(--cre8-color-bg-default-hover);
708
- }
709
- .cre8-c-calendar__day-button.cre8-c-calendar__different-month {
710
- color: var(--cre8-color-content-subtle);
711
- }
712
- .cre8-c-calendar__day-button.cre8-c-calendar__different-month:hover, .cre8-c-calendar__day-button.cre8-c-calendar__different-month:focus {
713
- background: var(--cre8-color-bg-subtle);
714
- }
715
- .cre8-c-calendar__day-button[data-today] {
716
- color: var(--cre8-color-content-brand);
717
- border-color: var(--cre8-color-border-brand);
718
- border-width: var(--cre8-border-width-default);
719
- border-style: var(--cre8-border-style-default);
720
- }
721
- .cre8-c-calendar__day-button[data-selected] {
722
- background: var(--cre8-color-bg-brand-strong);
723
- color: var(--cre8-color-content-knockout);
724
- }
725
- .cre8-c-calendar__day-button[data-selected]:hover, .cre8-c-calendar__day-button[data-selected]:focus {
726
- background: var(--cre8-color-bg-brand-strong-hover);
727
- }`, A = x`.cre8-u-content-knockout-brand {
728
- color: var(----cre8-color-content-knockout-brand);
729
- }
730
-
731
- .cre8-u-is-hidden {
732
- display: none !important;
733
- visibility: hidden !important;
734
- }
735
-
736
- .cre8-u-is-vishidden {
737
- position: absolute !important;
738
- overflow: hidden;
739
- width: 1px;
740
- height: 1px;
741
- padding: 0;
742
- border: 0;
743
- clip: rect(1px, 1px, 1px, 1px);
744
- }
745
-
746
- @media all and (min-width: 23.4375rem) {
747
- .cre8-u-hide-sm {
748
- display: none !important;
749
- }
750
- }
751
- @media all and (min-width: 35rem) {
752
- .cre8-u-hide-sm-2 {
753
- display: none !important;
754
- }
755
- }
756
- @media all and (min-width: 48rem) {
757
- .cre8-u-hide-md {
758
- display: none !important;
759
- }
760
- }
761
- @media all and (min-width: 60rem) {
762
- .cre8-u-hide-lg {
763
- display: none !important;
764
- }
765
- }
766
- @media all and (min-width: 75rem) {
767
- .cre8-u-hide-xl {
768
- display: none !important;
769
- }
770
- }
771
- @media all and (max-width: 23.4375rem) {
772
- .cre8-u-show-sm {
773
- display: none !important;
774
- }
775
- }
776
- @media all and (max-width: 35rem) {
777
- .cre8-u-show-sm-2 {
778
- display: none !important;
779
- }
780
- }
781
- @media all and (max-width: 48rem) {
782
- .cre8-u-show-md {
783
- display: none !important;
784
- }
785
- }
786
- @media all and (max-width: 60rem) {
787
- .cre8-u-show-lg {
788
- display: none !important;
789
- }
790
- }
791
- @media all and (max-width: 75rem) {
792
- .cre8-u-show-xl {
793
- display: none !important;
794
- }
795
- }
796
- .cre8-u-margin-none {
797
- margin: 0 !important;
798
- }
799
-
800
- .cre8-u-margin-sm {
801
- margin: size(1) !important;
802
- }
803
-
804
- .cre8-u-margin-md {
805
- margin: size(2) !important;
806
- }
807
-
808
- .cre8-u-margin-lg {
809
- margin: size(3) !important;
810
- }
811
-
812
- .cre8-u-margin-xl {
813
- margin: size(4) !important;
814
- }
815
-
816
- .cre8-u-margin-xxl {
817
- margin: size(8) !important;
818
- }
819
-
820
- .cre8-u-margin-top-none {
821
- margin-top: 0 !important;
822
- }
823
-
824
- .cre8-u-margin-top-sm {
825
- margin-top: size(1) !important;
826
- }
827
-
828
- .cre8-u-margin-top-md {
829
- margin-top: size(2) !important;
830
- }
831
-
832
- .cre8-u-margin-top-lg {
833
- margin-top: size(3) !important;
834
- }
835
-
836
- .cre8-u-margin-top-xl {
837
- margin-top: size(4) !important;
838
- }
839
-
840
- .cre8-u-margin-top-xxl {
841
- margin-top: size(8) !important;
842
- }
843
-
844
- .cre8-u-margin-right-none {
845
- margin-right: 0 !important;
846
- }
847
-
848
- .cre8-u-margin-right-sm {
849
- margin-right: size(1) !important;
850
- }
851
-
852
- .cre8-u-margin-right-md {
853
- margin-right: size(2) !important;
854
- }
855
-
856
- .cre8-u-margin-right-lg {
857
- margin-right: size(3) !important;
858
- }
859
-
860
- .cre8-u-margin-right-xl {
861
- margin-right: size(4) !important;
862
- }
863
-
864
- .cre8-u-margin-right-xxl {
865
- margin-right: size(8) !important;
866
- }
867
-
868
- .cre8-u-margin-bottom-none {
869
- margin-bottom: 0 !important;
870
- }
871
-
872
- .cre8-u-margin-bottom-sm {
873
- margin-bottom: size(1) !important;
874
- }
875
-
876
- .cre8-u-margin-bottom-md {
877
- margin-bottom: size(2) !important;
878
- }
879
-
880
- .cre8-u-margin-bottom-lg {
881
- margin-bottom: size(3) !important;
882
- }
883
-
884
- .cre8-u-margin-bottom-xl {
885
- margin-bottom: size(4) !important;
886
- }
887
-
888
- .cre8-u-margin-bottom-xxl {
889
- margin-bottom: size(8) !important;
890
- }
891
-
892
- .cre8-u-margin-bottom-xl-xxl {
893
- margin-bottom: size(4) !important;
894
- }
895
-
896
- @media all and (min-width: 768px) {
897
- .cre8-u-margin-bottom-xl-xxl {
898
- margin-bottom: size(8) !important;
899
- }
900
- }
901
- .cre8-u-margin-left-none {
902
- margin-left: 0 !important;
903
- }
904
-
905
- .cre8-u-margin-left-sm {
906
- margin-left: size(1) !important;
907
- }
908
-
909
- .cre8-u-margin-left-md {
910
- margin-left: size(2) !important;
911
- }
912
-
913
- .cre8-u-margin-left-lg {
914
- margin-left: size(3) !important;
915
- }
916
-
917
- .cre8-u-margin-left-xl {
918
- margin-left: size(4) !important;
919
- }
920
-
921
- .cre8-u-margin-left-xxl {
922
- margin-left: size(8) !important;
923
- }
924
-
925
- .cre8-u-padding-none {
926
- padding: 0 !important;
927
- }
928
-
929
- .cre8-u-padding-sm {
930
- padding: size(1) !important;
931
- }
932
-
933
- .cre8-u-padding-md {
934
- padding: size(2) !important;
935
- }
936
-
937
- .cre8-u-padding-lg {
938
- padding: size(3) !important;
939
- }
940
-
941
- .cre8-u-padding-xl {
942
- padding: size(4) !important;
943
- }
944
-
945
- .cre8-u-padding-xxl {
946
- padding: size(8) !important;
947
- }
948
-
949
- .cre8-u-padding-top-none {
950
- padding-top: 0 !important;
951
- }
952
-
953
- .cre8-u-padding-top-sm {
954
- padding-top: size(1) !important;
955
- }
956
-
957
- .cre8-u-padding-top-md {
958
- padding-top: size(2) !important;
959
- }
960
-
961
- .cre8-u-padding-top-lg {
962
- padding-top: size(3) !important;
963
- }
964
-
965
- .cre8-u-padding-top-xl {
966
- padding-top: size(4) !important;
967
- }
968
-
969
- .cre8-u-padding-top-xxl {
970
- padding-top: size(8) !important;
971
- }
972
-
973
- .cre8-u-padding-right-none {
974
- padding-right: 0 !important;
975
- }
976
-
977
- .cre8-u-padding-right-sm {
978
- padding-right: size(1) !important;
979
- }
980
-
981
- .cre8-u-padding-right-md {
982
- padding-right: size(2) !important;
983
- }
984
-
985
- .cre8-u-padding-right-lg {
986
- padding-right: size(3) !important;
987
- }
988
-
989
- .cre8-u-padding-right-xl {
990
- padding-right: size(4) !important;
991
- }
992
-
993
- .cre8-u-padding-right-xxl {
994
- padding-right: size(8) !important;
995
- }
996
-
997
- .cre8-u-padding-bottom-none {
998
- padding-bottom: 0 !important;
999
- }
1000
-
1001
- .cre8-u-padding-bottom-sm {
1002
- padding-bottom: size(1) !important;
1003
- }
1004
-
1005
- .cre8-u-padding-bottom-md {
1006
- padding-bottom: size(2) !important;
1007
- }
1008
-
1009
- .cre8-u-padding-bottom-lg {
1010
- padding-bottom: size(3) !important;
1011
- }
1012
-
1013
- .cre8-u-padding-bottom-xl {
1014
- padding-bottom: size(4) !important;
1015
- }
1016
-
1017
- .cre8-u-padding-bottom-xxl {
1018
- padding-bottom: size(8) !important;
1019
- }
1020
-
1021
- .cre8-u-padding-left-none {
1022
- padding-left: 0 !important;
1023
- }
1024
-
1025
- .cre8-u-padding-left-sm {
1026
- padding-left: size(1) !important;
1027
- }
1028
-
1029
- .cre8-u-padding-left-md {
1030
- padding-left: size(2) !important;
1031
- }
1032
-
1033
- .cre8-u-padding-left-lg {
1034
- padding-left: size(3) !important;
1035
- }
1036
-
1037
- .cre8-u-padding-left-xl {
1038
- padding-left: size(4) !important;
1039
- }
1040
-
1041
- .cre8-u-padding-left-xxl {
1042
- padding-left: size(8) !important;
1043
- }
1044
-
1045
- .cre8-u-display-flex {
1046
- display: flex !important;
1047
- }
1048
-
1049
- .cre8-u-display-block {
1050
- display: block !important;
1051
- }
1052
-
1053
- body {
1054
- font-family: var(--cre8-typography-body-default-font-family);
1055
- font-size: var(--cre8-typography-body-default-font-size);
1056
- font-weight: var(--cre8-typography-body-default-font-weight);
1057
- line-height: var(--cre8-typography-body-default-line-height);
1058
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
1059
- text-decoration: var(--cre8-typography-body-default-text-decoration);
1060
- text-transform: var(--cre8-typography-body-default-text-transform);
1061
- display: flex;
1062
- flex-direction: column;
1063
- padding: 0;
1064
- margin: 0;
1065
- color: var(--cre8-color-content-default);
1066
- background: var(--background-default);
1067
- }
1068
-
1069
- @media all and (min-width: 60rem) {
1070
- .page-container {
1071
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
1072
- }
1073
- }
1074
- .band__inner {
1075
- margin-left: 2rem;
1076
- margin-right: 2rem;
1077
- }
1078
-
1079
- @media all and (min-width: 60rem) {
1080
- .band__inner {
1081
- margin-right: 0;
1082
- }
1083
- }
1084
- img {
1085
- max-width: 100%;
1086
- height: auto;
1087
- }
1088
-
1089
- /**
1090
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
1091
- */
1092
- *,
1093
- ::slotted(*),
1094
- *:before,
1095
- *:after {
1096
- box-sizing: border-box;
1097
- }
1098
-
1099
- :root {
1100
- --size-base-unit: 0.5rem;
1101
- }
1102
-
1103
- /**
1104
- * RTL support for values logical properties can't automatically adjust for
1105
- * 1) Percentage based horizontal translate values need to be flipped
1106
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
1107
- * 3) Inverse items that have 45degs
1108
- */
1109
- [dir=rtl] {
1110
- --rtlTranslateX: 50%;
1111
- /* 1 */
1112
- --rtlGradientToRight: 270deg;
1113
- /* 2 */
1114
- --rtlRotate45Inverse: -45deg;
1115
- /* 3 */
1116
- }
1117
-
1118
- /**
1119
- * Visible focus outline for elements on a light background
1120
- */
1121
- /**
1122
- * Visible focus outline for elements with an error status
1123
- */
1124
- /**
1125
- * Visible focus outline for elements on a dark background
1126
- */
1127
- /**
1128
- * Focus state for themes that need a dashed outline for focus
1129
- * state
1130
- **/
1131
- /**
1132
- * Invisible focus outline for elements that need a more visible
1133
- * focus state for high-contrast mode
1134
- */
1135
- /**
1136
- * Visually hidden from display
1137
- */
1138
- /*
1139
- =======
1140
- Animations
1141
- =======
1142
- */
1143
- :host {
1144
- --cre8-z-index-1: 1;
1145
- --cre8-z-index-50: 50;
1146
- --cre8-z-index-100: 100;
1147
- --cre8-z-index-200: 200;
1148
- --cre8-z-index-1030: 1030;
1149
- --cre8-anim-fade-quick: 0.35s;
1150
- --cre8-anim-ease: ease;
1151
- }
1152
-
1153
- @keyframes fadeIn {
1154
- 100% {
1155
- opacity: 1;
1156
- }
1157
- }
1158
- @keyframes slideIn {
1159
- 100% {
1160
- transform: translateX(0);
1161
- }
1162
- }
1163
- @keyframes slideInFwd {
1164
- 100% {
1165
- width: 272px;
1166
- height: 272px;
1167
- }
1168
- }
1169
- @keyframes slideOutRight {
1170
- 100% {
1171
- width: 272px;
1172
- height: 272px;
1173
- }
1174
- }
1175
- @keyframes slideUp {
1176
- 100% {
1177
- transform: translateY(0);
1178
- }
1179
- }
1180
- @media (width >= 481px) {
1181
- @keyframes slideInFwd {
1182
- 100% {
1183
- width: 417px;
1184
- height: 417px;
1185
- }
1186
- }
1187
- @keyframes slideOutRight {
1188
- 100% {
1189
- width: 417px;
1190
- height: 417px;
1191
- }
1192
- }
1193
- }
1194
- @media (width >= 48rem) {
1195
- @keyframes slideInFwd {
1196
- 100% {
1197
- width: 330px;
1198
- height: 330px;
1199
- }
1200
- }
1201
- @keyframes slideOutRight {
1202
- 100% {
1203
- width: 330px;
1204
- height: 330px;
1205
- transform: translateX(calc(100vw - 45px));
1206
- }
1207
- }
1208
- }
1209
- @media (width >= 60rem) {
1210
- @keyframes slideInFwd {
1211
- 100% {
1212
- width: 460px;
1213
- height: 460px;
1214
- }
1215
- }
1216
- @keyframes slideOutRight {
1217
- 100% {
1218
- width: 460px;
1219
- height: 460px;
1220
- transform: translateX(calc(100vw - 45px));
1221
- }
1222
- }
1223
- }
1224
- @media (width >= 75rem) {
1225
- @keyframes slideInFwd {
1226
- 100% {
1227
- width: 592px;
1228
- height: 591px;
1229
- }
1230
- }
1231
- @keyframes slideOutRight {
1232
- 100% {
1233
- width: 592px;
1234
- height: 591px;
1235
- transform: translateX(calc(100vw - 45px));
1236
- }
1237
- }
1238
- }
1239
- @media (width >= 87.5rem) {
1240
- @keyframes slideOutRight {
1241
- 100% {
1242
- width: 592px;
1243
- height: 591px;
1244
- transform: translateX(calc(100vw - 120px));
1245
- }
1246
- }
1247
- }
1248
- @media (width >= 2200px) {
1249
- @keyframes slideOutRight {
1250
- 100% {
1251
- width: 592px;
1252
- height: 591px;
1253
- transform: translateX(calc(100vw - 592px));
1254
- }
1255
- }
1256
- }
1257
- span.ripple {
1258
- position: absolute;
1259
- border-radius: 50%;
1260
- transform: scale(0);
1261
- animation: ripple 600ms linear;
1262
- background-color: var(--ripple-bg-color);
1263
- }
1264
-
1265
- @keyframes ripple {
1266
- to {
1267
- transform: scale(4);
1268
- opacity: 1;
1269
- }
1270
- }
1271
- :root {
1272
- --size-base-unit: 0.5rem;
1273
- }
1274
-
1275
- /**
1276
- * RTL support for values logical properties can't automatically adjust for
1277
- * 1) Percentage based horizontal translate values need to be flipped
1278
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
1279
- * 3) Inverse items that have 45degs
1280
- */
1281
- [dir=rtl] {
1282
- --rtlTranslateX: 50%;
1283
- /* 1 */
1284
- --rtlGradientToRight: 270deg;
1285
- /* 2 */
1286
- --rtlRotate45Inverse: -45deg;
1287
- /* 3 */
1288
- }
1289
-
1290
- /**
1291
- * Visible focus outline for elements on a light background
1292
- */
1293
- /**
1294
- * Visible focus outline for elements with an error status
1295
- */
1296
- /**
1297
- * Visible focus outline for elements on a dark background
1298
- */
1299
- /**
1300
- * Focus state for themes that need a dashed outline for focus
1301
- * state
1302
- **/
1303
- /**
1304
- * Invisible focus outline for elements that need a more visible
1305
- * focus state for high-contrast mode
1306
- */
1307
- /**
1308
- * Visually hidden from display
1309
- */
1310
- .cre8-c-calendar-month-modal {
1311
- padding: 0.5rem;
1312
- }
1313
-
1314
- /* grid */
1315
- ol {
1316
- font-family: var(--cre8-typography-body-default-font-family);
1317
- font-size: var(--cre8-typography-body-default-font-size);
1318
- font-weight: var(--cre8-typography-body-default-font-weight);
1319
- line-height: var(--cre8-typography-body-default-line-height);
1320
- text-decoration: var(--cre8-typography-body-default-text-decoration);
1321
- text-transform: var(--cre8-typography-body-default-text-transform);
1322
- display: grid;
1323
- grid-row-gap: 0.33em;
1324
- grid-template-columns: repeat(3, 1fr);
1325
- list-style: none;
1326
- margin: unset;
1327
- padding: unset;
1328
- }
1329
-
1330
- li {
1331
- display: inline-flex;
1332
- justify-content: center;
1333
- }`;
1334
- var E = Object.defineProperty, I = (d, t, e, a) => {
1335
- for (var r = void 0, i = d.length - 1, n; i >= 0; i--)
1336
- (n = d[i]) && (r = n(t, e, r) || r);
1337
- return r && E(t, e, r), r;
1338
- };
1339
- const k = class k extends w {
1340
- constructor() {
1341
- super(), this.monthNames = [
1342
- "January",
1343
- "February",
1344
- "March",
1345
- "April",
1346
- "May",
1347
- "June",
1348
- "July",
1349
- "August",
1350
- "September",
1351
- "October",
1352
- "November",
1353
- "December"
1354
- ];
1355
- }
1356
- firstUpdated() {
1357
- this.focusOnCurrentMonth();
1358
- }
1359
- async focusOnCurrentMonth() {
1360
- await this.updateComplete, (this.shadowRoot?.querySelector(
1361
- "li[data-current-month]"
1362
- ).children[0].shadowRoot?.querySelector("button")).focus();
1363
- }
1364
- emitMonth(t) {
1365
- const e = new CustomEvent("changeMonth", {
1366
- detail: {
1367
- month: t
1368
- }
1369
- });
1370
- this.dispatchEvent(e);
1371
- }
1372
- getMonthListItems() {
1373
- return this.monthNames.map(
1374
- (t, e) => s` <li ?data-current-month="${e === this.currentMonth}" >
1375
- <cre8-button text="${t}" variant="tertiary" size="sm"
1376
- @click="${() => this.emitMonth(e)}"></cre8-button>
1377
- </li>`
1378
- );
1379
- }
1380
- render() {
1381
- const t = this.componentClassNames("cre8-c-calendar-month-modal", {});
1382
- return s` <div class="${t}">
1383
- <ol aria-label="choose a month">
1384
- ${this.getMonthListItems()}
1385
- </ol>
1386
- </div> `;
1387
- }
1388
- };
1389
- k.styles = [A];
1390
- let b = k;
1391
- I([
1392
- c()
1393
- ], b.prototype, "monthNames");
1394
- I([
1395
- p({ reflect: !0, type: Number })
1396
- ], b.prototype, "currentMonth");
1397
- customElements.get("cre8-calendar-month-modal") === void 0 && customElements.define("cre8-calendar-month-modal", b);
1398
- const V = x`.cre8-u-content-knockout-brand {
1399
- color: var(----cre8-color-content-knockout-brand);
1400
- }
1401
-
1402
- .cre8-u-is-hidden {
1403
- display: none !important;
1404
- visibility: hidden !important;
1405
- }
1406
-
1407
- .cre8-u-is-vishidden {
1408
- position: absolute !important;
1409
- overflow: hidden;
1410
- width: 1px;
1411
- height: 1px;
1412
- padding: 0;
1413
- border: 0;
1414
- clip: rect(1px, 1px, 1px, 1px);
1415
- }
1416
-
1417
- @media all and (min-width: 23.4375rem) {
1418
- .cre8-u-hide-sm {
1419
- display: none !important;
1420
- }
1421
- }
1422
- @media all and (min-width: 35rem) {
1423
- .cre8-u-hide-sm-2 {
1424
- display: none !important;
1425
- }
1426
- }
1427
- @media all and (min-width: 48rem) {
1428
- .cre8-u-hide-md {
1429
- display: none !important;
1430
- }
1431
- }
1432
- @media all and (min-width: 60rem) {
1433
- .cre8-u-hide-lg {
1434
- display: none !important;
1435
- }
1436
- }
1437
- @media all and (min-width: 75rem) {
1438
- .cre8-u-hide-xl {
1439
- display: none !important;
1440
- }
1441
- }
1442
- @media all and (max-width: 23.4375rem) {
1443
- .cre8-u-show-sm {
1444
- display: none !important;
1445
- }
1446
- }
1447
- @media all and (max-width: 35rem) {
1448
- .cre8-u-show-sm-2 {
1449
- display: none !important;
1450
- }
1451
- }
1452
- @media all and (max-width: 48rem) {
1453
- .cre8-u-show-md {
1454
- display: none !important;
1455
- }
1456
- }
1457
- @media all and (max-width: 60rem) {
1458
- .cre8-u-show-lg {
1459
- display: none !important;
1460
- }
1461
- }
1462
- @media all and (max-width: 75rem) {
1463
- .cre8-u-show-xl {
1464
- display: none !important;
1465
- }
1466
- }
1467
- .cre8-u-margin-none {
1468
- margin: 0 !important;
1469
- }
1470
-
1471
- .cre8-u-margin-sm {
1472
- margin: size(1) !important;
1473
- }
1474
-
1475
- .cre8-u-margin-md {
1476
- margin: size(2) !important;
1477
- }
1478
-
1479
- .cre8-u-margin-lg {
1480
- margin: size(3) !important;
1481
- }
1482
-
1483
- .cre8-u-margin-xl {
1484
- margin: size(4) !important;
1485
- }
1486
-
1487
- .cre8-u-margin-xxl {
1488
- margin: size(8) !important;
1489
- }
1490
-
1491
- .cre8-u-margin-top-none {
1492
- margin-top: 0 !important;
1493
- }
1494
-
1495
- .cre8-u-margin-top-sm {
1496
- margin-top: size(1) !important;
1497
- }
1498
-
1499
- .cre8-u-margin-top-md {
1500
- margin-top: size(2) !important;
1501
- }
1502
-
1503
- .cre8-u-margin-top-lg {
1504
- margin-top: size(3) !important;
1505
- }
1506
-
1507
- .cre8-u-margin-top-xl {
1508
- margin-top: size(4) !important;
1509
- }
1510
-
1511
- .cre8-u-margin-top-xxl {
1512
- margin-top: size(8) !important;
1513
- }
1514
-
1515
- .cre8-u-margin-right-none {
1516
- margin-right: 0 !important;
1517
- }
1518
-
1519
- .cre8-u-margin-right-sm {
1520
- margin-right: size(1) !important;
1521
- }
1522
-
1523
- .cre8-u-margin-right-md {
1524
- margin-right: size(2) !important;
1525
- }
1526
-
1527
- .cre8-u-margin-right-lg {
1528
- margin-right: size(3) !important;
1529
- }
1530
-
1531
- .cre8-u-margin-right-xl {
1532
- margin-right: size(4) !important;
1533
- }
1534
-
1535
- .cre8-u-margin-right-xxl {
1536
- margin-right: size(8) !important;
1537
- }
1538
-
1539
- .cre8-u-margin-bottom-none {
1540
- margin-bottom: 0 !important;
1541
- }
1542
-
1543
- .cre8-u-margin-bottom-sm {
1544
- margin-bottom: size(1) !important;
1545
- }
1546
-
1547
- .cre8-u-margin-bottom-md {
1548
- margin-bottom: size(2) !important;
1549
- }
1550
-
1551
- .cre8-u-margin-bottom-lg {
1552
- margin-bottom: size(3) !important;
1553
- }
1554
-
1555
- .cre8-u-margin-bottom-xl {
1556
- margin-bottom: size(4) !important;
1557
- }
1558
-
1559
- .cre8-u-margin-bottom-xxl {
1560
- margin-bottom: size(8) !important;
1561
- }
1562
-
1563
- .cre8-u-margin-bottom-xl-xxl {
1564
- margin-bottom: size(4) !important;
1565
- }
1566
-
1567
- @media all and (min-width: 768px) {
1568
- .cre8-u-margin-bottom-xl-xxl {
1569
- margin-bottom: size(8) !important;
1570
- }
1571
- }
1572
- .cre8-u-margin-left-none {
1573
- margin-left: 0 !important;
1574
- }
1575
-
1576
- .cre8-u-margin-left-sm {
1577
- margin-left: size(1) !important;
1578
- }
1579
-
1580
- .cre8-u-margin-left-md {
1581
- margin-left: size(2) !important;
1582
- }
1583
-
1584
- .cre8-u-margin-left-lg {
1585
- margin-left: size(3) !important;
1586
- }
1587
-
1588
- .cre8-u-margin-left-xl {
1589
- margin-left: size(4) !important;
1590
- }
1591
-
1592
- .cre8-u-margin-left-xxl {
1593
- margin-left: size(8) !important;
1594
- }
1595
-
1596
- .cre8-u-padding-none {
1597
- padding: 0 !important;
1598
- }
1599
-
1600
- .cre8-u-padding-sm {
1601
- padding: size(1) !important;
1602
- }
1603
-
1604
- .cre8-u-padding-md {
1605
- padding: size(2) !important;
1606
- }
1607
-
1608
- .cre8-u-padding-lg {
1609
- padding: size(3) !important;
1610
- }
1611
-
1612
- .cre8-u-padding-xl {
1613
- padding: size(4) !important;
1614
- }
1615
-
1616
- .cre8-u-padding-xxl {
1617
- padding: size(8) !important;
1618
- }
1619
-
1620
- .cre8-u-padding-top-none {
1621
- padding-top: 0 !important;
1622
- }
1623
-
1624
- .cre8-u-padding-top-sm {
1625
- padding-top: size(1) !important;
1626
- }
1627
-
1628
- .cre8-u-padding-top-md {
1629
- padding-top: size(2) !important;
1630
- }
1631
-
1632
- .cre8-u-padding-top-lg {
1633
- padding-top: size(3) !important;
1634
- }
1635
-
1636
- .cre8-u-padding-top-xl {
1637
- padding-top: size(4) !important;
1638
- }
1639
-
1640
- .cre8-u-padding-top-xxl {
1641
- padding-top: size(8) !important;
1642
- }
1643
-
1644
- .cre8-u-padding-right-none {
1645
- padding-right: 0 !important;
1646
- }
1647
-
1648
- .cre8-u-padding-right-sm {
1649
- padding-right: size(1) !important;
1650
- }
1651
-
1652
- .cre8-u-padding-right-md {
1653
- padding-right: size(2) !important;
1654
- }
1655
-
1656
- .cre8-u-padding-right-lg {
1657
- padding-right: size(3) !important;
1658
- }
1659
-
1660
- .cre8-u-padding-right-xl {
1661
- padding-right: size(4) !important;
1662
- }
1663
-
1664
- .cre8-u-padding-right-xxl {
1665
- padding-right: size(8) !important;
1666
- }
1667
-
1668
- .cre8-u-padding-bottom-none {
1669
- padding-bottom: 0 !important;
1670
- }
1671
-
1672
- .cre8-u-padding-bottom-sm {
1673
- padding-bottom: size(1) !important;
1674
- }
1675
-
1676
- .cre8-u-padding-bottom-md {
1677
- padding-bottom: size(2) !important;
1678
- }
1679
-
1680
- .cre8-u-padding-bottom-lg {
1681
- padding-bottom: size(3) !important;
1682
- }
1683
-
1684
- .cre8-u-padding-bottom-xl {
1685
- padding-bottom: size(4) !important;
1686
- }
1687
-
1688
- .cre8-u-padding-bottom-xxl {
1689
- padding-bottom: size(8) !important;
1690
- }
1691
-
1692
- .cre8-u-padding-left-none {
1693
- padding-left: 0 !important;
1694
- }
1695
-
1696
- .cre8-u-padding-left-sm {
1697
- padding-left: size(1) !important;
1698
- }
1699
-
1700
- .cre8-u-padding-left-md {
1701
- padding-left: size(2) !important;
1702
- }
1703
-
1704
- .cre8-u-padding-left-lg {
1705
- padding-left: size(3) !important;
1706
- }
1707
-
1708
- .cre8-u-padding-left-xl {
1709
- padding-left: size(4) !important;
1710
- }
1711
-
1712
- .cre8-u-padding-left-xxl {
1713
- padding-left: size(8) !important;
1714
- }
1715
-
1716
- .cre8-u-display-flex {
1717
- display: flex !important;
1718
- }
1719
-
1720
- .cre8-u-display-block {
1721
- display: block !important;
1722
- }
1723
-
1724
- body {
1725
- font-family: var(--cre8-typography-body-default-font-family);
1726
- font-size: var(--cre8-typography-body-default-font-size);
1727
- font-weight: var(--cre8-typography-body-default-font-weight);
1728
- line-height: var(--cre8-typography-body-default-line-height);
1729
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
1730
- text-decoration: var(--cre8-typography-body-default-text-decoration);
1731
- text-transform: var(--cre8-typography-body-default-text-transform);
1732
- display: flex;
1733
- flex-direction: column;
1734
- padding: 0;
1735
- margin: 0;
1736
- color: var(--cre8-color-content-default);
1737
- background: var(--background-default);
1738
- }
1739
-
1740
- @media all and (min-width: 60rem) {
1741
- .page-container {
1742
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
1743
- }
1744
- }
1745
- .band__inner {
1746
- margin-left: 2rem;
1747
- margin-right: 2rem;
1748
- }
1749
-
1750
- @media all and (min-width: 60rem) {
1751
- .band__inner {
1752
- margin-right: 0;
1753
- }
1754
- }
1755
- img {
1756
- max-width: 100%;
1757
- height: auto;
1758
- }
1759
-
1760
- /**
1761
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
1762
- */
1763
- *,
1764
- ::slotted(*),
1765
- *:before,
1766
- *:after {
1767
- box-sizing: border-box;
1768
- }
1769
-
1770
- :root {
1771
- --size-base-unit: 0.5rem;
1772
- }
1773
-
1774
- /**
1775
- * RTL support for values logical properties can't automatically adjust for
1776
- * 1) Percentage based horizontal translate values need to be flipped
1777
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
1778
- * 3) Inverse items that have 45degs
1779
- */
1780
- [dir=rtl] {
1781
- --rtlTranslateX: 50%;
1782
- /* 1 */
1783
- --rtlGradientToRight: 270deg;
1784
- /* 2 */
1785
- --rtlRotate45Inverse: -45deg;
1786
- /* 3 */
1787
- }
1788
-
1789
- /**
1790
- * Visible focus outline for elements on a light background
1791
- */
1792
- /**
1793
- * Visible focus outline for elements with an error status
1794
- */
1795
- /**
1796
- * Visible focus outline for elements on a dark background
1797
- */
1798
- /**
1799
- * Focus state for themes that need a dashed outline for focus
1800
- * state
1801
- **/
1802
- /**
1803
- * Invisible focus outline for elements that need a more visible
1804
- * focus state for high-contrast mode
1805
- */
1806
- /**
1807
- * Visually hidden from display
1808
- */
1809
- /*
1810
- =======
1811
- Animations
1812
- =======
1813
- */
1814
- :host {
1815
- --cre8-z-index-1: 1;
1816
- --cre8-z-index-50: 50;
1817
- --cre8-z-index-100: 100;
1818
- --cre8-z-index-200: 200;
1819
- --cre8-z-index-1030: 1030;
1820
- --cre8-anim-fade-quick: 0.35s;
1821
- --cre8-anim-ease: ease;
1822
- }
1823
-
1824
- @keyframes fadeIn {
1825
- 100% {
1826
- opacity: 1;
1827
- }
1828
- }
1829
- @keyframes slideIn {
1830
- 100% {
1831
- transform: translateX(0);
1832
- }
1833
- }
1834
- @keyframes slideInFwd {
1835
- 100% {
1836
- width: 272px;
1837
- height: 272px;
1838
- }
1839
- }
1840
- @keyframes slideOutRight {
1841
- 100% {
1842
- width: 272px;
1843
- height: 272px;
1844
- }
1845
- }
1846
- @keyframes slideUp {
1847
- 100% {
1848
- transform: translateY(0);
1849
- }
1850
- }
1851
- @media (width >= 481px) {
1852
- @keyframes slideInFwd {
1853
- 100% {
1854
- width: 417px;
1855
- height: 417px;
1856
- }
1857
- }
1858
- @keyframes slideOutRight {
1859
- 100% {
1860
- width: 417px;
1861
- height: 417px;
1862
- }
1863
- }
1864
- }
1865
- @media (width >= 48rem) {
1866
- @keyframes slideInFwd {
1867
- 100% {
1868
- width: 330px;
1869
- height: 330px;
1870
- }
1871
- }
1872
- @keyframes slideOutRight {
1873
- 100% {
1874
- width: 330px;
1875
- height: 330px;
1876
- transform: translateX(calc(100vw - 45px));
1877
- }
1878
- }
1879
- }
1880
- @media (width >= 60rem) {
1881
- @keyframes slideInFwd {
1882
- 100% {
1883
- width: 460px;
1884
- height: 460px;
1885
- }
1886
- }
1887
- @keyframes slideOutRight {
1888
- 100% {
1889
- width: 460px;
1890
- height: 460px;
1891
- transform: translateX(calc(100vw - 45px));
1892
- }
1893
- }
1894
- }
1895
- @media (width >= 75rem) {
1896
- @keyframes slideInFwd {
1897
- 100% {
1898
- width: 592px;
1899
- height: 591px;
1900
- }
1901
- }
1902
- @keyframes slideOutRight {
1903
- 100% {
1904
- width: 592px;
1905
- height: 591px;
1906
- transform: translateX(calc(100vw - 45px));
1907
- }
1908
- }
1909
- }
1910
- @media (width >= 87.5rem) {
1911
- @keyframes slideOutRight {
1912
- 100% {
1913
- width: 592px;
1914
- height: 591px;
1915
- transform: translateX(calc(100vw - 120px));
1916
- }
1917
- }
1918
- }
1919
- @media (width >= 2200px) {
1920
- @keyframes slideOutRight {
1921
- 100% {
1922
- width: 592px;
1923
- height: 591px;
1924
- transform: translateX(calc(100vw - 592px));
1925
- }
1926
- }
1927
- }
1928
- span.ripple {
1929
- position: absolute;
1930
- border-radius: 50%;
1931
- transform: scale(0);
1932
- animation: ripple 600ms linear;
1933
- background-color: var(--ripple-bg-color);
1934
- }
1935
-
1936
- @keyframes ripple {
1937
- to {
1938
- transform: scale(4);
1939
- opacity: 1;
1940
- }
1941
- }
1942
- :root {
1943
- --size-base-unit: 0.5rem;
1944
- }
1945
-
1946
- /**
1947
- * RTL support for values logical properties can't automatically adjust for
1948
- * 1) Percentage based horizontal translate values need to be flipped
1949
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
1950
- * 3) Inverse items that have 45degs
1951
- */
1952
- [dir=rtl] {
1953
- --rtlTranslateX: 50%;
1954
- /* 1 */
1955
- --rtlGradientToRight: 270deg;
1956
- /* 2 */
1957
- --rtlRotate45Inverse: -45deg;
1958
- /* 3 */
1959
- }
1960
-
1961
- /**
1962
- * Visible focus outline for elements on a light background
1963
- */
1964
- /**
1965
- * Visible focus outline for elements with an error status
1966
- */
1967
- /**
1968
- * Visible focus outline for elements on a dark background
1969
- */
1970
- /**
1971
- * Focus state for themes that need a dashed outline for focus
1972
- * state
1973
- **/
1974
- /**
1975
- * Invisible focus outline for elements that need a more visible
1976
- * focus state for high-contrast mode
1977
- */
1978
- /**
1979
- * Visually hidden from display
1980
- */
1981
- .cre8-c-calendar-year-modal {
1982
- display: flex;
1983
- justify-content: space-around;
1984
- align-items: center;
1985
- padding: 0.5rem;
1986
- }
1987
-
1988
- /* grid */
1989
- ol {
1990
- font-family: var(--cre8-typography-body-default-font-family);
1991
- font-size: var(--cre8-typography-body-default-font-size);
1992
- font-weight: var(--cre8-typography-body-default-font-weight);
1993
- line-height: var(--cre8-typography-body-default-line-height);
1994
- text-decoration: var(--cre8-typography-body-default-text-decoration);
1995
- text-transform: var(--cre8-typography-body-default-text-transform);
1996
- display: grid;
1997
- grid-row-gap: 0.33em;
1998
- grid-template-columns: repeat(3, 1fr);
1999
- list-style: none;
2000
- margin: unset;
2001
- padding: unset;
2002
- }
2003
-
2004
- li {
2005
- display: inline-flex;
2006
- justify-content: center;
2007
- }
2008
-
2009
- cre8-button {
2010
- height: fit-content;
2011
- }`;
2012
- var P = Object.defineProperty, q = Object.getOwnPropertyDescriptor, v = (d, t, e, a) => {
2013
- for (var r = a > 1 ? void 0 : a ? q(t, e) : t, i = d.length - 1, n; i >= 0; i--)
2014
- (n = d[i]) && (r = (a ? n(t, e, r) : n(r)) || r);
2015
- return a && r && P(t, e, r), r;
2016
- };
2017
- const _ = class _ extends w {
2018
- get currentYear() {
2019
- return this._currentYear;
2020
- }
2021
- set currentYear(t) {
2022
- const e = this._currentYear;
2023
- this._currentYear = t, this.modalAnchorYear = t, this.requestUpdate("currentDate", e), this.createYearArray(this.currentYear);
2024
- }
2025
- constructor() {
2026
- super(), this.yearNumbers = [];
2027
- }
2028
- emitYear(t) {
2029
- const e = new CustomEvent("changeYear", {
2030
- detail: {
2031
- year: t
2032
- }
2033
- });
2034
- this.dispatchEvent(e);
2035
- }
2036
- createYearArray(t) {
2037
- const e = Array.from(Array(12).keys());
2038
- this.yearNumbers = e.map((a) => a + (t - 7));
2039
- }
2040
- getYearListItems() {
2041
- return this.yearNumbers.map(
2042
- ((t) => s` <li
2043
- ?data-current-year="${t === this.currentYear}"
2044
- >
2045
- <cre8-button
2046
- text="${t}"
2047
- variant="tertiary"
2048
- size="sm"
2049
- @click="${() => this.emitYear(t)}"
2050
- ></cre8-button>
2051
- </li>`)
2052
- );
2053
- }
2054
- firstUpdated() {
2055
- this.focusOnCurrentYear();
2056
- }
2057
- async focusOnCurrentYear() {
2058
- await this.updateComplete, (this.shadowRoot?.querySelector(
2059
- "li[data-current-year]"
2060
- ).children[0].shadowRoot?.querySelector("button")).focus();
2061
- }
2062
- previousYearArray() {
2063
- this.modalAnchorYear -= 12, this.createYearArray(this.modalAnchorYear);
2064
- }
2065
- nextYearArray() {
2066
- this.modalAnchorYear += 12, this.createYearArray(this.modalAnchorYear);
2067
- }
2068
- render() {
2069
- const t = this.componentClassNames(
2070
- "cre8-c-calendar-year-modal",
2071
- {}
2072
- );
2073
- return s`
2074
- <div class="${t}">
2075
- <cre8-button
2076
- class="cre8-c-calendar-year-modal__nav-button"
2077
- @click="${this.previousYearArray}"
2078
- variant="tertiary"
2079
- text="Previous 12 years"
2080
- ?hideText=${!0}
2081
- iconName="keyboard-arrow-left"
2082
- ></cre8-button>
2083
- <ol aria-label="choose a year">
2084
- ${this.getYearListItems()}
2085
- </ol>
2086
- <cre8-button
2087
- class="cre8-c-calendar-year-modal__nav-button"
2088
- @click="${this.nextYearArray}"
2089
- variant="tertiary"
2090
- text="Next 12 years"
2091
- ?hideText=${!0}
2092
- iconName="keyboard-arrow-right"
2093
- ></cre8-button>
2094
- </div>
2095
- `;
2096
- }
2097
- };
2098
- _.styles = [V];
2099
- let h = _;
2100
- v([
2101
- c()
2102
- ], h.prototype, "yearNumbers", 2);
2103
- v([
2104
- c()
2105
- ], h.prototype, "_currentYear", 2);
2106
- v([
2107
- c()
2108
- ], h.prototype, "modalAnchorYear", 2);
2109
- v([
2110
- p({ reflect: !0, type: Number })
2111
- ], h.prototype, "currentYear", 1);
2112
- customElements.get("cre8-calendar-year-modal") === void 0 && customElements.define("cre8-calendar-year-modal", h);
2113
- const B = x`.cre8-u-content-knockout-brand {
2114
- color: var(----cre8-color-content-knockout-brand);
2115
- }
2116
-
2117
- .cre8-u-is-hidden {
2118
- display: none !important;
2119
- visibility: hidden !important;
2120
- }
2121
-
2122
- .cre8-u-is-vishidden {
2123
- position: absolute !important;
2124
- overflow: hidden;
2125
- width: 1px;
2126
- height: 1px;
2127
- padding: 0;
2128
- border: 0;
2129
- clip: rect(1px, 1px, 1px, 1px);
2130
- }
2131
-
2132
- @media all and (min-width: 23.4375rem) {
2133
- .cre8-u-hide-sm {
2134
- display: none !important;
2135
- }
2136
- }
2137
- @media all and (min-width: 35rem) {
2138
- .cre8-u-hide-sm-2 {
2139
- display: none !important;
2140
- }
2141
- }
2142
- @media all and (min-width: 48rem) {
2143
- .cre8-u-hide-md {
2144
- display: none !important;
2145
- }
2146
- }
2147
- @media all and (min-width: 60rem) {
2148
- .cre8-u-hide-lg {
2149
- display: none !important;
2150
- }
2151
- }
2152
- @media all and (min-width: 75rem) {
2153
- .cre8-u-hide-xl {
2154
- display: none !important;
2155
- }
2156
- }
2157
- @media all and (max-width: 23.4375rem) {
2158
- .cre8-u-show-sm {
2159
- display: none !important;
2160
- }
2161
- }
2162
- @media all and (max-width: 35rem) {
2163
- .cre8-u-show-sm-2 {
2164
- display: none !important;
2165
- }
2166
- }
2167
- @media all and (max-width: 48rem) {
2168
- .cre8-u-show-md {
2169
- display: none !important;
2170
- }
2171
- }
2172
- @media all and (max-width: 60rem) {
2173
- .cre8-u-show-lg {
2174
- display: none !important;
2175
- }
2176
- }
2177
- @media all and (max-width: 75rem) {
2178
- .cre8-u-show-xl {
2179
- display: none !important;
2180
- }
2181
- }
2182
- .cre8-u-margin-none {
2183
- margin: 0 !important;
2184
- }
2185
-
2186
- .cre8-u-margin-sm {
2187
- margin: size(1) !important;
2188
- }
2189
-
2190
- .cre8-u-margin-md {
2191
- margin: size(2) !important;
2192
- }
2193
-
2194
- .cre8-u-margin-lg {
2195
- margin: size(3) !important;
2196
- }
2197
-
2198
- .cre8-u-margin-xl {
2199
- margin: size(4) !important;
2200
- }
2201
-
2202
- .cre8-u-margin-xxl {
2203
- margin: size(8) !important;
2204
- }
2205
-
2206
- .cre8-u-margin-top-none {
2207
- margin-top: 0 !important;
2208
- }
2209
-
2210
- .cre8-u-margin-top-sm {
2211
- margin-top: size(1) !important;
2212
- }
2213
-
2214
- .cre8-u-margin-top-md {
2215
- margin-top: size(2) !important;
2216
- }
2217
-
2218
- .cre8-u-margin-top-lg {
2219
- margin-top: size(3) !important;
2220
- }
2221
-
2222
- .cre8-u-margin-top-xl {
2223
- margin-top: size(4) !important;
2224
- }
2225
-
2226
- .cre8-u-margin-top-xxl {
2227
- margin-top: size(8) !important;
2228
- }
2229
-
2230
- .cre8-u-margin-right-none {
2231
- margin-right: 0 !important;
2232
- }
2233
-
2234
- .cre8-u-margin-right-sm {
2235
- margin-right: size(1) !important;
2236
- }
2237
-
2238
- .cre8-u-margin-right-md {
2239
- margin-right: size(2) !important;
2240
- }
2241
-
2242
- .cre8-u-margin-right-lg {
2243
- margin-right: size(3) !important;
2244
- }
2245
-
2246
- .cre8-u-margin-right-xl {
2247
- margin-right: size(4) !important;
2248
- }
2249
-
2250
- .cre8-u-margin-right-xxl {
2251
- margin-right: size(8) !important;
2252
- }
2253
-
2254
- .cre8-u-margin-bottom-none {
2255
- margin-bottom: 0 !important;
2256
- }
2257
-
2258
- .cre8-u-margin-bottom-sm {
2259
- margin-bottom: size(1) !important;
2260
- }
2261
-
2262
- .cre8-u-margin-bottom-md {
2263
- margin-bottom: size(2) !important;
2264
- }
2265
-
2266
- .cre8-u-margin-bottom-lg {
2267
- margin-bottom: size(3) !important;
2268
- }
2269
-
2270
- .cre8-u-margin-bottom-xl {
2271
- margin-bottom: size(4) !important;
2272
- }
2273
-
2274
- .cre8-u-margin-bottom-xxl {
2275
- margin-bottom: size(8) !important;
2276
- }
2277
-
2278
- .cre8-u-margin-bottom-xl-xxl {
2279
- margin-bottom: size(4) !important;
2280
- }
2281
-
2282
- @media all and (min-width: 768px) {
2283
- .cre8-u-margin-bottom-xl-xxl {
2284
- margin-bottom: size(8) !important;
2285
- }
2286
- }
2287
- .cre8-u-margin-left-none {
2288
- margin-left: 0 !important;
2289
- }
2290
-
2291
- .cre8-u-margin-left-sm {
2292
- margin-left: size(1) !important;
2293
- }
2294
-
2295
- .cre8-u-margin-left-md {
2296
- margin-left: size(2) !important;
2297
- }
2298
-
2299
- .cre8-u-margin-left-lg {
2300
- margin-left: size(3) !important;
2301
- }
2302
-
2303
- .cre8-u-margin-left-xl {
2304
- margin-left: size(4) !important;
2305
- }
2306
-
2307
- .cre8-u-margin-left-xxl {
2308
- margin-left: size(8) !important;
2309
- }
2310
-
2311
- .cre8-u-padding-none {
2312
- padding: 0 !important;
2313
- }
2314
-
2315
- .cre8-u-padding-sm {
2316
- padding: size(1) !important;
2317
- }
2318
-
2319
- .cre8-u-padding-md {
2320
- padding: size(2) !important;
2321
- }
2322
-
2323
- .cre8-u-padding-lg {
2324
- padding: size(3) !important;
2325
- }
2326
-
2327
- .cre8-u-padding-xl {
2328
- padding: size(4) !important;
2329
- }
2330
-
2331
- .cre8-u-padding-xxl {
2332
- padding: size(8) !important;
2333
- }
2334
-
2335
- .cre8-u-padding-top-none {
2336
- padding-top: 0 !important;
2337
- }
2338
-
2339
- .cre8-u-padding-top-sm {
2340
- padding-top: size(1) !important;
2341
- }
2342
-
2343
- .cre8-u-padding-top-md {
2344
- padding-top: size(2) !important;
2345
- }
2346
-
2347
- .cre8-u-padding-top-lg {
2348
- padding-top: size(3) !important;
2349
- }
2350
-
2351
- .cre8-u-padding-top-xl {
2352
- padding-top: size(4) !important;
2353
- }
2354
-
2355
- .cre8-u-padding-top-xxl {
2356
- padding-top: size(8) !important;
2357
- }
2358
-
2359
- .cre8-u-padding-right-none {
2360
- padding-right: 0 !important;
2361
- }
2362
-
2363
- .cre8-u-padding-right-sm {
2364
- padding-right: size(1) !important;
2365
- }
2366
-
2367
- .cre8-u-padding-right-md {
2368
- padding-right: size(2) !important;
2369
- }
2370
-
2371
- .cre8-u-padding-right-lg {
2372
- padding-right: size(3) !important;
2373
- }
2374
-
2375
- .cre8-u-padding-right-xl {
2376
- padding-right: size(4) !important;
2377
- }
2378
-
2379
- .cre8-u-padding-right-xxl {
2380
- padding-right: size(8) !important;
2381
- }
2382
-
2383
- .cre8-u-padding-bottom-none {
2384
- padding-bottom: 0 !important;
2385
- }
2386
-
2387
- .cre8-u-padding-bottom-sm {
2388
- padding-bottom: size(1) !important;
2389
- }
2390
-
2391
- .cre8-u-padding-bottom-md {
2392
- padding-bottom: size(2) !important;
2393
- }
2394
-
2395
- .cre8-u-padding-bottom-lg {
2396
- padding-bottom: size(3) !important;
2397
- }
2398
-
2399
- .cre8-u-padding-bottom-xl {
2400
- padding-bottom: size(4) !important;
2401
- }
2402
-
2403
- .cre8-u-padding-bottom-xxl {
2404
- padding-bottom: size(8) !important;
2405
- }
2406
-
2407
- .cre8-u-padding-left-none {
2408
- padding-left: 0 !important;
2409
- }
2410
-
2411
- .cre8-u-padding-left-sm {
2412
- padding-left: size(1) !important;
2413
- }
2414
-
2415
- .cre8-u-padding-left-md {
2416
- padding-left: size(2) !important;
2417
- }
2418
-
2419
- .cre8-u-padding-left-lg {
2420
- padding-left: size(3) !important;
2421
- }
2422
-
2423
- .cre8-u-padding-left-xl {
2424
- padding-left: size(4) !important;
2425
- }
2426
-
2427
- .cre8-u-padding-left-xxl {
2428
- padding-left: size(8) !important;
2429
- }
2430
-
2431
- .cre8-u-display-flex {
2432
- display: flex !important;
2433
- }
2434
-
2435
- .cre8-u-display-block {
2436
- display: block !important;
2437
- }
2438
-
2439
- body {
2440
- font-family: var(--cre8-typography-body-default-font-family);
2441
- font-size: var(--cre8-typography-body-default-font-size);
2442
- font-weight: var(--cre8-typography-body-default-font-weight);
2443
- line-height: var(--cre8-typography-body-default-line-height);
2444
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
2445
- text-decoration: var(--cre8-typography-body-default-text-decoration);
2446
- text-transform: var(--cre8-typography-body-default-text-transform);
2447
- display: flex;
2448
- flex-direction: column;
2449
- padding: 0;
2450
- margin: 0;
2451
- color: var(--cre8-color-content-default);
2452
- background: var(--background-default);
2453
- }
2454
-
2455
- @media all and (min-width: 60rem) {
2456
- .page-container {
2457
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
2458
- }
2459
- }
2460
- .band__inner {
2461
- margin-left: 2rem;
2462
- margin-right: 2rem;
2463
- }
2464
-
2465
- @media all and (min-width: 60rem) {
2466
- .band__inner {
2467
- margin-right: 0;
2468
- }
2469
- }
2470
- img {
2471
- max-width: 100%;
2472
- height: auto;
2473
- }
2474
-
2475
- /**
2476
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
2477
- */
2478
- *,
2479
- ::slotted(*),
2480
- *:before,
2481
- *:after {
2482
- box-sizing: border-box;
2483
- }
2484
-
2485
- :root {
2486
- --size-base-unit: 0.5rem;
2487
- }
2488
-
2489
- /**
2490
- * RTL support for values logical properties can't automatically adjust for
2491
- * 1) Percentage based horizontal translate values need to be flipped
2492
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
2493
- * 3) Inverse items that have 45degs
2494
- */
2495
- [dir=rtl] {
2496
- --rtlTranslateX: 50%;
2497
- /* 1 */
2498
- --rtlGradientToRight: 270deg;
2499
- /* 2 */
2500
- --rtlRotate45Inverse: -45deg;
2501
- /* 3 */
2502
- }
2503
-
2504
- /**
2505
- * Visible focus outline for elements on a light background
2506
- */
2507
- /**
2508
- * Visible focus outline for elements with an error status
2509
- */
2510
- /**
2511
- * Visible focus outline for elements on a dark background
2512
- */
2513
- /**
2514
- * Focus state for themes that need a dashed outline for focus
2515
- * state
2516
- **/
2517
- /**
2518
- * Invisible focus outline for elements that need a more visible
2519
- * focus state for high-contrast mode
2520
- */
2521
- /**
2522
- * Visually hidden from display
2523
- */
2524
- /*
2525
- =======
2526
- Animations
2527
- =======
2528
- */
2529
- :host {
2530
- --cre8-z-index-1: 1;
2531
- --cre8-z-index-50: 50;
2532
- --cre8-z-index-100: 100;
2533
- --cre8-z-index-200: 200;
2534
- --cre8-z-index-1030: 1030;
2535
- --cre8-anim-fade-quick: 0.35s;
2536
- --cre8-anim-ease: ease;
2537
- }
2538
-
2539
- @keyframes fadeIn {
2540
- 100% {
2541
- opacity: 1;
2542
- }
2543
- }
2544
- @keyframes slideIn {
2545
- 100% {
2546
- transform: translateX(0);
2547
- }
2548
- }
2549
- @keyframes slideInFwd {
2550
- 100% {
2551
- width: 272px;
2552
- height: 272px;
2553
- }
2554
- }
2555
- @keyframes slideOutRight {
2556
- 100% {
2557
- width: 272px;
2558
- height: 272px;
2559
- }
2560
- }
2561
- @keyframes slideUp {
2562
- 100% {
2563
- transform: translateY(0);
2564
- }
2565
- }
2566
- @media (width >= 481px) {
2567
- @keyframes slideInFwd {
2568
- 100% {
2569
- width: 417px;
2570
- height: 417px;
2571
- }
2572
- }
2573
- @keyframes slideOutRight {
2574
- 100% {
2575
- width: 417px;
2576
- height: 417px;
2577
- }
2578
- }
2579
- }
2580
- @media (width >= 48rem) {
2581
- @keyframes slideInFwd {
2582
- 100% {
2583
- width: 330px;
2584
- height: 330px;
2585
- }
2586
- }
2587
- @keyframes slideOutRight {
2588
- 100% {
2589
- width: 330px;
2590
- height: 330px;
2591
- transform: translateX(calc(100vw - 45px));
2592
- }
2593
- }
2594
- }
2595
- @media (width >= 60rem) {
2596
- @keyframes slideInFwd {
2597
- 100% {
2598
- width: 460px;
2599
- height: 460px;
2600
- }
2601
- }
2602
- @keyframes slideOutRight {
2603
- 100% {
2604
- width: 460px;
2605
- height: 460px;
2606
- transform: translateX(calc(100vw - 45px));
2607
- }
2608
- }
2609
- }
2610
- @media (width >= 75rem) {
2611
- @keyframes slideInFwd {
2612
- 100% {
2613
- width: 592px;
2614
- height: 591px;
2615
- }
2616
- }
2617
- @keyframes slideOutRight {
2618
- 100% {
2619
- width: 592px;
2620
- height: 591px;
2621
- transform: translateX(calc(100vw - 45px));
2622
- }
2623
- }
2624
- }
2625
- @media (width >= 87.5rem) {
2626
- @keyframes slideOutRight {
2627
- 100% {
2628
- width: 592px;
2629
- height: 591px;
2630
- transform: translateX(calc(100vw - 120px));
2631
- }
2632
- }
2633
- }
2634
- @media (width >= 2200px) {
2635
- @keyframes slideOutRight {
2636
- 100% {
2637
- width: 592px;
2638
- height: 591px;
2639
- transform: translateX(calc(100vw - 592px));
2640
- }
2641
- }
2642
- }
2643
- span.ripple {
2644
- position: absolute;
2645
- border-radius: 50%;
2646
- transform: scale(0);
2647
- animation: ripple 600ms linear;
2648
- background-color: var(--ripple-bg-color);
2649
- }
2650
-
2651
- @keyframes ripple {
2652
- to {
2653
- transform: scale(4);
2654
- opacity: 1;
2655
- }
2656
- }
2657
- :root {
2658
- --size-base-unit: 0.5rem;
2659
- }
2660
-
2661
- /**
2662
- * RTL support for values logical properties can't automatically adjust for
2663
- * 1) Percentage based horizontal translate values need to be flipped
2664
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
2665
- * 3) Inverse items that have 45degs
2666
- */
2667
- [dir=rtl] {
2668
- --rtlTranslateX: 50%;
2669
- /* 1 */
2670
- --rtlGradientToRight: 270deg;
2671
- /* 2 */
2672
- --rtlRotate45Inverse: -45deg;
2673
- /* 3 */
2674
- }
2675
-
2676
- /**
2677
- * Visible focus outline for elements on a light background
2678
- */
2679
- /**
2680
- * Visible focus outline for elements with an error status
2681
- */
2682
- /**
2683
- * Visible focus outline for elements on a dark background
2684
- */
2685
- /**
2686
- * Focus state for themes that need a dashed outline for focus
2687
- * state
2688
- **/
2689
- /**
2690
- * Invisible focus outline for elements that need a more visible
2691
- * focus state for high-contrast mode
2692
- */
2693
- /**
2694
- * Visually hidden from display
2695
- */
2696
- .cre8-c-calendar-navigation {
2697
- align-items: center;
2698
- display: flex;
2699
- height: 60px;
2700
- justify-content: center;
2701
- }
2702
-
2703
- .cre8-c-calendar-navigation__inner-buttons {
2704
- display: flex;
2705
- min-width: 188px;
2706
- justify-content: space-around;
2707
- }`;
2708
- var j = Object.defineProperty, C = (d, t, e, a) => {
2709
- for (var r = void 0, i = d.length - 1, n; i >= 0; i--)
2710
- (n = d[i]) && (r = n(t, e, r) || r);
2711
- return r && j(t, e, r), r;
2712
- };
2713
- const D = class D extends w {
2714
- activateModal(t) {
2715
- const e = new CustomEvent("activateModal", {
2716
- detail: {
2717
- modal: t
2718
- }
2719
- });
2720
- this.dispatchEvent(e);
2721
- }
2722
- changeMonth(t) {
2723
- const e = new CustomEvent("changeMonth", {
2724
- detail: {
2725
- addend: t
2726
- }
2727
- });
2728
- this.dispatchEvent(e);
2729
- }
2730
- changeYear(t) {
2731
- const e = new CustomEvent("changeYear", {
2732
- detail: {
2733
- addend: t
2734
- }
2735
- });
2736
- this.dispatchEvent(e);
2737
- }
2738
- render() {
2739
- const t = this.componentClassNames(
2740
- "cre8-c-calendar-navigation",
2741
- {}
2742
- );
2743
- return s`
2744
- <div class="${t}">
2745
- <cre8-button
2746
- variant="tertiary"
2747
- text="Previous year"
2748
- ?hideText=${!0}
2749
- iconName="caret-double-left"
2750
- @click="${() => this.changeYear(-1)}"
2751
- ></cre8-button>
2752
-
2753
- <cre8-button
2754
- variant="tertiary"
2755
- text="Previous month"
2756
- ?hideText=${!0}
2757
- iconName="keyboard-arrow-left"
2758
- @click="${() => this.changeMonth(-1)}"
2759
- ></cre8-button>
2760
-
2761
- <div class="cre8-c-calendar-navigation__inner-buttons">
2762
- <cre8-button
2763
- class="cre8-c-calendar-navigation__month-modal-button"
2764
- variant="tertiary"
2765
- text="${this.monthName}"
2766
- aria-label="${this.monthName}, month picker modal"
2767
- size="sm"
2768
- @click="${() => this.activateModal("month")}"
2769
- ></cre8-button>
2770
-
2771
- <cre8-button
2772
- class="cre8-c-calendar-navigation__year-modal-button"
2773
- variant="tertiary"
2774
- text="${this.year}"
2775
- aria-label="${this.year}, year picker modal"
2776
- size="sm"
2777
- @click="${() => this.activateModal("year")}"
2778
- ></cre8-button>
2779
- </div>
2780
-
2781
- <cre8-button
2782
- variant="tertiary"
2783
- text="Next month"
2784
- ?hideText=${!0}
2785
- iconName="keyboard-arrow-right"
2786
- @click="${() => this.changeMonth(1)}"
2787
- ></cre8-button>
2788
-
2789
- <cre8-button
2790
- variant="tertiary"
2791
- text="Next year"
2792
- ?hideText=${!0}
2793
- iconName="caret-double-right"
2794
- @click="${() => this.changeYear(1)}"
2795
- ></cre8-button>
2796
- </div>
2797
- `;
2798
- }
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2799
6
  };
2800
- D.styles = [B];
2801
- let y = D;
2802
- C([
2803
- p({ type: String, reflect: !0 })
2804
- ], y.prototype, "monthName");
2805
- C([
2806
- p({ type: String, reflect: !0 })
2807
- ], y.prototype, "year");
2808
- customElements.get("cre8-calendar-navigation") === void 0 && customElements.define("cre8-calendar-navigation", y);
2809
- var L = Object.defineProperty, U = Object.getOwnPropertyDescriptor, m = (d, t, e, a) => {
2810
- for (var r = a > 1 ? void 0 : a ? U(t, e) : t, i = d.length - 1, n; i >= 0; i--)
2811
- (n = d[i]) && (r = (a ? n(t, e, r) : n(r)) || r);
2812
- return a && r && L(t, e, r), r;
2813
- }, o;
2814
- const l = (o = class extends w {
2815
- constructor() {
2816
- 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 = {
2817
- locale: this.locale,
2818
- today: /* @__PURE__ */ new Date(),
2819
- weekInfo: {
2820
- firstDay: 7,
2821
- weekend: [6, 7]
2822
- }
2823
- }, this.weekDays = [
2824
- "Sunday",
2825
- "Monday",
2826
- "Tuesday",
2827
- "Wednesday",
2828
- "Thursday",
2829
- "Friday",
2830
- "Saturday"
2831
- ], this.dateFormatOptions = {
2832
- weekday: "long",
2833
- year: "numeric",
2834
- month: "long",
2835
- day: "numeric"
2836
- };
2837
- }
2838
- get activeModal() {
2839
- return this._activeModal;
2840
- }
2841
- set activeModal(t) {
2842
- this._activeModal = t;
2843
- }
2844
- get fieldDate() {
2845
- return this._fieldDate;
2846
- }
2847
- set fieldDate(t) {
2848
- const e = this._fieldDate;
2849
- this.requestUpdate("fieldDate", e);
2850
- const a = !!(t && (/* @__PURE__ */ new Date(`${t}T00:00`)).getTime());
2851
- this.currentDate = a ? /* @__PURE__ */ new Date(`${t}T00:00`) : /* @__PURE__ */ new Date(), this._fieldDate = a ? t : "";
2852
- }
2853
- get currentDate() {
2854
- return this._currentDate;
2855
- }
2856
- set currentDate(t) {
2857
- const e = this._currentDate;
2858
- this._currentDate = t, this.requestUpdate("currentDate", e);
2859
- }
2860
- connectedCallback() {
2861
- super.connectedCallback(), window.addEventListener("click", this._handleOnClickOutside, !1);
2862
- }
2863
- disconnectedCallback() {
2864
- super.disconnectedCallback(), window.removeEventListener("click", this._handleOnClickOutside, !1);
2865
- }
2866
- /* Click Event Functions */
2867
- _handleOnClickOutside(t) {
2868
- if (!this.shadowRoot?.host)
2869
- throw Error(
2870
- "Could not determine navigation context during click handler"
2871
- );
2872
- if (!t.composedPath().includes(this.shadowRoot.host)) {
2873
- const a = new CustomEvent("outsideClick", {
2874
- detail: {
2875
- composedPath: t.composedPath()
7
+ import { html, nothing } from 'lit';
8
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
9
+ import { property, state } from 'lit/decorators.js';
10
+ import styles from './date-picker.styles';
11
+ import './calendar/calendar';
12
+ import { consume } from '@lit/context';
13
+ import { formInternalsContext } from '../contexts/form-internals-context';
14
+ import { Cre8Field } from '../field/field';
15
+ /**
16
+ * The Date Picker component renders a form group with label, control, help text and validation styling much
17
+ * like the Field component but exclusively for type=date.
18
+ * Cre8DatePicker inherits the Cre8Field component.
19
+ */
20
+ export class Cre8DatePicker extends Cre8Field {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.type = 'date';
24
+ this.showCalendar = false;
25
+ }
26
+ /**
27
+ * Handle Date On Input
28
+ * 1) Set the input's value equal to the event.target.value when the input is changed.
29
+ * 2) Set the internal form value of the input to the updated value
30
+ */
31
+ handleDateOnInput(e) {
32
+ /* 1 */
33
+ this.value = e.target.value;
34
+ /* 2 */
35
+ this._internals.setFormValue(this.value);
36
+ }
37
+ handleCalendarSelect(e) {
38
+ this.value = e.detail.date;
39
+ this._internals.setFormValue(this.value);
40
+ this.showCalendar = false;
41
+ }
42
+ handleOutsideClick(e) {
43
+ const calendarIcon = this.renderRoot.querySelector('.cre8-c-date-picker');
44
+ if (this.showCalendar && !e.detail.composedPath.includes(calendarIcon)) {
45
+ this.showCalendar = false;
2876
46
  }
2877
- });
2878
- this.dispatchEvent(a);
2879
- }
2880
- }
2881
- emitSelectedDate(t) {
2882
- const e = new CustomEvent("dateSelect", {
2883
- detail: {
2884
- date: t
2885
- }
2886
- });
2887
- this.currentDate = /* @__PURE__ */ new Date(`${t}T00:00`), this.dispatchEvent(e);
2888
- }
2889
- changeYear(t) {
2890
- const e = this.currentDate, a = new Date(e.setFullYear(t));
2891
- this.currentDate = a, this.activeModal = "none";
2892
- }
2893
- changeMonth(t) {
2894
- const e = this.currentDate, a = new Date(e.setMonth(t));
2895
- this.currentDate = a, this.activeModal = "none";
2896
- }
2897
- activateModal(t) {
2898
- this.activeModal = t;
2899
- }
2900
- /* Helper/Get Functions */
2901
- static formatMonthOrDayIndex(t) {
2902
- return (t + 1).toString().padStart(2, "0");
2903
- }
2904
- static formatDate(t) {
2905
- return t.toString().padStart(2, "0");
2906
- }
2907
- numberOfDaysinMonth() {
2908
- return new Date(this.getYear(), this.getMonth() + 1, 0).getDate();
2909
- }
2910
- getMonth() {
2911
- return this.currentDate.getMonth();
2912
- }
2913
- getMonthName() {
2914
- return new Intl.DateTimeFormat(this.locale, {
2915
- month: "long"
2916
- }).format(this.currentDate);
2917
- }
2918
- getYear() {
2919
- return this.currentDate.getFullYear();
2920
- }
2921
- static dateToString(t) {
2922
- return `${t.getFullYear()}-${o.formatMonthOrDayIndex(
2923
- t.getMonth()
2924
- )}-${o.formatDate(t.getDate())}`;
2925
- }
2926
- async updateFocusForKeydown(t) {
2927
- this.currentDate = t, await this.updateComplete;
2928
- const e = this.shadowRoot?.querySelector(
2929
- `button[datetime="${o.dateToString(t)}"]`
2930
- );
2931
- e.setAttribute("tabindex", "0"), e.focus();
2932
- }
2933
- _handleCalendarKeyDown(t) {
2934
- const e = this.shadowRoot?.querySelector(
2935
- `button[datetime="${o.dateToString(this.currentDate)}"]`
2936
- );
2937
- if (t.key === "ArrowUp") {
2938
- const a = new Date(
2939
- this.getYear(),
2940
- this.getMonth(),
2941
- this.currentDate.getDate() - 7
2942
- );
2943
- this.updateFocusForKeydown(a), e.setAttribute("tabindex", "-1");
2944
47
  }
2945
- if (t.key === "ArrowDown") {
2946
- const a = new Date(
2947
- this.getYear(),
2948
- this.getMonth(),
2949
- this.currentDate.getDate() + 7
2950
- );
2951
- this.updateFocusForKeydown(a), e.setAttribute("tabindex", "-1");
2952
- }
2953
- if (t.key === "ArrowLeft") {
2954
- const a = new Date(
2955
- this.getYear(),
2956
- this.getMonth(),
2957
- this.currentDate.getDate() - 1
2958
- );
2959
- this.updateFocusForKeydown(a), e.setAttribute("tabindex", "-1");
2960
- }
2961
- if (t.key === "ArrowRight") {
2962
- const a = new Date(
2963
- this.getYear(),
2964
- this.getMonth(),
2965
- this.currentDate.getDate() + 1
2966
- );
2967
- this.updateFocusForKeydown(a), e.setAttribute("tabindex", "-1");
2968
- }
2969
- if (t.key === "Tab" && !t.shiftKey) {
2970
- const a = new CustomEvent("outsideClick", {
2971
- detail: {
2972
- composedPath: []
48
+ toggleCalendar() {
49
+ if (!this.disabled && !this._internals.readonly) {
50
+ this.showCalendar = !this.showCalendar;
2973
51
  }
2974
- });
2975
- setTimeout(() => {
2976
- this.dispatchEvent(a);
2977
- }, 20);
2978
52
  }
2979
- }
2980
- async changeMonthFromNav(t) {
2981
- this.changeMonth(t), await this.updateComplete;
2982
- const a = (this.shadowRoot?.querySelector(
2983
- "cre8-calendar-navigation"
2984
- )).shadowRoot?.querySelector(
2985
- ".cre8-c-calendar-navigation__month-modal-button"
2986
- );
2987
- await this.updateComplete, a.shadowRoot.querySelector("button").focus();
2988
- }
2989
- async changeYearFromNav(t) {
2990
- this.changeYear(t), await this.updateComplete;
2991
- const a = (this.shadowRoot?.querySelector(
2992
- "cre8-calendar-navigation"
2993
- )).shadowRoot?.querySelector(
2994
- ".cre8-c-calendar-navigation__year-modal-button"
2995
- );
2996
- await this.updateComplete, a.shadowRoot.querySelector("button").focus();
2997
- }
2998
- /* Template Map Functions */
2999
- getDaysOfWeekAbbreviations() {
3000
- return this.weekDays.map(
3001
- (t) => s` <td>
3002
- <span aria-label="${t}">${t[0]}</span>
3003
- </td>`
3004
- );
3005
- }
3006
- /**
3007
- * Create array of Day Buttons to fill in excess calendar space at the beginning of the month.
3008
- *
3009
- * 1. Map from empty array of length equal to the amount of access calendar "slots" in the beginning of the month.
3010
- * (i.e. if the month starts on Wednesday (getDay = 3), there are 3 days prior that week from last month.)
3011
- *
3012
- * 2. Based on the indice of array, get the given day button's date, where the date is
3013
- * the last day of last month minus the max of the array plus the indice plus one -> x = lastday - (max - (i + 1))
3014
- * (Note: (max - (i + 1) equals the keys of the array in reverse order:
3015
- * [max - i + 1] -> [3-1, 3-2, 3-3] -> [2,1,0] for an array of [3])
3016
- * (i.e. if the calendar is starting on Wednesday June 1st, the access days on the calendar will be
3017
- * Sunday May 29th (31 - (2)), Monday May 30th (31 - (1)), Tuesday May 31st (31 - (0)))
3018
- *
3019
- * 3. Build out day button with necessary props
3020
- * */
3021
- getPreviousMonthDayButtons() {
3022
- return [
3023
- ...Array(new Date(this.getYear(), this.getMonth(), 1).getDay()).keys()
3024
- ].map((t) => {
3025
- const e = new Date(
3026
- this.getYear(),
3027
- this.getMonth(),
3028
- 1
3029
- ).getDay(), a = new Date(this.getYear(), this.getMonth(), 0), r = a.getDate(), i = new Date(
3030
- a.getFullYear(),
3031
- a.getMonth(),
3032
- r - e + (t + 1)
3033
- ), n = this.dateConfig.today.getDate() === i.getDate() && this.dateConfig.today.getMonth() === i.getMonth() && this.dateConfig.today.getFullYear() === i.getFullYear(), T = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === i.getTime();
3034
- return s` <td>
3035
- <button
3036
- class="cre8-c-calendar__day-button cre8-c-calendar__different-month"
3037
- datetime="${o.dateToString(i)}"
3038
- ?data-today="${n}"
3039
- ?data-selected="${T}"
3040
- tabindex="-1"
3041
- aria-label="${new Intl.DateTimeFormat(this.locale, {
3042
- weekday: "long",
3043
- year: "numeric",
3044
- month: "long",
3045
- day: "numeric"
3046
- }).format(
3047
- /* @__PURE__ */ new Date(`${o.dateToString(i)}T00:00`)
3048
- )}"
3049
- @click="${() => this.emitSelectedDate(o.dateToString(i))}"
3050
- >
3051
- ${new Intl.NumberFormat(this.locale).format(i.getDate())}
3052
- </button>
3053
- </td>`;
3054
- });
3055
- }
3056
- /**
3057
- * Create array of Day Buttons to fill out current month
3058
- *
3059
- * 1. Map from empty array of length equal to the amount days in this month
3060
- *
3061
- * 2. Get the date of the current month based on indice of array (i.e. 0 -> 1st, 1 -> 2nd ...)
3062
- *
3063
- * 3. Build out day button with necessary props
3064
- * */
3065
- getCurrentMonthDayButtons() {
3066
- return [...Array(this.numberOfDaysinMonth()).keys()].map((t) => {
3067
- const e = t + 1, a = new Date(this.getYear(), this.getMonth(), e), r = this.dateConfig.today.getDate() === e && this.dateConfig.today.getMonth() === this.getMonth() && this.dateConfig.today.getFullYear() === this.getYear(), i = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === a.getTime();
3068
- return s` <td>
3069
- <button
3070
- class="cre8-c-calendar__day-button"
3071
- datetime="${o.dateToString(a)}"
3072
- ?data-today="${r}"
3073
- ?data-selected="${i}"
3074
- tabindex="${e === this.currentDate.getDate() ? "0" : "-1"}"
3075
- aria-label="${new Intl.DateTimeFormat(this.locale, {
3076
- weekday: "long",
3077
- year: "numeric",
3078
- month: "long",
3079
- day: "numeric"
3080
- }).format(/* @__PURE__ */ new Date(`${o.dateToString(a)}T00:00`))}"
3081
- @click="${() => this.emitSelectedDate(o.dateToString(a))}"
3082
- >
3083
- ${new Intl.NumberFormat(this.locale).format(t + 1)}
3084
- </button>
3085
- </td>`;
3086
- });
3087
- }
3088
- /**
3089
- * Create array of Day Buttons to fill in excess calendar space at the end of the month.
3090
- *
3091
- * 1. Map from empty array of length equal to the amount of access calendar "slots" at the end of the month.
3092
- * The array have an amount of slots equal to the number of days in a week minus how many days have already past
3093
- * and since getDay returns the index of the day of the week (Sunday = 0, Monday = 1 ...) our equations is
3094
- * x = 7 - (getDay() + 1)
3095
- * Note: (we need to add 1 because indexing starts at 0)
3096
- * so if the month ends on Monday (getDay() = 1), 5 = 7 - (1 + 1), there are 5 days that week from the new month
3097
- *
3098
- * 2. Get the date from the next month based on indice of array (i.e. 0 -> 1st, 1 -> 2nd ...)
3099
- *
3100
- * 3. Build out day button with necessary props
3101
- * */
3102
- getNextMonthDayButtons() {
3103
- return [
3104
- ...Array(
3105
- 6 - new Date(
3106
- this.getYear(),
3107
- this.getMonth(),
3108
- this.numberOfDaysinMonth()
3109
- ).getDay()
3110
- ).keys()
3111
- ].map((t) => {
3112
- const e = new Date(
3113
- this.getYear(),
3114
- this.getMonth(),
3115
- this.numberOfDaysinMonth()
3116
- ), a = new Date(
3117
- e.setDate(e.getDate() + 1)
3118
- ), r = new Date(
3119
- a.getFullYear(),
3120
- a.getMonth(),
3121
- t + 1
3122
- ), i = this.dateConfig.today.getDate() === r.getDate() && this.dateConfig.today.getMonth() === r.getMonth() && this.dateConfig.today.getFullYear() === r.getFullYear(), n = (/* @__PURE__ */ new Date(`${this.fieldDate}T00:00`)).getTime() === r.getTime();
3123
- return s` <td>
3124
- <button
3125
- class="cre8-c-calendar__day-button cre8-c-calendar__different-month"
3126
- datetime="${o.dateToString(r)}"
3127
- ?data-today="${i}"
3128
- ?data-selected="${n}"
3129
- tabindex="-1"
3130
- aria-label="${new Intl.DateTimeFormat(this.locale, {
3131
- weekday: "long",
3132
- year: "numeric",
3133
- month: "long",
3134
- day: "numeric"
3135
- }).format(
3136
- /* @__PURE__ */ new Date(`${o.dateToString(r)}T00:00`)
3137
- )}"
3138
- @click="${() => this.emitSelectedDate(o.dateToString(r))}"
3139
- >
3140
- ${new Intl.NumberFormat(this.locale).format(r.getDate())}
3141
- </button>
3142
- </td>`;
3143
- });
3144
- }
3145
- render() {
3146
- const t = this.componentClassNames("cre8-c-calendar", {});
3147
- return s` <div class="${t}">
3148
- ${this._activeModal === "month" ? s`<cre8-calendar-month-modal
3149
- currentMonth="${this.getMonth()}"
3150
- @changeMonth="${(e) => this.changeMonthFromNav(e.detail.month)}"
3151
- ></cre8-calendar-month-modal>` : f}
3152
- ${this._activeModal === "year" ? s`<cre8-calendar-year-modal
3153
- currentYear="${this.getYear()}"
3154
- @changeYear="${(e) => this.changeYearFromNav(e.detail.year)}"
3155
- ></cre8-calendar-year-modal>` : f}
3156
- ${this._activeModal === "none" ? s` ${this.hasShortcuts ? s`<div class="cre8-c-calendar__header-shortcuts">
3157
- <cre8-button
3158
- text="Today"
3159
- variant="secondary"
3160
- size="sm"
3161
- @click="${() => this.emitSelectedDate(
3162
- o.dateToString(this.dateConfig.today)
3163
- )}"
3164
- ></cre8-button>
3165
- <cre8-button
3166
- text="Tomorrow"
3167
- variant="secondary"
3168
- size="sm"
3169
- @click="${() => this.emitSelectedDate(
3170
- o.dateToString(
3171
- new Date(
3172
- this.dateConfig.today.setDate(
3173
- this.dateConfig.today.getDate() + 1
3174
- )
3175
- )
3176
- )
3177
- )}"
3178
- ></cre8-button>
3179
- <cre8-button
3180
- text="In 2 days"
3181
- variant="secondary"
3182
- size="sm"
3183
- @click="${() => this.emitSelectedDate(
3184
- o.dateToString(
3185
- new Date(
3186
- this.dateConfig.today.setDate(
3187
- this.dateConfig.today.getDate() + 2
3188
- )
3189
- )
3190
- )
3191
- )}"
3192
- ></cre8-button>
3193
- </div>` : f}
3194
- <cre8-calendar-navigation
3195
- monthName="${this.getMonthName()}"
3196
- year="${this.getYear()}"
3197
- @activateModal="${(e) => this.activateModal(e.detail.modal)}"
3198
- @changeMonth="${(e) => this.changeMonth(this.getMonth() + e.detail.addend)}"
3199
- @changeYear="${(e) => this.changeYear(this.getYear() + e.detail.addend)}"
3200
- >
3201
- </cre8-calendar-navigation>
3202
- <table>
3203
- <thead>
3204
- <tr>
3205
- ${this.getDaysOfWeekAbbreviations()}
3206
- </tr>
3207
- </thead>
3208
- <tbody>
3209
- <tr @keydown=${this._handleCalendarKeyDown}>
3210
- ${this.getPreviousMonthDayButtons()}
3211
- ${this.getCurrentMonthDayButtons()}
3212
- ${this.getNextMonthDayButtons()}
3213
- </tr>
3214
- </tbody>
3215
- </table>` : f}
3216
- </div>`;
3217
- }
3218
- }, o.styles = [X], o);
3219
- m([
3220
- R(".cre8-c-calendar__navigation-wrapper")
3221
- ], l.prototype, "_navWrapper", 2);
3222
- m([
3223
- p({ type: Boolean, reflect: !0 })
3224
- ], l.prototype, "hasShortcuts", 2);
3225
- m([
3226
- c()
3227
- ], l.prototype, "_activeModal", 2);
3228
- m([
3229
- p({ reflect: !0, type: String })
3230
- ], l.prototype, "activeModal", 1);
3231
- m([
3232
- c()
3233
- ], l.prototype, "_fieldDate", 2);
3234
- m([
3235
- p({ reflect: !0, type: Date })
3236
- ], l.prototype, "fieldDate", 1);
3237
- m([
3238
- c()
3239
- ], l.prototype, "_currentDate", 2);
3240
- m([
3241
- p({ reflect: !0, type: Date })
3242
- ], l.prototype, "currentDate", 1);
3243
- m([
3244
- c()
3245
- ], l.prototype, "locale", 2);
3246
- m([
3247
- c()
3248
- ], l.prototype, "weekDays", 2);
3249
- m([
3250
- c()
3251
- ], l.prototype, "dateConfig", 2);
3252
- m([
3253
- c()
3254
- ], l.prototype, "dateFormatOptions", 2);
3255
- let G = l;
3256
- customElements.get("cre8-calendar") === void 0 && customElements.define("cre8-calendar", G);
3257
- var K = Object.defineProperty, z = (d, t, e, a) => {
3258
- for (var r = void 0, i = d.length - 1, n; i >= 0; i--)
3259
- (n = d[i]) && (r = n(t, e, r) || r);
3260
- return r && K(t, e, r), r;
3261
- };
3262
- const $ = class $ extends F {
3263
- constructor() {
3264
- super(...arguments), this.type = "date", this.showCalendar = !1;
3265
- }
3266
- /**
3267
- * Handle Date On Input
3268
- * 1) Set the input's value equal to the event.target.value when the input is changed.
3269
- * 2) Set the internal form value of the input to the updated value
3270
- */
3271
- handleDateOnInput(t) {
3272
- this.value = t.target.value, this._internals.setFormValue(this.value);
3273
- }
3274
- handleCalendarSelect(t) {
3275
- this.value = t.detail.date, this._internals.setFormValue(this.value), this.showCalendar = !1;
3276
- }
3277
- handleOutsideClick(t) {
3278
- const e = this.renderRoot.querySelector(".cre8-c-date-picker");
3279
- this.showCalendar && !t.detail.composedPath.includes(e) && (this.showCalendar = !1);
3280
- }
3281
- toggleCalendar() {
3282
- !this.disabled && !this._internals.readonly && (this.showCalendar = !this.showCalendar);
3283
- }
3284
- render() {
3285
- const t = this.componentClassNames("cre8-c-date-picker", {
3286
- "cre8-is-error": this.isError,
3287
- "cre8-is-success": this.isSuccess,
3288
- "cre8-c-date-picker--disabled": this.disabled,
3289
- "cre8-c-date-picker--read-only": this._internals.readonly
3290
- });
3291
- return this.type = "date", s`
3292
- <div class="${t}">
53
+ render() {
54
+ const componentClassNames = this.componentClassNames('cre8-c-date-picker', {
55
+ 'cre8-is-error': this.isError,
56
+ 'cre8-is-success': this.isSuccess,
57
+ 'cre8-c-date-picker--disabled': this.disabled,
58
+ 'cre8-c-date-picker--read-only': this._internals.readonly,
59
+ });
60
+ this.type = 'date';
61
+ return html `
62
+ <div class="${componentClassNames}">
3293
63
  <label class="cre8-c-date-picker__label" for="${this.fieldId}"
3294
64
  >${this.label}</label
3295
65
  >
3296
66
  <div class="cre8-c-date-picker__body">
3297
67
  <input
3298
68
  class="cre8-c-date-picker__input"
3299
- autocomplete=${g(this._internals.autocomplete)}
69
+ autocomplete=${ifDefined(this._internals.autocomplete)}
3300
70
  type="${this.type}"
3301
71
  id="${this.id}"
3302
- name="${g(this.name)}"
3303
- max=${g(this._internals.max)}
3304
- min=${g(this._internals.min)}
3305
- value="${g(this.value)}"
72
+ name="${ifDefined(this.name)}"
73
+ max=${ifDefined(this._internals.max)}
74
+ min=${ifDefined(this._internals.min)}
75
+ value="${ifDefined(this.value)}"
3306
76
  ?readonly=${this._internals.readonly}
3307
77
  ?required=${this.required}
3308
78
  ?disabled="${this.disabled}"
3309
- placeholder="${g(this._internals.placeholder)}"
79
+ placeholder="${ifDefined(this._internals.placeholder)}"
3310
80
  @input=${this.handleDateOnInput}
3311
81
  @click=${this.toggleCalendar}
3312
82
  />
@@ -3315,44 +85,51 @@ const $ = class $ extends F {
3315
85
  aria-expanded="${this.showCalendar}"
3316
86
  aria-label="Show Calendar"
3317
87
  ?disabled="${this.disabled || this.readonly}"
3318
- ?hideText=${!0}
88
+ ?hideText=${true}
3319
89
  iconName="calendar-datepicker"
3320
90
  variant="tertiary"
3321
91
  @click="${this.toggleCalendar}"
3322
92
  ></cre8-button>
3323
93
  </div>
3324
- ${this.showCalendar ? s`<cre8-calendar
3325
- fieldDate="${g(this.value)}"
94
+ ${this.showCalendar
95
+ ? html `<cre8-calendar
96
+ fieldDate="${ifDefined(this.value)}"
3326
97
  ?hasShortcuts=${this.hasShortcuts}
3327
98
  @dateSelect="${this.handleCalendarSelect}"
3328
99
  @outsideClick="${this.handleOutsideClick}"
3329
- ></cre8-calendar>` : f}
3330
- ${this.fieldNote || this.slotNotEmpty("fieldNote") ? s`<cre8-field-note
100
+ ></cre8-calendar>`
101
+ : nothing}
102
+ ${this.fieldNote || this.slotNotEmpty('fieldNote')
103
+ ? html `<cre8-field-note
3331
104
  id=${this.ariaDescribedBy}
3332
105
  class="cre8-c-date-picker__field-note"
3333
106
  ><slot name="fieldNote">${this.fieldNote}</slot></cre8-field-note
3334
- >` : f}
107
+ >`
108
+ : nothing}
3335
109
  ${this.renderSuccessErrorFieldNote()}
3336
110
  </div>
3337
111
  `;
3338
- }
3339
- };
3340
- $.styles = [N];
3341
- let u = $;
3342
- z([
3343
- S({ context: Y })
3344
- ], u.prototype, "_internals");
3345
- z([
3346
- c()
3347
- ], u.prototype, "showCalendar");
3348
- z([
3349
- p({ type: Boolean, reflect: !0 })
3350
- ], u.prototype, "hasShortcuts");
3351
- z([
3352
- p()
3353
- ], u.prototype, "label");
3354
- customElements.get("cre8-date-picker") === void 0 && customElements.define("cre8-date-picker", u);
3355
- export {
3356
- u as Cre8DatePicker,
3357
- u as default
3358
- };
112
+ }
113
+ }
114
+ /**
115
+ * The type of the form field.
116
+ * For Date Picker, this is always 'date'.
117
+ */
118
+ Cre8DatePicker.styles = [styles];
119
+ __decorate([
120
+ consume({ context: formInternalsContext })
121
+ ], Cre8DatePicker.prototype, "_internals", void 0);
122
+ __decorate([
123
+ state()
124
+ ], Cre8DatePicker.prototype, "showCalendar", void 0);
125
+ __decorate([
126
+ property({ type: Boolean, reflect: true })
127
+ ], Cre8DatePicker.prototype, "hasShortcuts", void 0);
128
+ __decorate([
129
+ property()
130
+ ], Cre8DatePicker.prototype, "label", void 0);
131
+ if (customElements.get('cre8-date-picker') === undefined) {
132
+ customElements.define('cre8-date-picker', Cre8DatePicker);
133
+ }
134
+ export default Cre8DatePicker;
135
+ //# sourceMappingURL=date-picker.js.map