@okam/stack-ui 1.42.2 → 1.42.4
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/CHANGELOG.md +23 -0
- package/components/Menu/interface.d.ts +7 -1
- package/index100.js +1 -1
- package/index100.mjs +1 -1
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +1 -1
- package/index153.js +1 -1
- package/index153.mjs +4 -4
- package/index154.js +1 -1
- package/index154.mjs +2 -2
- package/index155.js +1 -1
- package/index155.mjs +1 -1
- package/index156.js +1 -1
- package/index156.mjs +1 -1
- package/index161.js +1 -1
- package/index161.mjs +2 -2
- package/index162.js +1 -1
- package/index162.mjs +15 -14
- package/index163.js +1 -1
- package/index163.mjs +2 -2
- package/index164.js +1 -1
- package/index164.mjs +5 -5
- package/index165.js +1 -1
- package/index165.mjs +3 -3
- package/index172.js +1 -1
- package/index172.mjs +2 -2
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index181.js +1 -1
- package/index181.mjs +3 -3
- package/index232.js +1 -1
- package/index232.mjs +117 -132
- package/index233.js +1 -1
- package/index233.mjs +65 -189
- package/index234.js +1 -1
- package/index234.mjs +378 -19
- package/index235.js +1 -1
- package/index235.mjs +47 -4
- package/index236.js +1 -1
- package/index236.mjs +4 -29
- package/index237.js +1 -1
- package/index237.mjs +23 -48
- package/index238.js +1 -1
- package/index238.mjs +45 -52
- package/index239.js +1 -1
- package/index239.mjs +5 -48
- package/index240.js +1 -1
- package/index240.mjs +22 -95
- package/index241.js +1 -1
- package/index241.mjs +12 -5
- package/index242.js +1 -1
- package/index242.mjs +4 -6
- package/index243.js +1 -1
- package/index243.mjs +13 -40
- package/index244.js +1 -1
- package/index244.mjs +43 -72
- package/index245.js +1 -1
- package/index245.mjs +56 -13
- package/index246.js +1 -1
- package/index246.mjs +40 -67
- package/index247.js +1 -1
- package/index247.mjs +28 -7
- package/index248.js +1 -1
- package/index248.mjs +31 -11
- package/index249.js +1 -1
- package/index249.mjs +13 -46
- package/index250.js +1 -1
- package/index250.mjs +10 -125
- package/index251.js +1 -1
- package/index251.mjs +25 -24
- package/index252.js +1 -1
- package/index252.mjs +8 -72
- package/index253.js +1 -1
- package/index253.mjs +6 -381
- package/index254.js +1 -1
- package/index254.mjs +5 -46
- package/index255.js +1 -1
- package/index255.mjs +7 -24
- package/index256.js +1 -1
- package/index256.mjs +29 -24
- package/index257.js +1 -1
- package/index257.mjs +18 -12
- package/index258.js +1 -1
- package/index258.mjs +13 -4
- package/index259.js +1 -1
- package/index259.mjs +42 -13
- package/index260.js +1 -1
- package/index260.mjs +7 -41
- package/index261.js +1 -1
- package/index261.mjs +16 -56
- package/index262.js +1 -1
- package/index262.mjs +3 -29
- package/index263.js +1 -1
- package/index263.mjs +4 -31
- package/index264.js +1 -1
- package/index264.mjs +19 -10
- package/index265.js +1 -1
- package/index265.mjs +54 -9
- package/index266.js +1 -1
- package/index266.mjs +27 -5
- package/index267.js +1 -1
- package/index267.mjs +140 -7
- package/index268.js +1 -1
- package/index268.mjs +196 -28
- package/index269.js +1 -1
- package/index269.mjs +18 -14
- package/index270.js +1 -1
- package/index270.mjs +48 -12
- package/index271.js +1 -1
- package/index271.mjs +45 -40
- package/index272.js +1 -1
- package/index272.mjs +96 -7
- package/index273.js +1 -1
- package/index273.mjs +72 -18
- package/index274.js +1 -1
- package/index274.mjs +69 -3
- package/index275.js +1 -1
- package/index275.mjs +7 -4
- package/index276.js +1 -1
- package/index276.mjs +11 -19
- package/index278.js +1 -1
- package/index278.mjs +4 -4
- package/index280.js +1 -1
- package/index280.mjs +9 -9
- package/index281.js +1 -1
- package/index281.mjs +1 -1
- package/index324.js +1 -1
- package/index324.mjs +63 -7
- package/index325.js +1 -1
- package/index325.mjs +25 -23
- package/index326.js +1 -1
- package/index326.mjs +7 -93
- package/index327.js +1 -1
- package/index327.mjs +27 -62
- package/index328.js +1 -1
- package/index328.mjs +90 -7
- package/index329.js +1 -1
- package/index329.mjs +8 -24
- package/index330.js +1 -1
- package/index330.mjs +25 -33
- package/index331.js +1 -1
- package/index331.mjs +33 -6
- package/index332.js +1 -1
- package/index332.mjs +6 -6
- package/index333.js +1 -1
- package/index333.mjs +6 -50
- package/index334.js +1 -1
- package/index334.mjs +49 -28
- package/index335.js +1 -1
- package/index335.mjs +5 -5
- package/index336.js +1 -1
- package/index336.mjs +1 -1
- package/index340.js +1 -1
- package/index340.mjs +2 -2
- package/index341.js +1 -1
- package/index341.mjs +1 -1
- package/index342.js +1 -1
- package/index342.mjs +1 -1
- package/index346.js +1 -1
- package/index346.mjs +166 -4
- package/index348.js +1 -1
- package/index348.mjs +4 -166
- package/index45.js +1 -1
- package/index45.mjs +68 -63
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## 1.42.4 (2025-11-27)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **stack-ui:** support for legacy menu item ariaLabel prop ([9ba1d1a](https://github.com/OKAMca/stack/commit/9ba1d1a))
|
|
6
|
+
- **stack-ui:** menu items dont declare next link props ([a9563d1](https://github.com/OKAMca/stack/commit/a9563d1))
|
|
7
|
+
- **stack-ui:** menu items use kebab-case aria labeling props ([d0b3781](https://github.com/OKAMca/stack/commit/d0b3781))
|
|
8
|
+
- **stack-ui:** dialog safely spreads rest props, no more DOM props warnings ([79b3367](https://github.com/OKAMca/stack/commit/79b3367))
|
|
9
|
+
|
|
10
|
+
### ❤️ Thank You
|
|
11
|
+
|
|
12
|
+
- poclerson
|
|
13
|
+
|
|
14
|
+
## 1.42.3 (2025-10-17)
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **stack-ui:** use correct operator ([2f8a0d7](https://github.com/OKAMca/stack/commit/2f8a0d7))
|
|
19
|
+
|
|
20
|
+
### ❤️ Thank You
|
|
21
|
+
|
|
22
|
+
- Max Hilland
|
|
23
|
+
|
|
1
24
|
## 1.42.2 (2025-10-14)
|
|
2
25
|
|
|
3
26
|
### 🩹 Fixes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AriaLabelingProps } from '@react-types/shared';
|
|
1
2
|
import type { AriaTabListProps } from '@react-types/tabs';
|
|
2
3
|
import type React from 'react';
|
|
3
4
|
import type { TToken } from '../../providers/Theme/interface';
|
|
@@ -25,7 +26,12 @@ export interface IMenuItemProp {
|
|
|
25
26
|
as?: React.ElementType<any>;
|
|
26
27
|
onClick?: () => void;
|
|
27
28
|
}
|
|
28
|
-
export type TMenuItemProps = IMenuItemProp & TDefaultComponent &
|
|
29
|
+
export type TMenuItemProps = IMenuItemProp & TDefaultComponent & AriaLabelingProps & {
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `aria-label` instead
|
|
32
|
+
*/
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
};
|
|
29
35
|
export interface TMenuItemsProps extends TDefaultComponent {
|
|
30
36
|
menuItems?: TMenuItemProps[] | null;
|
|
31
37
|
menuLinkComponent?: React.ElementType<any>;
|
package/index100.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const u=require("./index97.js"),l=require("./index98.js"),a=(t,o,e)=>{const{windowLocation:n,windowTitle:r}=l(),s=e
|
|
2
|
+
"use strict";const u=require("./index97.js"),l=require("./index98.js"),a=(t,o,e)=>{const{windowLocation:n,windowTitle:r}=l(),s=e||n,c=u(t,o),i=`${s}${c}`;return`mailto:?to=&body=${r}%20${i}`};module.exports=a;
|
package/index100.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import l from "./index97.mjs";
|
|
3
3
|
import c from "./index98.mjs";
|
|
4
4
|
const d = (o, t, r) => {
|
|
5
|
-
const { windowLocation: n, windowTitle: e } = c(), i = r
|
|
5
|
+
const { windowLocation: n, windowTitle: e } = c(), i = r || n, s = l(o, t), a = `${i}${s}`;
|
|
6
6
|
return `mailto:?to=&body=${e}%20${a}`;
|
|
7
7
|
};
|
|
8
8
|
export {
|
package/index101.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const i=require("./index97.js"),l=require("./index98.js"),a=(t,e,n,r)=>{const{windowLocation:s}=l(),o=r
|
|
2
|
+
"use strict";const i=require("./index97.js"),l=require("./index98.js"),a=(t,e,n,r)=>{const{windowLocation:s}=l(),o=r||s,c=i(t,e),u=`${o}${c}`;return`https://X.com/intent/tweet/?text=${n}&url=${u}`};module.exports=a;
|
package/index101.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import m from "./index97.mjs";
|
|
3
3
|
import a from "./index98.mjs";
|
|
4
4
|
const f = (t, o, e, r) => {
|
|
5
|
-
const { windowLocation: n } = a(), s = r
|
|
5
|
+
const { windowLocation: n } = a(), s = r || n, c = m(t, o), u = `${s}${c}`;
|
|
6
6
|
return `https://X.com/intent/tweet/?text=${e}&url=${u}`;
|
|
7
7
|
};
|
|
8
8
|
export {
|
package/index102.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const o=require("./index97.js"),c=require("./index98.js"),u=(t,e,r)=>{const{windowLocation:n}=c(),s=r
|
|
2
|
+
"use strict";const o=require("./index97.js"),c=require("./index98.js"),u=(t,e,r)=>{const{windowLocation:n}=c(),s=r||n,i=o(t,e);return`https://www.linkedin.com/shareArticle?mini=true&url=${`${s}${i}`}`};module.exports=u;
|
package/index102.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import l from "./index97.mjs";
|
|
3
3
|
import s from "./index98.mjs";
|
|
4
4
|
const a = (t, r, n) => {
|
|
5
|
-
const { windowLocation: e } = s(), o = n
|
|
5
|
+
const { windowLocation: e } = s(), o = n || e, i = l(t, r);
|
|
6
6
|
return `https://www.linkedin.com/shareArticle?mini=true&url=${`${o}${i}`}`;
|
|
7
7
|
};
|
|
8
8
|
export {
|
package/index153.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),f=require("./index154.js"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),f=require("./index154.js"),c=require("./index232.js"),D=require("./index233.js"),y=require("./index234.js"),I=require("./index235.js");function h(e,s,i){let a=c.useFormValidationState({...e,value:s.isSelected}),{isInvalid:r,validationErrors:v,validationDetails:P}=a.displayValidation,{labelProps:m,inputProps:b,isSelected:t,isPressed:S,isDisabled:l,isReadOnly:o}=I.useToggle({...e,isInvalid:r},s,i);D.useFormValidation(e,a,i);let{isIndeterminate:p,isRequired:d,validationBehavior:n="aria"}=e;V.useEffect(()=>{i.current&&(i.current.indeterminate=!!p)});let{pressProps:q}=y.usePress({isDisabled:l||o,onPress(){let{[c.privateValidationStateProp]:u}=e,{commitValidation:g}=u||a;g()}});return{labelProps:f.mergeProps(m,q),inputProps:{...b,checked:t,"aria-required":d&&n==="aria"||void 0,required:d&&n==="native"},isSelected:t,isPressed:S,isDisabled:l,isReadOnly:o,isInvalid:r,validationErrors:v,validationDetails:P}}exports.useCheckbox=h;
|
package/index153.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect as x } from "react";
|
|
2
2
|
import { mergeProps as S } from "./index154.mjs";
|
|
3
|
-
import { useFormValidationState as D, privateValidationStateProp as V } from "./
|
|
4
|
-
import { useFormValidation as I } from "./
|
|
5
|
-
import { usePress as g } from "./
|
|
6
|
-
import { useToggle as h } from "./
|
|
3
|
+
import { useFormValidationState as D, privateValidationStateProp as V } from "./index232.mjs";
|
|
4
|
+
import { useFormValidation as I } from "./index233.mjs";
|
|
5
|
+
import { usePress as g } from "./index234.mjs";
|
|
6
|
+
import { useToggle as h } from "./index235.mjs";
|
|
7
7
|
function F(e, r, i) {
|
|
8
8
|
let a = D({
|
|
9
9
|
...e,
|
package/index154.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index239.js"),l=require("./index181.js"),f=require("./index243.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
|
package/index154.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { chain as n } from "./
|
|
1
|
+
import { chain as n } from "./index239.mjs";
|
|
2
2
|
import { mergeIds as s } from "./index181.mjs";
|
|
3
|
-
import { clsx as l } from "./
|
|
3
|
+
import { clsx as l } from "./index243.mjs";
|
|
4
4
|
function a(...r) {
|
|
5
5
|
let o = {
|
|
6
6
|
...r[0]
|
package/index155.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index154.js"),o=require("react"),p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index154.js"),o=require("react"),p=require("./index265.js"),c={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function u(s={}){let{style:e,isFocusable:t}=s,[i,n]=o.useState(!1),{focusWithinProps:l}=p.useFocusWithin({isDisabled:!t,onFocusWithinChange:a=>n(a)}),r=o.useMemo(()=>i?e:e?{...c,...e}:c,[i]);return{visuallyHiddenProps:{...l,style:r}}}function h(s){let{children:e,elementType:t="div",isFocusable:i,style:n,...l}=s,{visuallyHiddenProps:r}=u(s);return o.createElement(t,d.mergeProps(l,r),e)}exports.VisuallyHidden=h;exports.useVisuallyHidden=u;
|
package/index155.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeProps as n } from "./index154.mjs";
|
|
2
2
|
import d, { useState as u, useMemo as p } from "react";
|
|
3
|
-
import { useFocusWithin as f } from "./
|
|
3
|
+
import { useFocusWithin as f } from "./index265.mjs";
|
|
4
4
|
const a = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|
package/index156.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index266.js");function a(e={}){let{isReadOnly:t}=e,[l,d]=o.useControlledState(e.isSelected,e.defaultSelected||!1,e.onChange);function c(i){t||d(i)}function n(){t||d(!l)}return{isSelected:l,setSelected:c,toggle:n}}exports.useToggleState=a;
|
package/index156.mjs
CHANGED
package/index161.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index232.js"),o=require("./index266.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
|
package/index161.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormValidationState as r, mergeValidation as o } from "./
|
|
2
|
-
import { useControlledState as b } from "./
|
|
1
|
+
import { useFormValidationState as r, mergeValidation as o } from "./index232.mjs";
|
|
2
|
+
import { useControlledState as b } from "./index266.mjs";
|
|
3
3
|
import { useRef as v } from "react";
|
|
4
4
|
function y(e = {}) {
|
|
5
5
|
let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
|
package/index162.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("./index180.js"),m=require("react"),f=require("react-aria"),h=require("./index36.js"),g=require("./index3.js");function q(e){const{themeName:t="dialog",tokens:r,title:i,customTheme:n,children:l,...c}=e,o=m.useRef(null),{dialogProps:u,titleProps:a}=f.useDialog(e,o);return s.jsxs(h.BoxWithForwardRef,{...d.filterDOMProps(c),themeName:`${t}.wrapper`,tokens:r,customTheme:n,...u,ref:o,children:[i&&s.jsx(g.default,{themeName:`${t}.title`,tokens:r,...a,children:i}),l]})}exports.Dialog=q;
|
package/index162.mjs
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import u from "./
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { filterDOMProps as d } from "./index180.mjs";
|
|
4
|
+
import { useRef as n } from "react";
|
|
5
|
+
import { useDialog as h } from "react-aria";
|
|
6
|
+
import { BoxWithForwardRef as u } from "./index36.mjs";
|
|
7
|
+
import g from "./index3.mjs";
|
|
8
|
+
function j(e) {
|
|
9
|
+
const { themeName: o = "dialog", tokens: r, title: t, customTheme: i, children: s, ...l } = e, m = n(null), { dialogProps: p, titleProps: f } = h(e, m);
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
u,
|
|
11
12
|
{
|
|
12
|
-
...
|
|
13
|
+
...d(l),
|
|
13
14
|
themeName: `${o}.wrapper`,
|
|
14
15
|
tokens: r,
|
|
15
16
|
customTheme: i,
|
|
16
|
-
...
|
|
17
|
+
...p,
|
|
17
18
|
ref: m,
|
|
18
19
|
children: [
|
|
19
|
-
t && /* @__PURE__ */
|
|
20
|
-
|
|
20
|
+
t && /* @__PURE__ */ c(g, { themeName: `${o}.title`, tokens: r, ...f, children: t }),
|
|
21
|
+
s
|
|
21
22
|
]
|
|
22
23
|
}
|
|
23
24
|
);
|
|
24
25
|
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
j as Dialog
|
|
27
28
|
};
|
package/index163.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index273.js"),r=require("react"),u=require("./index249.js"),a=require("@react-aria/i18n"),c=require("./index155.js");function d(e){return e&&e.__esModule?e.default:e}function m(e){let{onDismiss:t,...i}=e,s=a.useLocalizedStringFormatter(d(o),"@react-aria/overlays"),n=u.useLabels(i,s.format("dismiss")),l=()=>{t&&t()};return r.createElement(c.VisuallyHidden,null,r.createElement("button",{...n,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}exports.DismissButton=m;
|
package/index163.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import l from "./
|
|
1
|
+
import l from "./index273.mjs";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { useLabels as n } from "./
|
|
3
|
+
import { useLabels as n } from "./index249.mjs";
|
|
4
4
|
import { useLocalizedStringFormatter as m } from "@react-aria/i18n";
|
|
5
5
|
import { VisuallyHidden as f } from "./index155.mjs";
|
|
6
6
|
function c(e) {
|
package/index164.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index274.js"),b=require("./index267.js"),m=require("./index270.js"),g=require("./index272.js"),D=require("./index154.js"),q=require("./index236.js");function C(a,r){let{triggerRef:d,popoverRef:o,groupRef:e,isNonModal:s,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c,...n}=a,u=n.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:O}=m.useOverlay({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:!0,isDismissable:!s||u,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c},e??o),{overlayProps:P,arrowProps:y,placement:f}=b.useOverlayPosition({...n,targetRef:d,overlayRef:o,isOpen:r.isOpen,onClose:s&&!u?r.close:null});return g.usePreventScroll({isDisabled:s||!r.isOpen}),q.useLayoutEffect(()=>{if(r.isOpen&&o.current){var i,l;return s?t.keepVisible((i=e==null?void 0:e.current)!==null&&i!==void 0?i:o.current):t.ariaHideOutside([(l=e==null?void 0:e.current)!==null&&l!==void 0?l:o.current])}},[s,r.isOpen,o,e]),{popoverProps:D.mergeProps(v,P),arrowProps:y,underlayProps:O,placement:f}}exports.usePopover=C;
|
package/index164.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { keepVisible as v, ariaHideOutside as O } from "./
|
|
2
|
-
import { useOverlayPosition as P } from "./
|
|
3
|
-
import { useOverlay as y } from "./
|
|
4
|
-
import { usePreventScroll as x } from "./
|
|
1
|
+
import { keepVisible as v, ariaHideOutside as O } from "./index274.mjs";
|
|
2
|
+
import { useOverlayPosition as P } from "./index267.mjs";
|
|
3
|
+
import { useOverlay as y } from "./index270.mjs";
|
|
4
|
+
import { usePreventScroll as x } from "./index272.mjs";
|
|
5
5
|
import { mergeProps as g } from "./index154.mjs";
|
|
6
|
-
import { useLayoutEffect as D } from "./
|
|
6
|
+
import { useLayoutEffect as D } from "./index236.mjs";
|
|
7
7
|
function S(p, o) {
|
|
8
8
|
let { triggerRef: n, popoverRef: r, groupRef: e, isNonModal: s, isKeyboardDismissDisabled: t, shouldCloseOnInteractOutside: c, ...a } = p, d = a.trigger === "SubmenuTrigger", { overlayProps: f, underlayProps: u } = y({
|
|
9
9
|
isOpen: o.isOpen,
|
package/index165.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index275.js"),C=require("./index276.js"),f=require("@react-aria/focus"),e=require("react"),S=require("react-dom"),b=require("./index238.js"),l=e.createContext(null);function P(t){let c=b.useIsSSR(),{portalContainer:r=c?null:document.body,isExiting:s}=t,[o,a]=e.useState(!1),u=e.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:i}=d.useUNSAFE_PortalContext();if(!t.portalContainer&&i&&(r=i()),!r)return null;let n=t.children;return t.disableFocusManagement||(n=e.createElement(f.FocusScope,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!s},n)),n=e.createElement(l.Provider,{value:u},e.createElement(C.ClearPressResponder,null,n)),S.createPortal(n,r)}exports.Overlay=P;exports.OverlayContext=l;
|
package/index165.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useUNSAFE_PortalContext as f } from "./
|
|
2
|
-
import { ClearPressResponder as u } from "./
|
|
1
|
+
import { useUNSAFE_PortalContext as f } from "./index275.mjs";
|
|
2
|
+
import { ClearPressResponder as u } from "./index276.mjs";
|
|
3
3
|
import { FocusScope as m } from "@react-aria/focus";
|
|
4
4
|
import o, { useState as d, useMemo as $ } from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
|
-
import { useIsSSR as x } from "./
|
|
6
|
+
import { useIsSSR as x } from "./index238.mjs";
|
|
7
7
|
const C = /* @__PURE__ */ o.createContext(null);
|
|
8
8
|
function v(e) {
|
|
9
9
|
let c = x(), { portalContainer: a = c ? null : document.body, isExiting: i } = e, [n, r] = d(!1), s = $(() => ({
|
package/index172.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index232.js"),V=require("./index266.js"),d=require("react");let S=Math.round(Math.random()*1e10),m=0;function $(e){let u=d.useMemo(()=>e.name||`radio-group-${S}-${++m}`,[e.name]);var a;let[l,n]=V.useControlledState(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),[s,c]=d.useState(null),t=v.useFormValidationState({...e,value:l}),o=r=>{!e.isReadOnly&&!e.isDisabled&&(n(r),t.commitValidation())},i=t.displayValidation.isInvalid;return{...t,name:u,selectedValue:l,setSelectedValue:o,lastFocusedValue:s,setLastFocusedValue:c,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(i?"invalid":null),isInvalid:i}}exports.useRadioGroupState=$;
|
package/index172.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormValidationState as f } from "./
|
|
2
|
-
import { useControlledState as $ } from "./
|
|
1
|
+
import { useFormValidationState as f } from "./index232.mjs";
|
|
2
|
+
import { useControlledState as $ } from "./index266.mjs";
|
|
3
3
|
import { useMemo as m, useState as r } from "react";
|
|
4
4
|
let b = Math.round(Math.random() * 1e10), v = 0;
|
|
5
5
|
function F(e) {
|
package/index176.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index277.js"),y=require("./index279.js"),m=require("./index181.js"),q=require("./index154.js"),p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index277.js"),y=require("./index279.js"),m=require("./index181.js"),q=require("./index154.js"),p=require("./index249.js"),L=require("@react-aria/i18n"),P=require("react"),f=require("./index280.js");function I(t,o,i){let{orientation:e="horizontal",keyboardActivation:n="automatic"}=t,{collection:l,selectionManager:c,disabledKeys:a}=o,{direction:r}=L.useLocale(),u=P.useMemo(()=>new y.TabsKeyboardDelegate(l,r,e,a),[l,a,e,r]),{collectionProps:b}=f.useSelectableCollection({ref:i,selectionManager:c,keyboardDelegate:u,selectOnFocus:n==="automatic",disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),s=m.useId();g.tabsIds.set(o,s);let d=p.useLabels({...t,id:s});return{tabListProps:{...q.mergeProps(b,d),role:"tablist","aria-orientation":e,tabIndex:void 0}}}exports.useTabList=I;
|
package/index176.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { tabsIds as m } from "./index277.mjs";
|
|
|
2
2
|
import { TabsKeyboardDelegate as $ } from "./index279.mjs";
|
|
3
3
|
import { useId as p } from "./index181.mjs";
|
|
4
4
|
import { mergeProps as u } from "./index154.mjs";
|
|
5
|
-
import { useLabels as x } from "./
|
|
5
|
+
import { useLabels as x } from "./index249.mjs";
|
|
6
6
|
import { useLocale as g } from "@react-aria/i18n";
|
|
7
7
|
import { useMemo as y } from "react";
|
|
8
8
|
import { useSelectableCollection as L } from "./index280.mjs";
|
package/index178.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index277.js"),o=require("./index154.js"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index277.js"),o=require("./index154.js"),u=require("./index249.js"),s=require("@react-aria/focus");function c(a,e,d){let l=s.useHasTabbableChild(d)?void 0:0;var r;const n=i.generateId(e,(r=a.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),b=u.useLabels({...a,id:n,"aria-labelledby":i.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:o.mergeProps(b,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=c;
|
package/index178.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateId as r } from "./index277.mjs";
|
|
2
2
|
import { mergeProps as n } from "./index154.mjs";
|
|
3
|
-
import { useLabels as c } from "./
|
|
3
|
+
import { useLabels as c } from "./index249.mjs";
|
|
4
4
|
import { useHasTabbableChild as f } from "@react-aria/focus";
|
|
5
5
|
function m(a, e, b) {
|
|
6
6
|
let i = f(b) ? void 0 : 0;
|
package/index179.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index277.js"),S=require("./index154.js"),k=require("./index180.js"),y=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index277.js"),S=require("./index154.js"),k=require("./index180.js"),y=require("./index245.js"),q=require("@react-aria/focus"),v=require("./index278.js");function M(n,e,t){let{key:s,isDisabled:c,shouldSelectOnPressUp:b}=n,{selectionManager:u,selectedKey:p}=e,r=s===p,i=c||e.isDisabled||e.selectionManager.isDisabled(s),{itemProps:o,isPressed:P}=v.useSelectableItem({selectionManager:u,key:s,ref:t,isDisabled:i,shouldSelectOnPressUp:b,linkBehavior:"selection"}),f=a.generateId(e,s,"tab"),g=a.generateId(e,s,"tabpanel"),{tabIndex:m}=o,l=e.collection.getItem(s),d=k.filterDOMProps(l==null?void 0:l.props,{labelable:!0});delete d.id;let D=y.useLinkProps(l==null?void 0:l.props),{focusableProps:I}=q.useFocusable({isDisabled:i},t);return{tabProps:S.mergeProps(d,I,D,o,{id:f,"aria-selected":r,"aria-disabled":i||void 0,"aria-controls":r?g:void 0,tabIndex:i?void 0:m,role:"tab"}),isSelected:r,isDisabled:i,isPressed:P}}exports.useTab=M;
|
package/index179.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateId as t } from "./index277.mjs";
|
|
2
2
|
import { mergeProps as I } from "./index154.mjs";
|
|
3
3
|
import { filterDOMProps as g } from "./index180.mjs";
|
|
4
|
-
import { useLinkProps as k } from "./
|
|
4
|
+
import { useLinkProps as k } from "./index245.mjs";
|
|
5
5
|
import { useFocusable as S } from "@react-aria/focus";
|
|
6
6
|
import { useSelectableItem as v } from "./index278.mjs";
|
|
7
7
|
function B(b, e, d) {
|
package/index181.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index236.js"),a=require("./index237.js"),l=require("react"),b=require("./index238.js");let $=!!(typeof window<"u"&&window.document&&window.document.createElement),f=new Map,s;typeof FinalizationRegistry<"u"&&(s=new FinalizationRegistry(r=>{f.delete(r)}));function i(r){let[e,c]=l.useState(r),n=l.useRef(null),t=b.useSSRSafeId(e),d=l.useRef(null);if(s&&s.register(d,t),$){const u=f.get(t);u&&!u.includes(n)?u.push(n):f.set(t,[n])}return o.useLayoutEffect(()=>{let u=t;return()=>{s&&s.unregister(d),f.delete(u)}},[t]),l.useEffect(()=>{let u=n.current;return u&&c(u),()=>{u&&(n.current=null)}}),t}function p(r,e){if(r===e)return r;let c=f.get(r);if(c)return c.forEach(t=>t.current=e),e;let n=f.get(e);return n?(n.forEach(t=>t.current=r),r):e}function y(r=[]){let e=i(),[c,n]=a.useValueEffect(e),t=l.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return o.useLayoutEffect(t,[e,t,...r]),c}exports.idsUpdaterMap=f;exports.mergeIds=p;exports.useId=i;exports.useSlotId=y;
|
package/index181.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useLayoutEffect as o } from "./
|
|
2
|
-
import { useValueEffect as s } from "./
|
|
1
|
+
import { useLayoutEffect as o } from "./index236.mjs";
|
|
2
|
+
import { useValueEffect as s } from "./index237.mjs";
|
|
3
3
|
import { useCallback as i, useState as $, useRef as l, useEffect as b } from "react";
|
|
4
|
-
import { useSSRSafeId as p } from "./
|
|
4
|
+
import { useSSRSafeId as p } from "./index238.mjs";
|
|
5
5
|
let m = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new Map(), u;
|
|
6
6
|
typeof FinalizationRegistry < "u" && (u = new FinalizationRegistry((r) => {
|
|
7
7
|
d.delete(r);
|
package/index232.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"});const n=require("react"),v={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},x={...v,customError:!0,valid:!1},c={isInvalid:!1,validationDetails:v,validationErrors:[]},h=n.createContext({}),I="__formValidationState"+Date.now();function R(e){if(e[I]){let{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}=e[I];return{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}}return w(e)}function w(e){let{isInvalid:a,validationState:t,name:i,value:d,builtinValidation:l,validate:s,validationBehavior:o="aria"}=e;t&&(a||(a=t==="invalid"));let V=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:x}:null,m=n.useMemo(()=>{if(!s||d==null)return null;let r=F(s,d);return T(r)},[s,d]);l!=null&&l.validationDetails.valid&&(l=void 0);let u=n.useContext(h),A=n.useMemo(()=>i?Array.isArray(i)?i.flatMap(r=>D(u[r])):D(u[i]):[],[u,i]),[C,L]=n.useState(u),[g,$]=n.useState(!1);u!==C&&(L(u),$(!1));let b=n.useMemo(()=>T(g?[]:A),[g,A]),M=n.useRef(c),[E,p]=n.useState(c),f=n.useRef(c),_=()=>{if(!O)return;S(!1);let r=m||l||M.current;y(r,f.current)||(f.current=r,p(r))},[O,S]=n.useState(!1);return n.useEffect(_),{realtimeValidation:V||b||m||l||c,displayValidation:o==="native"?V||b||E:V||b||m||l||E,updateValidation(r){o==="aria"&&!y(E,r)?p(r):M.current=r},resetValidation(){let r=c;y(r,f.current)||(f.current=r,p(r)),o==="native"&&S(!1),$(!0)},commitValidation(){o==="native"&&S(!0),$(!0)}}}function D(e){return e?Array.isArray(e)?e:[e]:[]}function F(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return D(t)}return[]}function T(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:x}:null}function y(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,i)=>t===a.validationErrors[i])&&Object.entries(e.validationDetails).every(([t,i])=>a.validationDetails[t]===i)}function U(...e){let a=new Set,t=!1,i={...v};for(let s of e){var d,l;for(let o of s.validationErrors)a.add(o);t||(t=s.isInvalid);for(let o in i)(d=i)[l=o]||(d[l]=s.validationDetails[o])}return i.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:i}}exports.DEFAULT_VALIDATION_RESULT=c;exports.FormValidationContext=h;exports.VALID_VALIDITY_STATE=v;exports.mergeValidation=U;exports.privateValidationStateProp=I;exports.useFormValidationState=R;
|