@skybin-tech/nebula-ui 0.0.1 → 0.0.3

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 (93) hide show
  1. package/dist/_virtual/index.js +6 -0
  2. package/dist/_virtual/index.js.map +1 -0
  3. package/dist/_virtual/index2.js +5 -0
  4. package/dist/_virtual/index2.js.map +1 -0
  5. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  6. package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  7. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  8. package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  9. package/dist/cjs/_virtual/index.cjs +6 -0
  10. package/dist/cjs/_virtual/index.cjs.map +1 -0
  11. package/dist/cjs/_virtual/index2.cjs +5 -0
  12. package/dist/cjs/_virtual/index2.cjs.map +1 -0
  13. package/dist/cjs/_virtual/use-sync-external-store-shim.development.cjs +5 -0
  14. package/dist/cjs/_virtual/use-sync-external-store-shim.development.cjs.map +1 -0
  15. package/dist/cjs/_virtual/use-sync-external-store-shim.production.cjs +5 -0
  16. package/dist/cjs/_virtual/use-sync-external-store-shim.production.cjs.map +1 -0
  17. package/dist/cjs/components/ui/avatar.cjs +60 -0
  18. package/dist/cjs/components/ui/avatar.cjs.map +1 -0
  19. package/dist/cjs/components/ui/badge.cjs +28 -0
  20. package/dist/cjs/components/ui/badge.cjs.map +1 -0
  21. package/dist/cjs/components/ui/card.cjs +82 -0
  22. package/dist/cjs/components/ui/card.cjs.map +1 -0
  23. package/dist/cjs/components/ui/dropdown-menu.cjs +169 -0
  24. package/dist/cjs/components/ui/dropdown-menu.cjs.map +1 -0
  25. package/dist/cjs/components/ui/separator.cjs +42 -0
  26. package/dist/cjs/components/ui/separator.cjs.map +1 -0
  27. package/dist/cjs/index.cjs +32 -0
  28. package/dist/cjs/index.cjs.map +1 -1
  29. package/dist/components/ui/avatar.js +43 -0
  30. package/dist/components/ui/avatar.js.map +1 -0
  31. package/dist/components/ui/badge.js +28 -0
  32. package/dist/components/ui/badge.js.map +1 -0
  33. package/dist/components/ui/card.js +65 -0
  34. package/dist/components/ui/card.js.map +1 -0
  35. package/dist/components/ui/dropdown-menu.js +152 -0
  36. package/dist/components/ui/dropdown-menu.js.map +1 -0
  37. package/dist/components/ui/separator.js +25 -0
  38. package/dist/components/ui/separator.js.map +1 -0
  39. package/dist/index.js +32 -0
  40. package/dist/index.js.map +1 -1
  41. package/package.json +96 -23
  42. package/dist/components/Button/Button.d.ts +0 -18
  43. package/dist/components/Button/Button.d.ts.map +0 -1
  44. package/dist/components/Button/index.d.ts +0 -3
  45. package/dist/components/Button/index.d.ts.map +0 -1
  46. package/dist/components/Form/Checkbox.d.ts +0 -32
  47. package/dist/components/Form/Checkbox.d.ts.map +0 -1
  48. package/dist/components/Form/Form.d.ts +0 -62
  49. package/dist/components/Form/Form.d.ts.map +0 -1
  50. package/dist/components/Form/Radio.d.ts +0 -80
  51. package/dist/components/Form/Radio.d.ts.map +0 -1
  52. package/dist/components/Form/Select.d.ts +0 -75
  53. package/dist/components/Form/Select.d.ts.map +0 -1
  54. package/dist/components/Form/Switch.d.ts +0 -34
  55. package/dist/components/Form/Switch.d.ts.map +0 -1
  56. package/dist/components/Form/TextArea.d.ts +0 -47
  57. package/dist/components/Form/TextArea.d.ts.map +0 -1
  58. package/dist/components/Form/TextBox.d.ts +0 -61
  59. package/dist/components/Form/TextBox.d.ts.map +0 -1
  60. package/dist/components/Form/context.d.ts +0 -107
  61. package/dist/components/Form/context.d.ts.map +0 -1
  62. package/dist/components/Form/hooks.d.ts +0 -21
  63. package/dist/components/Form/hooks.d.ts.map +0 -1
  64. package/dist/components/Form/index.d.ts +0 -18
  65. package/dist/components/Form/index.d.ts.map +0 -1
  66. package/dist/components/Input/Input.d.ts +0 -18
  67. package/dist/components/Input/Input.d.ts.map +0 -1
  68. package/dist/components/Input/index.d.ts +0 -3
  69. package/dist/components/Input/index.d.ts.map +0 -1
  70. package/dist/components/ui/checkbox.d.ts +0 -5
  71. package/dist/components/ui/checkbox.d.ts.map +0 -1
  72. package/dist/components/ui/index.d.ts +0 -16
  73. package/dist/components/ui/index.d.ts.map +0 -1
  74. package/dist/components/ui/input.d.ts +0 -11
  75. package/dist/components/ui/input.d.ts.map +0 -1
  76. package/dist/components/ui/label.d.ts +0 -6
  77. package/dist/components/ui/label.d.ts.map +0 -1
  78. package/dist/components/ui/radio-group.d.ts +0 -6
  79. package/dist/components/ui/radio-group.d.ts.map +0 -1
  80. package/dist/components/ui/select.d.ts +0 -14
  81. package/dist/components/ui/select.d.ts.map +0 -1
  82. package/dist/components/ui/switch.d.ts +0 -5
  83. package/dist/components/ui/switch.d.ts.map +0 -1
  84. package/dist/components/ui/textarea.d.ts +0 -11
  85. package/dist/components/ui/textarea.d.ts.map +0 -1
  86. package/dist/hooks/useDebounce.d.ts +0 -8
  87. package/dist/hooks/useDebounce.d.ts.map +0 -1
  88. package/dist/hooks/useToggle.d.ts +0 -7
  89. package/dist/hooks/useToggle.d.ts.map +0 -1
  90. package/dist/index.d.ts +0 -13
  91. package/dist/index.d.ts.map +0 -1
  92. package/dist/utils/cn.d.ts +0 -7
  93. package/dist/utils/cn.d.ts.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cva } from "../../node_modules/class-variance-authority/dist/index.js";
4
+ import { cn } from "../../utils/cn.js";
5
+ const badgeVariants = cva(
6
+ "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-ring focus:ring-offset-2",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
11
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
12
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
13
+ outline: "text-foreground"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ variant: "default"
18
+ }
19
+ }
20
+ );
21
+ function Badge({ className, variant, ...props }) {
22
+ return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
23
+ }
24
+ export {
25
+ Badge,
26
+ badgeVariants
27
+ };
28
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sources":["../../../src/components/ui/badge.tsx"],"sourcesContent":["/**\r\n * shadcn/ui Badge component\r\n * @see https://ui.shadcn.com/docs/components/badge\r\n * \r\n * DO NOT MODIFY THIS FILE - It is generated from shadcn/ui\r\n * For customizations, create wrapper components instead.\r\n */\r\nimport * as React from \"react\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\n\r\nimport { cn } from \"../../utils/cn\"\r\n\r\nconst badgeVariants = cva(\r\n \"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-ring focus:ring-offset-2\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\r\n secondary:\r\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n destructive:\r\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\r\n outline: \"text-foreground\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n }\r\n)\r\n\r\nexport interface BadgeProps\r\n extends React.HTMLAttributes<HTMLDivElement>,\r\n VariantProps<typeof badgeVariants> {}\r\n\r\nfunction Badge({ className, variant, ...props }: BadgeProps) {\r\n return (\r\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\r\n )\r\n}\r\n\r\nexport { Badge, badgeVariants }\r\n"],"names":[],"mappings":";;;;AAYA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAMA,SAAS,MAAM,EAAE,WAAW,SAAS,GAAG,SAAqB;AAC3D,SACE,oBAAC,OAAA,EAAI,WAAW,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS,GAAI,GAAG,MAAA,CAAO;AAE1E;"}
@@ -0,0 +1,65 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../utils/cn.js";
4
+ const Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ ref,
8
+ className: cn(
9
+ "rounded-lg border border-input bg-card text-card-foreground shadow-sm",
10
+ className
11
+ ),
12
+ ...props
13
+ }
14
+ ));
15
+ Card.displayName = "Card";
16
+ const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
17
+ "div",
18
+ {
19
+ ref,
20
+ className: cn("flex flex-col space-y-1.5 p-6", className),
21
+ ...props
22
+ }
23
+ ));
24
+ CardHeader.displayName = "CardHeader";
25
+ const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
26
+ "h2",
27
+ {
28
+ ref,
29
+ className: cn(
30
+ "text-2xl font-semibold leading-none tracking-tight",
31
+ className
32
+ ),
33
+ ...props
34
+ }
35
+ ));
36
+ CardTitle.displayName = "CardTitle";
37
+ const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
38
+ "p",
39
+ {
40
+ ref,
41
+ className: cn("text-sm text-muted-foreground", className),
42
+ ...props
43
+ }
44
+ ));
45
+ CardDescription.displayName = "CardDescription";
46
+ const CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
47
+ CardContent.displayName = "CardContent";
48
+ const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
49
+ "div",
50
+ {
51
+ ref,
52
+ className: cn("flex items-center p-6 pt-0", className),
53
+ ...props
54
+ }
55
+ ));
56
+ CardFooter.displayName = "CardFooter";
57
+ export {
58
+ Card,
59
+ CardContent,
60
+ CardDescription,
61
+ CardFooter,
62
+ CardHeader,
63
+ CardTitle
64
+ };
65
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["/**\r\n * shadcn/ui Card component\r\n * @see https://ui.shadcn.com/docs/components/card\r\n * \r\n * DO NOT MODIFY THIS FILE - It is generated from shadcn/ui\r\n * For customizations, create wrapper components instead.\r\n */\r\nimport * as React from \"react\"\r\n\r\nimport { cn } from \"../../utils/cn\"\r\n\r\nconst Card = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\r\n \"rounded-lg border border-input bg-card text-card-foreground shadow-sm\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nCard.displayName = \"Card\"\r\n\r\nconst CardHeader = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\r\n {...props}\r\n />\r\n))\r\nCardHeader.displayName = \"CardHeader\"\r\n\r\nconst CardTitle = React.forwardRef<\r\n HTMLParagraphElement,\r\n React.HTMLAttributes<HTMLHeadingElement>\r\n>(({ className, ...props }, ref) => (\r\n <h2\r\n ref={ref}\r\n className={cn(\r\n \"text-2xl font-semibold leading-none tracking-tight\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nCardTitle.displayName = \"CardTitle\"\r\n\r\nconst CardDescription = React.forwardRef<\r\n HTMLParagraphElement,\r\n React.HTMLAttributes<HTMLParagraphElement>\r\n>(({ className, ...props }, ref) => (\r\n <p\r\n ref={ref}\r\n className={cn(\"text-sm text-muted-foreground\", className)}\r\n {...props}\r\n />\r\n))\r\nCardDescription.displayName = \"CardDescription\"\r\n\r\nconst CardContent = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => (\r\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\r\n))\r\nCardContent.displayName = \"CardContent\"\r\n\r\nconst CardFooter = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex items-center p-6 pt-0\", className)}\r\n {...props}\r\n />\r\n))\r\nCardFooter.displayName = \"CardFooter\"\r\n\r\nexport { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter }\r\n"],"names":[],"mappings":";;;AAWA,MAAM,OAAO,MAAM,WAGjB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,CACD;AACD,KAAK,cAAc;AAEnB,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA,EAAA;AACN,CACD;AACD,WAAW,cAAc;AAEzB,MAAM,YAAY,MAAM,WAGtB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,CACD;AACD,UAAU,cAAc;AAExB,MAAM,kBAAkB,MAAM,WAG5B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA,EAAA;AACN,CACD;AACD,gBAAgB,cAAc;AAE9B,MAAM,cAAc,MAAM,WAGxB,CAAC,EAAE,WAAW,GAAG,SAAS,4BACzB,OAAA,EAAI,KAAU,WAAW,GAAG,YAAY,SAAS,GAAI,GAAG,OAAO,CACjE;AACD,YAAY,cAAc;AAE1B,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1B;AAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,8BAA8B,SAAS;AAAA,IACpD,GAAG;AAAA,EAAA;AACN,CACD;AACD,WAAW,cAAc;"}
@@ -0,0 +1,152 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Root as Root2, Group as Group2, Portal as Portal2, RadioGroup as RadioGroup2, Sub as Sub2, Trigger, CheckboxItem as CheckboxItem2, ItemIndicator as ItemIndicator2, Content as Content2, Item as Item2, Label as Label2, RadioItem as RadioItem2, Separator as Separator2, SubContent as SubContent2, SubTrigger as SubTrigger2 } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
4
+ import { cn } from "../../utils/cn.js";
5
+ import Check from "../../node_modules/lucide-react/dist/esm/icons/check.js";
6
+ import Circle from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
7
+ import ChevronRight from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
8
+ const DropdownMenu = Root2;
9
+ const DropdownMenuTrigger = Trigger;
10
+ const DropdownMenuGroup = Group2;
11
+ const DropdownMenuPortal = Portal2;
12
+ const DropdownMenuSub = Sub2;
13
+ const DropdownMenuRadioGroup = RadioGroup2;
14
+ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxs(
15
+ SubTrigger2,
16
+ {
17
+ ref,
18
+ className: cn(
19
+ "flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
20
+ inset && "pl-8",
21
+ className
22
+ ),
23
+ ...props,
24
+ children: [
25
+ props.children,
26
+ /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
27
+ ]
28
+ }
29
+ ));
30
+ DropdownMenuSubTrigger.displayName = SubTrigger2.displayName;
31
+ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
32
+ SubContent2,
33
+ {
34
+ ref,
35
+ className: cn(
36
+ "min-w-[8rem] overflow-hidden rounded-md border border-input bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
37
+ className
38
+ ),
39
+ ...props
40
+ }
41
+ ));
42
+ DropdownMenuSubContent.displayName = SubContent2.displayName;
43
+ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Portal2, { children: /* @__PURE__ */ jsx(
44
+ Content2,
45
+ {
46
+ ref,
47
+ sideOffset,
48
+ className: cn(
49
+ "min-w-[8rem] overflow-hidden rounded-md border border-input bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
50
+ className
51
+ ),
52
+ ...props
53
+ }
54
+ ) }));
55
+ DropdownMenuContent.displayName = Content2.displayName;
56
+ const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
57
+ Item2,
58
+ {
59
+ ref,
60
+ className: cn(
61
+ "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
62
+ inset && "pl-8",
63
+ className
64
+ ),
65
+ ...props
66
+ }
67
+ ));
68
+ DropdownMenuItem.displayName = Item2.displayName;
69
+ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
70
+ CheckboxItem2,
71
+ {
72
+ ref,
73
+ className: cn(
74
+ "relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
75
+ className
76
+ ),
77
+ checked,
78
+ ...props,
79
+ children: [
80
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ItemIndicator2, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
81
+ children
82
+ ]
83
+ }
84
+ ));
85
+ DropdownMenuCheckboxItem.displayName = CheckboxItem2.displayName;
86
+ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
87
+ RadioItem2,
88
+ {
89
+ ref,
90
+ className: cn(
91
+ "relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
92
+ className
93
+ ),
94
+ ...props,
95
+ children: [
96
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ItemIndicator2, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
97
+ children
98
+ ]
99
+ }
100
+ ));
101
+ DropdownMenuRadioItem.displayName = RadioItem2.displayName;
102
+ const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
103
+ Label2,
104
+ {
105
+ ref,
106
+ className: cn(
107
+ "px-2 py-1.5 text-sm font-semibold",
108
+ inset && "pl-8",
109
+ className
110
+ ),
111
+ ...props
112
+ }
113
+ ));
114
+ DropdownMenuLabel.displayName = Label2.displayName;
115
+ const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
116
+ Separator2,
117
+ {
118
+ ref,
119
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
120
+ ...props
121
+ }
122
+ ));
123
+ DropdownMenuSeparator.displayName = Separator2.displayName;
124
+ const DropdownMenuShortcut = ({
125
+ className,
126
+ ...props
127
+ }) => /* @__PURE__ */ jsx(
128
+ "span",
129
+ {
130
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
131
+ ...props
132
+ }
133
+ );
134
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
135
+ export {
136
+ DropdownMenu,
137
+ DropdownMenuCheckboxItem,
138
+ DropdownMenuContent,
139
+ DropdownMenuGroup,
140
+ DropdownMenuItem,
141
+ DropdownMenuLabel,
142
+ DropdownMenuPortal,
143
+ DropdownMenuRadioGroup,
144
+ DropdownMenuRadioItem,
145
+ DropdownMenuSeparator,
146
+ DropdownMenuShortcut,
147
+ DropdownMenuSub,
148
+ DropdownMenuSubContent,
149
+ DropdownMenuSubTrigger,
150
+ DropdownMenuTrigger
151
+ };
152
+ //# sourceMappingURL=dropdown-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.js","sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["/**\r\n * shadcn/ui DropdownMenu component\r\n * @see https://ui.shadcn.com/docs/components/dropdown-menu\r\n * \r\n * DO NOT MODIFY THIS FILE - It is generated from shadcn/ui\r\n * For customizations, create wrapper components instead.\r\n */\r\n\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\r\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\r\n\r\nimport { cn } from \"../../utils/cn\"\r\n\r\nconst DropdownMenu = DropdownMenuPrimitive.Root\r\n\r\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\r\n\r\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\r\n\r\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\r\n\r\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\r\n\r\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\r\n\r\nconst DropdownMenuSubTrigger = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\r\n inset?: boolean\r\n }\r\n>(({ className, inset, ...props }, ref) => (\r\n <DropdownMenuPrimitive.SubTrigger\r\n ref={ref}\r\n className={cn(\r\n \"flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",\r\n inset && \"pl-8\",\r\n className\r\n )}\r\n {...props}\r\n >\r\n {props.children}\r\n <ChevronRight className=\"ml-auto h-4 w-4\" />\r\n </DropdownMenuPrimitive.SubTrigger>\r\n))\r\nDropdownMenuSubTrigger.displayName =\r\n DropdownMenuPrimitive.SubTrigger.displayName\r\n\r\nconst DropdownMenuSubContent = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\r\n>(({ className, ...props }, ref) => (\r\n <DropdownMenuPrimitive.SubContent\r\n ref={ref}\r\n className={cn(\r\n \"min-w-[8rem] overflow-hidden rounded-md border border-input bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDropdownMenuSubContent.displayName =\r\n DropdownMenuPrimitive.SubContent.displayName\r\n\r\nconst DropdownMenuContent = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\r\n>(({ className, sideOffset = 4, ...props }, ref) => (\r\n <DropdownMenuPrimitive.Portal>\r\n <DropdownMenuPrimitive.Content\r\n ref={ref}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n \"min-w-[8rem] overflow-hidden rounded-md border border-input bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n </DropdownMenuPrimitive.Portal>\r\n))\r\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\r\n\r\nconst DropdownMenuItem = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\r\n inset?: boolean\r\n }\r\n>(({ className, inset, ...props }, ref) => (\r\n <DropdownMenuPrimitive.Item\r\n ref={ref}\r\n className={cn(\r\n \"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\r\n inset && \"pl-8\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\r\n\r\nconst DropdownMenuCheckboxItem = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\r\n>(({ className, children, checked, ...props }, ref) => (\r\n <DropdownMenuPrimitive.CheckboxItem\r\n ref={ref}\r\n className={cn(\r\n \"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\r\n className\r\n )}\r\n checked={checked}\r\n {...props}\r\n >\r\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\r\n <DropdownMenuPrimitive.ItemIndicator>\r\n <Check className=\"h-4 w-4\" />\r\n </DropdownMenuPrimitive.ItemIndicator>\r\n </span>\r\n {children}\r\n </DropdownMenuPrimitive.CheckboxItem>\r\n))\r\nDropdownMenuCheckboxItem.displayName =\r\n DropdownMenuPrimitive.CheckboxItem.displayName\r\n\r\nconst DropdownMenuRadioItem = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\r\n>(({ className, children, ...props }, ref) => (\r\n <DropdownMenuPrimitive.RadioItem\r\n ref={ref}\r\n className={cn(\r\n \"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\r\n className\r\n )}\r\n {...props}\r\n >\r\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\r\n <DropdownMenuPrimitive.ItemIndicator>\r\n <Circle className=\"h-2 w-2 fill-current\" />\r\n </DropdownMenuPrimitive.ItemIndicator>\r\n </span>\r\n {children}\r\n </DropdownMenuPrimitive.RadioItem>\r\n))\r\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\r\n\r\nconst DropdownMenuLabel = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\r\n inset?: boolean\r\n }\r\n>(({ className, inset, ...props }, ref) => (\r\n <DropdownMenuPrimitive.Label\r\n ref={ref}\r\n className={cn(\r\n \"px-2 py-1.5 text-sm font-semibold\",\r\n inset && \"pl-8\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\r\n\r\nconst DropdownMenuSeparator = React.forwardRef<\r\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\r\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\r\n>(({ className, ...props }, ref) => (\r\n <DropdownMenuPrimitive.Separator\r\n ref={ref}\r\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\r\n {...props}\r\n />\r\n))\r\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\r\n\r\nconst DropdownMenuShortcut = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLSpanElement>) => (\r\n <span\r\n className={cn(\"ml-auto text-xs tracking-widest text-muted-foreground\", className)}\r\n {...props}\r\n />\r\n)\r\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\r\n\r\nexport {\r\n DropdownMenu,\r\n DropdownMenuTrigger,\r\n DropdownMenuContent,\r\n DropdownMenuItem,\r\n DropdownMenuCheckboxItem,\r\n DropdownMenuRadioItem,\r\n DropdownMenuLabel,\r\n DropdownMenuSeparator,\r\n DropdownMenuShortcut,\r\n DropdownMenuGroup,\r\n DropdownMenuPortal,\r\n DropdownMenuSub,\r\n DropdownMenuSubContent,\r\n DropdownMenuSubTrigger,\r\n DropdownMenuRadioGroup,\r\n}\r\n"],"names":["DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger","DropdownMenuPrimitive.Group","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Sub","DropdownMenuPrimitive.RadioGroup","DropdownMenuPrimitive.SubTrigger","DropdownMenuPrimitive.SubContent","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","DropdownMenuPrimitive.RadioItem","DropdownMenuPrimitive.Label","DropdownMenuPrimitive.Separator"],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Root } from "../../node_modules/@radix-ui/react-separator/dist/index.js";
4
+ import { cn } from "../../utils/cn.js";
5
+ const Separator = React.forwardRef(
6
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ Root,
8
+ {
9
+ ref,
10
+ decorative,
11
+ orientation,
12
+ className: cn(
13
+ "shrink-0 bg-border",
14
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ )
20
+ );
21
+ Separator.displayName = Root.displayName;
22
+ export {
23
+ Separator
24
+ };
25
+ //# sourceMappingURL=separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.js","sources":["../../../src/components/ui/separator.tsx"],"sourcesContent":["/**\r\n * shadcn/ui Separator component\r\n * @see https://ui.shadcn.com/docs/components/separator\r\n * \r\n * DO NOT MODIFY THIS FILE - It is generated from shadcn/ui\r\n * For customizations, create wrapper components instead.\r\n */\r\n\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\r\n\r\nimport { cn } from \"../../utils/cn\"\r\n\r\nconst Separator = React.forwardRef<\r\n React.ElementRef<typeof SeparatorPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\r\n>(\r\n (\r\n { className, orientation = \"horizontal\", decorative = true, ...props },\r\n ref\r\n ) => (\r\n <SeparatorPrimitive.Root\r\n ref={ref}\r\n decorative={decorative}\r\n orientation={orientation}\r\n className={cn(\r\n \"shrink-0 bg-border\",\r\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n)\r\nSeparator.displayName = SeparatorPrimitive.Root.displayName\r\n\r\nexport { Separator }\r\n"],"names":["SeparatorPrimitive.Root"],"mappings":";;;;AAcA,MAAM,YAAY,MAAM;AAAA,EAItB,CACE,EAAE,WAAW,cAAc,cAAc,aAAa,MAAM,GAAG,SAC/D,QAEA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,gBAAgB,eAAe,mBAAmB;AAAA,QAClD;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AACA,UAAU,cAAcA,KAAwB;"}
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/ui/card.js";
2
+ import { Badge, badgeVariants } from "./components/ui/badge.js";
3
+ import { Avatar, AvatarFallback, AvatarImage } from "./components/ui/avatar.js";
4
+ import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
5
+ import { Separator } from "./components/ui/separator.js";
1
6
  import { useToggle } from "./hooks/useToggle.js";
2
7
  import { useDebounce } from "./hooks/useDebounce.js";
3
8
  import { cn } from "./utils/cn.js";
@@ -21,14 +26,40 @@ import { TextArea } from "./components/Form/TextArea.js";
21
26
  import { TextBox } from "./components/Form/TextBox.js";
22
27
  import { useFieldError, useForm, useFormConfig, useFormField } from "./components/Form/hooks.js";
23
28
  export {
29
+ Avatar,
30
+ AvatarFallback,
31
+ AvatarImage,
32
+ Badge,
24
33
  Button,
34
+ Card,
35
+ CardContent,
36
+ CardDescription,
37
+ CardFooter,
38
+ CardHeader,
39
+ CardTitle,
25
40
  Checkbox,
41
+ DropdownMenu,
42
+ DropdownMenuCheckboxItem,
43
+ DropdownMenuContent,
44
+ DropdownMenuGroup,
45
+ DropdownMenuItem,
46
+ DropdownMenuLabel,
47
+ DropdownMenuPortal,
48
+ DropdownMenuRadioGroup,
49
+ DropdownMenuRadioItem,
50
+ DropdownMenuSeparator,
51
+ DropdownMenuShortcut,
52
+ DropdownMenuSub,
53
+ DropdownMenuSubContent,
54
+ DropdownMenuSubTrigger,
55
+ DropdownMenuTrigger,
26
56
  Form,
27
57
  FormConfigContext,
28
58
  Input,
29
59
  RadioGroup,
30
60
  RadioItem,
31
61
  Select,
62
+ Separator,
32
63
  Checkbox2 as ShadcnCheckbox,
33
64
  Input2 as ShadcnInput,
34
65
  Label as ShadcnLabel,
@@ -47,6 +78,7 @@ export {
47
78
  Switch2 as Switch,
48
79
  TextArea,
49
80
  TextBox,
81
+ badgeVariants,
50
82
  buildZodSchemaFromRules,
51
83
  cn,
52
84
  defaultFormConfig,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,84 +1,134 @@
1
1
  {
2
2
  "name": "@skybin-tech/nebula-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "Reusable React component library with form validation using shadcn/ui patterns, react-hook-form, and Zod",
6
- "main": "./dist/cjs/src/index.cjs",
7
- "module": "./dist/src/index.js",
6
+ "main": "./dist/cjs/index.cjs",
7
+ "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": {
12
12
  "types": "./dist/index.d.ts",
13
- "default": "./dist/src/index.js"
13
+ "default": "./dist/index.js"
14
14
  },
15
15
  "require": {
16
16
  "types": "./dist/index.d.ts",
17
- "default": "./dist/cjs/src/index.cjs"
17
+ "default": "./dist/cjs/index.cjs"
18
18
  }
19
19
  },
20
20
  "./components/Button": {
21
21
  "import": {
22
22
  "types": "./dist/components/Button/index.d.ts",
23
- "default": "./dist/src/components/Button/Button2.js"
23
+ "default": "./dist/components/Button/Button2.js"
24
24
  },
25
25
  "require": {
26
26
  "types": "./dist/components/Button/index.d.ts",
27
- "default": "./dist/cjs/src/components/Button/Button2.cjs"
27
+ "default": "./dist/cjs/components/Button/Button2.cjs"
28
28
  }
29
29
  },
30
30
  "./components/Form": {
31
31
  "import": {
32
32
  "types": "./dist/components/Form/index.d.ts",
33
- "default": "./dist/src/components/Form/Form.js"
33
+ "default": "./dist/components/Form/Form.js"
34
34
  },
35
35
  "require": {
36
36
  "types": "./dist/components/Form/index.d.ts",
37
- "default": "./dist/cjs/src/components/Form/Form.cjs"
37
+ "default": "./dist/cjs/components/Form/Form.cjs"
38
38
  }
39
39
  },
40
40
  "./components/Input": {
41
41
  "import": {
42
42
  "types": "./dist/components/Input/index.d.ts",
43
- "default": "./dist/src/components/Input/Input2.js"
43
+ "default": "./dist/components/Input/Input2.js"
44
44
  },
45
45
  "require": {
46
46
  "types": "./dist/components/Input/index.d.ts",
47
- "default": "./dist/cjs/src/components/Input/Input2.cjs"
47
+ "default": "./dist/cjs/components/Input/Input2.cjs"
48
48
  }
49
49
  },
50
50
  "./hooks/useDebounce": {
51
51
  "import": {
52
52
  "types": "./dist/hooks/useDebounce.d.ts",
53
- "default": "./dist/src/hooks/useDebounce.js"
53
+ "default": "./dist/hooks/useDebounce.js"
54
54
  },
55
55
  "require": {
56
56
  "types": "./dist/hooks/useDebounce.d.ts",
57
- "default": "./dist/cjs/src/hooks/useDebounce.cjs"
57
+ "default": "./dist/cjs/hooks/useDebounce.cjs"
58
58
  }
59
59
  },
60
60
  "./hooks/useToggle": {
61
61
  "import": {
62
62
  "types": "./dist/hooks/useToggle.d.ts",
63
- "default": "./dist/src/hooks/useToggle.js"
63
+ "default": "./dist/hooks/useToggle.js"
64
64
  },
65
65
  "require": {
66
66
  "types": "./dist/hooks/useToggle.d.ts",
67
- "default": "./dist/cjs/src/hooks/useToggle.cjs"
67
+ "default": "./dist/cjs/hooks/useToggle.cjs"
68
68
  }
69
69
  },
70
70
  "./utils/cn": {
71
71
  "import": {
72
72
  "types": "./dist/utils/cn.d.ts",
73
- "default": "./dist/src/utils/cn.js"
73
+ "default": "./dist/utils/cn.js"
74
74
  },
75
75
  "require": {
76
76
  "types": "./dist/utils/cn.d.ts",
77
- "default": "./dist/cjs/src/utils/cn.cjs"
77
+ "default": "./dist/cjs/utils/cn.cjs"
78
78
  }
79
79
  },
80
- "./styles.css": "./dist/skybin-ui.css",
81
- "./package.json": "./package.json"
80
+ "./styles.css": "./dist/nebula-ui.css",
81
+ "./package.json": "./package.json",
82
+ "./components/ui/Card": {
83
+ "import": {
84
+ "types": "./dist/components/ui/card.d.ts",
85
+ "default": "./dist/components/ui/card.js"
86
+ },
87
+ "require": {
88
+ "types": "./dist/components/ui/card.d.ts",
89
+ "default": "./dist/cjs/components/ui/card.cjs"
90
+ }
91
+ },
92
+ "./components/ui/Badge": {
93
+ "import": {
94
+ "types": "./dist/components/ui/badge.d.ts",
95
+ "default": "./dist/components/ui/badge.js"
96
+ },
97
+ "require": {
98
+ "types": "./dist/components/ui/badge.d.ts",
99
+ "default": "./dist/cjs/components/ui/badge.cjs"
100
+ }
101
+ },
102
+ "./components/ui/Avatar": {
103
+ "import": {
104
+ "types": "./dist/components/ui/avatar.d.ts",
105
+ "default": "./dist/components/ui/avatar.js"
106
+ },
107
+ "require": {
108
+ "types": "./dist/components/ui/avatar.d.ts",
109
+ "default": "./dist/cjs/components/ui/avatar.cjs"
110
+ }
111
+ },
112
+ "./components/ui/DropdownMenu": {
113
+ "import": {
114
+ "types": "./dist/components/ui/dropdown-menu.d.ts",
115
+ "default": "./dist/components/ui/dropdown-menu.js"
116
+ },
117
+ "require": {
118
+ "types": "./dist/components/ui/dropdown-menu.d.ts",
119
+ "default": "./dist/cjs/components/ui/dropdown-menu.cjs"
120
+ }
121
+ },
122
+ "./components/ui/Separator": {
123
+ "import": {
124
+ "types": "./dist/components/ui/separator.d.ts",
125
+ "default": "./dist/components/ui/separator.js"
126
+ },
127
+ "require": {
128
+ "types": "./dist/components/ui/separator.d.ts",
129
+ "default": "./dist/cjs/components/ui/separator.cjs"
130
+ }
131
+ }
82
132
  },
83
133
  "typesVersions": {
84
134
  "*": {
@@ -91,6 +141,21 @@
91
141
  "components/Input": [
92
142
  "./dist/components/Input/index.d.ts"
93
143
  ],
144
+ "components/ui/Card": [
145
+ "./dist/components/ui/card.d.ts"
146
+ ],
147
+ "components/ui/Badge": [
148
+ "./dist/components/ui/badge.d.ts"
149
+ ],
150
+ "components/ui/Avatar": [
151
+ "./dist/components/ui/avatar.d.ts"
152
+ ],
153
+ "components/ui/DropdownMenu": [
154
+ "./dist/components/ui/dropdown-menu.d.ts"
155
+ ],
156
+ "components/ui/Separator": [
157
+ "./dist/components/ui/separator.d.ts"
158
+ ],
94
159
  "hooks/useDebounce": [
95
160
  "./dist/hooks/useDebounce.d.ts"
96
161
  ],
@@ -117,7 +182,7 @@
117
182
  "prepublishOnly": "npm run build:lib",
118
183
  "storybook": "storybook dev -p 6006",
119
184
  "build-storybook": "storybook build",
120
- "publish": "yarn version --patch && yarn publish --access public"
185
+ "publish": "yarn version --patch && yarn publish --access public"
121
186
  },
122
187
  "peerDependencies": {
123
188
  "react": "^18.0.0 || ^19.0.0",
@@ -141,11 +206,12 @@
141
206
  "@storybook/addon-onboarding": "^10.2.10",
142
207
  "@storybook/addon-vitest": "^10.2.10",
143
208
  "@storybook/react-vite": "^10.2.10",
209
+ "@tailwindcss/vite": "^4.2.0",
144
210
  "@types/glob": "^9.0.0",
145
211
  "@types/node": "^25.3.0",
146
212
  "@types/react": "^19.2.14",
147
213
  "@types/react-dom": "^19.2.3",
148
- "@vitejs/plugin-react": "^5.1.4",
214
+ "@vitejs/plugin-react-swc": "^4.2.3",
149
215
  "@vitest/browser-playwright": "^4.0.18",
150
216
  "@vitest/coverage-v8": "^4.0.18",
151
217
  "esbuild": "^0.27.3",
@@ -162,7 +228,11 @@
162
228
  "typescript": "~5.9.3",
163
229
  "typescript-eslint": "^8.56.0",
164
230
  "vite": "^7.3.1",
231
+ "vite-plugin-checker": "^0.12.0",
165
232
  "vite-plugin-dts": "^4.5.4",
233
+ "vite-plugin-eslint": "^1.8.1",
234
+ "vite-plugin-eslint2": "^5.0.5",
235
+ "vite-tsconfig-paths": "^6.1.1",
166
236
  "vitest": "^4.0.18"
167
237
  },
168
238
  "repository": {
@@ -184,18 +254,21 @@
184
254
  "license": "MIT",
185
255
  "dependencies": {
186
256
  "@hookform/resolvers": "^5.2.2",
257
+ "@radix-ui/react-avatar": "^1.1.1",
187
258
  "@radix-ui/react-checkbox": "^1.3.3",
259
+ "@radix-ui/react-dropdown-menu": "^2.1.1",
188
260
  "@radix-ui/react-label": "^2.1.8",
189
261
  "@radix-ui/react-radio-group": "^1.3.8",
190
262
  "@radix-ui/react-select": "^2.2.6",
263
+ "@radix-ui/react-separator": "^1.1.0",
191
264
  "@radix-ui/react-slot": "^1.2.4",
192
265
  "@radix-ui/react-switch": "^1.2.6",
193
266
  "class-variance-authority": "^0.7.1",
194
267
  "clsx": "^2.1.1",
195
268
  "lucide-react": "^0.575.0",
196
- "react-hook-form": "^7.71.2",
269
+ "react-hook-form": "^7.0.0",
197
270
  "tailwind-merge": "^3.5.0",
198
271
  "tailwindcss": "^4.2.0",
199
- "zod": "^4.3.6"
272
+ "zod": "^3.0.0 || ^4.0.0"
200
273
  }
201
274
  }
@@ -1,18 +0,0 @@
1
- import { ButtonHTMLAttributes, ReactNode } from 'react';
2
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
- /** The content of the button */
4
- children: ReactNode;
5
- /** The visual style variant of the button */
6
- variant?: "primary" | "secondary" | "outline" | "ghost" | "danger";
7
- /** The size of the button */
8
- size?: "sm" | "md" | "lg";
9
- /** Whether the button should take full width */
10
- fullWidth?: boolean;
11
- /** Whether the button is in a loading state */
12
- loading?: boolean;
13
- }
14
- /**
15
- * A customizable button component with multiple variants and sizes
16
- */
17
- export declare function Button({ children, variant, size, fullWidth, loading, disabled, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
18
- //# sourceMappingURL=Button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnE,6BAA6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,OAAmB,EACnB,IAAW,EACX,SAAiB,EACjB,OAAe,EACf,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,2CAoBb"}
@@ -1,3 +0,0 @@
1
- export { Button } from './Button';
2
- export type { ButtonProps } from './Button';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}