@okam/stack-ui 1.29.1 → 1.30.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/Accordion/components/AccordionItem.d.ts +1 -0
- package/components/Accordion/index.d.ts +2 -1
- package/components/Accordion/interface.d.ts +3 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
- package/components/Alerts/index.d.ts +2 -1
- package/components/Alerts/interface.d.ts +4 -3
- package/components/Box/index.d.ts +3 -2
- package/components/Button/index.d.ts +8 -4
- package/components/Button/interface.d.ts +3 -2
- package/components/Calendar/index.d.ts +5 -1
- package/components/Calendar/interface.d.ts +2 -1
- package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
- package/components/Date/index.d.ts +2 -1
- package/components/Date/interface.d.ts +2 -1
- package/components/Icon/index.d.ts +2 -1
- package/components/Icon/interface.d.ts +2 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
- package/components/Lightbox/index.d.ts +2 -1
- package/components/Lightbox/interface.d.ts +3 -2
- package/components/Menu/Menu.d.ts +2 -1
- package/components/Menu/interface.d.ts +5 -4
- package/components/Modal/index.d.ts +2 -1
- package/components/Modal/interface.d.ts +2 -1
- package/components/Popover/index.d.ts +5 -2
- package/components/Popover/interface.d.ts +3 -2
- package/components/ShareButton/index.d.ts +2 -1
- package/components/ShareButton/interface.d.ts +2 -2
- package/components/SidePanel/index.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +5 -4
- package/components/Typography/index.d.ts +3 -2
- package/components/Video/index.d.ts +2 -1
- package/components/Video/interface.d.ts +2 -1
- package/components/WysiwygBlock/index.d.ts +2 -1
- package/components/WysiwygBlock/interface.d.ts +2 -1
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
- package/components/fields/Checkbox/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/interface.d.ts +2 -1
- package/components/fields/DatePicker/index.d.ts +2 -1
- package/components/fields/DatePicker/interface.d.ts +2 -1
- package/components/fields/Radio/Radio.interface.d.ts +3 -2
- package/components/fields/Radio/index.d.ts +3 -2
- package/components/fields/RadioGroup/index.d.ts +2 -1
- package/components/fields/RadioGroup/interface.d.ts +2 -1
- package/components/fields/SearchField/index.d.ts +2 -1
- package/components/fields/SearchField/interface.d.ts +2 -1
- package/components/fields/Select/Select.d.ts +2 -1
- package/components/fields/Select/Select.interface.d.ts +3 -2
- package/components/fields/TextArea/index.d.ts +2 -1
- package/components/fields/TextInputField/interface.d.ts +3 -2
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +41 -38
- package/index10.js +1 -1
- package/index10.mjs +1 -0
- package/index100.js +1 -2
- package/index100.mjs +22 -21
- package/index101.js +2 -1
- package/index101.mjs +22 -63
- package/index102.js +1 -1
- package/index102.mjs +58 -24
- package/index103.js +1 -1
- package/index103.mjs +29 -52
- package/index104.js +1 -1
- package/index104.mjs +52 -4
- package/index105.js +1 -1
- package/index105.mjs +4 -11
- package/index106.js +1 -1
- package/index106.mjs +11 -14
- package/index107.js +1 -1
- package/index107.mjs +13 -22
- package/index108.js +1 -1
- package/index108.mjs +19 -19
- package/index109.js +1 -1
- package/index109.mjs +22 -38
- package/index11.js +1 -1
- package/index11.mjs +2 -2
- package/index110.js +1 -2
- package/index110.mjs +38 -12
- package/index111.js +2 -1
- package/index111.mjs +12 -7
- package/index112.js +1 -1
- package/index112.mjs +7 -21
- package/index113.js +1 -1
- package/index113.mjs +21 -38
- package/index114.js +1 -1
- package/index114.mjs +38 -49
- package/index115.js +1 -1
- package/index115.mjs +49 -40
- package/index116.js +1 -1
- package/index116.mjs +40 -13
- package/index117.js +1 -1
- package/index117.mjs +14 -26
- package/index118.js +1 -1
- package/index118.mjs +29 -18
- package/index119.js +1 -1
- package/index119.mjs +19 -8
- package/index120.js +1 -1
- package/index120.mjs +9 -30
- package/index121.js +1 -1
- package/index121.mjs +30 -15
- package/index122.js +1 -1
- package/index122.mjs +13 -15
- package/index123.js +1 -1
- package/index123.mjs +17 -21
- package/index124.js +1 -1
- package/index124.mjs +21 -11
- package/index125.js +1 -2
- package/index125.mjs +11 -22
- package/index126.js +2 -1
- package/index126.mjs +22 -12
- package/index127.js +1 -1
- package/index127.mjs +23 -23
- package/index128.js +1 -1
- package/index128.mjs +3 -3
- package/index13.js +1 -1
- package/index13.mjs +10 -9
- package/index130.mjs +6 -6
- package/index131.js +1 -1
- package/index131.mjs +12 -51
- package/index132.js +1 -1
- package/index132.mjs +49 -25
- package/index133.js +1 -1
- package/index133.mjs +25 -19
- package/index134.js +1 -1
- package/index134.mjs +17 -58
- package/index135.js +1 -1
- package/index135.mjs +194 -89
- package/index136.js +1 -1
- package/index136.mjs +63 -30
- package/index137.js +1 -1
- package/index137.mjs +136 -116
- package/index138.js +1 -1
- package/index138.mjs +118 -26
- package/index139.js +1 -1
- package/index139.mjs +212 -119
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +187 -131
- package/index141.js +1 -1
- package/index141.mjs +69 -14
- package/index142.js +1 -1
- package/index142.mjs +248 -85
- package/index143.js +1 -1
- package/index143.mjs +93 -102
- package/index144.js +1 -1
- package/index144.mjs +174 -5
- package/index145.js +1 -1
- package/index145.mjs +84 -3
- package/index146.js +1 -1
- package/index146.mjs +56 -123
- package/index147.js +1 -1
- package/index147.mjs +125 -28
- package/index148.js +1 -1
- package/index148.mjs +113 -48
- package/index149.js +1 -1
- package/index149.mjs +119 -41
- package/index150.js +1 -1
- package/index150.mjs +71 -36
- package/index151.js +1 -1
- package/index151.mjs +105 -108
- package/index152.js +1 -1
- package/index152.mjs +52 -77
- package/index153.js +1 -1
- package/index153.mjs +93 -101
- package/index154.js +1 -1
- package/index154.mjs +71 -98
- package/index155.js +1 -1
- package/index155.mjs +50 -193
- package/index156.js +1 -1
- package/index156.mjs +91 -56
- package/index157.js +5 -1
- package/index157.mjs +75 -136
- package/index158.js +1 -1
- package/index158.mjs +1999 -107
- package/index159.js +1 -1
- package/index159.mjs +56 -214
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +186 -188
- package/index161.js +1 -1
- package/index161.mjs +59 -67
- package/index162.js +1 -1
- package/index162.mjs +88 -252
- package/index163.js +1 -1
- package/index163.mjs +32 -96
- package/index164.js +1 -1
- package/index164.mjs +117 -170
- package/index165.js +1 -1
- package/index165.mjs +26 -83
- package/index166.js +1 -1
- package/index166.mjs +123 -57
- package/index167.js +1 -1
- package/index167.mjs +130 -122
- package/index168.js +1 -1
- package/index168.mjs +14 -116
- package/index169.js +1 -1
- package/index169.mjs +92 -119
- package/index170.js +1 -1
- package/index170.mjs +105 -71
- package/index171.js +1 -1
- package/index171.mjs +5 -110
- package/index172.js +1 -1
- package/index172.mjs +3 -52
- package/index173.js +1 -1
- package/index173.mjs +124 -92
- package/index174.js +1 -1
- package/index174.mjs +29 -70
- package/index175.js +1 -1
- package/index175.mjs +51 -56
- package/index176.js +1 -1
- package/index176.mjs +44 -99
- package/index177.js +1 -5
- package/index177.mjs +36 -79
- package/index178.js +1 -1
- package/index178.mjs +94 -1992
- package/index179.js +1 -1
- package/index179.mjs +78 -60
- package/index18.js +1 -1
- package/index18.mjs +7 -7
- package/index180.js +1 -1
- package/index180.mjs +95 -182
- package/index181.js +1 -1
- package/index181.mjs +98 -6
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +5 -313
- package/index191.js +1 -1
- package/index191.mjs +327 -179
- package/index192.js +1 -1
- package/index192.mjs +183 -8
- package/index193.js +1 -1
- package/index193.mjs +7 -25
- package/index194.js +1 -1
- package/index194.mjs +26 -55
- package/index195.js +1 -1
- package/index195.mjs +55 -46
- package/index196.js +1 -1
- package/index196.mjs +45 -123
- package/index197.js +1 -1
- package/index197.mjs +110 -5
- package/index198.js +1 -1
- package/index198.mjs +31 -27
- package/index199.js +1 -1
- package/index199.mjs +6 -7
- package/index2.js +1 -1
- package/index2.mjs +51 -50
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +28 -7
- package/index201.js +1 -1
- package/index201.mjs +7 -8
- package/index202.js +1 -1
- package/index202.mjs +6 -3
- package/index203.js +1 -1
- package/index203.mjs +7 -5
- package/index204.js +1 -1
- package/index204.mjs +4 -9
- package/index205.js +1 -0
- package/index205.mjs +8 -0
- package/index206.js +1 -0
- package/index206.mjs +12 -0
- package/index21.js +1 -1
- package/index21.mjs +8 -8
- package/index22.js +1 -1
- package/index22.mjs +2 -2
- package/index23.js +1 -1
- package/index23.mjs +40 -39
- package/index24.js +1 -1
- package/index24.mjs +45 -44
- package/index26.js +1 -1
- package/index26.mjs +28 -21
- package/index27.js +1 -1
- package/index27.mjs +12 -12
- package/index28.js +1 -1
- package/index28.mjs +6 -6
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +14 -8
- package/index31.js +1 -1
- package/index31.mjs +18 -18
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.mjs +43 -43
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +3 -3
- package/index36.mjs +10 -10
- package/index4.js +1 -1
- package/index4.mjs +3 -3
- package/index6.js +1 -1
- package/index6.mjs +47 -46
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +2 -2
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index7.mjs +4 -4
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +2 -1
- package/index72.mjs +27 -2
- package/index73.js +1 -2
- package/index73.mjs +2 -9
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +1 -1
- package/index76.mjs +6 -6
- package/index77.js +2 -1
- package/index77.mjs +8 -25
- package/index78.js +1 -1
- package/index78.mjs +25 -2
- package/index79.js +1 -6
- package/index79.mjs +2 -94
- package/index8.js +1 -1
- package/index8.mjs +42 -23
- package/index80.js +6 -1
- package/index80.mjs +79 -54
- package/index81.js +1 -1
- package/index81.mjs +61 -33
- package/index82.js +1 -42
- package/index82.mjs +34 -67
- package/index83.js +42 -1
- package/index83.mjs +69 -154
- package/index84.js +1 -9
- package/index84.mjs +149 -47
- package/index85.js +9 -1
- package/index85.mjs +48 -36
- package/index86.js +1 -1
- package/index86.mjs +40 -8
- package/index87.js +1 -1
- package/index87.mjs +9 -31
- package/index88.js +1 -1
- package/index88.mjs +38 -6
- package/index89.js +1 -12
- package/index89.mjs +6 -40
- package/index9.js +1 -1
- package/index9.mjs +7 -7
- package/index90.js +12 -1
- package/index90.mjs +36 -25
- package/index91.js +1 -1
- package/index91.mjs +24 -8
- package/index92.js +1 -7
- package/index92.mjs +7 -13
- package/index93.js +6 -14
- package/index93.mjs +13 -65
- package/index94.js +15 -1
- package/index94.mjs +71 -7
- package/index95.js +1 -16
- package/index95.mjs +7 -25
- package/index96.js +16 -1
- package/index96.mjs +20 -37
- package/index97.js +1 -1
- package/index97.mjs +40 -43
- package/index98.js +1 -1
- package/index98.mjs +44 -47
- package/index99.js +1 -1
- package/index99.mjs +48 -17
- package/package.json +1 -1
- package/providers/Translation/index.d.ts +4 -0
- package/providers/Translation/interface.d.ts +16 -0
- package/theme/Accordion/index.d.ts +12 -12
- package/theme/Alerts/index.d.ts +22 -22
- package/theme/Box/index.d.ts +8 -8
- package/theme/Button/index.d.ts +2 -2
- package/theme/Calendar/index.d.ts +12 -12
- package/theme/Carousel/index.d.ts +11 -11
- package/theme/Checkbox/index.d.ts +8 -8
- package/theme/CheckboxGroup/index.d.ts +3 -3
- package/theme/DatePicker/index.d.ts +10 -9
- package/theme/Image/index.d.ts +1 -1
- package/theme/LightBox/index.d.ts +9 -9
- package/theme/Radio/index.d.ts +6 -6
- package/theme/RadioGroup/index.d.ts +3 -3
- package/theme/Search/index.d.ts +3 -3
- package/theme/ShareButton/index.d.ts +10 -10
- package/theme/SidePanel/index.d.ts +3 -3
- package/theme/TextArea/index.d.ts +2 -2
- package/theme/Typography/index.d.ts +2 -2
- package/transitions/ModalTransition.d.ts +3 -6
- package/transitions/RenderWithSlide.d.ts +3 -6
- package/transitions/SidePanelTransition.d.ts +3 -6
package/index27.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { OverlayContainer as
|
|
4
|
-
import
|
|
5
|
-
import d from "./
|
|
6
|
-
import p from "./
|
|
7
|
-
const O = (
|
|
3
|
+
import { OverlayContainer as s } from "react-aria";
|
|
4
|
+
import l from "./index118.mjs";
|
|
5
|
+
import d from "./index119.mjs";
|
|
6
|
+
import p from "./index120.mjs";
|
|
7
|
+
const O = (n) => {
|
|
8
8
|
const {
|
|
9
9
|
children: a,
|
|
10
|
-
transitionComponent: m =
|
|
11
|
-
state:
|
|
12
|
-
themeName:
|
|
13
|
-
tokens:
|
|
14
|
-
...
|
|
15
|
-
} =
|
|
16
|
-
return /* @__PURE__ */ o(
|
|
10
|
+
transitionComponent: m = l,
|
|
11
|
+
state: t,
|
|
12
|
+
themeName: r,
|
|
13
|
+
tokens: e,
|
|
14
|
+
...i
|
|
15
|
+
} = n;
|
|
16
|
+
return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(m, { themeName: `${r}.transition`, isVisible: t.isOpen, children: /* @__PURE__ */ o(p, { themeName: r, tokens: e, state: t, ...i, children: /* @__PURE__ */ o(d, { themeName: r, tokens: e, ...i, children: a }) }) }) });
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
O as default
|
package/index28.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),v=require("lodash"),M=require("react"),a=require("react-aria"),f=require("react-hook-form"),T=require("./index68.js"),R=require("./index64.js"),p=require("./index72.js"),y=require("./index3.js"),g=t=>{const{id:i,label:u,themeName:r="radio",tokens:d,customTheme:s,value:n,fieldRef:c}=t,o=T.useRadioGroupCtx(),l=M.useRef(null),{inputProps:q}=a.useRadio(t,o,l),h=(o==null?void 0:o.selectedValue)===n,{focusProps:j}=a.useFocusRing(),m={...d,selected:h},b=R(`${r}.label`,m,s),k=R(`${r}.radio`,m,s),F=R(`${r}.selectedMark`,m,s);return e.jsx("div",{children:e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{htmlFor:i,className:b,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{type:"radio",...a.mergeProps(j,q),ref:x=>{c==null||c(x),l.current=x}})}),e.jsx("div",{className:k,"aria-checked":h,role:"radio","aria-labelledby":i,children:e.jsx("div",{className:F})}),e.jsx(y.default,{themeName:`${r}.label`,children:u})]})})})},E=t=>{const{name:i,required:u}=t,{register:r,formState:d}=f.useFormContext(),s=f.get(d.errors,i),n=(s==null?void 0:s.message)??void 0,{t:c}=p.useTranslation(),{ref:o,...l}=r(i,{required:u?c("FORM.ERROR.REQUIRED")??"required":!1});return e.jsx(g,{fieldRef:o,...l,...t,isError:!v.isEmpty(n),errorMessage:n})};exports.ReactHookFormRadio=E;exports.default=g;
|
package/index28.mjs
CHANGED
|
@@ -4,12 +4,12 @@ import { isEmpty as x } from "lodash";
|
|
|
4
4
|
import { useRef as y } from "react";
|
|
5
5
|
import { useRadio as F, useFocusRing as v, FocusRing as C, VisuallyHidden as E, mergeProps as M } from "react-aria";
|
|
6
6
|
import { useFormContext as N, get as $ } from "react-hook-form";
|
|
7
|
-
import {
|
|
8
|
-
import { useRadioGroupCtx as P } from "./index68.mjs";
|
|
7
|
+
import { useRadioGroupCtx as q } from "./index68.mjs";
|
|
9
8
|
import u from "./index64.mjs";
|
|
9
|
+
import { useTranslation as P } from "./index72.mjs";
|
|
10
10
|
import j from "./index3.mjs";
|
|
11
11
|
const H = (t) => {
|
|
12
|
-
const { id: i, label: l, themeName: o = "radio", tokens: m, customTheme: r, value:
|
|
12
|
+
const { id: i, label: l, themeName: o = "radio", tokens: m, customTheme: r, value: c, fieldRef: a } = t, s = q(), n = y(null), { inputProps: p } = F(t, s, n), f = (s == null ? void 0 : s.selectedValue) === c, { focusProps: R } = v(), d = { ...m, selected: f }, g = u(`${o}.label`, d, r), b = u(`${o}.radio`, d, r), T = u(`${o}.selectedMark`, d, r);
|
|
13
13
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(C, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ k("label", { htmlFor: i, className: g, children: [
|
|
14
14
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
15
15
|
"input",
|
|
@@ -17,7 +17,7 @@ const H = (t) => {
|
|
|
17
17
|
type: "radio",
|
|
18
18
|
...M(R, p),
|
|
19
19
|
ref: (h) => {
|
|
20
|
-
a == null || a(h),
|
|
20
|
+
a == null || a(h), n.current = h;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
) }),
|
|
@@ -25,10 +25,10 @@ const H = (t) => {
|
|
|
25
25
|
/* @__PURE__ */ e(j, { themeName: `${o}.label`, children: l })
|
|
26
26
|
] }) }) });
|
|
27
27
|
}, z = (t) => {
|
|
28
|
-
const { name: i, required: l } = t, { register: o, formState: m } = N(), r = $(m.errors, i),
|
|
28
|
+
const { name: i, required: l } = t, { register: o, formState: m } = N(), r = $(m.errors, i), c = (r == null ? void 0 : r.message) ?? void 0, { t: a } = P(), { ref: s, ...n } = o(i, {
|
|
29
29
|
required: l ? a("FORM.ERROR.REQUIRED") ?? "required" : !1
|
|
30
30
|
});
|
|
31
|
-
return /* @__PURE__ */ e(H, { fieldRef: s, ...
|
|
31
|
+
return /* @__PURE__ */ e(H, { fieldRef: s, ...n, ...t, isError: !x(c), errorMessage: c });
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
34
|
z as ReactHookFormRadio,
|
package/index29.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("./index121.js"),x=require("react-aria"),m=require("./index68.js"),u=require("./index25.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
|
package/index29.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { useRadioGroupState as h } from "./
|
|
3
|
+
import { useRadioGroupState as h } from "./index121.mjs";
|
|
4
4
|
import { useRadioGroup as G } from "react-aria";
|
|
5
5
|
import { RadioGroupProvider as b } from "./index68.mjs";
|
|
6
6
|
import d from "./index25.mjs";
|
package/index30.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const l=require("react/jsx-runtime"),t=require("@react-spring/web"),u=require("./index64.js"),m=({isVisible:e,children:s,themeName:n,tokens:r,customTheme:i})=>{const a=u(n,r,i);return t.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((o,c)=>c&&l.jsx(t.animated.div,{className:a,style:o,children:s}))};module.exports=m;
|
package/index30.mjs
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useTransition as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { useTransition as l, animated as c } from "@react-spring/web";
|
|
4
|
+
import p from "./index64.mjs";
|
|
5
|
+
const h = ({ isVisible: t, children: e, themeName: a, tokens: o, customTheme: r }) => {
|
|
6
|
+
const n = p(a, o, r);
|
|
7
|
+
return l(t, {
|
|
8
|
+
from: { opacity: 0, translateX: "100%" },
|
|
9
|
+
enter: { opacity: 1, translateX: "0%" },
|
|
10
|
+
leave: { opacity: 0, translateX: "25%" }
|
|
11
|
+
})(
|
|
12
|
+
(i, s) => s && /* @__PURE__ */ m(c.div, { className: n, style: i, children: e })
|
|
13
|
+
);
|
|
14
|
+
};
|
|
9
15
|
export {
|
|
10
|
-
|
|
16
|
+
h as default
|
|
11
17
|
};
|
package/index31.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("./index67.js"),l=require("./index66.js"),x=require("./index122.js"),r=require("./index25.js"),p=require("./index123.js"),q=c=>{const{id:o="main-menu",children:u,PanelTransition:m=x,themeName:e,tokens:n,customTheme:a,...d}=c,{overlayState:i}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return t.jsx(m,{themeName:`${e}.panelTransition`,tokens:n,isVisible:i==null?void 0:i.isOpen,children:t.jsxs(r.default,{themeName:`${e}.wrapper`,tokens:n,children:[s&&s(),t.jsx(r.default,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...d,children:u})})]})})};module.exports=q;
|
package/index31.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useMenu as
|
|
2
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { useMenu as d } from "./index67.mjs";
|
|
4
4
|
import { useSidePanel as u } from "./index66.mjs";
|
|
5
|
-
import f from "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
5
|
+
import f from "./index122.mjs";
|
|
6
|
+
import i from "./index25.mjs";
|
|
7
|
+
import N from "./index123.mjs";
|
|
8
|
+
const M = (o) => {
|
|
9
9
|
const {
|
|
10
|
-
id:
|
|
11
|
-
children:
|
|
10
|
+
id: s = "main-menu",
|
|
11
|
+
children: a,
|
|
12
12
|
PanelTransition: c = f,
|
|
13
13
|
themeName: e,
|
|
14
|
-
tokens:
|
|
14
|
+
tokens: n,
|
|
15
15
|
customTheme: p,
|
|
16
16
|
...h
|
|
17
|
-
} = o, { overlayState:
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
17
|
+
} = o, { overlayState: t } = u(), { closeBtn: m } = d();
|
|
18
|
+
return /* @__PURE__ */ r(c, { themeName: `${e}.panelTransition`, tokens: n, isVisible: t == null ? void 0 : t.isOpen, children: /* @__PURE__ */ l(i, { themeName: `${e}.wrapper`, tokens: n, children: [
|
|
19
|
+
m && m(),
|
|
20
|
+
/* @__PURE__ */ r(i, { themeName: `${e}.container`, tokens: n, children: /* @__PURE__ */ r(
|
|
21
|
+
N,
|
|
22
22
|
{
|
|
23
|
-
id:
|
|
23
|
+
id: s,
|
|
24
24
|
themeName: `${e}.innerContent`,
|
|
25
|
-
tokens:
|
|
25
|
+
tokens: n,
|
|
26
26
|
customTheme: p,
|
|
27
27
|
...h,
|
|
28
|
-
children:
|
|
28
|
+
children: a
|
|
29
29
|
}
|
|
30
30
|
) })
|
|
31
31
|
] }) });
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
M as default
|
|
35
35
|
};
|
package/index32.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("./index67.js"),h=require("./index8.js"),q=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("./index67.js"),h=require("./index8.js"),q=require("./index123.js"),j=o=>{const{id:n="main-menu",children:c,TransitionAnimation:l,PanelTransition:u,themeName:t,tokens:s,customTheme:i,...d}=o,{closeBtn:a,tabState:e,defaultSelectedKey:m}=x.useMenu();return r.jsx(h,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:a,id:n,TransitionAnimation:l,PanelTransition:u,onCloseCallBack:()=>{e==null||e.setSelectedKey(m)},children:r.jsx(q,{id:n,themeName:t,tokens:s,customTheme:i,...d,children:c})})};module.exports=j;
|
package/index32.mjs
CHANGED
package/index33.mjs
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as x, jsx as
|
|
3
|
-
import $, { useCallback as
|
|
4
|
-
import { useMenu as
|
|
2
|
+
import { jsxs as x, jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import $, { useCallback as C, createElement as y, useRef as E } from "react";
|
|
4
|
+
import { useMenu as K } from "./index67.mjs";
|
|
5
5
|
import N from "./index25.mjs";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const { tabState:
|
|
9
|
-
id:
|
|
6
|
+
import L, { Anchor as T } from "./index6.mjs";
|
|
7
|
+
const g = (i) => {
|
|
8
|
+
const { tabState: o, defaultSelectedKey: r } = K(), { setSelectedKey: t } = o, {
|
|
9
|
+
id: s,
|
|
10
10
|
path: n,
|
|
11
11
|
label: c,
|
|
12
|
-
themeName:
|
|
12
|
+
themeName: m = "button",
|
|
13
13
|
tokens: e,
|
|
14
|
-
customTheme:
|
|
14
|
+
customTheme: h,
|
|
15
15
|
target: b,
|
|
16
|
-
children:
|
|
16
|
+
children: p,
|
|
17
17
|
childItems: u,
|
|
18
18
|
as: l,
|
|
19
19
|
...d
|
|
20
|
-
} = i, a = n == null ? void 0 : n.substring(1),
|
|
20
|
+
} = i, a = n == null ? void 0 : n.substring(1), f = C(() => {
|
|
21
21
|
if (a != null) {
|
|
22
|
-
if (
|
|
22
|
+
if (o.selectedKey === a) {
|
|
23
23
|
t(r);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
t(a);
|
|
27
27
|
}
|
|
28
|
-
}, [a,
|
|
28
|
+
}, [a, o.selectedKey, t, r]);
|
|
29
29
|
return /* @__PURE__ */ y(
|
|
30
|
-
|
|
30
|
+
L,
|
|
31
31
|
{
|
|
32
32
|
...d,
|
|
33
|
-
themeName: `${
|
|
33
|
+
themeName: `${m}`,
|
|
34
34
|
tokens: e,
|
|
35
|
-
customTheme:
|
|
36
|
-
key: `button-${
|
|
37
|
-
handlePress:
|
|
35
|
+
customTheme: h,
|
|
36
|
+
key: `button-${s}`,
|
|
37
|
+
handlePress: f,
|
|
38
38
|
as: l
|
|
39
39
|
},
|
|
40
|
-
$.isValidElement(
|
|
40
|
+
$.isValidElement(p) ? p : c
|
|
41
41
|
);
|
|
42
42
|
}, B = (i) => {
|
|
43
43
|
const {
|
|
44
|
-
id:
|
|
44
|
+
id: o,
|
|
45
45
|
target: r,
|
|
46
46
|
path: t,
|
|
47
|
-
label:
|
|
47
|
+
label: s,
|
|
48
48
|
themeName: n = "anchor",
|
|
49
49
|
customTheme: c,
|
|
50
|
-
tokens:
|
|
50
|
+
tokens: m,
|
|
51
51
|
nextLinkProps: e,
|
|
52
|
-
children:
|
|
52
|
+
children: h,
|
|
53
53
|
as: b,
|
|
54
|
-
childItems:
|
|
54
|
+
childItems: p,
|
|
55
55
|
...u
|
|
56
|
-
} = i, l =
|
|
57
|
-
return t == null ||
|
|
58
|
-
|
|
56
|
+
} = i, l = E(null);
|
|
57
|
+
return t == null || s == null ? null : /* @__PURE__ */ y(
|
|
58
|
+
T,
|
|
59
59
|
{
|
|
60
60
|
...u,
|
|
61
61
|
themeName: `${n}`,
|
|
62
|
-
tokens:
|
|
62
|
+
tokens: m,
|
|
63
63
|
customTheme: c,
|
|
64
64
|
nextLinkProps: {
|
|
65
65
|
scroll: !1,
|
|
@@ -67,46 +67,46 @@ const C = (i) => {
|
|
|
67
67
|
...e
|
|
68
68
|
},
|
|
69
69
|
ref: l,
|
|
70
|
-
key: `link-${
|
|
70
|
+
key: `link-${o}`,
|
|
71
71
|
target: r ?? "_self",
|
|
72
72
|
as: b
|
|
73
73
|
},
|
|
74
|
-
$.isValidElement(
|
|
74
|
+
$.isValidElement(h) ? h : s
|
|
75
75
|
);
|
|
76
76
|
}, R = (i) => {
|
|
77
77
|
const {
|
|
78
|
-
menuItems:
|
|
78
|
+
menuItems: o,
|
|
79
79
|
children: r,
|
|
80
80
|
themeName: t = "menuItem",
|
|
81
|
-
tokens:
|
|
81
|
+
tokens: s,
|
|
82
82
|
customTheme: n,
|
|
83
83
|
menuLinkComponent: c,
|
|
84
|
-
buttonLinkComponent:
|
|
84
|
+
buttonLinkComponent: m
|
|
85
85
|
} = i;
|
|
86
|
-
return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens:
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
var
|
|
89
|
-
const { id:
|
|
86
|
+
return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens: s, customTheme: n, children: [
|
|
87
|
+
/* @__PURE__ */ k(N, { themeName: `${t}.container`, tokens: s, customTheme: n, children: o == null ? void 0 : o.map((e) => {
|
|
88
|
+
var f;
|
|
89
|
+
const { id: h, path: b, label: p, as: u, ...l } = e ?? {}, d = { ...s, ...e.tokens };
|
|
90
90
|
if ((e == null ? void 0 : e.path) == null || e.id == null)
|
|
91
91
|
return null;
|
|
92
|
-
const a = (
|
|
93
|
-
return /* @__PURE__ */
|
|
92
|
+
const a = (f = e.path) != null && f.startsWith("#") ? "button" : "a";
|
|
93
|
+
return /* @__PURE__ */ k(
|
|
94
94
|
N,
|
|
95
95
|
{
|
|
96
96
|
themeName: `${t}.innerContent`,
|
|
97
97
|
tokens: d,
|
|
98
98
|
customTheme: n,
|
|
99
|
-
children: a === "button" ? /* @__PURE__ */
|
|
100
|
-
|
|
99
|
+
children: a === "button" ? /* @__PURE__ */ k(
|
|
100
|
+
g,
|
|
101
101
|
{
|
|
102
102
|
...l,
|
|
103
103
|
...e,
|
|
104
104
|
themeName: `${t}.button`,
|
|
105
105
|
tokens: d,
|
|
106
106
|
customTheme: n,
|
|
107
|
-
as: u ??
|
|
107
|
+
as: u ?? m
|
|
108
108
|
}
|
|
109
|
-
) : /* @__PURE__ */
|
|
109
|
+
) : /* @__PURE__ */ k(
|
|
110
110
|
B,
|
|
111
111
|
{
|
|
112
112
|
...l,
|
package/index34.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react"),s=require("./index67.js"),a=require("./
|
|
2
|
+
"use strict";const r=require("react"),s=require("./index67.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
package/index35.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"),d=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index122.js"),x=require("./index11.js"),O=require("./index101.js"),y=require("./index125.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...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=C;
|
package/index35.mjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as g, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as h } from "react";
|
|
4
4
|
import { useOverlayTriggerState as O } from "react-stately";
|
|
5
|
-
import d from "./
|
|
5
|
+
import d from "./index122.mjs";
|
|
6
6
|
import C from "./index11.mjs";
|
|
7
|
-
import y from "./
|
|
8
|
-
import B from "./
|
|
7
|
+
import y from "./index101.mjs";
|
|
8
|
+
import B from "./index125.mjs";
|
|
9
9
|
import A from "./index36.mjs";
|
|
10
10
|
const I = (e) => {
|
|
11
11
|
const {
|
package/index36.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import p from "react";
|
|
4
4
|
import { useSwiperController as N } from "./index71.mjs";
|
|
5
|
-
import
|
|
5
|
+
import l from "./index25.mjs";
|
|
6
6
|
import I from "./index6.mjs";
|
|
7
7
|
import $ from "./index14.mjs";
|
|
8
|
-
const
|
|
8
|
+
const E = (f) => {
|
|
9
9
|
var c;
|
|
10
|
-
const { title:
|
|
11
|
-
return !
|
|
10
|
+
const { title: o, button: i, 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 !o && !i && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
|
|
12
12
|
r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
e && (
|
|
13
|
+
(o || i || e) && /* @__PURE__ */ d(l, { themeName: `${n}.container`, tokens: m, children: [
|
|
14
|
+
o && /* @__PURE__ */ s(l, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: o }),
|
|
15
|
+
i && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...i }),
|
|
16
|
+
e && (p.isValidElement(e) ? p.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
|
|
17
17
|
] })
|
|
18
18
|
] });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
E as default
|
|
22
22
|
};
|
package/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),a=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("./index98.js"),m=require("react"),x=require("./index69.js"),A=require("./index25.js"),q=require("./index99.js"),h=require("./index78.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:d}=a.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(A.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...o.collection].map(i=>r.jsx(q,{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
5
|
import { AccordionContextProvider as p } from "./index69.mjs";
|
|
6
6
|
import { BoxWithForwardRef as u } from "./index25.mjs";
|
|
7
|
-
import l from "./
|
|
8
|
-
import A from "./
|
|
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(
|
package/index6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),a=require("react"),c=require("react-aria"),P=require("./index64.js"),x=a.forwardRef((e,t)=>{var R;const{as:s="a",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=c.useLink({...e,...o,href:e.href??((R=o==null?void 0:o.href)==null?void 0:R.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=P(f,m,h);return n.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...o,...d,className:j,children:l})})}),b=a.forwardRef((e,t)=>{const{as:s="button",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=c.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=P(f,m,h),{onPress:R,onFocusChange:N,...C}=d;return n.jsx(c.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...C,className:j,children:l})})}),F=a.forwardRef((e,t)=>{const{as:s}=e;return s==="a"?n.jsx(x,{ref:t,...e}):n.jsx(b,{ref:t,...e})}),B=e=>{const{as:t}=e,s=a.useRef(null);return t==="a"?n.jsx(x,{ref:s,...e}):n.jsx(b,{ref:s,...e})};B.displayName="Button";exports.Anchor=x;exports.ButtonWithForwardRef=F;exports.default=B;
|
package/index6.mjs
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import { useLink as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
(
|
|
8
|
-
var
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import C, { useRef as T } from "react";
|
|
4
|
+
import { useLink as k, FocusRing as P, useButton as w } from "react-aria";
|
|
5
|
+
import R from "./index64.mjs";
|
|
6
|
+
const b = C.forwardRef(
|
|
7
|
+
(e, t) => {
|
|
8
|
+
var g;
|
|
9
9
|
const {
|
|
10
10
|
as: n = "a",
|
|
11
|
-
handlePress:
|
|
12
|
-
children:
|
|
11
|
+
handlePress: a,
|
|
12
|
+
children: u,
|
|
13
13
|
as: r,
|
|
14
|
-
customTheme:
|
|
15
|
-
tokens:
|
|
16
|
-
themeName:
|
|
17
|
-
nextLinkProps:
|
|
18
|
-
...
|
|
19
|
-
} =
|
|
14
|
+
customTheme: m,
|
|
15
|
+
tokens: i,
|
|
16
|
+
themeName: f = "button",
|
|
17
|
+
nextLinkProps: o,
|
|
18
|
+
...h
|
|
19
|
+
} = e, c = t, { linkProps: l } = k(
|
|
20
20
|
{
|
|
21
|
-
...
|
|
22
|
-
...
|
|
23
|
-
href:
|
|
21
|
+
...e,
|
|
22
|
+
...o,
|
|
23
|
+
href: e.href ?? ((g = o == null ? void 0 : o.href) == null ? void 0 : g.toString()),
|
|
24
24
|
elementType: r == null ? void 0 : r.toString(),
|
|
25
|
-
onPress:
|
|
25
|
+
onPress: a
|
|
26
26
|
},
|
|
27
|
-
|
|
28
|
-
),
|
|
29
|
-
return /* @__PURE__ */
|
|
27
|
+
t ?? c
|
|
28
|
+
), d = R(f, i, m);
|
|
29
|
+
return /* @__PURE__ */ s(P, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...o, ...h, className: d, children: u }) });
|
|
30
30
|
}
|
|
31
|
-
),
|
|
31
|
+
), B = C.forwardRef((e, t) => {
|
|
32
32
|
const {
|
|
33
33
|
as: n = "button",
|
|
34
|
-
handlePress:
|
|
35
|
-
children:
|
|
34
|
+
handlePress: a,
|
|
35
|
+
children: u,
|
|
36
36
|
as: r,
|
|
37
|
-
customTheme:
|
|
38
|
-
tokens:
|
|
39
|
-
themeName:
|
|
40
|
-
isDisabled:
|
|
41
|
-
...
|
|
42
|
-
} =
|
|
43
|
-
{ ...
|
|
44
|
-
|
|
45
|
-
),
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
}),
|
|
48
|
-
(
|
|
49
|
-
const { as: n } =
|
|
50
|
-
return n === "a" ? /* @__PURE__ */
|
|
37
|
+
customTheme: m,
|
|
38
|
+
tokens: i,
|
|
39
|
+
themeName: f = "button",
|
|
40
|
+
isDisabled: o = !1,
|
|
41
|
+
...h
|
|
42
|
+
} = e, c = t, { buttonProps: l } = w(
|
|
43
|
+
{ ...e, isDisabled: o, elementType: r, onPress: a },
|
|
44
|
+
t ?? c
|
|
45
|
+
), d = R(f, i, m), { onPress: g, onFocusChange: F, ...N } = h;
|
|
46
|
+
return /* @__PURE__ */ s(P, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...N, className: d, children: u }) });
|
|
47
|
+
}), A = C.forwardRef(
|
|
48
|
+
(e, t) => {
|
|
49
|
+
const { as: n } = e;
|
|
50
|
+
return n === "a" ? /* @__PURE__ */ s(b, { ref: t, ...e }) : /* @__PURE__ */ s(B, { ref: t, ...e });
|
|
51
51
|
}
|
|
52
|
-
),
|
|
53
|
-
const { as:
|
|
54
|
-
return
|
|
55
|
-
}
|
|
52
|
+
), y = (e) => {
|
|
53
|
+
const { as: t } = e, n = T(null);
|
|
54
|
+
return t === "a" ? /* @__PURE__ */ s(b, { ref: n, ...e }) : /* @__PURE__ */ s(B, { ref: n, ...e });
|
|
55
|
+
};
|
|
56
|
+
y.displayName = "Button";
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
b as Anchor,
|
|
59
|
+
A as ButtonWithForwardRef,
|
|
60
|
+
y as default
|
|
60
61
|
};
|
package/index65.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("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index126.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:r,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
|
package/index65.mjs
CHANGED
package/index66.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"),g=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index126.js"),r=require("react"),v=require("react-stately"),y=require("./index101.js"),[x,R]=g.default();function q(i){const{children:l,defaultSelectedKey:s,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=r.useRef(null),P=r.useRef(null),n=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:u}=y({type:c},n),f=r.useMemo(()=>({overlayProps:u,defaultSelectedKey:s,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:P,openButtonProps:o,openButtonRef:d}}),[n,s,o,u]);return S.jsx(R,{value:f,children:l})}exports.SidePanelContextProvider=q;exports.useSidePanel=x;
|