@okam/stack-ui 2.0.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/components/fields/SearchField/interface.d.ts +9 -2
- package/components/fields/TextArea/attributes.d.ts +1 -0
- package/components/fields/TextInputField/attributes.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +22 -22
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +11 -14
- package/index134.js +1 -1
- package/index134.mjs +12 -7
- package/index135.js +1 -1
- package/index135.mjs +14 -7
- package/index136.js +1 -1
- package/index136.mjs +6 -15
- package/index137.js +1 -1
- package/index137.mjs +7 -31
- package/index138.js +1 -2
- package/index138.mjs +15 -8
- package/index139.js +1 -2
- package/index139.mjs +30 -9
- package/index140.js +2 -1
- package/index140.mjs +8 -23
- package/index141.js +1 -1
- package/index141.mjs +8 -45
- package/index142.js +1 -1
- package/index142.mjs +24 -52
- package/index143.js +2 -6
- package/index143.mjs +45 -92
- package/index144.js +1 -1
- package/index144.mjs +52 -70
- package/index145.js +6 -1
- package/index145.mjs +82 -29
- package/index146.js +1 -51
- package/index146.mjs +65 -86
- package/index147.js +1 -64
- package/index147.mjs +33 -220
- package/index148.js +51 -10
- package/index148.mjs +85 -65
- package/index149.js +64 -1
- package/index149.mjs +214 -31
- package/index150.js +10 -1
- package/index150.mjs +68 -10
- package/index151.js +1 -7
- package/index151.mjs +42 -47
- package/index152.js +1 -5
- package/index152.mjs +10 -85
- package/index153.js +7 -1
- package/index153.mjs +50 -6
- package/index154.js +4 -11
- package/index154.mjs +78 -30
- package/index155.js +1 -1
- package/index155.mjs +6 -96
- package/index156.js +12 -1
- package/index156.mjs +39 -12
- package/index157.js +1 -1
- package/index157.mjs +96 -8
- package/index158.js +1 -1
- package/index158.mjs +13 -29
- package/index159.js +1 -1
- package/index159.mjs +7 -12
- package/index160.js +1 -7
- package/index160.mjs +23 -13
- package/index161.js +1 -15
- package/index161.mjs +9 -67
- package/index162.js +7 -1
- package/index162.mjs +22 -6
- package/index163.js +15 -9
- package/index163.mjs +68 -12
- package/index164.js +1 -41
- package/index164.mjs +7 -106
- package/index165.js +9 -47
- package/index165.mjs +13 -100
- package/index166.js +40 -15
- package/index166.mjs +100 -19
- package/index167.js +45 -18
- package/index167.mjs +85 -59
- package/index168.js +16 -1
- package/index168.mjs +20 -37
- package/index169.js +20 -1
- package/index169.mjs +76 -12
- package/index170.js +1 -1
- package/index170.mjs +41 -10
- package/index171.js +1 -1
- package/index171.mjs +11 -6
- package/index172.js +1 -2
- package/index172.mjs +6 -47
- package/index173.js +2 -0
- package/index173.mjs +50 -0
- package/index174.js +1 -0
- package/index174.mjs +13 -0
- package/index2.js +1 -1
- package/index2.mjs +4 -4
- package/index38.js +1 -1
- package/index38.mjs +19 -19
- package/index39.js +1 -1
- package/index39.mjs +11 -11
- package/index43.js +1 -1
- package/index43.mjs +55 -52
- package/index46.js +1 -1
- package/index46.mjs +86 -87
- package/index47.js +1 -1
- package/index47.mjs +110 -111
- package/index48.js +1 -1
- package/index48.mjs +3 -3
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index53.js +1 -1
- package/index53.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index68.js +1 -1
- package/index68.mjs +11 -11
- package/index72.js +1 -1
- package/index72.mjs +13 -13
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index8.js +1 -1
- package/index8.mjs +30 -30
- package/index91.js +1 -1
- package/index91.mjs +50 -49
- package/package.json +2 -2
- package/theme/Search/index.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 2.1.0 (2026-04-06)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **stack-ui:** linting fix ([83553d64](https://github.com/OKAMca/stack/commit/83553d64))
|
|
6
|
+
- **stack-ui:** render icon and button separately ([b7e3bc12](https://github.com/OKAMca/stack/commit/b7e3bc12))
|
|
7
|
+
- **stack-ui:** remove focus, pass props, tokens ([7b0b1224](https://github.com/OKAMca/stack/commit/7b0b1224))
|
|
8
|
+
- **stack-ui:** textinput/textarea accept general input attributes ([#427](https://github.com/OKAMca/stack/pull/427))
|
|
9
|
+
|
|
10
|
+
### ❤️ Thank You
|
|
11
|
+
|
|
12
|
+
- Max Hilland
|
|
13
|
+
- Pierre-Olivier Clerson @poclerson
|
|
14
|
+
|
|
1
15
|
## 2.0.3 (2026-03-11)
|
|
2
16
|
|
|
3
17
|
### 🩹 Fixes
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AriaSearchFieldProps } from 'react-aria';
|
|
2
|
+
import { AriaButtonProps, AriaSearchFieldProps } from 'react-aria';
|
|
3
3
|
import { TToken } from '../../../providers/Theme/interface';
|
|
4
4
|
import { TDefaultComponent } from '../../../types/components';
|
|
5
|
+
export interface TSearchActionProps {
|
|
6
|
+
value: string;
|
|
7
|
+
clearButtonProps: AriaButtonProps;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
tokens: TToken;
|
|
10
|
+
themeName: string;
|
|
11
|
+
}
|
|
5
12
|
export default interface TSearchProps<T = TToken> extends AriaSearchFieldProps, TDefaultComponent<T> {
|
|
6
13
|
disabled?: boolean;
|
|
7
14
|
placeholder?: string;
|
|
8
15
|
ariaLabel?: string;
|
|
9
16
|
errorMessage?: ReactNode;
|
|
10
|
-
|
|
17
|
+
renderAction?: (props: TSearchActionProps) => ReactNode;
|
|
11
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textAreaAttributes: readonly ["autoComplete", "autoFocus", "autoCorrect", "autoCapitalize", "enterKeyHint", "description", "width", "inputMode"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textInputAttributes: readonly ["autoComplete", "autoFocus", "autoCorrect", "autoCapitalize", "enterKeyHint", "type", "description", "width", "inputMode"];
|
package/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export type { TOptionProps } from './components/fields/Option/interface';
|
|
|
48
48
|
export { Radio, ReactHookFormRadio } from './components/fields/Radio';
|
|
49
49
|
export { default as RadioGroup } from './components/fields/RadioGroup';
|
|
50
50
|
export { default as SearchField } from './components/fields/SearchField';
|
|
51
|
+
export type { TSearchActionProps } from './components/fields/SearchField/interface';
|
|
51
52
|
export type { default as TSearchProps } from './components/fields/SearchField/interface';
|
|
52
53
|
export { ReactHookFormSelect, Select } from './components/fields/Select/Select';
|
|
53
54
|
export type { TSelectProps } from './components/fields/Select/Select.interface';
|
package/index119.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),h=require("react"),a=require("react-aria"),T=require("react-use"),F=require("./index81.js"),D=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("react"),a=require("react-aria"),T=require("react-use"),F=require("./index81.js"),D=require("./index171.js"),d=require("./index7.js"),C=require("./index8.js"),I=require("./index48.js");function M(c){const{item:y,tokens:K,customTheme:f}=c,{props:u,rendered:k,key:s}=y,{icon:x,title:E,onOpenChange:g,tokens:j,themeName:w}=u??{},{themeName:o=w}=c,q=h.useRef(null),l=h.useRef(null),{state:e,TransitionAnimation:N=D}=F.useAccordionCtx(),R=e.isDisabled||e.disabledKeys.has(s)||u?.isDisabled,r=e.expandedKeys.has(s),$={isExpanded:r,setExpanded:n=>{if(n){if(e.allowsMultipleExpanded){const m=new Set(e.expandedKeys);m.add(s),e.setExpandedKeys(m)}else e.setExpandedKeys(new Set([s]));return}const p=new Set(e.expandedKeys);p.delete(s),e.setExpandedKeys(p)},expand:()=>{if(!e.expandedKeys.has(s)){if(e.allowsMultipleExpanded){const n=new Set(e.expandedKeys);n.add(s),e.setExpandedKeys(n);return}e.setExpandedKeys(new Set([s]))}},collapse:()=>{if(!e.expandedKeys.has(s))return;const n=new Set(e.expandedKeys);n.delete(s),e.setExpandedKeys(n)},toggle:()=>e.toggleKey(s)},{buttonProps:b,panelProps:S}=a.useDisclosure({isDisabled:R},$,l),{onPress:P,...A}=b,i={...K,isOpen:r,...j},B=n=>{n.continuePropagation(),P?.(n)};return T.useUpdateEffect(()=>{g?.(r)},[r]),t.jsxs(d.Box,{themeName:`${o}.container`,tokens:i,customTheme:f,children:[t.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",children:t.jsxs(C.ButtonWithForwardRef,{...A,handlePress:B,ref:q,themeName:`${o}.button`,tokens:i,children:[t.jsx(d.Box,{themeName:`${o}.title`,tokens:i,children:E}),x&&t.jsx(d.Box,{themeName:`${o}.icon`,tokens:i,children:t.jsx(I,{icon:x})})]})}),t.jsx(N,{isVisible:r,themeName:`${o}.region`,tokens:i,children:t.jsx(d.BoxWithForwardRef,{...S,ref:l,themeName:`${o}.content`,tokens:i,children:t.jsx(a.FocusScope,{autoFocus:!0,children:k})})})]})}module.exports=M;
|
package/index119.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as x } from "react";
|
|
|
4
4
|
import { useDisclosure as B, FocusRing as C, FocusScope as I } from "react-aria";
|
|
5
5
|
import { useUpdateEffect as j } from "react-use";
|
|
6
6
|
import { useAccordionCtx as M } from "./index81.mjs";
|
|
7
|
-
import O from "./
|
|
7
|
+
import O from "./index171.mjs";
|
|
8
8
|
import { Box as d, BoxWithForwardRef as W } from "./index7.mjs";
|
|
9
9
|
import { ButtonWithForwardRef as U } from "./index8.mjs";
|
|
10
10
|
import V from "./index48.mjs";
|
package/index122.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime")
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),$=require("react-aria"),n=require("./index7.js"),b=require("./index172.js"),B=require("./index173.js"),v={narrow:{value:"narrow"},abbreviated:{value:"short",transform:e=>e.map(o=>o.slice(0,2))},short:{value:"short"},long:{value:"long"}};function C({themeName:e="calendar",customTheme:o,tokens:a,state:s,weekdayStyle:c="abbreviated",...u}){const{value:y,transform:x}=v[c],t=$.useCalendarGrid({...u,weekdayStyle:y},s),{gridProps:h,headerProps:w,weeksInMonth:m}=t,g=x?.(t.weekDays)??t.weekDays;return r.jsxs(n.Box,{as:"table",...h,themeName:`${e}.calendarTable`,tokens:a,children:[r.jsx(n.Box,{as:"thead",themeName:`${e}.calendarHeaderContainer`,...w,tokens:a,children:r.jsx(n.Box,{as:"tr",themeName:`${e}.calendarHeaderRow`,tokens:a,children:g.map(d=>r.jsx(n.Box,{as:"th",themeName:`${e}.calendarDayLabel`,tokens:a,children:d},`day-${d}`))})}),r.jsx(n.Box,{as:"tbody",themeName:`${e}.calendarBody`,tokens:a,children:Array.from({length:m},(d,i)=>r.jsx(n.Box,{as:"tr",themeName:`${e}.calendarWeekRow`,tokens:a,children:s.getDatesInWeek(i).map((l,p)=>{if(l==null)return r.jsx(n.Box,{themeName:`${e}.calendarCellContainer`,tokens:{isEmpty:!0,...a},as:"td"},p);const j=b.getIsDateOutsideRange(l,s);return r.jsx(B,{themeName:e,tokens:{isOutsideRange:j,isEmpty:!1,...a},state:s,date:l},l?.day)})},`week-${i}`))})]})}module.exports=C;
|
package/index122.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useCalendarGrid as
|
|
2
|
+
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useCalendarGrid as v } from "react-aria";
|
|
4
4
|
import { Box as l } from "./index7.mjs";
|
|
5
|
-
import { getIsDateOutsideRange as
|
|
6
|
-
import
|
|
5
|
+
import { getIsDateOutsideRange as C } from "./index172.mjs";
|
|
6
|
+
import D from "./index173.mjs";
|
|
7
7
|
const k = {
|
|
8
8
|
narrow: {
|
|
9
9
|
value: "narrow"
|
|
@@ -19,19 +19,19 @@ const k = {
|
|
|
19
19
|
value: "long"
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function j({
|
|
23
23
|
themeName: e = "calendar",
|
|
24
24
|
customTheme: s,
|
|
25
25
|
tokens: a,
|
|
26
|
-
state:
|
|
27
|
-
weekdayStyle:
|
|
28
|
-
...
|
|
26
|
+
state: n,
|
|
27
|
+
weekdayStyle: c = "abbreviated",
|
|
28
|
+
...m
|
|
29
29
|
}) {
|
|
30
|
-
const { value:
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */ r(l, { as: "thead", themeName: `${e}.calendarHeaderContainer`, ...
|
|
33
|
-
/* @__PURE__ */ r(l, { as: "tbody", themeName: `${e}.calendarBody`, tokens: a, children:
|
|
34
|
-
if (
|
|
30
|
+
const { value: y, transform: u } = k[c], o = v({ ...m, weekdayStyle: y }, n), { gridProps: h, headerProps: p, weeksInMonth: f } = o, w = u?.(o.weekDays) ?? o.weekDays;
|
|
31
|
+
return /* @__PURE__ */ g(l, { as: "table", ...h, themeName: `${e}.calendarTable`, tokens: a, children: [
|
|
32
|
+
/* @__PURE__ */ r(l, { as: "thead", themeName: `${e}.calendarHeaderContainer`, ...p, tokens: a, children: /* @__PURE__ */ r(l, { as: "tr", themeName: `${e}.calendarHeaderRow`, tokens: a, children: w.map((t) => /* @__PURE__ */ r(l, { as: "th", themeName: `${e}.calendarDayLabel`, tokens: a, children: t }, `day-${t}`)) }) }),
|
|
33
|
+
/* @__PURE__ */ r(l, { as: "tbody", themeName: `${e}.calendarBody`, tokens: a, children: Array.from({ length: f }, (t, i) => /* @__PURE__ */ r(l, { as: "tr", themeName: `${e}.calendarWeekRow`, tokens: a, children: n.getDatesInWeek(i).map((d, $) => {
|
|
34
|
+
if (d == null)
|
|
35
35
|
return /* @__PURE__ */ r(
|
|
36
36
|
l,
|
|
37
37
|
{
|
|
@@ -39,22 +39,22 @@ function P({
|
|
|
39
39
|
tokens: { isEmpty: !0, ...a },
|
|
40
40
|
as: "td"
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
$
|
|
43
43
|
);
|
|
44
|
-
const
|
|
44
|
+
const b = C(d, n);
|
|
45
45
|
return /* @__PURE__ */ r(
|
|
46
|
-
|
|
46
|
+
D,
|
|
47
47
|
{
|
|
48
48
|
themeName: e,
|
|
49
|
-
tokens: { isOutsideRange:
|
|
50
|
-
state:
|
|
51
|
-
date:
|
|
49
|
+
tokens: { isOutsideRange: b, isEmpty: !1, ...a },
|
|
50
|
+
state: n,
|
|
51
|
+
date: d
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
d?.day
|
|
54
54
|
);
|
|
55
|
-
}) }, `week-${
|
|
55
|
+
}) }, `week-${i}`)) })
|
|
56
56
|
] });
|
|
57
57
|
}
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
j as default
|
|
60
60
|
};
|
package/index131.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"),p=require("react"),h=require("react-aria"),$=require("./index88.js"),u=require("./index7.js"),f=require("./index74.js"),B=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("react-aria"),$=require("./index88.js"),u=require("./index7.js"),f=require("./index74.js"),B=require("./index174.js");function l({item:o,state:i,themeName:n="li"}){const r=p.useRef(null),{optionProps:e,isFocusVisible:c}=h.useOption({key:o.key},i,r),a=$(n);return t.jsx(f.TypographyWithForwardRef,{as:"li",...e,tokens:{className:`${a} ${c?"has-focus-ring":""}`},ref:r,children:o.rendered})}function x(o){const{children:i,listBoxRef:n,themeName:r,...e}=o;return t.jsx(h.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:t.jsx(u.BoxWithForwardRef,{...e,ref:n,as:"ul",themeName:`${r}.ul`,children:i})})}function k(o){const i=p.useRef(null),{listBoxRef:n=i,state:r,themeName:e="option",optionsWithHeaders:c}=o,{listBoxProps:a}=h.useListBox(o,r,n),d=Array.from(r.collection),y=B.getListboxSections(d,c??[]);return c?.some(s=>s.key?.includes("header-"))?t.jsx(x,{...a,listBoxRef:n,themeName:e,children:y.map(s=>{const j=s.header!=null?`section-${s.header.key}`:`section-${s.items[0]?.key??"empty"}`;return t.jsx(u.Box,{as:"li",themeName:`${e}.group`,children:t.jsxs(u.Box,{as:"section",themeName:`${e}.section`,children:[s.header!=null&&t.jsx(f.Typography,{as:"header",themeName:`${e}.headerText`,children:s.header.rendered},s.header.key),t.jsx(u.Box,{as:"ul",themeName:`${e}.list`,children:s.items.map(m=>t.jsx(l,{themeName:`${e}.li`,item:m,state:r},String(m.key)))})]})},j)})}):t.jsx(x,{...a,listBoxRef:n,themeName:e,children:d.map(s=>t.jsx(l,{themeName:`${e}.li`,item:s,state:r},s.key))})}exports.ListBox=k;exports.Option=l;
|
package/index131.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useListBox as $, FocusScope as N, useOption as k } from "react-aria";
|
|
|
5
5
|
import B from "./index88.mjs";
|
|
6
6
|
import { Box as c, BoxWithForwardRef as g } from "./index7.mjs";
|
|
7
7
|
import { Typography as F, TypographyWithForwardRef as R } from "./index74.mjs";
|
|
8
|
-
import { getListboxSections as L } from "./
|
|
8
|
+
import { getListboxSections as L } from "./index174.mjs";
|
|
9
9
|
function u({ item: s, state: i, themeName: n = "li" }) {
|
|
10
10
|
const t = p(null), { optionProps: e, isFocusVisible: a } = k({ key: s.key }, i, t), m = B(n);
|
|
11
11
|
return /* @__PURE__ */ r(
|
package/index133.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["autoComplete","autoFocus","autoCorrect","autoCapitalize","enterKeyHint","description","width","inputMode"];exports.textAreaAttributes=t;
|
package/index133.mjs
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
) }) });
|
|
12
|
-
}
|
|
13
|
-
const m = t(i, r);
|
|
1
|
+
const t = [
|
|
2
|
+
"autoComplete",
|
|
3
|
+
"autoFocus",
|
|
4
|
+
"autoCorrect",
|
|
5
|
+
"autoCapitalize",
|
|
6
|
+
"enterKeyHint",
|
|
7
|
+
"description",
|
|
8
|
+
"width",
|
|
9
|
+
"inputMode"
|
|
10
|
+
];
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
t as textAreaAttributes
|
|
16
13
|
};
|
package/index134.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["autoComplete","autoFocus","autoCorrect","autoCapitalize","enterKeyHint","type","description","width","inputMode"];exports.textInputAttributes=t;
|
package/index134.mjs
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const t = [
|
|
2
|
+
"autoComplete",
|
|
3
|
+
"autoFocus",
|
|
4
|
+
"autoCorrect",
|
|
5
|
+
"autoCapitalize",
|
|
6
|
+
"enterKeyHint",
|
|
7
|
+
"type",
|
|
8
|
+
"description",
|
|
9
|
+
"width",
|
|
10
|
+
"inputMode"
|
|
11
|
+
];
|
|
7
12
|
export {
|
|
8
|
-
|
|
13
|
+
t as textInputAttributes
|
|
9
14
|
};
|
package/index135.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const C=require("react/jsx-runtime"),e=require("radashi"),t=require("react");function i(r){return C.jsx("svg",{width:"16",height:"16",viewBox:"16 14 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:C.jsx("g",{clipPath:"url(#clip0_73015_2388)",children:C.jsx("path",{d:"M32 22C32 24.1217 31.1571 26.1566 29.6569 27.6569C28.1566 29.1571 26.1217 30 24 30C21.8783 30 19.8434 29.1571 18.3431 27.6569C16.8429 26.1566 16 24.1217 16 22C16 19.8783 16.8429 17.8434 18.3431 16.3431C19.8434 14.8429 21.8783 14 24 14C26.1217 14 28.1566 14.8429 29.6569 16.3431C31.1571 17.8434 32 19.8783 32 22ZM24 18C23.8736 18.0001 23.7486 18.0266 23.6331 18.0779C23.5176 18.1292 23.4141 18.2042 23.3293 18.2979C23.2446 18.3916 23.1803 18.5021 23.1408 18.6222C23.1013 18.7422 23.0874 18.8692 23.1 18.995L23.45 22.502C23.4618 22.6398 23.5248 22.7681 23.6266 22.8616C23.7285 22.9552 23.8617 23.0071 24 23.0071C24.1383 23.0071 24.2715 22.9552 24.3734 22.8616C24.4752 22.7681 24.5382 22.6398 24.55 22.502L24.9 18.995C24.9126 18.8692 24.8987 18.7422 24.8592 18.6222C24.8197 18.5021 24.7554 18.3916 24.6707 18.2979C24.5859 18.2042 24.4824 18.1292 24.3669 18.0779C24.2514 18.0266 24.1264 18.0001 24 18ZM24.002 24C23.7368 24 23.4824 24.1054 23.2949 24.2929C23.1074 24.4804 23.002 24.7348 23.002 25C23.002 25.2652 23.1074 25.5196 23.2949 25.7071C23.4824 25.8946 23.7368 26 24.002 26C24.2672 26 24.5216 25.8946 24.7091 25.7071C24.8966 25.5196 25.002 25.2652 25.002 25C25.002 24.7348 24.8966 24.4804 24.7091 24.2929C24.5216 24.1054 24.2672 24 24.002 24Z",fill:"currentColor"})})})}const n=t.memo(i,e.isEqual);module.exports=n;
|
package/index135.mjs
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { isEqual as r } from "radashi";
|
|
3
|
+
import { memo as t } from "react";
|
|
4
|
+
function i(o) {
|
|
5
|
+
return /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "16 14 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o, children: /* @__PURE__ */ C("g", { clipPath: "url(#clip0_73015_2388)", children: /* @__PURE__ */ C(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
d: "M32 22C32 24.1217 31.1571 26.1566 29.6569 27.6569C28.1566 29.1571 26.1217 30 24 30C21.8783 30 19.8434 29.1571 18.3431 27.6569C16.8429 26.1566 16 24.1217 16 22C16 19.8783 16.8429 17.8434 18.3431 16.3431C19.8434 14.8429 21.8783 14 24 14C26.1217 14 28.1566 14.8429 29.6569 16.3431C31.1571 17.8434 32 19.8783 32 22ZM24 18C23.8736 18.0001 23.7486 18.0266 23.6331 18.0779C23.5176 18.1292 23.4141 18.2042 23.3293 18.2979C23.2446 18.3916 23.1803 18.5021 23.1408 18.6222C23.1013 18.7422 23.0874 18.8692 23.1 18.995L23.45 22.502C23.4618 22.6398 23.5248 22.7681 23.6266 22.8616C23.7285 22.9552 23.8617 23.0071 24 23.0071C24.1383 23.0071 24.2715 22.9552 24.3734 22.8616C24.4752 22.7681 24.5382 22.6398 24.55 22.502L24.9 18.995C24.9126 18.8692 24.8987 18.7422 24.8592 18.6222C24.8197 18.5021 24.7554 18.3916 24.6707 18.2979C24.5859 18.2042 24.4824 18.1292 24.3669 18.0779C24.2514 18.0266 24.1264 18.0001 24 18ZM24.002 24C23.7368 24 23.4824 24.1054 23.2949 24.2929C23.1074 24.4804 23.002 24.7348 23.002 25C23.002 25.2652 23.1074 25.5196 23.2949 25.7071C23.4824 25.8946 23.7368 26 24.002 26C24.2672 26 24.5216 25.8946 24.7091 25.7071C24.8966 25.5196 25.002 25.2652 25.002 25C25.002 24.7348 24.8966 24.4804 24.7091 24.2929C24.5216 24.1054 24.2672 24 24.002 24Z",
|
|
9
|
+
fill: "currentColor"
|
|
10
|
+
}
|
|
11
|
+
) }) });
|
|
12
|
+
}
|
|
13
|
+
const m = t(i, r);
|
|
7
14
|
export {
|
|
8
|
-
|
|
15
|
+
m as default
|
|
9
16
|
};
|
package/index136.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("react");function n(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t})}const o=r.memo(n);module.exports=o;
|
package/index136.mjs
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function N(i) {
|
|
6
|
-
const { themeName: e, tokens: t, customTheme: n, children: s, beforeTabContent: r, afterTabContent: o } = i, { tabState: u, defaultSelectedKey: c } = p();
|
|
7
|
-
return /* @__PURE__ */ a(f, { children: [
|
|
8
|
-
/* @__PURE__ */ m(l, { themeName: `${e}.wrapper`, tokens: t, customTheme: n, children: s }),
|
|
9
|
-
u?.selectedKey?.toString() === c ? null : /* @__PURE__ */ a(l, { themeName: `${e}.tabWrapper`, tokens: t, customTheme: n, children: [
|
|
10
|
-
r !== null && r,
|
|
11
|
-
/* @__PURE__ */ m(h, { themeName: `${e}.tabPanel`, tokens: t, customTheme: n }),
|
|
12
|
-
o !== null && o
|
|
13
|
-
] })
|
|
14
|
-
] });
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { memo as r } from "react";
|
|
3
|
+
function m(o) {
|
|
4
|
+
return /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", ...o });
|
|
15
5
|
}
|
|
6
|
+
const l = r(m);
|
|
16
7
|
export {
|
|
17
|
-
|
|
8
|
+
l as default
|
|
18
9
|
};
|
package/index137.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=(r,n,t)=>{const e=r[n];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};module.exports=i;
|
package/index137.mjs
CHANGED
|
@@ -1,33 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
from: { opacity: 0, scale: 0.75 },
|
|
8
|
-
enter: { opacity: 1, scale: 1 },
|
|
9
|
-
leave: { opacity: 0, scale: 0.75 },
|
|
10
|
-
config: m.stiff
|
|
11
|
-
})(
|
|
12
|
-
(s, r) => r && /* @__PURE__ */ c(
|
|
13
|
-
l.div,
|
|
14
|
-
{
|
|
15
|
-
className: a,
|
|
16
|
-
style: {
|
|
17
|
-
position: "fixed",
|
|
18
|
-
left: 0,
|
|
19
|
-
top: 0,
|
|
20
|
-
bottom: 0,
|
|
21
|
-
zIndex: 1e3,
|
|
22
|
-
width: "100%",
|
|
23
|
-
height: "100%",
|
|
24
|
-
...s
|
|
25
|
-
},
|
|
26
|
-
children: o
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
}
|
|
1
|
+
const l = (r, n, t) => {
|
|
2
|
+
const e = r[n];
|
|
3
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
|
|
4
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
|
|
5
|
+
});
|
|
6
|
+
};
|
|
31
7
|
export {
|
|
32
|
-
|
|
8
|
+
l as default
|
|
33
9
|
};
|
package/index138.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),t=require("react-aria"),a=require("./index128.js");function l(s){const{children:o,themeName:r,tokens:u,customTheme:i,title:c,...n}=s;return e.jsx(a.Dialog,{themeName:`${r}.dialog`,tokens:u,customTheme:i,title:c,...n,children:e.jsx(t.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:e.jsx(t.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:o})})})}module.exports=l;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),m=require("./index84.js"),o=require("./index7.js"),x=require("./index51.js");function d(u){const{themeName:t,tokens:n,customTheme:r,children:c,beforeTabContent:s,afterTabContent:a}=u,{tabState:i,defaultSelectedKey:l}=m.useMenu();return e.jsxs(e.Fragment,{children:[e.jsx(o.Box,{themeName:`${t}.wrapper`,tokens:n,customTheme:r,children:c}),i?.selectedKey?.toString()===l?null:e.jsxs(o.Box,{themeName:`${t}.tabWrapper`,tokens:n,customTheme:r,children:[s!==null&&s,e.jsx(x,{themeName:`${t}.tabPanel`,tokens:n,customTheme:r}),a!==null&&a]})]})}module.exports=d;
|
package/index138.mjs
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
const {
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsxs as a, Fragment as f, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useMenu as p } from "./index84.mjs";
|
|
3
|
+
import { Box as l } from "./index7.mjs";
|
|
4
|
+
import h from "./index51.mjs";
|
|
5
|
+
function N(i) {
|
|
6
|
+
const { themeName: e, tokens: t, customTheme: n, children: s, beforeTabContent: r, afterTabContent: o } = i, { tabState: u, defaultSelectedKey: c } = p();
|
|
7
|
+
return /* @__PURE__ */ a(f, { children: [
|
|
8
|
+
/* @__PURE__ */ m(l, { themeName: `${e}.wrapper`, tokens: t, customTheme: n, children: s }),
|
|
9
|
+
u?.selectedKey?.toString() === c ? null : /* @__PURE__ */ a(l, { themeName: `${e}.tabWrapper`, tokens: t, customTheme: n, children: [
|
|
10
|
+
r !== null && r,
|
|
11
|
+
/* @__PURE__ */ m(h, { themeName: `${e}.tabPanel`, tokens: t, customTheme: n }),
|
|
12
|
+
o !== null && o
|
|
13
|
+
] })
|
|
14
|
+
] });
|
|
8
15
|
}
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
N as default
|
|
11
18
|
};
|
package/index139.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),d=require("react"),h=require("react-aria"),o=require("./index7.js");function x(n){const{themeName:e,tokens:r,customTheme:a,children:c,state:u,...i}=n,t=d.useRef(null),{modalProps:l,underlayProps:m}=h.useModalOverlay(i,u,t);return s.jsx(o.Box,{themeName:`${e}.underlay`,tokens:r,customTheme:a,...m,children:s.jsx(o.BoxWithForwardRef,{ref:t,themeName:`${e}.overlay`,tokens:r,...l,children:c})})}module.exports=x;
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),t=require("@react-spring/web"),l=require("./index88.js");function u({isVisible:e,children:i,themeName:o,tokens:s,customTheme:n}){const a=l(o,s,n);return t.useTransition(e,{from:{opacity:0,scale:.75},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:t.config.stiff})((c,r)=>r&&f.jsx(t.animated.div,{className:a,style:{position:"fixed",left:0,top:0,bottom:0,zIndex:1e3,width:"100%",height:"100%",...c},children:i}))}module.exports=u;
|
package/index139.mjs
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useTransition as f, config as m, animated as l } from "@react-spring/web";
|
|
3
|
+
import p from "./index88.mjs";
|
|
4
|
+
function y({ isVisible: t, children: o, themeName: e, tokens: i, customTheme: n }) {
|
|
5
|
+
const a = p(e, i, n);
|
|
6
|
+
return f(t, {
|
|
7
|
+
from: { opacity: 0, scale: 0.75 },
|
|
8
|
+
enter: { opacity: 1, scale: 1 },
|
|
9
|
+
leave: { opacity: 0, scale: 0.75 },
|
|
10
|
+
config: m.stiff
|
|
11
|
+
})(
|
|
12
|
+
(s, r) => r && /* @__PURE__ */ c(
|
|
13
|
+
l.div,
|
|
14
|
+
{
|
|
15
|
+
className: a,
|
|
16
|
+
style: {
|
|
17
|
+
position: "fixed",
|
|
18
|
+
left: 0,
|
|
19
|
+
top: 0,
|
|
20
|
+
bottom: 0,
|
|
21
|
+
zIndex: 1e3,
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "100%",
|
|
24
|
+
...s
|
|
25
|
+
},
|
|
26
|
+
children: o
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
);
|
|
9
30
|
}
|
|
10
31
|
export {
|
|
11
|
-
|
|
32
|
+
y as default
|
|
12
33
|
};
|
package/index140.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),t=require("react-aria"),a=require("./index128.js");function l(s){const{children:o,themeName:r,tokens:u,customTheme:i,title:c,...n}=s;return e.jsx(a.Dialog,{themeName:`${r}.dialog`,tokens:u,customTheme:i,title:c,...n,children:e.jsx(t.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:e.jsx(t.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:o})})})}module.exports=l;
|
package/index140.mjs
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return m(
|
|
8
|
-
from: {
|
|
9
|
-
opacity: 0,
|
|
10
|
-
position: l,
|
|
11
|
-
left: 0,
|
|
12
|
-
top: 0,
|
|
13
|
-
zIndex: 1e3,
|
|
14
|
-
bottom: 0,
|
|
15
|
-
height: "100%"
|
|
16
|
-
},
|
|
17
|
-
enter: { opacity: 1 },
|
|
18
|
-
leave: { opacity: 0 },
|
|
19
|
-
config: c.stiff
|
|
20
|
-
})(
|
|
21
|
-
(a, r) => r && /* @__PURE__ */ f(p.div, { className: s, style: a, children: o })
|
|
22
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { FocusRing as n, FocusScope as a } from "react-aria";
|
|
4
|
+
import { Dialog as m } from "./index128.mjs";
|
|
5
|
+
function d(e) {
|
|
6
|
+
const { children: t, themeName: r, tokens: u, customTheme: i, title: s, ...c } = e;
|
|
7
|
+
return /* @__PURE__ */ o(m, { themeName: `${r}.dialog`, tokens: u, customTheme: i, title: s, ...c, children: /* @__PURE__ */ o(n, { focusRingClass: "has-focus-ring", within: !0, autoFocus: !0, children: /* @__PURE__ */ o(a, { contain: !0, restoreFocus: !0, autoFocus: !0, children: t }) }) });
|
|
23
8
|
}
|
|
24
9
|
export {
|
|
25
|
-
|
|
10
|
+
d as default
|
|
26
11
|
};
|
package/index141.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),d=require("react"),h=require("react-aria"),o=require("./index7.js");function x(n){const{themeName:e,tokens:r,customTheme:a,children:c,state:u,...i}=n,t=d.useRef(null),{modalProps:l,underlayProps:m}=h.useModalOverlay(i,u,t);return s.jsx(o.Box,{themeName:`${e}.underlay`,tokens:r,customTheme:a,...m,children:s.jsx(o.BoxWithForwardRef,{ref:t,themeName:`${e}.overlay`,tokens:r,...l,children:c})})}module.exports=x;
|
package/index141.mjs
CHANGED
|
@@ -1,49 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t
|
|
3
|
-
import { useRef as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
rowProps: f,
|
|
10
|
-
gridCellProps: P,
|
|
11
|
-
removeButtonProps: a,
|
|
12
|
-
allowsRemoving: B,
|
|
13
|
-
isDisabled: g,
|
|
14
|
-
isFocused: k,
|
|
15
|
-
isPressed: v,
|
|
16
|
-
isSelected: w
|
|
17
|
-
} = T(r, p, i), o = {
|
|
18
|
-
...c,
|
|
19
|
-
isDisabled: g,
|
|
20
|
-
isFocused: k,
|
|
21
|
-
isPressed: v,
|
|
22
|
-
isSelected: w,
|
|
23
|
-
isLink: m != null && m !== ""
|
|
24
|
-
}, x = {
|
|
25
|
-
...s,
|
|
26
|
-
...a,
|
|
27
|
-
handlePress: (u) => {
|
|
28
|
-
s?.handlePress?.(u), a?.onPress?.(u);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
return /* @__PURE__ */ t($, { focusRingClass: "has-focus-ring within", children: /* @__PURE__ */ t(
|
|
32
|
-
C,
|
|
33
|
-
{
|
|
34
|
-
...d,
|
|
35
|
-
...f,
|
|
36
|
-
ref: i,
|
|
37
|
-
themeName: `${e}.wrapper`,
|
|
38
|
-
tokens: o,
|
|
39
|
-
customTheme: h,
|
|
40
|
-
children: /* @__PURE__ */ N(l, { themeName: `${e}.container`, tokens: o, ...P, children: [
|
|
41
|
-
/* @__PURE__ */ t(l, { themeName: `${e}.item`, tokens: o, children: n.rendered }),
|
|
42
|
-
B && s != null && /* @__PURE__ */ t(F, { themeName: `${e}.removeButton`, tokens: o, ...x })
|
|
43
|
-
] })
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as u } from "react";
|
|
4
|
+
import { useModalOverlay as i } from "react-aria";
|
|
5
|
+
import { Box as c, BoxWithForwardRef as h } from "./index7.mjs";
|
|
6
|
+
function N(m) {
|
|
7
|
+
const { themeName: e, tokens: o, customTheme: a, children: l, state: s, ...n } = m, r = u(null), { modalProps: d, underlayProps: f } = i(n, s, r);
|
|
8
|
+
return /* @__PURE__ */ t(c, { themeName: `${e}.underlay`, tokens: o, customTheme: a, ...f, children: /* @__PURE__ */ t(h, { ref: r, themeName: `${e}.overlay`, tokens: o, ...d, children: l }) });
|
|
46
9
|
}
|
|
47
10
|
export {
|
|
48
|
-
|
|
11
|
+
N as default
|
|
49
12
|
};
|
package/index142.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),t=require("@react-spring/web"),u=require("./index88.js"),d="fixed";function m({isVisible:e,children:i,themeName:n,tokens:o,customTheme:s}){const r=u(n,o,s);return t.useTransition(e,{from:{opacity:0,position:d,left:0,top:0,zIndex:1e3,bottom:0,height:"100%"},enter:{opacity:1},leave:{opacity:0},config:t.config.stiff})((c,a)=>a&&f.jsx(t.animated.div,{className:r,style:c,children:i}))}module.exports=m;
|