@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/index35.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),h=require("./index100.js"),u=require("./index24.js"),q=require("./index6.js"),N=require("./index13.js"),f=l=>{var m;const{title:r,button:c,content:e,themeName:i="alerts.item",tokens:s,icon:a,id:d}=l,{controller:t}=h.useSwiperController(),x=((m=t==null?void 0:t.slides)==null?void 0:m.findIndex($=>$.id===d))===(t==null?void 0:t.activeIndex);return!r&&!c&&!e&&!a?null:n.jsxs(n.Fragment,{children:[a&&n.jsx(N,{icon:a,themeName:`${i}.icon`,tokens:s}),(r||c||e)&&n.jsxs(u.default,{themeName:`${i}.container`,tokens:s,children:[r&&n.jsx(u.default,{as:"span",themeName:`${i}.title`,tokens:s,id:d,children:r}),c&&n.jsx(q.default,{tabIndex:x?0:-1,themeName:`${i}.button`,tokens:s,...c}),e&&(o.isValidElement(e)?o.cloneElement(e,{...e.props,themeName:`${i}.content`,tokens:s}):e)]})]})};module.exports=f;
|
package/index35.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { useSwiperController as N } from "./index100.mjs";
|
|
5
|
+
import p from "./index24.mjs";
|
|
6
|
+
import I from "./index6.mjs";
|
|
7
|
+
import $ from "./index13.mjs";
|
|
8
|
+
const _ = (f) => {
|
|
9
|
+
var c;
|
|
10
|
+
const { title: i, button: o, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
|
|
11
|
+
return !i && !o && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
|
|
12
|
+
r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
|
|
13
|
+
(i || o || e) && /* @__PURE__ */ d(p, { themeName: `${n}.container`, tokens: m, children: [
|
|
14
|
+
i && /* @__PURE__ */ s(p, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: i }),
|
|
15
|
+
o && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...o }),
|
|
16
|
+
e && (l.isValidElement(e) ? l.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
|
|
16
17
|
] })
|
|
17
18
|
] });
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
_ as default
|
|
21
22
|
};
|
package/index37.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const D=require("react/jsx-runtime"),$=require("./index38.js"),I=require("./
|
|
1
|
+
"use strict";const D=require("react/jsx-runtime"),$=require("./index38.js"),I=require("./index126.js"),b=process.env.NEXT_PUBLIC_IMG_DOMAIN,p=l=>{const{fit:h,customTheme:v,thumbhash:o,description:m,width:e,height:r,id:n,filenameDownload:i,imgDomain:s=b,protocol:d="https",focalPointX:c,focalPointY:a,...g}=l;if(!n||!i)return null;if(!s)return console.warn("No image domain was provided"),null;const u=(()=>{try{const t=new URL(`/assets/${n}/${i}`,`${d}://${s}`);return t.searchParams.set("fit",h??"contain"),t}catch(t){return console.warn(t),null}})();if(u==null)return null;const f=!!c&&!!a&&!!e&&!!r;return D.jsx($,{style:f?{objectFit:"cover",objectPosition:`${c/e*100}% ${a/r*100}%`}:void 0,alt:m??"",...o?{blurDataURL:I.createPngDataUri(o),placeholder:"blur"}:{},src:u.href,...g,width:e??void 0,height:r??void 0})};module.exports=p;
|
package/index37.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import p from "./index38.mjs";
|
|
3
|
-
import { createPngDataUri as D } from "./
|
|
3
|
+
import { createPngDataUri as D } from "./index126.mjs";
|
|
4
4
|
const I = process.env.NEXT_PUBLIC_IMG_DOMAIN, j = (m) => {
|
|
5
5
|
const {
|
|
6
6
|
fit: u,
|
package/index65.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index127.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,r]=e.useState(!1);e.useEffect(()=>{r(!0)},[]);const n=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:n,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
|
package/index65.mjs
CHANGED
package/index66.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index127.js"),o=require("react"),v=require("react-stately"),y=require("./index99.js"),[q,x]=g.default();function R(i){const{children:l,defaultSelectedKey:u,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=o.useRef(null),P=o.useRef(null),r=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:n,overlayProps:s}=y({type:c},r),f=o.useMemo(()=>({overlayProps:s,defaultSelectedKey:u,overlayState:r,buttonProps:{closeButtonProps:n,closeButtonRef:P,openButtonProps:n,openButtonRef:d}}),[r,u,n,s]);return S.jsx(x,{value:f,children:l})}exports.SidePanelContextProvider=R;exports.useSidePanel=q;
|
package/index66.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as P } from "react/jsx-runtime";
|
|
3
|
-
import v from "./
|
|
3
|
+
import v from "./index127.mjs";
|
|
4
4
|
import { useRef as u, useMemo as g } from "react";
|
|
5
5
|
import { useOverlayTriggerState as y } from "react-stately";
|
|
6
6
|
import S from "./index99.mjs";
|
package/index67.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("./index127.js"),g=require("react"),j=require("react-stately"),h=require("./index66.js"),[m,s]=q.createCtxNullable();function T({children:c,defaultSelectedKey:r,defaultIsOpen:x,onCloseCallback:n,onOpenCallback:M,tabs:v,openBtn:i,closeBtn:t,...P}){const e=j.useTabListState({...P,children:v,defaultSelectedKey:r}),d=g.useMemo(()=>({openBtn:i,closeBtn:t,tabState:e,defaultSelectedKey:r}),[i,t,e,r]);return o.jsx(s,{value:d,children:o.jsx(h.SidePanelContextProvider,{onCloseCallback:()=>{var u;n==null||n(),(u=e==null?void 0:e.setSelectedKey)==null||u.call(e,r)},onOpenCallback:M,defaultIsOpen:x,defaultSelectedKey:r.toString(),children:c})})}exports.MenuContextProvider=T;exports.MenuProvider=s;exports.useMenu=m;
|
package/index67.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
-
import { createCtxNullable as P } from "./
|
|
3
|
+
import { createCtxNullable as P } from "./index127.mjs";
|
|
4
4
|
import { useMemo as f } from "react";
|
|
5
5
|
import { useTabListState as h } from "react-stately";
|
|
6
6
|
import { SidePanelContextProvider as c } from "./index66.mjs";
|
package/index69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("./index127.js"),u=require("react"),[d,r]=s.createCtxNullable();function a(t){const{state:e,children:c,TransitionAnimation:o}=t,n=u.useMemo(()=>({state:e,TransitionAnimation:o}),[e,o]);return i.jsx(r,{value:n,children:c})}exports.AccordionContextProvider=a;exports.AccordionProvider=r;exports.useAccordionCtx=d;
|
package/index69.mjs
CHANGED
package/index70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./index127.js"),t=require("react"),[l,s]=i.default();function S(u){const{userQuery:o,children:a}=u,[e,r]=t.useState(o),c=t.useMemo(()=>({userSearchQuery:e,setUserSearchQuery:r}),[e,r]);return n.jsx(s,{value:c,children:a})}exports.SearchBarProvider=S;exports.SearchProvider=s;exports.useUserQueryValHook=l;
|
package/index70.mjs
CHANGED
package/index79.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("tailwind-variants"),t=require("./index81.js"),r=require("./index95.js"),
|
|
1
|
+
"use strict";const e=require("tailwind-variants"),t=require("./index81.js"),r=require("./index95.js"),a=e.tv({base:"bg-color-1-200 p-4 flex flex-col gap-4"}),s=e.tv({base:"flex justify-between items-center gap-4 relative"}),n=e.tv({extend:t,base:"self-end"}),o=e.tv({base:"bg-color-1-300 m-2 rounded-lg order-2"}),l=e.tv({base:"m-4"}),i=e.tv({base:""}),c=e.tv({base:""}),p=e.tv({extend:r,defaultVariants:{size:"h1"}}),b=e.tv({extend:r}),u=e.tv({base:"block w-min bg-color-1-400 p-2 rounded-lg"}),v=e.tv({extend:t,variants:{order:{prev:"order-1",next:"order-3"}}}),d=e.tv({base:"flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"}),g=e.tv({base:"w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",variants:{active:{true:"bg-color-1-100",false:""}}}),w={wrapper:a,carouselWrapper:s,closeBtn:n,swiper:{swiper:o,wrapper:l},item:{wrapper:i,container:c,title:p,content:b,icon:u},navigation:{button:v},pagination:{wrapper:d,bullet:g}};module.exports=w;
|
package/index79.mjs
CHANGED
|
@@ -5,17 +5,17 @@ const a = e({
|
|
|
5
5
|
base: "bg-color-1-200 p-4 flex flex-col gap-4"
|
|
6
6
|
}), o = e({
|
|
7
7
|
base: "flex justify-between items-center gap-4 relative"
|
|
8
|
-
}),
|
|
8
|
+
}), s = e({
|
|
9
9
|
extend: t,
|
|
10
10
|
base: "self-end"
|
|
11
|
-
}),
|
|
11
|
+
}), n = e({
|
|
12
12
|
base: "bg-color-1-300 m-2 rounded-lg order-2"
|
|
13
13
|
}), l = e({
|
|
14
14
|
base: "m-4"
|
|
15
|
-
}), i = e({
|
|
16
|
-
base: ""
|
|
17
15
|
}), p = e({
|
|
18
16
|
base: ""
|
|
17
|
+
}), i = e({
|
|
18
|
+
base: ""
|
|
19
19
|
}), c = e({
|
|
20
20
|
extend: r,
|
|
21
21
|
defaultVariants: {
|
|
@@ -33,9 +33,9 @@ const a = e({
|
|
|
33
33
|
next: "order-3"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), u = e({
|
|
37
37
|
base: "flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"
|
|
38
|
-
}),
|
|
38
|
+
}), d = e({
|
|
39
39
|
base: "w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",
|
|
40
40
|
variants: {
|
|
41
41
|
active: {
|
|
@@ -45,15 +45,15 @@ const a = e({
|
|
|
45
45
|
}
|
|
46
46
|
}), v = {
|
|
47
47
|
wrapper: a,
|
|
48
|
-
|
|
49
|
-
closeBtn:
|
|
48
|
+
carouselWrapper: o,
|
|
49
|
+
closeBtn: s,
|
|
50
50
|
swiper: {
|
|
51
|
-
swiper:
|
|
51
|
+
swiper: n,
|
|
52
52
|
wrapper: l
|
|
53
53
|
},
|
|
54
54
|
item: {
|
|
55
|
-
wrapper:
|
|
56
|
-
container:
|
|
55
|
+
wrapper: p,
|
|
56
|
+
container: i,
|
|
57
57
|
title: c,
|
|
58
58
|
content: b,
|
|
59
59
|
icon: g
|
|
@@ -62,8 +62,8 @@ const a = e({
|
|
|
62
62
|
button: m
|
|
63
63
|
},
|
|
64
64
|
pagination: {
|
|
65
|
-
wrapper:
|
|
66
|
-
bullet:
|
|
65
|
+
wrapper: u,
|
|
66
|
+
bullet: d
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
export {
|
package/index83.js
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
"use strict";const e=require("tailwind-variants"),
|
|
1
|
+
"use strict";const e=require("tailwind-variants"),r=require("./index81.js"),t=e.tv({base:"flex justify-between items-center gap-4 relative"}),o=e.tv({base:`
|
|
2
|
+
bg-color-1-300
|
|
3
|
+
m-2
|
|
4
|
+
rounded-lg
|
|
5
|
+
order-2
|
|
6
|
+
focus-visible:outline-2
|
|
7
|
+
focus-visible:outline-black
|
|
8
|
+
focus-visible:outline-offset-2
|
|
9
|
+
`}),a=e.tv({base:"m-4"}),s=e.tv({extend:r,variants:{order:{prev:"order-1",next:"order-3"}}}),i=e.tv({base:"flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"}),n=e.tv({base:"w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",variants:{active:{true:"bg-color-1-100",false:""}}}),l=e.tv({base:"bg-color-1-400 "}),c=e.tv({base:""}),u={carouselWrapper:t,swiper:{swiper:o,wrapper:a},navigation:{button:s},pagination:{wrapper:i,bullet:n},slide:{wrapper:l,container:c}};module.exports=u;
|
package/index83.mjs
CHANGED
|
@@ -1,24 +1,59 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
base: "bg-color-1-400 !py-4"
|
|
2
|
+
import o from "./index81.mjs";
|
|
3
|
+
const r = e({
|
|
4
|
+
base: "flex justify-between items-center gap-4 relative"
|
|
6
5
|
}), t = e({
|
|
7
|
-
base:
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
base: `
|
|
7
|
+
bg-color-1-300
|
|
8
|
+
m-2
|
|
9
|
+
rounded-lg
|
|
10
|
+
order-2
|
|
11
|
+
focus-visible:outline-2
|
|
12
|
+
focus-visible:outline-black
|
|
13
|
+
focus-visible:outline-offset-2
|
|
14
|
+
`
|
|
10
15
|
}), a = e({
|
|
11
|
-
base: "
|
|
16
|
+
base: "m-4"
|
|
17
|
+
}), s = e({
|
|
18
|
+
extend: o,
|
|
19
|
+
variants: {
|
|
20
|
+
order: {
|
|
21
|
+
prev: "order-1",
|
|
22
|
+
next: "order-3"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}), i = e({
|
|
26
|
+
base: "flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"
|
|
12
27
|
}), l = e({
|
|
13
|
-
base: "
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
base: "w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",
|
|
29
|
+
variants: {
|
|
30
|
+
active: {
|
|
31
|
+
true: "bg-color-1-100",
|
|
32
|
+
false: ""
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}), n = e({
|
|
36
|
+
base: "bg-color-1-400 "
|
|
37
|
+
}), c = e({
|
|
38
|
+
base: ""
|
|
39
|
+
}), b = {
|
|
40
|
+
carouselWrapper: r,
|
|
41
|
+
swiper: {
|
|
42
|
+
swiper: t,
|
|
43
|
+
wrapper: a
|
|
44
|
+
},
|
|
45
|
+
navigation: {
|
|
46
|
+
button: s
|
|
47
|
+
},
|
|
48
|
+
pagination: {
|
|
49
|
+
wrapper: i,
|
|
50
|
+
bullet: l
|
|
51
|
+
},
|
|
52
|
+
slide: {
|
|
53
|
+
wrapper: n,
|
|
54
|
+
container: c
|
|
55
|
+
}
|
|
21
56
|
};
|
|
22
57
|
export {
|
|
23
|
-
|
|
58
|
+
b as default
|
|
24
59
|
};
|
package/index96.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),b=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),b=require("./index138.js"),c=require("./index139.js"),p=require("./index140.js");function y(r,e,o){let{item:t}=r,i=s.useId(),n=s.useId(),d=e.disabledKeys.has(t.key),{itemProps:a}=c.useSelectableItem({selectionManager:e.selectionManager,key:t.key,ref:o}),{buttonProps:u}=b.useButton(s.mergeProps(a,{id:i,elementType:"button",isDisabled:d,onPress:()=>e.toggleKey(t.key)}),o),l=e.expandedKeys.has(t.key);return{buttonProps:{...u,"aria-expanded":l,"aria-controls":l?n:void 0},regionProps:{id:n,role:"region","aria-labelledby":i}}}function f(r,e,o){let{listProps:t}=p.useSelectableList({...r,...e,allowsTabNavigation:!0,disallowTypeAhead:!0,ref:o});return{accordionProps:{...t,tabIndex:void 0}}}exports.useAccordion=f;exports.useAccordionItem=y;
|
package/index96.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useId as i, mergeProps as b } from "@react-aria/utils";
|
|
2
|
-
import { useButton as u } from "./
|
|
3
|
-
import { useSelectableItem as c } from "./
|
|
4
|
-
import { useSelectableList as f } from "./
|
|
2
|
+
import { useButton as u } from "./index138.mjs";
|
|
3
|
+
import { useSelectableItem as c } from "./index139.mjs";
|
|
4
|
+
import { useSelectableList as f } from "./index140.mjs";
|
|
5
5
|
function x(r, e, t) {
|
|
6
6
|
let { item: o } = r, a = i(), d = i(), n = e.disabledKeys.has(o.key), { itemProps: l } = c({
|
|
7
7
|
selectionManager: e.selectionManager,
|
package/index97.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),y=require("./index96.js"),T=require("react"),m=require("react-aria"),R=require("react-use"),b=require("./index69.js"),F=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("./index96.js"),T=require("react"),m=require("react-aria"),R=require("react-use"),b=require("./index69.js"),F=require("./index128.js"),i=require("./index24.js"),w=require("./index6.js"),C=require("./index13.js"),I=r=>{const{item:c,tokens:l,customTheme:h}=r,{props:x,rendered:k,key:f}=c,{icon:u,title:q,onOpenChange:a,tokens:$,themeName:g}=x??{},{themeName:t=g}=r,d=T.useRef(null),{state:s,TransitionAnimation:j=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...N},regionProps:A}=y.useAccordionItem(r,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...$},p=P=>{P.continuePropagation(),s.selectionManager.select(c.key),s.toggleKey(c.key)};return R.useUpdateEffect(()=>{a==null||a(o)},[o]),e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:h,children:[e.jsx(m.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(w.ButtonWithForwardRef,{...N,"aria-expanded":o,handlePress:p,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:q}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(j,{isVisible:o,themeName:`${t}.region`,...A,tokens:n,children:e.jsx(i.default,{themeName:`${t}.content`,tokens:n,children:e.jsx(m.FocusScope,{autoFocus:!0,children:k})})})]})};module.exports=I;
|
package/index97.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as F } from "react";
|
|
|
4
4
|
import { FocusRing as I, FocusScope as R } from "react-aria";
|
|
5
5
|
import { useUpdateEffect as w } from "react-use";
|
|
6
6
|
import { useAccordionCtx as B } from "./index69.mjs";
|
|
7
|
-
import C from "./
|
|
7
|
+
import C from "./index128.mjs";
|
|
8
8
|
import i from "./index24.mjs";
|
|
9
9
|
import { ButtonWithForwardRef as D } from "./index6.mjs";
|
|
10
10
|
import K from "./index13.mjs";
|
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TSwiperControllerContext, TSwiperControllerProviderProps } from './interface';
|
|
3
|
+
export declare const useSwiperController: () => TSwiperControllerContext, SwiperControllerProvider: import("react").Provider<TSwiperControllerContext | undefined>;
|
|
4
|
+
export declare function SwiperControllerContextProvider(props: TSwiperControllerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { SwiperClass } from 'swiper/react';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TSwiperControllerProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
controller: SwiperClass | undefined;
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type TSwiperControllerContext = {
|
|
8
8
|
controller: SwiperClass | undefined;
|
|
9
9
|
};
|
package/theme/Alerts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const alertsTheme: {
|
|
2
2
|
wrapper: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-color-1-200 p-4 flex flex-col gap-4", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "bg-color-1-200 p-4 flex flex-col gap-4", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
3
|
-
|
|
3
|
+
carouselWrapper: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex justify-between items-center gap-4 relative", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex justify-between items-center gap-4 relative", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
4
4
|
closeBtn: import("tailwind-variants").TVReturnType<{} | {
|
|
5
5
|
buttonStyle: {
|
|
6
6
|
default: import("tailwind-variants").ClassValue | {
|