energy-components 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/components/accordion.es.js +8 -8
  2. package/dist/components/button.es.js +11 -11
  3. package/dist/components/card.es.js +12 -0
  4. package/dist/components/checkbox.es.js +7 -7
  5. package/dist/components/datepicker.es.js +8208 -0
  6. package/dist/components/dropdown.es.js +37 -29
  7. package/dist/components/{icon-svg-Cpx09myr.js → icon-svg-7Vih8GMM.js} +3 -2
  8. package/dist/components/iconList.es.js +5 -5
  9. package/dist/components/iconSvg.es.js +1 -1
  10. package/dist/components/index.es.js +84 -69
  11. package/dist/components/link.es.js +9 -9
  12. package/dist/components/modal.es.js +96 -0
  13. package/dist/components/overlay.es.js +31 -0
  14. package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js +18 -0
  15. package/dist/components/radioButton.es.js +32 -41
  16. package/dist/components/radioGroup.es.js +4 -0
  17. package/dist/components/style/card.css +1 -0
  18. package/dist/components/style/datepicker.css +1 -0
  19. package/dist/components/style/dropdown.css +1 -1
  20. package/dist/components/style/icon-svg.css +1 -1
  21. package/dist/components/style/modal.css +1 -0
  22. package/dist/components/style/overlay.css +1 -0
  23. package/dist/components/style/radioButton.css +1 -1
  24. package/dist/components/style/textField.css +1 -1
  25. package/dist/components/switch.es.js +7 -7
  26. package/dist/components/tabBar.es.js +12 -12
  27. package/dist/components/tag.es.js +5 -5
  28. package/dist/components/textArea.es.js +19 -19
  29. package/dist/components/textField.es.js +46 -44
  30. package/dist/components/tooltip.es.js +52 -52
  31. package/dist/energy-components.es.js +10063 -1720
  32. package/dist/energy-components.umd.js +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/src/components/content/card/card.vue.d.ts +24 -0
  35. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +2 -0
  36. package/dist/types/src/components/index.d.ts +5 -0
  37. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +15 -0
  38. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +2 -21
  39. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +40 -0
  40. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +2 -2
  41. package/dist/types/src/components/navigation/link/link.vue.d.ts +1 -1
  42. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +186 -0
  43. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +46 -0
  44. package/dist/types/src/helpers/mobileMockup.vue.d.ts +9 -0
  45. package/dist/types/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +3 -2
@@ -0,0 +1,24 @@
1
+ declare var __VLS_0: {};
2
+ declare var __VLS_inheritedAttrs: {};
3
+ declare const __VLS_refs: {};
4
+ declare const __VLS_templateResult: {
5
+ slots: {
6
+ default?(_: typeof __VLS_0): any;
7
+ };
8
+ refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
9
+ attrs: Partial<typeof __VLS_inheritedAttrs>;
10
+ };
11
+ type __VLS_Slots = typeof __VLS_templateResult['slots'];
12
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
14
+ export default _default;
15
+ type __VLS_PickRefsExpose<T> = T extends object ? {
16
+ [K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
17
+ expose?: (exposed: infer E) => void;
18
+ } ? E : T[K]) | null;
19
+ } : never;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -24,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  };
25
25
  /**
26
26
  * Permite establecer un color personalizado para el icono.
27
+ * Acepta un valor de color en CSS, como '#333', 'red' o 'var(--rds-color-turquoise-70)'.
27
28
  */
28
29
  color: {
29
30
  type: StringConstructor;
@@ -55,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
55
56
  };
56
57
  /**
57
58
  * Permite establecer un color personalizado para el icono.
59
+ * Acepta un valor de color en CSS, como '#333', 'red' o 'var(--rds-color-turquoise-70)'.
58
60
  */
59
61
  color: {
60
62
  type: StringConstructor;
@@ -7,14 +7,19 @@ export { default as RDSTextField } from './input/text-field/text-field.vue';
7
7
  export { default as RDSTextArea } from './input/text-area/text-area.vue';
8
8
  export { default as RDSSwitch } from './input/switch/switch.vue';
9
9
  export { default as RDSRadioButton } from './input/radio-button/radio-button.vue';
10
+ export { default as RDSRadioGroup } from './input/radio-button/radio-group.vue';
10
11
  export { default as RDSDropdown } from './input/dropdown/dropdown.vue';
12
+ export { default as RDSDatePicker } from './input/datepicker/datepicker.vue';
11
13
  export { default as RDSTag } from './content/tag/tag.vue';
12
14
  export { default as RDSAccordionGroup } from './content/acordion-group/accordion-group.vue';
13
15
  export { default as RDSAccordion } from './content/accordion/accordion.vue';
14
16
  export { default as RDSDivider } from './content/divider/divider.vue';
17
+ export { default as RDSCard } from './content/card/card.vue';
15
18
  export { default as RDSLink } from './navigation/link/link.vue';
16
19
  export { default as RDSBreadcrumbs } from './navigation/breadcrumbs/breadcrumbs.vue';
17
20
  export { default as RDSTabBar } from './navigation/tab-bar/tab-bar.vue';
18
21
  export { default as RDSPagination } from './navigation/pagination/pagination.vue';
19
22
  export { default as RDSIndicator } from './feedback/indicator/indicator.vue';
23
+ export { default as RDSModal } from './overlay/modal/modal.vue';
24
+ export { default as RDSOverlay } from './overlay/overlay/overlay.vue';
20
25
  export { default as RDSTooltip } from './overlay/tooltip/tooltip.vue';
@@ -113,6 +113,13 @@ declare const __VLS_component: import("vue").DefineComponent<{
113
113
  type: BooleanConstructor;
114
114
  default: boolean;
115
115
  };
116
+ /**
117
+ * Texto de ayuda a mostrar debajo del campo de entrada.
118
+ */
119
+ helperText: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
116
123
  /**
117
124
  * Indica la cantidad maxima de elementos seleccionados a mostrar en el imput.
118
125
  */
@@ -220,6 +227,13 @@ declare const __VLS_component: import("vue").DefineComponent<{
220
227
  type: BooleanConstructor;
221
228
  default: boolean;
222
229
  };
230
+ /**
231
+ * Texto de ayuda a mostrar debajo del campo de entrada.
232
+ */
233
+ helperText: {
234
+ type: StringConstructor;
235
+ default: string;
236
+ };
223
237
  /**
224
238
  * Indica la cantidad maxima de elementos seleccionados a mostrar en el imput.
225
239
  */
@@ -250,6 +264,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
250
264
  small: boolean;
251
265
  disabled: boolean;
252
266
  helper: boolean;
267
+ helperText: string;
253
268
  multiple: boolean;
254
269
  closeOnSelect: boolean;
255
270
  showRadio: boolean;
@@ -42,16 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  type: BooleanConstructor;
43
43
  default: boolean;
44
44
  };
45
- /**
46
- * <span>Estado del radio button</span>
47
- */
48
- checked: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
- "update:modelValue": (event: string | number | boolean) => void;
54
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
46
  /**
56
47
  * <span>Opción del radio button</span>
57
48
  */
@@ -95,20 +86,10 @@ declare const _default: import("vue").DefineComponent<{
95
86
  type: BooleanConstructor;
96
87
  default: boolean;
97
88
  };
98
- /**
99
- * <span>Estado del radio button</span>
100
- */
101
- checked: {
102
- type: BooleanConstructor;
103
- default: boolean;
104
- };
105
- }>> & {
106
- "onUpdate:modelValue"?: ((event: string | number | boolean) => any) | undefined;
107
- }, {
89
+ }>>, {
108
90
  error: boolean;
109
91
  label: string;
110
92
  icon: string;
111
93
  disabled: boolean;
112
- checked: boolean;
113
94
  }, {}>;
114
95
  export default _default;
@@ -0,0 +1,40 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue?: string | number | null;
3
+ };
4
+ declare var __VLS_0: {};
5
+ declare var __VLS_inheritedAttrs: {};
6
+ declare const __VLS_refs: {};
7
+ declare const __VLS_templateResult: {
8
+ slots: {
9
+ default?(_: typeof __VLS_0): any;
10
+ };
11
+ refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
12
+ attrs: Partial<typeof __VLS_inheritedAttrs>;
13
+ };
14
+ type __VLS_Slots = typeof __VLS_templateResult['slots'];
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ "update:modelValue": (modelValue: string | number | null) => void;
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
18
+ "onUpdate:modelValue"?: ((modelValue: string | number | null) => any) | undefined;
19
+ }, {}, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
21
+ export default _default;
22
+ type __VLS_PickRefsExpose<T> = T extends object ? {
23
+ [K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
24
+ expose?: (exposed: infer E) => void;
25
+ } ? E : T[K]) | null;
26
+ } : never;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -1,12 +1,12 @@
1
1
  declare var __VLS_0: {};
2
- declare var __VLS_12: {};
2
+ declare var __VLS_14: {};
3
3
  declare var __VLS_inheritedAttrs: {};
4
4
  declare const __VLS_refs: {};
5
5
  declare const __VLS_templateResult: {
6
6
  slots: {
7
7
  "left-icon"?(_: typeof __VLS_0): any;
8
8
  "right-icon"?(_: {}): any;
9
- "helper-text"?(_: typeof __VLS_12): any;
9
+ "helper-text"?(_: typeof __VLS_14): any;
10
10
  };
11
11
  refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
12
12
  attrs: Partial<typeof __VLS_inheritedAttrs>;
@@ -155,11 +155,11 @@ declare const __VLS_component: import("vue").DefineComponent<{
155
155
  icon: Record<string, any>;
156
156
  inverse: boolean;
157
157
  disabled: boolean;
158
+ right: boolean;
158
159
  tag: string;
159
160
  to: string;
160
161
  underline: boolean;
161
162
  arrow: boolean;
162
- right: boolean;
163
163
  }, {}>;
164
164
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
165
165
  export default _default;
@@ -0,0 +1,186 @@
1
+ declare var __VLS_inheritedAttrs: {};
2
+ declare const __VLS_refs: {
3
+ overlay: NonNullable<{
4
+ attrs?: any;
5
+ slots?: (Readonly<{
6
+ [name: string]: import("vue").Slot<any> | undefined;
7
+ }> & {
8
+ default?(_: {}): any;
9
+ }) | undefined;
10
+ emit?: ((event: string, ...args: any[]) => void) | undefined;
11
+ } & {
12
+ props?: (Partial<{
13
+ teleport: string;
14
+ }> & Omit<{
15
+ readonly teleport: string;
16
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
17
+ teleport: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ required: true;
21
+ };
22
+ }>>, "teleport"> & Record<string, unknown>) | undefined;
23
+ expose?(exposed: {
24
+ $: import("vue").ComponentInternalInstance;
25
+ $data: {};
26
+ $props: Partial<{
27
+ teleport: string;
28
+ }> & Omit<{
29
+ readonly teleport: string;
30
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
31
+ teleport: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ required: true;
35
+ };
36
+ }>>, "teleport">;
37
+ $attrs: {
38
+ [x: string]: unknown;
39
+ };
40
+ $refs: {
41
+ [x: string]: unknown;
42
+ };
43
+ $slots: Readonly<{
44
+ [name: string]: import("vue").Slot<any> | undefined;
45
+ }>;
46
+ $root: import("vue").ComponentPublicInstance | null;
47
+ $parent: import("vue").ComponentPublicInstance | null;
48
+ $emit: (event: string, ...args: any[]) => void;
49
+ $el: any;
50
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
51
+ teleport: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ required: true;
55
+ };
56
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
57
+ teleport: string;
58
+ }, {}, string, {}> & {
59
+ beforeCreate?: (() => void) | (() => void)[];
60
+ created?: (() => void) | (() => void)[];
61
+ beforeMount?: (() => void) | (() => void)[];
62
+ mounted?: (() => void) | (() => void)[];
63
+ beforeUpdate?: (() => void) | (() => void)[];
64
+ updated?: (() => void) | (() => void)[];
65
+ activated?: (() => void) | (() => void)[];
66
+ deactivated?: (() => void) | (() => void)[];
67
+ beforeDestroy?: (() => void) | (() => void)[];
68
+ beforeUnmount?: (() => void) | (() => void)[];
69
+ destroyed?: (() => void) | (() => void)[];
70
+ unmounted?: (() => void) | (() => void)[];
71
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
72
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
73
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
74
+ };
75
+ $forceUpdate: () => void;
76
+ $nextTick: typeof import("vue").nextTick;
77
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
78
+ } & Omit<Readonly<import("vue").ExtractPropTypes<{
79
+ teleport: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ required: true;
83
+ };
84
+ }>>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
85
+ $slots: {
86
+ default?(_: {}): any;
87
+ };
88
+ }): void;
89
+ }>;
90
+ };
91
+ declare const __VLS_templateResult: {
92
+ slots: {
93
+ header?(_: {}): any;
94
+ body?(_: {}): any;
95
+ footer?(_: {}): any;
96
+ };
97
+ refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
98
+ attrs: Partial<typeof __VLS_inheritedAttrs>;
99
+ };
100
+ type __VLS_Slots = typeof __VLS_templateResult['slots'];
101
+ declare const __VLS_component: import("vue").DefineComponent<{
102
+ /**
103
+ * Define el estado del modal
104
+ */
105
+ open: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ /**
110
+ * Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
111
+ * Si no se especifica se montará en el `body`
112
+ * [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
113
+ */
114
+ teleport: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ required: true;
118
+ };
119
+ /**
120
+ * Indica si se muestra el botón de cerrar, de la parte superior derecha
121
+ */
122
+ showClose: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ /**
127
+ * Evita que se cierre el modal al clickar en el overlay
128
+ */
129
+ preventClose: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
134
+ onCloseRequest: () => void;
135
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
136
+ /**
137
+ * Define el estado del modal
138
+ */
139
+ open: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ /**
144
+ * Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
145
+ * Si no se especifica se montará en el `body`
146
+ * [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
147
+ */
148
+ teleport: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ required: true;
152
+ };
153
+ /**
154
+ * Indica si se muestra el botón de cerrar, de la parte superior derecha
155
+ */
156
+ showClose: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ /**
161
+ * Evita que se cierre el modal al clickar en el overlay
162
+ */
163
+ preventClose: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ }>> & {
168
+ onOnCloseRequest?: (() => any) | undefined;
169
+ }, {
170
+ open: boolean;
171
+ teleport: string;
172
+ showClose: boolean;
173
+ preventClose: boolean;
174
+ }, {}>;
175
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
176
+ export default _default;
177
+ type __VLS_PickRefsExpose<T> = T extends object ? {
178
+ [K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
179
+ expose?: (exposed: infer E) => void;
180
+ } ? E : T[K]) | null;
181
+ } : never;
182
+ type __VLS_WithTemplateSlots<T, S> = T & {
183
+ new (): {
184
+ $slots: S;
185
+ };
186
+ };
@@ -0,0 +1,46 @@
1
+ declare var __VLS_6: {};
2
+ declare var __VLS_inheritedAttrs: {};
3
+ declare const __VLS_refs: {};
4
+ declare const __VLS_templateResult: {
5
+ slots: {
6
+ default?(_: typeof __VLS_6): any;
7
+ };
8
+ refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
9
+ attrs: Partial<typeof __VLS_inheritedAttrs>;
10
+ };
11
+ type __VLS_Slots = typeof __VLS_templateResult['slots'];
12
+ declare const __VLS_component: import("vue").DefineComponent<{
13
+ /**
14
+ * Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
15
+ * [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
16
+ */
17
+ teleport: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ required: true;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ /**
24
+ * Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
25
+ * [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
26
+ */
27
+ teleport: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ required: true;
31
+ };
32
+ }>>, {
33
+ teleport: string;
34
+ }, {}>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
36
+ export default _default;
37
+ type __VLS_PickRefsExpose<T> = T extends object ? {
38
+ [K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
39
+ expose?: (exposed: infer E) => void;
40
+ } ? E : T[K]) | null;
41
+ } : never;
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,9 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ src: string;
3
+ device: string;
4
+ $props: {
5
+ readonly src?: string | undefined;
6
+ readonly device?: string | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;