@rededor/cura 0.5.0 → 0.5.2

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 (221) hide show
  1. package/dist/cjs/{app-globals-0e3b7fc6.js → app-globals-2988084b.js} +5 -5
  2. package/dist/cjs/app-globals-2988084b.js.map +1 -0
  3. package/dist/cjs/cura-accordion_8.cjs.entry.js +452 -0
  4. package/dist/cjs/cura-accordion_8.cjs.entry.js.map +1 -0
  5. package/dist/cjs/cura-button-outline.cjs.entry.js +83 -0
  6. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -0
  7. package/dist/cjs/cura-button-transparent.cjs.entry.js +83 -0
  8. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -0
  9. package/dist/cjs/cura-display.cjs.entry.js +74 -0
  10. package/dist/cjs/cura-display.cjs.entry.js.map +1 -0
  11. package/dist/cjs/cura-icons-view.cjs.entry.js +29 -0
  12. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -0
  13. package/dist/cjs/cura-label.cjs.entry.js +69 -0
  14. package/dist/cjs/cura-label.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cura.cjs.js +3 -3
  16. package/dist/cjs/{index-72217b50.js → index-404d93e9.js} +247 -3
  17. package/dist/cjs/index-404d93e9.js.map +1 -0
  18. package/dist/cjs/index.cjs.js +7 -0
  19. package/dist/cjs/index.cjs.js.map +1 -1
  20. package/dist/cjs/loader.cjs.js +3 -3
  21. package/dist/collection/api/cura-api.type.js.map +1 -1
  22. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +1 -1
  23. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
  24. package/dist/collection/api/modules/cura-theme-colors-module.js +1 -1
  25. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  26. package/dist/collection/api/theme-presets/static.js +2 -2
  27. package/dist/collection/api/theme-presets/static.js.map +1 -1
  28. package/dist/collection/collection-manifest.json +1 -0
  29. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +1 -1
  30. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
  31. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +10 -6
  32. package/dist/collection/components/buttons/cura-button/cura-button.js +4 -3
  33. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  34. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +1 -1
  35. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
  36. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +4 -3
  37. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  38. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +1 -1
  39. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
  40. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +4 -3
  41. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  42. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +1 -1
  43. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
  44. package/dist/collection/components/cura-icon/cura-icon.stories.js +1 -1
  45. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
  46. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +1 -1
  47. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -1
  48. package/dist/collection/components/cura-page-template/cura-page-template.css +13 -9
  49. package/dist/collection/components/forms/cura-label/cura-label.css +70 -0
  50. package/dist/collection/components/forms/cura-label/cura-label.js +190 -0
  51. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -0
  52. package/dist/collection/components/forms/cura-label/cura-label.stories.js +137 -0
  53. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -0
  54. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +1 -1
  55. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
  56. package/dist/collection/components/text/cura-display/cura-display.css +21 -38
  57. package/dist/collection/components/text/cura-display/cura-display.js +80 -49
  58. package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
  59. package/dist/collection/components/text/cura-display/cura-display.stories.js +79 -34
  60. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
  61. package/dist/collection/components/text/cura-heading/cura-heading.css +50 -24
  62. package/dist/collection/components/text/cura-heading/cura-heading.js +94 -39
  63. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  64. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +93 -37
  65. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  66. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +37 -38
  67. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +62 -41
  68. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  69. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +79 -47
  70. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  71. package/dist/collection/index.js +3 -1
  72. package/dist/collection/index.js.map +1 -1
  73. package/dist/components/cura-accordion-item.js +1 -1
  74. package/dist/components/cura-accordion-item.js.map +1 -1
  75. package/dist/components/cura-button-outline.js +1 -1
  76. package/dist/components/cura-button-outline.js.map +1 -1
  77. package/dist/components/cura-button-transparent.js +1 -1
  78. package/dist/components/cura-button-transparent.js.map +1 -1
  79. package/dist/components/cura-button.js +1 -1
  80. package/dist/components/cura-button.js.map +1 -1
  81. package/dist/components/cura-display.js +41 -35
  82. package/dist/components/cura-display.js.map +1 -1
  83. package/dist/components/cura-heading.js +34 -21
  84. package/dist/components/cura-heading.js.map +1 -1
  85. package/dist/components/cura-label.d.ts +11 -0
  86. package/dist/components/cura-label.js +91 -0
  87. package/dist/components/cura-label.js.map +1 -0
  88. package/dist/components/cura-page-template.js +1 -1
  89. package/dist/components/cura-page-template.js.map +1 -1
  90. package/dist/components/cura-paragraph.js +25 -23
  91. package/dist/components/cura-paragraph.js.map +1 -1
  92. package/dist/components/index.js +11 -5
  93. package/dist/components/index.js.map +1 -1
  94. package/dist/cura/cura.esm.js +1 -1
  95. package/dist/cura/cura.esm.js.map +1 -1
  96. package/dist/cura/cura.js +1 -1
  97. package/dist/cura/index.esm.js +1 -1
  98. package/dist/cura/index.esm.js.map +1 -1
  99. package/dist/cura/p-03047b3e.entry.js +2 -0
  100. package/dist/cura/p-03047b3e.entry.js.map +1 -0
  101. package/dist/cura/p-0c79c54e.entry.js +2 -0
  102. package/dist/cura/p-0c79c54e.entry.js.map +1 -0
  103. package/dist/cura/p-120926c5.system.js +2 -0
  104. package/dist/cura/p-120926c5.system.js.map +1 -0
  105. package/dist/cura/p-223924fb.system.entry.js +2 -0
  106. package/dist/cura/p-223924fb.system.entry.js.map +1 -0
  107. package/dist/cura/p-46d20db3.js +3 -0
  108. package/dist/cura/p-46d20db3.js.map +1 -0
  109. package/dist/cura/p-48426f60.system.js +2 -0
  110. package/dist/cura/p-48426f60.system.js.map +1 -0
  111. package/dist/cura/p-49813052.entry.js +2 -0
  112. package/dist/cura/p-49813052.entry.js.map +1 -0
  113. package/dist/cura/p-4bdbcdf0.system.entry.js +2 -0
  114. package/dist/cura/p-4bdbcdf0.system.entry.js.map +1 -0
  115. package/dist/cura/p-7c8f3c77.system.entry.js +2 -0
  116. package/dist/cura/p-7c8f3c77.system.entry.js.map +1 -0
  117. package/dist/cura/p-8b18b5f7.system.js +2 -0
  118. package/dist/cura/p-8b18b5f7.system.js.map +1 -0
  119. package/dist/cura/p-91b0f78e.entry.js +2 -0
  120. package/dist/cura/p-91b0f78e.entry.js.map +1 -0
  121. package/dist/cura/p-a0395f90.entry.js +2 -0
  122. package/dist/cura/p-a0395f90.entry.js.map +1 -0
  123. package/dist/cura/p-a7ef255f.entry.js +2 -0
  124. package/dist/cura/p-a7ef255f.entry.js.map +1 -0
  125. package/dist/cura/p-c0c00396.system.js +3 -0
  126. package/dist/cura/p-c0c00396.system.js.map +1 -0
  127. package/dist/cura/p-ca054b07.system.entry.js +2 -0
  128. package/dist/cura/p-ca054b07.system.entry.js.map +1 -0
  129. package/dist/cura/p-d47b9cfe.system.entry.js +2 -0
  130. package/dist/cura/p-d47b9cfe.system.entry.js.map +1 -0
  131. package/dist/cura/p-f8fffdc1.js +2 -0
  132. package/dist/cura/p-f8fffdc1.js.map +1 -0
  133. package/dist/cura/p-fc77814b.system.entry.js +2 -0
  134. package/dist/cura/p-fc77814b.system.entry.js.map +1 -0
  135. package/dist/esm/{app-globals-cc003eaf.js → app-globals-29001758.js} +5 -5
  136. package/dist/esm/app-globals-29001758.js.map +1 -0
  137. package/dist/esm/cura-accordion_8.entry.js +441 -0
  138. package/dist/esm/cura-accordion_8.entry.js.map +1 -0
  139. package/dist/esm/cura-button-outline.entry.js +79 -0
  140. package/dist/esm/cura-button-outline.entry.js.map +1 -0
  141. package/dist/esm/cura-button-transparent.entry.js +79 -0
  142. package/dist/esm/cura-button-transparent.entry.js.map +1 -0
  143. package/dist/esm/cura-display.entry.js +70 -0
  144. package/dist/esm/cura-display.entry.js.map +1 -0
  145. package/dist/esm/cura-icons-view.entry.js +25 -0
  146. package/dist/esm/cura-icons-view.entry.js.map +1 -0
  147. package/dist/esm/cura-label.entry.js +65 -0
  148. package/dist/esm/cura-label.entry.js.map +1 -0
  149. package/dist/esm/cura.js +4 -4
  150. package/dist/esm/{index-9af0cdbd.js → index-d99da69e.js} +247 -3
  151. package/dist/esm/index-d99da69e.js.map +1 -0
  152. package/dist/esm/index.js +4 -0
  153. package/dist/esm/index.js.map +1 -1
  154. package/dist/esm/loader.js +4 -4
  155. package/dist/esm-es5/app-globals-29001758.js +2 -0
  156. package/dist/esm-es5/app-globals-29001758.js.map +1 -0
  157. package/dist/esm-es5/cura-accordion_8.entry.js +2 -0
  158. package/dist/esm-es5/cura-accordion_8.entry.js.map +1 -0
  159. package/dist/esm-es5/cura-button-outline.entry.js +2 -0
  160. package/dist/esm-es5/cura-button-outline.entry.js.map +1 -0
  161. package/dist/esm-es5/cura-button-transparent.entry.js +2 -0
  162. package/dist/esm-es5/cura-button-transparent.entry.js.map +1 -0
  163. package/dist/esm-es5/cura-display.entry.js +2 -0
  164. package/dist/esm-es5/cura-display.entry.js.map +1 -0
  165. package/dist/esm-es5/cura-icons-view.entry.js +2 -0
  166. package/dist/esm-es5/cura-icons-view.entry.js.map +1 -0
  167. package/dist/esm-es5/cura-label.entry.js +2 -0
  168. package/dist/esm-es5/cura-label.entry.js.map +1 -0
  169. package/dist/esm-es5/cura.js +1 -1
  170. package/dist/esm-es5/cura.js.map +1 -1
  171. package/dist/esm-es5/index-d99da69e.js +3 -0
  172. package/dist/esm-es5/index-d99da69e.js.map +1 -0
  173. package/dist/esm-es5/index.js +1 -1
  174. package/dist/esm-es5/index.js.map +1 -1
  175. package/dist/esm-es5/loader.js +1 -1
  176. package/dist/esm-es5/loader.js.map +1 -1
  177. package/dist/types/api/cura-api.type.d.ts +1 -0
  178. package/dist/types/components/buttons/cura-button/cura-button.d.ts +1 -1
  179. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +1 -1
  180. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +1 -1
  181. package/dist/types/components/forms/cura-label/cura-label.d.ts +54 -0
  182. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +126 -0
  183. package/dist/types/components/text/cura-display/cura-display.d.ts +29 -18
  184. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +52 -14
  185. package/dist/types/components/text/cura-heading/cura-heading.d.ts +34 -17
  186. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +58 -6
  187. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +24 -12
  188. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +47 -9
  189. package/dist/types/components.d.ts +145 -52
  190. package/dist/types/index.d.ts +9 -0
  191. package/package.json +2 -4
  192. package/dist/cjs/app-globals-0e3b7fc6.js.map +0 -1
  193. package/dist/cjs/cura-accordion_12.cjs.entry.js +0 -674
  194. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
  195. package/dist/cjs/index-72217b50.js.map +0 -1
  196. package/dist/cura/p-2cbf52f1.js +0 -3
  197. package/dist/cura/p-2cbf52f1.js.map +0 -1
  198. package/dist/cura/p-4cdbc8a1.system.entry.js +0 -2
  199. package/dist/cura/p-4cdbc8a1.system.entry.js.map +0 -1
  200. package/dist/cura/p-50ea2036.system.js +0 -2
  201. package/dist/cura/p-50ea2036.system.js.map +0 -1
  202. package/dist/cura/p-788e035b.system.js +0 -2
  203. package/dist/cura/p-788e035b.system.js.map +0 -1
  204. package/dist/cura/p-8da635b7.system.js +0 -3
  205. package/dist/cura/p-8da635b7.system.js.map +0 -1
  206. package/dist/cura/p-c54ce246.entry.js +0 -2
  207. package/dist/cura/p-c54ce246.entry.js.map +0 -1
  208. package/dist/cura/p-d5c64a5f.js +0 -2
  209. package/dist/cura/p-d5c64a5f.js.map +0 -1
  210. package/dist/cura/p-f4232daa.system.js +0 -2
  211. package/dist/cura/p-f4232daa.system.js.map +0 -1
  212. package/dist/esm/app-globals-cc003eaf.js.map +0 -1
  213. package/dist/esm/cura-accordion_12.entry.js +0 -659
  214. package/dist/esm/cura-accordion_12.entry.js.map +0 -1
  215. package/dist/esm/index-9af0cdbd.js.map +0 -1
  216. package/dist/esm-es5/app-globals-cc003eaf.js +0 -2
  217. package/dist/esm-es5/app-globals-cc003eaf.js.map +0 -1
  218. package/dist/esm-es5/cura-accordion_12.entry.js +0 -2
  219. package/dist/esm-es5/cura-accordion_12.entry.js.map +0 -1
  220. package/dist/esm-es5/index-9af0cdbd.js +0 -3
  221. package/dist/esm-es5/index-9af0cdbd.js.map +0 -1
@@ -26,7 +26,7 @@ export declare class CuraButtonTransparent {
26
26
  /**
27
27
  * Set button to FAB/icon only.
28
28
  */
29
- iconOnly: false;
29
+ iconOnly: boolean;
30
30
  /**
31
31
  * Property href switch button to link.
32
32
  */
@@ -0,0 +1,54 @@
1
+ export declare class CuraLabel {
2
+ /**
3
+ * Set size of body text.
4
+ * Values: medium (default) | large | small | xsmall.
5
+ */
6
+ size: 'medium' | 'large' | 'small' | 'xsmall';
7
+ /**
8
+ * Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
9
+ * Values: regular (default) | bold.
10
+ */
11
+ weight: 'regular' | 'bold';
12
+ /**
13
+ * Apply design system color to interactive elements like <a> and <abbr> inside the text.
14
+ * Values: Color from design system scheme. Default to 'accent-dark'.
15
+ */
16
+ spotColor: string;
17
+ /**
18
+ * Text color.
19
+ * Values: Color from design system scheme. Default to the font color from the theme.
20
+ */
21
+ color: string;
22
+ handleChangeColor(): void;
23
+ /**
24
+ * CSS margin-block property values.
25
+ * Default to 1.25em
26
+ */
27
+ marginBlock: string;
28
+ /**
29
+ * CSS line-height property values.
30
+ * Default to 140%
31
+ */
32
+ lineHeight: string;
33
+ /**
34
+ * Host element <cura-label>
35
+ */
36
+ host: HTMLElement;
37
+ /**
38
+ * Internal Props
39
+ */
40
+ weights: any;
41
+ fontSizeBase: string;
42
+ styles: {};
43
+ theme: import("../../../api/cura-api.type").APIThemeFunctions;
44
+ connectedCallback(): void;
45
+ getClasses(): {};
46
+ setFontProperties(): void;
47
+ setColors(): void;
48
+ hostCSSProperties(): {
49
+ '--margin-block': string;
50
+ '--font-size-base': string;
51
+ '--line-height': string;
52
+ };
53
+ render(): any;
54
+ }
@@ -0,0 +1,126 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: string[];
4
+ render: ({ label, ...args }: {
5
+ [x: string]: any;
6
+ label: any;
7
+ }) => string;
8
+ argTypes: {
9
+ label: {
10
+ control: string;
11
+ description: string;
12
+ name: string;
13
+ };
14
+ size: {
15
+ control: {
16
+ type: string;
17
+ };
18
+ options: string[];
19
+ description: string;
20
+ table: {
21
+ category: string;
22
+ defaultValue: {
23
+ summary: string;
24
+ };
25
+ };
26
+ };
27
+ weight: {
28
+ control: {
29
+ type: string;
30
+ };
31
+ options: string[];
32
+ description: string;
33
+ table: {
34
+ category: string;
35
+ defaultValue: {
36
+ summary: string;
37
+ };
38
+ };
39
+ };
40
+ color: {
41
+ control: {
42
+ type: string;
43
+ };
44
+ options: string[];
45
+ description: string;
46
+ table: {
47
+ category: string;
48
+ defaultValue: {
49
+ summary: string;
50
+ };
51
+ };
52
+ };
53
+ spotColor: {
54
+ control: {
55
+ type: string;
56
+ };
57
+ options: string[];
58
+ description: string;
59
+ name: string;
60
+ table: {
61
+ category: string;
62
+ defaultValue: {
63
+ summary: string;
64
+ };
65
+ };
66
+ };
67
+ marginBlock: {
68
+ control: string;
69
+ description: string;
70
+ name: string;
71
+ table: {
72
+ category: string;
73
+ defaultValue: {
74
+ summary: string;
75
+ };
76
+ };
77
+ };
78
+ lineHeight: {
79
+ control: string;
80
+ description: string;
81
+ name: string;
82
+ table: {
83
+ category: string;
84
+ defaultValue: {
85
+ summary: string;
86
+ };
87
+ };
88
+ };
89
+ cssMarginBlock: {
90
+ control: string;
91
+ description: string;
92
+ name: string;
93
+ table: {
94
+ category: string;
95
+ defaultValue: {
96
+ summary: string;
97
+ };
98
+ };
99
+ };
100
+ cssLineHeight: {
101
+ control: string;
102
+ description: string;
103
+ name: string;
104
+ table: {
105
+ category: string;
106
+ defaultValue: {
107
+ summary: string;
108
+ };
109
+ };
110
+ };
111
+ };
112
+ };
113
+ export default _default;
114
+ export declare const Label: {
115
+ args: {
116
+ label: string;
117
+ size: string;
118
+ weight: string;
119
+ color: string;
120
+ spotColor: string;
121
+ marginBlock: string;
122
+ lineHeight: string;
123
+ cssMarginBlock: string;
124
+ cssLineHeight: string;
125
+ };
126
+ };
@@ -1,38 +1,49 @@
1
1
  export declare class CuraDisplay {
2
2
  /**
3
- * Heading level for semantics.
4
- * Values: 1(default)-6.
3
+ * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
4
+ * Values: 1(default) to 6.
5
5
  */
6
- level: number;
6
+ level: 1 | 2 | 3 | 4 | 5 | 6;
7
7
  /**
8
- * Heading style size.
9
- * Values: small | regular(default) | large.
8
+ * Apply design system color to interactive elements like <a> and <abbr> inside the text.
9
+ * Values: Color from design system scheme. Default to 'accent-dark'.
10
10
  */
11
- size: string;
11
+ spotColor: string;
12
12
  /**
13
- * Apply light color to text in dark background.
14
- * Values: boolean.
15
- */
16
- inverted: boolean;
13
+ * Text color.
14
+ * Values: Color from design system scheme. Default to the font color from the theme.
15
+ */
16
+ color: string;
17
+ handleChangeColor(): void;
17
18
  /**
18
- * Apply base system color to elements like <a> and <abbr>.
19
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
20
- */
21
- spotColor: string;
19
+ * CSS margin-block property values.
20
+ * Default to 1.25em
21
+ */
22
+ marginBlock: string;
23
+ /**
24
+ * CSS line-height property values.
25
+ * Default to 140%
26
+ */
27
+ lineHeight: string;
22
28
  /**
23
- * Host element <cura-heading>
29
+ * Host element <cura-display>
24
30
  */
25
31
  host: HTMLElement;
26
32
  /**
27
33
  * Internal Props
28
34
  */
29
35
  weights: any;
30
- styles: any;
36
+ fontSizeBase: string;
37
+ theme: import("../../../api/cura-api.type").APIThemeFunctions;
38
+ styles: {};
31
39
  connectedCallback(): void;
32
- getClasses(): {};
33
40
  setFontProperties(): void;
41
+ hostCSSProperties(): {
42
+ '--margin-block': string;
43
+ '--font-size-base': string;
44
+ '--line-height': string;
45
+ };
34
46
  setColors(): void;
35
- setHostProperty(prop: string, value: string): void;
36
47
  getHeadingTag(): any;
37
48
  render(): any;
38
49
  }
@@ -11,17 +11,7 @@ declare const _default: {
11
11
  description: string;
12
12
  name: string;
13
13
  };
14
- inverted: {
15
- control: string;
16
- description: string;
17
- table: {
18
- category: string;
19
- defaultValue: {
20
- summary: string;
21
- };
22
- };
23
- };
24
- size: {
14
+ color: {
25
15
  control: {
26
16
  type: string;
27
17
  };
@@ -40,6 +30,7 @@ declare const _default: {
40
30
  };
41
31
  options: string[];
42
32
  description: string;
33
+ name: string;
43
34
  table: {
44
35
  category: string;
45
36
  defaultValue: {
@@ -55,6 +46,50 @@ declare const _default: {
55
46
  step: number;
56
47
  };
57
48
  description: string;
49
+ table: {
50
+ category: string;
51
+ defaultValue: {
52
+ summary: number;
53
+ };
54
+ };
55
+ };
56
+ marginBlock: {
57
+ control: string;
58
+ description: string;
59
+ name: string;
60
+ table: {
61
+ category: string;
62
+ defaultValue: {
63
+ summary: string;
64
+ };
65
+ };
66
+ };
67
+ lineHeight: {
68
+ control: string;
69
+ description: string;
70
+ name: string;
71
+ table: {
72
+ category: string;
73
+ defaultValue: {
74
+ summary: string;
75
+ };
76
+ };
77
+ };
78
+ cssMarginBlock: {
79
+ control: string;
80
+ description: string;
81
+ name: string;
82
+ table: {
83
+ category: string;
84
+ defaultValue: {
85
+ summary: string;
86
+ };
87
+ };
88
+ };
89
+ cssLineHeight: {
90
+ control: string;
91
+ description: string;
92
+ name: string;
58
93
  table: {
59
94
  category: string;
60
95
  defaultValue: {
@@ -68,9 +103,12 @@ export default _default;
68
103
  export declare const Display: {
69
104
  args: {
70
105
  label: string;
71
- size: string;
72
- level: number;
106
+ level: string;
107
+ color: string;
73
108
  spotColor: string;
74
- inverted: boolean;
109
+ marginBlock: string;
110
+ lineHeight: string;
111
+ cssMarginBlock: string;
112
+ cssLineHeight: string;
75
113
  };
76
114
  };
@@ -1,29 +1,40 @@
1
1
  export declare class CuraHeading {
2
2
  /**
3
- * Heading level for semantics.
4
- * Values: 1(default)-6.
3
+ * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
4
+ * Values: 1(default) to 6.
5
5
  */
6
- level: number;
6
+ level: 1 | 2 | 3 | 4 | 5 | 6;
7
7
  /**
8
8
  * Heading style size.
9
- * Values: small | regular(default) | large.
9
+ * Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
10
10
  */
11
- size: string;
11
+ size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
12
12
  /**
13
- * Heading font weight.
14
- * Values: regular(default) | bold.
13
+ * Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
14
+ * Values: regular (default) | bold.
15
15
  */
16
- weight: string;
16
+ weight: 'regular' | 'bold';
17
17
  /**
18
- * Apply light color to text in dark background.
19
- * Values: boolean.
20
- */
21
- inverted: boolean;
22
- /**
23
- * Apply base system color to elements like <a> and <abbr>.
24
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
18
+ * Apply design system color to interactive elements like <a> and <abbr> inside the text.
19
+ * Values: Color from design system scheme. Default to 'accent-dark'.
25
20
  */
26
21
  spotColor: string;
22
+ /**
23
+ * Text color.
24
+ * Values: Color from design system scheme. Default to the font color from the theme.
25
+ */
26
+ color: string;
27
+ handleChangeColor(): void;
28
+ /**
29
+ * CSS margin-block property values.
30
+ * Default to 1.25em
31
+ */
32
+ marginBlock: string;
33
+ /**
34
+ * CSS line-height property values.
35
+ * Default to 140%
36
+ */
37
+ lineHeight: string;
27
38
  /**
28
39
  * Host element <cura-heading>
29
40
  */
@@ -32,12 +43,18 @@ export declare class CuraHeading {
32
43
  * Internal Props
33
44
  */
34
45
  weights: any;
35
- styles: any;
46
+ fontSizeBase: string;
47
+ styles: {};
48
+ theme: import("../../../api/cura-api.type").APIThemeFunctions;
36
49
  connectedCallback(): void;
37
50
  getClasses(): {};
38
51
  setFontProperties(): void;
52
+ hostCSSProperties(): {
53
+ '--margin-block': string;
54
+ '--font-size-base': string;
55
+ '--line-height': string;
56
+ };
39
57
  setColors(): void;
40
- setHostProperty(prop: string, value: string): void;
41
58
  getHeadingTag(): any;
42
59
  render(): any;
43
60
  }
@@ -11,8 +11,11 @@ declare const _default: {
11
11
  description: string;
12
12
  name: string;
13
13
  };
14
- inverted: {
15
- control: string;
14
+ size: {
15
+ control: {
16
+ type: string;
17
+ };
18
+ options: string[];
16
19
  description: string;
17
20
  table: {
18
21
  category: string;
@@ -21,7 +24,7 @@ declare const _default: {
21
24
  };
22
25
  };
23
26
  };
24
- size: {
27
+ weight: {
25
28
  control: {
26
29
  type: string;
27
30
  };
@@ -34,7 +37,7 @@ declare const _default: {
34
37
  };
35
38
  };
36
39
  };
37
- weight: {
40
+ color: {
38
41
  control: {
39
42
  type: string;
40
43
  };
@@ -53,6 +56,7 @@ declare const _default: {
53
56
  };
54
57
  options: string[];
55
58
  description: string;
59
+ name: string;
56
60
  table: {
57
61
  category: string;
58
62
  defaultValue: {
@@ -68,6 +72,50 @@ declare const _default: {
68
72
  step: number;
69
73
  };
70
74
  description: string;
75
+ table: {
76
+ category: string;
77
+ defaultValue: {
78
+ summary: number;
79
+ };
80
+ };
81
+ };
82
+ marginBlock: {
83
+ control: string;
84
+ description: string;
85
+ name: string;
86
+ table: {
87
+ category: string;
88
+ defaultValue: {
89
+ summary: string;
90
+ };
91
+ };
92
+ };
93
+ lineHeight: {
94
+ control: string;
95
+ description: string;
96
+ name: string;
97
+ table: {
98
+ category: string;
99
+ defaultValue: {
100
+ summary: string;
101
+ };
102
+ };
103
+ };
104
+ cssMarginBlock: {
105
+ control: string;
106
+ description: string;
107
+ name: string;
108
+ table: {
109
+ category: string;
110
+ defaultValue: {
111
+ summary: string;
112
+ };
113
+ };
114
+ };
115
+ cssLineHeight: {
116
+ control: string;
117
+ description: string;
118
+ name: string;
71
119
  table: {
72
120
  category: string;
73
121
  defaultValue: {
@@ -83,8 +131,12 @@ export declare const Heading: {
83
131
  label: string;
84
132
  size: string;
85
133
  weight: string;
86
- level: number;
134
+ level: string;
135
+ color: string;
87
136
  spotColor: string;
88
- inverted: boolean;
137
+ marginBlock: string;
138
+ lineHeight: string;
139
+ cssMarginBlock: string;
140
+ cssLineHeight: string;
89
141
  };
90
142
  };
@@ -1,24 +1,30 @@
1
1
  export declare class CuraParagraph {
2
2
  /**
3
3
  * Set size of body text.
4
- * Values: regular (default) | large | small | caption.
4
+ * Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
5
5
  */
6
- size: 'regular' | 'large' | 'small' | 'caption';
6
+ size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
7
7
  /**
8
- * Apply light color to text in dark background.
9
- * Values: boolean.
10
- */
11
- inverted: boolean;
12
- /**
13
- * Apply base system color to elements like <a> and <abbr>.
14
- * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
8
+ * Apply design system color to interactive elements like <a> and <abbr> inside the text.
9
+ * Values: Color from design system scheme. Default to 'accent-dark'.
15
10
  */
16
11
  spotColor: string;
17
12
  /**
18
- * Color base from color scheme. Default: theme font color.
13
+ * Text color.
14
+ * Values: Color from design system scheme. Default to the font color from the theme.
19
15
  */
20
- color: any;
16
+ color: string;
21
17
  handleChangeColor(): void;
18
+ /**
19
+ * CSS margin-block property values.
20
+ * Default to 1.25em
21
+ */
22
+ marginBlock: string;
23
+ /**
24
+ * CSS line-height property values.
25
+ * Default to 140%
26
+ */
27
+ lineHeight: string;
22
28
  /**
23
29
  * Host element <cura-paragraph>
24
30
  */
@@ -27,11 +33,17 @@ export declare class CuraParagraph {
27
33
  * Internal Props
28
34
  */
29
35
  weights: any;
36
+ fontSizeBase: string;
30
37
  styles: {};
38
+ theme: import("../../../api/cura-api.type").APIThemeFunctions;
31
39
  connectedCallback(): void;
32
40
  setsizeClass(): {};
33
41
  setFontProperties(): void;
34
42
  setColors(): void;
35
- setHostProperty(prop: string, value: string): void;
43
+ hostCSSProperties(): {
44
+ '--margin-block': string;
45
+ '--font-size-base': string;
46
+ '--line-height': string;
47
+ };
36
48
  render(): any;
37
49
  }
@@ -11,8 +11,11 @@ declare const _default: {
11
11
  description: string;
12
12
  name: string;
13
13
  };
14
- inverted: {
15
- control: string;
14
+ size: {
15
+ control: {
16
+ type: string;
17
+ };
18
+ options: string[];
16
19
  description: string;
17
20
  table: {
18
21
  category: string;
@@ -21,7 +24,7 @@ declare const _default: {
21
24
  };
22
25
  };
23
26
  };
24
- size: {
27
+ color: {
25
28
  control: {
26
29
  type: string;
27
30
  };
@@ -40,6 +43,7 @@ declare const _default: {
40
43
  };
41
44
  options: string[];
42
45
  description: string;
46
+ name: string;
43
47
  table: {
44
48
  category: string;
45
49
  defaultValue: {
@@ -47,12 +51,43 @@ declare const _default: {
47
51
  };
48
52
  };
49
53
  };
50
- color: {
51
- control: {
52
- type: string;
54
+ marginBlock: {
55
+ control: string;
56
+ description: string;
57
+ name: string;
58
+ table: {
59
+ category: string;
60
+ defaultValue: {
61
+ summary: string;
62
+ };
53
63
  };
54
- options: string[];
64
+ };
65
+ lineHeight: {
66
+ control: string;
55
67
  description: string;
68
+ name: string;
69
+ table: {
70
+ category: string;
71
+ defaultValue: {
72
+ summary: string;
73
+ };
74
+ };
75
+ };
76
+ cssMarginBlock: {
77
+ control: string;
78
+ description: string;
79
+ name: string;
80
+ table: {
81
+ category: string;
82
+ defaultValue: {
83
+ summary: string;
84
+ };
85
+ };
86
+ };
87
+ cssLineHeight: {
88
+ control: string;
89
+ description: string;
90
+ name: string;
56
91
  table: {
57
92
  category: string;
58
93
  defaultValue: {
@@ -67,8 +102,11 @@ export declare const Paragraph: {
67
102
  args: {
68
103
  label: string;
69
104
  size: string;
70
- spotColor: string;
71
- inverted: boolean;
72
105
  color: string;
106
+ spotColor: string;
107
+ marginBlock: string;
108
+ lineHeight: string;
109
+ cssMarginBlock: string;
110
+ cssLineHeight: string;
73
111
  };
74
112
  };