@rededor/cura 0.5.5 → 1.0.0-alpha.1

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 (647) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -0
  2. package/dist/assets/{icons → assets/icons}/iconset-default-tmp.svg +8 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -0
  4. package/dist/assets/assets/images/avatar/doctor-default.svg +8 -0
  5. package/dist/assets/assets/images/avatar/dora-default.svg +5 -0
  6. package/dist/assets/assets/images/avatar/patient-default.svg +12 -0
  7. package/dist/assets/assets/images/avatar/unit-default.svg +9 -0
  8. package/dist/assets/assets/images/logoCura.svg +15 -0
  9. package/dist/cjs/app-globals-bcffd819.js +511 -0
  10. package/dist/cjs/app-globals-bcffd819.js.map +1 -0
  11. package/dist/cjs/cura-accordion_9.cjs.entry.js +544 -0
  12. package/dist/cjs/cura-accordion_9.cjs.entry.js.map +1 -0
  13. package/dist/cjs/cura-alert.cjs.entry.js +57 -55
  14. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
  15. package/dist/cjs/cura-avatar.cjs.entry.js +68 -0
  16. package/dist/cjs/cura-avatar.cjs.entry.js.map +1 -0
  17. package/dist/cjs/cura-button-outline.cjs.entry.js +102 -71
  18. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  19. package/dist/cjs/cura-button-select.cjs.entry.js +91 -85
  20. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  21. package/dist/cjs/cura-button-transparent_2.cjs.entry.js +4055 -0
  22. package/dist/cjs/cura-button-transparent_2.cjs.entry.js.map +1 -0
  23. package/dist/cjs/cura-calendar.cjs.entry.js +3913 -0
  24. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -0
  25. package/dist/cjs/cura-card.cjs.entry.js +53 -0
  26. package/dist/cjs/cura-card.cjs.entry.js.map +1 -0
  27. package/dist/cjs/cura-checkbox.cjs.entry.js +168 -131
  28. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  29. package/dist/cjs/cura-display.cjs.entry.js +63 -62
  30. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +22 -0
  32. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js.map +1 -0
  33. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +55 -0
  34. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js.map +1 -0
  35. package/dist/cjs/cura-dropdown-search.cjs.entry.js +217 -0
  36. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -0
  37. package/dist/cjs/cura-forms.definitions-c164f1b8.js +20 -0
  38. package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +1 -0
  39. package/dist/cjs/cura-icon.definitions-8d714f6a.js +21 -0
  40. package/dist/cjs/cura-icon.definitions-8d714f6a.js.map +1 -0
  41. package/dist/cjs/cura-icons-view.cjs.entry.js +24 -23
  42. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  43. package/dist/cjs/cura-radio.cjs.entry.js +142 -103
  44. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  45. package/dist/cjs/cura-select_2.cjs.entry.js +325 -0
  46. package/dist/cjs/cura-select_2.cjs.entry.js.map +1 -0
  47. package/dist/cjs/cura-switch.cjs.entry.js +113 -78
  48. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  49. package/dist/cjs/cura.cjs.js +13 -22
  50. package/dist/cjs/cura.cjs.js.map +1 -1
  51. package/dist/cjs/index-98e7ba54.js +1544 -0
  52. package/dist/cjs/index-98e7ba54.js.map +1 -0
  53. package/dist/cjs/index.cjs.js +1 -1
  54. package/dist/cjs/index.cjs.js.map +1 -1
  55. package/dist/cjs/loader.cjs.js +6 -31
  56. package/dist/cjs/loader.cjs.js.map +1 -1
  57. package/dist/collection/api/cura-api.js +30 -30
  58. package/dist/collection/api/cura-api.js.map +1 -1
  59. package/dist/collection/api/cura-api.type.js +2 -2
  60. package/dist/collection/api/cura-api.type.js.map +1 -1
  61. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +10 -10
  62. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
  63. package/dist/collection/api/modules/cura-theme-colors-module.js +72 -72
  64. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  65. package/dist/collection/api/modules/cura-theme-fonts-module.js +28 -28
  66. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -1
  67. package/dist/collection/api/modules/cura-theme-module.js +66 -66
  68. package/dist/collection/api/modules/cura-theme-module.js.map +1 -1
  69. package/dist/collection/api/modules/cura-theme-spacing-module.js +9 -9
  70. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -1
  71. package/dist/collection/api/theme-presets/static.js +63 -63
  72. package/dist/collection/api/theme-presets/static.js.map +1 -1
  73. package/dist/collection/api/theme-presets/theme-default.js +41 -41
  74. package/dist/collection/api/theme-presets/theme-default.js.map +1 -1
  75. package/dist/collection/api/theme-presets/theme-legacy-default.js +24 -24
  76. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -1
  77. package/dist/collection/api/theme-presets/theme-maternity.js +38 -38
  78. package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -1
  79. package/dist/collection/api/theme-presets/theme-oncology.js +46 -46
  80. package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -1
  81. package/dist/collection/api/theme-presets/theme-presets.js +8 -8
  82. package/dist/collection/api/theme-presets/theme-presets.js.map +1 -1
  83. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  84. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  85. package/dist/collection/assets/icons/iconset-default-tmp.svg +8 -0
  86. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  87. package/dist/collection/assets/images/avatar/doctor-default.svg +8 -0
  88. package/dist/collection/assets/images/avatar/dora-default.svg +5 -0
  89. package/dist/collection/assets/images/avatar/patient-default.svg +12 -0
  90. package/dist/collection/assets/images/avatar/unit-default.svg +9 -0
  91. package/dist/collection/assets/images/logoCura.svg +15 -0
  92. package/dist/collection/assets-raw/icons/default/contacts.svg +3 -0
  93. package/dist/collection/assets-raw/icons/default/scheduleCancel.svg +3 -0
  94. package/dist/collection/collection-manifest.json +29 -21
  95. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +267 -267
  96. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
  97. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +127 -127
  98. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
  99. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +196 -196
  100. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
  101. package/dist/collection/components/buttons/cura-button/cura-button.css +109 -46
  102. package/dist/collection/components/buttons/cura-button/cura-button.js +368 -306
  103. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  104. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +184 -159
  105. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
  106. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +34 -64
  107. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +374 -306
  108. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  109. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +184 -159
  110. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
  111. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +33 -23
  112. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +265 -260
  113. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  114. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +29 -50
  115. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +339 -306
  116. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  117. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +172 -159
  118. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
  119. package/dist/collection/components/cura-alert/cura-alert.js +182 -164
  120. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
  121. package/dist/collection/components/cura-alert/cura-alert.stories.js +90 -77
  122. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -1
  123. package/dist/collection/components/cura-avatar/cura-avatar.css +24 -0
  124. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +7 -0
  125. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +1 -0
  126. package/dist/collection/components/cura-avatar/cura-avatar.js +231 -0
  127. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -0
  128. package/dist/collection/components/cura-avatar/cura-avatar.stories.js +198 -0
  129. package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +1 -0
  130. package/dist/collection/components/cura-calendar/cura-calendar.css +181 -0
  131. package/dist/collection/components/cura-calendar/cura-calendar.js +681 -0
  132. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -0
  133. package/dist/collection/components/cura-calendar/cura-calendar.stories.js +126 -0
  134. package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +1 -0
  135. package/dist/collection/components/cura-card/cura-card.css +175 -0
  136. package/dist/collection/components/cura-card/cura-card.js +201 -0
  137. package/dist/collection/components/cura-card/cura-card.js.map +1 -0
  138. package/dist/collection/components/cura-card/cura-card.stories.js +127 -0
  139. package/dist/collection/components/cura-card/cura-card.stories.js.map +1 -0
  140. package/dist/collection/components/cura-icon/cura-icon.definitions.js +11 -11
  141. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -1
  142. package/dist/collection/components/cura-icon/cura-icon.js +151 -151
  143. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  144. package/dist/collection/components/cura-icon/cura-icon.stories.js +60 -60
  145. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  146. package/dist/collection/components/cura-icons-view/cura-icons-view.js +37 -37
  147. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  148. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +7 -7
  149. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -1
  150. package/dist/collection/components/cura-page-template/cura-page-template.js +52 -52
  151. package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
  152. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +19 -11
  153. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +457 -427
  154. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  155. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +170 -170
  156. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -1
  157. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +50 -0
  158. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +136 -0
  159. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -0
  160. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +56 -0
  161. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +1 -0
  162. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.css +10 -0
  163. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +19 -0
  164. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js.map +1 -0
  165. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +153 -0
  166. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +410 -0
  167. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -0
  168. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js +193 -0
  169. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js.map +1 -0
  170. package/dist/collection/components/forms/cura-forms.definitions.js +12 -12
  171. package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -1
  172. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +849 -139
  173. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +732 -641
  174. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  175. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +217 -196
  176. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
  177. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +40 -40
  178. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
  179. package/dist/collection/components/forms/cura-label/cura-label.js +187 -187
  180. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  181. package/dist/collection/components/forms/cura-label/cura-label.stories.js +108 -108
  182. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -1
  183. package/dist/collection/components/forms/cura-radio/cura-radio.js +395 -363
  184. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  185. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +150 -150
  186. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
  187. package/dist/collection/components/forms/cura-select/cura-select.css +519 -0
  188. package/dist/collection/components/forms/cura-select/cura-select.js +444 -0
  189. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -0
  190. package/dist/collection/components/forms/cura-select/cura-select.stories.js +144 -0
  191. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -0
  192. package/dist/collection/components/forms/cura-select-options/cura-select-option.css +28 -0
  193. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +138 -0
  194. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -0
  195. package/dist/collection/components/forms/cura-switch/cura-switch.css +80 -18
  196. package/dist/collection/components/forms/cura-switch/cura-switch.js +292 -264
  197. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  198. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +115 -115
  199. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -1
  200. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +74 -74
  201. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
  202. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +41 -41
  203. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
  204. package/dist/collection/components/text/cura-display/cura-display.js +174 -174
  205. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  206. package/dist/collection/components/text/cura-display/cura-display.stories.js +97 -97
  207. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
  208. package/dist/collection/components/text/cura-heading/cura-heading.js +220 -220
  209. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  210. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +117 -117
  211. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  212. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +168 -168
  213. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  214. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +98 -98
  215. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  216. package/dist/collection/index.js +1 -1
  217. package/dist/collection/index.js.map +1 -1
  218. package/dist/collection/rededor-cura-start.js +7 -7
  219. package/dist/collection/rededor-cura-start.js.map +1 -1
  220. package/dist/collection/utils/utils.js +11 -11
  221. package/dist/collection/utils/utils.js.map +1 -1
  222. package/dist/components/cura-accordion-item.d.ts +2 -2
  223. package/dist/components/cura-accordion-item.js +62 -61
  224. package/dist/components/cura-accordion-item.js.map +1 -1
  225. package/dist/components/cura-accordion.d.ts +2 -2
  226. package/dist/components/cura-accordion.js +108 -104
  227. package/dist/components/cura-accordion.js.map +1 -1
  228. package/dist/components/cura-alert.d.ts +2 -2
  229. package/dist/components/cura-alert.js +93 -88
  230. package/dist/components/cura-alert.js.map +1 -1
  231. package/dist/components/cura-avatar.d.ts +11 -0
  232. package/dist/components/cura-avatar.js +95 -0
  233. package/dist/components/cura-avatar.js.map +1 -0
  234. package/dist/components/cura-button-outline.d.ts +2 -2
  235. package/dist/components/cura-button-outline.js +147 -109
  236. package/dist/components/cura-button-outline.js.map +1 -1
  237. package/dist/components/cura-button-select.d.ts +2 -2
  238. package/dist/components/cura-button-select.js +129 -113
  239. package/dist/components/cura-button-select.js.map +1 -1
  240. package/dist/components/cura-button-transparent.d.ts +2 -2
  241. package/dist/components/cura-button-transparent.js +1 -116
  242. package/dist/components/cura-button-transparent.js.map +1 -1
  243. package/dist/components/cura-button-transparent2.js +144 -0
  244. package/dist/components/cura-button-transparent2.js.map +1 -0
  245. package/dist/components/cura-button.d.ts +2 -2
  246. package/dist/components/cura-button.js +145 -109
  247. package/dist/components/cura-button.js.map +1 -1
  248. package/dist/components/cura-calendar.d.ts +11 -0
  249. package/dist/components/cura-calendar.js +3969 -0
  250. package/dist/components/cura-calendar.js.map +1 -0
  251. package/dist/components/cura-card.d.ts +11 -0
  252. package/dist/components/cura-card.js +75 -0
  253. package/dist/components/cura-card.js.map +1 -0
  254. package/dist/components/cura-checkbox.d.ts +2 -2
  255. package/dist/components/cura-checkbox.js +210 -174
  256. package/dist/components/cura-checkbox.js.map +1 -1
  257. package/dist/components/cura-display.d.ts +2 -2
  258. package/dist/components/cura-display.js +85 -81
  259. package/dist/components/cura-display.js.map +1 -1
  260. package/dist/components/cura-dropdown-search-option-title.d.ts +11 -0
  261. package/dist/components/cura-dropdown-search-option-title.js +42 -0
  262. package/dist/components/cura-dropdown-search-option-title.js.map +1 -0
  263. package/dist/components/cura-dropdown-search-option.d.ts +11 -0
  264. package/dist/components/cura-dropdown-search-option.js +82 -0
  265. package/dist/components/cura-dropdown-search-option.js.map +1 -0
  266. package/dist/components/cura-dropdown-search.d.ts +11 -0
  267. package/dist/components/cura-dropdown-search.js +281 -0
  268. package/dist/components/cura-dropdown-search.js.map +1 -0
  269. package/dist/components/cura-forms.definitions.js +12 -12
  270. package/dist/components/cura-forms.definitions.js.map +1 -1
  271. package/dist/components/cura-heading.d.ts +2 -2
  272. package/dist/components/cura-heading2.js +97 -93
  273. package/dist/components/cura-heading2.js.map +1 -1
  274. package/dist/components/cura-icon.d.ts +2 -2
  275. package/dist/components/cura-icon2.js +74 -69
  276. package/dist/components/cura-icon2.js.map +1 -1
  277. package/dist/components/cura-icons-view.d.ts +2 -2
  278. package/dist/components/cura-icons-view.js +57 -56
  279. package/dist/components/cura-icons-view.js.map +1 -1
  280. package/dist/components/cura-input-text.d.ts +2 -2
  281. package/dist/components/cura-input-text.js +1 -3954
  282. package/dist/components/cura-input-text.js.map +1 -1
  283. package/dist/{cjs/cura-input-text.cjs.entry.js → components/cura-input-text2.js} +393 -283
  284. package/dist/components/cura-input-text2.js.map +1 -0
  285. package/dist/components/cura-label.d.ts +2 -2
  286. package/dist/components/cura-label2.js +81 -77
  287. package/dist/components/cura-label2.js.map +1 -1
  288. package/dist/components/cura-loader-circle.d.ts +2 -2
  289. package/dist/components/cura-loader-circle2.js +41 -40
  290. package/dist/components/cura-loader-circle2.js.map +1 -1
  291. package/dist/components/cura-page-template.d.ts +2 -2
  292. package/dist/components/cura-page-template.js +36 -35
  293. package/dist/components/cura-page-template.js.map +1 -1
  294. package/dist/components/cura-paragraph.d.ts +2 -2
  295. package/dist/components/cura-paragraph2.js +79 -75
  296. package/dist/components/cura-paragraph2.js.map +1 -1
  297. package/dist/components/cura-radio.d.ts +2 -2
  298. package/dist/components/cura-radio.js +176 -139
  299. package/dist/components/cura-radio.js.map +1 -1
  300. package/dist/components/cura-select-option.d.ts +11 -0
  301. package/dist/components/cura-select-option.js +8 -0
  302. package/dist/components/cura-select-option.js.map +1 -0
  303. package/dist/components/cura-select-option2.js +87 -0
  304. package/dist/components/cura-select-option2.js.map +1 -0
  305. package/dist/components/cura-select.d.ts +11 -0
  306. package/dist/components/cura-select.js +8 -0
  307. package/dist/components/cura-select.js.map +1 -0
  308. package/dist/components/cura-select2.js +308 -0
  309. package/dist/components/cura-select2.js.map +1 -0
  310. package/dist/components/cura-switch.d.ts +2 -2
  311. package/dist/components/cura-switch.js +138 -105
  312. package/dist/components/cura-switch.js.map +1 -1
  313. package/dist/components/index.d.ts +6 -0
  314. package/dist/components/index.js +482 -466
  315. package/dist/components/index.js.map +1 -1
  316. package/dist/cura/cura.esm.js +1 -1
  317. package/dist/cura/cura.esm.js.map +1 -1
  318. package/dist/cura/index.esm.js.map +1 -1
  319. package/dist/cura/p-17a878d4.entry.js +2 -0
  320. package/dist/cura/p-17a878d4.entry.js.map +1 -0
  321. package/dist/cura/p-251bd980.entry.js +2 -0
  322. package/dist/cura/p-251bd980.entry.js.map +1 -0
  323. package/dist/cura/p-260edb61.entry.js +2 -0
  324. package/dist/cura/p-260edb61.entry.js.map +1 -0
  325. package/dist/cura/p-312791fb.js +3 -0
  326. package/dist/cura/p-312791fb.js.map +1 -0
  327. package/dist/cura/p-31ae34e3.entry.js +2 -0
  328. package/dist/cura/p-31ae34e3.entry.js.map +1 -0
  329. package/dist/cura/p-3b4bf71e.entry.js +2 -0
  330. package/dist/cura/p-3b4bf71e.entry.js.map +1 -0
  331. package/dist/cura/p-3c39a9d8.entry.js +2 -0
  332. package/dist/cura/p-3c39a9d8.entry.js.map +1 -0
  333. package/dist/cura/p-5466758a.entry.js +2 -0
  334. package/dist/cura/p-5466758a.entry.js.map +1 -0
  335. package/dist/cura/p-578c74a4.entry.js +2 -0
  336. package/dist/cura/p-578c74a4.entry.js.map +1 -0
  337. package/dist/cura/p-61d20270.entry.js +2 -0
  338. package/dist/cura/p-61d20270.entry.js.map +1 -0
  339. package/dist/cura/p-6373c7cd.entry.js +2 -0
  340. package/dist/cura/p-6373c7cd.entry.js.map +1 -0
  341. package/dist/cura/{p-f8fffdc1.js → p-70c369b1.js} +1 -1
  342. package/dist/cura/p-70c369b1.js.map +1 -0
  343. package/dist/cura/p-93389727.entry.js +2 -0
  344. package/dist/cura/p-93389727.entry.js.map +1 -0
  345. package/dist/cura/p-9a4094e3.entry.js +2 -0
  346. package/dist/cura/p-9a4094e3.entry.js.map +1 -0
  347. package/dist/cura/{p-c791725b.js → p-a7221f0c.js} +1 -1
  348. package/dist/{esm-es5/cura-icon.definitions-a63d1862.js.map → cura/p-a7221f0c.js.map} +1 -1
  349. package/dist/cura/p-b0d66386.entry.js +2 -0
  350. package/dist/cura/p-b0d66386.entry.js.map +1 -0
  351. package/dist/cura/p-b3a50bcf.entry.js +2 -0
  352. package/dist/cura/p-b3a50bcf.entry.js.map +1 -0
  353. package/dist/cura/p-ba2e7222.entry.js +2 -0
  354. package/dist/cura/p-ba2e7222.entry.js.map +1 -0
  355. package/dist/cura/p-c63f4695.entry.js +2 -0
  356. package/dist/cura/p-c63f4695.entry.js.map +1 -0
  357. package/dist/cura/p-ced36448.entry.js +2 -0
  358. package/dist/cura/p-ced36448.entry.js.map +1 -0
  359. package/dist/cura/{p-3688570d.js → p-f9b8f665.js} +1 -1
  360. package/dist/{esm-es5/cura-forms.definitions-0f774253.js.map → cura/p-f9b8f665.js.map} +1 -1
  361. package/dist/esm/app-globals-f2da2b14.js +509 -0
  362. package/dist/esm/app-globals-f2da2b14.js.map +1 -0
  363. package/dist/esm/cura-accordion_9.entry.js +532 -0
  364. package/dist/esm/cura-accordion_9.entry.js.map +1 -0
  365. package/dist/esm/cura-alert.entry.js +57 -55
  366. package/dist/esm/cura-alert.entry.js.map +1 -1
  367. package/dist/esm/cura-avatar.entry.js +64 -0
  368. package/dist/esm/cura-avatar.entry.js.map +1 -0
  369. package/dist/esm/cura-button-outline.entry.js +102 -71
  370. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  371. package/dist/esm/cura-button-select.entry.js +91 -85
  372. package/dist/esm/cura-button-select.entry.js.map +1 -1
  373. package/dist/esm/{cura-input-text.entry.js → cura-button-transparent_2.entry.js} +423 -276
  374. package/dist/esm/cura-button-transparent_2.entry.js.map +1 -0
  375. package/dist/esm/cura-calendar.entry.js +3909 -0
  376. package/dist/esm/cura-calendar.entry.js.map +1 -0
  377. package/dist/esm/cura-card.entry.js +49 -0
  378. package/dist/esm/cura-card.entry.js.map +1 -0
  379. package/dist/esm/cura-checkbox.entry.js +168 -131
  380. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  381. package/dist/esm/cura-display.entry.js +63 -62
  382. package/dist/esm/cura-display.entry.js.map +1 -1
  383. package/dist/esm/cura-dropdown-search-option-title.entry.js +18 -0
  384. package/dist/esm/cura-dropdown-search-option-title.entry.js.map +1 -0
  385. package/dist/esm/cura-dropdown-search-option.entry.js +51 -0
  386. package/dist/esm/cura-dropdown-search-option.entry.js.map +1 -0
  387. package/dist/esm/cura-dropdown-search.entry.js +213 -0
  388. package/dist/esm/cura-dropdown-search.entry.js.map +1 -0
  389. package/dist/esm/cura-forms.definitions-2f963167.js +18 -0
  390. package/dist/esm/cura-forms.definitions-2f963167.js.map +1 -0
  391. package/dist/esm/cura-icon.definitions-aaa4e80f.js +18 -0
  392. package/dist/esm/cura-icon.definitions-aaa4e80f.js.map +1 -0
  393. package/dist/esm/cura-icons-view.entry.js +24 -23
  394. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  395. package/dist/esm/cura-radio.entry.js +142 -103
  396. package/dist/esm/cura-radio.entry.js.map +1 -1
  397. package/dist/esm/cura-select_2.entry.js +320 -0
  398. package/dist/esm/cura-select_2.entry.js.map +1 -0
  399. package/dist/esm/cura-switch.entry.js +113 -78
  400. package/dist/esm/cura-switch.entry.js.map +1 -1
  401. package/dist/esm/cura.js +14 -23
  402. package/dist/esm/cura.js.map +1 -1
  403. package/dist/esm/index-1ad98520.js +1515 -0
  404. package/dist/esm/index-1ad98520.js.map +1 -0
  405. package/dist/esm/index.js +1 -1
  406. package/dist/esm/index.js.map +1 -1
  407. package/dist/esm/loader.js +8 -33
  408. package/dist/esm/loader.js.map +1 -1
  409. package/dist/index.js +1 -1
  410. package/dist/loader/cdn.js +1 -3
  411. package/dist/loader/index.cjs.js +1 -3
  412. package/dist/loader/index.d.ts +4 -1
  413. package/dist/loader/index.es2017.js +1 -3
  414. package/dist/loader/index.js +1 -3
  415. package/dist/types/api/cura-api.d.ts +3 -3
  416. package/dist/types/api/cura-api.type.d.ts +44 -44
  417. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +3 -3
  418. package/dist/types/api/modules/cura-theme-colors-module.d.ts +46 -46
  419. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +22 -22
  420. package/dist/types/api/modules/cura-theme-module.d.ts +25 -25
  421. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +4 -4
  422. package/dist/types/api/theme-presets/static.d.ts +62 -62
  423. package/dist/types/api/theme-presets/theme-default.d.ts +38 -38
  424. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +38 -38
  425. package/dist/types/api/theme-presets/theme-maternity.d.ts +38 -38
  426. package/dist/types/api/theme-presets/theme-oncology.d.ts +45 -45
  427. package/dist/types/api/theme-presets/theme-presets.d.ts +175 -175
  428. package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +37 -37
  429. package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +140 -140
  430. package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +27 -27
  431. package/dist/types/components/buttons/cura-button/cura-button.d.ts +70 -59
  432. package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +184 -155
  433. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +70 -59
  434. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +184 -155
  435. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +48 -47
  436. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +65 -59
  437. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +169 -155
  438. package/dist/types/components/cura-alert/cura-alert.d.ts +14 -13
  439. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +85 -70
  440. package/dist/types/components/cura-avatar/cura-avatar.d.ts +24 -0
  441. package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +14 -0
  442. package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +167 -0
  443. package/dist/types/components/cura-calendar/cura-calendar.d.ts +323 -0
  444. package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +128 -0
  445. package/dist/types/components/cura-card/cura-card.d.ts +48 -0
  446. package/dist/types/components/cura-card/cura-card.stories.d.ts +98 -0
  447. package/dist/types/components/cura-icon/cura-icon.d.ts +12 -12
  448. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +44 -44
  449. package/dist/types/components/cura-icon/cura-icon.stories.d.ts +56 -56
  450. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +6 -6
  451. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +3 -3
  452. package/dist/types/components/cura-page-template/cura-page-template.d.ts +6 -6
  453. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +111 -95
  454. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +193 -193
  455. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +27 -0
  456. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +44 -0
  457. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.d.ts +3 -0
  458. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +111 -0
  459. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.stories.d.ts +124 -0
  460. package/dist/types/components/forms/cura-forms.definitions.d.ts +12 -12
  461. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +169 -132
  462. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +241 -218
  463. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +1 -2
  464. package/dist/types/components/forms/cura-label/cura-label.d.ts +52 -52
  465. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +112 -112
  466. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +96 -74
  467. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +162 -162
  468. package/dist/types/components/forms/cura-select/cura-select.d.ts +176 -0
  469. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +156 -0
  470. package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +17 -0
  471. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +78 -57
  472. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +121 -121
  473. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +21 -21
  474. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +35 -35
  475. package/dist/types/components/text/cura-display/cura-display.d.ts +47 -47
  476. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +101 -101
  477. package/dist/types/components/text/cura-heading/cura-heading.d.ts +58 -58
  478. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +127 -127
  479. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +47 -47
  480. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +99 -99
  481. package/dist/types/components.d.ts +697 -13
  482. package/dist/types/index.d.ts +4 -4
  483. package/dist/types/rededor-cura-start.d.ts +4 -4
  484. package/dist/types/stencil-public-runtime.d.ts +55 -15
  485. package/package.json +6 -6
  486. package/dist/assets/icons/iconset-default-list.ts +0 -1
  487. package/dist/assets/icons/iconset-default.svg +0 -1
  488. package/dist/cjs/app-globals-2988084b.js +0 -511
  489. package/dist/cjs/app-globals-2988084b.js.map +0 -1
  490. package/dist/cjs/css-shim-83cf0349.js +0 -8
  491. package/dist/cjs/css-shim-83cf0349.js.map +0 -1
  492. package/dist/cjs/cura-accordion_8.cjs.entry.js +0 -445
  493. package/dist/cjs/cura-accordion_8.cjs.entry.js.map +0 -1
  494. package/dist/cjs/cura-button-transparent.cjs.entry.js +0 -83
  495. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +0 -1
  496. package/dist/cjs/cura-forms.definitions-11be2ebd.js +0 -20
  497. package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +0 -1
  498. package/dist/cjs/cura-icon.definitions-b73b0178.js +0 -21
  499. package/dist/cjs/cura-icon.definitions-b73b0178.js.map +0 -1
  500. package/dist/cjs/cura-input-text.cjs.entry.js.map +0 -1
  501. package/dist/cjs/cura-label.cjs.entry.js +0 -69
  502. package/dist/cjs/cura-label.cjs.entry.js.map +0 -1
  503. package/dist/cjs/index-7616f620.js +0 -2281
  504. package/dist/cjs/index-7616f620.js.map +0 -1
  505. package/dist/cjs/shadow-css-8baae635.js +0 -391
  506. package/dist/cjs/shadow-css-8baae635.js.map +0 -1
  507. package/dist/collection/utils/utils.spec.js +0 -16
  508. package/dist/collection/utils/utils.spec.js.map +0 -1
  509. package/dist/cura/cura.js +0 -133
  510. package/dist/cura/p-0c2644aa.system.entry.js +0 -2
  511. package/dist/cura/p-0c2644aa.system.entry.js.map +0 -1
  512. package/dist/cura/p-118112e5.system.js +0 -14
  513. package/dist/cura/p-118112e5.system.js.map +0 -1
  514. package/dist/cura/p-120926c5.system.js +0 -2
  515. package/dist/cura/p-120926c5.system.js.map +0 -1
  516. package/dist/cura/p-1228e771.entry.js +0 -2
  517. package/dist/cura/p-1228e771.entry.js.map +0 -1
  518. package/dist/cura/p-183305c3.js +0 -2
  519. package/dist/cura/p-183305c3.js.map +0 -1
  520. package/dist/cura/p-2d42ccf4.entry.js +0 -2
  521. package/dist/cura/p-2d42ccf4.entry.js.map +0 -1
  522. package/dist/cura/p-3688570d.js.map +0 -1
  523. package/dist/cura/p-36a83bc7.system.js +0 -3
  524. package/dist/cura/p-36a83bc7.system.js.map +0 -1
  525. package/dist/cura/p-3f5de5e2.entry.js +0 -2
  526. package/dist/cura/p-3f5de5e2.entry.js.map +0 -1
  527. package/dist/cura/p-3f6aaefc.system.js +0 -2
  528. package/dist/cura/p-3f6aaefc.system.js.map +0 -1
  529. package/dist/cura/p-48426f60.system.js +0 -2
  530. package/dist/cura/p-48426f60.system.js.map +0 -1
  531. package/dist/cura/p-557c6eef.entry.js +0 -2
  532. package/dist/cura/p-557c6eef.entry.js.map +0 -1
  533. package/dist/cura/p-5a6c2cd2.system.entry.js +0 -2
  534. package/dist/cura/p-5a6c2cd2.system.entry.js.map +0 -1
  535. package/dist/cura/p-71ed26f4.entry.js +0 -2
  536. package/dist/cura/p-71ed26f4.entry.js.map +0 -1
  537. package/dist/cura/p-7c744ff0.system.entry.js +0 -2
  538. package/dist/cura/p-7c744ff0.system.entry.js.map +0 -1
  539. package/dist/cura/p-8d959fb2.entry.js +0 -2
  540. package/dist/cura/p-8d959fb2.entry.js.map +0 -1
  541. package/dist/cura/p-9471c93e.system.entry.js +0 -2
  542. package/dist/cura/p-9471c93e.system.entry.js.map +0 -1
  543. package/dist/cura/p-a32889a4.system.js +0 -2
  544. package/dist/cura/p-a32889a4.system.js.map +0 -1
  545. package/dist/cura/p-a56f9357.system.entry.js +0 -2
  546. package/dist/cura/p-a56f9357.system.entry.js.map +0 -1
  547. package/dist/cura/p-a719b444.system.entry.js +0 -2
  548. package/dist/cura/p-a719b444.system.entry.js.map +0 -1
  549. package/dist/cura/p-ab8c9a8f.system.entry.js +0 -2
  550. package/dist/cura/p-ab8c9a8f.system.entry.js.map +0 -1
  551. package/dist/cura/p-ad194144.entry.js +0 -2
  552. package/dist/cura/p-ad194144.entry.js.map +0 -1
  553. package/dist/cura/p-ba20f1b6.entry.js +0 -2
  554. package/dist/cura/p-ba20f1b6.entry.js.map +0 -1
  555. package/dist/cura/p-ba66d7be.js +0 -3
  556. package/dist/cura/p-ba66d7be.js.map +0 -1
  557. package/dist/cura/p-beab48cd.js +0 -13
  558. package/dist/cura/p-beab48cd.js.map +0 -1
  559. package/dist/cura/p-bfe9a9e2.entry.js +0 -2
  560. package/dist/cura/p-bfe9a9e2.entry.js.map +0 -1
  561. package/dist/cura/p-c0ff425e.entry.js +0 -2
  562. package/dist/cura/p-c0ff425e.entry.js.map +0 -1
  563. package/dist/cura/p-c791725b.js.map +0 -1
  564. package/dist/cura/p-cb4e2a0c.system.entry.js +0 -2
  565. package/dist/cura/p-cb4e2a0c.system.entry.js.map +0 -1
  566. package/dist/cura/p-d3f9c888.system.js +0 -2
  567. package/dist/cura/p-d3f9c888.system.js.map +0 -1
  568. package/dist/cura/p-e5e259fd.system.entry.js +0 -2
  569. package/dist/cura/p-e5e259fd.system.entry.js.map +0 -1
  570. package/dist/cura/p-edeffbfc.entry.js +0 -2
  571. package/dist/cura/p-edeffbfc.entry.js.map +0 -1
  572. package/dist/cura/p-f51705c2.system.entry.js +0 -2
  573. package/dist/cura/p-f51705c2.system.entry.js.map +0 -1
  574. package/dist/cura/p-f89f2ecc.system.entry.js +0 -2
  575. package/dist/cura/p-f89f2ecc.system.entry.js.map +0 -1
  576. package/dist/cura/p-f8fffdc1.js.map +0 -1
  577. package/dist/cura/p-fc4ba4ce.system.js +0 -2
  578. package/dist/cura/p-fc4ba4ce.system.js.map +0 -1
  579. package/dist/cura/p-fef52079.entry.js +0 -2
  580. package/dist/cura/p-fef52079.entry.js.map +0 -1
  581. package/dist/cura/p-ffd41520.system.entry.js +0 -2
  582. package/dist/cura/p-ffd41520.system.entry.js.map +0 -1
  583. package/dist/esm/app-globals-29001758.js +0 -509
  584. package/dist/esm/app-globals-29001758.js.map +0 -1
  585. package/dist/esm/css-shim-d13f0738.js +0 -6
  586. package/dist/esm/css-shim-d13f0738.js.map +0 -1
  587. package/dist/esm/cura-accordion_8.entry.js +0 -434
  588. package/dist/esm/cura-accordion_8.entry.js.map +0 -1
  589. package/dist/esm/cura-button-transparent.entry.js +0 -79
  590. package/dist/esm/cura-button-transparent.entry.js.map +0 -1
  591. package/dist/esm/cura-forms.definitions-0f774253.js +0 -18
  592. package/dist/esm/cura-forms.definitions-0f774253.js.map +0 -1
  593. package/dist/esm/cura-icon.definitions-a63d1862.js +0 -18
  594. package/dist/esm/cura-icon.definitions-a63d1862.js.map +0 -1
  595. package/dist/esm/cura-input-text.entry.js.map +0 -1
  596. package/dist/esm/cura-label.entry.js +0 -65
  597. package/dist/esm/cura-label.entry.js.map +0 -1
  598. package/dist/esm/index-81f1a268.js +0 -2249
  599. package/dist/esm/index-81f1a268.js.map +0 -1
  600. package/dist/esm/polyfills/core-js.js +0 -11
  601. package/dist/esm/polyfills/css-shim.js +0 -1
  602. package/dist/esm/polyfills/dom.js +0 -79
  603. package/dist/esm/polyfills/es5-html-element.js +0 -1
  604. package/dist/esm/polyfills/index.js +0 -34
  605. package/dist/esm/polyfills/system.js +0 -6
  606. package/dist/esm/shadow-css-07b0c8c8.js +0 -389
  607. package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
  608. package/dist/esm-es5/app-globals-29001758.js +0 -2
  609. package/dist/esm-es5/app-globals-29001758.js.map +0 -1
  610. package/dist/esm-es5/css-shim-d13f0738.js +0 -2
  611. package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
  612. package/dist/esm-es5/cura-accordion_8.entry.js +0 -2
  613. package/dist/esm-es5/cura-accordion_8.entry.js.map +0 -1
  614. package/dist/esm-es5/cura-alert.entry.js +0 -2
  615. package/dist/esm-es5/cura-alert.entry.js.map +0 -1
  616. package/dist/esm-es5/cura-button-outline.entry.js +0 -2
  617. package/dist/esm-es5/cura-button-outline.entry.js.map +0 -1
  618. package/dist/esm-es5/cura-button-select.entry.js +0 -2
  619. package/dist/esm-es5/cura-button-select.entry.js.map +0 -1
  620. package/dist/esm-es5/cura-button-transparent.entry.js +0 -2
  621. package/dist/esm-es5/cura-button-transparent.entry.js.map +0 -1
  622. package/dist/esm-es5/cura-checkbox.entry.js +0 -2
  623. package/dist/esm-es5/cura-checkbox.entry.js.map +0 -1
  624. package/dist/esm-es5/cura-display.entry.js +0 -2
  625. package/dist/esm-es5/cura-display.entry.js.map +0 -1
  626. package/dist/esm-es5/cura-forms.definitions-0f774253.js +0 -2
  627. package/dist/esm-es5/cura-icon.definitions-a63d1862.js +0 -2
  628. package/dist/esm-es5/cura-icons-view.entry.js +0 -2
  629. package/dist/esm-es5/cura-icons-view.entry.js.map +0 -1
  630. package/dist/esm-es5/cura-input-text.entry.js +0 -2
  631. package/dist/esm-es5/cura-input-text.entry.js.map +0 -1
  632. package/dist/esm-es5/cura-label.entry.js +0 -2
  633. package/dist/esm-es5/cura-label.entry.js.map +0 -1
  634. package/dist/esm-es5/cura-radio.entry.js +0 -2
  635. package/dist/esm-es5/cura-radio.entry.js.map +0 -1
  636. package/dist/esm-es5/cura-switch.entry.js +0 -2
  637. package/dist/esm-es5/cura-switch.entry.js.map +0 -1
  638. package/dist/esm-es5/cura.js +0 -2
  639. package/dist/esm-es5/cura.js.map +0 -1
  640. package/dist/esm-es5/index-81f1a268.js +0 -3
  641. package/dist/esm-es5/index-81f1a268.js.map +0 -1
  642. package/dist/esm-es5/index.js +0 -2
  643. package/dist/esm-es5/index.js.map +0 -1
  644. package/dist/esm-es5/loader.js +0 -2
  645. package/dist/esm-es5/loader.js.map +0 -1
  646. package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
  647. package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
@@ -0,0 +1,532 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-1ad98520.js';
2
+ import { m as microIcons, i as iconSizes } from './cura-icon.definitions-aaa4e80f.js';
3
+
4
+ const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}:host::after{content:\"\";display:block;border-bottom:solid 1px var(--neutral-base);width:100%}";
5
+ const CuraAccordionStyle0 = curaAccordionCss;
6
+
7
+ const CuraAccordion = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.mutationObserverCallback = (mutations, _) => {
11
+ var _a;
12
+ for (const mutation of mutations) {
13
+ if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && ((_a = mutation.target) === null || _a === void 0 ? void 0 : _a['opened'])) {
14
+ if (this.behavior !== 'default')
15
+ continue;
16
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
17
+ if (item != mutation.target) {
18
+ item.opened = false;
19
+ }
20
+ });
21
+ }
22
+ if (mutation.type === 'childList') {
23
+ const addedNodes = Array.from(mutation.addedNodes || []);
24
+ for (let node of addedNodes) {
25
+ this.setChildProperties(node);
26
+ }
27
+ }
28
+ }
29
+ };
30
+ this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
31
+ this.color = 'primary';
32
+ this.activeColor = 'accent';
33
+ this.colorMode = 'dark';
34
+ this.iconSize = 32;
35
+ this.openIcon = 'down';
36
+ this.closeIcon = 'up';
37
+ this.iconColor = '';
38
+ this.iconActiveColor = '';
39
+ this.behavior = 'default';
40
+ this.styles = {};
41
+ }
42
+ handleChangeColor() {
43
+ this.setColors();
44
+ }
45
+ connectedCallback() {
46
+ const weights = window.CuraAPI.theme.fonts.getWeights();
47
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
48
+ this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
49
+ this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);
50
+ this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
51
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
52
+ this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
53
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
54
+ this.styles['--font-weight-regular'] = weights.regular;
55
+ this.setColors();
56
+ }
57
+ componentDidLoad() {
58
+ this.host.querySelectorAll('cura-accordion-item').forEach(item => {
59
+ this.setChildProperties(item);
60
+ });
61
+ const options = { childList: true, subtree: true, attributes: true };
62
+ this.mutationObserver.observe(this.host, options);
63
+ }
64
+ disconnectedCallback() {
65
+ this.mutationObserver.disconnect();
66
+ }
67
+ setChildProperties(item) {
68
+ // Theme
69
+ item.colorMode = this.colorMode;
70
+ item.iconColor = this.iconColor || this.color;
71
+ item.iconActiveColor = this.iconActiveColor || this.activeColor;
72
+ // Icon
73
+ item.iconSize = this.iconSize;
74
+ item.openIcon = this.openIcon;
75
+ item.closeIcon = this.closeIcon;
76
+ }
77
+ setColors() {
78
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`), '--color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-lighter`), '--color-active-light': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-light`), '--color-active-base': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-base`), '--color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-dark`), '--icon-color-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-lighter`), '--icon-color-light': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-light`), '--icon-color-base': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-base`), '--icon-color-dark': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-dark`), '--icon-color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-lighter`), '--icon-color-active-light': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-light`), '--icon-color-active-base': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-base`), '--icon-color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-dark`) });
79
+ }
80
+ render() {
81
+ return (h(Host, { key: '6d25b84df610918423ce8eac4213e4f012af6a20', style: this.styles }, h("slot", { key: '812c3195ec83ecee009a221bc3bec303903c1e68', name: 'accordion-item' })));
82
+ }
83
+ get host() { return getElement(this); }
84
+ static get watchers() { return {
85
+ "color": ["handleChangeColor"],
86
+ "activeColor": ["handleChangeColor"]
87
+ }; }
88
+ };
89
+ CuraAccordion.style = CuraAccordionStyle0;
90
+
91
+ const curaAccordionItemCss = ":host{display:block}:host .accordion-item{width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label::before{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--base-spacing) * 2px);min-height:40px;word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular);color:var(--color-base);padding:0px}:host .accordion-item .label .label-container cura-icon{margin-right:4px}:host .accordion-item .label .label-container:hover{color:var(--color-light)}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item .label .label-container:active{color:var(--color-dark)}:host .accordion-item .label .label-container:active cura-icon{--color:var(--icon-color-dark) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--base-spacing) * 2px) 0px;border-top:solid 1px var(--neutral-base)}:host .accordion-item.active .label .label-container{color:var(--color-active-base)}:host .accordion-item.active .label .label-container:hover{color:var(--color-active-light)}:host .accordion-item.active .label .label-container:hover cura-icon{--color:var(--icon-color-active-light) !important}:host .accordion-item.active .label .label-container:active{color:var(--color-active-dark)}:host .accordion-item.active .label .label-container:active cura-icon{--color:var(--icon-color-active-dark) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height 0.5s ease 0.14s}:host .accordion-item.inverted .label .label-container{color:var(--neutral-lighter)}:host .accordion-item.inverted .label .label-container:hover{color:var(--color-lighter)}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-lighter) !important}:host .accordion-item.inverted .label .label-container:active{color:var(--color-light)}:host .accordion-item.inverted .label .label-container:active cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item.active.inverted .label .label-container{color:var(--neutral-purewhite)}:host .accordion-item.active.inverted .label .label-container:hover{color:var(--color-active-lighter)}:host .accordion-item.active.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-active-lighter) !important}:host .accordion-item.active.inverted .label .label-container:active{color:var(--color-active-light)}:host .accordion-item.active.inverted .label .label-container:active cura-icon{--color:var(--icon-color-active-light) !important}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
92
+ const CuraAccordionItemStyle0 = curaAccordionItemCss;
93
+
94
+ const CuraAccordionItem = class {
95
+ constructor(hostRef) {
96
+ registerInstance(this, hostRef);
97
+ this.label = '';
98
+ this.iconSize = 32;
99
+ this.openIcon = 'down';
100
+ this.closeIcon = 'up';
101
+ this.iconColor = '';
102
+ this.iconActiveColor = '';
103
+ this.colorMode = 'dark';
104
+ this.opened = false;
105
+ this.styles = {};
106
+ }
107
+ getIconColor() {
108
+ const inverted = this.colorMode === 'light';
109
+ const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;
110
+ const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;
111
+ return this.opened ? iconActiveColor : iconColor;
112
+ }
113
+ getClasses() {
114
+ const classes = {};
115
+ classes['accordion-item'] = true;
116
+ classes['active'] = this.opened;
117
+ classes['inverted'] = this.colorMode === 'light';
118
+ return classes;
119
+ }
120
+ accordionItemClick(_) {
121
+ this.opened = !this.opened;
122
+ }
123
+ render() {
124
+ return (h(Host, { key: '8d46e9fd7c698c049a9020375cd77b5ebb9d38fd', slot: "accordion-item" }, h("div", { key: 'fdc11f228f3051f2452b0beb56e232de836fa382', class: this.getClasses(), style: this.styles }, h("div", { key: '7507b6c72d3433550b1590530c8070fe07431389', class: "label", onClick: e => this.accordionItemClick(e) }, h("div", { key: '8f6d6deb3fc2e864ac81abb744c5d4a32ad6b974', class: "label-container" }, h("span", { key: '7b1a4e96fa8c3dfdfffa7890c17ed8afacf3032f' }, this.label), h("cura-icon", { key: '0f9c6f9dc664ad96a7b02c084700fd8f75fbc677', name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: this.getIconColor() }))), h("div", { key: 'fb1860aa74170ff18edc03b8171356cd1a1fd271', class: 'content' }, h("div", { key: '4d3c9252658e9c30521353579f0b3ef9bc8a3087', class: "content-wrapper" }, h("slot", { key: '067f12a534860a5942d01d5945d1e4d272e5a541' }))))));
125
+ }
126
+ };
127
+ CuraAccordionItem.style = CuraAccordionItemStyle0;
128
+
129
+ const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:2px solid transparent}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button:not(.disabled):not(.isLoading),:host a:not(.disabled):not(.isLoading){border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{border-color:var(--color-dark-color-base);background:var(--color-base-color-light);box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light);border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none !important}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 6.12px) calc(var(--base-spacing) * 9.96px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 33.7px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3.44px) calc(var(--base-spacing) * 9.96px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 29.95px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 3.24px) calc(var(--base-spacing) * 7.44px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 21.67px)}:host button:not(.isLoading).large,:host a:not(.isLoading).large{padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.isLoading).medium,:host a:not(.isLoading).medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button:not(.isLoading).small,:host a:not(.isLoading).small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button cura-label,:host a cura-label{flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\")}:host button.medium cura-label,:host a.medium cura-label{font-size:1.14em}:host button.small cura-label,:host a.small cura-label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}:host button.isLoading cura-label,:host a.isLoading cura-label{display:none}";
130
+ const CuraButtonStyle0 = curaButtonCss;
131
+
132
+ const CuraButton = class {
133
+ constructor(hostRef) {
134
+ registerInstance(this, hostRef);
135
+ if (hostRef.$hostElement$["s-ei"]) {
136
+ this.internals = hostRef.$hostElement$["s-ei"];
137
+ }
138
+ else {
139
+ this.internals = hostRef.$hostElement$.attachInternals();
140
+ hostRef.$hostElement$["s-ei"] = this.internals;
141
+ }
142
+ this.type = 'button';
143
+ this.size = 'large';
144
+ this.disabled = false;
145
+ this.isLoading = false;
146
+ this.iconName = undefined;
147
+ this.iconset = 'default';
148
+ this.iconPosition = 'left';
149
+ this.iconOnly = false;
150
+ this.href = undefined;
151
+ this.target = "_self";
152
+ this.color = 'accent';
153
+ this.background = 'light';
154
+ this.fontColor = 'dark';
155
+ this.textAlign = 'left';
156
+ this.styles = {};
157
+ this.hovered = false;
158
+ }
159
+ connectedCallback() {
160
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
161
+ this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
162
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
163
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
164
+ this.styles['--font-weight-medium'] = this.weights.medium;
165
+ this.styles['--text-align'] = this.textAlign;
166
+ this.setColors();
167
+ }
168
+ setColors() {
169
+ const colors = [
170
+ { name: '--color-base-neutral-purewhite', theme: `${this.background === 'light' ? `${this.color}-base` : 'neutral-pale'}` },
171
+ { name: '--color-base-color-light', theme: `${this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter`}` },
172
+ { name: '--color-dark-color-light', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-light`}` },
173
+ { name: '--color-dark-color-base', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-base`}` },
174
+ { name: '--neutral-pale-neutral-black', theme: `${this.background === 'light' ? 'neutral-pale' : 'neutral-black'}` },
175
+ ];
176
+ colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme));
177
+ this.styles = Object.assign({}, this.styles);
178
+ }
179
+ handleMouseEnter() {
180
+ if (this.disabled)
181
+ return;
182
+ this.hovered = true;
183
+ }
184
+ handleMouseLeave() {
185
+ this.hovered = false;
186
+ }
187
+ getClasses() {
188
+ var _a, _b;
189
+ const classes = {};
190
+ classes[`${(_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`] = true;
191
+ classes[`icon-${(_b = this.iconPosition) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`] = true;
192
+ classes[`icon-only`] = this.iconOnly;
193
+ classes['disabled'] = this.disabled;
194
+ classes['isLoading'] = this.isLoading;
195
+ return classes;
196
+ }
197
+ getIcon() {
198
+ if (!this.iconName || this.isLoading)
199
+ return '';
200
+ const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
201
+ return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: this.getSymbolColor() });
202
+ }
203
+ getSymbolColor() {
204
+ return this.disabled
205
+ ? 'neutral-dark'
206
+ : this.fontColor === 'light'
207
+ ? 'neutral-white'
208
+ : 'neutral-black';
209
+ }
210
+ handleClick(e) {
211
+ if (this.disabled || this.isLoading) {
212
+ e.preventDefault();
213
+ return;
214
+ }
215
+ if (!this.href) {
216
+ if (this.type === 'submit' && this.internals.form)
217
+ this.internals.form.submit();
218
+ if (this.type === 'reset' && this.internals.form)
219
+ this.internals.form.reset();
220
+ }
221
+ }
222
+ render() {
223
+ return (h(Host, { key: '7491e8209b9193f5e7f51ead1b08afe88b160ec1' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", lineHeight: '0%', color: this.getSymbolColor() }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: "neutral-black" }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", lineHeight: '0%', color: this.getSymbolColor() }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: "neutral-black" })))));
224
+ }
225
+ static get formAssociated() { return true; }
226
+ static get watchers() { return {
227
+ "background": ["setColors"],
228
+ "color": ["setColors"]
229
+ }; }
230
+ };
231
+ CuraButton.style = CuraButtonStyle0;
232
+
233
+ const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.714em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.857em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-medium)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host ::slotted(u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}:host ::slotted(i),:host ::slotted(em){font-weight:var(--font-weight-medium)}";
234
+ const CuraHeadingStyle0 = curaHeadingCss;
235
+
236
+ const CuraHeading = class {
237
+ constructor(hostRef) {
238
+ registerInstance(this, hostRef);
239
+ this.theme = window.CuraAPI.theme;
240
+ this.level = 1;
241
+ this.size = 'medium';
242
+ this.weight = 'regular';
243
+ this.spotColor = 'accent-dark';
244
+ this.color = undefined;
245
+ this.marginBlock = '1.25em';
246
+ this.lineHeight = '130%';
247
+ this.styles = {};
248
+ }
249
+ handleChangeColor() {
250
+ this.setColors();
251
+ }
252
+ connectedCallback() {
253
+ this.setFontProperties();
254
+ this.setColors();
255
+ }
256
+ getClasses() {
257
+ const classes = {};
258
+ classes[this.size.toLowerCase()] = true;
259
+ classes[`${this.weight.toLowerCase()}-weight`] = true;
260
+ return classes;
261
+ }
262
+ setFontProperties() {
263
+ this.weights = this.theme.fonts.getWeights();
264
+ this.fontSizeBase = this.theme.fonts.getSize();
265
+ this.styles = {
266
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
267
+ '--font-weight-regular': this.weights.regular,
268
+ '--font-weight-medium': this.weights.medium,
269
+ '--font-weight-bold': this.weights.bold,
270
+ '--font-weight-black': this.weights.black
271
+ };
272
+ }
273
+ hostCSSProperties() {
274
+ return {
275
+ '--margin-block': this.marginBlock,
276
+ '--font-size-base': this.fontSizeBase,
277
+ '--line-height': this.lineHeight
278
+ };
279
+ }
280
+ setColors() {
281
+ const fontColor = this.color
282
+ ? this.theme.colors.getColor(this.color)
283
+ : this.theme.fonts.getColor();
284
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
285
+ }
286
+ getHeadingTag() {
287
+ const tags = {
288
+ '1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
289
+ '2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
290
+ '3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
291
+ '4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
292
+ '5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
293
+ '6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
294
+ 'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
295
+ };
296
+ return tags[`${this.level}`] || tags['default'];
297
+ }
298
+ render() {
299
+ return (h(Host, { key: '456cd35fd9ad4389ceb13d3b89d05f70e2423068', style: this.hostCSSProperties() }, this.getHeadingTag()));
300
+ }
301
+ get host() { return getElement(this); }
302
+ static get watchers() { return {
303
+ "color": ["handleChangeColor"],
304
+ "spotColor": ["handleChangeColor"]
305
+ }; }
306
+ };
307
+ CuraHeading.style = CuraHeadingStyle0;
308
+
309
+ const curaIconCss = ":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
310
+ const CuraIconStyle0 = curaIconCss;
311
+
312
+ const CuraIcon = class {
313
+ constructor(hostRef) {
314
+ registerInstance(this, hostRef);
315
+ this.name = '';
316
+ this.color = 'neutral-base';
317
+ this.size = undefined;
318
+ this.iconset = 'default';
319
+ this.disabled = false;
320
+ }
321
+ sizeHandler(size) {
322
+ if (size === 'micro' && !microIcons.includes(this.name)) {
323
+ size = 16;
324
+ console.warn(`Icon ${this.name} doesn't support micro size. Minimum size of 16 was applied instead.`);
325
+ }
326
+ const scaledStroke = (iconSize) => {
327
+ return `${iconSizes[iconSize].stroke * (iconSizes.default.size / iconSizes[iconSize].size)}px`;
328
+ };
329
+ this.setHostProperty('--size', iconSizes[`${size}`] ? `${iconSizes[size].size}px` : `${iconSizes.default.size}px`);
330
+ this.setHostProperty('--stroke', iconSizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
331
+ }
332
+ colorHandler() {
333
+ this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color || 'neutral'));
334
+ }
335
+ connectedCallback() {
336
+ this.assetsPath = window.CuraAPI.localAssetsPath;
337
+ this.sizeHandler(this.size);
338
+ this.colorHandler();
339
+ }
340
+ setHostProperty(prop, value) {
341
+ this.host.style.setProperty(prop, value);
342
+ }
343
+ render() {
344
+ return (h(Host, { key: 'd49f752d12f9babd6a82fe97ef384f89879e1db9' }, h("svg", { key: '0c6d9dad5f8f8b571dd422ebb5f7941a75b46336', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: '88eab15bcbbff03713282d99055f140ccd424108', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
345
+ }
346
+ get host() { return getElement(this); }
347
+ static get watchers() { return {
348
+ "size": ["sizeHandler"],
349
+ "color": ["colorHandler"],
350
+ "disabled": ["colorHandler"]
351
+ }; }
352
+ };
353
+ CuraIcon.style = CuraIconStyle0;
354
+
355
+ const curaLabelCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:1.143em;font-weight:var(--font-weight-medium);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.32px}:host p.bold-weight,:host p ::slotted(b),:host p ::slotted(strong),:host p ::slotted(u){font-weight:var(--font-weight-bold)}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) - 4%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 4%);letter-spacing:0.56px}:host p.xsmall{font-size:0.857em;line-height:calc(var(--line-height) - 17%);letter-spacing:0.72px}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%}:host ::slotted(u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
356
+ const CuraLabelStyle0 = curaLabelCss;
357
+
358
+ const CuraLabel = class {
359
+ constructor(hostRef) {
360
+ registerInstance(this, hostRef);
361
+ this.theme = window.CuraAPI.theme;
362
+ this.size = 'medium';
363
+ this.weight = 'regular';
364
+ this.spotColor = 'accent-dark';
365
+ this.color = undefined;
366
+ this.marginBlock = '0';
367
+ this.lineHeight = '125%';
368
+ this.styles = {};
369
+ }
370
+ handleChangeColor() {
371
+ this.setColors();
372
+ }
373
+ connectedCallback() {
374
+ this.setFontProperties();
375
+ this.setColors();
376
+ }
377
+ getClasses() {
378
+ const sizeclass = {};
379
+ sizeclass[this.size.toLowerCase()] = true;
380
+ sizeclass[`${this.weight.toLowerCase()}-weight`] = true;
381
+ return sizeclass;
382
+ }
383
+ setFontProperties() {
384
+ this.weights = this.theme.fonts.getWeights();
385
+ this.fontSizeBase = this.theme.fonts.getSize();
386
+ this.styles = {
387
+ '--font-family': this.theme.fonts.getFamily('body'),
388
+ '--font-weight-medium': this.weights.medium,
389
+ '--font-weight-bold': this.weights.bold
390
+ };
391
+ }
392
+ setColors() {
393
+ const fontColor = this.color
394
+ ? this.theme.colors.getColor(this.color)
395
+ : this.theme.fonts.getColor();
396
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
397
+ }
398
+ hostCSSProperties() {
399
+ return {
400
+ '--margin-block': this.marginBlock,
401
+ '--font-size-base': this.fontSizeBase,
402
+ '--line-height': this.lineHeight
403
+ };
404
+ }
405
+ render() {
406
+ return (h(Host, { key: '42662869e7cc4cd7cc8ff29ef37209514eaea0ac', style: this.hostCSSProperties() }, h("p", { key: 'cf6be4faf13ab24e0ae65edea48b528763072a7b', style: this.styles, class: this.getClasses() }, h("slot", { key: '45ee41cdc15f0c73672e4b3047df4508dbb870e3' }))));
407
+ }
408
+ get host() { return getElement(this); }
409
+ static get watchers() { return {
410
+ "color": ["handleChangeColor"],
411
+ "spotColor": ["handleChangeColor"]
412
+ }; }
413
+ };
414
+ CuraLabel.style = CuraLabelStyle0;
415
+
416
+ const curaLoaderCircleCss = ":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}";
417
+ const CuraLoaderCircleStyle0 = curaLoaderCircleCss;
418
+
419
+ const CuraLoaderCircle = class {
420
+ constructor(hostRef) {
421
+ registerInstance(this, hostRef);
422
+ this.sizes = {
423
+ xlarge: 32,
424
+ large: 24,
425
+ medium: 20,
426
+ small: 16,
427
+ default: 16,
428
+ };
429
+ this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
430
+ this.size = 'medium';
431
+ this.color = 'neutral-white';
432
+ }
433
+ getStyles() {
434
+ return {
435
+ '--size': `${this.getPxSize()}px`,
436
+ '--color': window.CuraAPI.theme.colors.getColor(this.color)
437
+ };
438
+ }
439
+ render() {
440
+ return (h(Host, { key: '8b2b73c6aefffd1a4350618ed52038a414cebb48', style: this.getStyles() }, h("svg", { key: '4478c39440bc66adcb3bcf1d947ae12cd5c3c721', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '3c01be9c541a634c504a2b8f72296426b8cebe28' }, h("circle", { key: '153102890325235a989b91badcadd00f852ccc3e', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: '5fd7be471c351a46154fa96b459a99be297dfb5e', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '89ce06231240879c222d93fc4efc44d963bbd167' }, h("linearGradient", { key: '0999b93ff91ef7d31b9bfc70cfb08190838197e9', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: 'd7adf5104e03f40f4c757d218c0fc786e9f8ef2c' }), h("stop", { key: '8aaddbffb82d660aa8d62b2147efb74409218f41', offset: "1" }))))));
441
+ }
442
+ };
443
+ CuraLoaderCircle.style = CuraLoaderCircleStyle0;
444
+
445
+ const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
446
+ const CuraPageTemplateStyle0 = curaPageTemplateCss;
447
+
448
+ const CuraPageTemplate = class {
449
+ constructor(hostRef) {
450
+ registerInstance(this, hostRef);
451
+ this.contentwidth = 'default';
452
+ }
453
+ connectedCallback() {
454
+ this.styles = {
455
+ '--spacing': window.CuraAPI.theme.spacing.getSpacing(),
456
+ };
457
+ }
458
+ getClasses() {
459
+ const classes = {};
460
+ classes[this.contentwidth.toLowerCase()] = true;
461
+ return classes;
462
+ }
463
+ render() {
464
+ return (h(Host, { key: 'b420fd773b337fbf64107124c3a65b7d543aa0f9' }, h("div", { key: '00e031bf40ed01904107f07367ee5b3042c1871f', style: this.styles, class: "grid-template" }, h("div", { key: '4c5c8112fe739d2b330a5a71bfdd6f6339206b15', id: "sub-header" }, h("slot", { key: '8b9896a17e6016bc791da8fd01f562a41d7f5bb1', name: 'sub-header' })), h("div", { key: '9d45f7a18ce35ae550521b281cfc0d9ea5009343', id: "header" }, h("slot", { key: '79ecbfb33b818b41c98f8a1f09243f6c2082b7bd', name: 'header' })), h("div", { key: '129b9928ddd3c0f0c357fa71494b3b77876ecd49', id: "pre-content" }, h("slot", { key: '71b6fbe0755848ac8df0a800e65b8ebc6909aff3', name: 'pre-content' })), h("div", { key: '80389bc85c71768906aa2ab564a80b84a045705d', id: "content-container", class: this.getClasses() }, h("div", { key: '438eb89b07be453c1a7caf31eb78879a6b000fc3', id: "sidebar-left" }, h("slot", { key: '8e0dd99e31be8d03d767acdee8bd18f4f6fe80bd', name: 'sidebar-left' })), h("div", { key: '21edd321d65ff1a685c699314a2d4617a14b6d09', id: "content" }, h("slot", { key: '125f790bc5d5ecade8946c154b00fdb7591ec26f', name: "content" }), h("slot", { key: 'e52dfd04c751d893335037f6dc970902a37a7d4f' })), h("div", { key: '3d35da8b265ca7a96fe36d8f037c6db0e0857537', id: "sidebar-right" }, h("slot", { key: '1d812f29d7cc068b0c4f6e705a60defc91da7145', name: 'sidebar-right' }))), h("div", { key: '10f23a4d4e837bbb11e140a5fd09be05836a27ba', id: "post-body" }, h("slot", { key: '8f3bd8fea091a0b025e69f1a0916016f1354aeb8', name: 'post-body' })), h("div", { key: '474062139aa0dd1ed49bc9c8594820fa2ff0ba83', id: "footer" }, h("slot", { key: 'ad46b1122b0875390822df6db770413980090f5e', name: 'footer' })), h("div", { key: 'c3de6dd778e675e38099d85d248e7923e276a25c', id: "sub-footer" }, h("slot", { key: '81a48964dc8912a225ea9ea49478d674d8d7271b', name: 'sub-footer' })))));
465
+ }
466
+ get host() { return getElement(this); }
467
+ };
468
+ CuraPageTemplate.style = CuraPageTemplateStyle0;
469
+
470
+ const curaParagraphCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.28px}:host p.large{font-size:1.214em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.48px}:host p.caption,:host p.xsmall{font-size:0.714em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.6px}@media (min-width: 769px) and (max-width: 1920px){:host p{font-size:1.143em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.32px}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.56px}:host p.caption,:host p.xsmall{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.72px}}@media (min-width: 1921px){:host p{font-size:1.429em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.large{font-size:1.714em;line-height:calc(var(--line-height) + 20%)}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);letter-spacing:0px}:host p.caption,:host p.xsmall{font-size:1em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}:host ::slotted(u){font-weight:var(--font-weight-medium);text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
471
+ const CuraParagraphStyle0 = curaParagraphCss;
472
+
473
+ const CuraParagraph = class {
474
+ constructor(hostRef) {
475
+ registerInstance(this, hostRef);
476
+ this.theme = window.CuraAPI.theme;
477
+ this.size = 'medium';
478
+ this.spotColor = 'accent-dark';
479
+ this.color = undefined;
480
+ this.marginBlock = '1.25em';
481
+ this.lineHeight = '140%';
482
+ this.styles = {};
483
+ }
484
+ handleChangeColor() {
485
+ this.setColors();
486
+ }
487
+ connectedCallback() {
488
+ this.setFontProperties();
489
+ this.setColors();
490
+ }
491
+ setsizeClass() {
492
+ const sizeclass = {};
493
+ sizeclass[this.size.toLowerCase()] = true;
494
+ return sizeclass;
495
+ }
496
+ setFontProperties() {
497
+ this.weights = this.theme.fonts.getWeights();
498
+ this.fontSizeBase = this.theme.fonts.getSize();
499
+ this.styles = {
500
+ '--font-family': this.theme.fonts.getFamily('body'),
501
+ '--font-weight-regular': this.weights.regular,
502
+ '--font-weight-medium': this.weights.medium,
503
+ '--font-weight-bold': this.weights.bold
504
+ };
505
+ }
506
+ setColors() {
507
+ const fontColor = this.color
508
+ ? this.theme.colors.getColor(this.color)
509
+ : this.theme.fonts.getColor();
510
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
511
+ }
512
+ hostCSSProperties() {
513
+ return {
514
+ '--margin-block': this.marginBlock,
515
+ '--font-size-base': this.fontSizeBase,
516
+ '--line-height': this.lineHeight
517
+ };
518
+ }
519
+ render() {
520
+ return (h(Host, { key: '5b219ac846a02c36df1db1ff5be6f0c5c833c2c1', style: this.hostCSSProperties() }, h("p", { key: 'e53f25d18b0b5d54548879872c0f234d3782b4f0', style: this.styles, class: this.setsizeClass() }, h("slot", { key: 'be875e98ec8c19682f972d0e4bb0bb07e9ee4224' }))));
521
+ }
522
+ get host() { return getElement(this); }
523
+ static get watchers() { return {
524
+ "color": ["handleChangeColor"],
525
+ "spotColor": ["handleChangeColor"]
526
+ }; }
527
+ };
528
+ CuraParagraph.style = CuraParagraphStyle0;
529
+
530
+ export { CuraAccordion as cura_accordion, CuraAccordionItem as cura_accordion_item, CuraButton as cura_button, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraLabel as cura_label, CuraLoaderCircle as cura_loader_circle, CuraPageTemplate as cura_page_template, CuraParagraph as cura_paragraph };
531
+
532
+ //# sourceMappingURL=cura-accordion_9.entry.js.map