@skybin-tech/nebula-ui 0.0.15 → 0.0.18
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/Alert/Alert.cjs +15 -0
- package/dist/cjs/components/Alert/Alert.cjs.map +1 -0
- package/dist/cjs/components/Badge/Badge.cjs +2 -1
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.cjs +3 -2
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Input/Input.cjs +9 -0
- package/dist/cjs/components/Input/Input.cjs.map +1 -0
- package/dist/cjs/components/Label/Label.cjs +9 -0
- package/dist/cjs/components/Label/Label.cjs.map +1 -0
- package/dist/cjs/components/Tabs/Tabs.cjs +18 -0
- package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -0
- package/dist/cjs/components/Textarea/Textarea.cjs +9 -0
- package/dist/cjs/components/Textarea/Textarea.cjs.map +1 -0
- package/dist/cjs/index.cjs +17 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/primitives/alert.cjs +69 -0
- package/dist/cjs/primitives/alert.cjs.map +1 -0
- package/dist/cjs/primitives/input.cjs +41 -0
- package/dist/cjs/primitives/input.cjs.map +1 -0
- package/dist/cjs/primitives/tabs.cjs +66 -0
- package/dist/cjs/primitives/tabs.cjs.map +1 -0
- package/dist/components/Alert/Alert.d.ts +6 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.js +15 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +10 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +26 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Form/Checkbox.d.ts +32 -0
- package/dist/components/Form/Checkbox.d.ts.map +1 -0
- package/dist/components/Form/Form.d.ts +62 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Form/Radio.d.ts +80 -0
- package/dist/components/Form/Radio.d.ts.map +1 -0
- package/dist/components/Form/Select.d.ts +75 -0
- package/dist/components/Form/Select.d.ts.map +1 -0
- package/dist/components/Form/Switch.d.ts +34 -0
- package/dist/components/Form/Switch.d.ts.map +1 -0
- package/dist/components/Form/TextArea.d.ts +47 -0
- package/dist/components/Form/TextArea.d.ts.map +1 -0
- package/dist/components/Form/TextBox.d.ts +61 -0
- package/dist/components/Form/TextBox.d.ts.map +1 -0
- package/dist/components/Form/context.d.ts +109 -0
- package/dist/components/Form/context.d.ts.map +1 -0
- package/dist/components/Form/hooks.d.ts +21 -0
- package/dist/components/Form/hooks.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +18 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/variants.d.ts +8 -0
- package/dist/components/Form/variants.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.js +9 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Label/Label.d.ts +5 -0
- package/dist/components/Label/Label.d.ts.map +1 -0
- package/dist/components/Label/Label.js +9 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +2 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +18 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +5 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.js +9 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/hooks/useDebounce.d.ts +8 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useToggle.d.ts +7 -0
- package/dist/hooks/useToggle.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/primitives/alert.d.ts +9 -0
- package/dist/primitives/alert.d.ts.map +1 -0
- package/dist/primitives/alert.js +52 -0
- package/dist/primitives/alert.js.map +1 -0
- package/dist/primitives/avatar.d.ts +7 -0
- package/dist/primitives/avatar.d.ts.map +1 -0
- package/dist/primitives/badge.d.ts +10 -0
- package/dist/primitives/badge.d.ts.map +1 -0
- package/dist/primitives/button.d.ts +12 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/card.d.ts +9 -0
- package/dist/primitives/card.d.ts.map +1 -0
- package/dist/primitives/checkbox.d.ts +5 -0
- package/dist/primitives/checkbox.d.ts.map +1 -0
- package/dist/primitives/dropdown-menu.d.ts +28 -0
- package/dist/primitives/dropdown-menu.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +31 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/input.d.ts +4 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +24 -0
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/label.d.ts +6 -0
- package/dist/primitives/label.d.ts.map +1 -0
- package/dist/primitives/radio-group.d.ts +6 -0
- package/dist/primitives/radio-group.d.ts.map +1 -0
- package/dist/primitives/select.d.ts +14 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/separator.d.ts +5 -0
- package/dist/primitives/separator.d.ts.map +1 -0
- package/dist/primitives/switch.d.ts +5 -0
- package/dist/primitives/switch.d.ts.map +1 -0
- package/dist/primitives/tabs.d.ts +8 -0
- package/dist/primitives/tabs.d.ts.map +1 -0
- package/dist/primitives/tabs.js +48 -0
- package/dist/primitives/tabs.js.map +1 -0
- package/dist/primitives/textarea.d.ts +4 -0
- package/dist/primitives/textarea.d.ts.map +1 -0
- package/dist/primitives/textbox.d.ts +4 -0
- package/dist/primitives/textbox.d.ts.map +1 -0
- package/dist/stories/Button.d.ts +15 -0
- package/dist/stories/Button.d.ts.map +1 -0
- package/dist/stories/Button.stories.d.ts +24 -0
- package/dist/stories/Button.stories.d.ts.map +1 -0
- package/dist/stories/Header.d.ts +12 -0
- package/dist/stories/Header.d.ts.map +1 -0
- package/dist/stories/Header.stories.d.ts +19 -0
- package/dist/stories/Header.stories.d.ts.map +1 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.d.ts.map +1 -0
- package/dist/stories/Page.stories.d.ts +13 -0
- package/dist/stories/Page.stories.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +9 -6
|
@@ -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 alert = require("../../primitives/alert.cjs");
|
|
6
|
+
const Alert = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(alert.Alert, { ref, ...props }));
|
|
7
|
+
Alert.displayName = "Alert";
|
|
8
|
+
const AlertTitle = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(alert.AlertTitle, { ref, ...props }));
|
|
9
|
+
AlertTitle.displayName = "AlertTitle";
|
|
10
|
+
const AlertDescription = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(alert.AlertDescription, { ref, ...props }));
|
|
11
|
+
AlertDescription.displayName = "AlertDescription";
|
|
12
|
+
exports.Alert = Alert;
|
|
13
|
+
exports.AlertDescription = AlertDescription;
|
|
14
|
+
exports.AlertTitle = AlertTitle;
|
|
15
|
+
//# sourceMappingURL=Alert.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.cjs","sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Alert as AlertPrimitive,\n AlertTitle as AlertTitlePrimitive,\n AlertDescription as AlertDescriptionPrimitive,\n} from \"../../primitives/alert\"\n\nexport const Alert = forwardRef<\n ElementRef<typeof AlertPrimitive>,\n ComponentPropsWithoutRef<typeof AlertPrimitive>\n>((props, ref) => <AlertPrimitive ref={ref} {...props} />)\nAlert.displayName = \"Alert\"\n\nexport const AlertTitle = forwardRef<\n ElementRef<typeof AlertTitlePrimitive>,\n ComponentPropsWithoutRef<typeof AlertTitlePrimitive>\n>((props, ref) => <AlertTitlePrimitive ref={ref} {...props} />)\nAlertTitle.displayName = \"AlertTitle\"\n\nexport const AlertDescription = forwardRef<\n ElementRef<typeof AlertDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof AlertDescriptionPrimitive>\n>((props, ref) => <AlertDescriptionPrimitive ref={ref} {...props} />)\nAlertDescription.displayName = \"AlertDescription\"\n"],"names":["forwardRef","AlertPrimitive","AlertTitlePrimitive","AlertDescriptionPrimitive"],"mappings":";;;;;AAQO,MAAM,QAAQA,MAAAA,WAGnB,CAAC,OAAO,uCAASC,MAAAA,OAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,cAAc;AAEb,MAAM,aAAaD,MAAAA,WAGxB,CAAC,OAAO,uCAASE,MAAAA,YAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;AAElB,MAAM,mBAAmBF,MAAAA,WAG9B,CAAC,OAAO,uCAASG,MAAAA,kBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;;;;"}
|
|
@@ -6,6 +6,7 @@ function Badge(props) {
|
|
|
6
6
|
return /* @__PURE__ */ jsxRuntime.jsx(badge.Badge, { ...props });
|
|
7
7
|
}
|
|
8
8
|
Badge.displayName = "Badge";
|
|
9
|
-
|
|
9
|
+
const badgeVariants = badge.badgeVariants;
|
|
10
10
|
exports.Badge = Badge;
|
|
11
|
+
exports.badgeVariants = badgeVariants;
|
|
11
12
|
//# sourceMappingURL=Badge.cjs.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"Badge.cjs","sources":["../../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants as badgeVariantsPrimitive } 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 const badgeVariants = badgeVariantsPrimitive\n"],"names":["jsx","BadgePrimitive","badgeVariantsPrimitive"],"mappings":";;;;AAKO,SAAS,MAAM,OAAmB;AACvC,SAAOA,+BAACC,MAAAA,OAAA,EAAgB,GAAG,MAAA,CAAO;AACpC;AACA,MAAM,cAAc;AAEb,MAAM,gBAAgBC,MAAAA;;;"}
|
|
@@ -5,6 +5,7 @@ const React = require("react");
|
|
|
5
5
|
require("class-variance-authority");
|
|
6
6
|
const cn = require("../../utils/cn.cjs");
|
|
7
7
|
const button = require("../../primitives/button.cjs");
|
|
8
|
+
const buttonVariants = button.buttonVariants;
|
|
8
9
|
const variantMap = {
|
|
9
10
|
primary: "default",
|
|
10
11
|
secondary: "secondary",
|
|
@@ -42,12 +43,12 @@ const Button = React.forwardRef(function Button2({
|
|
|
42
43
|
...props,
|
|
43
44
|
children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
44
45
|
loading && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "size-4 border-2 border-current border-r-transparent rounded-full animate-spin" }) }),
|
|
45
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn.cn(loading && "invisible"), children })
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn.cn("inline-flex items-center gap-2", loading && "invisible"), children })
|
|
46
47
|
] })
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
});
|
|
50
51
|
Button.displayName = "Button";
|
|
51
|
-
exports.buttonVariants = button.buttonVariants;
|
|
52
52
|
exports.Button = Button;
|
|
53
|
+
exports.buttonVariants = buttonVariants;
|
|
53
54
|
//# sourceMappingURL=Button.cjs.map
|
|
@@ -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\nexport
|
|
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 as buttonVariantsPrimitive } from \"../../primitives/button\"\n\nexport const buttonVariants = buttonVariantsPrimitive;\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(\"inline-flex items-center gap-2\", loading && \"invisible\")}>{children}</span>\n </>\n )}\n </ButtonPrimitive>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["buttonVariantsPrimitive","forwardRef","Button","jsx","ButtonPrimitive","cn","jsxs","Fragment"],"mappings":";;;;;;;AAKO,MAAM,iBAAiBA,OAAAA;AAK9B,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,SAASC,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,QAEFA,+BAAC,UAAK,WAAWE,GAAAA,GAAG,kCAAkC,WAAW,WAAW,GAAI,SAAA,CAAS;AAAA,MAAA,EAAA,CAC3F;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;AAED,OAAO,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 input = require("../../primitives/input.cjs");
|
|
6
|
+
const Input = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(input.Input, { ref, ...props }));
|
|
7
|
+
Input.displayName = "Input";
|
|
8
|
+
exports.Input = Input;
|
|
9
|
+
//# sourceMappingURL=Input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.cjs","sources":["../../../../src/components/Input/Input.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Input as InputPrimitive } from \"../../primitives/input\"\n\nexport type InputProps = ComponentPropsWithoutRef<typeof InputPrimitive>\n\nexport const Input = forwardRef<\n ElementRef<typeof InputPrimitive>,\n InputProps\n>((props, ref) => <InputPrimitive ref={ref} {...props} />)\nInput.displayName = \"Input\"\n"],"names":["forwardRef","InputPrimitive"],"mappings":";;;;;AAMO,MAAM,QAAQA,MAAAA,WAGnB,CAAC,OAAO,uCAASC,MAAAA,OAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,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 label = require("../../primitives/label.cjs");
|
|
6
|
+
const Label = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(label.Label, { ref, ...props }));
|
|
7
|
+
Label.displayName = "Label";
|
|
8
|
+
exports.Label = Label;
|
|
9
|
+
//# sourceMappingURL=Label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.cjs","sources":["../../../../src/components/Label/Label.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Label as LabelPrimitive } from \"../../primitives/label\"\n\nexport type LabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive>\n\nexport const Label = forwardRef<\n ElementRef<typeof LabelPrimitive>,\n LabelProps\n>((props, ref) => <LabelPrimitive ref={ref} {...props} />)\nLabel.displayName = \"Label\"\n"],"names":["forwardRef","LabelPrimitive"],"mappings":";;;;;AAMO,MAAM,QAAQA,MAAAA,WAGnB,CAAC,OAAO,uCAASC,MAAAA,OAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,cAAc;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 tabs = require("../../primitives/tabs.cjs");
|
|
6
|
+
const Tabs = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(tabs.Tabs, { ref, ...props }));
|
|
7
|
+
Tabs.displayName = "Tabs";
|
|
8
|
+
const TabsList = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(tabs.TabsList, { ref, ...props }));
|
|
9
|
+
TabsList.displayName = "TabsList";
|
|
10
|
+
const TabsTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(tabs.TabsTrigger, { ref, ...props }));
|
|
11
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
12
|
+
const TabsContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(tabs.TabsContent, { ref, ...props }));
|
|
13
|
+
TabsContent.displayName = "TabsContent";
|
|
14
|
+
exports.Tabs = Tabs;
|
|
15
|
+
exports.TabsContent = TabsContent;
|
|
16
|
+
exports.TabsList = TabsList;
|
|
17
|
+
exports.TabsTrigger = TabsTrigger;
|
|
18
|
+
//# sourceMappingURL=Tabs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.cjs","sources":["../../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Tabs as TabsPrimitive,\n TabsList as TabsListPrimitive,\n TabsTrigger as TabsTriggerPrimitive,\n TabsContent as TabsContentPrimitive,\n} from \"../../primitives/tabs\"\n\nexport const Tabs = forwardRef<\n ElementRef<typeof TabsPrimitive>,\n ComponentPropsWithoutRef<typeof TabsPrimitive>\n>((props, ref) => <TabsPrimitive ref={ref} {...props} />)\nTabs.displayName = \"Tabs\"\n\nexport const TabsList = forwardRef<\n ElementRef<typeof TabsListPrimitive>,\n ComponentPropsWithoutRef<typeof TabsListPrimitive>\n>((props, ref) => <TabsListPrimitive ref={ref} {...props} />)\nTabsList.displayName = \"TabsList\"\n\nexport const TabsTrigger = forwardRef<\n ElementRef<typeof TabsTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof TabsTriggerPrimitive>\n>((props, ref) => <TabsTriggerPrimitive ref={ref} {...props} />)\nTabsTrigger.displayName = \"TabsTrigger\"\n\nexport const TabsContent = forwardRef<\n ElementRef<typeof TabsContentPrimitive>,\n ComponentPropsWithoutRef<typeof TabsContentPrimitive>\n>((props, ref) => <TabsContentPrimitive ref={ref} {...props} />)\nTabsContent.displayName = \"TabsContent\"\n"],"names":["forwardRef","TabsPrimitive","TabsListPrimitive","TabsTriggerPrimitive","TabsContentPrimitive"],"mappings":";;;;;AASO,MAAM,OAAOA,MAAAA,WAGlB,CAAC,OAAO,uCAASC,KAAAA,MAAA,EAAc,KAAW,GAAG,OAAO,CAAE;AACxD,KAAK,cAAc;AAEZ,MAAM,WAAWD,MAAAA,WAGtB,CAAC,OAAO,uCAASE,KAAAA,UAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;AAEhB,MAAM,cAAcF,MAAAA,WAGzB,CAAC,OAAO,uCAASG,KAAAA,aAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,cAAc;AAEnB,MAAM,cAAcH,MAAAA,WAGzB,CAAC,OAAO,uCAASI,KAAAA,aAAA,EAAqB,KAAW,GAAG,OAAO,CAAE;AAC/D,YAAY,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 textarea = require("../../primitives/textarea.cjs");
|
|
6
|
+
const Textarea = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(textarea.Textarea, { ref, ...props }));
|
|
7
|
+
Textarea.displayName = "Textarea";
|
|
8
|
+
exports.Textarea = Textarea;
|
|
9
|
+
//# sourceMappingURL=Textarea.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.cjs","sources":["../../../../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Textarea as TextareaPrimitive } from \"../../primitives/textarea\"\n\nexport type TextareaProps = ComponentPropsWithoutRef<typeof TextareaPrimitive>\n\nexport const Textarea = forwardRef<\n ElementRef<typeof TextareaPrimitive>,\n TextareaProps\n>((props, ref) => <TextareaPrimitive ref={ref} {...props} />)\nTextarea.displayName = \"Textarea\"\n"],"names":["forwardRef","TextareaPrimitive"],"mappings":";;;;;AAMO,MAAM,WAAWA,MAAAA,WAGtB,CAAC,OAAO,uCAASC,SAAAA,UAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;;"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ 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 Alert = require("./components/Alert/Alert.cjs");
|
|
6
7
|
const Avatar = require("./components/Avatar/Avatar.cjs");
|
|
7
8
|
const Badge = require("./components/Badge/Badge.cjs");
|
|
8
9
|
const Button = require("./components/Button/Button.cjs");
|
|
@@ -11,23 +12,30 @@ const Checkbox = require("./components/Form/Checkbox.cjs");
|
|
|
11
12
|
const DropdownMenu = require("./components/DropdownMenu/DropdownMenu.cjs");
|
|
12
13
|
const Form = require("./components/Form/Form.cjs");
|
|
13
14
|
const context = require("./components/Form/context.cjs");
|
|
15
|
+
const Input = require("./components/Input/Input.cjs");
|
|
16
|
+
const Label = require("./components/Label/Label.cjs");
|
|
14
17
|
const Radio = require("./components/Form/Radio.cjs");
|
|
15
18
|
const Select = require("./components/Form/Select.cjs");
|
|
16
19
|
const Separator = require("./components/Separator/Separator.cjs");
|
|
17
20
|
const Switch = require("./components/Form/Switch.cjs");
|
|
21
|
+
const Tabs = require("./components/Tabs/Tabs.cjs");
|
|
18
22
|
const TextArea = require("./components/Form/TextArea.cjs");
|
|
19
23
|
const TextBox = require("./components/Form/TextBox.cjs");
|
|
20
|
-
const
|
|
21
|
-
const button = require("./primitives/button.cjs");
|
|
24
|
+
const Textarea = require("./components/Textarea/Textarea.cjs");
|
|
22
25
|
const hooks = require("./components/Form/hooks.cjs");
|
|
23
26
|
exports.useToggle = useToggle.useToggle;
|
|
24
27
|
exports.useDebounce = useDebounce.useDebounce;
|
|
25
28
|
exports.cn = cn.cn;
|
|
29
|
+
exports.Alert = Alert.Alert;
|
|
30
|
+
exports.AlertDescription = Alert.AlertDescription;
|
|
31
|
+
exports.AlertTitle = Alert.AlertTitle;
|
|
26
32
|
exports.Avatar = Avatar.Avatar;
|
|
27
33
|
exports.AvatarFallback = Avatar.AvatarFallback;
|
|
28
34
|
exports.AvatarImage = Avatar.AvatarImage;
|
|
29
35
|
exports.Badge = Badge.Badge;
|
|
36
|
+
exports.badgeVariants = Badge.badgeVariants;
|
|
30
37
|
exports.Button = Button.Button;
|
|
38
|
+
exports.buttonVariants = Button.buttonVariants;
|
|
31
39
|
exports.Card = Card.Card;
|
|
32
40
|
exports.CardContent = Card.CardContent;
|
|
33
41
|
exports.CardDescription = Card.CardDescription;
|
|
@@ -55,15 +63,20 @@ exports.FormConfigContext = context.FormConfigContext;
|
|
|
55
63
|
exports.buildZodSchemaFromRules = context.buildZodSchemaFromRules;
|
|
56
64
|
exports.defaultFormConfig = context.defaultFormConfig;
|
|
57
65
|
exports.useFieldValidationRegistry = context.useFieldValidationRegistry;
|
|
66
|
+
exports.Input = Input.Input;
|
|
67
|
+
exports.Label = Label.Label;
|
|
58
68
|
exports.RadioGroup = Radio.RadioGroup;
|
|
59
69
|
exports.RadioItem = Radio.RadioItem;
|
|
60
70
|
exports.Select = Select.Select;
|
|
61
71
|
exports.Separator = Separator.Separator;
|
|
62
72
|
exports.Switch = Switch.Switch;
|
|
73
|
+
exports.Tabs = Tabs.Tabs;
|
|
74
|
+
exports.TabsContent = Tabs.TabsContent;
|
|
75
|
+
exports.TabsList = Tabs.TabsList;
|
|
76
|
+
exports.TabsTrigger = Tabs.TabsTrigger;
|
|
63
77
|
exports.TextArea = TextArea.TextArea;
|
|
64
78
|
exports.TextBox = TextBox.TextBox;
|
|
65
|
-
exports.
|
|
66
|
-
exports.buttonVariants = button.buttonVariants;
|
|
79
|
+
exports.Textarea = Textarea.Textarea;
|
|
67
80
|
exports.useFieldError = hooks.useFieldError;
|
|
68
81
|
exports.useForm = hooks.useForm;
|
|
69
82
|
exports.useFormConfig = hooks.useFormConfig;
|
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,69 @@
|
|
|
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 classVarianceAuthority = require("class-variance-authority");
|
|
6
|
+
const cn = require("../utils/cn.cjs");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
+
const alertVariants = classVarianceAuthority.cva(
|
|
25
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
default: "bg-background text-foreground",
|
|
30
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
const Alert = React__namespace.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref,
|
|
42
|
+
role: "alert",
|
|
43
|
+
className: cn.cn(alertVariants({ variant }), className),
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
Alert.displayName = "Alert";
|
|
48
|
+
const AlertTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
+
"h5",
|
|
50
|
+
{
|
|
51
|
+
ref,
|
|
52
|
+
className: cn.cn("mb-1 font-medium leading-none tracking-tight", className),
|
|
53
|
+
...props
|
|
54
|
+
}
|
|
55
|
+
));
|
|
56
|
+
AlertTitle.displayName = "AlertTitle";
|
|
57
|
+
const AlertDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: cn.cn("text-sm [&_p]:leading-relaxed", className),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
AlertDescription.displayName = "AlertDescription";
|
|
66
|
+
exports.Alert = Alert;
|
|
67
|
+
exports.AlertDescription = AlertDescription;
|
|
68
|
+
exports.AlertTitle = AlertTitle;
|
|
69
|
+
//# sourceMappingURL=alert.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.cjs","sources":["../../../src/primitives/alert.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils/index\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n))\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n {...props}\n />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n {...props}\n />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n"],"names":["cva","React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,gBAAgBA,uBAAAA;AAAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,MAAM,QAAQC,iBAAM,WAGlB,CAAC,EAAE,WAAW,SAAS,GAAG,SAAS,QACnCC,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,MAAK;AAAA,IACL,WAAWC,GAAAA,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS;AAAA,IAClD,GAAG;AAAA,EAAA;AACN,CACD;AACD,MAAM,cAAc;AAEpB,MAAM,aAAaF,iBAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAWC,GAAAA,GAAG,gDAAgD,SAAS;AAAA,IACtE,GAAG;AAAA,EAAA;AACN,CACD;AACD,WAAW,cAAc;AAEzB,MAAM,mBAAmBF,iBAAM,WAG7B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAWC,GAAAA,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA,EAAA;AACN,CACD;AACD,iBAAiB,cAAc;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 cn = require("../utils/cn.cjs");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
+
const Input = React__namespace.forwardRef(
|
|
24
|
+
({ className, type, ...props }, ref) => {
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
|
+
"input",
|
|
27
|
+
{
|
|
28
|
+
type,
|
|
29
|
+
className: cn.cn(
|
|
30
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
ref,
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
Input.displayName = "Input";
|
|
40
|
+
exports.Input = Input;
|
|
41
|
+
//# sourceMappingURL=input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.cjs","sources":["../../../src/primitives/input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n"],"names":["React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,QAAQA,iBAAM;AAAA,EAClB,CAAC,EAAE,WAAW,MAAM,GAAG,MAAA,GAAS,QAAQ;AACtC,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,GAAAA;AAAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAEF;AAAA,QACC,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACA,MAAM,cAAc;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 TabsPrimitive = require("@radix-ui/react-tabs");
|
|
6
|
+
const cn = require("../utils/cn.cjs");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
+
const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
|
|
25
|
+
const Tabs = TabsPrimitive__namespace.Root;
|
|
26
|
+
const TabsList = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
TabsPrimitive__namespace.List,
|
|
28
|
+
{
|
|
29
|
+
ref,
|
|
30
|
+
className: cn.cn(
|
|
31
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
32
|
+
className
|
|
33
|
+
),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
38
|
+
const TabsTrigger = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
+
TabsPrimitive__namespace.Trigger,
|
|
40
|
+
{
|
|
41
|
+
ref,
|
|
42
|
+
className: cn.cn(
|
|
43
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
50
|
+
const TabsContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
TabsPrimitive__namespace.Content,
|
|
52
|
+
{
|
|
53
|
+
ref,
|
|
54
|
+
className: cn.cn(
|
|
55
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
));
|
|
61
|
+
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
62
|
+
exports.Tabs = Tabs;
|
|
63
|
+
exports.TabsContent = TabsContent;
|
|
64
|
+
exports.TabsList = TabsList;
|
|
65
|
+
exports.TabsTrigger = TabsTrigger;
|
|
66
|
+
//# sourceMappingURL=tabs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.cjs","sources":["../../../src/primitives/tabs.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"@/utils/index\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground\",\n className\n )}\n {...props}\n />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n className\n )}\n {...props}\n />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n className\n )}\n {...props}\n />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"],"names":["TabsPrimitive","React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,OAAOA,yBAAc;AAE3B,MAAM,WAAWC,iBAAM,WAGrB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAACF,yBAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,CACD;AACD,SAAS,cAAcH,yBAAc,KAAK;AAE1C,MAAM,cAAcC,iBAAM,WAGxB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAACF,yBAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,CACD;AACD,YAAY,cAAcH,yBAAc,QAAQ;AAEhD,MAAM,cAAcC,iBAAM,WAGxB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAACF,yBAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,CACD;AACD,YAAY,cAAcH,yBAAc,QAAQ;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Alert: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement> & import('class-variance-authority').VariantProps<(props?: ({
|
|
2
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const AlertTitle: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLHeadingElement> & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
export declare const AlertDescription: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK;;wLAGwC,CAAA;AAG1D,eAAO,MAAM,UAAU,wNAGwC,CAAA;AAG/D,eAAO,MAAM,gBAAgB,0NAGwC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Alert as Alert$1, AlertDescription as AlertDescription$1, AlertTitle as AlertTitle$1 } from "../../primitives/alert.js";
|
|
4
|
+
const Alert = forwardRef((props, ref) => /* @__PURE__ */ jsx(Alert$1, { ref, ...props }));
|
|
5
|
+
Alert.displayName = "Alert";
|
|
6
|
+
const AlertTitle = forwardRef((props, ref) => /* @__PURE__ */ jsx(AlertTitle$1, { ref, ...props }));
|
|
7
|
+
AlertTitle.displayName = "AlertTitle";
|
|
8
|
+
const AlertDescription = forwardRef((props, ref) => /* @__PURE__ */ jsx(AlertDescription$1, { ref, ...props }));
|
|
9
|
+
AlertDescription.displayName = "AlertDescription";
|
|
10
|
+
export {
|
|
11
|
+
Alert,
|
|
12
|
+
AlertDescription,
|
|
13
|
+
AlertTitle
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Alert as AlertPrimitive,\n AlertTitle as AlertTitlePrimitive,\n AlertDescription as AlertDescriptionPrimitive,\n} from \"../../primitives/alert\"\n\nexport const Alert = forwardRef<\n ElementRef<typeof AlertPrimitive>,\n ComponentPropsWithoutRef<typeof AlertPrimitive>\n>((props, ref) => <AlertPrimitive ref={ref} {...props} />)\nAlert.displayName = \"Alert\"\n\nexport const AlertTitle = forwardRef<\n ElementRef<typeof AlertTitlePrimitive>,\n ComponentPropsWithoutRef<typeof AlertTitlePrimitive>\n>((props, ref) => <AlertTitlePrimitive ref={ref} {...props} />)\nAlertTitle.displayName = \"AlertTitle\"\n\nexport const AlertDescription = forwardRef<\n ElementRef<typeof AlertDescriptionPrimitive>,\n ComponentPropsWithoutRef<typeof AlertDescriptionPrimitive>\n>((props, ref) => <AlertDescriptionPrimitive ref={ref} {...props} />)\nAlertDescription.displayName = \"AlertDescription\"\n"],"names":["AlertPrimitive","AlertTitlePrimitive","AlertDescriptionPrimitive"],"mappings":";;;AAQO,MAAM,QAAQ,WAGnB,CAAC,OAAO,4BAASA,SAAA,EAAe,KAAW,GAAG,OAAO,CAAE;AACzD,MAAM,cAAc;AAEb,MAAM,aAAa,WAGxB,CAAC,OAAO,4BAASC,cAAA,EAAoB,KAAW,GAAG,OAAO,CAAE;AAC9D,WAAW,cAAc;AAElB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,4BAASC,oBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Avatar: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-avatar').AvatarProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
2
|
+
export declare const AvatarImage: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-avatar').AvatarImageProps & import('react').RefAttributes<HTMLImageElement>, "ref"> & import('react').RefAttributes<HTMLImageElement>, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
3
|
+
export declare const AvatarFallback: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-avatar').AvatarFallbackProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,sQAGwC,CAAA;AAG3D,eAAO,MAAM,WAAW,8QAGwC,CAAA;AAGhE,eAAO,MAAM,cAAc,8QAGwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BadgeProps as BadgePrimitiveProps } from '../../primitives/badge';
|
|
2
|
+
export type BadgeProps = BadgePrimitiveProps;
|
|
3
|
+
export declare function Badge(props: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace Badge {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const badgeVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE/E,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAA;AAE5C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAEtC;yBAFe,KAAK;;;AAKrB,eAAO,MAAM,aAAa;;8EAAyB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as Badge$1 } from "../../primitives/badge.js";
|
|
3
|
-
import { badgeVariants } from "../../primitives/badge.js";
|
|
2
|
+
import { badgeVariants as badgeVariants$1, Badge as Badge$1 } from "../../primitives/badge.js";
|
|
4
3
|
function Badge(props) {
|
|
5
4
|
return /* @__PURE__ */ jsx(Badge$1, { ...props });
|
|
6
5
|
}
|
|
7
6
|
Badge.displayName = "Badge";
|
|
7
|
+
const badgeVariants = badgeVariants$1;
|
|
8
8
|
export {
|
|
9
9
|
Badge,
|
|
10
10
|
badgeVariants
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { Badge as BadgePrimitive, badgeVariants as badgeVariantsPrimitive } 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 const badgeVariants = badgeVariantsPrimitive\n"],"names":["BadgePrimitive","badgeVariantsPrimitive"],"mappings":";;AAKO,SAAS,MAAM,OAAmB;AACvC,SAAO,oBAACA,SAAA,EAAgB,GAAG,MAAA,CAAO;AACpC;AACA,MAAM,cAAc;AAEb,MAAM,gBAAgBC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
type PrimitiveVariant = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
|
|
8
|
+
type PrimitiveSize = NonNullable<VariantProps<typeof buttonVariants>["size"]>;
|
|
9
|
+
declare const variantMap: Record<string, PrimitiveVariant>;
|
|
10
|
+
declare const sizeMap: Record<string, PrimitiveSize>;
|
|
11
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
|
+
/** Visual style variant */
|
|
13
|
+
variant?: keyof typeof variantMap;
|
|
14
|
+
/** Size of the button */
|
|
15
|
+
size?: keyof typeof sizeMap;
|
|
16
|
+
/** Stretch button to full container width */
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
/** Show a loading spinner and disable interaction */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/** Render as child element via Slot (e.g. wrap a Link) */
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,eAAO,MAAM,cAAc;;;8EAA0B,CAAC;AAEtD,KAAK,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AACpF,KAAK,aAAa,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE9E,QAAA,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAMhD,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAI1C,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAClC,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC5B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,2GAwCjB,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import "class-variance-authority";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
|
-
import { ButtonPrimitive } from "../../primitives/button.js";
|
|
6
|
-
|
|
5
|
+
import { buttonVariants as buttonVariants$1, ButtonPrimitive } from "../../primitives/button.js";
|
|
6
|
+
const buttonVariants = buttonVariants$1;
|
|
7
7
|
const variantMap = {
|
|
8
8
|
primary: "default",
|
|
9
9
|
secondary: "secondary",
|
|
@@ -41,7 +41,7 @@ const Button = forwardRef(function Button2({
|
|
|
41
41
|
...props,
|
|
42
42
|
children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43
43
|
loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "size-4 border-2 border-current border-r-transparent rounded-full animate-spin" }) }),
|
|
44
|
-
/* @__PURE__ */ jsx("span", { className: cn(loading && "invisible"), children })
|
|
44
|
+
/* @__PURE__ */ jsx("span", { className: cn("inline-flex items-center gap-2", loading && "invisible"), children })
|
|
45
45
|
] })
|
|
46
46
|
}
|
|
47
47
|
);
|