@okam/stack-ui 1.29.0 → 1.30.0
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 +2 -1
- 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/attributes.d.ts +2 -0
- 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/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 -4
- package/index104.js +1 -1
- package/index104.mjs +52 -11
- package/index105.js +1 -1
- package/index105.mjs +4 -14
- package/index106.js +1 -1
- package/index106.mjs +11 -23
- package/index107.js +1 -1
- package/index107.mjs +13 -22
- package/index108.js +1 -1
- package/index108.mjs +23 -39
- package/index109.js +1 -2
- package/index109.mjs +22 -12
- package/index11.js +1 -1
- package/index11.mjs +2 -2
- package/index110.js +1 -1
- package/index110.mjs +38 -7
- package/index111.js +2 -1
- package/index111.mjs +12 -21
- package/index112.js +1 -1
- package/index112.mjs +7 -38
- package/index113.js +1 -1
- package/index113.mjs +20 -48
- package/index114.js +1 -1
- package/index114.mjs +38 -40
- package/index115.js +1 -1
- package/index115.mjs +47 -11
- package/index116.js +1 -1
- package/index116.mjs +41 -26
- package/index117.js +1 -1
- package/index117.mjs +14 -20
- package/index118.js +1 -1
- package/index118.mjs +30 -8
- package/index119.js +1 -1
- package/index119.mjs +20 -30
- package/index120.js +1 -1
- package/index120.mjs +8 -14
- package/index121.js +1 -1
- package/index121.mjs +29 -16
- package/index122.js +1 -1
- package/index122.mjs +15 -21
- package/index123.js +1 -1
- package/index123.mjs +17 -11
- package/index124.js +1 -2
- package/index124.mjs +20 -21
- package/index125.js +1 -1
- package/index125.mjs +11 -12
- package/index126.js +2 -1
- package/index126.mjs +22 -46
- package/index127.js +1 -1
- package/index127.mjs +12 -241
- package/index128.js +1 -2
- package/index128.mjs +46 -13
- package/index129.js +1 -1
- package/index129.mjs +239 -28
- package/index13.js +1 -1
- package/index13.mjs +8 -5
- package/index130.js +2 -1
- package/index130.mjs +13 -51
- package/index131.js +1 -1
- package/index131.mjs +30 -27
- package/index132.js +1 -1
- package/index132.mjs +49 -19
- package/index133.js +1 -1
- package/index133.mjs +26 -61
- package/index134.js +1 -1
- package/index134.mjs +17 -91
- package/index135.js +1 -1
- package/index135.mjs +59 -29
- package/index136.js +1 -1
- package/index136.mjs +90 -117
- package/index137.js +1 -1
- package/index137.mjs +32 -26
- package/index138.js +1 -1
- package/index138.mjs +118 -121
- package/index139.js +1 -1
- package/index139.mjs +27 -134
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +122 -12
- package/index141.js +1 -1
- package/index141.mjs +131 -92
- package/index142.js +1 -1
- package/index142.mjs +12 -104
- package/index143.js +1 -1
- package/index143.mjs +95 -5
- package/index144.js +1 -1
- package/index144.mjs +106 -3
- package/index145.js +1 -1
- package/index145.mjs +5 -125
- package/index146.js +1 -1
- package/index146.mjs +3 -29
- package/index147.js +1 -1
- package/index147.mjs +113 -39
- package/index148.js +1 -1
- package/index148.mjs +19 -34
- package/index149.js +1 -1
- package/index149.mjs +40 -26
- package/index150.js +1 -1
- package/index150.mjs +29 -98
- package/index151.js +1 -1
- package/index151.mjs +28 -68
- package/index152.js +1 -1
- package/index152.mjs +90 -78
- package/index153.js +1 -1
- package/index153.mjs +78 -98
- package/index154.js +1 -1
- package/index154.mjs +101 -199
- package/index155.js +1 -1
- package/index155.mjs +98 -65
- package/index156.js +1 -1
- package/index156.mjs +185 -127
- package/index157.js +1 -1
- package/index157.mjs +54 -109
- package/index158.js +1 -1
- package/index158.mjs +126 -202
- package/index159.js +1 -1
- package/index159.mjs +104 -175
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +208 -60
- package/index161.js +1 -1
- package/index161.mjs +178 -246
- package/index162.js +1 -1
- package/index162.mjs +63 -91
- package/index163.js +1 -1
- package/index163.mjs +250 -166
- package/index164.js +1 -1
- package/index164.mjs +91 -78
- package/index165.js +1 -1
- package/index165.mjs +170 -54
- package/index166.js +1 -1
- package/index166.mjs +72 -114
- package/index167.js +1 -1
- package/index167.mjs +51 -109
- package/index168.js +1 -1
- package/index168.mjs +112 -108
- package/index169.js +1 -1
- package/index169.mjs +109 -65
- package/index170.js +1 -1
- package/index170.mjs +117 -105
- package/index171.js +1 -1
- package/index171.mjs +68 -48
- package/index172.js +1 -1
- package/index172.mjs +108 -91
- package/index173.js +1 -1
- package/index173.mjs +37 -55
- package/index174.js +1 -1
- package/index174.mjs +80 -43
- package/index175.js +1 -1
- package/index175.mjs +52 -81
- package/index176.js +1 -5
- package/index176.mjs +42 -66
- package/index177.js +1 -1
- package/index177.mjs +87 -1999
- package/index178.js +5 -1
- package/index178.mjs +79 -58
- package/index179.js +1 -1
- package/index179.mjs +1998 -175
- package/index18.js +1 -1
- package/index18.mjs +7 -7
- package/index180.js +1 -1
- package/index180.mjs +59 -5
- package/index181.js +1 -1
- package/index181.mjs +183 -125
- package/index182.js +1 -1
- package/index182.mjs +5 -179
- package/index183.js +1 -1
- package/index183.mjs +129 -8
- package/index184.js +1 -1
- package/index184.mjs +179 -3
- package/index185.js +1 -1
- package/index185.mjs +8 -35
- package/index186.js +1 -1
- package/index186.mjs +3 -5
- package/index187.js +1 -1
- package/index187.mjs +35 -28
- package/index188.js +1 -1
- package/index188.mjs +5 -6
- package/index189.js +1 -1
- package/index189.mjs +26 -310
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +6 -192
- package/index191.js +1 -1
- package/index191.mjs +339 -7
- package/index192.js +1 -1
- package/index192.mjs +180 -23
- package/index193.js +1 -1
- package/index193.mjs +6 -53
- package/index194.js +1 -1
- package/index194.mjs +24 -44
- package/index195.js +1 -1
- package/index195.mjs +55 -124
- package/index196.js +1 -1
- package/index196.mjs +46 -5
- package/index197.js +1 -1
- package/index197.mjs +108 -26
- package/index198.js +1 -1
- package/index198.mjs +32 -6
- package/index199.js +1 -1
- package/index199.mjs +5 -7
- package/index2.js +1 -1
- package/index2.mjs +19 -19
- 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 -5
- package/index202.js +1 -1
- package/index202.mjs +7 -5
- package/index203.js +1 -1
- package/index203.mjs +7 -9
- package/index204.js +1 -0
- package/index204.mjs +7 -0
- 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 +3 -3
- package/index24.js +1 -1
- package/index24.mjs +14 -14
- 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 +34 -33
- 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 +35 -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 +9 -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/index22.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),I=require("@react-aria/focus"),O=require("react"),P=require("react-aria"),f=require("react-hook-form"),m=require("./index64.js"),$=require("./index72.js"),y=require("./index3.js"),M=t=>{const{label:n,isRequired:u=!1,isDisabled:a=!1,required:i,disabled:R,errorMessage:o,fieldRef:l,children:g,themeName:e="textInput",tokens:b,customTheme:s,ariaLabel:h}=t,d=i??u,p=R??a,q=O.useRef(null),{errorMessageProps:j,inputProps:F,labelProps:v}=P.useTextField({"aria-label":h,...t,isRequired:d,isDisabled:p},q),{"aria-labelledby":D,...N}={...F,required:d,disabled:p},c={...b,isDisabled:a,isRequired:u,isError:!!o},T=m(`${e}.wrapper`,c,s),k=m(`${e}.label`,c,s),E=m(`${e}.input`,c,s),L=m(`${e}.container`,c,s);return r.jsxs("div",{children:[r.jsx(I.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:r.jsxs("div",{"aria-disabled":a,className:T,children:[n&&r.jsx("label",{className:k,...v,children:n}),r.jsxs("div",{className:L,children:[g,r.jsx("input",{...N,className:E,ref:x=>{l==null||l(x),q.current=x}})]})]})}),o&&r.jsx(y.default,{themeName:`${e}.errorMessage`,tokens:c,...j,children:o})]})},H=t=>{const{name:n,required:u,isRequired:a,minLength:i=0,maxLength:R=99999999,validation:o}=t,{register:l,formState:g}=f.useFormContext(),e=f.get(g.errors,n),b=(e==null?void 0:e.message)??void 0,{t:s}=$.useTranslation(),{ref:h,...d}=l(n,{required:u??a?s("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:i,message:s("FORM.ERROR.MIN_LENGTH",{length:i})},maxLength:{value:R,message:s("FORM.ERROR.MAX_LENGTH",{length:i})},...o});return r.jsx(M,{fieldRef:h,...d,...t,errorMessage:b})};exports.ReactHookFormInput=H;exports.default=M;
|
package/index22.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import { FocusRing as I } from "@react-aria/focus";
|
|
|
4
4
|
import { useRef as O } from "react";
|
|
5
5
|
import { useTextField as k } from "react-aria";
|
|
6
6
|
import { useFormContext as P, get as $ } from "react-hook-form";
|
|
7
|
-
import { useTranslation as C } from "react-i18next";
|
|
8
7
|
import d from "./index64.mjs";
|
|
8
|
+
import { useTranslation as C } from "./index72.mjs";
|
|
9
9
|
import D from "./index3.mjs";
|
|
10
10
|
const w = (s) => {
|
|
11
11
|
const {
|
|
@@ -50,7 +50,7 @@ const w = (s) => {
|
|
|
50
50
|
n && /* @__PURE__ */ c(D, { themeName: `${e}.errorMessage`, tokens: l, ...T, children: n })
|
|
51
51
|
] });
|
|
52
52
|
}, X = (s) => {
|
|
53
|
-
const { name: t, required: m, isRequired: a, minLength: i = 0, maxLength: p = 99999999, validation: n } = s, { register: o, formState: g } = P(), e = $(g.errors, t), R = (e == null ? void 0 : e.message) ?? void 0, { t: r } = C(
|
|
53
|
+
const { name: t, required: m, isRequired: a, minLength: i = 0, maxLength: p = 99999999, validation: n } = s, { register: o, formState: g } = P(), e = $(g.errors, t), R = (e == null ? void 0 : e.message) ?? void 0, { t: r } = C(), { ref: h, ...u } = o(t, {
|
|
54
54
|
required: m ?? a ? r("FORM.ERROR.REQUIRED") ?? "required" : !1,
|
|
55
55
|
minLength: {
|
|
56
56
|
value: i,
|
package/index23.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./index112.js"),S=require("./index14.js"),w=require("./index113.js"),x=require("./index114.js");function C({popoverPlacement:p="bottom start",tokens:r,customTheme:y,themeName:s="datePicker",icon:j="ArrowDown",description:c,buttonLabel:a,...n}){const i=g.useDatePickerState({...n}),t=k.useRef(null),{groupProps:P,fieldProps:d,labelProps:h,descriptionProps:q,buttonProps:l,dialogProps:v,calendarProps:$}=D.useDatePicker({...n},i,t),{label:u}={...n},m=o(`${s}.container`,r),b=o(`${s}.dateField`,r),f=o(`${s}.label`,r);return e.jsxs("div",{className:m,children:[u&&e.jsx("span",{...h,children:u}),c&&e.jsx("div",{...q,children:c}),e.jsx("div",{...P,ref:t,children:e.jsxs(R.default,{themeName:`${s}.button`,tokens:{...r},type:"button",...l,handlePress:l.onPress,children:[a&&e.jsx("p",{className:f,children:a}),e.jsxs("div",{className:b,children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${s}.icon`,tokens:{...r},icon:j})]})}),i.isOpen&&e.jsx(w.CalendarPopover,{triggerRef:t,state:i,placement:p,children:e.jsxs(F.Dialog,{...v,children:[e.jsxs("div",{children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(T,{...$})]})})]})}module.exports=C;
|
package/index23.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import { useRef as S } from "react";
|
|
|
6
6
|
import l from "./index64.mjs";
|
|
7
7
|
import j from "./index6.mjs";
|
|
8
8
|
import k from "./index26.mjs";
|
|
9
|
-
import { Dialog as w } from "./
|
|
9
|
+
import { Dialog as w } from "./index112.mjs";
|
|
10
10
|
import R from "./index14.mjs";
|
|
11
|
-
import { CalendarPopover as y } from "./
|
|
12
|
-
import f from "./
|
|
11
|
+
import { CalendarPopover as y } from "./index113.mjs";
|
|
12
|
+
import f from "./index114.mjs";
|
|
13
13
|
function M({
|
|
14
14
|
popoverPlacement: h = "bottom start",
|
|
15
15
|
tokens: r,
|
package/index24.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./index115.js"),C=require("./index112.js"),S=require("./index14.js"),T=require("./index113.js"),r=require("./index114.js");function w(i){const s=N.useDateRangePickerState(i),a=D.useRef(null),{labelProps:j,descriptionProps:P,groupProps:m,startFieldProps:c,endFieldProps:l,buttonProps:d,dialogProps:v,calendarProps:q}=$.useDateRangePicker(i,s,a),{label:u,buttonLabel:x,description:p,themeName:n="datePicker",tokens:t,popoverPlacement:k,icon:b}=i,g=o(`${n}.container`,t),h=o(`${n}.dateField`,t),R=o(`${n}.label`,t);return e.jsxs("div",{className:g,children:[u&&e.jsx("span",{...j,children:u}),p&&e.jsx("div",{...P,children:p}),e.jsx("div",{...m,ref:a,children:e.jsxs(f.default,{themeName:`${n}.button`,tokens:{...t},type:"button",...d,handlePress:d.onPress,children:[x&&e.jsx("p",{className:R,children:x}),e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:b??"ArrowDown"})]})}),s.isOpen&&e.jsx(T.CalendarPopover,{triggerRef:a,state:s,placement:k,children:e.jsxs(C.Dialog,{...v,children:[e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(F,{...q})]})})]})}module.exports=w;
|
package/index24.mjs
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useDateRangePicker as $ } from "@react-aria/datepicker";
|
|
4
4
|
import { useDateRangePickerState as x } from "@react-stately/datepicker";
|
|
5
|
-
import { useRef as
|
|
5
|
+
import { useRef as C } from "react";
|
|
6
6
|
import s from "./index64.mjs";
|
|
7
|
-
import
|
|
8
|
-
import S from "./
|
|
9
|
-
import { Dialog as j } from "./
|
|
7
|
+
import T from "./index6.mjs";
|
|
8
|
+
import S from "./index115.mjs";
|
|
9
|
+
import { Dialog as j } from "./index112.mjs";
|
|
10
10
|
import w from "./index14.mjs";
|
|
11
|
-
import { CalendarPopover as y } from "./
|
|
12
|
-
import i from "./
|
|
11
|
+
import { CalendarPopover as y } from "./index113.mjs";
|
|
12
|
+
import i from "./index114.mjs";
|
|
13
13
|
function K(a) {
|
|
14
|
-
const t = x(a), l =
|
|
14
|
+
const t = x(a), l = C(null), {
|
|
15
15
|
labelProps: u,
|
|
16
16
|
descriptionProps: v,
|
|
17
17
|
groupProps: b,
|
|
18
|
-
startFieldProps:
|
|
19
|
-
endFieldProps:
|
|
18
|
+
startFieldProps: m,
|
|
19
|
+
endFieldProps: c,
|
|
20
20
|
buttonProps: d,
|
|
21
21
|
dialogProps: g,
|
|
22
22
|
calendarProps: k
|
|
@@ -25,7 +25,7 @@ function K(a) {
|
|
|
25
25
|
p && /* @__PURE__ */ e("span", { ...u, children: p }),
|
|
26
26
|
f && /* @__PURE__ */ e("div", { ...v, children: f }),
|
|
27
27
|
/* @__PURE__ */ e("div", { ...b, ref: l, children: /* @__PURE__ */ n(
|
|
28
|
-
|
|
28
|
+
T,
|
|
29
29
|
{
|
|
30
30
|
themeName: `${o}.button`,
|
|
31
31
|
tokens: { ...r },
|
|
@@ -35,9 +35,9 @@ function K(a) {
|
|
|
35
35
|
children: [
|
|
36
36
|
h && /* @__PURE__ */ e("p", { className: F, children: h }),
|
|
37
37
|
/* @__PURE__ */ n("div", { className: P, children: [
|
|
38
|
-
/* @__PURE__ */ e(i, { ...c }),
|
|
39
|
-
" -",
|
|
40
38
|
/* @__PURE__ */ e(i, { ...m }),
|
|
39
|
+
" -",
|
|
40
|
+
/* @__PURE__ */ e(i, { ...c }),
|
|
41
41
|
t.validationState === "invalid" && "❌"
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ e(w, { themeName: `${o}.icon`, tokens: { ...r }, icon: N ?? "ArrowDown" })
|
|
@@ -46,9 +46,9 @@ function K(a) {
|
|
|
46
46
|
) }),
|
|
47
47
|
t.isOpen && /* @__PURE__ */ e(y, { triggerRef: l, state: t, placement: D, children: /* @__PURE__ */ n(j, { ...g, children: [
|
|
48
48
|
/* @__PURE__ */ n("div", { className: P, children: [
|
|
49
|
-
/* @__PURE__ */ e(i, { ...c }),
|
|
50
|
-
" -",
|
|
51
49
|
/* @__PURE__ */ e(i, { ...m }),
|
|
50
|
+
" -",
|
|
51
|
+
/* @__PURE__ */ e(i, { ...c }),
|
|
52
52
|
t.validationState === "invalid" && "❌"
|
|
53
53
|
] }),
|
|
54
54
|
/* @__PURE__ */ e(S, { ...k })
|
package/index26.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"),m=require("./index116.js"),P=require("@react-aria/calendar"),R=require("@react-aria/i18n"),p=require("@react-stately/calendar"),y=require("react"),c=require("./index64.js"),u=require("./index6.js"),h=require("./index14.js"),N=require("./index3.js"),T=require("./index117.js");function x({buttons:n,tokens:r,customTheme:w,themeName:a="calendar",...t}){var d,l;const{locale:q}=R.useLocale(),o=p.useCalendarState({...t,locale:q,createCalendar:m.createCalendar}),j=y.useRef(null),{calendarProps:C,prevButtonProps:s,nextButtonProps:i,title:$}=P.useCalendar({...t},o),f=c(`${a}.container`,r),v=c(`${a}.header`,r),g=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...C,ref:j,className:f,children:[e.jsxs("div",{className:v,children:[e.jsx(N.default,{as:"p",tokens:{size:"h6"},children:$}),e.jsxs("div",{className:g,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(T,{state:o})]})}x.displayName="Calendar";module.exports=x;
|
package/index26.mjs
CHANGED
|
@@ -1,53 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { createCalendar as
|
|
4
|
-
import { useCalendar as
|
|
3
|
+
import { createCalendar as y } from "./index116.mjs";
|
|
4
|
+
import { useCalendar as T } from "@react-aria/calendar";
|
|
5
5
|
import { useLocale as P } from "@react-aria/i18n";
|
|
6
6
|
import { useCalendarState as B } from "@react-stately/calendar";
|
|
7
|
-
import { useRef as
|
|
7
|
+
import { useRef as N } from "react";
|
|
8
8
|
import c from "./index64.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
function
|
|
9
|
+
import p from "./index6.mjs";
|
|
10
|
+
import f from "./index14.mjs";
|
|
11
|
+
import j from "./index3.mjs";
|
|
12
|
+
import w from "./index117.mjs";
|
|
13
|
+
function A({
|
|
14
|
+
buttons: e,
|
|
15
|
+
tokens: a,
|
|
16
|
+
customTheme: L,
|
|
17
|
+
themeName: o = "calendar",
|
|
18
|
+
...s
|
|
19
|
+
}) {
|
|
14
20
|
var l, m;
|
|
15
21
|
const { locale: h } = P(), d = B({
|
|
16
22
|
...s,
|
|
17
23
|
locale: h,
|
|
18
|
-
createCalendar:
|
|
19
|
-
}), C =
|
|
24
|
+
createCalendar: y
|
|
25
|
+
}), C = N(null), { calendarProps: u, prevButtonProps: n, nextButtonProps: i, title: $ } = T({ ...s }, d), v = c(`${o}.container`, a), g = c(`${o}.header`, a), x = c(`${o}.navigationButtonsContainer`, a);
|
|
20
26
|
return /* @__PURE__ */ t("div", { ...u, ref: C, className: v, children: [
|
|
21
27
|
/* @__PURE__ */ t("div", { className: g, children: [
|
|
22
|
-
/* @__PURE__ */ r(
|
|
28
|
+
/* @__PURE__ */ r(j, { as: "p", tokens: { size: "h6" }, children: $ }),
|
|
23
29
|
/* @__PURE__ */ t("div", { className: x, children: [
|
|
24
30
|
/* @__PURE__ */ r(
|
|
25
|
-
|
|
31
|
+
p,
|
|
26
32
|
{
|
|
27
|
-
themeName: `${
|
|
28
|
-
tokens: { ...
|
|
33
|
+
themeName: `${o}.navigationButtons`,
|
|
34
|
+
tokens: { ...a },
|
|
29
35
|
type: "button",
|
|
30
36
|
...n,
|
|
31
37
|
handlePress: n == null ? void 0 : n.onPress,
|
|
32
|
-
children: /* @__PURE__ */ r(
|
|
38
|
+
children: /* @__PURE__ */ r(f, { icon: ((l = e == null ? void 0 : e.buttonPrev) == null ? void 0 : l.icon) ?? "ArrowLeft" })
|
|
33
39
|
}
|
|
34
40
|
),
|
|
35
41
|
/* @__PURE__ */ r(
|
|
36
|
-
|
|
42
|
+
p,
|
|
37
43
|
{
|
|
38
|
-
themeName: `${
|
|
39
|
-
tokens: { ...
|
|
44
|
+
themeName: `${o}.navigationButtons`,
|
|
45
|
+
tokens: { ...a },
|
|
40
46
|
type: "button",
|
|
41
47
|
...i,
|
|
42
48
|
handlePress: i == null ? void 0 : i.onPress,
|
|
43
|
-
children: /* @__PURE__ */ r(
|
|
49
|
+
children: /* @__PURE__ */ r(f, { icon: ((m = e == null ? void 0 : e.buttonNext) == null ? void 0 : m.icon) ?? "ArrowRight" })
|
|
44
50
|
}
|
|
45
51
|
)
|
|
46
52
|
] })
|
|
47
53
|
] }),
|
|
48
|
-
/* @__PURE__ */ r(
|
|
54
|
+
/* @__PURE__ */ r(w, { state: d })
|
|
49
55
|
] });
|
|
50
56
|
}
|
|
57
|
+
A.displayName = "Calendar";
|
|
51
58
|
export {
|
|
52
|
-
|
|
59
|
+
A as default
|
|
53
60
|
};
|
package/index27.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index118.js"),d=require("./index119.js"),u=require("./index120.js"),m=s=>{const{children:o,transitionComponent:a=l,state:r,themeName:n,tokens:t,...i}=s;return e.jsx(c.OverlayContainer,{children:e.jsx(a,{themeName:`${n}.transition`,isVisible:r.isOpen,children:e.jsx(u,{themeName:n,tokens:t,state:r,...i,children:e.jsx(d,{themeName:n,tokens:t,...i,children:o})})})})};module.exports=m;
|
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;
|