@okam/stack-ui 1.37.0 → 1.37.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/components/Dialog/interface.d.ts +5 -3
- package/components/Modal/interface.d.ts +6 -4
- package/components/SidePanel/interface.d.ts +9 -6
- package/hooks/useLabelledOverlay/index.d.ts +9 -0
- package/hooks/useLabelledOverlay/interface.d.ts +14 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +72 -70
- package/index100.js +5 -1
- package/index100.mjs +88 -6
- package/index101.js +1 -12
- package/index101.mjs +6 -40
- package/index102.js +12 -1
- package/index102.mjs +36 -25
- package/index103.js +1 -1
- package/index103.mjs +24 -8
- package/index104.js +1 -7
- package/index104.mjs +7 -13
- package/index105.js +6 -14
- package/index105.mjs +13 -65
- package/index106.js +15 -1
- package/index106.mjs +71 -7
- package/index107.js +1 -41
- package/index107.mjs +7 -106
- package/index108.js +32 -38
- package/index108.mjs +78 -74
- package/index109.js +46 -15
- package/index109.mjs +96 -19
- package/index110.js +16 -1
- package/index110.mjs +20 -37
- package/index111.js +1 -1
- package/index111.mjs +42 -48
- package/index112.js +1 -1
- package/index112.mjs +47 -22
- package/index113.js +1 -2
- package/index113.mjs +22 -21
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index131.js +1 -1
- package/index131.mjs +23 -8
- package/index139.js +1 -1
- package/index139.mjs +6 -18
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +54 -18
- package/index151.js +1 -1
- package/index151.mjs +21 -6
- package/index152.js +1 -1
- package/index152.mjs +6 -46
- package/index153.js +1 -2
- package/index153.mjs +11 -12
- package/index154.js +1 -1
- package/index154.mjs +46 -30
- package/index155.js +2 -1
- package/index155.mjs +13 -57
- package/index156.js +1 -1
- package/index156.mjs +29 -11
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index2.js +1 -1
- package/index2.mjs +21 -21
- package/index250.js +1 -1
- package/index250.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +15 -12
- package/index310.js +1 -1
- package/index310.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +20 -20
- package/index38.js +1 -1
- package/index38.mjs +13 -13
- package/index4.js +1 -1
- package/index4.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +34 -29
- package/index8.js +1 -1
- package/index8.mjs +45 -34
- package/index81.js +1 -1
- package/index81.mjs +1 -1
- package/index89.js +2 -1
- package/index89.mjs +20 -5
- package/index9.js +1 -1
- package/index9.mjs +21 -21
- package/index90.js +1 -1
- package/index90.mjs +5 -2
- package/index91.js +1 -6
- package/index91.mjs +2 -94
- package/index92.js +6 -1
- package/index92.mjs +79 -54
- package/index93.js +1 -1
- package/index93.mjs +61 -33
- package/index94.js +1 -42
- package/index94.mjs +34 -67
- package/index95.js +38 -60
- package/index95.mjs +65 -219
- package/index96.js +63 -8
- package/index96.mjs +215 -44
- package/index97.js +9 -1
- package/index97.mjs +48 -36
- package/index98.js +1 -1
- package/index98.mjs +40 -8
- package/index99.js +1 -5
- package/index99.mjs +10 -85
- package/package.json +1 -1
- package/providers/SidePanel/interface.d.ts +13 -4
- package/theme/SidePanel/index.d.ts +1 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +0 -79
package/index113.mjs
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
...e
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useTransition as m, config as c, animated as p } from "@react-spring/web";
|
|
3
|
+
import d from "./index73.mjs";
|
|
4
|
+
const l = "fixed", g = ({ isVisible: t, children: o, themeName: e, tokens: i, customTheme: n }) => {
|
|
5
|
+
const s = d(e, i, n);
|
|
6
|
+
return m(t, {
|
|
7
|
+
from: {
|
|
8
|
+
opacity: 0,
|
|
9
|
+
position: l,
|
|
10
|
+
left: 0,
|
|
11
|
+
top: 0,
|
|
12
|
+
zIndex: 1e3,
|
|
13
|
+
bottom: 0,
|
|
14
|
+
height: "100%"
|
|
16
15
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
}
|
|
16
|
+
enter: { opacity: 1 },
|
|
17
|
+
leave: { opacity: 0 },
|
|
18
|
+
config: c.stiff
|
|
19
|
+
})(
|
|
20
|
+
(a, r) => r && /* @__PURE__ */ f(p.div, { className: s, style: a, children: o })
|
|
21
|
+
);
|
|
22
|
+
};
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
g as default
|
|
24
25
|
};
|
package/index114.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),M=require("./
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),M=require("./index154.js"),n=require("./index126.js"),o=require("./index73.js"),N=require("./index155.js"),T=p=>{const{slides:c,slidesPerView:d=1,spaceBetween:u=50,themeName:r,tokens:s,customTheme:m,modules:i,a11y:t,children:w=e=>a.jsx(N,{...e}),...h}=p,b=o(`${r}.slide.wrapper`,s),x=o(`${r}.swiper.swiper`,s,m),g=o(`${r}.swiper.wrapper`,s),y=["A11y"],S=[...(i==null?void 0:i.filter(e=>e!=="Pagination"))??[],...y].map(e=>M[e]),{itemRoleDescriptionMessage:q="slide",slideRole:R="group",containerRoleDescriptionMessage:f="carousel"}=t??{};return a.jsx(n.Swiper,{tabIndex:0,...h,watchSlidesProgress:!0,role:"group","aria-roledescription":f??void 0,slidesPerView:d,spaceBetween:u,className:x,wrapperClass:g,modules:S,keyboard:{enabled:!0,onlyInViewport:!1},a11y:{...t,enabled:!1},children:c.map(e=>{const{id:l,title:j}=e;return a.jsx(n.SwiperSlide,{className:b,...j?{"aria-labelledby":l}:{"aria-label":e.ariaLabel},role:R,"aria-roledescription":q??void 0,children:w({...e,themeName:`${r}.slide`,tokens:s})},l)})})};module.exports=T;
|
package/index114.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as M from "./
|
|
2
|
+
import * as M from "./index154.mjs";
|
|
3
3
|
import { Swiper as N, SwiperSlide as $ } from "./index126.mjs";
|
|
4
4
|
import a from "./index73.mjs";
|
|
5
|
-
import I from "./
|
|
5
|
+
import I from "./index155.mjs";
|
|
6
6
|
const D = (p) => {
|
|
7
7
|
const {
|
|
8
8
|
slides: n,
|
package/index115.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index27.js"),p=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index27.js"),p=require("./index156.js"),d=a=>{const{themeName:r,tokens:i,slides:t,activeIndex:s,paginationGroupLabel:n}=a;return e.jsx(l.default,{as:"div",themeName:`${r}.wrapper`,tokens:i,role:"group","aria-label":n,children:e.jsx(c.FocusScope,{children:t.map((o,u)=>e.jsx(p,{index:u,activeIndex:s,slides:t,themeName:r,tokens:i},JSON.stringify(o)))})})};module.exports=d;
|
package/index115.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { FocusScope as p } from "react-aria";
|
|
3
3
|
import s from "./index27.mjs";
|
|
4
|
-
import u from "./
|
|
4
|
+
import u from "./index156.mjs";
|
|
5
5
|
const h = (i) => {
|
|
6
6
|
const { themeName: o, tokens: r, slides: a, activeIndex: t, paginationGroupLabel: n } = i;
|
|
7
7
|
return /* @__PURE__ */ e(
|
package/index123.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index167.js"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index167.js"),l=require("./index150.js"),f=require("./index171.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
|
package/index123.mjs
CHANGED
package/index131.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),d=require("react"),m=require("react-aria"),h=require("./index27.js"),g=require("./index3.js");function f(e){const{themeName:t="dialog",tokens:r,title:i,customTheme:s,children:c,...l}=e,o=d.useRef(null),{dialogProps:a,titleProps:u}=m.useDialog(e,o);return n.jsxs(h.BoxWithForwardRef,{...l,themeName:`${t}.wrapper`,tokens:r,customTheme:s,...a,ref:o,children:[i&&n.jsx(g.default,{themeName:`${t}.title`,tokens:r,...u,children:i}),c]})}exports.Dialog=f;
|
package/index131.mjs
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { BoxWithForwardRef as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as p, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as h } from "react";
|
|
3
|
+
import { useDialog as c } from "react-aria";
|
|
4
|
+
import { BoxWithForwardRef as d } from "./index27.mjs";
|
|
5
|
+
import u from "./index3.mjs";
|
|
6
|
+
function y(e) {
|
|
7
|
+
const { themeName: o = "dialog", tokens: r, title: t, customTheme: i, children: l, ...s } = e, m = h(null), { dialogProps: n, titleProps: a } = c(e, m);
|
|
8
|
+
return /* @__PURE__ */ p(
|
|
9
|
+
d,
|
|
10
|
+
{
|
|
11
|
+
...s,
|
|
12
|
+
themeName: `${o}.wrapper`,
|
|
13
|
+
tokens: r,
|
|
14
|
+
customTheme: i,
|
|
15
|
+
...n,
|
|
16
|
+
ref: m,
|
|
17
|
+
children: [
|
|
18
|
+
t && /* @__PURE__ */ f(u, { themeName: `${o}.title`, tokens: r, ...a, children: t }),
|
|
19
|
+
l
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
);
|
|
8
23
|
}
|
|
9
24
|
export {
|
|
10
|
-
|
|
25
|
+
y as Dialog
|
|
11
26
|
};
|
package/index139.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),t=require("react-aria"),a=require("./index131.js"),l=s=>{const{children:o,themeName:r,tokens:u,customTheme:c,title:i,...n}=s;return e.jsx(a.Dialog,{themeName:`${r}.dialog`,tokens:u,customTheme:c,title:i,...n,children:e.jsx(t.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:e.jsx(t.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:o})})})};module.exports=l;
|
package/index139.mjs
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ o(
|
|
8
|
-
f,
|
|
9
|
-
{
|
|
10
|
-
themeName: `${u}.dialog`,
|
|
11
|
-
tokens: s,
|
|
12
|
-
customTheme: a,
|
|
13
|
-
ref: t,
|
|
14
|
-
"aria-modal": !0,
|
|
15
|
-
...i,
|
|
16
|
-
children: /* @__PURE__ */ o(m, { focusRingClass: "has-focus-ring", within: !0, autoFocus: !0, children: /* @__PURE__ */ o(l, { contain: !0, restoreFocus: !0, autoFocus: !0, children: r }) })
|
|
17
|
-
}
|
|
18
|
-
);
|
|
2
|
+
import { FocusRing as a, FocusScope as n } from "react-aria";
|
|
3
|
+
import { Dialog as m } from "./index131.mjs";
|
|
4
|
+
const f = (e) => {
|
|
5
|
+
const { children: t, themeName: r, tokens: s, customTheme: u, title: i, ...c } = e;
|
|
6
|
+
return /* @__PURE__ */ o(m, { themeName: `${r}.dialog`, tokens: s, customTheme: u, title: i, ...c, children: /* @__PURE__ */ o(a, { focusRingClass: "has-focus-ring", within: !0, autoFocus: !0, children: /* @__PURE__ */ o(n, { contain: !0, restoreFocus: !0, autoFocus: !0, children: t }) }) });
|
|
19
7
|
};
|
|
20
8
|
export {
|
|
21
|
-
|
|
9
|
+
f as default
|
|
22
10
|
};
|
package/index145.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index249.js"),y=require("./index251.js"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index249.js"),y=require("./index251.js"),m=require("./index150.js"),q=require("./index123.js"),p=require("./index178.js"),L=require("@react-aria/i18n"),P=require("react"),f=require("./index252.js");function I(t,o,i){let{orientation:e="horizontal",keyboardActivation:n="automatic"}=t,{collection:l,selectionManager:c,disabledKeys:a}=o,{direction:r}=L.useLocale(),u=P.useMemo(()=>new y.TabsKeyboardDelegate(l,r,e,a),[l,a,e,r]),{collectionProps:b}=f.useSelectableCollection({ref:i,selectionManager:c,keyboardDelegate:u,selectOnFocus:n==="automatic",disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),s=m.useId();g.tabsIds.set(o,s);let d=p.useLabels({...t,id:s});return{tabListProps:{...q.mergeProps(b,d),role:"tablist","aria-orientation":e,tabIndex:void 0}}}exports.useTabList=I;
|
package/index145.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tabsIds as m } from "./index249.mjs";
|
|
2
2
|
import { TabsKeyboardDelegate as $ } from "./index251.mjs";
|
|
3
|
-
import { useId as p } from "./
|
|
3
|
+
import { useId as p } from "./index150.mjs";
|
|
4
4
|
import { mergeProps as u } from "./index123.mjs";
|
|
5
5
|
import { useLabels as x } from "./index178.mjs";
|
|
6
6
|
import { useLocale as g } from "@react-aria/i18n";
|
package/index150.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index164.js"),a=require("./index165.js"),l=require("react"),b=require("./index166.js");let $=!!(typeof window<"u"&&window.document&&window.document.createElement),f=new Map,s;typeof FinalizationRegistry<"u"&&(s=new FinalizationRegistry(r=>{f.delete(r)}));function i(r){let[e,c]=l.useState(r),n=l.useRef(null),t=b.useSSRSafeId(e),d=l.useRef(null);if(s&&s.register(d,t),$){const u=f.get(t);u&&!u.includes(n)?u.push(n):f.set(t,[n])}return o.useLayoutEffect(()=>{let u=t;return()=>{s&&s.unregister(d),f.delete(u)}},[t]),l.useEffect(()=>{let u=n.current;return u&&c(u),()=>{u&&(n.current=null)}}),t}function p(r,e){if(r===e)return r;let c=f.get(r);if(c)return c.forEach(t=>t.current=e),e;let n=f.get(e);return n?(n.forEach(t=>t.current=r),r):e}function y(r=[]){let e=i(),[c,n]=a.useValueEffect(e),t=l.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return o.useLayoutEffect(t,[e,t,...r]),c}exports.idsUpdaterMap=f;exports.mergeIds=p;exports.useId=i;exports.useSlotId=y;
|
package/index150.mjs
CHANGED
|
@@ -1,23 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { useLayoutEffect as o } from "./index164.mjs";
|
|
2
|
+
import { useValueEffect as s } from "./index165.mjs";
|
|
3
|
+
import { useCallback as i, useState as $, useRef as l, useEffect as b } from "react";
|
|
4
|
+
import { useSSRSafeId as p } from "./index166.mjs";
|
|
5
|
+
let m = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new Map(), u;
|
|
6
|
+
typeof FinalizationRegistry < "u" && (u = new FinalizationRegistry((r) => {
|
|
7
|
+
d.delete(r);
|
|
8
|
+
}));
|
|
9
|
+
function I(r) {
|
|
10
|
+
let [e, c] = $(r), f = l(null), t = p(e), a = l(null);
|
|
11
|
+
if (u && u.register(a, t), m) {
|
|
12
|
+
const n = d.get(t);
|
|
13
|
+
n && !n.includes(f) ? n.push(f) : d.set(t, [
|
|
14
|
+
f
|
|
15
|
+
]);
|
|
4
16
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.logger = (s, e, i) => {
|
|
10
|
-
this.suppressConsole && this.internalLogger(s, e, i), t(s, e, i);
|
|
17
|
+
return o(() => {
|
|
18
|
+
let n = t;
|
|
19
|
+
return () => {
|
|
20
|
+
u && u.unregister(a), d.delete(n);
|
|
11
21
|
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
}, [
|
|
23
|
+
t
|
|
24
|
+
]), b(() => {
|
|
25
|
+
let n = f.current;
|
|
26
|
+
return n && c(n), () => {
|
|
27
|
+
n && (f.current = null);
|
|
28
|
+
};
|
|
29
|
+
}), t;
|
|
30
|
+
}
|
|
31
|
+
function E(r, e) {
|
|
32
|
+
if (r === e) return r;
|
|
33
|
+
let c = d.get(r);
|
|
34
|
+
if (c)
|
|
35
|
+
return c.forEach((t) => t.current = e), e;
|
|
36
|
+
let f = d.get(e);
|
|
37
|
+
return f ? (f.forEach((t) => t.current = r), r) : e;
|
|
38
|
+
}
|
|
39
|
+
function R(r = []) {
|
|
40
|
+
let e = I(), [c, f] = s(e), t = i(() => {
|
|
41
|
+
f(function* () {
|
|
42
|
+
yield e, yield document.getElementById(e) ? e : void 0;
|
|
43
|
+
});
|
|
44
|
+
}, [
|
|
45
|
+
e,
|
|
46
|
+
f
|
|
47
|
+
]);
|
|
48
|
+
return o(t, [
|
|
49
|
+
e,
|
|
50
|
+
t,
|
|
51
|
+
...r
|
|
52
|
+
]), c;
|
|
19
53
|
}
|
|
20
|
-
n.getInstance();
|
|
21
54
|
export {
|
|
22
|
-
|
|
55
|
+
d as idsUpdaterMap,
|
|
56
|
+
E as mergeIds,
|
|
57
|
+
I as useId,
|
|
58
|
+
R as useSlotId
|
|
23
59
|
};
|
package/index151.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class n{constructor(t,s,e){this.nameSpace="[STACK]",this.suppressConsole=!1,this.env=process.env.NODE_ENV,this.nameSpace=t??this.nameSpace,this.suppressConsole=e??this.suppressConsole,this.logger=s??this.internalLogger}internalLogger(t,s,e){this.env!=="production"&&console[s||"log"](`${this.nameSpace} ${t}`.trimStart(),e??"")}setLogger(t){this.logger=(s,e,i)=>{this.suppressConsole&&this.internalLogger(s,e,i),t(s,e,i)}}static getInstance(){return n.instance||(n.instance=new n),n.instance}log(t,s,e){this.logger(t,s,e)}}n.getInstance();exports.Logger=n;
|
package/index151.mjs
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
class n {
|
|
2
|
+
constructor(t, s, e) {
|
|
3
|
+
this.nameSpace = "[STACK]", this.suppressConsole = !1, this.env = process.env.NODE_ENV, this.nameSpace = t ?? this.nameSpace, this.suppressConsole = e ?? this.suppressConsole, this.logger = s ?? this.internalLogger;
|
|
4
|
+
}
|
|
5
|
+
internalLogger(t, s, e) {
|
|
6
|
+
this.env !== "production" && console[s || "log"](`${this.nameSpace} ${t}`.trimStart(), e ?? "");
|
|
7
|
+
}
|
|
8
|
+
setLogger(t) {
|
|
9
|
+
this.logger = (s, e, i) => {
|
|
10
|
+
this.suppressConsole && this.internalLogger(s, e, i), t(s, e, i);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static getInstance() {
|
|
14
|
+
return n.instance || (n.instance = new n()), n.instance;
|
|
15
|
+
}
|
|
16
|
+
log(t, s, e) {
|
|
17
|
+
this.logger(t, s, e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.getInstance();
|
|
6
21
|
export {
|
|
7
|
-
n as
|
|
22
|
+
n as Logger
|
|
8
23
|
};
|
package/index152.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const t=require("./index151.js"),i=(o,r,g=!1)=>{const e=new t.Logger(o,r,g);return e.log("Logger initialized","info"),e};module.exports=i;
|
package/index152.mjs
CHANGED
|
@@ -1,48 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { default as x } from "./index228.mjs";
|
|
7
|
-
import { default as c } from "./index229.mjs";
|
|
8
|
-
import { default as E } from "./index230.mjs";
|
|
9
|
-
import { default as b } from "./index231.mjs";
|
|
10
|
-
import { default as y } from "./index232.mjs";
|
|
11
|
-
import { default as h } from "./index233.mjs";
|
|
12
|
-
import { default as M } from "./index234.mjs";
|
|
13
|
-
import { default as A } from "./index235.mjs";
|
|
14
|
-
import { default as N } from "./index236.mjs";
|
|
15
|
-
import { default as G } from "./index237.mjs";
|
|
16
|
-
import { default as S } from "./index238.mjs";
|
|
17
|
-
import { default as V } from "./index239.mjs";
|
|
18
|
-
import { default as j } from "./index240.mjs";
|
|
19
|
-
import { default as q } from "./index241.mjs";
|
|
20
|
-
import { default as B } from "./index242.mjs";
|
|
21
|
-
import { default as I } from "./index243.mjs";
|
|
22
|
-
import { default as L } from "./index244.mjs";
|
|
23
|
-
import { default as Q } from "./index245.mjs";
|
|
1
|
+
import { Logger as t } from "./index151.mjs";
|
|
2
|
+
const n = (o, r, g = !1) => {
|
|
3
|
+
const e = new t(o, r, g);
|
|
4
|
+
return e.log("Logger initialized", "info"), e;
|
|
5
|
+
};
|
|
24
6
|
export {
|
|
25
|
-
|
|
26
|
-
A as Autoplay,
|
|
27
|
-
b as Controller,
|
|
28
|
-
Q as EffectCards,
|
|
29
|
-
I as EffectCoverflow,
|
|
30
|
-
L as EffectCreative,
|
|
31
|
-
q as EffectCube,
|
|
32
|
-
j as EffectFade,
|
|
33
|
-
B as EffectFlip,
|
|
34
|
-
G as FreeMode,
|
|
35
|
-
S as Grid,
|
|
36
|
-
M as HashNavigation,
|
|
37
|
-
h as History,
|
|
38
|
-
f as Keyboard,
|
|
39
|
-
V as Manipulation,
|
|
40
|
-
l as Mousewheel,
|
|
41
|
-
d as Navigation,
|
|
42
|
-
p as Pagination,
|
|
43
|
-
c as Parallax,
|
|
44
|
-
x as Scrollbar,
|
|
45
|
-
N as Thumbs,
|
|
46
|
-
o as Virtual,
|
|
47
|
-
E as Zoom
|
|
7
|
+
n as default
|
|
48
8
|
};
|
package/index153.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),d=require("./index126.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
|
|
1
|
+
"use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index73.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
|
package/index153.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
] });
|
|
1
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import { useTransition as c, animated as g } from "@react-spring/web";
|
|
3
|
+
import l from "./index73.mjs";
|
|
4
|
+
const w = (e) => {
|
|
5
|
+
const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
|
|
6
|
+
from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
|
|
7
|
+
enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
|
|
8
|
+
leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
|
|
9
|
+
}), a = l(r, i, n);
|
|
10
|
+
return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
w as default
|
|
15
14
|
};
|
package/index154.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index223.js"),r=require("./index224.js"),t=require("./index225.js"),o=require("./index226.js"),i=require("./index227.js"),a=require("./index228.js"),c=require("./index229.js"),n=require("./index230.js"),u=require("./index231.js"),s=require("./index232.js"),f=require("./index233.js"),l=require("./index234.js"),q=require("./index235.js"),d=require("./index236.js"),b=require("./index237.js"),v=require("./index238.js"),y=require("./index239.js"),g=require("./index240.js"),p=require("./index241.js"),C=require("./index242.js"),h=require("./index243.js"),m=require("./index244.js"),E=require("./index245.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
|
package/index154.mjs
CHANGED
|
@@ -1,32 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
...f,
|
|
25
|
-
themeName: `${l}.bullet`,
|
|
26
|
-
tokens: { ...u, active: n }
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
1
|
+
import { default as o } from "./index223.mjs";
|
|
2
|
+
import { default as f } from "./index224.mjs";
|
|
3
|
+
import { default as l } from "./index225.mjs";
|
|
4
|
+
import { default as d } from "./index226.mjs";
|
|
5
|
+
import { default as p } from "./index227.mjs";
|
|
6
|
+
import { default as x } from "./index228.mjs";
|
|
7
|
+
import { default as c } from "./index229.mjs";
|
|
8
|
+
import { default as E } from "./index230.mjs";
|
|
9
|
+
import { default as b } from "./index231.mjs";
|
|
10
|
+
import { default as y } from "./index232.mjs";
|
|
11
|
+
import { default as h } from "./index233.mjs";
|
|
12
|
+
import { default as M } from "./index234.mjs";
|
|
13
|
+
import { default as A } from "./index235.mjs";
|
|
14
|
+
import { default as N } from "./index236.mjs";
|
|
15
|
+
import { default as G } from "./index237.mjs";
|
|
16
|
+
import { default as S } from "./index238.mjs";
|
|
17
|
+
import { default as V } from "./index239.mjs";
|
|
18
|
+
import { default as j } from "./index240.mjs";
|
|
19
|
+
import { default as q } from "./index241.mjs";
|
|
20
|
+
import { default as B } from "./index242.mjs";
|
|
21
|
+
import { default as I } from "./index243.mjs";
|
|
22
|
+
import { default as L } from "./index244.mjs";
|
|
23
|
+
import { default as Q } from "./index245.mjs";
|
|
30
24
|
export {
|
|
31
|
-
|
|
25
|
+
y as A11y,
|
|
26
|
+
A as Autoplay,
|
|
27
|
+
b as Controller,
|
|
28
|
+
Q as EffectCards,
|
|
29
|
+
I as EffectCoverflow,
|
|
30
|
+
L as EffectCreative,
|
|
31
|
+
q as EffectCube,
|
|
32
|
+
j as EffectFade,
|
|
33
|
+
B as EffectFlip,
|
|
34
|
+
G as FreeMode,
|
|
35
|
+
S as Grid,
|
|
36
|
+
M as HashNavigation,
|
|
37
|
+
h as History,
|
|
38
|
+
f as Keyboard,
|
|
39
|
+
V as Manipulation,
|
|
40
|
+
l as Mousewheel,
|
|
41
|
+
d as Navigation,
|
|
42
|
+
p as Pagination,
|
|
43
|
+
c as Parallax,
|
|
44
|
+
x as Scrollbar,
|
|
45
|
+
N as Thumbs,
|
|
46
|
+
o as Virtual,
|
|
47
|
+
E as Zoom
|
|
32
48
|
};
|
package/index155.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),d=require("./index126.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
|
package/index155.mjs
CHANGED
|
@@ -1,59 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
d
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
n && !n.includes(f) ? n.push(f) : d.set(t, [
|
|
14
|
-
f
|
|
15
|
-
]);
|
|
16
|
-
}
|
|
17
|
-
return o(() => {
|
|
18
|
-
let n = t;
|
|
19
|
-
return () => {
|
|
20
|
-
u && u.unregister(a), d.delete(n);
|
|
21
|
-
};
|
|
22
|
-
}, [
|
|
23
|
-
t
|
|
24
|
-
]), $(() => {
|
|
25
|
-
let n = f.current;
|
|
26
|
-
return n && c(n), () => {
|
|
27
|
-
n && (f.current = null);
|
|
28
|
-
};
|
|
29
|
-
}), t;
|
|
30
|
-
}
|
|
31
|
-
function E(r, e) {
|
|
32
|
-
if (r === e) return r;
|
|
33
|
-
let c = d.get(r);
|
|
34
|
-
if (c)
|
|
35
|
-
return c.forEach((t) => t.current = e), e;
|
|
36
|
-
let f = d.get(e);
|
|
37
|
-
return f ? (f.forEach((t) => t.current = r), r) : e;
|
|
38
|
-
}
|
|
39
|
-
function R(r = []) {
|
|
40
|
-
let e = I(), [c, f] = s(e), t = b(() => {
|
|
41
|
-
f(function* () {
|
|
42
|
-
yield e, yield document.getElementById(e) ? e : void 0;
|
|
43
|
-
});
|
|
44
|
-
}, [
|
|
45
|
-
e,
|
|
46
|
-
f
|
|
47
|
-
]);
|
|
48
|
-
return o(t, [
|
|
49
|
-
e,
|
|
50
|
-
t,
|
|
51
|
-
...r
|
|
52
|
-
]), c;
|
|
53
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useSwiperSlide as d } from "./index126.mjs";
|
|
4
|
+
import p from "./index27.mjs";
|
|
5
|
+
import h from "./index3.mjs";
|
|
6
|
+
const S = (r) => {
|
|
7
|
+
const { themeName: e, title: t, tokens: s, id: n, children: m } = r, { isActive: l, isVisible: o } = d(), i = { ...s, isActive: l, isVisible: o };
|
|
8
|
+
return /* @__PURE__ */ c(p, { themeName: `${e}.container`, tokens: i, ...o ? {} : { inert: "true" }, children: [
|
|
9
|
+
t && /* @__PURE__ */ a(h, { themeName: `${e}.title`, tokens: i, id: n, children: t }),
|
|
10
|
+
m
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
54
13
|
export {
|
|
55
|
-
|
|
56
|
-
E as mergeIds,
|
|
57
|
-
I as useId,
|
|
58
|
-
R as useSlotId
|
|
14
|
+
S as default
|
|
59
15
|
};
|
package/index156.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),o=require("react-aria"),k=require("./index80.js"),m=require("./index6.js"),w=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=k.useSwiperController(),s=o.useFocusManager(),p=t===0?i.length-1:t-1,b=t===i.length-1?0:t+1,{keyboardProps:v}=o.useKeyboard({onKeyUp:n=>{n.key==="ArrowLeft"&&(n.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(p)),n.key==="ArrowRight"&&(n.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(b))}}),{pressProps:h}=o.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),f=i[t],r=t===x,{title:a,id:y}=f,u=a&&a.length>0;return P.jsx(m.default,{as:"button",tabIndex:0,role:"button","aria-current":r?"true":"false","aria-disabled":r,"aria-label":u?void 0:`${t+1} / ${i.length}`,"aria-labelledby":u?y:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=w;
|