energy-components 1.0.3 → 1.1.1

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 (79) hide show
  1. package/dist/components/accordion.es.js +46 -47
  2. package/dist/components/accordionGroup.es.js +12 -12
  3. package/dist/components/actionButton.es.js +2 -2
  4. package/dist/components/breadcrumbs.es.js +8 -8
  5. package/dist/components/button.es.js +16 -16
  6. package/dist/components/card.es.js +2 -2
  7. package/dist/components/checkbox.es.js +11 -11
  8. package/dist/components/datepicker.es.js +4 -4
  9. package/dist/components/divider.es.js +6 -6
  10. package/dist/components/dropdown.es.js +25 -25
  11. package/dist/components/floatingActionButton.es.js +4 -4
  12. package/dist/components/{icon-svg-7Vih8GMM.js → icon-svg-CEZ-L3iv.js} +4 -4
  13. package/dist/components/iconList.es.js +7 -7
  14. package/dist/components/iconSvg.es.js +1 -1
  15. package/dist/components/index.es.js +59 -50
  16. package/dist/components/indicator.es.js +21 -21
  17. package/dist/components/infoBox.es.js +152 -0
  18. package/dist/components/link.es.js +16 -16
  19. package/dist/components/modal.es.js +62 -37
  20. package/dist/components/overlay.es.js +4 -4
  21. package/dist/components/pagination.es.js +20 -20
  22. package/dist/components/persistentToast.es.js +130 -0
  23. package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js +28 -0
  24. package/dist/components/radioButton.es.js +66 -45
  25. package/dist/components/radioGroup.es.js +1 -1
  26. package/dist/components/sidebar.es.js +104 -0
  27. package/dist/components/style/accordion.css +1 -1
  28. package/dist/components/style/accordionGroup.css +1 -1
  29. package/dist/components/style/actionButton.css +1 -1
  30. package/dist/components/style/breadcrumbs.css +1 -1
  31. package/dist/components/style/button.css +1 -1
  32. package/dist/components/style/card.css +1 -1
  33. package/dist/components/style/checkbox.css +1 -1
  34. package/dist/components/style/datepicker.css +1 -1
  35. package/dist/components/style/divider.css +1 -1
  36. package/dist/components/style/dropdown.css +1 -1
  37. package/dist/components/style/floatingActionButton.css +1 -1
  38. package/dist/components/style/icon-svg.css +1 -1
  39. package/dist/components/style/iconList.css +1 -1
  40. package/dist/components/style/indicator.css +1 -1
  41. package/dist/components/style/infoBox.css +1 -0
  42. package/dist/components/style/link.css +1 -1
  43. package/dist/components/style/modal.css +1 -1
  44. package/dist/components/style/multiselect.css +1 -1
  45. package/dist/components/style/overlay.css +1 -1
  46. package/dist/components/style/pagination.css +1 -1
  47. package/dist/components/style/persistentToast.css +1 -0
  48. package/dist/components/style/radioButton.css +1 -1
  49. package/dist/components/style/sidebar.css +1 -0
  50. package/dist/components/style/switch.css +1 -1
  51. package/dist/components/style/tabBar.css +1 -1
  52. package/dist/components/style/tag.css +1 -1
  53. package/dist/components/style/textArea.css +1 -1
  54. package/dist/components/style/textField.css +1 -1
  55. package/dist/components/style/tooltip.css +1 -1
  56. package/dist/components/switch.es.js +11 -11
  57. package/dist/components/tabBar.es.js +26 -26
  58. package/dist/components/tag.es.js +9 -9
  59. package/dist/components/textArea.es.js +14 -14
  60. package/dist/components/textField.es.js +14 -14
  61. package/dist/components/tooltip.es.js +10 -10
  62. package/dist/composables/index.es.js +37 -0
  63. package/dist/energy-components.es.js +4075 -3646
  64. package/dist/energy-components.umd.js +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +0 -2
  67. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +134 -0
  68. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +161 -0
  69. package/dist/types/src/components/index.d.ts +3 -0
  70. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +12 -12
  71. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +24 -14
  72. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +49 -0
  73. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +34 -0
  74. package/dist/types/src/composables/breakpoints.d.ts +5 -0
  75. package/dist/types/src/composables/index.d.ts +1 -0
  76. package/dist/types/src/helpers/getInstance.d.ts +6 -0
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +7 -3
  79. package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js +0 -18
@@ -1,9 +1,9 @@
1
- import { defineComponent as N, mergeModels as B, toRefs as W, useModel as K, ref as m, computed as h, onMounted as $, nextTick as D, onUnmounted as F, watch as L, openBlock as s, createElementBlock as d, normalizeClass as u, createVNode as S, createCommentVNode as g, createElementVNode as f, Fragment as q, renderList as H, unref as O, withKeys as V, withModifiers as A, createBlock as P, createTextVNode as U, toDisplayString as j, renderSlot as G } from "vue";
2
- import { I as w } from "./icon-svg-7Vih8GMM.js";
1
+ import { defineComponent as N, mergeModels as B, toRefs as W, useModel as K, ref as m, computed as h, onMounted as $, nextTick as D, onUnmounted as F, watch as L, openBlock as s, createElementBlock as d, normalizeClass as u, createVNode as S, createCommentVNode as g, createElementVNode as v, Fragment as q, renderList as H, unref as O, withKeys as V, withModifiers as A, createBlock as P, createTextVNode as U, toDisplayString as j, renderSlot as G } from "vue";
2
+ import { I as w } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { d as J } from "./functions-DIHwdgF0.js";
4
4
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "onKeydown"], Y = { class: "rds-top-bar__item-title" }, Z = {
6
- class: "rds-top-bar__content",
5
+ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "onKeydown"], Y = { class: "rds-e-top-bar__item-title" }, Z = {
6
+ class: "rds-e-top-bar__content",
7
7
  role: "tabpanel"
8
8
  }, ee = /* @__PURE__ */ N({
9
9
  __name: "tab-bar",
@@ -49,8 +49,8 @@ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "
49
49
  */
50
50
  beforeTabChange: {
51
51
  type: Function,
52
- default: (o, v) => {
53
- if (o === v.id) return Promise.resolve(!0);
52
+ default: (o, f) => {
53
+ if (o === f.id) return Promise.resolve(!0);
54
54
  }
55
55
  }
56
56
  }, {
@@ -61,8 +61,8 @@ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "
61
61
  activeTabModifiers: {}
62
62
  }),
63
63
  emits: /* @__PURE__ */ B(["activeTabChanged"], ["update:activeTab"]),
64
- setup(o, { emit: v }) {
65
- const i = o, M = v, {
64
+ setup(o, { emit: f }) {
65
+ const i = o, M = f, {
66
66
  options: n
67
67
  } = W(i), R = K(o, "activeTab"), a = m(""), b = m(null), l = m(null);
68
68
  let p = [];
@@ -101,38 +101,38 @@ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "
101
101
  }), L(a, (e) => {
102
102
  T(e), M("activeTabChanged", k(!1));
103
103
  }), L(R, (e) => c(e)), (e, t) => (s(), d("div", {
104
- class: u(["rds-top-bar", {
105
- "rds-top-bar--fluid": o.fluid,
106
- "rds-top-bar--divider": o.divider
104
+ class: u(["rds-e-top-bar", {
105
+ "rds-e-top-bar--fluid": o.fluid,
106
+ "rds-e-top-bar--divider": o.divider
107
107
  }])
108
108
  }, [
109
109
  z.value ? (s(), d("div", {
110
110
  key: 0,
111
111
  class: u([
112
- "rds-top-bar__button",
113
- o.backgroundAlternative ? "rds-top-bar__button--left-bg2" : "rds-top-bar__button--left"
112
+ "rds-e-top-bar__button",
113
+ o.backgroundAlternative ? "rds-e-top-bar__button--left-bg2" : "rds-e-top-bar__button--left"
114
114
  ]),
115
115
  onClick: x
116
116
  }, [
117
117
  S(w, {
118
- class: "rds-top-bar__icon",
118
+ class: "rds-e-top-bar__icon",
119
119
  name: "arrow_left"
120
120
  })
121
121
  ], 2)) : g("", !0),
122
- f("div", {
122
+ v("div", {
123
123
  ref_key: "tabsListWrapper",
124
124
  ref: l,
125
- class: "rds-top-bar__wrapper"
125
+ class: "rds-e-top-bar__wrapper"
126
126
  }, [
127
- f("ul", {
127
+ v("ul", {
128
128
  ref_key: "tabsList",
129
129
  ref: b,
130
- class: "rds-top-bar__list",
130
+ class: "rds-e-top-bar__list",
131
131
  role: "tablist"
132
132
  }, [
133
133
  (s(!0), d(q, null, H(O(n), (r, _) => (s(), d("li", {
134
134
  key: _,
135
- class: u(["rds-top-bar__item", {
135
+ class: u(["rds-e-top-bar__item", {
136
136
  active: a.value === r.id
137
137
  }]),
138
138
  role: "tab",
@@ -144,10 +144,10 @@ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "
144
144
  V(A(I, ["prevent"]), ["right"])
145
145
  ]
146
146
  }, [
147
- f("span", Y, [
147
+ v("span", Y, [
148
148
  r.icon ? (s(), P(w, {
149
149
  key: 0,
150
- class: "rds-top-bar__item-title--icon",
150
+ class: "rds-e-top-bar__item-title--icon",
151
151
  name: r.icon
152
152
  }, null, 8, ["name"])) : g("", !0),
153
153
  U(" " + j(r.title), 1)
@@ -158,24 +158,24 @@ import './style/tabBar.css';const X = ["aria-selected", "tabindex", "onClick", "
158
158
  E.value ? (s(), d("div", {
159
159
  key: 1,
160
160
  class: u([
161
- "rds-top-bar__button",
162
- o.backgroundAlternative ? "rds-top-bar__button--right-bg2" : "rds-top-bar__button--right"
161
+ "rds-e-top-bar__button",
162
+ o.backgroundAlternative ? "rds-e-top-bar__button--right-bg2" : "rds-e-top-bar__button--right"
163
163
  ]),
164
164
  onClick: I
165
165
  }, [
166
166
  S(w, {
167
- class: "rds-top-bar__icon",
167
+ class: "rds-e-top-bar__icon",
168
168
  name: "arrow_right"
169
169
  })
170
170
  ], 2)) : g("", !0),
171
- f("div", Z, [
171
+ v("div", Z, [
172
172
  G(e.$slots, a.value, {
173
173
  tab: k(!0)
174
174
  }, void 0, !0)
175
175
  ])
176
176
  ], 2));
177
177
  }
178
- }), ie = /* @__PURE__ */ Q(ee, [["__scopeId", "data-v-1eaefe52"]]);
178
+ }), ie = /* @__PURE__ */ Q(ee, [["__scopeId", "data-v-26223c41"]]);
179
179
  export {
180
180
  ie as default
181
181
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, toRefs as x, computed as u, openBlock as o, createElementBlock as $, normalizeClass as r, unref as t, createBlock as p, createCommentVNode as d, createTextVNode as B, toDisplayString as S } from "vue";
2
- import { I as f } from "./icon-svg-7Vih8GMM.js";
3
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/tag.css';const k = /* @__PURE__ */ h({
2
+ import { I as f } from "./icon-svg-CEZ-L3iv.js";
3
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/tag.css';const C = /* @__PURE__ */ h({
5
5
  __name: "tag",
6
6
  props: {
7
7
  /**
@@ -61,31 +61,31 @@ import './style/tag.css';const k = /* @__PURE__ */ h({
61
61
  inverse: g,
62
62
  small: v
63
63
  } = x(m), y = u(() => {
64
- const a = "rds-tag", e = [];
64
+ const a = "rds-e-tag", e = [];
65
65
  return g.value && e.push(`${a}--inverse`), c.value && e.push(`${a}--actionable`), n.value && e.push(`${a}--icon`), v.value && e.push(`${a}--small`), e.push(`${a}--${l.value}`), e.join(" ");
66
66
  }), i = u(() => {
67
- const a = "rds-tag_icon", e = [];
67
+ const a = "rds-e-tag_icon", e = [];
68
68
  return e.push(`${a}--${l.value}`), e.join(" ");
69
69
  });
70
70
  return (a, e) => (o(), $("div", {
71
- class: r(["rds-tag rds-caption-tag", y.value])
71
+ class: r(["rds-e-tag rds-e-caption-tag", y.value])
72
72
  }, [
73
73
  t(n) ? (o(), p(f, {
74
74
  key: 0,
75
75
  name: t(n),
76
- class: r(["rds-tag__icon", i.value]),
76
+ class: r(["rds-e-tag__icon", i.value]),
77
77
  "aria-hidden": "true"
78
78
  }, null, 8, ["name", "class"])) : d("", !0),
79
79
  B(" " + S(t(_)) + " ", 1),
80
80
  t(c) ? (o(), p(f, {
81
81
  key: 1,
82
82
  name: "arrow_right",
83
- class: r(["rds-tag__icon-actionable", i.value]),
83
+ class: r(["rds-e-tag__icon-actionable", i.value]),
84
84
  "aria-hidden": "true"
85
85
  }, null, 8, ["class"])) : d("", !0)
86
86
  ], 2));
87
87
  }
88
- }), j = /* @__PURE__ */ b(k, [["__scopeId", "data-v-9781baa5"]]);
88
+ }), j = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e784d437"]]);
89
89
  export {
90
90
  j as default
91
91
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as R, mergeModels as U, useModel as F, toRefs as G, computed as o, openBlock as l, createElementBlock as h, normalizeClass as g, createElementVNode as a, withDirectives as J, unref as t, vModelText as K, renderSlot as x, createBlock as C, mergeProps as M, toHandlers as q, createCommentVNode as s, createTextVNode as L, toDisplayString as i, pushScopeId as O, popScopeId as Q } from "vue";
2
- import { I as T } from "./icon-svg-7Vih8GMM.js";
2
+ import { I as T } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/textArea.css';function y(e, f = !0, u = !0) {
5
5
  return f && !e.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : u && !/^[\w\-:]+$/.test(e) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;
6
6
  }
7
- const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-textarea__container" }, Z = { class: "rds-textarea__input-container" }, ee = ["id", "name", "maxlength", "minlength", "rows", "disabled"], te = /* @__PURE__ */ X(() => /* @__PURE__ */ a("div", { class: "rds-textarea__resize-handle" }, [
7
+ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-textarea__container" }, Z = { class: "rds-e-textarea__input-container" }, ee = ["id", "name", "maxlength", "minlength", "rows", "disabled"], te = /* @__PURE__ */ X(() => /* @__PURE__ */ a("div", { class: "rds-e-textarea__resize-handle" }, [
8
8
  /* @__PURE__ */ a("svg", {
9
9
  width: "12",
10
10
  height: "14",
@@ -166,7 +166,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
166
166
  lengthError: D
167
167
  } = G(f), V = o(() => d.value.length === v.value), B = o(() => d.value.length === 0 ? !1 : d.value.length < m.value), E = o(() => D.value && (V.value || B.value)), P = o(() => {
168
168
  const r = [];
169
- return d.value && r.push("rds-textarea--filled"), _.value && r.push("rds-textarea--error"), p.value && r.push("rds-textarea--disabled"), E.value && r.push("rds-textarea--error"), r.join(" ");
169
+ return d.value && r.push("rds-e-textarea--filled"), _.value && r.push("rds-e-textarea--error"), p.value && r.push("rds-e-textarea--disabled"), E.value && r.push("rds-e-textarea--error"), r.join(" ");
170
170
  }), n = o(() => {
171
171
  const r = {
172
172
  name: $.value,
@@ -182,7 +182,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
182
182
  return k.value && (c.right = {
183
183
  ...r,
184
184
  name: "close",
185
- class: "rds-textfield__icon--clear",
185
+ class: "rds-e-textfield__icon--clear",
186
186
  events: {
187
187
  click: () => u.value = ""
188
188
  }
@@ -191,7 +191,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
191
191
  return (r, c) => {
192
192
  var I, N;
193
193
  return l(), h("div", {
194
- class: g(["rds-textarea", P.value])
194
+ class: g(["rds-e-textarea", P.value])
195
195
  }, [
196
196
  a("div", Y, [
197
197
  a("div", Z, [
@@ -199,7 +199,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
199
199
  id: (I = t(w)) == null ? void 0 : I.toString(),
200
200
  "onUpdate:modelValue": c[0] || (c[0] = (H) => u.value = H),
201
201
  type: "text",
202
- class: "rds-textarea__input",
202
+ class: "rds-e-textarea__input",
203
203
  name: e.name,
204
204
  maxlength: t(v),
205
205
  minlength: t(m),
@@ -211,28 +211,28 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
211
211
  te,
212
212
  a("label", {
213
213
  for: (N = t(w)) == null ? void 0 : N.toString(),
214
- class: "rds-textarea__label"
214
+ class: "rds-e-textarea__label"
215
215
  }, [
216
216
  x(r.$slots, "left-icon", {}, () => [
217
217
  n.value.left.name ? (l(), C(T, M({
218
218
  key: 0,
219
- class: "rds-textarea__icon rds-textarea__icon--left",
219
+ class: "rds-e-textarea__icon rds-e-textarea__icon--left",
220
220
  "aria-hidden": "true"
221
221
  }, n.value.left, q(n.value.left.events)), null, 16)) : s("", !0)
222
222
  ], !0),
223
223
  L(" " + i(t(b)), 1)
224
224
  ], 8, re),
225
225
  a("div", {
226
- class: g(["rds-textarea__counter", {
227
- "rds-textarea__counter--disabled": t(p),
228
- "rds-textarea__counter--clearable": t(k)
226
+ class: g(["rds-e-textarea__counter", {
227
+ "rds-e-textarea__counter--disabled": t(p),
228
+ "rds-e-textarea__counter--clearable": t(k)
229
229
  }])
230
230
  }, [
231
231
  e.counter && !t(S) ? (l(), h("p", ae, i(j.value) + "/" + i(t(v)), 1)) : s("", !0),
232
232
  x(r.$slots, "right-icon", {}, () => [
233
233
  n.value.right.name ? (l(), C(T, M({
234
234
  key: 0,
235
- class: "rds-textarea__icon rds-textarea__icon--right",
235
+ class: "rds-e-textarea__icon rds-e-textarea__icon--right",
236
236
  "aria-hidden": "true"
237
237
  }, n.value.right, q(n.value.right.events)), null, 16)) : s("", !0)
238
238
  ], !0)
@@ -240,7 +240,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
240
240
  ])
241
241
  ]),
242
242
  a("ul", {
243
- class: g(["rds-textarea__helper", t(_) || E.value ? "rds-textarea__helper--error" : ""])
243
+ class: g(["rds-e-textarea__helper", t(_) || E.value ? "rds-e-textarea__helper--error" : ""])
244
244
  }, [
245
245
  V.value ? (l(), h("li", le, " Max text length is " + i(t(v)), 1)) : s("", !0),
246
246
  B.value ? (l(), h("li", ne, " Min text length is " + i(t(m)), 1)) : s("", !0),
@@ -253,7 +253,7 @@ const X = (e) => (O("data-v-dc860073"), e = e(), Q(), e), Y = { class: "rds-text
253
253
  ], 2);
254
254
  };
255
255
  }
256
- }), ce = /* @__PURE__ */ W(se, [["__scopeId", "data-v-dc860073"]]);
256
+ }), ce = /* @__PURE__ */ W(se, [["__scopeId", "data-v-a9a6a677"]]);
257
257
  export {
258
258
  ce as default
259
259
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as j, toRefs as P, ref as z, computed as d, watch as F, openBlock as u, createElementBlock as m, normalizeClass as h, createElementVNode as n, renderSlot as v, createBlock as H, mergeProps as k, toHandlers as M, createCommentVNode as _, unref as t, toDisplayString as w, createVNode as A, withModifiers as G } from "vue";
2
- import { I as L } from "./icon-svg-7Vih8GMM.js";
2
+ import { I as L } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/textField.css';const K = { class: "rds-textfield__container" }, O = { class: "rds-textfield__input-container" }, Q = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], U = ["for"], W = {
4
+ import './style/textField.css';const K = { class: "rds-e-textfield__container" }, O = { class: "rds-e-textfield__input-container" }, Q = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], U = ["for"], W = {
5
5
  key: 0,
6
- class: "rds-textfield__icon rds-textfield__icon--right"
7
- }, X = { class: "rds-textfield__helper" }, Y = /* @__PURE__ */ j({
6
+ class: "rds-e-textfield__icon rds-e-textfield__icon--right"
7
+ }, X = { class: "rds-e-textfield__helper" }, Y = /* @__PURE__ */ j({
8
8
  __name: "text-field",
9
9
  props: {
10
10
  /**
@@ -150,7 +150,7 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
150
150
  );
151
151
  }, D = d(() => !!(f.value || a.value.length && (a.value.length < b.value || a.value.length > y.value))), R = d(() => {
152
152
  const e = [];
153
- return a.value && e.push("rds-textfield--filled"), D.value && e.push("rds-textfield--error"), i.value && e.push("rds-textfield--disabled"), e.join(" ");
153
+ return a.value && e.push("rds-e-textfield--filled"), D.value && e.push("rds-e-textfield--error"), i.value && e.push("rds-e-textfield--disabled"), e.join(" ");
154
154
  }), r = d(() => {
155
155
  const e = {
156
156
  name: V.value,
@@ -176,7 +176,7 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
176
176
  right: {
177
177
  ...e,
178
178
  name: o.value ? "eye_open" : "eye_close",
179
- class: "rds-textfield__icon--password",
179
+ class: "rds-e-textfield__icon--password",
180
180
  events: {
181
181
  click: () => o.value = !o.value
182
182
  }
@@ -188,7 +188,7 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
188
188
  right: {
189
189
  ...e,
190
190
  name: "close",
191
- class: "rds-textfield__icon--clear",
191
+ class: "rds-e-textfield__icon--clear",
192
192
  events: {
193
193
  click: () => g("update:modelValue", "")
194
194
  }
@@ -200,13 +200,13 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
200
200
  (e) => o.value = !e,
201
201
  { immediate: !0 }
202
202
  ), (e, S) => (u(), m("div", {
203
- class: h(["rds-textfield", R.value])
203
+ class: h(["rds-e-textfield", R.value])
204
204
  }, [
205
205
  n("div", K, [
206
206
  v(e.$slots, "left-icon", {}, () => [
207
207
  r.value.left.name ? (u(), H(L, k({
208
208
  key: 0,
209
- class: "rds-textfield__icon rds-textfield__icon--left",
209
+ class: "rds-e-textfield__icon rds-e-textfield__icon--left",
210
210
  "aria-hidden": "true"
211
211
  }, r.value.left, M(r.value.left.events)), null, 16)) : _("", !0)
212
212
  ], !0),
@@ -214,7 +214,7 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
214
214
  n("input", {
215
215
  id: t(x).toString(),
216
216
  type: o.value ? "text" : "password",
217
- class: "rds-textfield__input",
217
+ class: "rds-e-textfield__input",
218
218
  maxLength: t(y),
219
219
  minLength: t(b),
220
220
  disabled: t(i),
@@ -226,14 +226,14 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
226
226
  }, null, 40, Q),
227
227
  n("label", {
228
228
  for: t(x).toString(),
229
- class: h(["rds-textfield__label", t(i) ? "rds-textfield__label--disabled" : ""])
229
+ class: h(["rds-e-textfield__label", t(i) ? "rds-e-textfield__label--disabled" : ""])
230
230
  }, w(t(B)), 11, U)
231
231
  ]),
232
232
  r.value.right.name || e.$slots["right-icon"] ? (u(), m("span", W, [
233
233
  v(e.$slots, "right-icon", {}, () => [
234
234
  A(L, k({
235
235
  "aria-hidden": "true",
236
- class: "rds-textfield__icon rds-textfield__icon--right"
236
+ class: "rds-e-textfield__icon rds-e-textfield__icon--right"
237
237
  }, r.value.right, {
238
238
  onClick: G(r.value.right.events.click, ["stop"])
239
239
  }), null, 16, ["onClick"])
@@ -244,13 +244,13 @@ import './style/textField.css';const K = { class: "rds-textfield__container" },
244
244
  v(e.$slots, "helper-text", {}, () => [
245
245
  (t(I) || t(f)) && !t(i) ? (u(), m("span", {
246
246
  key: 0,
247
- class: h(t(f) ? "rds-textfield__helper--error" : "")
247
+ class: h(t(f) ? "rds-e-textfield__helper--error" : "")
248
248
  }, w(t(T)), 3)) : _("", !0)
249
249
  ], !0)
250
250
  ])
251
251
  ], 2));
252
252
  }
253
- }), le = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-3b757a9f"]]);
253
+ }), le = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-4c840b96"]]);
254
254
  export {
255
255
  le as default
256
256
  };
@@ -1,5 +1,5 @@
1
1
  import { unref as at, defineComponent as Vt, toRefs as Mt, ref as U, computed as Ft, openBlock as bt, createElementBlock as At, createElementVNode as Z, renderSlot as Ht, normalizeClass as Ct, toDisplayString as Rt, createVNode as jt, createCommentVNode as Yt } from "vue";
2
- import { I as Xt } from "./icon-svg-7Vih8GMM.js";
2
+ import { I as Xt } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/tooltip.css';const X = Math.min, O = Math.max, nt = Math.round, H = (t) => ({
5
5
  x: t,
@@ -944,10 +944,10 @@ function Pe(t) {
944
944
  }
945
945
  };
946
946
  }
947
- const Le = { class: "rds-tooltip" }, ke = {
947
+ const Le = { class: "rds-e-tooltip" }, ke = {
948
948
  key: 0,
949
- class: "rds-tooltip__header"
950
- }, $e = { class: "rds-tooltip__title" }, We = { class: "rds-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
949
+ class: "rds-e-tooltip__header"
950
+ }, $e = { class: "rds-e-tooltip__title" }, We = { class: "rds-e-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
951
951
  __name: "tooltip",
952
952
  props: {
953
953
  /**
@@ -1029,7 +1029,7 @@ const Le = { class: "rds-tooltip" }, ke = {
1029
1029
  bottom: "top",
1030
1030
  top: "bottom"
1031
1031
  };
1032
- a.value = `rds-tooltip__tooltip-arrow--${w}`, Object.assign(l.value.style, {
1032
+ a.value = `rds-e-tooltip__tooltip-arrow--${w}`, Object.assign(l.value.style, {
1033
1033
  left: x != null ? `${x}px` : "",
1034
1034
  top: y != null ? `${y}px` : "",
1035
1035
  bottom: "",
@@ -1040,12 +1040,12 @@ const Le = { class: "rds-tooltip" }, ke = {
1040
1040
  i != null && i.value || (c.value = !0);
1041
1041
  }, p = () => {
1042
1042
  c.value = !1, f();
1043
- }, d = Ft(() => `rds-tooltip__tooltip ${c.value ? "rds-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-tooltip__tooltip--large " : ""}${n.value ? "rds-tooltip__tooltip--full-width " : ""}`);
1043
+ }, d = Ft(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}${n.value ? "rds-e-tooltip__tooltip--full-width " : ""}`);
1044
1044
  return (m, g) => (bt(), At("div", Le, [
1045
1045
  Z("div", {
1046
1046
  ref_key: "referenceRef",
1047
1047
  ref: r,
1048
- class: "rds-tooltip__trigger",
1048
+ class: "rds-e-tooltip__trigger",
1049
1049
  onBlur: u,
1050
1050
  onFocus: p,
1051
1051
  onMouseenter: p,
@@ -1063,7 +1063,7 @@ const Le = { class: "rds-tooltip" }, ke = {
1063
1063
  jt(Xt, {
1064
1064
  name: "close",
1065
1065
  "aria-hidden": "true",
1066
- class: "rds-tooltip__icon",
1066
+ class: "rds-e-tooltip__icon",
1067
1067
  onClick: g[0] || (g[0] = (h) => c.value = !c.value)
1068
1068
  })
1069
1069
  ])) : Yt("", !0),
@@ -1071,12 +1071,12 @@ const Le = { class: "rds-tooltip" }, ke = {
1071
1071
  Z("div", {
1072
1072
  ref_key: "arrowRef",
1073
1073
  ref: l,
1074
- class: Ct(["rds-tooltip__tooltip-arrow", a.value])
1074
+ class: Ct(["rds-e-tooltip__tooltip-arrow", a.value])
1075
1075
  }, null, 2)
1076
1076
  ], 2)
1077
1077
  ]));
1078
1078
  }
1079
- }), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-e5e6156d"]]);
1079
+ }), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-5c754f77"]]);
1080
1080
  export {
1081
1081
  Fe as default
1082
1082
  };
@@ -0,0 +1,37 @@
1
+ import { ref as r, onMounted as m, onUnmounted as p } from "vue";
2
+ function h() {
3
+ const o = {
4
+ mobile: "(min-width: 0px) and (max-width: 719px)",
5
+ tablet: "(min-width: 720px) and (max-width: 1279px)",
6
+ desktop: "(min-width: 1280px) and (max-width: 1438px)",
7
+ desktopLarge: "(min-width: 1440px) and (max-width: 1599px)",
8
+ ultrawide: "(min-width: 1600px)"
9
+ }, a = r({
10
+ mobile: !1,
11
+ tablet: !1,
12
+ desktop: !1,
13
+ desktopLarge: !1,
14
+ ultrawide: !1
15
+ }), s = () => {
16
+ for (const [n, e] of Object.entries(o)) {
17
+ const t = window.matchMedia(e);
18
+ a.value[n] = t.matches;
19
+ }
20
+ };
21
+ return m(() => {
22
+ const n = Object.entries(o).map(([e, t]) => {
23
+ const i = window.matchMedia(t);
24
+ a.value[e] = i.matches;
25
+ const d = () => s();
26
+ return i.addEventListener("change", d), { mediaQuery: i, listener: d };
27
+ });
28
+ p(() => {
29
+ n.forEach(({ mediaQuery: e, listener: t }) => {
30
+ e.removeEventListener("change", t);
31
+ });
32
+ });
33
+ }), a;
34
+ }
35
+ export {
36
+ h as useBreakpoints
37
+ };