energy-components 2.0.1 → 2.2.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.
- package/dist/components/accordion.es.js +8 -8
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-B9_PYixd.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BfTKaP_f.js} +1 -1
- package/dist/components/datepicker.es.js +323 -309
- package/dist/components/directAccess.es.js +30 -28
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +173 -159
- package/dist/components/fileUploadItem.es.js +1 -1
- package/dist/components/filterChip.es.js +1 -1
- package/dist/components/filterTag.es.js +1 -1
- package/dist/components/floating-ui.vue-DMBZhA6d.js +1153 -0
- package/dist/components/{icon-svg-Cx3PvOnQ.js → icon-svg-CW3eQRcp.js} +33 -3
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +2 -2
- package/dist/components/indicator.es.js +51 -51
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +8 -8
- package/dist/components/loader.es.js +3 -3
- package/dist/components/modal.es.js +1 -1
- package/dist/components/persistentToast.es.js +1 -1
- package/dist/components/popover.es.js +2 -2
- package/dist/components/popoverMenu.es.js +2 -2
- package/dist/components/progressBar.es.js +1 -1
- package/dist/components/quantitySelector.es.js +1 -1
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +1 -1
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/loader.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/toggle.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 +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/tableRenderer.es.js +1 -1
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +1 -1
- package/dist/components/textField.es.js +204 -145
- package/dist/components/tooltip.es.js +129 -113
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +4877 -4743
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +4 -2
- package/dist/types/src/components/feedback/loader/loader.vue.d.ts +2 -2
- package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +25 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +64 -3
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/rdsdate-picker.md +1 -0
- package/llms/rdsdropdown.md +1 -0
- package/llms/rdsindicator.md +1 -1
- package/llms/rdsloader.md +1 -1
- package/llms/rdstext-field.md +5 -0
- package/llms/rdstooltip.md +1 -1
- package/package.json +3 -3
- package/dist/components/floating-ui.vue-i4U-1c0O.js +0 -1154
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as R, toRefs as D, computed as i, openBlock as l, createBlock as
|
|
1
|
+
import { defineComponent as R, toRefs as D, computed as i, openBlock as l, createBlock as u, resolveDynamicComponent as E, unref as t, normalizeClass as j, withCtx as I, renderSlot as m, createElementVNode as c, normalizeStyle as k, createElementBlock as N, createCommentVNode as y, toDisplayString as O } from "vue";
|
|
2
2
|
import { s as T } from "./functions-D3GA3OzJ.js";
|
|
3
|
-
import { R as h } from "./icon-svg-
|
|
3
|
+
import { R as h } from "./icon-svg-CW3eQRcp.js";
|
|
4
4
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/directAccess.css';const q = { class: "rds-e-direct-access__artwork-container" }, A = ["src", "alt", "aria-hidden"], M = { class: "rds-e-direct-access__text-container" }, U = { class: "rds-e-direct-access__text" }, F = /* @__PURE__ */ R({
|
|
5
|
+
import './style/directAccess.css';const q = { class: "rds-e-direct-access__artwork-container" }, A = ["src", "alt", "aria-hidden"], M = { class: "rds-e-direct-access__text-container" }, U = { class: "rds-e-direct-access__text-content" }, F = { class: "rds-e-direct-access__text" }, G = /* @__PURE__ */ R({
|
|
6
6
|
__name: "direct-access",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -79,59 +79,61 @@ import './style/directAccess.css';const q = { class: "rds-e-direct-access__artwo
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
emits: ["click"],
|
|
82
|
-
setup(o, { emit:
|
|
83
|
-
const
|
|
82
|
+
setup(o, { emit: b }) {
|
|
83
|
+
const w = o, S = b, { text: _, layout: g, disabled: n, arrow: p, artwork: a, ariaLabel: x, linkTo: r, useRouterLink: z } = D(w), C = i(() => [
|
|
84
84
|
"rds-e-direct-access",
|
|
85
85
|
`rds-e-direct-access--${g.value}`,
|
|
86
|
-
{ "rds-e-direct-access--disabled":
|
|
87
|
-
{ "rds-e-direct-access--with-arrow":
|
|
88
|
-
]),
|
|
86
|
+
{ "rds-e-direct-access--disabled": n.value },
|
|
87
|
+
{ "rds-e-direct-access--with-arrow": p.value }
|
|
88
|
+
]), d = i(() => z.value && !!r.value), L = i(() => x.value || _.value), $ = i(() => typeof r.value == "string" ? T(r.value) : ""), f = i(() => a.value?.microillustration && (a.value.microillustration.path || a.value.microillustration.url) || ""), v = (e) => {
|
|
89
89
|
if (!e) return {};
|
|
90
90
|
const s = {};
|
|
91
91
|
return e.size && (s.fontSize = `${e.size}px`, s.width = `${e.size}px`, s.height = `${e.size}px`), e.color && "name" in e && (s.color = e.color), s;
|
|
92
92
|
}, B = (e) => {
|
|
93
|
-
if (
|
|
93
|
+
if (n.value) {
|
|
94
94
|
e.preventDefault();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
S("click", e);
|
|
98
98
|
};
|
|
99
|
-
return (e, s) => (l(),
|
|
99
|
+
return (e, s) => (l(), u(E(t(r) ? d.value ? "router-link" : "a" : "button"), {
|
|
100
100
|
id: o.id,
|
|
101
101
|
type: t(r) ? void 0 : "button",
|
|
102
|
-
href: !
|
|
103
|
-
to:
|
|
102
|
+
href: !d.value && t(r) ? $.value : void 0,
|
|
103
|
+
to: d.value && t(r) ? t(r) : void 0,
|
|
104
104
|
class: j(C.value),
|
|
105
|
-
disabled: t(
|
|
105
|
+
disabled: t(n),
|
|
106
106
|
"aria-label": L.value,
|
|
107
107
|
onClick: B
|
|
108
108
|
}, {
|
|
109
109
|
default: I(() => [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
t(a)?.icon?.name ? (l(),
|
|
110
|
+
m(e.$slots, "default", {}, () => [
|
|
111
|
+
c("div", q, [
|
|
112
|
+
m(e.$slots, "artwork", {}, () => [
|
|
113
|
+
t(a)?.icon?.name ? (l(), u(h, {
|
|
114
114
|
key: 0,
|
|
115
115
|
name: t(a).icon.name,
|
|
116
|
-
style: k(
|
|
116
|
+
style: k(v(t(a).icon)),
|
|
117
117
|
class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--icon",
|
|
118
118
|
"aria-hidden": "true"
|
|
119
|
-
}, null, 8, ["name", "style"])) : t(a)?.microillustration &&
|
|
119
|
+
}, null, 8, ["name", "style"])) : t(a)?.microillustration && f.value ? (l(), N("img", {
|
|
120
120
|
key: 1,
|
|
121
|
-
src:
|
|
121
|
+
src: f.value,
|
|
122
122
|
alt: t(a).microillustration.alt || "",
|
|
123
|
-
style: k(
|
|
123
|
+
style: k(v(t(a).microillustration)),
|
|
124
124
|
class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--microillustration",
|
|
125
125
|
"aria-hidden": !t(a).microillustration.alt
|
|
126
126
|
}, null, 12, A)) : y("", !0)
|
|
127
127
|
], !0)
|
|
128
128
|
]),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
m("
|
|
132
|
-
|
|
129
|
+
c("div", M, [
|
|
130
|
+
c("div", U, [
|
|
131
|
+
m(e.$slots, "text", {}, () => [
|
|
132
|
+
c("span", F, O(t(_)), 1)
|
|
133
|
+
], !0)
|
|
134
|
+
])
|
|
133
135
|
]),
|
|
134
|
-
t(
|
|
136
|
+
t(p) ? (l(), u(h, {
|
|
135
137
|
key: 0,
|
|
136
138
|
name: "arrow_right",
|
|
137
139
|
small: "",
|
|
@@ -143,7 +145,7 @@ import './style/directAccess.css';const q = { class: "rds-e-direct-access__artwo
|
|
|
143
145
|
_: 3
|
|
144
146
|
}, 8, ["id", "type", "href", "to", "class", "disabled", "aria-label"]));
|
|
145
147
|
}
|
|
146
|
-
}),
|
|
148
|
+
}), Q = /* @__PURE__ */ V(G, [["__scopeId", "data-v-c9886bab"]]);
|
|
147
149
|
export {
|
|
148
|
-
|
|
150
|
+
Q as default
|
|
149
151
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as W, ref as _, computed as u, openBlock as b, createElementBlock as x, withModifiers as c, normalizeClass as k, createElementVNode as o, renderSlot as q, createVNode as L, toDisplayString as D, createCommentVNode as M } from "vue";
|
|
2
2
|
import { g as z } from "./getInstance-GhoEcxLF.js";
|
|
3
|
-
import { R as A } from "./icon-svg-
|
|
3
|
+
import { R as A } from "./icon-svg-CW3eQRcp.js";
|
|
4
4
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import './style/dragAndDrop.css';const V = ["id", "accept", "multiple", "disabled"], O = ["for"], P = { class: "rds-e-drag-and-drop__icon-wrapper" }, j = { class: "rds-e-drag-and-drop__text-container" }, G = { class: "rds-e-drag-and-drop__text" }, H = {
|
|
6
6
|
key: 0,
|