@okam/stack-ui 1.35.4 → 1.35.5
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/index107.js +1 -1
- package/index107.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +2 -2
- package/index117.js +1 -1
- package/index117.mjs +1 -1
- package/index120.js +1 -1
- package/index120.mjs +239 -37
- package/index122.js +2 -1
- package/index122.mjs +39 -9
- package/index123.js +1 -2
- package/index123.mjs +10 -38
- package/index124.js +1 -1
- package/index124.mjs +37 -21
- package/index125.js +1 -1
- package/index125.mjs +8 -42
- package/index126.js +1 -1
- package/index126.mjs +22 -25
- package/index127.js +1 -1
- package/index127.mjs +42 -40
- package/index128.js +1 -2
- package/index128.mjs +25 -57
- package/index129.js +1 -1
- package/index129.mjs +41 -39
- package/index130.js +2 -1
- package/index130.mjs +57 -30
- package/index131.js +1 -1
- package/index131.mjs +38 -19
- package/index132.js +1 -1
- package/index132.mjs +30 -8
- package/index133.js +1 -1
- package/index133.mjs +20 -30
- package/index134.js +1 -1
- package/index134.mjs +8 -14
- package/index135.js +1 -1
- package/index135.mjs +29 -16
- package/index136.js +1 -1
- package/index136.mjs +15 -21
- package/index137.js +1 -1
- package/index137.mjs +17 -11
- package/index138.js +1 -2
- package/index138.mjs +17 -44
- package/index139.js +1 -1
- package/index139.mjs +47 -21
- package/index140.js +2 -1
- package/index140.mjs +19 -18
- package/index141.js +1 -1
- package/index141.mjs +21 -6
- package/index142.js +1 -1
- package/index142.mjs +6 -57
- package/index144.js +1 -1
- package/index144.mjs +57 -46
- package/index145.js +1 -1
- package/index145.mjs +46 -241
- package/index146.js +1 -1
- package/index146.mjs +1 -1
- package/index149.js +1 -1
- package/index149.mjs +5 -21
- package/index150.js +2 -1
- package/index150.mjs +49 -5
- package/index151.js +1 -2
- package/index151.mjs +20 -48
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +90 -27
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index23.js +1 -1
- package/index23.mjs +2 -2
- package/index24.js +1 -1
- package/index24.mjs +3 -3
- package/index25.js +1 -1
- package/index25.mjs +1 -1
- package/index26.js +1 -1
- package/index26.mjs +2 -2
- package/index28.js +1 -1
- package/index28.mjs +3 -3
- package/index29.js +1 -1
- package/index29.mjs +3 -3
- package/index30.js +1 -1
- package/index30.mjs +3 -3
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +2 -2
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index37.js +1 -1
- package/index37.mjs +1 -1
- package/index38.js +1 -1
- package/index38.mjs +2 -2
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +1 -1
- package/index72.mjs +1 -1
- package/index74.js +1 -1
- package/index74.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +1 -1
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index77.js +1 -1
- package/index77.mjs +1 -1
- package/index84.js +1 -1
- package/index84.mjs +2 -2
- package/package.json +1 -1
package/index107.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("./
|
|
2
|
+
"use strict";const n=require("./index144.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/index107.mjs
CHANGED
package/index108.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("./index145.js"),n=require("./index120.js"),o=require("./index69.js"),N=require("./index146.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/index108.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as M from "./
|
|
3
|
-
import { Swiper as N, SwiperSlide as $ } from "./
|
|
2
|
+
import * as M from "./index145.mjs";
|
|
3
|
+
import { Swiper as N, SwiperSlide as $ } from "./index120.mjs";
|
|
4
4
|
import a from "./index69.mjs";
|
|
5
5
|
import I from "./index146.mjs";
|
|
6
6
|
const D = (p) => {
|
package/index117.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index160.js"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index160.js"),l=require("./index144.js"),f=require("./index164.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/index117.mjs
CHANGED
package/index120.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index231.js"),I=require("./index232.js"),d=require("./index233.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&S.push(t[n(o)]);return S.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const B=e.createContext(null),Q=()=>e.useContext(B),X=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:v}=I.g(y),{slides:g,slots:j}=J(l),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const q=()=>{Object.assign(f.on,v),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=g;const E={cache:!1,slides:g,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||q(),r.current&&r.current.on("_beforeBreakpoint",_);const H=()=>{h||!v||!r.current||Object.keys(v).forEach(u=>{r.current.on(u,v[u])})},M=()=>{!v||!r.current||Object.keys(v).forEach(u=>{r.current.off(u,v[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",_)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&q(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,g,z.current,E=>E.key);return x.current=L,z.current=g,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:g,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,g,i):g.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${S}${a?` ${a}`:""}`)},D),e.createElement(X.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof S<"u"&&(i.current.swiperSlideIndex=S),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(B.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(B.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;exports.useSwiperSlide=Q;
|
package/index120.mjs
CHANGED
|
@@ -1,41 +1,243 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
setInvalid(a, t) {
|
|
31
|
-
let d = new Map(u.current);
|
|
32
|
-
t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
|
|
33
|
-
},
|
|
34
|
-
validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
|
|
35
|
-
isInvalid: f,
|
|
36
|
-
isRequired: c
|
|
1
|
+
import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, useLayoutEffect as Q, createContext as q, useContext as X } from "react";
|
|
2
|
+
import { S as Y } from "./index231.mjs";
|
|
3
|
+
import { g as Z, m as ee, a as re, u as te } from "./index232.mjs";
|
|
4
|
+
import { d as D, w as ne, n as se, b as ae, a as ie, e as F, u as oe } from "./index233.mjs";
|
|
5
|
+
function k() {
|
|
6
|
+
return k = Object.assign ? Object.assign.bind() : function(n) {
|
|
7
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
8
|
+
var s = arguments[r];
|
|
9
|
+
for (var t in s)
|
|
10
|
+
Object.prototype.hasOwnProperty.call(s, t) && (n[t] = s[t]);
|
|
11
|
+
}
|
|
12
|
+
return n;
|
|
13
|
+
}, k.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
function H(n) {
|
|
16
|
+
return n.type && n.type.displayName && n.type.displayName.includes("SwiperSlide");
|
|
17
|
+
}
|
|
18
|
+
function U(n) {
|
|
19
|
+
const r = [];
|
|
20
|
+
return a.Children.toArray(n).forEach((s) => {
|
|
21
|
+
H(s) ? r.push(s) : s.props && s.props.children && U(s.props.children).forEach((t) => r.push(t));
|
|
22
|
+
}), r;
|
|
23
|
+
}
|
|
24
|
+
function le(n) {
|
|
25
|
+
const r = [], s = {
|
|
26
|
+
"container-start": [],
|
|
27
|
+
"container-end": [],
|
|
28
|
+
"wrapper-start": [],
|
|
29
|
+
"wrapper-end": []
|
|
37
30
|
};
|
|
31
|
+
return a.Children.toArray(n).forEach((t) => {
|
|
32
|
+
if (H(t))
|
|
33
|
+
r.push(t);
|
|
34
|
+
else if (t.props && t.props.slot && s[t.props.slot])
|
|
35
|
+
s[t.props.slot].push(t);
|
|
36
|
+
else if (t.props && t.props.children) {
|
|
37
|
+
const p = U(t.props.children);
|
|
38
|
+
p.length > 0 ? p.forEach((l) => r.push(l)) : s["container-end"].push(t);
|
|
39
|
+
} else
|
|
40
|
+
s["container-end"].push(t);
|
|
41
|
+
}), {
|
|
42
|
+
slides: r,
|
|
43
|
+
slots: s
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ce(n, r, s) {
|
|
47
|
+
if (!s) return null;
|
|
48
|
+
const t = (o) => {
|
|
49
|
+
let i = o;
|
|
50
|
+
return o < 0 ? i = r.length + o : i >= r.length && (i = i - r.length), i;
|
|
51
|
+
}, p = n.isHorizontal() ? {
|
|
52
|
+
[n.rtlTranslate ? "right" : "left"]: `${s.offset}px`
|
|
53
|
+
} : {
|
|
54
|
+
top: `${s.offset}px`
|
|
55
|
+
}, {
|
|
56
|
+
from: l,
|
|
57
|
+
to: d
|
|
58
|
+
} = s, S = n.params.loop ? -r.length : 0, h = n.params.loop ? r.length * 2 : r.length, g = [];
|
|
59
|
+
for (let o = S; o < h; o += 1)
|
|
60
|
+
o >= l && o <= d && g.push(r[t(o)]);
|
|
61
|
+
return g.map((o, i) => /* @__PURE__ */ a.cloneElement(o, {
|
|
62
|
+
swiper: n,
|
|
63
|
+
style: p,
|
|
64
|
+
key: o.props.virtualIndex || o.key || `slide-${i}`
|
|
65
|
+
}));
|
|
38
66
|
}
|
|
67
|
+
function O(n, r) {
|
|
68
|
+
return typeof window > "u" ? _(n, r) : Q(n, r);
|
|
69
|
+
}
|
|
70
|
+
const B = /* @__PURE__ */ q(null), ge = () => X(B), ue = /* @__PURE__ */ q(null), pe = /* @__PURE__ */ W(function(n, r) {
|
|
71
|
+
let {
|
|
72
|
+
className: s,
|
|
73
|
+
tag: t = "div",
|
|
74
|
+
wrapperTag: p = "div",
|
|
75
|
+
children: l,
|
|
76
|
+
onSwiper: d,
|
|
77
|
+
...S
|
|
78
|
+
} = n === void 0 ? {} : n, h = !1;
|
|
79
|
+
const [g, o] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), I = u(null), b = u(null), N = u(null), L = u(null), {
|
|
80
|
+
params: f,
|
|
81
|
+
passedParams: T,
|
|
82
|
+
rest: G,
|
|
83
|
+
events: v
|
|
84
|
+
} = Z(S), {
|
|
85
|
+
slides: y,
|
|
86
|
+
slots: j
|
|
87
|
+
} = le(l), A = () => {
|
|
88
|
+
R(!C);
|
|
89
|
+
};
|
|
90
|
+
Object.assign(f.on, {
|
|
91
|
+
_containerClasses(c, E) {
|
|
92
|
+
o(E);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const V = () => {
|
|
96
|
+
Object.assign(f.on, v), h = !0;
|
|
97
|
+
const c = {
|
|
98
|
+
...f
|
|
99
|
+
};
|
|
100
|
+
if (delete c.wrapperClass, e.current = new Y(c), e.current.virtual && e.current.params.virtual.enabled) {
|
|
101
|
+
e.current.virtual.slides = y;
|
|
102
|
+
const E = {
|
|
103
|
+
cache: !1,
|
|
104
|
+
slides: y,
|
|
105
|
+
renderExternal: m,
|
|
106
|
+
renderExternalUpdate: !1
|
|
107
|
+
};
|
|
108
|
+
F(e.current.params.virtual, E), F(e.current.originalParams.virtual, E);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
w.current || V(), e.current && e.current.on("_beforeBreakpoint", A);
|
|
112
|
+
const J = () => {
|
|
113
|
+
h || !v || !e.current || Object.keys(v).forEach((c) => {
|
|
114
|
+
e.current.on(c, v[c]);
|
|
115
|
+
});
|
|
116
|
+
}, K = () => {
|
|
117
|
+
!v || !e.current || Object.keys(v).forEach((c) => {
|
|
118
|
+
e.current.off(c, v[c]);
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
_(() => () => {
|
|
122
|
+
e.current && e.current.off("_beforeBreakpoint", A);
|
|
123
|
+
}), _(() => {
|
|
124
|
+
!z.current && e.current && (e.current.emitSlidesClasses(), z.current = !0);
|
|
125
|
+
}), O(() => {
|
|
126
|
+
if (r && (r.current = w.current), !!w.current)
|
|
127
|
+
return e.current.destroyed && V(), ee({
|
|
128
|
+
el: w.current,
|
|
129
|
+
nextEl: I.current,
|
|
130
|
+
prevEl: b.current,
|
|
131
|
+
paginationEl: N.current,
|
|
132
|
+
scrollbarEl: L.current,
|
|
133
|
+
swiper: e.current
|
|
134
|
+
}, f), d && !e.current.destroyed && d(e.current), () => {
|
|
135
|
+
e.current && !e.current.destroyed && e.current.destroy(!0, !1);
|
|
136
|
+
};
|
|
137
|
+
}, []), O(() => {
|
|
138
|
+
J();
|
|
139
|
+
const c = re(T, x.current, y, $.current, (E) => E.key);
|
|
140
|
+
return x.current = T, $.current = y, c.length && e.current && !e.current.destroyed && oe({
|
|
141
|
+
swiper: e.current,
|
|
142
|
+
slides: y,
|
|
143
|
+
passedParams: T,
|
|
144
|
+
changedParams: c,
|
|
145
|
+
nextEl: I.current,
|
|
146
|
+
prevEl: b.current,
|
|
147
|
+
scrollbarEl: L.current,
|
|
148
|
+
paginationEl: N.current
|
|
149
|
+
}), () => {
|
|
150
|
+
K();
|
|
151
|
+
};
|
|
152
|
+
}), O(() => {
|
|
153
|
+
te(e.current);
|
|
154
|
+
}, [i]);
|
|
155
|
+
function M() {
|
|
156
|
+
return f.virtual ? ce(e.current, y, i) : y.map((c, E) => /* @__PURE__ */ a.cloneElement(c, {
|
|
157
|
+
swiper: e.current,
|
|
158
|
+
swiperSlideIndex: E
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
return /* @__PURE__ */ a.createElement(t, k({
|
|
162
|
+
ref: w,
|
|
163
|
+
className: D(`${g}${s ? ` ${s}` : ""}`)
|
|
164
|
+
}, G), /* @__PURE__ */ a.createElement(ue.Provider, {
|
|
165
|
+
value: e.current
|
|
166
|
+
}, j["container-start"], /* @__PURE__ */ a.createElement(p, {
|
|
167
|
+
className: ne(f.wrapperClass)
|
|
168
|
+
}, j["wrapper-start"], M(), j["wrapper-end"]), se(f) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
|
|
169
|
+
ref: b,
|
|
170
|
+
className: "swiper-button-prev"
|
|
171
|
+
}), /* @__PURE__ */ a.createElement("div", {
|
|
172
|
+
ref: I,
|
|
173
|
+
className: "swiper-button-next"
|
|
174
|
+
})), ae(f) && /* @__PURE__ */ a.createElement("div", {
|
|
175
|
+
ref: L,
|
|
176
|
+
className: "swiper-scrollbar"
|
|
177
|
+
}), ie(f) && /* @__PURE__ */ a.createElement("div", {
|
|
178
|
+
ref: N,
|
|
179
|
+
className: "swiper-pagination"
|
|
180
|
+
}), j["container-end"]));
|
|
181
|
+
});
|
|
182
|
+
pe.displayName = "Swiper";
|
|
183
|
+
const de = /* @__PURE__ */ W(function(n, r) {
|
|
184
|
+
let {
|
|
185
|
+
tag: s = "div",
|
|
186
|
+
children: t,
|
|
187
|
+
className: p = "",
|
|
188
|
+
swiper: l,
|
|
189
|
+
zoom: d,
|
|
190
|
+
lazy: S,
|
|
191
|
+
virtualIndex: h,
|
|
192
|
+
swiperSlideIndex: g,
|
|
193
|
+
...o
|
|
194
|
+
} = n === void 0 ? {} : n;
|
|
195
|
+
const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
|
|
196
|
+
function w(I, b, N) {
|
|
197
|
+
b === i.current && C(N);
|
|
198
|
+
}
|
|
199
|
+
O(() => {
|
|
200
|
+
if (typeof g < "u" && (i.current.swiperSlideIndex = g), r && (r.current = i.current), !(!i.current || !l)) {
|
|
201
|
+
if (l.destroyed) {
|
|
202
|
+
m !== "swiper-slide" && C("swiper-slide");
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
return l.on("_slideClass", w), () => {
|
|
206
|
+
l && l.off("_slideClass", w);
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}), O(() => {
|
|
210
|
+
l && i.current && !l.destroyed && C(l.getSlideClasses(i.current));
|
|
211
|
+
}, [l]);
|
|
212
|
+
const e = {
|
|
213
|
+
isActive: m.indexOf("swiper-slide-active") >= 0,
|
|
214
|
+
isVisible: m.indexOf("swiper-slide-visible") >= 0,
|
|
215
|
+
isPrev: m.indexOf("swiper-slide-prev") >= 0,
|
|
216
|
+
isNext: m.indexOf("swiper-slide-next") >= 0
|
|
217
|
+
}, x = () => typeof t == "function" ? t(e) : t, $ = () => {
|
|
218
|
+
z(!0);
|
|
219
|
+
};
|
|
220
|
+
return /* @__PURE__ */ a.createElement(s, k({
|
|
221
|
+
ref: i,
|
|
222
|
+
className: D(`${m}${p ? ` ${p}` : ""}`),
|
|
223
|
+
"data-swiper-slide-index": h,
|
|
224
|
+
onLoad: $
|
|
225
|
+
}, o), d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
226
|
+
value: e
|
|
227
|
+
}, /* @__PURE__ */ a.createElement("div", {
|
|
228
|
+
className: "swiper-zoom-container",
|
|
229
|
+
"data-swiper-zoom": typeof d == "number" ? d : void 0
|
|
230
|
+
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
231
|
+
className: "swiper-lazy-preloader"
|
|
232
|
+
}))), !d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
233
|
+
value: e
|
|
234
|
+
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
235
|
+
className: "swiper-lazy-preloader"
|
|
236
|
+
})));
|
|
237
|
+
});
|
|
238
|
+
de.displayName = "SwiperSlide";
|
|
39
239
|
export {
|
|
40
|
-
|
|
240
|
+
pe as Swiper,
|
|
241
|
+
de as SwiperSlide,
|
|
242
|
+
ge as useSwiperSlide
|
|
41
243
|
};
|
package/index122.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("react"),a=require("./index27.js"),p=require("./index6.js"),b=require("./index14.js"),i=require("./index3.js"),u=x.forwardRef((d,c)=>{const{themeName:e="datePicker",tokens:t,groupProps:m,buttonProps:n,buttonLabel:o,buttonContent:s,icon:h,children:l}=d;return r.jsxs(a.BoxWithForwardRef,{themeName:`${e}.wrapper`,tokens:t,...m,ref:c,children:[o&&r.jsx(i.default,{themeName:`${e}.buttonLabel`,tokens:t,children:o}),r.jsx(a.default,{themeName:`${e}.dateFieldContainer`,tokens:t,children:l}),r.jsxs(p.default,{themeName:`${e}.button`,tokens:t,type:"button",...n,handlePress:n.onPress,children:[s&&r.jsx(i.default,{themeName:`${e}.buttonContent`,tokens:t,children:s}),r.jsx(b,{themeName:`${e}.icon`,tokens:t,icon:h??"ArrowDown"})]})]})});u.displayName="Wrapper";module.exports=u;
|
package/index122.mjs
CHANGED
|
@@ -1,11 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BoxWithForwardRef as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import u, { BoxWithForwardRef as f } from "./index27.mjs";
|
|
5
|
+
import b from "./index6.mjs";
|
|
6
|
+
import N from "./index14.mjs";
|
|
7
|
+
import p from "./index3.mjs";
|
|
8
|
+
const $ = l((i, h) => {
|
|
9
|
+
const {
|
|
10
|
+
themeName: e = "datePicker",
|
|
11
|
+
tokens: t,
|
|
12
|
+
groupProps: s,
|
|
13
|
+
buttonProps: r,
|
|
14
|
+
buttonLabel: n,
|
|
15
|
+
buttonContent: m,
|
|
16
|
+
icon: c,
|
|
17
|
+
children: d
|
|
18
|
+
} = i;
|
|
19
|
+
return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
|
|
20
|
+
n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
|
|
21
|
+
/* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
|
|
22
|
+
/* @__PURE__ */ a(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
themeName: `${e}.button`,
|
|
26
|
+
tokens: t,
|
|
27
|
+
type: "button",
|
|
28
|
+
...r,
|
|
29
|
+
handlePress: r.onPress,
|
|
30
|
+
children: [
|
|
31
|
+
m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
|
|
32
|
+
/* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] });
|
|
37
|
+
});
|
|
38
|
+
$.displayName = "Wrapper";
|
|
9
39
|
export {
|
|
10
|
-
|
|
40
|
+
$ as default
|
|
11
41
|
};
|
package/index123.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("react"),a=require("./index27.js"),p=require("./index6.js"),b=require("./index14.js"),i=require("./index3.js"),u=x.forwardRef((d,c)=>{const{themeName:e="datePicker",tokens:t,groupProps:m,buttonProps:n,buttonLabel:o,buttonContent:s,icon:h,children:l}=d;return r.jsxs(a.BoxWithForwardRef,{themeName:`${e}.wrapper`,tokens:t,...m,ref:c,children:[o&&r.jsx(i.default,{themeName:`${e}.buttonLabel`,tokens:t,children:o}),r.jsx(a.default,{themeName:`${e}.dateFieldContainer`,tokens:t,children:l}),r.jsxs(p.default,{themeName:`${e}.button`,tokens:t,type:"button",...n,handlePress:n.onPress,children:[s&&r.jsx(i.default,{themeName:`${e}.buttonContent`,tokens:t,children:s}),r.jsx(b,{themeName:`${e}.icon`,tokens:t,icon:h??"ArrowDown"})]})]})});u.displayName="Wrapper";module.exports=u;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index50.js"),t=i.forwardRef((r,s)=>{const{themeName:n="alerts.closeBtn",...o}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:n,...o,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
|
package/index123.mjs
CHANGED
|
@@ -1,41 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
themeName: e = "datePicker",
|
|
11
|
-
tokens: t,
|
|
12
|
-
groupProps: s,
|
|
13
|
-
buttonProps: r,
|
|
14
|
-
buttonLabel: n,
|
|
15
|
-
buttonContent: m,
|
|
16
|
-
icon: c,
|
|
17
|
-
children: d
|
|
18
|
-
} = i;
|
|
19
|
-
return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
|
|
20
|
-
n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
|
|
21
|
-
/* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
|
|
22
|
-
/* @__PURE__ */ a(
|
|
23
|
-
b,
|
|
24
|
-
{
|
|
25
|
-
themeName: `${e}.button`,
|
|
26
|
-
tokens: t,
|
|
27
|
-
type: "button",
|
|
28
|
-
...r,
|
|
29
|
-
handlePress: r.onPress,
|
|
30
|
-
children: [
|
|
31
|
-
m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
|
|
32
|
-
/* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { ButtonWithForwardRef as n } from "./index6.mjs";
|
|
4
|
+
import i from "./index14.mjs";
|
|
5
|
+
import l from "./index50.mjs";
|
|
6
|
+
const a = m((o, r) => {
|
|
7
|
+
const { themeName: e = "alerts.closeBtn", ...s } = o;
|
|
8
|
+
return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
|
|
37
9
|
});
|
|
38
|
-
|
|
10
|
+
a.displayName = "AlertsCloseButton";
|
|
39
11
|
export {
|
|
40
|
-
|
|
12
|
+
a as default
|
|
41
13
|
};
|
package/index124.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index152.js"),o=require("./index153.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
|
package/index124.mjs
CHANGED
|
@@ -1,25 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useFormValidationState as r, mergeValidation as o } from "./index152.mjs";
|
|
2
|
+
import { useControlledState as b } from "./index153.mjs";
|
|
3
|
+
import { useRef as v } from "react";
|
|
4
|
+
function y(e = {}) {
|
|
5
|
+
let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
|
|
6
|
+
...e,
|
|
7
|
+
value: i
|
|
8
|
+
}), f = n.displayValidation.isInvalid;
|
|
9
|
+
var s;
|
|
10
|
+
return {
|
|
11
|
+
...n,
|
|
12
|
+
value: i,
|
|
13
|
+
setValue(a) {
|
|
14
|
+
e.isReadOnly || e.isDisabled || l(a);
|
|
15
|
+
},
|
|
16
|
+
isDisabled: e.isDisabled || !1,
|
|
17
|
+
isReadOnly: e.isReadOnly || !1,
|
|
18
|
+
isSelected(a) {
|
|
19
|
+
return i.includes(a);
|
|
20
|
+
},
|
|
21
|
+
addValue(a) {
|
|
22
|
+
e.isReadOnly || e.isDisabled || i.includes(a) || l(i.concat(a));
|
|
23
|
+
},
|
|
24
|
+
removeValue(a) {
|
|
25
|
+
e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
|
|
26
|
+
},
|
|
27
|
+
toggleValue(a) {
|
|
28
|
+
e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
|
|
29
|
+
},
|
|
30
|
+
setInvalid(a, t) {
|
|
31
|
+
let d = new Map(u.current);
|
|
32
|
+
t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
|
|
33
|
+
},
|
|
34
|
+
validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
|
|
35
|
+
isInvalid: f,
|
|
36
|
+
isRequired: c
|
|
12
37
|
};
|
|
13
|
-
return /* @__PURE__ */ r.createElement(f, null, /* @__PURE__ */ r.createElement("button", {
|
|
14
|
-
...s,
|
|
15
|
-
tabIndex: -1,
|
|
16
|
-
onClick: a,
|
|
17
|
-
style: {
|
|
18
|
-
width: 1,
|
|
19
|
-
height: 1
|
|
20
|
-
}
|
|
21
|
-
}));
|
|
22
38
|
}
|
|
23
39
|
export {
|
|
24
|
-
|
|
40
|
+
y as useCheckboxGroupState
|
|
25
41
|
};
|
package/index125.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),u=require("react"),a=require("react-aria"),l=require("./index27.js");function d(e){const{themeName:r="dialog",tokens:o,title:g,children:i,...n}=e,t=u.useRef(null),{dialogProps:s}=a.useDialog(e,t);return c.jsx(l.BoxWithForwardRef,{...n,themeName:r,tokens:o,...s,ref:t,children:i})}exports.Dialog=d;
|
package/index125.mjs
CHANGED
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let { triggerRef: n, popoverRef: r, groupRef: e, isNonModal: s, isKeyboardDismissDisabled: t, shouldCloseOnInteractOutside: c, ...a } = p, d = a.trigger === "SubmenuTrigger", { overlayProps: f, underlayProps: u } = y({
|
|
9
|
-
isOpen: o.isOpen,
|
|
10
|
-
onClose: o.close,
|
|
11
|
-
shouldCloseOnBlur: !0,
|
|
12
|
-
isDismissable: !s || d,
|
|
13
|
-
isKeyboardDismissDisabled: t,
|
|
14
|
-
shouldCloseOnInteractOutside: c
|
|
15
|
-
}, e ?? r), { overlayProps: $, arrowProps: m, placement: b } = P({
|
|
16
|
-
...a,
|
|
17
|
-
targetRef: n,
|
|
18
|
-
overlayRef: r,
|
|
19
|
-
isOpen: o.isOpen,
|
|
20
|
-
onClose: s && !d ? o.close : null
|
|
21
|
-
});
|
|
22
|
-
return x({
|
|
23
|
-
isDisabled: s || !o.isOpen
|
|
24
|
-
}), D(() => {
|
|
25
|
-
if (o.isOpen && r.current) {
|
|
26
|
-
var i, l;
|
|
27
|
-
return s ? v((i = e == null ? void 0 : e.current) !== null && i !== void 0 ? i : r.current) : O([
|
|
28
|
-
(l = e == null ? void 0 : e.current) !== null && l !== void 0 ? l : r.current
|
|
29
|
-
]);
|
|
30
|
-
}
|
|
31
|
-
}, [
|
|
32
|
-
s,
|
|
33
|
-
o.isOpen,
|
|
34
|
-
r,
|
|
35
|
-
e
|
|
36
|
-
]), {
|
|
37
|
-
popoverProps: g(f, $),
|
|
38
|
-
arrowProps: m,
|
|
39
|
-
underlayProps: u,
|
|
40
|
-
placement: b
|
|
41
|
-
};
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l } from "react";
|
|
3
|
+
import { useDialog as s } from "react-aria";
|
|
4
|
+
import { BoxWithForwardRef as a } from "./index27.mjs";
|
|
5
|
+
function h(o) {
|
|
6
|
+
const { themeName: t = "dialog", tokens: e, title: c, children: i, ...m } = o, r = l(null), { dialogProps: n } = s(o, r);
|
|
7
|
+
return /* @__PURE__ */ f(a, { ...m, themeName: t, tokens: e, ...n, ref: r, children: i });
|
|
42
8
|
}
|
|
43
9
|
export {
|
|
44
|
-
|
|
10
|
+
h as Dialog
|
|
45
11
|
};
|
package/index126.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index204.js"),r=require("react"),u=require("./index171.js"),a=require("@react-aria/i18n"),c=require("./index118.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;
|