@okam/stack-ui 1.25.4 → 1.26.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/DirectusImg/interface.d.ts +3 -0
- package/index.js +1 -110
- package/index.mjs +165 -12753
- package/index10.js +2 -0
- package/index10.mjs +92 -0
- package/index100.js +1 -0
- package/index100.mjs +67 -0
- package/index101.js +1 -0
- package/index101.mjs +144 -0
- package/index102.js +1 -0
- package/index102.mjs +122 -0
- package/index103.js +1 -0
- package/index103.mjs +220 -0
- package/index104.js +1 -0
- package/index104.mjs +177 -0
- package/index105.js +1 -0
- package/index105.mjs +129 -0
- package/index106.js +1 -0
- package/index106.mjs +243 -0
- package/index107.js +1 -0
- package/index107.mjs +6 -0
- package/index108.js +1 -0
- package/index108.mjs +13 -0
- package/index109.js +1 -0
- package/index109.mjs +16 -0
- package/index11.js +2 -0
- package/index11.mjs +75 -0
- package/index110.js +1 -0
- package/index110.mjs +25 -0
- package/index111.js +1 -0
- package/index111.mjs +25 -0
- package/index112.js +1 -0
- package/index112.mjs +41 -0
- package/index113.js +2 -0
- package/index113.mjs +15 -0
- package/index114.js +1 -0
- package/index114.mjs +10 -0
- package/index115.js +1 -0
- package/index115.mjs +24 -0
- package/index116.js +1 -0
- package/index116.mjs +41 -0
- package/index117.js +1 -0
- package/index117.mjs +52 -0
- package/index118.js +1 -0
- package/index118.mjs +43 -0
- package/index119.js +1 -0
- package/index119.mjs +16 -0
- package/index12.js +1 -0
- package/index12.mjs +19 -0
- package/index120.js +1 -0
- package/index120.mjs +28 -0
- package/index121.js +1 -0
- package/index121.mjs +22 -0
- package/index122.js +1 -0
- package/index122.mjs +11 -0
- package/index123.js +1 -0
- package/index123.mjs +32 -0
- package/index124.js +1 -0
- package/index124.mjs +17 -0
- package/index125.js +1 -0
- package/index125.mjs +19 -0
- package/index126.js +1 -0
- package/index126.mjs +7 -0
- package/index127.js +1 -0
- package/index127.mjs +23 -0
- package/index128.js +1 -0
- package/index128.mjs +13 -0
- package/index129.js +1 -0
- package/index129.mjs +106 -0
- package/index13.js +2 -0
- package/index13.mjs +22 -0
- package/index130.js +1 -0
- package/index130.mjs +44 -0
- package/index131.js +2 -0
- package/index131.mjs +24 -0
- package/index132.js +1 -0
- package/index132.mjs +14 -0
- package/index133.js +1 -0
- package/index133.mjs +23 -0
- package/index134.js +1 -0
- package/index134.mjs +53 -0
- package/index135.js +1 -0
- package/index135.mjs +29 -0
- package/index136.js +1 -0
- package/index136.mjs +27 -0
- package/index137.js +1 -0
- package/index137.mjs +48 -0
- package/index138.js +2 -0
- package/index138.mjs +14 -0
- package/index14.js +2 -0
- package/index14.mjs +21 -0
- package/index141.js +1 -0
- package/index141.mjs +44 -0
- package/index142.js +1 -0
- package/index142.mjs +31 -0
- package/index143.js +1 -0
- package/index143.mjs +202 -0
- package/index144.js +1 -0
- package/index144.mjs +193 -0
- package/index145.js +1 -0
- package/index145.mjs +72 -0
- package/index146.js +1 -0
- package/index146.mjs +261 -0
- package/index147.js +1 -0
- package/index147.mjs +100 -0
- package/index148.js +1 -0
- package/index148.mjs +87 -0
- package/index149.js +1 -0
- package/index149.mjs +61 -0
- package/index15.js +2 -0
- package/index15.mjs +88 -0
- package/index150.js +1 -0
- package/index150.mjs +119 -0
- package/index151.js +1 -0
- package/index151.mjs +125 -0
- package/index152.js +1 -0
- package/index152.mjs +75 -0
- package/index153.js +1 -0
- package/index153.mjs +113 -0
- package/index154.js +1 -0
- package/index154.mjs +55 -0
- package/index155.js +1 -0
- package/index155.mjs +96 -0
- package/index156.js +1 -0
- package/index156.mjs +73 -0
- package/index157.js +1 -0
- package/index157.mjs +59 -0
- package/index158.js +1 -0
- package/index158.mjs +102 -0
- package/index159.js +5 -0
- package/index159.mjs +83 -0
- package/index16.js +2 -0
- package/index16.mjs +35 -0
- package/index160.js +1 -0
- package/index160.mjs +2014 -0
- package/index161.js +1 -0
- package/index161.mjs +62 -0
- package/index162.js +1 -0
- package/index162.mjs +191 -0
- package/index163.js +1 -0
- package/index163.mjs +8 -0
- package/index164.js +4 -0
- package/index164.mjs +249 -0
- package/index165.js +1 -0
- package/index165.mjs +33 -0
- package/index166.js +1 -0
- package/index166.mjs +64 -0
- package/index167.js +1 -0
- package/index167.mjs +97 -0
- package/index168.js +1 -0
- package/index168.mjs +34 -0
- package/index169.js +1 -0
- package/index169.mjs +133 -0
- package/index17.js +2 -0
- package/index17.mjs +37 -0
- package/index170.js +1 -0
- package/index170.mjs +182 -0
- package/index171.js +1 -0
- package/index171.mjs +12 -0
- package/index172.js +1 -0
- package/index172.mjs +6 -0
- package/index173.js +1 -0
- package/index173.mjs +39 -0
- package/index174.js +1 -0
- package/index174.mjs +8 -0
- package/index175.js +1 -0
- package/index175.mjs +32 -0
- package/index176.js +1 -0
- package/index176.mjs +9 -0
- package/index177.js +1 -0
- package/index177.mjs +124 -0
- package/index178.js +1 -0
- package/index178.mjs +30 -0
- package/index179.js +1 -0
- package/index179.mjs +127 -0
- package/index18.js +2 -0
- package/index18.mjs +35 -0
- package/index180.js +1 -0
- package/index180.mjs +137 -0
- package/index181.js +1 -0
- package/index181.mjs +17 -0
- package/index182.js +1 -0
- package/index182.mjs +98 -0
- package/index183.js +1 -0
- package/index183.mjs +109 -0
- package/index184.js +1 -0
- package/index184.mjs +8 -0
- package/index185.js +1 -0
- package/index185.mjs +6 -0
- package/index186.js +1 -0
- package/index186.mjs +128 -0
- package/index187.js +1 -0
- package/index187.mjs +32 -0
- package/index188.js +1 -0
- package/index188.mjs +54 -0
- package/index189.js +1 -0
- package/index189.mjs +47 -0
- package/index19.js +2 -0
- package/index19.mjs +38 -0
- package/index190.js +1 -0
- package/index190.mjs +40 -0
- package/index191.js +1 -0
- package/index191.mjs +116 -0
- package/index192.js +1 -0
- package/index192.mjs +80 -0
- package/index193.js +1 -0
- package/index193.mjs +104 -0
- package/index194.js +1 -0
- package/index194.mjs +100 -0
- package/index195.js +1 -0
- package/index195.mjs +4 -0
- package/index196.js +1 -0
- package/index196.mjs +8 -0
- package/index197.js +1 -0
- package/index197.mjs +67 -0
- package/index198.js +1 -0
- package/index198.mjs +29 -0
- package/index199.js +1 -0
- package/index199.mjs +57 -0
- package/index2.js +2 -0
- package/index2.mjs +149 -0
- package/index20.js +2 -0
- package/index20.mjs +73 -0
- package/index200.js +1 -0
- package/index200.mjs +158 -0
- package/index201.js +1 -0
- package/index201.mjs +25 -0
- package/index202.js +1 -0
- package/index202.mjs +22 -0
- package/index203.js +1 -0
- package/index203.mjs +42 -0
- package/index204.js +1 -0
- package/index204.mjs +85 -0
- package/index205.js +1 -0
- package/index205.mjs +33 -0
- package/index206.js +1 -0
- package/index206.mjs +24 -0
- package/index207.js +1 -0
- package/index207.mjs +63 -0
- package/index208.js +1 -0
- package/index208.mjs +4 -0
- package/index209.js +11 -0
- package/index209.mjs +118 -0
- package/index21.js +2 -0
- package/index21.mjs +70 -0
- package/index210.js +1 -0
- package/index210.mjs +4 -0
- package/index211.js +1 -0
- package/index211.mjs +8 -0
- package/index212.js +1 -0
- package/index212.mjs +4 -0
- package/index213.js +1 -0
- package/index213.mjs +55 -0
- package/index214.js +1 -0
- package/index214.mjs +23 -0
- package/index215.js +1 -0
- package/index215.mjs +26 -0
- package/index216.js +1 -0
- package/index216.mjs +29 -0
- package/index217.js +1 -0
- package/index217.mjs +49 -0
- package/index218.js +1 -0
- package/index218.mjs +4 -0
- package/index219.js +1 -0
- package/index219.mjs +23 -0
- package/index22.js +2 -0
- package/index22.mjs +56 -0
- package/index220.js +1 -0
- package/index220.mjs +4 -0
- package/index221.js +1 -0
- package/index221.mjs +31 -0
- package/index222.js +1 -0
- package/index222.mjs +4 -0
- package/index223.js +1 -0
- package/index223.mjs +4 -0
- package/index224.js +1 -0
- package/index224.mjs +25 -0
- package/index225.js +1 -0
- package/index225.mjs +4 -0
- package/index226.js +1 -0
- package/index226.mjs +4 -0
- package/index227.js +1 -0
- package/index227.mjs +4 -0
- package/index228.js +1 -0
- package/index228.mjs +40 -0
- package/index229.js +1 -0
- package/index229.mjs +4 -0
- package/index23.js +2 -0
- package/index23.mjs +60 -0
- package/index230.js +1 -0
- package/index230.mjs +23 -0
- package/index231.js +1 -0
- package/index231.mjs +25 -0
- package/index232.js +1 -0
- package/index232.mjs +4 -0
- package/index233.js +1 -0
- package/index233.mjs +25 -0
- package/index234.js +1 -0
- package/index234.mjs +4 -0
- package/index235.js +1 -0
- package/index235.mjs +316 -0
- package/index236.js +1 -0
- package/index236.mjs +195 -0
- package/index237.js +1 -0
- package/index237.mjs +11 -0
- package/index238.js +1 -0
- package/index238.mjs +29 -0
- package/index239.js +1 -0
- package/index239.mjs +58 -0
- package/index24.js +2 -0
- package/index24.mjs +23 -0
- package/index240.js +1 -0
- package/index240.mjs +49 -0
- package/index241.js +1 -0
- package/index241.mjs +127 -0
- package/index242.js +1 -0
- package/index242.mjs +8 -0
- package/index243.js +1 -0
- package/index243.mjs +4 -0
- package/index244.js +1 -0
- package/index244.mjs +4 -0
- package/index245.js +1 -0
- package/index245.mjs +4 -0
- package/index246.js +1 -0
- package/index246.mjs +20 -0
- package/index247.js +1 -0
- package/index247.mjs +29 -0
- package/index248.js +1 -0
- package/index248.mjs +4 -0
- package/index249.js +1 -0
- package/index249.mjs +91 -0
- package/index25.js +2 -0
- package/index25.mjs +53 -0
- package/index250.js +1 -0
- package/index250.mjs +22 -0
- package/index251.js +1 -0
- package/index251.mjs +4 -0
- package/index252.js +1 -0
- package/index252.mjs +40 -0
- package/index253.js +1 -0
- package/index253.mjs +139 -0
- package/index254.js +1 -0
- package/index254.mjs +4 -0
- package/index255.js +1 -0
- package/index255.mjs +25 -0
- package/index256.js +1 -0
- package/index256.mjs +4 -0
- package/index257.js +1 -0
- package/index257.mjs +4 -0
- package/index258.js +1 -0
- package/index258.mjs +4 -0
- package/index259.js +1 -0
- package/index259.mjs +4 -0
- package/index26.js +2 -0
- package/index26.mjs +20 -0
- package/index260.js +1 -0
- package/index260.mjs +25 -0
- package/index261.js +1 -0
- package/index261.mjs +4 -0
- package/index262.js +1 -0
- package/index262.mjs +28 -0
- package/index263.js +1 -0
- package/index263.mjs +4 -0
- package/index264.js +1 -0
- package/index264.mjs +4 -0
- package/index265.js +1 -0
- package/index265.mjs +4 -0
- package/index266.js +1 -0
- package/index266.mjs +4 -0
- package/index267.js +1 -0
- package/index267.mjs +4 -0
- package/index268.js +1 -0
- package/index268.mjs +74 -0
- package/index269.js +1 -0
- package/index269.mjs +4 -0
- package/index27.js +2 -0
- package/index27.mjs +36 -0
- package/index270.js +1 -0
- package/index270.mjs +4 -0
- package/index271.js +1 -0
- package/index271.mjs +21 -0
- package/index272.js +1 -0
- package/index272.mjs +4 -0
- package/index273.js +1 -0
- package/index273.mjs +4 -0
- package/index274.js +1 -0
- package/index274.mjs +4 -0
- package/index275.js +1 -0
- package/index275.mjs +31 -0
- package/index276.js +1 -0
- package/index276.mjs +9 -0
- package/index277.js +1 -0
- package/index277.mjs +10 -0
- package/index278.js +1 -0
- package/index278.mjs +10 -0
- package/index279.js +1 -0
- package/index279.mjs +4 -0
- package/index28.js +2 -0
- package/index28.mjs +27 -0
- package/index280.js +1 -0
- package/index280.mjs +39 -0
- package/index281.js +1 -0
- package/index281.mjs +4 -0
- package/index282.js +1 -0
- package/index282.mjs +7 -0
- package/index283.js +1 -0
- package/index283.mjs +8 -0
- package/index284.js +1 -0
- package/index284.mjs +12 -0
- package/index285.js +1 -0
- package/index285.mjs +4 -0
- package/index286.js +1 -0
- package/index286.mjs +20 -0
- package/index287.js +1 -0
- package/index287.mjs +33 -0
- package/index288.js +1 -0
- package/index288.mjs +4 -0
- package/index289.js +1 -0
- package/index289.mjs +4 -0
- package/index29.js +2 -0
- package/index29.mjs +11 -0
- package/index3.js +2 -0
- package/index3.mjs +22 -0
- package/index30.js +2 -0
- package/index30.mjs +35 -0
- package/index31.js +2 -0
- package/index31.mjs +36 -0
- package/index32.js +2 -0
- package/index32.mjs +106 -0
- package/index33.js +2 -0
- package/index33.mjs +12 -0
- package/index34.js +2 -0
- package/index34.mjs +49 -0
- package/index35.js +2 -0
- package/index35.mjs +21 -0
- package/index36.js +1 -0
- package/index36.mjs +9 -0
- package/index37.js +1 -0
- package/index37.mjs +49 -0
- package/index38.js +1 -0
- package/index38.mjs +27 -0
- package/index39.js +1 -0
- package/index39.mjs +7 -0
- package/index4.js +2 -0
- package/index4.mjs +25 -0
- package/index40.js +1 -0
- package/index40.mjs +10 -0
- package/index41.js +1 -0
- package/index41.mjs +10 -0
- package/index42.js +1 -0
- package/index42.mjs +7 -0
- package/index43.js +1 -0
- package/index43.mjs +7 -0
- package/index44.js +1 -0
- package/index44.mjs +7 -0
- package/index45.js +1 -0
- package/index45.mjs +7 -0
- package/index46.js +1 -0
- package/index46.mjs +13 -0
- package/index47.js +1 -0
- package/index47.mjs +15 -0
- package/index48.js +1 -0
- package/index48.mjs +15 -0
- package/index49.js +1 -0
- package/index49.mjs +48 -0
- package/index5.js +1 -0
- package/index5.mjs +34 -0
- package/index50.js +1 -0
- package/index50.mjs +10 -0
- package/index51.js +1 -0
- package/index51.mjs +73 -0
- package/index52.js +1 -0
- package/index52.mjs +10 -0
- package/index53.js +1 -0
- package/index53.mjs +15 -0
- package/index54.js +1 -0
- package/index54.mjs +12 -0
- package/index55.js +1 -0
- package/index55.mjs +19 -0
- package/index56.js +1 -0
- package/index56.mjs +15 -0
- package/index57.js +1 -0
- package/index57.mjs +15 -0
- package/index58.js +1 -0
- package/index58.mjs +15 -0
- package/index59.js +1 -0
- package/index59.mjs +13 -0
- package/index6.js +2 -0
- package/index6.mjs +60 -0
- package/index60.js +1 -0
- package/index60.mjs +13 -0
- package/index61.js +1 -0
- package/index61.mjs +15 -0
- package/index62.js +1 -0
- package/index62.mjs +16 -0
- package/index63.js +2 -0
- package/index63.mjs +25 -0
- package/index64.js +2 -0
- package/index64.mjs +19 -0
- package/index65.js +2 -0
- package/index65.mjs +17 -0
- package/index66.js +2 -0
- package/index66.mjs +44 -0
- package/index67.js +2 -0
- package/index67.mjs +41 -0
- package/index68.js +2 -0
- package/index68.mjs +15 -0
- package/index69.js +2 -0
- package/index69.mjs +14 -0
- package/index7.js +2 -0
- package/index7.mjs +86 -0
- package/index70.js +2 -0
- package/index70.mjs +17 -0
- package/index71.js +1 -0
- package/index71.mjs +4 -0
- package/index72.js +2 -0
- package/index72.mjs +11 -0
- package/index73.js +2 -0
- package/index73.mjs +10 -0
- package/index74.js +2 -0
- package/index74.mjs +10 -0
- package/index75.js +2 -0
- package/index75.mjs +10 -0
- package/index76.js +1 -0
- package/index76.mjs +27 -0
- package/index77.js +1 -0
- package/index77.mjs +4 -0
- package/index78.js +6 -0
- package/index78.mjs +96 -0
- package/index79.js +1 -0
- package/index79.mjs +71 -0
- package/index8.js +2 -0
- package/index8.mjs +27 -0
- package/index80.js +1 -0
- package/index80.mjs +43 -0
- package/index81.js +42 -0
- package/index81.mjs +72 -0
- package/index82.js +1 -0
- package/index82.mjs +161 -0
- package/index83.js +1 -0
- package/index83.mjs +24 -0
- package/index84.js +1 -0
- package/index84.mjs +47 -0
- package/index85.js +1 -0
- package/index85.mjs +15 -0
- package/index86.js +1 -0
- package/index86.mjs +37 -0
- package/index87.js +1 -0
- package/index87.mjs +8 -0
- package/index88.js +12 -0
- package/index88.mjs +42 -0
- package/index89.js +1 -0
- package/index89.mjs +31 -0
- package/index9.js +2 -0
- package/index9.mjs +64 -0
- package/index90.js +1 -0
- package/index90.mjs +15 -0
- package/index91.js +7 -0
- package/index91.mjs +21 -0
- package/index92.js +15 -0
- package/index92.mjs +73 -0
- package/index93.js +1 -0
- package/index93.mjs +9 -0
- package/index94.js +16 -0
- package/index94.mjs +27 -0
- package/index95.js +1 -0
- package/index95.mjs +44 -0
- package/index96.js +1 -0
- package/index96.mjs +47 -0
- package/index97.js +1 -0
- package/index97.mjs +50 -0
- package/index98.js +1 -0
- package/index98.mjs +19 -0
- package/index99.js +2 -0
- package/index99.mjs +24 -0
- package/package.json +1 -1
package/index106.mjs
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
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 "./index160.mjs";
|
|
3
|
+
import { g as Z, m as ee, a as re, u as te } from "./index161.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 "./index162.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";
|
|
239
|
+
export {
|
|
240
|
+
pe as Swiper,
|
|
241
|
+
de as SwiperSlide,
|
|
242
|
+
ge as useSwiperSlide
|
|
243
|
+
};
|
package/index107.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("react"),o=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),s=r.memo(o);module.exports=s;
|
package/index107.mjs
ADDED
package/index108.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("lodash.isequal"),t=require("react"),c=r=>e.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...r,children:[e.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[e.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),e.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),i=t.memo(c,s);module.exports=i;
|
package/index108.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "lodash.isequal";
|
|
3
|
+
import { memo as l } from "react";
|
|
4
|
+
const i = (t) => /* @__PURE__ */ o("svg", { width: 20, height: 20, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ...t, children: [
|
|
5
|
+
/* @__PURE__ */ o("g", { stroke: "currentColor", clipPath: "url(#a)", children: [
|
|
6
|
+
/* @__PURE__ */ r("circle", { cx: "8.2727", cy: "8.2727", r: "7.2727" }),
|
|
7
|
+
/* @__PURE__ */ r("path", { d: "M13.4551 13.4531L19.5005 19.4986" })
|
|
8
|
+
] }),
|
|
9
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M0 0h14v14H0z" }) }) })
|
|
10
|
+
] }), s = l(i, e);
|
|
11
|
+
export {
|
|
12
|
+
s as default
|
|
13
|
+
};
|
package/index109.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=(r,n,t)=>{const e=r[n];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};module.exports=i;
|
package/index109.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const l = (r, n, t) => {
|
|
2
|
+
const e = r[n];
|
|
3
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
|
|
4
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5
|
+
o.bind(
|
|
6
|
+
null,
|
|
7
|
+
new Error(
|
|
8
|
+
"Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
9
|
+
)
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
l as default
|
|
16
|
+
};
|
package/index11.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const i=require("react/jsx-runtime"),q=require("react"),f=require("./index100.js"),S=require("./index101.js"),T=require("./index102.js"),y=require("./index103.js"),C=require("./index104.js"),P=require("./index105.js"),w=require("./index106.js"),d=require("./index64.js"),x=require("./index24.js"),k=require("./index6.js"),B=require("./index13.js"),$=u=>{const{navigationButton:s,icon:t,themeName:l="carousel",tokens:n,id:r,swiperFn:e}=u,c=a=>{("pointerType"in a&&a.pointerType==="keyboard"||"code"in a&&a.code==="Enter")&&(e==null||e())};return s?q.cloneElement(s,{onKeyDown:c,handlePress:c}):i.jsx(k.default,{themeName:`${l}.navigationButtons`,tokens:{...n,className:r},handlePress:c,children:i.jsx(B,{icon:t})})},E=u=>{const{id:s,slides:t,children:l,navigationButtons:n,themeName:r="carousel",tokens:e,customTheme:c,...a}=u,h=t&&(t==null?void 0:t.length)>1,{navigation:p,slidesPerView:v}=u,b=d(`${r}.swiper`,e),g=d(`${r}.swiperWrapper`,e),N=d(`${r}.slideWrapper`,e),[o,j]=q.useState();return i.jsxs(x.default,{themeName:`${r}.container`,tokens:e,customTheme:c,...a,children:[h&&p&&i.jsx($,{themeName:r,tokens:e,navigationButton:n==null?void 0:n.leftButton,id:`button-prev-${s}`,icon:"ArrowLeft",swiperFn:()=>o==null?void 0:o.slidePrev(),swiper:o}),i.jsx(w.Swiper,{modules:[T,S,f,y,P,C],...a,navigation:{prevEl:`.button-prev-${s}`,nextEl:`.button-next-${s}`,disabledClass:"button-disabled"},onSwiper:j,wrapperClass:g,className:b,mousewheel:!0,keyboard:!0,watchOverflow:!0,slidesPerView:v??1,children:t==null?void 0:t.map(m=>i.jsx(w.SwiperSlide,{className:N,children:i.jsx(x.default,{themeName:`${r}.slideContainer`,tokens:e,children:m.child})},m.id))}),h&&p&&i.jsx($,{themeName:r,tokens:e,navigationButton:n==null?void 0:n.rightButton,id:`button-next-${s}`,icon:"ArrowRight",swiperFn:()=>o==null?void 0:o.slideNext(),swiper:o}),l]})};module.exports=E;
|
package/index11.mjs
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import T, { useState as B } from "react";
|
|
4
|
+
import C from "./index100.mjs";
|
|
5
|
+
import P from "./index101.mjs";
|
|
6
|
+
import S from "./index102.mjs";
|
|
7
|
+
import y from "./index103.mjs";
|
|
8
|
+
import A from "./index104.mjs";
|
|
9
|
+
import E from "./index105.mjs";
|
|
10
|
+
import { Swiper as W, SwiperSlide as j } from "./index106.mjs";
|
|
11
|
+
import c from "./index64.mjs";
|
|
12
|
+
import f from "./index24.mjs";
|
|
13
|
+
import k from "./index6.mjs";
|
|
14
|
+
import D from "./index13.mjs";
|
|
15
|
+
const w = (p) => {
|
|
16
|
+
const { navigationButton: i, icon: t, themeName: l = "carousel", tokens: r, id: o, swiperFn: e } = p, s = (a) => {
|
|
17
|
+
("pointerType" in a && a.pointerType === "keyboard" || "code" in a && a.code === "Enter") && (e == null || e());
|
|
18
|
+
};
|
|
19
|
+
return i ? T.cloneElement(i, {
|
|
20
|
+
onKeyDown: s,
|
|
21
|
+
handlePress: s
|
|
22
|
+
}) : /* @__PURE__ */ m(k, { themeName: `${l}.navigationButtons`, tokens: { ...r, className: o }, handlePress: s, children: /* @__PURE__ */ m(D, { icon: t }) });
|
|
23
|
+
}, J = (p) => {
|
|
24
|
+
const { id: i, slides: t, children: l, navigationButtons: r, themeName: o = "carousel", tokens: e, customTheme: s, ...a } = p, d = t && (t == null ? void 0 : t.length) > 1, { navigation: u, slidesPerView: N } = p, b = c(`${o}.swiper`, e), v = c(`${o}.swiperWrapper`, e), $ = c(`${o}.slideWrapper`, e), [n, g] = B();
|
|
25
|
+
return /* @__PURE__ */ x(f, { themeName: `${o}.container`, tokens: e, customTheme: s, ...a, children: [
|
|
26
|
+
d && u && /* @__PURE__ */ m(
|
|
27
|
+
w,
|
|
28
|
+
{
|
|
29
|
+
themeName: o,
|
|
30
|
+
tokens: e,
|
|
31
|
+
navigationButton: r == null ? void 0 : r.leftButton,
|
|
32
|
+
id: `button-prev-${i}`,
|
|
33
|
+
icon: "ArrowLeft",
|
|
34
|
+
swiperFn: () => n == null ? void 0 : n.slidePrev(),
|
|
35
|
+
swiper: n
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ m(
|
|
39
|
+
W,
|
|
40
|
+
{
|
|
41
|
+
modules: [S, P, C, y, E, A],
|
|
42
|
+
...a,
|
|
43
|
+
navigation: {
|
|
44
|
+
prevEl: `.button-prev-${i}`,
|
|
45
|
+
nextEl: `.button-next-${i}`,
|
|
46
|
+
disabledClass: "button-disabled"
|
|
47
|
+
},
|
|
48
|
+
onSwiper: g,
|
|
49
|
+
wrapperClass: v,
|
|
50
|
+
className: b,
|
|
51
|
+
mousewheel: !0,
|
|
52
|
+
keyboard: !0,
|
|
53
|
+
watchOverflow: !0,
|
|
54
|
+
slidesPerView: N ?? 1,
|
|
55
|
+
children: t == null ? void 0 : t.map((h) => /* @__PURE__ */ m(j, { className: $, children: /* @__PURE__ */ m(f, { themeName: `${o}.slideContainer`, tokens: e, children: h.child }) }, h.id))
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
d && u && /* @__PURE__ */ m(
|
|
59
|
+
w,
|
|
60
|
+
{
|
|
61
|
+
themeName: o,
|
|
62
|
+
tokens: e,
|
|
63
|
+
navigationButton: r == null ? void 0 : r.rightButton,
|
|
64
|
+
id: `button-next-${i}`,
|
|
65
|
+
icon: "ArrowRight",
|
|
66
|
+
swiperFn: () => n == null ? void 0 : n.slideNext(),
|
|
67
|
+
swiper: n
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
l
|
|
71
|
+
] });
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
J as default
|
|
75
|
+
};
|
package/index110.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),u=require("react-aria"),p=require("./index64.js"),l=require("./index3.js"),h=({item:o,state:i,themeName:t="li"})=>{const e=a.useRef(null),{optionProps:s,isFocusVisible:c}=u.useOption({key:o.key},i,e),r=p(t);return n.jsx(l.TypographyWithForwardRef,{as:"li",...s,tokens:{className:`${r} ${c?"has-focus-ring":""}`},ref:e,children:o.rendered})},d=o=>{const i=a.useRef(null),{listBoxRef:t=i,state:e,themeName:s="option"}=o,{listBoxProps:c}=u.useListBox(o,e,t);return n.jsx(u.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:n.jsx(l.TypographyWithForwardRef,{...c,ref:t,as:"ul",themeName:`${s}.ul`,children:[...e.collection].map(r=>n.jsx(h,{themeName:`${s}.li`,item:r,state:e},r.key))})})};exports.ListBox=d;exports.Option=h;
|
package/index110.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { useListBox as m, FocusScope as a, useOption as f } from "react-aria";
|
|
4
|
+
import p from "./index64.mjs";
|
|
5
|
+
import { TypographyWithForwardRef as l } from "./index3.mjs";
|
|
6
|
+
const h = ({ item: o, state: i, themeName: t = "li" }) => {
|
|
7
|
+
const e = u.useRef(null), { optionProps: s, isFocusVisible: c } = f({ key: o.key }, i, e), r = p(t);
|
|
8
|
+
return /* @__PURE__ */ n(
|
|
9
|
+
l,
|
|
10
|
+
{
|
|
11
|
+
as: "li",
|
|
12
|
+
...s,
|
|
13
|
+
tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
|
|
14
|
+
ref: e,
|
|
15
|
+
children: o.rendered
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}, k = (o) => {
|
|
19
|
+
const i = u.useRef(null), { listBoxRef: t = i, state: e, themeName: s = "option" } = o, { listBoxProps: c } = m(o, e, t);
|
|
20
|
+
return /* @__PURE__ */ n(a, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ n(l, { ...c, ref: t, as: "ul", themeName: `${s}.ul`, children: [...e.collection].map((r) => /* @__PURE__ */ n(h, { themeName: `${s}.li`, item: r, state: e }, r.key)) }) });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
k as ListBox,
|
|
24
|
+
h as Option
|
|
25
|
+
};
|
package/index111.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),f=require("react"),s=require("react-aria"),i=require("./index24.js"),m=o=>{const n=f.useRef(null),{popoverRef:t=n,state:r,children:c,themeName:u="popover",tokens:l,customTheme:h,triggerRef:d,...p}=o,{popoverProps:x,underlayProps:a}=s.usePopover({...o,popoverRef:t,triggerRef:d},r);return e.jsxs(s.Overlay,{children:[e.jsx("div",{...a,style:{position:"fixed",inset:0}}),e.jsx(i.default,{...p,children:e.jsxs(i.BoxWithForwardRef,{...x,ref:t,themeName:u,tokens:l,children:[e.jsx(s.DismissButton,{onDismiss:r.close}),c,e.jsx(s.DismissButton,{onDismiss:r.close})]})})]})};module.exports=m;
|
package/index111.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { usePopover as h, Overlay as v, DismissButton as i } from "react-aria";
|
|
4
|
+
import x, { BoxWithForwardRef as R } from "./index24.mjs";
|
|
5
|
+
const j = (r) => {
|
|
6
|
+
const n = u.useRef(null), { popoverRef: s = n, state: o, children: m, themeName: p = "popover", tokens: f, customTheme: P, triggerRef: l, ...c } = r, { popoverProps: d, underlayProps: a } = h(
|
|
7
|
+
{
|
|
8
|
+
...r,
|
|
9
|
+
popoverRef: s,
|
|
10
|
+
triggerRef: l
|
|
11
|
+
},
|
|
12
|
+
o
|
|
13
|
+
);
|
|
14
|
+
return /* @__PURE__ */ t(v, { children: [
|
|
15
|
+
/* @__PURE__ */ e("div", { ...a, style: { position: "fixed", inset: 0 } }),
|
|
16
|
+
/* @__PURE__ */ e(x, { ...c, children: /* @__PURE__ */ t(R, { ...d, ref: s, themeName: p, tokens: f, children: [
|
|
17
|
+
/* @__PURE__ */ e(i, { onDismiss: o.close }),
|
|
18
|
+
m,
|
|
19
|
+
/* @__PURE__ */ e(i, { onDismiss: o.close })
|
|
20
|
+
] }) })
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
j as default
|
|
25
|
+
};
|
package/index112.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index177.js"),o=require("./index178.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/index112.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useFormValidationState as r, mergeValidation as o } from "./index177.mjs";
|
|
2
|
+
import { useControlledState as b } from "./index178.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
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
y as useCheckboxGroupState
|
|
41
|
+
};
|
package/index113.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=t.createContext(null),c=e=>{const{children:o,state:u}=e;return n.jsx(r.Provider,{value:u,children:o})};function s(){const e=t.useContext(r);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
|
package/index113.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as u, useContext as c } from "react";
|
|
4
|
+
const o = u(null), i = (t) => {
|
|
5
|
+
const { children: e, state: r } = t;
|
|
6
|
+
return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
|
|
7
|
+
};
|
|
8
|
+
function C() {
|
|
9
|
+
const t = c(o);
|
|
10
|
+
return t || null;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as CheckboxGroupProvider,
|
|
14
|
+
C as useCheckboxGroupCtx
|
|
15
|
+
};
|
package/index114.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),n=require("react-aria");function s({title:c,children:r,...t}){const e=u.useRef(null),{dialogProps:i}=n.useDialog(t,e);return o.jsx("div",{...i,ref:e,children:r})}exports.Dialog=s;
|
package/index114.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f } from "react";
|
|
3
|
+
import { useDialog as l } from "react-aria";
|
|
4
|
+
function u({ title: m, children: r, ...t }) {
|
|
5
|
+
const o = f(null), { dialogProps: i } = l(t, o);
|
|
6
|
+
return /* @__PURE__ */ e("div", { ...i, ref: o, children: r });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
u as Dialog
|
|
10
|
+
};
|
package/index115.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@react-aria/overlays"),f=require("react"),a=require("./index64.js");function v(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const m=v(f);function j({themeName:e="datePicker",tokens:o,...r}){const s=m.useRef(null),{state:c,children:i}={...r},{popoverProps:l,underlayProps:u}=n.usePopover({...r,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,o),p=a(`${e}.calendarPopover`,o);return t.jsxs(n.Overlay,{children:[t.jsx("div",{...u,className:d}),t.jsxs("div",{...l,ref:s,className:p,children:[t.jsx(n.DismissButton,{onDismiss:c.close}),i,t.jsx(n.DismissButton,{onDismiss:c.close})]})]})}exports.CalendarPopover=j;
|
package/index115.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
|
|
3
|
+
import * as P from "react";
|
|
4
|
+
import t from "./index64.mjs";
|
|
5
|
+
function D({ themeName: r = "datePicker", tokens: s, ...n }) {
|
|
6
|
+
const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
|
|
7
|
+
{
|
|
8
|
+
...n,
|
|
9
|
+
popoverRef: a
|
|
10
|
+
},
|
|
11
|
+
e
|
|
12
|
+
), d = t(`${r}.calendarUnderlay`, s), u = t(`${r}.calendarPopover`, s);
|
|
13
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
14
|
+
/* @__PURE__ */ o("div", { ...m, className: d }),
|
|
15
|
+
/* @__PURE__ */ c("div", { ...p, ref: a, className: u, children: [
|
|
16
|
+
/* @__PURE__ */ o(i, { onDismiss: e.close }),
|
|
17
|
+
l,
|
|
18
|
+
/* @__PURE__ */ o(i, { onDismiss: e.close })
|
|
19
|
+
] })
|
|
20
|
+
] });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
D as CalendarPopover
|
|
24
|
+
};
|
package/index116.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),d=require("./index118.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),q=require("./index64.js");function p({segment:e,state:i}){const r=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,r),c=q("datePicker.dateSegment");return s.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsxs("div",{...t,ref:r,className:c,children:[s.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function x(e){const{locale:i}=u.useLocale(),r=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,r,t);return s.jsx("div",{...c,ref:t,className:"flex",children:r.segments.map((l,o)=>s.jsx(p,{segment:l,state:r},o))})}module.exports=x;
|
package/index116.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as d } from "./index118.mjs";
|
|
3
|
+
import { useDateField as m, useDateSegment as f } from "@react-aria/datepicker";
|
|
4
|
+
import { useLocale as u } from "@react-aria/i18n";
|
|
5
|
+
import { useDateFieldState as h } from "@react-stately/datepicker";
|
|
6
|
+
import { useRef as s } from "react";
|
|
7
|
+
import { FocusRing as p } from "react-aria";
|
|
8
|
+
import x from "./index64.mjs";
|
|
9
|
+
function P({ segment: e, state: i }) {
|
|
10
|
+
const t = s(null), { segmentProps: o } = f(e, i, t), l = x("datePicker.dateSegment");
|
|
11
|
+
return /* @__PURE__ */ r(p, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c("div", { ...o, ref: t, className: l, children: [
|
|
12
|
+
/* @__PURE__ */ r(
|
|
13
|
+
"span",
|
|
14
|
+
{
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
style: {
|
|
17
|
+
visibility: e.isPlaceholder ? "visible" : "hidden",
|
|
18
|
+
height: e.isPlaceholder ? "" : 0,
|
|
19
|
+
pointerEvents: "none",
|
|
20
|
+
display: e.isPlaceholder ? "block" : "none"
|
|
21
|
+
},
|
|
22
|
+
children: e.placeholder
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
e.isPlaceholder ? "" : e.text
|
|
26
|
+
] }) });
|
|
27
|
+
}
|
|
28
|
+
function R(e) {
|
|
29
|
+
const { locale: i } = u(), t = h({
|
|
30
|
+
...e,
|
|
31
|
+
locale: i,
|
|
32
|
+
createCalendar: d
|
|
33
|
+
}), o = s(null), { fieldProps: l } = m(e, t, o);
|
|
34
|
+
return /* @__PURE__ */ r("div", { ...l, ref: o, className: "flex", children: t.segments.map((a, n) => (
|
|
35
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
36
|
+
/* @__PURE__ */ r(P, { segment: a, state: t }, n)
|
|
37
|
+
)) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
R as default
|
|
41
|
+
};
|
package/index117.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),v=require("./index118.js"),R=require("@react-aria/calendar"),P=require("@react-aria/i18n"),m=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),h=require("./index6.js"),x=require("./index13.js"),p=require("./index3.js"),w=require("./index119.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=P.useLocale(),o=m.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=R.useRangeCalendar({...t},o,d),C=c(`${a}.container`,r),g=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:d,className:C,children:[e.jsxs("div",{className:g,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:f,children:[e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(x,{icon:((l=n==null?void 0:n.buttonPrev)==null?void 0:l.icon)??"ArrowLeft"})}),e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(x,{icon:((u=n==null?void 0:n.buttonNext)==null?void 0:u.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
|
package/index117.mjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as R } from "./index118.mjs";
|
|
3
|
+
import { useRangeCalendar as T } from "@react-aria/calendar";
|
|
4
|
+
import { useLocale as y } from "@react-aria/i18n";
|
|
5
|
+
import { useRangeCalendarState as P } from "@react-stately/calendar";
|
|
6
|
+
import { useRef as B } from "react";
|
|
7
|
+
import c from "./index64.mjs";
|
|
8
|
+
import p from "./index6.mjs";
|
|
9
|
+
import h from "./index13.mjs";
|
|
10
|
+
import j from "./index3.mjs";
|
|
11
|
+
import w from "./index119.mjs";
|
|
12
|
+
function J({ buttons: e, tokens: a, customTheme: A, themeName: n = "calendar", ...s }) {
|
|
13
|
+
var m, f;
|
|
14
|
+
const { locale: g } = y(), d = P({
|
|
15
|
+
...s,
|
|
16
|
+
locale: g,
|
|
17
|
+
createCalendar: R
|
|
18
|
+
}), l = B(null), { calendarProps: C, prevButtonProps: o, nextButtonProps: i, title: u } = T({ ...s }, d, l), $ = c(`${n}.container`, a), v = c(`${n}.header`, a), x = c(`${n}.navigationButtonsContainer`, a);
|
|
19
|
+
return /* @__PURE__ */ t("div", { ...C, ref: l, className: $, children: [
|
|
20
|
+
/* @__PURE__ */ t("div", { className: v, children: [
|
|
21
|
+
/* @__PURE__ */ r(j, { as: "p", tokens: { size: "h6" }, children: u }),
|
|
22
|
+
/* @__PURE__ */ t("div", { className: x, children: [
|
|
23
|
+
/* @__PURE__ */ r(
|
|
24
|
+
p,
|
|
25
|
+
{
|
|
26
|
+
themeName: `${n}.navigationButtons`,
|
|
27
|
+
tokens: { ...a },
|
|
28
|
+
type: "button",
|
|
29
|
+
...o,
|
|
30
|
+
handlePress: o == null ? void 0 : o.onPress,
|
|
31
|
+
children: /* @__PURE__ */ r(h, { icon: ((m = e == null ? void 0 : e.buttonPrev) == null ? void 0 : m.icon) ?? "ArrowLeft" })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ r(
|
|
35
|
+
p,
|
|
36
|
+
{
|
|
37
|
+
themeName: `${n}.navigationButtons`,
|
|
38
|
+
tokens: { ...a },
|
|
39
|
+
type: "button",
|
|
40
|
+
...i,
|
|
41
|
+
handlePress: i == null ? void 0 : i.onPress,
|
|
42
|
+
children: /* @__PURE__ */ r(h, { icon: ((f = e == null ? void 0 : e.buttonNext) == null ? void 0 : f.icon) ?? "ArrowRight" })
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ r(w, { state: d })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
J as default
|
|
52
|
+
};
|
package/index118.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index187.js"),e=require("./index193.js"),i=require("./index182.js"),c=require("./index192.js"),t=require("./index190.js"),a=require("./index191.js"),l=require("./index186.js"),s=require("./index189.js"),d=require("./index188.js");function u(r){switch(r){case"buddhist":return new n.BuddhistCalendar;case"ethiopic":return new e.EthiopicCalendar;case"ethioaa":return new e.EthiopicAmeteAlemCalendar;case"coptic":return new e.CopticCalendar;case"hebrew":return new c.HebrewCalendar;case"indian":return new t.IndianCalendar;case"islamic-civil":return new a.IslamicCivilCalendar;case"islamic-tbla":return new a.IslamicTabularCalendar;case"islamic-umalqura":return new a.IslamicUmalquraCalendar;case"japanese":return new l.JapaneseCalendar;case"persian":return new s.PersianCalendar;case"roc":return new d.TaiwanCalendar;case"gregory":default:return new i.GregorianCalendar}}exports.createCalendar=u;
|