energy-components 1.6.0-beta.1 → 1.7.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 (60) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/button.es.js +21 -21
  3. package/dist/components/checkbox.es.js +7 -7
  4. package/dist/components/dropdown.es.js +278 -148
  5. package/dist/components/filterChip.es.js +4 -4
  6. package/dist/components/{icon-svg-pUb3-FXk.js → icon-svg-BmDOQ0kL.js} +42 -26
  7. package/dist/components/iconList.es.js +5 -5
  8. package/dist/components/iconSvg.es.js +1 -1
  9. package/dist/components/index.es.js +62 -59
  10. package/dist/components/infoBox.es.js +17 -17
  11. package/dist/components/link.es.js +15 -15
  12. package/dist/components/modal.es.js +69 -39
  13. package/dist/components/multiselect.es.js +230 -184
  14. package/dist/components/multiselectcontentwrapper.es.js +140 -0
  15. package/dist/components/pagination.es.js +129 -86
  16. package/dist/components/persistentToast.es.js +9 -9
  17. package/dist/components/quantitySelector.es.js +9 -9
  18. package/dist/components/radioButton.es.js +16 -16
  19. package/dist/components/selectionChip.es.js +5 -5
  20. package/dist/components/sidedrawer.es.js +53 -33
  21. package/dist/components/style/button.css +1 -1
  22. package/dist/components/style/datepicker.css +1 -1
  23. package/dist/components/style/dropdown.css +1 -1
  24. package/dist/components/style/icon-svg.css +1 -1
  25. package/dist/components/style/modal.css +1 -1
  26. package/dist/components/style/multiselect.css +1 -1
  27. package/dist/components/style/multiselectcontentwrapper.css +1 -0
  28. package/dist/components/style/pagination.css +1 -1
  29. package/dist/components/style/sidedrawer.css +1 -1
  30. package/dist/components/style/tabBar.css +1 -1
  31. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  32. package/dist/components/style/tableslotedcomponent.css +1 -1
  33. package/dist/components/style/textField.css +1 -1
  34. package/dist/components/style/tooltip.css +1 -1
  35. package/dist/components/switch.es.js +10 -10
  36. package/dist/components/tabBar.es.js +15 -13
  37. package/dist/components/tablepaginatedcomponent.es.js +69 -65
  38. package/dist/components/tableslotedcomponent.es.js +155 -148
  39. package/dist/components/tag.es.js +5 -5
  40. package/dist/components/textArea.es.js +22 -22
  41. package/dist/components/textField.es.js +93 -84
  42. package/dist/components/tooltip.es.js +178 -174
  43. package/dist/energy-components.es.js +6678 -6128
  44. package/dist/energy-components.umd.js +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/types/src/components/buttons/button/button.vue.d.ts +2 -2
  47. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +19 -0
  48. package/dist/types/src/components/index.d.ts +1 -0
  49. package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +86 -0
  50. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +582 -0
  51. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
  52. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
  53. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
  54. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +10 -3
  55. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +30 -0
  56. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +80 -31
  57. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +27 -1
  58. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -0
  59. package/dist/types/tsconfig.tsbuildinfo +1 -1
  60. package/package.json +5 -5
@@ -1,8 +1,8 @@
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-pUb3-FXk.js";
1
+ import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, 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 P, createCommentVNode as T, createVNode as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
+ import { R as I } from "./icon-svg-BmDOQ0kL.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-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ B({
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__ */ R({
6
6
  __name: "accordion",
7
7
  props: {
8
8
  /**
@@ -43,21 +43,21 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
43
43
  }
44
44
  },
45
45
  emits: ["update:open"],
46
- setup(c, { expose: C, emit: k }) {
47
- const o = c, x = k, { tag: a } = D(o), t = l(o.open), i = l(null), s = l(null), S = () => {
46
+ setup(c, { expose: C, emit: S }) {
47
+ const o = c, k = S, { tag: a } = B(o), t = l(o.open), i = l(null), s = l(null), x = () => {
48
48
  if (!i.value || !s.value) return;
49
49
  const e = s.value.scrollHeight;
50
50
  i.value.style.maxHeight = t.value ? `${e}px` : "0px";
51
51
  }, r = (e) => {
52
- e === void 0 ? t.value = !t.value : t.value = e, x("update:open", t.value), S();
52
+ e === void 0 ? t.value = !t.value : t.value = e, k("update:open", t.value), x();
53
53
  }, u = () => {
54
54
  r(!0);
55
55
  }, p = () => {
56
56
  r(!1);
57
57
  };
58
- N(
58
+ D(
59
59
  () => o.open,
60
- (e) => R(() => {
60
+ (e) => N(() => {
61
61
  r(e);
62
62
  }),
63
63
  { immediate: !0 }
@@ -87,11 +87,11 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
87
87
  }, [
88
88
  n("span", z, h(c.title), 1),
89
89
  n("div", M, [
90
- d(a) && d(a).icon ? (v(), H(O, I({
90
+ d(a) && d(a).icon ? (v(), H(O, P({
91
91
  key: 0,
92
92
  class: "rds-e-accordion-title_tag"
93
- }, d(a), { small: "" }), null, 16)) : P("", !0),
94
- T(E, {
93
+ }, d(a), { small: "" }), null, 16)) : T("", !0),
94
+ j(I, {
95
95
  class: y(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
96
96
  name: "arrow_down"
97
97
  }, null, 8, ["class"])
@@ -107,8 +107,8 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
107
107
  ref: s,
108
108
  class: "rds-e-accordion-panel_content"
109
109
  }, [
110
- j(e.$slots, "default", {}, () => [
111
- A(h(c.content), 1)
110
+ A(e.$slots, "default", {}, () => [
111
+ E(h(c.content), 1)
112
112
  ], !0)
113
113
  ], 512)
114
114
  ], 2)
@@ -1,7 +1,7 @@
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-pUb3-FXk.js";
3
- import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-btn__text" }, R = /* @__PURE__ */ B({
1
+ import { defineComponent as B, toRefs as S, computed as l, openBlock as b, createElementBlock as x, unref as o, normalizeClass as m, createBlock as I, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as R } from "vue";
2
+ import { R as V } from "./icon-svg-BmDOQ0kL.js";
3
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-btn__text" }, w = /* @__PURE__ */ B({
5
5
  __name: "button",
6
6
  props: {
7
7
  /**
@@ -42,15 +42,15 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
42
42
  /**
43
43
  * <span>Variante del botón</span>
44
44
  * <br>
45
- *`['primary', 'secondary', 'ghost']`
45
+ *`['primary', 'secondary', 'ghost', 'commercial']`
46
46
  */
47
47
  variant: {
48
48
  type: String,
49
49
  default: "primary",
50
50
  validator(e) {
51
- const t = ["primary", "secondary", "ghost"].includes(e);
51
+ const t = ["primary", "secondary", "ghost", "commercial"].includes(e);
52
52
  return t || console.info(
53
- `La variante ${e} no es válida. Las variantes válidas son: primary, secondary, ghost`
53
+ `La variante ${e} no es válida. Las variantes válidas son: primary, secondary, ghost, commercial`
54
54
  ), t;
55
55
  }
56
56
  },
@@ -99,7 +99,7 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
99
99
  },
100
100
  setup(e) {
101
101
  const t = e, {
102
- text: o,
102
+ text: s,
103
103
  icon: n,
104
104
  type: r,
105
105
  variant: i,
@@ -109,35 +109,35 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
109
109
  inverse: d,
110
110
  revertIcon: _,
111
111
  loading: p
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(() => {
112
+ } = S(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", "commercial"].includes(i.value) ? i.value : "primary"), g = l(() => {
113
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(
115
- o != null && o.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
114
+ return i.value && a.push(`rds-e-btn--${v.value}`), d.value && a.push(`rds-e-btn--${v.value}-inverse`), c.value && a.push(
115
+ s != null && s.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
116
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(" ");
117
117
  });
118
- return (a, W) => (v(), S("button", {
118
+ return (a, W) => (b(), x("button", {
119
119
  type: h.value,
120
- disabled: s(u),
120
+ disabled: o(u),
121
121
  class: m(g.value)
122
122
  }, [
123
- c.value ? (v(), x(E, {
123
+ c.value ? (b(), I(V, {
124
124
  key: 0,
125
125
  name: c.value,
126
- small: s(f),
126
+ small: o(f),
127
127
  class: m(["rds-e-btn__icon", [
128
- s(d) ? `rds-e-btn__icon--${s(d)}` : "",
129
- s(u) ? "rds-e-btn__icon--disabled" : ""
128
+ o(d) ? `rds-e-btn__icon--${o(d)}` : "",
129
+ o(u) ? "rds-e-btn__icon--disabled" : ""
130
130
  ]]),
131
131
  "aria-hidden": "true"
132
132
  }, null, 8, ["name", "small", "class"])) : k("", !0),
133
- $("span", D, [
133
+ $("span", L, [
134
134
  C(a.$slots, "default", {}, () => [
135
- N(V(s(o)), 1)
135
+ N(R(o(s)), 1)
136
136
  ], !0)
137
137
  ])
138
- ], 10, w));
138
+ ], 10, E));
139
139
  }
140
- }), T = /* @__PURE__ */ L(R, [["__scopeId", "data-v-a17b5b56"]]);
140
+ }), T = /* @__PURE__ */ D(w, [["__scopeId", "data-v-ad01f4e1"]]);
141
141
  export {
142
142
  T as default
143
143
  };
@@ -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 { I as V } from "./icon-svg-pUb3-FXk.js";
2
+ import { R as V } from "./icon-svg-BmDOQ0kL.js";
3
3
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/checkbox.css';const N = ["id", "checked", "aria-label", "required", "disabled"], q = ["for"], D = /* @__PURE__ */ x({
4
+ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "required", "disabled"], N = ["for"], q = /* @__PURE__ */ x({
5
5
  __name: "checkbox",
6
6
  props: {
7
7
  /**
@@ -80,7 +80,7 @@ import './style/checkbox.css';const N = ["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, I) => (b(), g("div", {
83
+ }), (a, R) => (b(), g("div", {
84
84
  class: o(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": l.value }])
85
85
  }, [
86
86
  n("input", {
@@ -94,7 +94,7 @@ import './style/checkbox.css';const N = ["id", "checked", "aria-label", "require
94
94
  onChange: m,
95
95
  onFocus: h,
96
96
  onBlur: k
97
- }, null, 42, N),
97
+ }, null, 42, D),
98
98
  n("label", {
99
99
  for: e.id.toString(),
100
100
  class: o(["rds-e-checkbox__label", {
@@ -121,10 +121,10 @@ import './style/checkbox.css';const N = ["id", "checked", "aria-label", "require
121
121
  }, null, 8, ["name"])) : L("", !0)
122
122
  ], 2)
123
123
  ], !0)
124
- ], 10, q)
124
+ ], 10, N)
125
125
  ], 2));
126
126
  }
127
- }), M = /* @__PURE__ */ _(D, [["__scopeId", "data-v-6beff478"]]);
127
+ }), K = /* @__PURE__ */ _(q, [["__scopeId", "data-v-6beff478"]]);
128
128
  export {
129
- M as default
129
+ K as default
130
130
  };