@rededor/cura 1.4.0-alpha.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/cjs/cura-accordion_12.cjs.entry.js +12 -16
  2. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/cura-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/cura-badge-counter.cjs.entry.js +63 -0
  6. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -0
  7. package/dist/cjs/cura-badge-distance.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-badge-pill.cjs.entry.js +83 -0
  9. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
  11. package/dist/cjs/cura-button-select.cjs.entry.js +2 -11
  12. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  13. package/dist/cjs/cura-button-transparent.cjs.entry.js +1 -1
  14. package/dist/cjs/cura-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/cura-card.cjs.entry.js +1 -1
  16. package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  18. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +1 -1
  19. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +2 -2
  20. package/dist/cjs/cura-dropdown-search.cjs.entry.js +2 -2
  21. package/dist/cjs/{cura-icon.definitions-8d714f6a.js → cura-icon.definitions-5223028b.js} +2 -4
  22. package/dist/cjs/cura-icon.definitions-5223028b.js.map +1 -0
  23. package/dist/cjs/cura-icons-view.cjs.entry.js +2 -5
  24. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  25. package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
  26. package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/cura-modal.cjs.entry.js +28 -7
  28. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  29. package/dist/cjs/cura-radio.cjs.entry.js +1 -1
  30. package/dist/cjs/cura-switch.cjs.entry.js +1 -1
  31. package/dist/cjs/cura-toast.cjs.entry.js +1 -1
  32. package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
  33. package/dist/cjs/cura.cjs.js +1 -1
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/collection/collection-manifest.json +2 -1
  36. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +51 -0
  37. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +149 -0
  38. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -0
  39. package/dist/collection/components/badges/{cura-badge-number/cura-badge-number.stories.js → cura-badge-counter/cura-badge-counter.stories.js} +33 -13
  40. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +1 -0
  41. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +1 -1
  42. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +73 -0
  43. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +219 -0
  44. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -0
  45. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +126 -0
  46. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +1 -0
  47. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  48. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  49. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +5 -14
  50. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  51. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  52. package/dist/collection/components/cura-alert/cura-alert.js +1 -1
  53. package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
  54. package/dist/collection/components/cura-calendar/cura-calendar.js +1 -1
  55. package/dist/collection/components/cura-card/cura-card.js +1 -1
  56. package/dist/collection/components/cura-icon/cura-icon.definitions.js +1 -2
  57. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -1
  58. package/dist/collection/components/cura-icon/cura-icon.js +2 -6
  59. package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
  60. package/dist/collection/components/cura-icon/cura-icon.stories.js +1 -3
  61. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  62. package/dist/collection/components/cura-icons-view/cura-icons-view.js +2 -5
  63. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
  64. package/dist/collection/components/cura-modal/cura-modal.css +4 -2
  65. package/dist/collection/components/cura-modal/cura-modal.js +91 -10
  66. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  67. package/dist/collection/components/cura-modal/cura-modal.stories.js +54 -18
  68. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +1 -1
  69. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  70. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  71. package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
  72. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
  73. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
  74. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
  75. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +2 -2
  76. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
  77. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  78. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  79. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  80. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  81. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  82. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  83. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  84. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  85. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  86. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  87. package/dist/collection/utils/utils.js +1 -0
  88. package/dist/collection/utils/utils.js.map +1 -1
  89. package/dist/components/cura-alert.js +1 -1
  90. package/dist/components/cura-avatar.js +1 -1
  91. package/dist/components/cura-badge-counter.d.ts +11 -0
  92. package/dist/components/cura-badge-counter.js +8 -0
  93. package/dist/components/cura-badge-counter.js.map +1 -0
  94. package/dist/components/cura-badge-counter2.js +90 -0
  95. package/dist/components/cura-badge-counter2.js.map +1 -0
  96. package/dist/components/cura-badge-distance.js +1 -1
  97. package/dist/components/{cura-badge-number.d.ts → cura-badge-pill.d.ts} +4 -4
  98. package/dist/components/cura-badge-pill.js +120 -0
  99. package/dist/components/cura-badge-pill.js.map +1 -0
  100. package/dist/components/cura-button-outline.js +1 -1
  101. package/dist/components/cura-button-select.js +6 -15
  102. package/dist/components/cura-button-select.js.map +1 -1
  103. package/dist/components/cura-button-transparent2.js +1 -1
  104. package/dist/components/cura-button.js +1 -1
  105. package/dist/components/cura-calendar2.js +1 -1
  106. package/dist/components/cura-card.js +1 -1
  107. package/dist/components/cura-checkbox.js +1 -1
  108. package/dist/components/cura-display.js +1 -1
  109. package/dist/components/cura-dropdown-search-option-title.js +1 -1
  110. package/dist/components/cura-dropdown-search-option.js +2 -2
  111. package/dist/components/cura-dropdown-search.js +2 -2
  112. package/dist/components/cura-heading2.js +1 -1
  113. package/dist/components/cura-icon2.js +3 -8
  114. package/dist/components/cura-icon2.js.map +1 -1
  115. package/dist/components/cura-icons-view.js +7 -16
  116. package/dist/components/cura-icons-view.js.map +1 -1
  117. package/dist/components/cura-input-date.js +1 -1
  118. package/dist/components/cura-label2.js +1 -1
  119. package/dist/components/cura-loader-bar2.js +1 -1
  120. package/dist/components/cura-loader-circle2.js +1 -1
  121. package/dist/components/cura-modal.js +36 -9
  122. package/dist/components/cura-modal.js.map +1 -1
  123. package/dist/components/cura-page-template.js +1 -1
  124. package/dist/components/cura-paragraph2.js +1 -1
  125. package/dist/components/cura-radio.js +1 -1
  126. package/dist/components/cura-select-option2.js +1 -1
  127. package/dist/components/cura-select2.js +3 -3
  128. package/dist/components/cura-switch.js +1 -1
  129. package/dist/components/cura-toast.js +1 -1
  130. package/dist/components/cura-tooltip.js +1 -1
  131. package/dist/components/index.js +4 -2
  132. package/dist/components/index.js.map +1 -1
  133. package/dist/cura/cura.esm.js +1 -1
  134. package/dist/cura/cura.esm.js.map +1 -1
  135. package/dist/cura/{p-01e301d4.entry.js → p-116a1cd6.entry.js} +2 -2
  136. package/dist/cura/{p-5bb8302c.entry.js → p-19f28fa8.entry.js} +2 -2
  137. package/dist/cura/p-19f28fa8.entry.js.map +1 -0
  138. package/dist/cura/{p-eda28278.entry.js → p-2545cfc7.entry.js} +2 -2
  139. package/dist/cura/{p-deadde8d.entry.js → p-35920ac0.entry.js} +2 -2
  140. package/dist/cura/{p-eea093b2.entry.js → p-36dbec98.entry.js} +2 -2
  141. package/dist/cura/{p-ed839f1e.entry.js → p-3d958d45.entry.js} +2 -2
  142. package/dist/cura/{p-3536c96b.entry.js → p-3e4ca7e7.entry.js} +2 -2
  143. package/dist/cura/{p-e5b0dd74.entry.js → p-3eca0f0c.entry.js} +2 -2
  144. package/dist/cura/{p-1f53580a.entry.js → p-42258230.entry.js} +2 -2
  145. package/dist/cura/p-48f9289b.js +2 -0
  146. package/dist/cura/p-48f9289b.js.map +1 -0
  147. package/dist/cura/{p-dbd9eab3.entry.js → p-4b496c51.entry.js} +2 -2
  148. package/dist/cura/p-52f854e0.entry.js +2 -0
  149. package/dist/cura/p-52f854e0.entry.js.map +1 -0
  150. package/dist/cura/{p-81c66f2b.entry.js → p-576c65b4.entry.js} +2 -2
  151. package/dist/cura/{p-bfb5e9e1.entry.js → p-6e4f4fbf.entry.js} +2 -2
  152. package/dist/cura/{p-0e28f1c8.entry.js → p-818c581f.entry.js} +2 -2
  153. package/dist/cura/{p-b0451cb3.entry.js → p-a91d451f.entry.js} +2 -2
  154. package/dist/cura/p-aa65cb50.entry.js +2 -0
  155. package/dist/cura/p-aa65cb50.entry.js.map +1 -0
  156. package/dist/cura/{p-075b02de.entry.js → p-b1a51e81.entry.js} +2 -2
  157. package/dist/cura/{p-f375a612.entry.js → p-bdb1a0c5.entry.js} +2 -2
  158. package/dist/cura/p-c4da4c44.entry.js +2 -0
  159. package/dist/cura/p-c4da4c44.entry.js.map +1 -0
  160. package/dist/cura/{p-a7ecea4a.entry.js → p-dcd2e5bb.entry.js} +2 -2
  161. package/dist/cura/{p-7853ab16.entry.js → p-e1a41792.entry.js} +2 -2
  162. package/dist/cura/p-ef593f12.entry.js +2 -0
  163. package/dist/cura/p-ef593f12.entry.js.map +1 -0
  164. package/dist/cura/p-f23c4ed8.entry.js +2 -0
  165. package/dist/cura/p-f23c4ed8.entry.js.map +1 -0
  166. package/dist/cura/p-f5d45776.entry.js +2 -0
  167. package/dist/esm/cura-accordion_12.entry.js +12 -16
  168. package/dist/esm/cura-accordion_12.entry.js.map +1 -1
  169. package/dist/esm/cura-alert.entry.js +1 -1
  170. package/dist/esm/cura-avatar.entry.js +1 -1
  171. package/dist/esm/cura-badge-counter.entry.js +59 -0
  172. package/dist/esm/cura-badge-counter.entry.js.map +1 -0
  173. package/dist/esm/cura-badge-distance.entry.js +1 -1
  174. package/dist/esm/cura-badge-pill.entry.js +79 -0
  175. package/dist/esm/cura-badge-pill.entry.js.map +1 -0
  176. package/dist/esm/cura-button-outline.entry.js +1 -1
  177. package/dist/esm/cura-button-select.entry.js +2 -11
  178. package/dist/esm/cura-button-select.entry.js.map +1 -1
  179. package/dist/esm/cura-button-transparent.entry.js +1 -1
  180. package/dist/esm/cura-calendar.entry.js +1 -1
  181. package/dist/esm/cura-card.entry.js +1 -1
  182. package/dist/esm/cura-checkbox.entry.js +1 -1
  183. package/dist/esm/cura-display.entry.js +1 -1
  184. package/dist/esm/cura-dropdown-search-option-title.entry.js +1 -1
  185. package/dist/esm/cura-dropdown-search-option.entry.js +2 -2
  186. package/dist/esm/cura-dropdown-search.entry.js +2 -2
  187. package/dist/esm/cura-icon.definitions-a892c0e2.js +17 -0
  188. package/dist/esm/cura-icon.definitions-a892c0e2.js.map +1 -0
  189. package/dist/esm/cura-icons-view.entry.js +2 -5
  190. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  191. package/dist/esm/cura-input-date.entry.js +1 -1
  192. package/dist/esm/cura-loader-bar.entry.js +1 -1
  193. package/dist/esm/cura-modal.entry.js +28 -7
  194. package/dist/esm/cura-modal.entry.js.map +1 -1
  195. package/dist/esm/cura-radio.entry.js +1 -1
  196. package/dist/esm/cura-switch.entry.js +1 -1
  197. package/dist/esm/cura-toast.entry.js +1 -1
  198. package/dist/esm/cura-tooltip.entry.js +1 -1
  199. package/dist/esm/cura.js +1 -1
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +30 -0
  202. package/dist/types/components/badges/{cura-badge-number/cura-badge-number.stories.d.ts → cura-badge-counter/cura-badge-counter.stories.d.ts} +26 -1
  203. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +44 -0
  204. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +119 -0
  205. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +1 -2
  206. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -1
  207. package/dist/types/components/cura-modal/cura-modal.d.ts +22 -3
  208. package/dist/types/components/cura-modal/cura-modal.stories.d.ts +42 -3
  209. package/dist/types/components.d.ts +140 -19
  210. package/dist/types/utils/utils.d.ts +1 -0
  211. package/package.json +2 -2
  212. package/dist/cjs/cura-badge-number.cjs.entry.js +0 -29
  213. package/dist/cjs/cura-badge-number.cjs.entry.js.map +0 -1
  214. package/dist/cjs/cura-icon.definitions-8d714f6a.js.map +0 -1
  215. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.css +0 -28
  216. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js +0 -66
  217. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js.map +0 -1
  218. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js.map +0 -1
  219. package/dist/components/cura-badge-number.js +0 -8
  220. package/dist/components/cura-badge-number.js.map +0 -1
  221. package/dist/components/cura-badge-number2.js +0 -49
  222. package/dist/components/cura-badge-number2.js.map +0 -1
  223. package/dist/cura/p-0308cf6b.entry.js +0 -2
  224. package/dist/cura/p-0308cf6b.entry.js.map +0 -1
  225. package/dist/cura/p-5bb8302c.entry.js.map +0 -1
  226. package/dist/cura/p-71a2dcef.entry.js +0 -2
  227. package/dist/cura/p-71a2dcef.entry.js.map +0 -1
  228. package/dist/cura/p-9a7e3f48.entry.js +0 -2
  229. package/dist/cura/p-9a7e3f48.entry.js.map +0 -1
  230. package/dist/cura/p-a7221f0c.js +0 -2
  231. package/dist/cura/p-a7221f0c.js.map +0 -1
  232. package/dist/cura/p-d635501a.entry.js +0 -2
  233. package/dist/cura/p-d635501a.entry.js.map +0 -1
  234. package/dist/cura/p-ebed83d1.entry.js +0 -2
  235. package/dist/esm/cura-badge-number.entry.js +0 -25
  236. package/dist/esm/cura-badge-number.entry.js.map +0 -1
  237. package/dist/esm/cura-icon.definitions-aaa4e80f.js +0 -18
  238. package/dist/esm/cura-icon.definitions-aaa4e80f.js.map +0 -1
  239. package/dist/types/components/badges/cura-badge-number/cura-badge-number.d.ts +0 -8
  240. /package/dist/cura/{p-01e301d4.entry.js.map → p-116a1cd6.entry.js.map} +0 -0
  241. /package/dist/cura/{p-eda28278.entry.js.map → p-2545cfc7.entry.js.map} +0 -0
  242. /package/dist/cura/{p-deadde8d.entry.js.map → p-35920ac0.entry.js.map} +0 -0
  243. /package/dist/cura/{p-eea093b2.entry.js.map → p-36dbec98.entry.js.map} +0 -0
  244. /package/dist/cura/{p-ed839f1e.entry.js.map → p-3d958d45.entry.js.map} +0 -0
  245. /package/dist/cura/{p-3536c96b.entry.js.map → p-3e4ca7e7.entry.js.map} +0 -0
  246. /package/dist/cura/{p-e5b0dd74.entry.js.map → p-3eca0f0c.entry.js.map} +0 -0
  247. /package/dist/cura/{p-1f53580a.entry.js.map → p-42258230.entry.js.map} +0 -0
  248. /package/dist/cura/{p-dbd9eab3.entry.js.map → p-4b496c51.entry.js.map} +0 -0
  249. /package/dist/cura/{p-81c66f2b.entry.js.map → p-576c65b4.entry.js.map} +0 -0
  250. /package/dist/cura/{p-bfb5e9e1.entry.js.map → p-6e4f4fbf.entry.js.map} +0 -0
  251. /package/dist/cura/{p-0e28f1c8.entry.js.map → p-818c581f.entry.js.map} +0 -0
  252. /package/dist/cura/{p-b0451cb3.entry.js.map → p-a91d451f.entry.js.map} +0 -0
  253. /package/dist/cura/{p-075b02de.entry.js.map → p-b1a51e81.entry.js.map} +0 -0
  254. /package/dist/cura/{p-f375a612.entry.js.map → p-bdb1a0c5.entry.js.map} +0 -0
  255. /package/dist/cura/{p-a7ecea4a.entry.js.map → p-dcd2e5bb.entry.js.map} +0 -0
  256. /package/dist/cura/{p-7853ab16.entry.js.map → p-e1a41792.entry.js.map} +0 -0
  257. /package/dist/cura/{p-ebed83d1.entry.js.map → p-f5d45776.entry.js.map} +0 -0
@@ -11,17 +11,36 @@ export declare class CuraModal {
11
11
  */
12
12
  background?: 'dark' | 'light';
13
13
  /**
14
- * Property offsetTop to control modal top position.
14
+ * Property top to control modal top position.
15
15
  * Default: 0px
16
16
  */
17
- topOffset?: number;
17
+ top?: number;
18
+ /**
19
+ * Property bottom to control modal bottom position.
20
+ * Default: 0px
21
+ */
22
+ bottom?: number;
23
+ /**
24
+ * Property left to control modal left position.
25
+ * Default: 0px
26
+ */
27
+ left?: number;
28
+ /**
29
+ * Property right to control modal right position.
30
+ * Default: 0px
31
+ */
32
+ right?: number;
18
33
  /**
19
34
  * Event close to handle modal close.
20
35
  */
21
36
  modalClose: EventEmitter<void>;
22
37
  styles: {};
23
38
  setColors(): void;
24
- setOffsetTop(): void;
39
+ setOffset(name: string, value: number): void;
40
+ setTop(): void;
41
+ setBottom(): void;
42
+ setLeft(): void;
43
+ setRight(): void;
25
44
  connectedCallback(): void;
26
45
  private handleClose;
27
46
  render(): any;
@@ -28,7 +28,16 @@ declare const _default: {
28
28
  };
29
29
  };
30
30
  };
31
- topOffset: {
31
+ content: {
32
+ control: {
33
+ type: string;
34
+ };
35
+ description: string;
36
+ table: {
37
+ category: string;
38
+ };
39
+ };
40
+ top: {
32
41
  control: {
33
42
  type: string;
34
43
  };
@@ -40,13 +49,40 @@ declare const _default: {
40
49
  };
41
50
  };
42
51
  };
43
- content: {
52
+ bottom: {
44
53
  control: {
45
54
  type: string;
46
55
  };
47
56
  description: string;
48
57
  table: {
49
58
  category: string;
59
+ defaultValue: {
60
+ summary: string;
61
+ };
62
+ };
63
+ };
64
+ left: {
65
+ control: {
66
+ type: string;
67
+ };
68
+ description: string;
69
+ table: {
70
+ category: string;
71
+ defaultValue: {
72
+ summary: string;
73
+ };
74
+ };
75
+ };
76
+ right: {
77
+ control: {
78
+ type: string;
79
+ };
80
+ description: string;
81
+ table: {
82
+ category: string;
83
+ defaultValue: {
84
+ summary: string;
85
+ };
50
86
  };
51
87
  };
52
88
  close: {
@@ -65,6 +101,9 @@ export declare const CuraModal: {
65
101
  background: string;
66
102
  open: boolean;
67
103
  content: string;
68
- topOffset: number;
104
+ top: number;
105
+ bottom: number;
106
+ left: number;
107
+ right: number;
69
108
  };
70
109
  };
@@ -81,13 +81,57 @@ export namespace Components {
81
81
  "size": '80' | '40' | '32' | '24';
82
82
  "type": 'default' | 'branding';
83
83
  }
84
+ interface CuraBadgeCounter {
85
+ /**
86
+ * Cor fundamental do design system sem profundidade. Ex.: primary (padrão)
87
+ */
88
+ "color": string;
89
+ /**
90
+ * Define o estado do badge como desabilitado ou habilitado.
91
+ */
92
+ "disabled": boolean;
93
+ /**
94
+ * Número a ser representado no badge. Apresentará 99+ para números acima desse valor.
95
+ */
96
+ "number": number | null;
97
+ /**
98
+ * Define o estilo visual entre solid (default), outline ou transparent.
99
+ */
100
+ "type": 'solid' | 'outline' | 'transparent' | string;
101
+ }
84
102
  interface CuraBadgeDistance {
85
103
  "distance": number;
86
104
  "label": string;
87
105
  }
88
- interface CuraBadgeNumber {
89
- "color": string;
90
- "number": number | null;
106
+ interface CuraBadgePill {
107
+ /**
108
+ * Set border-radius.
109
+ */
110
+ "borderRadius": string;
111
+ /**
112
+ * Color base from color scheme. Default: primary
113
+ */
114
+ "color": 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
115
+ /**
116
+ * Disabled state. Boolean
117
+ */
118
+ "disabled": boolean;
119
+ /**
120
+ * Name of the icon to be used from iconset
121
+ */
122
+ "iconName": string;
123
+ /**
124
+ * Set badge to icon only. Boolean
125
+ */
126
+ "iconOnly": boolean;
127
+ /**
128
+ * Custom iconset if needed
129
+ */
130
+ "iconset": string;
131
+ /**
132
+ * Badge type: solid | outline | transparent
133
+ */
134
+ "type": 'solid' | 'outline' | 'transparent';
91
135
  }
92
136
  interface CuraButton {
93
137
  /**
@@ -216,7 +260,7 @@ export namespace Components {
216
260
  interface CuraButtonSelect {
217
261
  "background": 'dark' | 'light';
218
262
  "color": string;
219
- "counter": string | number | null;
263
+ "counter": number | null;
220
264
  "disabled": boolean;
221
265
  "iconName": string;
222
266
  "iconPosition": 'left' | 'right';
@@ -775,14 +819,26 @@ export namespace Components {
775
819
  * Property background to control modal backdrop color. Default: light
776
820
  */
777
821
  "background"?: 'dark' | 'light';
822
+ /**
823
+ * Property bottom to control modal bottom position. Default: 0px
824
+ */
825
+ "bottom"?: number;
826
+ /**
827
+ * Property left to control modal left position. Default: 0px
828
+ */
829
+ "left"?: number;
778
830
  /**
779
831
  * Property open to control modal visibility. Default: false
780
832
  */
781
833
  "open"?: boolean;
782
834
  /**
783
- * Property offsetTop to control modal top position. Default: 0px
835
+ * Property right to control modal right position. Default: 0px
784
836
  */
785
- "topOffset"?: number;
837
+ "right"?: number;
838
+ /**
839
+ * Property top to control modal top position. Default: 0px
840
+ */
841
+ "top"?: number;
786
842
  }
787
843
  interface CuraPageTemplate {
788
844
  "contentwidth": 'default' | 'centered';
@@ -1048,17 +1104,23 @@ declare global {
1048
1104
  prototype: HTMLCuraAvatarElement;
1049
1105
  new (): HTMLCuraAvatarElement;
1050
1106
  };
1107
+ interface HTMLCuraBadgeCounterElement extends Components.CuraBadgeCounter, HTMLStencilElement {
1108
+ }
1109
+ var HTMLCuraBadgeCounterElement: {
1110
+ prototype: HTMLCuraBadgeCounterElement;
1111
+ new (): HTMLCuraBadgeCounterElement;
1112
+ };
1051
1113
  interface HTMLCuraBadgeDistanceElement extends Components.CuraBadgeDistance, HTMLStencilElement {
1052
1114
  }
1053
1115
  var HTMLCuraBadgeDistanceElement: {
1054
1116
  prototype: HTMLCuraBadgeDistanceElement;
1055
1117
  new (): HTMLCuraBadgeDistanceElement;
1056
1118
  };
1057
- interface HTMLCuraBadgeNumberElement extends Components.CuraBadgeNumber, HTMLStencilElement {
1119
+ interface HTMLCuraBadgePillElement extends Components.CuraBadgePill, HTMLStencilElement {
1058
1120
  }
1059
- var HTMLCuraBadgeNumberElement: {
1060
- prototype: HTMLCuraBadgeNumberElement;
1061
- new (): HTMLCuraBadgeNumberElement;
1121
+ var HTMLCuraBadgePillElement: {
1122
+ prototype: HTMLCuraBadgePillElement;
1123
+ new (): HTMLCuraBadgePillElement;
1062
1124
  };
1063
1125
  interface HTMLCuraButtonElement extends Components.CuraButton, HTMLStencilElement {
1064
1126
  }
@@ -1378,8 +1440,9 @@ declare global {
1378
1440
  "cura-accordion-item": HTMLCuraAccordionItemElement;
1379
1441
  "cura-alert": HTMLCuraAlertElement;
1380
1442
  "cura-avatar": HTMLCuraAvatarElement;
1443
+ "cura-badge-counter": HTMLCuraBadgeCounterElement;
1381
1444
  "cura-badge-distance": HTMLCuraBadgeDistanceElement;
1382
- "cura-badge-number": HTMLCuraBadgeNumberElement;
1445
+ "cura-badge-pill": HTMLCuraBadgePillElement;
1383
1446
  "cura-button": HTMLCuraButtonElement;
1384
1447
  "cura-button-outline": HTMLCuraButtonOutlineElement;
1385
1448
  "cura-button-select": HTMLCuraButtonSelectElement;
@@ -1485,13 +1548,57 @@ declare namespace LocalJSX {
1485
1548
  "size"?: '80' | '40' | '32' | '24';
1486
1549
  "type"?: 'default' | 'branding';
1487
1550
  }
1551
+ interface CuraBadgeCounter {
1552
+ /**
1553
+ * Cor fundamental do design system sem profundidade. Ex.: primary (padrão)
1554
+ */
1555
+ "color"?: string;
1556
+ /**
1557
+ * Define o estado do badge como desabilitado ou habilitado.
1558
+ */
1559
+ "disabled"?: boolean;
1560
+ /**
1561
+ * Número a ser representado no badge. Apresentará 99+ para números acima desse valor.
1562
+ */
1563
+ "number"?: number | null;
1564
+ /**
1565
+ * Define o estilo visual entre solid (default), outline ou transparent.
1566
+ */
1567
+ "type"?: 'solid' | 'outline' | 'transparent' | string;
1568
+ }
1488
1569
  interface CuraBadgeDistance {
1489
1570
  "distance"?: number;
1490
1571
  "label"?: string;
1491
1572
  }
1492
- interface CuraBadgeNumber {
1493
- "color"?: string;
1494
- "number"?: number | null;
1573
+ interface CuraBadgePill {
1574
+ /**
1575
+ * Set border-radius.
1576
+ */
1577
+ "borderRadius"?: string;
1578
+ /**
1579
+ * Color base from color scheme. Default: primary
1580
+ */
1581
+ "color"?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
1582
+ /**
1583
+ * Disabled state. Boolean
1584
+ */
1585
+ "disabled"?: boolean;
1586
+ /**
1587
+ * Name of the icon to be used from iconset
1588
+ */
1589
+ "iconName"?: string;
1590
+ /**
1591
+ * Set badge to icon only. Boolean
1592
+ */
1593
+ "iconOnly"?: boolean;
1594
+ /**
1595
+ * Custom iconset if needed
1596
+ */
1597
+ "iconset"?: string;
1598
+ /**
1599
+ * Badge type: solid | outline | transparent
1600
+ */
1601
+ "type"?: 'solid' | 'outline' | 'transparent';
1495
1602
  }
1496
1603
  interface CuraButton {
1497
1604
  /**
@@ -1620,7 +1727,7 @@ declare namespace LocalJSX {
1620
1727
  interface CuraButtonSelect {
1621
1728
  "background"?: 'dark' | 'light';
1622
1729
  "color"?: string;
1623
- "counter"?: string | number | null;
1730
+ "counter"?: number | null;
1624
1731
  "disabled"?: boolean;
1625
1732
  "iconName"?: string;
1626
1733
  "iconPosition"?: 'left' | 'right';
@@ -2211,6 +2318,14 @@ declare namespace LocalJSX {
2211
2318
  * Property background to control modal backdrop color. Default: light
2212
2319
  */
2213
2320
  "background"?: 'dark' | 'light';
2321
+ /**
2322
+ * Property bottom to control modal bottom position. Default: 0px
2323
+ */
2324
+ "bottom"?: number;
2325
+ /**
2326
+ * Property left to control modal left position. Default: 0px
2327
+ */
2328
+ "left"?: number;
2214
2329
  /**
2215
2330
  * Event close to handle modal close.
2216
2331
  */
@@ -2220,9 +2335,13 @@ declare namespace LocalJSX {
2220
2335
  */
2221
2336
  "open"?: boolean;
2222
2337
  /**
2223
- * Property offsetTop to control modal top position. Default: 0px
2338
+ * Property right to control modal right position. Default: 0px
2339
+ */
2340
+ "right"?: number;
2341
+ /**
2342
+ * Property top to control modal top position. Default: 0px
2224
2343
  */
2225
- "topOffset"?: number;
2344
+ "top"?: number;
2226
2345
  }
2227
2346
  interface CuraPageTemplate {
2228
2347
  "contentwidth"?: 'default' | 'centered';
@@ -2408,8 +2527,9 @@ declare namespace LocalJSX {
2408
2527
  "cura-accordion-item": CuraAccordionItem;
2409
2528
  "cura-alert": CuraAlert;
2410
2529
  "cura-avatar": CuraAvatar;
2530
+ "cura-badge-counter": CuraBadgeCounter;
2411
2531
  "cura-badge-distance": CuraBadgeDistance;
2412
- "cura-badge-number": CuraBadgeNumber;
2532
+ "cura-badge-pill": CuraBadgePill;
2413
2533
  "cura-button": CuraButton;
2414
2534
  "cura-button-outline": CuraButtonOutline;
2415
2535
  "cura-button-select": CuraButtonSelect;
@@ -2448,8 +2568,9 @@ declare module "@stencil/core" {
2448
2568
  "cura-accordion-item": LocalJSX.CuraAccordionItem & JSXBase.HTMLAttributes<HTMLCuraAccordionItemElement>;
2449
2569
  "cura-alert": LocalJSX.CuraAlert & JSXBase.HTMLAttributes<HTMLCuraAlertElement>;
2450
2570
  "cura-avatar": LocalJSX.CuraAvatar & JSXBase.HTMLAttributes<HTMLCuraAvatarElement>;
2571
+ "cura-badge-counter": LocalJSX.CuraBadgeCounter & JSXBase.HTMLAttributes<HTMLCuraBadgeCounterElement>;
2451
2572
  "cura-badge-distance": LocalJSX.CuraBadgeDistance & JSXBase.HTMLAttributes<HTMLCuraBadgeDistanceElement>;
2452
- "cura-badge-number": LocalJSX.CuraBadgeNumber & JSXBase.HTMLAttributes<HTMLCuraBadgeNumberElement>;
2573
+ "cura-badge-pill": LocalJSX.CuraBadgePill & JSXBase.HTMLAttributes<HTMLCuraBadgePillElement>;
2453
2574
  "cura-button": LocalJSX.CuraButton & JSXBase.HTMLAttributes<HTMLCuraButtonElement>;
2454
2575
  "cura-button-outline": LocalJSX.CuraButtonOutline & JSXBase.HTMLAttributes<HTMLCuraButtonOutlineElement>;
2455
2576
  "cura-button-select": LocalJSX.CuraButtonSelect & JSXBase.HTMLAttributes<HTMLCuraButtonSelectElement>;
@@ -1,2 +1,3 @@
1
1
  export declare function format(first: string, middle: string, last: string): string;
2
+ export declare const baseColors: string[];
2
3
  export declare function getColorsWithDepths(): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/cura",
3
- "version": "1.4.0-alpha.1",
3
+ "version": "1.4.0",
4
4
  "description": "Cura Design System",
5
5
  "author": "Rede D`Or São Luiz",
6
6
  "license": "MIT",
@@ -51,5 +51,5 @@
51
51
  "storybook": "^7.6.7",
52
52
  "svgo": "^3.3.2"
53
53
  },
54
- "gitHead": "fd97e88ef29529950852e1cfb902205e337b4514"
54
+ "gitHead": "bc7b0f67752ee42409f56fb59e4d035b8ca2ec3e"
55
55
  }
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e6d728ec.js');
6
-
7
- const curaBadgeNumberCss = ":host .container{display:flex;width:20px;height:20px;min-width:16px;justify-content:center;align-items:center;border-radius:500px;background:var(--background-color)}";
8
- const CuraBadgeNumberStyle0 = curaBadgeNumberCss;
9
-
10
- const CuraBadgeNumber = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.styles = {};
14
- this.theme = window.CuraAPI.theme;
15
- this.number = undefined;
16
- this.color = undefined;
17
- }
18
- connectedCallback() {
19
- this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': this.theme.colors.getColor(this.color) });
20
- }
21
- render() {
22
- return (index.h(index.Host, { key: 'a20934b4bec43ab7024e1bc4ad7537ff0d54b937' }, index.h("div", { key: 'a3fc8332932a117db4be61092050c3df3e4142bc', class: "container", style: this.styles }, index.h("cura-label", { key: 'ff53c0645348be0d392728778e3486c353243af5' }, index.h("slot", { key: 'f0774cc8f8ad07287b68bb3c59bf22cd4fc69755' }, this.number)))));
23
- }
24
- };
25
- CuraBadgeNumber.style = CuraBadgeNumberStyle0;
26
-
27
- exports.cura_badge_number = CuraBadgeNumber;
28
-
29
- //# sourceMappingURL=cura-badge-number.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"cura-badge-number.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,uKAAuK,CAAC;AACnM,8BAAe,kBAAkB;;MCMpB,eAAe;;;QAI1B,WAAM,GAAG,EAAE,CAAC;QAEZ,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;;;;IAE7B,iBAAiB;QACf,IAAI,CAAC,MAAM,mCACN,IAAI,CAAC,MAAM,KACd,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAC7D,CAAA;KACF;IAGD,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,kEAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IACvCA,2EACEA,qEAAO,IAAI,CAAC,MAAM,CAAQ,CACf,CACT,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/badges/cura-badge-number/cura-badge-number.scss?tag=cura-badge-number&encapsulation=shadow","src/components/badges/cura-badge-number/cura-badge-number.tsx"],"sourcesContent":["@import '../../../scss/mixins/spacing.scss';\n\n:host {\n .container {\n display: flex;\n width: 20px;\n height: 20px;\n min-width: 16px;\n justify-content: center;\n align-items: center;\n border-radius: 500px;\n background: var(--background-color);\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-number',\n styleUrl: 'cura-badge-number.scss',\n shadow: true,\n})\nexport class CuraBadgeNumber {\n\n @Prop({ reflect: true }) number: number | null\n @Prop({ reflect: true }) color: string\n styles = {};\n\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--background-color': this.theme.colors.getColor(this.color),\n }\n }\n\n\n render() {\n return (\n <Host>\n <div class=\"container\" style={this.styles}>\n <cura-label>\n <slot>{this.number}</slot>\n </cura-label>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"cura-icon.definitions-8d714f6a.js","mappings":";;MAAa,UAAU,GAAG,CAAC,WAAW,EAAC,WAAW,EAAC,YAAY,EAAC,SAAS,EAAC,OAAO,EAAC,aAAa,EAAC,OAAO,EAAC,aAAa,EAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,aAAa,EAAC,aAAa,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,YAAY,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAE;MAEtR,SAAS,GAAG;IACvB,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAC;IAChC,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;IAC3B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC;IAC9B,IAAI,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAC;IAC7B,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACjC,SAAS,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAC;;;;;;","names":[],"sources":["src/components/cura-icon/cura-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}
@@ -1,28 +0,0 @@
1
- /**
2
- * Global Spacing Definitions.
3
- * Required CSS Properties:
4
- * --base-spacing
5
- */
6
- /* None: 0px */
7
- /* Tiny default: 4px */
8
- /* Mini default: 8px */
9
- /* XXXS default: 12px */
10
- /* XXS default: 16px */
11
- /* XS default: 20px */
12
- /* S default: 20px */
13
- /* M default: 32px */
14
- /* L default: 40px */
15
- /* XL default: 48px */
16
- /* XXL default: 64px */
17
- /* XXXL default: 72px */
18
- /* Huge default: 96px */
19
- :host .container {
20
- display: flex;
21
- width: 20px;
22
- height: 20px;
23
- min-width: 16px;
24
- justify-content: center;
25
- align-items: center;
26
- border-radius: 500px;
27
- background: var(--background-color);
28
- }
@@ -1,66 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class CuraBadgeNumber {
3
- constructor() {
4
- this.styles = {};
5
- this.theme = window.CuraAPI.theme;
6
- this.number = undefined;
7
- this.color = undefined;
8
- }
9
- connectedCallback() {
10
- this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': this.theme.colors.getColor(this.color) });
11
- }
12
- render() {
13
- return (h(Host, { key: 'a20934b4bec43ab7024e1bc4ad7537ff0d54b937' }, h("div", { key: 'a3fc8332932a117db4be61092050c3df3e4142bc', class: "container", style: this.styles }, h("cura-label", { key: 'ff53c0645348be0d392728778e3486c353243af5' }, h("slot", { key: 'f0774cc8f8ad07287b68bb3c59bf22cd4fc69755' }, this.number)))));
14
- }
15
- static get is() { return "cura-badge-number"; }
16
- static get encapsulation() { return "shadow"; }
17
- static get originalStyleUrls() {
18
- return {
19
- "$": ["cura-badge-number.scss"]
20
- };
21
- }
22
- static get styleUrls() {
23
- return {
24
- "$": ["cura-badge-number.css"]
25
- };
26
- }
27
- static get properties() {
28
- return {
29
- "number": {
30
- "type": "number",
31
- "mutable": false,
32
- "complexType": {
33
- "original": "number | null",
34
- "resolved": "number",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": ""
42
- },
43
- "attribute": "number",
44
- "reflect": true
45
- },
46
- "color": {
47
- "type": "string",
48
- "mutable": false,
49
- "complexType": {
50
- "original": "string",
51
- "resolved": "string",
52
- "references": {}
53
- },
54
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "text": ""
59
- },
60
- "attribute": "color",
61
- "reflect": true
62
- }
63
- };
64
- }
65
- }
66
- //# sourceMappingURL=cura-badge-number.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cura-badge-number.js","sourceRoot":"","sources":["../../../../src/components/badges/cura-badge-number/cura-badge-number.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,eAAe;;QAI1B,WAAM,GAAG,EAAE,CAAC;QAEZ,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;;;;IAE7B,iBAAiB;QACf,IAAI,CAAC,MAAM,mCACN,IAAI,CAAC,MAAM,KACd,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAC7D,CAAA;IACH,CAAC;IAGD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM;gBACvC;oBACE,+DAAO,IAAI,CAAC,MAAM,CAAQ,CACf,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-number',\n styleUrl: 'cura-badge-number.scss',\n shadow: true,\n})\nexport class CuraBadgeNumber {\n\n @Prop({ reflect: true }) number: number | null\n @Prop({ reflect: true }) color: string\n styles = {};\n\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--background-color': this.theme.colors.getColor(this.color),\n }\n }\n\n\n render() {\n return (\n <Host>\n <div class=\"container\" style={this.styles}>\n <cura-label>\n <slot>{this.number}</slot>\n </cura-label>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cura-badge-number.stories.js","sourceRoot":"","sources":["../../../../src/components/badges/cura-badge-number/cura-badge-number.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,qBAAqB,GAAG,CAAC,IAAS,EAAE,EAAE;IACxC,MAAM,KAAK,GAAG;WACP,IAAI,CAAC,KAAK;IACjB,IAAI,CAAC,MAAM;;GAEZ,CAAC;IACA,OAAO,GAAG,KAAK,EAAE,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;AAErC,eAAe;IACX,KAAK,EAAE,iCAAiC;IACxC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,EAAE,CAAC,EAAW,EAAE,EAAE;YAAV,IAAI,cAAT,EAAW,CAAF;QACd,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IACD,QAAQ,EAAE;QACN,MAAM,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,yBAAyB;YACtC,KAAK,EAAE;gBACH,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;aAC/B;SACJ;QACD,KAAK,EAAE;YACH,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC;YACxB,WAAW,EAAE,kEAAkE;YAC/E,KAAK,EAAE;gBACH,QAAQ,EAAE,YAAY;gBACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aACvC;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE;QACF,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,SAAS;KACnB;CACJ,CAAC","sourcesContent":["import { getColorsWithDepths } from \"../../../utils/utils\";\n\n\nconst renderCuraBadgeNumber = (args: any) => {\n const block = `<cura-badge-number\n color=\"${args.color}\">\n ${args.number}\n </cura-badge-number>\n `;\n return `${block}`;\n};\n\nconst colors = getColorsWithDepths();\n\nexport default {\n title: 'Componentes/Badges/Badge Number',\n tags: ['autodocs'],\n render: ({ ...args }) => {\n return renderCuraBadgeNumber(args);\n },\n argTypes: {\n number: {\n control: 'number',\n description: 'Número que será exibido',\n table: {\n category: 'Properties',\n defaultValue: { summary: 1 },\n },\n },\n color: {\n control: { type: 'select' },\n options: ['', ...colors],\n description: 'Cor fundamental do Design System sem profundidade (ex: primary).',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary' },\n },\n },\n },\n};\n\nexport const CuraBadgeNumber = {\n args: {\n number: 1,\n color: 'primary',\n },\n};\n"]}
@@ -1,8 +0,0 @@
1
- import { C as CuraBadgeNumber$1, d as defineCustomElement$1 } from './cura-badge-number2.js';
2
-
3
- const CuraBadgeNumber = CuraBadgeNumber$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { CuraBadgeNumber, defineCustomElement };
7
-
8
- //# sourceMappingURL=cura-badge-number.js.map
@@ -1 +0,0 @@
1
- {"file":"cura-badge-number.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,49 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$1 } from './cura-label2.js';
3
-
4
- const curaBadgeNumberCss = ":host .container{display:flex;width:20px;height:20px;min-width:16px;justify-content:center;align-items:center;border-radius:500px;background:var(--background-color)}";
5
- const CuraBadgeNumberStyle0 = curaBadgeNumberCss;
6
-
7
- const CuraBadgeNumber = /*@__PURE__*/ proxyCustomElement(class CuraBadgeNumber extends HTMLElement {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
12
- this.styles = {};
13
- this.theme = window.CuraAPI.theme;
14
- this.number = undefined;
15
- this.color = undefined;
16
- }
17
- connectedCallback() {
18
- this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': this.theme.colors.getColor(this.color) });
19
- }
20
- render() {
21
- return (h(Host, { key: 'a20934b4bec43ab7024e1bc4ad7537ff0d54b937' }, h("div", { key: 'a3fc8332932a117db4be61092050c3df3e4142bc', class: "container", style: this.styles }, h("cura-label", { key: 'ff53c0645348be0d392728778e3486c353243af5' }, h("slot", { key: 'f0774cc8f8ad07287b68bb3c59bf22cd4fc69755' }, this.number)))));
22
- }
23
- static get style() { return CuraBadgeNumberStyle0; }
24
- }, [1, "cura-badge-number", {
25
- "number": [514],
26
- "color": [513]
27
- }]);
28
- function defineCustomElement() {
29
- if (typeof customElements === "undefined") {
30
- return;
31
- }
32
- const components = ["cura-badge-number", "cura-label"];
33
- components.forEach(tagName => { switch (tagName) {
34
- case "cura-badge-number":
35
- if (!customElements.get(tagName)) {
36
- customElements.define(tagName, CuraBadgeNumber);
37
- }
38
- break;
39
- case "cura-label":
40
- if (!customElements.get(tagName)) {
41
- defineCustomElement$1();
42
- }
43
- break;
44
- } });
45
- }
46
-
47
- export { CuraBadgeNumber as C, defineCustomElement as d };
48
-
49
- //# sourceMappingURL=cura-badge-number2.js.map
@@ -1 +0,0 @@
1
- {"file":"cura-badge-number2.js","mappings":";;;AAAA,MAAM,kBAAkB,GAAG,uKAAuK,CAAC;AACnM,8BAAe,kBAAkB;;MCMpB,eAAe;;;;;QAI1B,WAAM,GAAG,EAAE,CAAC;QAEZ,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;;;;IAE7B,iBAAiB;QACf,IAAI,CAAC,MAAM,mCACN,IAAI,CAAC,MAAM,KACd,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAC7D,CAAA;KACF;IAGD,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IACvC,qEACE,+DAAO,IAAI,CAAC,MAAM,CAAQ,CACf,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/badges/cura-badge-number/cura-badge-number.scss?tag=cura-badge-number&encapsulation=shadow","src/components/badges/cura-badge-number/cura-badge-number.tsx"],"sourcesContent":["@import '../../../scss/mixins/spacing.scss';\n\n:host {\n .container {\n display: flex;\n width: 20px;\n height: 20px;\n min-width: 16px;\n justify-content: center;\n align-items: center;\n border-radius: 500px;\n background: var(--background-color);\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-number',\n styleUrl: 'cura-badge-number.scss',\n shadow: true,\n})\nexport class CuraBadgeNumber {\n\n @Prop({ reflect: true }) number: number | null\n @Prop({ reflect: true }) color: string\n styles = {};\n\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--background-color': this.theme.colors.getColor(this.color),\n }\n }\n\n\n render() {\n return (\n <Host>\n <div class=\"container\" style={this.styles}>\n <cura-label>\n <slot>{this.number}</slot>\n </cura-label>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- import{r as e,h as c,H as t}from"./p-fd5ed6b0.js";const s=":host .container{display:flex;width:20px;height:20px;min-width:16px;justify-content:center;align-items:center;border-radius:500px;background:var(--background-color)}";const a=s;const i=class{constructor(c){e(this,c);this.styles={};this.theme=window.CuraAPI.theme;this.number=undefined;this.color=undefined}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--background-color":this.theme.colors.getColor(this.color)})}render(){return c(t,{key:"a20934b4bec43ab7024e1bc4ad7537ff0d54b937"},c("div",{key:"a3fc8332932a117db4be61092050c3df3e4142bc",class:"container",style:this.styles},c("cura-label",{key:"ff53c0645348be0d392728778e3486c353243af5"},c("slot",{key:"f0774cc8f8ad07287b68bb3c59bf22cd4fc69755"},this.number))))}};i.style=a;export{i as cura_badge_number};
2
- //# sourceMappingURL=p-0308cf6b.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["curaBadgeNumberCss","CuraBadgeNumberStyle0","CuraBadgeNumber","this","styles","theme","window","CuraAPI","connectedCallback","Object","assign","colors","getColor","color","render","h","Host","key","class","style","number"],"sources":["src/components/badges/cura-badge-number/cura-badge-number.scss?tag=cura-badge-number&encapsulation=shadow","src/components/badges/cura-badge-number/cura-badge-number.tsx"],"sourcesContent":["@import '../../../scss/mixins/spacing.scss';\n\n:host {\n .container {\n display: flex;\n width: 20px;\n height: 20px;\n min-width: 16px;\n justify-content: center;\n align-items: center;\n border-radius: 500px;\n background: var(--background-color);\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-badge-number',\n styleUrl: 'cura-badge-number.scss',\n shadow: true,\n})\nexport class CuraBadgeNumber {\n\n @Prop({ reflect: true }) number: number | null\n @Prop({ reflect: true }) color: string\n styles = {};\n\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--background-color': this.theme.colors.getColor(this.color),\n }\n }\n\n\n render() {\n return (\n <Host>\n <div class=\"container\" style={this.styles}>\n <cura-label>\n <slot>{this.number}</slot>\n </cura-label>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAqB,wKAC3B,MAAAC,EAAeD,E,MCMFE,EAAe,M,yBAI1BC,KAAAC,OAAS,GAETD,KAAAE,MAAQC,OAAOC,QAAQF,M,2CAEvB,iBAAAG,GACEL,KAAKC,OAAMK,OAAAC,OAAAD,OAAAC,OAAA,GACNP,KAAKC,QAAM,CACd,qBAAsBD,KAAKE,MAAMM,OAAOC,SAAST,KAAKU,Q,CAK1D,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,YAAYC,MAAOhB,KAAKC,QACjCW,EAAA,cAAAE,IAAA,4CACEF,EAAA,QAAAE,IAAA,4CAAOd,KAAKiB,U","ignoreList":[]}