energy-components 1.8.1 → 1.10.0-beta.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 (65) hide show
  1. package/dist/components/accordion.es.js +1 -1
  2. package/dist/components/avatar.es.js +161 -0
  3. package/dist/components/button.es.js +1 -1
  4. package/dist/components/checkbox.es.js +52 -36
  5. package/dist/components/directAccess.es.js +146 -0
  6. package/dist/components/dragAndDrop.es.js +77 -60
  7. package/dist/components/dropdown.es.js +125 -112
  8. package/dist/components/fileUploadItem.es.js +182 -0
  9. package/dist/components/filterChip.es.js +27 -23
  10. package/dist/components/icon-svg-YXBqzlJN.js +14398 -0
  11. package/dist/components/iconList.es.js +1 -1
  12. package/dist/components/iconSvg.es.js +1 -1
  13. package/dist/components/index.es.js +77 -65
  14. package/dist/components/infoBox.es.js +1 -1
  15. package/dist/components/link.es.js +67 -55
  16. package/dist/components/loader.es.js +178 -0
  17. package/dist/components/modal.es.js +1 -1
  18. package/dist/components/multiselect.es.js +73 -65
  19. package/dist/components/persistentToast.es.js +1 -1
  20. package/dist/components/progressBar.es.js +52 -28
  21. package/dist/components/quantitySelector.es.js +1 -1
  22. package/dist/components/radioButton.es.js +1 -1
  23. package/dist/components/selectionChip.es.js +15 -14
  24. package/dist/components/sidedrawer.es.js +1 -1
  25. package/dist/components/style/avatar.css +1 -0
  26. package/dist/components/style/button.css +1 -1
  27. package/dist/components/style/checkbox.css +1 -1
  28. package/dist/components/style/directAccess.css +1 -0
  29. package/dist/components/style/dragAndDrop.css +1 -1
  30. package/dist/components/style/dropdown.css +1 -1
  31. package/dist/components/style/fileUploadItem.css +1 -0
  32. package/dist/components/style/filterChip.css +1 -1
  33. package/dist/components/style/link.css +1 -1
  34. package/dist/components/style/loader.css +1 -0
  35. package/dist/components/style/multiselect.css +1 -1
  36. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  37. package/dist/components/style/progressBar.css +1 -1
  38. package/dist/components/style/selectionChip.css +1 -1
  39. package/dist/components/style/toggle.css +1 -1
  40. package/dist/components/switch.es.js +1 -1
  41. package/dist/components/tabBar.es.js +1 -1
  42. package/dist/components/tableslotedcomponent.es.js +1 -1
  43. package/dist/components/tag.es.js +1 -1
  44. package/dist/components/textArea.es.js +1 -1
  45. package/dist/components/textField.es.js +1 -1
  46. package/dist/components/toggle.es.js +21 -20
  47. package/dist/components/tooltip.es.js +1 -1
  48. package/dist/energy-components.es.js +14281 -9987
  49. package/dist/energy-components.umd.js +2 -2
  50. package/dist/style.css +1 -1
  51. package/dist/types/src/components/content/avatar/avatar.vue.d.ts +153 -0
  52. package/dist/types/src/components/feedback/loader/loader.vue.d.ts +151 -0
  53. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +34 -0
  54. package/dist/types/src/components/index.d.ts +4 -0
  55. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +15 -0
  56. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +14 -2
  57. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +23 -0
  58. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +229 -0
  59. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -0
  60. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +178 -0
  61. package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
  62. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -1
  63. package/dist/types/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +2 -2
  65. package/dist/components/icon-svg-_WCkLP8-.js +0 -10847
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, ref as a, computed as v, createElementBlock as s, openBlock 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, R as k } from "./icon-svg-_WCkLP8-.js";
2
+ import { i as m, R as k } from "./icon-svg-YXBqzlJN.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/iconList.css';const y = { class: "rds-e-icon-list" }, D = ["onClick"], N = /* @__PURE__ */ p({
5
5
  __name: "icon-list",
@@ -1,4 +1,4 @@
1
- import { R as a } from "./icon-svg-_WCkLP8-.js";
1
+ import { R as a } from "./icon-svg-YXBqzlJN.js";
2
2
  import "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  export {
4
4
  a as default
@@ -1,83 +1,91 @@
1
- import { R as i } from "./icon-svg-_WCkLP8-.js";
1
+ import { R as i } from "./icon-svg-YXBqzlJN.js";
2
2
  import a from "./button.es.js";
3
3
  import e from "./floatingActionButton.es.js";
4
4
  import m from "./actionButton.es.js";
5
5
  import S from "./checkbox.es.js";
6
6
  import D from "./textField.es.js";
7
- import n from "./textArea.es.js";
8
- import p from "./switch.es.js";
9
- import R from "./radioButton.es.js";
7
+ import p from "./textArea.es.js";
8
+ import R from "./switch.es.js";
9
+ import n from "./radioButton.es.js";
10
10
  import { _ as s } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
11
11
  import c from "./dropdown.es.js";
12
12
  import d from "./datepicker.es.js";
13
13
  import f from "./quantitySelector.es.js";
14
14
  import l from "./toggle.es.js";
15
15
  import u from "./selectionChip.es.js";
16
- import g from "./filterChip.es.js";
16
+ import A from "./filterChip.es.js";
17
17
  import b from "./dragAndDrop.es.js";
18
- import B from "./tag.es.js";
19
- import T from "./accordionGroup.es.js";
20
- import A from "./accordion.es.js";
21
- import h from "./divider.es.js";
22
- import x from "./card.es.js";
23
- import w from "./tablepaginatedcomponent.es.js";
18
+ import g from "./fileUploadItem.es.js";
19
+ import T from "./tag.es.js";
20
+ import B from "./accordionGroup.es.js";
21
+ import h from "./accordion.es.js";
22
+ import x from "./divider.es.js";
23
+ import I from "./card.es.js";
24
+ import v from "./tablepaginatedcomponent.es.js";
25
+ import w from "./avatar.es.js";
24
26
  import C from "./link.es.js";
25
27
  import P from "./breadcrumbs.es.js";
26
28
  import _ from "./tabBar.es.js";
27
29
  import y from "./pagination.es.js";
28
- import I from "./indicator.es.js";
29
- import v from "./persistentToast.es.js";
30
- import k from "./infoBox.es.js";
31
- import F from "./progressBar.es.js";
32
- import G from "./modal.es.js";
33
- import M from "./overlay.es.js";
34
- import O from "./tooltip.es.js";
35
- import j from "./sidebar.es.js";
36
- import Q from "./sidedrawer.es.js";
30
+ import F from "./directAccess.es.js";
31
+ import k from "./indicator.es.js";
32
+ import G from "./persistentToast.es.js";
33
+ import L from "./infoBox.es.js";
34
+ import M from "./progressBar.es.js";
35
+ import O from "./loader.es.js";
36
+ import U from "./modal.es.js";
37
+ import j from "./overlay.es.js";
38
+ import Q from "./tooltip.es.js";
39
+ import V from "./sidebar.es.js";
40
+ import q from "./sidedrawer.es.js";
37
41
  const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
42
  __proto__: null,
39
- RDSAccordion: A,
40
- RDSAccordionGroup: T,
43
+ RDSAccordion: h,
44
+ RDSAccordionGroup: B,
41
45
  RDSActionButton: m,
46
+ RDSAvatar: w,
42
47
  RDSBreadcrumbs: P,
43
48
  RDSButton: a,
44
- RDSCard: x,
49
+ RDSCard: I,
45
50
  RDSCheckbox: S,
46
51
  RDSDatePicker: d,
47
- RDSDivider: h,
52
+ RDSDirectAccess: F,
53
+ RDSDivider: x,
48
54
  RDSDragAndDrop: b,
49
55
  RDSDropdown: c,
50
- RDSFilterChip: g,
56
+ RDSFileUploadItem: g,
57
+ RDSFilterChip: A,
51
58
  RDSFloatinActionButton: e,
52
59
  RDSIconSvg: i,
53
- RDSIndicator: I,
54
- RDSInfoBox: k,
60
+ RDSIndicator: k,
61
+ RDSInfoBox: L,
55
62
  RDSLink: C,
56
- RDSModal: G,
57
- RDSOverlay: M,
63
+ RDSLoader: O,
64
+ RDSModal: U,
65
+ RDSOverlay: j,
58
66
  RDSPagination: y,
59
- RDSPersistentToast: v,
60
- RDSProgressBar: F,
67
+ RDSPersistentToast: G,
68
+ RDSProgressBar: M,
61
69
  RDSQuantitySelector: f,
62
- RDSRadioButton: R,
70
+ RDSRadioButton: n,
63
71
  RDSRadioGroup: s,
64
72
  RDSSelectionChip: u,
65
- RDSSidebar: j,
66
- RDSSidedrawer: Q,
67
- RDSSwitch: p,
73
+ RDSSidebar: V,
74
+ RDSSidedrawer: q,
75
+ RDSSwitch: R,
68
76
  RDSTabBar: _,
69
- RDSTable: w,
70
- RDSTag: B,
71
- RDSTextArea: n,
77
+ RDSTable: v,
78
+ RDSTag: T,
79
+ RDSTextArea: p,
72
80
  RDSTextField: D,
73
81
  RDSToggle: l,
74
- RDSTooltip: O
82
+ RDSTooltip: Q
75
83
  }, Symbol.toStringTag, { value: "Module" }));
76
- let V;
77
- function ho(o) {
78
- V = o;
84
+ let z;
85
+ function yo(o) {
86
+ z = o;
79
87
  }
80
- const xo = {
88
+ const Fo = {
81
89
  install: (o) => {
82
90
  for (const r in t)
83
91
  o.component(
@@ -87,43 +95,47 @@ const xo = {
87
95
  }
88
96
  };
89
97
  export {
90
- A as RDSAccordion,
91
- T as RDSAccordionGroup,
98
+ h as RDSAccordion,
99
+ B as RDSAccordionGroup,
92
100
  m as RDSActionButton,
101
+ w as RDSAvatar,
93
102
  P as RDSBreadcrumbs,
94
103
  a as RDSButton,
95
- x as RDSCard,
104
+ I as RDSCard,
96
105
  S as RDSCheckbox,
97
106
  d as RDSDatePicker,
98
- h as RDSDivider,
107
+ F as RDSDirectAccess,
108
+ x as RDSDivider,
99
109
  b as RDSDragAndDrop,
100
110
  c as RDSDropdown,
101
- g as RDSFilterChip,
111
+ g as RDSFileUploadItem,
112
+ A as RDSFilterChip,
102
113
  e as RDSFloatinActionButton,
103
114
  i as RDSIconSvg,
104
- I as RDSIndicator,
105
- k as RDSInfoBox,
115
+ k as RDSIndicator,
116
+ L as RDSInfoBox,
106
117
  C as RDSLink,
107
- G as RDSModal,
108
- M as RDSOverlay,
118
+ O as RDSLoader,
119
+ U as RDSModal,
120
+ j as RDSOverlay,
109
121
  y as RDSPagination,
110
- v as RDSPersistentToast,
111
- F as RDSProgressBar,
122
+ G as RDSPersistentToast,
123
+ M as RDSProgressBar,
112
124
  f as RDSQuantitySelector,
113
- R as RDSRadioButton,
125
+ n as RDSRadioButton,
114
126
  s as RDSRadioGroup,
115
127
  u as RDSSelectionChip,
116
- j as RDSSidebar,
117
- Q as RDSSidedrawer,
118
- p as RDSSwitch,
128
+ V as RDSSidebar,
129
+ q as RDSSidedrawer,
130
+ R as RDSSwitch,
119
131
  _ as RDSTabBar,
120
- w as RDSTable,
121
- B as RDSTag,
122
- n as RDSTextArea,
132
+ v as RDSTable,
133
+ T as RDSTag,
134
+ p as RDSTextArea,
123
135
  D as RDSTextField,
124
136
  l as RDSToggle,
125
- O as RDSTooltip,
126
- V as VueInstance,
127
- xo as default,
128
- ho as setVueInstance
137
+ Q as RDSTooltip,
138
+ z as VueInstance,
139
+ Fo as default,
140
+ yo as setVueInstance
129
141
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as k, ref as u, toRefs as h, computed as $, watch as w, nextTick as S, createElementBlock as t, openBlock as s, normalizeClass as m, createElementVNode as a, createCommentVNode as o, createVNode as b, toDisplayString as r, renderSlot as v } from "vue";
2
- import { R as _ } from "./icon-svg-_WCkLP8-.js";
2
+ import { R as _ } from "./icon-svg-YXBqzlJN.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/infoBox.css';const q = { class: "alert" }, B = {
5
5
  key: 0,
@@ -1,7 +1,7 @@
1
- import { defineComponent as j, toRefs as E, computed as f, createBlock as d, openBlock as r, resolveDynamicComponent as L, unref as e, normalizeClass as m, withCtx as N, createCommentVNode as i, createElementBlock as S, mergeProps as _, renderSlot as b, createTextVNode as B, toDisplayString as I } from "vue";
2
- import { R as k } from "./icon-svg-_WCkLP8-.js";
3
- import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/link.css';const $ = /* @__PURE__ */ j({
1
+ import { defineComponent as E, toRefs as L, computed as c, createBlock as p, openBlock as o, resolveDynamicComponent as N, unref as e, normalizeStyle as V, normalizeClass as _, withCtx as $, createCommentVNode as i, createElementBlock as b, mergeProps as k, renderSlot as B, createTextVNode as I, toDisplayString as D } from "vue";
2
+ import { R as v } from "./icon-svg-YXBqzlJN.js";
3
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/link.css';const O = /* @__PURE__ */ E({
5
5
  __name: "link",
6
6
  props: {
7
7
  /**
@@ -73,86 +73,98 @@ import './style/link.css';const $ = /* @__PURE__ */ j({
73
73
  customClass: {
74
74
  type: String,
75
75
  default: ""
76
+ },
77
+ /**
78
+ * <span>Color personalizado para el link. Si se define, sobrescribe el color por defecto. Puede ser cualquier valor CSS válido: #333, rgb(), var(--color), etc.</span>
79
+ */
80
+ color: {
81
+ type: String,
82
+ default: ""
76
83
  }
77
84
  },
78
85
  setup(s) {
79
- const v = s, {
80
- text: y,
81
- to: g,
82
- icon: n,
83
- tag: o,
84
- disabled: c,
85
- inverse: p,
86
- arrow: u,
86
+ const y = s, {
87
+ text: g,
88
+ to: w,
89
+ icon: r,
90
+ tag: u,
91
+ disabled: f,
92
+ inverse: m,
93
+ arrow: d,
87
94
  right: t,
88
95
  underline: h,
89
- customClass: D
90
- } = E(v), R = f(() => {
91
- var l, C;
96
+ customClass: R,
97
+ color: l
98
+ } = L(y), j = c(() => l.value ? { color: l.value } : void 0), z = c(() => {
99
+ var n, C;
92
100
  const a = ["rds-e-link"];
93
- return p.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), c.value && a.push("rds-e-style-state-disabled"), ((l = n == null ? void 0 : n.value) == null ? void 0 : l.name) !== "arrow" && a.push("link"), ((C = n == null ? void 0 : n.value) == null ? void 0 : C.name) !== "arrow" && p.value && a.push("link__icon--inverse"), a.join(" ");
94
- }), w = f(() => {
95
- var l;
96
- const a = ["link__icon--arrow"];
97
- return n != null && n.value && (a.push("link__icon"), c.value && a.push("link__icon--disabled")), ((l = n == null ? void 0 : n.value) == null ? void 0 : l.name) !== "arrow" && p.value && a.push("link__icon--inverse"), a.push(
98
- t.value ? "link__icon--animation-right" : "link__icon--animation-left"
101
+ return m.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), f.value && a.push("rds-e-style-state-disabled"), ((n = r == null ? void 0 : r.value) == null ? void 0 : n.name) !== "arrow" && a.push("rds-e-arrow-link"), ((C = r == null ? void 0 : r.value) == null ? void 0 : C.name) !== "arrow" && m.value && a.push("rds-e-arrow-link__icon--inverse"), a.join(" ");
102
+ }), S = c(() => {
103
+ var n;
104
+ const a = ["rds-e-arrow-link__icon--arrow"];
105
+ return r != null && r.value && (a.push("rds-e-arrow-link__icon"), f.value && a.push("rds-e-arrow-link__icon--disabled")), ((n = r == null ? void 0 : r.value) == null ? void 0 : n.name) !== "arrow" && m.value && a.push("rds-e-arrow-link__icon--inverse"), a.push(
106
+ t.value ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
99
107
  ), a.join(" ");
100
- }), x = f(() => {
108
+ }), x = c(() => {
101
109
  var a;
102
- return u.value || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.name);
110
+ return d.value || ((a = r == null ? void 0 : r.value) == null ? void 0 : a.name);
103
111
  });
104
- return (a, l) => (r(), d(L(e(o) === "a" ? e(o) : "router-link"), {
105
- class: m(R.value),
106
- to: e(o) === "router-link" ? e(g) : null,
107
- href: e(o) === "a" ? e(g) : null,
108
- disable: e(c)
112
+ return (a, n) => (o(), p(N(e(u) === "a" ? e(u) : "router-link"), {
113
+ class: _(z.value),
114
+ to: e(u) === "router-link" ? e(w) : null,
115
+ href: e(u) === "a" ? e(w) : null,
116
+ disable: e(f),
117
+ style: V(j.value)
109
118
  }, {
110
- default: N(() => [
111
- e(n).name && !e(t) && !e(u) ? (r(), d(k, _({
119
+ default: $(() => [
120
+ e(r).name && !e(t) && !e(d) ? (o(), p(v, k({
112
121
  key: 0,
113
- name: e(n).name
122
+ name: e(r).name
114
123
  }, {
115
- ...e(n)
124
+ ...e(r)
116
125
  }, {
117
- class: ["rds-e-link__icon-left", w.value]
118
- }), null, 16, ["name", "class"])) : i("", !0),
119
- e(t) ? (r(), S("span", {
126
+ class: ["rds-e-link__icon-left", S.value],
127
+ style: e(l) ? { color: e(l) } : void 0
128
+ }), null, 16, ["name", "class", "style"])) : i("", !0),
129
+ e(t) ? (o(), b("span", {
120
130
  key: 1,
121
- class: m(["rds-e-link__text", [e(D), {
131
+ class: _(["rds-e-link__text", [e(R), {
122
132
  "rds-e-mr-xs": x.value,
123
133
  "rds-e-link__text--underline": e(h)
124
134
  }]])
125
135
  }, [
126
- b(a.$slots, "default", {}, () => [
127
- B(I(e(y)), 1)
136
+ B(a.$slots, "default", {}, () => [
137
+ I(D(e(g)), 1)
128
138
  ], !0)
129
139
  ], 2)) : i("", !0),
130
- e(u) ? (r(), d(k, _({ key: 2 }, {
140
+ e(d) ? (o(), p(v, k({ key: 2 }, {
131
141
  name: e(t) ? "arrow_right" : "arrow_left"
132
142
  }, {
133
- class: ["link__icon--arrow", [
134
- e(t) ? "link__icon--animation-right" : "link__icon--animation-left"
135
- ]]
136
- }), null, 16, ["class"])) : i("", !0),
137
- e(t) ? i("", !0) : (r(), S("span", {
143
+ class: ["rds-e-arrow-link__icon--arrow", [
144
+ e(t) ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
145
+ ]],
146
+ style: e(l) ? { color: e(l) } : void 0
147
+ }), null, 16, ["class", "style"])) : i("", !0),
148
+ e(t) ? i("", !0) : (o(), b("span", {
138
149
  key: 3,
139
- class: m(["rds-e-link__text", { "rds-e-ml-xs": x.value }])
150
+ class: _(["rds-e-link__text", { "rds-e-ml-xs": x.value }])
140
151
  }, [
141
- b(a.$slots, "default", {}, () => [
142
- B(I(e(y)), 1)
152
+ B(a.$slots, "default", {}, () => [
153
+ I(D(e(g)), 1)
143
154
  ], !0)
144
155
  ], 2)),
145
- e(n).name && e(t) && !e(u) ? (r(), d(k, _({
156
+ e(r).name && e(t) && !e(d) ? (o(), p(v, k({
146
157
  key: 4,
147
- name: e(n).name
148
- }, e(n), {
149
- class: ["rds-e-link__icon-right", w.value]
150
- }), null, 16, ["name", "class"])) : i("", !0)
158
+ name: e(r).name
159
+ }, e(r), {
160
+ class: ["rds-e-link__icon-right", S.value],
161
+ style: e(l) ? { color: e(l) } : void 0
162
+ }), null, 16, ["name", "class", "style"])) : i("", !0)
151
163
  ]),
152
164
  _: 3
153
- }, 8, ["class", "to", "href", "disable"]));
165
+ }, 8, ["class", "to", "href", "disable", "style"]));
154
166
  }
155
- }), P = /* @__PURE__ */ V($, [["__scopeId", "data-v-d51e1628"]]);
167
+ }), A = /* @__PURE__ */ M(O, [["__scopeId", "data-v-49b40e60"]]);
156
168
  export {
157
- P as default
169
+ A as default
158
170
  };
@@ -0,0 +1,178 @@
1
+ import { defineComponent as w, toRefs as b, computed as o, createElementBlock as f, openBlock as h, unref as n, normalizeStyle as S, normalizeClass as C, createElementVNode as a, mergeProps as B } from "vue";
2
+ import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './style/loader.css';const F = ["aria-label"], N = ["width", "height", "viewBox"], W = ["id"], E = ["stop-color"], M = ["stop-color"], D = ["stop-color"], I = ["stop-color"], L = ["cx", "cy", "r", "stroke-width"], P = ["cx", "cy", "r", "stroke-width", "stroke"], T = /* @__PURE__ */ w({
4
+ __name: "loader",
5
+ props: {
6
+ /**
7
+ * Define el diámetro del loader en píxeles.
8
+ * El valor se ajustará para estar entre 32px (mínimo) y 120px (máximo).
9
+ *
10
+ * @type {number}
11
+ * @optional
12
+ */
13
+ size: {
14
+ type: Number,
15
+ default: 64
16
+ },
17
+ /**
18
+ * Especifica la variante del loader.
19
+ * 'default': Muestra solo el spinner.
20
+ * 'contained': Envuelve el spinner en un contenedor con estilo de tarjeta (104x104px con padding de 24px).
21
+ * El prop `size` afectará al spinner dentro de este contenedor.
22
+ *
23
+ * @type {string}
24
+ * @optional
25
+ */
26
+ variant: {
27
+ type: String,
28
+ default: "default",
29
+ validator: (r) => typeof r == "string" && ["default", "contained"].includes(r)
30
+ },
31
+ /**
32
+ * Controla el tipo de animación del loader.
33
+ * 'normal': Una rotación continua de un arco del círculo.
34
+ * 'infinite': Una animación donde un segmento del círculo parece crecer, encogerse y rotar.
35
+ *
36
+ * @type {string}
37
+ * @optional
38
+ */
39
+ animationType: {
40
+ type: String,
41
+ default: "normal",
42
+ validator: (r) => typeof r == "string" && ["normal", "infinite"].includes(r)
43
+ },
44
+ /**
45
+ * Define el grosor del trazo del spinner en píxeles.
46
+ * Si no se especifica, se calcula automáticamente como `size / 8` (con un mínimo de 2px).
47
+ *
48
+ * @type {number}
49
+ * @optional
50
+ */
51
+ strokeWidth: {
52
+ type: Number,
53
+ default: 4
54
+ },
55
+ /**
56
+ * Etiqueta ARIA para accesibilidad. Describe la acción que se está realizando.
57
+ *
58
+ * @type {string}
59
+ * @optional
60
+ */
61
+ ariaLabel: {
62
+ type: String,
63
+ default: "Cargando"
64
+ },
65
+ /**
66
+ * Identificador único para el componente y sus elementos internos (como el gradiente SVG).
67
+ * Si no se proporciona, se usará un valor por defecto.
68
+ *
69
+ * @type {string}
70
+ * @optional
71
+ */
72
+ id: {
73
+ type: String,
74
+ default: "rds-loader-default-id"
75
+ }
76
+ },
77
+ setup(r) {
78
+ const _ = r, {
79
+ size: m,
80
+ variant: p,
81
+ animationType: s,
82
+ strokeWidth: u,
83
+ ariaLabel: g,
84
+ id: v
85
+ } = b(_), i = {
86
+ stop000: "#FF9C00",
87
+ stop024: "#FF7E45",
88
+ stop065: "#FF3740",
89
+ stop100: "#C02030"
90
+ }, e = o(() => {
91
+ const t = Number(m.value);
92
+ return t < 32 ? 32 : t > 120 ? 120 : t;
93
+ }), d = o(() => u.value !== void 0 && u.value > 0 ? Number(u.value) : Math.max(2, Math.round(e.value / 8))), c = o(() => (e.value - d.value) / 2), l = o(() => 2 * Math.PI * c.value), y = o(() => [
94
+ "rds-e-loader",
95
+ `rds-e-loader--${p.value}`,
96
+ `rds-e-loader--animation-${s.value}`
97
+ ]), x = o(() => {
98
+ if (p.value === "contained") {
99
+ const t = e.value + 48;
100
+ return {
101
+ width: `${t}px`,
102
+ height: `${t}px`,
103
+ padding: "24px"
104
+ };
105
+ }
106
+ return {
107
+ width: `${e.value}px`,
108
+ height: `${e.value}px`
109
+ };
110
+ }), k = o(() => s.value === "normal" ? `${l.value * 0.75} ${l.value * 0.25}` : e.value > 70 ? `${l.value * 0.05} ${l.value * 0.95}` : `${l.value * 0.1} ${l.value * 0.9}`), $ = o(() => (s.value === "normal", 0));
111
+ return (t, j) => (h(), f("div", {
112
+ class: C(y.value),
113
+ style: S(x.value),
114
+ role: "progressbar",
115
+ "aria-label": n(g),
116
+ "aria-busy": "true"
117
+ }, [
118
+ (h(), f("svg", {
119
+ width: e.value,
120
+ height: e.value,
121
+ viewBox: `0 0 ${e.value} ${e.value}`,
122
+ class: "rds-e-loader__svg",
123
+ xmlns: "http://www.w3.org/2000/svg"
124
+ }, [
125
+ a("defs", null, [
126
+ a("linearGradient", {
127
+ id: `rds-loader-gradient-${n(v)}`,
128
+ x1: "0.1605",
129
+ y1: "0.133",
130
+ x2: "0.8395",
131
+ y2: "0.867",
132
+ gradientUnits: "objectBoundingBox"
133
+ }, [
134
+ a("stop", {
135
+ offset: "0%",
136
+ "stop-color": i.stop000
137
+ }, null, 8, E),
138
+ a("stop", {
139
+ offset: "24.3%",
140
+ "stop-color": i.stop024
141
+ }, null, 8, M),
142
+ a("stop", {
143
+ offset: "65.21%",
144
+ "stop-color": i.stop065
145
+ }, null, 8, D),
146
+ a("stop", {
147
+ offset: "100%",
148
+ "stop-color": i.stop100
149
+ }, null, 8, I)
150
+ ], 8, W)
151
+ ]),
152
+ a("circle", {
153
+ class: "rds-e-loader__track",
154
+ cx: e.value / 2,
155
+ cy: e.value / 2,
156
+ r: c.value,
157
+ "stroke-width": d.value,
158
+ fill: "none"
159
+ }, null, 8, L),
160
+ a("circle", B({
161
+ class: "rds-e-loader__arc",
162
+ cx: e.value / 2,
163
+ cy: e.value / 2,
164
+ r: c.value,
165
+ "stroke-width": d.value,
166
+ stroke: `url(#rds-loader-gradient-${n(v)})`,
167
+ fill: "none",
168
+ "stroke-linecap": "round"
169
+ }, n(s) === "normal" ? { "stroke-dasharray": k.value, "stroke-dashoffset": $.value } : {}, {
170
+ style: n(s) === "infinite" ? { "--circumference": `${l.value}px` } : {}
171
+ }), null, 16, P)
172
+ ], 8, N))
173
+ ], 14, F));
174
+ }
175
+ }), O = /* @__PURE__ */ z(T, [["__scopeId", "data-v-30cf8a40"]]);
176
+ export {
177
+ O as default
178
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as v, computed as R, createBlock as u, createCommentVNode as d, openBlock as l, unref as n, withCtx as p, createVNode as k, withModifiers as b, normalizeStyle as g, createElementVNode as a, createElementBlock as c, renderSlot as i } from "vue";
2
2
  import w from "./overlay.es.js";
3
3
  import S from "./card.es.js";
4
- import { R as q } from "./icon-svg-_WCkLP8-.js";
4
+ import { R as q } from "./icon-svg-YXBqzlJN.js";
5
5
  import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import './style/modal.css';const $ = { class: "rds-e-modal__container" }, B = { class: "rds-e-modal__header" }, O = {
7
7
  key: 0,