sander-ui 0.1.4 → 0.1.6

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/index.css +1 -1
  2. package/dist/index.js +53 -51
  3. package/dist/index10.js +2 -2
  4. package/dist/index11.js +1 -1
  5. package/dist/index12.js +44 -43
  6. package/dist/index13.js +2 -2
  7. package/dist/index14.js +41 -21
  8. package/dist/index15.js +22 -19
  9. package/dist/index16.js +20 -75
  10. package/dist/index17.js +72 -58
  11. package/dist/index18.js +56 -35
  12. package/dist/index19.js +40 -31
  13. package/dist/index20.js +30 -25
  14. package/dist/index21.js +26 -18
  15. package/dist/index22.js +15 -36
  16. package/dist/index23.js +39 -46
  17. package/dist/index24.js +39 -124
  18. package/dist/index25.js +132 -18
  19. package/dist/index26.js +18 -23
  20. package/dist/index27.js +23 -55
  21. package/dist/index28.js +55 -19
  22. package/dist/index29.js +19 -46
  23. package/dist/index3.js +2 -2
  24. package/dist/index30.js +46 -5
  25. package/dist/index31.js +5 -17
  26. package/dist/index32.js +17 -8
  27. package/dist/index33.js +27 -4
  28. package/dist/index34.js +26 -27
  29. package/dist/index35.js +24 -23
  30. package/dist/index36.js +22 -18
  31. package/dist/index37.js +8 -23
  32. package/dist/index38.js +14 -8
  33. package/dist/index39.js +8 -14
  34. package/dist/index4.js +7 -7
  35. package/dist/index40.js +7 -8
  36. package/dist/index41.js +7 -7
  37. package/dist/index42.js +15 -7
  38. package/dist/index43.js +4 -26
  39. package/dist/index44.js +4 -13
  40. package/dist/index45.js +10 -39
  41. package/dist/index46.js +20 -22
  42. package/dist/index47.js +40 -25
  43. package/dist/index48.js +4 -13
  44. package/dist/index49.js +18 -20
  45. package/dist/index5.js +3 -3
  46. package/dist/index50.js +12 -14
  47. package/dist/index51.js +17 -4
  48. package/dist/index52.js +16 -16
  49. package/dist/index53.js +11 -26
  50. package/dist/index54.js +25 -14
  51. package/dist/index55.js +16 -12
  52. package/dist/index56.js +30 -41
  53. package/dist/index57.js +15 -4
  54. package/dist/index58.js +12 -16
  55. package/dist/index59.js +20 -16
  56. package/dist/index6.js +3 -3
  57. package/dist/index60.js +25 -22
  58. package/dist/index61.js +22 -20
  59. package/dist/index62.js +16 -16
  60. package/dist/index63.js +8 -13
  61. package/dist/index64.js +39 -30
  62. package/dist/index65.js +23 -35
  63. package/dist/index66.js +13 -2
  64. package/dist/index67.js +13 -4
  65. package/dist/index68.js +35 -21
  66. package/dist/index69.js +2 -2
  67. package/dist/index7.js +4 -4
  68. package/dist/index70.js +4 -2
  69. package/dist/index71.js +20 -5
  70. package/dist/index72.js +2 -34
  71. package/dist/index73.js +2 -12
  72. package/dist/index74.js +5 -6
  73. package/dist/index75.js +33 -4
  74. package/dist/index76.js +14 -0
  75. package/dist/index77.js +9 -0
  76. package/dist/index78.js +7 -0
  77. package/dist/index8.js +12 -12
  78. package/dist/index9.js +2 -2
  79. package/package.json +1 -1
package/dist/index18.js CHANGED
@@ -1,43 +1,64 @@
1
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
- import o from "./index30.js";
3
- import r from "./index46.js";
4
- const N = ({
5
- value: e,
6
- max: d = 100,
7
- label: s,
8
- size: c = "md",
9
- className: l,
10
- ...m
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import u from "./index31.js";
3
+ import n from "./index42.js";
4
+ import h from "./index43.js";
5
+ import d from "./index44.js";
6
+ function b(i, r, a) {
7
+ const s = [], c = Math.max(2, i - a), t = Math.min(r - 1, i + a);
8
+ s.push(1), c > 2 && s.push("ellipsis");
9
+ for (let o = c; o <= t; o++)
10
+ s.push(o);
11
+ return t < r - 1 && s.push("ellipsis"), r > 1 && s.push(r), s;
12
+ }
13
+ const j = ({
14
+ page: i,
15
+ totalPages: r,
16
+ onChange: a,
17
+ siblings: s = 1,
18
+ className: c,
19
+ ...t
11
20
  }) => {
12
- const a = e === void 0, t = a ? 0 : Math.round(e / d * 100);
13
- return /* @__PURE__ */ i("div", { className: o(r.wrapper, l), ...m, children: [
14
- s && /* @__PURE__ */ i("div", { className: r.header, children: [
15
- /* @__PURE__ */ n("span", { className: r.label, children: s }),
16
- !a && /* @__PURE__ */ i("span", { className: r.value, children: [
17
- t,
18
- "%"
19
- ] })
20
- ] }),
21
- /* @__PURE__ */ n(
22
- "div",
21
+ if (r <= 1) return null;
22
+ const o = b(i, r, s);
23
+ return /* @__PURE__ */ f("nav", { "aria-label": "Pagination", className: u(n.pagination, c), ...t, children: [
24
+ /* @__PURE__ */ e(
25
+ "button",
23
26
  {
24
- role: "progressbar",
25
- "aria-valuenow": a ? void 0 : e,
26
- "aria-valuemin": 0,
27
- "aria-valuemax": d,
28
- "aria-label": s || "Progress",
29
- className: o(r.track, r[c]),
30
- children: /* @__PURE__ */ n(
31
- "div",
32
- {
33
- className: o(r.bar, a && r.indeterminate),
34
- style: a ? void 0 : { width: `${t}%` }
35
- }
36
- )
27
+ "aria-label": "Previous page",
28
+ disabled: i <= 1,
29
+ onClick: () => a(i - 1),
30
+ className: n.arrow,
31
+ children: /* @__PURE__ */ e(h, { className: n.icon })
32
+ }
33
+ ),
34
+ o.map((l, m) => {
35
+ if (l === "ellipsis")
36
+ return /* @__PURE__ */ e("span", { className: n.ellipsis, children: "..." }, `ellipsis-${m}`);
37
+ const p = l === i;
38
+ return /* @__PURE__ */ e(
39
+ "button",
40
+ {
41
+ "aria-label": `Page ${l}`,
42
+ "aria-current": p ? "page" : void 0,
43
+ onClick: () => a(l),
44
+ className: u(n.page, p && n.active),
45
+ children: l
46
+ },
47
+ l
48
+ );
49
+ }),
50
+ /* @__PURE__ */ e(
51
+ "button",
52
+ {
53
+ "aria-label": "Next page",
54
+ disabled: i >= r,
55
+ onClick: () => a(i + 1),
56
+ className: n.arrow,
57
+ children: /* @__PURE__ */ e(d, { className: n.icon })
37
58
  }
38
59
  )
39
60
  ] });
40
61
  };
41
62
  export {
42
- N as Progress
63
+ j as Pagination
43
64
  };
package/dist/index19.js CHANGED
@@ -1,34 +1,43 @@
1
- import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
- import c from "./index30.js";
3
- import { forwardRef as h } from "react";
4
- import a from "./index60.js";
5
- const v = h(
6
- ({ label: i, error: s, options: m, value: n, onChange: o, name: r, className: p, ...t }, u) => /* @__PURE__ */ d("fieldset", { className: c(a.fieldset, p), children: [
7
- i && /* @__PURE__ */ l("legend", { className: a.legend, children: i }),
8
- /* @__PURE__ */ l("div", { className: a.options, children: m.map((e) => /* @__PURE__ */ d("label", { className: a.option, children: [
9
- /* @__PURE__ */ l(
10
- "input",
11
- {
12
- ref: u,
13
- type: "radio",
14
- name: r,
15
- value: e.value,
16
- checked: n === e.value,
17
- onChange: () => o?.(e.value),
18
- "aria-describedby": e.description ? `${r}-${e.value}-description` : void 0,
19
- className: c(a.radio, s && a.radioError),
20
- ...t
21
- }
22
- ),
23
- /* @__PURE__ */ d("div", { className: a.labels, children: [
24
- /* @__PURE__ */ l("span", { className: a.label, children: e.label }),
25
- e.description && /* @__PURE__ */ l("span", { id: `${r}-${e.value}-description`, className: a.description, children: e.description })
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import o from "./index31.js";
3
+ import r from "./index61.js";
4
+ const N = ({
5
+ value: e,
6
+ max: d = 100,
7
+ label: s,
8
+ size: c = "md",
9
+ className: l,
10
+ ...m
11
+ }) => {
12
+ const a = e === void 0, t = a ? 0 : Math.round(e / d * 100);
13
+ return /* @__PURE__ */ i("div", { className: o(r.wrapper, l), ...m, children: [
14
+ s && /* @__PURE__ */ i("div", { className: r.header, children: [
15
+ /* @__PURE__ */ n("span", { className: r.label, children: s }),
16
+ !a && /* @__PURE__ */ i("span", { className: r.value, children: [
17
+ t,
18
+ "%"
26
19
  ] })
27
- ] }, e.value)) }),
28
- s && /* @__PURE__ */ l("p", { role: "alert", className: a.error, children: s })
29
- ] })
30
- );
31
- v.displayName = "RadioGroup";
20
+ ] }),
21
+ /* @__PURE__ */ n(
22
+ "div",
23
+ {
24
+ role: "progressbar",
25
+ "aria-valuenow": a ? void 0 : e,
26
+ "aria-valuemin": 0,
27
+ "aria-valuemax": d,
28
+ "aria-label": s || "Progress",
29
+ className: o(r.track, r[c]),
30
+ children: /* @__PURE__ */ n(
31
+ "div",
32
+ {
33
+ className: o(r.bar, a && r.indeterminate),
34
+ style: a ? void 0 : { width: `${t}%` }
35
+ }
36
+ )
37
+ }
38
+ )
39
+ ] });
40
+ };
32
41
  export {
33
- v as RadioGroup
42
+ N as Progress
34
43
  };
package/dist/index20.js CHANGED
@@ -1,29 +1,34 @@
1
- import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import p from "./index30.js";
3
- import { forwardRef as v } from "react";
4
- import l from "./index63.js";
5
- const u = v(
6
- ({ label: i, error: e, id: r, options: m, placeholder: c, className: o, ...d }, n) => /* @__PURE__ */ t("div", { className: l.wrapper, children: [
7
- i && /* @__PURE__ */ a("label", { htmlFor: r, className: l.label, children: i }),
8
- /* @__PURE__ */ t(
9
- "select",
10
- {
11
- id: r,
12
- ref: n,
13
- "aria-invalid": e ? !0 : void 0,
14
- "aria-describedby": e ? `${r}-error` : void 0,
15
- className: p(l.select, e && l.selectError, o),
16
- ...d,
17
- children: [
18
- c && /* @__PURE__ */ a("option", { value: "", disabled: !0, children: c }),
19
- m.map((s) => /* @__PURE__ */ a("option", { value: s.value, children: s.label }, s.value))
20
- ]
21
- }
22
- ),
23
- e && /* @__PURE__ */ a("p", { id: `${r}-error`, role: "alert", className: l.error, children: e })
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
+ import c from "./index31.js";
3
+ import { forwardRef as h } from "react";
4
+ import a from "./index65.js";
5
+ const v = h(
6
+ ({ label: i, error: s, options: m, value: n, onChange: o, name: r, className: p, ...t }, u) => /* @__PURE__ */ d("fieldset", { className: c(a.fieldset, p), children: [
7
+ i && /* @__PURE__ */ l("legend", { className: a.legend, children: i }),
8
+ /* @__PURE__ */ l("div", { className: a.options, children: m.map((e) => /* @__PURE__ */ d("label", { className: a.option, children: [
9
+ /* @__PURE__ */ l(
10
+ "input",
11
+ {
12
+ ref: u,
13
+ type: "radio",
14
+ name: r,
15
+ value: e.value,
16
+ checked: n === e.value,
17
+ onChange: () => o?.(e.value),
18
+ "aria-describedby": e.description ? `${r}-${e.value}-description` : void 0,
19
+ className: c(a.radio, s && a.radioError),
20
+ ...t
21
+ }
22
+ ),
23
+ /* @__PURE__ */ d("div", { className: a.labels, children: [
24
+ /* @__PURE__ */ l("span", { className: a.label, children: e.label }),
25
+ e.description && /* @__PURE__ */ l("span", { id: `${r}-${e.value}-description`, className: a.description, children: e.description })
26
+ ] })
27
+ ] }, e.value)) }),
28
+ s && /* @__PURE__ */ l("p", { role: "alert", className: a.error, children: s })
24
29
  ] })
25
30
  );
26
- u.displayName = "Select";
31
+ v.displayName = "RadioGroup";
27
32
  export {
28
- u as Select
33
+ v as RadioGroup
29
34
  };
package/dist/index21.js CHANGED
@@ -1,21 +1,29 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import n from "./index30.js";
3
- import t from "./index55.js";
4
- const c = ({
5
- width: e,
6
- height: r,
7
- variant: o = "text",
8
- className: s,
9
- ...m
10
- }) => /* @__PURE__ */ i(
11
- "div",
12
- {
13
- "aria-hidden": "true",
14
- className: n(t.skeleton, t[o], s),
15
- style: { width: e, height: r },
16
- ...m
17
- }
1
+ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
+ import p from "./index31.js";
3
+ import { forwardRef as v } from "react";
4
+ import l from "./index66.js";
5
+ const u = v(
6
+ ({ label: i, error: e, id: r, options: m, placeholder: c, className: o, ...d }, n) => /* @__PURE__ */ t("div", { className: l.wrapper, children: [
7
+ i && /* @__PURE__ */ a("label", { htmlFor: r, className: l.label, children: i }),
8
+ /* @__PURE__ */ t(
9
+ "select",
10
+ {
11
+ id: r,
12
+ ref: n,
13
+ "aria-invalid": e ? !0 : void 0,
14
+ "aria-describedby": e ? `${r}-error` : void 0,
15
+ className: p(l.select, e && l.selectError, o),
16
+ ...d,
17
+ children: [
18
+ c && /* @__PURE__ */ a("option", { value: "", disabled: !0, children: c }),
19
+ m.map((s) => /* @__PURE__ */ a("option", { value: s.value, children: s.label }, s.value))
20
+ ]
21
+ }
22
+ ),
23
+ e && /* @__PURE__ */ a("p", { id: `${r}-error`, role: "alert", className: l.error, children: e })
24
+ ] })
18
25
  );
26
+ u.displayName = "Select";
19
27
  export {
20
- c as Skeleton
28
+ u as Select
21
29
  };
package/dist/index22.js CHANGED
@@ -1,42 +1,21 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import i from "./index30.js";
3
- import r from "./index59.js";
4
- const m = ({
5
- size: s = "md",
6
- className: n,
7
- ...o
8
- }) => /* @__PURE__ */ t(
9
- "svg",
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import n from "./index31.js";
3
+ import t from "./index50.js";
4
+ const c = ({
5
+ width: e,
6
+ height: r,
7
+ variant: o = "text",
8
+ className: s,
9
+ ...m
10
+ }) => /* @__PURE__ */ i(
11
+ "div",
10
12
  {
11
- className: i(r.spinner, r[s], n),
12
- xmlns: "http://www.w3.org/2000/svg",
13
- fill: "none",
14
- viewBox: "0 0 24 24",
15
13
  "aria-hidden": "true",
16
- ...o,
17
- children: [
18
- /* @__PURE__ */ e(
19
- "circle",
20
- {
21
- className: r.spinnerTrack,
22
- cx: "12",
23
- cy: "12",
24
- r: "10",
25
- stroke: "currentColor",
26
- strokeWidth: "4"
27
- }
28
- ),
29
- /* @__PURE__ */ e(
30
- "path",
31
- {
32
- className: r.spinnerHead,
33
- fill: "currentColor",
34
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
35
- }
36
- )
37
- ]
14
+ className: n(t.skeleton, t[o], s),
15
+ style: { width: e, height: r },
16
+ ...m
38
17
  }
39
18
  );
40
19
  export {
41
- m as Spinner
20
+ c as Skeleton
42
21
  };
package/dist/index23.js CHANGED
@@ -1,49 +1,42 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import l from "./index30.js";
3
- import r from "./index61.js";
4
- const u = ({
5
- id: t,
6
- checked: s,
7
- onChange: n,
8
- label: c,
9
- description: a,
10
- disabled: i = !1,
11
- className: p,
12
- ...h
13
- }) => {
14
- const m = a && t ? `${t}-description` : void 0;
15
- return /* @__PURE__ */ o(
16
- "label",
17
- {
18
- className: l(
19
- r.wrapper,
20
- i && r.wrapperDisabled,
21
- p
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import i from "./index31.js";
3
+ import r from "./index52.js";
4
+ const m = ({
5
+ size: s = "md",
6
+ className: n,
7
+ ...o
8
+ }) => /* @__PURE__ */ t(
9
+ "svg",
10
+ {
11
+ className: i(r.spinner, r[s], n),
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ fill: "none",
14
+ viewBox: "0 0 24 24",
15
+ "aria-hidden": "true",
16
+ ...o,
17
+ children: [
18
+ /* @__PURE__ */ e(
19
+ "circle",
20
+ {
21
+ className: r.spinnerTrack,
22
+ cx: "12",
23
+ cy: "12",
24
+ r: "10",
25
+ stroke: "currentColor",
26
+ strokeWidth: "4"
27
+ }
22
28
  ),
23
- ...h,
24
- children: [
25
- /* @__PURE__ */ e(
26
- "button",
27
- {
28
- id: t,
29
- type: "button",
30
- role: "switch",
31
- "aria-checked": s,
32
- "aria-describedby": m,
33
- disabled: i,
34
- onClick: () => n(!s),
35
- className: l(r.track, s && r.trackChecked),
36
- children: /* @__PURE__ */ e("span", { className: l(r.thumb, s && r.thumbChecked) })
37
- }
38
- ),
39
- (c || a) && /* @__PURE__ */ o("div", { className: r.labels, children: [
40
- c && /* @__PURE__ */ e("p", { className: r.label, children: c }),
41
- a && /* @__PURE__ */ e("p", { id: m, className: r.description, children: a })
42
- ] })
43
- ]
44
- }
45
- );
46
- };
29
+ /* @__PURE__ */ e(
30
+ "path",
31
+ {
32
+ className: r.spinnerHead,
33
+ fill: "currentColor",
34
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
35
+ }
36
+ )
37
+ ]
38
+ }
39
+ );
47
40
  export {
48
- u as Switch
41
+ m as Spinner
49
42
  };
package/dist/index24.js CHANGED
@@ -1,134 +1,49 @@
1
- import { jsx as b, jsxs as D } from "react/jsx-runtime";
2
- import f from "./index30.js";
3
- import { useRef as w, useState as I, useCallback as E, useEffect as g } from "react";
4
- import a from "./index54.js";
5
- const j = ({
6
- tabs: l,
7
- value: i,
8
- onChange: s,
9
- className: o,
10
- ...u
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import l from "./index31.js";
3
+ import r from "./index59.js";
4
+ const u = ({
5
+ id: t,
6
+ checked: s,
7
+ onChange: n,
8
+ label: c,
9
+ description: a,
10
+ disabled: i = !1,
11
+ className: p,
12
+ ...h
11
13
  }) => {
12
- const m = w(null), d = w(/* @__PURE__ */ new Map()), [v, R] = I({
13
- left: 0,
14
- width: 0
15
- }), [k, A] = I(!1), x = E(() => {
16
- const e = d.current.get(i), n = m.current;
17
- if (e && n) {
18
- const t = n.getBoundingClientRect(), r = e.getBoundingClientRect();
19
- R({
20
- left: r.left - t.left + n.scrollLeft,
21
- width: r.width
22
- });
23
- }
24
- }, [i]);
25
- g(() => {
26
- x();
27
- }, [x]), g(() => {
28
- const e = requestAnimationFrame(() => A(!0));
29
- return () => cancelAnimationFrame(e);
30
- }, []);
31
- const h = (e, n) => {
32
- const t = l.length;
33
- let r = (e + n + t) % t;
34
- for (; l[r].disabled && r !== e; )
35
- r = (r + n + t) % t;
36
- return r;
37
- }, y = (e) => {
38
- const n = l.findIndex((c) => c.value === i);
39
- let t = null;
40
- switch (e.key) {
41
- case "ArrowRight":
42
- t = h(n, 1);
43
- break;
44
- case "ArrowLeft":
45
- t = h(n, -1);
46
- break;
47
- case "Home":
48
- t = l.findIndex((c) => !c.disabled);
49
- break;
50
- case "End": {
51
- const p = [...l].reverse().findIndex((T) => !T.disabled);
52
- t = p !== -1 ? l.length - 1 - p : null;
53
- break;
54
- }
55
- default:
56
- return;
57
- }
58
- if (t === null || t === -1) return;
59
- e.preventDefault();
60
- const r = l[t];
61
- s(r.value), d.current.get(r.value)?.focus();
62
- };
63
- return /* @__PURE__ */ D(
64
- "div",
14
+ const m = a && t ? `${t}-description` : void 0;
15
+ return /* @__PURE__ */ o(
16
+ "label",
65
17
  {
66
- ref: m,
67
- className: f(a.tabList, o),
68
- role: "tablist",
69
- onKeyDown: y,
70
- ...u,
18
+ className: l(
19
+ r.wrapper,
20
+ i && r.wrapperDisabled,
21
+ p
22
+ ),
23
+ ...h,
71
24
  children: [
72
- l.map((e) => {
73
- const n = i === e.value;
74
- return /* @__PURE__ */ b(
75
- "button",
76
- {
77
- ref: (t) => {
78
- t ? d.current.set(e.value, t) : d.current.delete(e.value);
79
- },
80
- id: `tab-${e.value}`,
81
- role: "tab",
82
- "aria-selected": n,
83
- "aria-controls": `tabpanel-${e.value}`,
84
- "aria-disabled": e.disabled || void 0,
85
- tabIndex: n ? 0 : -1,
86
- onClick: () => {
87
- e.disabled || s(e.value);
88
- },
89
- className: f(
90
- a.tab,
91
- n && a.tabActive,
92
- e.disabled && a.tabDisabled
93
- ),
94
- children: e.label
95
- },
96
- e.value
97
- );
98
- }),
99
- /* @__PURE__ */ b(
100
- "span",
25
+ /* @__PURE__ */ e(
26
+ "button",
101
27
  {
102
- className: f(
103
- a.indicator,
104
- k && a.indicatorAnimated
105
- ),
106
- style: { left: v.left, width: v.width },
107
- "aria-hidden": "true"
28
+ id: t,
29
+ type: "button",
30
+ role: "switch",
31
+ "aria-checked": s,
32
+ "aria-describedby": m,
33
+ disabled: i,
34
+ onClick: () => n(!s),
35
+ className: l(r.track, s && r.trackChecked),
36
+ children: /* @__PURE__ */ e("span", { className: l(r.thumb, s && r.thumbChecked) })
108
37
  }
109
- )
38
+ ),
39
+ (c || a) && /* @__PURE__ */ o("div", { className: r.labels, children: [
40
+ c && /* @__PURE__ */ e("p", { className: r.label, children: c }),
41
+ a && /* @__PURE__ */ e("p", { id: m, className: r.description, children: a })
42
+ ] })
110
43
  ]
111
44
  }
112
45
  );
113
- }, B = ({
114
- value: l,
115
- activeValue: i,
116
- children: s,
117
- className: o,
118
- ...u
119
- }) => l !== i ? null : /* @__PURE__ */ b(
120
- "div",
121
- {
122
- id: `tabpanel-${l}`,
123
- role: "tabpanel",
124
- "aria-labelledby": `tab-${l}`,
125
- tabIndex: 0,
126
- className: o,
127
- ...u,
128
- children: s
129
- }
130
- );
46
+ };
131
47
  export {
132
- B as TabPanel,
133
- j as Tabs
48
+ u as Switch
134
49
  };