@skybin-tech/nebula-ui 0.0.14 → 0.0.15
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/dist/cjs/components/Avatar/Avatar.cjs +15 -0
- package/dist/cjs/components/Avatar/Avatar.cjs.map +1 -0
- package/dist/cjs/components/Badge/Badge.cjs +11 -0
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -0
- package/dist/cjs/components/Button/Button.cjs +1 -0
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Card/Card.cjs +24 -0
- package/dist/cjs/components/Card/Card.cjs.map +1 -0
- package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs +56 -0
- package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -0
- package/dist/cjs/components/Separator/Separator.cjs +9 -0
- package/dist/cjs/components/Separator/Separator.cjs.map +1 -0
- package/dist/cjs/index.cjs +33 -32
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.js +15 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Badge/Badge.js +12 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Button/Button.js +3 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.js +24 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +56 -0
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/Separator/Separator.js +9 -0
- package/dist/components/Separator/Separator.js.map +1 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const avatar = require("../../primitives/avatar.cjs");
|
|
6
|
+
const Avatar = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(avatar.Avatar, { ref, ...props }));
|
|
7
|
+
Avatar.displayName = "Avatar";
|
|
8
|
+
const AvatarImage = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { ref, ...props }));
|
|
9
|
+
AvatarImage.displayName = "AvatarImage";
|
|
10
|
+
const AvatarFallback = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarFallback, { ref, ...props }));
|
|
11
|
+
AvatarFallback.displayName = "AvatarFallback";
|
|
12
|
+
exports.Avatar = Avatar;
|
|
13
|
+
exports.AvatarFallback = AvatarFallback;
|
|
14
|
+
exports.AvatarImage = AvatarImage;
|
|
15
|
+
//# sourceMappingURL=Avatar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.cjs","sources":["../../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Avatar as AvatarPrimitive,\n AvatarImage as AvatarImagePrimitive,\n AvatarFallback as AvatarFallbackPrimitive,\n} from \"../../primitives/avatar\"\n\nexport const Avatar = forwardRef<\n ElementRef<typeof AvatarPrimitive>,\n ComponentPropsWithoutRef<typeof AvatarPrimitive>\n>((props, ref) => <AvatarPrimitive ref={ref} {...props} />)\nAvatar.displayName = \"Avatar\"\n\nexport const AvatarImage = forwardRef<\n ElementRef<typeof AvatarImagePrimitive>,\n ComponentPropsWithoutRef<typeof AvatarImagePrimitive>\n>((props, ref) => <AvatarImagePrimitive ref={ref} {...props} />)\nAvatarImage.displayName = \"AvatarImage\"\n\nexport const AvatarFallback = forwardRef<\n ElementRef<typeof AvatarFallbackPrimitive>,\n ComponentPropsWithoutRef<typeof AvatarFallbackPrimitive>\n>((props, ref) => <AvatarFallbackPrimitive ref={ref} {...props} />)\nAvatarFallback.displayName = \"AvatarFallback\"\n"],"names":["forwardRef","AvatarPrimitive","AvatarImagePrimitive","AvatarFallbackPrimitive"],"mappings":";;;;;AAQO,MAAM,SAASA,MAAAA,WAGpB,CAAC,OAAO,uCAASC,OAAAA,QAAA,EAAgB,KAAW,GAAG,OAAO,CAAE;AAC1D,OAAO,cAAc;AAEd,MAAM,cAAcD,MAAAA,WAGzB,CAAC,OAAO,uCAASE,OAAAA,aAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,iBAAiBF,MAAAA,WAG5B,CAAC,OAAO,uCAASG,OAAAA,gBAAA,EAAwB,KAAW,GAAG,OAAO,CAAE;AAClE,eAAe,cAAc;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const badge = require("../../primitives/badge.cjs");
|
|
5
|
+
function Badge(props) {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(badge.Badge, { ...props });
|
|
7
|
+
}
|
|
8
|
+
Badge.displayName = "Badge";
|
|
9
|
+
exports.badgeVariants = badge.badgeVariants;
|
|
10
|
+
exports.Badge = Badge;
|
|
11
|
+
//# sourceMappingURL=Badge.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.cjs","sources":["../../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants } from \"../../primitives/badge\"\nimport type { BadgeProps as BadgePrimitiveProps } from \"../../primitives/badge\"\n\nexport type BadgeProps = BadgePrimitiveProps\n\nexport function Badge(props: BadgeProps) {\n return <BadgePrimitive {...props} />\n}\nBadge.displayName = \"Badge\"\n\nexport { badgeVariants }\n"],"names":["jsx","BadgePrimitive"],"mappings":";;;;AAKO,SAAS,MAAM,OAAmB;AACvC,SAAOA,+BAACC,MAAAA,OAAA,EAAgB,GAAG,MAAA,CAAO;AACpC;AACA,MAAM,cAAc;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants } from \"../../primitives/button\";\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["forwardRef","Button","jsx","ButtonPrimitive","cn","jsxs","Fragment"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants } from \"../../primitives/button\"\n\nexport { buttonVariants };\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["forwardRef","Button","jsx","ButtonPrimitive","cn","jsxs","Fragment"],"mappings":";;;;;;;AAUA,MAAM,aAA+C;AAAA,EACnD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,MAAM,UAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAgBO,MAAM,SAASA,MAAAA,WAA2C,SAASC,QACxE;AAAA,EACE;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACEC,2BAAAA;AAAAA,IAACC,OAAAA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA,SAAS,WAAW,OAAO;AAAA,MAC3B,MAAM,QAAQ,IAAI;AAAA,MAClB;AAAA,MACA,UAAU,YAAY;AAAA,MACtB,WAAWC,GAAAA,GAAG,aAAa,UAAU,2BAA2B,SAAS;AAAA,MACzE;AAAA,MACC,GAAG;AAAA,MAEH,UAAA,UACC,WAEAC,2BAAAA,KAAAC,WAAAA,UAAA,EACG,UAAA;AAAA,QAAA,WACCJ,2BAAAA,IAAC,UAAK,WAAU,qDACd,yCAAC,QAAA,EAAK,WAAU,iFAAgF,EAAA,CAClG;AAAA,uCAED,QAAA,EAAK,WAAWE,GAAAA,GAAG,WAAW,WAAW,GAAI,SAAA,CAAS;AAAA,MAAA,EAAA,CACzD;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;AAED,OAAO,cAAc;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const card = require("../../primitives/card.cjs");
|
|
6
|
+
const Card = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.Card, { ref, ...props }));
|
|
7
|
+
Card.displayName = "Card";
|
|
8
|
+
const CardHeader = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.CardHeader, { ref, ...props }));
|
|
9
|
+
CardHeader.displayName = "CardHeader";
|
|
10
|
+
const CardTitle = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.CardTitle, { ref, ...props }));
|
|
11
|
+
CardTitle.displayName = "CardTitle";
|
|
12
|
+
const CardDescription = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.CardDescription, { ref, ...props }));
|
|
13
|
+
CardDescription.displayName = "CardDescription";
|
|
14
|
+
const CardContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.CardContent, { ref, ...props }));
|
|
15
|
+
CardContent.displayName = "CardContent";
|
|
16
|
+
const CardFooter = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(card.CardFooter, { ref, ...props }));
|
|
17
|
+
CardFooter.displayName = "CardFooter";
|
|
18
|
+
exports.Card = Card;
|
|
19
|
+
exports.CardContent = CardContent;
|
|
20
|
+
exports.CardDescription = CardDescription;
|
|
21
|
+
exports.CardFooter = CardFooter;
|
|
22
|
+
exports.CardHeader = CardHeader;
|
|
23
|
+
exports.CardTitle = CardTitle;
|
|
24
|
+
//# sourceMappingURL=Card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.cjs","sources":["../../../../src/components/Card/Card.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Card as CardPrimitive,\n CardHeader as CardHeaderPrimitive,\n CardTitle as CardTitlePrimitive,\n CardDescription as CardDescriptionPrimitive,\n CardContent as CardContentPrimitive,\n CardFooter as CardFooterPrimitive,\n} from \"../../primitives/card\"\n\nexport const Card = forwardRef<\n ElementRef<typeof CardPrimitive>,\n ComponentPropsWithoutRef<typeof CardPrimitive>\n>((props, ref) => <CardPrimitive ref={ref} {...props} />)\nCard.displayName = \"Card\"\n\nexport const CardHeader = forwardRef<\n ElementRef<typeof CardHeaderPrimitive>,\n ComponentPropsWithoutRef<typeof CardHeaderPrimitive>\n>((props, ref) => <CardHeaderPrimitive ref={ref} {...props} />)\nCardHeader.displayName = \"CardHeader\"\n\nexport const CardTitle = forwardRef<\n ElementRef<typeof CardTitlePrimitive>,\n ComponentPropsWithoutRef<typeof CardTitlePrimitive>\n>((props, ref) => <CardTitlePrimitive ref={ref} {...props} />)\nCardTitle.displayName = \"CardTitle\"\n\nexport const CardDescription = forwardRef<\n ElementRef<typeof CardDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof CardDescriptionPrimitive>\n>((props, ref) => <CardDescriptionPrimitive ref={ref} {...props} />)\nCardDescription.displayName = \"CardDescription\"\n\nexport const CardContent = forwardRef<\n ElementRef<typeof CardContentPrimitive>,\n ComponentPropsWithoutRef<typeof CardContentPrimitive>\n>((props, ref) => <CardContentPrimitive ref={ref} {...props} />)\nCardContent.displayName = \"CardContent\"\n\nexport const CardFooter = forwardRef<\n ElementRef<typeof CardFooterPrimitive>,\n ComponentPropsWithoutRef<typeof CardFooterPrimitive>\n>((props, ref) => <CardFooterPrimitive ref={ref} {...props} />)\nCardFooter.displayName = \"CardFooter\"\n"],"names":["forwardRef","CardPrimitive","CardHeaderPrimitive","CardTitlePrimitive","CardDescriptionPrimitive","CardContentPrimitive","CardFooterPrimitive"],"mappings":";;;;;AAWO,MAAM,OAAOA,MAAAA,WAGlB,CAAC,OAAO,uCAASC,KAAAA,MAAA,EAAc,KAAW,GAAG,OAAO,CAAE;AACxD,KAAK,cAAc;AAEZ,MAAM,aAAaD,MAAAA,WAGxB,CAAC,OAAO,uCAASE,KAAAA,YAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;AAElB,MAAM,YAAYF,MAAAA,WAGvB,CAAC,OAAO,uCAASG,KAAAA,WAAA,EAAmB,KAAW,GAAG,OAAO,CAAE;AAC7D,UAAU,cAAc;AAEjB,MAAM,kBAAkBH,MAAAA,WAG7B,CAAC,OAAO,uCAASI,KAAAA,iBAAA,EAAyB,KAAW,GAAG,OAAO,CAAE;AACnE,gBAAgB,cAAc;AAEvB,MAAM,cAAcJ,MAAAA,WAGzB,CAAC,OAAO,uCAASK,KAAAA,aAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,aAAaL,MAAAA,WAGxB,CAAC,OAAO,uCAASM,KAAAA,YAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;;;;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const dropdownMenu = require("../../primitives/dropdown-menu.cjs");
|
|
6
|
+
function DropdownMenu(props) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenu, { ...props });
|
|
8
|
+
}
|
|
9
|
+
function DropdownMenuPortal(props) {
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuPortal, { ...props });
|
|
11
|
+
}
|
|
12
|
+
function DropdownMenuSub(props) {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuSub, { ...props });
|
|
14
|
+
}
|
|
15
|
+
const DropdownMenuTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuTrigger, { ref, ...props }));
|
|
16
|
+
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
17
|
+
const DropdownMenuGroup = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuGroup, { ref, ...props }));
|
|
18
|
+
DropdownMenuGroup.displayName = "DropdownMenuGroup";
|
|
19
|
+
const DropdownMenuRadioGroup = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuRadioGroup, { ref, ...props }));
|
|
20
|
+
DropdownMenuRadioGroup.displayName = "DropdownMenuRadioGroup";
|
|
21
|
+
const DropdownMenuContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuContent, { ref, ...props }));
|
|
22
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
23
|
+
const DropdownMenuSubContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuSubContent, { ref, ...props }));
|
|
24
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
25
|
+
const DropdownMenuSubTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuSubTrigger, { ref, ...props }));
|
|
26
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
27
|
+
const DropdownMenuItem = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuItem, { ref, ...props }));
|
|
28
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
29
|
+
const DropdownMenuCheckboxItem = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuCheckboxItem, { ref, ...props }));
|
|
30
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
31
|
+
const DropdownMenuRadioItem = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuRadioItem, { ref, ...props }));
|
|
32
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
33
|
+
const DropdownMenuLabel = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuLabel, { ref, ...props }));
|
|
34
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
35
|
+
const DropdownMenuSeparator = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuSeparator, { ref, ...props }));
|
|
36
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
37
|
+
function DropdownMenuShortcut(props) {
|
|
38
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuShortcut, { ...props });
|
|
39
|
+
}
|
|
40
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
41
|
+
exports.DropdownMenu = DropdownMenu;
|
|
42
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
43
|
+
exports.DropdownMenuContent = DropdownMenuContent;
|
|
44
|
+
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
45
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
|
46
|
+
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
47
|
+
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
48
|
+
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
49
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
50
|
+
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
51
|
+
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
52
|
+
exports.DropdownMenuSub = DropdownMenuSub;
|
|
53
|
+
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
54
|
+
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
55
|
+
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
56
|
+
//# sourceMappingURL=DropdownMenu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.cjs","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\"\nimport {\n DropdownMenu as DropdownMenuPrimitive,\n DropdownMenuTrigger as DropdownMenuTriggerPrimitive,\n DropdownMenuContent as DropdownMenuContentPrimitive,\n DropdownMenuItem as DropdownMenuItemPrimitive,\n DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive,\n DropdownMenuRadioItem as DropdownMenuRadioItemPrimitive,\n DropdownMenuLabel as DropdownMenuLabelPrimitive,\n DropdownMenuSeparator as DropdownMenuSeparatorPrimitive,\n DropdownMenuShortcut as DropdownMenuShortcutPrimitive,\n DropdownMenuGroup as DropdownMenuGroupPrimitive,\n DropdownMenuPortal as DropdownMenuPortalPrimitive,\n DropdownMenuSub as DropdownMenuSubPrimitive,\n DropdownMenuSubContent as DropdownMenuSubContentPrimitive,\n DropdownMenuSubTrigger as DropdownMenuSubTriggerPrimitive,\n DropdownMenuRadioGroup as DropdownMenuRadioGroupPrimitive,\n} from \"../../primitives/dropdown-menu\"\n\n// Root / context-only components (no DOM element to ref)\nexport function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>) {\n return <DropdownMenuPrimitive {...props} />\n}\n\nexport function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>) {\n return <DropdownMenuPortalPrimitive {...props} />\n}\n\nexport function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>) {\n return <DropdownMenuSubPrimitive {...props} />\n}\n\n// DOM-rendering components (forwardRef)\nexport const DropdownMenuTrigger = forwardRef<\n ElementRef<typeof DropdownMenuTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuTriggerPrimitive>\n>((props, ref) => <DropdownMenuTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\"\n\nexport const DropdownMenuGroup = forwardRef<\n ElementRef<typeof DropdownMenuGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuGroupPrimitive>\n>((props, ref) => <DropdownMenuGroupPrimitive ref={ref} {...props} />)\nDropdownMenuGroup.displayName = \"DropdownMenuGroup\"\n\nexport const DropdownMenuRadioGroup = forwardRef<\n ElementRef<typeof DropdownMenuRadioGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioGroupPrimitive>\n>((props, ref) => <DropdownMenuRadioGroupPrimitive ref={ref} {...props} />)\nDropdownMenuRadioGroup.displayName = \"DropdownMenuRadioGroup\"\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuContentPrimitive>\n>((props, ref) => <DropdownMenuContentPrimitive ref={ref} {...props} />)\nDropdownMenuContent.displayName = \"DropdownMenuContent\"\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuSubContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubContentPrimitive>\n>((props, ref) => <DropdownMenuSubContentPrimitive ref={ref} {...props} />)\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\"\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuSubTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubTriggerPrimitive>\n>((props, ref) => <DropdownMenuSubTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\"\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuItemPrimitive>\n>((props, ref) => <DropdownMenuItemPrimitive ref={ref} {...props} />)\nDropdownMenuItem.displayName = \"DropdownMenuItem\"\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuCheckboxItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuCheckboxItemPrimitive>\n>((props, ref) => <DropdownMenuCheckboxItemPrimitive ref={ref} {...props} />)\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\"\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuRadioItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioItemPrimitive>\n>((props, ref) => <DropdownMenuRadioItemPrimitive ref={ref} {...props} />)\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\"\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuLabelPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuLabelPrimitive>\n>((props, ref) => <DropdownMenuLabelPrimitive ref={ref} {...props} />)\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\"\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuSeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSeparatorPrimitive>\n>((props, ref) => <DropdownMenuSeparatorPrimitive ref={ref} {...props} />)\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\"\n\n// Utility span — no ref needed\nexport function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>) {\n return <DropdownMenuShortcutPrimitive {...props} />\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n"],"names":["jsx","DropdownMenuPrimitive","DropdownMenuPortalPrimitive","DropdownMenuSubPrimitive","forwardRef","DropdownMenuTriggerPrimitive","DropdownMenuGroupPrimitive","DropdownMenuRadioGroupPrimitive","DropdownMenuContentPrimitive","DropdownMenuSubContentPrimitive","DropdownMenuSubTriggerPrimitive","DropdownMenuItemPrimitive","DropdownMenuCheckboxItemPrimitive","DropdownMenuRadioItemPrimitive","DropdownMenuLabelPrimitive","DropdownMenuSeparatorPrimitive","DropdownMenuShortcutPrimitive"],"mappings":";;;;;AAqBO,SAAS,aAAa,OAA+D;AAC1F,SAAOA,+BAACC,aAAAA,cAAA,EAAuB,GAAG,MAAA,CAAO;AAC3C;AAEO,SAAS,mBAAmB,OAAqE;AACtG,SAAOD,+BAACE,aAAAA,oBAAA,EAA6B,GAAG,MAAA,CAAO;AACjD;AAEO,SAAS,gBAAgB,OAAkE;AAChG,SAAOF,+BAACG,aAAAA,iBAAA,EAA0B,GAAG,MAAA,CAAO;AAC9C;AAGO,MAAM,sBAAsBC,MAAAA,WAGjC,CAAC,OAAO,uCAASC,aAAAA,qBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,oBAAoBD,MAAAA,WAG/B,CAAC,OAAO,uCAASE,aAAAA,mBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,yBAAyBF,MAAAA,WAGpC,CAAC,OAAO,uCAASG,aAAAA,wBAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,sBAAsBH,MAAAA,WAGjC,CAAC,OAAO,uCAASI,aAAAA,qBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,yBAAyBJ,MAAAA,WAGpC,CAAC,OAAO,uCAASK,aAAAA,wBAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,yBAAyBL,MAAAA,WAGpC,CAAC,OAAO,uCAASM,aAAAA,wBAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,mBAAmBN,MAAAA,WAG9B,CAAC,OAAO,uCAASO,aAAAA,kBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;AAExB,MAAM,2BAA2BP,MAAAA,WAGtC,CAAC,OAAO,uCAASQ,aAAAA,0BAAA,EAAkC,KAAW,GAAG,OAAO,CAAE;AAC5E,yBAAyB,cAAc;AAEhC,MAAM,wBAAwBR,MAAAA,WAGnC,CAAC,OAAO,uCAASS,aAAAA,uBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAE7B,MAAM,oBAAoBT,MAAAA,WAG/B,CAAC,OAAO,uCAASU,aAAAA,mBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,wBAAwBV,MAAAA,WAGnC,CAAC,OAAO,uCAASW,aAAAA,uBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAG7B,SAAS,qBAAqB,OAAwC;AAC3E,SAAOf,+BAACgB,aAAAA,sBAAA,EAA+B,GAAG,MAAA,CAAO;AACnD;AACA,qBAAqB,cAAc;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const separator = require("../../primitives/separator.cjs");
|
|
6
|
+
const Separator = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(separator.Separator, { ref, ...props }));
|
|
7
|
+
Separator.displayName = "Separator";
|
|
8
|
+
exports.Separator = Separator;
|
|
9
|
+
//# sourceMappingURL=Separator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.cjs","sources":["../../../../src/components/Separator/Separator.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Separator as SeparatorPrimitive } from \"../../primitives/separator\"\n\nexport const Separator = forwardRef<\n ElementRef<typeof SeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof SeparatorPrimitive>\n>((props, ref) => <SeparatorPrimitive ref={ref} {...props} />)\nSeparator.displayName = \"Separator\"\n"],"names":["forwardRef","SeparatorPrimitive"],"mappings":";;;;;AAIO,MAAM,YAAYA,MAAAA,WAGvB,CAAC,OAAO,uCAASC,UAAAA,WAAA,EAAmB,KAAW,GAAG,OAAO,CAAE;AAC7D,UAAU,cAAc;;"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,53 +3,53 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const useToggle = require("./hooks/useToggle.cjs");
|
|
4
4
|
const useDebounce = require("./hooks/useDebounce.cjs");
|
|
5
5
|
const cn = require("./utils/cn.cjs");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const Avatar = require("./components/Avatar/Avatar.cjs");
|
|
7
|
+
const Badge = require("./components/Badge/Badge.cjs");
|
|
8
8
|
const Button = require("./components/Button/Button.cjs");
|
|
9
|
-
const
|
|
9
|
+
const Card = require("./components/Card/Card.cjs");
|
|
10
10
|
const Checkbox = require("./components/Form/Checkbox.cjs");
|
|
11
|
-
const
|
|
11
|
+
const DropdownMenu = require("./components/DropdownMenu/DropdownMenu.cjs");
|
|
12
12
|
const Form = require("./components/Form/Form.cjs");
|
|
13
13
|
const context = require("./components/Form/context.cjs");
|
|
14
14
|
const Radio = require("./components/Form/Radio.cjs");
|
|
15
15
|
const Select = require("./components/Form/Select.cjs");
|
|
16
|
-
const
|
|
16
|
+
const Separator = require("./components/Separator/Separator.cjs");
|
|
17
17
|
const Switch = require("./components/Form/Switch.cjs");
|
|
18
18
|
const TextArea = require("./components/Form/TextArea.cjs");
|
|
19
19
|
const TextBox = require("./components/Form/TextBox.cjs");
|
|
20
|
+
const badge = require("./primitives/badge.cjs");
|
|
20
21
|
const button = require("./primitives/button.cjs");
|
|
21
22
|
const hooks = require("./components/Form/hooks.cjs");
|
|
22
23
|
exports.useToggle = useToggle.useToggle;
|
|
23
24
|
exports.useDebounce = useDebounce.useDebounce;
|
|
24
25
|
exports.cn = cn.cn;
|
|
25
|
-
exports.Avatar =
|
|
26
|
-
exports.AvatarFallback =
|
|
27
|
-
exports.AvatarImage =
|
|
28
|
-
exports.Badge =
|
|
29
|
-
exports.badgeVariants = badge.badgeVariants;
|
|
26
|
+
exports.Avatar = Avatar.Avatar;
|
|
27
|
+
exports.AvatarFallback = Avatar.AvatarFallback;
|
|
28
|
+
exports.AvatarImage = Avatar.AvatarImage;
|
|
29
|
+
exports.Badge = Badge.Badge;
|
|
30
30
|
exports.Button = Button.Button;
|
|
31
|
-
exports.Card =
|
|
32
|
-
exports.CardContent =
|
|
33
|
-
exports.CardDescription =
|
|
34
|
-
exports.CardFooter =
|
|
35
|
-
exports.CardHeader =
|
|
36
|
-
exports.CardTitle =
|
|
31
|
+
exports.Card = Card.Card;
|
|
32
|
+
exports.CardContent = Card.CardContent;
|
|
33
|
+
exports.CardDescription = Card.CardDescription;
|
|
34
|
+
exports.CardFooter = Card.CardFooter;
|
|
35
|
+
exports.CardHeader = Card.CardHeader;
|
|
36
|
+
exports.CardTitle = Card.CardTitle;
|
|
37
37
|
exports.Checkbox = Checkbox.Checkbox;
|
|
38
|
-
exports.DropdownMenu =
|
|
39
|
-
exports.DropdownMenuCheckboxItem =
|
|
40
|
-
exports.DropdownMenuContent =
|
|
41
|
-
exports.DropdownMenuGroup =
|
|
42
|
-
exports.DropdownMenuItem =
|
|
43
|
-
exports.DropdownMenuLabel =
|
|
44
|
-
exports.DropdownMenuPortal =
|
|
45
|
-
exports.DropdownMenuRadioGroup =
|
|
46
|
-
exports.DropdownMenuRadioItem =
|
|
47
|
-
exports.DropdownMenuSeparator =
|
|
48
|
-
exports.DropdownMenuShortcut =
|
|
49
|
-
exports.DropdownMenuSub =
|
|
50
|
-
exports.DropdownMenuSubContent =
|
|
51
|
-
exports.DropdownMenuSubTrigger =
|
|
52
|
-
exports.DropdownMenuTrigger =
|
|
38
|
+
exports.DropdownMenu = DropdownMenu.DropdownMenu;
|
|
39
|
+
exports.DropdownMenuCheckboxItem = DropdownMenu.DropdownMenuCheckboxItem;
|
|
40
|
+
exports.DropdownMenuContent = DropdownMenu.DropdownMenuContent;
|
|
41
|
+
exports.DropdownMenuGroup = DropdownMenu.DropdownMenuGroup;
|
|
42
|
+
exports.DropdownMenuItem = DropdownMenu.DropdownMenuItem;
|
|
43
|
+
exports.DropdownMenuLabel = DropdownMenu.DropdownMenuLabel;
|
|
44
|
+
exports.DropdownMenuPortal = DropdownMenu.DropdownMenuPortal;
|
|
45
|
+
exports.DropdownMenuRadioGroup = DropdownMenu.DropdownMenuRadioGroup;
|
|
46
|
+
exports.DropdownMenuRadioItem = DropdownMenu.DropdownMenuRadioItem;
|
|
47
|
+
exports.DropdownMenuSeparator = DropdownMenu.DropdownMenuSeparator;
|
|
48
|
+
exports.DropdownMenuShortcut = DropdownMenu.DropdownMenuShortcut;
|
|
49
|
+
exports.DropdownMenuSub = DropdownMenu.DropdownMenuSub;
|
|
50
|
+
exports.DropdownMenuSubContent = DropdownMenu.DropdownMenuSubContent;
|
|
51
|
+
exports.DropdownMenuSubTrigger = DropdownMenu.DropdownMenuSubTrigger;
|
|
52
|
+
exports.DropdownMenuTrigger = DropdownMenu.DropdownMenuTrigger;
|
|
53
53
|
exports.Form = Form.Form;
|
|
54
54
|
exports.FormConfigContext = context.FormConfigContext;
|
|
55
55
|
exports.buildZodSchemaFromRules = context.buildZodSchemaFromRules;
|
|
@@ -58,10 +58,11 @@ exports.useFieldValidationRegistry = context.useFieldValidationRegistry;
|
|
|
58
58
|
exports.RadioGroup = Radio.RadioGroup;
|
|
59
59
|
exports.RadioItem = Radio.RadioItem;
|
|
60
60
|
exports.Select = Select.Select;
|
|
61
|
-
exports.Separator =
|
|
61
|
+
exports.Separator = Separator.Separator;
|
|
62
62
|
exports.Switch = Switch.Switch;
|
|
63
63
|
exports.TextArea = TextArea.TextArea;
|
|
64
64
|
exports.TextBox = TextBox.TextBox;
|
|
65
|
+
exports.badgeVariants = badge.badgeVariants;
|
|
65
66
|
exports.buttonVariants = button.buttonVariants;
|
|
66
67
|
exports.useFieldError = hooks.useFieldError;
|
|
67
68
|
exports.useForm = hooks.useForm;
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Avatar as Avatar$1, AvatarFallback as AvatarFallback$1, AvatarImage as AvatarImage$1 } from "../../primitives/avatar.js";
|
|
4
|
+
const Avatar = forwardRef((props, ref) => /* @__PURE__ */ jsx(Avatar$1, { ref, ...props }));
|
|
5
|
+
Avatar.displayName = "Avatar";
|
|
6
|
+
const AvatarImage = forwardRef((props, ref) => /* @__PURE__ */ jsx(AvatarImage$1, { ref, ...props }));
|
|
7
|
+
AvatarImage.displayName = "AvatarImage";
|
|
8
|
+
const AvatarFallback = forwardRef((props, ref) => /* @__PURE__ */ jsx(AvatarFallback$1, { ref, ...props }));
|
|
9
|
+
AvatarFallback.displayName = "AvatarFallback";
|
|
10
|
+
export {
|
|
11
|
+
Avatar,
|
|
12
|
+
AvatarFallback,
|
|
13
|
+
AvatarImage
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Avatar as AvatarPrimitive,\n AvatarImage as AvatarImagePrimitive,\n AvatarFallback as AvatarFallbackPrimitive,\n} from \"../../primitives/avatar\"\n\nexport const Avatar = forwardRef<\n ElementRef<typeof AvatarPrimitive>,\n ComponentPropsWithoutRef<typeof AvatarPrimitive>\n>((props, ref) => <AvatarPrimitive ref={ref} {...props} />)\nAvatar.displayName = \"Avatar\"\n\nexport const AvatarImage = forwardRef<\n ElementRef<typeof AvatarImagePrimitive>,\n ComponentPropsWithoutRef<typeof AvatarImagePrimitive>\n>((props, ref) => <AvatarImagePrimitive ref={ref} {...props} />)\nAvatarImage.displayName = \"AvatarImage\"\n\nexport const AvatarFallback = forwardRef<\n ElementRef<typeof AvatarFallbackPrimitive>,\n ComponentPropsWithoutRef<typeof AvatarFallbackPrimitive>\n>((props, ref) => <AvatarFallbackPrimitive ref={ref} {...props} />)\nAvatarFallback.displayName = \"AvatarFallback\"\n"],"names":["AvatarPrimitive","AvatarImagePrimitive","AvatarFallbackPrimitive"],"mappings":";;;AAQO,MAAM,SAAS,WAGpB,CAAC,OAAO,4BAASA,UAAA,EAAgB,KAAW,GAAG,OAAO,CAAE;AAC1D,OAAO,cAAc;AAEd,MAAM,cAAc,WAGzB,CAAC,OAAO,4BAASC,eAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,iBAAiB,WAG5B,CAAC,OAAO,4BAASC,kBAAA,EAAwB,KAAW,GAAG,OAAO,CAAE;AAClE,eAAe,cAAc;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as Badge$1 } from "../../primitives/badge.js";
|
|
3
|
+
import { badgeVariants } from "../../primitives/badge.js";
|
|
4
|
+
function Badge(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx(Badge$1, { ...props });
|
|
6
|
+
}
|
|
7
|
+
Badge.displayName = "Badge";
|
|
8
|
+
export {
|
|
9
|
+
Badge,
|
|
10
|
+
badgeVariants
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants } from \"../../primitives/badge\"\nimport type { BadgeProps as BadgePrimitiveProps } from \"../../primitives/badge\"\n\nexport type BadgeProps = BadgePrimitiveProps\n\nexport function Badge(props: BadgeProps) {\n return <BadgePrimitive {...props} />\n}\nBadge.displayName = \"Badge\"\n\nexport { badgeVariants }\n"],"names":["BadgePrimitive"],"mappings":";;;AAKO,SAAS,MAAM,OAAmB;AACvC,SAAO,oBAACA,SAAA,EAAgB,GAAG,MAAA,CAAO;AACpC;AACA,MAAM,cAAc;"}
|
|
@@ -3,6 +3,7 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import "class-variance-authority";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
5
|
import { ButtonPrimitive } from "../../primitives/button.js";
|
|
6
|
+
import { buttonVariants } from "../../primitives/button.js";
|
|
6
7
|
const variantMap = {
|
|
7
8
|
primary: "default",
|
|
8
9
|
secondary: "secondary",
|
|
@@ -47,6 +48,7 @@ const Button = forwardRef(function Button2({
|
|
|
47
48
|
});
|
|
48
49
|
Button.displayName = "Button";
|
|
49
50
|
export {
|
|
50
|
-
Button
|
|
51
|
+
Button,
|
|
52
|
+
buttonVariants
|
|
51
53
|
};
|
|
52
54
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants } from \"../../primitives/button\";\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["Button"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../utils/cn\";\nimport { ButtonPrimitive, buttonVariants } from \"../../primitives/button\"\n\nexport { buttonVariants };\n\ntype PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>[\"variant\"]>;\ntype PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst variantMap: Record<string, PrimitiveVariant> = {\n primary: \"default\",\n secondary: \"secondary\",\n outline: \"outline\",\n ghost: \"ghost\",\n danger: \"destructive\",\n};\n\nconst sizeMap: Record<string, PrimitiveSize> = {\n sm: \"sm\",\n md: \"default\",\n lg: \"lg\",\n};\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style variant */\n variant?: keyof typeof variantMap;\n /** Size of the button */\n size?: keyof typeof sizeMap;\n /** Stretch button to full container width */\n fullWidth?: boolean;\n /** Show a loading spinner and disable interaction */\n loading?: boolean;\n /** Render as child element via Slot (e.g. wrap a Link) */\n asChild?: boolean;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n disabled,\n className,\n asChild = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <ButtonPrimitive\n ref={ref}\n variant={variantMap[variant]}\n size={sizeMap[size]}\n asChild={asChild}\n disabled={disabled || loading}\n className={cn(fullWidth && \"w-full\", \"relative cursor-pointer\", className)}\n style={style}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {loading && (\n <span className=\"absolute inset-0 flex items-center justify-center\">\n <span className=\"size-4 border-2 border-current border-r-transparent rounded-full animate-spin\" />\n </span>\n )}\n <span className={cn(loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["Button"],"mappings":";;;;;;AAUA,MAAM,aAA+C;AAAA,EACnD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,MAAM,UAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAgBO,MAAM,SAAS,WAA2C,SAASA,QACxE;AAAA,EACE;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,SAAS,WAAW,OAAO;AAAA,MAC3B,MAAM,QAAQ,IAAI;AAAA,MAClB;AAAA,MACA,UAAU,YAAY;AAAA,MACtB,WAAW,GAAG,aAAa,UAAU,2BAA2B,SAAS;AAAA,MACzE;AAAA,MACC,GAAG;AAAA,MAEH,UAAA,UACC,WAEA,qBAAA,UAAA,EACG,UAAA;AAAA,QAAA,WACC,oBAAC,UAAK,WAAU,qDACd,8BAAC,QAAA,EAAK,WAAU,iFAAgF,EAAA,CAClG;AAAA,4BAED,QAAA,EAAK,WAAW,GAAG,WAAW,WAAW,GAAI,SAAA,CAAS;AAAA,MAAA,EAAA,CACzD;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;AAED,OAAO,cAAc;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Card as Card$1, CardContent as CardContent$1, CardDescription as CardDescription$1, CardFooter as CardFooter$1, CardHeader as CardHeader$1, CardTitle as CardTitle$1 } from "../../primitives/card.js";
|
|
4
|
+
const Card = forwardRef((props, ref) => /* @__PURE__ */ jsx(Card$1, { ref, ...props }));
|
|
5
|
+
Card.displayName = "Card";
|
|
6
|
+
const CardHeader = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardHeader$1, { ref, ...props }));
|
|
7
|
+
CardHeader.displayName = "CardHeader";
|
|
8
|
+
const CardTitle = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardTitle$1, { ref, ...props }));
|
|
9
|
+
CardTitle.displayName = "CardTitle";
|
|
10
|
+
const CardDescription = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardDescription$1, { ref, ...props }));
|
|
11
|
+
CardDescription.displayName = "CardDescription";
|
|
12
|
+
const CardContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardContent$1, { ref, ...props }));
|
|
13
|
+
CardContent.displayName = "CardContent";
|
|
14
|
+
const CardFooter = forwardRef((props, ref) => /* @__PURE__ */ jsx(CardFooter$1, { ref, ...props }));
|
|
15
|
+
CardFooter.displayName = "CardFooter";
|
|
16
|
+
export {
|
|
17
|
+
Card,
|
|
18
|
+
CardContent,
|
|
19
|
+
CardDescription,
|
|
20
|
+
CardFooter,
|
|
21
|
+
CardHeader,
|
|
22
|
+
CardTitle
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Card as CardPrimitive,\n CardHeader as CardHeaderPrimitive,\n CardTitle as CardTitlePrimitive,\n CardDescription as CardDescriptionPrimitive,\n CardContent as CardContentPrimitive,\n CardFooter as CardFooterPrimitive,\n} from \"../../primitives/card\"\n\nexport const Card = forwardRef<\n ElementRef<typeof CardPrimitive>,\n ComponentPropsWithoutRef<typeof CardPrimitive>\n>((props, ref) => <CardPrimitive ref={ref} {...props} />)\nCard.displayName = \"Card\"\n\nexport const CardHeader = forwardRef<\n ElementRef<typeof CardHeaderPrimitive>,\n ComponentPropsWithoutRef<typeof CardHeaderPrimitive>\n>((props, ref) => <CardHeaderPrimitive ref={ref} {...props} />)\nCardHeader.displayName = \"CardHeader\"\n\nexport const CardTitle = forwardRef<\n ElementRef<typeof CardTitlePrimitive>,\n ComponentPropsWithoutRef<typeof CardTitlePrimitive>\n>((props, ref) => <CardTitlePrimitive ref={ref} {...props} />)\nCardTitle.displayName = \"CardTitle\"\n\nexport const CardDescription = forwardRef<\n ElementRef<typeof CardDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof CardDescriptionPrimitive>\n>((props, ref) => <CardDescriptionPrimitive ref={ref} {...props} />)\nCardDescription.displayName = \"CardDescription\"\n\nexport const CardContent = forwardRef<\n ElementRef<typeof CardContentPrimitive>,\n ComponentPropsWithoutRef<typeof CardContentPrimitive>\n>((props, ref) => <CardContentPrimitive ref={ref} {...props} />)\nCardContent.displayName = \"CardContent\"\n\nexport const CardFooter = forwardRef<\n ElementRef<typeof CardFooterPrimitive>,\n ComponentPropsWithoutRef<typeof CardFooterPrimitive>\n>((props, ref) => <CardFooterPrimitive ref={ref} {...props} />)\nCardFooter.displayName = \"CardFooter\"\n"],"names":["CardPrimitive","CardHeaderPrimitive","CardTitlePrimitive","CardDescriptionPrimitive","CardContentPrimitive","CardFooterPrimitive"],"mappings":";;;AAWO,MAAM,OAAO,WAGlB,CAAC,OAAO,4BAASA,QAAA,EAAc,KAAW,GAAG,OAAO,CAAE;AACxD,KAAK,cAAc;AAEZ,MAAM,aAAa,WAGxB,CAAC,OAAO,4BAASC,cAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;AAElB,MAAM,YAAY,WAGvB,CAAC,OAAO,4BAASC,aAAA,EAAmB,KAAW,GAAG,OAAO,CAAE;AAC7D,UAAU,cAAc;AAEjB,MAAM,kBAAkB,WAG7B,CAAC,OAAO,4BAASC,mBAAA,EAAyB,KAAW,GAAG,OAAO,CAAE;AACnE,gBAAgB,cAAc;AAEvB,MAAM,cAAc,WAGzB,CAAC,OAAO,4BAASC,eAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,aAAa,WAGxB,CAAC,OAAO,4BAASC,cAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { DropdownMenu as DropdownMenu$1, DropdownMenuCheckboxItem as DropdownMenuCheckboxItem$1, DropdownMenuContent as DropdownMenuContent$1, DropdownMenuGroup as DropdownMenuGroup$1, DropdownMenuItem as DropdownMenuItem$1, DropdownMenuLabel as DropdownMenuLabel$1, DropdownMenuPortal as DropdownMenuPortal$1, DropdownMenuRadioGroup as DropdownMenuRadioGroup$1, DropdownMenuRadioItem as DropdownMenuRadioItem$1, DropdownMenuSeparator as DropdownMenuSeparator$1, DropdownMenuShortcut as DropdownMenuShortcut$1, DropdownMenuSub as DropdownMenuSub$1, DropdownMenuSubContent as DropdownMenuSubContent$1, DropdownMenuSubTrigger as DropdownMenuSubTrigger$1, DropdownMenuTrigger as DropdownMenuTrigger$1 } from "../../primitives/dropdown-menu.js";
|
|
4
|
+
function DropdownMenu(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1, { ...props });
|
|
6
|
+
}
|
|
7
|
+
function DropdownMenuPortal(props) {
|
|
8
|
+
return /* @__PURE__ */ jsx(DropdownMenuPortal$1, { ...props });
|
|
9
|
+
}
|
|
10
|
+
function DropdownMenuSub(props) {
|
|
11
|
+
return /* @__PURE__ */ jsx(DropdownMenuSub$1, { ...props });
|
|
12
|
+
}
|
|
13
|
+
const DropdownMenuTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuTrigger$1, { ref, ...props }));
|
|
14
|
+
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
15
|
+
const DropdownMenuGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuGroup$1, { ref, ...props }));
|
|
16
|
+
DropdownMenuGroup.displayName = "DropdownMenuGroup";
|
|
17
|
+
const DropdownMenuRadioGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioGroup$1, { ref, ...props }));
|
|
18
|
+
DropdownMenuRadioGroup.displayName = "DropdownMenuRadioGroup";
|
|
19
|
+
const DropdownMenuContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuContent$1, { ref, ...props }));
|
|
20
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
21
|
+
const DropdownMenuSubContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubContent$1, { ref, ...props }));
|
|
22
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
23
|
+
const DropdownMenuSubTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSubTrigger$1, { ref, ...props }));
|
|
24
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
25
|
+
const DropdownMenuItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuItem$1, { ref, ...props }));
|
|
26
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
27
|
+
const DropdownMenuCheckboxItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuCheckboxItem$1, { ref, ...props }));
|
|
28
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
29
|
+
const DropdownMenuRadioItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuRadioItem$1, { ref, ...props }));
|
|
30
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
31
|
+
const DropdownMenuLabel = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuLabel$1, { ref, ...props }));
|
|
32
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
33
|
+
const DropdownMenuSeparator = forwardRef((props, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator$1, { ref, ...props }));
|
|
34
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
35
|
+
function DropdownMenuShortcut(props) {
|
|
36
|
+
return /* @__PURE__ */ jsx(DropdownMenuShortcut$1, { ...props });
|
|
37
|
+
}
|
|
38
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
39
|
+
export {
|
|
40
|
+
DropdownMenu,
|
|
41
|
+
DropdownMenuCheckboxItem,
|
|
42
|
+
DropdownMenuContent,
|
|
43
|
+
DropdownMenuGroup,
|
|
44
|
+
DropdownMenuItem,
|
|
45
|
+
DropdownMenuLabel,
|
|
46
|
+
DropdownMenuPortal,
|
|
47
|
+
DropdownMenuRadioGroup,
|
|
48
|
+
DropdownMenuRadioItem,
|
|
49
|
+
DropdownMenuSeparator,
|
|
50
|
+
DropdownMenuShortcut,
|
|
51
|
+
DropdownMenuSub,
|
|
52
|
+
DropdownMenuSubContent,
|
|
53
|
+
DropdownMenuSubTrigger,
|
|
54
|
+
DropdownMenuTrigger
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=DropdownMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\"\nimport {\n DropdownMenu as DropdownMenuPrimitive,\n DropdownMenuTrigger as DropdownMenuTriggerPrimitive,\n DropdownMenuContent as DropdownMenuContentPrimitive,\n DropdownMenuItem as DropdownMenuItemPrimitive,\n DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive,\n DropdownMenuRadioItem as DropdownMenuRadioItemPrimitive,\n DropdownMenuLabel as DropdownMenuLabelPrimitive,\n DropdownMenuSeparator as DropdownMenuSeparatorPrimitive,\n DropdownMenuShortcut as DropdownMenuShortcutPrimitive,\n DropdownMenuGroup as DropdownMenuGroupPrimitive,\n DropdownMenuPortal as DropdownMenuPortalPrimitive,\n DropdownMenuSub as DropdownMenuSubPrimitive,\n DropdownMenuSubContent as DropdownMenuSubContentPrimitive,\n DropdownMenuSubTrigger as DropdownMenuSubTriggerPrimitive,\n DropdownMenuRadioGroup as DropdownMenuRadioGroupPrimitive,\n} from \"../../primitives/dropdown-menu\"\n\n// Root / context-only components (no DOM element to ref)\nexport function DropdownMenu(props: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive>) {\n return <DropdownMenuPrimitive {...props} />\n}\n\nexport function DropdownMenuPortal(props: ComponentPropsWithoutRef<typeof DropdownMenuPortalPrimitive>) {\n return <DropdownMenuPortalPrimitive {...props} />\n}\n\nexport function DropdownMenuSub(props: ComponentPropsWithoutRef<typeof DropdownMenuSubPrimitive>) {\n return <DropdownMenuSubPrimitive {...props} />\n}\n\n// DOM-rendering components (forwardRef)\nexport const DropdownMenuTrigger = forwardRef<\n ElementRef<typeof DropdownMenuTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuTriggerPrimitive>\n>((props, ref) => <DropdownMenuTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\"\n\nexport const DropdownMenuGroup = forwardRef<\n ElementRef<typeof DropdownMenuGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuGroupPrimitive>\n>((props, ref) => <DropdownMenuGroupPrimitive ref={ref} {...props} />)\nDropdownMenuGroup.displayName = \"DropdownMenuGroup\"\n\nexport const DropdownMenuRadioGroup = forwardRef<\n ElementRef<typeof DropdownMenuRadioGroupPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioGroupPrimitive>\n>((props, ref) => <DropdownMenuRadioGroupPrimitive ref={ref} {...props} />)\nDropdownMenuRadioGroup.displayName = \"DropdownMenuRadioGroup\"\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuContentPrimitive>\n>((props, ref) => <DropdownMenuContentPrimitive ref={ref} {...props} />)\nDropdownMenuContent.displayName = \"DropdownMenuContent\"\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuSubContentPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubContentPrimitive>\n>((props, ref) => <DropdownMenuSubContentPrimitive ref={ref} {...props} />)\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\"\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuSubTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSubTriggerPrimitive>\n>((props, ref) => <DropdownMenuSubTriggerPrimitive ref={ref} {...props} />)\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\"\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuItemPrimitive>\n>((props, ref) => <DropdownMenuItemPrimitive ref={ref} {...props} />)\nDropdownMenuItem.displayName = \"DropdownMenuItem\"\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuCheckboxItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuCheckboxItemPrimitive>\n>((props, ref) => <DropdownMenuCheckboxItemPrimitive ref={ref} {...props} />)\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\"\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuRadioItemPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuRadioItemPrimitive>\n>((props, ref) => <DropdownMenuRadioItemPrimitive ref={ref} {...props} />)\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\"\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuLabelPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuLabelPrimitive>\n>((props, ref) => <DropdownMenuLabelPrimitive ref={ref} {...props} />)\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\"\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuSeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof DropdownMenuSeparatorPrimitive>\n>((props, ref) => <DropdownMenuSeparatorPrimitive ref={ref} {...props} />)\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\"\n\n// Utility span — no ref needed\nexport function DropdownMenuShortcut(props: HTMLAttributes<HTMLSpanElement>) {\n return <DropdownMenuShortcutPrimitive {...props} />\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n"],"names":["DropdownMenuPrimitive","DropdownMenuPortalPrimitive","DropdownMenuSubPrimitive","DropdownMenuTriggerPrimitive","DropdownMenuGroupPrimitive","DropdownMenuRadioGroupPrimitive","DropdownMenuContentPrimitive","DropdownMenuSubContentPrimitive","DropdownMenuSubTriggerPrimitive","DropdownMenuItemPrimitive","DropdownMenuCheckboxItemPrimitive","DropdownMenuRadioItemPrimitive","DropdownMenuLabelPrimitive","DropdownMenuSeparatorPrimitive","DropdownMenuShortcutPrimitive"],"mappings":";;;AAqBO,SAAS,aAAa,OAA+D;AAC1F,SAAO,oBAACA,gBAAA,EAAuB,GAAG,MAAA,CAAO;AAC3C;AAEO,SAAS,mBAAmB,OAAqE;AACtG,SAAO,oBAACC,sBAAA,EAA6B,GAAG,MAAA,CAAO;AACjD;AAEO,SAAS,gBAAgB,OAAkE;AAChG,SAAO,oBAACC,mBAAA,EAA0B,GAAG,MAAA,CAAO;AAC9C;AAGO,MAAM,sBAAsB,WAGjC,CAAC,OAAO,4BAASC,uBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,oBAAoB,WAG/B,CAAC,OAAO,4BAASC,qBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,sBAAsB,WAGjC,CAAC,OAAO,4BAASC,uBAAA,EAA6B,KAAW,GAAG,OAAO,CAAE;AACvE,oBAAoB,cAAc;AAE3B,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,yBAAyB,WAGpC,CAAC,OAAO,4BAASC,0BAAA,EAAgC,KAAW,GAAG,OAAO,CAAE;AAC1E,uBAAuB,cAAc;AAE9B,MAAM,mBAAmB,WAG9B,CAAC,OAAO,4BAASC,oBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;AAExB,MAAM,2BAA2B,WAGtC,CAAC,OAAO,4BAASC,4BAAA,EAAkC,KAAW,GAAG,OAAO,CAAE;AAC5E,yBAAyB,cAAc;AAEhC,MAAM,wBAAwB,WAGnC,CAAC,OAAO,4BAASC,yBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAE7B,MAAM,oBAAoB,WAG/B,CAAC,OAAO,4BAASC,qBAAA,EAA2B,KAAW,GAAG,OAAO,CAAE;AACrE,kBAAkB,cAAc;AAEzB,MAAM,wBAAwB,WAGnC,CAAC,OAAO,4BAASC,yBAAA,EAA+B,KAAW,GAAG,OAAO,CAAE;AACzE,sBAAsB,cAAc;AAG7B,SAAS,qBAAqB,OAAwC;AAC3E,SAAO,oBAACC,wBAAA,EAA+B,GAAG,MAAA,CAAO;AACnD;AACA,qBAAqB,cAAc;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Separator as Separator$1 } from "../../primitives/separator.js";
|
|
4
|
+
const Separator = forwardRef((props, ref) => /* @__PURE__ */ jsx(Separator$1, { ref, ...props }));
|
|
5
|
+
Separator.displayName = "Separator";
|
|
6
|
+
export {
|
|
7
|
+
Separator
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.js","sources":["../../../src/components/Separator/Separator.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Separator as SeparatorPrimitive } from \"../../primitives/separator\"\n\nexport const Separator = forwardRef<\n ElementRef<typeof SeparatorPrimitive>,\n ComponentPropsWithoutRef<typeof SeparatorPrimitive>\n>((props, ref) => <SeparatorPrimitive ref={ref} {...props} />)\nSeparator.displayName = \"Separator\"\n"],"names":["SeparatorPrimitive"],"mappings":";;;AAIO,MAAM,YAAY,WAGvB,CAAC,OAAO,4BAASA,aAAA,EAAmB,KAAW,GAAG,OAAO,CAAE;AAC7D,UAAU,cAAc;"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { useToggle } from "./hooks/useToggle.js";
|
|
2
2
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
3
3
|
import { cn } from "./utils/cn.js";
|
|
4
|
-
import { Avatar, AvatarFallback, AvatarImage } from "./
|
|
5
|
-
import { Badge
|
|
4
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./components/Avatar/Avatar.js";
|
|
5
|
+
import { Badge } from "./components/Badge/Badge.js";
|
|
6
6
|
import { Button } from "./components/Button/Button.js";
|
|
7
|
-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./
|
|
7
|
+
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/Card/Card.js";
|
|
8
8
|
import { Checkbox } from "./components/Form/Checkbox.js";
|
|
9
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./
|
|
9
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/DropdownMenu/DropdownMenu.js";
|
|
10
10
|
import { Form } from "./components/Form/Form.js";
|
|
11
11
|
import { FormConfigContext, buildZodSchemaFromRules, defaultFormConfig, useFieldValidationRegistry } from "./components/Form/context.js";
|
|
12
12
|
import { RadioGroup, RadioItem } from "./components/Form/Radio.js";
|
|
13
13
|
import { Select } from "./components/Form/Select.js";
|
|
14
|
-
import { Separator } from "./
|
|
14
|
+
import { Separator } from "./components/Separator/Separator.js";
|
|
15
15
|
import { Switch } from "./components/Form/Switch.js";
|
|
16
16
|
import { TextArea } from "./components/Form/TextArea.js";
|
|
17
17
|
import { TextBox } from "./components/Form/TextBox.js";
|
|
18
|
+
import { badgeVariants } from "./primitives/badge.js";
|
|
18
19
|
import { buttonVariants } from "./primitives/button.js";
|
|
19
20
|
import { useFieldError, useForm, useFormConfig, useFormField } from "./components/Form/hooks.js";
|
|
20
21
|
export {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED