@okam/stack-ui 1.36.1 → 1.37.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/CHANGELOG.md +14 -0
- package/components/Lightbox/interface.d.ts +2 -0
- package/index111.js +1 -1
- package/index111.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index132.js +1 -1
- package/index132.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +4 -4
- package/index134.js +1 -1
- package/index134.mjs +2 -2
- package/index135.js +1 -1
- package/index135.mjs +9 -9
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index152.js +1 -1
- package/index152.mjs +46 -12
- package/index153.js +2 -1
- package/index153.mjs +13 -57
- package/index154.js +1 -1
- package/index154.mjs +30 -46
- package/index155.js +1 -2
- package/index155.mjs +57 -13
- package/index156.js +1 -1
- package/index156.mjs +11 -29
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index162.js +1 -1
- package/index162.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index196.js +1 -1
- package/index196.mjs +122 -138
- package/index197.js +1 -1
- package/index197.mjs +129 -192
- package/index198.js +1 -1
- package/index198.mjs +44 -22
- package/index199.js +1 -1
- package/index199.mjs +14 -49
- package/index200.js +1 -1
- package/index200.mjs +93 -46
- package/index201.js +1 -1
- package/index201.mjs +98 -89
- package/index202.js +1 -1
- package/index202.mjs +5 -72
- package/index203.js +1 -1
- package/index203.mjs +3 -68
- package/index204.js +1 -1
- package/index204.mjs +125 -7
- package/index205.js +1 -1
- package/index205.mjs +29 -11
- package/index206.js +1 -1
- package/index206.mjs +40 -113
- package/index207.js +1 -1
- package/index207.mjs +41 -131
- package/index208.js +1 -1
- package/index208.mjs +36 -43
- package/index209.js +1 -1
- package/index209.mjs +110 -11
- package/index210.js +1 -1
- package/index210.mjs +59 -77
- package/index211.js +1 -1
- package/index211.mjs +94 -99
- package/index212.js +1 -1
- package/index212.mjs +98 -5
- package/index213.js +1 -1
- package/index213.mjs +140 -3
- package/index214.js +1 -1
- package/index214.mjs +191 -119
- package/index215.js +1 -1
- package/index215.mjs +22 -29
- package/index216.js +1 -1
- package/index216.mjs +49 -51
- package/index217.js +1 -1
- package/index217.mjs +47 -43
- package/index218.js +1 -1
- package/index218.mjs +95 -35
- package/index219.js +1 -1
- package/index219.mjs +72 -114
- package/index220.js +1 -1
- package/index220.mjs +67 -76
- package/index221.js +1 -1
- package/index221.mjs +7 -101
- package/index222.js +1 -1
- package/index222.mjs +12 -98
- package/index250.js +1 -1
- package/index250.mjs +1 -1
- package/index255.js +1 -1
- package/index255.mjs +5 -5
- package/index256.js +1 -1
- package/index256.mjs +1 -1
- package/index257.js +1 -1
- package/index257.mjs +4 -4
- package/index258.js +1 -1
- package/index258.mjs +1 -1
- package/index259.js +1 -1
- package/index259.mjs +1 -1
- package/index260.js +1 -1
- package/index260.mjs +4 -4
- package/index261.js +1 -1
- package/index261.mjs +4 -4
- package/index262.js +1 -1
- package/index262.mjs +1 -1
- package/index263.js +1 -1
- package/index263.mjs +4 -4
- package/index264.js +1 -1
- package/index264.mjs +4 -4
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -4
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +1 -1
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +4 -4
- package/index272.js +1 -1
- package/index272.mjs +1 -1
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +4 -4
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +1 -1
- package/index277.js +1 -1
- package/index277.mjs +4 -4
- package/index278.js +1 -1
- package/index278.mjs +4 -4
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +4 -4
- package/index282.js +1 -1
- package/index282.mjs +1 -1
- package/index283.js +1 -1
- package/index283.mjs +1 -1
- package/index284.js +1 -1
- package/index284.mjs +1 -1
- package/index285.js +1 -1
- package/index285.mjs +4 -4
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +5 -5
- package/index310.js +1 -1
- package/index310.mjs +1 -1
- package/index9.js +1 -1
- package/index9.mjs +28 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.37.0 (2025-05-22)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **stack-ui:** add conditional rendering for trigger and close buttons in Lightbox component ([313716e](https://github.com/OKAMca/stack/commit/313716e))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **stack-ui:** remove hardcoded tokens in Lightbox component ([99cdfbf](https://github.com/OKAMca/stack/commit/99cdfbf))
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Jerome Trottier
|
|
14
|
+
|
|
1
15
|
## 1.31.0 (2025-05-01)
|
|
2
16
|
|
|
3
17
|
### 🚀 Features
|
|
@@ -12,6 +12,8 @@ export interface LightboxProps<T = TToken> extends TDefaultComponent<T>, Overlay
|
|
|
12
12
|
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
13
13
|
closeButton?: TCloseButtonProps;
|
|
14
14
|
transitionComponent?: FunctionComponent<TTransition>;
|
|
15
|
+
showTriggerButton?: boolean;
|
|
16
|
+
showCloseButton?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export interface TLightboxProps<T = TToken> extends LightboxProps<T> {
|
|
17
19
|
label: string;
|
package/index111.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index78.js"),F=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index78.js"),F=require("./index156.js"),i=require("./index27.js"),w=require("./index6.js"),C=require("./index14.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:p}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},A=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.useUpdateEffect(()=>{a==null||a(o)},[o]),e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:h,children:[e.jsx(m.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(w.ButtonWithForwardRef,{...$,"aria-expanded":o,handlePress:A,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{isVisible:o,themeName:`${t}.region`,...p,tokens:n,children:e.jsx(i.default,{themeName:`${t}.content`,tokens:n,children:e.jsx(m.FocusScope,{autoFocus:!0,children:k})})})]})};module.exports=I;
|
package/index111.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as F } from "react";
|
|
|
4
4
|
import { FocusRing as I, FocusScope as R } from "react-aria";
|
|
5
5
|
import { useUpdateEffect as w } from "react-use";
|
|
6
6
|
import { useAccordionCtx as B } from "./index78.mjs";
|
|
7
|
-
import C from "./
|
|
7
|
+
import C from "./index156.mjs";
|
|
8
8
|
import i from "./index27.mjs";
|
|
9
9
|
import { ButtonWithForwardRef as D } from "./index6.mjs";
|
|
10
10
|
import K from "./index14.mjs";
|
package/index113.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("./
|
|
2
|
+
"use strict";const n=require("./index155.js"),p=require("react-aria");function P(o,s,t){const{type:a="dialog"}=o,{triggerProps:{onPress:l,...i},overlayProps:g}=p.useOverlayTrigger({type:a},s,t),e={handlePress:l,...i},r=n.useSlotId();return{openTriggerProps:{"aria-labelledby":r,...e},triggerProps:e,labelProps:{id:r},overlayProps:{...g,"aria-labelledby":r}}}module.exports=P;
|
package/index113.mjs
CHANGED
package/index114.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),M=require("./
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),M=require("./index152.js"),n=require("./index126.js"),o=require("./index73.js"),N=require("./index153.js"),T=p=>{const{slides:c,slidesPerView:d=1,spaceBetween:u=50,themeName:r,tokens:s,customTheme:m,modules:i,a11y:t,children:w=e=>a.jsx(N,{...e}),...h}=p,b=o(`${r}.slide.wrapper`,s),x=o(`${r}.swiper.swiper`,s,m),g=o(`${r}.swiper.wrapper`,s),y=["A11y"],S=[...(i==null?void 0:i.filter(e=>e!=="Pagination"))??[],...y].map(e=>M[e]),{itemRoleDescriptionMessage:q="slide",slideRole:R="group",containerRoleDescriptionMessage:f="carousel"}=t??{};return a.jsx(n.Swiper,{tabIndex:0,...h,watchSlidesProgress:!0,role:"group","aria-roledescription":f??void 0,slidesPerView:d,spaceBetween:u,className:x,wrapperClass:g,modules:S,keyboard:{enabled:!0,onlyInViewport:!1},a11y:{...t,enabled:!1},children:c.map(e=>{const{id:l,title:j}=e;return a.jsx(n.SwiperSlide,{className:b,...j?{"aria-labelledby":l}:{"aria-label":e.ariaLabel},role:R,"aria-roledescription":q??void 0,children:w({...e,themeName:`${r}.slide`,tokens:s})},l)})})};module.exports=T;
|
package/index114.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as M from "./
|
|
2
|
+
import * as M from "./index152.mjs";
|
|
3
3
|
import { Swiper as N, SwiperSlide as $ } from "./index126.mjs";
|
|
4
4
|
import a from "./index73.mjs";
|
|
5
|
-
import I from "./
|
|
5
|
+
import I from "./index153.mjs";
|
|
6
6
|
const D = (p) => {
|
|
7
7
|
const {
|
|
8
8
|
slides: n,
|
package/index115.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index27.js"),p=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index27.js"),p=require("./index154.js"),d=a=>{const{themeName:r,tokens:i,slides:t,activeIndex:s,paginationGroupLabel:n}=a;return e.jsx(l.default,{as:"div",themeName:`${r}.wrapper`,tokens:i,role:"group","aria-label":n,children:e.jsx(c.FocusScope,{children:t.map((o,u)=>e.jsx(p,{index:u,activeIndex:s,slides:t,themeName:r,tokens:i},JSON.stringify(o)))})})};module.exports=d;
|
package/index115.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { FocusScope as p } from "react-aria";
|
|
3
3
|
import s from "./index27.mjs";
|
|
4
|
-
import u from "./
|
|
4
|
+
import u from "./index154.mjs";
|
|
5
5
|
const h = (i) => {
|
|
6
6
|
const { themeName: o, tokens: r, slides: a, activeIndex: t, paginationGroupLabel: n } = i;
|
|
7
7
|
return /* @__PURE__ */ e(
|
package/index123.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index167.js"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index167.js"),l=require("./index155.js"),f=require("./index171.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
|
package/index123.mjs
CHANGED
package/index132.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index219.js"),r=require("react"),u=require("./index178.js"),a=require("@react-aria/i18n"),c=require("./index124.js");function d(e){return e&&e.__esModule?e.default:e}function m(e){let{onDismiss:t,...i}=e,s=a.useLocalizedStringFormatter(d(o),"@react-aria/overlays"),n=u.useLabels(i,s.format("dismiss")),l=()=>{t&&t()};return r.createElement(c.VisuallyHidden,null,r.createElement("button",{...n,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}exports.DismissButton=m;
|
package/index132.mjs
CHANGED
package/index133.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index220.js"),b=require("./index213.js"),m=require("./index216.js"),g=require("./index218.js"),D=require("./index123.js"),q=require("./index164.js");function C(a,r){let{triggerRef:d,popoverRef:o,groupRef:e,isNonModal:s,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c,...n}=a,u=n.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:O}=m.useOverlay({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:!0,isDismissable:!s||u,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c},e??o),{overlayProps:P,arrowProps:y,placement:f}=b.useOverlayPosition({...n,targetRef:d,overlayRef:o,isOpen:r.isOpen,onClose:s&&!u?r.close:null});return g.usePreventScroll({isDisabled:s||!r.isOpen}),q.useLayoutEffect(()=>{if(r.isOpen&&o.current){var i,l;return s?t.keepVisible((i=e==null?void 0:e.current)!==null&&i!==void 0?i:o.current):t.ariaHideOutside([(l=e==null?void 0:e.current)!==null&&l!==void 0?l:o.current])}},[s,r.isOpen,o,e]),{popoverProps:D.mergeProps(v,P),arrowProps:y,underlayProps:O,placement:f}}exports.usePopover=C;
|
package/index133.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { keepVisible as v, ariaHideOutside as O } from "./
|
|
2
|
-
import { useOverlayPosition as P } from "./
|
|
3
|
-
import { useOverlay as y } from "./
|
|
4
|
-
import { usePreventScroll as x } from "./
|
|
1
|
+
import { keepVisible as v, ariaHideOutside as O } from "./index220.mjs";
|
|
2
|
+
import { useOverlayPosition as P } from "./index213.mjs";
|
|
3
|
+
import { useOverlay as y } from "./index216.mjs";
|
|
4
|
+
import { usePreventScroll as x } from "./index218.mjs";
|
|
5
5
|
import { mergeProps as g } from "./index123.mjs";
|
|
6
6
|
import { useLayoutEffect as D } from "./index164.mjs";
|
|
7
7
|
function S(p, o) {
|
package/index134.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index221.js"),C=require("./index222.js"),f=require("@react-aria/focus"),e=require("react"),S=require("react-dom"),b=require("./index166.js"),l=e.createContext(null);function P(t){let c=b.useIsSSR(),{portalContainer:r=c?null:document.body,isExiting:s}=t,[o,a]=e.useState(!1),u=e.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:i}=d.useUNSAFE_PortalContext();if(!t.portalContainer&&i&&(r=i()),!r)return null;let n=t.children;return t.disableFocusManagement||(n=e.createElement(f.FocusScope,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!s},n)),n=e.createElement(l.Provider,{value:u},e.createElement(C.ClearPressResponder,null,n)),S.createPortal(n,r)}exports.Overlay=P;exports.OverlayContext=l;
|
package/index134.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useUNSAFE_PortalContext as f } from "./
|
|
2
|
-
import { ClearPressResponder as u } from "./
|
|
1
|
+
import { useUNSAFE_PortalContext as f } from "./index221.mjs";
|
|
2
|
+
import { ClearPressResponder as u } from "./index222.mjs";
|
|
3
3
|
import { FocusScope as m } from "@react-aria/focus";
|
|
4
4
|
import o, { useState as d, useMemo as $ } from "react";
|
|
5
5
|
import b from "react-dom";
|
package/index135.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index205.js"),e=require("./index211.js"),i=require("./index200.js"),c=require("./index210.js"),t=require("./index208.js"),a=require("./index209.js"),l=require("./index204.js"),s=require("./index207.js"),d=require("./index206.js");function u(r){switch(r){case"buddhist":return new n.BuddhistCalendar;case"ethiopic":return new e.EthiopicCalendar;case"ethioaa":return new e.EthiopicAmeteAlemCalendar;case"coptic":return new e.CopticCalendar;case"hebrew":return new c.HebrewCalendar;case"indian":return new t.IndianCalendar;case"islamic-civil":return new a.IslamicCivilCalendar;case"islamic-tbla":return new a.IslamicTabularCalendar;case"islamic-umalqura":return new a.IslamicUmalquraCalendar;case"japanese":return new l.JapaneseCalendar;case"persian":return new s.PersianCalendar;case"roc":return new d.TaiwanCalendar;case"gregory":default:return new i.GregorianCalendar}}exports.createCalendar=u;
|
package/index135.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BuddhistCalendar as a } from "./
|
|
2
|
-
import { CopticCalendar as r, EthiopicAmeteAlemCalendar as c, EthiopicCalendar as n } from "./
|
|
3
|
-
import { GregorianCalendar as t } from "./
|
|
4
|
-
import { HebrewCalendar as d } from "./
|
|
5
|
-
import { IndianCalendar as f } from "./
|
|
6
|
-
import { IslamicUmalquraCalendar as o, IslamicTabularCalendar as i, IslamicCivilCalendar as $ } from "./
|
|
7
|
-
import { JapaneseCalendar as s } from "./
|
|
8
|
-
import { PersianCalendar as b } from "./
|
|
9
|
-
import { TaiwanCalendar as p } from "./
|
|
1
|
+
import { BuddhistCalendar as a } from "./index205.mjs";
|
|
2
|
+
import { CopticCalendar as r, EthiopicAmeteAlemCalendar as c, EthiopicCalendar as n } from "./index211.mjs";
|
|
3
|
+
import { GregorianCalendar as t } from "./index200.mjs";
|
|
4
|
+
import { HebrewCalendar as d } from "./index210.mjs";
|
|
5
|
+
import { IndianCalendar as f } from "./index208.mjs";
|
|
6
|
+
import { IslamicUmalquraCalendar as o, IslamicTabularCalendar as i, IslamicCivilCalendar as $ } from "./index209.mjs";
|
|
7
|
+
import { JapaneseCalendar as s } from "./index204.mjs";
|
|
8
|
+
import { PersianCalendar as b } from "./index207.mjs";
|
|
9
|
+
import { TaiwanCalendar as p } from "./index206.mjs";
|
|
10
10
|
function q(e) {
|
|
11
11
|
switch (e) {
|
|
12
12
|
case "buddhist":
|
package/index145.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index249.js"),y=require("./index251.js"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index249.js"),y=require("./index251.js"),m=require("./index155.js"),q=require("./index123.js"),p=require("./index178.js"),L=require("@react-aria/i18n"),P=require("react"),f=require("./index252.js");function I(t,o,i){let{orientation:e="horizontal",keyboardActivation:n="automatic"}=t,{collection:l,selectionManager:c,disabledKeys:a}=o,{direction:r}=L.useLocale(),u=P.useMemo(()=>new y.TabsKeyboardDelegate(l,r,e,a),[l,a,e,r]),{collectionProps:b}=f.useSelectableCollection({ref:i,selectionManager:c,keyboardDelegate:u,selectOnFocus:n==="automatic",disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),s=m.useId();g.tabsIds.set(o,s);let d=p.useLabels({...t,id:s});return{tabListProps:{...q.mergeProps(b,d),role:"tablist","aria-orientation":e,tabIndex:void 0}}}exports.useTabList=I;
|
package/index145.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tabsIds as m } from "./index249.mjs";
|
|
2
2
|
import { TabsKeyboardDelegate as $ } from "./index251.mjs";
|
|
3
|
-
import { useId as p } from "./
|
|
3
|
+
import { useId as p } from "./index155.mjs";
|
|
4
4
|
import { mergeProps as u } from "./index123.mjs";
|
|
5
5
|
import { useLabels as x } from "./index178.mjs";
|
|
6
6
|
import { useLocale as g } from "@react-aria/i18n";
|
package/index152.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index223.js"),r=require("./index224.js"),t=require("./index225.js"),o=require("./index226.js"),i=require("./index227.js"),a=require("./index228.js"),c=require("./index229.js"),n=require("./index230.js"),u=require("./index231.js"),s=require("./index232.js"),f=require("./index233.js"),l=require("./index234.js"),q=require("./index235.js"),d=require("./index236.js"),b=require("./index237.js"),v=require("./index238.js"),y=require("./index239.js"),g=require("./index240.js"),p=require("./index241.js"),C=require("./index242.js"),h=require("./index243.js"),m=require("./index244.js"),E=require("./index245.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
|
package/index152.mjs
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import l from "./
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
1
|
+
import { default as o } from "./index223.mjs";
|
|
2
|
+
import { default as f } from "./index224.mjs";
|
|
3
|
+
import { default as l } from "./index225.mjs";
|
|
4
|
+
import { default as d } from "./index226.mjs";
|
|
5
|
+
import { default as p } from "./index227.mjs";
|
|
6
|
+
import { default as x } from "./index228.mjs";
|
|
7
|
+
import { default as c } from "./index229.mjs";
|
|
8
|
+
import { default as E } from "./index230.mjs";
|
|
9
|
+
import { default as b } from "./index231.mjs";
|
|
10
|
+
import { default as y } from "./index232.mjs";
|
|
11
|
+
import { default as h } from "./index233.mjs";
|
|
12
|
+
import { default as M } from "./index234.mjs";
|
|
13
|
+
import { default as A } from "./index235.mjs";
|
|
14
|
+
import { default as N } from "./index236.mjs";
|
|
15
|
+
import { default as G } from "./index237.mjs";
|
|
16
|
+
import { default as S } from "./index238.mjs";
|
|
17
|
+
import { default as V } from "./index239.mjs";
|
|
18
|
+
import { default as j } from "./index240.mjs";
|
|
19
|
+
import { default as q } from "./index241.mjs";
|
|
20
|
+
import { default as B } from "./index242.mjs";
|
|
21
|
+
import { default as I } from "./index243.mjs";
|
|
22
|
+
import { default as L } from "./index244.mjs";
|
|
23
|
+
import { default as Q } from "./index245.mjs";
|
|
12
24
|
export {
|
|
13
|
-
|
|
25
|
+
y as A11y,
|
|
26
|
+
A as Autoplay,
|
|
27
|
+
b as Controller,
|
|
28
|
+
Q as EffectCards,
|
|
29
|
+
I as EffectCoverflow,
|
|
30
|
+
L as EffectCreative,
|
|
31
|
+
q as EffectCube,
|
|
32
|
+
j as EffectFade,
|
|
33
|
+
B as EffectFlip,
|
|
34
|
+
G as FreeMode,
|
|
35
|
+
S as Grid,
|
|
36
|
+
M as HashNavigation,
|
|
37
|
+
h as History,
|
|
38
|
+
f as Keyboard,
|
|
39
|
+
V as Manipulation,
|
|
40
|
+
l as Mousewheel,
|
|
41
|
+
d as Navigation,
|
|
42
|
+
p as Pagination,
|
|
43
|
+
c as Parallax,
|
|
44
|
+
x as Scrollbar,
|
|
45
|
+
N as Thumbs,
|
|
46
|
+
o as Virtual,
|
|
47
|
+
E as Zoom
|
|
14
48
|
};
|
package/index153.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),d=require("./index126.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
|
package/index153.mjs
CHANGED
|
@@ -1,59 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
d
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
n && !n.includes(f) ? n.push(f) : d.set(t, [
|
|
14
|
-
f
|
|
15
|
-
]);
|
|
16
|
-
}
|
|
17
|
-
return o(() => {
|
|
18
|
-
let n = t;
|
|
19
|
-
return () => {
|
|
20
|
-
u && u.unregister(a), d.delete(n);
|
|
21
|
-
};
|
|
22
|
-
}, [
|
|
23
|
-
t
|
|
24
|
-
]), $(() => {
|
|
25
|
-
let n = f.current;
|
|
26
|
-
return n && c(n), () => {
|
|
27
|
-
n && (f.current = null);
|
|
28
|
-
};
|
|
29
|
-
}), t;
|
|
30
|
-
}
|
|
31
|
-
function E(r, e) {
|
|
32
|
-
if (r === e) return r;
|
|
33
|
-
let c = d.get(r);
|
|
34
|
-
if (c)
|
|
35
|
-
return c.forEach((t) => t.current = e), e;
|
|
36
|
-
let f = d.get(e);
|
|
37
|
-
return f ? (f.forEach((t) => t.current = r), r) : e;
|
|
38
|
-
}
|
|
39
|
-
function R(r = []) {
|
|
40
|
-
let e = I(), [c, f] = s(e), t = b(() => {
|
|
41
|
-
f(function* () {
|
|
42
|
-
yield e, yield document.getElementById(e) ? e : void 0;
|
|
43
|
-
});
|
|
44
|
-
}, [
|
|
45
|
-
e,
|
|
46
|
-
f
|
|
47
|
-
]);
|
|
48
|
-
return o(t, [
|
|
49
|
-
e,
|
|
50
|
-
t,
|
|
51
|
-
...r
|
|
52
|
-
]), c;
|
|
53
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useSwiperSlide as d } from "./index126.mjs";
|
|
4
|
+
import p from "./index27.mjs";
|
|
5
|
+
import h from "./index3.mjs";
|
|
6
|
+
const S = (r) => {
|
|
7
|
+
const { themeName: e, title: t, tokens: s, id: n, children: m } = r, { isActive: l, isVisible: o } = d(), i = { ...s, isActive: l, isVisible: o };
|
|
8
|
+
return /* @__PURE__ */ c(p, { themeName: `${e}.container`, tokens: i, ...o ? {} : { inert: "true" }, children: [
|
|
9
|
+
t && /* @__PURE__ */ a(h, { themeName: `${e}.title`, tokens: i, id: n, children: t }),
|
|
10
|
+
m
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
54
13
|
export {
|
|
55
|
-
|
|
56
|
-
E as mergeIds,
|
|
57
|
-
I as useId,
|
|
58
|
-
R as useSlotId
|
|
14
|
+
S as default
|
|
59
15
|
};
|
package/index154.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),o=require("react-aria"),k=require("./index80.js"),m=require("./index6.js"),w=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=k.useSwiperController(),s=o.useFocusManager(),p=t===0?i.length-1:t-1,b=t===i.length-1?0:t+1,{keyboardProps:v}=o.useKeyboard({onKeyUp:n=>{n.key==="ArrowLeft"&&(n.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(p)),n.key==="ArrowRight"&&(n.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(b))}}),{pressProps:h}=o.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),f=i[t],r=t===x,{title:a,id:y}=f,u=a&&a.length>0;return P.jsx(m.default,{as:"button",tabIndex:0,role:"button","aria-current":r?"true":"false","aria-disabled":r,"aria-label":u?void 0:`${t+1} / ${i.length}`,"aria-labelledby":u?y:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=w;
|
package/index154.mjs
CHANGED
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
|
|
3
|
+
import { useSwiperController as w } from "./index80.mjs";
|
|
4
|
+
import g from "./index6.mjs";
|
|
5
|
+
const N = (d) => {
|
|
6
|
+
const { themeName: l, tokens: u, slides: o, activeIndex: p, index: t } = d, { controller: e } = w(), s = y(), m = t === 0 ? o.length - 1 : t - 1, c = t === o.length - 1 ? 0 : t + 1, { keyboardProps: b } = P({
|
|
7
|
+
onKeyUp: (i) => {
|
|
8
|
+
i.key === "ArrowLeft" && (i.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), i.key === "ArrowRight" && (i.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(c));
|
|
9
|
+
}
|
|
10
|
+
}), { pressProps: f } = k({
|
|
11
|
+
onPress: () => e == null ? void 0 : e.slideTo(t)
|
|
12
|
+
}), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
|
|
13
|
+
return /* @__PURE__ */ h(
|
|
14
|
+
g,
|
|
15
|
+
{
|
|
16
|
+
as: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
role: "button",
|
|
19
|
+
"aria-current": n ? "true" : "false",
|
|
20
|
+
"aria-disabled": n,
|
|
21
|
+
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
+
"aria-labelledby": a ? x : void 0,
|
|
23
|
+
...b,
|
|
24
|
+
...f,
|
|
25
|
+
themeName: `${l}.bullet`,
|
|
26
|
+
tokens: { ...u, active: n }
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
24
30
|
export {
|
|
25
|
-
|
|
26
|
-
A as Autoplay,
|
|
27
|
-
b as Controller,
|
|
28
|
-
Q as EffectCards,
|
|
29
|
-
I as EffectCoverflow,
|
|
30
|
-
L as EffectCreative,
|
|
31
|
-
q as EffectCube,
|
|
32
|
-
j as EffectFade,
|
|
33
|
-
B as EffectFlip,
|
|
34
|
-
G as FreeMode,
|
|
35
|
-
S as Grid,
|
|
36
|
-
M as HashNavigation,
|
|
37
|
-
h as History,
|
|
38
|
-
f as Keyboard,
|
|
39
|
-
V as Manipulation,
|
|
40
|
-
l as Mousewheel,
|
|
41
|
-
d as Navigation,
|
|
42
|
-
p as Pagination,
|
|
43
|
-
c as Parallax,
|
|
44
|
-
x as Scrollbar,
|
|
45
|
-
N as Thumbs,
|
|
46
|
-
o as Virtual,
|
|
47
|
-
E as Zoom
|
|
31
|
+
N as default
|
|
48
32
|
};
|
package/index155.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),d=require("./index126.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index164.js"),a=require("./index165.js"),l=require("react"),b=require("./index166.js");let $=!!(typeof window<"u"&&window.document&&window.document.createElement),f=new Map,s;typeof FinalizationRegistry<"u"&&(s=new FinalizationRegistry(r=>{f.delete(r)}));function i(r){let[e,c]=l.useState(r),n=l.useRef(null),t=b.useSSRSafeId(e),d=l.useRef(null);if(s&&s.register(d,t),$){const u=f.get(t);u&&!u.includes(n)?u.push(n):f.set(t,[n])}return o.useLayoutEffect(()=>{let u=t;return()=>{s&&s.unregister(d),f.delete(u)}},[t]),l.useEffect(()=>{let u=n.current;return u&&c(u),()=>{u&&(n.current=null)}}),t}function p(r,e){if(r===e)return r;let c=f.get(r);if(c)return c.forEach(t=>t.current=e),e;let n=f.get(e);return n?(n.forEach(t=>t.current=r),r):e}function y(r=[]){let e=i(),[c,n]=a.useValueEffect(e),t=l.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return o.useLayoutEffect(t,[e,t,...r]),c}exports.idsUpdaterMap=f;exports.mergeIds=p;exports.useId=i;exports.useSlotId=y;
|
package/index155.mjs
CHANGED
|
@@ -1,15 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import p from "./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useLayoutEffect as o } from "./index164.mjs";
|
|
2
|
+
import { useValueEffect as s } from "./index165.mjs";
|
|
3
|
+
import { useState as i, useRef as l, useEffect as $, useCallback as b } from "react";
|
|
4
|
+
import { useSSRSafeId as p } from "./index166.mjs";
|
|
5
|
+
let m = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new Map(), u;
|
|
6
|
+
typeof FinalizationRegistry < "u" && (u = new FinalizationRegistry((r) => {
|
|
7
|
+
d.delete(r);
|
|
8
|
+
}));
|
|
9
|
+
function I(r) {
|
|
10
|
+
let [e, c] = i(r), f = l(null), t = p(e), a = l(null);
|
|
11
|
+
if (u && u.register(a, t), m) {
|
|
12
|
+
const n = d.get(t);
|
|
13
|
+
n && !n.includes(f) ? n.push(f) : d.set(t, [
|
|
14
|
+
f
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
return o(() => {
|
|
18
|
+
let n = t;
|
|
19
|
+
return () => {
|
|
20
|
+
u && u.unregister(a), d.delete(n);
|
|
21
|
+
};
|
|
22
|
+
}, [
|
|
23
|
+
t
|
|
24
|
+
]), $(() => {
|
|
25
|
+
let n = f.current;
|
|
26
|
+
return n && c(n), () => {
|
|
27
|
+
n && (f.current = null);
|
|
28
|
+
};
|
|
29
|
+
}), t;
|
|
30
|
+
}
|
|
31
|
+
function E(r, e) {
|
|
32
|
+
if (r === e) return r;
|
|
33
|
+
let c = d.get(r);
|
|
34
|
+
if (c)
|
|
35
|
+
return c.forEach((t) => t.current = e), e;
|
|
36
|
+
let f = d.get(e);
|
|
37
|
+
return f ? (f.forEach((t) => t.current = r), r) : e;
|
|
38
|
+
}
|
|
39
|
+
function R(r = []) {
|
|
40
|
+
let e = I(), [c, f] = s(e), t = b(() => {
|
|
41
|
+
f(function* () {
|
|
42
|
+
yield e, yield document.getElementById(e) ? e : void 0;
|
|
43
|
+
});
|
|
44
|
+
}, [
|
|
45
|
+
e,
|
|
46
|
+
f
|
|
47
|
+
]);
|
|
48
|
+
return o(t, [
|
|
49
|
+
e,
|
|
50
|
+
t,
|
|
51
|
+
...r
|
|
52
|
+
]), c;
|
|
53
|
+
}
|
|
13
54
|
export {
|
|
14
|
-
|
|
55
|
+
d as idsUpdaterMap,
|
|
56
|
+
E as mergeIds,
|
|
57
|
+
I as useId,
|
|
58
|
+
R as useSlotId
|
|
15
59
|
};
|
package/index156.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index73.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
|
package/index156.mjs
CHANGED
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onPress: () => e == null ? void 0 : e.slideTo(t)
|
|
12
|
-
}), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
|
|
13
|
-
return /* @__PURE__ */ h(
|
|
14
|
-
g,
|
|
15
|
-
{
|
|
16
|
-
as: "button",
|
|
17
|
-
tabIndex: 0,
|
|
18
|
-
role: "button",
|
|
19
|
-
"aria-current": n ? "true" : "false",
|
|
20
|
-
"aria-disabled": n,
|
|
21
|
-
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
-
"aria-labelledby": a ? x : void 0,
|
|
23
|
-
...b,
|
|
24
|
-
...f,
|
|
25
|
-
themeName: `${l}.bullet`,
|
|
26
|
-
tokens: { ...u, active: n }
|
|
27
|
-
}
|
|
28
|
-
);
|
|
1
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import { useTransition as c, animated as g } from "@react-spring/web";
|
|
3
|
+
import l from "./index73.mjs";
|
|
4
|
+
const w = (e) => {
|
|
5
|
+
const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
|
|
6
|
+
from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
|
|
7
|
+
enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
|
|
8
|
+
leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
|
|
9
|
+
}), a = l(r, i, n);
|
|
10
|
+
return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
|
|
29
11
|
};
|
|
30
12
|
export {
|
|
31
|
-
|
|
13
|
+
w as default
|
|
32
14
|
};
|
package/index159.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const o=require("react/jsx-runtime"),c=require("./
|
|
2
|
+
"use strict";const o=require("react/jsx-runtime"),c=require("./index198.js"),O=require("@react-aria/focus"),W=require("./index123.js"),$=require("react"),q=require("react-aria"),r=require("./index27.js");function v(l){const{themeName:a="calendar",tokens:g,state:n,date:s}=l,d=$.useRef(null),{isUnavailable:k,cellProps:x,buttonProps:y,isSelected:t,isOutsideVisibleRange:u,isDisabled:b,formattedDate:C,isInvalid:S}=q.useCalendarCell(l,n,d),e=n==null?void 0:n.highlightedRange,h=e==null?void 0:e.start,m=e==null?void 0:e.end,f=e&&h?c.isSameDay(s,h):t,R=e&&m?c.isSameDay(s,m):t,{locale:P}=q.useLocale(),D=c.getDayOfWeek(s,P),j=t&&(f||D===0||s.day===1),p=t&&(R||D===6||s.day===s.calendar.getDaysInMonth(s)),{focusProps:N,isFocusVisible:F}=O.useFocusRing(),i={isInvalid:S,isDisabled:b,isUnavailable:k,isSelected:t,isFocusVisible:F,isOutsideVisibleRange:u,...g};return o.jsx(r.default,{as:"td",...x,"aria-disabled":!1,themeName:`${a}.cellContainer`,tokens:i,children:o.jsx(r.BoxWithForwardRef,{...W.mergeProps(y,N),ref:d,"aria-hidden":u,themeName:`${a}.cell`,tokens:{...i,isRoundedLeft:j,isRoundedRight:p},children:o.jsx(r.default,{themeName:`${a}.cellDate`,tokens:{...i,isSelectionStart:f,isSelectionEnd:R},children:C})})})}module.exports=v;
|