@pismo/marola 0.0.1-alpha.6 → 0.0.1-alpha.8

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/{Button-W6tM-_IT.js → Button-B1umG8kJ.js} +2 -2
  2. package/dist/ClickAwayListener-BKznXF1d.js +106 -0
  3. package/dist/Portal-BcdMtRGF.js +73 -0
  4. package/dist/Tab-CRwnhsj5.js +254 -0
  5. package/dist/Tabs.module-yYcTJnj6.js +103 -0
  6. package/dist/assets/Input.css +1 -0
  7. package/dist/assets/InputSearch.css +1 -0
  8. package/dist/assets/PageHeader.css +1 -1
  9. package/dist/assets/Snackbar.css +1 -0
  10. package/dist/assets/Toggle.css +1 -0
  11. package/dist/assets/global.css +1 -1
  12. package/dist/components/Advice/Advice.d.ts +6 -3
  13. package/dist/components/Advice/Advice.js +15 -15
  14. package/dist/components/Button/Button.d.ts +8 -0
  15. package/dist/components/Button/Button.js +1 -1
  16. package/dist/components/Button/Button.stories.d.ts +60 -0
  17. package/dist/components/Button/Button.stories.js +40 -0
  18. package/dist/components/Dialog/CloseIconButton.js +9 -9
  19. package/dist/components/Dialog/Dialog.d.ts +3 -2
  20. package/dist/components/Dialog/Dialog.js +10 -9
  21. package/dist/components/Dialog/Dialog.stories.d.ts +343 -0
  22. package/dist/components/Dialog/Dialog.stories.js +59 -0
  23. package/dist/components/Icon/Icon.d.ts +15 -4
  24. package/dist/components/Icon/Icon.js +92 -6
  25. package/dist/components/IconButton/IconButton.js +1 -1
  26. package/dist/components/Input/Input.d.ts +44 -0
  27. package/dist/components/Input/Input.js +497 -0
  28. package/dist/components/Input/Input.stories.d.ts +43 -0
  29. package/dist/components/Input/Input.stories.js +106 -0
  30. package/dist/components/InputSearch/InputSearch.d.ts +11 -0
  31. package/dist/components/InputSearch/InputSearch.js +29 -0
  32. package/dist/components/InputSearch/InputSearch.stories.d.ts +22 -0
  33. package/dist/components/InputSearch/InputSearch.stories.js +36 -0
  34. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -0
  35. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +14 -0
  36. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +38 -0
  37. package/dist/components/PageHeader/PageHeader.js +25 -25
  38. package/dist/components/PageHeader/PageHeader.stories.js +3 -3
  39. package/dist/components/Pagination/Pagination.d.ts +1 -1
  40. package/dist/components/Pagination/Pagination.js +10 -10
  41. package/dist/components/Snackbar/Snackbar.d.ts +13 -0
  42. package/dist/components/Snackbar/Snackbar.js +622 -0
  43. package/dist/components/SortTooltip/SortTooltip.d.ts +1 -1
  44. package/dist/components/SortTooltip/SortTooltip.js +8 -8
  45. package/dist/components/Table/Table.d.ts +1 -1
  46. package/dist/components/Table/Table.js +15 -15
  47. package/dist/components/Tabs/Tab.js +6 -239
  48. package/dist/components/Tabs/TabPanel.js +18 -19
  49. package/dist/components/Tabs/Tabs.d.ts +2 -0
  50. package/dist/components/Tabs/Tabs.js +12 -8
  51. package/dist/components/Toggle/Toggle.d.ts +12 -0
  52. package/dist/components/Toggle/Toggle.js +251 -0
  53. package/dist/components/Toggle/Toggle.stories.d.ts +22 -0
  54. package/dist/components/Toggle/Toggle.stories.js +27 -0
  55. package/dist/components/Tooltip/Tooltip.js +558 -655
  56. package/dist/components/Typography/Typography.d.ts +5 -5
  57. package/dist/components/Typography/Typography.stories.d.ts +13 -0
  58. package/dist/components/Typography/Typography.stories.js +15 -15
  59. package/dist/components/Typography/typography.test.js +5 -8
  60. package/dist/{Portal-P3fPvS3-.js → index-BNWbc5Kh.js} +5709 -5776
  61. package/dist/{index-D2P7y2mE.js → index-CqjC7P5Y.js} +4 -3
  62. package/dist/main.d.ts +17 -8
  63. package/dist/main.js +55 -28
  64. package/dist/useButton-Bc8IAgyk.js +106 -0
  65. package/dist/useIsFocusVisible-BH4IAdcw.js +69 -0
  66. package/dist/useTimeout-DxF9kiZL.js +36 -0
  67. package/package.json +5 -4
  68. package/dist/ListContext-Dj2Va7Iv.js +0 -18
  69. package/dist/Tabs.module-BA-PC7fA.js +0 -66
  70. package/dist/react-CGNQ6M5x.js +0 -117
  71. package/dist/useButton-JpyBo5M4.js +0 -187
  72. package/dist/useCompoundItem-CTYi5M_E.js +0 -41
@@ -803,11 +803,12 @@ function or(e, s) {
803
803
  export {
804
804
  rr as P,
805
805
  or as a,
806
- er as b,
806
+ nr as b,
807
807
  tr as c,
808
- Ue as d,
808
+ er as d,
809
809
  $e as e,
810
810
  Xe as g,
811
+ xe as i,
811
812
  Fe as s,
812
- nr as u
813
+ Ue as u
813
814
  };
package/dist/main.d.ts CHANGED
@@ -1,12 +1,21 @@
1
1
 
2
+ export * from './components/Advice/Advice';
3
+ export * from './components/Button/Button';
4
+ export * from './components/Checkbox/Checkbox';
2
5
  export * from './components/Dialog/Dialog';
3
- export * from './components/Typography/Typography';
6
+ export * from './components/Icon/Icon';
7
+ export * from './components/IconButton/IconButton';
8
+ export * from './components/Input/Input';
9
+ export * from './components/InputSearch/InputSearch';
4
10
  export * from './components/LoadingSpinner/LoadingSpinner';
5
- export * from './components/Tabs/Tabs';
6
- export * from './components/Tabs/Tab';
7
- export * from './components/Tabs/TabPanel';
8
- export * from './components/Table/Table';
9
- export * from './components/Pagination/Pagination';
10
11
  export * from './components/PageHeader/PageHeader';
11
- export * from './components/Button/Button';
12
- export * from './components/IconButton/IconButton';
12
+ export * from './components/Pagination/Pagination';
13
+ export * from './components/Skeleton/Skeleton';
14
+ export * from './components/Snackbar/Snackbar';
15
+ export * from './components/SortTooltip/SortTooltip';
16
+ export * from './components/Stepper/Stepper';
17
+ export * from './components/Table/Table';
18
+ export * from './components/Tabs/Tabs';
19
+ export * from './components/Toggle/Toggle';
20
+ export * from './components/Tooltip/Tooltip';
21
+ export * from './components/Typography/Typography';
package/dist/main.js CHANGED
@@ -1,32 +1,59 @@
1
1
  import './assets/global.css';
2
2
  /* empty css */
3
- import { Dialog as a } from "./components/Dialog/Dialog.js";
4
- import { Typography as f } from "./components/Typography/Typography.js";
5
- import { LoadingSpinner as n } from "./components/LoadingSpinner/LoadingSpinner.js";
6
- import { Tabs as i } from "./components/Tabs/Tabs.js";
7
- import { Tab as s } from "./components/Tabs/Tab.js";
8
- import { TabPanel as g } from "./components/Tabs/TabPanel.js";
9
- import "./components/Table/Table.js";
10
- import { Pagination as T, defaultTranslations as b } from "./components/Pagination/Pagination.js";
11
- import { PageHeader as c } from "./components/PageHeader/PageHeader.js";
12
- import { Button as B } from "./components/Button/Button.js";
13
- import { IconButton as h } from "./components/IconButton/IconButton.js";
14
- import { default as C } from "./components/Dialog/Title.js";
15
- import { default as I } from "./components/Dialog/Content.js";
16
- import { default as S } from "./components/Dialog/Actions.js";
3
+ import { Advice as e } from "./components/Advice/Advice.js";
4
+ import { Button as a } from "./components/Button/Button.js";
5
+ import { Checkbox as m } from "./components/Checkbox/Checkbox.js";
6
+ import { Dialog as x } from "./components/Dialog/Dialog.js";
7
+ import { FamilyAndIcons as i, Icon as T } from "./components/Icon/Icon.js";
8
+ import { IconButton as c } from "./components/IconButton/IconButton.js";
9
+ import { Input as u } from "./components/Input/Input.js";
10
+ import { InputSearch as b } from "./components/InputSearch/InputSearch.js";
11
+ import { LoadingSpinner as k } from "./components/LoadingSpinner/LoadingSpinner.js";
12
+ import { PageHeader as D } from "./components/PageHeader/PageHeader.js";
13
+ import { Pagination as y, paginationDefaultTranslations as A } from "./components/Pagination/Pagination.js";
14
+ import { Skeleton as P, SkeletonCircle as B, SkeletonTable as v } from "./components/Skeleton/Skeleton.js";
15
+ import { Snackbar as H } from "./components/Snackbar/Snackbar.js";
16
+ import { SortTooltip as j, sortTooltipDefaultTranslations as q } from "./components/SortTooltip/SortTooltip.js";
17
+ import { Stepper as z } from "./components/Stepper/Stepper.js";
18
+ import { Table as G } from "./components/Table/Table.js";
19
+ import { Tabs as K } from "./components/Tabs/Tabs.js";
20
+ import { Toggle as N } from "./components/Toggle/Toggle.js";
21
+ import { Tooltip as Q } from "./components/Tooltip/Tooltip.js";
22
+ import { Typography as U } from "./components/Typography/Typography.js";
23
+ import { default as W } from "./components/Dialog/Title.js";
24
+ import { default as Y } from "./components/Dialog/Content.js";
25
+ import { default as _ } from "./components/Dialog/Actions.js";
26
+ import { T as oo } from "./Tab-CRwnhsj5.js";
27
+ import { TabPanel as to } from "./components/Tabs/TabPanel.js";
17
28
  export {
18
- S as Actions,
19
- B as Button,
20
- I as Content,
21
- a as Dialog,
22
- C as DialogTitle,
23
- h as IconButton,
24
- n as LoadingSpinner,
25
- c as PageHeader,
26
- T as Pagination,
27
- s as Tab,
28
- g as TabPanel,
29
- i as Tabs,
30
- f as Typography,
31
- b as defaultTranslations
29
+ _ as Actions,
30
+ e as Advice,
31
+ a as Button,
32
+ m as Checkbox,
33
+ Y as Content,
34
+ x as Dialog,
35
+ W as DialogTitle,
36
+ i as FamilyAndIcons,
37
+ T as Icon,
38
+ c as IconButton,
39
+ u as Input,
40
+ b as InputSearch,
41
+ k as LoadingSpinner,
42
+ D as PageHeader,
43
+ y as Pagination,
44
+ P as Skeleton,
45
+ B as SkeletonCircle,
46
+ v as SkeletonTable,
47
+ H as Snackbar,
48
+ j as SortTooltip,
49
+ z as Stepper,
50
+ oo as Tab,
51
+ to as TabPanel,
52
+ G as Table,
53
+ K as Tabs,
54
+ N as Toggle,
55
+ Q as Tooltip,
56
+ U as Typography,
57
+ A as paginationDefaultTranslations,
58
+ q as sortTooltipDefaultTranslations
32
59
  };
@@ -0,0 +1,106 @@
1
+ import { a as D } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
2
+ import * as i from "react";
3
+ import { u as S, e as k } from "./index-CqjC7P5Y.js";
4
+ import { u as _ } from "./useIsFocusVisible-BH4IAdcw.js";
5
+ function v(p) {
6
+ const {
7
+ rootElementName: n = "",
8
+ componentName: l
9
+ } = p, [c, y] = i.useState(n.toUpperCase());
10
+ process.env.NODE_ENV !== "production" && i.useEffect(() => {
11
+ n && c !== n.toUpperCase() && console.error(`useRootElementName: the \`rootElementName\` prop of ${l ? `the ${l} component` : "a component"} expected the '${n}' element, but a '${c.toLowerCase()}' was rendered instead`, "This may cause hydration issues in an SSR context, for example in a Next.js app");
12
+ }, [n, c, l]);
13
+ const u = i.useCallback((m) => {
14
+ var s;
15
+ y((s = m == null ? void 0 : m.tagName) != null ? s : "");
16
+ }, []);
17
+ return [c, u];
18
+ }
19
+ function h(p = {}) {
20
+ const {
21
+ disabled: n = !1,
22
+ focusableWhenDisabled: l,
23
+ href: c,
24
+ rootRef: y,
25
+ tabIndex: u,
26
+ to: m,
27
+ type: s,
28
+ rootElementName: T
29
+ } = p, b = i.useRef(), [B, N] = i.useState(!1), {
30
+ isFocusVisibleRef: E,
31
+ onFocus: F,
32
+ onBlur: M,
33
+ ref: U
34
+ } = _(), [d, R] = i.useState(!1);
35
+ n && !l && d && R(!1), i.useEffect(() => {
36
+ E.current = d;
37
+ }, [d, E]);
38
+ const [f, V] = v({
39
+ rootElementName: T ?? (c || m ? "a" : void 0),
40
+ componentName: "Button"
41
+ }), w = (t) => (e) => {
42
+ var o;
43
+ d && e.preventDefault(), (o = t.onMouseLeave) == null || o.call(t, e);
44
+ }, K = (t) => (e) => {
45
+ var o;
46
+ M(e), E.current === !1 && R(!1), (o = t.onBlur) == null || o.call(t, e);
47
+ }, P = (t) => (e) => {
48
+ var o;
49
+ if (b.current || (b.current = e.currentTarget), F(e), E.current === !0) {
50
+ var r;
51
+ R(!0), (r = t.onFocusVisible) == null || r.call(t, e);
52
+ }
53
+ (o = t.onFocus) == null || o.call(t, e);
54
+ }, g = () => {
55
+ const t = b.current;
56
+ return f === "BUTTON" || f === "INPUT" && ["button", "submit", "reset"].includes(t == null ? void 0 : t.type) || f === "A" && (t == null ? void 0 : t.href);
57
+ }, I = (t) => (e) => {
58
+ if (!n) {
59
+ var o;
60
+ (o = t.onClick) == null || o.call(t, e);
61
+ }
62
+ }, $ = (t) => (e) => {
63
+ var o;
64
+ n || (N(!0), document.addEventListener("mouseup", () => {
65
+ N(!1);
66
+ }, {
67
+ once: !0
68
+ })), (o = t.onMouseDown) == null || o.call(t, e);
69
+ }, C = (t) => (e) => {
70
+ var o;
71
+ if ((o = t.onKeyDown) == null || o.call(t, e), !e.defaultMuiPrevented && (e.target === e.currentTarget && !g() && e.key === " " && e.preventDefault(), e.target === e.currentTarget && e.key === " " && !n && N(!0), e.target === e.currentTarget && !g() && e.key === "Enter" && !n)) {
72
+ var r;
73
+ (r = t.onClick) == null || r.call(t, e), e.preventDefault();
74
+ }
75
+ }, L = (t) => (e) => {
76
+ var o;
77
+ if (e.target === e.currentTarget && N(!1), (o = t.onKeyUp) == null || o.call(t, e), e.target === e.currentTarget && !g() && !n && e.key === " " && !e.defaultMuiPrevented) {
78
+ var r;
79
+ (r = t.onClick) == null || r.call(t, e);
80
+ }
81
+ }, x = S(V, y, U, b), a = {};
82
+ return u !== void 0 && (a.tabIndex = u), f === "BUTTON" ? (a.type = s ?? "button", l ? a["aria-disabled"] = n : a.disabled = n) : f === "INPUT" ? s && ["button", "submit", "reset"].includes(s) && (l ? a["aria-disabled"] = n : a.disabled = n) : f !== "" && (!c && !m && (a.role = "button", a.tabIndex = u ?? 0), n && (a["aria-disabled"] = n, a.tabIndex = l ? u ?? 0 : -1)), {
83
+ getRootProps: (t = {}) => {
84
+ const e = D({}, k(p), k(t)), o = D({
85
+ type: s
86
+ }, e, a, t, {
87
+ onBlur: K(e),
88
+ onClick: I(e),
89
+ onFocus: P(e),
90
+ onKeyDown: C(e),
91
+ onKeyUp: L(e),
92
+ onMouseDown: $(e),
93
+ onMouseLeave: w(e),
94
+ ref: x
95
+ });
96
+ return delete o.onFocusVisible, o;
97
+ },
98
+ focusVisible: d,
99
+ setFocusVisible: R,
100
+ active: B,
101
+ rootRef: x
102
+ };
103
+ }
104
+ export {
105
+ h as u
106
+ };
@@ -0,0 +1,69 @@
1
+ import * as a from "react";
2
+ import { T as o } from "./useTimeout-DxF9kiZL.js";
3
+ let n = !0, s = !1;
4
+ const c = new o(), f = {
5
+ text: !0,
6
+ search: !0,
7
+ url: !0,
8
+ tel: !0,
9
+ email: !0,
10
+ password: !0,
11
+ number: !0,
12
+ date: !0,
13
+ month: !0,
14
+ week: !0,
15
+ time: !0,
16
+ datetime: !0,
17
+ "datetime-local": !0
18
+ };
19
+ function d(e) {
20
+ const {
21
+ type: t,
22
+ tagName: r
23
+ } = e;
24
+ return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
25
+ }
26
+ function h(e) {
27
+ e.metaKey || e.altKey || e.ctrlKey || (n = !0);
28
+ }
29
+ function i() {
30
+ n = !1;
31
+ }
32
+ function y() {
33
+ this.visibilityState === "hidden" && s && (n = !0);
34
+ }
35
+ function m(e) {
36
+ e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
37
+ }
38
+ function b(e) {
39
+ const {
40
+ target: t
41
+ } = e;
42
+ try {
43
+ return t.matches(":focus-visible");
44
+ } catch {
45
+ }
46
+ return n || d(t);
47
+ }
48
+ function w() {
49
+ const e = a.useCallback((u) => {
50
+ u != null && m(u.ownerDocument);
51
+ }, []), t = a.useRef(!1);
52
+ function r() {
53
+ return t.current ? (s = !0, c.start(100, () => {
54
+ s = !1;
55
+ }), t.current = !1, !0) : !1;
56
+ }
57
+ function l(u) {
58
+ return b(u) ? (t.current = !0, !0) : !1;
59
+ }
60
+ return {
61
+ isFocusVisibleRef: t,
62
+ onFocus: l,
63
+ onBlur: r,
64
+ ref: e
65
+ };
66
+ }
67
+ export {
68
+ w as u
69
+ };
@@ -0,0 +1,36 @@
1
+ import * as n from "react";
2
+ const u = {};
3
+ function c(t, r) {
4
+ const e = n.useRef(u);
5
+ return e.current === u && (e.current = t(r)), e;
6
+ }
7
+ const i = [];
8
+ function o(t) {
9
+ n.useEffect(t, i);
10
+ }
11
+ class s {
12
+ constructor() {
13
+ this.currentId = null, this.clear = () => {
14
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
15
+ }, this.disposeEffect = () => this.clear;
16
+ }
17
+ static create() {
18
+ return new s();
19
+ }
20
+ /**
21
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
22
+ */
23
+ start(r, e) {
24
+ this.clear(), this.currentId = setTimeout(() => {
25
+ this.currentId = null, e();
26
+ }, r);
27
+ }
28
+ }
29
+ function f() {
30
+ const t = c(s.create).current;
31
+ return o(t.disposeEffect), t;
32
+ }
33
+ export {
34
+ s as T,
35
+ f as u
36
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "0.0.1-alpha.6",
4
+ "version": "0.0.1-alpha.8",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -29,6 +29,8 @@
29
29
  "test:unit:watch": "vitest",
30
30
  "test:e2e": "echo \"no test implemented\"",
31
31
  "coverage": "vitest run --coverage",
32
+ "export-files": "node scripts/export-files.cjs",
33
+ "prebuild": "yarn export-files",
32
34
  "build": "tsc --p ./tsconfig-build.json && vite build",
33
35
  "postbuild": "storybook build --disable-telemetry --output-dir build",
34
36
  "storybook": "storybook dev -p 6006"
@@ -65,7 +67,7 @@
65
67
  "eslint-plugin-react-refresh": "^0.4.6",
66
68
  "eslint-plugin-simple-import-sort": "^12.0.0",
67
69
  "eslint-plugin-storybook": "^0.8.0",
68
- "glob": "^10.3.12",
70
+ "glob": "^10.3.14",
69
71
  "husky": "^9.0.11",
70
72
  "jsdom": "^24.0.0",
71
73
  "prettier": "^3.2.5",
@@ -87,7 +89,6 @@
87
89
  },
88
90
  "dependencies": {
89
91
  "@mui/base": "^5.0.0-beta.40",
90
- "@mui/material": "^5.15.15",
91
- "@pismo/waves-icons": "^1.3.3"
92
+ "@mui/material": "^5.15.15"
92
93
  }
93
94
  }
@@ -1,18 +0,0 @@
1
- import * as t from "react";
2
- const e = {
3
- blur: "list:blur",
4
- focus: "list:focus",
5
- itemClick: "list:itemClick",
6
- itemHover: "list:itemHover",
7
- itemsChange: "list:itemsChange",
8
- keyDown: "list:keyDown",
9
- resetHighlight: "list:resetHighlight",
10
- highlightLast: "list:highlightLast",
11
- textNavigation: "list:textNavigation",
12
- clearSelection: "list:clearSelection"
13
- }, i = /* @__PURE__ */ t.createContext(null);
14
- process.env.NODE_ENV !== "production" && (i.displayName = "ListContext");
15
- export {
16
- i as L,
17
- e as a
18
- };
@@ -1,66 +0,0 @@
1
- import './assets/Tabs.css';
2
- import * as n from "react";
3
- const p = /* @__PURE__ */ n.createContext(null);
4
- process.env.NODE_ENV !== "production" && (p.displayName = "CompoundComponentContext");
5
- function C(e) {
6
- const c = Array.from(e.keys()).map((t) => {
7
- const a = e.get(t);
8
- return {
9
- key: t,
10
- subitem: a
11
- };
12
- });
13
- return c.sort((t, a) => {
14
- const u = t.subitem.ref.current, r = a.subitem.ref.current;
15
- return u === null || r === null || u === r ? 0 : u.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
16
- }), new Map(c.map((t) => [t.key, t.subitem]));
17
- }
18
- function N() {
19
- const [e, c] = n.useState(/* @__PURE__ */ new Map()), t = n.useRef(/* @__PURE__ */ new Set()), a = n.useCallback(function(o) {
20
- t.current.delete(o), c((b) => {
21
- const s = new Map(b);
22
- return s.delete(o), s;
23
- });
24
- }, []), u = n.useCallback(function(o, b) {
25
- let s;
26
- return typeof o == "function" ? s = o(t.current) : s = o, t.current.add(s), c((d) => {
27
- const _ = new Map(d);
28
- return _.set(s, b), _;
29
- }), {
30
- id: s,
31
- deregister: () => a(s)
32
- };
33
- }, [a]), r = n.useMemo(() => C(e), [e]), i = n.useCallback(function(o) {
34
- return Array.from(r.keys()).indexOf(o);
35
- }, [r]);
36
- return {
37
- contextValue: n.useMemo(() => ({
38
- getItemIndex: i,
39
- registerItem: u,
40
- totalSubitemCount: e.size
41
- }), [i, u, e.size]),
42
- subitems: r
43
- };
44
- }
45
- const l = /* @__PURE__ */ n.createContext(null);
46
- process.env.NODE_ENV !== "production" && (l.displayName = "TabsContext");
47
- function I() {
48
- const e = n.useContext(l);
49
- if (e == null)
50
- throw new Error("No TabsContext provided");
51
- return e;
52
- }
53
- const f = "_tabs_18ymz_1", x = "_tabs__tab_18ymz_5", w = {
54
- tabs: f,
55
- tabs__tab: x,
56
- "tabs__tab--disabled": "_tabs__tab--disabled_18ymz_22",
57
- "tabs__tab--selected": "_tabs__tab--selected_18ymz_31",
58
- "tabs__tab-panel": "_tabs__tab-panel_18ymz_35"
59
- };
60
- export {
61
- p as C,
62
- l as T,
63
- N as a,
64
- w as s,
65
- I as u
66
- };
@@ -1,117 +0,0 @@
1
- import { c as N, g as W } from "./_commonjsHelpers-CT_km90n.js";
2
- import T from "react";
3
- var E = { exports: {} };
4
- (function(A, I) {
5
- (function(y, w) {
6
- A.exports = w(T);
7
- })(N, (y) => (() => {
8
- var w = { 639: (e) => {
9
- e.exports = y;
10
- } }, S = {};
11
- function c(e) {
12
- var o = S[e];
13
- if (o !== void 0)
14
- return o.exports;
15
- var s = S[e] = { exports: {} };
16
- return w[e](s, s.exports, c), s.exports;
17
- }
18
- c.n = (e) => {
19
- var o = e && e.__esModule ? () => e.default : () => e;
20
- return c.d(o, { a: o }), o;
21
- }, c.d = (e, o) => {
22
- for (var s in o)
23
- c.o(o, s) && !c.o(e, s) && Object.defineProperty(e, s, { enumerable: !0, get: o[s] });
24
- }, c.o = (e, o) => Object.prototype.hasOwnProperty.call(e, o), c.r = (e) => {
25
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
26
- };
27
- var x = {};
28
- return (() => {
29
- c.r(x), c.d(x, { default: () => O });
30
- var e = c(639), o = c.n(e), s = function(a, i, u, r) {
31
- return new (u || (u = Promise))(function(m, l) {
32
- function p(n) {
33
- try {
34
- d(r.next(n));
35
- } catch (t) {
36
- l(t);
37
- }
38
- }
39
- function f(n) {
40
- try {
41
- d(r.throw(n));
42
- } catch (t) {
43
- l(t);
44
- }
45
- }
46
- function d(n) {
47
- var t;
48
- n.done ? m(n.value) : (t = n.value, t instanceof u ? t : new u(function(h) {
49
- h(t);
50
- })).then(p, f);
51
- }
52
- d((r = r.apply(a, [])).next());
53
- });
54
- };
55
- function j() {
56
- return typeof globalThis < "u" && globalThis.WAVES_ICONS_BASE_URL ? globalThis.WAVES_ICONS_BASE_URL : typeof window < "u" && window.WAVES_ICONS_BASE_URL ? window.WAVES_ICONS_BASE_URL : "https://waves-icons.pismolabs.io/bin";
57
- }
58
- function _(a, i, u) {
59
- const r = i && Number.isNaN(Number(i)) ? i : i ? `${i}px` : "1em", m = u || "currentColor", l = { fill: m, color: m, width: r, height: r };
60
- return a && Object.keys(l).forEach((p) => {
61
- a.setAttribute(p, l[p]);
62
- }), a && Object.assign(a.style, l), a;
63
- }
64
- const O = ({ icon: a, color: i, size: u }) => {
65
- const r = (0, e.useRef)(null), [m, l] = (0, e.useState)(null), p = (f) => {
66
- const d = _(f, `${u || ""}`, i);
67
- r != null && r.current && (r.current.innerHTML = "", r.current.append(d)), l(d);
68
- };
69
- return (0, e.useEffect)(() => {
70
- (function(f, d = !1) {
71
- return s(this, void 0, void 0, function* () {
72
- return function(n) {
73
- return s(this, void 0, void 0, function* () {
74
- return fetch(n, { cache: "force-cache" }).then((t) => t.status >= 200 && t.status <= 299 ? t.text() : Promise.resolve(`
75
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
76
- <svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000">
77
- <!-- Waves Icon Not Found -->
78
- </svg>
79
- `)).catch(console.error);
80
- });
81
- }(f.startsWith("http") ? f : function(n, t = "svg", h) {
82
- return h || (h = j()), `${h}/${n}.${t}`;
83
- }(f)).then((n) => {
84
- try {
85
- const t = d ? n : function(h, b) {
86
- b || (b = `
87
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
88
- <svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000">
89
- <!-- Waves Icon Not Found -->
90
- </svg>
91
- `);
92
- const g = Object.assign(document.createElement("template"), { innerHTML: b }).content.querySelector("svg");
93
- return Array.from(g.attributes).map(({ name: v }) => v).find((v) => {
94
- v.startsWith("on") && g.removeAttribute(v);
95
- }), g.querySelectorAll(["a", "animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"].join(",")).forEach((v) => {
96
- v.remove();
97
- }), g.setAttribute("data-waves-icon", h), g;
98
- }(f, n);
99
- return Promise.resolve(t);
100
- } catch (t) {
101
- return Promise.reject(t);
102
- }
103
- }).catch(console.error);
104
- });
105
- })(a).then(p).catch(console.error);
106
- }, [a]), (0, e.useEffect)(() => {
107
- _(m, `${u || ""}`, i);
108
- }, [u, i]), o().createElement("span", { ref: r });
109
- };
110
- })(), x;
111
- })());
112
- })(E);
113
- var P = E.exports;
114
- const L = /* @__PURE__ */ W(P);
115
- export {
116
- L as W
117
- };