@rededor/cura 1.7.1 → 1.8.0

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 (556) hide show
  1. package/dist/cjs/cura-accordion_20.cjs.entry.js +485 -138
  2. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-alert.cjs.entry.js +9 -12
  4. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura-alert.entry.cjs.js.map +1 -0
  6. package/dist/cjs/cura-badge-counter.cjs.entry.js +16 -8
  7. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +1 -0
  9. package/dist/cjs/cura-badge-dot.cjs.entry.js +14 -5
  10. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +1 -0
  12. package/dist/cjs/cura-badge-pill.cjs.entry.js +23 -7
  13. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +1 -0
  15. package/dist/cjs/cura-button-outline.cjs.entry.js +46 -8
  16. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  17. package/dist/cjs/cura-button-outline.entry.cjs.js.map +1 -0
  18. package/dist/cjs/cura-button-select.cjs.entry.js +7 -12
  19. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  20. package/dist/cjs/cura-button-select.entry.cjs.js.map +1 -0
  21. package/dist/cjs/{cura-button.definitions-f036371c.js → cura-button.definitions-B3SK8MaV.js} +2 -1
  22. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +1 -0
  23. package/dist/cjs/cura-calendar.cjs.entry.js +203 -94
  24. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  25. package/dist/cjs/cura-calendar.entry.cjs.js.map +1 -0
  26. package/dist/cjs/cura-card.cjs.entry.js +34 -6
  27. package/dist/cjs/cura-card.cjs.entry.js.map +1 -1
  28. package/dist/cjs/cura-card.entry.cjs.js.map +1 -0
  29. package/dist/cjs/cura-checkbox.cjs.entry.js +72 -20
  30. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cura-checkbox.entry.cjs.js.map +1 -0
  32. package/dist/cjs/cura-display.cjs.entry.js +25 -7
  33. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  34. package/dist/cjs/cura-display.entry.cjs.js.map +1 -0
  35. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +5 -6
  36. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
  37. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +1 -0
  38. package/dist/cjs/{cura-forms.definitions-c164f1b8.js → cura-forms.definitions-DVLuO67c.js} +2 -1
  39. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +1 -0
  40. package/dist/cjs/{cura-icon.definitions-5223028b.js → cura-icon.definitions-DT0wF67y.js} +2 -1
  41. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +1 -0
  42. package/dist/cjs/cura-icons-view.cjs.entry.js +7 -8
  43. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  44. package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -0
  45. package/dist/cjs/cura-input-date.cjs.entry.js +32 -15
  46. package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
  47. package/dist/cjs/cura-input-date.entry.cjs.js.map +1 -0
  48. package/dist/cjs/cura-loader-bar.cjs.entry.js +4 -5
  49. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
  50. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +1 -0
  51. package/dist/cjs/cura-modal.cjs.entry.js +46 -15
  52. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  53. package/dist/cjs/cura-modal.entry.cjs.js.map +1 -0
  54. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +1 -0
  55. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +25 -15
  56. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -1
  57. package/dist/cjs/cura-radio.cjs.entry.js +73 -21
  58. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  59. package/dist/cjs/cura-radio.entry.cjs.js.map +1 -0
  60. package/dist/cjs/cura-stepper.cjs.entry.js +23 -6
  61. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
  62. package/dist/cjs/cura-stepper.entry.cjs.js.map +1 -0
  63. package/dist/cjs/cura-switch.cjs.entry.js +61 -18
  64. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  65. package/dist/cjs/cura-switch.entry.cjs.js.map +1 -0
  66. package/dist/cjs/cura-tabs-button.cjs.entry.js +6 -9
  67. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -1
  68. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +1 -0
  69. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +6 -9
  70. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -1
  71. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +1 -0
  72. package/dist/cjs/{cura-tabs.definitions-b8955ad4.js → cura-tabs.definitions-CGqqGE2e.js} +2 -1
  73. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +1 -0
  74. package/dist/cjs/{cura-theme-module-09bb63a4.js → cura-theme-module-CJkmAxBA.js} +94 -9
  75. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +1 -0
  76. package/dist/cjs/cura-toast.cjs.entry.js +8 -11
  77. package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
  78. package/dist/cjs/cura-toast.entry.cjs.js.map +1 -0
  79. package/dist/cjs/cura-tooltip.cjs.entry.js +9 -11
  80. package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
  81. package/dist/cjs/cura-tooltip.entry.cjs.js.map +1 -0
  82. package/dist/cjs/cura.cjs.js +9 -10
  83. package/dist/cjs/cura.cjs.js.map +1 -1
  84. package/dist/cjs/{index-60783089.js → index-BK9MSAiE.js} +947 -289
  85. package/dist/cjs/index-BK9MSAiE.js.map +1 -0
  86. package/dist/cjs/{index-6dc29195.js → index-EyP6Zlkd.js} +2 -1
  87. package/dist/cjs/index-EyP6Zlkd.js.map +1 -0
  88. package/dist/cjs/index.cjs.js +2 -4
  89. package/dist/cjs/index.cjs.js.map +1 -1
  90. package/dist/cjs/loader.cjs.js +5 -8
  91. package/dist/cjs/loader.cjs.js.map +1 -1
  92. package/dist/collection/collection-manifest.json +1 -1
  93. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +57 -18
  94. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
  95. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +45 -9
  96. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
  97. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +24 -7
  98. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
  99. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +8 -4
  100. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +1 -1
  101. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +19 -3
  102. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -1
  103. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +40 -9
  104. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  105. package/dist/collection/components/buttons/cura-button/cura-button.js +86 -17
  106. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  107. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +86 -17
  108. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  109. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +25 -13
  110. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  111. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +81 -16
  112. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  113. package/dist/collection/components/cura-alert/cura-alert.js +19 -11
  114. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  115. package/dist/collection/components/cura-avatar/cura-avatar.js +48 -13
  116. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
  117. package/dist/collection/components/cura-calendar/cura-calendar.js +196 -24
  118. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  119. package/dist/collection/components/cura-card/cura-card.js +48 -7
  120. package/dist/collection/components/cura-card/cura-card.js.map +1 -1
  121. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +31 -9
  122. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -1
  123. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +91 -28
  124. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  125. package/dist/collection/components/cura-icon/cura-icon.js +15 -6
  126. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  127. package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
  128. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  129. package/dist/collection/components/cura-modal/cura-modal.css +0 -1
  130. package/dist/collection/components/cura-modal/cura-modal.js +65 -17
  131. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  132. package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
  133. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
  134. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +21 -8
  135. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -1
  136. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +26 -9
  137. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -1
  138. package/dist/collection/components/cura-stepper/cura-stepper.js +34 -6
  139. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
  140. package/dist/collection/components/cura-toast/cura-toast.js +24 -12
  141. package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
  142. package/dist/collection/components/cura-tooltip/cura-tooltip.js +25 -12
  143. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
  144. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +114 -29
  145. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  146. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +1 -1
  147. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +74 -16
  148. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -1
  149. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +13 -0
  150. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -1
  151. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +132 -28
  152. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  153. package/dist/collection/components/forms/cura-label/cura-label.js +46 -9
  154. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  155. package/dist/collection/components/forms/cura-radio/cura-radio.js +109 -28
  156. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  157. package/dist/collection/components/forms/cura-select/cura-select.js +114 -34
  158. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  159. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +13 -6
  160. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
  161. package/dist/collection/components/forms/cura-switch/cura-switch.js +85 -21
  162. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  163. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +6 -2
  164. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
  165. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +14 -4
  166. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
  167. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +21 -9
  168. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -1
  169. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +21 -9
  170. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -1
  171. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +9 -3
  172. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -1
  173. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +21 -9
  174. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -1
  175. package/dist/collection/components/text/cura-display/cura-display.js +39 -8
  176. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  177. package/dist/collection/components/text/cura-heading/cura-heading.js +53 -10
  178. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  179. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +39 -8
  180. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  181. package/dist/components/cura-accordion-item.js +24 -6
  182. package/dist/components/cura-accordion-item.js.map +1 -1
  183. package/dist/components/cura-accordion.js +34 -13
  184. package/dist/components/cura-accordion.js.map +1 -1
  185. package/dist/components/cura-alert.js +12 -14
  186. package/dist/components/cura-alert.js.map +1 -1
  187. package/dist/components/cura-avatar.js +25 -8
  188. package/dist/components/cura-avatar.js.map +1 -1
  189. package/dist/components/cura-badge-counter.js +2 -1
  190. package/dist/components/cura-badge-distance.js +7 -7
  191. package/dist/components/cura-badge-distance.js.map +1 -1
  192. package/dist/components/cura-badge-dot.js +14 -4
  193. package/dist/components/cura-badge-dot.js.map +1 -1
  194. package/dist/components/cura-badge-pill.js +2 -1
  195. package/dist/components/cura-button-outline.js +49 -10
  196. package/dist/components/cura-button-outline.js.map +1 -1
  197. package/dist/components/cura-button-select.js +10 -14
  198. package/dist/components/cura-button-select.js.map +1 -1
  199. package/dist/components/cura-button-transparent.js +2 -1
  200. package/dist/components/cura-button.js +49 -10
  201. package/dist/components/cura-button.js.map +1 -1
  202. package/dist/components/cura-calendar.js +2 -1
  203. package/dist/components/cura-card.js +34 -5
  204. package/dist/components/cura-card.js.map +1 -1
  205. package/dist/components/cura-checkbox.js +75 -22
  206. package/dist/components/cura-checkbox.js.map +1 -1
  207. package/dist/components/cura-display.js +25 -6
  208. package/dist/components/cura-display.js.map +1 -1
  209. package/dist/components/cura-dropdown-search-category.js +5 -5
  210. package/dist/components/cura-dropdown-search-category.js.map +1 -1
  211. package/dist/components/cura-dropdown-search-not-found.js +6 -6
  212. package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
  213. package/dist/components/cura-dropdown-search-option.js +22 -10
  214. package/dist/components/cura-dropdown-search-option.js.map +1 -1
  215. package/dist/components/cura-dropdown-search.js +66 -27
  216. package/dist/components/cura-dropdown-search.js.map +1 -1
  217. package/dist/components/cura-heading.js +2 -1
  218. package/dist/components/cura-icon.js +2 -1
  219. package/dist/components/cura-icons-view.js +9 -9
  220. package/dist/components/cura-icons-view.js.map +1 -1
  221. package/dist/components/cura-input-date.js +40 -21
  222. package/dist/components/cura-input-date.js.map +1 -1
  223. package/dist/components/cura-input-text.js +2 -1
  224. package/dist/components/cura-label.js +2 -1
  225. package/dist/components/cura-loader-bar.js +2 -1
  226. package/dist/components/cura-loader-circle.js +2 -1
  227. package/dist/components/cura-modal.js +50 -18
  228. package/dist/components/cura-modal.js.map +1 -1
  229. package/dist/components/cura-page-template.js +4 -4
  230. package/dist/components/cura-page-template.js.map +1 -1
  231. package/dist/components/cura-paragraph.js +2 -1
  232. package/dist/components/cura-progress-bar.js +2 -1
  233. package/dist/components/cura-radio.js +75 -22
  234. package/dist/components/cura-radio.js.map +1 -1
  235. package/dist/components/cura-select-option.js +2 -1
  236. package/dist/components/cura-select.js +2 -1
  237. package/dist/components/cura-stepper-item.js +2 -1
  238. package/dist/components/cura-stepper.js +30 -12
  239. package/dist/components/cura-stepper.js.map +1 -1
  240. package/dist/components/cura-switch.js +62 -18
  241. package/dist/components/cura-switch.js.map +1 -1
  242. package/dist/components/cura-tabs-button.js +9 -11
  243. package/dist/components/cura-tabs-button.js.map +1 -1
  244. package/dist/components/cura-tabs-group.js +5 -5
  245. package/dist/components/cura-tabs-group.js.map +1 -1
  246. package/dist/components/cura-tabs-transparent.js +8 -10
  247. package/dist/components/cura-tabs-transparent.js.map +1 -1
  248. package/dist/components/cura-tabs.js +8 -10
  249. package/dist/components/cura-tabs.js.map +1 -1
  250. package/dist/components/cura-toast.js +12 -14
  251. package/dist/components/cura-toast.js.map +1 -1
  252. package/dist/components/cura-tooltip.js +15 -16
  253. package/dist/components/cura-tooltip.js.map +1 -1
  254. package/dist/components/index.js +3 -547
  255. package/dist/components/index.js.map +1 -1
  256. package/dist/components/{cura-icon2.js → p-B5aO1chh.js} +5 -6
  257. package/dist/components/p-B5aO1chh.js.map +1 -0
  258. package/dist/components/{cura-heading2.js → p-BHEafDKD.js} +34 -7
  259. package/dist/components/p-BHEafDKD.js.map +1 -0
  260. package/dist/components/{cura-button-transparent2.js → p-BRDqwZ4N.js} +48 -11
  261. package/dist/components/p-BRDqwZ4N.js.map +1 -0
  262. package/dist/{esm/cura-button.definitions-617d3bad.js → components/p-BSI2FkNn.js} +2 -1
  263. package/dist/components/p-BSI2FkNn.js.map +1 -0
  264. package/dist/components/{cura-badge-counter2.js → p-C72aF-gL.js} +18 -9
  265. package/dist/components/p-C72aF-gL.js.map +1 -0
  266. package/dist/components/{cura-tabs.definitions.js → p-CHcd-uKK.js} +2 -1
  267. package/dist/components/p-CHcd-uKK.js.map +1 -0
  268. package/dist/components/p-D1cPOZpG.js +2617 -0
  269. package/dist/components/p-D1cPOZpG.js.map +1 -0
  270. package/dist/components/{cura-paragraph2.js → p-DI4g-ZH4.js} +26 -7
  271. package/dist/components/p-DI4g-ZH4.js.map +1 -0
  272. package/dist/components/{cura-label2.js → p-DR1RHrEX.js} +30 -7
  273. package/dist/components/p-DR1RHrEX.js.map +1 -0
  274. package/dist/components/{cura-stepper-item2.js → p-DaPc6Dxl.js} +23 -14
  275. package/dist/components/p-DaPc6Dxl.js.map +1 -0
  276. package/dist/components/{cura-forms.definitions.js → p-Dot54hbB.js} +2 -1
  277. package/dist/components/p-Dot54hbB.js.map +1 -0
  278. package/dist/components/{cura-select-option2.js → p-DpIu_Oxz.js} +8 -9
  279. package/dist/components/p-DpIu_Oxz.js.map +1 -0
  280. package/dist/components/{cura-loader-circle2.js → p-Dqm2sAwv.js} +13 -7
  281. package/dist/components/p-Dqm2sAwv.js.map +1 -0
  282. package/dist/components/{cura-progress-bar2.js → p-FTSrgi0q.js} +11 -8
  283. package/dist/components/p-FTSrgi0q.js.map +1 -0
  284. package/dist/components/{cura-loader-bar2.js → p-KIQMkSRF.js} +5 -5
  285. package/dist/components/p-KIQMkSRF.js.map +1 -0
  286. package/dist/components/{cura-badge-pill2.js → p-cOEGtL9C.js} +26 -9
  287. package/dist/components/p-cOEGtL9C.js.map +1 -0
  288. package/dist/components/{cura-calendar2.js → p-e-P5qR3J.js} +210 -100
  289. package/dist/components/p-e-P5qR3J.js.map +1 -0
  290. package/dist/components/{cura-select2.js → p-y6Cly9DJ.js} +87 -31
  291. package/dist/components/p-y6Cly9DJ.js.map +1 -0
  292. package/dist/components/{cura-input-text2.js → p-zz_zOPBZ.js} +75 -102
  293. package/dist/components/p-zz_zOPBZ.js.map +1 -0
  294. package/dist/cura/cura-alert.entry.esm.js.map +1 -0
  295. package/dist/cura/cura-badge-counter.entry.esm.js.map +1 -0
  296. package/dist/cura/cura-badge-dot.entry.esm.js.map +1 -0
  297. package/dist/cura/cura-badge-pill.entry.esm.js.map +1 -0
  298. package/dist/cura/cura-button-outline.entry.esm.js.map +1 -0
  299. package/dist/cura/cura-button-select.entry.esm.js.map +1 -0
  300. package/dist/cura/{p-12a4ae7e.entry.js.map → cura-calendar.entry.esm.js.map} +1 -1
  301. package/dist/cura/{p-53d68d72.entry.js.map → cura-card.entry.esm.js.map} +1 -1
  302. package/dist/cura/cura-checkbox.entry.esm.js.map +1 -0
  303. package/dist/cura/cura-display.entry.esm.js.map +1 -0
  304. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +1 -0
  305. package/dist/cura/cura-icons-view.entry.esm.js.map +1 -0
  306. package/dist/cura/cura-input-date.entry.esm.js.map +1 -0
  307. package/dist/cura/cura-loader-bar.entry.esm.js.map +1 -0
  308. package/dist/cura/{p-1ef21ae9.entry.js.map → cura-modal.entry.esm.js.map} +1 -1
  309. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +1 -0
  310. package/dist/cura/cura-radio.entry.esm.js.map +1 -0
  311. package/dist/cura/cura-stepper.entry.esm.js.map +1 -0
  312. package/dist/cura/cura-switch.entry.esm.js.map +1 -0
  313. package/dist/cura/cura-tabs-button.entry.esm.js.map +1 -0
  314. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +1 -0
  315. package/dist/cura/cura-toast.entry.esm.js.map +1 -0
  316. package/dist/cura/cura-tooltip.entry.esm.js.map +1 -0
  317. package/dist/cura/cura.esm.js +1 -1
  318. package/dist/cura/cura.esm.js.map +1 -1
  319. package/dist/cura/index.esm.js +1 -1
  320. package/dist/cura/index.esm.js.map +1 -1
  321. package/dist/cura/loader.esm.js.map +1 -0
  322. package/dist/cura/p-077019da.entry.js +2 -0
  323. package/dist/cura/p-077019da.entry.js.map +1 -0
  324. package/dist/cura/p-07783235.entry.js +2 -0
  325. package/dist/cura/p-07783235.entry.js.map +1 -0
  326. package/dist/cura/p-090e297c.entry.js +2 -0
  327. package/dist/cura/p-090e297c.entry.js.map +1 -0
  328. package/dist/cura/p-16c0b52c.entry.js +2 -0
  329. package/dist/cura/p-16c0b52c.entry.js.map +1 -0
  330. package/dist/cura/p-2632183e.entry.js +2 -0
  331. package/dist/cura/p-2632183e.entry.js.map +1 -0
  332. package/dist/cura/p-32015dcc.entry.js +2 -0
  333. package/dist/cura/p-32015dcc.entry.js.map +1 -0
  334. package/dist/cura/p-32f94709.entry.js +2 -0
  335. package/dist/cura/p-32f94709.entry.js.map +1 -0
  336. package/dist/cura/p-3d6040e2.entry.js +2 -0
  337. package/dist/cura/p-3d6040e2.entry.js.map +1 -0
  338. package/dist/cura/p-4ac578a6.entry.js +2 -0
  339. package/dist/cura/p-4ac578a6.entry.js.map +1 -0
  340. package/dist/cura/p-4bde448e.entry.js +2 -0
  341. package/dist/cura/p-4bde448e.entry.js.map +1 -0
  342. package/dist/cura/p-6feba852.entry.js +2 -0
  343. package/dist/cura/p-6feba852.entry.js.map +1 -0
  344. package/dist/cura/p-7586fd07.entry.js +2 -0
  345. package/dist/cura/p-7586fd07.entry.js.map +1 -0
  346. package/dist/cura/p-76cbb798.entry.js +2 -0
  347. package/dist/cura/p-76cbb798.entry.js.map +1 -0
  348. package/dist/cura/p-7fd143aa.entry.js +2 -0
  349. package/dist/cura/p-7fd143aa.entry.js.map +1 -0
  350. package/dist/cura/p-8c83f259.entry.js +2 -0
  351. package/dist/cura/p-8c83f259.entry.js.map +1 -0
  352. package/dist/cura/p-95cd7918.entry.js +2 -0
  353. package/dist/cura/p-95cd7918.entry.js.map +1 -0
  354. package/dist/cura/{p-272c784a.js → p-964stZ3D.js} +1 -1
  355. package/dist/cura/p-964stZ3D.js.map +1 -0
  356. package/dist/cura/p-9ef5444e.entry.js +2 -0
  357. package/dist/cura/p-9ef5444e.entry.js.map +1 -0
  358. package/dist/cura/p-BPKQjAwN.js +2 -0
  359. package/dist/cura/p-BPKQjAwN.js.map +1 -0
  360. package/dist/cura/{p-53c18ed4.js → p-BSI2FkNn.js} +1 -1
  361. package/dist/cura/p-BSI2FkNn.js.map +1 -0
  362. package/dist/cura/{p-efcb32eb.js → p-CHcd-uKK.js} +1 -1
  363. package/dist/cura/p-CHcd-uKK.js.map +1 -0
  364. package/dist/cura/{p-f9b8f665.js → p-Dot54hbB.js} +1 -1
  365. package/dist/cura/p-Dot54hbB.js.map +1 -0
  366. package/dist/cura/p-PPMZr_VE.js +3 -0
  367. package/dist/cura/p-PPMZr_VE.js.map +1 -0
  368. package/dist/cura/p-c6f240f0.entry.js +2 -0
  369. package/dist/cura/p-c6f240f0.entry.js.map +1 -0
  370. package/dist/cura/p-ceb646df.entry.js +2 -0
  371. package/dist/cura/p-ceb646df.entry.js.map +1 -0
  372. package/dist/cura/p-d040f8b9.entry.js +2 -0
  373. package/dist/cura/p-d040f8b9.entry.js.map +1 -0
  374. package/dist/cura/p-deb0b764.entry.js +2 -0
  375. package/dist/cura/p-deb0b764.entry.js.map +1 -0
  376. package/dist/cura/p-df7cb250.entry.js +2 -0
  377. package/dist/cura/p-df7cb250.entry.js.map +1 -0
  378. package/dist/cura/p-f9af3a3b.entry.js +2 -0
  379. package/dist/cura/p-f9af3a3b.entry.js.map +1 -0
  380. package/dist/cura/p-fc3b57a8.entry.js +2 -0
  381. package/dist/cura/p-fc3b57a8.entry.js.map +1 -0
  382. package/dist/cura/{p-48f9289b.js → p-sjLA93YY.js} +1 -1
  383. package/dist/cura/p-sjLA93YY.js.map +1 -0
  384. package/dist/esm/cura-accordion_20.entry.js +484 -135
  385. package/dist/esm/cura-accordion_20.entry.js.map +1 -1
  386. package/dist/esm/cura-alert.entry.js +9 -10
  387. package/dist/esm/cura-alert.entry.js.map +1 -1
  388. package/dist/esm/cura-badge-counter.entry.js +16 -6
  389. package/dist/esm/cura-badge-counter.entry.js.map +1 -1
  390. package/dist/esm/cura-badge-dot.entry.js +14 -3
  391. package/dist/esm/cura-badge-dot.entry.js.map +1 -1
  392. package/dist/esm/cura-badge-pill.entry.js +23 -5
  393. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  394. package/dist/esm/cura-button-outline.entry.js +46 -6
  395. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  396. package/dist/esm/cura-button-select.entry.js +7 -10
  397. package/dist/esm/cura-button-select.entry.js.map +1 -1
  398. package/dist/{components/cura-button.definitions.js → esm/cura-button.definitions-BSI2FkNn.js} +2 -1
  399. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +1 -0
  400. package/dist/esm/cura-calendar.entry.js +203 -92
  401. package/dist/esm/cura-calendar.entry.js.map +1 -1
  402. package/dist/esm/cura-card.entry.js +34 -4
  403. package/dist/esm/cura-card.entry.js.map +1 -1
  404. package/dist/esm/cura-checkbox.entry.js +72 -18
  405. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  406. package/dist/esm/cura-display.entry.js +25 -5
  407. package/dist/esm/cura-display.entry.js.map +1 -1
  408. package/dist/esm/cura-dropdown-search-not-found.entry.js +5 -4
  409. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
  410. package/dist/esm/{cura-forms.definitions-2f963167.js → cura-forms.definitions-Dot54hbB.js} +2 -1
  411. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +1 -0
  412. package/dist/esm/{cura-icon.definitions-a892c0e2.js → cura-icon.definitions-sjLA93YY.js} +2 -1
  413. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +1 -0
  414. package/dist/esm/cura-icons-view.entry.js +7 -6
  415. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  416. package/dist/esm/cura-input-date.entry.js +32 -13
  417. package/dist/esm/cura-input-date.entry.js.map +1 -1
  418. package/dist/esm/cura-loader-bar.entry.js +4 -3
  419. package/dist/esm/cura-loader-bar.entry.js.map +1 -1
  420. package/dist/esm/cura-modal.entry.js +46 -13
  421. package/dist/esm/cura-modal.entry.js.map +1 -1
  422. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +1 -0
  423. package/dist/esm/cura-progress-bar_2.entry.js +25 -13
  424. package/dist/esm/cura-progress-bar_2.entry.js.map +1 -1
  425. package/dist/esm/cura-radio.entry.js +73 -19
  426. package/dist/esm/cura-radio.entry.js.map +1 -1
  427. package/dist/esm/cura-stepper.entry.js +23 -4
  428. package/dist/esm/cura-stepper.entry.js.map +1 -1
  429. package/dist/esm/cura-switch.entry.js +61 -16
  430. package/dist/esm/cura-switch.entry.js.map +1 -1
  431. package/dist/esm/cura-tabs-button.entry.js +6 -7
  432. package/dist/esm/cura-tabs-button.entry.js.map +1 -1
  433. package/dist/esm/cura-tabs-transparent.entry.js +6 -7
  434. package/dist/esm/cura-tabs-transparent.entry.js.map +1 -1
  435. package/dist/esm/{cura-tabs.definitions-a017126e.js → cura-tabs.definitions-CHcd-uKK.js} +2 -1
  436. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +1 -0
  437. package/dist/esm/{cura-theme-module-bf286f68.js → cura-theme-module-BPKQjAwN.js} +88 -4
  438. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +1 -0
  439. package/dist/esm/cura-toast.entry.js +8 -9
  440. package/dist/esm/cura-toast.entry.js.map +1 -1
  441. package/dist/esm/cura-tooltip.entry.js +9 -9
  442. package/dist/esm/cura-tooltip.entry.js.map +1 -1
  443. package/dist/esm/cura.js +7 -7
  444. package/dist/esm/cura.js.map +1 -1
  445. package/dist/esm/{index-fbee309a.js → index-964stZ3D.js} +2 -1
  446. package/dist/esm/index-964stZ3D.js.map +1 -0
  447. package/dist/esm/{index-21683715.js → index-OdKytJIH.js} +947 -270
  448. package/dist/esm/index-OdKytJIH.js.map +1 -0
  449. package/dist/esm/index.js +2 -2
  450. package/dist/esm/index.js.map +1 -1
  451. package/dist/esm/loader.js +5 -6
  452. package/dist/esm/loader.js.map +1 -1
  453. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +4 -0
  454. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +14 -0
  455. package/dist/types/components.d.ts +718 -0
  456. package/dist/types/stencil-public-runtime.d.ts +25 -1
  457. package/package.json +5 -5
  458. package/dist/cjs/app-globals-6d5b51b6.js +0 -70
  459. package/dist/cjs/app-globals-6d5b51b6.js.map +0 -1
  460. package/dist/cjs/cura-button.definitions-f036371c.js.map +0 -1
  461. package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +0 -1
  462. package/dist/cjs/cura-icon.definitions-5223028b.js.map +0 -1
  463. package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +0 -1
  464. package/dist/cjs/cura-theme-module-09bb63a4.js.map +0 -1
  465. package/dist/cjs/index-60783089.js.map +0 -1
  466. package/dist/cjs/index-6dc29195.js.map +0 -1
  467. package/dist/cjs/static-44199808.js +0 -90
  468. package/dist/cjs/static-44199808.js.map +0 -1
  469. package/dist/components/cura-badge-counter2.js.map +0 -1
  470. package/dist/components/cura-badge-pill2.js.map +0 -1
  471. package/dist/components/cura-button-transparent2.js.map +0 -1
  472. package/dist/components/cura-button.definitions.js.map +0 -1
  473. package/dist/components/cura-calendar2.js.map +0 -1
  474. package/dist/components/cura-forms.definitions.js.map +0 -1
  475. package/dist/components/cura-heading2.js.map +0 -1
  476. package/dist/components/cura-icon2.js.map +0 -1
  477. package/dist/components/cura-input-text2.js.map +0 -1
  478. package/dist/components/cura-label2.js.map +0 -1
  479. package/dist/components/cura-loader-bar2.js.map +0 -1
  480. package/dist/components/cura-loader-circle2.js.map +0 -1
  481. package/dist/components/cura-paragraph2.js.map +0 -1
  482. package/dist/components/cura-progress-bar2.js.map +0 -1
  483. package/dist/components/cura-select-option2.js.map +0 -1
  484. package/dist/components/cura-select2.js.map +0 -1
  485. package/dist/components/cura-stepper-item2.js.map +0 -1
  486. package/dist/components/cura-tabs.definitions.js.map +0 -1
  487. package/dist/cura/p-0aeaf57a.entry.js +0 -2
  488. package/dist/cura/p-0aeaf57a.entry.js.map +0 -1
  489. package/dist/cura/p-0b872499.entry.js +0 -2
  490. package/dist/cura/p-0b872499.entry.js.map +0 -1
  491. package/dist/cura/p-0ccde0ff.entry.js +0 -2
  492. package/dist/cura/p-0ccde0ff.entry.js.map +0 -1
  493. package/dist/cura/p-12a4ae7e.entry.js +0 -2
  494. package/dist/cura/p-137f003b.entry.js +0 -2
  495. package/dist/cura/p-137f003b.entry.js.map +0 -1
  496. package/dist/cura/p-197213c0.entry.js +0 -2
  497. package/dist/cura/p-197213c0.entry.js.map +0 -1
  498. package/dist/cura/p-1ef21ae9.entry.js +0 -2
  499. package/dist/cura/p-202dc01a.entry.js +0 -2
  500. package/dist/cura/p-202dc01a.entry.js.map +0 -1
  501. package/dist/cura/p-20b05d8f.entry.js +0 -2
  502. package/dist/cura/p-20b05d8f.entry.js.map +0 -1
  503. package/dist/cura/p-272c784a.js.map +0 -1
  504. package/dist/cura/p-2db4deb3.js +0 -2
  505. package/dist/cura/p-2db4deb3.js.map +0 -1
  506. package/dist/cura/p-48f9289b.js.map +0 -1
  507. package/dist/cura/p-4ee8efca.js +0 -3
  508. package/dist/cura/p-4ee8efca.js.map +0 -1
  509. package/dist/cura/p-53c18ed4.js.map +0 -1
  510. package/dist/cura/p-53d68d72.entry.js +0 -2
  511. package/dist/cura/p-5a43e745.entry.js +0 -2
  512. package/dist/cura/p-5a43e745.entry.js.map +0 -1
  513. package/dist/cura/p-633c13cd.entry.js +0 -2
  514. package/dist/cura/p-633c13cd.entry.js.map +0 -1
  515. package/dist/cura/p-6cbd49dd.js +0 -2
  516. package/dist/cura/p-6cbd49dd.js.map +0 -1
  517. package/dist/cura/p-7a68835f.entry.js +0 -2
  518. package/dist/cura/p-7a68835f.entry.js.map +0 -1
  519. package/dist/cura/p-7e10b146.entry.js +0 -2
  520. package/dist/cura/p-7e10b146.entry.js.map +0 -1
  521. package/dist/cura/p-7e2d1229.entry.js +0 -2
  522. package/dist/cura/p-7e2d1229.entry.js.map +0 -1
  523. package/dist/cura/p-8aade007.entry.js +0 -2
  524. package/dist/cura/p-8aade007.entry.js.map +0 -1
  525. package/dist/cura/p-9f460031.js +0 -2
  526. package/dist/cura/p-9f460031.js.map +0 -1
  527. package/dist/cura/p-ac0c90af.entry.js +0 -2
  528. package/dist/cura/p-ac0c90af.entry.js.map +0 -1
  529. package/dist/cura/p-b254bbe4.entry.js +0 -2
  530. package/dist/cura/p-b254bbe4.entry.js.map +0 -1
  531. package/dist/cura/p-b4ee956b.entry.js +0 -2
  532. package/dist/cura/p-b4ee956b.entry.js.map +0 -1
  533. package/dist/cura/p-b60a6aaa.entry.js +0 -2
  534. package/dist/cura/p-b60a6aaa.entry.js.map +0 -1
  535. package/dist/cura/p-b6ff8ac1.entry.js +0 -2
  536. package/dist/cura/p-b6ff8ac1.entry.js.map +0 -1
  537. package/dist/cura/p-d8e1e182.entry.js +0 -2
  538. package/dist/cura/p-d8e1e182.entry.js.map +0 -1
  539. package/dist/cura/p-d97719bc.entry.js +0 -2
  540. package/dist/cura/p-d97719bc.entry.js.map +0 -1
  541. package/dist/cura/p-daf422ce.entry.js +0 -2
  542. package/dist/cura/p-daf422ce.entry.js.map +0 -1
  543. package/dist/cura/p-efcb32eb.js.map +0 -1
  544. package/dist/cura/p-f9b8f665.js.map +0 -1
  545. package/dist/esm/app-globals-c2abb41c.js +0 -68
  546. package/dist/esm/app-globals-c2abb41c.js.map +0 -1
  547. package/dist/esm/cura-button.definitions-617d3bad.js.map +0 -1
  548. package/dist/esm/cura-forms.definitions-2f963167.js.map +0 -1
  549. package/dist/esm/cura-icon.definitions-a892c0e2.js.map +0 -1
  550. package/dist/esm/cura-tabs.definitions-a017126e.js.map +0 -1
  551. package/dist/esm/cura-theme-module-bf286f68.js.map +0 -1
  552. package/dist/esm/index-21683715.js.map +0 -1
  553. package/dist/esm/index-fbee309a.js.map +0 -1
  554. package/dist/esm/static-090f0088.js +0 -88
  555. package/dist/esm/static-090f0088.js.map +0 -1
  556. package/dist/loader/package.json +0 -11
@@ -1,4 +1,5 @@
1
- import { S as Static } from './cura-input-text2.js';
1
+ import { C as CuraThemeModule, g as globalScripts } from './p-D1cPOZpG.js';
2
+ export { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-D1cPOZpG.js';
2
3
  import { CuraAccordion } from './cura-accordion.js';
3
4
  import { CuraAccordionItem } from './cura-accordion-item.js';
4
5
  import { CuraAlert } from './cura-alert.js';
@@ -43,552 +44,6 @@ import { CuraTabsGroup } from './cura-tabs-group.js';
43
44
  import { CuraTabsTransparent } from './cura-tabs-transparent.js';
44
45
  import { CuraToast } from './cura-toast.js';
45
46
  import { CuraTooltip } from './cura-tooltip.js';
46
- export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
47
-
48
- /**
49
- * Cura Default Theme
50
- */
51
- const ThemeDefault = {
52
- /* Colors */
53
- color: {
54
- primary: {
55
- '100': '113,197,232',
56
- '300': '68,142,205',
57
- '500': '0,61,165',
58
- '700': '0,48,117',
59
- '900': '0,40,85'
60
- },
61
- secondary: {
62
- '100': '245,236,227',
63
- '300': '221,192,162',
64
- '500': '204,160,116',
65
- '700': '136,107,77',
66
- '900': '41,32,23'
67
- },
68
- accent: {
69
- '100': '255,194,123',
70
- '300': '255,168,74',
71
- '500': '255,130,0',
72
- '700': '215,114,10',
73
- '900': '155,90,26'
74
- }
75
- },
76
- /* Spacing */
77
- spacing: {
78
- base: 4,
79
- },
80
- /* Fonts */
81
- font: {
82
- size: '14px',
83
- color: '#4A4A4A',
84
- body: "'Gotham', Arial, Helvetica, sans-serif",
85
- heading: "'Gotham', Arial, Helvetica, sans-serif",
86
- display: "'Gotham', Arial, Helvetica, sans-serif",
87
- weights: {
88
- thin: 100,
89
- light: 300,
90
- regular: 400,
91
- medium: 500,
92
- bold: 700,
93
- black: 900
94
- },
95
- }
96
- };
97
-
98
- /**
99
- * Maternity Theme
100
- */
101
- const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
102
- /* Custom */
103
- /* Colors */
104
- color: {
105
- primary: {
106
- '100': '248,227,226',
107
- '300': '255,179,171',
108
- '500': '218,113,111',
109
- '700': '145,75,74',
110
- '900': '73,38,37'
111
- },
112
- secondary: {
113
- '100': '253,251,249',
114
- '300': '247,244,238',
115
- '500': '245,236,227',
116
- '700': '204,197,189',
117
- '900': '163,157,151'
118
- },
119
- accent: {
120
- '100': '236,239,249',
121
- '300': '133,153,203',
122
- '500': '11,20,151',
123
- '700': '7,13,101',
124
- '900': '4,7,50'
125
- }
126
- }, font: {
127
- size: '14px',
128
- color: '#4A4A4A',
129
- body: "'Gotham', Arial, Helvetica, sans-serif",
130
- heading: "'Gotham', Arial, Helvetica, sans-serif",
131
- display: "'Gotham', Arial, Helvetica, sans-serif",
132
- weights: {
133
- thin: 100,
134
- light: 300,
135
- regular: 400,
136
- medium: 500,
137
- bold: 700,
138
- black: 900
139
- },
140
- } });
141
-
142
- /**
143
- * Oncology Theme
144
- */
145
- const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
146
- /* Custom */
147
- /* Colors */
148
- color: {
149
- primary: {
150
- '100': '170,190,225',
151
- '300': '85,126,196',
152
- '500': '0,61,166',
153
- '700': '0,41,111',
154
- '900': '0,12,33'
155
- },
156
- secondary: {
157
- '100': '205,215,227',
158
- '300': '155,175,199',
159
- '500': '104,134,171',
160
- '700': '54,95,143',
161
- '900': '4,54,115',
162
- },
163
- accent: {
164
- '100': '153,207,255',
165
- '300': '71,169,255',
166
- '500': '0,131,245',
167
- '700': '0,109,204',
168
- '900': '0,88,164',
169
- },
170
- aux: {
171
- '100': '218,242,239',
172
- '300': '132,212,202',
173
- '500': '71,191,176',
174
- '700': '33,100,92',
175
- '900': '14,38,35',
176
- },
177
- }, font: {
178
- size: '14px',
179
- color: '#4A4A4A',
180
- body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
181
- heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
182
- display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
183
- weights: {
184
- thin: 100,
185
- light: 300,
186
- regular: 400,
187
- medium: 500,
188
- bold: 700,
189
- black: 900
190
- },
191
- } });
192
-
193
- /**
194
- * Richet Theme
195
- */
196
- const ThemeRichet = Object.assign(Object.assign({}, ThemeDefault), {
197
- /* Custom */
198
- /* Colors */
199
- color: {
200
- primary: {
201
- '100': '153,197,255',
202
- '300': '67,142,241',
203
- '500': '0,47,108',
204
- '700': '1,39,91',
205
- '900': '0,33,77'
206
- },
207
- secondary: {
208
- '100': '243,237,227',
209
- '300': '216,194,163',
210
- '500': '208,173,103',
211
- '700': '201,155,64',
212
- '900': '149,104,15'
213
- },
214
- accent: {
215
- '100': '167,230,215',
216
- '300': '130,225,209',
217
- '500': '44,213,196',
218
- '700': '26,188,169',
219
- '900': '0,150,129'
220
- }
221
- } });
222
-
223
- /**
224
- * Perinatal temporary Theme
225
- */
226
- const ThemePerinatalTemporary = Object.assign(Object.assign({}, ThemeDefault), {
227
- /* Custom */
228
- /* Colors */
229
- color: {
230
- primary: {
231
- '100': '239,226,228',
232
- '300': '226,196,200',
233
- '500': '199,134,141',
234
- '700': '175,91,109',
235
- '900': '147,58,77'
236
- },
237
- secondary: {
238
- '100': '233,226,220',
239
- '300': '211,196,186',
240
- '500': '189,167,151',
241
- '700': '95,84,76',
242
- '900': '38,33,30'
243
- },
244
- accent: {
245
- '100': '219,189,196',
246
- '300': '183,124,136',
247
- '500': '147,58,77',
248
- '700': '74,29,39',
249
- '900': '29,12,15'
250
- }
251
- } });
252
-
253
- /**
254
- * Legacy Default Theme
255
- */
256
- const ThemeLegacyDefault = Object.assign(Object.assign({}, ThemeDefault), {
257
- /* Custom */
258
- /* Colors */
259
- color: {
260
- primary: {
261
- '100': '204,217,231',
262
- '300': '85,128,174',
263
- '500': '0,65,134',
264
- '700': '0,43,89',
265
- '900': '0,13,27'
266
- },
267
- secondary: {
268
- '100': '238,232,206',
269
- '300': '198,180,92',
270
- '500': '170,142,11',
271
- '700': '113,95,7',
272
- '900': '34,28,2'
273
- },
274
- accent: {
275
- '100': '249,232,213',
276
- '300': '228,160,79',
277
- '500': '223,141,44',
278
- '700': '149,94,29',
279
- '900': '45,28,9'
280
- }
281
- },
282
- /* Fonts */
283
- font: {
284
- size: '14px',
285
- color: '#4A4A4A',
286
- body: "'Roboto', Arial, Helvetica, sans-serif",
287
- heading: "'Roboto', Arial, Helvetica, sans-serif",
288
- display: "'Roboto', Arial, Helvetica, sans-serif",
289
- weights: {
290
- thin: 100,
291
- light: 300,
292
- regular: 400,
293
- medium: 500,
294
- bold: 700,
295
- black: 900
296
- },
297
- } });
298
-
299
- const ThemePresets = {
300
- 'default': ThemeDefault,
301
- 'maternidade': ThemeMaternity,
302
- 'oncologia': ThemeOncology,
303
- 'richet': ThemeRichet,
304
- 'perinatalTemp': ThemePerinatalTemporary,
305
- 'legacyDefault': ThemeLegacyDefault
306
- };
307
-
308
- class CuraThemeColorsModule {
309
- constructor() {
310
- this.NeutralDepthAlias = {
311
- 'purewhite': '0',
312
- 'white': '100',
313
- 'pale': '200',
314
- 'lighter': '300',
315
- 'light': '400',
316
- 'base': '500',
317
- 'medium': '600',
318
- 'dark': '700',
319
- 'darker': '800',
320
- 'black': '900',
321
- };
322
- this.ColorDepthAlias = {
323
- 'lighter': '100',
324
- 'light': '300',
325
- 'base': '500',
326
- 'dark': '700',
327
- 'darker': '900'
328
- };
329
- }
330
- /**
331
- * Get theme color.
332
- * @param colorWithDepth string Ex.: primary-light
333
- * @returns RGBA value.
334
- */
335
- getColor(colorWithDepth = "primary-base", opacity = 1) {
336
- const { color, depth } = this.splitColorDepth(colorWithDepth);
337
- const staticColor = this.getStatic(color, depth, opacity);
338
- if (staticColor)
339
- return staticColor;
340
- return this.getDynamic(color, depth, opacity);
341
- }
342
- /**
343
- * Internal: Look for static color by name and depth.
344
- * @param color Color name.
345
- * @param depth Depth number or alias.
346
- * @returns RGBA value.
347
- */
348
- getStatic(color, depth, opacity = 1) {
349
- var _a, _b, _c;
350
- const colorObj = Static.color[color];
351
- if (!colorObj)
352
- return null;
353
- const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
354
- return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
355
- ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
356
- : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
357
- }
358
- /**
359
- * Internal: Look for theme dynamic colors.
360
- * @param color Color name.
361
- * @param depth Color depth.
362
- * @returns RGBA value.
363
- */
364
- getDynamic(color, depth, opacity) {
365
- const themeVar = this.ColorDepthAlias[depth]
366
- ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
367
- : `--cura-color-${color}-${depth}`;
368
- return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
369
- ? `rgba(var(${themeVar}), ${opacity})`
370
- : `rgba(var(--cura-color-primary-500), ${opacity})`;
371
- }
372
- /**
373
- * Internal: Split color strings
374
- * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
375
- * @returns Object { color: string, depth: string }.
376
- */
377
- splitColorDepth(colorWithDepth) {
378
- const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
379
- return { color: color !== null && color !== void 0 ? color : "primary", depth: depth !== null && depth !== void 0 ? depth : "base" };
380
- }
381
- }
382
-
383
- class CuraThemeSpacingModule {
384
- constructor() {
385
- this.curaSpacing = '--cura-spacing-base';
386
- }
387
- /** Returns the base spacing var defined in the theme */
388
- getSpacing() {
389
- if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {
390
- return `var(${this.curaSpacing})`;
391
- }
392
- return '4';
393
- }
394
- }
395
-
396
- class CuraThemeFontsModule {
397
- constructor() {
398
- /**
399
- * Get the CSS variable related to the font size base defined by the theme.
400
- * @returns Related CSS variable as a string.
401
- */
402
- this.getSize = () => `var(--cura-font-size)`;
403
- /**
404
- * Get CSS variable related to the font color defined by the theme.
405
- * @returns Related CSS variable as a string.
406
- */
407
- this.getColor = () => `var(--cura-font-color)`;
408
- }
409
- /**
410
- * Get the CSS variable related to the font family defined by the theme.
411
- * @param type 'body' | 'heading' | 'display'
412
- * @returns Related css variable as a string.
413
- */
414
- getFamily(type = "body") {
415
- const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;
416
- return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)
417
- ? `var(${curaFontFamilyCSSVar})`
418
- : 'var(--cura-font-body)';
419
- }
420
- /**
421
- * Get the CSS variables related to font weights defined by the theme.
422
- * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.
423
- */
424
- getWeights() {
425
- const weights = {};
426
- Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);
427
- return weights;
428
- }
429
- }
430
-
431
- class CuraThemeBreakpointsModule {
432
- constructor() { }
433
- /** Returns the base spacing var defined in the theme */
434
- get(size = null, position = null) {
435
- if (size) {
436
- const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];
437
- if (breakpoint || breakpoint === 0)
438
- return breakpoint;
439
- }
440
- return Static.breakpoints;
441
- }
442
- }
443
-
444
- class CuraThemeModule {
445
- constructor() {
446
- var _a;
447
- this.prefix = '--cura';
448
- this.colors = new CuraThemeColorsModule();
449
- this.spacing = new CuraThemeSpacingModule();
450
- this.fonts = new CuraThemeFontsModule();
451
- this.breakpoints = new CuraThemeBreakpointsModule();
452
- this.groupObject = {};
453
- /* Private */
454
- /** Set css var based on object structure */
455
- this.setCssVar = (prop, path) => {
456
- const varName = this.groupPath(path, prop[0]);
457
- this.rootElement.style.setProperty(varName, prop[1]);
458
- };
459
- this.groupPath = (a, b) => `${a}-${b}`;
460
- this.isObject = val => {
461
- return val && typeof val === 'object' && !Array.isArray(val);
462
- };
463
- /** Deep merge objects */
464
- this.mergeObject = (from, to) => {
465
- const entries = Object.entries(from);
466
- for (let e of entries) {
467
- if (this.isObject(e[1])) {
468
- this.mergeObject(e[1], to[e[0]]);
469
- }
470
- else {
471
- to[e[0]] = e[1];
472
- }
473
- }
474
- };
475
- /** Set css vars from preset object */
476
- this.buildCssVars = (path, obj, isGroup = false) => {
477
- const entries = Object.entries(obj);
478
- for (let e of entries) {
479
- if (this.isObject(e[1])) {
480
- this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);
481
- }
482
- else {
483
- if (isGroup) {
484
- const varName = this.groupPath(path, e[0]);
485
- this.groupObject[varName] = e[1];
486
- }
487
- else {
488
- this.setCssVar(e, path);
489
- }
490
- }
491
- }
492
- };
493
- if (typeof window === 'undefined')
494
- return;
495
- this.rootElement = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.documentElement;
496
- }
497
- /**
498
- * Load a theme.
499
- * @param theme Theme tag.
500
- */
501
- load(theme = 'default') {
502
- const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
503
- this.buildCssVars(this.prefix, preset);
504
- }
505
- loadVarsSSR(theme = 'default') {
506
- const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
507
- this.buildCssVars(this.prefix, preset, true);
508
- return this.groupObject;
509
- }
510
- /**
511
- * Define a custom theme
512
- * @param customTheme Custom theme object definition
513
- */
514
- setCustom(customTheme) {
515
- const customTag = customTheme.name;
516
- if (customTag in ThemePresets) {
517
- console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);
518
- this.load('default');
519
- }
520
- else {
521
- const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets.default;
522
- const newTheme = Object.assign({}, JSON.parse(JSON.stringify(preset)));
523
- this.mergeObject(customTheme.definitions, newTheme);
524
- ThemePresets[customTag] = newTheme;
525
- this.load(customTag);
526
- }
527
- }
528
- }
529
-
530
- class CuraAPI {
531
- constructor(config) {
532
- this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
533
- const themeModule = new CuraThemeModule();
534
- this.theme = {
535
- load: function (themeTag) { themeModule.load(themeTag); },
536
- setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
537
- colors: {
538
- getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
539
- },
540
- fonts: {
541
- getFamily: function (type) { return themeModule.fonts.getFamily(type); },
542
- getWeights: function () { return themeModule.fonts.getWeights(); },
543
- getSize: function () { return themeModule.fonts.getSize(); },
544
- getColor: function () { return themeModule.fonts.getColor(); }
545
- },
546
- spacing: {
547
- getSpacing: function () { return themeModule.spacing.getSpacing(); },
548
- },
549
- breakpoints: {
550
- get: function (size, position) { return themeModule.breakpoints.get(size, position); }
551
- }
552
- };
553
- this._addGlobalClasses();
554
- if (config && config.customTheme) {
555
- this.theme.setCustom(config.customTheme);
556
- }
557
- else {
558
- const theme = config && config.theme ? config.theme : 'default';
559
- this.theme.load(theme);
560
- }
561
- }
562
- _addGlobalClasses() {
563
- const styleId = "cura_global_classes";
564
- let styleElement = document.head.querySelector(`#${styleId}`);
565
- if (!styleElement) {
566
- styleElement = document.createElement("style");
567
- styleElement.id = styleId;
568
- styleElement.textContent = `
569
- .cura-body-scroll-lock {
570
- overflow: hidden;
571
- position: fixed;
572
- left: 0;
573
- right: 0;
574
- top: 0;
575
- }
576
- `;
577
- document.head.appendChild(styleElement);
578
- }
579
- }
580
- }
581
-
582
- function appGlobalScript () {
583
- const config = window.CuraInit;
584
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
585
- const api = window.CuraAPI;
586
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
587
- if (config && typeof config.onReady === 'function')
588
- config.onReady(api);
589
- }
590
-
591
- const globalScripts = appGlobalScript;
592
47
 
593
48
  function CuraInit(options, w = window) {
594
49
  w.CuraInit = options;
@@ -655,5 +110,6 @@ const defineCustomElements = (opts) => {
655
110
  };
656
111
 
657
112
  export { CuraInit, InitVarsTheme, defineCustomElements };
113
+ //# sourceMappingURL=index.js.map
658
114
 
659
115
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,OAAO,KAAK,UAAU;QAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC1E;;ACjBO,MAAM,aAAa,GAAG,eAAe;;SCW5B,QAAQ,CAAC,OAAmB,EAAE,CAAC,GAAG,MAAM;IACtD,CAAC,CAAC,QAAQ,GAAG,OAAO,CAAC;AACvB,CAAC;SAEe,aAAa,CAAC,KAAa;IACzC,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAC1C,OAAO,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/api/theme-presets/theme-default.ts","src/api/theme-presets/theme-maternity.ts","src/api/theme-presets/theme-oncology.ts","src/api/theme-presets/theme-richet.ts","src/api/theme-presets/theme-perinatal-temporary.ts","src/api/theme-presets/theme-legacy-default.ts","src/api/theme-presets/theme-presets.ts","src/api/modules/cura-theme-colors-module.ts","src/api/modules/cura-theme-spacing-module.ts","src/api/modules/cura-theme-fonts-module.ts","src/api/modules/cura-theme-breakpoints-module.ts","src/api/modules/cura-theme-module.ts","src/api/cura-api.ts","src/rededor-cura-start.ts","@stencil/core/internal/app-globals","src/index.ts"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85'\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23'\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26'\n }\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Maternity Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeMaternity = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '248,227,226',\n '300': '255,179,171',\n '500': '218,113,111',\n '700': '145,75,74',\n '900': '73,38,37'\n },\n secondary: {\n '100': '253,251,249',\n '300': '247,244,238',\n '500': '245,236,227',\n '700': '204,197,189',\n '900': '163,157,151'\n },\n accent: {\n '100': '236,239,249',\n '300': '133,153,203',\n '500': '11,20,151',\n '700': '7,13,101',\n '900': '4,7,50'\n }\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Oncology Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeOncology = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '170,190,225',\n '300': '85,126,196',\n '500': '0,61,166',\n '700': '0,41,111',\n '900': '0,12,33'\n },\n secondary: {\n '100': '205,215,227',\n '300': '155,175,199',\n '500': '104,134,171',\n '700': '54,95,143',\n '900': '4,54,115',\n },\n accent: {\n '100': '153,207,255',\n '300': '71,169,255',\n '500': '0,131,245',\n '700': '0,109,204',\n '900': '0,88,164',\n },\n aux: {\n '100': '218,242,239',\n '300': '132,212,202',\n '500': '71,191,176',\n '700': '33,100,92',\n '900': '14,38,35',\n },\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n heading: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n display: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Richet Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeRichet = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '153,197,255',\n '300': '67,142,241',\n '500': '0,47,108',\n '700': '1,39,91',\n '900': '0,33,77'\n },\n secondary: {\n '100': '243,237,227',\n '300': '216,194,163',\n '500': '208,173,103',\n '700': '201,155,64',\n '900': '149,104,15'\n },\n accent: {\n '100': '167,230,215',\n '300': '130,225,209',\n '500': '44,213,196',\n '700': '26,188,169',\n '900': '0,150,129'\n }\n },\n};\n","/**\n * Perinatal temporary Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemePerinatalTemporary = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '239,226,228',\n '300': '226,196,200',\n '500': '199,134,141',\n '700': '175,91,109',\n '900': '147,58,77'\n },\n secondary: {\n '100': '233,226,220',\n '300': '211,196,186',\n '500': '189,167,151',\n '700': '95,84,76',\n '900': '38,33,30'\n },\n accent: {\n '100': '219,189,196',\n '300': '183,124,136',\n '500': '147,58,77',\n '700': '74,29,39',\n '900': '29,12,15'\n }\n },\n};\n","/**\n * Legacy Default Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeLegacyDefault = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '204,217,231',\n '300': '85,128,174',\n '500': '0,65,134',\n '700': '0,43,89',\n '900': '0,13,27'\n },\n secondary: {\n '100': '238,232,206',\n '300': '198,180,92',\n '500': '170,142,11',\n '700': '113,95,7',\n '900': '34,28,2'\n },\n accent: {\n '100': '249,232,213',\n '300': '228,160,79',\n '500': '223,141,44',\n '700': '149,94,29',\n '900': '45,28,9'\n }\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Roboto', Arial, Helvetica, sans-serif\",\n heading: \"'Roboto', Arial, Helvetica, sans-serif\",\n display: \"'Roboto', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","import { ThemeDefault } from './theme-default';\nimport { ThemeMaternity } from './theme-maternity';\nimport { ThemeOncology } from './theme-oncology';\nimport { ThemeRichet } from './theme-richet';\nimport { ThemePerinatalTemporary } from './theme-perinatal-temporary';\nimport { ThemeLegacyDefault } from './theme-legacy-default';\n\nexport const ThemePresets = {\n 'default': ThemeDefault,\n 'maternidade': ThemeMaternity,\n 'oncologia': ThemeOncology,\n 'richet': ThemeRichet,\n 'perinatalTemp': ThemePerinatalTemporary,\n 'legacyDefault': ThemeLegacyDefault\n};\n","import { Static } from \"../theme-presets/static\";\n\nexport default class CuraThemeColorsModule {\n\n NeutralDepthAlias = {\n 'purewhite': '0',\n 'white': '100',\n 'pale': '200',\n 'lighter': '300',\n 'light': '400',\n 'base': '500',\n 'medium': '600',\n 'dark': '700',\n 'darker': '800',\n 'black': '900',\n };\n\n ColorDepthAlias = {\n 'lighter': '100',\n 'light': '300',\n 'base': '500',\n 'dark': '700',\n 'darker': '900'\n }\n\n constructor() {}\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = \"primary-base\", opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth, opacity);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @returns RGBA value.\n */\n getStatic(color: string, depth: string, opacity = 1) {\n const colorObj = Static.color[color];\n if (!colorObj) return null;\n const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];\n return Static.color[color]?.[alias]\n ? `rgba(${Static.color[color]?.[alias]}, ${opacity})`\n : `rgba(${Static.color[color]?.[depth]}, ${opacity})`;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @returns RGBA value.\n */\n getDynamic(color: string, depth: string, opacity: number) {\n const themeVar = this.ColorDepthAlias[depth]\n ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`\n : `--cura-color-${color}-${depth}`;\n return getComputedStyle(document.documentElement).getPropertyValue(themeVar)\n ? `rgba(var(${themeVar}), ${opacity})`\n : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string, depth: string } {\n const [ color, depth ] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? \"primary\", depth: depth ?? \"base\" };\n }\n\n}\n","export default class CuraThemeSpacingModule {\n\n private curaSpacing = '--cura-spacing-base';\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n getSpacing(): string {\n if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {\n return `var(${this.curaSpacing})`;\n }\n return '4';\n }\n}\n","import { ThemeDefault } from \"../theme-presets/theme-default\";\n\nexport default class CuraThemeFontsModule {\n\n constructor() {}\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = \"body\"): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)\n ? `var(${curaFontFamilyCSSVar})`\n : 'var(--cura-font-body)';\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize = () => `var(--cura-font-size)`;\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor = () => `var(--cura-font-color)`;\n\n}\n","import { Static } from '../theme-presets/static';\n\nexport default class CuraThemeBreakpointsModule {\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n get(size: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' = null, position: 'min' | 'max' = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint || breakpoint === 0) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { ThemePresets } from '../theme-presets/theme-presets';\nimport { CuraCustomTheme } from '../cura-api.type';\nimport CuraThemeColorsModule from './cura-theme-colors-module';\nimport CuraThemeSpacingModule from './cura-theme-spacing-module';\nimport CuraThemeFontsModule from './cura-theme-fonts-module';\nimport CuraThemeBreakpointsModule from './cura-theme-breakpoints-module';\n\nexport default class CuraThemeModule {\n rootElement: HTMLElement;\n prefix = '--cura';\n colors = new CuraThemeColorsModule();\n spacing = new CuraThemeSpacingModule();\n fonts = new CuraThemeFontsModule();\n breakpoints = new CuraThemeBreakpointsModule();\n groupObject = {};\n\n constructor() {\n if (typeof window === 'undefined') return;\n\n this.rootElement = window?.document?.documentElement;\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default') {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;\n this.buildCssVars(this.prefix, preset);\n }\n\n loadVarsSSR(theme = 'default') {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;\n this.buildCssVars(this.prefix, preset, true);\n\n return this.groupObject;\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme) {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets.default;\n const newTheme = { ...JSON.parse(JSON.stringify(preset)) };\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private */\n\n /** Set css var based on object structure */\n setCssVar = (prop, path) => {\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n };\n\n groupPath = (a, b) => `${a}-${b}`;\n\n isObject = val => {\n return val && typeof val === 'object' && !Array.isArray(val);\n };\n\n /** Deep merge objects */\n mergeObject = (from, to) => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n };\n\n /** Set css vars from preset object */\n buildCssVars = (path, obj, isGroup = false) => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);\n } else {\n if (isGroup) {\n const varName = this.groupPath(path, e[0]);\n\n this.groupObject[varName] = e[1];\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n };\n}\n","import { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.type';\nimport CuraThemeModule from './modules/cura-theme-module';\n\nexport default class CuraAPI {\n\n theme: APIThemeFunctions;\n localAssetsPath: string;\n\n constructor (config?: CuraConfig) {\n this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;\n const themeModule = new CuraThemeModule();\n this.theme = {\n load: function(themeTag: string) { themeModule.load(themeTag); },\n setCustom: function(customThemeDefinitions: CuraCustomTheme) { themeModule.setCustom(customThemeDefinitions); },\n colors: {\n getColor: function(colorWithDepth?: string, opacity?: number) { return themeModule.colors.getColor(colorWithDepth, opacity) },\n },\n fonts: {\n getFamily: function(type?: string) { return themeModule.fonts.getFamily(type) },\n getWeights: function() { return themeModule.fonts.getWeights() },\n getSize: function() { return themeModule.fonts.getSize() },\n getColor: function() { return themeModule.fonts.getColor() }\n },\n spacing: {\n getSpacing: function() { return themeModule.spacing.getSpacing(); },\n },\n breakpoints: {\n get: function(size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge', position?: 'min' | 'max') { return themeModule.breakpoints.get(size, position); }\n }\n };\n this._addGlobalClasses();\n if (config && config.customTheme) {\n this.theme.setCustom(config.customTheme);\n } else {\n const theme = config && config.theme ? config.theme : 'default';\n this.theme.load(theme);\n }\n }\n\n _addGlobalClasses() {\n const styleId = \"cura_global_classes\";\n let styleElement = document.head.querySelector(`#${styleId}`);\n if (!styleElement) {\n styleElement = document.createElement(\"style\");\n styleElement.id = styleId;\n styleElement.textContent = `\n .cura-body-scroll-lock {\n overflow: hidden;\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n }\n `;\n document.head.appendChild(styleElement);\n }\n }\n\n}\n","import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n","import appGlobalScript from '/Users/fellipesoares/Code/cura/packages/component-lib/src/rededor-cura-start.ts';\nexport const globalScripts = appGlobalScript;\n","export { Components, JSX } from './components';\nimport CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\nimport CuraThemeModule from './api/modules/cura-theme-module';\n\ndeclare global {\n export interface Window {\n CuraAPI?: CuraAPI;\n CuraInit?: CuraConfig;\n }\n}\n\nexport function CuraInit(options: CuraConfig, w = window) {\n w.CuraInit = options;\n}\n\nexport function InitVarsTheme(theme: string) {\n const themeModule = new CuraThemeModule();\n return themeModule.loadVarsSSR(theme);\n}\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAYgB,QAAQ,CAAC,OAAmB,EAAE,CAAC,GAAG,MAAM,EAAA;AACtD,IAAA,CAAC,CAAC,QAAQ,GAAG,OAAO;AACtB;AAEM,SAAU,aAAa,CAAC,KAAa,EAAA;AACzC,IAAA,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE;AACzC,IAAA,OAAO,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;AACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/index.ts"],"sourcesContent":["export { Components, JSX } from './components';\nimport CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\nimport CuraThemeModule from './api/modules/cura-theme-module';\n\ndeclare global {\n export interface Window {\n CuraAPI?: CuraAPI;\n CuraInit?: CuraConfig;\n }\n}\n\nexport function CuraInit(options: CuraConfig, w = window) {\n w.CuraInit = options;\n}\n\nexport function InitVarsTheme(theme: string) {\n const themeModule = new CuraThemeModule();\n return themeModule.loadVarsSSR(theme);\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-D1cPOZpG.js';
2
2
 
3
3
  const iconSizes = {
4
4
  "128": { size: 128, stroke: 5.25 },
@@ -15,16 +15,14 @@ const iconSizes = {
15
15
  };
16
16
 
17
17
  const curaIconCss = ":host{width:var(--size);height:var(--size);display:inline-block}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
18
- const CuraIconStyle0 = curaIconCss;
19
18
 
20
- const CuraIcon = /*@__PURE__*/ proxyCustomElement(class CuraIcon extends HTMLElement {
19
+ const CuraIcon = /*@__PURE__*/ proxyCustomElement(class CuraIcon extends H {
21
20
  constructor() {
22
21
  super();
23
22
  this.__registerHost();
24
23
  this.__attachShadow();
25
24
  this.name = '';
26
25
  this.color = 'neutral-base';
27
- this.size = undefined;
28
26
  this.iconset = 'default';
29
27
  this.disabled = false;
30
28
  }
@@ -55,7 +53,7 @@ const CuraIcon = /*@__PURE__*/ proxyCustomElement(class CuraIcon extends HTMLEle
55
53
  "color": ["colorHandler"],
56
54
  "disabled": ["colorHandler"]
57
55
  }; }
58
- static get style() { return CuraIconStyle0; }
56
+ static get style() { return curaIconCss; }
59
57
  }, [1, "cura-icon", {
60
58
  "name": [513],
61
59
  "color": [1],
@@ -82,5 +80,6 @@ function defineCustomElement() {
82
80
  }
83
81
 
84
82
  export { CuraIcon as C, defineCustomElement as d, iconSizes as i };
83
+ //# sourceMappingURL=p-B5aO1chh.js.map
85
84
 
86
- //# sourceMappingURL=cura-icon2.js.map
85
+ //# sourceMappingURL=p-B5aO1chh.js.map