energy-components 1.20.0 → 1.21.0-beta.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.
@@ -42,6 +42,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
42
42
  type: PropType<RDSTagProps>;
43
43
  default: null;
44
44
  };
45
+ /**
46
+ * Label a la derecha del título. Se muestra sólo si no hay tag.
47
+ */
48
+ label: {
49
+ type: StringConstructor;
50
+ required: false;
51
+ };
45
52
  }>, {
46
53
  /**
47
54
  * Abre el panel.
@@ -90,6 +97,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
90
97
  type: PropType<RDSTagProps>;
91
98
  default: null;
92
99
  };
100
+ /**
101
+ * Label a la derecha del título. Se muestra sólo si no hay tag.
102
+ */
103
+ label: {
104
+ type: StringConstructor;
105
+ required: false;
106
+ };
93
107
  }>> & Readonly<{
94
108
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
95
109
  }>, {
@@ -0,0 +1,119 @@
1
+ type Kind = 'numeric' | 'dot';
2
+ type SemanticColor = 'promo' | 'success' | 'error' | 'warning' | 'information';
3
+ declare var __VLS_1: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_1) => any;
6
+ };
7
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ /**
9
+ * Tipo de badge.
10
+ * `numeric` muestra un contador, `dot` solo un punto.
11
+ */
12
+ kind: {
13
+ type: () => Kind;
14
+ default: string;
15
+ validator: (v: string) => boolean;
16
+ };
17
+ /**
18
+ * Valor numérico a mostrar cuando `kind` es `numeric`.
19
+ */
20
+ value: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ validator: (v: number) => boolean;
24
+ };
25
+ /**
26
+ * Define el color semántico de fondo.
27
+ * Para el diseño inicial solo se implementa `promo` y `default`.
28
+ */
29
+ color: {
30
+ type: () => SemanticColor;
31
+ default: string;
32
+ validator: (v: string) => boolean;
33
+ };
34
+ /**
35
+ * Forza el uso de content-high en texto cuando el contraste inverse no sea suficiente.
36
+ */
37
+ forceContentHigh: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ /**
42
+ * ID para testing.
43
+ */
44
+ id: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ /**
49
+ * Mensaje alternativo accesible. Si no se provee se genera automáticamente.
50
+ */
51
+ ariaLabel: {
52
+ type: StringConstructor;
53
+ default: undefined;
54
+ };
55
+ }>, {
56
+ el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
57
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
+ /**
59
+ * Tipo de badge.
60
+ * `numeric` muestra un contador, `dot` solo un punto.
61
+ */
62
+ kind: {
63
+ type: () => Kind;
64
+ default: string;
65
+ validator: (v: string) => boolean;
66
+ };
67
+ /**
68
+ * Valor numérico a mostrar cuando `kind` es `numeric`.
69
+ */
70
+ value: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ validator: (v: number) => boolean;
74
+ };
75
+ /**
76
+ * Define el color semántico de fondo.
77
+ * Para el diseño inicial solo se implementa `promo` y `default`.
78
+ */
79
+ color: {
80
+ type: () => SemanticColor;
81
+ default: string;
82
+ validator: (v: string) => boolean;
83
+ };
84
+ /**
85
+ * Forza el uso de content-high en texto cuando el contraste inverse no sea suficiente.
86
+ */
87
+ forceContentHigh: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ /**
92
+ * ID para testing.
93
+ */
94
+ id: {
95
+ type: StringConstructor;
96
+ default: undefined;
97
+ };
98
+ /**
99
+ * Mensaje alternativo accesible. Si no se provee se genera automáticamente.
100
+ */
101
+ ariaLabel: {
102
+ type: StringConstructor;
103
+ default: undefined;
104
+ };
105
+ }>> & Readonly<{}>, {
106
+ color: SemanticColor;
107
+ id: string;
108
+ value: number;
109
+ ariaLabel: string;
110
+ kind: Kind;
111
+ forceContentHigh: boolean;
112
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
113
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
114
+ export default _default;
115
+ type __VLS_WithSlots<T, S> = T & {
116
+ new (): {
117
+ $slots: S;
118
+ };
119
+ };
@@ -31,6 +31,7 @@ export { default as RDSTabBar } from './navigation/tab-bar/tab-bar.vue';
31
31
  export { default as RDSPagination } from './navigation/pagination/pagination.vue';
32
32
  export { default as RDSDirectAccess } from './navigation/direct-access/direct-access.vue';
33
33
  export { default as RDSIndicator } from './feedback/indicator/indicator.vue';
34
+ export { default as RDSBadge } from './feedback/badge/badge.vue';
34
35
  export { default as RDSPersistentToast } from './feedback/persistent-toast/persistent-toast.vue';
35
36
  export { default as RDSSnackBar } from './feedback/snack-bar/snack-bar.vue';
36
37
  export { default as RDSInfoBox } from './feedback/info-box/info-box.vue';
@@ -81,6 +81,34 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
81
81
  type: BooleanConstructor;
82
82
  default: boolean;
83
83
  };
84
+ /**
85
+ * <span>Nombre del campo para formularios HTML.</span>
86
+ */
87
+ name: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ /**
92
+ * <span>Valor enviado en formularios cuando el checkbox está marcado.</span>
93
+ */
94
+ value: {
95
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
96
+ default: undefined;
97
+ };
98
+ /**
99
+ * <span>Indica que el checkbox es de solo lectura (no modificable por usuario).</span>
100
+ */
101
+ readonly: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ /**
106
+ * <span>Id(s) de elementos descriptivos (mensaje de error / ayuda) enlazados con <code>aria-describedby</code>.</span>
107
+ */
108
+ describedBy: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
84
112
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
85
113
  "update:modelValue": (value: boolean) => any;
86
114
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -162,11 +190,40 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
162
190
  type: BooleanConstructor;
163
191
  default: boolean;
164
192
  };
193
+ /**
194
+ * <span>Nombre del campo para formularios HTML.</span>
195
+ */
196
+ name: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ /**
201
+ * <span>Valor enviado en formularios cuando el checkbox está marcado.</span>
202
+ */
203
+ value: {
204
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
205
+ default: undefined;
206
+ };
207
+ /**
208
+ * <span>Indica que el checkbox es de solo lectura (no modificable por usuario).</span>
209
+ */
210
+ readonly: {
211
+ type: BooleanConstructor;
212
+ default: boolean;
213
+ };
214
+ /**
215
+ * <span>Id(s) de elementos descriptivos (mensaje de error / ayuda) enlazados con <code>aria-describedby</code>.</span>
216
+ */
217
+ describedBy: {
218
+ type: StringConstructor;
219
+ default: string;
220
+ };
165
221
  }>> & Readonly<{
166
222
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
167
223
  }>, {
168
224
  error: boolean;
169
225
  label: string;
226
+ name: string;
170
227
  id: string | number;
171
228
  required: boolean;
172
229
  icon: string;
@@ -176,6 +233,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
176
233
  isChecked: boolean;
177
234
  modelValue: boolean;
178
235
  indeterminate: boolean;
236
+ value: string | number | boolean;
237
+ readonly: boolean;
238
+ describedBy: string;
179
239
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
180
240
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
181
241
  export default _default;
@@ -308,8 +308,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
308
308
  icon: string;
309
309
  disabled: boolean;
310
310
  fullWidth: boolean;
311
- password: boolean;
312
311
  readonly: boolean;
312
+ password: boolean;
313
313
  rightIcon: string;
314
314
  helper: boolean;
315
315
  helperText: string;