@okam/stack-ui 1.37.0 → 1.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Dialog/interface.d.ts +5 -3
- package/components/Modal/interface.d.ts +6 -4
- package/components/SidePanel/interface.d.ts +9 -6
- package/hooks/useLabelledOverlay/index.d.ts +9 -0
- package/hooks/useLabelledOverlay/interface.d.ts +14 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +72 -70
- package/index100.js +5 -1
- package/index100.mjs +88 -6
- package/index101.js +1 -12
- package/index101.mjs +6 -40
- package/index102.js +12 -1
- package/index102.mjs +36 -25
- package/index103.js +1 -1
- package/index103.mjs +24 -8
- package/index104.js +1 -7
- package/index104.mjs +7 -13
- package/index105.js +6 -14
- package/index105.mjs +13 -65
- package/index106.js +15 -1
- package/index106.mjs +71 -7
- package/index107.js +1 -41
- package/index107.mjs +7 -106
- package/index108.js +32 -38
- package/index108.mjs +78 -74
- package/index109.js +46 -15
- package/index109.mjs +96 -19
- package/index110.js +16 -1
- package/index110.mjs +20 -37
- package/index111.js +1 -1
- package/index111.mjs +42 -48
- package/index112.js +1 -1
- package/index112.mjs +47 -22
- package/index113.js +1 -2
- package/index113.mjs +22 -21
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index131.js +1 -1
- package/index131.mjs +23 -8
- package/index139.js +1 -1
- package/index139.mjs +6 -18
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +54 -18
- package/index151.js +1 -1
- package/index151.mjs +21 -6
- package/index152.js +1 -1
- package/index152.mjs +6 -46
- package/index153.js +1 -2
- package/index153.mjs +11 -12
- package/index154.js +1 -1
- package/index154.mjs +46 -30
- package/index155.js +2 -1
- package/index155.mjs +13 -57
- package/index156.js +1 -1
- package/index156.mjs +29 -11
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index2.js +1 -1
- package/index2.mjs +21 -21
- package/index250.js +1 -1
- package/index250.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +15 -12
- package/index310.js +1 -1
- package/index310.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +20 -20
- package/index38.js +1 -1
- package/index38.mjs +13 -13
- package/index4.js +1 -1
- package/index4.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +34 -29
- package/index8.js +1 -1
- package/index8.mjs +45 -34
- package/index81.js +1 -1
- package/index81.mjs +1 -1
- package/index89.js +2 -1
- package/index89.mjs +20 -5
- package/index9.js +1 -1
- package/index9.mjs +21 -21
- package/index90.js +1 -1
- package/index90.mjs +5 -2
- package/index91.js +1 -6
- package/index91.mjs +2 -94
- package/index92.js +6 -1
- package/index92.mjs +79 -54
- package/index93.js +1 -1
- package/index93.mjs +61 -33
- package/index94.js +1 -42
- package/index94.mjs +34 -67
- package/index95.js +38 -60
- package/index95.mjs +65 -219
- package/index96.js +63 -8
- package/index96.mjs +215 -44
- package/index97.js +9 -1
- package/index97.mjs +48 -36
- package/index98.js +1 -1
- package/index98.mjs +40 -8
- package/index99.js +1 -5
- package/index99.mjs +10 -85
- package/package.json +1 -1
- package/providers/SidePanel/interface.d.ts +13 -4
- package/theme/SidePanel/index.d.ts +1 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +0 -79
package/index8.mjs
CHANGED
|
@@ -1,46 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
2
|
+
import { jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect as v } from "react";
|
|
4
|
+
import x from "react-div-100vh";
|
|
5
|
+
import { useSidePanel as D } from "./index75.mjs";
|
|
6
|
+
import $ from "./index33.mjs";
|
|
7
|
+
import y from "./index113.mjs";
|
|
8
|
+
import r from "./index27.mjs";
|
|
9
|
+
import j from "./index30.mjs";
|
|
10
|
+
const M = (l) => {
|
|
11
11
|
const {
|
|
12
|
-
children:
|
|
13
|
-
closeBtnRender:
|
|
12
|
+
children: d,
|
|
13
|
+
closeBtnRender: m,
|
|
14
14
|
themeName: e = "sidePanel",
|
|
15
|
-
tokens:
|
|
16
|
-
TransitionAnimation:
|
|
17
|
-
PanelTransition:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
tokens: c,
|
|
16
|
+
TransitionAnimation: f = $,
|
|
17
|
+
PanelTransition: h = y,
|
|
18
|
+
onOpenChange: n,
|
|
19
|
+
customTheme: p,
|
|
20
|
+
isDismissable: u = !0,
|
|
21
|
+
shouldCloseOnInteractOutside: P,
|
|
22
|
+
isKeyboardDismissDisabled: k = !1,
|
|
23
|
+
onCloseCallBack: o,
|
|
24
|
+
title: N,
|
|
25
|
+
...S
|
|
26
|
+
} = l, { overlayState: a, overlayProps: T } = D(), { isOpen: t } = a;
|
|
27
|
+
v(() => {
|
|
28
|
+
n == null || n(t), t || o == null || o();
|
|
29
|
+
}, [t, n, o]);
|
|
30
|
+
const i = {
|
|
31
|
+
isOpen: t,
|
|
32
|
+
...c
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ s(
|
|
35
|
+
j,
|
|
22
36
|
{
|
|
23
37
|
themeName: e,
|
|
24
38
|
tokens: i,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: /* @__PURE__ */ n(o, { themeName: `${e}.container`, tokens: i, children: /* @__PURE__ */ n(o, { themeName: `${e}.innerContainer`, tokens: i, children: a }) })
|
|
38
|
-
}
|
|
39
|
-
)
|
|
39
|
+
customTheme: p,
|
|
40
|
+
state: a,
|
|
41
|
+
...T,
|
|
42
|
+
transitionComponent: h,
|
|
43
|
+
isDismissable: u,
|
|
44
|
+
shouldCloseOnInteractOutside: P,
|
|
45
|
+
isKeyboardDismissDisabled: k,
|
|
46
|
+
title: N,
|
|
47
|
+
...S,
|
|
48
|
+
children: /* @__PURE__ */ b(r, { as: x, themeName: `${e}.wrapper`, tokens: i, children: [
|
|
49
|
+
m && m(),
|
|
50
|
+
/* @__PURE__ */ s(f, { themeName: `${e}.transitionAnimation`, tokens: i, isVisible: t, children: /* @__PURE__ */ s(r, { themeName: `${e}.container`, tokens: i, children: /* @__PURE__ */ s(r, { themeName: `${e}.innerContainer`, tokens: i, children: d }) }) })
|
|
40
51
|
] })
|
|
41
52
|
}
|
|
42
53
|
);
|
|
43
54
|
};
|
|
44
55
|
export {
|
|
45
|
-
|
|
56
|
+
M as default
|
|
46
57
|
};
|
package/index81.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),g=require("./index149.js"),v=require("radashi"),s=require("react"),q=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),g=require("./index149.js"),v=require("radashi"),s=require("react"),q=require("./index90.js"),[x,i]=g.default();function P({useTranslationFunc:u,children:l,namespace:o="common",translateFunctionName:e="t"}){const c=u(o),d=(t,n)=>(q.log(`translation function not found: translateFunctionName: ${e}`,"warn",{key:t,obj:n,namespace:o}),t),r=v.get(c,e,d),a=s.useCallback((t,n)=>n==null?r(t):r(t,n),[r]),f=s.useMemo(()=>({t:a}),[a]);return T.jsx(i,{value:f,children:l})}exports.TranslationContextProvider=P;exports.TranslationProvider=i;exports.useTranslation=x;
|
package/index81.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
3
3
|
import m from "./index149.mjs";
|
|
4
4
|
import { get as f } from "radashi";
|
|
5
5
|
import { useCallback as p, useMemo as x } from "react";
|
|
6
|
-
import { log as b } from "./
|
|
6
|
+
import { log as b } from "./index90.mjs";
|
|
7
7
|
const [j, d] = m();
|
|
8
8
|
function k({
|
|
9
9
|
useTranslationFunc: i,
|
package/index89.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const n=require("./index150.js"),p=require("react-aria");function d(s,o,l){const{type:a="dialog"}=s,{triggerProps:{onPress:t,...i},overlayProps:g}=p.useOverlayTrigger({type:a},o,l),r=n.useSlotId(),e={"aria-labelledby":r,handlePress:t,...i};return{openTriggerProps:e,triggerProps:e,labelProps:{id:r},overlayProps:{...g,"aria-labelledby":r}}}module.exports=d;
|
package/index89.mjs
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useSlotId as g } from "./index150.mjs";
|
|
3
|
+
import { useOverlayTrigger as i } from "react-aria";
|
|
4
|
+
function P(o, s, l) {
|
|
5
|
+
const { type: a = "dialog" } = o, {
|
|
6
|
+
triggerProps: { onPress: t, ...p },
|
|
7
|
+
overlayProps: d
|
|
8
|
+
} = i({ type: a }, s, l), r = g(), e = {
|
|
9
|
+
"aria-labelledby": r,
|
|
10
|
+
handlePress: t,
|
|
11
|
+
...p
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
openTriggerProps: e,
|
|
15
|
+
triggerProps: e,
|
|
16
|
+
labelProps: { id: r },
|
|
17
|
+
overlayProps: { ...d, "aria-labelledby": r }
|
|
18
|
+
};
|
|
19
|
+
}
|
|
4
20
|
export {
|
|
5
|
-
|
|
6
|
-
r as logger
|
|
21
|
+
P as default
|
|
7
22
|
};
|
package/index9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),q=require("@react-aria/focus"),B=require("react-stately"),b=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),q=require("@react-aria/focus"),B=require("react-stately"),b=require("./index89.js"),f=require("./index27.js"),a=require("./index6.js"),C=require("./index14.js"),N=require("./index30.js"),p=require("./index3.js"),w=n=>{const{themeName:s,tokens:o,children:i,...t}=n;return e.jsx(a.default,{themeName:s,tokens:o,...t,children:e.jsx(C,{icon:"CloseBtn"})})},y=n=>{const{children:s,thumbnailContent:o,label:i,themeName:t="lightBox",tokens:r,closeButton:c=w,closeButtonAriaLabel:u,transitionComponent:h,showTriggerButton:d=!0,showCloseButton:x=!0}=n,l=B.useOverlayTriggerState(n),{openTriggerProps:m,triggerProps:g,overlayProps:j,labelProps:$}=b({...n,type:"dialog"},l);return e.jsxs(e.Fragment,{children:[d&&e.jsx(q.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs(a.default,{themeName:`${t}.wrapper`,tokens:r,...m,children:[i&&e.jsx(p.default,{themeName:`${t}.label`,tokens:r,...$,children:i}),o]})}),e.jsxs(N,{themeName:`${t}.modal`,tokens:r,state:l,...j,transitionComponent:h,children:[x&&e.jsx(c,{themeName:`${t}.closeBtn`,tokens:r,"aria-label":u,...g}),e.jsx(f.default,{themeName:`${t}.container`,tokens:r,children:s})]})]})};module.exports=y;
|
package/index9.mjs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, Fragment as C, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { FocusRing as x } from "@react-aria/focus";
|
|
4
4
|
import { useOverlayTriggerState as N } from "react-stately";
|
|
5
|
-
import y from "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import w from "./
|
|
5
|
+
import y from "./index89.mjs";
|
|
6
|
+
import $ from "./index27.mjs";
|
|
7
|
+
import s from "./index6.mjs";
|
|
8
|
+
import w from "./index14.mjs";
|
|
9
|
+
import L from "./index30.mjs";
|
|
9
10
|
import P from "./index3.mjs";
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, I = (t) => {
|
|
11
|
+
const T = (o) => {
|
|
12
|
+
const { themeName: n, tokens: i, children: m, ...e } = o;
|
|
13
|
+
return /* @__PURE__ */ t(s, { themeName: n, tokens: i, ...e, children: /* @__PURE__ */ t(w, { icon: "CloseBtn" }) });
|
|
14
|
+
}, M = (o) => {
|
|
15
15
|
const {
|
|
16
16
|
children: n,
|
|
17
17
|
thumbnailContent: i,
|
|
18
18
|
label: m,
|
|
19
19
|
themeName: e = "lightBox",
|
|
20
20
|
tokens: r,
|
|
21
|
-
closeButton: h =
|
|
21
|
+
closeButton: h = T,
|
|
22
22
|
closeButtonAriaLabel: c,
|
|
23
23
|
transitionComponent: p,
|
|
24
24
|
showTriggerButton: u = !0,
|
|
25
25
|
showCloseButton: g = !0
|
|
26
|
-
} =
|
|
27
|
-
{ ...
|
|
26
|
+
} = o, a = N(o), { openTriggerProps: d, triggerProps: f, overlayProps: B, labelProps: b } = y(
|
|
27
|
+
{ ...o, type: "dialog" },
|
|
28
28
|
a
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
u && /* @__PURE__ */
|
|
32
|
-
m && /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ l(C, { children: [
|
|
31
|
+
u && /* @__PURE__ */ t(x, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ l(s, { themeName: `${e}.wrapper`, tokens: r, ...d, children: [
|
|
32
|
+
m && /* @__PURE__ */ t(P, { themeName: `${e}.label`, tokens: r, ...b, children: m }),
|
|
33
33
|
i
|
|
34
34
|
] }) }),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
/* @__PURE__ */ l(
|
|
36
|
+
L,
|
|
37
37
|
{
|
|
38
38
|
themeName: `${e}.modal`,
|
|
39
39
|
tokens: r,
|
|
@@ -41,7 +41,7 @@ const k = (t) => {
|
|
|
41
41
|
...B,
|
|
42
42
|
transitionComponent: p,
|
|
43
43
|
children: [
|
|
44
|
-
g && /* @__PURE__ */
|
|
44
|
+
g && /* @__PURE__ */ t(
|
|
45
45
|
h,
|
|
46
46
|
{
|
|
47
47
|
themeName: `${e}.closeBtn`,
|
|
@@ -50,12 +50,12 @@ const k = (t) => {
|
|
|
50
50
|
...f
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ t($, { themeName: `${e}.container`, tokens: r, children: n })
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] });
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
M as default
|
|
61
61
|
};
|
package/index90.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"});require("./index151.js");const o=require("./index152.js"),e=o("[StackUI]"),{log:r}=e;exports.log=r;exports.logger=e;
|
package/index90.mjs
CHANGED
package/index91.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
font-body
|
|
3
|
-
text-inherit
|
|
4
|
-
h-auto
|
|
5
|
-
grid
|
|
6
|
-
`,defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),l=e.tv({base:"overflow-hidden flex flex-col gap-2 items-start",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),c={container:t=>n(t),button:t=>o(t),title:t=>r(t),icon:t=>i(t),region:t=>a(t),content:t=>l(t)};exports.accordionButton=o;exports.accordionContainer=n;exports.accordionContent=l;exports.accordionIcon=i;exports.accordionRegion=a;exports.accordionTheme=c;exports.accordionTitle=r;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>e;exports.makeTheme=t;
|
package/index91.mjs
CHANGED
|
@@ -1,96 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const r = e({
|
|
3
|
-
base: "[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",
|
|
4
|
-
defaultVariants: {
|
|
5
|
-
textAlign: "left",
|
|
6
|
-
isOpen: !1
|
|
7
|
-
},
|
|
8
|
-
variants: {
|
|
9
|
-
textAlign: {
|
|
10
|
-
center: "text-center",
|
|
11
|
-
left: "text-left"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}), n = e({
|
|
15
|
-
base: "grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",
|
|
16
|
-
variants: {
|
|
17
|
-
titleBold: {
|
|
18
|
-
true: "font-bold"
|
|
19
|
-
},
|
|
20
|
-
textAlign: {
|
|
21
|
-
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",
|
|
22
|
-
left: "grid-cols-[1fr_3rem]"
|
|
23
|
-
},
|
|
24
|
-
bgColor: {
|
|
25
|
-
gray: "bg-gray-300",
|
|
26
|
-
white: "bg-white"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
titleBold: !1,
|
|
31
|
-
textAlign: "left",
|
|
32
|
-
bgColor: "white"
|
|
33
|
-
}
|
|
34
|
-
}), o = e({
|
|
35
|
-
base: "",
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
textAlign: "left"
|
|
38
|
-
},
|
|
39
|
-
variants: {
|
|
40
|
-
textAlign: {
|
|
41
|
-
center: "justify-self-center col-start-2",
|
|
42
|
-
left: "justify-self-start"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}), i = e({
|
|
46
|
-
base: "text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",
|
|
47
|
-
variants: {
|
|
48
|
-
isOpen: {
|
|
49
|
-
true: "-rotate-90",
|
|
50
|
-
false: ""
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}), l = e({
|
|
54
|
-
base: `
|
|
55
|
-
font-body
|
|
56
|
-
text-inherit
|
|
57
|
-
h-auto
|
|
58
|
-
grid
|
|
59
|
-
`,
|
|
60
|
-
defaultVariants: {
|
|
61
|
-
textAlign: "left"
|
|
62
|
-
},
|
|
63
|
-
variants: {
|
|
64
|
-
textAlign: {
|
|
65
|
-
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center",
|
|
66
|
-
left: "grid-cols-[1fr_3rem] text-left"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}), a = e({
|
|
70
|
-
base: "overflow-hidden flex flex-col gap-2 items-start",
|
|
71
|
-
defaultVariants: {
|
|
72
|
-
textAlign: "left"
|
|
73
|
-
},
|
|
74
|
-
variants: {
|
|
75
|
-
textAlign: {
|
|
76
|
-
center: "col-start-2",
|
|
77
|
-
left: ""
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}), c = {
|
|
81
|
-
container: (t) => r(t),
|
|
82
|
-
button: (t) => n(t),
|
|
83
|
-
title: (t) => o(t),
|
|
84
|
-
icon: (t) => i(t),
|
|
85
|
-
region: (t) => l(t),
|
|
86
|
-
content: (t) => a(t)
|
|
87
|
-
};
|
|
1
|
+
const m = (e) => e;
|
|
88
2
|
export {
|
|
89
|
-
|
|
90
|
-
r as accordionContainer,
|
|
91
|
-
a as accordionContent,
|
|
92
|
-
i as accordionIcon,
|
|
93
|
-
l as accordionRegion,
|
|
94
|
-
c as accordionTheme,
|
|
95
|
-
o as accordionTitle
|
|
3
|
+
m as makeTheme
|
|
96
4
|
};
|
package/index92.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
"use strict";const e=require("tailwind-variants"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),n=e.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),o=e.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"},bgColor:{gray:"bg-gray-300",white:"bg-white"}},defaultVariants:{titleBold:!1,textAlign:"left",bgColor:"white"}}),r=e.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),i=e.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),a=e.tv({base:`
|
|
2
|
+
font-body
|
|
3
|
+
text-inherit
|
|
4
|
+
h-auto
|
|
5
|
+
grid
|
|
6
|
+
`,defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),l=e.tv({base:"overflow-hidden flex flex-col gap-2 items-start",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),c={container:t=>n(t),button:t=>o(t),title:t=>r(t),icon:t=>i(t),region:t=>a(t),content:t=>l(t)};exports.accordionButton=o;exports.accordionContainer=n;exports.accordionContent=l;exports.accordionIcon=i;exports.accordionRegion=a;exports.accordionTheme=c;exports.accordionTitle=r;
|
package/index92.mjs
CHANGED
|
@@ -1,71 +1,96 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
const r = e({
|
|
3
|
+
base: "[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
textAlign: "left",
|
|
6
|
+
isOpen: !1
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
textAlign: {
|
|
10
|
+
center: "text-center",
|
|
11
|
+
left: "text-left"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
11
14
|
}), n = e({
|
|
12
|
-
base: "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
base: "grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",
|
|
16
|
+
variants: {
|
|
17
|
+
titleBold: {
|
|
18
|
+
true: "font-bold"
|
|
19
|
+
},
|
|
20
|
+
textAlign: {
|
|
21
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",
|
|
22
|
+
left: "grid-cols-[1fr_3rem]"
|
|
23
|
+
},
|
|
24
|
+
bgColor: {
|
|
25
|
+
gray: "bg-gray-300",
|
|
26
|
+
white: "bg-white"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
21
29
|
defaultVariants: {
|
|
22
|
-
|
|
30
|
+
titleBold: !1,
|
|
31
|
+
textAlign: "left",
|
|
32
|
+
bgColor: "white"
|
|
23
33
|
}
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
extend: t,
|
|
34
|
+
}), o = e({
|
|
35
|
+
base: "",
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
textAlign: "left"
|
|
38
|
+
},
|
|
30
39
|
variants: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
textAlign: {
|
|
41
|
+
center: "justify-self-center col-start-2",
|
|
42
|
+
left: "justify-self-start"
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
|
-
}),
|
|
37
|
-
base: "flex
|
|
38
|
-
}), d = e({
|
|
39
|
-
base: "w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",
|
|
45
|
+
}), i = e({
|
|
46
|
+
base: "text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",
|
|
40
47
|
variants: {
|
|
41
|
-
|
|
42
|
-
true: "
|
|
48
|
+
isOpen: {
|
|
49
|
+
true: "-rotate-90",
|
|
43
50
|
false: ""
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
wrapper: p,
|
|
56
|
-
container: i,
|
|
57
|
-
title: c,
|
|
58
|
-
content: b,
|
|
59
|
-
icon: g
|
|
53
|
+
}), l = e({
|
|
54
|
+
base: `
|
|
55
|
+
font-body
|
|
56
|
+
text-inherit
|
|
57
|
+
h-auto
|
|
58
|
+
grid
|
|
59
|
+
`,
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
textAlign: "left"
|
|
60
62
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
variants: {
|
|
64
|
+
textAlign: {
|
|
65
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center",
|
|
66
|
+
left: "grid-cols-[1fr_3rem] text-left"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}), a = e({
|
|
70
|
+
base: "overflow-hidden flex flex-col gap-2 items-start",
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
textAlign: "left"
|
|
63
73
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
variants: {
|
|
75
|
+
textAlign: {
|
|
76
|
+
center: "col-start-2",
|
|
77
|
+
left: ""
|
|
78
|
+
}
|
|
67
79
|
}
|
|
80
|
+
}), c = {
|
|
81
|
+
container: (t) => r(t),
|
|
82
|
+
button: (t) => n(t),
|
|
83
|
+
title: (t) => o(t),
|
|
84
|
+
icon: (t) => i(t),
|
|
85
|
+
region: (t) => l(t),
|
|
86
|
+
content: (t) => a(t)
|
|
68
87
|
};
|
|
69
88
|
export {
|
|
70
|
-
|
|
89
|
+
n as accordionButton,
|
|
90
|
+
r as accordionContainer,
|
|
91
|
+
a as accordionContent,
|
|
92
|
+
i as accordionIcon,
|
|
93
|
+
l as accordionRegion,
|
|
94
|
+
c as accordionTheme,
|
|
95
|
+
o as accordionTitle
|
|
71
96
|
};
|
package/index93.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("tailwind-variants"),t=require("./index95.js"),r=require("./index111.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/index93.mjs
CHANGED
|
@@ -1,43 +1,71 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
base: "
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
import t from "./index95.mjs";
|
|
3
|
+
import r from "./index111.mjs";
|
|
4
|
+
const a = e({
|
|
5
|
+
base: "bg-color-1-200 p-4 flex flex-col gap-4"
|
|
6
|
+
}), o = e({
|
|
7
|
+
base: "flex justify-between items-center gap-4 relative"
|
|
8
|
+
}), s = e({
|
|
9
|
+
extend: t,
|
|
10
|
+
base: "self-end"
|
|
11
|
+
}), n = e({
|
|
12
|
+
base: "bg-color-1-300 m-2 rounded-lg order-2"
|
|
13
|
+
}), l = e({
|
|
14
|
+
base: "m-4"
|
|
15
|
+
}), p = e({
|
|
16
|
+
base: ""
|
|
17
|
+
}), i = e({
|
|
18
|
+
base: ""
|
|
19
|
+
}), c = e({
|
|
20
|
+
extend: r,
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
size: "h1"
|
|
23
|
+
}
|
|
24
|
+
}), b = e({
|
|
25
|
+
extend: r
|
|
26
|
+
}), g = e({
|
|
27
|
+
base: "block w-min bg-color-1-400 p-2 rounded-lg"
|
|
28
|
+
}), m = e({
|
|
29
|
+
extend: t,
|
|
6
30
|
variants: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
spacing: {
|
|
11
|
-
small: "mb-3",
|
|
12
|
-
medium: "mb-6",
|
|
13
|
-
large: "mb-8",
|
|
14
|
-
none: "mb-0"
|
|
31
|
+
order: {
|
|
32
|
+
prev: "order-1",
|
|
33
|
+
next: "order-3"
|
|
15
34
|
}
|
|
16
35
|
}
|
|
17
|
-
}),
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
}), u = e({
|
|
37
|
+
base: "flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"
|
|
38
|
+
}), d = e({
|
|
39
|
+
base: "w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",
|
|
20
40
|
variants: {
|
|
21
|
-
|
|
22
|
-
true: "
|
|
41
|
+
active: {
|
|
42
|
+
true: "bg-color-1-100",
|
|
43
|
+
false: ""
|
|
23
44
|
}
|
|
24
45
|
}
|
|
25
|
-
}),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
46
|
+
}), v = {
|
|
47
|
+
wrapper: a,
|
|
48
|
+
carouselWrapper: o,
|
|
49
|
+
closeBtn: s,
|
|
50
|
+
swiper: {
|
|
51
|
+
swiper: n,
|
|
52
|
+
wrapper: l
|
|
29
53
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
54
|
+
item: {
|
|
55
|
+
wrapper: p,
|
|
56
|
+
container: i,
|
|
57
|
+
title: c,
|
|
58
|
+
content: b,
|
|
59
|
+
icon: g
|
|
60
|
+
},
|
|
61
|
+
navigation: {
|
|
62
|
+
button: m
|
|
63
|
+
},
|
|
64
|
+
pagination: {
|
|
65
|
+
wrapper: u,
|
|
66
|
+
bullet: d
|
|
36
67
|
}
|
|
37
|
-
}
|
|
68
|
+
};
|
|
38
69
|
export {
|
|
39
|
-
|
|
40
|
-
n as grid,
|
|
41
|
-
e as gridItem,
|
|
42
|
-
t as main
|
|
70
|
+
v as default
|
|
43
71
|
};
|