@rededor/cura 1.6.1-alpha.7 → 1.6.1-alpha.9

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 (148) hide show
  1. package/dist/cjs/app-globals-28c6f5c4.js.map +1 -1
  2. package/dist/cjs/cura-accordion_18.cjs.entry.js +10 -10
  3. package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
  4. package/dist/cjs/cura-checkbox.cjs.entry.js +4 -2
  5. package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
  6. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  7. package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
  9. package/dist/cjs/cura-modal.cjs.entry.js +15 -2
  10. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +2 -2
  12. package/dist/cjs/cura-radio.cjs.entry.js +19 -17
  13. package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
  15. package/dist/cjs/cura-switch.cjs.entry.js +4 -2
  16. package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
  17. package/dist/cjs/cura-toast.cjs.entry.js +1 -1
  18. package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
  19. package/dist/cjs/cura.cjs.js +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/collection/components/cura-avatar/cura-avatar.js +34 -16
  22. package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
  23. package/dist/collection/components/cura-modal/cura-modal.css +3 -2
  24. package/dist/collection/components/cura-modal/cura-modal.js +14 -1
  25. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  26. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  27. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +1 -1
  28. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +1 -1
  29. package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
  30. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  31. package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
  32. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +17 -1
  33. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +45 -1
  34. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
  35. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +16 -2
  36. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -1
  37. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
  38. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +1 -1
  39. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  40. package/dist/collection/components/forms/cura-radio/cura-radio.css +16 -1
  41. package/dist/collection/components/forms/cura-radio/cura-radio.js +62 -18
  42. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
  43. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +17 -4
  44. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
  45. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  46. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  47. package/dist/collection/components/forms/cura-switch/cura-switch.css +11 -1
  48. package/dist/collection/components/forms/cura-switch/cura-switch.js +45 -1
  49. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
  50. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +16 -2
  51. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -1
  52. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  53. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  54. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  55. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  56. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  57. package/dist/components/cura-avatar.js +1 -1
  58. package/dist/components/cura-avatar.js.map +1 -1
  59. package/dist/components/cura-checkbox.js +6 -2
  60. package/dist/components/cura-checkbox.js.map +1 -1
  61. package/dist/components/cura-display.js +1 -1
  62. package/dist/components/cura-heading2.js +1 -1
  63. package/dist/components/cura-input-date.js +1 -1
  64. package/dist/components/cura-label2.js +1 -1
  65. package/dist/components/cura-loader-bar2.js +1 -1
  66. package/dist/components/cura-loader-circle2.js +1 -1
  67. package/dist/components/cura-modal.js +31 -6
  68. package/dist/components/cura-modal.js.map +1 -1
  69. package/dist/components/cura-page-template.js +1 -1
  70. package/dist/components/cura-paragraph2.js +1 -1
  71. package/dist/components/cura-progress-bar2.js +1 -1
  72. package/dist/components/cura-radio.js +21 -17
  73. package/dist/components/cura-radio.js.map +1 -1
  74. package/dist/components/cura-select-option2.js +1 -1
  75. package/dist/components/cura-select2.js +3 -3
  76. package/dist/components/cura-stepper-item2.js +1 -1
  77. package/dist/components/cura-stepper.js +1 -1
  78. package/dist/components/cura-switch.js +6 -2
  79. package/dist/components/cura-switch.js.map +1 -1
  80. package/dist/components/cura-toast.js +1 -1
  81. package/dist/components/cura-tooltip.js +1 -1
  82. package/dist/components/index.js.map +1 -1
  83. package/dist/cura/cura.esm.js +1 -1
  84. package/dist/cura/cura.esm.js.map +1 -1
  85. package/dist/cura/{p-25932952.entry.js → p-0b872499.entry.js} +2 -2
  86. package/dist/cura/p-0c25333f.js.map +1 -1
  87. package/dist/cura/p-0ccde0ff.entry.js +2 -0
  88. package/dist/cura/p-0ccde0ff.entry.js.map +1 -0
  89. package/dist/cura/{p-777decf9.entry.js → p-137f003b.entry.js} +2 -2
  90. package/dist/cura/{p-3c305dbd.entry.js → p-202dc01a.entry.js} +2 -2
  91. package/dist/cura/{p-57c854b3.entry.js → p-20b05d8f.entry.js} +2 -2
  92. package/dist/cura/{p-1c9c62f1.entry.js → p-5a43e745.entry.js} +2 -2
  93. package/dist/cura/p-7a68835f.entry.js +2 -0
  94. package/dist/cura/p-7a68835f.entry.js.map +1 -0
  95. package/dist/cura/p-9fce5ec5.entry.js +2 -0
  96. package/dist/cura/p-9fce5ec5.entry.js.map +1 -0
  97. package/dist/cura/{p-b5464dfc.entry.js → p-ac01bec2.entry.js} +2 -2
  98. package/dist/cura/{p-0342c255.entry.js → p-b5d8a26b.entry.js} +2 -2
  99. package/dist/cura/p-b5d8a26b.entry.js.map +1 -0
  100. package/dist/cura/p-d8e1e182.entry.js +2 -0
  101. package/dist/cura/p-d8e1e182.entry.js.map +1 -0
  102. package/dist/cura/{p-d7f46266.entry.js → p-d97719bc.entry.js} +2 -2
  103. package/dist/esm/app-globals-ca1945d1.js.map +1 -1
  104. package/dist/esm/cura-accordion_18.entry.js +10 -10
  105. package/dist/esm/cura-accordion_18.entry.js.map +1 -1
  106. package/dist/esm/cura-checkbox.entry.js +4 -2
  107. package/dist/esm/cura-checkbox.entry.js.map +1 -1
  108. package/dist/esm/cura-display.entry.js +1 -1
  109. package/dist/esm/cura-input-date.entry.js +1 -1
  110. package/dist/esm/cura-loader-bar.entry.js +1 -1
  111. package/dist/esm/cura-modal.entry.js +15 -2
  112. package/dist/esm/cura-modal.entry.js.map +1 -1
  113. package/dist/esm/cura-progress-bar_2.entry.js +2 -2
  114. package/dist/esm/cura-radio.entry.js +19 -17
  115. package/dist/esm/cura-radio.entry.js.map +1 -1
  116. package/dist/esm/cura-stepper.entry.js +1 -1
  117. package/dist/esm/cura-switch.entry.js +4 -2
  118. package/dist/esm/cura-switch.entry.js.map +1 -1
  119. package/dist/esm/cura-toast.entry.js +1 -1
  120. package/dist/esm/cura-tooltip.entry.js +1 -1
  121. package/dist/esm/cura.js +1 -1
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/types/components/cura-avatar/cura-avatar.d.ts +37 -0
  124. package/dist/types/components/cura-modal/cura-modal.d.ts +3 -0
  125. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +18 -0
  126. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +15 -0
  127. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +30 -12
  128. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +15 -0
  129. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +18 -0
  130. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +15 -0
  131. package/dist/types/components.d.ts +130 -4
  132. package/package.json +2 -2
  133. package/dist/cura/p-0342c255.entry.js.map +0 -1
  134. package/dist/cura/p-0d78f2ed.entry.js +0 -2
  135. package/dist/cura/p-0d78f2ed.entry.js.map +0 -1
  136. package/dist/cura/p-3c3d330f.entry.js +0 -2
  137. package/dist/cura/p-3c3d330f.entry.js.map +0 -1
  138. package/dist/cura/p-9db912ea.entry.js +0 -2
  139. package/dist/cura/p-9db912ea.entry.js.map +0 -1
  140. package/dist/cura/p-d6897ac1.entry.js +0 -2
  141. package/dist/cura/p-d6897ac1.entry.js.map +0 -1
  142. /package/dist/cura/{p-25932952.entry.js.map → p-0b872499.entry.js.map} +0 -0
  143. /package/dist/cura/{p-777decf9.entry.js.map → p-137f003b.entry.js.map} +0 -0
  144. /package/dist/cura/{p-3c305dbd.entry.js.map → p-202dc01a.entry.js.map} +0 -0
  145. /package/dist/cura/{p-57c854b3.entry.js.map → p-20b05d8f.entry.js.map} +0 -0
  146. /package/dist/cura/{p-1c9c62f1.entry.js.map → p-5a43e745.entry.js.map} +0 -0
  147. /package/dist/cura/{p-b5464dfc.entry.js.map → p-ac01bec2.entry.js.map} +0 -0
  148. /package/dist/cura/{p-d7f46266.entry.js.map → p-d97719bc.entry.js.map} +0 -0
@@ -73,14 +73,47 @@ export namespace Components {
73
73
  "type": 'info' | 'success' | 'warning' | 'error';
74
74
  }
75
75
  interface CuraAvatar {
76
+ /**
77
+ * Background color of the avatar. Accepts any color from the theme.
78
+ * @default neutral-purewhite
79
+ */
76
80
  "backgroundColor": string;
81
+ /**
82
+ * Show border of the avatar.
83
+ * @default false
84
+ */
77
85
  "border": boolean;
86
+ /**
87
+ * Border color of the avatar. Accepts any color from the theme.
88
+ */
78
89
  "borderColor": string;
90
+ /**
91
+ * Border radius of the avatar.
92
+ * @default 50%
93
+ */
79
94
  "borderRadius": string;
95
+ /**
96
+ * Floating state of the avatar.
97
+ * @default false
98
+ */
80
99
  "floating": boolean;
100
+ /**
101
+ * Image source of the avatar. Accepts any image source. If not provided, the default image will be used.
102
+ */
81
103
  "imageSrc": string;
104
+ /**
105
+ * Default image source of the avatar. Some predefined images are available in the design system assets folder.
106
+ */
82
107
  "imageSrcDefault": string;
108
+ /**
109
+ * Size of the avatar. Values: 80, 40, 32, 24.
110
+ * @default 80
111
+ */
83
112
  "size": '80' | '40' | '32' | '24';
113
+ /**
114
+ * Type of the avatar.
115
+ * @default default
116
+ */
84
117
  "type": 'default' | 'branding';
85
118
  }
86
119
  interface CuraBadgeCounter {
@@ -509,6 +542,16 @@ export namespace Components {
509
542
  * Specifies the tabindex of the checkbox.
510
543
  */
511
544
  "ontabindex": number;
545
+ /**
546
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
547
+ * @default 'none'
548
+ */
549
+ "overflowHelper": 'none' | 'single' | string;
550
+ /**
551
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
552
+ * @default 'none'
553
+ */
554
+ "overflowLabel": 'none' | 'single' | string;
512
555
  /**
513
556
  * Position of the label relative to the checkbox. Can be 'left' or 'right'.
514
557
  */
@@ -978,10 +1021,20 @@ export namespace Components {
978
1021
  * Specifies the tabindex of the radio button.
979
1022
  */
980
1023
  "ontabindex": number;
1024
+ /**
1025
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
1026
+ * @default 'none'
1027
+ */
1028
+ "overflowHelper": 'none' | 'single' | string;
1029
+ /**
1030
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
1031
+ * @default 'none'
1032
+ */
1033
+ "overflowLabel": 'none' | 'single' | string;
981
1034
  /**
982
1035
  * Position of the label relative to the radio button. Can be 'left' or 'right'.
983
1036
  */
984
- "position": "left" | "right";
1037
+ "position": 'left' | 'right';
985
1038
  /**
986
1039
  * Reflects the required state of the radio button.
987
1040
  */
@@ -1113,6 +1166,16 @@ export namespace Components {
1113
1166
  * Tab index for the switch element. Reflects as an HTML attribute.
1114
1167
  */
1115
1168
  "ontabindex": number;
1169
+ /**
1170
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
1171
+ * @default 'none'
1172
+ */
1173
+ "overflowHelper": 'none' | 'single' | string;
1174
+ /**
1175
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
1176
+ * @default 'none'
1177
+ */
1178
+ "overflowLabel": 'none' | 'single' | string;
1116
1179
  /**
1117
1180
  * Position of the label relative to the switch. Can be 'left' or 'right'.
1118
1181
  */
@@ -1513,7 +1576,7 @@ declare global {
1513
1576
  new (): HTMLCuraProgressBarElement;
1514
1577
  };
1515
1578
  interface HTMLCuraRadioElementEventMap {
1516
- "onchange": { value: string, checked: boolean };
1579
+ "onchange": { value: string; checked: boolean };
1517
1580
  }
1518
1581
  interface HTMLCuraRadioElement extends Components.CuraRadio, HTMLStencilElement {
1519
1582
  addEventListener<K extends keyof HTMLCuraRadioElementEventMap>(type: K, listener: (this: HTMLCuraRadioElement, ev: CuraRadioCustomEvent<HTMLCuraRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1724,14 +1787,47 @@ declare namespace LocalJSX {
1724
1787
  "type"?: 'info' | 'success' | 'warning' | 'error';
1725
1788
  }
1726
1789
  interface CuraAvatar {
1790
+ /**
1791
+ * Background color of the avatar. Accepts any color from the theme.
1792
+ * @default neutral-purewhite
1793
+ */
1727
1794
  "backgroundColor"?: string;
1795
+ /**
1796
+ * Show border of the avatar.
1797
+ * @default false
1798
+ */
1728
1799
  "border"?: boolean;
1800
+ /**
1801
+ * Border color of the avatar. Accepts any color from the theme.
1802
+ */
1729
1803
  "borderColor"?: string;
1804
+ /**
1805
+ * Border radius of the avatar.
1806
+ * @default 50%
1807
+ */
1730
1808
  "borderRadius"?: string;
1809
+ /**
1810
+ * Floating state of the avatar.
1811
+ * @default false
1812
+ */
1731
1813
  "floating"?: boolean;
1814
+ /**
1815
+ * Image source of the avatar. Accepts any image source. If not provided, the default image will be used.
1816
+ */
1732
1817
  "imageSrc"?: string;
1818
+ /**
1819
+ * Default image source of the avatar. Some predefined images are available in the design system assets folder.
1820
+ */
1733
1821
  "imageSrcDefault"?: string;
1822
+ /**
1823
+ * Size of the avatar. Values: 80, 40, 32, 24.
1824
+ * @default 80
1825
+ */
1734
1826
  "size"?: '80' | '40' | '32' | '24';
1827
+ /**
1828
+ * Type of the avatar.
1829
+ * @default default
1830
+ */
1735
1831
  "type"?: 'default' | 'branding';
1736
1832
  }
1737
1833
  interface CuraBadgeCounter {
@@ -2168,6 +2264,16 @@ declare namespace LocalJSX {
2168
2264
  * Specifies the tabindex of the checkbox.
2169
2265
  */
2170
2266
  "ontabindex"?: number;
2267
+ /**
2268
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2269
+ * @default 'none'
2270
+ */
2271
+ "overflowHelper"?: 'none' | 'single' | string;
2272
+ /**
2273
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2274
+ * @default 'none'
2275
+ */
2276
+ "overflowLabel"?: 'none' | 'single' | string;
2171
2277
  /**
2172
2278
  * Position of the label relative to the checkbox. Can be 'left' or 'right'.
2173
2279
  */
@@ -2653,15 +2759,25 @@ declare namespace LocalJSX {
2653
2759
  * Name attribute of the radio button.
2654
2760
  */
2655
2761
  "name"?: string;
2656
- "onOnchange"?: (event: CuraRadioCustomEvent<{ value: string, checked: boolean }>) => void;
2762
+ "onOnchange"?: (event: CuraRadioCustomEvent<{ value: string; checked: boolean }>) => void;
2657
2763
  /**
2658
2764
  * Specifies the tabindex of the radio button.
2659
2765
  */
2660
2766
  "ontabindex"?: number;
2767
+ /**
2768
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2769
+ * @default 'none'
2770
+ */
2771
+ "overflowHelper"?: 'none' | 'single' | string;
2772
+ /**
2773
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2774
+ * @default 'none'
2775
+ */
2776
+ "overflowLabel"?: 'none' | 'single' | string;
2661
2777
  /**
2662
2778
  * Position of the label relative to the radio button. Can be 'left' or 'right'.
2663
2779
  */
2664
- "position"?: "left" | "right";
2780
+ "position"?: 'left' | 'right';
2665
2781
  /**
2666
2782
  * Reflects the required state of the radio button.
2667
2783
  */
@@ -2802,6 +2918,16 @@ declare namespace LocalJSX {
2802
2918
  * Tab index for the switch element. Reflects as an HTML attribute.
2803
2919
  */
2804
2920
  "ontabindex"?: number;
2921
+ /**
2922
+ * Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2923
+ * @default 'none'
2924
+ */
2925
+ "overflowHelper"?: 'none' | 'single' | string;
2926
+ /**
2927
+ * Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
2928
+ * @default 'none'
2929
+ */
2930
+ "overflowLabel"?: 'none' | 'single' | string;
2805
2931
  /**
2806
2932
  * Position of the label relative to the switch. Can be 'left' or 'right'.
2807
2933
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/cura",
3
- "version": "1.6.1-alpha.7",
3
+ "version": "1.6.1-alpha.9",
4
4
  "description": "Cura Design System",
5
5
  "author": "Rede D`Or São Luiz",
6
6
  "license": "MIT",
@@ -55,5 +55,5 @@
55
55
  "storybook": "^7.6.10",
56
56
  "svgo": "^3.3.2"
57
57
  },
58
- "gitHead": "a7692427fa56d2ac242b5babb1bc657b59d61535"
58
+ "gitHead": "40c2aa1b07a2b3e1ac495930b4711e5f65e7f991"
59
59
  }