energy-components 1.0.4 → 1.1.1
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.
- package/dist/components/index.es.js +25 -22
- package/dist/components/modal.es.js +58 -33
- package/dist/components/sidebar.es.js +104 -0
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/divider.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/sidebar.css +1 -0
- package/dist/components/style/switch.css +1 -1
- package/dist/composables/index.es.js +37 -0
- package/dist/energy-components.es.js +1750 -1624
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +49 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +34 -0
- package/dist/types/src/composables/breakpoints.d.ts +5 -0
- package/dist/types/src/composables/index.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -2
|
@@ -25,3 +25,4 @@ export { default as RDSInfoBox } from './feedback/info-box/info-box.vue';
|
|
|
25
25
|
export { default as RDSModal } from './overlay/modal/modal.vue';
|
|
26
26
|
export { default as RDSOverlay } from './overlay/overlay/overlay.vue';
|
|
27
27
|
export { default as RDSTooltip } from './overlay/tooltip/tooltip.vue';
|
|
28
|
+
export { default as RDSSidebar } from './layout/sidebar/sidebar.vue';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare var __VLS_0: {};
|
|
2
|
+
declare var __VLS_inheritedAttrs: {};
|
|
3
|
+
declare const __VLS_refs: {
|
|
4
|
+
sidebar: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_templateResult: {
|
|
7
|
+
slots: {
|
|
8
|
+
content?(_: typeof __VLS_0): any;
|
|
9
|
+
collapsed?(_: {}): any;
|
|
10
|
+
expanded?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
17
|
+
/**
|
|
18
|
+
* Muestra el estado actual del sidebar.
|
|
19
|
+
*/
|
|
20
|
+
isCollapsed: () => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Abre el sidebar.
|
|
23
|
+
*/
|
|
24
|
+
openSidebar: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Cierra el sidebar.
|
|
27
|
+
*/
|
|
28
|
+
closeSidebar: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Cambia el estado del sidebar.
|
|
31
|
+
*/
|
|
32
|
+
toogleSidebar: () => void;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
sidebarChange: (isCollapsed: boolean) => void;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
36
|
+
onSidebarChange?: ((isCollapsed: boolean) => any) | undefined;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
41
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
42
|
+
expose?: (exposed: infer E) => void;
|
|
43
|
+
} ? E : T[K]) | null;
|
|
44
|
+
} : never;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -130,6 +130,22 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
130
130
|
type: BooleanConstructor;
|
|
131
131
|
default: boolean;
|
|
132
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
* Ancho máximo del modal en dispositivos de escritorio.
|
|
135
|
+
*/
|
|
136
|
+
maxWidth: {
|
|
137
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
138
|
+
default: number;
|
|
139
|
+
validator: (value: string | number) => boolean;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Ancho del modal en dispositivos de escritorio.
|
|
143
|
+
*/
|
|
144
|
+
width: {
|
|
145
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
146
|
+
default: number;
|
|
147
|
+
validator: (value: string | number) => boolean;
|
|
148
|
+
};
|
|
133
149
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
134
150
|
onCloseRequest: () => void;
|
|
135
151
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -164,13 +180,31 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
164
180
|
type: BooleanConstructor;
|
|
165
181
|
default: boolean;
|
|
166
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Ancho máximo del modal en dispositivos de escritorio.
|
|
185
|
+
*/
|
|
186
|
+
maxWidth: {
|
|
187
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
188
|
+
default: number;
|
|
189
|
+
validator: (value: string | number) => boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Ancho del modal en dispositivos de escritorio.
|
|
193
|
+
*/
|
|
194
|
+
width: {
|
|
195
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
196
|
+
default: number;
|
|
197
|
+
validator: (value: string | number) => boolean;
|
|
198
|
+
};
|
|
167
199
|
}>> & {
|
|
168
200
|
onOnCloseRequest?: (() => any) | undefined;
|
|
169
201
|
}, {
|
|
170
202
|
open: boolean;
|
|
203
|
+
width: string | number;
|
|
171
204
|
teleport: string;
|
|
172
205
|
showClose: boolean;
|
|
173
206
|
preventClose: boolean;
|
|
207
|
+
maxWidth: string | number;
|
|
174
208
|
}, {}>;
|
|
175
209
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
176
210
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './breakpoints';
|