@cypress-design/vue-accordion 0.2.0 → 0.2.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.
package/Accordion.vue CHANGED
@@ -12,7 +12,7 @@
12
12
  <span
13
13
  v-if="(props.icon || slots.iconEl) && separator"
14
14
  :class="CssClasses.separator"
15
- aria-role="separator"
15
+ role="separator"
16
16
  />
17
17
  <span class="flex-grow pr-[16px]">
18
18
  <span
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cypress-design/vue-accordion
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c798320`](https://github.com/cypress-io/cypress-design/commit/c798320236ec41a43eb74be80f407781e980aaf0) Thanks [@elevatebart](https://github.com/elevatebart)! - fix the aria-role of accordion separator
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.es.mjs CHANGED
@@ -19,11 +19,11 @@ const n = {
19
19
  body: e,
20
20
  compiledClasses: t,
21
21
  size: r,
22
- class: a,
22
+ class: l,
23
23
  interactiveColorsOnGroup: u,
24
24
  ...p
25
25
  }) => {
26
- const c = Object.keys(p).reduce((m, l) => (!B.includes(l) && l !== "name" && (m[l] = p[l]), m), {}), f = {
26
+ const c = Object.keys(p).reduce((m, a) => (!B.includes(a) && a !== "name" && (m[a] = p[a]), m), {}), f = {
27
27
  width: r,
28
28
  height: r,
29
29
  viewBox: `0 0 ${r} ${r}`,
@@ -33,16 +33,16 @@ const n = {
33
33
  };
34
34
  return t.length && (f.class = t.join(" ")), f;
35
35
  }, O = (e) => {
36
- const { sizeWithDefault: t, compiledClasses: r } = z.getComponentAttributes({ ...e, availableSizes: ["8", "16"] }), a = {
36
+ const { sizeWithDefault: t, compiledClasses: r } = z.getComponentAttributes({ ...e, availableSizes: ["8", "16"] }), l = {
37
37
  8: '<path d="m1 2.5 3 3 3-3" stroke="currentColor" class="icon-dark" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',
38
38
  16: '<path d="m4 6 4 4 4-4" stroke="currentColor" class="icon-dark" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>'
39
39
  }[t];
40
- if (!a)
40
+ if (!l)
41
41
  throw Error(`Icon "chevron-down-small" is not available in size ${t}`);
42
42
  return g("svg", E({
43
43
  ...e,
44
44
  size: t,
45
- body: a,
45
+ body: l,
46
46
  compiledClasses: r
47
47
  }));
48
48
  }, S = { class: "flex-grow pr-[16px]" }, A = /* @__PURE__ */ v({
@@ -58,13 +58,13 @@ const n = {
58
58
  fullWidthContent: { type: Boolean }
59
59
  },
60
60
  setup(e) {
61
- const t = e, r = b(), a = x(null), u = x(null);
61
+ const t = e, r = b(), l = x(null), u = x(null);
62
62
  w(function() {
63
- u.value && a.value && new D(u.value, a.value);
63
+ u.value && l.value && new D(u.value, l.value);
64
64
  });
65
65
  const p = t.icon;
66
66
  return (c, f) => {
67
- var m, l;
67
+ var m, a;
68
68
  return d(), y("details", {
69
69
  ref_key: "$details",
70
70
  ref: u
@@ -85,7 +85,7 @@ const n = {
85
85
  (t.icon || o(r).iconEl) && e.separator ? (d(), y("span", {
86
86
  key: 0,
87
87
  class: s(o(n).separator),
88
- "aria-role": "separator"
88
+ role: "separator"
89
89
  }, null, 2)) : k("", !0),
90
90
  i("span", S, [
91
91
  i("span", {
@@ -98,7 +98,7 @@ const n = {
98
98
  key: 0,
99
99
  class: s([
100
100
  o(n).summaryDescription,
101
- (l = e.descriptionClassName) != null ? l : o(n).summaryDescriptionColor
101
+ (a = e.descriptionClassName) != null ? a : o(n).summaryDescriptionColor
102
102
  ])
103
103
  }, h(e.description), 3)) : k("", !0)
104
104
  ]),
@@ -110,7 +110,7 @@ const n = {
110
110
  ], 2),
111
111
  i("div", {
112
112
  ref_key: "$content",
113
- ref: a,
113
+ ref: l,
114
114
  class: s(o(n).contentWrapper)
115
115
  }, [
116
116
  e.fullWidthContent ? C(c.$slots, "default", { key: 0 }) : (d(), y("div", {