@rededor/cura 0.5.4 → 1.0.0-alpha.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 (640) hide show
  1. package/dist/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/icons/iconset-default-tmp.svg +8 -0
  3. package/dist/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/app-globals-bcffd819.js +511 -0
  5. package/dist/cjs/app-globals-bcffd819.js.map +1 -0
  6. package/dist/cjs/cura-accordion_9.cjs.entry.js +544 -0
  7. package/dist/cjs/cura-accordion_9.cjs.entry.js.map +1 -0
  8. package/dist/cjs/cura-alert.cjs.entry.js +57 -55
  9. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/cura-avatar.cjs.entry.js +68 -0
  11. package/dist/cjs/cura-avatar.cjs.entry.js.map +1 -0
  12. package/dist/cjs/cura-button-outline.cjs.entry.js +102 -71
  13. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-button-select.cjs.entry.js +91 -85
  15. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  16. package/dist/cjs/cura-button-transparent_2.cjs.entry.js +4055 -0
  17. package/dist/cjs/cura-button-transparent_2.cjs.entry.js.map +1 -0
  18. package/dist/cjs/cura-calendar.cjs.entry.js +3913 -0
  19. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -0
  20. package/dist/cjs/cura-card.cjs.entry.js +53 -0
  21. package/dist/cjs/cura-card.cjs.entry.js.map +1 -0
  22. package/dist/cjs/cura-checkbox.cjs.entry.js +168 -131
  23. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  24. package/dist/cjs/cura-display.cjs.entry.js +63 -62
  25. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  26. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +22 -0
  27. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js.map +1 -0
  28. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +55 -0
  29. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js.map +1 -0
  30. package/dist/cjs/cura-dropdown-search.cjs.entry.js +209 -0
  31. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -0
  32. package/dist/cjs/cura-forms.definitions-c164f1b8.js +20 -0
  33. package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +1 -0
  34. package/dist/cjs/cura-icon.definitions-8d714f6a.js +21 -0
  35. package/dist/cjs/cura-icon.definitions-8d714f6a.js.map +1 -0
  36. package/dist/cjs/cura-icons-view.cjs.entry.js +24 -23
  37. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  38. package/dist/cjs/cura-radio.cjs.entry.js +142 -103
  39. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  40. package/dist/cjs/cura-select_2.cjs.entry.js +325 -0
  41. package/dist/cjs/cura-select_2.cjs.entry.js.map +1 -0
  42. package/dist/cjs/cura-switch.cjs.entry.js +113 -78
  43. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  44. package/dist/cjs/cura.cjs.js +13 -22
  45. package/dist/cjs/cura.cjs.js.map +1 -1
  46. package/dist/cjs/index-5b63ff7a.js +1529 -0
  47. package/dist/cjs/index-5b63ff7a.js.map +1 -0
  48. package/dist/cjs/index.cjs.js +1 -1
  49. package/dist/cjs/index.cjs.js.map +1 -1
  50. package/dist/cjs/loader.cjs.js +6 -31
  51. package/dist/cjs/loader.cjs.js.map +1 -1
  52. package/dist/collection/api/cura-api.js +30 -30
  53. package/dist/collection/api/cura-api.js.map +1 -1
  54. package/dist/collection/api/cura-api.type.js +2 -2
  55. package/dist/collection/api/cura-api.type.js.map +1 -1
  56. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +10 -10
  57. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
  58. package/dist/collection/api/modules/cura-theme-colors-module.js +72 -72
  59. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  60. package/dist/collection/api/modules/cura-theme-fonts-module.js +28 -28
  61. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -1
  62. package/dist/collection/api/modules/cura-theme-module.js +66 -66
  63. package/dist/collection/api/modules/cura-theme-module.js.map +1 -1
  64. package/dist/collection/api/modules/cura-theme-spacing-module.js +9 -9
  65. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -1
  66. package/dist/collection/api/theme-presets/static.js +63 -63
  67. package/dist/collection/api/theme-presets/static.js.map +1 -1
  68. package/dist/collection/api/theme-presets/theme-default.js +41 -41
  69. package/dist/collection/api/theme-presets/theme-default.js.map +1 -1
  70. package/dist/collection/api/theme-presets/theme-legacy-default.js +24 -24
  71. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -1
  72. package/dist/collection/api/theme-presets/theme-maternity.js +38 -38
  73. package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -1
  74. package/dist/collection/api/theme-presets/theme-oncology.js +46 -46
  75. package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -1
  76. package/dist/collection/api/theme-presets/theme-presets.js +8 -8
  77. package/dist/collection/api/theme-presets/theme-presets.js.map +1 -1
  78. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  79. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  80. package/dist/collection/assets/icons/iconset-default-tmp.svg +8 -0
  81. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  82. package/dist/collection/assets/images/avatar/doctor-default.svg +8 -0
  83. package/dist/collection/assets/images/avatar/dora-default.svg +5 -0
  84. package/dist/collection/assets/images/avatar/patient-default.svg +12 -0
  85. package/dist/collection/assets/images/avatar/unit-default.svg +9 -0
  86. package/dist/collection/assets/images/logoCura.svg +15 -0
  87. package/dist/collection/assets-raw/icons/default/contacts.svg +3 -0
  88. package/dist/collection/assets-raw/icons/default/scheduleCancel.svg +3 -0
  89. package/dist/collection/collection-manifest.json +29 -21
  90. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +267 -267
  91. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
  92. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +127 -127
  93. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
  94. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +196 -196
  95. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
  96. package/dist/collection/components/buttons/cura-button/cura-button.css +112 -46
  97. package/dist/collection/components/buttons/cura-button/cura-button.js +368 -306
  98. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  99. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +184 -159
  100. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
  101. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +37 -64
  102. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +374 -306
  103. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  104. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +184 -159
  105. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
  106. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +36 -23
  107. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +265 -260
  108. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  109. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +32 -50
  110. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +339 -306
  111. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  112. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +172 -159
  113. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
  114. package/dist/collection/components/cura-alert/cura-alert.js +182 -164
  115. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  116. package/dist/collection/components/cura-alert/cura-alert.stories.js +90 -77
  117. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -1
  118. package/dist/collection/components/cura-avatar/cura-avatar.css +24 -0
  119. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +7 -0
  120. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +1 -0
  121. package/dist/collection/components/cura-avatar/cura-avatar.js +231 -0
  122. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -0
  123. package/dist/collection/components/cura-avatar/cura-avatar.stories.js +198 -0
  124. package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +1 -0
  125. package/dist/collection/components/cura-calendar/cura-calendar.css +181 -0
  126. package/dist/collection/components/cura-calendar/cura-calendar.js +681 -0
  127. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -0
  128. package/dist/collection/components/cura-calendar/cura-calendar.stories.js +126 -0
  129. package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +1 -0
  130. package/dist/collection/components/cura-card/cura-card.css +175 -0
  131. package/dist/collection/components/cura-card/cura-card.js +201 -0
  132. package/dist/collection/components/cura-card/cura-card.js.map +1 -0
  133. package/dist/collection/components/cura-card/cura-card.stories.js +127 -0
  134. package/dist/collection/components/cura-card/cura-card.stories.js.map +1 -0
  135. package/dist/collection/components/cura-icon/cura-icon.definitions.js +11 -11
  136. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -1
  137. package/dist/collection/components/cura-icon/cura-icon.js +151 -151
  138. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  139. package/dist/collection/components/cura-icon/cura-icon.stories.js +60 -60
  140. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  141. package/dist/collection/components/cura-icons-view/cura-icons-view.js +37 -37
  142. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  143. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +7 -7
  144. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -1
  145. package/dist/collection/components/cura-page-template/cura-page-template.js +52 -52
  146. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
  147. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +19 -11
  148. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +457 -427
  149. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  150. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +170 -170
  151. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -1
  152. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +50 -0
  153. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +136 -0
  154. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -0
  155. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +56 -0
  156. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +1 -0
  157. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.css +10 -0
  158. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +19 -0
  159. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js.map +1 -0
  160. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +149 -0
  161. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +384 -0
  162. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -0
  163. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js +181 -0
  164. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js.map +1 -0
  165. package/dist/collection/components/forms/cura-forms.definitions.js +12 -12
  166. package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -1
  167. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +849 -139
  168. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +732 -641
  169. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  170. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +217 -196
  171. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
  172. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +40 -40
  173. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
  174. package/dist/collection/components/forms/cura-label/cura-label.js +187 -187
  175. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  176. package/dist/collection/components/forms/cura-label/cura-label.stories.js +108 -108
  177. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -1
  178. package/dist/collection/components/forms/cura-radio/cura-radio.js +395 -363
  179. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  180. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +150 -150
  181. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
  182. package/dist/collection/components/forms/cura-select/cura-select.css +519 -0
  183. package/dist/collection/components/forms/cura-select/cura-select.js +444 -0
  184. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -0
  185. package/dist/collection/components/forms/cura-select/cura-select.stories.js +144 -0
  186. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -0
  187. package/dist/collection/components/forms/cura-select-options/cura-select-option.css +28 -0
  188. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +138 -0
  189. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -0
  190. package/dist/collection/components/forms/cura-switch/cura-switch.css +88 -24
  191. package/dist/collection/components/forms/cura-switch/cura-switch.js +292 -264
  192. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  193. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +115 -115
  194. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -1
  195. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +74 -74
  196. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
  197. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +41 -41
  198. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
  199. package/dist/collection/components/text/cura-display/cura-display.js +174 -174
  200. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  201. package/dist/collection/components/text/cura-display/cura-display.stories.js +97 -97
  202. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
  203. package/dist/collection/components/text/cura-heading/cura-heading.js +220 -220
  204. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  205. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +117 -117
  206. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  207. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +168 -168
  208. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  209. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +98 -98
  210. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  211. package/dist/collection/index.js +1 -1
  212. package/dist/collection/index.js.map +1 -1
  213. package/dist/collection/rededor-cura-start.js +7 -7
  214. package/dist/collection/rededor-cura-start.js.map +1 -1
  215. package/dist/collection/utils/utils.js +11 -11
  216. package/dist/collection/utils/utils.js.map +1 -1
  217. package/dist/components/cura-accordion-item.d.ts +2 -2
  218. package/dist/components/cura-accordion-item.js +62 -61
  219. package/dist/components/cura-accordion-item.js.map +1 -1
  220. package/dist/components/cura-accordion.d.ts +2 -2
  221. package/dist/components/cura-accordion.js +108 -104
  222. package/dist/components/cura-accordion.js.map +1 -1
  223. package/dist/components/cura-alert.d.ts +2 -2
  224. package/dist/components/cura-alert.js +93 -88
  225. package/dist/components/cura-alert.js.map +1 -1
  226. package/dist/components/cura-avatar.d.ts +11 -0
  227. package/dist/components/cura-avatar.js +95 -0
  228. package/dist/components/cura-avatar.js.map +1 -0
  229. package/dist/components/cura-button-outline.d.ts +2 -2
  230. package/dist/components/cura-button-outline.js +147 -109
  231. package/dist/components/cura-button-outline.js.map +1 -1
  232. package/dist/components/cura-button-select.d.ts +2 -2
  233. package/dist/components/cura-button-select.js +129 -113
  234. package/dist/components/cura-button-select.js.map +1 -1
  235. package/dist/components/cura-button-transparent.d.ts +2 -2
  236. package/dist/components/cura-button-transparent.js +1 -116
  237. package/dist/components/cura-button-transparent.js.map +1 -1
  238. package/dist/components/cura-button-transparent2.js +144 -0
  239. package/dist/components/cura-button-transparent2.js.map +1 -0
  240. package/dist/components/cura-button.d.ts +2 -2
  241. package/dist/components/cura-button.js +145 -109
  242. package/dist/components/cura-button.js.map +1 -1
  243. package/dist/components/cura-calendar.d.ts +11 -0
  244. package/dist/components/cura-calendar.js +3969 -0
  245. package/dist/components/cura-calendar.js.map +1 -0
  246. package/dist/components/cura-card.d.ts +11 -0
  247. package/dist/components/cura-card.js +75 -0
  248. package/dist/components/cura-card.js.map +1 -0
  249. package/dist/components/cura-checkbox.d.ts +2 -2
  250. package/dist/components/cura-checkbox.js +210 -174
  251. package/dist/components/cura-checkbox.js.map +1 -1
  252. package/dist/components/cura-display.d.ts +2 -2
  253. package/dist/components/cura-display.js +85 -81
  254. package/dist/components/cura-display.js.map +1 -1
  255. package/dist/components/cura-dropdown-search-option-title.d.ts +11 -0
  256. package/dist/components/cura-dropdown-search-option-title.js +42 -0
  257. package/dist/components/cura-dropdown-search-option-title.js.map +1 -0
  258. package/dist/components/cura-dropdown-search-option.d.ts +11 -0
  259. package/dist/components/cura-dropdown-search-option.js +82 -0
  260. package/dist/components/cura-dropdown-search-option.js.map +1 -0
  261. package/dist/components/cura-dropdown-search.d.ts +11 -0
  262. package/dist/components/cura-dropdown-search.js +272 -0
  263. package/dist/components/cura-dropdown-search.js.map +1 -0
  264. package/dist/components/cura-forms.definitions.js +12 -12
  265. package/dist/components/cura-forms.definitions.js.map +1 -1
  266. package/dist/components/cura-heading.d.ts +2 -2
  267. package/dist/components/cura-heading2.js +97 -93
  268. package/dist/components/cura-heading2.js.map +1 -1
  269. package/dist/components/cura-icon.d.ts +2 -2
  270. package/dist/components/cura-icon2.js +74 -69
  271. package/dist/components/cura-icon2.js.map +1 -1
  272. package/dist/components/cura-icons-view.d.ts +2 -2
  273. package/dist/components/cura-icons-view.js +57 -56
  274. package/dist/components/cura-icons-view.js.map +1 -1
  275. package/dist/components/cura-input-text.d.ts +2 -2
  276. package/dist/components/cura-input-text.js +1 -3954
  277. package/dist/components/cura-input-text.js.map +1 -1
  278. package/dist/{cjs/cura-input-text.cjs.entry.js → components/cura-input-text2.js} +393 -283
  279. package/dist/components/cura-input-text2.js.map +1 -0
  280. package/dist/components/cura-label.d.ts +2 -2
  281. package/dist/components/cura-label2.js +81 -77
  282. package/dist/components/cura-label2.js.map +1 -1
  283. package/dist/components/cura-loader-circle.d.ts +2 -2
  284. package/dist/components/cura-loader-circle2.js +41 -40
  285. package/dist/components/cura-loader-circle2.js.map +1 -1
  286. package/dist/components/cura-page-template.d.ts +2 -2
  287. package/dist/components/cura-page-template.js +36 -35
  288. package/dist/components/cura-page-template.js.map +1 -1
  289. package/dist/components/cura-paragraph.d.ts +2 -2
  290. package/dist/components/cura-paragraph2.js +79 -75
  291. package/dist/components/cura-paragraph2.js.map +1 -1
  292. package/dist/components/cura-radio.d.ts +2 -2
  293. package/dist/components/cura-radio.js +176 -139
  294. package/dist/components/cura-radio.js.map +1 -1
  295. package/dist/components/cura-select-option.d.ts +11 -0
  296. package/dist/components/cura-select-option.js +8 -0
  297. package/dist/components/cura-select-option.js.map +1 -0
  298. package/dist/components/cura-select-option2.js +87 -0
  299. package/dist/components/cura-select-option2.js.map +1 -0
  300. package/dist/components/cura-select.d.ts +11 -0
  301. package/dist/components/cura-select.js +8 -0
  302. package/dist/components/cura-select.js.map +1 -0
  303. package/dist/components/cura-select2.js +308 -0
  304. package/dist/components/cura-select2.js.map +1 -0
  305. package/dist/components/cura-switch.d.ts +2 -2
  306. package/dist/components/cura-switch.js +138 -105
  307. package/dist/components/cura-switch.js.map +1 -1
  308. package/dist/components/index.d.ts +6 -0
  309. package/dist/components/index.js +482 -466
  310. package/dist/components/index.js.map +1 -1
  311. package/dist/cura/cura.esm.js +1 -1
  312. package/dist/cura/cura.esm.js.map +1 -1
  313. package/dist/cura/index.esm.js.map +1 -1
  314. package/dist/cura/p-12d75346.entry.js +2 -0
  315. package/dist/cura/p-12d75346.entry.js.map +1 -0
  316. package/dist/cura/p-2176f253.entry.js +2 -0
  317. package/dist/cura/p-2176f253.entry.js.map +1 -0
  318. package/dist/cura/p-22292bfa.entry.js +2 -0
  319. package/dist/cura/p-22292bfa.entry.js.map +1 -0
  320. package/dist/cura/p-2a8be665.entry.js +2 -0
  321. package/dist/cura/p-2a8be665.entry.js.map +1 -0
  322. package/dist/cura/p-2d70b515.entry.js +2 -0
  323. package/dist/cura/p-2d70b515.entry.js.map +1 -0
  324. package/dist/cura/p-3c2ebc3a.entry.js +2 -0
  325. package/dist/cura/p-3c2ebc3a.entry.js.map +1 -0
  326. package/dist/cura/p-45a0a5e8.entry.js +2 -0
  327. package/dist/cura/p-45a0a5e8.entry.js.map +1 -0
  328. package/dist/cura/p-586bbe43.js +3 -0
  329. package/dist/cura/p-586bbe43.js.map +1 -0
  330. package/dist/cura/p-5d8e3ee3.entry.js +2 -0
  331. package/dist/cura/p-5d8e3ee3.entry.js.map +1 -0
  332. package/dist/cura/{p-f8fffdc1.js → p-70c369b1.js} +1 -1
  333. package/dist/cura/p-70c369b1.js.map +1 -0
  334. package/dist/cura/p-7c41f034.entry.js +2 -0
  335. package/dist/cura/p-7c41f034.entry.js.map +1 -0
  336. package/dist/cura/p-8cecf9e5.entry.js +2 -0
  337. package/dist/cura/p-8cecf9e5.entry.js.map +1 -0
  338. package/dist/cura/p-94b5c3b3.entry.js +2 -0
  339. package/dist/cura/p-94b5c3b3.entry.js.map +1 -0
  340. package/dist/cura/p-a5456007.entry.js +2 -0
  341. package/dist/cura/p-a5456007.entry.js.map +1 -0
  342. package/dist/cura/{p-c791725b.js → p-a7221f0c.js} +1 -1
  343. package/dist/{esm-es5/cura-icon.definitions-a63d1862.js.map → cura/p-a7221f0c.js.map} +1 -1
  344. package/dist/cura/p-cd757625.entry.js +2 -0
  345. package/dist/cura/p-cd757625.entry.js.map +1 -0
  346. package/dist/cura/p-de870781.entry.js +2 -0
  347. package/dist/cura/p-de870781.entry.js.map +1 -0
  348. package/dist/cura/p-e661bcca.entry.js +2 -0
  349. package/dist/cura/p-e661bcca.entry.js.map +1 -0
  350. package/dist/cura/p-ee7388a5.entry.js +2 -0
  351. package/dist/cura/p-ee7388a5.entry.js.map +1 -0
  352. package/dist/cura/{p-3688570d.js → p-f9b8f665.js} +1 -1
  353. package/dist/{esm-es5/cura-forms.definitions-0f774253.js.map → cura/p-f9b8f665.js.map} +1 -1
  354. package/dist/cura/p-fb9bece3.entry.js +2 -0
  355. package/dist/cura/p-fb9bece3.entry.js.map +1 -0
  356. package/dist/esm/app-globals-f2da2b14.js +509 -0
  357. package/dist/esm/app-globals-f2da2b14.js.map +1 -0
  358. package/dist/esm/cura-accordion_9.entry.js +532 -0
  359. package/dist/esm/cura-accordion_9.entry.js.map +1 -0
  360. package/dist/esm/cura-alert.entry.js +57 -55
  361. package/dist/esm/cura-alert.entry.js.map +1 -1
  362. package/dist/esm/cura-avatar.entry.js +64 -0
  363. package/dist/esm/cura-avatar.entry.js.map +1 -0
  364. package/dist/esm/cura-button-outline.entry.js +102 -71
  365. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  366. package/dist/esm/cura-button-select.entry.js +91 -85
  367. package/dist/esm/cura-button-select.entry.js.map +1 -1
  368. package/dist/esm/{cura-input-text.entry.js → cura-button-transparent_2.entry.js} +423 -276
  369. package/dist/esm/cura-button-transparent_2.entry.js.map +1 -0
  370. package/dist/esm/cura-calendar.entry.js +3909 -0
  371. package/dist/esm/cura-calendar.entry.js.map +1 -0
  372. package/dist/esm/cura-card.entry.js +49 -0
  373. package/dist/esm/cura-card.entry.js.map +1 -0
  374. package/dist/esm/cura-checkbox.entry.js +168 -131
  375. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  376. package/dist/esm/cura-display.entry.js +63 -62
  377. package/dist/esm/cura-display.entry.js.map +1 -1
  378. package/dist/esm/cura-dropdown-search-option-title.entry.js +18 -0
  379. package/dist/esm/cura-dropdown-search-option-title.entry.js.map +1 -0
  380. package/dist/esm/cura-dropdown-search-option.entry.js +51 -0
  381. package/dist/esm/cura-dropdown-search-option.entry.js.map +1 -0
  382. package/dist/esm/cura-dropdown-search.entry.js +205 -0
  383. package/dist/esm/cura-dropdown-search.entry.js.map +1 -0
  384. package/dist/esm/cura-forms.definitions-2f963167.js +18 -0
  385. package/dist/esm/cura-forms.definitions-2f963167.js.map +1 -0
  386. package/dist/esm/cura-icon.definitions-aaa4e80f.js +18 -0
  387. package/dist/esm/cura-icon.definitions-aaa4e80f.js.map +1 -0
  388. package/dist/esm/cura-icons-view.entry.js +24 -23
  389. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  390. package/dist/esm/cura-radio.entry.js +142 -103
  391. package/dist/esm/cura-radio.entry.js.map +1 -1
  392. package/dist/esm/cura-select_2.entry.js +320 -0
  393. package/dist/esm/cura-select_2.entry.js.map +1 -0
  394. package/dist/esm/cura-switch.entry.js +113 -78
  395. package/dist/esm/cura-switch.entry.js.map +1 -1
  396. package/dist/esm/cura.js +14 -23
  397. package/dist/esm/cura.js.map +1 -1
  398. package/dist/esm/index-b6c443d5.js +1500 -0
  399. package/dist/esm/index-b6c443d5.js.map +1 -0
  400. package/dist/esm/index.js +1 -1
  401. package/dist/esm/index.js.map +1 -1
  402. package/dist/esm/loader.js +8 -33
  403. package/dist/esm/loader.js.map +1 -1
  404. package/dist/index.js +1 -1
  405. package/dist/loader/cdn.js +1 -3
  406. package/dist/loader/index.cjs.js +1 -3
  407. package/dist/loader/index.d.ts +4 -1
  408. package/dist/loader/index.es2017.js +1 -3
  409. package/dist/loader/index.js +1 -3
  410. package/dist/types/api/cura-api.d.ts +3 -3
  411. package/dist/types/api/cura-api.type.d.ts +44 -44
  412. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +3 -3
  413. package/dist/types/api/modules/cura-theme-colors-module.d.ts +46 -46
  414. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +22 -22
  415. package/dist/types/api/modules/cura-theme-module.d.ts +25 -25
  416. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +4 -4
  417. package/dist/types/api/theme-presets/static.d.ts +62 -62
  418. package/dist/types/api/theme-presets/theme-default.d.ts +38 -38
  419. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +38 -38
  420. package/dist/types/api/theme-presets/theme-maternity.d.ts +38 -38
  421. package/dist/types/api/theme-presets/theme-oncology.d.ts +45 -45
  422. package/dist/types/api/theme-presets/theme-presets.d.ts +175 -175
  423. package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +37 -37
  424. package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +140 -140
  425. package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +27 -27
  426. package/dist/types/components/buttons/cura-button/cura-button.d.ts +70 -59
  427. package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +184 -155
  428. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +70 -59
  429. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +184 -155
  430. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +48 -47
  431. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +65 -59
  432. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +169 -155
  433. package/dist/types/components/cura-alert/cura-alert.d.ts +14 -13
  434. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +85 -70
  435. package/dist/types/components/cura-avatar/cura-avatar.d.ts +24 -0
  436. package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +14 -0
  437. package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +167 -0
  438. package/dist/types/components/cura-calendar/cura-calendar.d.ts +323 -0
  439. package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +128 -0
  440. package/dist/types/components/cura-card/cura-card.d.ts +48 -0
  441. package/dist/types/components/cura-card/cura-card.stories.d.ts +98 -0
  442. package/dist/types/components/cura-icon/cura-icon.d.ts +12 -12
  443. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +44 -44
  444. package/dist/types/components/cura-icon/cura-icon.stories.d.ts +56 -56
  445. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +6 -6
  446. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +3 -3
  447. package/dist/types/components/cura-page-template/cura-page-template.d.ts +6 -6
  448. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +111 -95
  449. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +193 -193
  450. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +27 -0
  451. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +44 -0
  452. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.d.ts +3 -0
  453. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +103 -0
  454. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.stories.d.ts +112 -0
  455. package/dist/types/components/forms/cura-forms.definitions.d.ts +12 -12
  456. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +169 -132
  457. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +241 -218
  458. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +1 -2
  459. package/dist/types/components/forms/cura-label/cura-label.d.ts +52 -52
  460. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +112 -112
  461. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +96 -74
  462. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +162 -162
  463. package/dist/types/components/forms/cura-select/cura-select.d.ts +176 -0
  464. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +156 -0
  465. package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +17 -0
  466. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +78 -57
  467. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +121 -121
  468. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +21 -21
  469. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +35 -35
  470. package/dist/types/components/text/cura-display/cura-display.d.ts +47 -47
  471. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +101 -101
  472. package/dist/types/components/text/cura-heading/cura-heading.d.ts +58 -58
  473. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +127 -127
  474. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +47 -47
  475. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +99 -99
  476. package/dist/types/components.d.ts +689 -13
  477. package/dist/types/index.d.ts +4 -4
  478. package/dist/types/rededor-cura-start.d.ts +4 -4
  479. package/dist/types/stencil-public-runtime.d.ts +51 -15
  480. package/package.json +5 -5
  481. package/dist/cjs/app-globals-2988084b.js +0 -511
  482. package/dist/cjs/app-globals-2988084b.js.map +0 -1
  483. package/dist/cjs/css-shim-83cf0349.js +0 -8
  484. package/dist/cjs/css-shim-83cf0349.js.map +0 -1
  485. package/dist/cjs/cura-accordion_8.cjs.entry.js +0 -445
  486. package/dist/cjs/cura-accordion_8.cjs.entry.js.map +0 -1
  487. package/dist/cjs/cura-button-transparent.cjs.entry.js +0 -83
  488. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +0 -1
  489. package/dist/cjs/cura-forms.definitions-11be2ebd.js +0 -20
  490. package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +0 -1
  491. package/dist/cjs/cura-icon.definitions-b73b0178.js +0 -21
  492. package/dist/cjs/cura-icon.definitions-b73b0178.js.map +0 -1
  493. package/dist/cjs/cura-input-text.cjs.entry.js.map +0 -1
  494. package/dist/cjs/cura-label.cjs.entry.js +0 -69
  495. package/dist/cjs/cura-label.cjs.entry.js.map +0 -1
  496. package/dist/cjs/index-7616f620.js +0 -2281
  497. package/dist/cjs/index-7616f620.js.map +0 -1
  498. package/dist/cjs/shadow-css-8baae635.js +0 -391
  499. package/dist/cjs/shadow-css-8baae635.js.map +0 -1
  500. package/dist/collection/utils/utils.spec.js +0 -16
  501. package/dist/collection/utils/utils.spec.js.map +0 -1
  502. package/dist/cura/cura.js +0 -133
  503. package/dist/cura/p-118112e5.system.js +0 -14
  504. package/dist/cura/p-118112e5.system.js.map +0 -1
  505. package/dist/cura/p-120926c5.system.js +0 -2
  506. package/dist/cura/p-120926c5.system.js.map +0 -1
  507. package/dist/cura/p-1228e771.entry.js +0 -2
  508. package/dist/cura/p-1228e771.entry.js.map +0 -1
  509. package/dist/cura/p-183305c3.js +0 -2
  510. package/dist/cura/p-183305c3.js.map +0 -1
  511. package/dist/cura/p-2d42ccf4.entry.js +0 -2
  512. package/dist/cura/p-2d42ccf4.entry.js.map +0 -1
  513. package/dist/cura/p-3688570d.js.map +0 -1
  514. package/dist/cura/p-36a83bc7.system.js +0 -3
  515. package/dist/cura/p-36a83bc7.system.js.map +0 -1
  516. package/dist/cura/p-3f3355f3.system.entry.js +0 -2
  517. package/dist/cura/p-3f3355f3.system.entry.js.map +0 -1
  518. package/dist/cura/p-3f5de5e2.entry.js +0 -2
  519. package/dist/cura/p-3f5de5e2.entry.js.map +0 -1
  520. package/dist/cura/p-3f6aaefc.system.js +0 -2
  521. package/dist/cura/p-3f6aaefc.system.js.map +0 -1
  522. package/dist/cura/p-48426f60.system.js +0 -2
  523. package/dist/cura/p-48426f60.system.js.map +0 -1
  524. package/dist/cura/p-4db87e8d.system.entry.js +0 -2
  525. package/dist/cura/p-4db87e8d.system.entry.js.map +0 -1
  526. package/dist/cura/p-51e00a16.entry.js +0 -2
  527. package/dist/cura/p-51e00a16.entry.js.map +0 -1
  528. package/dist/cura/p-72a9ed55.entry.js +0 -2
  529. package/dist/cura/p-72a9ed55.entry.js.map +0 -1
  530. package/dist/cura/p-75b2e4d1.system.entry.js +0 -2
  531. package/dist/cura/p-75b2e4d1.system.entry.js.map +0 -1
  532. package/dist/cura/p-880917c1.entry.js +0 -2
  533. package/dist/cura/p-880917c1.entry.js.map +0 -1
  534. package/dist/cura/p-8d959fb2.entry.js +0 -2
  535. package/dist/cura/p-8d959fb2.entry.js.map +0 -1
  536. package/dist/cura/p-9471c93e.system.entry.js +0 -2
  537. package/dist/cura/p-9471c93e.system.entry.js.map +0 -1
  538. package/dist/cura/p-98014544.entry.js +0 -2
  539. package/dist/cura/p-98014544.entry.js.map +0 -1
  540. package/dist/cura/p-98352c92.system.entry.js +0 -2
  541. package/dist/cura/p-98352c92.system.entry.js.map +0 -1
  542. package/dist/cura/p-a32889a4.system.js +0 -2
  543. package/dist/cura/p-a32889a4.system.js.map +0 -1
  544. package/dist/cura/p-ab8c9a8f.system.entry.js +0 -2
  545. package/dist/cura/p-ab8c9a8f.system.entry.js.map +0 -1
  546. package/dist/cura/p-ad194144.entry.js +0 -2
  547. package/dist/cura/p-ad194144.entry.js.map +0 -1
  548. package/dist/cura/p-b0e13882.system.entry.js +0 -2
  549. package/dist/cura/p-b0e13882.system.entry.js.map +0 -1
  550. package/dist/cura/p-ba66d7be.js +0 -3
  551. package/dist/cura/p-ba66d7be.js.map +0 -1
  552. package/dist/cura/p-bb3f9d05.entry.js +0 -2
  553. package/dist/cura/p-bb3f9d05.entry.js.map +0 -1
  554. package/dist/cura/p-beab48cd.js +0 -13
  555. package/dist/cura/p-beab48cd.js.map +0 -1
  556. package/dist/cura/p-c791725b.js.map +0 -1
  557. package/dist/cura/p-cb4e2a0c.system.entry.js +0 -2
  558. package/dist/cura/p-cb4e2a0c.system.entry.js.map +0 -1
  559. package/dist/cura/p-d3f9c888.system.js +0 -2
  560. package/dist/cura/p-d3f9c888.system.js.map +0 -1
  561. package/dist/cura/p-e5e259fd.system.entry.js +0 -2
  562. package/dist/cura/p-e5e259fd.system.entry.js.map +0 -1
  563. package/dist/cura/p-edeffbfc.entry.js +0 -2
  564. package/dist/cura/p-edeffbfc.entry.js.map +0 -1
  565. package/dist/cura/p-f51705c2.system.entry.js +0 -2
  566. package/dist/cura/p-f51705c2.system.entry.js.map +0 -1
  567. package/dist/cura/p-f89f2ecc.system.entry.js +0 -2
  568. package/dist/cura/p-f89f2ecc.system.entry.js.map +0 -1
  569. package/dist/cura/p-f8fffdc1.js.map +0 -1
  570. package/dist/cura/p-fc4ba4ce.system.js +0 -2
  571. package/dist/cura/p-fc4ba4ce.system.js.map +0 -1
  572. package/dist/cura/p-fef52079.entry.js +0 -2
  573. package/dist/cura/p-fef52079.entry.js.map +0 -1
  574. package/dist/cura/p-ffd41520.system.entry.js +0 -2
  575. package/dist/cura/p-ffd41520.system.entry.js.map +0 -1
  576. package/dist/esm/app-globals-29001758.js +0 -509
  577. package/dist/esm/app-globals-29001758.js.map +0 -1
  578. package/dist/esm/css-shim-d13f0738.js +0 -6
  579. package/dist/esm/css-shim-d13f0738.js.map +0 -1
  580. package/dist/esm/cura-accordion_8.entry.js +0 -434
  581. package/dist/esm/cura-accordion_8.entry.js.map +0 -1
  582. package/dist/esm/cura-button-transparent.entry.js +0 -79
  583. package/dist/esm/cura-button-transparent.entry.js.map +0 -1
  584. package/dist/esm/cura-forms.definitions-0f774253.js +0 -18
  585. package/dist/esm/cura-forms.definitions-0f774253.js.map +0 -1
  586. package/dist/esm/cura-icon.definitions-a63d1862.js +0 -18
  587. package/dist/esm/cura-icon.definitions-a63d1862.js.map +0 -1
  588. package/dist/esm/cura-input-text.entry.js.map +0 -1
  589. package/dist/esm/cura-label.entry.js +0 -65
  590. package/dist/esm/cura-label.entry.js.map +0 -1
  591. package/dist/esm/index-81f1a268.js +0 -2249
  592. package/dist/esm/index-81f1a268.js.map +0 -1
  593. package/dist/esm/polyfills/core-js.js +0 -11
  594. package/dist/esm/polyfills/css-shim.js +0 -1
  595. package/dist/esm/polyfills/dom.js +0 -79
  596. package/dist/esm/polyfills/es5-html-element.js +0 -1
  597. package/dist/esm/polyfills/index.js +0 -34
  598. package/dist/esm/polyfills/system.js +0 -6
  599. package/dist/esm/shadow-css-07b0c8c8.js +0 -389
  600. package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
  601. package/dist/esm-es5/app-globals-29001758.js +0 -2
  602. package/dist/esm-es5/app-globals-29001758.js.map +0 -1
  603. package/dist/esm-es5/css-shim-d13f0738.js +0 -2
  604. package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
  605. package/dist/esm-es5/cura-accordion_8.entry.js +0 -2
  606. package/dist/esm-es5/cura-accordion_8.entry.js.map +0 -1
  607. package/dist/esm-es5/cura-alert.entry.js +0 -2
  608. package/dist/esm-es5/cura-alert.entry.js.map +0 -1
  609. package/dist/esm-es5/cura-button-outline.entry.js +0 -2
  610. package/dist/esm-es5/cura-button-outline.entry.js.map +0 -1
  611. package/dist/esm-es5/cura-button-select.entry.js +0 -2
  612. package/dist/esm-es5/cura-button-select.entry.js.map +0 -1
  613. package/dist/esm-es5/cura-button-transparent.entry.js +0 -2
  614. package/dist/esm-es5/cura-button-transparent.entry.js.map +0 -1
  615. package/dist/esm-es5/cura-checkbox.entry.js +0 -2
  616. package/dist/esm-es5/cura-checkbox.entry.js.map +0 -1
  617. package/dist/esm-es5/cura-display.entry.js +0 -2
  618. package/dist/esm-es5/cura-display.entry.js.map +0 -1
  619. package/dist/esm-es5/cura-forms.definitions-0f774253.js +0 -2
  620. package/dist/esm-es5/cura-icon.definitions-a63d1862.js +0 -2
  621. package/dist/esm-es5/cura-icons-view.entry.js +0 -2
  622. package/dist/esm-es5/cura-icons-view.entry.js.map +0 -1
  623. package/dist/esm-es5/cura-input-text.entry.js +0 -2
  624. package/dist/esm-es5/cura-input-text.entry.js.map +0 -1
  625. package/dist/esm-es5/cura-label.entry.js +0 -2
  626. package/dist/esm-es5/cura-label.entry.js.map +0 -1
  627. package/dist/esm-es5/cura-radio.entry.js +0 -2
  628. package/dist/esm-es5/cura-radio.entry.js.map +0 -1
  629. package/dist/esm-es5/cura-switch.entry.js +0 -2
  630. package/dist/esm-es5/cura-switch.entry.js.map +0 -1
  631. package/dist/esm-es5/cura.js +0 -2
  632. package/dist/esm-es5/cura.js.map +0 -1
  633. package/dist/esm-es5/index-81f1a268.js +0 -3
  634. package/dist/esm-es5/index-81f1a268.js.map +0 -1
  635. package/dist/esm-es5/index.js +0 -2
  636. package/dist/esm-es5/index.js.map +0 -1
  637. package/dist/esm-es5/loader.js +0 -2
  638. package/dist/esm-es5/loader.js.map +0 -1
  639. package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
  640. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
@@ -1,12 +1,18 @@
1
1
  import { CuraAccordion } from './cura-accordion.js';
2
2
  import { CuraAccordionItem } from './cura-accordion-item.js';
3
3
  import { CuraAlert } from './cura-alert.js';
4
+ import { CuraAvatar } from './cura-avatar.js';
4
5
  import { CuraButton } from './cura-button.js';
5
6
  import { CuraButtonOutline } from './cura-button-outline.js';
6
7
  import { CuraButtonSelect } from './cura-button-select.js';
7
8
  import { CuraButtonTransparent } from './cura-button-transparent.js';
9
+ import { CuraCalendar } from './cura-calendar.js';
10
+ import { CuraCard } from './cura-card.js';
8
11
  import { CuraCheckbox } from './cura-checkbox.js';
9
12
  import { CuraDisplay } from './cura-display.js';
13
+ import { CuraDropdownSearch } from './cura-dropdown-search.js';
14
+ import { CuraDropdownSearchOption } from './cura-dropdown-search-option.js';
15
+ import { CuraDropdownSearchOptionTitle } from './cura-dropdown-search-option-title.js';
10
16
  import { CuraHeading } from './cura-heading.js';
11
17
  import { CuraIcon } from './cura-icon.js';
12
18
  import { CuraIconsView } from './cura-icons-view.js';
@@ -16,548 +22,558 @@ import { CuraLoaderCircle } from './cura-loader-circle.js';
16
22
  import { CuraPageTemplate } from './cura-page-template.js';
17
23
  import { CuraParagraph } from './cura-paragraph.js';
18
24
  import { CuraRadio } from './cura-radio.js';
25
+ import { CuraSelect } from './cura-select.js';
26
+ import { CuraSelectOption } from './cura-select-option.js';
19
27
  import { CuraSwitch } from './cura-switch.js';
20
- export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
28
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
21
29
 
22
30
  /**
23
31
  * Cura Default Theme
24
32
  */
25
33
  const ThemeDefault = {
26
- /* Colors */
27
- color: {
28
- primary: {
29
- '100': '113,197,232',
30
- '300': '68,142,205',
31
- '500': '0,61,165',
32
- '700': '0,48,117',
33
- '900': '0,40,85'
34
+ /* Colors */
35
+ color: {
36
+ primary: {
37
+ '100': '113,197,232',
38
+ '300': '68,142,205',
39
+ '500': '0,61,165',
40
+ '700': '0,48,117',
41
+ '900': '0,40,85'
42
+ },
43
+ secondary: {
44
+ '100': '245,236,227',
45
+ '300': '221,192,162',
46
+ '500': '204,160,116',
47
+ '700': '136,107,77',
48
+ '900': '41,32,23'
49
+ },
50
+ accent: {
51
+ '100': '255,194,123',
52
+ '300': '255,168,74',
53
+ '500': '255,130,0',
54
+ '700': '215,114,10',
55
+ '900': '155,90,26'
56
+ }
34
57
  },
35
- secondary: {
36
- '100': '245,236,227',
37
- '300': '221,192,162',
38
- '500': '204,160,116',
39
- '700': '136,107,77',
40
- '900': '41,32,23'
58
+ /* Spacing */
59
+ spacing: {
60
+ base: 4,
41
61
  },
42
- accent: {
43
- '100': '255,194,123',
44
- '300': '255,168,74',
45
- '500': '255,130,0',
46
- '700': '215,114,10',
47
- '900': '155,90,26'
62
+ /* Fonts */
63
+ font: {
64
+ size: '14px',
65
+ color: '#4A4A4A',
66
+ body: "'Roboto', Arial, Helvetica, sans-serif",
67
+ heading: "'Roboto', Arial, Helvetica, sans-serif",
68
+ display: "'Roboto', Arial, Helvetica, sans-serif",
69
+ weights: {
70
+ thin: 100,
71
+ light: 300,
72
+ regular: 400,
73
+ medium: 500,
74
+ bold: 700,
75
+ black: 900
76
+ },
48
77
  }
49
- },
50
- /* Spacing */
51
- spacing: {
52
- base: 4,
53
- },
54
- /* Fonts */
55
- font: {
56
- size: '14px',
57
- color: '#4A4A4A',
58
- body: "'Roboto', Arial, Helvetica, sans-serif",
59
- heading: "'Roboto', Arial, Helvetica, sans-serif",
60
- display: "'Roboto', Arial, Helvetica, sans-serif",
61
- weights: {
62
- thin: 100,
63
- light: 300,
64
- regular: 400,
65
- medium: 500,
66
- bold: 700,
67
- black: 900
68
- },
69
- }
70
78
  };
71
79
 
72
80
  /**
73
81
  * Maternity Theme
74
82
  */
75
83
  const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
76
- /* Custom */
77
- /* Colors */
78
- color: {
79
- primary: {
80
- '100': '248,227,226',
81
- '300': '255,179,171',
82
- '500': '218,113,111',
83
- '700': '145,75,74',
84
- '900': '73,38,37'
85
- },
86
- secondary: {
87
- '100': '253,251,249',
88
- '300': '247,244,238',
89
- '500': '245,236,227',
90
- '700': '204,197,189',
91
- '900': '163,157,151'
92
- },
93
- accent: {
94
- '100': '236,239,249',
95
- '300': '133,153,203',
96
- '500': '11,20,151',
97
- '700': '7,13,101',
98
- '900': '4,7,50'
99
- }
100
- }, font: {
101
- size: '14px',
102
- color: '#4A4A4A',
103
- body: "'Gotham', Arial, Helvetica, sans-serif",
104
- heading: "'Gotham', Arial, Helvetica, sans-serif",
105
- display: "'Gotham', Arial, Helvetica, sans-serif",
106
- weights: {
107
- thin: 325,
108
- light: 325,
109
- regular: 325,
110
- medium: 350,
111
- bold: 400,
112
- black: 425
113
- },
114
- } });
84
+ /* Custom */
85
+ /* Colors */
86
+ color: {
87
+ primary: {
88
+ '100': '248,227,226',
89
+ '300': '255,179,171',
90
+ '500': '218,113,111',
91
+ '700': '145,75,74',
92
+ '900': '73,38,37'
93
+ },
94
+ secondary: {
95
+ '100': '253,251,249',
96
+ '300': '247,244,238',
97
+ '500': '245,236,227',
98
+ '700': '204,197,189',
99
+ '900': '163,157,151'
100
+ },
101
+ accent: {
102
+ '100': '236,239,249',
103
+ '300': '133,153,203',
104
+ '500': '11,20,151',
105
+ '700': '7,13,101',
106
+ '900': '4,7,50'
107
+ }
108
+ }, font: {
109
+ size: '14px',
110
+ color: '#4A4A4A',
111
+ body: "'Gotham', Arial, Helvetica, sans-serif",
112
+ heading: "'Gotham', Arial, Helvetica, sans-serif",
113
+ display: "'Gotham', Arial, Helvetica, sans-serif",
114
+ weights: {
115
+ thin: 325,
116
+ light: 325,
117
+ regular: 325,
118
+ medium: 350,
119
+ bold: 400,
120
+ black: 425
121
+ },
122
+ } });
115
123
 
116
124
  /**
117
125
  * Oncology Theme
118
126
  */
119
127
  const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
120
- /* Custom */
121
- /* Colors */
122
- color: {
123
- primary: {
124
- '100': '170,190,225',
125
- '300': '85,126,196',
126
- '500': '0,61,166',
127
- '700': '0,41,111',
128
- '900': '0,12,33'
129
- },
130
- secondary: {
131
- '100': '205,215,227',
132
- '300': '155,175,199',
133
- '500': '104,134,171',
134
- '700': '54,95,143',
135
- '900': '4,54,115',
136
- },
137
- accent: {
138
- '100': '153,207,255',
139
- '300': '71,169,255',
140
- '500': '0,131,245',
141
- '700': '0,109,204',
142
- '900': '0,88,164',
143
- },
144
- aux: {
145
- '100': '218,242,239',
146
- '300': '132,212,202',
147
- '500': '71,191,176',
148
- '700': '33,100,92',
149
- '900': '14,38,35',
150
- },
151
- }, font: {
152
- size: '14px',
153
- color: '#4A4A4A',
154
- body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
155
- heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
156
- display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
157
- weights: {
158
- thin: 100,
159
- light: 300,
160
- regular: 400,
161
- medium: 500,
162
- bold: 700,
163
- black: 900
164
- },
165
- } });
128
+ /* Custom */
129
+ /* Colors */
130
+ color: {
131
+ primary: {
132
+ '100': '170,190,225',
133
+ '300': '85,126,196',
134
+ '500': '0,61,166',
135
+ '700': '0,41,111',
136
+ '900': '0,12,33'
137
+ },
138
+ secondary: {
139
+ '100': '205,215,227',
140
+ '300': '155,175,199',
141
+ '500': '104,134,171',
142
+ '700': '54,95,143',
143
+ '900': '4,54,115',
144
+ },
145
+ accent: {
146
+ '100': '153,207,255',
147
+ '300': '71,169,255',
148
+ '500': '0,131,245',
149
+ '700': '0,109,204',
150
+ '900': '0,88,164',
151
+ },
152
+ aux: {
153
+ '100': '218,242,239',
154
+ '300': '132,212,202',
155
+ '500': '71,191,176',
156
+ '700': '33,100,92',
157
+ '900': '14,38,35',
158
+ },
159
+ }, font: {
160
+ size: '14px',
161
+ color: '#4A4A4A',
162
+ body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
163
+ heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
164
+ display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
165
+ weights: {
166
+ thin: 100,
167
+ light: 300,
168
+ regular: 400,
169
+ medium: 500,
170
+ bold: 700,
171
+ black: 900
172
+ },
173
+ } });
166
174
 
167
175
  /**
168
176
  * Legacy Default Theme
169
177
  */
170
178
  const ThemeLegacyDefault = Object.assign(Object.assign({}, ThemeDefault), {
171
- /* Custom */
172
- /* Colors */
173
- color: {
174
- primary: {
175
- '100': '204,217,231',
176
- '300': '85,128,174',
177
- '500': '0,65,134',
178
- '700': '0,43,89',
179
- '900': '0,13,27'
180
- },
181
- secondary: {
182
- '100': '238,232,206',
183
- '300': '198,180,92',
184
- '500': '170,142,11',
185
- '700': '113,95,7',
186
- '900': '34,28,2'
187
- },
188
- accent: {
189
- '100': '249,232,213',
190
- '300': '228,160,79',
191
- '500': '223,141,44',
192
- '700': '149,94,29',
193
- '900': '45,28,9'
194
- }
195
- } });
179
+ /* Custom */
180
+ /* Colors */
181
+ color: {
182
+ primary: {
183
+ '100': '204,217,231',
184
+ '300': '85,128,174',
185
+ '500': '0,65,134',
186
+ '700': '0,43,89',
187
+ '900': '0,13,27'
188
+ },
189
+ secondary: {
190
+ '100': '238,232,206',
191
+ '300': '198,180,92',
192
+ '500': '170,142,11',
193
+ '700': '113,95,7',
194
+ '900': '34,28,2'
195
+ },
196
+ accent: {
197
+ '100': '249,232,213',
198
+ '300': '228,160,79',
199
+ '500': '223,141,44',
200
+ '700': '149,94,29',
201
+ '900': '45,28,9'
202
+ }
203
+ } });
196
204
 
197
205
  const ThemePresets = {
198
- 'default': ThemeDefault,
199
- 'maternidade': ThemeMaternity,
200
- 'oncologia': ThemeOncology,
201
- 'legacyDefault': ThemeLegacyDefault
206
+ 'default': ThemeDefault,
207
+ 'maternidade': ThemeMaternity,
208
+ 'oncologia': ThemeOncology,
209
+ 'legacyDefault': ThemeLegacyDefault
202
210
  };
203
211
 
204
212
  /**
205
213
  * Static
206
214
  */
207
215
  const Static = {
208
- /* Colors */
209
- color: {
210
- success: {
211
- '100': '223,246,233',
212
- '300': '148,225,181',
213
- '500': '95,210,144',
214
- '700': '49,115,77',
215
- '900': '19,42,29',
216
- },
217
- info: {
218
- '100': '207,226,255',
219
- '300': '149,191,255',
220
- '500': '110,168,255',
221
- '700': '66,100,153',
222
- '900': '37,56,85',
223
- },
224
- error: {
225
- '100': '251,221,221',
226
- '300': '242,143,143',
227
- '500': '235,87,87',
228
- '700': '157,58,58',
229
- '900': '47,17,17',
230
- },
231
- warning: {
232
- '100': '252,250,196',
233
- '300': '248,244,137',
234
- '500': '245,239,78',
235
- '700': '108,106,32',
236
- '900': '49,48,16',
237
- },
238
- neutral: {
239
- '0': '255,255,255',
240
- '100': '246,246,246',
241
- '200': '233,233,233',
242
- '300': '226,226,226',
243
- '400': '212,212,212',
244
- '500': '183,183,183',
245
- '600': '146,146,146',
246
- '700': '110,110,110',
247
- '800': '74,74,74',
248
- '900': '38,38,38',
249
- },
250
- },
251
- breakpoints: {
252
- xsmall: {
253
- min: 0,
254
- max: 480
255
- },
256
- small: {
257
- min: 481,
258
- max: 768
259
- },
260
- medium: {
261
- min: 769,
262
- max: 992
216
+ /* Colors */
217
+ color: {
218
+ success: {
219
+ '100': '223,246,233',
220
+ '300': '148,225,181',
221
+ '500': '95,210,144',
222
+ '700': '49,115,77',
223
+ '900': '19,42,29',
224
+ },
225
+ info: {
226
+ '100': '207,226,255',
227
+ '300': '149,191,255',
228
+ '500': '110,168,255',
229
+ '700': '66,100,153',
230
+ '900': '37,56,85',
231
+ },
232
+ error: {
233
+ '100': '251,221,221',
234
+ '300': '242,143,143',
235
+ '500': '235,87,87',
236
+ '700': '157,58,58',
237
+ '900': '47,17,17',
238
+ },
239
+ warning: {
240
+ '100': '252,250,196',
241
+ '300': '248,244,137',
242
+ '500': '245,239,78',
243
+ '700': '108,106,32',
244
+ '900': '49,48,16',
245
+ },
246
+ neutral: {
247
+ '0': '255,255,255',
248
+ '100': '246,246,246',
249
+ '200': '233,233,233',
250
+ '300': '226,226,226',
251
+ '400': '212,212,212',
252
+ '500': '183,183,183',
253
+ '600': '146,146,146',
254
+ '700': '110,110,110',
255
+ '800': '74,74,74',
256
+ '900': '38,38,38',
257
+ },
263
258
  },
264
- large: {
265
- min: 993,
266
- max: 1920
267
- },
268
- xlarge: {
269
- min: 1921,
270
- max: 4096
259
+ breakpoints: {
260
+ xsmall: {
261
+ min: 0,
262
+ max: 480
263
+ },
264
+ small: {
265
+ min: 481,
266
+ max: 768
267
+ },
268
+ medium: {
269
+ min: 769,
270
+ max: 992
271
+ },
272
+ large: {
273
+ min: 993,
274
+ max: 1920
275
+ },
276
+ xlarge: {
277
+ min: 1921,
278
+ max: 4096
279
+ }
271
280
  }
272
- }
273
281
  };
274
282
 
275
283
  class CuraThemeColorsModule {
276
- constructor() {
277
- this.NeutralDepthAlias = {
278
- 'purewhite': '0',
279
- 'white': '100',
280
- 'pale': '200',
281
- 'lighter': '300',
282
- 'light': '400',
283
- 'base': '500',
284
- 'medium': '600',
285
- 'dark': '700',
286
- 'darker': '800',
287
- 'black': '900',
288
- };
289
- this.ColorDepthAlias = {
290
- 'lighter': '100',
291
- 'light': '300',
292
- 'base': '500',
293
- 'dark': '700',
294
- 'darker': '900'
295
- };
296
- }
297
- /**
298
- * Get theme color.
299
- * @param colorWithDepth string Ex.: primary-light
300
- * @returns RGBA value.
301
- */
302
- getColor(colorWithDepth = "primary-base", opacity = 1) {
303
- const { color, depth } = this.splitColorDepth(colorWithDepth);
304
- const staticColor = this.getStatic(color, depth, opacity);
305
- if (staticColor)
306
- return staticColor;
307
- return this.getDynamic(color, depth, opacity);
308
- }
309
- /**
310
- * Internal: Look for static color by name and depth.
311
- * @param color Color name.
312
- * @param depth Depth number or alias.
313
- * @returns RGBA value.
314
- */
315
- getStatic(color, depth, opacity = 1) {
316
- var _a, _b, _c;
317
- const colorObj = Static.color[color];
318
- if (!colorObj)
319
- return null;
320
- const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
321
- return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
322
- ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
323
- : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
324
- }
325
- /**
326
- * Internal: Look for theme dynamic colors.
327
- * @param color Color name.
328
- * @param depth Color depth.
329
- * @returns RGBA value.
330
- */
331
- getDynamic(color, depth, opacity) {
332
- const themeVar = this.ColorDepthAlias[depth]
333
- ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
334
- : `--cura-color-${color}-${depth}`;
335
- return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
336
- ? `rgba(var(${themeVar}), ${opacity})`
337
- : `rgba(var(--cura-color-primary-500), ${opacity})`;
338
- }
339
- /**
340
- * Internal: Split color strings
341
- * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
342
- * @returns Object { color: string, depth: string }.
343
- */
344
- splitColorDepth(colorWithDepth) {
345
- const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
346
- return { color: color !== null && color !== void 0 ? color : "primary", depth: depth !== null && depth !== void 0 ? depth : "base" };
347
- }
284
+ constructor() {
285
+ this.NeutralDepthAlias = {
286
+ 'purewhite': '0',
287
+ 'white': '100',
288
+ 'pale': '200',
289
+ 'lighter': '300',
290
+ 'light': '400',
291
+ 'base': '500',
292
+ 'medium': '600',
293
+ 'dark': '700',
294
+ 'darker': '800',
295
+ 'black': '900',
296
+ };
297
+ this.ColorDepthAlias = {
298
+ 'lighter': '100',
299
+ 'light': '300',
300
+ 'base': '500',
301
+ 'dark': '700',
302
+ 'darker': '900'
303
+ };
304
+ }
305
+ /**
306
+ * Get theme color.
307
+ * @param colorWithDepth string Ex.: primary-light
308
+ * @returns RGBA value.
309
+ */
310
+ getColor(colorWithDepth = "primary-base", opacity = 1) {
311
+ const { color, depth } = this.splitColorDepth(colorWithDepth);
312
+ const staticColor = this.getStatic(color, depth, opacity);
313
+ if (staticColor)
314
+ return staticColor;
315
+ return this.getDynamic(color, depth, opacity);
316
+ }
317
+ /**
318
+ * Internal: Look for static color by name and depth.
319
+ * @param color Color name.
320
+ * @param depth Depth number or alias.
321
+ * @returns RGBA value.
322
+ */
323
+ getStatic(color, depth, opacity = 1) {
324
+ var _a, _b, _c;
325
+ const colorObj = Static.color[color];
326
+ if (!colorObj)
327
+ return null;
328
+ const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
329
+ return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
330
+ ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
331
+ : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
332
+ }
333
+ /**
334
+ * Internal: Look for theme dynamic colors.
335
+ * @param color Color name.
336
+ * @param depth Color depth.
337
+ * @returns RGBA value.
338
+ */
339
+ getDynamic(color, depth, opacity) {
340
+ const themeVar = this.ColorDepthAlias[depth]
341
+ ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
342
+ : `--cura-color-${color}-${depth}`;
343
+ return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
344
+ ? `rgba(var(${themeVar}), ${opacity})`
345
+ : `rgba(var(--cura-color-primary-500), ${opacity})`;
346
+ }
347
+ /**
348
+ * Internal: Split color strings
349
+ * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
350
+ * @returns Object { color: string, depth: string }.
351
+ */
352
+ splitColorDepth(colorWithDepth) {
353
+ const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
354
+ return { color: color !== null && color !== void 0 ? color : "primary", depth: depth !== null && depth !== void 0 ? depth : "base" };
355
+ }
348
356
  }
349
357
 
350
358
  class CuraThemeSpacingModule {
351
- constructor() {
352
- this.curaSpacing = '--cura-spacing-base';
353
- }
354
- /** Returns the base spacing var defined in the theme */
355
- getSpacing() {
356
- if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {
357
- return `var(${this.curaSpacing})`;
359
+ constructor() {
360
+ this.curaSpacing = '--cura-spacing-base';
361
+ }
362
+ /** Returns the base spacing var defined in the theme */
363
+ getSpacing() {
364
+ if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {
365
+ return `var(${this.curaSpacing})`;
366
+ }
367
+ return '4';
358
368
  }
359
- return '4';
360
- }
361
369
  }
362
370
 
363
371
  class CuraThemeFontsModule {
364
- constructor() {
372
+ constructor() {
373
+ /**
374
+ * Get the CSS variable related to the font size base defined by the theme.
375
+ * @returns Related CSS variable as a string.
376
+ */
377
+ this.getSize = () => `var(--cura-font-size)`;
378
+ /**
379
+ * Get CSS variable related to the font color defined by the theme.
380
+ * @returns Related CSS variable as a string.
381
+ */
382
+ this.getColor = () => `var(--cura-font-color)`;
383
+ }
365
384
  /**
366
- * Get the CSS variable related to the font size base defined by the theme.
367
- * @returns Related CSS variable as a string.
385
+ * Get the CSS variable related to the font family defined by the theme.
386
+ * @param type 'body' | 'heading' | 'display'
387
+ * @returns Related css variable as a string.
368
388
  */
369
- this.getSize = () => `var(--cura-font-size)`;
389
+ getFamily(type = "body") {
390
+ const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;
391
+ return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)
392
+ ? `var(${curaFontFamilyCSSVar})`
393
+ : 'var(--cura-font-body)';
394
+ }
370
395
  /**
371
- * Get CSS variable related to the font color defined by the theme.
372
- * @returns Related CSS variable as a string.
396
+ * Get the CSS variables related to font weights defined by the theme.
397
+ * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.
373
398
  */
374
- this.getColor = () => `var(--cura-font-color)`;
375
- }
376
- /**
377
- * Get the CSS variable related to the font family defined by the theme.
378
- * @param type 'body' | 'heading' | 'display'
379
- * @returns Related css variable as a string.
380
- */
381
- getFamily(type = "body") {
382
- const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;
383
- return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)
384
- ? `var(${curaFontFamilyCSSVar})`
385
- : 'var(--cura-font-body)';
386
- }
387
- /**
388
- * Get the CSS variables related to font weights defined by the theme.
389
- * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.
390
- */
391
- getWeights() {
392
- const weights = {};
393
- Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);
394
- return weights;
395
- }
399
+ getWeights() {
400
+ const weights = {};
401
+ Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);
402
+ return weights;
403
+ }
396
404
  }
397
405
 
398
406
  class CuraThemeBreakpointsModule {
399
- constructor() { }
400
- /** Returns the base spacing var defined in the theme */
401
- get(size = null, position = null) {
402
- if (size) {
403
- const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];
404
- if (breakpoint || breakpoint === 0)
405
- return breakpoint;
407
+ constructor() { }
408
+ /** Returns the base spacing var defined in the theme */
409
+ get(size = null, position = null) {
410
+ if (size) {
411
+ const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];
412
+ if (breakpoint || breakpoint === 0)
413
+ return breakpoint;
414
+ }
415
+ return Static.breakpoints;
406
416
  }
407
- return Static.breakpoints;
408
- }
409
417
  }
410
418
 
411
419
  class CuraThemeModule {
412
- constructor() {
413
- this.prefix = '--cura';
414
- this.colors = new CuraThemeColorsModule();
415
- this.spacing = new CuraThemeSpacingModule();
416
- this.fonts = new CuraThemeFontsModule();
417
- this.breakpoints = new CuraThemeBreakpointsModule();
418
- /* Private */
419
- /** Set css var based on object structure */
420
- this.setCssVar = (prop, path) => {
421
- const varName = this.groupPath(path, prop[0]);
422
- this.rootElement.style.setProperty(varName, prop[1]);
423
- };
424
- this.groupPath = (a, b) => `${a}-${b}`;
425
- this.isObject = (val) => {
426
- return val && typeof val === 'object' && !Array.isArray(val);
427
- };
428
- /** Deep merge objects */
429
- this.mergeObject = (from, to) => {
430
- const entries = Object.entries(from);
431
- for (let e of entries) {
432
- if (this.isObject(e[1])) {
433
- this.mergeObject(e[1], to[e[0]]);
434
- }
435
- else {
436
- to[e[0]] = e[1];
437
- }
438
- }
439
- };
440
- /** Set css vars from preset object */
441
- this.buildCssVars = (path, obj) => {
442
- const entries = Object.entries(obj);
443
- for (let e of entries) {
444
- if (this.isObject(e[1])) {
445
- this.buildCssVars(this.groupPath(path, e[0]), e[1]);
420
+ constructor() {
421
+ this.prefix = '--cura';
422
+ this.colors = new CuraThemeColorsModule();
423
+ this.spacing = new CuraThemeSpacingModule();
424
+ this.fonts = new CuraThemeFontsModule();
425
+ this.breakpoints = new CuraThemeBreakpointsModule();
426
+ /* Private */
427
+ /** Set css var based on object structure */
428
+ this.setCssVar = (prop, path) => {
429
+ const varName = this.groupPath(path, prop[0]);
430
+ this.rootElement.style.setProperty(varName, prop[1]);
431
+ };
432
+ this.groupPath = (a, b) => `${a}-${b}`;
433
+ this.isObject = (val) => {
434
+ return val && typeof val === 'object' && !Array.isArray(val);
435
+ };
436
+ /** Deep merge objects */
437
+ this.mergeObject = (from, to) => {
438
+ const entries = Object.entries(from);
439
+ for (let e of entries) {
440
+ if (this.isObject(e[1])) {
441
+ this.mergeObject(e[1], to[e[0]]);
442
+ }
443
+ else {
444
+ to[e[0]] = e[1];
445
+ }
446
+ }
447
+ };
448
+ /** Set css vars from preset object */
449
+ this.buildCssVars = (path, obj) => {
450
+ const entries = Object.entries(obj);
451
+ for (let e of entries) {
452
+ if (this.isObject(e[1])) {
453
+ this.buildCssVars(this.groupPath(path, e[0]), e[1]);
454
+ }
455
+ else {
456
+ this.setCssVar(e, path);
457
+ }
458
+ }
459
+ };
460
+ this.rootElement = window.document.documentElement;
461
+ }
462
+ /**
463
+ * Load a theme.
464
+ * @param theme Theme tag.
465
+ */
466
+ load(theme = 'default') {
467
+ const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
468
+ this.buildCssVars(this.prefix, preset);
469
+ }
470
+ /**
471
+ * Define a custom theme
472
+ * @param customTheme Custom theme object definition
473
+ */
474
+ setCustom(customTheme) {
475
+ const customTag = customTheme.name;
476
+ if (customTag in ThemePresets) {
477
+ console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);
478
+ this.load('default');
446
479
  }
447
480
  else {
448
- this.setCssVar(e, path);
481
+ const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets
482
+ ? ThemePresets[customTheme.fromPreset]
483
+ : ThemePresets.default;
484
+ const newTheme = Object.assign({}, JSON.parse(JSON.stringify(preset)));
485
+ this.mergeObject(customTheme.definitions, newTheme);
486
+ ThemePresets[customTag] = newTheme;
487
+ this.load(customTag);
449
488
  }
450
- }
451
- };
452
- this.rootElement = window.document.documentElement;
453
- }
454
- /**
455
- * Load a theme.
456
- * @param theme Theme tag.
457
- */
458
- load(theme = 'default') {
459
- const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
460
- this.buildCssVars(this.prefix, preset);
461
- }
462
- /**
463
- * Define a custom theme
464
- * @param customTheme Custom theme object definition
465
- */
466
- setCustom(customTheme) {
467
- const customTag = customTheme.name;
468
- if (customTag in ThemePresets) {
469
- console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);
470
- this.load('default');
471
- }
472
- else {
473
- const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets
474
- ? ThemePresets[customTheme.fromPreset]
475
- : ThemePresets.default;
476
- const newTheme = Object.assign({}, JSON.parse(JSON.stringify(preset)));
477
- this.mergeObject(customTheme.definitions, newTheme);
478
- ThemePresets[customTag] = newTheme;
479
- this.load(customTag);
480
489
  }
481
- }
482
490
  }
483
491
 
484
492
  class CuraAPI {
485
- constructor(config) {
486
- this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
487
- const themeModule = new CuraThemeModule();
488
- this.theme = {
489
- load: function (themeTag) { themeModule.load(themeTag); },
490
- setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
491
- colors: {
492
- getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
493
- },
494
- fonts: {
495
- getFamily: function (type) { return themeModule.fonts.getFamily(type); },
496
- getWeights: function () { return themeModule.fonts.getWeights(); },
497
- getSize: function () { return themeModule.fonts.getSize(); },
498
- getColor: function () { return themeModule.fonts.getColor(); }
499
- },
500
- spacing: {
501
- getSpacing: function () { return themeModule.spacing.getSpacing(); },
502
- },
503
- breakpoints: {
504
- get: function (size, position) { return themeModule.breakpoints.get(size, position); }
505
- }
506
- };
507
- if (config && config.customTheme) {
508
- this.theme.setCustom(config.customTheme);
509
- }
510
- else {
511
- const theme = config && config.theme ? config.theme : 'default';
512
- this.theme.load(theme);
493
+ constructor(config) {
494
+ this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
495
+ const themeModule = new CuraThemeModule();
496
+ this.theme = {
497
+ load: function (themeTag) { themeModule.load(themeTag); },
498
+ setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
499
+ colors: {
500
+ getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
501
+ },
502
+ fonts: {
503
+ getFamily: function (type) { return themeModule.fonts.getFamily(type); },
504
+ getWeights: function () { return themeModule.fonts.getWeights(); },
505
+ getSize: function () { return themeModule.fonts.getSize(); },
506
+ getColor: function () { return themeModule.fonts.getColor(); }
507
+ },
508
+ spacing: {
509
+ getSpacing: function () { return themeModule.spacing.getSpacing(); },
510
+ },
511
+ breakpoints: {
512
+ get: function (size, position) { return themeModule.breakpoints.get(size, position); }
513
+ }
514
+ };
515
+ if (config && config.customTheme) {
516
+ this.theme.setCustom(config.customTheme);
517
+ }
518
+ else {
519
+ const theme = config && config.theme ? config.theme : 'default';
520
+ this.theme.load(theme);
521
+ }
513
522
  }
514
- }
515
523
  }
516
524
 
517
525
  function appGlobalScript () {
518
- const config = window.CuraInit;
519
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
520
- const api = window.CuraAPI;
521
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
522
- if (config && typeof config.onReady === 'function')
523
- config.onReady(api);
526
+ const config = window.CuraInit;
527
+ window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
528
+ const api = window.CuraAPI;
529
+ window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
530
+ if (config && typeof config.onReady === 'function')
531
+ config.onReady(api);
524
532
  }
525
533
 
526
534
  const globalScripts = appGlobalScript;
527
535
 
528
536
  function CuraInit(options, w = window) {
529
- w.CuraInit = options;
537
+ w.CuraInit = options;
530
538
  }
531
539
 
532
540
  globalScripts();
533
541
  const defineCustomElements = (opts) => {
534
- if (typeof customElements !== 'undefined') {
535
- [
536
- CuraAccordion,
537
- CuraAccordionItem,
538
- CuraAlert,
539
- CuraButton,
540
- CuraButtonOutline,
541
- CuraButtonSelect,
542
- CuraButtonTransparent,
543
- CuraCheckbox,
544
- CuraDisplay,
545
- CuraHeading,
546
- CuraIcon,
547
- CuraIconsView,
548
- CuraInputText,
549
- CuraLabel,
550
- CuraLoaderCircle,
551
- CuraPageTemplate,
552
- CuraParagraph,
553
- CuraRadio,
554
- CuraSwitch,
555
- ].forEach(cmp => {
556
- if (!customElements.get(cmp.is)) {
557
- customElements.define(cmp.is, cmp, opts);
558
- }
559
- });
560
- }
542
+ if (typeof customElements !== 'undefined') {
543
+ [
544
+ CuraAccordion,
545
+ CuraAccordionItem,
546
+ CuraAlert,
547
+ CuraAvatar,
548
+ CuraButton,
549
+ CuraButtonOutline,
550
+ CuraButtonSelect,
551
+ CuraButtonTransparent,
552
+ CuraCalendar,
553
+ CuraCard,
554
+ CuraCheckbox,
555
+ CuraDisplay,
556
+ CuraDropdownSearch,
557
+ CuraDropdownSearchOption,
558
+ CuraDropdownSearchOptionTitle,
559
+ CuraHeading,
560
+ CuraIcon,
561
+ CuraIconsView,
562
+ CuraInputText,
563
+ CuraLabel,
564
+ CuraLoaderCircle,
565
+ CuraPageTemplate,
566
+ CuraParagraph,
567
+ CuraRadio,
568
+ CuraSelect,
569
+ CuraSelectOption,
570
+ CuraSwitch,
571
+ ].forEach(cmp => {
572
+ if (!customElements.get(cmp.is)) {
573
+ customElements.define(cmp.is, cmp, opts);
574
+ }
575
+ });
576
+ }
561
577
  };
562
578
 
563
579
  export { CuraInit, defineCustomElements };