@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.
Files changed (118) hide show
  1. package/components/Dialog/interface.d.ts +5 -3
  2. package/components/Modal/interface.d.ts +6 -4
  3. package/components/SidePanel/interface.d.ts +9 -6
  4. package/hooks/useLabelledOverlay/index.d.ts +9 -0
  5. package/hooks/useLabelledOverlay/interface.d.ts +14 -0
  6. package/index.d.ts +2 -1
  7. package/index.js +1 -1
  8. package/index.mjs +72 -70
  9. package/index100.js +5 -1
  10. package/index100.mjs +88 -6
  11. package/index101.js +1 -12
  12. package/index101.mjs +6 -40
  13. package/index102.js +12 -1
  14. package/index102.mjs +36 -25
  15. package/index103.js +1 -1
  16. package/index103.mjs +24 -8
  17. package/index104.js +1 -7
  18. package/index104.mjs +7 -13
  19. package/index105.js +6 -14
  20. package/index105.mjs +13 -65
  21. package/index106.js +15 -1
  22. package/index106.mjs +71 -7
  23. package/index107.js +1 -41
  24. package/index107.mjs +7 -106
  25. package/index108.js +32 -38
  26. package/index108.mjs +78 -74
  27. package/index109.js +46 -15
  28. package/index109.mjs +96 -19
  29. package/index110.js +16 -1
  30. package/index110.mjs +20 -37
  31. package/index111.js +1 -1
  32. package/index111.mjs +42 -48
  33. package/index112.js +1 -1
  34. package/index112.mjs +47 -22
  35. package/index113.js +1 -2
  36. package/index113.mjs +22 -21
  37. package/index114.js +1 -1
  38. package/index114.mjs +2 -2
  39. package/index115.js +1 -1
  40. package/index115.mjs +1 -1
  41. package/index123.js +1 -1
  42. package/index123.mjs +1 -1
  43. package/index131.js +1 -1
  44. package/index131.mjs +23 -8
  45. package/index139.js +1 -1
  46. package/index139.mjs +6 -18
  47. package/index145.js +1 -1
  48. package/index145.mjs +1 -1
  49. package/index150.js +1 -1
  50. package/index150.mjs +54 -18
  51. package/index151.js +1 -1
  52. package/index151.mjs +21 -6
  53. package/index152.js +1 -1
  54. package/index152.mjs +6 -46
  55. package/index153.js +1 -2
  56. package/index153.mjs +11 -12
  57. package/index154.js +1 -1
  58. package/index154.mjs +46 -30
  59. package/index155.js +2 -1
  60. package/index155.mjs +13 -57
  61. package/index156.js +1 -1
  62. package/index156.mjs +29 -11
  63. package/index178.js +1 -1
  64. package/index178.mjs +1 -1
  65. package/index18.js +1 -1
  66. package/index18.mjs +1 -1
  67. package/index2.js +1 -1
  68. package/index2.mjs +21 -21
  69. package/index250.js +1 -1
  70. package/index250.mjs +1 -1
  71. package/index30.js +1 -1
  72. package/index30.mjs +15 -12
  73. package/index310.js +1 -1
  74. package/index310.mjs +1 -1
  75. package/index35.js +1 -1
  76. package/index35.mjs +20 -20
  77. package/index38.js +1 -1
  78. package/index38.mjs +13 -13
  79. package/index4.js +1 -1
  80. package/index4.mjs +1 -1
  81. package/index43.js +1 -1
  82. package/index43.mjs +1 -1
  83. package/index45.js +1 -1
  84. package/index45.mjs +1 -1
  85. package/index75.js +1 -1
  86. package/index75.mjs +34 -29
  87. package/index8.js +1 -1
  88. package/index8.mjs +45 -34
  89. package/index81.js +1 -1
  90. package/index81.mjs +1 -1
  91. package/index89.js +2 -1
  92. package/index89.mjs +20 -5
  93. package/index9.js +1 -1
  94. package/index9.mjs +21 -21
  95. package/index90.js +1 -1
  96. package/index90.mjs +5 -2
  97. package/index91.js +1 -6
  98. package/index91.mjs +2 -94
  99. package/index92.js +6 -1
  100. package/index92.mjs +79 -54
  101. package/index93.js +1 -1
  102. package/index93.mjs +61 -33
  103. package/index94.js +1 -42
  104. package/index94.mjs +34 -67
  105. package/index95.js +38 -60
  106. package/index95.mjs +65 -219
  107. package/index96.js +63 -8
  108. package/index96.mjs +215 -44
  109. package/index97.js +9 -1
  110. package/index97.mjs +48 -36
  111. package/index98.js +1 -1
  112. package/index98.mjs +40 -8
  113. package/index99.js +1 -5
  114. package/index99.mjs +10 -85
  115. package/package.json +1 -1
  116. package/providers/SidePanel/interface.d.ts +13 -4
  117. package/theme/SidePanel/index.d.ts +1 -1
  118. 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 n, jsxs as c } from "react/jsx-runtime";
3
- import f from "react-div-100vh";
4
- import { useSidePanel as u } from "./index75.mjs";
5
- import P from "./index73.mjs";
6
- import T from "./index33.mjs";
7
- import x from "./index112.mjs";
8
- import o from "./index27.mjs";
9
- import N from "./index30.mjs";
10
- const A = (m) => {
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: a,
13
- closeBtnRender: r,
12
+ children: d,
13
+ closeBtnRender: m,
14
14
  themeName: e = "sidePanel",
15
- tokens: i,
16
- TransitionAnimation: s = T,
17
- PanelTransition: l = x,
18
- customTheme: p
19
- } = m, d = P(`${e}.wrapper`, i, p), { overlayState: t, overlayProps: h } = u();
20
- return /* @__PURE__ */ n(
21
- N,
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
- state: t,
26
- ...h,
27
- transitionComponent: l,
28
- isDismissable: !0,
29
- children: /* @__PURE__ */ c(f, { className: d, children: [
30
- r && r(),
31
- /* @__PURE__ */ n(
32
- s,
33
- {
34
- themeName: `${e}.transitionAnimation`,
35
- tokens: i,
36
- isVisible: t.isOpen,
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
- A as default
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("./index89.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;
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 "./index89.mjs";
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index150.js");const o=require("./index151.js"),e=o("[StackUI]"),{log:r}=e;exports.log=r;exports.logger=e;
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
- import "./index150.mjs";
2
- import o from "./index151.mjs";
3
- const r = o("[StackUI]"), { log: g } = r;
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
- g as log,
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("./index27.js"),a=require("./index6.js"),f=require("./index14.js"),C=require("./index30.js"),N=require("./index3.js"),p=require("./index113.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(f,{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:$}=p({...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(N.default,{themeName:`${t}.label`,tokens:r,...$,children:i}),o]})}),e.jsxs(C,{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(b.default,{themeName:`${t}.container`,tokens:r,children:s})]})]})};module.exports=y;
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 s, Fragment as C, jsx as o } from "react/jsx-runtime";
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 "./index27.mjs";
6
- import l from "./index6.mjs";
7
- import $ from "./index14.mjs";
8
- import w from "./index30.mjs";
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
- import T from "./index113.mjs";
11
- const k = (t) => {
12
- const { themeName: n, tokens: i, children: m, ...e } = t;
13
- return /* @__PURE__ */ o(l, { themeName: n, tokens: i, ...e, children: /* @__PURE__ */ o($, { icon: "CloseBtn" }) });
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 = k,
21
+ closeButton: h = T,
22
22
  closeButtonAriaLabel: c,
23
23
  transitionComponent: p,
24
24
  showTriggerButton: u = !0,
25
25
  showCloseButton: g = !0
26
- } = t, a = N(t), { openTriggerProps: d, triggerProps: f, overlayProps: B, labelProps: b } = T(
27
- { ...t, type: "dialog" },
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__ */ s(C, { children: [
31
- u && /* @__PURE__ */ o(x, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ s(l, { themeName: `${e}.wrapper`, tokens: r, ...d, children: [
32
- m && /* @__PURE__ */ o(P, { themeName: `${e}.label`, tokens: r, ...b, children: m }),
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__ */ s(
36
- w,
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__ */ o(
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__ */ o(y, { themeName: `${e}.container`, tokens: r, children: n })
53
+ /* @__PURE__ */ t($, { themeName: `${e}.container`, tokens: r, children: n })
54
54
  ]
55
55
  }
56
56
  )
57
57
  ] });
58
58
  };
59
59
  export {
60
- I as default
60
+ M as default
61
61
  };
package/index90.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>e;exports.makeTheme=t;
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
@@ -1,4 +1,7 @@
1
- const m = (e) => e;
1
+ import "./index151.mjs";
2
+ import o from "./index152.mjs";
3
+ const r = o("[StackUI]"), { log: g } = r;
2
4
  export {
3
- m as makeTheme
5
+ g as log,
6
+ r as logger
4
7
  };
package/index91.js CHANGED
@@ -1,6 +1 @@
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;
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
- import { tv as e } from "tailwind-variants";
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
- 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
3
+ m as makeTheme
96
4
  };
package/index92.js CHANGED
@@ -1 +1,6 @@
1
- "use strict";const e=require("tailwind-variants"),t=require("./index94.js"),r=require("./index110.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;
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
- import t from "./index94.mjs";
3
- import r from "./index110.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"
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: "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,
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
- size: "h1"
30
+ titleBold: !1,
31
+ textAlign: "left",
32
+ bgColor: "white"
23
33
  }
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,
34
+ }), o = e({
35
+ base: "",
36
+ defaultVariants: {
37
+ textAlign: "left"
38
+ },
30
39
  variants: {
31
- order: {
32
- prev: "order-1",
33
- next: "order-3"
40
+ textAlign: {
41
+ center: "justify-self-center col-start-2",
42
+ left: "justify-self-start"
34
43
  }
35
44
  }
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",
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
- active: {
42
- true: "bg-color-1-100",
48
+ isOpen: {
49
+ true: "-rotate-90",
43
50
  false: ""
44
51
  }
45
52
  }
46
- }), v = {
47
- wrapper: a,
48
- carouselWrapper: o,
49
- closeBtn: s,
50
- swiper: {
51
- swiper: n,
52
- wrapper: l
53
- },
54
- item: {
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
- navigation: {
62
- button: m
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
- pagination: {
65
- wrapper: u,
66
- bullet: d
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
- v as default
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("tailwind-variants"),s=l.tv({base:"w-full bg-slate-100"}),a=l.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),t=l.tv({extend:a,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),e=l.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}});exports.container=a;exports.grid=t;exports.gridItem=e;exports.main=s;
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 l } from "tailwind-variants";
2
- const t = l({
3
- base: "w-full bg-slate-100"
4
- }), a = l({
5
- base: "max-w-screen-lg mx-auto w-full",
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
- fullWidth: {
8
- true: "max-w-full col-span-full p-0"
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
- }), n = l({
18
- extend: a,
19
- base: "grid grid-cols-12 gap-6 px-4 col-span-full",
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
- fullWidth: {
22
- true: "max-w-full col-span-full p-0"
41
+ active: {
42
+ true: "bg-color-1-100",
43
+ false: ""
23
44
  }
24
45
  }
25
- }), e = l({
26
- base: "bg-slate-300 h-64 p-4 flex justify-start items-end",
27
- defaultVariants: {
28
- size: "small"
46
+ }), v = {
47
+ wrapper: a,
48
+ carouselWrapper: o,
49
+ closeBtn: s,
50
+ swiper: {
51
+ swiper: n,
52
+ wrapper: l
29
53
  },
30
- variants: {
31
- size: {
32
- small: "col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",
33
- medium: "col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",
34
- large: "lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"
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
- a as container,
40
- n as grid,
41
- e as gridItem,
42
- t as main
70
+ v as default
43
71
  };