energy-components 1.1.2-beta.1 → 1.1.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.
- package/dist/components/accordion.es.js +11 -11
- package/dist/components/button.es.js +10 -11
- package/dist/components/card.es.js +21 -9
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/datepicker.es.js +2008 -2008
- package/dist/components/dropdown.es.js +97 -97
- package/dist/components/{icon-svg-CEZ-L3iv.js → icon-svg-GoL3_ayS.js} +699 -665
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +29 -26
- package/dist/components/modal.es.js +28 -26
- package/dist/components/multiselect.es.js +2 -2
- package/dist/components/overlay.es.js +3 -3
- package/dist/components/persistentToast.es.js +8 -8
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/sidebar.es.js +11 -11
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +27 -27
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +77 -75
- package/dist/components/textField.es.js +62 -59
- package/dist/components/tooltip.es.js +262 -259
- package/dist/energy-components.es.js +4600 -4542
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +4 -4
- package/dist/types/src/components/buttons/button/button.vue.d.ts +11 -20
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +4 -4
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +20 -24
- package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +8 -15
- package/dist/types/src/components/content/card/card.vue.d.ts +26 -15
- package/dist/types/src/components/content/divider/divider.vue.d.ts +4 -4
- package/dist/types/src/components/content/tag/tag.vue.d.ts +4 -4
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +13 -19
- package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +1 -1
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +4 -4
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +13 -20
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +26 -36
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +13 -20
- package/dist/types/src/components/input/switch/switch.vue.d.ts +13 -19
- package/dist/types/src/components/input/text-area/text-area.vue.d.ts +16 -25
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +15 -23
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +16 -21
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/link/link.vue.d.ts +11 -19
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -27
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +92 -58
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +11 -18
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +19 -22
- package/dist/types/src/composables/breakpoints.d.ts +1 -1
- package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, toRefs as D, ref as l, watch as N, nextTick as R, inject as
|
|
2
|
-
import { I as E } from "./icon-svg-
|
|
1
|
+
import { defineComponent as B, toRefs as D, ref as l, watch as N, nextTick as R, inject as _, onMounted as V, onBeforeUnmount as q, openBlock as v, createElementBlock as w, createElementVNode as n, toDisplayString as h, unref as d, createBlock as H, mergeProps as I, createCommentVNode as P, createVNode as T, normalizeClass as y, renderSlot as j, createTextVNode as A } from "vue";
|
|
2
|
+
import { I as E } from "./icon-svg-GoL3_ayS.js";
|
|
3
3
|
import O from "./tag.es.js";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ B({
|
|
@@ -50,9 +50,9 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
50
50
|
i.value.style.maxHeight = t.value ? `${e}px` : "0px";
|
|
51
51
|
}, r = (e) => {
|
|
52
52
|
e === void 0 ? t.value = !t.value : t.value = e, x("update:open", t.value), S();
|
|
53
|
-
}, p = () => {
|
|
54
|
-
r(!0);
|
|
55
53
|
}, u = () => {
|
|
54
|
+
r(!0);
|
|
55
|
+
}, p = () => {
|
|
56
56
|
r(!1);
|
|
57
57
|
};
|
|
58
58
|
N(
|
|
@@ -62,12 +62,12 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
62
62
|
}),
|
|
63
63
|
{ immediate: !0 }
|
|
64
64
|
);
|
|
65
|
-
const m =
|
|
65
|
+
const m = _("registerRDSAccordionChild"), f = _("unregisterRDSAccordionChild");
|
|
66
66
|
return V(() => {
|
|
67
67
|
m && m({
|
|
68
68
|
id: o.id,
|
|
69
|
-
open:
|
|
70
|
-
close:
|
|
69
|
+
open: u,
|
|
70
|
+
close: p
|
|
71
71
|
});
|
|
72
72
|
}), q(() => {
|
|
73
73
|
f && f(o.id);
|
|
@@ -75,19 +75,19 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
75
75
|
/**
|
|
76
76
|
* Abre el panel.
|
|
77
77
|
*/
|
|
78
|
-
openPanel:
|
|
78
|
+
openPanel: u,
|
|
79
79
|
/**
|
|
80
80
|
* Cierra el panel.
|
|
81
81
|
*/
|
|
82
|
-
closePanel:
|
|
83
|
-
}), (e, g) => (
|
|
82
|
+
closePanel: p
|
|
83
|
+
}), (e, g) => (v(), w("div", b, [
|
|
84
84
|
n("div", {
|
|
85
85
|
class: "rds-e-accordion-title_container",
|
|
86
86
|
onClick: g[0] || (g[0] = () => r())
|
|
87
87
|
}, [
|
|
88
88
|
n("span", z, h(c.title), 1),
|
|
89
89
|
n("div", M, [
|
|
90
|
-
d(a) && d(a).icon ? (
|
|
90
|
+
d(a) && d(a).icon ? (v(), H(O, I({
|
|
91
91
|
key: 0,
|
|
92
92
|
class: "rds-e-accordion-title_tag"
|
|
93
93
|
}, d(a), { small: "" }), null, 16)) : P("", !0),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, toRefs as I, computed as l, openBlock as v, createElementBlock as S, unref as s, normalizeClass as m, createBlock as x, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as V } from "vue";
|
|
2
|
-
import { I as E } from "./icon-svg-
|
|
2
|
+
import { I as E } from "./icon-svg-GoL3_ayS.js";
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-btn__text" }, R = /* @__PURE__ */ B({
|
|
5
5
|
__name: "button",
|
|
@@ -47,7 +47,6 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
47
47
|
variant: {
|
|
48
48
|
type: String,
|
|
49
49
|
default: "primary",
|
|
50
|
-
required: !0,
|
|
51
50
|
validator(e) {
|
|
52
51
|
const t = ["primary", "secondary", "ghost"].includes(e);
|
|
53
52
|
return t || console.info(
|
|
@@ -101,7 +100,7 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
101
100
|
setup(e) {
|
|
102
101
|
const t = e, {
|
|
103
102
|
text: o,
|
|
104
|
-
icon:
|
|
103
|
+
icon: n,
|
|
105
104
|
type: r,
|
|
106
105
|
variant: i,
|
|
107
106
|
small: f,
|
|
@@ -110,13 +109,13 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
110
109
|
inverse: d,
|
|
111
110
|
revertIcon: _,
|
|
112
111
|
loading: p
|
|
113
|
-
} = I(t), c = l(() => p.value ? "loading" :
|
|
114
|
-
const
|
|
115
|
-
return i.value &&
|
|
112
|
+
} = I(t), c = l(() => p.value ? "loading" : n != null && n.value ? n == null ? void 0 : n.value : ""), h = l(() => r.value && ["button", "submit", "reset"].includes(r.value) ? r.value : "button"), b = l(() => ["primary", "secondary", "ghost"].includes(i.value) ? i.value : "primary"), g = l(() => {
|
|
113
|
+
const a = ["rds-e-btn"];
|
|
114
|
+
return i.value && a.push(`rds-e-btn--${b.value}`), d.value && a.push(`rds-e-btn--${b.value}-inverse`), c.value && a.push(
|
|
116
115
|
o != null && o.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
|
|
117
|
-
), f.value &&
|
|
116
|
+
), f.value && a.push("rds-e-btn--small"), _.value && a.push("rds-e-btn--revert"), u.value && a.push("rds-e-style-state-disabled"), p.value && a.push("rds-e-btn--loading"), y.value && a.push("rds-e-btn--mobile-width"), a.join(" ");
|
|
118
117
|
});
|
|
119
|
-
return (
|
|
118
|
+
return (a, W) => (v(), S("button", {
|
|
120
119
|
type: h.value,
|
|
121
120
|
disabled: s(u),
|
|
122
121
|
class: m(g.value)
|
|
@@ -132,13 +131,13 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
132
131
|
"aria-hidden": "true"
|
|
133
132
|
}, null, 8, ["name", "small", "class"])) : k("", !0),
|
|
134
133
|
$("span", D, [
|
|
135
|
-
C(
|
|
134
|
+
C(a.$slots, "default", {}, () => [
|
|
136
135
|
N(V(s(o)), 1)
|
|
137
136
|
], !0)
|
|
138
137
|
])
|
|
139
138
|
], 10, w));
|
|
140
139
|
}
|
|
141
|
-
}),
|
|
140
|
+
}), T = /* @__PURE__ */ L(R, [["__scopeId", "data-v-a17b5b56"]]);
|
|
142
141
|
export {
|
|
143
|
-
|
|
142
|
+
T as default
|
|
144
143
|
};
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as
|
|
1
|
+
import { defineComponent as s, openBlock as r, createElementBlock as o, normalizeClass as a, renderSlot as n } from "vue";
|
|
2
2
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './style/card.css';const d =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import './style/card.css';const d = /* @__PURE__ */ s({
|
|
4
|
+
__name: "card",
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Clase personalizada.
|
|
8
|
+
*/
|
|
9
|
+
customClass: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (t, l) => (r(), o("div", {
|
|
16
|
+
class: a(["rds-e-card", e.customClass])
|
|
17
|
+
}, [
|
|
18
|
+
n(t.$slots, "default", {}, void 0, !0)
|
|
19
|
+
], 2));
|
|
20
|
+
}
|
|
21
|
+
}), f = /* @__PURE__ */ c(d, [["__scopeId", "data-v-f2e83835"]]);
|
|
10
22
|
export {
|
|
11
|
-
|
|
23
|
+
f as default
|
|
12
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, openBlock as b, createElementBlock as g, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, toDisplayString as C, createBlock as E, createCommentVNode as L } from "vue";
|
|
2
|
-
import { I as V } from "./icon-svg-
|
|
2
|
+
import { I as V } from "./icon-svg-GoL3_ayS.js";
|
|
3
3
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/checkbox.css';const N = ["id", "checked", "aria-label", "required", "disabled"], q = ["for"], D = /* @__PURE__ */ x({
|
|
5
5
|
__name: "checkbox",
|