@okam/stack-ui 1.27.0 → 1.27.3
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/Carousel/components/CarouselNavigationButton.d.ts +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.mjs +158 -151
- package/index10.js +1 -1
- package/index10.mjs +2 -2
- package/index100.js +1 -2
- package/index100.mjs +17 -12
- package/index101.js +2 -1
- package/index101.mjs +22 -45
- package/index102.js +1 -1
- package/index102.mjs +1 -1
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index107.js +1 -1
- package/index107.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +1 -1
- package/index11.js +1 -1
- package/index11.mjs +3 -3
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index116.js +1 -1
- package/index116.mjs +1 -1
- package/index118.js +1 -1
- package/index118.mjs +1 -1
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index12.js +2 -1
- package/index12.mjs +45 -15
- package/index121.js +1 -1
- package/index121.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +3 -3
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index128.js +1 -1
- package/index128.mjs +1 -1
- package/index13.js +1 -2
- package/index13.mjs +17 -20
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index132.js +1 -1
- package/index132.mjs +1 -1
- package/index134.js +1 -1
- package/index134.mjs +1 -1
- package/index135.js +1 -1
- package/index135.mjs +1 -1
- package/index138.js +1 -1
- package/index138.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +3 -3
- package/index14.js +1 -1
- package/index14.mjs +18 -17
- package/index140.js +1 -1
- package/index140.mjs +2 -2
- package/index15.js +1 -1
- package/index15.mjs +16 -83
- package/index16.js +1 -1
- package/index16.mjs +81 -28
- package/index17.js +1 -1
- package/index17.mjs +30 -32
- package/index174.js +1 -1
- package/index174.mjs +2 -2
- package/index175.js +1 -1
- package/index175.mjs +2 -2
- package/index176.js +1 -1
- package/index176.mjs +2 -2
- package/index177.js +1 -1
- package/index177.mjs +2 -2
- package/index178.js +1 -1
- package/index178.mjs +3 -3
- package/index179.js +1 -1
- package/index179.mjs +4 -4
- package/index18.js +1 -1
- package/index18.mjs +33 -31
- package/index180.js +1 -1
- package/index180.mjs +1 -1
- package/index181.js +1 -1
- package/index181.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index183.js +1 -1
- package/index183.mjs +2 -2
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +2 -2
- package/index186.js +1 -1
- package/index186.mjs +1 -1
- package/index187.js +1 -1
- package/index187.mjs +2 -2
- package/index188.js +1 -1
- package/index188.mjs +1 -1
- package/index19.js +1 -1
- package/index19.mjs +30 -33
- package/index191.js +1 -1
- package/index191.mjs +4 -4
- package/index192.js +1 -1
- package/index192.mjs +2 -2
- package/index193.js +1 -1
- package/index193.mjs +5 -5
- package/index194.js +1 -1
- package/index194.mjs +4 -4
- package/index195.js +1 -1
- package/index195.mjs +5 -5
- package/index196.js +1 -1
- package/index196.mjs +5 -5
- package/index197.js +1 -1
- package/index197.mjs +2 -2
- package/index2.js +1 -1
- package/index2.mjs +20 -20
- package/index20.js +1 -1
- package/index20.mjs +32 -67
- package/index208.js +1 -1
- package/index208.mjs +2 -2
- package/index21.js +1 -1
- package/index21.mjs +61 -58
- package/index210.js +1 -1
- package/index210.mjs +1 -1
- package/index213.js +1 -1
- package/index213.mjs +1 -1
- package/index22.js +1 -1
- package/index22.mjs +66 -52
- package/index224.js +1 -1
- package/index224.mjs +123 -306
- package/index225.js +1 -1
- package/index225.mjs +173 -186
- package/index226.js +1 -1
- package/index226.mjs +9 -8
- package/index227.js +1 -1
- package/index227.mjs +3 -26
- package/index228.js +1 -1
- package/index228.mjs +34 -53
- package/index229.js +1 -1
- package/index229.mjs +5 -46
- package/index23.js +1 -1
- package/index23.mjs +37 -41
- package/index230.js +1 -1
- package/index230.mjs +28 -123
- package/index231.js +1 -1
- package/index231.mjs +6 -130
- package/index232.js +1 -1
- package/index232.mjs +293 -159
- package/index233.js +1 -1
- package/index233.mjs +192 -9
- package/index234.js +1 -1
- package/index234.mjs +8 -3
- package/index235.js +1 -1
- package/index235.mjs +25 -35
- package/index236.js +1 -1
- package/index236.mjs +55 -5
- package/index237.js +1 -1
- package/index237.mjs +44 -27
- package/index238.js +1 -1
- package/index238.mjs +124 -6
- package/index24.js +1 -1
- package/index24.mjs +57 -20
- package/index242.js +1 -1
- package/index242.mjs +1 -1
- package/index243.js +1 -1
- package/index243.mjs +1 -1
- package/index245.js +1 -1
- package/index245.mjs +1 -1
- package/index246.js +1 -1
- package/index246.mjs +2 -2
- package/index248.js +1 -1
- package/index248.mjs +1 -1
- package/index249.js +1 -1
- package/index249.mjs +3 -3
- package/index25.js +1 -1
- package/index25.mjs +20 -50
- package/index250.js +1 -1
- package/index250.mjs +2 -2
- package/index251.js +1 -1
- package/index251.mjs +2 -23
- package/index252.js +1 -1
- package/index252.mjs +23 -2
- package/index26.js +1 -1
- package/index26.mjs +50 -17
- package/index260.js +1 -1
- package/index260.mjs +6 -2
- package/index261.mjs +2 -2
- package/index262.mjs +2 -2
- package/index263.mjs +2 -2
- package/index264.js +1 -1
- package/index264.mjs +2 -72
- package/index265.js +1 -1
- package/index265.mjs +72 -2
- package/index266.mjs +2 -2
- package/index267.js +1 -1
- package/index267.mjs +2 -19
- package/index268.js +1 -1
- package/index268.mjs +19 -2
- package/index269.js +1 -1
- package/index269.mjs +2 -6
- package/index27.js +1 -1
- package/index27.mjs +16 -32
- package/index28.js +1 -1
- package/index28.mjs +32 -23
- package/index29.js +1 -1
- package/index29.mjs +24 -8
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +8 -32
- package/index31.js +1 -1
- package/index31.mjs +29 -30
- package/index32.js +1 -1
- package/index32.mjs +28 -98
- package/index33.js +1 -1
- package/index33.mjs +102 -8
- package/index34.js +1 -1
- package/index34.mjs +8 -46
- package/index35.js +1 -1
- package/index35.mjs +46 -18
- package/index36.js +2 -1
- package/index36.mjs +19 -6
- package/index37.js +1 -1
- package/index37.mjs +6 -46
- package/index38.js +1 -1
- package/index38.mjs +45 -23
- package/index39.js +2 -1
- package/index39.mjs +26 -5
- package/index4.js +1 -1
- package/index4.mjs +5 -5
- package/index40.js +1 -1
- package/index40.mjs +4 -7
- package/index41.js +1 -1
- package/index41.mjs +5 -5
- package/index42.js +1 -1
- package/index42.mjs +8 -5
- package/index43.js +1 -1
- package/index43.mjs +2 -2
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +4 -4
- package/index46.js +1 -1
- package/index46.mjs +3 -9
- package/index47.js +1 -1
- package/index47.mjs +7 -9
- package/index48.js +1 -1
- package/index48.mjs +9 -9
- package/index49.js +1 -1
- package/index49.mjs +13 -46
- package/index50.js +1 -1
- package/index50.mjs +46 -8
- package/index51.js +1 -1
- package/index51.mjs +6 -69
- package/index52.js +1 -1
- package/index52.mjs +71 -8
- package/index53.js +1 -1
- package/index53.mjs +7 -12
- package/index54.js +1 -1
- package/index54.mjs +12 -9
- package/index55.js +1 -1
- package/index55.mjs +10 -17
- package/index56.js +1 -1
- package/index56.mjs +17 -13
- package/index57.js +1 -1
- package/index57.mjs +5 -5
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +10 -8
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +1 -1
- package/index60.mjs +5 -5
- package/index61.js +1 -1
- package/index61.mjs +6 -8
- package/index62.js +1 -1
- package/index62.mjs +13 -14
- package/index63.js +1 -2
- package/index63.mjs +14 -23
- package/index64.js +1 -1
- package/index64.mjs +21 -15
- package/index65.js +1 -1
- package/index65.mjs +16 -14
- package/index66.js +1 -1
- package/index66.mjs +13 -40
- package/index67.js +1 -1
- package/index67.mjs +39 -36
- package/index68.js +1 -1
- package/index68.mjs +37 -11
- package/index69.js +1 -1
- package/index69.mjs +11 -10
- package/index7.js +1 -1
- package/index7.mjs +2 -2
- package/index70.js +1 -1
- package/index70.mjs +10 -13
- package/index71.js +2 -1
- package/index71.mjs +15 -2
- package/index72.js +1 -1
- package/index72.mjs +11 -8
- package/index73.js +1 -2
- package/index73.mjs +1 -7
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +2 -1
- package/index76.mjs +8 -25
- package/index77.js +2 -1
- package/index77.mjs +8 -2
- package/index78.js +1 -6
- package/index78.mjs +25 -94
- package/index79.js +1 -1
- package/index79.mjs +2 -69
- package/index8.js +1 -1
- package/index8.mjs +5 -5
- package/index80.js +6 -1
- package/index80.mjs +82 -29
- package/index81.js +1 -42
- package/index81.mjs +64 -65
- package/index82.js +1 -1
- package/index82.mjs +32 -150
- package/index83.js +42 -9
- package/index83.mjs +65 -52
- package/index84.js +1 -1
- package/index84.mjs +145 -31
- package/index85.js +9 -1
- package/index85.mjs +54 -10
- package/index86.js +1 -1
- package/index86.mjs +38 -28
- package/index87.js +1 -1
- package/index87.mjs +12 -5
- package/index88.js +1 -12
- package/index88.mjs +31 -36
- package/index89.js +1 -1
- package/index89.mjs +6 -29
- package/index9.js +1 -1
- package/index9.mjs +4 -4
- package/index90.js +12 -1
- package/index90.mjs +39 -12
- package/index91.js +1 -7
- package/index91.mjs +23 -13
- package/index92.js +1 -15
- package/index92.mjs +9 -67
- package/index93.js +7 -1
- package/index93.mjs +17 -5
- package/index94.js +13 -14
- package/index94.mjs +63 -17
- package/index95.js +1 -1
- package/index95.mjs +7 -42
- package/index96.js +16 -1
- package/index96.mjs +24 -44
- package/index97.js +1 -1
- package/index97.mjs +42 -48
- package/index98.js +1 -1
- package/index98.mjs +45 -17
- package/index99.js +1 -2
- package/index99.mjs +47 -21
- package/package.json +1 -1
package/index32.mjs
CHANGED
|
@@ -1,106 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import g, { Anchor as L } from "./index6.mjs";
|
|
8
|
-
const B = (a) => {
|
|
9
|
-
const { tabState: r, defaultSelectedKey: s } = T(), { setSelectedKey: t } = r, { id: l, path: n, label: e, themeName: c = "button", tokens: h, customTheme: i, target: m, children: o, childItems: u, ...d } = a, f = n == null ? void 0 : n.substring(1), $ = x(() => {
|
|
10
|
-
if (f != null) {
|
|
11
|
-
if (r.selectedKey === f) {
|
|
12
|
-
t(s);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
t(f);
|
|
16
|
-
}
|
|
17
|
-
}, [f, r.selectedKey, t, s]);
|
|
18
|
-
return /* @__PURE__ */ N(
|
|
19
|
-
g,
|
|
20
|
-
{
|
|
21
|
-
...d,
|
|
22
|
-
themeName: `${c}`,
|
|
23
|
-
tokens: h,
|
|
24
|
-
customTheme: i,
|
|
25
|
-
key: `button-${l}`,
|
|
26
|
-
handlePress: $
|
|
27
|
-
},
|
|
28
|
-
b.isValidElement(o) ? o : e
|
|
29
|
-
);
|
|
30
|
-
}, P = (a) => {
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useMenu as f } from "./index68.mjs";
|
|
4
|
+
import h from "./index8.mjs";
|
|
5
|
+
import p from "./index122.mjs";
|
|
6
|
+
const T = (m) => {
|
|
31
7
|
const {
|
|
32
|
-
id:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
themeName:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = a, u = E(null);
|
|
44
|
-
return t == null || l == null ? null : /* @__PURE__ */ N(
|
|
45
|
-
L,
|
|
8
|
+
id: n = "main-menu",
|
|
9
|
+
children: s,
|
|
10
|
+
TransitionAnimation: l,
|
|
11
|
+
PanelTransition: a,
|
|
12
|
+
themeName: t,
|
|
13
|
+
tokens: o,
|
|
14
|
+
customTheme: r,
|
|
15
|
+
...c
|
|
16
|
+
} = m, { closeBtn: d, tabState: e, defaultSelectedKey: u } = f();
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
h,
|
|
46
19
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
20
|
+
themeName: `${t}.sidePanel`,
|
|
21
|
+
tokens: o,
|
|
22
|
+
customTheme: r,
|
|
23
|
+
closeBtnRender: d,
|
|
24
|
+
id: n,
|
|
25
|
+
TransitionAnimation: l,
|
|
26
|
+
PanelTransition: a,
|
|
27
|
+
onCloseCallBack: () => {
|
|
28
|
+
e == null || e.setSelectedKey(u);
|
|
55
29
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
as: K,
|
|
59
|
-
target: s ?? "_self"
|
|
60
|
-
},
|
|
61
|
-
b.isValidElement(i) ? i : l
|
|
30
|
+
children: /* @__PURE__ */ i(p, { id: n, themeName: t, tokens: o, customTheme: r, ...c, children: s })
|
|
31
|
+
}
|
|
62
32
|
);
|
|
63
|
-
}, V = (a) => {
|
|
64
|
-
const { menuItems: r, children: s, themeName: t = "menuItem", tokens: l, customTheme: n } = a;
|
|
65
|
-
return /* @__PURE__ */ y(p, { themeName: `${t}.wrapper`, tokens: l, customTheme: n, children: [
|
|
66
|
-
/* @__PURE__ */ k(p, { themeName: `${t}.container`, tokens: l, customTheme: n, children: r == null ? void 0 : r.map((e) => {
|
|
67
|
-
var d;
|
|
68
|
-
const { id: c, path: h, label: i, ...m } = e ?? {}, o = { ...l, ...e.tokens };
|
|
69
|
-
if ((e == null ? void 0 : e.path) == null || e.id == null)
|
|
70
|
-
return null;
|
|
71
|
-
const u = (d = e.path) != null && d.startsWith("#") ? "button" : "a";
|
|
72
|
-
return /* @__PURE__ */ k(
|
|
73
|
-
p,
|
|
74
|
-
{
|
|
75
|
-
themeName: `${t}.innerContent`,
|
|
76
|
-
tokens: o,
|
|
77
|
-
customTheme: n,
|
|
78
|
-
children: u === "button" ? /* @__PURE__ */ k(
|
|
79
|
-
B,
|
|
80
|
-
{
|
|
81
|
-
...m,
|
|
82
|
-
...e,
|
|
83
|
-
themeName: `${t}.button`,
|
|
84
|
-
tokens: o,
|
|
85
|
-
customTheme: n
|
|
86
|
-
}
|
|
87
|
-
) : /* @__PURE__ */ k(
|
|
88
|
-
P,
|
|
89
|
-
{
|
|
90
|
-
...m,
|
|
91
|
-
...e,
|
|
92
|
-
themeName: `${t}.anchor`,
|
|
93
|
-
tokens: o,
|
|
94
|
-
customTheme: n
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
},
|
|
98
|
-
`li-${e.id}`
|
|
99
|
-
);
|
|
100
|
-
}) }),
|
|
101
|
-
s
|
|
102
|
-
] });
|
|
103
33
|
};
|
|
104
34
|
export {
|
|
105
|
-
|
|
35
|
+
T as default
|
|
106
36
|
};
|
package/index33.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const u=require("react/jsx-runtime"),c=require("react"),N=require("./index123.js"),y=require("./index68.js"),b=require("./index25.js"),x=require("./index6.js"),q=a=>{const{tabState:s,defaultSelectedKey:o}=y.useMenu(),{setSelectedKey:t}=s,{id:r,path:n,label:e,themeName:h="button",tokens:d,customTheme:i,target:m,children:l,childItems:k,...f}=a,$=n==null?void 0:n.substring(1),p=c.useCallback(()=>{if($!=null){if(s.selectedKey===$){t(o);return}t($)}},[$,s.selectedKey,t,o]);return c.createElement(x.default,{...f,themeName:`${h}`,tokens:d,customTheme:i,key:`button-${r}`,handlePress:p},c.isValidElement(l)?l:e)},E=a=>{const{id:s,target:o,path:t,label:r,themeName:n="anchor",customTheme:e,tokens:h,nextLinkProps:d,children:i,childItems:m,...l}=a,k=c.useRef(null);return t==null||r==null?null:c.createElement(x.Anchor,{...l,themeName:`${n}`,tokens:h,customTheme:e,nextLinkProps:{scroll:!1,href:t,...d},ref:k,key:`link-${s}`,as:N,target:o??"_self"},c.isValidElement(i)?i:r)},j=a=>{const{menuItems:s,children:o,themeName:t="menuItem",tokens:r,customTheme:n}=a;return u.jsxs(b.default,{themeName:`${t}.wrapper`,tokens:r,customTheme:n,children:[u.jsx(b.default,{themeName:`${t}.container`,tokens:r,customTheme:n,children:s==null?void 0:s.map(e=>{var f;const{id:h,path:d,label:i,...m}=e??{},l={...r,...e.tokens};if((e==null?void 0:e.path)==null||e.id==null)return null;const k=(f=e.path)!=null&&f.startsWith("#")?"button":"a";return u.jsx(b.default,{themeName:`${t}.innerContent`,tokens:l,customTheme:n,children:k==="button"?u.jsx(q,{...m,...e,themeName:`${t}.button`,tokens:l,customTheme:n}):u.jsx(E,{...m,...e,themeName:`${t}.anchor`,tokens:l,customTheme:n})},`li-${e.id}`)})}),o]})};module.exports=j;
|
package/index33.mjs
CHANGED
|
@@ -1,12 +1,106 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { jsxs as y, jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import b, { useCallback as x, createElement as N, useRef as E } from "react";
|
|
4
|
+
import K from "./index123.mjs";
|
|
5
|
+
import { useMenu as T } from "./index68.mjs";
|
|
6
|
+
import p from "./index25.mjs";
|
|
7
|
+
import g, { Anchor as L } from "./index6.mjs";
|
|
8
|
+
const B = (a) => {
|
|
9
|
+
const { tabState: r, defaultSelectedKey: s } = T(), { setSelectedKey: t } = r, { id: l, path: n, label: e, themeName: c = "button", tokens: h, customTheme: i, target: m, children: o, childItems: u, ...d } = a, f = n == null ? void 0 : n.substring(1), $ = x(() => {
|
|
10
|
+
if (f != null) {
|
|
11
|
+
if (r.selectedKey === f) {
|
|
12
|
+
t(s);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
t(f);
|
|
16
|
+
}
|
|
17
|
+
}, [f, r.selectedKey, t, s]);
|
|
18
|
+
return /* @__PURE__ */ N(
|
|
19
|
+
g,
|
|
20
|
+
{
|
|
21
|
+
...d,
|
|
22
|
+
themeName: `${c}`,
|
|
23
|
+
tokens: h,
|
|
24
|
+
customTheme: i,
|
|
25
|
+
key: `button-${l}`,
|
|
26
|
+
handlePress: $
|
|
27
|
+
},
|
|
28
|
+
b.isValidElement(o) ? o : e
|
|
29
|
+
);
|
|
30
|
+
}, P = (a) => {
|
|
31
|
+
const {
|
|
32
|
+
id: r,
|
|
33
|
+
target: s,
|
|
34
|
+
path: t,
|
|
35
|
+
label: l,
|
|
36
|
+
themeName: n = "anchor",
|
|
37
|
+
customTheme: e,
|
|
38
|
+
tokens: c,
|
|
39
|
+
nextLinkProps: h,
|
|
40
|
+
children: i,
|
|
41
|
+
childItems: m,
|
|
42
|
+
...o
|
|
43
|
+
} = a, u = E(null);
|
|
44
|
+
return t == null || l == null ? null : /* @__PURE__ */ N(
|
|
45
|
+
L,
|
|
46
|
+
{
|
|
47
|
+
...o,
|
|
48
|
+
themeName: `${n}`,
|
|
49
|
+
tokens: c,
|
|
50
|
+
customTheme: e,
|
|
51
|
+
nextLinkProps: {
|
|
52
|
+
scroll: !1,
|
|
53
|
+
href: t,
|
|
54
|
+
...h
|
|
55
|
+
},
|
|
56
|
+
ref: u,
|
|
57
|
+
key: `link-${r}`,
|
|
58
|
+
as: K,
|
|
59
|
+
target: s ?? "_self"
|
|
60
|
+
},
|
|
61
|
+
b.isValidElement(i) ? i : l
|
|
62
|
+
);
|
|
63
|
+
}, V = (a) => {
|
|
64
|
+
const { menuItems: r, children: s, themeName: t = "menuItem", tokens: l, customTheme: n } = a;
|
|
65
|
+
return /* @__PURE__ */ y(p, { themeName: `${t}.wrapper`, tokens: l, customTheme: n, children: [
|
|
66
|
+
/* @__PURE__ */ k(p, { themeName: `${t}.container`, tokens: l, customTheme: n, children: r == null ? void 0 : r.map((e) => {
|
|
67
|
+
var d;
|
|
68
|
+
const { id: c, path: h, label: i, ...m } = e ?? {}, o = { ...l, ...e.tokens };
|
|
69
|
+
if ((e == null ? void 0 : e.path) == null || e.id == null)
|
|
70
|
+
return null;
|
|
71
|
+
const u = (d = e.path) != null && d.startsWith("#") ? "button" : "a";
|
|
72
|
+
return /* @__PURE__ */ k(
|
|
73
|
+
p,
|
|
74
|
+
{
|
|
75
|
+
themeName: `${t}.innerContent`,
|
|
76
|
+
tokens: o,
|
|
77
|
+
customTheme: n,
|
|
78
|
+
children: u === "button" ? /* @__PURE__ */ k(
|
|
79
|
+
B,
|
|
80
|
+
{
|
|
81
|
+
...m,
|
|
82
|
+
...e,
|
|
83
|
+
themeName: `${t}.button`,
|
|
84
|
+
tokens: o,
|
|
85
|
+
customTheme: n
|
|
86
|
+
}
|
|
87
|
+
) : /* @__PURE__ */ k(
|
|
88
|
+
P,
|
|
89
|
+
{
|
|
90
|
+
...m,
|
|
91
|
+
...e,
|
|
92
|
+
themeName: `${t}.anchor`,
|
|
93
|
+
tokens: o,
|
|
94
|
+
customTheme: n
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
},
|
|
98
|
+
`li-${e.id}`
|
|
99
|
+
);
|
|
100
|
+
}) }),
|
|
101
|
+
s
|
|
102
|
+
] });
|
|
9
103
|
};
|
|
10
104
|
export {
|
|
11
|
-
|
|
105
|
+
V as default
|
|
12
106
|
};
|
package/index34.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react
|
|
2
|
+
"use strict";const r=require("react"),s=require("./index68.js"),a=require("./index124.js"),c=n=>{var t;const{tabState:e}=s.useMenu();return r.createElement(a,{...n,key:(t=e.selectedItem)==null?void 0:t.key,state:e})};module.exports=c;
|
package/index34.mjs
CHANGED
|
@@ -1,50 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import A from "./index35.mjs";
|
|
10
|
-
const I = (e) => {
|
|
11
|
-
const {
|
|
12
|
-
themeName: t = "alerts",
|
|
13
|
-
tokens: r,
|
|
14
|
-
customTheme: b,
|
|
15
|
-
defaultOpen: i = !0,
|
|
16
|
-
closeButton: m = B,
|
|
17
|
-
transitionComponent: l = d,
|
|
18
|
-
closeButtonAriaLabel: a,
|
|
19
|
-
isOpen: v,
|
|
20
|
-
onOpenChange: x,
|
|
21
|
-
setOpen: N,
|
|
22
|
-
children: p = A,
|
|
23
|
-
...u
|
|
24
|
-
} = e, o = h(null), s = O({ ...e, defaultOpen: i }), { triggerProps: f, overlayProps: c } = y({ ...e, type: "dialog" }, s, o);
|
|
25
|
-
return /* @__PURE__ */ g(
|
|
26
|
-
l,
|
|
27
|
-
{
|
|
28
|
-
...c,
|
|
29
|
-
role: "alert",
|
|
30
|
-
themeName: `${t}.wrapper`,
|
|
31
|
-
tokens: r,
|
|
32
|
-
isVisible: s.isOpen,
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ n(
|
|
35
|
-
m,
|
|
36
|
-
{
|
|
37
|
-
ref: o,
|
|
38
|
-
themeName: `${t}.closeBtn`,
|
|
39
|
-
"aria-label": a,
|
|
40
|
-
...f
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ n(C, { themeName: t, tokens: r, ...u, children: p })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
);
|
|
2
|
+
import { createElement as a } from "react";
|
|
3
|
+
import { useMenu as o } from "./index68.mjs";
|
|
4
|
+
import m from "./index124.mjs";
|
|
5
|
+
const f = (r) => {
|
|
6
|
+
var t;
|
|
7
|
+
const { tabState: e } = o();
|
|
8
|
+
return /* @__PURE__ */ a(m, { ...r, key: (t = e.selectedItem) == null ? void 0 : t.key, state: e });
|
|
47
9
|
};
|
|
48
10
|
export {
|
|
49
|
-
|
|
11
|
+
f as default
|
|
50
12
|
};
|
package/index35.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),g=require("react"),h=require("react-stately"),d=require("./index121.js"),O=require("./index11.js"),x=require("./index101.js"),y=require("./index125.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:$,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:A,setOpen:R,children:u=B,...m}=e,n=g.useRef(null),o=h.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:q}=x({...e,type:"dialog"},o,n);return r.jsxs(l,{...q,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(O,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
|
package/index35.mjs
CHANGED
|
@@ -1,22 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import { jsxs as g, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as h } from "react";
|
|
4
|
+
import { useOverlayTriggerState as O } from "react-stately";
|
|
5
|
+
import d from "./index121.mjs";
|
|
6
|
+
import C from "./index11.mjs";
|
|
7
|
+
import y from "./index101.mjs";
|
|
8
|
+
import B from "./index125.mjs";
|
|
9
|
+
import A from "./index36.mjs";
|
|
10
|
+
const I = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
themeName: t = "alerts",
|
|
13
|
+
tokens: r,
|
|
14
|
+
customTheme: b,
|
|
15
|
+
defaultOpen: i = !0,
|
|
16
|
+
closeButton: m = B,
|
|
17
|
+
transitionComponent: l = d,
|
|
18
|
+
closeButtonAriaLabel: a,
|
|
19
|
+
isOpen: v,
|
|
20
|
+
onOpenChange: x,
|
|
21
|
+
setOpen: N,
|
|
22
|
+
children: p = A,
|
|
23
|
+
...u
|
|
24
|
+
} = e, o = h(null), s = O({ ...e, defaultOpen: i }), { triggerProps: f, overlayProps: c } = y({ ...e, type: "dialog" }, s, o);
|
|
25
|
+
return /* @__PURE__ */ g(
|
|
26
|
+
l,
|
|
27
|
+
{
|
|
28
|
+
...c,
|
|
29
|
+
role: "alert",
|
|
30
|
+
themeName: `${t}.wrapper`,
|
|
31
|
+
tokens: r,
|
|
32
|
+
isVisible: s.isOpen,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ n(
|
|
35
|
+
m,
|
|
36
|
+
{
|
|
37
|
+
ref: o,
|
|
38
|
+
themeName: `${t}.closeBtn`,
|
|
39
|
+
"aria-label": a,
|
|
40
|
+
...f
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ n(C, { themeName: t, tokens: r, ...u, children: p })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
19
47
|
};
|
|
20
48
|
export {
|
|
21
|
-
|
|
49
|
+
I as default
|
|
22
50
|
};
|
package/index36.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),h=require("./index72.js"),u=require("./index25.js"),q=require("./index6.js"),N=require("./index14.js"),f=l=>{var m;const{title:r,button:c,content:e,themeName:i="alerts.item",tokens:s,icon:a,id:d}=l,{controller:t}=h.useSwiperController(),x=((m=t==null?void 0:t.slides)==null?void 0:m.findIndex($=>$.id===d))===(t==null?void 0:t.activeIndex);return!r&&!c&&!e&&!a?null:n.jsxs(n.Fragment,{children:[a&&n.jsx(N,{icon:a,themeName:`${i}.icon`,tokens:s}),(r||c||e)&&n.jsxs(u.default,{themeName:`${i}.container`,tokens:s,children:[r&&n.jsx(u.default,{as:"span",themeName:`${i}.title`,tokens:s,id:d,children:r}),c&&n.jsx(q.default,{tabIndex:x?0:-1,themeName:`${i}.button`,tokens:s,...c}),e&&(o.isValidElement(e)?o.cloneElement(e,{...e.props,themeName:`${i}.content`,tokens:s}):e)]})]})};module.exports=f;
|
package/index36.mjs
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { useSwiperController as N } from "./index72.mjs";
|
|
5
|
+
import p from "./index25.mjs";
|
|
6
|
+
import I from "./index6.mjs";
|
|
7
|
+
import $ from "./index14.mjs";
|
|
8
|
+
const _ = (f) => {
|
|
9
|
+
var c;
|
|
10
|
+
const { title: i, button: o, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
|
|
11
|
+
return !i && !o && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
|
|
12
|
+
r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
|
|
13
|
+
(i || o || e) && /* @__PURE__ */ d(p, { themeName: `${n}.container`, tokens: m, children: [
|
|
14
|
+
i && /* @__PURE__ */ s(p, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: i }),
|
|
15
|
+
o && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...o }),
|
|
16
|
+
e && (l.isValidElement(e) ? l.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
|
|
17
|
+
] })
|
|
18
|
+
] });
|
|
6
19
|
};
|
|
7
20
|
export {
|
|
8
|
-
|
|
21
|
+
_ as default
|
|
9
22
|
};
|
package/index37.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),s=require("react-stately"),n=e=>{const{key:t,value:r}=e;return c.jsx(s.Item,{children:r},t)};module.exports=n;
|
package/index37.mjs
CHANGED
|
@@ -1,49 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
fit: u,
|
|
7
|
-
customTheme: P,
|
|
8
|
-
thumbhash: r,
|
|
9
|
-
description: h,
|
|
10
|
-
width: o,
|
|
11
|
-
height: e,
|
|
12
|
-
id: i,
|
|
13
|
-
filenameDownload: n,
|
|
14
|
-
imgDomain: a = I,
|
|
15
|
-
protocol: d = "https",
|
|
16
|
-
focalPointX: s,
|
|
17
|
-
focalPointY: c,
|
|
18
|
-
...g
|
|
19
|
-
} = m;
|
|
20
|
-
if (!i || !n) return null;
|
|
21
|
-
if (!a)
|
|
22
|
-
return console.warn("No image domain was provided"), null;
|
|
23
|
-
const l = (() => {
|
|
24
|
-
try {
|
|
25
|
-
const t = new URL(`/assets/${i}/${n}`, `${d}://${a}`);
|
|
26
|
-
return t.searchParams.set("fit", u ?? "contain"), t;
|
|
27
|
-
} catch (t) {
|
|
28
|
-
return console.warn(t), null;
|
|
29
|
-
}
|
|
30
|
-
})();
|
|
31
|
-
return l == null ? null : /* @__PURE__ */ f(
|
|
32
|
-
p,
|
|
33
|
-
{
|
|
34
|
-
style: !!s && !!c && !!o && !!e ? {
|
|
35
|
-
objectFit: "cover",
|
|
36
|
-
objectPosition: `${s / o * 100}% ${c / e * 100}%`
|
|
37
|
-
} : void 0,
|
|
38
|
-
alt: h ?? "",
|
|
39
|
-
...r ? { blurDataURL: D(r), placeholder: "blur" } : {},
|
|
40
|
-
src: l.href,
|
|
41
|
-
...g,
|
|
42
|
-
width: o ?? void 0,
|
|
43
|
-
height: e ?? void 0
|
|
44
|
-
}
|
|
45
|
-
);
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Item as m } from "react-stately";
|
|
3
|
+
const n = (e) => {
|
|
4
|
+
const { key: t, value: r } = e;
|
|
5
|
+
return /* @__PURE__ */ o(m, { children: r }, t);
|
|
46
6
|
};
|
|
47
7
|
export {
|
|
48
|
-
|
|
8
|
+
n as default
|
|
49
9
|
};
|
package/index38.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const D=require("react/jsx-runtime"),$=require("./index39.js"),I=require("./index126.js"),b=process.env.NEXT_PUBLIC_IMG_DOMAIN,p=l=>{const{fit:h,customTheme:v,thumbhash:o,description:m,width:e,height:r,id:n,filenameDownload:i,imgDomain:s=b,protocol:d="https",focalPointX:c,focalPointY:a,...g}=l;if(!n||!i)return null;if(!s)return console.warn("No image domain was provided"),null;const u=(()=>{try{const t=new URL(`/assets/${n}/${i}`,`${d}://${s}`);return t.searchParams.set("fit",h??"contain"),t}catch(t){return console.warn(t),null}})();if(u==null)return null;const f=!!c&&!!a&&!!e&&!!r;return D.jsx($,{style:f?{objectFit:"cover",objectPosition:`${c/e*100}% ${a/r*100}%`}:void 0,alt:m??"",...o?{blurDataURL:I.createPngDataUri(o),placeholder:"blur"}:{},src:u.href,...g,width:e??void 0,height:r??void 0})};module.exports=p;
|
package/index38.mjs
CHANGED
|
@@ -1,26 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const j = (m) => {
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import p from "./index39.mjs";
|
|
3
|
+
import { createPngDataUri as D } from "./index126.mjs";
|
|
4
|
+
const I = process.env.NEXT_PUBLIC_IMG_DOMAIN, j = (m) => {
|
|
5
|
+
const {
|
|
6
|
+
fit: u,
|
|
7
|
+
customTheme: P,
|
|
8
|
+
thumbhash: r,
|
|
9
|
+
description: h,
|
|
10
|
+
width: o,
|
|
11
|
+
height: e,
|
|
12
|
+
id: i,
|
|
13
|
+
filenameDownload: n,
|
|
14
|
+
imgDomain: a = I,
|
|
15
|
+
protocol: d = "https",
|
|
16
|
+
focalPointX: s,
|
|
17
|
+
focalPointY: c,
|
|
18
|
+
...g
|
|
19
|
+
} = m;
|
|
20
|
+
if (!i || !n) return null;
|
|
21
|
+
if (!a)
|
|
22
|
+
return console.warn("No image domain was provided"), null;
|
|
23
|
+
const l = (() => {
|
|
24
|
+
try {
|
|
25
|
+
const t = new URL(`/assets/${i}/${n}`, `${d}://${a}`);
|
|
26
|
+
return t.searchParams.set("fit", u ?? "contain"), t;
|
|
27
|
+
} catch (t) {
|
|
28
|
+
return console.warn(t), null;
|
|
29
|
+
}
|
|
30
|
+
})();
|
|
31
|
+
return l == null ? null : /* @__PURE__ */ f(
|
|
32
|
+
p,
|
|
33
|
+
{
|
|
34
|
+
style: !!s && !!c && !!o && !!e ? {
|
|
35
|
+
objectFit: "cover",
|
|
36
|
+
objectPosition: `${s / o * 100}% ${c / e * 100}%`
|
|
37
|
+
} : void 0,
|
|
38
|
+
alt: h ?? "",
|
|
39
|
+
...r ? { blurDataURL: D(r), placeholder: "blur" } : {},
|
|
40
|
+
src: l.href,
|
|
41
|
+
...g,
|
|
42
|
+
width: o ?? void 0,
|
|
43
|
+
height: e ?? void 0
|
|
44
|
+
}
|
|
45
|
+
);
|
|
24
46
|
};
|
|
25
47
|
export {
|
|
26
48
|
j as default
|
package/index39.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const h=require("react/jsx-runtime"),o=require("next/image"),q=require("./index65.js"),j=c=>{const{src:t,width:e,height:s,themeName:u="img",tokens:n,customTheme:m,...r}=c,i=q(u,n,m);if(typeof t=="object"){const{blurWidth:g,blurHeight:l,width:a,height:b,...d}=t,w={blurwidth:g,blurheight:l};return h.jsx(o,{className:i,...d,...r,...w,width:a??e,height:b??s})}return h.jsx(o,{width:e,height:s,className:i,src:t,...r})};module.exports=j;
|
package/index39.mjs
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import o from "next/image";
|
|
4
|
+
import f from "./index65.mjs";
|
|
5
|
+
const j = (m) => {
|
|
6
|
+
const { src: t, width: e, height: r, themeName: u = "img", tokens: c, customTheme: n, ...h } = m, i = f(u, c, n);
|
|
7
|
+
if (typeof t == "object") {
|
|
8
|
+
const { blurWidth: l, blurHeight: g, width: a, height: b, ...d } = t;
|
|
9
|
+
return /* @__PURE__ */ s(
|
|
10
|
+
o,
|
|
11
|
+
{
|
|
12
|
+
className: i,
|
|
13
|
+
...d,
|
|
14
|
+
...h,
|
|
15
|
+
...{
|
|
16
|
+
blurwidth: l,
|
|
17
|
+
blurheight: g
|
|
18
|
+
},
|
|
19
|
+
width: a ?? e,
|
|
20
|
+
height: b ?? r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
return /* @__PURE__ */ s(o, { width: e, height: r, className: i, src: t, ...h });
|
|
25
|
+
};
|
|
5
26
|
export {
|
|
6
|
-
|
|
27
|
+
j as default
|
|
7
28
|
};
|
package/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const o=require("react/jsx-runtime"),a=require("./
|
|
2
|
+
"use strict";const o=require("react/jsx-runtime"),a=require("./index98.js"),m=require("react"),q=require("./index70.js"),x=require("./index25.js"),A=require("./index99.js"),h=require("./index78.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),r=h(e),{accordionProps:d}=a.useAccordion(e,r,t);return o.jsx(q.AccordionContextProvider,{state:r,TransitionAnimation:u,children:o.jsx(x.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...r.collection].map(i=>o.jsx(A,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
|
package/index4.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useAccordion as f } from "./
|
|
3
|
+
import { useAccordion as f } from "./index98.mjs";
|
|
4
4
|
import { useRef as s } from "react";
|
|
5
|
-
import { AccordionContextProvider as p } from "./
|
|
6
|
-
import { BoxWithForwardRef as u } from "./
|
|
7
|
-
import l from "./
|
|
8
|
-
import A from "./
|
|
5
|
+
import { AccordionContextProvider as p } from "./index70.mjs";
|
|
6
|
+
import { BoxWithForwardRef as u } from "./index25.mjs";
|
|
7
|
+
import l from "./index99.mjs";
|
|
8
|
+
import A from "./index78.mjs";
|
|
9
9
|
const N = (o) => {
|
|
10
10
|
const { themeName: t = "accordion", tokens: c, customTheme: m, TransitionAnimation: a } = o, n = s(null), r = A(o), { accordionProps: d } = f(o, r, n);
|
|
11
11
|
return /* @__PURE__ */ e(p, { state: r, TransitionAnimation: a, children: /* @__PURE__ */ e(
|