@jacshuo/onyx 0.2.1 → 1.1.0
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/README.md +154 -33
- package/README.zh-CN.md +745 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.d.cts +3 -1
- package/dist/Accordion.d.ts +3 -1
- package/dist/Accordion.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.d.cts +1 -1
- package/dist/Badge.d.ts +1 -1
- package/dist/Badge.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.d.cts +3 -1
- package/dist/Card.d.ts +3 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CodeBlock.cjs +1 -1
- package/dist/CodeBlock.js +1 -1
- package/dist/Dialog.cjs +1 -1
- package/dist/Dialog.d.cts +5 -2
- package/dist/Dialog.d.ts +5 -2
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.d.cts +4 -0
- package/dist/Dropdown.d.ts +4 -0
- package/dist/Dropdown.js +1 -1
- package/dist/DropdownButton.cjs +1 -1
- package/dist/DropdownButton.d.cts +3 -1
- package/dist/DropdownButton.d.ts +3 -1
- package/dist/DropdownButton.js +1 -1
- package/dist/FileExplorer.cjs +1 -1
- package/dist/FileExplorer.js +1 -1
- package/dist/Form.cjs +1 -0
- package/dist/Form.d.cts +101 -0
- package/dist/Form.d.ts +101 -0
- package/dist/Form.js +1 -0
- package/dist/Header.cjs +1 -1
- package/dist/Header.d.cts +7 -1
- package/dist/Header.d.ts +7 -1
- package/dist/Header.js +1 -1
- package/dist/Indicator.cjs +1 -0
- package/dist/Indicator.d.cts +19 -0
- package/dist/Indicator.d.ts +19 -0
- package/dist/Indicator.js +1 -0
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Label.cjs +1 -1
- package/dist/Label.js +1 -1
- package/dist/List.cjs +1 -1
- package/dist/List.d.cts +5 -2
- package/dist/List.d.ts +5 -2
- package/dist/List.js +1 -1
- package/dist/Masonry.cjs +1 -0
- package/dist/Masonry.d.cts +41 -0
- package/dist/Masonry.d.ts +41 -0
- package/dist/Masonry.js +1 -0
- package/dist/NavLink.cjs +1 -1
- package/dist/NavLink.js +1 -1
- package/dist/Panel.cjs +1 -1
- package/dist/Panel.js +1 -1
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +3 -1
- package/dist/Radio.d.ts +3 -1
- package/dist/Radio.js +1 -1
- package/dist/SideNav.cjs +1 -1
- package/dist/SideNav.d.cts +14 -1
- package/dist/SideNav.d.ts +14 -1
- package/dist/SideNav.js +1 -1
- package/dist/Spin.cjs +1 -1
- package/dist/Spin.js +1 -1
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.d.cts +7 -3
- package/dist/Table.d.ts +7 -3
- package/dist/Table.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.d.cts +3 -1
- package/dist/Tabs.d.ts +3 -1
- package/dist/Tabs.js +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.d.cts +3 -1
- package/dist/Tooltip.d.ts +3 -1
- package/dist/Tooltip.js +1 -1
- package/dist/Tree.cjs +1 -1
- package/dist/Tree.d.cts +3 -1
- package/dist/Tree.d.ts +3 -1
- package/dist/Tree.js +1 -1
- package/dist/chunks/chunk-2JLNRAXS.cjs +1 -0
- package/dist/chunks/{chunk-GT56J65P.cjs → chunk-2KVAFCQI.cjs} +1 -1
- package/dist/chunks/chunk-3I7Y6FUJ.js +1 -0
- package/dist/chunks/chunk-47UMFXDG.js +1 -0
- package/dist/chunks/{chunk-GW4C7AV6.cjs → chunk-4D3XBPZX.cjs} +2 -2
- package/dist/chunks/{chunk-DCWKY33F.js → chunk-4VFV5U3S.js} +1 -1
- package/dist/chunks/{chunk-7DM4FEFY.js → chunk-5FUEJFGY.js} +1 -1
- package/dist/chunks/chunk-5XT6TJGF.js +1 -0
- package/dist/chunks/{chunk-SJ2HIDEM.cjs → chunk-6BI4QL37.cjs} +1 -1
- package/dist/chunks/{chunk-LCLJVRKK.cjs → chunk-6E5ARQBB.cjs} +1 -1
- package/dist/chunks/chunk-7CEOIZXK.js +1 -0
- package/dist/chunks/chunk-7XPIY2SQ.cjs +1 -0
- package/dist/chunks/chunk-A6HIQADJ.cjs +1 -0
- package/dist/chunks/{chunk-NFRGBE42.cjs → chunk-AEBULFON.cjs} +1 -1
- package/dist/chunks/chunk-AK5IK7ZD.js +1 -0
- package/dist/chunks/chunk-AN2R5URJ.js +1 -0
- package/dist/chunks/{chunk-3B5OL3PD.cjs → chunk-BTR2N5MO.cjs} +2 -2
- package/dist/chunks/{chunk-24YBOQFV.cjs → chunk-BUNOVZ23.cjs} +1 -1
- package/dist/chunks/chunk-CEEQE7SY.js +1 -0
- package/dist/chunks/chunk-CMHBPMXE.js +1 -0
- package/dist/chunks/chunk-DWYAPPDB.cjs +1 -0
- package/dist/chunks/chunk-E3DST3QD.cjs +1 -0
- package/dist/chunks/{chunk-PC4PVKTK.js → chunk-E4EMAZ6V.js} +2 -2
- package/dist/chunks/chunk-E5UKEXJE.js +1 -0
- package/dist/chunks/{chunk-A7SZGBY2.cjs → chunk-FDTREGBQ.cjs} +1 -1
- package/dist/chunks/chunk-FGUFBTKI.cjs +1 -0
- package/dist/chunks/{chunk-K4UGTWDR.js → chunk-FQZX67Z7.js} +1 -1
- package/dist/chunks/chunk-G2VO67XY.js +1 -0
- package/dist/chunks/{chunk-6DR7FZ4Y.js → chunk-GYFFUCBT.js} +1 -1
- package/dist/chunks/chunk-I425OSJL.js +1 -0
- package/dist/chunks/chunk-ICDAUJ2G.cjs +1 -0
- package/dist/chunks/chunk-IFRKP7M2.js +1 -0
- package/dist/chunks/chunk-IHBP6FI4.js +1 -0
- package/dist/chunks/{chunk-XOZYC6XB.cjs → chunk-IL5XDMUA.cjs} +1 -1
- package/dist/chunks/chunk-IRSGPS7D.cjs +1 -0
- package/dist/chunks/chunk-ITWFMFVO.js +1 -0
- package/dist/chunks/chunk-JJP23IOG.cjs +1 -0
- package/dist/chunks/chunk-JRYYWYGV.cjs +1 -0
- package/dist/chunks/chunk-KCIICUZN.cjs +1 -0
- package/dist/chunks/chunk-KGRBVUVK.cjs +1 -0
- package/dist/chunks/chunk-KY4NDB23.cjs +1 -0
- package/dist/chunks/chunk-KZBYFKOH.js +1 -0
- package/dist/chunks/chunk-LFJEIO3X.cjs +1 -0
- package/dist/chunks/chunk-NY27TTWN.js +1 -0
- package/dist/chunks/chunk-OEXZGLB4.js +1 -0
- package/dist/chunks/chunk-QC67HOC2.cjs +1 -0
- package/dist/chunks/chunk-QLFCH4TD.js +1 -0
- package/dist/chunks/chunk-RPBESM5F.cjs +1 -0
- package/dist/chunks/{chunk-KG3IXPCM.js → chunk-SC4PNYQT.js} +1 -1
- package/dist/chunks/chunk-SLHD7PST.cjs +1 -0
- package/dist/chunks/chunk-UEGTVAFV.cjs +1 -0
- package/dist/chunks/chunk-V34PT6H4.cjs +1 -0
- package/dist/chunks/chunk-VUWT3NFR.js +1 -0
- package/dist/chunks/{chunk-A7BECCRP.cjs → chunk-W5UXZVLS.cjs} +1 -1
- package/dist/chunks/chunk-WQOSJM7L.js +2 -0
- package/dist/chunks/chunk-WRPPKNRG.js +1 -0
- package/dist/chunks/chunk-XAOBJSFW.js +1 -0
- package/dist/chunks/{chunk-EQXC34N2.cjs → chunk-XK7SMEDO.cjs} +1 -1
- package/dist/chunks/chunk-XO6CNALX.js +1 -0
- package/dist/chunks/chunk-ZY7GZOBS.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/styles/base.css +513 -8
- package/dist/styles/tokens.css +159 -0
- package/dist/styles.css +607 -8
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +32 -1
- package/dist/theme.d.ts +32 -1
- package/dist/theme.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/chunk-2TTIBHQ3.js +0 -1
- package/dist/chunks/chunk-64BRBJ5M.js +0 -1
- package/dist/chunks/chunk-7PD2UMAG.cjs +0 -1
- package/dist/chunks/chunk-7QV2AV32.cjs +0 -1
- package/dist/chunks/chunk-BGUKKSPF.js +0 -1
- package/dist/chunks/chunk-GQDGQUKK.js +0 -1
- package/dist/chunks/chunk-H35HQKON.js +0 -2
- package/dist/chunks/chunk-H6MHL66N.js +0 -1
- package/dist/chunks/chunk-HFHOE2PH.cjs +0 -1
- package/dist/chunks/chunk-HR4MRHSX.js +0 -1
- package/dist/chunks/chunk-HSLG4VVI.cjs +0 -1
- package/dist/chunks/chunk-HSWWY3SE.cjs +0 -1
- package/dist/chunks/chunk-I327TE7P.js +0 -1
- package/dist/chunks/chunk-IPPWOV6D.js +0 -1
- package/dist/chunks/chunk-KVV5ZEYV.cjs +0 -1
- package/dist/chunks/chunk-LZZTFSBF.js +0 -1
- package/dist/chunks/chunk-MSBDCLPM.cjs +0 -1
- package/dist/chunks/chunk-MVGDKSBE.js +0 -1
- package/dist/chunks/chunk-NI2HVXR2.js +0 -1
- package/dist/chunks/chunk-NXWDOFPX.cjs +0 -1
- package/dist/chunks/chunk-NYTZZ5ZX.cjs +0 -1
- package/dist/chunks/chunk-OMBYGQJE.cjs +0 -1
- package/dist/chunks/chunk-P652JDOU.cjs +0 -1
- package/dist/chunks/chunk-Q53OOZJ3.cjs +0 -1
- package/dist/chunks/chunk-R7ZKMSZ3.js +0 -1
- package/dist/chunks/chunk-SCSMM2J4.js +0 -1
- package/dist/chunks/chunk-SKZIAHHY.cjs +0 -1
- package/dist/chunks/chunk-T3WU6A7R.js +0 -1
- package/dist/chunks/chunk-VHOOZBWZ.js +0 -1
- package/dist/chunks/chunk-W2JIAB3E.js +0 -1
- package/dist/chunks/chunk-WL4AMFUA.cjs +0 -1
- package/dist/chunks/chunk-WQA7PVJO.js +0 -1
- package/dist/chunks/chunk-X3PUHNVJ.js +0 -1
- package/dist/chunks/chunk-X4OS5ODF.cjs +0 -1
- package/dist/chunks/chunk-XOO3AGIT.js +0 -1
- package/dist/chunks/chunk-YWD2VK35.js +0 -1
- package/dist/chunks/chunk-ZEHGTD6Y.cjs +0 -1
package/dist/Accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkV34PT6H4_cjs=require('./chunks/chunk-V34PT6H4.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.c}});
|
package/dist/Accordion.d.cts
CHANGED
|
@@ -9,8 +9,10 @@ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof
|
|
|
9
9
|
defaultValue?: string[];
|
|
10
10
|
value?: string[];
|
|
11
11
|
onValueChange?: (value: string[]) => void;
|
|
12
|
+
/** Size of triggers and content text. @default 'md' */
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
12
14
|
};
|
|
13
|
-
declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function Accordion({ type, defaultValue, value, onValueChange, intent, size, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
14
16
|
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
15
17
|
value: string;
|
|
16
18
|
};
|
package/dist/Accordion.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof
|
|
|
9
9
|
defaultValue?: string[];
|
|
10
10
|
value?: string[];
|
|
11
11
|
onValueChange?: (value: string[]) => void;
|
|
12
|
+
/** Size of triggers and content text. @default 'md' */
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
12
14
|
};
|
|
13
|
-
declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function Accordion({ type, defaultValue, value, onValueChange, intent, size, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
14
16
|
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
15
17
|
value: string;
|
|
16
18
|
};
|
package/dist/Accordion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-
|
|
1
|
+
export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-KZBYFKOH.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkRPBESM5F_cjs=require('./chunks/chunk-RPBESM5F.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.a}});Object.defineProperty(exports,"AlertContent",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.d}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.e}});Object.defineProperty(exports,"AlertIcon",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.f}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.g}});
|
package/dist/Alert.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Alert,d as AlertContent,e as AlertDescription,c as AlertIcon,b as AlertTitle,f as configureAlertTopOffset,g as useAlert}from'./chunks/chunk-
|
|
1
|
+
export{a as Alert,d as AlertContent,e as AlertDescription,c as AlertIcon,b as AlertTitle,f as configureAlertTopOffset,g as useAlert}from'./chunks/chunk-WRPPKNRG.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Badge.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkKGRBVUVK_cjs=require('./chunks/chunk-KGRBVUVK.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkKGRBVUVK_cjs.a}});
|
package/dist/Badge.d.cts
CHANGED
|
@@ -5,6 +5,6 @@ import { badgeVariants } from './theme.cjs';
|
|
|
5
5
|
import 'class-variance-authority/types';
|
|
6
6
|
|
|
7
7
|
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
8
|
-
declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function Badge({ intent, size, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Badge };
|
package/dist/Badge.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { badgeVariants } from './theme.js';
|
|
|
5
5
|
import 'class-variance-authority/types';
|
|
6
6
|
|
|
7
7
|
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
8
|
-
declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function Badge({ intent, size, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Badge };
|
package/dist/Badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Badge}from'./chunks/chunk-
|
|
1
|
+
export{a as Badge}from'./chunks/chunk-OEXZGLB4.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2KVAFCQI_cjs=require('./chunks/chunk-2KVAFCQI.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunk2KVAFCQI_cjs.a}});
|
package/dist/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Button}from'./chunks/chunk-
|
|
1
|
+
export{a as Button}from'./chunks/chunk-5FUEJFGY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkKY4NDB23_cjs=require('./chunks/chunk-KY4NDB23.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.g}});
|
package/dist/Card.d.cts
CHANGED
|
@@ -27,7 +27,9 @@ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"
|
|
|
27
27
|
/** Media configuration. */
|
|
28
28
|
media: HorizontalCardMediaProps;
|
|
29
29
|
children: React.ReactNode;
|
|
30
|
+
/** Stack media above content on small screens. @default false */
|
|
31
|
+
stackOnMobile?: boolean;
|
|
30
32
|
};
|
|
31
|
-
declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare function HorizontalCard({ intent, media, mediaPosition, stackOnMobile, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
|
|
32
34
|
|
|
33
35
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
|
package/dist/Card.d.ts
CHANGED
|
@@ -27,7 +27,9 @@ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"
|
|
|
27
27
|
/** Media configuration. */
|
|
28
28
|
media: HorizontalCardMediaProps;
|
|
29
29
|
children: React.ReactNode;
|
|
30
|
+
/** Stack media above content on small screens. @default false */
|
|
31
|
+
stackOnMobile?: boolean;
|
|
30
32
|
};
|
|
31
|
-
declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare function HorizontalCard({ intent, media, mediaPosition, stackOnMobile, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
|
|
32
34
|
|
|
33
35
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
|
package/dist/Card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-
|
|
1
|
+
export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-IHBP6FI4.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkIL5XDMUA_cjs=require('./chunks/chunk-IL5XDMUA.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Checkbox",{enumerable:true,get:function(){return chunkIL5XDMUA_cjs.a}});
|
package/dist/Checkbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Checkbox}from'./chunks/chunk-
|
|
1
|
+
export{a as Checkbox}from'./chunks/chunk-7CEOIZXK.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/CodeBlock.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkBTR2N5MO_cjs=require('./chunks/chunk-BTR2N5MO.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"CodeBlock",{enumerable:true,get:function(){return chunkBTR2N5MO_cjs.a}});
|
package/dist/CodeBlock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CodeBlock}from'./chunks/chunk-
|
|
1
|
+
export{a as CodeBlock}from'./chunks/chunk-E4EMAZ6V.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJJP23IOG_cjs=require('./chunks/chunk-JJP23IOG.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.d}});
|
package/dist/Dialog.d.cts
CHANGED
|
@@ -13,8 +13,11 @@ type DialogProps = {
|
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
16
|
-
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants
|
|
17
|
-
|
|
16
|
+
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants> & {
|
|
17
|
+
/** Where to render the dialog in the viewport. @default 'center' */
|
|
18
|
+
position?: "center" | "bottom";
|
|
19
|
+
};
|
|
20
|
+
declare function DialogContent({ size, position, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
|
|
18
21
|
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
19
22
|
declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
20
23
|
declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
package/dist/Dialog.d.ts
CHANGED
|
@@ -13,8 +13,11 @@ type DialogProps = {
|
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
16
|
-
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants
|
|
17
|
-
|
|
16
|
+
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants> & {
|
|
17
|
+
/** Where to render the dialog in the viewport. @default 'center' */
|
|
18
|
+
position?: "center" | "bottom";
|
|
19
|
+
};
|
|
20
|
+
declare function DialogContent({ size, position, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
|
|
18
21
|
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
19
22
|
declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
20
23
|
declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
package/dist/Dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-
|
|
1
|
+
export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-3I7Y6FUJ.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkIRSGPS7D_cjs=require('./chunks/chunk-IRSGPS7D.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunkIRSGPS7D_cjs.a}});
|
package/dist/Dropdown.d.cts
CHANGED
|
@@ -28,6 +28,10 @@ interface DropdownBaseProps {
|
|
|
28
28
|
align?: "left" | "right";
|
|
29
29
|
/** Additional class name for the root container. */
|
|
30
30
|
className?: string;
|
|
31
|
+
/** Controls the trigger height and text size. @default 'md' */
|
|
32
|
+
size?: "sm" | "md" | "lg";
|
|
33
|
+
/** Enable domino flip-in/flip-out animation for menu items. @default true */
|
|
34
|
+
animated?: boolean;
|
|
31
35
|
}
|
|
32
36
|
interface DropdownSingleProps extends DropdownBaseProps {
|
|
33
37
|
/** Enable multi-select with checkboxes. @default false */
|
package/dist/Dropdown.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ interface DropdownBaseProps {
|
|
|
28
28
|
align?: "left" | "right";
|
|
29
29
|
/** Additional class name for the root container. */
|
|
30
30
|
className?: string;
|
|
31
|
+
/** Controls the trigger height and text size. @default 'md' */
|
|
32
|
+
size?: "sm" | "md" | "lg";
|
|
33
|
+
/** Enable domino flip-in/flip-out animation for menu items. @default true */
|
|
34
|
+
animated?: boolean;
|
|
31
35
|
}
|
|
32
36
|
interface DropdownSingleProps extends DropdownBaseProps {
|
|
33
37
|
/** Enable multi-select with checkboxes. @default false */
|
package/dist/Dropdown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Dropdown}from'./chunks/chunk-
|
|
1
|
+
export{a as Dropdown}from'./chunks/chunk-CEEQE7SY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/DropdownButton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkICDAUJ2G_cjs=require('./chunks/chunk-ICDAUJ2G.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunkICDAUJ2G_cjs.a}});
|
|
@@ -31,7 +31,9 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
31
31
|
selected?: string[];
|
|
32
32
|
/** Called when the selection changes (multi-select mode). */
|
|
33
33
|
onSelectionChange?: (selected: string[]) => void;
|
|
34
|
+
/** Enable domino flip-in/flip-out animation for menu items. @default true */
|
|
35
|
+
animated?: boolean;
|
|
34
36
|
}
|
|
35
|
-
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
37
|
+
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, animated, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
38
|
|
|
37
39
|
export { DropdownButton, type DropdownButtonProps, type DropdownItem };
|
package/dist/DropdownButton.d.ts
CHANGED
|
@@ -31,7 +31,9 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
31
31
|
selected?: string[];
|
|
32
32
|
/** Called when the selection changes (multi-select mode). */
|
|
33
33
|
onSelectionChange?: (selected: string[]) => void;
|
|
34
|
+
/** Enable domino flip-in/flip-out animation for menu items. @default true */
|
|
35
|
+
animated?: boolean;
|
|
34
36
|
}
|
|
35
|
-
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
37
|
+
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, animated, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
38
|
|
|
37
39
|
export { DropdownButton, type DropdownButtonProps, type DropdownItem };
|
package/dist/DropdownButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DropdownButton}from'./chunks/chunk-
|
|
1
|
+
export{a as DropdownButton}from'./chunks/chunk-47UMFXDG.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/FileExplorer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk4D3XBPZX_cjs=require('./chunks/chunk-4D3XBPZX.cjs');require('./chunks/chunk-JJP23IOG.cjs'),require('./chunks/chunk-2KVAFCQI.cjs'),require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunk4D3XBPZX_cjs.a}});
|
package/dist/FileExplorer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as FileExplorer}from'./chunks/chunk-
|
|
1
|
+
export{a as FileExplorer}from'./chunks/chunk-GYFFUCBT.js';import'./chunks/chunk-3I7Y6FUJ.js';import'./chunks/chunk-5FUEJFGY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Form.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkE3DST3QD_cjs=require('./chunks/chunk-E3DST3QD.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Form",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.a}});Object.defineProperty(exports,"FormItem",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.b}});Object.defineProperty(exports,"FormSection",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.c}});
|
package/dist/Form.d.cts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { formVariants } from './theme.cjs';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type FormLayout = "stacked" | "inline";
|
|
8
|
+
type FormSize = "sm" | "md" | "lg";
|
|
9
|
+
type FormValidationStatus = "error" | "warning" | "success" | "hint";
|
|
10
|
+
/** Return value of a FormItem validation callback. */
|
|
11
|
+
type ValidationResult = {
|
|
12
|
+
result: boolean;
|
|
13
|
+
reason: string;
|
|
14
|
+
};
|
|
15
|
+
/** Callback type for FormItem's `onValidate` prop. */
|
|
16
|
+
type ValidateCallback = (value: unknown) => ValidationResult;
|
|
17
|
+
/**
|
|
18
|
+
* Map of field names → ValidationResult returned from the `onValues` callback.
|
|
19
|
+
* Form will automatically display these errors in the matching named FormItems.
|
|
20
|
+
* Fields with `result: true` show a success message; `result: false` shows an error.
|
|
21
|
+
*/
|
|
22
|
+
type BulkValidationResult = Record<string, ValidationResult>;
|
|
23
|
+
type FormProps = React.FormHTMLAttributes<HTMLFormElement> & VariantProps<typeof formVariants> & {
|
|
24
|
+
/**
|
|
25
|
+
* Label + control layout for all FormItems.
|
|
26
|
+
* - "stacked" — label above control (default; always used on narrow viewports)
|
|
27
|
+
* - "inline" — label left, control right
|
|
28
|
+
* @default "stacked"
|
|
29
|
+
*/
|
|
30
|
+
layout?: FormLayout;
|
|
31
|
+
/** Form heading rendered above all items. */
|
|
32
|
+
title?: React.ReactNode;
|
|
33
|
+
/** Optional descriptive text below the heading. */
|
|
34
|
+
description?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Footer slot — typically holds submit / reset buttons.
|
|
37
|
+
* Rendered below all FormItems, separated by a top border.
|
|
38
|
+
*/
|
|
39
|
+
footer?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Called on form submit with a plain-object snapshot of all named
|
|
42
|
+
* FormItem inputs (via the native FormData API).
|
|
43
|
+
* Call `e.preventDefault()` inside this callback to prevent a page reload.
|
|
44
|
+
*
|
|
45
|
+
* May return (or resolve to) a `BulkValidationResult` to display
|
|
46
|
+
* per-field errors/successes — Form automatically routes each entry
|
|
47
|
+
* to the matching `<FormItem name="…">`.
|
|
48
|
+
* Supports async (return a Promise).
|
|
49
|
+
*/
|
|
50
|
+
onValues?: (values: Record<string, FormDataEntryValue>, event: React.FormEvent<HTMLFormElement>) => BulkValidationResult | void | Promise<BulkValidationResult | void>;
|
|
51
|
+
};
|
|
52
|
+
declare function Form({ children, className, intent, size, layout, title, description, footer, onValues, onSubmit, ...props }: FormProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
type FormValidation = {
|
|
54
|
+
/** Validation display status. Controls icon colour. */
|
|
55
|
+
status: FormValidationStatus;
|
|
56
|
+
/** Message text shown below the control. */
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
type FormItemProps = {
|
|
60
|
+
/** Label text or element. Pass a string for automatic htmlFor wiring. */
|
|
61
|
+
label?: React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Override the inherited layout from Form.
|
|
64
|
+
* Useful when a specific item needs to differ from the rest.
|
|
65
|
+
*/
|
|
66
|
+
layout?: FormLayout;
|
|
67
|
+
/** Whether the field is required (adds a red asterisk after the label). */
|
|
68
|
+
required?: boolean;
|
|
69
|
+
/** Additional hint text rendered below the control (below validation if both present). */
|
|
70
|
+
hint?: React.ReactNode;
|
|
71
|
+
/** Externally controlled validation result. Takes precedence over `onValidate`. */
|
|
72
|
+
validation?: FormValidation;
|
|
73
|
+
/**
|
|
74
|
+
* Field name used by the native FormData API when the Form's `onValues`
|
|
75
|
+
* callback is used. Injected into the first child element automatically.
|
|
76
|
+
*/
|
|
77
|
+
name?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Validation callback. Called with the current value on every change.
|
|
80
|
+
* Return `{ result: true, reason: "" }` for success or
|
|
81
|
+
* `{ result: false, reason: "Error message" }` for error.
|
|
82
|
+
*/
|
|
83
|
+
onValidate?: ValidateCallback;
|
|
84
|
+
/** Extra class on the wrapper div. */
|
|
85
|
+
className?: string;
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
};
|
|
88
|
+
declare function FormItem({ label, layout: itemLayout, required, hint, validation, name, onValidate, className, children, }: FormItemProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
/**
|
|
90
|
+
* Optional grouping element inside a Form.
|
|
91
|
+
* Renders a subtle heading + divider, then its children as a nested column.
|
|
92
|
+
*/
|
|
93
|
+
type FormSectionProps = {
|
|
94
|
+
title?: React.ReactNode;
|
|
95
|
+
description?: React.ReactNode;
|
|
96
|
+
className?: string;
|
|
97
|
+
children: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
declare function FormSection({ title, description, className, children }: FormSectionProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
export { type BulkValidationResult, Form, FormItem, type FormItemProps, type FormLayout, type FormProps, FormSection, type FormSectionProps, type FormSize, type FormValidation, type FormValidationStatus, type ValidateCallback, type ValidationResult };
|
package/dist/Form.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { formVariants } from './theme.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type FormLayout = "stacked" | "inline";
|
|
8
|
+
type FormSize = "sm" | "md" | "lg";
|
|
9
|
+
type FormValidationStatus = "error" | "warning" | "success" | "hint";
|
|
10
|
+
/** Return value of a FormItem validation callback. */
|
|
11
|
+
type ValidationResult = {
|
|
12
|
+
result: boolean;
|
|
13
|
+
reason: string;
|
|
14
|
+
};
|
|
15
|
+
/** Callback type for FormItem's `onValidate` prop. */
|
|
16
|
+
type ValidateCallback = (value: unknown) => ValidationResult;
|
|
17
|
+
/**
|
|
18
|
+
* Map of field names → ValidationResult returned from the `onValues` callback.
|
|
19
|
+
* Form will automatically display these errors in the matching named FormItems.
|
|
20
|
+
* Fields with `result: true` show a success message; `result: false` shows an error.
|
|
21
|
+
*/
|
|
22
|
+
type BulkValidationResult = Record<string, ValidationResult>;
|
|
23
|
+
type FormProps = React.FormHTMLAttributes<HTMLFormElement> & VariantProps<typeof formVariants> & {
|
|
24
|
+
/**
|
|
25
|
+
* Label + control layout for all FormItems.
|
|
26
|
+
* - "stacked" — label above control (default; always used on narrow viewports)
|
|
27
|
+
* - "inline" — label left, control right
|
|
28
|
+
* @default "stacked"
|
|
29
|
+
*/
|
|
30
|
+
layout?: FormLayout;
|
|
31
|
+
/** Form heading rendered above all items. */
|
|
32
|
+
title?: React.ReactNode;
|
|
33
|
+
/** Optional descriptive text below the heading. */
|
|
34
|
+
description?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Footer slot — typically holds submit / reset buttons.
|
|
37
|
+
* Rendered below all FormItems, separated by a top border.
|
|
38
|
+
*/
|
|
39
|
+
footer?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Called on form submit with a plain-object snapshot of all named
|
|
42
|
+
* FormItem inputs (via the native FormData API).
|
|
43
|
+
* Call `e.preventDefault()` inside this callback to prevent a page reload.
|
|
44
|
+
*
|
|
45
|
+
* May return (or resolve to) a `BulkValidationResult` to display
|
|
46
|
+
* per-field errors/successes — Form automatically routes each entry
|
|
47
|
+
* to the matching `<FormItem name="…">`.
|
|
48
|
+
* Supports async (return a Promise).
|
|
49
|
+
*/
|
|
50
|
+
onValues?: (values: Record<string, FormDataEntryValue>, event: React.FormEvent<HTMLFormElement>) => BulkValidationResult | void | Promise<BulkValidationResult | void>;
|
|
51
|
+
};
|
|
52
|
+
declare function Form({ children, className, intent, size, layout, title, description, footer, onValues, onSubmit, ...props }: FormProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
type FormValidation = {
|
|
54
|
+
/** Validation display status. Controls icon colour. */
|
|
55
|
+
status: FormValidationStatus;
|
|
56
|
+
/** Message text shown below the control. */
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
type FormItemProps = {
|
|
60
|
+
/** Label text or element. Pass a string for automatic htmlFor wiring. */
|
|
61
|
+
label?: React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Override the inherited layout from Form.
|
|
64
|
+
* Useful when a specific item needs to differ from the rest.
|
|
65
|
+
*/
|
|
66
|
+
layout?: FormLayout;
|
|
67
|
+
/** Whether the field is required (adds a red asterisk after the label). */
|
|
68
|
+
required?: boolean;
|
|
69
|
+
/** Additional hint text rendered below the control (below validation if both present). */
|
|
70
|
+
hint?: React.ReactNode;
|
|
71
|
+
/** Externally controlled validation result. Takes precedence over `onValidate`. */
|
|
72
|
+
validation?: FormValidation;
|
|
73
|
+
/**
|
|
74
|
+
* Field name used by the native FormData API when the Form's `onValues`
|
|
75
|
+
* callback is used. Injected into the first child element automatically.
|
|
76
|
+
*/
|
|
77
|
+
name?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Validation callback. Called with the current value on every change.
|
|
80
|
+
* Return `{ result: true, reason: "" }` for success or
|
|
81
|
+
* `{ result: false, reason: "Error message" }` for error.
|
|
82
|
+
*/
|
|
83
|
+
onValidate?: ValidateCallback;
|
|
84
|
+
/** Extra class on the wrapper div. */
|
|
85
|
+
className?: string;
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
};
|
|
88
|
+
declare function FormItem({ label, layout: itemLayout, required, hint, validation, name, onValidate, className, children, }: FormItemProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
/**
|
|
90
|
+
* Optional grouping element inside a Form.
|
|
91
|
+
* Renders a subtle heading + divider, then its children as a nested column.
|
|
92
|
+
*/
|
|
93
|
+
type FormSectionProps = {
|
|
94
|
+
title?: React.ReactNode;
|
|
95
|
+
description?: React.ReactNode;
|
|
96
|
+
className?: string;
|
|
97
|
+
children: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
declare function FormSection({ title, description, className, children }: FormSectionProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
export { type BulkValidationResult, Form, FormItem, type FormItemProps, type FormLayout, type FormProps, FormSection, type FormSectionProps, type FormSize, type FormValidation, type FormValidationStatus, type ValidateCallback, type ValidationResult };
|
package/dist/Form.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as Form,b as FormItem,c as FormSection}from'./chunks/chunk-AK5IK7ZD.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkDWYAPPDB_cjs=require('./chunks/chunk-DWYAPPDB.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Header",{enumerable:true,get:function(){return chunkDWYAPPDB_cjs.a}});
|
package/dist/Header.d.cts
CHANGED
|
@@ -47,7 +47,13 @@ interface HeaderProps {
|
|
|
47
47
|
className?: string;
|
|
48
48
|
/** Content rendered between nav items and actions (e.g. search bar). */
|
|
49
49
|
children?: React.ReactNode;
|
|
50
|
+
/** Show a hamburger menu button on small screens (< md) that reveals nav items. @default false */
|
|
51
|
+
mobileMenu?: boolean;
|
|
52
|
+
/** Custom icon for the mobile nav toggle (left side). @default <PanelLeft> */
|
|
53
|
+
navMenuIcon?: React.ReactNode;
|
|
54
|
+
/** Custom icon for the mobile actions toggle (right side). @default <MoreHorizontal> */
|
|
55
|
+
actionsMenuIcon?: React.ReactNode;
|
|
50
56
|
}
|
|
51
|
-
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, mobileMenu, navMenuIcon, actionsMenuIcon, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
52
58
|
|
|
53
59
|
export { Header, type HeaderAction, type HeaderNavItem, type HeaderProps };
|
package/dist/Header.d.ts
CHANGED
|
@@ -47,7 +47,13 @@ interface HeaderProps {
|
|
|
47
47
|
className?: string;
|
|
48
48
|
/** Content rendered between nav items and actions (e.g. search bar). */
|
|
49
49
|
children?: React.ReactNode;
|
|
50
|
+
/** Show a hamburger menu button on small screens (< md) that reveals nav items. @default false */
|
|
51
|
+
mobileMenu?: boolean;
|
|
52
|
+
/** Custom icon for the mobile nav toggle (left side). @default <PanelLeft> */
|
|
53
|
+
navMenuIcon?: React.ReactNode;
|
|
54
|
+
/** Custom icon for the mobile actions toggle (right side). @default <MoreHorizontal> */
|
|
55
|
+
actionsMenuIcon?: React.ReactNode;
|
|
50
56
|
}
|
|
51
|
-
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, mobileMenu, navMenuIcon, actionsMenuIcon, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
52
58
|
|
|
53
59
|
export { Header, type HeaderAction, type HeaderNavItem, type HeaderProps };
|
package/dist/Header.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Header}from'./chunks/chunk-
|
|
1
|
+
export{a as Header}from'./chunks/chunk-VUWT3NFR.js';import'./chunks/chunk-AXBJKPZZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkFGUFBTKI_cjs=require('./chunks/chunk-FGUFBTKI.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Indicator",{enumerable:true,get:function(){return chunkFGUFBTKI_cjs.a}});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { indicatorVariants } from './theme.cjs';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
interface IndicatorProps extends VariantProps<typeof indicatorVariants> {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/** Show or hide the indicator. @default true */
|
|
10
|
+
show?: boolean;
|
|
11
|
+
/** Content to display. Numbers > 99 are shown as "99+". Ignored when dot=true. */
|
|
12
|
+
content?: React.ReactNode;
|
|
13
|
+
/** Show a pulsing ring animation (best for dot-only mode). @default false */
|
|
14
|
+
pulse?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function Indicator({ children, show, content, dot, intent, size, placement, pulse, className, }: IndicatorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Indicator, type IndicatorProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { indicatorVariants } from './theme.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
interface IndicatorProps extends VariantProps<typeof indicatorVariants> {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/** Show or hide the indicator. @default true */
|
|
10
|
+
show?: boolean;
|
|
11
|
+
/** Content to display. Numbers > 99 are shown as "99+". Ignored when dot=true. */
|
|
12
|
+
content?: React.ReactNode;
|
|
13
|
+
/** Show a pulsing ring animation (best for dot-only mode). @default false */
|
|
14
|
+
pulse?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function Indicator({ children, show, content, dot, intent, size, placement, pulse, className, }: IndicatorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Indicator, type IndicatorProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as Indicator}from'./chunks/chunk-E5UKEXJE.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6BI4QL37_cjs=require('./chunks/chunk-6BI4QL37.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunk6BI4QL37_cjs.a}});
|
package/dist/Input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Input}from'./chunks/chunk-
|
|
1
|
+
export{a as Input}from'./chunks/chunk-QLFCH4TD.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Label.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFDTREGBQ_cjs=require('./chunks/chunk-FDTREGBQ.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkFDTREGBQ_cjs.a}});
|
package/dist/Label.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Label}from'./chunks/chunk-
|
|
1
|
+
export{a as Label}from'./chunks/chunk-ZY7GZOBS.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/List.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk7XPIY2SQ_cjs=require('./chunks/chunk-7XPIY2SQ.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunk7XPIY2SQ_cjs.a}});Object.defineProperty(exports,"ListItem",{enumerable:true,get:function(){return chunk7XPIY2SQ_cjs.b}});
|