@a2v2ai/uikit 0.0.28 → 0.0.30

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.
Files changed (76) hide show
  1. package/Alert/Alert.d.ts +1 -1
  2. package/Alert/Alert.js +9 -48
  3. package/AlertDialog/AlertDialog.d.ts +3 -3
  4. package/AlertDialog/AlertDialog.js +19 -69
  5. package/Avatar/Avatar.d.ts +1 -1
  6. package/Avatar/Avatar.js +10 -49
  7. package/Badge/Badge.d.ts +1 -1
  8. package/Badge/Badge.js +7 -10
  9. package/Breadcrumb/Breadcrumb.js +14 -56
  10. package/Button/Button.d.ts +1 -1
  11. package/Button/Button.js +9 -46
  12. package/Calendar/Calendar.js +43 -79
  13. package/Card/Card.d.ts +1 -1
  14. package/Card/Card.js +12 -54
  15. package/Carousel/Carousel.d.ts +5 -5
  16. package/Carousel/Carousel.js +20 -67
  17. package/ChatBubble/ChatBubble.d.ts +2 -2
  18. package/ChatBubble/ChatBubble.js +9 -47
  19. package/Checkbox/Checkbox.d.ts +1 -1
  20. package/Checkbox/Checkbox.js +9 -46
  21. package/DataTable/DataTable.d.ts +21 -0
  22. package/DataTable/DataTable.js +20 -0
  23. package/Drawer/Drawer.d.ts +2 -2
  24. package/Drawer/Drawer.js +20 -34
  25. package/DropdownMenu/DropdownMenu.js +15 -65
  26. package/ErrorMessage/ErrorMessage.js +6 -7
  27. package/Flex/Flex.d.ts +1 -1
  28. package/Flex/Flex.js +7 -44
  29. package/IconButton/IconButton.d.ts +1 -1
  30. package/IconButton/IconButton.js +9 -46
  31. package/Input/Input.d.ts +1 -1
  32. package/Input/Input.js +12 -48
  33. package/InputOTP/InputOTP.d.ts +2 -2
  34. package/InputOTP/InputOTP.js +15 -56
  35. package/Label/Label.d.ts +1 -1
  36. package/Label/Label.js +11 -48
  37. package/Loader/Loader.d.ts +1 -1
  38. package/Loader/Loader.js +10 -47
  39. package/Menubar/Menubar.js +22 -71
  40. package/Menubar/index.js +1 -20
  41. package/Popover/Popover.js +6 -45
  42. package/Progress/Progress.d.ts +2 -2
  43. package/Progress/Progress.js +9 -47
  44. package/RadioGroup/RadioGroup.d.ts +1 -1
  45. package/RadioGroup/RadioGroup.js +10 -48
  46. package/ScrollArea/ScrollArea.js +8 -45
  47. package/Select/Select.d.ts +1 -1
  48. package/Select/Select.js +20 -65
  49. package/Separator/Separator.js +6 -42
  50. package/Sidebar/Sidebar.d.ts +2 -2
  51. package/Sidebar/Sidebar.js +22 -67
  52. package/Sidebar/index.js +1 -17
  53. package/Skeleton/Skeleton.js +5 -6
  54. package/Slider/Slider.js +6 -42
  55. package/Spinner/Spinner.d.ts +1 -1
  56. package/Spinner/Spinner.js +7 -44
  57. package/Switch/Switch.d.ts +1 -1
  58. package/Switch/Switch.js +9 -46
  59. package/Table/Table.js +12 -55
  60. package/Tabs/Tabs.d.ts +1 -1
  61. package/Tabs/Tabs.js +10 -50
  62. package/Textarea/Textarea.d.ts +1 -1
  63. package/Textarea/Textarea.js +9 -45
  64. package/Toast/Toast.js +10 -14
  65. package/Tooltip/Tooltip.d.ts +1 -1
  66. package/Tooltip/Tooltip.js +11 -50
  67. package/Typography/Typography.d.ts +1 -1
  68. package/Typography/Typography.js +12 -15
  69. package/helpers.js +4 -12
  70. package/icons.js +1 -17
  71. package/index.d.ts +1 -0
  72. package/index.js +41 -233
  73. package/lib/typography-types.js +2 -5
  74. package/lib/utils.js +5 -9
  75. package/package.json +2 -1
  76. package/tmpclaude-2407-cwd +1 -0
package/Alert/Alert.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  type AlertVariant = "default" | "destructive" | "success" | "warning" | "info";
3
3
  declare const alertVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  variant?: AlertVariant;
8
8
  }
package/Alert/Alert.js CHANGED
@@ -1,44 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.alertVariants = exports.AlertDescription = exports.AlertTitle = exports.Alert = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const class_variance_authority_1 = require("class-variance-authority");
40
- const utils_1 = require("../lib/utils");
41
- const alertVariants = (0, class_variance_authority_1.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current [&>svg~*]:pl-7", {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../lib/utils";
5
+ const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current [&>svg~*]:pl-7", {
42
6
  variants: {
43
7
  variant: {
44
8
  default: "bg-white text-main-950 border-grey-200",
@@ -52,13 +16,10 @@ const alertVariants = (0, class_variance_authority_1.cva)("relative w-full round
52
16
  variant: "default",
53
17
  },
54
18
  });
55
- exports.alertVariants = alertVariants;
56
- const Alert = React.forwardRef(({ className, variant, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, role: "alert", className: (0, utils_1.cn)(alertVariants({ variant }), className), ...props })));
57
- exports.Alert = Alert;
19
+ const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (_jsx("div", { ref: ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props })));
58
20
  Alert.displayName = "Alert";
59
- const AlertTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("h5", { ref: ref, className: (0, utils_1.cn)("mb-1 font-medium leading-none tracking-tight", className), ...props })));
60
- exports.AlertTitle = AlertTitle;
21
+ const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h5", { ref: ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })));
61
22
  AlertTitle.displayName = "AlertTitle";
62
- const AlertDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("text-sm [&_p]:leading-relaxed", className), ...props })));
63
- exports.AlertDescription = AlertDescription;
23
+ const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })));
64
24
  AlertDescription.displayName = "AlertDescription";
25
+ export { Alert, AlertTitle, AlertDescription, alertVariants };
@@ -11,7 +11,7 @@ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDial
11
11
  declare const alertDialogContentVariants: (props?: ({
12
12
  type?: "desktop" | "mobile" | null | undefined;
13
13
  scrollable?: boolean | null | undefined;
14
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
15
  export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
16
16
  type?: AlertDialogContentType;
17
17
  scrollable?: boolean;
@@ -22,14 +22,14 @@ export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<
22
22
  declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const alertDialogHeaderVariants: (props?: ({
24
24
  type?: "header" | "close-only" | "icon-button-close" | null | undefined;
25
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
25
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
26
26
  export interface AlertDialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
27
27
  type?: AlertDialogHeaderType;
28
28
  }
29
29
  declare const AlertDialogHeader: React.ForwardRefExoticComponent<AlertDialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
30
30
  declare const alertDialogFooterVariants: (props?: ({
31
31
  type?: "buttons-right" | "full-width" | "single-full-width" | null | undefined;
32
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
32
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
33
33
  export interface AlertDialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
34
34
  type?: AlertDialogFooterType;
35
35
  }
@@ -1,56 +1,16 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.alertDialogFooterVariants = exports.alertDialogHeaderVariants = exports.alertDialogContentVariants = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogBody = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialogOverlay = exports.AlertDialogPortal = exports.AlertDialog = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const AlertDialogPrimitive = __importStar(require("@radix-ui/react-alert-dialog"));
40
- const lucide_react_1 = require("lucide-react");
41
- const class_variance_authority_1 = require("class-variance-authority");
42
- const Button_1 = require("../Button/Button");
43
- const utils_1 = require("../lib/utils");
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
+ import { X, Loader2 } from "lucide-react";
5
+ import { cva } from "class-variance-authority";
6
+ import { Button } from "../Button/Button";
7
+ import { cn } from "../lib/utils";
44
8
  const AlertDialog = AlertDialogPrimitive.Root;
45
- exports.AlertDialog = AlertDialog;
46
9
  const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
47
- exports.AlertDialogTrigger = AlertDialogTrigger;
48
10
  const AlertDialogPortal = AlertDialogPrimitive.Portal;
49
- exports.AlertDialogPortal = AlertDialogPortal;
50
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Overlay, { ref: ref, className: (0, utils_1.cn)("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
51
- exports.AlertDialogOverlay = AlertDialogOverlay;
11
+ const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
52
12
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
53
- const alertDialogContentVariants = (0, class_variance_authority_1.cva)("fixed z-50 grid gap-4 bg-white border border-grey-200 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", {
13
+ const alertDialogContentVariants = cva("fixed z-50 grid gap-4 bg-white border border-grey-200 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", {
54
14
  variants: {
55
15
  type: {
56
16
  desktop: "left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full max-w-[640px] rounded-lg",
@@ -66,11 +26,9 @@ const alertDialogContentVariants = (0, class_variance_authority_1.cva)("fixed z-
66
26
  scrollable: false,
67
27
  },
68
28
  });
69
- exports.alertDialogContentVariants = alertDialogContentVariants;
70
- const AlertDialogContent = React.forwardRef(({ className, children, type, scrollable, showCloseButton = true, closeButtonVariant = "default", loading = false, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(AlertDialogPortal, { children: [(0, jsx_runtime_1.jsx)(AlertDialogOverlay, {}), (0, jsx_runtime_1.jsxs)(AlertDialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)(alertDialogContentVariants({ type, scrollable, className })), ...props, children: [loading && ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-white/80 rounded-lg", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "size-8 text-main-600 animate-spin" }) })), children, showCloseButton && closeButtonVariant === "default" && !loading && ((0, jsx_runtime_1.jsxs)(AlertDialogPrimitive.Cancel, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[0_0_0_3px_#d4d4d4] disabled:pointer-events-none cursor-pointer", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.X, { className: "size-4 text-grey-600" }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Close" })] })), showCloseButton && closeButtonVariant === "icon-button" && !loading && ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Cancel, { asChild: true, children: (0, jsx_runtime_1.jsxs)(Button_1.Button, { variant: "ghost", size: "small", className: "absolute right-2 top-2 size-9 p-0", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.X, { className: "size-4" }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Close" })] }) }))] })] })));
71
- exports.AlertDialogContent = AlertDialogContent;
29
+ const AlertDialogContent = React.forwardRef(({ className, children, type, scrollable, showCloseButton = true, closeButtonVariant = "default", loading = false, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsxs(AlertDialogPrimitive.Content, { ref: ref, className: cn(alertDialogContentVariants({ type, scrollable, className })), ...props, children: [loading && (_jsx("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-white/80 rounded-lg", children: _jsx(Loader2, { className: "size-8 text-main-600 animate-spin" }) })), children, showCloseButton && closeButtonVariant === "default" && !loading && (_jsxs(AlertDialogPrimitive.Cancel, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[0_0_0_3px_#d4d4d4] disabled:pointer-events-none cursor-pointer", children: [_jsx(X, { className: "size-4 text-grey-600" }), _jsx("span", { className: "sr-only", children: "Close" })] })), showCloseButton && closeButtonVariant === "icon-button" && !loading && (_jsx(AlertDialogPrimitive.Cancel, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "small", className: "absolute right-2 top-2 size-9 p-0", children: [_jsx(X, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] }) }))] })] })));
72
30
  AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
73
- const alertDialogHeaderVariants = (0, class_variance_authority_1.cva)("flex p-4", {
31
+ const alertDialogHeaderVariants = cva("flex p-4", {
74
32
  variants: {
75
33
  type: {
76
34
  header: "flex-row items-center justify-between",
@@ -82,11 +40,9 @@ const alertDialogHeaderVariants = (0, class_variance_authority_1.cva)("flex p-4"
82
40
  type: "header",
83
41
  },
84
42
  });
85
- exports.alertDialogHeaderVariants = alertDialogHeaderVariants;
86
- const AlertDialogHeader = React.forwardRef(({ className, type, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)(alertDialogHeaderVariants({ type, className })), ...props })));
87
- exports.AlertDialogHeader = AlertDialogHeader;
43
+ const AlertDialogHeader = React.forwardRef(({ className, type, ...props }, ref) => (_jsx("div", { ref: ref, className: cn(alertDialogHeaderVariants({ type, className })), ...props })));
88
44
  AlertDialogHeader.displayName = "AlertDialogHeader";
89
- const alertDialogFooterVariants = (0, class_variance_authority_1.cva)("flex gap-2 p-4", {
45
+ const alertDialogFooterVariants = cva("flex gap-2 p-4", {
90
46
  variants: {
91
47
  type: {
92
48
  "buttons-right": "flex-row items-center justify-end",
@@ -98,24 +54,18 @@ const alertDialogFooterVariants = (0, class_variance_authority_1.cva)("flex gap-
98
54
  type: "buttons-right",
99
55
  },
100
56
  });
101
- exports.alertDialogFooterVariants = alertDialogFooterVariants;
102
- const AlertDialogFooter = React.forwardRef(({ className, type, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)(alertDialogFooterVariants({ type, className })), ...props, children: type === "full-width" || type === "single-full-width" ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2 w-full", children: React.Children.map(children, (child) => React.isValidElement(child)
57
+ const AlertDialogFooter = React.forwardRef(({ className, type, children, ...props }, ref) => (_jsx("div", { ref: ref, className: cn(alertDialogFooterVariants({ type, className })), ...props, children: type === "full-width" || type === "single-full-width" ? (_jsx("div", { className: "flex gap-2 w-full", children: React.Children.map(children, (child) => React.isValidElement(child)
103
58
  ? React.cloneElement(child, {
104
- className: (0, utils_1.cn)("flex-1", child.props.className),
59
+ className: cn("flex-1", child.props.className),
105
60
  })
106
61
  : child) })) : (children) })));
107
- exports.AlertDialogFooter = AlertDialogFooter;
108
62
  AlertDialogFooter.displayName = "AlertDialogFooter";
109
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-2xl font-bold leading-[1.2] tracking-tight text-main-950 font-display", className), ...props })));
110
- exports.AlertDialogTitle = AlertDialogTitle;
63
+ const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-2xl font-bold leading-[1.2] tracking-tight text-main-950 font-display", className), ...props })));
111
64
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
112
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Description, { ref: ref, className: (0, utils_1.cn)("text-sm text-grey-600", className), ...props })));
113
- exports.AlertDialogDescription = AlertDialogDescription;
65
+ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-grey-600", className), ...props })));
114
66
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
115
- const AlertDialogBody = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("flex-1 px-4 py-2", className), ...props })));
116
- exports.AlertDialogBody = AlertDialogBody;
67
+ const AlertDialogBody = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex-1 px-4 py-2", className), ...props })));
117
68
  AlertDialogBody.displayName = "AlertDialogBody";
118
69
  const AlertDialogAction = AlertDialogPrimitive.Action;
119
- exports.AlertDialogAction = AlertDialogAction;
120
70
  const AlertDialogCancel = AlertDialogPrimitive.Cancel;
121
- exports.AlertDialogCancel = AlertDialogCancel;
71
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogBody, AlertDialogAction, AlertDialogCancel, alertDialogContentVariants, alertDialogHeaderVariants, alertDialogFooterVariants, };
@@ -3,7 +3,7 @@ import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
3
  type AvatarSize = "small" | "regular" | "large" | "xlarge";
4
4
  declare const avatarVariants: (props?: ({
5
5
  size?: "small" | "regular" | "large" | "xlarge" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
8
8
  size?: AvatarSize;
9
9
  }
package/Avatar/Avatar.js CHANGED
@@ -1,45 +1,9 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.avatarVariants = exports.AvatarFallback = exports.AvatarImage = exports.Avatar = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const AvatarPrimitive = __importStar(require("@radix-ui/react-avatar"));
40
- const class_variance_authority_1 = require("class-variance-authority");
41
- const utils_1 = require("../lib/utils");
42
- const avatarVariants = (0, class_variance_authority_1.cva)("relative flex shrink-0 overflow-hidden rounded-full", {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../lib/utils";
6
+ const avatarVariants = cva("relative flex shrink-0 overflow-hidden rounded-full", {
43
7
  variants: {
44
8
  size: {
45
9
  small: "size-8",
@@ -52,13 +16,10 @@ const avatarVariants = (0, class_variance_authority_1.cva)("relative flex shrink
52
16
  size: "regular",
53
17
  },
54
18
  });
55
- exports.avatarVariants = avatarVariants;
56
- const Avatar = React.forwardRef(({ className, size, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Root, { ref: ref, className: (0, utils_1.cn)(avatarVariants({ size }), className), ...props })));
57
- exports.Avatar = Avatar;
19
+ const Avatar = React.forwardRef(({ className, size, ...props }, ref) => (_jsx(AvatarPrimitive.Root, { ref: ref, className: cn(avatarVariants({ size }), className), ...props })));
58
20
  Avatar.displayName = AvatarPrimitive.Root.displayName;
59
- const AvatarImage = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Image, { ref: ref, className: (0, utils_1.cn)("aspect-square h-full w-full", className), ...props })));
60
- exports.AvatarImage = AvatarImage;
21
+ const AvatarImage = React.forwardRef(({ className, ...props }, ref) => (_jsx(AvatarPrimitive.Image, { ref: ref, className: cn("aspect-square h-full w-full", className), ...props })));
61
22
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
62
- const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Fallback, { ref: ref, className: (0, utils_1.cn)("flex h-full w-full items-center justify-center rounded-full bg-grey-100 text-grey-600 font-medium", className), ...props })));
63
- exports.AvatarFallback = AvatarFallback;
23
+ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (_jsx(AvatarPrimitive.Fallback, { ref: ref, className: cn("flex h-full w-full items-center justify-center rounded-full bg-grey-100 text-grey-600 font-medium", className), ...props })));
64
24
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
25
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants };
package/Badge/Badge.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  type BadgeVariant = "default" | "secondary" | "outline" | "destructive" | "success" | "warning";
3
3
  declare const badgeVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | "success" | "warning" | "secondary" | "outline" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  variant?: BadgeVariant;
8
8
  }
package/Badge/Badge.js CHANGED
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.badgeVariants = void 0;
4
- exports.Badge = Badge;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const class_variance_authority_1 = require("class-variance-authority");
7
- const utils_1 = require("../lib/utils");
8
- const badgeVariants = (0, class_variance_authority_1.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-accent-600 focus:ring-offset-2", {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../lib/utils";
5
+ const badgeVariants = cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-accent-600 focus:ring-offset-2", {
9
6
  variants: {
10
7
  variant: {
11
8
  default: "border-transparent bg-accent-600 text-white",
@@ -20,7 +17,7 @@ const badgeVariants = (0, class_variance_authority_1.cva)("inline-flex items-cen
20
17
  variant: "default",
21
18
  },
22
19
  });
23
- exports.badgeVariants = badgeVariants;
24
20
  function Badge({ className, variant, ...props }) {
25
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)(badgeVariants({ variant }), className), ...props }));
21
+ return (_jsx("div", { className: cn(badgeVariants({ variant }), className), ...props }));
26
22
  }
23
+ export { Badge, badgeVariants };
@@ -1,65 +1,23 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.BreadcrumbEllipsis = exports.BreadcrumbSeparator = exports.BreadcrumbPage = exports.BreadcrumbLink = exports.BreadcrumbItem = exports.BreadcrumbList = exports.Breadcrumb = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const react_slot_1 = require("@radix-ui/react-slot");
40
- const lucide_react_1 = require("lucide-react");
41
- const utils_1 = require("../lib/utils");
42
- const Breadcrumb = React.forwardRef(({ ...props }, ref) => (0, jsx_runtime_1.jsx)("nav", { ref: ref, "aria-label": "breadcrumb", ...props }));
43
- exports.Breadcrumb = Breadcrumb;
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { ChevronRight, MoreHorizontal } from "lucide-react";
5
+ import { cn } from "../lib/utils";
6
+ const Breadcrumb = React.forwardRef(({ ...props }, ref) => _jsx("nav", { ref: ref, "aria-label": "breadcrumb", ...props }));
44
7
  Breadcrumb.displayName = "Breadcrumb";
45
- const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("ol", { ref: ref, className: (0, utils_1.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-grey-500 sm:gap-2.5", className), ...props })));
46
- exports.BreadcrumbList = BreadcrumbList;
8
+ const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => (_jsx("ol", { ref: ref, className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-grey-500 sm:gap-2.5", className), ...props })));
47
9
  BreadcrumbList.displayName = "BreadcrumbList";
48
- const BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("li", { ref: ref, className: (0, utils_1.cn)("inline-flex items-center gap-1.5", className), ...props })));
49
- exports.BreadcrumbItem = BreadcrumbItem;
10
+ const BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, className: cn("inline-flex items-center gap-1.5", className), ...props })));
50
11
  BreadcrumbItem.displayName = "BreadcrumbItem";
51
12
  const BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
52
- const Comp = asChild ? react_slot_1.Slot : "a";
53
- return ((0, jsx_runtime_1.jsx)(Comp, { ref: ref, className: (0, utils_1.cn)("transition-colors hover:text-main-950", className), ...props }));
13
+ const Comp = asChild ? Slot : "a";
14
+ return (_jsx(Comp, { ref: ref, className: cn("transition-colors hover:text-main-950", className), ...props }));
54
15
  });
55
- exports.BreadcrumbLink = BreadcrumbLink;
56
16
  BreadcrumbLink.displayName = "BreadcrumbLink";
57
- const BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("span", { ref: ref, role: "link", "aria-disabled": "true", "aria-current": "page", className: (0, utils_1.cn)("font-normal text-main-950", className), ...props })));
58
- exports.BreadcrumbPage = BreadcrumbPage;
17
+ const BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, role: "link", "aria-disabled": "true", "aria-current": "page", className: cn("font-normal text-main-950", className), ...props })));
59
18
  BreadcrumbPage.displayName = "BreadcrumbPage";
60
- const BreadcrumbSeparator = ({ children, className, ...props }) => ((0, jsx_runtime_1.jsx)("li", { role: "presentation", "aria-hidden": "true", className: (0, utils_1.cn)("[&>svg]:size-3.5", className), ...props, children: children ?? (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, {}) }));
61
- exports.BreadcrumbSeparator = BreadcrumbSeparator;
19
+ const BreadcrumbSeparator = ({ children, className, ...props }) => (_jsx("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children ?? _jsx(ChevronRight, {}) }));
62
20
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
63
- const BreadcrumbEllipsis = ({ className, ...props }) => ((0, jsx_runtime_1.jsxs)("span", { role: "presentation", "aria-hidden": "true", className: (0, utils_1.cn)("flex h-9 w-9 items-center justify-center", className), ...props, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.MoreHorizontal, { className: "size-4" }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "More" })] }));
64
- exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
21
+ const BreadcrumbEllipsis = ({ className, ...props }) => (_jsxs("span", { role: "presentation", "aria-hidden": "true", className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontal, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "More" })] }));
65
22
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
23
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -8,7 +8,7 @@ declare const buttonVariants: (props?: ({
8
8
  size?: "small" | "regular" | "large" | "mini" | null | undefined;
9
9
  roundness?: "default" | "round" | null | undefined;
10
10
  textVariant?: "h5" | "h2" | "h3" | "caption" | "h1" | "h4" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "body3" | null | undefined;
11
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
13
13
  variant?: ButtonVariant;
14
14
  size?: ButtonSize;
package/Button/Button.js CHANGED
@@ -1,45 +1,9 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.buttonVariants = exports.Button = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const react_slot_1 = require("@radix-ui/react-slot");
40
- const class_variance_authority_1 = require("class-variance-authority");
41
- const utils_1 = require("../lib/utils");
42
- const buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap font-normal font-sans cursor-pointer transition-colors focus-visible:outline-none focus-visible:shadow-[0_0_0_3px_#d4d4d4] disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0", {
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../lib/utils";
6
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap font-normal font-sans cursor-pointer transition-colors focus-visible:outline-none focus-visible:shadow-[0_0_0_3px_#d4d4d4] disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0", {
43
7
  variants: {
44
8
  variant: {
45
9
  primary: "bg-accent-600 text-white hover:bg-accent-700",
@@ -80,10 +44,9 @@ const buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-ce
80
44
  roundness: "default",
81
45
  },
82
46
  });
83
- exports.buttonVariants = buttonVariants;
84
47
  const Button = React.forwardRef(({ className, variant, size, roundness, textVariant, asChild = false, leftIcon, rightIcon, children, ...props }, ref) => {
85
- const Comp = asChild ? react_slot_1.Slot : "button";
86
- return ((0, jsx_runtime_1.jsxs)(Comp, { className: (0, utils_1.cn)(buttonVariants({ variant, size, roundness, textVariant, className })), ref: ref, ...props, children: [leftIcon && (0, jsx_runtime_1.jsx)("span", { className: "shrink-0", children: leftIcon }), children, rightIcon && (0, jsx_runtime_1.jsx)("span", { className: "shrink-0", children: rightIcon })] }));
48
+ const Comp = asChild ? Slot : "button";
49
+ return (_jsxs(Comp, { className: cn(buttonVariants({ variant, size, roundness, textVariant, className })), ref: ref, ...props, children: [leftIcon && _jsx("span", { className: "shrink-0", children: leftIcon }), children, rightIcon && _jsx("span", { className: "shrink-0", children: rightIcon })] }));
87
50
  });
88
- exports.Button = Button;
89
51
  Button.displayName = "Button";
52
+ export { Button, buttonVariants };