energy-components 1.0.3 → 1.0.4

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 (72) 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 -53
  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 +17 -17
  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/style/accordion.css +1 -1
  27. package/dist/components/style/accordionGroup.css +1 -1
  28. package/dist/components/style/actionButton.css +1 -1
  29. package/dist/components/style/breadcrumbs.css +1 -1
  30. package/dist/components/style/button.css +1 -1
  31. package/dist/components/style/card.css +1 -1
  32. package/dist/components/style/checkbox.css +1 -1
  33. package/dist/components/style/datepicker.css +1 -1
  34. package/dist/components/style/divider.css +1 -1
  35. package/dist/components/style/dropdown.css +1 -1
  36. package/dist/components/style/floatingActionButton.css +1 -1
  37. package/dist/components/style/icon-svg.css +1 -1
  38. package/dist/components/style/iconList.css +1 -1
  39. package/dist/components/style/indicator.css +1 -1
  40. package/dist/components/style/infoBox.css +1 -0
  41. package/dist/components/style/link.css +1 -1
  42. package/dist/components/style/modal.css +1 -1
  43. package/dist/components/style/multiselect.css +1 -1
  44. package/dist/components/style/overlay.css +1 -1
  45. package/dist/components/style/pagination.css +1 -1
  46. package/dist/components/style/persistentToast.css +1 -0
  47. package/dist/components/style/radioButton.css +1 -1
  48. package/dist/components/style/switch.css +1 -1
  49. package/dist/components/style/tabBar.css +1 -1
  50. package/dist/components/style/tag.css +1 -1
  51. package/dist/components/style/textArea.css +1 -1
  52. package/dist/components/style/textField.css +1 -1
  53. package/dist/components/style/tooltip.css +1 -1
  54. package/dist/components/switch.es.js +11 -11
  55. package/dist/components/tabBar.es.js +26 -26
  56. package/dist/components/tag.es.js +9 -9
  57. package/dist/components/textArea.es.js +14 -14
  58. package/dist/components/textField.es.js +14 -14
  59. package/dist/components/tooltip.es.js +10 -10
  60. package/dist/energy-components.es.js +3427 -3124
  61. package/dist/energy-components.umd.js +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +0 -2
  64. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +134 -0
  65. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +161 -0
  66. package/dist/types/src/components/index.d.ts +2 -0
  67. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +12 -12
  68. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +24 -14
  69. package/dist/types/src/helpers/getInstance.d.ts +6 -0
  70. package/dist/types/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +2 -2
  72. package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js +0 -18
@@ -10708,7 +10708,7 @@ import './style/icon-svg.css';const n = "selection", I = [
10708
10708
  showQuickUse2: !0,
10709
10709
  showSVGs: !0,
10710
10710
  fontPref: {
10711
- prefix: "rds-icon-",
10711
+ prefix: "rds-e-icon-",
10712
10712
  metadata: {
10713
10713
  fontFamily: "",
10714
10714
  majorVersion: 1,
@@ -10799,8 +10799,8 @@ const m = o.reduce((c, s) => (c[s.name] = s, c), {}), S = /* @__PURE__ */ a({
10799
10799
  });
10800
10800
  return (e, _) => (l(), t("span", {
10801
10801
  "aria-hidden": "true",
10802
- class: i(["icon rds-icon", [
10803
- `rds-icon-${c.name}`,
10802
+ class: i(["icon rds-e-icon", [
10803
+ `rds-e-icon-${c.name}`,
10804
10804
  c.modifier && `icon--${c.modifier}`,
10805
10805
  c.small && "icon--small"
10806
10806
  ]]),
@@ -10812,7 +10812,7 @@ const m = o.reduce((c, s) => (c[s.name] = s, c), {}), S = /* @__PURE__ */ a({
10812
10812
  }, null, 2))), 128))
10813
10813
  ], 6));
10814
10814
  }
10815
- }), k = /* @__PURE__ */ p(S, [["__scopeId", "data-v-104fbd98"]]);
10815
+ }), k = /* @__PURE__ */ p(S, [["__scopeId", "data-v-426142e9"]]);
10816
10816
  export {
10817
10817
  k as I,
10818
10818
  o as i
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p, ref as a, computed as v, openBlock as s, createElementBlock as i, Fragment as u, withDirectives as f, createElementVNode as r, vModelText as C, renderList as L, normalizeClass as x, createVNode as g, toDisplayString as h } from "vue";
2
- import { i as m, I as k } from "./icon-svg-7Vih8GMM.js";
2
+ import { i as m, I as k } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClick"], N = /* @__PURE__ */ p({
4
+ import './style/iconList.css';const y = { class: "rds-e-icon-list" }, I = ["onClick"], N = /* @__PURE__ */ p({
5
5
  __name: "icon-list",
6
6
  setup(T) {
7
7
  const o = a(""), l = a(!1), c = a(""), d = v(() => {
@@ -21,7 +21,7 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
21
21
  return (t, n) => (s(), i(u, null, [
22
22
  f(r("input", {
23
23
  "onUpdate:modelValue": n[0] || (n[0] = (e) => o.value = e),
24
- class: "rds-icon-list__filter",
24
+ class: "rds-e-icon-list__filter",
25
25
  type: "text",
26
26
  placeholder: "Filtrar iconos"
27
27
  }, null, 512), [
@@ -30,8 +30,8 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
30
30
  r("div", y, [
31
31
  (s(!0), i(u, null, L(d.value, (e) => (s(), i("div", {
32
32
  key: e.name,
33
- class: x(["rds-icon-list__item", {
34
- "rds-icon-list__item--active": l.value && c.value === e.name
33
+ class: x(["rds-e-icon-list__item", {
34
+ "rds-e-icon-list__item--active": l.value && c.value === e.name
35
35
  }]),
36
36
  onClick: (V) => _(e.name)
37
37
  }, [
@@ -43,7 +43,7 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
43
43
  ])
44
44
  ], 64));
45
45
  }
46
- }), E = /* @__PURE__ */ w(N, [["__scopeId", "data-v-29b3c814"]]);
46
+ }), F = /* @__PURE__ */ w(N, [["__scopeId", "data-v-12fc5634"]]);
47
47
  export {
48
- E as default
48
+ F as default
49
49
  };
@@ -1,4 +1,4 @@
1
- import { I as a } from "./icon-svg-7Vih8GMM.js";
1
+ import { I as a } from "./icon-svg-CEZ-L3iv.js";
2
2
  import "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  export {
4
4
  a as default
@@ -1,61 +1,65 @@
1
- import { I as i } from "./icon-svg-7Vih8GMM.js";
1
+ import { I as i } from "./icon-svg-CEZ-L3iv.js";
2
2
  import a from "./button.es.js";
3
3
  import m from "./floatingActionButton.es.js";
4
4
  import n from "./actionButton.es.js";
5
5
  import S from "./checkbox.es.js";
6
- import D from "./textField.es.js";
7
- import e from "./textArea.es.js";
8
- import c from "./switch.es.js";
6
+ import e from "./textField.es.js";
7
+ import D from "./textArea.es.js";
8
+ import R from "./switch.es.js";
9
9
  import p from "./radioButton.es.js";
10
- import { _ as R } from "./radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js";
11
- import d from "./dropdown.es.js";
10
+ import { _ as c } from "./radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js";
11
+ import s from "./dropdown.es.js";
12
12
  import f from "./datepicker.es.js";
13
- import s from "./tag.es.js";
13
+ import d from "./tag.es.js";
14
14
  import u from "./accordionGroup.es.js";
15
15
  import l from "./accordion.es.js";
16
- import b from "./divider.es.js";
17
- import A from "./card.es.js";
18
- import B from "./link.es.js";
19
- import g from "./breadcrumbs.es.js";
20
- import T from "./tabBar.es.js";
21
- import v from "./pagination.es.js";
16
+ import B from "./divider.es.js";
17
+ import T from "./card.es.js";
18
+ import b from "./link.es.js";
19
+ import A from "./breadcrumbs.es.js";
20
+ import g from "./tabBar.es.js";
21
+ import x from "./pagination.es.js";
22
22
  import I from "./indicator.es.js";
23
- import _ from "./modal.es.js";
24
- import x from "./overlay.es.js";
25
- import w from "./tooltip.es.js";
23
+ import v from "./persistentToast.es.js";
24
+ import _ from "./infoBox.es.js";
25
+ import P from "./modal.es.js";
26
+ import w from "./overlay.es.js";
27
+ import k from "./tooltip.es.js";
26
28
  const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
29
  __proto__: null,
28
30
  RDSAccordion: l,
29
31
  RDSAccordionGroup: u,
30
32
  RDSActionButton: n,
31
- RDSBreadcrumbs: g,
33
+ RDSBreadcrumbs: A,
32
34
  RDSButton: a,
33
- RDSCard: A,
35
+ RDSCard: T,
34
36
  RDSCheckbox: S,
35
37
  RDSDatePicker: f,
36
- RDSDivider: b,
37
- RDSDropdown: d,
38
+ RDSDivider: B,
39
+ RDSDropdown: s,
38
40
  RDSFloatinActionButton: m,
39
41
  RDSIconSvg: i,
40
42
  RDSIndicator: I,
41
- RDSLink: B,
42
- RDSModal: _,
43
- RDSOverlay: x,
44
- RDSPagination: v,
43
+ RDSInfoBox: _,
44
+ RDSLink: b,
45
+ RDSModal: P,
46
+ RDSOverlay: w,
47
+ RDSPagination: x,
48
+ RDSPersistentToast: v,
45
49
  RDSRadioButton: p,
46
- RDSRadioGroup: R,
47
- RDSSwitch: c,
48
- RDSTabBar: T,
49
- RDSTag: s,
50
- RDSTextArea: e,
51
- RDSTextField: D,
52
- RDSTooltip: w
50
+ RDSRadioGroup: c,
51
+ RDSSwitch: R,
52
+ RDSTabBar: g,
53
+ RDSTag: d,
54
+ RDSTextArea: D,
55
+ RDSTextField: e,
56
+ RDSTooltip: k
53
57
  }, Symbol.toStringTag, { value: "Module" }));
54
- let k;
55
- function oo(o) {
56
- k = o;
58
+ let G;
59
+ function ao(o) {
60
+ G = o;
57
61
  }
58
- const ro = {
62
+ const mo = {
59
63
  install: (o) => {
60
64
  for (const r in t)
61
65
  o.component(
@@ -68,29 +72,31 @@ export {
68
72
  l as RDSAccordion,
69
73
  u as RDSAccordionGroup,
70
74
  n as RDSActionButton,
71
- g as RDSBreadcrumbs,
75
+ A as RDSBreadcrumbs,
72
76
  a as RDSButton,
73
- A as RDSCard,
77
+ T as RDSCard,
74
78
  S as RDSCheckbox,
75
79
  f as RDSDatePicker,
76
- b as RDSDivider,
77
- d as RDSDropdown,
80
+ B as RDSDivider,
81
+ s as RDSDropdown,
78
82
  m as RDSFloatinActionButton,
79
83
  i as RDSIconSvg,
80
84
  I as RDSIndicator,
81
- B as RDSLink,
82
- _ as RDSModal,
83
- x as RDSOverlay,
84
- v as RDSPagination,
85
+ _ as RDSInfoBox,
86
+ b as RDSLink,
87
+ P as RDSModal,
88
+ w as RDSOverlay,
89
+ x as RDSPagination,
90
+ v as RDSPersistentToast,
85
91
  p as RDSRadioButton,
86
- R as RDSRadioGroup,
87
- c as RDSSwitch,
88
- T as RDSTabBar,
89
- s as RDSTag,
90
- e as RDSTextArea,
91
- D as RDSTextField,
92
- w as RDSTooltip,
93
- k as VueInstance,
94
- ro as default,
95
- oo as setVueInstance
92
+ c as RDSRadioGroup,
93
+ R as RDSSwitch,
94
+ g as RDSTabBar,
95
+ d as RDSTag,
96
+ D as RDSTextArea,
97
+ e as RDSTextField,
98
+ k as RDSTooltip,
99
+ G as VueInstance,
100
+ mo as default,
101
+ ao as setVueInstance
96
102
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, openBlock as d, createElementBlock as u, normalizeClass as h, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as I, toDisplayString as B, createCommentVNode as C } from "vue";
1
+ import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, openBlock as d, createElementBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as I, toDisplayString as B, createCommentVNode as C } from "vue";
2
2
  import { d as T, t as A, a as D } from "./functions-DIHwdgF0.js";
3
3
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U = { class: "rds-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
4
+ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
5
5
  __name: "indicator",
6
6
  props: {
7
7
  /**
@@ -74,7 +74,7 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
74
74
  return {
75
75
  [s]: `${a + n}%`
76
76
  };
77
- }), b = () => {
77
+ }), h = () => {
78
78
  if (_.value && v.value) {
79
79
  const r = v.value, e = c.value[0];
80
80
  if (e) {
@@ -91,10 +91,10 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
91
91
  }, L = (r) => {
92
92
  const e = r === 0 || r === t.steps.length - 1, s = !e;
93
93
  return {
94
- "rds-indicator__step-wrapper--first": r === 0,
95
- "rds-indicator__step-wrapper--last": r === t.steps.length - 1,
96
- "rds-indicator__step-wrapper--side": e,
97
- "rds-indicator__step-wrapper--central": s
94
+ "rds-e-indicator__step-wrapper--first": r === 0,
95
+ "rds-e-indicator__step-wrapper--last": r === t.steps.length - 1,
96
+ "rds-e-indicator__step-wrapper--side": e,
97
+ "rds-e-indicator__step-wrapper--central": s
98
98
  };
99
99
  }, g = () => {
100
100
  !t.steps || !t.steps.length || t.steps.forEach((r, e) => {
@@ -103,18 +103,18 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
103
103
  let n = (w = c.value[e]) == null ? void 0 : w.classList, l = [];
104
104
  n && (n = Array.from(n), l = Array.from(n), l = A(
105
105
  l,
106
- "rds-indicator__bullet--active",
106
+ "rds-e-indicator__bullet--active",
107
107
  s
108
108
  ), l = A(
109
109
  l,
110
- "rds-indicator__bullet--current",
110
+ "rds-e-indicator__bullet--current",
111
111
  a
112
112
  ), D(n, l) || setTimeout(() => {
113
113
  c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
114
114
  }, 150));
115
115
  });
116
116
  }, m = () => {
117
- b();
117
+ h();
118
118
  };
119
119
  return S(
120
120
  [o, $, R],
@@ -125,51 +125,51 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
125
125
  ), S(f, () => {
126
126
  g();
127
127
  }), q(() => {
128
- b(), g(), window.addEventListener("resize", T(m, 200));
128
+ h(), g(), window.addEventListener("resize", T(m, 200));
129
129
  }), P(() => {
130
130
  window.removeEventListener("resize", m);
131
131
  }), (r, e) => (d(), u("div", {
132
132
  ref_key: "$indicator",
133
133
  ref: _,
134
- class: h(["rds-indicator", [
135
- `rds-indicator--${t.direction}`,
136
- { "rds-indicator--small": t.variant === "small" },
137
- { "rds-indicator--full-width": t.fullWidth }
134
+ class: b(["rds-e-indicator", [
135
+ `rds-e-indicator--${t.direction}`,
136
+ { "rds-e-indicator--small": t.variant === "small" },
137
+ { "rds-e-indicator--full-width": t.fullWidth }
138
138
  ]])
139
139
  }, [
140
140
  p("div", M, [
141
141
  p("div", {
142
142
  ref_key: "$progressBar",
143
143
  ref: v,
144
- class: "rds-indicator__progress-bar"
144
+ class: "rds-e-indicator__progress-bar"
145
145
  }, [
146
146
  p("div", {
147
- class: "rds-indicator__progress-bar__fill",
147
+ class: "rds-e-indicator__progress-bar__fill",
148
148
  style: V(E.value)
149
149
  }, null, 4)
150
150
  ], 512),
151
151
  (d(!0), u(W, null, I(t.steps, (s, a) => (d(), u("div", {
152
152
  key: a,
153
- class: h(["rds-indicator__step-wrapper", L(a)])
153
+ class: b(["rds-e-indicator__step-wrapper", L(a)])
154
154
  }, [
155
155
  p("div", U, [
156
156
  p("div", {
157
157
  ref_for: !0,
158
158
  ref: (n) => c.value[a] = n,
159
- class: "rds-indicator__bullet"
159
+ class: "rds-e-indicator__bullet"
160
160
  }, [
161
161
  t.variant !== "small" ? (d(), u("span", X, B(a + 1), 1)) : C("", !0)
162
162
  ], 512)
163
163
  ]),
164
164
  t.variant !== "small" ? (d(), u("div", {
165
165
  key: 0,
166
- class: h(["rds-indicator__label", { "rds-indicator__label--ellipsis": t.ellipsis }])
166
+ class: b(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
167
167
  }, B(s), 3)) : C("", !0)
168
168
  ], 2))), 128))
169
169
  ])
170
170
  ], 2));
171
171
  }
172
- }), J = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-9e7f9ded"]]);
172
+ }), J = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-5e262dbc"]]);
173
173
  export {
174
174
  J as default
175
175
  };
@@ -0,0 +1,152 @@
1
+ import { defineComponent as y, ref as d, toRefs as h, computed as k, watch as w, nextTick as C, openBlock as t, createElementBlock as s, normalizeClass as m, createElementVNode as a, createVNode as _, createCommentVNode as o, toDisplayString as i } from "vue";
2
+ import { I as b } from "./icon-svg-CEZ-L3iv.js";
3
+ import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/infoBox.css';const q = { class: "max-layout alert" }, $ = {
5
+ key: 0,
6
+ class: "rds-e-info-box__custom-icon-block"
7
+ }, B = { class: "rds-e-info-box__wrapper" }, H = { class: "rds-e-info-box__title__wrapper" }, I = {
8
+ key: 0,
9
+ class: "rds-e-info-box__title rds-mb-03"
10
+ }, N = {
11
+ key: 0,
12
+ class: "rds-e-info-box__title rds-mb-03"
13
+ }, V = {
14
+ key: 2,
15
+ class: "rds-e-info-box__text"
16
+ }, E = { class: "rds-e-info-box__text" }, z = /* @__PURE__ */ y({
17
+ __name: "info-box",
18
+ props: {
19
+ /**
20
+ * Tipo del mensaje.
21
+ *
22
+ * Define el tipo de mensaje que se mostrará. Puede ser uno de los siguientes valores:
23
+ * - `warning`: Indica un mensaje de advertencia.
24
+ * - `success`: Indica un mensaje de éxito.
25
+ * - `error`: Indica un mensaje de error.
26
+ * - `info`: Indica un mensaje informativo.
27
+ *
28
+ * @type {string}
29
+ * @required
30
+ */
31
+ type: {
32
+ type: String,
33
+ required: !0,
34
+ validator: (e) => typeof e == "string" && ["warning", "success", "error", "info"].includes(e)
35
+ },
36
+ /**
37
+ * El contenido del mensaje.
38
+ *
39
+ * El texto principal que se mostrará en el mensaje.
40
+ *
41
+ * @type {string}
42
+ * @required
43
+ */
44
+ message: {
45
+ type: String,
46
+ required: !1
47
+ },
48
+ /**
49
+ * El título del mensaje.
50
+ *
51
+ * Un título opcional que se mostrará en la parte superior del mensaje.
52
+ *
53
+ * @type {string}
54
+ * @optional
55
+ */
56
+ title: {
57
+ type: String,
58
+ required: !1
59
+ },
60
+ /**
61
+ * El icono asociado con el mensaje.
62
+ *
63
+ * Un icono opcional que se mostrará junto al mensaje. Puede ser el nombre de un icono de una biblioteca de iconos.
64
+ *
65
+ * @type {string}
66
+ * @optional
67
+ */
68
+ icon: {
69
+ type: String,
70
+ required: !1
71
+ },
72
+ /**
73
+ * Indica si el mensaje es colapsable.
74
+ *
75
+ * @type {boolean}
76
+ * @optional
77
+ */
78
+ collapsable: {
79
+ type: Boolean,
80
+ required: !1,
81
+ default: !1
82
+ }
83
+ },
84
+ setup(e) {
85
+ const x = e, n = d(!1), r = d(null), c = d(null), { type: l } = h(x), v = k(
86
+ () => `rds-e-info-box rds-mb-03 rds-e-info-box${l.value === "success" ? "--success" : ""}${l.value === "error" ? "--error" : ""}${l.value === "warning" ? "--warning" : ""}${l.value === "info" ? "--info" : ""}`
87
+ ), g = () => {
88
+ if (!r.value || !c.value) return;
89
+ const u = c.value.scrollHeight;
90
+ r.value.style.maxHeight = n.value ? `${u}px` : "0px";
91
+ };
92
+ w(
93
+ () => n.value,
94
+ () => C(() => {
95
+ g();
96
+ }),
97
+ { immediate: !0 }
98
+ );
99
+ const p = () => {
100
+ n.value = !n.value;
101
+ };
102
+ return (u, f) => (t(), s("div", {
103
+ class: m(v.value),
104
+ role: "alert"
105
+ }, [
106
+ a("div", q, [
107
+ e.icon ? (t(), s("div", $, [
108
+ _(b, {
109
+ name: e.icon,
110
+ class: "rds-e-info-box__custom-icon",
111
+ "aria-hidden": "true"
112
+ }, null, 8, ["name"])
113
+ ])) : o("", !0),
114
+ a("div", B, [
115
+ a("div", H, [
116
+ e.title && !e.collapsable ? (t(), s("div", I, i(e.title), 1)) : o("", !0),
117
+ e.collapsable ? (t(), s("div", {
118
+ key: 1,
119
+ class: "rds-e-info-box__collapsable rds-mb-03",
120
+ onClick: f[0] || (f[0] = () => p())
121
+ }, [
122
+ e.title ? (t(), s("div", N, i(e.title), 1)) : o("", !0),
123
+ _(b, {
124
+ name: "arrow_down",
125
+ class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": n.value }]),
126
+ "aria-hidden": "true"
127
+ }, null, 8, ["class"])
128
+ ])) : o("", !0),
129
+ e.message && !e.collapsable ? (t(), s("p", V, i(e.message), 1)) : o("", !0),
130
+ e.collapsable ? (t(), s("div", {
131
+ key: 3,
132
+ ref_key: "panel",
133
+ ref: r,
134
+ class: "rds-e-info-box__panel"
135
+ }, [
136
+ a("div", {
137
+ ref_key: "panelContent",
138
+ ref: c,
139
+ class: "rds-e-info-box__panel-content"
140
+ }, [
141
+ a("p", E, i(e.message), 1)
142
+ ], 512)
143
+ ], 512)) : o("", !0)
144
+ ])
145
+ ])
146
+ ])
147
+ ], 2));
148
+ }
149
+ }), T = /* @__PURE__ */ S(z, [["__scopeId", "data-v-4a206548"]]);
150
+ export {
151
+ T as default
152
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as D, toRefs as E, computed as c, openBlock as l, createBlock as d, resolveDynamicComponent as L, unref as e, normalizeClass as m, withCtx as N, mergeProps as _, createCommentVNode as i, createElementBlock as B, renderSlot as C, createTextVNode as S, toDisplayString as I } from "vue";
2
- import { I as k } from "./icon-svg-7Vih8GMM.js";
1
+ import { defineComponent as D, toRefs as E, computed as f, openBlock as l, createBlock as d, resolveDynamicComponent as L, unref as e, normalizeClass as m, withCtx as N, mergeProps as _, createCommentVNode as i, createElementBlock as B, renderSlot as C, createTextVNode as S, toDisplayString as I } from "vue";
2
+ import { I as k } from "./icon-svg-CEZ-L3iv.js";
3
3
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/link.css';const V = /* @__PURE__ */ D({
5
5
  __name: "link",
@@ -76,21 +76,21 @@ import './style/link.css';const V = /* @__PURE__ */ D({
76
76
  icon: n,
77
77
  tag: o,
78
78
  disabled: p,
79
- inverse: f,
79
+ inverse: c,
80
80
  arrow: u,
81
81
  right: t,
82
82
  underline: h
83
- } = E(v), j = c(() => {
83
+ } = E(v), j = f(() => {
84
84
  var r, b;
85
- const a = ["rds-link"];
86
- return f.value && a.push("rds-link--inverse"), h.value && a.push("rds-link--underline"), p.value && a.push("rds-style-state-disabled"), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && a.push("link"), ((b = n == null ? void 0 : n.value) == null ? void 0 : b.name) !== "arrow" && f.value && a.push("link__icon--inverse"), a.join(" ");
87
- }), w = c(() => {
85
+ const a = ["rds-e-link"];
86
+ return c.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), p.value && a.push("rds-e-style-state-disabled"), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && a.push("link"), ((b = n == null ? void 0 : n.value) == null ? void 0 : b.name) !== "arrow" && c.value && a.push("link__icon--inverse"), a.join(" ");
87
+ }), w = f(() => {
88
88
  var r;
89
89
  const a = ["link__icon--arrow"];
90
- return n != null && n.value && (a.push("link__icon"), p.value && a.push("link__icon--disabled")), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && f.value && a.push("link__icon--inverse"), a.push(
90
+ return n != null && n.value && (a.push("link__icon"), p.value && a.push("link__icon--disabled")), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && c.value && a.push("link__icon--inverse"), a.push(
91
91
  t.value ? "link__icon--animation-right" : "link__icon--animation-left"
92
92
  ), a.join(" ");
93
- }), x = c(() => {
93
+ }), x = f(() => {
94
94
  var a;
95
95
  return u.value || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.name);
96
96
  });
@@ -101,7 +101,7 @@ import './style/link.css';const V = /* @__PURE__ */ D({
101
101
  disable: e(p)
102
102
  }, {
103
103
  default: N(() => [
104
- e(n) && !e(t) && !e(u) ? (l(), d(k, _({
104
+ e(n).name && !e(t) && !e(u) ? (l(), d(k, _({
105
105
  key: 0,
106
106
  name: e(n).name
107
107
  }, {
@@ -109,9 +109,9 @@ import './style/link.css';const V = /* @__PURE__ */ D({
109
109
  }, { class: w.value }), null, 16, ["name", "class"])) : i("", !0),
110
110
  e(t) ? (l(), B("span", {
111
111
  key: 1,
112
- class: m(["rds-link__text", {
113
- "rds-mr-xs": x.value,
114
- "rds-link__text--underline": e(h)
112
+ class: m(["rds-e-link__text", {
113
+ "rds-e-mr-xs": x.value,
114
+ "rds-e-link__text--underline": e(h)
115
115
  }])
116
116
  }, [
117
117
  C(a.$slots, "default", {}, () => [
@@ -127,13 +127,13 @@ import './style/link.css';const V = /* @__PURE__ */ D({
127
127
  }), null, 16, ["class"])) : i("", !0),
128
128
  e(t) ? i("", !0) : (l(), B("span", {
129
129
  key: 3,
130
- class: m(["rds-link__text", { "rds-ml-xs": x.value }])
130
+ class: m(["rds-e-link__text", { "rds-e-ml-xs": x.value }])
131
131
  }, [
132
132
  C(a.$slots, "default", {}, () => [
133
133
  S(I(e(y)), 1)
134
134
  ], !0)
135
135
  ], 2)),
136
- e(n) && e(t) && !e(u) ? (l(), d(k, _({
136
+ e(n).name && e(t) && !e(u) ? (l(), d(k, _({
137
137
  key: 4,
138
138
  name: e(n).name
139
139
  }, e(n), { class: w.value }), null, 16, ["name", "class"])) : i("", !0)
@@ -141,7 +141,7 @@ import './style/link.css';const V = /* @__PURE__ */ D({
141
141
  _: 3
142
142
  }, 8, ["class", "to", "href", "disable"]));
143
143
  }
144
- }), M = /* @__PURE__ */ R(V, [["__scopeId", "data-v-8883f921"]]);
144
+ }), M = /* @__PURE__ */ R(V, [["__scopeId", "data-v-2e064780"]]);
145
145
  export {
146
146
  M as default
147
147
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as v, ref as y, onMounted as C, openBlock as o, createBlock as m, unref as l, withCtx as p, createVNode as h, createElementVNode as t, renderSlot as d, createCommentVNode as s, createElementBlock as u } from "vue";
1
+ import { defineComponent as v, ref as y, onMounted as C, openBlock as o, createBlock as m, unref as l, withCtx as p, createVNode as h, createElementVNode as t, renderSlot as a, createCommentVNode as s, createElementBlock as u } from "vue";
2
2
  import k from "./overlay.es.js";
3
3
  import B from "./card.es.js";
4
- import { I as b } from "./icon-svg-7Vih8GMM.js";
4
+ import { I as b } from "./icon-svg-CEZ-L3iv.js";
5
5
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import './style/modal.css';const S = { class: "rds-modal__container" }, $ = { class: "rds-modal__header" }, q = {
6
+ import './style/modal.css';const S = { class: "rds-e-modal__container" }, $ = { class: "rds-e-modal__header" }, q = {
7
7
  key: 0,
8
- class: "rds-modal__section-spacer"
9
- }, w = { class: "rds-modal__body" }, E = {
8
+ class: "rds-e-modal__section-spacer"
9
+ }, w = { class: "rds-e-modal__body" }, E = {
10
10
  key: 1,
11
- class: "rds-modal__section-spacer"
12
- }, I = { class: "rds-modal__footer" }, N = /* @__PURE__ */ v({
11
+ class: "rds-e-modal__section-spacer"
12
+ }, I = { class: "rds-e-modal__footer" }, N = /* @__PURE__ */ v({
13
13
  __name: "modal",
14
14
  props: {
15
15
  /**
@@ -45,30 +45,30 @@ import './style/modal.css';const S = { class: "rds-modal__container" }, $ = { cl
45
45
  }
46
46
  },
47
47
  emits: ["onCloseRequest"],
48
- setup(a, { emit: f }) {
49
- const r = a, n = f, c = y(null), i = () => {
48
+ setup(d, { emit: f }) {
49
+ const r = d, n = f, c = y(null), i = () => {
50
50
  r.preventClose || n("onCloseRequest");
51
51
  };
52
52
  return C(() => {
53
53
  var e;
54
54
  (e = c.value) == null || e.addEventListener("click", i);
55
- }), (e, _) => a.open ? (o(), m(l(k), {
55
+ }), (e, _) => d.open ? (o(), m(l(k), {
56
56
  key: 0,
57
57
  ref_key: "overlay",
58
58
  ref: c,
59
- class: "rds-modal__overlay",
59
+ class: "rds-e-modal__overlay",
60
60
  teleport: r.teleport,
61
61
  onClick: i
62
62
  }, {
63
63
  default: p(() => [
64
- h(l(B), { class: "rds-modal__card" }, {
64
+ h(l(B), { class: "rds-e-modal__card" }, {
65
65
  default: p(() => [
66
66
  t("div", S, [
67
67
  t("div", $, [
68
- d(e.$slots, "header", {}, void 0, !0),
68
+ a(e.$slots, "header", {}, void 0, !0),
69
69
  r.showClose ? (o(), m(l(b), {
70
70
  key: 0,
71
- class: "rds-modal__header-close",
71
+ class: "rds-e-modal__header-close",
72
72
  name: "close",
73
73
  small: "",
74
74
  onClick: _[0] || (_[0] = () => n("onCloseRequest"))
@@ -76,11 +76,11 @@ import './style/modal.css';const S = { class: "rds-modal__container" }, $ = { cl
76
76
  ]),
77
77
  e.$slots.body ? (o(), u("span", q)) : s("", !0),
78
78
  t("div", w, [
79
- d(e.$slots, "body", {}, void 0, !0)
79
+ a(e.$slots, "body", {}, void 0, !0)
80
80
  ]),
81
81
  e.$slots.footer ? (o(), u("span", E)) : s("", !0),
82
82
  t("div", I, [
83
- d(e.$slots, "footer", {}, void 0, !0)
83
+ a(e.$slots, "footer", {}, void 0, !0)
84
84
  ])
85
85
  ])
86
86
  ]),
@@ -90,7 +90,7 @@ import './style/modal.css';const S = { class: "rds-modal__container" }, $ = { cl
90
90
  _: 3
91
91
  }, 8, ["teleport"])) : s("", !0);
92
92
  }
93
- }), M = /* @__PURE__ */ R(N, [["__scopeId", "data-v-d1fb90c2"]]);
93
+ }), M = /* @__PURE__ */ R(N, [["__scopeId", "data-v-a952c8fb"]]);
94
94
  export {
95
95
  M as default
96
96
  };