@okam/stack-ui 1.30.0 → 1.30.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 (160) hide show
  1. package/components/Popover/index.d.ts +3 -1
  2. package/index.js +1 -1
  3. package/index10.js +1 -1
  4. package/index10.mjs +1 -0
  5. package/index102.js +1 -1
  6. package/index102.mjs +3 -3
  7. package/index103.js +1 -1
  8. package/index103.mjs +1 -1
  9. package/index110.js +1 -1
  10. package/index110.mjs +2 -2
  11. package/index116.js +1 -1
  12. package/index116.mjs +9 -9
  13. package/index117.js +1 -1
  14. package/index117.mjs +9 -9
  15. package/index121.js +1 -1
  16. package/index121.mjs +2 -2
  17. package/index127.js +1 -1
  18. package/index127.mjs +46 -12
  19. package/index128.js +1 -1
  20. package/index128.mjs +241 -46
  21. package/index129.js +2 -1
  22. package/index129.mjs +13 -241
  23. package/index13.js +1 -1
  24. package/index13.mjs +9 -8
  25. package/index130.js +1 -2
  26. package/index130.mjs +29 -12
  27. package/index131.js +1 -1
  28. package/index131.mjs +11 -29
  29. package/index132.js +1 -1
  30. package/index132.mjs +2 -2
  31. package/index135.js +1 -1
  32. package/index135.mjs +196 -58
  33. package/index136.js +1 -1
  34. package/index136.mjs +60 -90
  35. package/index137.js +1 -1
  36. package/index137.mjs +140 -32
  37. package/index138.js +1 -1
  38. package/index138.mjs +114 -116
  39. package/index139.js +1 -1
  40. package/index139.mjs +217 -27
  41. package/index140.js +1 -1
  42. package/index140.mjs +188 -122
  43. package/index141.js +1 -1
  44. package/index141.mjs +67 -132
  45. package/index142.js +1 -1
  46. package/index142.mjs +258 -14
  47. package/index143.js +1 -1
  48. package/index143.mjs +92 -90
  49. package/index144.js +1 -1
  50. package/index144.mjs +172 -104
  51. package/index145.js +1 -1
  52. package/index145.mjs +84 -5
  53. package/index146.js +1 -1
  54. package/index146.mjs +58 -3
  55. package/index147.js +1 -1
  56. package/index147.mjs +123 -122
  57. package/index148.js +1 -1
  58. package/index148.mjs +113 -26
  59. package/index149.js +1 -1
  60. package/index149.mjs +119 -48
  61. package/index150.js +1 -1
  62. package/index150.mjs +72 -44
  63. package/index151.js +1 -1
  64. package/index151.mjs +107 -34
  65. package/index152.js +1 -1
  66. package/index152.mjs +50 -111
  67. package/index153.js +1 -1
  68. package/index153.mjs +93 -77
  69. package/index154.js +1 -1
  70. package/index154.mjs +70 -101
  71. package/index155.js +1 -1
  72. package/index155.mjs +57 -98
  73. package/index156.js +1 -1
  74. package/index156.mjs +92 -192
  75. package/index157.js +5 -1
  76. package/index157.mjs +75 -59
  77. package/index158.js +1 -1
  78. package/index158.mjs +1995 -125
  79. package/index159.js +1 -1
  80. package/index159.mjs +56 -116
  81. package/index160.js +1 -1
  82. package/index160.mjs +185 -214
  83. package/index161.js +1 -1
  84. package/index161.mjs +58 -187
  85. package/index162.js +1 -1
  86. package/index162.mjs +89 -64
  87. package/index163.js +1 -1
  88. package/index163.mjs +32 -257
  89. package/index164.js +1 -1
  90. package/index164.mjs +117 -93
  91. package/index165.js +1 -1
  92. package/index165.mjs +27 -174
  93. package/index166.js +1 -1
  94. package/index166.mjs +123 -83
  95. package/index167.js +1 -1
  96. package/index167.mjs +132 -56
  97. package/index168.js +1 -1
  98. package/index168.mjs +14 -126
  99. package/index169.js +1 -1
  100. package/index169.mjs +92 -113
  101. package/index170.js +1 -1
  102. package/index170.mjs +103 -119
  103. package/index171.js +1 -1
  104. package/index171.mjs +5 -72
  105. package/index172.js +1 -1
  106. package/index172.mjs +3 -110
  107. package/index173.js +1 -1
  108. package/index173.mjs +124 -51
  109. package/index174.js +1 -1
  110. package/index174.mjs +29 -93
  111. package/index175.js +1 -1
  112. package/index175.mjs +51 -70
  113. package/index176.js +1 -1
  114. package/index176.mjs +44 -56
  115. package/index177.js +1 -1
  116. package/index177.mjs +36 -98
  117. package/index178.js +1 -5
  118. package/index178.mjs +111 -78
  119. package/index179.js +1 -1
  120. package/index179.mjs +74 -2008
  121. package/index180.js +1 -1
  122. package/index180.mjs +99 -57
  123. package/index181.js +1 -1
  124. package/index181.mjs +98 -189
  125. package/index182.js +1 -1
  126. package/index182.mjs +130 -5
  127. package/index183.js +1 -1
  128. package/index183.mjs +172 -123
  129. package/index184.js +1 -1
  130. package/index184.mjs +8 -178
  131. package/index185.js +1 -1
  132. package/index185.mjs +3 -9
  133. package/index186.js +1 -1
  134. package/index186.mjs +36 -3
  135. package/index187.js +1 -1
  136. package/index187.mjs +5 -36
  137. package/index188.js +1 -1
  138. package/index188.mjs +29 -5
  139. package/index189.js +1 -1
  140. package/index189.mjs +6 -29
  141. package/index190.js +1 -1
  142. package/index190.mjs +5 -6
  143. package/index191.js +1 -1
  144. package/index191.mjs +1 -1
  145. package/index2.js +1 -1
  146. package/index2.mjs +44 -43
  147. package/index23.js +1 -1
  148. package/index23.mjs +39 -38
  149. package/index24.js +1 -1
  150. package/index24.mjs +40 -39
  151. package/index6.js +1 -1
  152. package/index6.mjs +34 -34
  153. package/index88.js +1 -1
  154. package/index88.mjs +16 -13
  155. package/index98.js +1 -1
  156. package/index98.mjs +3 -3
  157. package/index99.js +1 -1
  158. package/index99.mjs +1 -1
  159. package/package.json +1 -1
  160. package/theme/DatePicker/index.d.ts +3 -2
package/index6.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),a=require("react"),c=require("react-aria"),b=require("./index64.js"),R=a.forwardRef((e,t)=>{var x;const{as:n="a",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=c.useLink({...e,...o,href:e.href??((x=o==null?void 0:o.href)==null?void 0:x.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=b(f,m,h);return s.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...o,...d,className:j,children:l})})}),B=a.forwardRef((e,t)=>{const{as:n="button",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=c.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=b(f,m,h);return s.jsx(c.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...d,className:j,children:l})})}),C=a.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?s.jsx(R,{ref:t,...e}):s.jsx(B,{ref:t,...e})}),P=e=>{const{as:t}=e,n=a.useRef(null);return t==="a"?s.jsx(R,{ref:n,...e}):s.jsx(B,{ref:n,...e})};P.displayName="Button";exports.Anchor=R;exports.ButtonWithForwardRef=C;exports.default=P;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),a=require("react"),c=require("react-aria"),P=require("./index64.js"),x=a.forwardRef((e,t)=>{var R;const{as:s="a",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=c.useLink({...e,...o,href:e.href??((R=o==null?void 0:o.href)==null?void 0:R.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=P(f,m,h);return n.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...o,...d,className:j,children:l})})}),b=a.forwardRef((e,t)=>{const{as:s="button",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=c.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=P(f,m,h),{onPress:R,onFocusChange:N,...C}=d;return n.jsx(c.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...C,className:j,children:l})})}),F=a.forwardRef((e,t)=>{const{as:s}=e;return s==="a"?n.jsx(x,{ref:t,...e}):n.jsx(b,{ref:t,...e})}),B=e=>{const{as:t}=e,s=a.useRef(null);return t==="a"?n.jsx(x,{ref:s,...e}):n.jsx(b,{ref:s,...e})};B.displayName="Button";exports.Anchor=x;exports.ButtonWithForwardRef=F;exports.default=B;
package/index6.mjs CHANGED
@@ -1,61 +1,61 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
- import g, { useRef as P } from "react";
4
- import { useLink as T, FocusRing as C, useButton as k } from "react-aria";
5
- import b from "./index64.mjs";
6
- const B = g.forwardRef(
7
- (t, e) => {
8
- var R;
3
+ import C, { useRef as T } from "react";
4
+ import { useLink as k, FocusRing as P, useButton as w } from "react-aria";
5
+ import R from "./index64.mjs";
6
+ const b = C.forwardRef(
7
+ (e, t) => {
8
+ var g;
9
9
  const {
10
10
  as: n = "a",
11
- handlePress: u,
12
- children: a,
11
+ handlePress: a,
12
+ children: u,
13
13
  as: r,
14
14
  customTheme: m,
15
15
  tokens: i,
16
16
  themeName: f = "button",
17
17
  nextLinkProps: o,
18
18
  ...h
19
- } = t, c = e, { linkProps: l } = T(
19
+ } = e, c = t, { linkProps: l } = k(
20
20
  {
21
- ...t,
21
+ ...e,
22
22
  ...o,
23
- href: t.href ?? ((R = o == null ? void 0 : o.href) == null ? void 0 : R.toString()),
23
+ href: e.href ?? ((g = o == null ? void 0 : o.href) == null ? void 0 : g.toString()),
24
24
  elementType: r == null ? void 0 : r.toString(),
25
- onPress: u
25
+ onPress: a
26
26
  },
27
- e ?? c
28
- ), d = b(f, i, m);
29
- return /* @__PURE__ */ s(C, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...o, ...h, className: d, children: a }) });
27
+ t ?? c
28
+ ), d = R(f, i, m);
29
+ return /* @__PURE__ */ s(P, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...o, ...h, className: d, children: u }) });
30
30
  }
31
- ), N = g.forwardRef((t, e) => {
31
+ ), B = C.forwardRef((e, t) => {
32
32
  const {
33
33
  as: n = "button",
34
- handlePress: u,
35
- children: a,
34
+ handlePress: a,
35
+ children: u,
36
36
  as: r,
37
37
  customTheme: m,
38
38
  tokens: i,
39
39
  themeName: f = "button",
40
40
  isDisabled: o = !1,
41
41
  ...h
42
- } = t, c = e, { buttonProps: l } = k(
43
- { ...t, isDisabled: o, elementType: r, onPress: u },
44
- e ?? c
45
- ), d = b(f, i, m);
46
- return /* @__PURE__ */ s(C, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...h, className: d, children: a }) });
47
- }), _ = g.forwardRef(
48
- (t, e) => {
49
- const { as: n } = t;
50
- return n === "a" ? /* @__PURE__ */ s(B, { ref: e, ...t }) : /* @__PURE__ */ s(N, { ref: e, ...t });
42
+ } = e, c = t, { buttonProps: l } = w(
43
+ { ...e, isDisabled: o, elementType: r, onPress: a },
44
+ t ?? c
45
+ ), d = R(f, i, m), { onPress: g, onFocusChange: F, ...N } = h;
46
+ return /* @__PURE__ */ s(P, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...N, className: d, children: u }) });
47
+ }), A = C.forwardRef(
48
+ (e, t) => {
49
+ const { as: n } = e;
50
+ return n === "a" ? /* @__PURE__ */ s(b, { ref: t, ...e }) : /* @__PURE__ */ s(B, { ref: t, ...e });
51
51
  }
52
- ), w = (t) => {
53
- const { as: e } = t, n = P(null);
54
- return e === "a" ? /* @__PURE__ */ s(B, { ref: n, ...t }) : /* @__PURE__ */ s(N, { ref: n, ...t });
52
+ ), y = (e) => {
53
+ const { as: t } = e, n = T(null);
54
+ return t === "a" ? /* @__PURE__ */ s(b, { ref: n, ...e }) : /* @__PURE__ */ s(B, { ref: n, ...e });
55
55
  };
56
- w.displayName = "Button";
56
+ y.displayName = "Button";
57
57
  export {
58
- B as Anchor,
59
- _ as ButtonWithForwardRef,
60
- w as default
58
+ b as Anchor,
59
+ A as ButtonWithForwardRef,
60
+ y as default
61
61
  };
package/index88.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),t=e.tv({base:"relative inline-flex flex-col text-left"}),r=e.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),a=e.tv({base:"fixed inset-0"}),o=e.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),d=e.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),n=e.tv({base:"focus-ring-black"}),i=e.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),l=e.tv({base:"text-color-1-500 font-bold px-2"});exports.datePickerButton=r;exports.datePickerCalendarPopoverContainer=o;exports.datePickerCalendarPopoverUnderlay=a;exports.datePickerContainer=t;exports.datePickerDateField=d;exports.datePickerDateSegment=n;exports.datePickerIcon=i;exports.datePickerLabel=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),t=e.tv({base:"relative inline-flex flex-col text-left"}),r=e.tv({base:"flex items-center focus-ring-black border-l-0"}),a=e.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),o=e.tv({base:"fixed inset-0"}),d=e.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),n=e.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),c=e.tv({base:"focus-ring-black focus:bg-blue-300"}),i=e.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),l=e.tv({base:"text-color-1-500 font-bold px-2"});exports.datePickerButton=r;exports.datePickerCalendarPopoverContainer=d;exports.datePickerCalendarPopoverUnderlay=o;exports.datePickerContainer=t;exports.datePickerDateField=n;exports.datePickerDateSegment=c;exports.datePickerIcon=i;exports.datePickerLabel=l;exports.datePickerWrapper=a;
package/index88.mjs CHANGED
@@ -1,13 +1,15 @@
1
1
  import { tv as e } from "tailwind-variants";
2
- const o = e({
2
+ const t = e({
3
3
  base: "relative inline-flex flex-col text-left"
4
- }), r = e({
5
- base: "flex items-center border-2 border-color-1-500 rounded focus-ring-black"
4
+ }), o = e({
5
+ base: "flex items-center focus-ring-black border-l-0"
6
6
  }), a = e({
7
+ base: "flex items-center border-2 border-color-1-500 rounded focus-ring-black"
8
+ }), l = e({
7
9
  base: "fixed inset-0"
8
10
  }), d = e({
9
11
  base: "absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"
10
- }), l = e({
12
+ }), n = e({
11
13
  base: "pr-1 flex gap-2",
12
14
  defaultVariants: {
13
15
  dateFieldShown: !0
@@ -18,20 +20,21 @@ const o = e({
18
20
  false: "hidden"
19
21
  }
20
22
  }
21
- }), n = e({
22
- base: "focus-ring-black"
23
23
  }), c = e({
24
+ base: "focus-ring-black focus:bg-blue-300"
25
+ }), s = e({
24
26
  base: "text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"
25
27
  }), i = e({
26
28
  base: "text-color-1-500 font-bold px-2"
27
29
  });
28
30
  export {
29
- r as datePickerButton,
31
+ o as datePickerButton,
30
32
  d as datePickerCalendarPopoverContainer,
31
- a as datePickerCalendarPopoverUnderlay,
32
- o as datePickerContainer,
33
- l as datePickerDateField,
34
- n as datePickerDateSegment,
35
- c as datePickerIcon,
36
- i as datePickerLabel
33
+ l as datePickerCalendarPopoverUnderlay,
34
+ t as datePickerContainer,
35
+ n as datePickerDateField,
36
+ c as datePickerDateSegment,
37
+ s as datePickerIcon,
38
+ i as datePickerLabel,
39
+ a as datePickerWrapper
37
40
  };
package/index98.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),b=require("./index135.js"),c=require("./index136.js"),p=require("./index137.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),b=require("./index161.js"),c=require("./index162.js"),p=require("./index163.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/index98.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 "./index135.mjs";
3
- import { useSelectableItem as c } from "./index136.mjs";
4
- import { useSelectableList as f } from "./index137.mjs";
2
+ import { useButton as u } from "./index161.mjs";
3
+ import { useSelectableItem as c } from "./index162.mjs";
4
+ import { useSelectableList as f } from "./index163.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/index99.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),y=require("./index98.js"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index69.js"),F=require("./index127.js"),i=require("./index25.js"),w=require("./index6.js"),C=require("./index14.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:A}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},p=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.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,{...$,"aria-expanded":o,handlePress:p,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{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;
1
+ "use strict";const e=require("react/jsx-runtime"),y=require("./index98.js"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index69.js"),F=require("./index131.js"),i=require("./index25.js"),w=require("./index6.js"),C=require("./index14.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:A}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},p=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.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,{...$,"aria-expanded":o,handlePress:p,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{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/index99.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 "./index127.mjs";
7
+ import C from "./index131.mjs";
8
8
  import i from "./index25.mjs";
9
9
  import { ButtonWithForwardRef as D } from "./index6.mjs";
10
10
  import K from "./index14.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.30.0",
4
+ "version": "1.30.1",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {
@@ -1,5 +1,6 @@
1
1
  export declare const datePickerContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative inline-flex flex-col text-left", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative inline-flex flex-col text-left", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
2
- export declare const datePickerButton: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center border-2 border-color-1-500 rounded focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center border-2 border-color-1-500 rounded focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
2
+ export declare const datePickerButton: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center focus-ring-black border-l-0", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center focus-ring-black border-l-0", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
3
+ export declare const datePickerWrapper: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center border-2 border-color-1-500 rounded focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center border-2 border-color-1-500 rounded focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
3
4
  export declare const datePickerCalendarPopoverUnderlay: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "fixed inset-0", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "fixed inset-0", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
4
5
  export declare const datePickerCalendarPopoverContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
5
6
  export declare const datePickerDateField: import("tailwind-variants").TVReturnType<{
@@ -38,6 +39,6 @@ export declare const datePickerDateField: import("tailwind-variants").TVReturnTy
38
39
  false: "hidden";
39
40
  };
40
41
  }>, unknown, unknown, undefined>>;
41
- export declare const datePickerDateSegment: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "focus-ring-black", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
42
+ export declare const datePickerDateSegment: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "focus-ring-black focus:bg-blue-300", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "focus-ring-black focus:bg-blue-300", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
42
43
  export declare const datePickerIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
43
44
  export declare const datePickerLabel: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-color-1-500 font-bold px-2", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-color-1-500 font-bold px-2", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;