@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,1008 +1,269 @@
1
- import { ifDefined as g } from "lit-html/directives/if-defined.js";
2
- import { css as b, html as d, nothing as n } from "lit";
3
- import { property as o, state as h } from "lit/decorators.js";
4
- import { nanoid as m } from "nanoid";
5
- import { Cre8Element as f } from "../cre8-element.js";
6
- import "../remove-tag/remove-tag.js";
7
- import "../field-note/field-note.js";
8
- import "../button/button.js";
9
- import "../checkbox-field-item/checkbox-field-item.js";
10
- const y = b`.cre8-u-content-knockout-brand {
11
- color: var(----cre8-color-content-knockout-brand);
12
- }
13
-
14
- .cre8-u-is-hidden {
15
- display: none !important;
16
- visibility: hidden !important;
17
- }
18
-
19
- .cre8-u-is-vishidden {
20
- position: absolute !important;
21
- overflow: hidden;
22
- width: 1px;
23
- height: 1px;
24
- padding: 0;
25
- border: 0;
26
- clip: rect(1px, 1px, 1px, 1px);
27
- }
28
-
29
- @media all and (min-width: 23.4375rem) {
30
- .cre8-u-hide-sm {
31
- display: none !important;
32
- }
33
- }
34
- @media all and (min-width: 35rem) {
35
- .cre8-u-hide-sm-2 {
36
- display: none !important;
37
- }
38
- }
39
- @media all and (min-width: 48rem) {
40
- .cre8-u-hide-md {
41
- display: none !important;
42
- }
43
- }
44
- @media all and (min-width: 60rem) {
45
- .cre8-u-hide-lg {
46
- display: none !important;
47
- }
48
- }
49
- @media all and (min-width: 75rem) {
50
- .cre8-u-hide-xl {
51
- display: none !important;
52
- }
53
- }
54
- @media all and (max-width: 23.4375rem) {
55
- .cre8-u-show-sm {
56
- display: none !important;
57
- }
58
- }
59
- @media all and (max-width: 35rem) {
60
- .cre8-u-show-sm-2 {
61
- display: none !important;
62
- }
63
- }
64
- @media all and (max-width: 48rem) {
65
- .cre8-u-show-md {
66
- display: none !important;
67
- }
68
- }
69
- @media all and (max-width: 60rem) {
70
- .cre8-u-show-lg {
71
- display: none !important;
72
- }
73
- }
74
- @media all and (max-width: 75rem) {
75
- .cre8-u-show-xl {
76
- display: none !important;
77
- }
78
- }
79
- .cre8-u-margin-none {
80
- margin: 0 !important;
81
- }
82
-
83
- .cre8-u-margin-sm {
84
- margin: size(1) !important;
85
- }
86
-
87
- .cre8-u-margin-md {
88
- margin: size(2) !important;
89
- }
90
-
91
- .cre8-u-margin-lg {
92
- margin: size(3) !important;
93
- }
94
-
95
- .cre8-u-margin-xl {
96
- margin: size(4) !important;
97
- }
98
-
99
- .cre8-u-margin-xxl {
100
- margin: size(8) !important;
101
- }
102
-
103
- .cre8-u-margin-top-none {
104
- margin-top: 0 !important;
105
- }
106
-
107
- .cre8-u-margin-top-sm {
108
- margin-top: size(1) !important;
109
- }
110
-
111
- .cre8-u-margin-top-md {
112
- margin-top: size(2) !important;
113
- }
114
-
115
- .cre8-u-margin-top-lg {
116
- margin-top: size(3) !important;
117
- }
118
-
119
- .cre8-u-margin-top-xl {
120
- margin-top: size(4) !important;
121
- }
122
-
123
- .cre8-u-margin-top-xxl {
124
- margin-top: size(8) !important;
125
- }
126
-
127
- .cre8-u-margin-right-none {
128
- margin-right: 0 !important;
129
- }
130
-
131
- .cre8-u-margin-right-sm {
132
- margin-right: size(1) !important;
133
- }
134
-
135
- .cre8-u-margin-right-md {
136
- margin-right: size(2) !important;
137
- }
138
-
139
- .cre8-u-margin-right-lg {
140
- margin-right: size(3) !important;
141
- }
142
-
143
- .cre8-u-margin-right-xl {
144
- margin-right: size(4) !important;
145
- }
146
-
147
- .cre8-u-margin-right-xxl {
148
- margin-right: size(8) !important;
149
- }
150
-
151
- .cre8-u-margin-bottom-none {
152
- margin-bottom: 0 !important;
153
- }
154
-
155
- .cre8-u-margin-bottom-sm {
156
- margin-bottom: size(1) !important;
157
- }
158
-
159
- .cre8-u-margin-bottom-md {
160
- margin-bottom: size(2) !important;
161
- }
162
-
163
- .cre8-u-margin-bottom-lg {
164
- margin-bottom: size(3) !important;
165
- }
166
-
167
- .cre8-u-margin-bottom-xl {
168
- margin-bottom: size(4) !important;
169
- }
170
-
171
- .cre8-u-margin-bottom-xxl {
172
- margin-bottom: size(8) !important;
173
- }
174
-
175
- .cre8-u-margin-bottom-xl-xxl {
176
- margin-bottom: size(4) !important;
177
- }
178
-
179
- @media all and (min-width: 768px) {
180
- .cre8-u-margin-bottom-xl-xxl {
181
- margin-bottom: size(8) !important;
182
- }
183
- }
184
- .cre8-u-margin-left-none {
185
- margin-left: 0 !important;
186
- }
187
-
188
- .cre8-u-margin-left-sm {
189
- margin-left: size(1) !important;
190
- }
191
-
192
- .cre8-u-margin-left-md {
193
- margin-left: size(2) !important;
194
- }
195
-
196
- .cre8-u-margin-left-lg {
197
- margin-left: size(3) !important;
198
- }
199
-
200
- .cre8-u-margin-left-xl {
201
- margin-left: size(4) !important;
202
- }
203
-
204
- .cre8-u-margin-left-xxl {
205
- margin-left: size(8) !important;
206
- }
207
-
208
- .cre8-u-padding-none {
209
- padding: 0 !important;
210
- }
211
-
212
- .cre8-u-padding-sm {
213
- padding: size(1) !important;
214
- }
215
-
216
- .cre8-u-padding-md {
217
- padding: size(2) !important;
218
- }
219
-
220
- .cre8-u-padding-lg {
221
- padding: size(3) !important;
222
- }
223
-
224
- .cre8-u-padding-xl {
225
- padding: size(4) !important;
226
- }
227
-
228
- .cre8-u-padding-xxl {
229
- padding: size(8) !important;
230
- }
231
-
232
- .cre8-u-padding-top-none {
233
- padding-top: 0 !important;
234
- }
235
-
236
- .cre8-u-padding-top-sm {
237
- padding-top: size(1) !important;
238
- }
239
-
240
- .cre8-u-padding-top-md {
241
- padding-top: size(2) !important;
242
- }
243
-
244
- .cre8-u-padding-top-lg {
245
- padding-top: size(3) !important;
246
- }
247
-
248
- .cre8-u-padding-top-xl {
249
- padding-top: size(4) !important;
250
- }
251
-
252
- .cre8-u-padding-top-xxl {
253
- padding-top: size(8) !important;
254
- }
255
-
256
- .cre8-u-padding-right-none {
257
- padding-right: 0 !important;
258
- }
259
-
260
- .cre8-u-padding-right-sm {
261
- padding-right: size(1) !important;
262
- }
263
-
264
- .cre8-u-padding-right-md {
265
- padding-right: size(2) !important;
266
- }
267
-
268
- .cre8-u-padding-right-lg {
269
- padding-right: size(3) !important;
270
- }
271
-
272
- .cre8-u-padding-right-xl {
273
- padding-right: size(4) !important;
274
- }
275
-
276
- .cre8-u-padding-right-xxl {
277
- padding-right: size(8) !important;
278
- }
279
-
280
- .cre8-u-padding-bottom-none {
281
- padding-bottom: 0 !important;
282
- }
283
-
284
- .cre8-u-padding-bottom-sm {
285
- padding-bottom: size(1) !important;
286
- }
287
-
288
- .cre8-u-padding-bottom-md {
289
- padding-bottom: size(2) !important;
290
- }
291
-
292
- .cre8-u-padding-bottom-lg {
293
- padding-bottom: size(3) !important;
294
- }
295
-
296
- .cre8-u-padding-bottom-xl {
297
- padding-bottom: size(4) !important;
298
- }
299
-
300
- .cre8-u-padding-bottom-xxl {
301
- padding-bottom: size(8) !important;
302
- }
303
-
304
- .cre8-u-padding-left-none {
305
- padding-left: 0 !important;
306
- }
307
-
308
- .cre8-u-padding-left-sm {
309
- padding-left: size(1) !important;
310
- }
311
-
312
- .cre8-u-padding-left-md {
313
- padding-left: size(2) !important;
314
- }
315
-
316
- .cre8-u-padding-left-lg {
317
- padding-left: size(3) !important;
318
- }
319
-
320
- .cre8-u-padding-left-xl {
321
- padding-left: size(4) !important;
322
- }
323
-
324
- .cre8-u-padding-left-xxl {
325
- padding-left: size(8) !important;
326
- }
327
-
328
- .cre8-u-display-flex {
329
- display: flex !important;
330
- }
331
-
332
- .cre8-u-display-block {
333
- display: block !important;
334
- }
335
-
336
- body {
337
- font-family: var(--cre8-typography-body-default-font-family);
338
- font-size: var(--cre8-typography-body-default-font-size);
339
- font-weight: var(--cre8-typography-body-default-font-weight);
340
- line-height: var(--cre8-typography-body-default-line-height);
341
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
342
- text-decoration: var(--cre8-typography-body-default-text-decoration);
343
- text-transform: var(--cre8-typography-body-default-text-transform);
344
- display: flex;
345
- flex-direction: column;
346
- padding: 0;
347
- margin: 0;
348
- color: var(--cre8-color-content-default);
349
- background: var(--background-default);
350
- }
351
-
352
- @media all and (min-width: 60rem) {
353
- .page-container {
354
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
355
- }
356
- }
357
- .band__inner {
358
- margin-left: 2rem;
359
- margin-right: 2rem;
360
- }
361
-
362
- @media all and (min-width: 60rem) {
363
- .band__inner {
364
- margin-right: 0;
365
- }
366
- }
367
- img {
368
- max-width: 100%;
369
- height: auto;
370
- }
371
-
372
- /**
373
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
374
- */
375
- *,
376
- ::slotted(*),
377
- *:before,
378
- *:after {
379
- box-sizing: border-box;
380
- }
381
-
382
- :root {
383
- --size-base-unit: 0.5rem;
384
- }
385
-
386
- /**
387
- * RTL support for values logical properties can't automatically adjust for
388
- * 1) Percentage based horizontal translate values need to be flipped
389
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
390
- * 3) Inverse items that have 45degs
391
- */
392
- [dir=rtl] {
393
- --rtlTranslateX: 50%;
394
- /* 1 */
395
- --rtlGradientToRight: 270deg;
396
- /* 2 */
397
- --rtlRotate45Inverse: -45deg;
398
- /* 3 */
399
- }
400
-
401
- /**
402
- * Visible focus outline for elements on a light background
403
- */
404
- /**
405
- * Visible focus outline for elements with an error status
406
- */
407
- /**
408
- * Visible focus outline for elements on a dark background
409
- */
410
- /**
411
- * Focus state for themes that need a dashed outline for focus
412
- * state
413
- **/
414
- /**
415
- * Invisible focus outline for elements that need a more visible
416
- * focus state for high-contrast mode
417
- */
1
+ /* eslint-disable import/no-duplicates */
2
+ /* eslint-disable no-duplicate-imports */
3
+ /* eslint-disable lit/no-template-arrow */
4
+ /* eslint-disable indent */
5
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8
+ 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;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
12
+ import { html, nothing, } from 'lit';
13
+ import { property, state } from 'lit/decorators.js';
14
+ import { nanoid } from 'nanoid';
15
+ import svgCaretDown from '@tmorrow/cre8-wc/icons/System/Regular/Caret_Down.svg?raw';
16
+ import svgClear from '@tmorrow/cre8-wc/icons/System/Regular/Clear_X.svg?raw';
17
+ import styles from './multi-select.styles.js';
18
+ import { Cre8Element } from '../cre8-element';
19
+ import '../remove-tag/remove-tag';
20
+ import '../field-note/field-note';
21
+ import '../button/button';
22
+ import '../checkbox-field-item/checkbox-field-item';
418
23
  /**
419
- * Visually hidden from display
24
+ * Multiselect is used when multiple options can be chosen from a static dropdown
25
+ * This component has a list of items in the dropdown that can be added as "selected tags"
26
+ * The checkbox will always reflect the selected nature of the item and is not removed
27
+ * from the dropdown when clicked, the tags will be added and removed based on their state.
28
+ *
29
+ * Event `selectedItemsChange` emits whenever a tag is added or remove from the list and the
30
+ * current list after the change is given in the detail.
420
31
  */
421
- /*
422
- =======
423
- Animations
424
- =======
425
- */
426
- :host {
427
- --cre8-z-index-1: 1;
428
- --cre8-z-index-50: 50;
429
- --cre8-z-index-100: 100;
430
- --cre8-z-index-200: 200;
431
- --cre8-z-index-1030: 1030;
432
- --cre8-anim-fade-quick: 0.35s;
433
- --cre8-anim-ease: ease;
434
- }
435
-
436
- @keyframes fadeIn {
437
- 100% {
438
- opacity: 1;
439
- }
440
- }
441
- @keyframes slideIn {
442
- 100% {
443
- transform: translateX(0);
444
- }
445
- }
446
- @keyframes slideInFwd {
447
- 100% {
448
- width: 272px;
449
- height: 272px;
450
- }
451
- }
452
- @keyframes slideOutRight {
453
- 100% {
454
- width: 272px;
455
- height: 272px;
456
- }
457
- }
458
- @keyframes slideUp {
459
- 100% {
460
- transform: translateY(0);
461
- }
462
- }
463
- @media (width >= 481px) {
464
- @keyframes slideInFwd {
465
- 100% {
466
- width: 417px;
467
- height: 417px;
32
+ export class Cre8MultiSelect extends Cre8Element {
33
+ /* Life Cycle Methods */
34
+ constructor() {
35
+ super();
36
+ /**
37
+ * The list of string items the user can choose in the dropdown
38
+ *
39
+ * Note: For passing props containing arrays and complex types, you should pass the props using a
40
+ * period in from of the prop like so: `.items="[]"`
41
+ * (this is only needed for Web Components and not the React version)
42
+ * @attr {string[]}
43
+ */
44
+ this.items = [];
45
+ this.selectedTagItems = [];
46
+ this.dropdownOpen = false;
47
+ this._handleOnClick = this._handleOnClick.bind(this);
468
48
  }
469
- }
470
- @keyframes slideOutRight {
471
- 100% {
472
- width: 417px;
473
- height: 417px;
49
+ firstUpdated() {
50
+ if (this.preselectedItems)
51
+ this.setPreselectedItemsinDropdown();
52
+ this.selectedTagItems = this.preselectedItems || [];
53
+ this._initializeAria();
474
54
  }
475
- }
476
- }
477
- @media (width >= 48rem) {
478
- @keyframes slideInFwd {
479
- 100% {
480
- width: 330px;
481
- height: 330px;
482
- }
483
- }
484
- @keyframes slideOutRight {
485
- 100% {
486
- width: 330px;
487
- height: 330px;
488
- transform: translateX(calc(100vw - 45px));
489
- }
490
- }
491
- }
492
- @media (width >= 60rem) {
493
- @keyframes slideInFwd {
494
- 100% {
495
- width: 460px;
496
- height: 460px;
497
- }
498
- }
499
- @keyframes slideOutRight {
500
- 100% {
501
- width: 460px;
502
- height: 460px;
503
- transform: translateX(calc(100vw - 45px));
55
+ connectedCallback() {
56
+ super.connectedCallback();
57
+ window.addEventListener('click', this._handleOnClick, false);
504
58
  }
505
- }
506
- }
507
- @media (width >= 75rem) {
508
- @keyframes slideInFwd {
509
- 100% {
510
- width: 592px;
511
- height: 591px;
59
+ disconnectedCallback() {
60
+ super.disconnectedCallback();
61
+ window.removeEventListener('click', this._handleOnClick, false);
512
62
  }
513
- }
514
- @keyframes slideOutRight {
515
- 100% {
516
- width: 592px;
517
- height: 591px;
518
- transform: translateX(calc(100vw - 45px));
519
- }
520
- }
521
- }
522
- @media (width >= 87.5rem) {
523
- @keyframes slideOutRight {
524
- 100% {
525
- width: 592px;
526
- height: 591px;
527
- transform: translateX(calc(100vw - 120px));
528
- }
529
- }
530
- }
531
- @media (width >= 2200px) {
532
- @keyframes slideOutRight {
533
- 100% {
534
- width: 592px;
535
- height: 591px;
536
- transform: translateX(calc(100vw - 592px));
537
- }
538
- }
539
- }
540
- span.ripple {
541
- position: absolute;
542
- border-radius: 50%;
543
- transform: scale(0);
544
- animation: ripple 600ms linear;
545
- background-color: var(--ripple-bg-color);
546
- }
547
-
548
- @keyframes ripple {
549
- to {
550
- transform: scale(4);
551
- opacity: 1;
552
- }
553
- }
554
- :root {
555
- --size-base-unit: 0.5rem;
556
- }
557
-
558
- /**
559
- * RTL support for values logical properties can't automatically adjust for
560
- * 1) Percentage based horizontal translate values need to be flipped
561
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
562
- * 3) Inverse items that have 45degs
563
- */
564
- [dir=rtl] {
565
- --rtlTranslateX: 50%;
566
- /* 1 */
567
- --rtlGradientToRight: 270deg;
568
- /* 2 */
569
- --rtlRotate45Inverse: -45deg;
570
- /* 3 */
571
- }
572
-
573
- /**
574
- * Visible focus outline for elements on a light background
575
- */
576
- /**
577
- * Visible focus outline for elements with an error status
578
- */
579
- /**
580
- * Visible focus outline for elements on a dark background
581
- */
582
- /**
583
- * Focus state for themes that need a dashed outline for focus
584
- * state
585
- **/
586
- /**
587
- * Invisible focus outline for elements that need a more visible
588
- * focus state for high-contrast mode
589
- */
590
- /**
591
- * Visually hidden from display
592
- */
593
- :host {
594
- display: block;
595
- }
596
-
597
- .cre8-c-multi-select {
598
- position: relative;
599
- }
600
-
601
- /**
602
- * Label
603
- */
604
- .cre8-c-multi-select__label {
605
- font-family: var(--cre8-typography-label-small-font-family);
606
- font-size: var(--cre8-typography-label-small-font-size);
607
- font-weight: var(--cre8-typography-label-small-font-weight);
608
- line-height: var(--cre8-typography-label-small-line-height);
609
- text-decoration: var(--cre8-typography-label-small-text-decoration);
610
- text-transform: var(--cre8-typography-label-small-text-transform);
611
- display: block;
612
- margin-bottom: 0.5rem;
613
- margin-left: var(--cre8-input-label-margin-left, 0px);
614
- }
615
-
616
- /**
617
- * Body
618
- * 1) The div that contains the input and icons
619
- */
620
- .cre8-c-multi-select__body {
621
- display: flex;
622
- align-items: center;
623
- justify-content: space-between;
624
- position: relative;
625
- font-family: var(--cre8-typography-body-default-font-family);
626
- font-size: var(--cre8-typography-body-default-font-size);
627
- font-weight: var(--cre8-typography-body-default-font-weight);
628
- line-height: var(--cre8-typography-body-default-line-height);
629
- text-decoration: var(--cre8-typography-body-default-text-decoration);
630
- text-transform: var(--cre8-typography-body-default-text-transform);
631
- outline: var(--cre8-border-width-focus) solid transparent;
632
- outline-offset: 0.125rem;
633
- --size-base-unit: .5rem;
634
- -webkit-appearance: none;
635
- width: 100%;
636
- border-width: var(--cre8-border-width-default);
637
- border-style: solid;
638
- border-color: var(--cre8-color-border-strong);
639
- border-radius: var(--cre8-border-radius-default);
640
- padding: var(--cre8-input-padding, 0.75rem 0.5rem);
641
- color: var(--cre8-color-content-default);
642
- background-color: var(--cre8-color-bg-default);
643
- 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);
644
- /**
645
- * Hover, focus, active, and focus-visible styles for default input elements
646
- */
647
- }
648
- .cre8-c-multi-select__body:hover:not(:disabled), .cre8-c-multi-select__body:focus:not(:disabled), .cre8-c-multi-select__body:active:not(:disabled), .cre8-c-multi-select__body:focus-visible {
649
- outline: var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);
650
- outline-offset: 0.125rem;
651
- /**
652
- * Error state
653
- */
654
- }
655
- .cre8-is-error .cre8-c-multi-select__body:hover:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:focus:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:active:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:focus-visible {
656
- outline-color: var(--cre8-color-border-error);
657
- }
658
- .cre8-c-multi-select__body:hover:not(:disabled), .cre8-c-multi-select__body:focus:not(:disabled), .cre8-c-multi-select__body:active:not(:disabled), .cre8-c-multi-select__body:focus-visible {
659
- /**
660
- * Success state
661
- */
662
- }
663
- .cre8-is-success .cre8-c-multi-select__body:hover:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:focus:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:active:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:focus-visible {
664
- outline-color: var(--cre8-color-border-success);
665
- }
666
- .cre8-c-multi-select__body {
667
- /**
668
- * Disabled styles for default input elements
669
- */
670
- }
671
- .cre8-c-multi-select__body:disabled {
672
- background-color: var(--cre8-color-bg-disabled);
673
- border-color: var(--cre8-color-border-disabled);
674
- color: var(--cre8-color-content-disabled);
675
- cursor: not-allowed;
676
- /**
677
- * Disabled text colors
678
- */
679
- }
680
- .cre8-c-multi-select__body:disabled::placeholder {
681
- color: var(--cre8-color-content-disabled);
682
- }
683
- .cre8-c-multi-select__body {
684
- /**
685
- * Placeholder styles for default input elements
686
- */
687
- }
688
- .cre8-c-multi-select__body::placeholder {
689
- color: var(--cre8-color-content-subtle);
690
- }
691
- .cre8-c-multi-select__body {
692
- /**
693
- * Error state for default input elements
694
- */
695
- }
696
- .cre8-is-error .cre8-c-multi-select__body {
697
- border-color: var(--cre8-color-border-error);
698
- }
699
- .cre8-c-multi-select__body {
700
- /**
701
- * Success state for default input elements
702
- */
703
- }
704
- .cre8-is-success .cre8-c-multi-select__body {
705
- border-color: var(--cre8-color-border-success);
706
- }
707
- .cre8-c-multi-select__body {
708
- padding: var(--cre8-spacing-8);
709
- padding-inline-end: 2.75rem;
710
- min-width: 240px;
711
- cursor: pointer;
712
- min-height: 3rem;
713
- height: fit-content;
714
- }
715
- .cre8-is-disabled .cre8-c-multi-select__body {
716
- box-shadow: none;
717
- background-color: var(--cre8-color-bg-disabled);
718
- border-color: var(--cre8-color-border-disabled);
719
- cursor: not-allowed;
720
- outline: none;
721
- }
722
- .cre8-is-disabled .cre8-c-multi-select__body:hover, .cre8-is-disabled .cre8-c-multi-select__body:focus, .cre8-is-disabled .cre8-c-multi-select__body:active, .cre8-is-disabled .cre8-c-multi-select__body:focus-visible {
723
- outline: none;
724
- background-color: var(--cre8-color-bg-disabled);
725
- border-color: var(--cre8-color-border-disabled);
726
- color: var(--cre8-color-content-disabled);
727
- }
728
- .cre8-is-disabled .cre8-c-multi-select__body .cre8-c-multi-select__content {
729
- border-color: var(--cre8-color-border-disabled);
730
- }
731
-
732
- .cre8-c-multi-select__content {
733
- display: flex;
734
- min-height: 30px;
735
- width: 100%;
736
- border-right: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
737
- padding-right: 2.75rem;
738
- }
739
-
740
- .cre8-c-multi-select__tag-wrapper {
741
- list-style-type: none;
742
- margin: 0;
743
- padding: 0;
744
- display: flex;
745
- flex-wrap: wrap;
746
- height: 100%;
747
- gap: 0.25rem;
748
- }
749
-
750
- .cre8-c-multi-select__icons-wrapper {
751
- display: flex;
752
- justify-content: end;
753
- margin-right: -36px;
754
- margin-left: -48px;
755
- gap: 1.5rem;
756
- min-width: 96px;
757
- }
758
- .cre8-c-multi-select__icons-wrapper button {
759
- background-color: inherit;
760
- border: none;
761
- padding: none;
762
- }
763
- .cre8-is-disabled .cre8-c-multi-select__icons-wrapper button {
764
- cursor: not-allowed;
765
- }
766
-
767
- .cre8-c-multi-select--no-clear-icon .cre8-c-multi-select__clear_icon {
768
- display: none;
769
- }
770
-
771
- /**
772
- * Select Icon
773
- * 1) The icons within the body container positioned absolutely over the input
774
- */
775
- cre8-icon {
776
- display: flex;
777
- pointer-events: none;
778
- color: var(--cre8-color-button-tertiary-content);
779
- }
780
- .cre8-is-disabled cre8-icon {
781
- color: var(--cre8-color-border-disabled);
782
- }
783
-
784
- .cre8-c-multi-select__dropdown {
785
- background-color: var(--cre8-color-bg-default);
786
- border: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
787
- box-shadow: var(--cre8-shadow-default);
788
- border-radius: var(--cre8-border-radius-container) var(--cre8-border-radius-container);
789
- flex-direction: column;
790
- left: 0;
791
- min-width: 100%;
792
- position: absolute;
793
- top: 100%;
794
- white-space: nowrap;
795
- margin-top: var(--cre8-spacing-4);
796
- margin-left: 0;
797
- padding: var(--cre8-spacing-8);
798
- }
799
- .cre8-c-multi-select__dropdown ul {
800
- list-style-type: none;
801
- padding: 0;
802
- margin: 0;
803
- }
804
- .cre8-c-multi-select__dropdown li {
805
- font-family: var(--cre8-typography-body-default-font-family);
806
- font-size: var(--cre8-typography-body-default-font-size);
807
- font-weight: var(--cre8-typography-body-default-font-weight);
808
- line-height: var(--cre8-typography-body-default-line-height);
809
- text-decoration: var(--cre8-typography-body-default-text-decoration);
810
- text-transform: var(--cre8-typography-body-default-text-transform);
811
- background-color: var(--cre8-color-bg-default);
812
- border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-transparent);
813
- border-radius: var(--cre8-border-radius-none);
814
- color: var(--cre8-color-content-default);
815
- width: 100%;
816
- cursor: pointer;
817
- margin: var(--cre8-spacing-0);
818
- padding: var(--cre8-spacing-8) var(--cre8-spacing-8);
819
- text-align: left;
820
- }
821
- .cre8-c-multi-select__dropdown li:active, .cre8-c-multi-select__dropdown li:hover, .cre8-c-multi-select__dropdown li:focus {
822
- background-color: var(--cre8-color-bg-brand-hover);
823
- color: var(--cre8-color-content-default);
824
- outline: var(--cre8-border-width-none);
825
- border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-active-outline);
826
- }
827
-
828
- /**
829
- * Select field notes
830
- */
831
- .cre8-c-multi-select__field-note,
832
- .cre8-c-multi-select__field-note-success,
833
- .cre8-c-multi-select__field-note-error {
834
- flex-basis: 100%;
835
- }`;
836
- var v = Object.defineProperty, i = (u, e, r, s) => {
837
- for (var a = void 0, l = u.length - 1, c; l >= 0; l--)
838
- (c = u[l]) && (a = c(e, r, a) || a);
839
- return a && v(e, r, a), a;
840
- };
841
- const w = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
842
- <path d="M15.7869 4.87827L8.51452 12.1506C8.44698 12.2182 8.36677 12.2719 8.27849 12.3085C8.1902 12.3451 8.09557 12.3639 8 12.3639C7.90443 12.3639 7.8098 12.3451 7.72151 12.3085C7.63323 12.2719 7.55302 12.2182 7.48548 12.1506L0.213121 4.87827C0.0766618 4.74181 0 4.55673 0 4.36375C0 4.17077 0.0766618 3.98569 0.213121 3.84923C0.34958 3.71277 0.534658 3.63611 0.72764 3.63611C0.920622 3.63611 1.1057 3.71277 1.24216 3.84923L8 10.608L14.7578 3.84923C14.8254 3.78166 14.9056 3.72806 14.9939 3.6915C15.0822 3.65493 15.1768 3.63611 15.2724 3.63611C15.3679 3.63611 15.4625 3.65493 15.5508 3.6915C15.6391 3.72806 15.7193 3.78166 15.7869 3.84923C15.8544 3.9168 15.908 3.99701 15.9446 4.08529C15.9812 4.17357 16 4.26819 16 4.36375C16 4.4593 15.9812 4.55392 15.9446 4.6422C15.908 4.73049 15.8544 4.8107 15.7869 4.87827Z"/>
843
- </svg>
844
- `, _ = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
845
- <path d="M10.8969 5.97385L8.87 8L10.8969 10.0262C10.9541 10.0833 10.9995 10.1512 11.0304 10.2259C11.0613 10.3006 11.0773 10.3807 11.0773 10.4615C11.0773 10.5424 11.0613 10.6225 11.0304 10.6972C10.9995 10.7719 10.9541 10.8397 10.8969 10.8969C10.8397 10.9541 10.7719 10.9994 10.6972 11.0304C10.6225 11.0613 10.5424 11.0773 10.4615 11.0773C10.3807 11.0773 10.3006 11.0613 10.2259 11.0304C10.1512 10.9994 10.0833 10.9541 10.0262 10.8969L8 8.87L5.97385 10.8969C5.91667 10.9541 5.8488 10.9994 5.77409 11.0304C5.69939 11.0613 5.61932 11.0773 5.53846 11.0773C5.45761 11.0773 5.37754 11.0613 5.30283 11.0304C5.22813 10.9994 5.16025 10.9541 5.10308 10.8969C5.0459 10.8397 5.00055 10.7719 4.96961 10.6972C4.93866 10.6225 4.92274 10.5424 4.92274 10.4615C4.92274 10.3807 4.93866 10.3006 4.96961 10.2259C5.00055 10.1512 5.0459 10.0833 5.10308 10.0262L7.13 8L5.10308 5.97385C4.98761 5.85837 4.92274 5.70176 4.92274 5.53846C4.92274 5.37516 4.98761 5.21855 5.10308 5.10308C5.21855 4.9876 5.37516 4.92273 5.53846 4.92273C5.70176 4.92273 5.85838 4.9876 5.97385 5.10308L8 7.13L10.0262 5.10308C10.0833 5.0459 10.1512 5.00055 10.2259 4.9696C10.3006 4.93866 10.3807 4.92273 10.4615 4.92273C10.5424 4.92273 10.6225 4.93866 10.6972 4.9696C10.7719 5.00055 10.8397 5.0459 10.8969 5.10308C10.9541 5.16025 10.9995 5.22813 11.0304 5.30283C11.0613 5.37753 11.0773 5.4576 11.0773 5.53846C11.0773 5.61932 11.0613 5.69939 11.0304 5.77409C10.9995 5.84879 10.9541 5.91667 10.8969 5.97385ZM16 8C16 9.58225 15.5308 11.129 14.6518 12.4446C13.7727 13.7602 12.5233 14.7855 11.0615 15.391C9.59966 15.9965 7.99113 16.155 6.43928 15.8463C4.88743 15.5376 3.46197 14.7757 2.34315 13.6569C1.22433 12.538 0.462403 11.1126 0.153721 9.56072C-0.15496 8.00887 0.00346628 6.40034 0.608967 4.93853C1.21447 3.47672 2.23985 2.22729 3.55544 1.34824C4.87103 0.469192 6.41775 0 8 0C10.121 0.00223986 12.1546 0.845814 13.6544 2.34562C15.1542 3.84542 15.9978 5.87895 16 8ZM14.7692 8C14.7692 6.66117 14.3722 5.35241 13.6284 4.23922C12.8846 3.12602 11.8274 2.25839 10.5905 1.74605C9.35356 1.2337 7.99249 1.09965 6.67939 1.36084C5.36629 1.62203 4.16013 2.26674 3.21343 3.21343C2.26674 4.16012 1.62203 5.36629 1.36084 6.67939C1.09965 7.99249 1.2337 9.35356 1.74605 10.5905C2.2584 11.8274 3.12603 12.8846 4.23922 13.6284C5.35241 14.3722 6.66117 14.7692 8 14.7692C9.79469 14.7672 11.5153 14.0534 12.7843 12.7843C14.0534 11.5153 14.7672 9.79468 14.7692 8Z"/>
846
- </svg>
847
- `, p = class p extends f {
848
- /* Life Cycle Methods */
849
- constructor() {
850
- super(), this.items = [], this.selectedTagItems = [], this.dropdownOpen = !1, this._handleOnClick = this._handleOnClick.bind(this);
851
- }
852
- firstUpdated() {
853
- this.preselectedItems && this.setPreselectedItemsinDropdown(), this.selectedTagItems = this.preselectedItems || [], this._initializeAria();
854
- }
855
- connectedCallback() {
856
- super.connectedCallback(), window.addEventListener("click", this._handleOnClick, !1);
857
- }
858
- disconnectedCallback() {
859
- super.disconnectedCallback(), window.removeEventListener("click", this._handleOnClick, !1);
860
- }
861
- /* HTML Content functions */
862
- _renderDropdownItems() {
863
- return this.items.map(
864
- // Note: Keyboard can already navigate to the checkbox
865
- // eslint-disable-next-line lit-a11y/click-events-have-key-events
866
- (e, r) => d`<li
867
- @click="${(s) => this._handleListItemClick(s, r)}"
63
+ /* HTML Content functions */
64
+ _renderDropdownItems() {
65
+ return this.items.map(
66
+ // Note: Keyboard can already navigate to the checkbox
67
+ // eslint-disable-next-line lit-a11y/click-events-have-key-events
68
+ (item, index) => html `<li
69
+ @click="${(e) => this._handleListItemClick(e, index)}"
868
70
  >
869
71
  <cre8-checkbox-field-item
870
- .checked="${!!this.selectedTagItems.includes(e)}"
871
- label=${e}
872
- id=${r}
873
- @input="${(s) => this._handleDropdownItemInput(e, s)}"
72
+ .checked="${!!this.selectedTagItems.includes(item)}"
73
+ label=${item}
74
+ id=${index}
75
+ @input="${(e) => this._handleDropdownItemInput(item, e)}"
874
76
  >
875
77
  </cre8-checkbox-field-item>
876
- </li>`
877
- );
878
- }
879
- _renderSelectedTags() {
880
- return this.selectedTagItems.length ? this.selectedTagItems.map(
881
- (e) => d`<li>
78
+ </li>`);
79
+ }
80
+ _renderSelectedTags() {
81
+ if (!this.selectedTagItems.length) {
82
+ return nothing;
83
+ }
84
+ return this.selectedTagItems.map((item) => html `<li>
882
85
  <cre8-remove-tag
883
- text="${e}"
86
+ text="${item}"
884
87
  color="neutral"
885
88
  shape="square"
886
89
  ?disabled="${this.disabled}"
887
- @removeTagClicked="${() => this._handleRemoveTagClick(e)}"
90
+ @removeTagClicked="${() => this._handleRemoveTagClick(item)}"
888
91
  ></cre8-remove-tag>
889
- </li>`
890
- ) : n;
891
- }
892
- /* Helper Functions */
893
- setPreselectedItemsinDropdown() {
894
- this.preselectedItems.forEach((e) => {
895
- this.selectedTagItems = this.selectedTagItems.concat(e);
896
- });
897
- }
898
- clearAllTags() {
899
- this.disabled || (this.dropdownOpen && this.selectedTagItems.forEach((e) => {
900
- this.shadowRoot?.querySelector(`cre8-checkbox-field-item[label="${e}"]`).shadowRoot?.querySelector("input").click();
901
- }), this.selectedTagItems = [], this.emitSelectedItems());
902
- }
903
- emitSelectedItems() {
904
- const e = new CustomEvent("selectedItemsChange", {
905
- detail: {
906
- selectedItems: this.selectedTagItems
907
- },
908
- bubbles: !0,
909
- composed: !0
910
- });
911
- this.dispatchEvent(e);
912
- }
913
- toggleDropDown() {
914
- this.dropdownOpen = !this.dropdownOpen;
915
- }
916
- /* Click Event Functions */
917
- _handleOnClick(e) {
918
- if (!this.shadowRoot?.host)
919
- throw Error(
920
- "Could not determine navigation context during click handler"
921
- );
922
- const r = e.composedPath().includes(this.shadowRoot.host), s = this.renderRoot.querySelector(
923
- ".cre8-c-multi-select__label"
924
- ), a = this.renderRoot.querySelector(
925
- ".cre8-c-multi-select__icons-wrapper"
926
- ), l = this.shadowRoot?.querySelector(
927
- ".cre8-c-multi-select__tag-wrapper"
928
- ), c = this.shadowRoot?.querySelector(
929
- ".cre8-c-multi-select__dropdown"
930
- );
931
- r ? !e.composedPath().includes(s) && !e.composedPath().includes(l) && !e.composedPath().includes(a) && !e.composedPath().includes(c) && !this.disabled && this.toggleDropDown() : this.dropdownOpen = !1;
932
- }
933
- _handleListItemClick(e, r) {
934
- e.target !== this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${r}"]`) && this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${r}"]`).shadowRoot?.querySelector("input").click();
935
- }
936
- _handleDropdownItemInput(e, r) {
937
- r.target.checked ? this.selectedTagItems = this.selectedTagItems.concat(e) : this.selectedTagItems = this.selectedTagItems.filter((a) => a !== e), this.emitSelectedItems();
938
- }
939
- async _handleRemoveTagClick(e) {
940
- this.disabled || (this.selectedTagItems = this.selectedTagItems.filter((r) => r !== e), this.shadowRoot?.querySelector(`cre8-checkbox-field-item[label="${e}"]`).shadowRoot?.querySelector("input").click(), await this.updateComplete, this.emitSelectedItems());
941
- }
942
- dropdownArrowClick() {
943
- this.disabled || this.toggleDropDown();
944
- }
945
- _handleButtonToListKeydown(e) {
946
- e.code === "Escape" && (e.preventDefault(), this.toggleDropDown());
947
- }
948
- _handleListKeydown(e) {
949
- e.code === "Escape" && (e.preventDefault(), this.toggleDropDown());
950
- }
951
- _initializeAria() {
952
- this.fieldId = this.fieldId || m(), (this.fieldNote || this.slotNotEmpty("fieldNote")) && (this.ariaDescribedBy = this.ariaDescribedBy || m()), (this.successNote || this.errorNote) && (this.validationAriaDescribedBy = this.validationAriaDescribedBy || m());
953
- }
954
- /**
955
- * Aria describedby string based on field notes and error/success notes
956
- * 1) If both validationAriaDescribedBy (error/success note) and field note exists,
957
- * render both in the input's `aria-describedby` attribute
958
- * 2) Otherwise, if only validationAriaDescribedBy exists, then render only that as
959
- * the `aria-describedby` attribute (input without field note initially, but then error/success is added).
960
- * 3) Otherwise, render only the `ariaDescribedBy` property (field note only)
961
- */
962
- _fieldNoteAria() {
963
- return this.validationAriaDescribedBy && this.ariaDescribedBy ? `${this.ariaDescribedBy} ${this.validationAriaDescribedBy}` : this.validationAriaDescribedBy && !this.ariaDescribedBy ? this.validationAriaDescribedBy : this.ariaDescribedBy;
964
- }
965
- /**
966
- * Render the success or error field notes
967
- * 1. If there is a successNote, then return the field note with the success message and state.
968
- * 2. If there is a errorNote, then return the field note with the error message and state.
969
- */
970
- _renderSuccessErrorFieldNote() {
971
- return this.successNote ? d` <cre8-field-note
92
+ </li>`);
93
+ }
94
+ /* Helper Functions */
95
+ setPreselectedItemsinDropdown() {
96
+ this.preselectedItems.forEach((item) => {
97
+ this.selectedTagItems = this.selectedTagItems.concat(item);
98
+ });
99
+ }
100
+ clearAllTags() {
101
+ if (!this.disabled) {
102
+ if (this.dropdownOpen) {
103
+ this.selectedTagItems.forEach((item) => {
104
+ this.shadowRoot
105
+ ?.querySelector(`cre8-checkbox-field-item[label="${item}"]`)
106
+ .shadowRoot?.querySelector('input')
107
+ .click();
108
+ });
109
+ }
110
+ this.selectedTagItems = [];
111
+ this.emitSelectedItems();
112
+ }
113
+ }
114
+ emitSelectedItems() {
115
+ const customEvent = new CustomEvent('selectedItemsChange', {
116
+ detail: {
117
+ selectedItems: this.selectedTagItems,
118
+ },
119
+ bubbles: true,
120
+ composed: true,
121
+ });
122
+ this.dispatchEvent(customEvent);
123
+ }
124
+ toggleDropDown() {
125
+ this.dropdownOpen = !this.dropdownOpen;
126
+ }
127
+ /* Click Event Functions */
128
+ _handleOnClick(event) {
129
+ if (!this.shadowRoot?.host) {
130
+ throw Error('Could not determine navigation context during click handler');
131
+ }
132
+ const didClickInside = event.composedPath().includes(this.shadowRoot.host);
133
+ const label = this.renderRoot.querySelector('.cre8-c-multi-select__label');
134
+ const buttonsWrapper = this.renderRoot.querySelector('.cre8-c-multi-select__icons-wrapper');
135
+ const removeTagWrapper = this.shadowRoot?.querySelector('.cre8-c-multi-select__tag-wrapper');
136
+ const dropdownWrapper = this.shadowRoot?.querySelector('.cre8-c-multi-select__dropdown');
137
+ if (!didClickInside) {
138
+ this.dropdownOpen = false;
139
+ }
140
+ else if (!event.composedPath().includes(label)
141
+ && !event.composedPath().includes(removeTagWrapper)
142
+ && !event.composedPath().includes(buttonsWrapper)
143
+ && !event.composedPath().includes(dropdownWrapper)
144
+ && !this.disabled) {
145
+ this.toggleDropDown();
146
+ }
147
+ }
148
+ _handleListItemClick(e, index) {
149
+ if (e.target
150
+ !== this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${index}"]`)) {
151
+ this.shadowRoot
152
+ ?.querySelector(`cre8-checkbox-field-item[id="${index}"]`)
153
+ .shadowRoot?.querySelector('input')
154
+ .click();
155
+ }
156
+ }
157
+ _handleDropdownItemInput(item, e) {
158
+ const targetCheckbox = e.target;
159
+ if (targetCheckbox.checked) {
160
+ this.selectedTagItems = this.selectedTagItems.concat(item);
161
+ }
162
+ else {
163
+ this.selectedTagItems = this.selectedTagItems.filter((i) => i !== item);
164
+ }
165
+ this.emitSelectedItems();
166
+ }
167
+ async _handleRemoveTagClick(item) {
168
+ if (!this.disabled) {
169
+ this.selectedTagItems = this.selectedTagItems.filter((i) => i !== item);
170
+ this.shadowRoot
171
+ ?.querySelector(`cre8-checkbox-field-item[label="${item}"]`)
172
+ .shadowRoot?.querySelector('input')
173
+ .click();
174
+ await this.updateComplete;
175
+ this.emitSelectedItems();
176
+ }
177
+ }
178
+ dropdownArrowClick() {
179
+ if (!this.disabled) {
180
+ this.toggleDropDown();
181
+ }
182
+ }
183
+ _handleButtonToListKeydown(e) {
184
+ if (e.code === 'Escape') {
185
+ e.preventDefault();
186
+ this.toggleDropDown();
187
+ }
188
+ }
189
+ _handleListKeydown(e) {
190
+ if (e.code === 'Escape') {
191
+ e.preventDefault();
192
+ this.toggleDropDown();
193
+ }
194
+ }
195
+ _initializeAria() {
196
+ this.fieldId = this.fieldId || nanoid();
197
+ if (this.fieldNote || this.slotNotEmpty('fieldNote')) {
198
+ this.ariaDescribedBy = this.ariaDescribedBy || nanoid();
199
+ }
200
+ if (this.successNote || this.errorNote) {
201
+ this.validationAriaDescribedBy = this.validationAriaDescribedBy || nanoid();
202
+ }
203
+ }
204
+ /**
205
+ * Aria describedby string based on field notes and error/success notes
206
+ * 1) If both validationAriaDescribedBy (error/success note) and field note exists,
207
+ * render both in the input's `aria-describedby` attribute
208
+ * 2) Otherwise, if only validationAriaDescribedBy exists, then render only that as
209
+ * the `aria-describedby` attribute (input without field note initially, but then error/success is added).
210
+ * 3) Otherwise, render only the `ariaDescribedBy` property (field note only)
211
+ */
212
+ _fieldNoteAria() {
213
+ if (this.validationAriaDescribedBy && this.ariaDescribedBy) {
214
+ return `${this.ariaDescribedBy} ${this.validationAriaDescribedBy}`; /* 1 */
215
+ }
216
+ if (this.validationAriaDescribedBy && !this.ariaDescribedBy) {
217
+ return this.validationAriaDescribedBy; /* 2 */
218
+ }
219
+ return this.ariaDescribedBy; /* 3 */
220
+ }
221
+ /**
222
+ * Render the success or error field notes
223
+ * 1. If there is a successNote, then return the field note with the success message and state.
224
+ * 2. If there is a errorNote, then return the field note with the error message and state.
225
+ */
226
+ _renderSuccessErrorFieldNote() {
227
+ if (this.successNote) {
228
+ /* 1 */
229
+ return html ` <cre8-field-note
972
230
  ?isSuccess=${this.isSuccess}
973
231
  id=${this.validationAriaDescribedBy}
974
232
  class="cre8-c-multi-select__field-note-success"
975
233
  iconName="success"
976
234
  >
977
235
  ${this.successNote}
978
- </cre8-field-note>` : this.errorNote ? d` <cre8-field-note
236
+ </cre8-field-note>`;
237
+ }
238
+ if (this.errorNote) {
239
+ /* 2 */
240
+ return html ` <cre8-field-note
979
241
  ?isError=${this.isError}
980
242
  id=${this.validationAriaDescribedBy}
981
243
  class="cre8-c-multi-select__field-note-error"
982
244
  iconName="error-alt"
983
245
  >
984
246
  ${this.errorNote}
985
- </cre8-field-note>` : null;
986
- }
987
- render() {
988
- const e = this.componentClassNames(
989
- "cre8-c-multi-select",
990
- {
991
- "cre8-is-error": this.isError,
992
- "cre8-is-success": this.isSuccess,
993
- "cre8-is-disabled": this.disabled,
994
- "cre8-c-multi-select--no-clear-icon": !this.selectedTagItems.length
995
- }
996
- );
997
- return d`
998
- <div class="${e}">
247
+ </cre8-field-note>`;
248
+ }
249
+ return null;
250
+ }
251
+ render() {
252
+ const componentClassNames = this.componentClassNames('cre8-c-multi-select', {
253
+ 'cre8-is-error': this.isError,
254
+ 'cre8-is-success': this.isSuccess,
255
+ 'cre8-is-disabled': this.disabled,
256
+ 'cre8-c-multi-select--no-clear-icon': !this.selectedTagItems.length,
257
+ });
258
+ return html `
259
+ <div class="${componentClassNames}">
999
260
  <label class="cre8-c-multi-select__label" id="${this.fieldId}"
1000
261
  >${this.label}</label
1001
262
  >
1002
263
  <div class="cre8-c-multi-select__body" ?disabled=${this.disabled}>
1003
264
  <div
1004
265
  class="cre8-c-multi-select__content"
1005
- aria-describedby="${g(this._fieldNoteAria())}"
266
+ aria-describedby="${ifDefined(this._fieldNoteAria())}"
1006
267
  >
1007
268
  <ul
1008
269
  class="cre8-c-multi-select__tag-wrapper"
@@ -1013,8 +274,8 @@ const w = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
1013
274
  </div>
1014
275
  <div class="cre8-c-multi-select__icons-wrapper">
1015
276
  <cre8-button
1016
- ?hideText=${!0}
1017
- svg="${_}"
277
+ ?hideText=${true}
278
+ svg="${svgClear}"
1018
279
  text="Clear All"
1019
280
  variant="tertiary"
1020
281
  ?disabled="${this.disabled}"
@@ -1024,7 +285,7 @@ const w = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
1024
285
  </cre8-button>
1025
286
  <cre8-button
1026
287
  hideText
1027
- svg=${w}
288
+ svg=${svgCaretDown}
1028
289
  variant="tertiary"
1029
290
  ?disabled="${this.disabled}"
1030
291
  class="cre8-c-multi-select__down_icon"
@@ -1037,7 +298,8 @@ const w = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
1037
298
  </cre8-button>
1038
299
  </div>
1039
300
  </div>
1040
- ${this.dropdownOpen ? d`
301
+ ${this.dropdownOpen
302
+ ? html `
1041
303
  <fieldset class="cre8-c-multi-select__dropdown" aria-describedby="${this.fieldId}">
1042
304
  <ul
1043
305
  aria-label="available items"
@@ -1045,64 +307,66 @@ const w = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
1045
307
  >
1046
308
  ${this._renderDropdownItems()}
1047
309
  </ul>
1048
- </fieldset>` : n}
310
+ </fieldset>`
311
+ : nothing}
1049
312
  </div>
1050
- ${this.fieldNote || this.slotNotEmpty("fieldNote") ? d`<cre8-field-note
313
+ ${this.fieldNote || this.slotNotEmpty('fieldNote')
314
+ ? html `<cre8-field-note
1051
315
  id=${this.ariaDescribedBy}
1052
316
  class="cre8-c-multi-select__field-note"
1053
317
  >
1054
318
  <slot name="fieldNote">${this.fieldNote}</slot>
1055
- </cre8-field-note>` : n}
319
+ </cre8-field-note>`
320
+ : nothing}
1056
321
  ${this._renderSuccessErrorFieldNote()}
1057
322
  `;
1058
- }
1059
- };
1060
- p.styles = [y];
1061
- let t = p;
1062
- i([
1063
- o({ type: Array })
1064
- ], t.prototype, "items");
1065
- i([
1066
- h()
1067
- ], t.prototype, "selectedTagItems");
1068
- i([
1069
- o({ type: Array })
1070
- ], t.prototype, "preselectedItems");
1071
- i([
1072
- h()
1073
- ], t.prototype, "dropdownOpen");
1074
- i([
1075
- o()
1076
- ], t.prototype, "label");
1077
- i([
1078
- o()
1079
- ], t.prototype, "fieldId");
1080
- i([
1081
- o()
1082
- ], t.prototype, "fieldNote");
1083
- i([
1084
- o()
1085
- ], t.prototype, "ariaDescribedBy");
1086
- i([
1087
- o()
1088
- ], t.prototype, "validationAriaDescribedBy");
1089
- i([
1090
- o({ type: Boolean, reflect: !0 })
1091
- ], t.prototype, "disabled");
1092
- i([
1093
- o({ type: Boolean, reflect: !0 })
1094
- ], t.prototype, "isError");
1095
- i([
1096
- o()
1097
- ], t.prototype, "errorNote");
1098
- i([
1099
- o({ type: Boolean, reflect: !0 })
1100
- ], t.prototype, "isSuccess");
1101
- i([
1102
- o()
1103
- ], t.prototype, "successNote");
1104
- customElements.get("cre8-multi-select") === void 0 && customElements.define("cre8-multi-select", t);
1105
- export {
1106
- t as Cre8MultiSelect,
1107
- t as default
1108
- };
323
+ }
324
+ }
325
+ Cre8MultiSelect.styles = [styles];
326
+ __decorate([
327
+ property({ type: Array })
328
+ ], Cre8MultiSelect.prototype, "items", void 0);
329
+ __decorate([
330
+ state()
331
+ ], Cre8MultiSelect.prototype, "selectedTagItems", void 0);
332
+ __decorate([
333
+ property({ type: Array })
334
+ ], Cre8MultiSelect.prototype, "preselectedItems", void 0);
335
+ __decorate([
336
+ state()
337
+ ], Cre8MultiSelect.prototype, "dropdownOpen", void 0);
338
+ __decorate([
339
+ property()
340
+ ], Cre8MultiSelect.prototype, "label", void 0);
341
+ __decorate([
342
+ property()
343
+ ], Cre8MultiSelect.prototype, "fieldId", void 0);
344
+ __decorate([
345
+ property()
346
+ ], Cre8MultiSelect.prototype, "fieldNote", void 0);
347
+ __decorate([
348
+ property()
349
+ ], Cre8MultiSelect.prototype, "ariaDescribedBy", void 0);
350
+ __decorate([
351
+ property()
352
+ ], Cre8MultiSelect.prototype, "validationAriaDescribedBy", void 0);
353
+ __decorate([
354
+ property({ type: Boolean, reflect: true })
355
+ ], Cre8MultiSelect.prototype, "disabled", void 0);
356
+ __decorate([
357
+ property({ type: Boolean, reflect: true })
358
+ ], Cre8MultiSelect.prototype, "isError", void 0);
359
+ __decorate([
360
+ property()
361
+ ], Cre8MultiSelect.prototype, "errorNote", void 0);
362
+ __decorate([
363
+ property({ type: Boolean, reflect: true })
364
+ ], Cre8MultiSelect.prototype, "isSuccess", void 0);
365
+ __decorate([
366
+ property()
367
+ ], Cre8MultiSelect.prototype, "successNote", void 0);
368
+ if (customElements.get('cre8-multi-select') === undefined) {
369
+ customElements.define('cre8-multi-select', Cre8MultiSelect);
370
+ }
371
+ export default Cre8MultiSelect;
372
+ //# sourceMappingURL=multi-select.js.map