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.
- package/dist/components/accordion.es.js +8 -8
- package/dist/components/button.es.js +11 -11
- package/dist/components/card.es.js +12 -0
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/datepicker.es.js +8208 -0
- package/dist/components/dropdown.es.js +37 -29
- package/dist/components/{icon-svg-Cpx09myr.js → icon-svg-7Vih8GMM.js} +3 -2
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +84 -69
- package/dist/components/link.es.js +9 -9
- package/dist/components/modal.es.js +96 -0
- package/dist/components/overlay.es.js +31 -0
- package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js +18 -0
- package/dist/components/radioButton.es.js +32 -41
- package/dist/components/radioGroup.es.js +4 -0
- package/dist/components/style/card.css +1 -0
- package/dist/components/style/datepicker.css +1 -0
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/modal.css +1 -0
- package/dist/components/style/overlay.css +1 -0
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/switch.es.js +7 -7
- package/dist/components/tabBar.es.js +12 -12
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +19 -19
- package/dist/components/textField.es.js +46 -44
- package/dist/components/tooltip.es.js +52 -52
- package/dist/energy-components.es.js +10063 -1720
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/card/card.vue.d.ts +24 -0
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +2 -0
- package/dist/types/src/components/index.d.ts +5 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +15 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +2 -21
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +40 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/link/link.vue.d.ts +1 -1
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +186 -0
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +46 -0
- package/dist/types/src/helpers/mobileMockup.vue.d.ts +9 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as B, toRefs as D, ref as l, watch as R, nextTick as q, inject as v, onMounted as N, onBeforeUnmount as V, openBlock as _, createElementBlock as w, createElementVNode as r, toDisplayString as h, unref as d, createBlock as A, mergeProps as H, createCommentVNode as I, createVNode as P, normalizeClass as y, renderSlot as T, createTextVNode as j } from "vue";
|
|
2
|
+
import { I as E } from "./icon-svg-7Vih8GMM.js";
|
|
3
3
|
import O from "./tag.es.js";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class: "rds-accordion-title" }, L = { class: "rds-accordion-title_right" }, M = /* @__PURE__ */
|
|
5
|
+
import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class: "rds-accordion-title" }, L = { class: "rds-accordion-title_right" }, M = /* @__PURE__ */ B({
|
|
6
6
|
__name: "accordion",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -56,7 +56,7 @@ import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class
|
|
|
56
56
|
}, p = () => {
|
|
57
57
|
i(!1);
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
R(
|
|
60
60
|
() => n.open,
|
|
61
61
|
(e) => q(() => {
|
|
62
62
|
i(e);
|
|
@@ -91,8 +91,8 @@ import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class
|
|
|
91
91
|
d(a) && d(a).icon ? (_(), A(O, H({
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "rds-accordion-title_tag"
|
|
94
|
-
}, d(a), { small: "" }), null, 16)) :
|
|
95
|
-
|
|
94
|
+
}, d(a), { small: "" }), null, 16)) : I("", !0),
|
|
95
|
+
P(E, {
|
|
96
96
|
class: y(["rds-accordion-title_icon", { "rds-accordion-title_icon--open": t.value }]),
|
|
97
97
|
name: "arrow_down"
|
|
98
98
|
}, null, 8, ["class"])
|
|
@@ -108,8 +108,8 @@ import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class
|
|
|
108
108
|
ref: s,
|
|
109
109
|
class: "rds-accordion-panel_content"
|
|
110
110
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
T(e.$slots, "default", {}, () => [
|
|
112
|
+
j(h(o.content), 1)
|
|
113
113
|
], !0)
|
|
114
114
|
], 512)
|
|
115
115
|
], 2)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/button.css';const
|
|
1
|
+
import { defineComponent as B, toRefs as I, computed as l, openBlock as b, 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-7Vih8GMM.js";
|
|
3
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-btn__text" }, R = /* @__PURE__ */ B({
|
|
5
5
|
__name: "button",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -110,18 +110,18 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-bt
|
|
|
110
110
|
inverse: d,
|
|
111
111
|
revertIcon: _,
|
|
112
112
|
loading: p
|
|
113
|
-
} =
|
|
113
|
+
} = 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"), v = l(() => ["primary", "secondary", "ghost"].includes(i.value) ? i.value : "primary"), g = l(() => {
|
|
114
114
|
const a = ["rds-btn"];
|
|
115
115
|
return i.value && a.push(`rds-btn--${v.value}`), d.value && a.push(`rds-btn--${v.value}-inverse`), c.value && a.push(
|
|
116
116
|
o != null && o.value ? "rds-btn--with-icon" : "rds-btn--icon"
|
|
117
117
|
), f.value && a.push("rds-btn--small"), _.value && a.push("rds-btn--revert"), u.value && a.push("rds-style-state-disabled"), p.value && a.push("rds-btn--loading"), y.value && a.push("rds-btn--mobile-width"), a.join(" ");
|
|
118
118
|
});
|
|
119
|
-
return (a, W) => (b(),
|
|
119
|
+
return (a, W) => (b(), S("button", {
|
|
120
120
|
type: h.value,
|
|
121
121
|
disabled: s(u),
|
|
122
122
|
class: m(g.value)
|
|
123
123
|
}, [
|
|
124
|
-
c.value ? (b(),
|
|
124
|
+
c.value ? (b(), x(E, {
|
|
125
125
|
key: 0,
|
|
126
126
|
name: c.value,
|
|
127
127
|
small: s(f),
|
|
@@ -131,14 +131,14 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-bt
|
|
|
131
131
|
]]),
|
|
132
132
|
"aria-hidden": "true"
|
|
133
133
|
}, null, 8, ["name", "small", "class"])) : k("", !0),
|
|
134
|
-
$("span",
|
|
134
|
+
$("span", D, [
|
|
135
135
|
C(a.$slots, "default", {}, () => [
|
|
136
|
-
N(
|
|
136
|
+
N(V(s(o)), 1)
|
|
137
137
|
], !0)
|
|
138
138
|
])
|
|
139
|
-
], 10,
|
|
139
|
+
], 10, w));
|
|
140
140
|
}
|
|
141
|
-
}), F = /* @__PURE__ */
|
|
141
|
+
}), F = /* @__PURE__ */ L(R, [["__scopeId", "data-v-238a49e9"]]);
|
|
142
142
|
export {
|
|
143
143
|
F as default
|
|
144
144
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { openBlock as r, createElementBlock as t, renderSlot as o } from "vue";
|
|
2
|
+
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/card.css';const d = {}, s = { class: "rds-card" };
|
|
4
|
+
function n(e, a) {
|
|
5
|
+
return r(), t("div", s, [
|
|
6
|
+
o(e.$slots, "default", {}, void 0, !0)
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const l = /* @__PURE__ */ c(d, [["render", n], ["__scopeId", "data-v-522edf75"]]);
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
2
|
+
import { I as V } from "./icon-svg-7Vih8GMM.js";
|
|
3
3
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/checkbox.css';const
|
|
4
|
+
import './style/checkbox.css';const N = ["id", "checked", "aria-label", "required", "disabled"], q = ["for"], D = /* @__PURE__ */ x({
|
|
5
5
|
__name: "checkbox",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -80,7 +80,7 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
|
|
|
80
80
|
window.addEventListener("keydown", r), window.addEventListener("mousedown", i);
|
|
81
81
|
}), w(() => {
|
|
82
82
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", i);
|
|
83
|
-
}), (a,
|
|
83
|
+
}), (a, I) => (b(), g("div", {
|
|
84
84
|
class: o(["rds-checkbox__container", { "rds-checkbox__container--focused": l.value }])
|
|
85
85
|
}, [
|
|
86
86
|
n("input", {
|
|
@@ -94,7 +94,7 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
|
|
|
94
94
|
onChange: m,
|
|
95
95
|
onFocus: h,
|
|
96
96
|
onBlur: k
|
|
97
|
-
}, null, 42,
|
|
97
|
+
}, null, 42, N),
|
|
98
98
|
n("label", {
|
|
99
99
|
for: e.id.toString(),
|
|
100
100
|
class: o(["rds-checkbox__label", {
|
|
@@ -121,10 +121,10 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
|
|
|
121
121
|
}, null, 8, ["name"])) : L("", !0)
|
|
122
122
|
], 2)
|
|
123
123
|
], !0)
|
|
124
|
-
], 10,
|
|
124
|
+
], 10, q)
|
|
125
125
|
], 2));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), M = /* @__PURE__ */ _(D, [["__scopeId", "data-v-ea21fb50"]]);
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
M as default
|
|
130
130
|
};
|