@okam/stack-ui 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/components/Popover/index.d.ts +3 -1
  2. package/index.js +1 -1
  3. package/index10.js +1 -1
  4. package/index10.mjs +1 -0
  5. package/index102.js +1 -1
  6. package/index102.mjs +3 -3
  7. package/index103.js +1 -1
  8. package/index103.mjs +1 -1
  9. package/index110.js +1 -1
  10. package/index110.mjs +2 -2
  11. package/index116.js +1 -1
  12. package/index116.mjs +9 -9
  13. package/index117.js +1 -1
  14. package/index117.mjs +9 -9
  15. package/index121.js +1 -1
  16. package/index121.mjs +2 -2
  17. package/index127.js +1 -1
  18. package/index127.mjs +46 -12
  19. package/index128.js +1 -1
  20. package/index128.mjs +241 -46
  21. package/index129.js +2 -1
  22. package/index129.mjs +13 -241
  23. package/index13.js +1 -1
  24. package/index13.mjs +9 -8
  25. package/index130.js +1 -2
  26. package/index130.mjs +29 -12
  27. package/index131.js +1 -1
  28. package/index131.mjs +11 -29
  29. package/index132.js +1 -1
  30. package/index132.mjs +2 -2
  31. package/index135.js +1 -1
  32. package/index135.mjs +196 -58
  33. package/index136.js +1 -1
  34. package/index136.mjs +60 -90
  35. package/index137.js +1 -1
  36. package/index137.mjs +140 -32
  37. package/index138.js +1 -1
  38. package/index138.mjs +114 -116
  39. package/index139.js +1 -1
  40. package/index139.mjs +217 -27
  41. package/index140.js +1 -1
  42. package/index140.mjs +188 -122
  43. package/index141.js +1 -1
  44. package/index141.mjs +67 -132
  45. package/index142.js +1 -1
  46. package/index142.mjs +258 -14
  47. package/index143.js +1 -1
  48. package/index143.mjs +92 -90
  49. package/index144.js +1 -1
  50. package/index144.mjs +172 -104
  51. package/index145.js +1 -1
  52. package/index145.mjs +84 -5
  53. package/index146.js +1 -1
  54. package/index146.mjs +58 -3
  55. package/index147.js +1 -1
  56. package/index147.mjs +123 -122
  57. package/index148.js +1 -1
  58. package/index148.mjs +113 -26
  59. package/index149.js +1 -1
  60. package/index149.mjs +119 -48
  61. package/index150.js +1 -1
  62. package/index150.mjs +72 -44
  63. package/index151.js +1 -1
  64. package/index151.mjs +107 -34
  65. package/index152.js +1 -1
  66. package/index152.mjs +50 -111
  67. package/index153.js +1 -1
  68. package/index153.mjs +93 -77
  69. package/index154.js +1 -1
  70. package/index154.mjs +70 -101
  71. package/index155.js +1 -1
  72. package/index155.mjs +57 -98
  73. package/index156.js +1 -1
  74. package/index156.mjs +92 -192
  75. package/index157.js +5 -1
  76. package/index157.mjs +75 -59
  77. package/index158.js +1 -1
  78. package/index158.mjs +1995 -125
  79. package/index159.js +1 -1
  80. package/index159.mjs +56 -116
  81. package/index160.js +1 -1
  82. package/index160.mjs +185 -214
  83. package/index161.js +1 -1
  84. package/index161.mjs +58 -187
  85. package/index162.js +1 -1
  86. package/index162.mjs +89 -64
  87. package/index163.js +1 -1
  88. package/index163.mjs +32 -257
  89. package/index164.js +1 -1
  90. package/index164.mjs +117 -93
  91. package/index165.js +1 -1
  92. package/index165.mjs +27 -174
  93. package/index166.js +1 -1
  94. package/index166.mjs +123 -83
  95. package/index167.js +1 -1
  96. package/index167.mjs +132 -56
  97. package/index168.js +1 -1
  98. package/index168.mjs +14 -126
  99. package/index169.js +1 -1
  100. package/index169.mjs +92 -113
  101. package/index170.js +1 -1
  102. package/index170.mjs +103 -119
  103. package/index171.js +1 -1
  104. package/index171.mjs +5 -72
  105. package/index172.js +1 -1
  106. package/index172.mjs +3 -110
  107. package/index173.js +1 -1
  108. package/index173.mjs +124 -51
  109. package/index174.js +1 -1
  110. package/index174.mjs +29 -93
  111. package/index175.js +1 -1
  112. package/index175.mjs +51 -70
  113. package/index176.js +1 -1
  114. package/index176.mjs +44 -56
  115. package/index177.js +1 -1
  116. package/index177.mjs +36 -98
  117. package/index178.js +1 -5
  118. package/index178.mjs +111 -78
  119. package/index179.js +1 -1
  120. package/index179.mjs +74 -2008
  121. package/index180.js +1 -1
  122. package/index180.mjs +99 -57
  123. package/index181.js +1 -1
  124. package/index181.mjs +98 -189
  125. package/index182.js +1 -1
  126. package/index182.mjs +130 -5
  127. package/index183.js +1 -1
  128. package/index183.mjs +172 -123
  129. package/index184.js +1 -1
  130. package/index184.mjs +8 -178
  131. package/index185.js +1 -1
  132. package/index185.mjs +3 -9
  133. package/index186.js +1 -1
  134. package/index186.mjs +36 -3
  135. package/index187.js +1 -1
  136. package/index187.mjs +5 -36
  137. package/index188.js +1 -1
  138. package/index188.mjs +29 -5
  139. package/index189.js +1 -1
  140. package/index189.mjs +6 -29
  141. package/index190.js +1 -1
  142. package/index190.mjs +5 -6
  143. package/index191.js +1 -1
  144. package/index191.mjs +1 -1
  145. package/index2.js +1 -1
  146. package/index2.mjs +44 -43
  147. package/index23.js +1 -1
  148. package/index23.mjs +39 -38
  149. package/index24.js +1 -1
  150. package/index24.mjs +40 -39
  151. package/index6.js +1 -1
  152. package/index6.mjs +34 -34
  153. package/index88.js +1 -1
  154. package/index88.mjs +16 -13
  155. package/index98.js +1 -1
  156. package/index98.mjs +3 -3
  157. package/index99.js +1 -1
  158. package/index99.mjs +1 -1
  159. package/package.json +1 -1
  160. package/theme/DatePicker/index.d.ts +3 -2
package/index129.mjs CHANGED
@@ -1,243 +1,15 @@
1
- import a, { forwardRef as W, useState as P, useRef as u, useEffect as k, useLayoutEffect as Q, createContext as q, useContext as X } from "react";
2
- import { S as Y } from "./index179.mjs";
3
- import { g as Z, m as ee, a as re, u as te } from "./index180.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 "./index181.mjs";
5
- function L() {
6
- return L = 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
- }, L.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": []
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((o) => r.push(o)) : 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 = (l) => {
49
- let i = l;
50
- return l < 0 ? i = r.length + l : 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: o,
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 l = S; l < h; l += 1)
60
- l >= o && l <= d && g.push(r[t(l)]);
61
- return g.map((l, i) => /* @__PURE__ */ a.cloneElement(l, {
62
- swiper: n,
63
- style: p,
64
- key: `slide-${i}`
65
- }));
66
- }
67
- function O(n, r) {
68
- return typeof window > "u" ? k(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: o,
76
- onSwiper: d,
77
- ...S
78
- } = n === void 0 ? {} : n, h = !1;
79
- const [g, l] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), j = u(null), b = u(null), N = u(null), T = u(null), {
80
- params: f,
81
- passedParams: _,
82
- rest: G,
83
- events: v
84
- } = Z(S), {
85
- slides: y,
86
- slots: I
87
- } = le(o), A = () => {
88
- R(!C);
89
- };
90
- Object.assign(f.on, {
91
- _containerClasses(c, E) {
92
- l(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
- k(() => () => {
122
- e.current && e.current.off("_beforeBreakpoint", A);
123
- }), k(() => {
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: j.current,
130
- prevEl: b.current,
131
- paginationEl: N.current,
132
- scrollbarEl: T.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(_, x.current, y, $.current, (E) => E.key);
140
- return x.current = _, $.current = y, c.length && e.current && !e.current.destroyed && oe({
141
- swiper: e.current,
142
- slides: y,
143
- passedParams: _,
144
- changedParams: c,
145
- nextEl: j.current,
146
- prevEl: b.current,
147
- scrollbarEl: T.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, L({
162
- ref: w,
163
- className: D(`${g}${s ? ` ${s}` : ""}`)
164
- }, G), /* @__PURE__ */ a.createElement(ue.Provider, {
165
- value: e.current
166
- }, I["container-start"], /* @__PURE__ */ a.createElement(p, {
167
- className: ne(f.wrapperClass)
168
- }, I["wrapper-start"], M(), I["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: j,
173
- className: "swiper-button-next"
174
- })), ae(f) && /* @__PURE__ */ a.createElement("div", {
175
- ref: T,
176
- className: "swiper-scrollbar"
177
- }), ie(f) && /* @__PURE__ */ a.createElement("div", {
178
- ref: N,
179
- className: "swiper-pagination"
180
- }), I["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: o,
189
- zoom: d,
190
- lazy: S,
191
- virtualIndex: h,
192
- swiperSlideIndex: g,
193
- ...l
194
- } = n === void 0 ? {} : n;
195
- const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
196
- function w(j, 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 || !o)) {
201
- if (o.destroyed) {
202
- m !== "swiper-slide" && C("swiper-slide");
203
- return;
204
- }
205
- return o.on("_slideClass", w), () => {
206
- o && o.off("_slideClass", w);
207
- };
208
- }
209
- }), O(() => {
210
- o && i.current && !o.destroyed && C(o.getSlideClasses(i.current));
211
- }, [o]);
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, L({
221
- ref: i,
222
- className: D(`${m}${p ? ` ${p}` : ""}`),
223
- "data-swiper-slide-index": h,
224
- onLoad: $
225
- }, l), 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";
1
+ "use client";
2
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
3
+ import { useSwiperSlide as d } from "./index128.mjs";
4
+ import p from "./index25.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
+ };
239
13
  export {
240
- pe as Swiper,
241
- de as SwiperSlide,
242
- ge as useSwiperSlide
14
+ S as default
243
15
  };
package/index13.js CHANGED
@@ -1 +1 @@
1
- "use strict";const o=require("react/jsx-runtime"),t=require("sanitize-html"),a=require("./index3.js"),e=require("./index104.js"),n=({content:r,themeName:s="wysiwyg",...l})=>{const i=t(r,{allowedTags:t.defaults.allowedTags.concat(["iframe"]),nonBooleanAttributes:[],allowedAttributes:{...t.defaults.allowedAttributes,"*":[...t.defaults.nonBooleanAttributes,...e.ariaAttributes,...e.booleanAttributes],iframe:["src","allow","allowfullscreen","frameborder","scrolling","target","title","height","width","referrerpolicy"]}});return o.jsx(a.default,{...l,themeName:s,dangerouslySetInnerHTML:{__html:i}})};module.exports=n;
1
+ "use strict";const o=require("react/jsx-runtime"),t=require("sanitize-html"),a=require("./index3.js"),e=require("./index104.js"),n=({content:r,themeName:i="wysiwyg",...s})=>{const l=t(r,{allowedTags:t.defaults.allowedTags.concat(["iframe","img"]),nonBooleanAttributes:[],allowedAttributes:{...t.defaults.allowedAttributes,"*":[...t.defaults.nonBooleanAttributes,...e.ariaAttributes,...e.booleanAttributes],iframe:["src","allow","allowfullscreen","frameborder","scrolling","target","title","height","width","referrerpolicy"],img:["src","srcset","alt","title","width","height","loading"]}});return o.jsx(a.default,{...s,themeName:i,dangerouslySetInnerHTML:{__html:l}})};module.exports=n;
package/index13.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import t from "sanitize-html";
3
- import i from "./index3.mjs";
3
+ import a from "./index3.mjs";
4
4
  import { ariaAttributes as s, booleanAttributes as n } from "./index104.mjs";
5
- const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
5
+ const u = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
6
6
  const l = t(e, {
7
- allowedTags: t.defaults.allowedTags.concat(["iframe"]),
7
+ allowedTags: t.defaults.allowedTags.concat(["iframe", "img"]),
8
8
  nonBooleanAttributes: [],
9
9
  allowedAttributes: {
10
10
  ...t.defaults.allowedAttributes,
@@ -20,11 +20,12 @@ const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
20
20
  "height",
21
21
  "width",
22
22
  "referrerpolicy"
23
- ]
23
+ ],
24
+ img: ["src", "srcset", "alt", "title", "width", "height", "loading"]
24
25
  }
25
26
  });
26
- return /* @__PURE__ */ a(
27
- i,
27
+ return /* @__PURE__ */ i(
28
+ a,
28
29
  {
29
30
  ...o,
30
31
  themeName: r,
@@ -35,5 +36,5 @@ const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
35
36
  );
36
37
  };
37
38
  export {
38
- w as default
39
+ u as default
39
40
  };
package/index130.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const n=require("react/jsx-runtime"),d=require("./index129.js"),a=require("./index25.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";const P=require("react/jsx-runtime"),o=require("react-aria"),k=require("./index71.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/index130.mjs CHANGED
@@ -1,15 +1,32 @@
1
- "use client";
2
- import { jsxs as c, jsx as a } from "react/jsx-runtime";
3
- import { useSwiperSlide as d } from "./index129.mjs";
4
- import p from "./index25.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
- ] });
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 "./index71.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
+ );
12
29
  };
13
30
  export {
14
- S as default
31
+ N as default
15
32
  };
package/index131.js CHANGED
@@ -1 +1 @@
1
- "use strict";const P=require("react/jsx-runtime"),o=require("react-aria"),k=require("./index71.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;
1
+ "use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index64.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/index131.mjs CHANGED
@@ -1,32 +1,14 @@
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 "./index71.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
- );
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 "./index64.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
- N as default
13
+ w as default
32
14
  };
package/index132.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index144.js"),$=require("./index155.js");function l(e,t){return t=u.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-g(t))%7;return a<0&&(a+=7),a}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function s(e,t){return c(e)-c(t)}function c(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let r=null;function m(){return r==null&&(r=new Intl.DateTimeFormat().resolvedOptions().timeZone),r}function i(e){return e.subtract({days:e.day-1})}const o=new Map;function y(e){if(Intl.Locale){let n=o.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&$.weekStartData[t]||0}function p(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((f(i(e),t)+n)/7)}exports.compareDate=d;exports.compareTime=s;exports.getDayOfWeek=f;exports.getLocalTimeZone=m;exports.getWeeksInMonth=p;exports.isSameDay=l;exports.startOfMonth=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index170.js"),$=require("./index181.js");function l(e,t){return t=u.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-g(t))%7;return a<0&&(a+=7),a}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function s(e,t){return c(e)-c(t)}function c(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let r=null;function m(){return r==null&&(r=new Intl.DateTimeFormat().resolvedOptions().timeZone),r}function i(e){return e.subtract({days:e.day-1})}const o=new Map;function y(e){if(Intl.Locale){let n=o.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&$.weekStartData[t]||0}function p(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((f(i(e),t)+n)/7)}exports.compareDate=d;exports.compareTime=s;exports.getDayOfWeek=f;exports.getLocalTimeZone=m;exports.getWeeksInMonth=p;exports.isSameDay=l;exports.startOfMonth=i;
package/index132.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { toCalendar as o } from "./index144.mjs";
2
- import { weekStartData as i } from "./index155.mjs";
1
+ import { toCalendar as o } from "./index170.mjs";
2
+ import { weekStartData as i } from "./index181.mjs";
3
3
  function p(e, a) {
4
4
  return a = o(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
5
5
  }
package/index135.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@react-aria/utils"),O=require("@react-aria/focus"),m=require("./index191.js");function S(s,o){let{elementType:r="button",isDisabled:e,onPress:l,onPressStart:u,onPressEnd:P,onPressUp:p,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:f,onClick:i,href:g,target:h,rel:y,type:d="button"}=s,n;r==="button"?n={type:d,disabled:e}:n={role:"button",tabIndex:e?void 0:0,href:r==="a"&&e?void 0:g,target:r==="a"?h:void 0,type:r==="input"?d:void 0,disabled:r==="input"?e:void 0,"aria-disabled":!e||r==="input"?void 0:e,rel:r==="a"?y:void 0};let{pressProps:C,isPressed:x}=m.usePress({onPressStart:u,onPressEnd:P,onPressChange:c,onPress:l,onPressUp:p,isDisabled:e,preventFocusOnPress:b,ref:o}),{focusableProps:t}=O.useFocusable(s,o);f&&(t.tabIndex=e?-1:t.tabIndex);let D=a.mergeProps(t,C,a.filterDOMProps(s,{labelable:!0}));return{isPressed:x,buttonProps:a.mergeProps(n,D,{"aria-haspopup":s["aria-haspopup"],"aria-expanded":s["aria-expanded"],"aria-controls":s["aria-controls"],"aria-pressed":s["aria-pressed"],onClick:F=>{i&&(i(F),console.warn("onClick is deprecated, please use onPress"))}})}}exports.useButton=S;
1
+ "use strict";const R=require("./index182.js"),x=require("./index183.js");function _(I){let{swiper:e,extendParams:U,on:M,emit:T}=I;U({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let P;const y=R.g();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const $=y.createElement("div");function G(i,r){const a=e.params.virtual;if(a.cache&&e.virtual.cache[r])return e.virtual.cache[r];let s;return a.renderSlide?(s=a.renderSlide.call(e,i,r),typeof s=="string"&&($.innerHTML=s,s=$.children[0])):e.isElement?s=x.c("swiper-slide"):s=x.c("div",e.params.slideClass),s.setAttribute("data-swiper-slide-index",r),a.renderSlide||(s.innerHTML=i),a.cache&&(e.virtual.cache[r]=s),s}function u(i){const{slidesPerView:r,slidesPerGroup:a,centeredSlides:s,loop:d}=e.params,{addSlidesBefore:g,addSlidesAfter:w}=e.params.virtual,{from:p,to:h,slides:n,slidesGrid:V,offset:q}=e.virtual;e.params.cssMode||e.updateActiveIndex();const S=e.activeIndex||0;let b;e.rtlTranslate?b="right":b=e.isHorizontal()?"left":"top";let A,o;s?(A=Math.floor(r/2)+a+w,o=Math.floor(r/2)+a+g):(A=r+(a-1)+w,o=(d?r:a)+g);let c=S-o,f=S+A;d||(c=Math.max(c,0),f=Math.min(f,n.length-1));let v=(e.slidesGrid[c]||0)-(e.slidesGrid[0]||0);d&&S>=o?(c-=o,s||(v+=e.slidesGrid[0])):d&&S<o&&(c=-o,s&&(v+=e.slidesGrid[0])),Object.assign(e.virtual,{from:c,to:f,offset:v,slidesGrid:e.slidesGrid,slidesBefore:o,slidesAfter:A});function j(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),T("virtualUpdate")}if(p===c&&h===f&&!i){e.slidesGrid!==V&&v!==q&&e.slides.forEach(t=>{t.style[b]=`${v-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),T("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:v,from:c,to:f,slides:function(){const l=[];for(let m=c;m<=f;m+=1)l.push(n[m]);return l}()}),e.params.virtual.renderExternalUpdate?j():T("virtualUpdate");return}const E=[],O=[],C=t=>{let l=t;return t<0?l=n.length+t:l>=n.length&&(l=l-n.length),l};if(i)e.slides.filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(t=>{t.remove()});else for(let t=p;t<=h;t+=1)if(t<c||t>f){const l=C(t);e.slides.filter(m=>m.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach(m=>{m.remove()})}const F=d?-n.length:0,N=d?n.length*2:n.length;for(let t=F;t<N;t+=1)if(t>=c&&t<=f){const l=C(t);typeof h>"u"||i?O.push(l):(t>h&&O.push(l),t<p&&E.push(l))}if(O.forEach(t=>{e.slidesEl.append(G(n[t],t))}),d)for(let t=E.length-1;t>=0;t-=1){const l=E[t];e.slidesEl.prepend(G(n[l],l))}else E.sort((t,l)=>l-t),E.forEach(t=>{e.slidesEl.prepend(G(n[t],t))});x.e(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[b]=`${v-Math.abs(e.cssOverflowAdjustment())}px`}),j()}function z(i){if(typeof i=="object"&&"length"in i)for(let r=0;r<i.length;r+=1)i[r]&&e.virtual.slides.push(i[r]);else e.virtual.slides.push(i);u(!0)}function B(i){const r=e.activeIndex;let a=r+1,s=1;if(Array.isArray(i)){for(let d=0;d<i.length;d+=1)i[d]&&e.virtual.slides.unshift(i[d]);a=r+i.length,s=i.length}else e.virtual.slides.unshift(i);if(e.params.virtual.cache){const d=e.virtual.cache,g={};Object.keys(d).forEach(w=>{const p=d[w],h=p.getAttribute("data-swiper-slide-index");h&&p.setAttribute("data-swiper-slide-index",parseInt(h,10)+s),g[parseInt(w,10)+s]=p}),e.virtual.cache=g}u(!0),e.slideTo(a,0)}function H(i){if(typeof i>"u"||i===null)return;let r=e.activeIndex;if(Array.isArray(i))for(let a=i.length-1;a>=0;a-=1)e.params.virtual.cache&&(delete e.virtual.cache[i[a]],Object.keys(e.virtual.cache).forEach(s=>{s>i&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(i[a],1),i[a]<r&&(r-=1),r=Math.max(r,0);else e.params.virtual.cache&&(delete e.virtual.cache[i],Object.keys(e.virtual.cache).forEach(a=>{a>i&&(e.virtual.cache[a-1]=e.virtual.cache[a],e.virtual.cache[a-1].setAttribute("data-swiper-slide-index",a-1),delete e.virtual.cache[a])})),e.virtual.slides.splice(i,1),i<r&&(r-=1),r=Math.max(r,0);u(!0),e.slideTo(r,0)}function L(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),u(!0),e.slideTo(0,0)}M("beforeInit",()=>{if(!e.params.virtual.enabled)return;let i;if(typeof e.passedParams.virtual.slides>"u"){const r=[...e.slidesEl.children].filter(a=>a.matches(`.${e.params.slideClass}, swiper-slide`));r&&r.length&&(e.virtual.slides=[...r],i=!0,r.forEach((a,s)=>{a.setAttribute("data-swiper-slide-index",s),e.virtual.cache[s]=a,a.remove()}))}i||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u()}),M("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(P),P=setTimeout(()=>{u()},100)):u())}),M("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&x.s(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:z,prependSlide:B,removeSlide:H,removeAllSlides:L,update:u})}module.exports=_;