@okam/stack-ui 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Alerts/interface.d.ts +3 -28
- package/components/Button/index.d.ts +2 -2
- package/components/Button/interface.d.ts +2 -2
- package/components/Carousel/components/CarouselNavigationButton.d.ts +8 -0
- package/components/Carousel/components/CarouselSlide.d.ts +3 -0
- package/components/Carousel/components/CarouselSwiper.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPagination.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPaginationBullet.d.ts +3 -0
- package/components/Carousel/interface.d.ts +34 -17
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +150 -149
- package/index100.js +2 -1
- package/index100.mjs +11 -64
- package/index101.js +1 -1
- package/index101.mjs +44 -141
- package/index102.js +1 -1
- package/index102.mjs +62 -119
- package/index103.js +1 -1
- package/index103.mjs +28 -217
- package/index104.js +1 -1
- package/index104.mjs +4 -175
- package/index105.js +1 -1
- package/index105.mjs +11 -127
- package/index106.js +1 -1
- package/index106.mjs +13 -240
- package/index107.js +1 -1
- package/index107.mjs +23 -4
- package/index108.js +1 -1
- package/index108.mjs +23 -11
- package/index109.js +1 -1
- package/index109.mjs +39 -14
- package/index11.js +1 -1
- package/index11.mjs +67 -60
- package/index110.js +2 -1
- package/index110.mjs +11 -21
- package/index111.js +1 -1
- package/index111.mjs +8 -23
- package/index112.js +1 -1
- package/index112.mjs +20 -37
- package/index113.js +1 -2
- package/index113.mjs +38 -12
- package/index114.js +1 -1
- package/index114.mjs +49 -7
- package/index115.js +1 -1
- package/index115.mjs +40 -21
- package/index116.js +1 -1
- package/index116.mjs +13 -38
- package/index117.js +1 -1
- package/index117.mjs +26 -50
- package/index118.js +1 -1
- package/index118.mjs +20 -41
- package/index119.js +1 -1
- package/index119.mjs +9 -14
- package/index120.js +1 -1
- package/index120.mjs +30 -26
- package/index121.js +1 -1
- package/index121.mjs +13 -18
- package/index122.js +1 -1
- package/index122.mjs +16 -8
- package/index123.js +1 -1
- package/index123.mjs +5 -30
- package/index124.js +1 -1
- package/index124.mjs +21 -15
- package/index125.js +1 -1
- package/index125.mjs +11 -17
- package/index126.js +1 -1
- package/index126.mjs +42 -5
- package/index127.js +2 -1
- package/index127.mjs +21 -20
- package/index128.js +1 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +46 -104
- package/index13.js +1 -1
- package/index13.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +237 -38
- package/index131.js +1 -1
- package/index131.mjs +12 -21
- package/index132.js +1 -1
- package/index132.mjs +29 -11
- package/index133.js +1 -1
- package/index133.mjs +49 -19
- package/index134.js +1 -1
- package/index134.mjs +25 -49
- package/index135.js +1 -1
- package/index135.mjs +19 -25
- package/index136.js +1 -1
- package/index136.mjs +4 -25
- package/index137.js +4 -1
- package/index137.mjs +247 -46
- package/index138.js +1 -2
- package/index138.mjs +61 -11
- package/index139.js +1 -0
- package/index139.mjs +97 -0
- package/index140.js +1 -0
- package/index140.mjs +34 -0
- package/index141.js +1 -1
- package/index141.mjs +119 -39
- package/index142.js +1 -1
- package/index142.mjs +28 -29
- package/index143.js +1 -1
- package/index143.mjs +122 -197
- package/index144.js +1 -1
- package/index144.mjs +131 -187
- package/index145.js +1 -1
- package/index145.mjs +14 -69
- package/index146.js +1 -1
- package/index146.mjs +85 -248
- package/index147.js +1 -1
- package/index147.mjs +102 -93
- package/index148.js +1 -1
- package/index148.mjs +5 -84
- package/index149.js +1 -1
- package/index149.mjs +3 -58
- package/index15.js +1 -1
- package/index15.mjs +2 -2
- package/index150.js +1 -1
- package/index150.mjs +121 -112
- package/index151.js +1 -1
- package/index151.mjs +26 -119
- package/index152.js +1 -1
- package/index152.mjs +51 -72
- package/index153.js +1 -1
- package/index153.mjs +41 -107
- package/index154.js +1 -1
- package/index154.mjs +36 -51
- package/index155.js +1 -1
- package/index155.mjs +111 -91
- package/index156.js +1 -1
- package/index156.mjs +77 -70
- package/index157.js +1 -1
- package/index157.mjs +101 -56
- package/index158.js +1 -1
- package/index158.mjs +98 -100
- package/index159.js +1 -5
- package/index159.mjs +2 -81
- package/index160.js +1 -1
- package/index160.mjs +5 -2011
- package/index161.js +1 -1
- package/index161.mjs +64 -59
- package/index162.js +1 -1
- package/index162.mjs +25 -187
- package/index163.js +1 -1
- package/index163.mjs +54 -5
- package/index164.js +1 -4
- package/index164.mjs +148 -239
- package/index165.js +1 -1
- package/index165.mjs +23 -31
- package/index166.js +1 -1
- package/index166.mjs +18 -60
- package/index167.js +1 -1
- package/index167.mjs +38 -93
- package/index168.js +1 -1
- package/index168.mjs +82 -31
- package/index169.js +1 -1
- package/index169.mjs +28 -128
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +19 -177
- package/index171.js +1 -1
- package/index171.mjs +52 -8
- package/index172.js +1 -1
- package/index172.mjs +2 -4
- package/index173.js +11 -1
- package/index173.mjs +114 -35
- package/index174.js +1 -1
- package/index174.mjs +199 -5
- package/index175.js +1 -1
- package/index175.mjs +61 -26
- package/index176.js +1 -1
- package/index176.mjs +141 -6
- package/index177.js +1 -1
- package/index177.mjs +114 -116
- package/index178.js +1 -1
- package/index178.mjs +217 -27
- package/index179.js +1 -1
- package/index179.mjs +188 -122
- package/index18.js +1 -1
- package/index18.mjs +2 -2
- package/index180.js +1 -1
- package/index180.mjs +67 -132
- package/index181.js +1 -1
- package/index181.mjs +258 -14
- package/index182.js +1 -1
- package/index182.mjs +92 -90
- package/index183.js +1 -1
- package/index183.mjs +172 -104
- package/index184.js +1 -1
- package/index184.mjs +84 -5
- package/index185.js +1 -1
- package/index185.mjs +58 -3
- package/index186.js +1 -1
- package/index186.mjs +123 -122
- package/index187.js +1 -1
- package/index187.mjs +113 -26
- package/index188.js +1 -1
- package/index188.mjs +119 -48
- package/index189.js +1 -1
- package/index189.mjs +72 -44
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index190.js +1 -1
- package/index190.mjs +107 -34
- package/index191.js +1 -1
- package/index191.mjs +50 -111
- package/index192.js +1 -1
- package/index192.mjs +93 -77
- package/index193.js +1 -1
- package/index193.mjs +70 -101
- package/index194.js +1 -1
- package/index194.mjs +57 -98
- package/index195.js +1 -1
- package/index195.mjs +100 -2
- package/index196.js +5 -1
- package/index196.mjs +80 -5
- package/index197.js +1 -1
- package/index197.mjs +2005 -58
- package/index198.js +1 -1
- package/index198.mjs +59 -26
- package/index199.js +1 -1
- package/index199.mjs +187 -53
- package/index200.js +1 -1
- package/index200.mjs +5 -155
- package/index201.js +1 -1
- package/index201.mjs +2 -23
- package/index202.js +1 -1
- package/index202.mjs +47 -14
- package/index203.js +1 -1
- package/index203.mjs +17 -36
- package/index204.js +1 -1
- package/index204.mjs +18 -77
- package/index205.js +1 -1
- package/index205.mjs +23 -27
- package/index206.js +1 -1
- package/index206.mjs +40 -15
- package/index207.js +1 -1
- package/index207.mjs +2 -61
- package/index208.js +1 -1
- package/index208.mjs +21 -2
- package/index209.js +1 -11
- package/index209.mjs +2 -116
- package/index210.js +1 -1
- package/index210.mjs +29 -2
- package/index211.js +1 -1
- package/index211.mjs +2 -6
- package/index212.mjs +2 -2
- package/index213.js +1 -1
- package/index213.mjs +18 -48
- package/index214.js +1 -1
- package/index214.mjs +2 -21
- package/index215.js +1 -1
- package/index215.mjs +2 -24
- package/index216.js +1 -1
- package/index216.mjs +2 -27
- package/index217.js +1 -1
- package/index217.mjs +34 -43
- package/index218.js +1 -1
- package/index218.mjs +2 -2
- package/index219.js +1 -1
- package/index219.mjs +12 -12
- package/index22.js +1 -1
- package/index22.mjs +3 -3
- package/index220.js +1 -1
- package/index220.mjs +23 -2
- package/index221.js +1 -1
- package/index221.mjs +2 -29
- package/index222.js +1 -1
- package/index222.mjs +23 -2
- package/index223.mjs +2 -2
- package/index224.js +1 -1
- package/index224.mjs +311 -20
- package/index225.js +1 -1
- package/index225.mjs +193 -2
- package/index226.js +1 -1
- package/index226.mjs +9 -2
- package/index227.js +1 -1
- package/index227.mjs +27 -2
- package/index228.js +1 -1
- package/index228.mjs +55 -37
- package/index229.js +1 -1
- package/index229.mjs +47 -2
- package/index23.js +1 -1
- package/index23.mjs +4 -4
- package/index230.js +1 -1
- package/index230.mjs +124 -20
- package/index231.js +1 -1
- package/index231.mjs +128 -20
- package/index232.js +1 -1
- package/index232.mjs +180 -2
- package/index233.js +1 -1
- package/index233.mjs +8 -21
- package/index234.js +1 -1
- package/index234.mjs +4 -2
- package/index235.js +1 -1
- package/index235.mjs +35 -312
- package/index236.js +1 -1
- package/index236.mjs +5 -192
- package/index237.js +1 -1
- package/index237.mjs +29 -8
- package/index238.js +1 -1
- package/index238.mjs +6 -26
- package/index239.js +1 -1
- package/index239.mjs +2 -56
- package/index240.js +1 -1
- package/index240.mjs +2 -47
- package/index241.js +1 -1
- package/index241.mjs +2 -125
- package/index242.js +1 -1
- package/index242.mjs +17 -5
- package/index243.js +1 -1
- package/index243.mjs +27 -2
- package/index244.mjs +2 -2
- package/index245.js +1 -1
- package/index245.mjs +89 -2
- package/index246.js +1 -1
- package/index246.mjs +11 -9
- package/index247.js +1 -1
- package/index247.mjs +2 -27
- package/index248.js +1 -1
- package/index248.mjs +38 -2
- package/index249.js +1 -1
- package/index249.mjs +131 -83
- package/index25.js +1 -1
- package/index25.mjs +2 -2
- package/index250.js +1 -1
- package/index250.mjs +2 -20
- package/index251.js +1 -1
- package/index251.mjs +23 -2
- package/index252.js +1 -1
- package/index252.mjs +2 -38
- package/index253.js +1 -1
- package/index253.mjs +2 -137
- package/index254.mjs +2 -2
- package/index255.js +1 -1
- package/index255.mjs +2 -23
- package/index256.js +1 -1
- package/index256.mjs +23 -2
- package/index257.js +1 -1
- package/index257.mjs +2 -2
- package/index258.js +1 -1
- package/index258.mjs +26 -2
- package/index259.js +1 -1
- package/index259.mjs +2 -2
- package/index26.js +1 -1
- package/index26.mjs +3 -3
- package/index260.js +1 -1
- package/index260.mjs +2 -23
- package/index261.js +1 -1
- package/index261.mjs +2 -2
- package/index262.js +1 -1
- package/index262.mjs +2 -26
- package/index264.js +1 -1
- package/index264.mjs +72 -2
- package/index265.mjs +2 -2
- package/index267.js +1 -1
- package/index267.mjs +19 -2
- package/index268.js +1 -1
- package/index268.mjs +2 -72
- package/index269.js +1 -1
- package/index269.mjs +6 -2
- package/index270.mjs +2 -2
- package/index271.js +1 -1
- package/index271.mjs +2 -19
- package/index272.js +1 -1
- package/index272.mjs +29 -2
- package/index273.js +1 -1
- package/index273.mjs +7 -2
- package/index274.js +1 -1
- package/index274.mjs +8 -2
- package/index275.js +1 -1
- package/index275.mjs +7 -28
- package/index276.js +1 -1
- package/index276.mjs +2 -7
- package/index277.js +1 -1
- package/index277.mjs +36 -7
- package/index278.js +1 -1
- package/index278.mjs +2 -8
- package/index279.js +1 -1
- package/index279.mjs +5 -2
- package/index28.js +1 -1
- package/index28.mjs +1 -1
- package/index280.js +1 -1
- package/index280.mjs +5 -36
- package/index281.js +1 -1
- package/index281.mjs +10 -2
- package/index282.js +1 -1
- package/index282.mjs +2 -5
- package/index283.js +1 -1
- package/index283.mjs +17 -5
- package/index284.js +1 -1
- package/index284.mjs +30 -9
- package/index285.mjs +2 -2
- package/index286.js +1 -1
- package/index286.mjs +2 -18
- package/index30.js +1 -1
- package/index30.mjs +2 -2
- package/index31.js +1 -1
- package/index31.mjs +1 -1
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.js +1 -1
- package/index33.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +30 -29
- package/index35.js +1 -1
- package/index35.mjs +16 -15
- package/index37.js +1 -1
- package/index37.mjs +1 -1
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index79.js +1 -1
- package/index79.mjs +13 -13
- package/index83.js +9 -1
- package/index83.mjs +52 -17
- package/index96.js +1 -1
- package/index96.mjs +3 -3
- package/index97.js +1 -1
- package/index97.mjs +1 -1
- package/package.json +1 -1
- package/providers/Swiper/index.d.ts +4 -0
- package/providers/{Alerts → Swiper}/interface.d.ts +2 -2
- package/theme/Alerts/index.d.ts +1 -1
- package/theme/Carousel/index.d.ts +216 -8
- package/components/Alerts/components/AlertsNavigationButton.d.ts +0 -8
- package/components/Alerts/components/AlertsSwiper.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +0 -3
- package/index287.js +0 -1
- package/index287.mjs +0 -33
- package/index288.js +0 -1
- package/index288.mjs +0 -4
- package/index289.js +0 -1
- package/index289.mjs +0 -4
- package/providers/Alerts/index.d.ts +0 -4
- package/style.css +0 -1
package/index13.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import l from "./
|
|
2
|
+
import l from "./index106.mjs";
|
|
3
3
|
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo as x, lazy as h, Suspense as u } from "react";
|
|
5
5
|
import d from "./index64.mjs";
|
|
6
|
-
import b from "./
|
|
6
|
+
import b from "./index104.mjs";
|
|
7
7
|
const f = (t) => {
|
|
8
|
-
const { icon: o, ...s } = t, r = x(() => h(() => l(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index39.mjs"), "../icons/ArrowLeft.tsx": () => import("./index40.mjs"), "../icons/ArrowRight.tsx": () => import("./index41.mjs"), "../icons/Check.tsx": () => import("./index42.mjs"), "../icons/ChevronLeft.tsx": () => import("./index43.mjs"), "../icons/ChevronRight.tsx": () => import("./index44.mjs"), "../icons/CloseBtn.tsx": () => import("./index45.mjs"), "../icons/Facebook.tsx": () => import("./index46.mjs"), "../icons/FacebookColored.tsx": () => import("./index47.mjs"), "../icons/FacebookRounded.tsx": () => import("./index48.mjs"), "../icons/Globe.tsx": () => import("./index49.mjs"), "../icons/IconFallback.tsx": () => import("./
|
|
8
|
+
const { icon: o, ...s } = t, r = x(() => h(() => l(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index39.mjs"), "../icons/ArrowLeft.tsx": () => import("./index40.mjs"), "../icons/ArrowRight.tsx": () => import("./index41.mjs"), "../icons/Check.tsx": () => import("./index42.mjs"), "../icons/ChevronLeft.tsx": () => import("./index43.mjs"), "../icons/ChevronRight.tsx": () => import("./index44.mjs"), "../icons/CloseBtn.tsx": () => import("./index45.mjs"), "../icons/Facebook.tsx": () => import("./index46.mjs"), "../icons/FacebookColored.tsx": () => import("./index47.mjs"), "../icons/FacebookRounded.tsx": () => import("./index48.mjs"), "../icons/Globe.tsx": () => import("./index49.mjs"), "../icons/IconFallback.tsx": () => import("./index104.mjs"), "../icons/Instagram.tsx": () => import("./index50.mjs"), "../icons/InstagramColored.tsx": () => import("./index51.mjs"), "../icons/Link.tsx": () => import("./index52.mjs"), "../icons/LinkedIn.tsx": () => import("./index53.mjs"), "../icons/Mail.tsx": () => import("./index54.mjs"), "../icons/Plus.tsx": () => import("./index55.mjs"), "../icons/Search.tsx": () => import("./index105.mjs"), "../icons/Share.tsx": () => import("./index56.mjs"), "../icons/Twitter.tsx": () => import("./index57.mjs"), "../icons/TwitterColored.tsx": () => import("./index58.mjs"), "../icons/Upload.tsx": () => import("./index59.mjs"), "../icons/X.tsx": () => import("./index60.mjs"), "../icons/YouTube.tsx": () => import("./index61.mjs"), "../icons/YouTubeColored.tsx": () => import("./index62.mjs") }), `../icons/${o || "ArrowRight"}.tsx`, 3)), [o]);
|
|
9
9
|
return /* @__PURE__ */ i(u, { fallback: /* @__PURE__ */ i(b, { className: "overflow-visible pointer-events-none" }), children: /* @__PURE__ */ i(r, { ...s, className: "overflow-visible pointer-events-none", ...t }) });
|
|
10
10
|
}, g = (t) => {
|
|
11
11
|
const { icon: o, as: s = "span", tokens: r, customTheme: p, themeName: a = "icon", children: n, ...e } = t, c = d(a, r, p);
|
package/index130.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("./index197.js"),T=require("./index198.js"),d=require("./index199.js");function I(){return I=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},I.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(o=>t.push(o)):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=l=>{let i=l;return l<0?i=t.length+l:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let l=y;l<h;l+=1)l>=o&&l<=p&&S.push(t[n(l)]);return S.map((l,i)=>e.cloneElement(l,{swiper:s,style:c,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:o,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,l]=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),L=e.useRef(null),{params:f,passedParams:k,rest:D,events:g}=T.g(y),{slides:v,slots:j}=J(o),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){l(E)}});const q=()=>{Object.assign(f.on,g),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=v;const E={cache:!1,slides:v,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||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[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(),T.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:L.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=T.a(k,x.current,v,z.current,E=>E.key);return x.current=k,z.current=v,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:v,passedParams:k,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:L.current,paginationEl:R.current}),()=>{M()}}),N(()=>{T.u(r.current)},[i]);function U(){return f.virtual?K(r.current,v,i):v.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,I({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:L,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:o,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...l}=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||!o)){if(o.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return o.on("_slideClass",w),()=>{o&&o.off("_slideClass",w)}}}),N(()=>{o&&i.current&&!o.destroyed&&C(o.getSlideClasses(i.current))},[o]);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,I({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},l),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/index130.mjs
CHANGED
|
@@ -1,44 +1,243 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
for (let b = 0; b < j; b++, o += 4) {
|
|
12
|
-
let x = I, i = M, p = k, P = F;
|
|
13
|
-
for (let e = 0, r = l(D, f ? 5 : 3); e < r; e++)
|
|
14
|
-
U[e] = A(n / j * (b + 0.5) * e);
|
|
15
|
-
for (let e = 0, r = l(y, f ? 5 : 3); e < r; e++)
|
|
16
|
-
B[e] = A(n / w * (u + 0.5) * e);
|
|
17
|
-
for (let e = 0, r = 0; e < y; e++)
|
|
18
|
-
for (let a = e ? 0 : 1, m = B[e] * 2; a * y < D * (y - e); a++, r++)
|
|
19
|
-
x += N[r] * U[a] * m;
|
|
20
|
-
for (let e = 0, r = 0; e < 3; e++)
|
|
21
|
-
for (let a = e ? 0 : 1, m = B[e] * 2; a < 3 - e; a++, r++) {
|
|
22
|
-
let G = U[a] * m;
|
|
23
|
-
i += O[r] * G, p += Q[r] * G;
|
|
24
|
-
}
|
|
25
|
-
if (f)
|
|
26
|
-
for (let e = 0, r = 0; e < 5; e++)
|
|
27
|
-
for (let a = e ? 0 : 1, m = B[e] * 2; a < 5 - e; a++, r++)
|
|
28
|
-
P += S[r] * U[a] * m;
|
|
29
|
-
let R = x - 2 / 3 * i, C = (3 * x - R + p) / 2, V = C - p;
|
|
30
|
-
s[o] = l(0, 255 * c(1, C)), s[o + 1] = l(0, 255 * c(1, V)), s[o + 2] = l(0, 255 * c(1, R)), s[o + 3] = l(0, 255 * c(1, P));
|
|
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 "./index197.mjs";
|
|
3
|
+
import { g as Z, m as ee, a as re, u as te } from "./index198.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 "./index199.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]);
|
|
31
11
|
}
|
|
32
|
-
|
|
12
|
+
return n;
|
|
13
|
+
}, L.apply(this, arguments);
|
|
33
14
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
return A / g;
|
|
15
|
+
function H(n) {
|
|
16
|
+
return n.type && n.type.displayName && n.type.displayName.includes("SwiperSlide");
|
|
37
17
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
return
|
|
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;
|
|
41
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";
|
|
42
239
|
export {
|
|
43
|
-
|
|
240
|
+
pe as Swiper,
|
|
241
|
+
de as SwiperSlide,
|
|
242
|
+
ge as useSwiperSlide
|
|
44
243
|
};
|
package/index131.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("./index130.js"),a=require("./index24.js"),h=require("./index3.js"),m=n=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=n,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return r.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&r.jsx(h.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=m;
|
package/index131.mjs
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
function c() {
|
|
14
|
-
const t = r.createContext(void 0);
|
|
15
|
-
function o() {
|
|
16
|
-
const e = r.useContext(t);
|
|
17
|
-
return e === void 0 ? {} : e;
|
|
18
|
-
}
|
|
19
|
-
return [o, t.Provider];
|
|
20
|
-
}
|
|
2
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useSwiperSlide as d } from "./index130.mjs";
|
|
4
|
+
import p from "./index24.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
|
+
};
|
|
21
13
|
export {
|
|
22
|
-
|
|
23
|
-
u as default
|
|
14
|
+
S as default
|
|
24
15
|
};
|
package/index132.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime"),o=require("react-aria"),P=require("./index100.js"),k=require("./index6.js"),q=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=P.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)}),$=i[t],r=t===x,{title:a,id:f}=$,u=a&&a.length>0;return y.jsx(k.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?f:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=q;
|
package/index132.mjs
CHANGED
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 "./index100.mjs";
|
|
4
|
+
import g from "./index6.mjs";
|
|
5
|
+
const $ = (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], r = t === p, { title: n, id: x } = v, a = n && n.length > 0;
|
|
13
|
+
return /* @__PURE__ */ h(
|
|
14
|
+
g,
|
|
15
|
+
{
|
|
16
|
+
as: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
role: "button",
|
|
19
|
+
"aria-current": r ? "true" : "false",
|
|
20
|
+
"aria-disabled": r,
|
|
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: r }
|
|
27
|
+
}
|
|
28
|
+
);
|
|
11
29
|
};
|
|
12
30
|
export {
|
|
13
|
-
|
|
31
|
+
$ as default
|
|
14
32
|
};
|
package/index133.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 u=require("./index147.js"),$=require("./index158.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/index133.mjs
CHANGED
|
@@ -1,23 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { toCalendar as o } from "./index147.mjs";
|
|
2
|
+
import { weekStartData as i } from "./index158.mjs";
|
|
3
|
+
function p(e, a) {
|
|
4
|
+
return a = o(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
5
|
+
}
|
|
6
|
+
function $(e, a) {
|
|
7
|
+
let t = e.calendar.toJulianDay(e), n = Math.ceil(t + 1 - d(a)) % 7;
|
|
8
|
+
return n < 0 && (n += 7), n;
|
|
9
|
+
}
|
|
10
|
+
function y(e, a) {
|
|
11
|
+
return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
|
|
12
|
+
}
|
|
13
|
+
function g(e, a) {
|
|
14
|
+
return c(e) - c(a);
|
|
15
|
+
}
|
|
16
|
+
function c(e) {
|
|
17
|
+
return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
|
|
18
|
+
}
|
|
19
|
+
let r = null;
|
|
20
|
+
function x() {
|
|
21
|
+
return r == null && (r = new Intl.DateTimeFormat().resolvedOptions().timeZone), r;
|
|
22
|
+
}
|
|
23
|
+
function u(e) {
|
|
24
|
+
return e.subtract({
|
|
25
|
+
days: e.day - 1
|
|
11
26
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
}
|
|
28
|
+
const f = /* @__PURE__ */ new Map();
|
|
29
|
+
function l(e) {
|
|
30
|
+
if (Intl.Locale) {
|
|
31
|
+
let t = f.get(e);
|
|
32
|
+
return t || (t = new Intl.Locale(e).maximize().region, t && f.set(e, t)), t;
|
|
33
|
+
}
|
|
34
|
+
let a = e.split("-")[1];
|
|
35
|
+
return a === "u" ? void 0 : a;
|
|
36
|
+
}
|
|
37
|
+
function d(e) {
|
|
38
|
+
let a = l(e);
|
|
39
|
+
return a && i[a] || 0;
|
|
40
|
+
}
|
|
41
|
+
function h(e, a) {
|
|
42
|
+
let t = e.calendar.getDaysInMonth(e);
|
|
43
|
+
return Math.ceil(($(u(e), a) + t) / 7);
|
|
20
44
|
}
|
|
21
45
|
export {
|
|
22
|
-
|
|
46
|
+
y as compareDate,
|
|
47
|
+
g as compareTime,
|
|
48
|
+
$ as getDayOfWeek,
|
|
49
|
+
x as getLocalTimeZone,
|
|
50
|
+
h as getWeeksInMonth,
|
|
51
|
+
p as isSameDay,
|
|
52
|
+
u as startOfMonth
|
|
23
53
|
};
|
package/index134.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("./index133.js"),P=require("@react-aria/calendar"),j=require("@react-aria/focus"),v=require("@react-aria/utils"),O=require("react"),F=require("react-aria"),o=require("./index64.js");function I({themeName:c="calendar",tokens:l,state:e,date:i}){const u=O.useRef(null),{cellProps:f,buttonProps:q,isSelected:n,isOutsideVisibleRange:D,isDisabled:d,formattedDate:y,isInvalid:a}=P.useCalendarCell({date:i},e,u),h=e!=null&&e.highlightedRange?s.isSameDay(i,e==null?void 0:e.highlightedRange.start):n,g=e!=null&&e.highlightedRange?s.isSameDay(i,e==null?void 0:e.highlightedRange.end):n,{locale:C}=F.useLocale(),R=s.getDayOfWeek(i,C),S=n&&(h||R===0||i.day===1),b=n&&(g||R===6||i.day===i.calendar.getDaysInMonth(i)),{focusProps:m,isFocusVisible:p}=j.useFocusRing(),$=o(`${c}.cellContainer`,{...l,isFocusVisible:p}),t=o(`${c}.cell`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isRoundedLeft:S,isRoundedRight:b}),x=o(`${c}.cellDate`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isSelectionStart:h,isSelectionEnd:g});return r.jsx("td",{...f,"aria-disabled":!1,className:$,children:r.jsx("div",{...v.mergeProps(q,m),ref:u,hidden:D,className:t,children:r.jsx("div",{className:x,children:y})})})}module.exports=I;
|
package/index134.mjs
CHANGED
|
@@ -1,53 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return e.subtract({
|
|
25
|
-
days: e.day - 1
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { isSameDay as g, getDayOfWeek as v } from "./index133.mjs";
|
|
3
|
+
import { useCalendarCell as O } from "@react-aria/calendar";
|
|
4
|
+
import { useFocusRing as T } from "@react-aria/focus";
|
|
5
|
+
import { mergeProps as F } from "@react-aria/utils";
|
|
6
|
+
import { useRef as I } from "react";
|
|
7
|
+
import { useLocale as L } from "react-aria";
|
|
8
|
+
import r from "./index64.mjs";
|
|
9
|
+
function w({ themeName: l = "calendar", tokens: n, state: e, date: o }) {
|
|
10
|
+
const s = I(null), { cellProps: u, buttonProps: p, isSelected: i, isOutsideVisibleRange: R, isDisabled: d, formattedDate: $, isInvalid: f } = O({ date: o }, e, s), a = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.start) : i, m = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.end) : i, { locale: C } = L(), h = v(o, C), D = i && (a || h === 0 || o.day === 1), y = i && (m || h === 6 || o.day === o.calendar.getDaysInMonth(o)), { focusProps: b, isFocusVisible: x } = T(), S = r(`${l}.cellContainer`, { ...n, isFocusVisible: x }), t = r(`${l}.cell`, {
|
|
11
|
+
...n,
|
|
12
|
+
isSelected: i,
|
|
13
|
+
isInvalid: f,
|
|
14
|
+
isDisabled: d,
|
|
15
|
+
isRoundedLeft: D,
|
|
16
|
+
isRoundedRight: y
|
|
17
|
+
}), P = r(`${l}.cellDate`, {
|
|
18
|
+
...n,
|
|
19
|
+
isSelected: i,
|
|
20
|
+
isInvalid: f,
|
|
21
|
+
isDisabled: d,
|
|
22
|
+
isSelectionStart: a,
|
|
23
|
+
isSelectionEnd: m
|
|
26
24
|
});
|
|
27
|
-
}
|
|
28
|
-
const f = /* @__PURE__ */ new Map();
|
|
29
|
-
function l(e) {
|
|
30
|
-
if (Intl.Locale) {
|
|
31
|
-
let t = f.get(e);
|
|
32
|
-
return t || (t = new Intl.Locale(e).maximize().region, t && f.set(e, t)), t;
|
|
33
|
-
}
|
|
34
|
-
let a = e.split("-")[1];
|
|
35
|
-
return a === "u" ? void 0 : a;
|
|
36
|
-
}
|
|
37
|
-
function d(e) {
|
|
38
|
-
let a = l(e);
|
|
39
|
-
return a && i[a] || 0;
|
|
40
|
-
}
|
|
41
|
-
function h(e, a) {
|
|
42
|
-
let t = e.calendar.getDaysInMonth(e);
|
|
43
|
-
return Math.ceil(($(u(e), a) + t) / 7);
|
|
25
|
+
return /* @__PURE__ */ c("td", { ...u, "aria-disabled": !1, className: S, children: /* @__PURE__ */ c("div", { ...F(p, b), ref: s, hidden: R, className: t, children: /* @__PURE__ */ c("div", { className: P, children: $ }) }) });
|
|
44
26
|
}
|
|
45
27
|
export {
|
|
46
|
-
|
|
47
|
-
g as compareTime,
|
|
48
|
-
$ as getDayOfWeek,
|
|
49
|
-
x as getLocalTimeZone,
|
|
50
|
-
h as getWeeksInMonth,
|
|
51
|
-
p as isSameDay,
|
|
52
|
-
u as startOfMonth
|
|
28
|
+
w as default
|
|
53
29
|
};
|
package/index135.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index269.js"),l=require("@react-aria/utils"),u=require("@react-aria/focus");function t(a,e,r){let n=u.useHasTabbableChild(r)?void 0:0;var i;const b=d.generateId(e,(i=a.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),o=l.useLabels({...a,id:b,"aria-labelledby":d.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:l.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=t;
|