@estiato/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/components/accordion.d.ts +9 -0
  2. package/dist/components/accordion.js +43 -0
  3. package/dist/components/accordion.js.map +1 -0
  4. package/dist/components/alert.d.ts +11 -0
  5. package/dist/components/alert.js +38 -0
  6. package/dist/components/alert.js.map +1 -0
  7. package/dist/components/avatar.d.ts +8 -0
  8. package/dist/components/avatar.js +41 -0
  9. package/dist/components/avatar.js.map +1 -0
  10. package/dist/components/badge.d.ts +13 -0
  11. package/dist/components/badge.js +28 -0
  12. package/dist/components/badge.js.map +1 -0
  13. package/dist/components/button.d.ts +14 -0
  14. package/dist/components/button.js +40 -0
  15. package/dist/components/button.js.map +1 -0
  16. package/dist/components/card.d.ts +10 -0
  17. package/dist/components/card.js +51 -0
  18. package/dist/components/card.js.map +1 -0
  19. package/dist/components/checkbox.d.ts +6 -0
  20. package/dist/components/checkbox.js +26 -0
  21. package/dist/components/checkbox.js.map +1 -0
  22. package/dist/components/dialog.d.ts +22 -0
  23. package/dist/components/dialog.js +87 -0
  24. package/dist/components/dialog.js.map +1 -0
  25. package/dist/components/dropdown-menu.d.ts +23 -0
  26. package/dist/components/dropdown-menu.js +96 -0
  27. package/dist/components/dropdown-menu.js.map +1 -0
  28. package/dist/components/input.d.ts +6 -0
  29. package/dist/components/input.js +28 -0
  30. package/dist/components/input.js.map +1 -0
  31. package/dist/components/label.d.ts +6 -0
  32. package/dist/components/label.js +21 -0
  33. package/dist/components/label.js.map +1 -0
  34. package/dist/components/offline-screen.d.ts +26 -0
  35. package/dist/components/offline-screen.js +66 -0
  36. package/dist/components/offline-screen.js.map +1 -0
  37. package/dist/components/popover.d.ts +9 -0
  38. package/dist/components/popover.js +30 -0
  39. package/dist/components/popover.js.map +1 -0
  40. package/dist/components/radio-group.d.ts +7 -0
  41. package/dist/components/radio-group.js +27 -0
  42. package/dist/components/radio-group.js.map +1 -0
  43. package/dist/components/select.d.ts +13 -0
  44. package/dist/components/select.js +102 -0
  45. package/dist/components/select.js.map +1 -0
  46. package/dist/components/separator.d.ts +6 -0
  47. package/dist/components/separator.js +24 -0
  48. package/dist/components/separator.js.map +1 -0
  49. package/dist/components/skeleton.d.ts +6 -0
  50. package/dist/components/skeleton.js +16 -0
  51. package/dist/components/skeleton.js.map +1 -0
  52. package/dist/components/sonner.d.ts +7 -0
  53. package/dist/components/sonner.js +26 -0
  54. package/dist/components/sonner.js.map +1 -0
  55. package/dist/components/switch.d.ts +6 -0
  56. package/dist/components/switch.js +33 -0
  57. package/dist/components/switch.js.map +1 -0
  58. package/dist/components/tabs.d.ts +9 -0
  59. package/dist/components/tabs.js +52 -0
  60. package/dist/components/tabs.js.map +1 -0
  61. package/dist/components/textarea.d.ts +6 -0
  62. package/dist/components/textarea.js +24 -0
  63. package/dist/components/textarea.js.map +1 -0
  64. package/dist/components/tooltip.d.ts +9 -0
  65. package/dist/components/tooltip.js +29 -0
  66. package/dist/components/tooltip.js.map +1 -0
  67. package/dist/index.d.ts +42 -0
  68. package/dist/index.js +141 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/lib/utils.d.ts +5 -0
  71. package/dist/lib/utils.js +9 -0
  72. package/dist/lib/utils.js.map +1 -0
  73. package/package.json +58 -0
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
3
+
4
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+
6
+ export { Switch };
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
5
+ import { cn } from "../lib/utils";
6
+ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ SwitchPrimitive.Root,
8
+ {
9
+ ref,
10
+ className: cn(
11
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
12
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",
13
+ "disabled:cursor-not-allowed disabled:opacity-50",
14
+ "data-[state=checked]:bg-accent data-[state=unchecked]:bg-border",
15
+ className
16
+ ),
17
+ ...props,
18
+ children: /* @__PURE__ */ jsx(
19
+ SwitchPrimitive.Thumb,
20
+ {
21
+ className: cn(
22
+ "pointer-events-none block h-5 w-5 rounded-full bg-surface shadow-sm ring-0 transition-transform",
23
+ "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
24
+ )
25
+ }
26
+ )
27
+ }
28
+ ));
29
+ Switch.displayName = SwitchPrimitive.Root.displayName;
30
+ export {
31
+ Switch
32
+ };
33
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/switch.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\";\nimport { cn } from \"../lib/utils\";\n\nexport const Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitive.Root\n ref={ref}\n className={cn(\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background\",\n \"disabled:cursor-not-allowed disabled:opacity-50\",\n \"data-[state=checked]:bg-accent data-[state=unchecked]:bg-border\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n className={cn(\n \"pointer-events-none block h-5 w-5 rounded-full bg-surface shadow-sm ring-0 transition-transform\",\n \"data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\",\n )}\n />\n </SwitchPrimitive.Root>\n));\nSwitch.displayName = SwitchPrimitive.Root.displayName;\n"],"mappings":";AAqBI;AAnBJ,YAAY,WAAW;AACvB,YAAY,qBAAqB;AACjC,SAAS,UAAU;AAEZ,MAAM,SAAS,MAAM,WAG1B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,gBAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IAEJ;AAAA,MAAC,gBAAgB;AAAA,MAAhB;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA;AAAA,IACF;AAAA;AACF,CACD;AACD,OAAO,cAAc,gBAAgB,KAAK;","names":[]}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
3
+
4
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+
9
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
5
+ import { cn } from "../lib/utils";
6
+ const Tabs = TabsPrimitive.Root;
7
+ const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8
+ TabsPrimitive.List,
9
+ {
10
+ ref,
11
+ className: cn(
12
+ "inline-flex h-10 items-center justify-center rounded-md bg-surface-secondary p-1 text-muted",
13
+ className
14
+ ),
15
+ ...props
16
+ }
17
+ ));
18
+ TabsList.displayName = TabsPrimitive.List.displayName;
19
+ const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
20
+ TabsPrimitive.Trigger,
21
+ {
22
+ ref,
23
+ className: cn(
24
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all",
25
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",
26
+ "disabled:pointer-events-none disabled:opacity-50",
27
+ "data-[state=active]:bg-surface data-[state=active]:text-foreground data-[state=active]:shadow-diffuse",
28
+ className
29
+ ),
30
+ ...props
31
+ }
32
+ ));
33
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
34
+ const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
35
+ TabsPrimitive.Content,
36
+ {
37
+ ref,
38
+ className: cn(
39
+ "mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
40
+ className
41
+ ),
42
+ ...props
43
+ }
44
+ ));
45
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
46
+ export {
47
+ Tabs,
48
+ TabsContent,
49
+ TabsList,
50
+ TabsTrigger
51
+ };
52
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/tabs.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { cn } from \"../lib/utils\";\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport const 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-surface-secondary p-1 text-muted\",\n className,\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const 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 transition-all\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"data-[state=active]:bg-surface data-[state=active]:text-foreground data-[state=active]:shadow-diffuse\",\n className,\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nexport const 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 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent\",\n className,\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n"],"mappings":";AAYE;AAVF,YAAY,WAAW;AACvB,YAAY,mBAAmB;AAC/B,SAAS,UAAU;AAEZ,MAAM,OAAO,cAAc;AAE3B,MAAM,WAAW,MAAM,WAG5B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,cAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,SAAS,cAAc,cAAc,KAAK;AAEnC,MAAM,cAAc,MAAM,WAG/B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,cAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc,cAAc,QAAQ;AAEzC,MAAM,cAAc,MAAM,WAG/B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,cAAc;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc,cAAc,QAAQ;","names":[]}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+
3
+ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
4
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+
6
+ export { Textarea, type TextareaProps };
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/utils";
5
+ const Textarea = React.forwardRef(
6
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ "textarea",
8
+ {
9
+ ref,
10
+ className: cn(
11
+ "flex min-h-[80px] w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-foreground placeholder:text-muted",
12
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",
13
+ "disabled:cursor-not-allowed disabled:opacity-50",
14
+ className
15
+ ),
16
+ ...props
17
+ }
18
+ )
19
+ );
20
+ Textarea.displayName = "Textarea";
21
+ export {
22
+ Textarea
23
+ };
24
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/textarea.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../lib/utils\";\n\nexport type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nexport const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => (\n <textarea\n ref={ref}\n className={cn(\n \"flex min-h-[80px] w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-foreground placeholder:text-muted\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background\",\n \"disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n />\n ),\n);\nTextarea.displayName = \"Textarea\";\n"],"mappings":";AASI;AAPJ,YAAY,WAAW;AACvB,SAAS,UAAU;AAIZ,MAAM,WAAW,MAAM;AAAA,EAC5B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,SAAS,cAAc;","names":[]}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+
4
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
5
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
6
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+
9
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
5
+ import { cn } from "../lib/utils";
6
+ const TooltipProvider = TooltipPrimitive.Provider;
7
+ const Tooltip = TooltipPrimitive.Root;
8
+ const TooltipTrigger = TooltipPrimitive.Trigger;
9
+ const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ TooltipPrimitive.Content,
11
+ {
12
+ ref,
13
+ sideOffset,
14
+ className: cn(
15
+ "z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5 text-xs text-surface shadow-diffuse",
16
+ "data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0",
17
+ className
18
+ ),
19
+ ...props
20
+ }
21
+ ));
22
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
23
+ export {
24
+ Tooltip,
25
+ TooltipContent,
26
+ TooltipProvider,
27
+ TooltipTrigger
28
+ };
29
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { cn } from \"../lib/utils\";\n\nexport const TooltipProvider = TooltipPrimitive.Provider;\nexport const Tooltip = TooltipPrimitive.Root;\nexport const TooltipTrigger = TooltipPrimitive.Trigger;\n\nexport const TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5 text-xs text-surface shadow-diffuse\",\n \"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n"],"mappings":";AAcE;AAZF,YAAY,WAAW;AACvB,YAAY,sBAAsB;AAClC,SAAS,UAAU;AAEZ,MAAM,kBAAkB,iBAAiB;AACzC,MAAM,UAAU,iBAAiB;AACjC,MAAM,iBAAiB,iBAAiB;AAExC,MAAM,iBAAiB,MAAM,WAGlC,CAAC,EAAE,WAAW,aAAa,GAAG,GAAG,MAAM,GAAG,QAC1C;AAAA,EAAC,iBAAiB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAAc,iBAAiB,QAAQ;","names":[]}
@@ -0,0 +1,42 @@
1
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/accordion.js';
2
+ export { Alert, AlertDescription, AlertTitle } from './components/alert.js';
3
+ export { Avatar, AvatarFallback, AvatarImage } from './components/avatar.js';
4
+ export { Badge, BadgeProps, badgeVariants } from './components/badge.js';
5
+ export { Button, ButtonProps, buttonVariants } from './components/button.js';
6
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/card.js';
7
+ export { Checkbox } from './components/checkbox.js';
8
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/dialog.js';
9
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/dropdown-menu.js';
10
+ export { Input, InputProps } from './components/input.js';
11
+ export { Label } from './components/label.js';
12
+ export { OfflineScreen, OfflineScreenProps } from './components/offline-screen.js';
13
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/popover.js';
14
+ export { RadioGroup, RadioGroupItem } from './components/radio-group.js';
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from './components/select.js';
16
+ export { Separator } from './components/separator.js';
17
+ export { Skeleton } from './components/skeleton.js';
18
+ export { Toaster } from './components/sonner.js';
19
+ export { Switch } from './components/switch.js';
20
+ export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs.js';
21
+ export { Textarea, TextareaProps } from './components/textarea.js';
22
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip.js';
23
+ export { cn } from './lib/utils.js';
24
+ export { toast } from 'sonner';
25
+ import 'react';
26
+ import '@radix-ui/react-accordion';
27
+ import 'class-variance-authority/types';
28
+ import 'class-variance-authority';
29
+ import '@radix-ui/react-avatar';
30
+ import 'react/jsx-runtime';
31
+ import '@radix-ui/react-checkbox';
32
+ import '@radix-ui/react-dialog';
33
+ import '@radix-ui/react-dropdown-menu';
34
+ import '@radix-ui/react-label';
35
+ import '@radix-ui/react-popover';
36
+ import '@radix-ui/react-radio-group';
37
+ import '@radix-ui/react-select';
38
+ import '@radix-ui/react-separator';
39
+ import '@radix-ui/react-switch';
40
+ import '@radix-ui/react-tabs';
41
+ import '@radix-ui/react-tooltip';
42
+ import 'clsx';
package/dist/index.js ADDED
@@ -0,0 +1,141 @@
1
+ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/accordion";
2
+ import { Alert, AlertDescription, AlertTitle } from "./components/alert";
3
+ import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar";
4
+ import { Badge, badgeVariants } from "./components/badge";
5
+ import { Button, buttonVariants } from "./components/button";
6
+ import {
7
+ Card,
8
+ CardContent,
9
+ CardDescription,
10
+ CardFooter,
11
+ CardHeader,
12
+ CardTitle
13
+ } from "./components/card";
14
+ import { Checkbox } from "./components/checkbox";
15
+ import {
16
+ Dialog,
17
+ DialogClose,
18
+ DialogContent,
19
+ DialogDescription,
20
+ DialogFooter,
21
+ DialogHeader,
22
+ DialogOverlay,
23
+ DialogPortal,
24
+ DialogTitle,
25
+ DialogTrigger
26
+ } from "./components/dialog";
27
+ import {
28
+ DropdownMenu,
29
+ DropdownMenuCheckboxItem,
30
+ DropdownMenuContent,
31
+ DropdownMenuGroup,
32
+ DropdownMenuItem,
33
+ DropdownMenuLabel,
34
+ DropdownMenuPortal,
35
+ DropdownMenuRadioGroup,
36
+ DropdownMenuSeparator,
37
+ DropdownMenuSub,
38
+ DropdownMenuSubTrigger,
39
+ DropdownMenuTrigger
40
+ } from "./components/dropdown-menu";
41
+ import { Input } from "./components/input";
42
+ import { Label } from "./components/label";
43
+ import { OfflineScreen } from "./components/offline-screen";
44
+ import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/popover";
45
+ import { RadioGroup, RadioGroupItem } from "./components/radio-group";
46
+ import {
47
+ Select,
48
+ SelectContent,
49
+ SelectGroup,
50
+ SelectItem,
51
+ SelectLabel,
52
+ SelectSeparator,
53
+ SelectTrigger,
54
+ SelectValue
55
+ } from "./components/select";
56
+ import { Separator } from "./components/separator";
57
+ import { Skeleton } from "./components/skeleton";
58
+ import { toast, Toaster } from "./components/sonner";
59
+ import { Switch } from "./components/switch";
60
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs";
61
+ import { Textarea } from "./components/textarea";
62
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip";
63
+ import { cn } from "./lib/utils";
64
+ export {
65
+ Accordion,
66
+ AccordionContent,
67
+ AccordionItem,
68
+ AccordionTrigger,
69
+ Alert,
70
+ AlertDescription,
71
+ AlertTitle,
72
+ Avatar,
73
+ AvatarFallback,
74
+ AvatarImage,
75
+ Badge,
76
+ Button,
77
+ Card,
78
+ CardContent,
79
+ CardDescription,
80
+ CardFooter,
81
+ CardHeader,
82
+ CardTitle,
83
+ Checkbox,
84
+ Dialog,
85
+ DialogClose,
86
+ DialogContent,
87
+ DialogDescription,
88
+ DialogFooter,
89
+ DialogHeader,
90
+ DialogOverlay,
91
+ DialogPortal,
92
+ DialogTitle,
93
+ DialogTrigger,
94
+ DropdownMenu,
95
+ DropdownMenuCheckboxItem,
96
+ DropdownMenuContent,
97
+ DropdownMenuGroup,
98
+ DropdownMenuItem,
99
+ DropdownMenuLabel,
100
+ DropdownMenuPortal,
101
+ DropdownMenuRadioGroup,
102
+ DropdownMenuSeparator,
103
+ DropdownMenuSub,
104
+ DropdownMenuSubTrigger,
105
+ DropdownMenuTrigger,
106
+ Input,
107
+ Label,
108
+ OfflineScreen,
109
+ Popover,
110
+ PopoverAnchor,
111
+ PopoverContent,
112
+ PopoverTrigger,
113
+ RadioGroup,
114
+ RadioGroupItem,
115
+ Select,
116
+ SelectContent,
117
+ SelectGroup,
118
+ SelectItem,
119
+ SelectLabel,
120
+ SelectSeparator,
121
+ SelectTrigger,
122
+ SelectValue,
123
+ Separator,
124
+ Skeleton,
125
+ Switch,
126
+ Tabs,
127
+ TabsContent,
128
+ TabsList,
129
+ TabsTrigger,
130
+ Textarea,
131
+ Toaster,
132
+ Tooltip,
133
+ TooltipContent,
134
+ TooltipProvider,
135
+ TooltipTrigger,
136
+ badgeVariants,
137
+ buttonVariants,
138
+ cn,
139
+ toast
140
+ };
141
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Named re-exports (no `export *`) so consumers' bundlers — especially Next 16's\n// Turbopack — can statically analyze which exports are client (have\n// `\"use client\"`) vs server-safe, and only evaluate what's needed.\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from \"./components/accordion\";\nexport { Alert, AlertDescription, AlertTitle } from \"./components/alert\";\nexport { Avatar, AvatarFallback, AvatarImage } from \"./components/avatar\";\nexport { Badge, badgeVariants, type BadgeProps } from \"./components/badge\";\nexport { Button, buttonVariants, type ButtonProps } from \"./components/button\";\nexport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"./components/card\";\nexport { Checkbox } from \"./components/checkbox\";\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n} from \"./components/dialog\";\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"./components/dropdown-menu\";\nexport { Input, type InputProps } from \"./components/input\";\nexport { Label } from \"./components/label\";\nexport { OfflineScreen, type OfflineScreenProps } from \"./components/offline-screen\";\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from \"./components/popover\";\nexport { RadioGroup, RadioGroupItem } from \"./components/radio-group\";\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"./components/select\";\nexport { Separator } from \"./components/separator\";\nexport { Skeleton } from \"./components/skeleton\";\nexport { toast, Toaster } from \"./components/sonner\";\nexport { Switch } from \"./components/switch\";\nexport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./components/tabs\";\nexport { Textarea, type TextareaProps } from \"./components/textarea\";\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"./components/tooltip\";\nexport { cn } from \"./lib/utils\";\n"],"mappings":"AAIA,SAAS,WAAW,kBAAkB,eAAe,wBAAwB;AAC7E,SAAS,OAAO,kBAAkB,kBAAkB;AACpD,SAAS,QAAQ,gBAAgB,mBAAmB;AACpD,SAAS,OAAO,qBAAsC;AACtD,SAAS,QAAQ,sBAAwC;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAA8B;AACvC,SAAS,aAAa;AACtB,SAAS,qBAA8C;AACvD,SAAS,SAAS,eAAe,gBAAgB,sBAAsB;AACvE,SAAS,YAAY,sBAAsB;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,OAAO,eAAe;AAC/B,SAAS,cAAc;AACvB,SAAS,MAAM,aAAa,UAAU,mBAAmB;AACzD,SAAS,gBAAoC;AAC7C,SAAS,SAAS,gBAAgB,iBAAiB,sBAAsB;AACzE,SAAS,UAAU;","names":[]}
@@ -0,0 +1,5 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1,9 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ export {
7
+ cn
8
+ };
9
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"AAAA,SAAS,YAA6B;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;","names":[]}
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@estiato/ui",
3
+ "version": "0.1.0",
4
+ "description": "Estiato React components — shadcn-based, retokenized to @estiato/tokens.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ }
16
+ },
17
+ "peerDependencies": {
18
+ "react": "^18 || ^19",
19
+ "react-dom": "^18 || ^19",
20
+ "tailwindcss": "^4.0.0"
21
+ },
22
+ "dependencies": {
23
+ "@radix-ui/react-accordion": "^1.2.2",
24
+ "@radix-ui/react-avatar": "^1.1.2",
25
+ "@radix-ui/react-checkbox": "^1.1.3",
26
+ "@radix-ui/react-dialog": "^1.1.4",
27
+ "@radix-ui/react-dropdown-menu": "^2.1.4",
28
+ "@radix-ui/react-label": "^2.1.1",
29
+ "@radix-ui/react-popover": "^1.1.4",
30
+ "@radix-ui/react-radio-group": "^1.2.2",
31
+ "@radix-ui/react-select": "^2.1.4",
32
+ "@radix-ui/react-separator": "^1.1.1",
33
+ "@radix-ui/react-slot": "^1.1.1",
34
+ "@radix-ui/react-switch": "^1.1.2",
35
+ "@radix-ui/react-tabs": "^1.1.2",
36
+ "@radix-ui/react-tooltip": "^1.1.6",
37
+ "class-variance-authority": "^0.7.1",
38
+ "clsx": "^2.1.1",
39
+ "sonner": "^1.7.1",
40
+ "tailwind-merge": "^2.6.0",
41
+ "@estiato/icons": "0.1.0",
42
+ "@estiato/tokens": "0.1.0"
43
+ },
44
+ "devDependencies": {
45
+ "tsup": "^8.3.5",
46
+ "typescript": "^5.7.2",
47
+ "@types/react": "^19.0.2",
48
+ "@types/react-dom": "^19.0.2"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "scripts": {
54
+ "build": "tsup",
55
+ "typecheck": "tsc --noEmit",
56
+ "lint": "echo 'no lint'"
57
+ }
58
+ }