@okam/stack-ui 1.44.4 → 1.44.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.
- package/CHANGELOG.md +15 -0
- package/components/Accordion/components/AccordionItem.d.ts +2 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +2 -2
- package/components/Alerts/interface.d.ts +3 -3
- package/components/Box/index.d.ts +2 -2
- package/components/Box/interface.d.ts +2 -2
- package/components/Button/index.d.ts +3 -3
- package/components/Button/interface.d.ts +2 -3
- package/components/Carousel/index.d.ts +2 -2
- package/components/Carousel/navigation/LegacyCarouselNavigationButton.d.ts +2 -2
- package/components/Icon/interface.d.ts +3 -4
- package/components/Lightbox/interface.d.ts +3 -4
- package/components/Menu/interface.d.ts +10 -10
- package/components/Modal/interface.d.ts +3 -4
- package/components/Node/index.d.ts +2 -2
- package/components/PrintButton/interface.d.ts +2 -2
- package/components/ShareButton/interface.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +3 -4
- package/components/TabList/components/TabItem.d.ts +2 -2
- package/components/TabList/interface.d.ts +2 -3
- package/components/TagGroup/components/TagItem.d.ts +2 -2
- package/components/Typography/index.d.ts +2 -2
- package/components/Typography/interface.d.ts +2 -2
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -2
- package/components/fields/CheckboxGroup/interface.d.ts +2 -2
- package/components/fields/ComboBox/hooks/useComboBoxFiltering.d.ts +4 -4
- package/components/fields/DatePicker/interface.d.ts +1 -2
- package/components/fields/Radio/Radio.interface.d.ts +2 -2
- package/components/fields/RadioGroup/interface.d.ts +2 -2
- package/components/fields/SearchField/interface.d.ts +3 -3
- package/components/fields/Select/Select.interface.d.ts +2 -3
- package/components/fields/Select/components/Listbox.interface.d.ts +2 -2
- package/components/fields/Select/components/Popover.interface.d.ts +4 -4
- package/components/icons/ArrowDown.d.ts +3 -3
- package/components/icons/ArrowLeft.d.ts +3 -3
- package/components/icons/ArrowRight.d.ts +3 -3
- package/components/icons/Check.d.ts +3 -3
- package/components/icons/ChevronLeft.d.ts +3 -3
- package/components/icons/ChevronRight.d.ts +3 -3
- package/components/icons/CloseBtn.d.ts +3 -3
- package/components/icons/ErrorIcon.d.ts +3 -3
- package/components/icons/Facebook.d.ts +3 -3
- package/components/icons/FacebookColored.d.ts +3 -3
- package/components/icons/FacebookRounded.d.ts +3 -3
- package/components/icons/Globe.d.ts +3 -3
- package/components/icons/IconFallback.d.ts +3 -3
- package/components/icons/Instagram.d.ts +3 -3
- package/components/icons/InstagramColored.d.ts +3 -3
- package/components/icons/Link.d.ts +3 -3
- package/components/icons/LinkedIn.d.ts +3 -3
- package/components/icons/Mail.d.ts +3 -3
- package/components/icons/Plus.d.ts +3 -3
- package/components/icons/Print.d.ts +3 -3
- package/components/icons/Search.d.ts +3 -3
- package/components/icons/Share.d.ts +3 -3
- package/components/icons/Twitter.d.ts +3 -3
- package/components/icons/TwitterColored.d.ts +3 -3
- package/components/icons/Upload.d.ts +3 -3
- package/components/icons/X.d.ts +3 -3
- package/components/icons/YouTube.d.ts +3 -3
- package/components/icons/YouTubeColored.d.ts +3 -3
- package/index.js +1 -1
- package/index.mjs +12 -12
- package/index10.js +1 -1
- package/index100.js +1 -1
- package/index102.js +1 -1
- package/index103.js +1 -1
- package/index104.js +1 -1
- package/index107.js +1 -1
- package/index108.js +1 -1
- package/index109.js +1 -1
- package/index111.js +1 -1
- package/index116.js +1 -1
- package/index117.js +1 -1
- package/index119.js +1 -1
- package/index123.js +1 -1
- package/index123.mjs +11 -11
- package/index126.mjs +3 -3
- package/index129.js +1 -1
- package/index129.mjs +1 -1
- package/index13.js +1 -1
- package/index131.js +1 -1
- package/index131.mjs +10 -10
- package/index132.js +1 -1
- package/index132.mjs +8 -8
- package/index141.js +1 -1
- package/index141.mjs +6 -6
- package/index171.js +1 -1
- package/index20.js +1 -1
- package/index20.mjs +6 -6
- package/index29.js +1 -1
- package/index3.js +1 -1
- package/index3.mjs +8 -8
- package/index33.js +1 -1
- package/index33.mjs +6 -7
- package/index34.js +1 -1
- package/index35.js +1 -1
- package/index35.mjs +10 -10
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +1 -1
- package/index40.js +1 -1
- package/index43.js +1 -1
- package/index43.mjs +25 -26
- package/index44.js +1 -1
- package/index48.js +1 -1
- package/index48.mjs +4 -5
- package/index49.js +1 -1
- package/index49.mjs +8 -8
- package/index5.js +1 -1
- package/index50.js +1 -1
- package/index50.mjs +9 -10
- package/index53.js +1 -1
- package/index53.mjs +24 -21
- package/index56.js +1 -1
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +6 -6
- package/index6.js +1 -1
- package/index6.mjs +15 -15
- package/index67.js +1 -1
- package/index67.mjs +14 -14
- package/index68.js +1 -1
- package/index69.js +1 -1
- package/index70.js +1 -1
- package/index70.mjs +11 -11
- package/index73.js +1 -1
- package/index73.mjs +11 -11
- package/index82.js +1 -1
- package/index83.js +1 -1
- package/index85.mjs +3 -3
- package/index86.js +1 -1
- package/index87.js +1 -1
- package/index87.mjs +16 -17
- package/index9.js +1 -1
- package/index91.js +1 -1
- package/index91.mjs +18 -18
- package/index98.js +1 -1
- package/index99.js +1 -1
- package/package.json +2 -2
- package/providers/CheckboxGroup/interface.d.ts +2 -2
- package/providers/Client/interface.d.ts +2 -2
- package/providers/Menu/interface.d.ts +11 -11
- package/providers/SidePanel/interface.d.ts +5 -6
- package/providers/Theme/index.d.ts +3 -3
- package/providers/Theme/interface.d.ts +2 -2
- package/providers/UserSearchQuery/interface.d.ts +2 -3
- package/storybook/Menu/Menu.d.ts +6 -7
- package/theme/index.d.ts +2 -3
- package/types/components.d.ts +4 -5
package/index49.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime")
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),$=require("react-aria"),q=require("react-stately"),b=require("./index79.js"),p=require("./index7.js"),a=require("./index8.js"),C=require("./index48.js"),N=require("./index54.js"),y=require("./index74.js");function f(n){const{themeName:o,tokens:s,children:i,...t}=n;return e.jsx(a.Button,{themeName:o,tokens:s,...t,children:e.jsx(C,{icon:"CloseBtn"})})}function w(n){const{children:o,thumbnailContent:s,label:i,themeName:t="lightBox",tokens:r,closeButton:l=f,closeButtonAriaLabel:u,transitionComponent:h,showTriggerButton:x=!0,showCloseButton:m=!0}=n,c=q.useOverlayTriggerState(n),{openTriggerProps:g,triggerProps:d,overlayProps:B,labelProps:j}=b({...n,type:"dialog"},c);return e.jsxs(e.Fragment,{children:[x&&e.jsx($.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs(a.Button,{themeName:`${t}.wrapper`,tokens:r,...g,children:[i&&e.jsx(y.Typography,{themeName:`${t}.label`,tokens:r,...j,children:i}),s]})}),e.jsxs(N,{themeName:`${t}.modal`,tokens:r,state:c,...B,transitionComponent:h,children:[m&&e.jsx(l,{themeName:`${t}.closeBtn`,tokens:r,"aria-label":u,...d}),e.jsx(p.Box,{themeName:`${t}.container`,tokens:r,children:o})]})]})}module.exports=w;
|
package/index49.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as a, Fragment as C, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { FocusRing as x } from "react-aria";
|
|
4
4
|
import { useOverlayTriggerState as N } from "react-stately";
|
|
5
5
|
import y from "./index79.mjs";
|
|
6
6
|
import { Box as $ } from "./index7.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { Button as s } from "./index8.mjs";
|
|
8
8
|
import w from "./index48.mjs";
|
|
9
9
|
import L from "./index54.mjs";
|
|
10
10
|
import { Typography as P } from "./index74.mjs";
|
|
@@ -24,21 +24,21 @@ function M(o) {
|
|
|
24
24
|
transitionComponent: u,
|
|
25
25
|
showTriggerButton: p = !0,
|
|
26
26
|
showCloseButton: g = !0
|
|
27
|
-
} = o,
|
|
27
|
+
} = o, l = N(o), { openTriggerProps: f, triggerProps: d, overlayProps: B, labelProps: b } = y(
|
|
28
28
|
{ ...o, type: "dialog" },
|
|
29
|
-
|
|
29
|
+
l
|
|
30
30
|
);
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
p && /* @__PURE__ */ t(x, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ a(C, { children: [
|
|
32
|
+
p && /* @__PURE__ */ t(x, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ a(s, { themeName: `${e}.wrapper`, tokens: r, ...f, children: [
|
|
33
33
|
m && /* @__PURE__ */ t(P, { themeName: `${e}.label`, tokens: r, ...b, children: m }),
|
|
34
34
|
i
|
|
35
35
|
] }) }),
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ a(
|
|
37
37
|
L,
|
|
38
38
|
{
|
|
39
39
|
themeName: `${e}.modal`,
|
|
40
40
|
tokens: r,
|
|
41
|
-
state:
|
|
41
|
+
state: l,
|
|
42
42
|
...B,
|
|
43
43
|
transitionComponent: u,
|
|
44
44
|
children: [
|
package/index5.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),O=require("./index79.js"),d=require("./index120.js"),x=require("./index13.js"),y=require("./index121.js"),C=require("./index6.js");function f(e){const{themeName:t="alerts",tokens:s,customTheme:B,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),O=require("./index79.js"),d=require("./index120.js"),x=require("./index13.js"),y=require("./index121.js"),C=require("./index6.js");function f(e){const{themeName:t="alerts",tokens:s,customTheme:B,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:j,onOpenChange:A,setOpen:R,children:u=C,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,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(x,{themeName:t,tokens:s,...m,children:u})]})}module.exports=f;
|
package/index50.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const l=require("react/jsx-runtime"),p=require("react"),y=require("./index84.js"),$=require("./index7.js"),L=require("./index8.js");function g(c){const{tabState:s,defaultSelectedKey:i}=y.useMenu(),{setSelectedKey:e}=s,{id:a,path:n,label:u,themeName:h="button",tokens:t,customTheme:m,target:f,children:x,childItems:d,as:o,ariaLabel:r,"aria-label":b,...N}=c,k=n?.substring(1),j=p.useCallback(()=>{if(k!=null){if(s.selectedKey===k){e(i);return}e(k)}},[k,s.selectedKey,e,i]);return l.jsx(L.Button,{...N,themeName:`${h}`,tokens:t,customTheme:m,handlePress:j,as:o,"aria-label":b??r,children:p.isValidElement(x)?x:u},`button-${a}`)}function q(c){const{id:s,target:i,path:e,label:a,themeName:n="anchor",customTheme:u,tokens:h,nextLinkProps:t,children:m,as:f,childItems:x,ariaLabel:d,"aria-label":o,...r}=c,b=p.useRef(null);return e==null||a==null?null:l.jsx(L.Anchor,{...r,themeName:`${n}`,tokens:h,customTheme:u,nextLinkProps:{href:e,...t},ref:b,target:i??"_self",as:f,"aria-label":o??d,children:p.isValidElement(m)?m:a},`link-${s}`)}function B(c){const{menuItems:s,children:i,themeName:e="menuItem",tokens:a,customTheme:n,menuLinkComponent:u,buttonLinkComponent:h}=c;return l.jsxs($.Box,{themeName:`${e}.wrapper`,tokens:a,customTheme:n,children:[l.jsx($.Box,{themeName:`${e}.container`,tokens:a,customTheme:n,children:s?.map(t=>{const{id:m,path:f,label:x,as:d,...o}=t??{},r={...a,...t.tokens};if(t?.path==null||t.id==null)return null;const b=t.path?.startsWith("#")?"button":"a";return l.jsx($.Box,{themeName:`${e}.innerContent`,tokens:r,customTheme:n,children:b==="button"?l.jsx(g,{...o,...t,themeName:`${e}.button`,tokens:r,customTheme:n,as:d??h}):l.jsx(q,{...o,...t,themeName:`${e}.anchor`,tokens:r,customTheme:n,as:d??u})},`li-${t.id}`)})}),i]})}module.exports=B;
|
package/index50.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import { useCallback as x, useRef as C } from "react";
|
|
3
|
+
import { useCallback as x, isValidElement as N, useRef as C } from "react";
|
|
5
4
|
import { useMenu as K } from "./index84.mjs";
|
|
6
5
|
import { Box as L } from "./index7.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { Button as T, Anchor as B } from "./index8.mjs";
|
|
8
7
|
function A(m) {
|
|
9
8
|
const { tabState: l, defaultSelectedKey: o } = K(), { setSelectedKey: e } = l, {
|
|
10
9
|
id: a,
|
|
@@ -39,12 +38,12 @@ function A(m) {
|
|
|
39
38
|
handlePress: y,
|
|
40
39
|
as: s,
|
|
41
40
|
"aria-label": b ?? r,
|
|
42
|
-
children: N
|
|
41
|
+
children: N(p) ? p : c
|
|
43
42
|
},
|
|
44
43
|
`button-${a}`
|
|
45
44
|
);
|
|
46
45
|
}
|
|
47
|
-
function
|
|
46
|
+
function E(m) {
|
|
48
47
|
const {
|
|
49
48
|
id: l,
|
|
50
49
|
target: o,
|
|
@@ -62,7 +61,7 @@ function B(m) {
|
|
|
62
61
|
...r
|
|
63
62
|
} = m, b = C(null);
|
|
64
63
|
return e == null || a == null ? null : /* @__PURE__ */ i(
|
|
65
|
-
|
|
64
|
+
B,
|
|
66
65
|
{
|
|
67
66
|
...r,
|
|
68
67
|
themeName: `${n}`,
|
|
@@ -76,12 +75,12 @@ function B(m) {
|
|
|
76
75
|
target: o ?? "_self",
|
|
77
76
|
as: k,
|
|
78
77
|
"aria-label": s ?? d,
|
|
79
|
-
children: N
|
|
78
|
+
children: N(h) ? h : a
|
|
80
79
|
},
|
|
81
80
|
`link-${l}`
|
|
82
81
|
);
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function R(m) {
|
|
85
84
|
const {
|
|
86
85
|
menuItems: l,
|
|
87
86
|
children: o,
|
|
@@ -114,7 +113,7 @@ function V(m) {
|
|
|
114
113
|
as: d ?? u
|
|
115
114
|
}
|
|
116
115
|
) : /* @__PURE__ */ i(
|
|
117
|
-
|
|
116
|
+
E,
|
|
118
117
|
{
|
|
119
118
|
...s,
|
|
120
119
|
...t,
|
|
@@ -132,5 +131,5 @@ function V(m) {
|
|
|
132
131
|
] });
|
|
133
132
|
}
|
|
134
133
|
export {
|
|
135
|
-
|
|
134
|
+
R as default
|
|
136
135
|
};
|
package/index53.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const o=require("react/jsx-runtime"),e=require("react"),q=require("./index84.js"),C=require("./index66.js"),b=require("./index136.js");function j(l){const{id:n="main-menu",children:d,TransitionAnimation:m,PanelTransition:f,themeName:t,tokens:r,customTheme:s,...h}=l,{closeBtn:x,tabState:c,defaultSelectedKey:i}=q.useMenu(),u=e.useRef(c),a=e.useRef(i);u.current=c,a.current=i;const R=e.useCallback(S=>{S||u.current?.setSelectedKey(a.current)},[]);return o.jsx(C,{themeName:`${t}.sidePanel`,tokens:r,customTheme:s,closeBtnRender:x,id:n,TransitionAnimation:m,PanelTransition:f,onOpenChange:R,children:o.jsx(b,{id:n,themeName:t,tokens:r,customTheme:s,...h,children:d})})}module.exports=j;
|
package/index53.mjs
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as s, useCallback as P } from "react";
|
|
4
|
+
import { useMenu as R } from "./index84.mjs";
|
|
5
|
+
import b from "./index66.mjs";
|
|
6
|
+
import y from "./index136.mjs";
|
|
7
|
+
function B(l) {
|
|
7
8
|
const {
|
|
8
9
|
id: e = "main-menu",
|
|
9
|
-
children:
|
|
10
|
-
TransitionAnimation:
|
|
11
|
-
PanelTransition:
|
|
10
|
+
children: u,
|
|
11
|
+
TransitionAnimation: d,
|
|
12
|
+
PanelTransition: f,
|
|
12
13
|
themeName: n,
|
|
13
14
|
tokens: t,
|
|
14
|
-
customTheme:
|
|
15
|
-
...
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
customTheme: r,
|
|
16
|
+
...h
|
|
17
|
+
} = l, { closeBtn: p, tabState: o, defaultSelectedKey: a } = R(), i = s(o), c = s(a);
|
|
18
|
+
i.current = o, c.current = a;
|
|
19
|
+
const S = P((C) => {
|
|
20
|
+
C || i.current?.setSelectedKey(c.current);
|
|
21
|
+
}, []);
|
|
22
|
+
return /* @__PURE__ */ m(
|
|
23
|
+
b,
|
|
19
24
|
{
|
|
20
25
|
themeName: `${n}.sidePanel`,
|
|
21
26
|
tokens: t,
|
|
22
|
-
customTheme:
|
|
23
|
-
closeBtnRender:
|
|
27
|
+
customTheme: r,
|
|
28
|
+
closeBtnRender: p,
|
|
24
29
|
id: e,
|
|
25
|
-
TransitionAnimation:
|
|
26
|
-
PanelTransition:
|
|
27
|
-
onOpenChange:
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
children: /* @__PURE__ */ i(S, { id: e, themeName: n, tokens: t, customTheme: o, ...l, children: m })
|
|
30
|
+
TransitionAnimation: d,
|
|
31
|
+
PanelTransition: f,
|
|
32
|
+
onOpenChange: S,
|
|
33
|
+
children: /* @__PURE__ */ m(y, { id: e, themeName: n, tokens: t, customTheme: r, ...h, children: u })
|
|
31
34
|
}
|
|
32
35
|
);
|
|
33
36
|
}
|
package/index56.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("react-aria"),a=require("./index7.js");function D(c){const{children:l,themeName:
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("react-aria"),a=require("./index7.js");function D(c){const{children:l,themeName:r="popover",tokens:m,customTheme:f,placement:h="bottom",offset:d=5,state:s,arrow:i,sizeRef:R,popoverRef:v,triggerRef:x,contain:P=!0,autoFocus:g=!0,restoreFocus:j=!0}=c,y=R??x,{isOpen:k}=s,w=n.useRef(null),p=v??w,{popoverProps:u,underlayProps:F,arrowProps:$,placement:b}=o.usePopover({...c,placement:h,offset:d,popoverRef:p},s),t={placement:b??"bottom",isOpen:k,...m},q={[`--${r?.replace(".","-")}-container-width`]:`${y?.current?.offsetWidth}px`,...u.style};return e.jsxs(o.Overlay,{children:[e.jsx(a.Box,{themeName:`${r}.underlay`,tokens:t,...F}),e.jsx(o.FocusScope,{autoFocus:g,restoreFocus:j,contain:P,children:e.jsxs(a.BoxWithForwardRef,{themeName:`${r}.popover`,customTheme:f,tokens:t,ref:p,...u,style:q,children:[i!=null&&n.cloneElement(i,{...$,themeName:`${r}.arrow`,tokens:t}),e.jsx(o.DismissButton,{onDismiss:s.close}),n.Children.map(l,B=>e.jsx(o.FocusRing,{focusRingClass:"has-focus-ring",children:B})),e.jsx(o.DismissButton,{onDismiss:s.close})]})})]})}exports.Popover=D;
|
package/index58.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),u=require("./index8.js"),a=require("./index48.js");function d(t){const{ariaLabel:i,icon:o,customTheme:m,themeName:e="printButton",tokens:r,...s}=t,c=()=>{typeof window<"u"&&typeof window.print=="function"&&window.print()};return n.jsx(u.
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),u=require("./index8.js"),a=require("./index48.js");function d(t){const{ariaLabel:i,icon:o,customTheme:m,themeName:e="printButton",tokens:r,...s}=t,c=()=>{typeof window<"u"&&typeof window.print=="function"&&window.print()};return n.jsx(u.Button,{themeName:`${e}.button`,tokens:r,"aria-label":i,handlePress:c,...s,children:n.jsx(a,{themeName:`${e}.icon`,icon:o??"Print"})})}module.exports=d;
|
package/index58.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { Button as c } from "./index8.mjs";
|
|
4
4
|
import p from "./index48.mjs";
|
|
5
|
-
function h(
|
|
6
|
-
const { ariaLabel:
|
|
5
|
+
function h(o) {
|
|
6
|
+
const { ariaLabel: e, icon: i, customTheme: s, themeName: t = "printButton", tokens: r, ...a } = o, m = () => {
|
|
7
7
|
typeof window < "u" && typeof window.print == "function" && window.print();
|
|
8
8
|
};
|
|
9
9
|
return /* @__PURE__ */ n(
|
|
@@ -11,9 +11,9 @@ function h(e) {
|
|
|
11
11
|
{
|
|
12
12
|
themeName: `${t}.button`,
|
|
13
13
|
tokens: r,
|
|
14
|
-
"aria-label":
|
|
15
|
-
handlePress:
|
|
16
|
-
...
|
|
14
|
+
"aria-label": e,
|
|
15
|
+
handlePress: m,
|
|
16
|
+
...a,
|
|
17
17
|
children: /* @__PURE__ */ n(p, { themeName: `${t}.icon`, icon: i ?? "Print" })
|
|
18
18
|
}
|
|
19
19
|
);
|
package/index59.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),N=require("react"),v=require("react-aria"),b=require("./index88.js"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),N=require("react"),v=require("react-aria"),b=require("./index88.js"),j=require("./index8.js"),C=require("./index48.js");function L(h){const{sharingLinksList:p,id:d,isOpen:l,setIsOpen:m,onShare:k,themeName:a="shareButton",tokens:o,customTheme:c}=h,w=b(`${a}.linksList`,{...o,isOpen:l},c),t=v.useFocusManager(),f=n=>{n.key==="Escape"&&m(!1);const{listDirection:u}=o??{};u==="row"&&(n.key==="ArrowRight"&&(t?.focusNext({wrap:!0}),n.preventDefault()),n.key==="ArrowLeft"&&(t?.focusPrevious({wrap:!0}),n.preventDefault())),u==="column"&&(n.key==="ArrowDown"&&(t?.focusNext({wrap:!0}),n.preventDefault()),n.key==="ArrowUp"&&(t?.focusPrevious({wrap:!0}),n.preventDefault()))};return s.jsx("div",{className:w,id:d,role:"listbox",tabIndex:-1,onKeyDown:f,children:p?.map(n=>{const{ariaLabel:u,onClick:x,href:e,icon:r,key:i}=n;return s.jsx(j.Button,{themeName:`${a}.link`,tokens:{...o,isOpen:l},handlePress:()=>{k?.(i),x?.(i)},"aria-label":u,...e!=null&&e!==""?{href:e,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:s.jsx(C,{themeName:`${a}.linkIcons`,icon:r})},i)})})}function S(h){const{ariaLabel:p,icon:d,id:l,sharingLinksList:m,onShare:k,customTheme:a,themeName:o="shareButton",tokens:c,...w}=h,[t,f]=N.useState(!1),n=b(`${o}.container`,c,a),u=e=>{f(!t),!t&&setTimeout(()=>{e.target.parentElement?.lastChild?.firstChild?.focus()})},x=e=>{const r=e.currentTarget.firstChild,i=e.currentTarget.lastChild,y=i.firstChild,g=i.lastChild,{listDirection:D}=c??{};D==="row"&&(e.key==="ArrowRight"&&e.target===r&&(y?.focus(),e.preventDefault()),e.key==="ArrowLeft"&&e.target===r&&(g.focus(),e.preventDefault())),D==="column"&&(e.key==="ArrowDown"&&e.target===r&&(y?.focus(),e.preventDefault()),e.key==="ArrowUp"&&e.target===r&&(g.focus(),e.preventDefault())),e.key==="Escape"&&(f(!1),r?.focus()),document.activeElement===i&&r?.focus()};return s.jsx(v.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:t,children:s.jsxs("div",{className:n,onKeyDown:x,children:[s.jsx(j.ButtonWithForwardRef,{themeName:`${o}.button`,tokens:{...c,isOpen:t},"aria-label":p,"aria-haspopup":"listbox","aria-expanded":t,...t&&{"aria-controls":l},handlePress:u,...w,children:s.jsx(C,{themeName:`${o}.icon`,icon:d??"Share"})}),t&&s.jsx(L,{id:l,sharingLinksList:m,onShare:k,isOpen:t,setIsOpen:f,themeName:o,customTheme:a,tokens:c})]})})}exports.IconsContainer=L;exports.ShareButton=S;
|
package/index59.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import { jsx as i, jsxs as L } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as N } from "react";
|
|
4
4
|
import { FocusScope as b, useFocusManager as A } from "react-aria";
|
|
5
5
|
import x from "./index88.mjs";
|
|
6
|
-
import { ButtonWithForwardRef as
|
|
6
|
+
import { ButtonWithForwardRef as B, Button as O } from "./index8.mjs";
|
|
7
7
|
import C from "./index48.mjs";
|
|
8
|
-
function
|
|
8
|
+
function T(h) {
|
|
9
9
|
const { sharingLinksList: p, id: m, isOpen: u, setIsOpen: d, onShare: k, themeName: a = "shareButton", tokens: r, customTheme: c } = h, w = x(`${a}.linksList`, { ...r, isOpen: u }, c), t = A();
|
|
10
10
|
return /* @__PURE__ */ i("div", { className: w, id: m, role: "listbox", tabIndex: -1, onKeyDown: (o) => {
|
|
11
11
|
o.key === "Escape" && d(!1);
|
|
@@ -14,7 +14,7 @@ function B(h) {
|
|
|
14
14
|
}, children: p?.map((o) => {
|
|
15
15
|
const { ariaLabel: l, onClick: D, href: e, icon: n, key: s } = o;
|
|
16
16
|
return /* @__PURE__ */ i(
|
|
17
|
-
|
|
17
|
+
O,
|
|
18
18
|
{
|
|
19
19
|
themeName: `${a}.link`,
|
|
20
20
|
tokens: { ...r, isOpen: u },
|
|
@@ -51,7 +51,7 @@ function P(h) {
|
|
|
51
51
|
v === "row" && (e.key === "ArrowRight" && e.target === n && (y?.focus(), e.preventDefault()), e.key === "ArrowLeft" && e.target === n && (g.focus(), e.preventDefault())), v === "column" && (e.key === "ArrowDown" && e.target === n && (y?.focus(), e.preventDefault()), e.key === "ArrowUp" && e.target === n && (g.focus(), e.preventDefault())), e.key === "Escape" && (f(!1), n?.focus()), document.activeElement === s && n?.focus();
|
|
52
52
|
}, children: [
|
|
53
53
|
/* @__PURE__ */ i(
|
|
54
|
-
|
|
54
|
+
B,
|
|
55
55
|
{
|
|
56
56
|
themeName: `${r}.button`,
|
|
57
57
|
tokens: { ...c, isOpen: t },
|
|
@@ -65,7 +65,7 @@ function P(h) {
|
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
t && /* @__PURE__ */ i(
|
|
68
|
-
|
|
68
|
+
T,
|
|
69
69
|
{
|
|
70
70
|
id: u,
|
|
71
71
|
sharingLinksList: d,
|
|
@@ -80,6 +80,6 @@ function P(h) {
|
|
|
80
80
|
] }) });
|
|
81
81
|
}
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
T as IconsContainer,
|
|
84
84
|
P as ShareButton
|
|
85
85
|
};
|
package/index6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),u=require("react"),h=require("./index82.js"),o=require("./index7.js"),$=require("./index8.js"),j=require("./index48.js");function q(c){const{title:i,button:s,content:e,themeName:t="alerts.item",tokens:l,icon:r,id:m,swiperSlideIndex:a=0}=c,{activeIndex:x}=h.useCarousel(),d=x===a;return i==null&&s==null&&e==null&&r==null?null:n.jsxs(n.Fragment,{children:[r!=null&&n.jsx(j,{icon:r,themeName:`${t}.icon`,tokens:l}),(i!=null||s!=null||e!=null)&&n.jsxs(o.Box,{themeName:`${t}.container`,tokens:l,children:[i!=null&&n.jsx(o.Box,{as:"span",themeName:`${t}.title`,tokens:l,id:m,children:i}),s!=null&&n.jsx($.Button,{tabIndex:d?0:-1,themeName:`${t}.button`,tokens:l,...s}),e!=null&&(u.isValidElement(e)?u.cloneElement(e,{themeName:`${t}.content`,tokens:l}):e)]})]})}module.exports=q;
|
package/index6.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, Fragment as
|
|
3
|
-
import
|
|
4
|
-
import { useCarousel as
|
|
5
|
-
import { Box as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
function
|
|
9
|
-
const { title: l, button: o, content: e, themeName: t = "alerts.item", tokens: n, icon: m, id:
|
|
10
|
-
return l == null && o == null && e == null && m == null ? null : /* @__PURE__ */ i(
|
|
11
|
-
m != null && /* @__PURE__ */ r(
|
|
12
|
-
(l != null || o != null || e != null) && /* @__PURE__ */ i(
|
|
13
|
-
l != null && /* @__PURE__ */ r(
|
|
14
|
-
o != null && /* @__PURE__ */ r(
|
|
15
|
-
e != null && (
|
|
2
|
+
import { jsxs as i, Fragment as h, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { isValidElement as f, cloneElement as x } from "react";
|
|
4
|
+
import { useCarousel as N } from "./index82.mjs";
|
|
5
|
+
import { Box as u } from "./index7.mjs";
|
|
6
|
+
import { Button as I } from "./index8.mjs";
|
|
7
|
+
import $ from "./index48.mjs";
|
|
8
|
+
function E(a) {
|
|
9
|
+
const { title: l, button: o, content: e, themeName: t = "alerts.item", tokens: n, icon: m, id: s, swiperSlideIndex: c = 0 } = a, { activeIndex: p } = N(), d = p === c;
|
|
10
|
+
return l == null && o == null && e == null && m == null ? null : /* @__PURE__ */ i(h, { children: [
|
|
11
|
+
m != null && /* @__PURE__ */ r($, { icon: m, themeName: `${t}.icon`, tokens: n }),
|
|
12
|
+
(l != null || o != null || e != null) && /* @__PURE__ */ i(u, { themeName: `${t}.container`, tokens: n, children: [
|
|
13
|
+
l != null && /* @__PURE__ */ r(u, { as: "span", themeName: `${t}.title`, tokens: n, id: s, children: l }),
|
|
14
|
+
o != null && /* @__PURE__ */ r(I, { tabIndex: d ? 0 : -1, themeName: `${t}.button`, tokens: n, ...o }),
|
|
15
|
+
e != null && (f(e) ? x(e, {
|
|
16
16
|
themeName: `${t}.content`,
|
|
17
17
|
tokens: n
|
|
18
18
|
}) : e)
|
|
@@ -20,5 +20,5 @@ function B(s) {
|
|
|
20
20
|
] });
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
E as default
|
|
24
24
|
};
|
package/index67.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),p=require("react"),M=require("react-aria"),f=require("./index7.js"),k=require("./index8.js");function c({href:
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),p=require("react"),M=require("react-aria"),f=require("./index7.js"),k=require("./index8.js");function c({href:i="#main",themeName:n="skipToMain",tokens:e,customTheme:a,children:r,ariaLabel:t,...o}){return u.jsx(k.Button,{as:"a",href:i,themeName:n,tokens:e,customTheme:a,"aria-label":t,...o,children:r})}function l({as:i="main",id:n="main",tabIndex:e=-1,themeName:a="main",tokens:r,customTheme:t,children:o,...m}){const s=p.useRef(null),{landmarkProps:d}=M.useLandmark({role:"main"},s);return u.jsx(f.BoxWithForwardRef,{as:i,id:n,themeName:a,tokens:r,customTheme:t,ref:s,...m,...d,tabIndex:e,children:o})}c.displayName="SkipToMain";l.displayName="Main";exports.Main=l;exports.SkipToMain=c;
|
package/index67.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useLandmark as
|
|
3
|
+
import { useRef as u } from "react";
|
|
4
|
+
import { useLandmark as l } from "react-aria";
|
|
5
5
|
import { BoxWithForwardRef as d } from "./index7.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { Button as k } from "./index8.mjs";
|
|
7
7
|
function M({
|
|
8
8
|
href: o = "#main",
|
|
9
9
|
themeName: a = "skipToMain",
|
|
10
|
-
tokens:
|
|
11
|
-
customTheme:
|
|
10
|
+
tokens: n,
|
|
11
|
+
customTheme: i,
|
|
12
12
|
children: r,
|
|
13
13
|
ariaLabel: m,
|
|
14
14
|
...t
|
|
@@ -19,8 +19,8 @@ function M({
|
|
|
19
19
|
as: "a",
|
|
20
20
|
href: o,
|
|
21
21
|
themeName: a,
|
|
22
|
-
tokens:
|
|
23
|
-
customTheme:
|
|
22
|
+
tokens: n,
|
|
23
|
+
customTheme: i,
|
|
24
24
|
"aria-label": m,
|
|
25
25
|
...t,
|
|
26
26
|
children: r
|
|
@@ -30,14 +30,14 @@ function M({
|
|
|
30
30
|
function c({
|
|
31
31
|
as: o = "main",
|
|
32
32
|
id: a = "main",
|
|
33
|
-
tabIndex:
|
|
34
|
-
themeName:
|
|
33
|
+
tabIndex: n = -1,
|
|
34
|
+
themeName: i = "main",
|
|
35
35
|
tokens: r,
|
|
36
36
|
customTheme: m,
|
|
37
37
|
children: t,
|
|
38
|
-
...
|
|
38
|
+
...s
|
|
39
39
|
}) {
|
|
40
|
-
const e =
|
|
40
|
+
const e = u(null), { landmarkProps: f } = l(
|
|
41
41
|
{
|
|
42
42
|
role: "main"
|
|
43
43
|
},
|
|
@@ -48,13 +48,13 @@ function c({
|
|
|
48
48
|
{
|
|
49
49
|
as: o,
|
|
50
50
|
id: a,
|
|
51
|
-
themeName:
|
|
51
|
+
themeName: i,
|
|
52
52
|
tokens: r,
|
|
53
53
|
customTheme: m,
|
|
54
54
|
ref: e,
|
|
55
|
-
...f,
|
|
56
55
|
...s,
|
|
57
|
-
|
|
56
|
+
...f,
|
|
57
|
+
tabIndex: n,
|
|
58
58
|
children: t
|
|
59
59
|
}
|
|
60
60
|
);
|
package/index68.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),x=require("react"),d=require("react-aria"),k=require("react-stately"),T=require("./index120.js"),a=require("./index7.js"),q=require("./index69.js"),j=require("./index71.js");function N(i){const{themeName:e="tabList",tokens:
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),x=require("react"),d=require("react-aria"),k=require("react-stately"),T=require("./index120.js"),a=require("./index7.js"),q=require("./index69.js"),j=require("./index71.js");function N(i){const{themeName:e="tabList",tokens:o,customTheme:u,label:r,orientation:c="horizontal",panelTransition:h=T}=i,t=k.useTabListState(i),l=x.useRef(null),{tabListProps:b}=d.useTabList(i,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.Box,{themeName:`${e}.wrapper`,tokens:n,customTheme:u,children:[r!=null&&r!==""&&s.jsx(a.Box,{themeName:`${e}.label`,tokens:n,children:r}),s.jsxs(a.Box,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...b,ref:l,children:[...t.collection].map(m=>s.jsx(q,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(j,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},t.selectedItem?.key)]})]})}module.exports=N;
|
package/index69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const q=require("react/jsx-runtime"),x=require("react"),o=require("react-aria"),F=require("./index77.js"),P=require("./index7.js");function
|
|
2
|
+
"use strict";const q=require("react/jsx-runtime"),x=require("react"),o=require("react-aria"),F=require("./index77.js"),P=require("./index7.js");function h({item:n,state:e,...t}){const{key:s,rendered:i}=n,{themeName:c="tabList.tab",tokens:u,...a}=F.mergeDefaultComponentProps(t,n.props),r=x.useRef(null),{tabProps:l}=o.useTab({key:s},e,r),{focusProps:d,isFocusVisible:p,isFocused:b}=o.useFocusRing({within:!0,autoFocus:!1}),f=e.selectionManager.isDisabled(s),g=e.selectionManager.isSelected(s),m=e.selectionManager.isLink(s),k={...u,isDisabled:f,isSelected:g,isLink:m,isFocused:b,isFocusVisible:p};return q.jsx(P.BoxWithForwardRef,{...o.mergeProps(a,d,l),themeName:c,tokens:k,ref:r,children:i})}module.exports=h;
|
package/index70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),h=require("./index80.js");function f(e){return typeof e!="object"||e===null?!1:"suppressTextValueWarning"in e&&!!e.suppressTextValueWarning}function u(e){return null}function m(e){return e.hasChildItems!=null?e.hasChildItems:e.childItems!=null||e.title!=null&&r.Children.count(e.children)>0}u.getCollectionNode=function*(t,s){const{childItems:n,title:d,children:o}=t,i=t.title??t.children,a=t.textValue??(typeof i=="string"?i:"")??t["aria-label"]??"";!a&&!f(s)&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:t,rendered:i,textValue:a,"aria-label":t["aria-label"],hasChildNodes:m(t),*childNodes(){if(n!=null)yield*Array.from(n).map(l=>({type:"item",value:l}));else if(d!=null){const l=[];r.Children.forEach(o,c=>{l.push({type:"item",element:c})}),yield*l}}}};const y=u;exports.TabItem=y;
|
package/index70.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import { Children as r } from "react";
|
|
3
3
|
import { log as f } from "./index80.mjs";
|
|
4
|
-
function
|
|
4
|
+
function m(e) {
|
|
5
5
|
return typeof e != "object" || e === null ? !1 : "suppressTextValueWarning" in e && !!e.suppressTextValueWarning;
|
|
6
6
|
}
|
|
7
7
|
function u(e) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return e.hasChildItems != null ? e.hasChildItems : e.childItems != null || e.title != null && r.
|
|
10
|
+
function h(e) {
|
|
11
|
+
return e.hasChildItems != null ? e.hasChildItems : e.childItems != null || e.title != null && r.count(e.children) > 0;
|
|
12
12
|
}
|
|
13
13
|
u.getCollectionNode = function* (t, s) {
|
|
14
|
-
const { childItems: n, title:
|
|
15
|
-
!a && !
|
|
14
|
+
const { childItems: n, title: o, children: d } = t, i = t.title ?? t.children, a = t.textValue ?? (typeof i == "string" ? i : "") ?? t["aria-label"] ?? "";
|
|
15
|
+
!a && !m(s) && f(
|
|
16
16
|
"<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.",
|
|
17
17
|
"warn"
|
|
18
18
|
), yield {
|
|
@@ -21,16 +21,16 @@ u.getCollectionNode = function* (t, s) {
|
|
|
21
21
|
rendered: i,
|
|
22
22
|
textValue: a,
|
|
23
23
|
"aria-label": t["aria-label"],
|
|
24
|
-
hasChildNodes:
|
|
24
|
+
hasChildNodes: h(t),
|
|
25
25
|
*childNodes() {
|
|
26
26
|
if (n != null)
|
|
27
27
|
yield* Array.from(n).map((l) => ({
|
|
28
28
|
type: "item",
|
|
29
29
|
value: l
|
|
30
30
|
}));
|
|
31
|
-
else if (
|
|
31
|
+
else if (o != null) {
|
|
32
32
|
const l = [];
|
|
33
|
-
r.
|
|
33
|
+
r.forEach(d, (c) => {
|
|
34
34
|
l.push({
|
|
35
35
|
type: "item",
|
|
36
36
|
element: c
|
|
@@ -40,7 +40,7 @@ u.getCollectionNode = function* (t, s) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const I = u;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
I as TabItem
|
|
46
46
|
};
|
package/index73.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),h=require("./index80.js");function f(e){return typeof e!="object"||e===null?!1:"suppressTextValueWarning"in e&&!!e.suppressTextValueWarning}function u(e){return null}function m(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&a.Children.count(e.children)>0)}u.getCollectionNode=function*(t,s){const{childItems:n,title:o,children:c}=t,i=t.title||t.children,r=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!r&&!f(s)&&process.env.NODE_ENV!=="production"&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:t,rendered:i,textValue:r,"aria-label":t["aria-label"],hasChildNodes:m(t),*childNodes(){if(n)yield*Array.from(n).map(l=>({type:"item",value:l}));else if(o){const l=[];a.Children.forEach(c,d=>{l.push({type:"item",element:d})}),yield*l}}}};const g=u;exports.TagItem=g;
|
package/index73.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import { Children as r } from "react";
|
|
3
3
|
import { log as f } from "./index80.mjs";
|
|
4
|
-
function
|
|
4
|
+
function m(e) {
|
|
5
5
|
return typeof e != "object" || e === null ? !1 : "suppressTextValueWarning" in e && !!e.suppressTextValueWarning;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function u(e) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && r.
|
|
10
|
+
function h(e) {
|
|
11
|
+
return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && r.count(e.children) > 0);
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
u.getCollectionNode = function* (t, s) {
|
|
14
14
|
const { childItems: n, title: o, children: d } = t, l = t.title || t.children, a = t.textValue || (typeof l == "string" ? l : "") || t["aria-label"] || "";
|
|
15
|
-
!a && !
|
|
15
|
+
!a && !m(s) && process.env.NODE_ENV !== "production" && f(
|
|
16
16
|
"<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.",
|
|
17
17
|
"warn"
|
|
18
18
|
), yield {
|
|
@@ -21,7 +21,7 @@ s.getCollectionNode = function* (t, u) {
|
|
|
21
21
|
rendered: l,
|
|
22
22
|
textValue: a,
|
|
23
23
|
"aria-label": t["aria-label"],
|
|
24
|
-
hasChildNodes:
|
|
24
|
+
hasChildNodes: h(t),
|
|
25
25
|
*childNodes() {
|
|
26
26
|
if (n)
|
|
27
27
|
yield* Array.from(n).map((i) => ({
|
|
@@ -30,7 +30,7 @@ s.getCollectionNode = function* (t, u) {
|
|
|
30
30
|
}));
|
|
31
31
|
else if (o) {
|
|
32
32
|
const i = [];
|
|
33
|
-
r.
|
|
33
|
+
r.forEach(d, (c) => {
|
|
34
34
|
i.push({
|
|
35
35
|
type: "item",
|
|
36
36
|
element: c
|
|
@@ -40,7 +40,7 @@ s.getCollectionNode = function* (t, u) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const I = u;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
I as TagItem
|
|
46
46
|
};
|
package/index82.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),S=require("@okam/core-lib"),e=require("react"),[p,R]=S.createCtxNullable();function v(x){const{controller:o,children:f,id:t,slides:s,modules:n,...l}=x,[i,u]=e.useState(),c=e.useRef(null),a=e.useRef(null),r=e.useRef(null),[C,d]=e.useState(0),w=e.useMemo(()=>({swiper:r.current?.swiper,activeIndex:C,setActiveIndex:d,swiperRef:r,slides:s,controller:o??i,setController:u,prevNavigationRef:c,nextNavigationRef:a,id:t,modules:n,swiperProps:l}),[r,C,d,s,o,i,u,c,a,t,n,l]);return P.jsx(R,{value:w,children:f})}const b=v,g=p;exports.CarouselContextProvider=v;exports.SwiperControllerContextProvider=b;exports.useCarousel=p;exports.useSwiperController=g;
|
package/index83.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@okam/core-lib"),e=require("react"),[u,c]=o.createCtx();function l({children:s}){const[t,
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@okam/core-lib"),e=require("react"),[u,c]=o.createCtx();function l({children:s}){const[t,r]=e.useState(!1);e.useEffect(()=>{r(!0)},[]);const n=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(c,{value:n,children:s})}exports.IsClientContextProvider=l;exports.useIsClient=u;
|