@rededor/cura 0.5.1 → 0.5.3

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 (375) hide show
  1. package/dist/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/icons/iconset-default-tmp.svg +4 -0
  3. package/dist/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/{app-globals-0e3b7fc6.js → app-globals-2988084b.js} +5 -5
  5. package/dist/cjs/app-globals-2988084b.js.map +1 -0
  6. package/dist/cjs/cura-accordion_8.cjs.entry.js +445 -0
  7. package/dist/cjs/cura-accordion_8.cjs.entry.js.map +1 -0
  8. package/dist/cjs/cura-alert.cjs.entry.js +67 -0
  9. package/dist/cjs/cura-alert.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +83 -0
  11. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -0
  12. package/dist/cjs/cura-button-select.cjs.entry.js +97 -0
  13. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -0
  14. package/dist/cjs/cura-button-transparent.cjs.entry.js +83 -0
  15. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -0
  16. package/dist/cjs/cura-checkbox.cjs.entry.js +144 -0
  17. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -0
  18. package/dist/cjs/cura-display.cjs.entry.js +74 -0
  19. package/dist/cjs/cura-display.cjs.entry.js.map +1 -0
  20. package/dist/cjs/cura-forms.definitions-11be2ebd.js +20 -0
  21. package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +1 -0
  22. package/dist/cjs/cura-icon.definitions-b73b0178.js +21 -0
  23. package/dist/cjs/cura-icon.definitions-b73b0178.js.map +1 -0
  24. package/dist/cjs/cura-icons-view.cjs.entry.js +36 -0
  25. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -0
  26. package/dist/cjs/cura-input-text.cjs.entry.js +3907 -0
  27. package/dist/cjs/cura-input-text.cjs.entry.js.map +1 -0
  28. package/dist/cjs/cura-label.cjs.entry.js +69 -0
  29. package/dist/cjs/cura-label.cjs.entry.js.map +1 -0
  30. package/dist/cjs/cura-radio.cjs.entry.js +114 -0
  31. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -0
  32. package/dist/cjs/cura-switch.cjs.entry.js +89 -0
  33. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -0
  34. package/dist/cjs/cura.cjs.js +3 -3
  35. package/dist/cjs/{index-404d93e9.js → index-7616f620.js} +35 -1
  36. package/dist/cjs/index-7616f620.js.map +1 -0
  37. package/dist/cjs/index.cjs.js +7 -0
  38. package/dist/cjs/index.cjs.js.map +1 -1
  39. package/dist/cjs/loader.cjs.js +3 -3
  40. package/dist/collection/api/cura-api.type.js.map +1 -1
  41. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +1 -1
  42. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
  43. package/dist/collection/api/modules/cura-theme-colors-module.js +1 -1
  44. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  45. package/dist/collection/api/theme-presets/static.js +2 -2
  46. package/dist/collection/api/theme-presets/static.js.map +1 -1
  47. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  48. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  49. package/dist/collection/assets/icons/iconset-default-tmp.svg +4 -0
  50. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  51. package/dist/collection/assets-raw/icons/default/swap.svg +3 -0
  52. package/dist/collection/collection-manifest.json +7 -0
  53. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +10 -6
  54. package/dist/collection/components/buttons/cura-button/cura-button.css +4 -0
  55. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +2 -2
  56. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
  57. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +4 -0
  58. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +2 -2
  59. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
  60. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +139 -0
  61. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +263 -0
  62. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -0
  63. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +4 -0
  64. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +2 -2
  65. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
  66. package/dist/collection/components/cura-alert/cura-alert.css +30 -0
  67. package/dist/collection/components/cura-alert/cura-alert.js +167 -0
  68. package/dist/collection/components/cura-alert/cura-alert.js.map +1 -0
  69. package/dist/collection/components/cura-alert/cura-alert.stories.js +95 -0
  70. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -0
  71. package/dist/collection/components/cura-icon/cura-icon.definitions.js +15 -0
  72. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -0
  73. package/dist/collection/components/cura-icon/cura-icon.js +9 -16
  74. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  75. package/dist/collection/components/cura-icon/cura-icon.stories.js +7 -6
  76. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  77. package/dist/collection/components/cura-icons-view/cura-icons-view.css +16 -17
  78. package/dist/collection/components/cura-icons-view/cura-icons-view.js +10 -3
  79. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  80. package/dist/collection/components/cura-page-template/cura-page-template.css +13 -9
  81. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +163 -0
  82. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +431 -0
  83. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -0
  84. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +196 -0
  85. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -0
  86. package/dist/collection/components/forms/cura-forms.definitions.js +15 -0
  87. package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -0
  88. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +326 -0
  89. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +655 -0
  90. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -0
  91. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +224 -0
  92. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -0
  93. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +46 -0
  94. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -0
  95. package/dist/collection/components/forms/cura-label/cura-label.css +70 -0
  96. package/dist/collection/components/forms/cura-label/cura-label.js +190 -0
  97. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -0
  98. package/dist/collection/components/forms/cura-label/cura-label.stories.js +137 -0
  99. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -0
  100. package/dist/collection/components/forms/cura-radio/cura-radio.css +146 -0
  101. package/dist/collection/components/forms/cura-radio/cura-radio.js +365 -0
  102. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -0
  103. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +175 -0
  104. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -0
  105. package/dist/collection/components/forms/cura-switch/cura-switch.css +100 -0
  106. package/dist/collection/components/forms/cura-switch/cura-switch.js +266 -0
  107. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -0
  108. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +137 -0
  109. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -0
  110. package/dist/collection/components/text/cura-display/cura-display.css +21 -38
  111. package/dist/collection/components/text/cura-display/cura-display.js +80 -49
  112. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  113. package/dist/collection/components/text/cura-display/cura-display.stories.js +78 -33
  114. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
  115. package/dist/collection/components/text/cura-heading/cura-heading.css +50 -24
  116. package/dist/collection/components/text/cura-heading/cura-heading.js +94 -39
  117. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  118. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +92 -36
  119. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  120. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +37 -38
  121. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +62 -41
  122. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  123. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +78 -46
  124. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  125. package/dist/collection/index.js +3 -1
  126. package/dist/collection/index.js.map +1 -1
  127. package/dist/components/cura-accordion-item.js +1 -1
  128. package/dist/components/cura-accordion-item.js.map +1 -1
  129. package/dist/components/cura-alert.d.ts +11 -0
  130. package/dist/components/cura-alert.js +105 -0
  131. package/dist/components/cura-alert.js.map +1 -0
  132. package/dist/components/cura-button-select.d.ts +11 -0
  133. package/dist/components/cura-button-select.js +127 -0
  134. package/dist/components/cura-button-select.js.map +1 -0
  135. package/dist/components/cura-checkbox.d.ts +11 -0
  136. package/dist/components/cura-checkbox.js +192 -0
  137. package/dist/components/cura-checkbox.js.map +1 -0
  138. package/dist/components/cura-display.js +41 -35
  139. package/dist/components/cura-display.js.map +1 -1
  140. package/dist/components/cura-forms.definitions.js +18 -0
  141. package/dist/components/cura-forms.definitions.js.map +1 -0
  142. package/dist/components/cura-heading.js +1 -87
  143. package/dist/components/cura-heading.js.map +1 -1
  144. package/dist/components/cura-heading2.js +104 -0
  145. package/dist/components/cura-heading2.js.map +1 -0
  146. package/dist/components/cura-icon2.js +24 -17
  147. package/dist/components/cura-icon2.js.map +1 -1
  148. package/dist/components/cura-icons-view.js +31 -7
  149. package/dist/components/cura-icons-view.js.map +1 -1
  150. package/dist/components/cura-input-text.d.ts +11 -0
  151. package/dist/components/cura-input-text.js +3961 -0
  152. package/dist/components/cura-input-text.js.map +1 -0
  153. package/dist/components/cura-label.d.ts +11 -0
  154. package/dist/components/cura-label.js +8 -0
  155. package/dist/components/cura-label.js.map +1 -0
  156. package/dist/components/cura-label2.js +88 -0
  157. package/dist/components/cura-label2.js.map +1 -0
  158. package/dist/components/cura-page-template.js +1 -1
  159. package/dist/components/cura-page-template.js.map +1 -1
  160. package/dist/components/cura-paragraph.js +1 -80
  161. package/dist/components/cura-paragraph.js.map +1 -1
  162. package/dist/components/cura-paragraph2.js +86 -0
  163. package/dist/components/cura-paragraph2.js.map +1 -0
  164. package/dist/components/cura-radio.d.ts +11 -0
  165. package/dist/components/cura-radio.js +154 -0
  166. package/dist/components/cura-radio.js.map +1 -0
  167. package/dist/components/cura-switch.d.ts +11 -0
  168. package/dist/components/cura-switch.js +119 -0
  169. package/dist/components/cura-switch.js.map +1 -0
  170. package/dist/components/index.js +23 -5
  171. package/dist/components/index.js.map +1 -1
  172. package/dist/cura/cura.esm.js +1 -1
  173. package/dist/cura/cura.esm.js.map +1 -1
  174. package/dist/cura/cura.js +1 -1
  175. package/dist/cura/index.esm.js +1 -1
  176. package/dist/cura/index.esm.js.map +1 -1
  177. package/dist/cura/p-120926c5.system.js +2 -0
  178. package/dist/cura/p-120926c5.system.js.map +1 -0
  179. package/dist/cura/p-1228e771.entry.js +2 -0
  180. package/dist/cura/p-1228e771.entry.js.map +1 -0
  181. package/dist/cura/p-2d42ccf4.entry.js +2 -0
  182. package/dist/cura/p-2d42ccf4.entry.js.map +1 -0
  183. package/dist/cura/p-3688570d.js +2 -0
  184. package/dist/cura/p-3688570d.js.map +1 -0
  185. package/dist/cura/p-36a83bc7.system.js +3 -0
  186. package/dist/cura/p-36a83bc7.system.js.map +1 -0
  187. package/dist/cura/p-3f3355f3.system.entry.js +2 -0
  188. package/dist/cura/p-3f3355f3.system.entry.js.map +1 -0
  189. package/dist/cura/p-48426f60.system.js +2 -0
  190. package/dist/cura/p-48426f60.system.js.map +1 -0
  191. package/dist/cura/p-4df84c9e.entry.js +2 -0
  192. package/dist/cura/p-4df84c9e.entry.js.map +1 -0
  193. package/dist/cura/p-70cefaf8.entry.js +2 -0
  194. package/dist/cura/p-70cefaf8.entry.js.map +1 -0
  195. package/dist/cura/p-72a9ed55.entry.js +2 -0
  196. package/dist/cura/p-72a9ed55.entry.js.map +1 -0
  197. package/dist/cura/p-75b2e4d1.system.entry.js +2 -0
  198. package/dist/cura/p-75b2e4d1.system.entry.js.map +1 -0
  199. package/dist/cura/p-880917c1.entry.js +2 -0
  200. package/dist/cura/p-880917c1.entry.js.map +1 -0
  201. package/dist/cura/p-9471c93e.system.entry.js +2 -0
  202. package/dist/cura/p-9471c93e.system.entry.js.map +1 -0
  203. package/dist/cura/p-98014544.entry.js +2 -0
  204. package/dist/cura/p-98014544.entry.js.map +1 -0
  205. package/dist/cura/p-98352c92.system.entry.js +2 -0
  206. package/dist/cura/p-98352c92.system.entry.js.map +1 -0
  207. package/dist/cura/p-a32889a4.system.js +2 -0
  208. package/dist/cura/p-a32889a4.system.js.map +1 -0
  209. package/dist/cura/p-a6d20c12.system.entry.js +2 -0
  210. package/dist/cura/p-a6d20c12.system.entry.js.map +1 -0
  211. package/dist/cura/p-ab8c9a8f.system.entry.js +2 -0
  212. package/dist/cura/p-ab8c9a8f.system.entry.js.map +1 -0
  213. package/dist/cura/p-ad194144.entry.js +2 -0
  214. package/dist/cura/p-ad194144.entry.js.map +1 -0
  215. package/dist/cura/p-b0e13882.system.entry.js +2 -0
  216. package/dist/cura/p-b0e13882.system.entry.js.map +1 -0
  217. package/dist/cura/p-ba66d7be.js +3 -0
  218. package/dist/cura/{p-c0c00396.system.js.map → p-ba66d7be.js.map} +1 -1
  219. package/dist/cura/p-bb3f9d05.entry.js +2 -0
  220. package/dist/cura/p-bb3f9d05.entry.js.map +1 -0
  221. package/dist/cura/p-c791725b.js +2 -0
  222. package/dist/cura/p-c791725b.js.map +1 -0
  223. package/dist/cura/p-c9afb94f.entry.js +2 -0
  224. package/dist/cura/p-c9afb94f.entry.js.map +1 -0
  225. package/dist/cura/p-d3f9c888.system.js +2 -0
  226. package/dist/cura/p-d3f9c888.system.js.map +1 -0
  227. package/dist/cura/p-e5e259fd.system.entry.js +2 -0
  228. package/dist/cura/p-e5e259fd.system.entry.js.map +1 -0
  229. package/dist/cura/p-edeffbfc.entry.js +2 -0
  230. package/dist/cura/p-edeffbfc.entry.js.map +1 -0
  231. package/dist/cura/p-eea5ca70.system.entry.js +2 -0
  232. package/dist/cura/p-eea5ca70.system.entry.js.map +1 -0
  233. package/dist/cura/p-f6e61abf.system.entry.js +2 -0
  234. package/dist/cura/p-f6e61abf.system.entry.js.map +1 -0
  235. package/dist/cura/p-f89f2ecc.system.entry.js +2 -0
  236. package/dist/cura/p-f89f2ecc.system.entry.js.map +1 -0
  237. package/dist/cura/p-f8fffdc1.js +2 -0
  238. package/dist/cura/p-f8fffdc1.js.map +1 -0
  239. package/dist/cura/p-fc4ba4ce.system.js +2 -0
  240. package/dist/cura/p-fc4ba4ce.system.js.map +1 -0
  241. package/dist/cura/p-fef52079.entry.js +2 -0
  242. package/dist/cura/p-fef52079.entry.js.map +1 -0
  243. package/dist/cura/p-ffd41520.system.entry.js +2 -0
  244. package/dist/cura/p-ffd41520.system.entry.js.map +1 -0
  245. package/dist/esm/{app-globals-cc003eaf.js → app-globals-29001758.js} +5 -5
  246. package/dist/esm/app-globals-29001758.js.map +1 -0
  247. package/dist/esm/cura-accordion_8.entry.js +434 -0
  248. package/dist/esm/cura-accordion_8.entry.js.map +1 -0
  249. package/dist/esm/cura-alert.entry.js +63 -0
  250. package/dist/esm/cura-alert.entry.js.map +1 -0
  251. package/dist/esm/cura-button-outline.entry.js +79 -0
  252. package/dist/esm/cura-button-outline.entry.js.map +1 -0
  253. package/dist/esm/cura-button-select.entry.js +93 -0
  254. package/dist/esm/cura-button-select.entry.js.map +1 -0
  255. package/dist/esm/cura-button-transparent.entry.js +79 -0
  256. package/dist/esm/cura-button-transparent.entry.js.map +1 -0
  257. package/dist/esm/cura-checkbox.entry.js +140 -0
  258. package/dist/esm/cura-checkbox.entry.js.map +1 -0
  259. package/dist/esm/cura-display.entry.js +70 -0
  260. package/dist/esm/cura-display.entry.js.map +1 -0
  261. package/dist/esm/cura-forms.definitions-0f774253.js +18 -0
  262. package/dist/esm/cura-forms.definitions-0f774253.js.map +1 -0
  263. package/dist/esm/cura-icon.definitions-a63d1862.js +18 -0
  264. package/dist/esm/cura-icon.definitions-a63d1862.js.map +1 -0
  265. package/dist/esm/cura-icons-view.entry.js +32 -0
  266. package/dist/esm/cura-icons-view.entry.js.map +1 -0
  267. package/dist/esm/cura-input-text.entry.js +3903 -0
  268. package/dist/esm/cura-input-text.entry.js.map +1 -0
  269. package/dist/esm/cura-label.entry.js +65 -0
  270. package/dist/esm/cura-label.entry.js.map +1 -0
  271. package/dist/esm/cura-radio.entry.js +110 -0
  272. package/dist/esm/cura-radio.entry.js.map +1 -0
  273. package/dist/esm/cura-switch.entry.js +85 -0
  274. package/dist/esm/cura-switch.entry.js.map +1 -0
  275. package/dist/esm/cura.js +4 -4
  276. package/dist/esm/{index-d99da69e.js → index-81f1a268.js} +35 -2
  277. package/dist/{esm-es5/index-d99da69e.js.map → esm/index-81f1a268.js.map} +1 -1
  278. package/dist/esm/index.js +4 -0
  279. package/dist/esm/index.js.map +1 -1
  280. package/dist/esm/loader.js +4 -4
  281. package/dist/esm-es5/app-globals-29001758.js +2 -0
  282. package/dist/esm-es5/app-globals-29001758.js.map +1 -0
  283. package/dist/esm-es5/cura-accordion_8.entry.js +2 -0
  284. package/dist/esm-es5/cura-accordion_8.entry.js.map +1 -0
  285. package/dist/esm-es5/cura-alert.entry.js +2 -0
  286. package/dist/esm-es5/cura-alert.entry.js.map +1 -0
  287. package/dist/esm-es5/cura-button-outline.entry.js +2 -0
  288. package/dist/esm-es5/cura-button-outline.entry.js.map +1 -0
  289. package/dist/esm-es5/cura-button-select.entry.js +2 -0
  290. package/dist/esm-es5/cura-button-select.entry.js.map +1 -0
  291. package/dist/esm-es5/cura-button-transparent.entry.js +2 -0
  292. package/dist/esm-es5/cura-button-transparent.entry.js.map +1 -0
  293. package/dist/esm-es5/cura-checkbox.entry.js +2 -0
  294. package/dist/esm-es5/cura-checkbox.entry.js.map +1 -0
  295. package/dist/esm-es5/cura-display.entry.js +2 -0
  296. package/dist/esm-es5/cura-display.entry.js.map +1 -0
  297. package/dist/esm-es5/cura-forms.definitions-0f774253.js +2 -0
  298. package/dist/esm-es5/cura-forms.definitions-0f774253.js.map +1 -0
  299. package/dist/esm-es5/cura-icon.definitions-a63d1862.js +2 -0
  300. package/dist/esm-es5/cura-icon.definitions-a63d1862.js.map +1 -0
  301. package/dist/esm-es5/cura-icons-view.entry.js +2 -0
  302. package/dist/esm-es5/cura-icons-view.entry.js.map +1 -0
  303. package/dist/esm-es5/cura-input-text.entry.js +2 -0
  304. package/dist/esm-es5/cura-input-text.entry.js.map +1 -0
  305. package/dist/esm-es5/cura-label.entry.js +2 -0
  306. package/dist/esm-es5/cura-label.entry.js.map +1 -0
  307. package/dist/esm-es5/cura-radio.entry.js +2 -0
  308. package/dist/esm-es5/cura-radio.entry.js.map +1 -0
  309. package/dist/esm-es5/cura-switch.entry.js +2 -0
  310. package/dist/esm-es5/cura-switch.entry.js.map +1 -0
  311. package/dist/esm-es5/cura.js +1 -1
  312. package/dist/esm-es5/cura.js.map +1 -1
  313. package/dist/esm-es5/index-81f1a268.js +3 -0
  314. package/dist/esm-es5/index-81f1a268.js.map +1 -0
  315. package/dist/esm-es5/index.js +1 -1
  316. package/dist/esm-es5/index.js.map +1 -1
  317. package/dist/esm-es5/loader.js +1 -1
  318. package/dist/esm-es5/loader.js.map +1 -1
  319. package/dist/types/api/cura-api.type.d.ts +1 -0
  320. package/dist/types/components/buttons/cura-button/cura-button.d.ts +1 -1
  321. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +51 -0
  322. package/dist/types/components/cura-alert/cura-alert.d.ts +16 -0
  323. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +79 -0
  324. package/dist/types/components/cura-icon/cura-icon.d.ts +0 -42
  325. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +47 -0
  326. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +2 -1
  327. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +100 -0
  328. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +199 -0
  329. package/dist/types/components/forms/cura-forms.definitions.d.ts +14 -0
  330. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +138 -0
  331. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +224 -0
  332. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +5 -0
  333. package/dist/types/components/forms/cura-label/cura-label.d.ts +54 -0
  334. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +126 -0
  335. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +81 -0
  336. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +180 -0
  337. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +62 -0
  338. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +135 -0
  339. package/dist/types/components/text/cura-display/cura-display.d.ts +29 -18
  340. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +52 -14
  341. package/dist/types/components/text/cura-heading/cura-heading.d.ts +34 -17
  342. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +58 -6
  343. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +24 -12
  344. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +47 -9
  345. package/dist/types/components.d.ts +741 -46
  346. package/dist/types/index.d.ts +9 -0
  347. package/package.json +5 -6
  348. package/dist/cjs/app-globals-0e3b7fc6.js.map +0 -1
  349. package/dist/cjs/cura-accordion_12.cjs.entry.js +0 -674
  350. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
  351. package/dist/cjs/index-404d93e9.js.map +0 -1
  352. package/dist/cura/p-319699df.entry.js +0 -2
  353. package/dist/cura/p-319699df.entry.js.map +0 -1
  354. package/dist/cura/p-46d20db3.js +0 -3
  355. package/dist/cura/p-46d20db3.js.map +0 -1
  356. package/dist/cura/p-50ea2036.system.js +0 -2
  357. package/dist/cura/p-50ea2036.system.js.map +0 -1
  358. package/dist/cura/p-5250cb43.system.js +0 -2
  359. package/dist/cura/p-5250cb43.system.js.map +0 -1
  360. package/dist/cura/p-5cc3c8bd.system.entry.js +0 -2
  361. package/dist/cura/p-5cc3c8bd.system.entry.js.map +0 -1
  362. package/dist/cura/p-788e035b.system.js +0 -2
  363. package/dist/cura/p-788e035b.system.js.map +0 -1
  364. package/dist/cura/p-c0c00396.system.js +0 -3
  365. package/dist/cura/p-d5c64a5f.js +0 -2
  366. package/dist/cura/p-d5c64a5f.js.map +0 -1
  367. package/dist/esm/app-globals-cc003eaf.js.map +0 -1
  368. package/dist/esm/cura-accordion_12.entry.js +0 -659
  369. package/dist/esm/cura-accordion_12.entry.js.map +0 -1
  370. package/dist/esm/index-d99da69e.js.map +0 -1
  371. package/dist/esm-es5/app-globals-cc003eaf.js +0 -2
  372. package/dist/esm-es5/app-globals-cc003eaf.js.map +0 -1
  373. package/dist/esm-es5/cura-accordion_12.entry.js +0 -2
  374. package/dist/esm-es5/cura-accordion_12.entry.js.map +0 -1
  375. package/dist/esm-es5/index-d99da69e.js +0 -3
@@ -0,0 +1 @@
1
+ {"file":"cura-checkbox.entry.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,qrGAAqrG;;MCShsG,YAAY;;;;IAuEvB,qBAAgB,GAAG,MAAM,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC;IAEpD,oBAAe,GAAG,MAAM,IAAI,CAAC,SAAS,KAAK,MAAM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ACf,WAAK,KAAK,EAAC,eAAe,IACxB,kBACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,QAAQ,GAAG,QAAQ,EACjD,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAC/B,IAAI,CAAC,KAAK,CACA,EACZ,IAAI,CAAC,QAAQ,IAAI,sBAAgB,UAAU,EAAC,IAAI,EAAC,WAAW,EAAC,GAAG,EAAC,KAAK,EAAC,YAAY,SAAqB,CACrG,EACN,kBACE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAClC,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,SAAS,IACf,eAAa,CACF,CACT,EACN,WAAK,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,IAC1E,aACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,aAAa,GACjC,EACD,IAAI,CAAC,OAAO,EAAE,CACX,CACF,CACD,EACP;GACH;;;;;;;;;;;;;","names":[],"sources":["./src/components/forms/cura-checkbox/cura-checkbox.scss?tag=cura-checkbox&encapsulation=shadow","./src/components/forms/cura-checkbox/cura-checkbox.tsx"],"sourcesContent":[":host {\n display: block;\n width: fit-content;\n box-sizing: border-box;\n}\n\n/* Container e Layout */\n.container {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n gap: var(--gap);\n\n}\n\n.position {\n\n &.container {\n flex-direction: row;\n }\n\n .label-wrapper {\n justify-content: end;\n }\n\n .message {\n text-align: right;\n }\n\n .label {\n order:1\n }\n\n}\n\n.info {\n display: flex;\n flex-direction: column;\n}\n\n.label-wrapper {\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 5px;\n}\n\n/* Control e Checkbox */\n.control {\n width: fit-content;\n cursor: pointer;\n position: relative;\n}\n\n.checkbox {\n appearance: none;\n border: 2px solid var(--primary-base-neutral-medium);\n border-radius: 4px;\n background: var(--neutral-lighter-neutral-purewhite);\n flex: 1 0;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n box-sizing: border-box;\n width: var(--size);\n height: var(--size);\n flex: 0 0 var(--size);\n}\n\n.icon {\n position: absolute;\n display: flex;\n opacity: 0;\n transition: opacity 0.3s;\n}\n\n/* Estados de Foco */\n.checkbox:focus {\n border-color: var(--info-base) !important;\n}\n\n/* Estado Disabled */\n.disabled .checkbox {\n background: var(--primary-darker-neutral-white);\n border-color: var(--primary-base-neutral-base);\n cursor: not-allowed;\n\n &:hover {\n border-color: var(--primary-base-neutral-base) !important;\n }\n}\n\n.disabled.checked .checkbox,\n.disabled.indeterminate .checkbox {\n background: var(--primary-base-neutral-white);\n border-color: var(--primary-base-neutral-base);\n\n &:hover {\n border-color: var(--primary-base-neutral-base) !important;\n background: var(--primary-base-neutral-white);\n\n }\n}\n\n.disabled .checkbox:focus {\n border-color: var(--primary-base-neutral-base);\n}\n\n/* Estado Checked */\n.checked .checkbox,\n.indeterminate .checkbox {\n border-color: var(--color-dark);\n background: var(--color-base);\n\n &:hover {\n border-color: var(--color-light) !important;\n background: var(--color-lighter);\n }\n}\n\n.checked .icon,\n.indeterminate .icon {\n opacity: 1;\n}\n\n/* Hover para não disabled, checked, indeterminate */\n:not(.disabled):not(.checked):not(.indeterminate) .checkbox:hover {\n border-color: var(--primary-base-neutral-dark);\n}\n\n/* Estado Success */\n.success .checkbox {\n border-color: var(--success-base) ;\n background: var(--success-lighter);\n\n &:hover{\n border-color: var(--success-base) !important;\n }\n}\n\n.success.checked .checkbox {\n border-color: var(--success-dark-base);\n background: var(--success-base-lighter);\n\n &:hover {\n border-color: var(--success-dark-base);\n }\n}\n\n/* Estado Error */\n.error .checkbox {\n border-color: var(--error-base);\n background: var(--error-lighter);\n\n &:hover {\n border-color: var(--error-base) !important;\n }\n}\n\n.error.checked .checkbox {\n border-color: var(--error-dark-base);\n background: var(--error-base-lighter);\n\n &:hover {\n border-color: var(--error-dark-base);\n }\n}\n\n/* Input */\ninput {\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n","import { Component, Prop, Event, Element, h, Host, Watch, EventEmitter, State } from '@stencil/core';\nimport { formsSizes } from '../cura-forms.definitions';\n\n@Component({\n tag: 'cura-checkbox',\n styleUrl: 'cura-checkbox.scss',\n shadow: true,\n})\n\nexport class CuraCheckbox {\n /**\n * Reflects the checked state of the checkbox.\n * Mutable property allowing state change.\n */\n @Prop({ reflect: true, mutable: true }) checked: boolean = false;\n /**\n * Reflects the indeterminate state of the checkbox.\n * Mutable property allowing state change.\n */\n @Prop({ reflect: true, mutable: true }) indeterminate: boolean = false;\n /**\n * Status of the checkbox.\n * Can be 'error', 'success', or 'default'.\n */\n @Prop({ reflect: true, mutable: true }) status: 'error' | 'success' | 'default' = 'default';\n /**\n * Reflects the disabled state of the checkbox.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n /**\n * Reflects the required state of the checkbox.\n */\n @Prop({ reflect: true }) required: boolean = false;\n /**\n * Text label associated with the checkbox.\n */\n @Prop({ reflect: true }) label: string;\n /**\n * Specifies the tabindex of the checkbox.\n */\n @Prop({ reflect: true }) ontabindex: number = 0;\n /**\n * Position of the label relative to the checkbox.\n * Can be 'left' or 'right'.\n */\n @Prop({ reflect: true }) position: 'left' | 'right' = 'left';\n /**\n * Value associated with the checkbox.\n */\n @Prop({ reflect: true }) value: string;\n /**\n * Name attribute of the checkbox.\n */\n @Prop({ reflect: true }) name: string;\n /**\n * Size of the checkbox.\n * Can be 'small', 'medium', or 'large'.\n */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n /**\n * Background theme of the checkbox.\n * Can be 'dark' or 'light'.\n */\n @Prop() background: 'dark' | 'light' = 'light';\n /**\n * iconColor theme of the checkbox.\n * Can be 'dark' or 'light'.\n */\n @Prop() iconColor: 'dark' | 'light' = 'dark';\n /**\n * Color theme of the checkbox.\n */\n @Prop() color = 'accent';\n\n @State() styles = {};\n\n @Element() host: HTMLElement;\n\n @Event() onchange: EventEmitter<{ value: string, checked: boolean, indeterminate: boolean }>;\n\n isDarkbackground = () => this.background === 'dark';\n\n isDarkIconColor = () => this.iconColor === 'dark';\n\n @Watch('size')\n sizeHandler() {\n this.styles['--size'] = `${formsSizes[this.size].size}px`\n this.styles['--gap'] = `${formsSizes[this.size].gap}px`\n }\n\n /**\n * Watches changes in color and background properties to update styles.\n */\n @Watch('color')\n @Watch('background')\n setColors() {\n const colors = [\n { name: '--color-base', background: `${this.color}-base` },\n { name: '--color-lighter', background: `${this.color}-lighter` },\n { name: '--color-light', background: `${this.color}-light` },\n { name: '--color-dark', background: `${this.color}-dark` },\n { name: '--info-base', background: 'info-base' },\n { name: '--error-base', background: 'error-base' },\n { name: '--success-lighter', background: 'success-lighter' },\n { name: '--success-base', background: 'success-base' },\n { name: '--success-dark', background: 'success-dark' },\n { name: '--error-lighter', background: 'error-lighter' },\n { name: '--primary-base-neutral-white', background: this.isDarkbackground() ? 'primary-base' : 'neutral-white' },\n { name: '--primary-base-neutral-medium', background: this.isDarkbackground() ? 'primary-base' : 'neutral-medium' },\n { name: '--neutral-lighter-neutral-purewhite', background: this.isDarkbackground() ? 'neutral-lighter' : 'neutral-purewhite' },\n { name: '--primary-darker-neutral-white', background: this.isDarkbackground() ? 'primary-darker' : 'neutral-white' },\n { name: '--primary-base-neutral-base', background: this.isDarkbackground() ? 'primary-base' : 'neutral-base' },\n { name: '--primary-base-neutral-dark', background: this.isDarkbackground() ? 'primary-base' : 'neutral-dark' },\n { name: '--primary-base-neutral-medium', background: this.isDarkbackground() ? 'primary-base' : 'neutral-medium' },\n { name: '--success-base-lighter', background: this.isDarkbackground() ? 'success-base' : 'success-lighter' },\n { name: '--success-dark-base', background: this.isDarkbackground() ? 'success-dark' : 'success-base' },\n { name: '--error-base-lighter', background: this.isDarkbackground() ? 'error-base' : 'error-lighter' },\n { name: '--error-dark-base', background: this.isDarkbackground() ? 'error-dark' : 'error-base' },\n ];\n\n colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.background));\n this.styles = { ...this.styles };\n }\n\n connectedCallback() {\n this.sizeHandler()\n this.setColors();\n }\n\n /**\n * Handles click event on the checkbox.\n * Emits onchange event with value, checked, and indeterminate states.\n */\n handleClick = () => {\n if (this.disabled) return;\n\n this.indeterminate = false;\n this.checked = !this.checked;\n this.onchange.emit({ value: this.value, checked: this.checked, indeterminate: this.indeterminate });\n };\n\n /**\n * Retrieves classes based on component state for conditional styling.\n */\n getClasses() {\n const classes = {};\n classes['container'] = true;\n classes['checked'] = this.checked;\n classes['disabled'] = this.disabled;\n classes['indeterminate'] = this.indeterminate;\n classes['position'] = this.position === 'right';\n classes[this.status] = true;\n\n return classes;\n }\n\n /**\n * Assigns color based on status and background theme.\n * @param defaultColor Default color.\n */\n\n @Watch('background')\n @Watch('iconColor')\n assignColor(type: 'icon' | 'label' | 'message',) {\n if (this.disabled) return this.isDarkbackground() ? 'primary-darker' : 'neutral-medium';\n\n const statusColors = {\n success: {\n icon: 'success-dark',\n label: this.isDarkbackground() ? 'success-lighter' : 'success-darker',\n message: this.isDarkbackground() ? 'success-base' : 'success-dark'\n },\n error: {\n icon: 'error-dark',\n label: this.isDarkbackground() ? 'error-lighter' : 'neutral-darker',\n message: this.isDarkbackground() ? 'error-base' : 'error-dark'\n },\n default: {\n icon: this.isDarkIconColor() ? 'neutral-black' : 'neutral-purewhite',\n label: this.isDarkbackground() ? 'neutral-white' : 'neutral-black',\n message: this.isDarkbackground() ? 'primary-lighter' : 'neutral-dark'\n }\n };\n\n return statusColors[this.status][type];\n }\n\n /**\n * Retrieves icon element based on checkbox state.\n */\n getIcon() {\n const iconName = this.indeterminate ? 'minus' : \"check\"\n const iconColor = this.assignColor('icon');\n const iconSize = this.size === 'large' ? 20 : \"micro\"\n\n return <cura-icon class=\"icon\" name={iconName} size={iconSize} color={iconColor}></cura-icon>\n }\n\n\n render() {\n return (\n <Host>\n <div class={this.getClasses()} style={this.styles}>\n <div class=\"info\">\n <div class=\"label-wrapper\">\n <cura-label\n class=\"label\"\n size={this.size === 'large' ? 'medium' : 'xsmall'}\n color={this.assignColor('label')}>\n {this.label}\n </cura-label>\n {this.required && <cura-paragraph lineHeight='0%' marginBlock='0' color=\"error-base\" >* </cura-paragraph>}\n </div>\n <cura-label\n color={this.assignColor('message')}\n size=\"xsmall\"\n class=\"message\">\n <slot></slot>\n </cura-label>\n </div>\n <div class={\"checkbox\"} onClick={this.handleClick} tabIndex={this.ontabindex}>\n <input\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n required={this.required}\n checked={this.checked}\n indeterminate={this.indeterminate}\n />\n {this.getIcon()}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,70 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-81f1a268.js';
2
+
3
+ const curaDisplayCss = ":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:3em;font-weight:var(--font-weight-bold);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:3.429em}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.286em;line-height:calc(var(--line-height) + 5%)}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}: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);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
4
+
5
+ const CuraDisplay = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.theme = window.CuraAPI.theme;
9
+ this.level = 1;
10
+ this.spotColor = 'accent-dark';
11
+ this.color = undefined;
12
+ this.marginBlock = '1.25em';
13
+ this.lineHeight = '120%';
14
+ this.styles = {};
15
+ }
16
+ handleChangeColor() {
17
+ this.setColors();
18
+ }
19
+ connectedCallback() {
20
+ this.setFontProperties();
21
+ this.setColors();
22
+ }
23
+ setFontProperties() {
24
+ this.weights = this.theme.fonts.getWeights();
25
+ this.fontSizeBase = this.theme.fonts.getSize();
26
+ this.styles = {
27
+ '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
28
+ '--font-size': window.CuraAPI.theme.fonts.getSize(),
29
+ '--font-weight-bold': this.weights.bold
30
+ };
31
+ }
32
+ hostCSSProperties() {
33
+ return {
34
+ '--margin-block': this.marginBlock,
35
+ '--font-size-base': this.fontSizeBase,
36
+ '--line-height': this.lineHeight
37
+ };
38
+ }
39
+ setColors() {
40
+ const fontColor = this.color
41
+ ? this.theme.colors.getColor(this.color)
42
+ : this.theme.fonts.getColor();
43
+ 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}`) });
44
+ }
45
+ getHeadingTag() {
46
+ const tags = {
47
+ '1': h("h1", { style: this.styles }, h("slot", null)),
48
+ '2': h("h2", { style: this.styles }, h("slot", null)),
49
+ '3': h("h3", { style: this.styles }, h("slot", null)),
50
+ '4': h("h4", { style: this.styles }, h("slot", null)),
51
+ '5': h("h5", { style: this.styles }, h("slot", null)),
52
+ '6': h("h6", { style: this.styles }, h("slot", null)),
53
+ 'default': h("h1", { style: this.styles }, h("slot", null))
54
+ };
55
+ return tags[`${this.level}`] || tags['default'];
56
+ }
57
+ render() {
58
+ return (h(Host, { style: this.hostCSSProperties() }, this.getHeadingTag()));
59
+ }
60
+ get host() { return getElement(this); }
61
+ static get watchers() { return {
62
+ "color": ["handleChangeColor"],
63
+ "spotColor": ["handleChangeColor"]
64
+ }; }
65
+ };
66
+ CuraDisplay.style = curaDisplayCss;
67
+
68
+ export { CuraDisplay as cura_display };
69
+
70
+ //# sourceMappingURL=cura-display.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-display.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,k/BAAk/B;;MCO5/B,WAAW;;;IA+CtB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;iBAzCyB,CAAC;qBAMpB,aAAa;;uBAiBX,QAAQ;sBAMT,MAAM;kBAaxB,EAAE;;EA3BpB,iBAAiB;IACf,IAAI,CAAC,SAAS,EAAE,CAAC;GAClB;EA2BD,iBAAiB;IACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;GAClB;EAED,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC/C,IAAI,CAAC,MAAM,GAAG;MACZ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;MAChE,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;MACnD,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;KACxC,CAAC;GACH;EAED,iBAAiB;IACf,OAAO;MACL,gBAAgB,EAAE,IAAI,CAAC,WAAW;MAClC,kBAAkB,EAAE,IAAI,CAAC,YAAY;MACrC,eAAe,EAAE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IAAI,CAAC,aAAa,EAAE,CACjB,EACP;GACH;;;;;;;;;;;","names":[],"sources":["./src/components/text/cura-display/cura-display.scss?tag=cura-display&encapsulation=shadow","./src/components/text/cura-display/cura-display.tsx"],"sourcesContent":["@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size-base);\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 3em;\n font-weight: var(--font-weight-bold);\n color: var(--color-body);\n line-height: var(--line-height);\n margin-block: var(--margin-block);\n letter-spacing: 0px;\n }\n\n @include medium-large() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 3.429em;\n }\n }\n\n @include xlarge-only() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 4.286em;\n line-height: calc(var(--line-height) + 5%);\n }\n }\n\n ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n\n ::slotted(a) {\n font-weight: var(--font-weight-bold);\n color: var(--color-link);\n text-underline-offset: 10%;\n cursor: pointer;\n }\n\n ::slotted(u) {\n text-underline-offset: 10%;\n }\n\n ::slotted(abbr) {\n color: var(--color-link);\n text-decoration: underline dashed 1px var(--color-link);\n text-underline-offset: 10%;\n cursor: default;\n }\n\n}\n","import { Component, Host, h, Element, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-display',\n styleUrl: 'cura-display.scss',\n shadow: true,\n})\nexport class CuraDisplay {\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1(default) to 6.\n */\n @Prop({reflect: true}) level: 1 | 2 | 3 | 4 | 5 | 6 = 1;\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop() color: string;\n @Watch('color')\n @Watch('spotColor')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 140%\n */\n @Prop({reflect: true}) lineHeight = '120%';\n\n /**\n * Host element <cura-display>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n theme = window.CuraAPI.theme;\n @State() styles = {};\n\n connectedCallback() {\n this.setFontProperties();\n this.setColors();\n }\n\n setFontProperties() {\n this.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-bold': this.weights.bold\n };\n }\n\n hostCSSProperties() {\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight\n };\n }\n\n setColors() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n this.styles = {\n ...this.styles,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-link': this.theme.colors.getColor(`${this.spotColor}`)\n };\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles}><slot></slot></h1>,\n '2': <h2 style={this.styles}><slot></slot></h2>,\n '3': <h3 style={this.styles}><slot></slot></h3>,\n '4': <h4 style={this.styles}><slot></slot></h4>,\n '5': <h5 style={this.styles}><slot></slot></h5>,\n '6': <h6 style={this.styles}><slot></slot></h6>,\n 'default': <h1 style={this.styles}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host style={this.hostCSSProperties()}>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -0,0 +1,18 @@
1
+ const formsSizes = {
2
+ "large": {
3
+ size: 32,
4
+ gap: 16,
5
+ },
6
+ "medium": {
7
+ size: 24,
8
+ gap: 12,
9
+ },
10
+ "small": {
11
+ size: 20,
12
+ gap: 8,
13
+ },
14
+ };
15
+
16
+ export { formsSizes as f };
17
+
18
+ //# sourceMappingURL=cura-forms.definitions-0f774253.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-forms.definitions-0f774253.js","mappings":"MAAa,UAAU,GAAG;EACxB,OAAO,EAAE;IACP,IAAI,EAAE,EAAE;IACR,GAAG,EAAE,EAAE;GACR;EACD,QAAQ,EAAE;IACR,IAAI,EAAE,EAAE;IACR,GAAG,EAAE,EAAE;GACR;EACD,OAAO,EAAE;IACP,IAAI,EAAE,EAAE;IACR,GAAG,EAAE,CAAC;GACP;;;;;","names":[],"sources":["./src/components/forms/cura-forms.definitions.tsx"],"sourcesContent":["export const formsSizes = {\n \"large\": {\n size: 32,\n gap: 16,\n },\n \"medium\": {\n size: 24,\n gap: 12,\n },\n \"small\": {\n size: 20,\n gap: 8,\n },\n};\n"],"version":3}
@@ -0,0 +1,18 @@
1
+ const microIcons = ['arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'check', 'checkDouble', 'close', 'closeCircle', 'collapse', 'down', 'expand', 'linkExternal', 'link', 'left', 'minus', 'minusCircle', 'minusSquare', 'order', 'subItem', 'right', 'plus', 'plusCircle', 'plusSquare', 'up', 'filter', 'swap'];
2
+ const iconSizes = {
3
+ "128": { size: 128, stroke: 5.25 },
4
+ "72": { size: 72, stroke: 3.5 },
5
+ "64": { size: 64, stroke: 3.25 },
6
+ "48": { size: 48, stroke: 2.75 },
7
+ "40": { size: 40, stroke: 2.5 },
8
+ "32": { size: 32, stroke: 2.25 },
9
+ "24": { size: 24, stroke: 2 },
10
+ "20": { size: 20, stroke: 1.75 },
11
+ "16": { size: 16, stroke: 1.5 },
12
+ "micro": { size: 12, stroke: 1.5 },
13
+ "default": { size: 24, stroke: 2 }
14
+ };
15
+
16
+ export { iconSizes as i, microIcons as m };
17
+
18
+ //# sourceMappingURL=cura-icon.definitions-a63d1862.js.map
@@ -0,0 +1 @@
1
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icon.definitions.tsx"],"sourcesContent":["export const microIcons = ['arrowDown','arrowLeft','arrowRight','arrowUp','check','checkDouble','close','closeCircle','collapse','down','expand','linkExternal','link','left','minus','minusCircle','minusSquare','order','subItem','right','plus','plusCircle','plusSquare','up','filter','swap'];\n\nexport const iconSizes = {\n \"128\": {size: 128, stroke: 5.25},\n \"72\": {size: 72, stroke: 3.5},\n \"64\": {size: 64, stroke: 3.25},\n \"48\": {size: 48, stroke: 2.75},\n \"40\": {size: 40, stroke: 2.5},\n \"32\": {size: 32, stroke: 2.25},\n \"24\": {size: 24, stroke: 2},\n \"20\": {size: 20, stroke: 1.75},\n \"16\": {size: 16, stroke: 1.5},\n \"micro\": {size: 12, stroke: 1.5 },\n \"default\": {size: 24, stroke: 2}\n};\n"],"version":3}
@@ -0,0 +1,32 @@
1
+ import { r as registerInstance, h, H as Host } from './index-81f1a268.js';
2
+ import { i as iconSizes, m as microIcons } from './cura-icon.definitions-a63d1862.js';
3
+
4
+ const iconsetdefaulticons = ["360", "accessibility", "addUser", "airdrop", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "currency", "delete", "desktop", "doc", "down", "download", "duplicate", "edit", "exam", "examDoc", "expand", "facebook", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "geotagUnity", "geotagUnityGroup", "google", "graph", "healthPlan", "heart", "height", "height2", "home", "horizontalList", "imageUp", "infoCircle", "instagram", "key", "lamp", "language", "language2", "languageEN", "languagePT", "lattes", "left", "like", "link", "linkExternal", "linkedin", "list", "login", "logout", "mail", "maintenance", "medDoc", "medEspec", "medImg", "medUser", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "news", "notification", "npsDeslike", "npsHate", "npsLike", "npsLove", "npsNeutral", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profileCircle", "questionCircle", "questionSquare", "range", "reload", "ribbon", "right", "schedule", "scheduleCheck", "scheduleHistorico", "search", "secure", "share", "siren", "sound", "soundOff", "subItem", "swap", "target", "team", "telegram", "twitter", "unLink", "unSecure", "unity", "unlike", "up", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "whatsapp", "wifi", "wifiOff", "youtube", "zoomIn", "zoomOut"];
5
+
6
+ const curaIconsViewCss = ":host{display:block;padding:24px;font-family:\"Roboto\", Arial, Helvetica, sans-serif}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;-ms-flex-align:center;align-items:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px;margin:8px 0}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#2d2d2d;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear;width:105px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px;-webkit-box-sizing:border-box;box-sizing:border-box;}.icons .icon cura-label{margin-top:8px}.icons .icon cura-paragraph{margin-top:4px}";
7
+
8
+ const CuraIconsView = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.sizes = Object.keys(iconSizes).filter(key => key !== 'default');
12
+ this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
13
+ this.setSelected = (icon) => {
14
+ this.selected = icon;
15
+ };
16
+ this.selected = iconsetdefaulticons[0];
17
+ }
18
+ connectedCallback() {
19
+ this.sizes.unshift(this.sizes.pop());
20
+ }
21
+ render() {
22
+ return (h(Host, null, h("div", { class: "iconDetail" }, h("cura-heading", { size: "small", "margin-block": "0 24px" }, "Icon: ", h("b", null, this.selected)), h("div", { class: "iconSizes" }, this.sizes.map(size => size === 'micro' && !microIcons.includes(this.selected) ? '' :
23
+ h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { class: "iconSizes invert" }, this.sizes.map(size => size === 'micro' && !microIcons.includes(this.selected) ? '' :
24
+ h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size))))), h("div", { class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon), !microIcons.includes(icon) ? '' :
25
+ h("cura-paragraph", { color: 'success-dark', size: "xsmall", "margin-block": "0px", "line-height": '100%' }, "MICRO"))))));
26
+ }
27
+ };
28
+ CuraIconsView.style = curaIconsViewCss;
29
+
30
+ export { CuraIconsView as cura_icons_view };
31
+
32
+ //# sourceMappingURL=cura-icons-view.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cura-icons-view.entry.js","mappings":";;;AAAA,4BAAe,CAAC,KAAK,EAAC,eAAe,EAAC,SAAS,EAAC,SAAS,EAAC,aAAa,EAAC,eAAe,EAAC,WAAW,EAAC,iBAAiB,EAAC,WAAW,EAAC,iBAAiB,EAAC,YAAY,EAAC,kBAAkB,EAAC,SAAS,EAAC,eAAe,EAAC,QAAQ,EAAC,SAAS,EAAC,SAAS,EAAC,UAAU,EA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IAAI,EAAC,QAAQ,kBACA,KAAK,iBACN,MAAM,YAAuB,CAEzC,CACP,CACG,CACD,EACP;GACH;;;;;;","names":[],"sources":["./src/assets/icons/iconset-default-list.ts","./src/components/cura-icons-view/cura-icons-view.scss?tag=cura-icons-view&encapsulation=shadow","./src/components/cura-icons-view/cura-icons-view.tsx"],"sourcesContent":["export default [\"360\",\"accessibility\",\"addUser\",\"airdrop\",\"alertCircle\",\"alertTriangle\",\"arrowDown\",\"arrowDownCircle\",\"arrowLeft\",\"arrowLeftCircle\",\"arrowRight\",\"arrowRightCircle\",\"arrowUp\",\"arrowUpCircle\",\"attach\",\"avatarF\",\"avatarM\",\"biometry\",\"bloodGroup\",\"calendar\",\"cam\",\"camOff\",\"central\",\"chatCircle\",\"check\",\"checkBadge\",\"checkCircle\",\"checkDouble\",\"clock\",\"close\",\"closeCircle\",\"collapse\",\"config\",\"currency\",\"delete\",\"desktop\",\"doc\",\"down\",\"download\",\"duplicate\",\"edit\",\"exam\",\"examDoc\",\"expand\",\"facebook\",\"fileBmp\",\"fileJpg\",\"filePdf\",\"filePng\",\"fileUpload\",\"fileXls\",\"filter\",\"fullscreen\",\"gallery\",\"geotag\",\"geotagUnity\",\"geotagUnityGroup\",\"google\",\"graph\",\"healthPlan\",\"heart\",\"height\",\"height2\",\"home\",\"horizontalList\",\"imageUp\",\"infoCircle\",\"instagram\",\"key\",\"lamp\",\"language\",\"language2\",\"languageEN\",\"languagePT\",\"lattes\",\"left\",\"like\",\"link\",\"linkExternal\",\"linkedin\",\"list\",\"login\",\"logout\",\"mail\",\"maintenance\",\"medDoc\",\"medEspec\",\"medImg\",\"medUser\",\"medical\",\"menuHamburguer\",\"menuKebab\",\"menuMeatballs\",\"mic\",\"micOff\",\"minus\",\"minusCircle\",\"minusSquare\",\"mobile\",\"news\",\"notification\",\"npsDeslike\",\"npsHate\",\"npsLike\",\"npsLove\",\"npsNeutral\",\"order\",\"partner\",\"phone\",\"play\",\"plus\",\"plusCircle\",\"plusSquare\",\"print\",\"profile\",\"profileCircle\",\"questionCircle\",\"questionSquare\",\"range\",\"reload\",\"ribbon\",\"right\",\"schedule\",\"scheduleCheck\",\"scheduleHistorico\",\"search\",\"secure\",\"share\",\"siren\",\"sound\",\"soundOff\",\"subItem\",\"swap\",\"target\",\"team\",\"telegram\",\"twitter\",\"unLink\",\"unSecure\",\"unity\",\"unlike\",\"up\",\"upload\",\"verticalList\",\"viewFalse\",\"viewTrue\",\"weight\",\"whatsapp\",\"wifi\",\"wifiOff\",\"youtube\",\"zoomIn\",\"zoomOut\"];",":host {\n display: block;\n padding: 24px;\n font-family: 'Roboto', Arial, Helvetica, sans-serif;\n}\n\n.iconDetail {\n display: block;\n}\n\n.iconSizes {\n display: flex;\n align-items: center;\n\n\n .size {\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n margin-right: 9px;\n padding: 8px;\n\n &:last-child { margin-right: 0; }\n span {\n font-size: 10px;\n margin: 8px 0;\n }\n }\n\n &.invert {\n margin-top: 12px;\n\n .size {\n background-color: #2d2d2d;\n color: #F6F6F6;\n border-radius: 3px;\n }\n }\n}\n\n.icons {\n margin-top: 28px;\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n .icon {\n position: relative;\n padding: 4px;\n cursor: pointer;\n opacity: .6;\n transition: opacity .2s linear;\n width: 105px;\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n margin-bottom: 16px;\n box-sizing: border-box;\n cura-label {\n margin-top: 8px;\n }\n cura-paragraph {\n margin-top: 4px;\n }\n /* &.selected {\n transform: scale(1.2);\n } */\n }\n}\n\n","import { Component, Host, h, State } from '@stencil/core';\nimport iconsetdefaulticons from '../../assets/icons/iconset-default-list';\nimport { microIcons, iconSizes } from '../cura-icon/cura-icon.definitions';\n\n@Component({\n tag: 'cura-icons-view',\n styleUrl: 'cura-icons-view.scss',\n shadow: true,\n})\nexport class CuraIconsView {\n\n sizes = Object.keys(iconSizes).filter(key => key !== 'default');\n colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];\n @State() selected = iconsetdefaulticons[0];\n\n connectedCallback() {\n this.sizes.unshift(this.sizes.pop());\n }\n\n setSelected = (icon) => {\n this.selected = icon;\n }\n\n render() {\n return (\n <Host>\n <div class=\"iconDetail\">\n <cura-heading size=\"small\" margin-block=\"0 24px\">Icon: <b>{ this.selected }</b></cura-heading>\n <div class=\"iconSizes\">\n { this.sizes.map( size =>\n size === 'micro' && !microIcons.includes(this.selected) ? '' :\n <div class=\"size\">\n <cura-icon name={this.selected} size={size}></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n <div class=\"iconSizes invert\">\n { this.sizes.map( size =>\n size === 'micro' && !microIcons.includes(this.selected) ? '' :\n <div class=\"size\">\n <cura-icon name={this.selected} size={size} color=\"neutral-white\"></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n </div>\n <div class=\"icons\">\n { iconsetdefaulticons.map(icon =>\n <div class={{icon: true, selected: icon === this.selected }} onClick={() => this.setSelected(icon)}>\n <cura-icon\n name={icon}\n size=\"32\"\n color={icon === this.selected ? 'accent-dark' : 'neutral-dark'}></cura-icon>\n <cura-label\n size=\"xsmall\"\n weight={icon === this.selected ? 'bold' : 'regular'}\n color={icon === this.selected ? 'accent-dark' : 'neutral-dark'}>{icon}</cura-label>\n { !microIcons.includes(icon) ? '' :\n <cura-paragraph\n color='success-dark'\n size=\"xsmall\"\n margin-block=\"0px\"\n line-height='100%'>MICRO</cura-paragraph>\n }\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n}\n"],"version":3}