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.
Files changed (74) hide show
  1. package/dist/components/accordion.es.js +8 -8
  2. package/dist/components/avatar.es.js +1 -1
  3. package/dist/components/button.es.js +1 -1
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/collapsable.es.js +1 -1
  6. 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
  7. package/dist/components/datepicker.es.js +323 -309
  8. package/dist/components/directAccess.es.js +30 -28
  9. package/dist/components/dragAndDrop.es.js +1 -1
  10. package/dist/components/dropdown.es.js +173 -159
  11. package/dist/components/fileUploadItem.es.js +1 -1
  12. package/dist/components/filterChip.es.js +1 -1
  13. package/dist/components/filterTag.es.js +1 -1
  14. package/dist/components/floating-ui.vue-DMBZhA6d.js +1153 -0
  15. package/dist/components/{icon-svg-Cx3PvOnQ.js → icon-svg-CW3eQRcp.js} +33 -3
  16. package/dist/components/iconList.es.js +1 -1
  17. package/dist/components/iconSvg.es.js +1 -1
  18. package/dist/components/index.es.js +2 -2
  19. package/dist/components/indicator.es.js +51 -51
  20. package/dist/components/infoBox.es.js +1 -1
  21. package/dist/components/link.es.js +8 -8
  22. package/dist/components/loader.es.js +3 -3
  23. package/dist/components/modal.es.js +1 -1
  24. package/dist/components/persistentToast.es.js +1 -1
  25. package/dist/components/popover.es.js +2 -2
  26. package/dist/components/popoverMenu.es.js +2 -2
  27. package/dist/components/progressBar.es.js +1 -1
  28. package/dist/components/quantitySelector.es.js +1 -1
  29. package/dist/components/radioButton.es.js +1 -1
  30. package/dist/components/selectionChip.es.js +1 -1
  31. package/dist/components/sidedrawer.es.js +1 -1
  32. package/dist/components/style/accordion.css +1 -1
  33. package/dist/components/style/breadcrumbs.css +1 -1
  34. package/dist/components/style/datepicker.css +1 -1
  35. package/dist/components/style/directAccess.css +1 -1
  36. package/dist/components/style/dropdown.css +1 -1
  37. package/dist/components/style/filterChip.css +1 -1
  38. package/dist/components/style/indicator.css +1 -1
  39. package/dist/components/style/link.css +1 -1
  40. package/dist/components/style/loader.css +1 -1
  41. package/dist/components/style/modal.css +1 -1
  42. package/dist/components/style/multiselect.css +1 -1
  43. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  44. package/dist/components/style/selectionChip.css +1 -1
  45. package/dist/components/style/textField.css +1 -1
  46. package/dist/components/style/toggle.css +1 -1
  47. package/dist/components/style/tooltip.css +1 -1
  48. package/dist/components/switch.es.js +1 -1
  49. package/dist/components/tabBar.es.js +1 -1
  50. package/dist/components/table.es.js +1 -1
  51. package/dist/components/tableRenderer.es.js +1 -1
  52. package/dist/components/tag.es.js +1 -1
  53. package/dist/components/textArea.es.js +1 -1
  54. package/dist/components/textField.es.js +204 -145
  55. package/dist/components/tooltip.es.js +129 -113
  56. package/dist/energy-components.css +1 -1
  57. package/dist/energy-components.es.js +4877 -4743
  58. package/dist/energy-components.umd.js +2 -2
  59. package/dist/style.css +1 -1
  60. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +4 -2
  61. package/dist/types/src/components/feedback/loader/loader.vue.d.ts +2 -2
  62. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +25 -0
  63. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
  64. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +64 -3
  65. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +2 -2
  66. package/dist/types/tsconfig.tsbuildinfo +1 -1
  67. package/llms/rdsdate-picker.md +1 -0
  68. package/llms/rdsdropdown.md +1 -0
  69. package/llms/rdsindicator.md +1 -1
  70. package/llms/rdsloader.md +1 -1
  71. package/llms/rdstext-field.md +5 -0
  72. package/llms/rdstooltip.md +1 -1
  73. package/package.json +3 -3
  74. 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 d, resolveDynamicComponent as E, unref as t, normalizeClass as j, withCtx as I, renderSlot as u, createElementVNode as m, normalizeStyle as k, createElementBlock as N, createCommentVNode as y, toDisplayString as O } from "vue";
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-Cx3PvOnQ.js";
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: w }) {
83
- const b = o, S = w, { text: p, layout: g, disabled: c, arrow: f, artwork: a, ariaLabel: z, linkTo: r, useRouterLink: x } = D(b), C = i(() => [
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": c.value },
87
- { "rds-e-direct-access--with-arrow": f.value }
88
- ]), n = i(() => x.value && !!r.value), L = i(() => z.value || p.value), $ = i(() => typeof r.value == "string" ? T(r.value) : ""), v = i(() => a.value?.microillustration && (a.value.microillustration.path || a.value.microillustration.url) || ""), _ = (e) => {
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 (c.value) {
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(), d(E(t(r) ? n.value ? "router-link" : "a" : "button"), {
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: !n.value && t(r) ? $.value : void 0,
103
- to: n.value && t(r) ? t(r) : void 0,
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(c),
105
+ disabled: t(n),
106
106
  "aria-label": L.value,
107
107
  onClick: B
108
108
  }, {
109
109
  default: I(() => [
110
- u(e.$slots, "default", {}, () => [
111
- m("div", q, [
112
- u(e.$slots, "artwork", {}, () => [
113
- t(a)?.icon?.name ? (l(), d(h, {
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(_(t(a).icon)),
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 && v.value ? (l(), N("img", {
119
+ }, null, 8, ["name", "style"])) : t(a)?.microillustration && f.value ? (l(), N("img", {
120
120
  key: 1,
121
- src: v.value,
121
+ src: f.value,
122
122
  alt: t(a).microillustration.alt || "",
123
- style: k(_(t(a).microillustration)),
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
- m("div", M, [
130
- u(e.$slots, "text", {}, () => [
131
- m("span", U, O(t(p)), 1)
132
- ], !0)
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(f) ? (l(), d(h, {
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
- }), P = /* @__PURE__ */ V(F, [["__scopeId", "data-v-35d83735"]]);
148
+ }), Q = /* @__PURE__ */ V(G, [["__scopeId", "data-v-c9886bab"]]);
147
149
  export {
148
- P as default
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-Cx3PvOnQ.js";
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,