@tmorrow/cre8-wc 1.2.4 → 1.2.5

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,843 +1,181 @@
1
- import { css as g, html as o, nothing as h } from "lit";
2
- import { ifDefined as u } from "lit-html/directives/if-defined.js";
3
- import { property as i, queryAll as f } from "lit/decorators.js";
4
- import { nanoid as d } from "nanoid";
5
- import "../field-note/field-note.js";
6
- import { C as b } from "../../cre8-form-element-BymRdQUC.js";
7
- const y = g`.cre8-u-content-knockout-brand {
8
- color: var(----cre8-color-content-knockout-brand);
9
- }
10
-
11
- .cre8-u-is-hidden {
12
- display: none !important;
13
- visibility: hidden !important;
14
- }
15
-
16
- .cre8-u-is-vishidden {
17
- position: absolute !important;
18
- overflow: hidden;
19
- width: 1px;
20
- height: 1px;
21
- padding: 0;
22
- border: 0;
23
- clip: rect(1px, 1px, 1px, 1px);
24
- }
25
-
26
- @media all and (min-width: 23.4375rem) {
27
- .cre8-u-hide-sm {
28
- display: none !important;
29
- }
30
- }
31
- @media all and (min-width: 35rem) {
32
- .cre8-u-hide-sm-2 {
33
- display: none !important;
34
- }
35
- }
36
- @media all and (min-width: 48rem) {
37
- .cre8-u-hide-md {
38
- display: none !important;
39
- }
40
- }
41
- @media all and (min-width: 60rem) {
42
- .cre8-u-hide-lg {
43
- display: none !important;
44
- }
45
- }
46
- @media all and (min-width: 75rem) {
47
- .cre8-u-hide-xl {
48
- display: none !important;
49
- }
50
- }
51
- @media all and (max-width: 23.4375rem) {
52
- .cre8-u-show-sm {
53
- display: none !important;
54
- }
55
- }
56
- @media all and (max-width: 35rem) {
57
- .cre8-u-show-sm-2 {
58
- display: none !important;
59
- }
60
- }
61
- @media all and (max-width: 48rem) {
62
- .cre8-u-show-md {
63
- display: none !important;
64
- }
65
- }
66
- @media all and (max-width: 60rem) {
67
- .cre8-u-show-lg {
68
- display: none !important;
69
- }
70
- }
71
- @media all and (max-width: 75rem) {
72
- .cre8-u-show-xl {
73
- display: none !important;
74
- }
75
- }
76
- .cre8-u-margin-none {
77
- margin: 0 !important;
78
- }
79
-
80
- .cre8-u-margin-sm {
81
- margin: size(1) !important;
82
- }
83
-
84
- .cre8-u-margin-md {
85
- margin: size(2) !important;
86
- }
87
-
88
- .cre8-u-margin-lg {
89
- margin: size(3) !important;
90
- }
91
-
92
- .cre8-u-margin-xl {
93
- margin: size(4) !important;
94
- }
95
-
96
- .cre8-u-margin-xxl {
97
- margin: size(8) !important;
98
- }
99
-
100
- .cre8-u-margin-top-none {
101
- margin-top: 0 !important;
102
- }
103
-
104
- .cre8-u-margin-top-sm {
105
- margin-top: size(1) !important;
106
- }
107
-
108
- .cre8-u-margin-top-md {
109
- margin-top: size(2) !important;
110
- }
111
-
112
- .cre8-u-margin-top-lg {
113
- margin-top: size(3) !important;
114
- }
115
-
116
- .cre8-u-margin-top-xl {
117
- margin-top: size(4) !important;
118
- }
119
-
120
- .cre8-u-margin-top-xxl {
121
- margin-top: size(8) !important;
122
- }
123
-
124
- .cre8-u-margin-right-none {
125
- margin-right: 0 !important;
126
- }
127
-
128
- .cre8-u-margin-right-sm {
129
- margin-right: size(1) !important;
130
- }
131
-
132
- .cre8-u-margin-right-md {
133
- margin-right: size(2) !important;
134
- }
135
-
136
- .cre8-u-margin-right-lg {
137
- margin-right: size(3) !important;
138
- }
139
-
140
- .cre8-u-margin-right-xl {
141
- margin-right: size(4) !important;
142
- }
143
-
144
- .cre8-u-margin-right-xxl {
145
- margin-right: size(8) !important;
146
- }
147
-
148
- .cre8-u-margin-bottom-none {
149
- margin-bottom: 0 !important;
150
- }
151
-
152
- .cre8-u-margin-bottom-sm {
153
- margin-bottom: size(1) !important;
154
- }
155
-
156
- .cre8-u-margin-bottom-md {
157
- margin-bottom: size(2) !important;
158
- }
159
-
160
- .cre8-u-margin-bottom-lg {
161
- margin-bottom: size(3) !important;
162
- }
163
-
164
- .cre8-u-margin-bottom-xl {
165
- margin-bottom: size(4) !important;
166
- }
167
-
168
- .cre8-u-margin-bottom-xxl {
169
- margin-bottom: size(8) !important;
170
- }
171
-
172
- .cre8-u-margin-bottom-xl-xxl {
173
- margin-bottom: size(4) !important;
174
- }
175
-
176
- @media all and (min-width: 768px) {
177
- .cre8-u-margin-bottom-xl-xxl {
178
- margin-bottom: size(8) !important;
179
- }
180
- }
181
- .cre8-u-margin-left-none {
182
- margin-left: 0 !important;
183
- }
184
-
185
- .cre8-u-margin-left-sm {
186
- margin-left: size(1) !important;
187
- }
188
-
189
- .cre8-u-margin-left-md {
190
- margin-left: size(2) !important;
191
- }
192
-
193
- .cre8-u-margin-left-lg {
194
- margin-left: size(3) !important;
195
- }
196
-
197
- .cre8-u-margin-left-xl {
198
- margin-left: size(4) !important;
199
- }
200
-
201
- .cre8-u-margin-left-xxl {
202
- margin-left: size(8) !important;
203
- }
204
-
205
- .cre8-u-padding-none {
206
- padding: 0 !important;
207
- }
208
-
209
- .cre8-u-padding-sm {
210
- padding: size(1) !important;
211
- }
212
-
213
- .cre8-u-padding-md {
214
- padding: size(2) !important;
215
- }
216
-
217
- .cre8-u-padding-lg {
218
- padding: size(3) !important;
219
- }
220
-
221
- .cre8-u-padding-xl {
222
- padding: size(4) !important;
223
- }
224
-
225
- .cre8-u-padding-xxl {
226
- padding: size(8) !important;
227
- }
228
-
229
- .cre8-u-padding-top-none {
230
- padding-top: 0 !important;
231
- }
232
-
233
- .cre8-u-padding-top-sm {
234
- padding-top: size(1) !important;
235
- }
236
-
237
- .cre8-u-padding-top-md {
238
- padding-top: size(2) !important;
239
- }
240
-
241
- .cre8-u-padding-top-lg {
242
- padding-top: size(3) !important;
243
- }
244
-
245
- .cre8-u-padding-top-xl {
246
- padding-top: size(4) !important;
247
- }
248
-
249
- .cre8-u-padding-top-xxl {
250
- padding-top: size(8) !important;
251
- }
252
-
253
- .cre8-u-padding-right-none {
254
- padding-right: 0 !important;
255
- }
256
-
257
- .cre8-u-padding-right-sm {
258
- padding-right: size(1) !important;
259
- }
260
-
261
- .cre8-u-padding-right-md {
262
- padding-right: size(2) !important;
263
- }
264
-
265
- .cre8-u-padding-right-lg {
266
- padding-right: size(3) !important;
267
- }
268
-
269
- .cre8-u-padding-right-xl {
270
- padding-right: size(4) !important;
271
- }
272
-
273
- .cre8-u-padding-right-xxl {
274
- padding-right: size(8) !important;
275
- }
276
-
277
- .cre8-u-padding-bottom-none {
278
- padding-bottom: 0 !important;
279
- }
280
-
281
- .cre8-u-padding-bottom-sm {
282
- padding-bottom: size(1) !important;
283
- }
284
-
285
- .cre8-u-padding-bottom-md {
286
- padding-bottom: size(2) !important;
287
- }
288
-
289
- .cre8-u-padding-bottom-lg {
290
- padding-bottom: size(3) !important;
291
- }
292
-
293
- .cre8-u-padding-bottom-xl {
294
- padding-bottom: size(4) !important;
295
- }
296
-
297
- .cre8-u-padding-bottom-xxl {
298
- padding-bottom: size(8) !important;
299
- }
300
-
301
- .cre8-u-padding-left-none {
302
- padding-left: 0 !important;
303
- }
304
-
305
- .cre8-u-padding-left-sm {
306
- padding-left: size(1) !important;
307
- }
308
-
309
- .cre8-u-padding-left-md {
310
- padding-left: size(2) !important;
311
- }
312
-
313
- .cre8-u-padding-left-lg {
314
- padding-left: size(3) !important;
315
- }
316
-
317
- .cre8-u-padding-left-xl {
318
- padding-left: size(4) !important;
319
- }
320
-
321
- .cre8-u-padding-left-xxl {
322
- padding-left: size(8) !important;
323
- }
324
-
325
- .cre8-u-display-flex {
326
- display: flex !important;
327
- }
328
-
329
- .cre8-u-display-block {
330
- display: block !important;
331
- }
332
-
333
- body {
334
- font-family: var(--cre8-typography-body-default-font-family);
335
- font-size: var(--cre8-typography-body-default-font-size);
336
- font-weight: var(--cre8-typography-body-default-font-weight);
337
- line-height: var(--cre8-typography-body-default-line-height);
338
- -webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
339
- text-decoration: var(--cre8-typography-body-default-text-decoration);
340
- text-transform: var(--cre8-typography-body-default-text-transform);
341
- display: flex;
342
- flex-direction: column;
343
- padding: 0;
344
- margin: 0;
345
- color: var(--cre8-color-content-default);
346
- background: var(--background-default);
347
- }
348
-
349
- @media all and (min-width: 60rem) {
350
- .page-container {
351
- background: linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0);
352
- }
353
- }
354
- .band__inner {
355
- margin-left: 2rem;
356
- margin-right: 2rem;
357
- }
358
-
359
- @media all and (min-width: 60rem) {
360
- .band__inner {
361
- margin-right: 0;
362
- }
363
- }
364
- img {
365
- max-width: 100%;
366
- height: auto;
367
- }
368
-
369
- /**
370
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
371
- */
372
- *,
373
- ::slotted(*),
374
- *:before,
375
- *:after {
376
- box-sizing: border-box;
377
- }
378
-
379
- :root {
380
- --size-base-unit: 0.5rem;
381
- }
382
-
383
- /**
384
- * RTL support for values logical properties can't automatically adjust for
385
- * 1) Percentage based horizontal translate values need to be flipped
386
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
387
- * 3) Inverse items that have 45degs
388
- */
389
- [dir=rtl] {
390
- --rtlTranslateX: 50%;
391
- /* 1 */
392
- --rtlGradientToRight: 270deg;
393
- /* 2 */
394
- --rtlRotate45Inverse: -45deg;
395
- /* 3 */
396
- }
397
-
398
- /**
399
- * Visible focus outline for elements on a light background
400
- */
401
- /**
402
- * Visible focus outline for elements with an error status
403
- */
404
- /**
405
- * Visible focus outline for elements on a dark background
406
- */
407
- /**
408
- * Focus state for themes that need a dashed outline for focus
409
- * state
410
- **/
411
- /**
412
- * Invisible focus outline for elements that need a more visible
413
- * focus state for high-contrast mode
414
- */
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import svgCaretUp from '@tmorrow/cre8-wc/icons/System/Regular/Caret_Up.svg?raw';
8
+ import { html, nothing, } from 'lit';
9
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
10
+ import { property, queryAll } from 'lit/decorators.js';
11
+ import { nanoid } from 'nanoid';
12
+ import '../field-note/field-note';
13
+ import styles from './select.styles.js';
14
+ import Cre8FormElement from '../cre8-form-element.js';
415
15
  /**
416
- * Visually hidden from display
16
+ * The Select control is designed and built to be used for selecting between choices in a form.
17
+ * It is not a Dropdown control which is generally used for displaying lists of choices
18
+ * that act as links or actions, like filter options.
19
+ *
20
+ * Consider the use of a Select control carefully.
21
+ * When you have less than 5 options for the user to choose from,
22
+ * Radio or Checkbox inputs may be a better choice to display all of the options at once.
23
+ * Users have to slow down to scan a list with more than 15 options,
24
+ * so using an option group to give the options hierarchy may help users find their choice faster.
25
+ * Alternately, a text input field might be a more appropriate control to use when there are too many options,
26
+ * especially when used with typeahead/auto-complete.
27
+ *
28
+ * ## How to use
29
+ * 1. The collapsed default state always shows a default placeholder value or a selected value.
30
+ * 2. Sort list items in a logical order, such as grouping highly related options together,
31
+ * placing most common options first, using alphabetical or numeric orders or dates in chronological order.
32
+ * 3. A list that includes 6+ items should show a scrollbar.
33
+ * 4. Users should be able to use a keystroke to quickly jump
34
+ * to selecting an option that begins with the entered letter.
35
+ * 5. Utilize appropriate native controls for when a user is on a mobile device rather than our custom Select.
36
+ * 6. Adhere to our common form field conventions and always include a Label,
37
+ * provide short and clear error messages in context, avoid using the Read-only
38
+ * and Disabled states as much as possible, and utilize the info/formatting tip
39
+ * or helpful link rather than placeholder text.
40
+ *
41
+ * @slot fieldNote - Container for optional field note content
417
42
  */
418
- /*
419
- =======
420
- Animations
421
- =======
422
- */
423
- :host {
424
- --cre8-z-index-1: 1;
425
- --cre8-z-index-50: 50;
426
- --cre8-z-index-100: 100;
427
- --cre8-z-index-200: 200;
428
- --cre8-z-index-1030: 1030;
429
- --cre8-anim-fade-quick: 0.35s;
430
- --cre8-anim-ease: ease;
431
- }
432
-
433
- @keyframes fadeIn {
434
- 100% {
435
- opacity: 1;
436
- }
437
- }
438
- @keyframes slideIn {
439
- 100% {
440
- transform: translateX(0);
441
- }
442
- }
443
- @keyframes slideInFwd {
444
- 100% {
445
- width: 272px;
446
- height: 272px;
447
- }
448
- }
449
- @keyframes slideOutRight {
450
- 100% {
451
- width: 272px;
452
- height: 272px;
453
- }
454
- }
455
- @keyframes slideUp {
456
- 100% {
457
- transform: translateY(0);
458
- }
459
- }
460
- @media (width >= 481px) {
461
- @keyframes slideInFwd {
462
- 100% {
463
- width: 417px;
464
- height: 417px;
465
- }
466
- }
467
- @keyframes slideOutRight {
468
- 100% {
469
- width: 417px;
470
- height: 417px;
471
- }
472
- }
473
- }
474
- @media (width >= 48rem) {
475
- @keyframes slideInFwd {
476
- 100% {
477
- width: 330px;
478
- height: 330px;
43
+ export class Cre8Select extends Cre8FormElement {
44
+ constructor() {
45
+ super(...arguments);
46
+ this.type = 'select';
47
+ /**
48
+ * A mix of Cre8SelectOption and Cre8SelectOptionGroup definitions:
49
+ * - Cre8SelectOption
50
+ * - label: option label text - `string`
51
+ * - value: option value - `number | string`
52
+ * - Cre8SelectOptionGroup
53
+ * - optGroupLabel: optgroup label text - `string`
54
+ * - options: Array of multiple Cre8SelectOption items - `Cre8SelectOption[]`
55
+ */
56
+ this.items = [];
57
+ /**
58
+ * The required label that appears above the select
59
+ * @attr {string}
60
+ */
61
+ this.label = 'Label';
62
+ /**
63
+ * The required attribute on the select
64
+ * @attr {boolean}
65
+ */
66
+ this.required = false;
479
67
  }
480
- }
481
- @keyframes slideOutRight {
482
- 100% {
483
- width: 330px;
484
- height: 330px;
485
- transform: translateX(calc(100vw - 45px));
68
+ /**
69
+ * Initialize aria attributes
70
+ */
71
+ _initializeAria() {
72
+ this.fieldId = this.fieldId || nanoid();
73
+ if (this.fieldNote || this.slotNotEmpty('fieldNote')) {
74
+ this.ariaDescribedBy = this.ariaDescribedBy || nanoid();
75
+ }
76
+ if (this.successNote || this.errorNote) {
77
+ this.validationAriaDescribedBy = this.validationAriaDescribedBy || nanoid();
78
+ }
486
79
  }
487
- }
488
- }
489
- @media (width >= 60rem) {
490
- @keyframes slideInFwd {
491
- 100% {
492
- width: 460px;
493
- height: 460px;
80
+ /**
81
+ * Aria describedby string based on field notes and error/success notes
82
+ * 1) If both validationAriaDescribedBy (error/success note) and field note exists,
83
+ * render both in the input's `aria-describedby` attribute
84
+ * 2) Otherwise, if only validationAriaDescribedBy exists, then render only that as
85
+ * the `aria-describedby` attribute (input without field note initially, but then error/success is added).
86
+ * 3) Otherwise, render only the `ariaDescribedBy` property (field note only)
87
+ */
88
+ _fieldNoteAria() {
89
+ if (this.validationAriaDescribedBy && this.ariaDescribedBy) {
90
+ return `${this.ariaDescribedBy} ${this.validationAriaDescribedBy}`; /* 1 */
91
+ }
92
+ if (this.validationAriaDescribedBy && (!this.ariaDescribedBy)) {
93
+ return this.validationAriaDescribedBy; /* 2 */
94
+ }
95
+ return this.ariaDescribedBy; /* 3 */
494
96
  }
495
- }
496
- @keyframes slideOutRight {
497
- 100% {
498
- width: 460px;
499
- height: 460px;
500
- transform: translateX(calc(100vw - 45px));
97
+ connectedCallback() {
98
+ super.connectedCallback();
99
+ this.field.setAttribute('name', this.name ?? '');
501
100
  }
502
- }
503
- }
504
- @media (width >= 75rem) {
505
- @keyframes slideInFwd {
506
- 100% {
507
- width: 592px;
508
- height: 591px;
101
+ disconnectedCallback() {
102
+ super.disconnectedCallback();
509
103
  }
510
- }
511
- @keyframes slideOutRight {
512
- 100% {
513
- width: 592px;
514
- height: 591px;
515
- transform: translateX(calc(100vw - 45px));
104
+ /**
105
+ * First updatedLifecycle
106
+ * 1) Get the option in the items array with selected set to true. Set that as the selected item
107
+ * 2) The default value is set to the `option` with the `selected` if one exists. Otherwise, use the
108
+ * select the first item value like the native select.
109
+ */
110
+ firstUpdated() {
111
+ super.firstUpdated();
112
+ [...this._selectOptions].forEach((item) => {
113
+ if (item.selected === true) {
114
+ this.selectedItem = item.value; /* 1 */
115
+ }
116
+ });
117
+ this.defaultValue = this.selectedItem ? this.selectedItem : (this._selectOptions[0].value ?? 'Select An Option'); /* 2 */
118
+ this._setFormData();
119
+ this._initializeAria();
120
+ this.updateField();
516
121
  }
517
- }
518
- }
519
- @media (width >= 87.5rem) {
520
- @keyframes slideOutRight {
521
- 100% {
522
- width: 592px;
523
- height: 591px;
524
- transform: translateX(calc(100vw - 120px));
122
+ /**
123
+ * Set form data
124
+ * 1) Set the element internals to the selected item value if it exists,
125
+ * otherwise the default selected item is the first one
126
+ */
127
+ _setFormData() {
128
+ if (this.selectedItem) {
129
+ return this._internals?.setFormValue(this.selectedItem);
130
+ }
131
+ return this._internals?.setFormValue(this.defaultValue.toString());
525
132
  }
526
- }
527
- }
528
- @media (width >= 2200px) {
529
- @keyframes slideOutRight {
530
- 100% {
531
- width: 592px;
532
- height: 591px;
533
- transform: translateX(calc(100vw - 592px));
133
+ /**
134
+ * Handle On Change
135
+ * 1. Set the value when the select is changed.
136
+ * 2. Fire the custom event with the current value.
137
+ */
138
+ _handleOnChange(e) {
139
+ /* 1 */
140
+ const target = e.target;
141
+ this.value = target.options[target.selectedIndex].value;
142
+ this._internals.setFormValue(this.value);
143
+ /* 2 */
144
+ const customEvent = new CustomEvent('change', {
145
+ detail: {
146
+ name: this.name,
147
+ value: this.value,
148
+ },
149
+ bubbles: true,
150
+ composed: true,
151
+ });
152
+ this.dispatchEvent(customEvent);
534
153
  }
535
- }
536
- }
537
- span.ripple {
538
- position: absolute;
539
- border-radius: 50%;
540
- transform: scale(0);
541
- animation: ripple 600ms linear;
542
- background-color: var(--ripple-bg-color);
543
- }
544
-
545
- @keyframes ripple {
546
- to {
547
- transform: scale(4);
548
- opacity: 1;
549
- }
550
- }
551
- :root {
552
- --size-base-unit: 0.5rem;
553
- }
554
-
555
- /**
556
- * RTL support for values logical properties can't automatically adjust for
557
- * 1) Percentage based horizontal translate values need to be flipped
558
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
559
- * 3) Inverse items that have 45degs
560
- */
561
- [dir=rtl] {
562
- --rtlTranslateX: 50%;
563
- /* 1 */
564
- --rtlGradientToRight: 270deg;
565
- /* 2 */
566
- --rtlRotate45Inverse: -45deg;
567
- /* 3 */
568
- }
569
-
570
- /**
571
- * Visible focus outline for elements on a light background
572
- */
573
- /**
574
- * Visible focus outline for elements with an error status
575
- */
576
- /**
577
- * Visible focus outline for elements on a dark background
578
- */
579
- /**
580
- * Focus state for themes that need a dashed outline for focus
581
- * state
582
- **/
583
- /**
584
- * Invisible focus outline for elements that need a more visible
585
- * focus state for high-contrast mode
586
- */
587
- /**
588
- * Visually hidden from display
589
- */
590
- /*------------------------------------*\\
591
- #SELECT
592
- \\*------------------------------------*/
593
- :host {
594
- display: inline-flex;
595
- flex-wrap: wrap;
596
- }
597
-
598
- /**
599
- * Select Label
600
- */
601
- .cre8-c-select__label {
602
- font-family: var(--cre8-typography-label-small-font-family);
603
- font-size: var(--cre8-typography-label-small-font-size);
604
- font-weight: var(--cre8-typography-label-small-font-weight);
605
- line-height: var(--cre8-typography-label-small-line-height);
606
- text-decoration: var(--cre8-typography-label-small-text-decoration);
607
- text-transform: var(--cre8-typography-label-small-text-transform);
608
- display: block;
609
- margin-bottom: 0.5rem;
610
- margin-left: var(--cre8-input-label-margin-left, 0px);
611
- }
612
-
613
- /**
614
- * Select Body
615
- * 1) The div that contains the input and icons
616
- */
617
- .cre8-c-select__body {
618
- position: relative;
619
- }
620
-
621
- /**
622
- * Select Input
623
- * 1) The html5 select element
624
- */
625
- .cre8-c-select__input {
626
- font-family: var(--cre8-typography-body-default-font-family);
627
- font-size: var(--cre8-typography-body-default-font-size);
628
- font-weight: var(--cre8-typography-body-default-font-weight);
629
- line-height: var(--cre8-typography-body-default-line-height);
630
- text-decoration: var(--cre8-typography-body-default-text-decoration);
631
- text-transform: var(--cre8-typography-body-default-text-transform);
632
- outline: var(--cre8-border-width-focus) solid transparent;
633
- outline-offset: 0.125rem;
634
- --size-base-unit: .5rem;
635
- -webkit-appearance: none;
636
- width: 100%;
637
- border-width: var(--cre8-border-width-default);
638
- border-style: solid;
639
- border-color: var(--cre8-color-border-strong);
640
- border-radius: var(--cre8-border-radius-default);
641
- padding: var(--cre8-input-padding, 0.75rem 0.5rem);
642
- color: var(--cre8-color-content-default);
643
- background-color: var(--cre8-color-bg-default);
644
- 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);
645
- /**
646
- * Hover, focus, active, and focus-visible styles for default input elements
647
- */
648
- }
649
- .cre8-c-select__input:hover:not(:disabled), .cre8-c-select__input:focus:not(:disabled), .cre8-c-select__input:active:not(:disabled), .cre8-c-select__input:focus-visible {
650
- outline: var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);
651
- outline-offset: 0.125rem;
652
- /**
653
- * Error state
654
- */
655
- }
656
- .cre8-is-error .cre8-c-select__input:hover:not(:disabled), .cre8-is-error .cre8-c-select__input:focus:not(:disabled), .cre8-is-error .cre8-c-select__input:active:not(:disabled), .cre8-is-error .cre8-c-select__input:focus-visible {
657
- outline-color: var(--cre8-color-border-error);
658
- }
659
- .cre8-c-select__input:hover:not(:disabled), .cre8-c-select__input:focus:not(:disabled), .cre8-c-select__input:active:not(:disabled), .cre8-c-select__input:focus-visible {
660
- /**
661
- * Success state
662
- */
663
- }
664
- .cre8-is-success .cre8-c-select__input:hover:not(:disabled), .cre8-is-success .cre8-c-select__input:focus:not(:disabled), .cre8-is-success .cre8-c-select__input:active:not(:disabled), .cre8-is-success .cre8-c-select__input:focus-visible {
665
- outline-color: var(--cre8-color-border-success);
666
- }
667
- .cre8-c-select__input {
668
- /**
669
- * Disabled styles for default input elements
670
- */
671
- }
672
- .cre8-c-select__input:disabled {
673
- background-color: var(--cre8-color-bg-disabled);
674
- border-color: var(--cre8-color-border-disabled);
675
- color: var(--cre8-color-content-disabled);
676
- cursor: not-allowed;
677
- /**
678
- * Disabled text colors
679
- */
680
- }
681
- .cre8-c-select__input:disabled::placeholder {
682
- color: var(--cre8-color-content-disabled);
683
- }
684
- .cre8-c-select__input {
685
- /**
686
- * Placeholder styles for default input elements
687
- */
688
- }
689
- .cre8-c-select__input::placeholder {
690
- color: var(--cre8-color-content-subtle);
691
- }
692
- .cre8-c-select__input {
693
- /**
694
- * Error state for default input elements
695
- */
696
- }
697
- .cre8-is-error .cre8-c-select__input {
698
- border-color: var(--cre8-color-border-error);
699
- }
700
- .cre8-c-select__input {
701
- /**
702
- * Success state for default input elements
703
- */
704
- }
705
- .cre8-is-success .cre8-c-select__input {
706
- border-color: var(--cre8-color-border-success);
707
- }
708
- .cre8-c-select__input {
709
- padding-inline-end: 2.75rem;
710
- cursor: pointer;
711
- }
712
-
713
- /**
714
- * Select Icon
715
- * 1) The icons within the body container positioned absolutely over the input
716
- */
717
- .cre8-c-select__icons {
718
- position: absolute;
719
- inset-block-start: 50%;
720
- transform: translateY(-50%);
721
- inset-inline-end: 0.5rem;
722
- display: flex;
723
- align-items: center;
724
- justify-content: flex-end;
725
- gap: 0.5rem;
726
- pointer-events: none;
727
- }
728
-
729
- /**
730
- * Select Arrow Icon
731
- */
732
- .cre8-c-select__icon-arrow {
733
- margin-right: 0.375rem;
734
- width: 0.75rem;
735
- height: 0.75rem;
736
- }
737
-
738
- /**
739
- * Select field notes
740
- */
741
- .cre8-c-select__field-note,
742
- .cre8-c-select__field-note-success,
743
- .cre8-c-select__field-note-error {
744
- flex-basis: 100%;
745
- }`;
746
- var v = Object.defineProperty, r = (p, t, a, s) => {
747
- for (var n = void 0, l = p.length - 1, m; l >= 0; l--)
748
- (m = p[l]) && (n = m(t, a, n) || n);
749
- return n && v(t, a, n), n;
750
- };
751
- const x = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
752
- <path d="M15.7867 12.1506C15.7192 12.2183 15.639 12.2719 15.5507 12.3085C15.4624 12.3451 15.3678 12.3639 15.2722 12.3639C15.1766 12.3639 15.082 12.3451 14.9937 12.3085C14.9054 12.2719 14.8252 12.2183 14.7577 12.1506L7.99992 5.39197L1.24215 12.1506C1.10569 12.2871 0.920613 12.3638 0.727633 12.3638C0.534652 12.3638 0.349576 12.2871 0.213119 12.1506C0.076661 12.0142 3.8041e-09 11.8291 0 11.6361C-3.8041e-09 11.4432 0.076661 11.2581 0.213119 11.1216L7.4854 3.84933C7.55294 3.78172 7.63315 3.72808 7.72143 3.69148C7.80972 3.65488 7.90435 3.63605 7.99992 3.63605C8.09548 3.63605 8.19012 3.65488 8.2784 3.69148C8.36668 3.72808 8.44689 3.78172 8.51443 3.84933L15.7867 11.1216C15.8543 11.1892 15.908 11.2694 15.9446 11.3576C15.9812 11.4459 16 11.5406 16 11.6361C16 11.7317 15.9812 11.8263 15.9446 11.9146C15.908 12.0029 15.8543 12.0831 15.7867 12.1506Z"/>
753
- </svg>
754
- `, c = class c extends b {
755
- constructor() {
756
- super(...arguments), this.type = "select", this.items = [], this.label = "Label", this.required = !1;
757
- }
758
- /**
759
- * Initialize aria attributes
760
- */
761
- _initializeAria() {
762
- this.fieldId = this.fieldId || d(), (this.fieldNote || this.slotNotEmpty("fieldNote")) && (this.ariaDescribedBy = this.ariaDescribedBy || d()), (this.successNote || this.errorNote) && (this.validationAriaDescribedBy = this.validationAriaDescribedBy || d());
763
- }
764
- /**
765
- * Aria describedby string based on field notes and error/success notes
766
- * 1) If both validationAriaDescribedBy (error/success note) and field note exists,
767
- * render both in the input's `aria-describedby` attribute
768
- * 2) Otherwise, if only validationAriaDescribedBy exists, then render only that as
769
- * the `aria-describedby` attribute (input without field note initially, but then error/success is added).
770
- * 3) Otherwise, render only the `ariaDescribedBy` property (field note only)
771
- */
772
- _fieldNoteAria() {
773
- return this.validationAriaDescribedBy && this.ariaDescribedBy ? `${this.ariaDescribedBy} ${this.validationAriaDescribedBy}` : this.validationAriaDescribedBy && !this.ariaDescribedBy ? this.validationAriaDescribedBy : this.ariaDescribedBy;
774
- }
775
- connectedCallback() {
776
- super.connectedCallback(), this.field.setAttribute("name", this.name ?? "");
777
- }
778
- disconnectedCallback() {
779
- super.disconnectedCallback();
780
- }
781
- /**
782
- * First updatedLifecycle
783
- * 1) Get the option in the items array with selected set to true. Set that as the selected item
784
- * 2) The default value is set to the `option` with the `selected` if one exists. Otherwise, use the
785
- * select the first item value like the native select.
786
- */
787
- firstUpdated() {
788
- super.firstUpdated(), [...this._selectOptions].forEach((t) => {
789
- t.selected === !0 && (this.selectedItem = t.value);
790
- }), this.defaultValue = this.selectedItem ? this.selectedItem : this._selectOptions[0].value ?? "Select An Option", this._setFormData(), this._initializeAria(), this.updateField();
791
- }
792
- /**
793
- * Set form data
794
- * 1) Set the element internals to the selected item value if it exists,
795
- * otherwise the default selected item is the first one
796
- */
797
- _setFormData() {
798
- return this.selectedItem ? this._internals?.setFormValue(this.selectedItem) : this._internals?.setFormValue(this.defaultValue.toString());
799
- }
800
- /**
801
- * Handle On Change
802
- * 1. Set the value when the select is changed.
803
- * 2. Fire the custom event with the current value.
804
- */
805
- _handleOnChange(t) {
806
- const a = t.target;
807
- this.value = a.options[a.selectedIndex].value, this._internals.setFormValue(this.value);
808
- const s = new CustomEvent("change", {
809
- detail: {
810
- name: this.name,
811
- value: this.value
812
- },
813
- bubbles: !0,
814
- composed: !0
815
- });
816
- this.dispatchEvent(s);
817
- }
818
- /**
819
- * Render the select options
820
- */
821
- _renderSelectOptions() {
822
- return this.items.map((t) => {
823
- if ("options" in t) {
824
- const a = t.options.map((s) => o`
825
- <option value="${s.value}">${s.label}</option>
154
+ /**
155
+ * Render the select options
156
+ */
157
+ _renderSelectOptions() {
158
+ return this.items.map((item) => {
159
+ if ('options' in item) {
160
+ const selectedGroup = item.options.map((option) => html `
161
+ <option value="${option.value}">${option.label}</option>
826
162
  `);
827
- return o`<optgroup label="${t.optGroupLabel}">
828
- ${a}
163
+ return html `<optgroup label="${item.optGroupLabel}">
164
+ ${selectedGroup}
829
165
  </optgroup>`;
830
- }
831
- return o`<option value="${t.value}">${t.label}</option>`;
832
- });
833
- }
834
- /**
835
- * Render the success or error field notes
836
- * 1. If there is a successNote, then return the field note with the success message and state.
837
- * 2. If there is a errorNote, then return the field note with the error message and state.
838
- */
839
- _renderSuccessErrorFieldNote() {
840
- return this.successNote ? o`
166
+ }
167
+ return html `<option value="${item.value}">${item.label}</option>`;
168
+ });
169
+ }
170
+ /**
171
+ * Render the success or error field notes
172
+ * 1. If there is a successNote, then return the field note with the success message and state.
173
+ * 2. If there is a errorNote, then return the field note with the error message and state.
174
+ */
175
+ _renderSuccessErrorFieldNote() {
176
+ if (this.successNote) {
177
+ /* 1 */
178
+ return html `
841
179
  <cre8-field-note
842
180
  ?isSuccess=${this.isSuccess}
843
181
  id=${this.validationAriaDescribedBy}
@@ -845,7 +183,11 @@ const x = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
845
183
  iconName="success"
846
184
  >
847
185
  ${this.successNote}
848
- </cre8-field-note>` : this.errorNote ? o`
186
+ </cre8-field-note>`;
187
+ }
188
+ if (this.errorNote) {
189
+ /* 2 */
190
+ return html `
849
191
  <cre8-field-note
850
192
  ?isError=${this.isError}
851
193
  id=${this.validationAriaDescribedBy}
@@ -853,84 +195,87 @@ const x = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" x
853
195
  iconName="error-alt"
854
196
  >
855
197
  ${this.errorNote}
856
- </cre8-field-note>` : null;
857
- }
858
- render() {
859
- const t = this.componentClassNames("cre8-c-select", {
860
- "cre8-is-error": this.isError,
861
- "cre8-is-success": this.isSuccess
862
- });
863
- return o`
864
- <div class="${t}">
198
+ </cre8-field-note>`;
199
+ }
200
+ return null;
201
+ }
202
+ render() {
203
+ const componentClassNames = this.componentClassNames('cre8-c-select', {
204
+ 'cre8-is-error': this.isError,
205
+ 'cre8-is-success': this.isSuccess,
206
+ });
207
+ return html `
208
+ <div class="${componentClassNames}">
865
209
  <label class="cre8-c-select__label" for="${this.fieldId}">${this.label}</label>
866
210
  <div class="cre8-c-select__body">
867
211
  <select
868
212
  class="cre8-c-select__input"
869
213
  id=${this.fieldId}
870
- name=${u(this.name)}
214
+ name=${ifDefined(this.name)}
871
215
  ?required=${this.required}
872
216
  ?disabled=${this.disabled}
873
- aria-describedby="${u(this._fieldNoteAria())}"
217
+ aria-describedby="${ifDefined(this._fieldNoteAria())}"
874
218
  @change=${this._handleOnChange}
875
219
  >
876
220
  ${this._renderSelectOptions()}
877
221
  </select>
878
222
  <div class="cre8-c-select__icons">
879
- <cre8-icon svg='${x}' rotate="180" class="cre8-c-select__icon-arrow" aria-hidden='true'>
223
+ <cre8-icon svg='${svgCaretUp}' rotate="180" class="cre8-c-select__icon-arrow" aria-hidden='true'>
880
224
  </div>
881
225
  </div>
882
226
  </div>
883
- ${this.fieldNote || this.slotNotEmpty("fieldNote") ? o`
227
+ ${this.fieldNote || this.slotNotEmpty('fieldNote')
228
+ ? html `
884
229
  <cre8-field-note
885
230
  id=${this.ariaDescribedBy}
886
231
  class="cre8-c-select__field-note"
887
- ><slot name="fieldNote">${this.fieldNote}</slot></cre8-field-note>` : h}
232
+ ><slot name="fieldNote">${this.fieldNote}</slot></cre8-field-note>`
233
+ : nothing}
888
234
  ${this._renderSuccessErrorFieldNote()}
889
235
  `;
890
- }
891
- };
892
- c.styles = [y];
893
- let e = c;
894
- r([
895
- i({ type: Array })
896
- ], e.prototype, "items");
897
- r([
898
- i()
899
- ], e.prototype, "label");
900
- r([
901
- i()
902
- ], e.prototype, "fieldId");
903
- r([
904
- i()
905
- ], e.prototype, "fieldNote");
906
- r([
907
- i()
908
- ], e.prototype, "ariaDescribedBy");
909
- r([
910
- i()
911
- ], e.prototype, "validationAriaDescribedBy");
912
- r([
913
- i({ type: Boolean, reflect: !0 })
914
- ], e.prototype, "required");
915
- r([
916
- i({ type: Boolean, reflect: !0 })
917
- ], e.prototype, "disabled");
918
- r([
919
- i({ type: Boolean, reflect: !0 })
920
- ], e.prototype, "isError");
921
- r([
922
- i()
923
- ], e.prototype, "errorNote");
924
- r([
925
- i({ type: Boolean, reflect: !0 })
926
- ], e.prototype, "isSuccess");
927
- r([
928
- i()
929
- ], e.prototype, "successNote");
930
- r([
931
- f("option")
932
- ], e.prototype, "_selectOptions");
933
- customElements.get("cre8-select") === void 0 && customElements.define("cre8-select", e);
934
- export {
935
- e as Cre8Select
936
- };
236
+ }
237
+ }
238
+ Cre8Select.styles = [styles];
239
+ __decorate([
240
+ property({ type: Array })
241
+ ], Cre8Select.prototype, "items", void 0);
242
+ __decorate([
243
+ property()
244
+ ], Cre8Select.prototype, "label", void 0);
245
+ __decorate([
246
+ property()
247
+ ], Cre8Select.prototype, "fieldId", void 0);
248
+ __decorate([
249
+ property()
250
+ ], Cre8Select.prototype, "fieldNote", void 0);
251
+ __decorate([
252
+ property()
253
+ ], Cre8Select.prototype, "ariaDescribedBy", void 0);
254
+ __decorate([
255
+ property()
256
+ ], Cre8Select.prototype, "validationAriaDescribedBy", void 0);
257
+ __decorate([
258
+ property({ type: Boolean, reflect: true })
259
+ ], Cre8Select.prototype, "required", void 0);
260
+ __decorate([
261
+ property({ type: Boolean, reflect: true })
262
+ ], Cre8Select.prototype, "disabled", void 0);
263
+ __decorate([
264
+ property({ type: Boolean, reflect: true })
265
+ ], Cre8Select.prototype, "isError", void 0);
266
+ __decorate([
267
+ property()
268
+ ], Cre8Select.prototype, "errorNote", void 0);
269
+ __decorate([
270
+ property({ type: Boolean, reflect: true })
271
+ ], Cre8Select.prototype, "isSuccess", void 0);
272
+ __decorate([
273
+ property()
274
+ ], Cre8Select.prototype, "successNote", void 0);
275
+ __decorate([
276
+ queryAll('option')
277
+ ], Cre8Select.prototype, "_selectOptions", void 0);
278
+ if (customElements.get('cre8-select') === undefined) {
279
+ customElements.define('cre8-select', Cre8Select);
280
+ }
281
+ //# sourceMappingURL=select.js.map