ui-arreya-components 0.0.15 → 0.1.2

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 (103) hide show
  1. package/dist/index.d.mts +342 -0
  2. package/dist/index.d.ts +342 -0
  3. package/dist/index.js +1682 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1495 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +61 -106
  8. package/.storybook/main.ts +0 -18
  9. package/.storybook/preview.ts +0 -16
  10. package/.storybook/vitest.setup.ts +0 -9
  11. package/README.md +0 -54
  12. package/components.json +0 -21
  13. package/dist/styles.css +0 -3
  14. package/dist/ui.cjs.js +0 -119
  15. package/dist/ui.es.js +0 -7364
  16. package/dist/ui.umd.js +0 -119
  17. package/eslint.config.js +0 -28
  18. package/postcss.config.js +0 -6
  19. package/scripts/template.sh +0 -57
  20. package/src/components/feature/header.stories.tsx +0 -129
  21. package/src/components/feature/header.tsx +0 -78
  22. package/src/components/feature/login-form.stories.tsx +0 -35
  23. package/src/components/feature/login-form.tsx +0 -97
  24. package/src/components/index.ts +0 -1
  25. package/src/components/ui/accordion.stories.tsx.disabled +0 -36
  26. package/src/components/ui/accordion.tsx +0 -55
  27. package/src/components/ui/alert-dialog.stories.tsx +0 -46
  28. package/src/components/ui/alert-dialog.tsx +0 -139
  29. package/src/components/ui/alert.stories.tsx +0 -45
  30. package/src/components/ui/alert.tsx +0 -59
  31. package/src/components/ui/aspect-ratio.stories.tsx +0 -24
  32. package/src/components/ui/aspect-ratio.tsx +0 -5
  33. package/src/components/ui/avatar.stories.tsx +0 -29
  34. package/src/components/ui/avatar.tsx +0 -48
  35. package/src/components/ui/badge.stories.tsx +0 -43
  36. package/src/components/ui/badge.tsx +0 -36
  37. package/src/components/ui/breadcrumb.stories.tsx +0 -146
  38. package/src/components/ui/breadcrumb.tsx +0 -115
  39. package/src/components/ui/button.stories.tsx +0 -87
  40. package/src/components/ui/button.tsx +0 -57
  41. package/src/components/ui/card.stories.tsx +0 -99
  42. package/src/components/ui/card.tsx +0 -76
  43. package/src/components/ui/carousel.stories.tsx +0 -47
  44. package/src/components/ui/carousel.tsx +0 -260
  45. package/src/components/ui/chart.stories.tsx.disabled +0 -44
  46. package/src/components/ui/chart.tsx +0 -363
  47. package/src/components/ui/checkbox.stories.tsx +0 -56
  48. package/src/components/ui/checkbox.tsx +0 -28
  49. package/src/components/ui/collapsible.stories.tsx +0 -58
  50. package/src/components/ui/collapsible.tsx +0 -9
  51. package/src/components/ui/context-menu.stories.tsx +0 -34
  52. package/src/components/ui/context-menu.tsx +0 -198
  53. package/src/components/ui/dialog.stories.tsx +0 -40
  54. package/src/components/ui/dialog.tsx +0 -120
  55. package/src/components/ui/drawer.stories.tsx +0 -48
  56. package/src/components/ui/drawer.tsx +0 -116
  57. package/src/components/ui/dropdown-menu.stories.tsx +0 -92
  58. package/src/components/ui/dropdown-menu.tsx +0 -199
  59. package/src/components/ui/form.tsx +0 -176
  60. package/src/components/ui/hover-card.stories.tsx +0 -31
  61. package/src/components/ui/hover-card.tsx +0 -27
  62. package/src/components/ui/index.ts +0 -1
  63. package/src/components/ui/input-otp.tsx +0 -69
  64. package/src/components/ui/input.stories.tsx +0 -63
  65. package/src/components/ui/input.tsx +0 -22
  66. package/src/components/ui/label.tsx +0 -24
  67. package/src/components/ui/menubar.tsx +0 -254
  68. package/src/components/ui/navigation-menu.tsx +0 -128
  69. package/src/components/ui/pagination.tsx +0 -117
  70. package/src/components/ui/popover.tsx +0 -31
  71. package/src/components/ui/progress.tsx +0 -26
  72. package/src/components/ui/radio-group.tsx +0 -42
  73. package/src/components/ui/resizable.tsx +0 -43
  74. package/src/components/ui/scroll-area.tsx +0 -46
  75. package/src/components/ui/select.tsx +0 -157
  76. package/src/components/ui/separator.tsx +0 -29
  77. package/src/components/ui/sheet.tsx +0 -140
  78. package/src/components/ui/sidebar.tsx +0 -771
  79. package/src/components/ui/skeleton.tsx +0 -15
  80. package/src/components/ui/slider.tsx +0 -26
  81. package/src/components/ui/sonner.tsx +0 -29
  82. package/src/components/ui/switch.tsx +0 -27
  83. package/src/components/ui/table.tsx +0 -120
  84. package/src/components/ui/tabs.tsx +0 -53
  85. package/src/components/ui/textarea.tsx +0 -22
  86. package/src/components/ui/toast.tsx +0 -127
  87. package/src/components/ui/toaster.tsx +0 -33
  88. package/src/components/ui/toggle-group.tsx +0 -59
  89. package/src/components/ui/toggle.tsx +0 -43
  90. package/src/components/ui/tooltip.tsx +0 -30
  91. package/src/hooks/use-mobile.tsx +0 -19
  92. package/src/hooks/use-toast.ts +0 -194
  93. package/src/index.css +0 -3509
  94. package/src/index.ts +0 -51
  95. package/src/lib/types.ts +0 -5
  96. package/src/lib/utils.ts +0 -6
  97. package/src/styles/tailwind.css +0 -100
  98. package/tailwind.config.js +0 -96
  99. package/tsconfig.app.json +0 -30
  100. package/tsconfig.json +0 -13
  101. package/tsconfig.node.json +0 -24
  102. package/vite.config.ts +0 -33
  103. package/vitest.workspace.ts +0 -32
@@ -1,157 +0,0 @@
1
- import * as React from "react"
2
- import * as SelectPrimitive from "@radix-ui/react-select"
3
- import { Check, ChevronDown, ChevronUp } from "lucide-react"
4
-
5
- import { cn } from "@/lib/utils"
6
-
7
- const Select = SelectPrimitive.Root
8
-
9
- const SelectGroup = SelectPrimitive.Group
10
-
11
- const SelectValue = SelectPrimitive.Value
12
-
13
- const SelectTrigger = React.forwardRef<
14
- React.ElementRef<typeof SelectPrimitive.Trigger>,
15
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
16
- >(({ className, children, ...props }, ref) => (
17
- <SelectPrimitive.Trigger
18
- ref={ref}
19
- className={cn(
20
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
21
- className
22
- )}
23
- {...props}
24
- >
25
- {children}
26
- <SelectPrimitive.Icon asChild>
27
- <ChevronDown className="h-4 w-4 opacity-50" />
28
- </SelectPrimitive.Icon>
29
- </SelectPrimitive.Trigger>
30
- ))
31
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
32
-
33
- const SelectScrollUpButton = React.forwardRef<
34
- React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
35
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
36
- >(({ className, ...props }, ref) => (
37
- <SelectPrimitive.ScrollUpButton
38
- ref={ref}
39
- className={cn(
40
- "flex cursor-default items-center justify-center py-1",
41
- className
42
- )}
43
- {...props}
44
- >
45
- <ChevronUp className="h-4 w-4" />
46
- </SelectPrimitive.ScrollUpButton>
47
- ))
48
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
49
-
50
- const SelectScrollDownButton = React.forwardRef<
51
- React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
52
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
53
- >(({ className, ...props }, ref) => (
54
- <SelectPrimitive.ScrollDownButton
55
- ref={ref}
56
- className={cn(
57
- "flex cursor-default items-center justify-center py-1",
58
- className
59
- )}
60
- {...props}
61
- >
62
- <ChevronDown className="h-4 w-4" />
63
- </SelectPrimitive.ScrollDownButton>
64
- ))
65
- SelectScrollDownButton.displayName =
66
- SelectPrimitive.ScrollDownButton.displayName
67
-
68
- const SelectContent = React.forwardRef<
69
- React.ElementRef<typeof SelectPrimitive.Content>,
70
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
71
- >(({ className, children, position = "popper", ...props }, ref) => (
72
- <SelectPrimitive.Portal>
73
- <SelectPrimitive.Content
74
- ref={ref}
75
- className={cn(
76
- "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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 origin-[--radix-select-content-transform-origin]",
77
- position === "popper" &&
78
- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
79
- className
80
- )}
81
- position={position}
82
- {...props}
83
- >
84
- <SelectScrollUpButton />
85
- <SelectPrimitive.Viewport
86
- className={cn(
87
- "p-1",
88
- position === "popper" &&
89
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
90
- )}
91
- >
92
- {children}
93
- </SelectPrimitive.Viewport>
94
- <SelectScrollDownButton />
95
- </SelectPrimitive.Content>
96
- </SelectPrimitive.Portal>
97
- ))
98
- SelectContent.displayName = SelectPrimitive.Content.displayName
99
-
100
- const SelectLabel = React.forwardRef<
101
- React.ElementRef<typeof SelectPrimitive.Label>,
102
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
103
- >(({ className, ...props }, ref) => (
104
- <SelectPrimitive.Label
105
- ref={ref}
106
- className={cn("px-2 py-1.5 text-sm font-semibold", className)}
107
- {...props}
108
- />
109
- ))
110
- SelectLabel.displayName = SelectPrimitive.Label.displayName
111
-
112
- const SelectItem = React.forwardRef<
113
- React.ElementRef<typeof SelectPrimitive.Item>,
114
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
115
- >(({ className, children, ...props }, ref) => (
116
- <SelectPrimitive.Item
117
- ref={ref}
118
- className={cn(
119
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
120
- className
121
- )}
122
- {...props}
123
- >
124
- <span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
125
- <SelectPrimitive.ItemIndicator>
126
- <Check className="h-4 w-4" />
127
- </SelectPrimitive.ItemIndicator>
128
- </span>
129
- <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
130
- </SelectPrimitive.Item>
131
- ))
132
- SelectItem.displayName = SelectPrimitive.Item.displayName
133
-
134
- const SelectSeparator = React.forwardRef<
135
- React.ElementRef<typeof SelectPrimitive.Separator>,
136
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
137
- >(({ className, ...props }, ref) => (
138
- <SelectPrimitive.Separator
139
- ref={ref}
140
- className={cn("-mx-1 my-1 h-px bg-muted", className)}
141
- {...props}
142
- />
143
- ))
144
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName
145
-
146
- export {
147
- Select,
148
- SelectGroup,
149
- SelectValue,
150
- SelectTrigger,
151
- SelectContent,
152
- SelectLabel,
153
- SelectItem,
154
- SelectSeparator,
155
- SelectScrollUpButton,
156
- SelectScrollDownButton,
157
- }
@@ -1,29 +0,0 @@
1
- import * as React from "react"
2
- import * as SeparatorPrimitive from "@radix-ui/react-separator"
3
-
4
- import { cn } from "@/lib/utils"
5
-
6
- const Separator = React.forwardRef<
7
- React.ElementRef<typeof SeparatorPrimitive.Root>,
8
- React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
9
- >(
10
- (
11
- { className, orientation = "horizontal", decorative = true, ...props },
12
- ref
13
- ) => (
14
- <SeparatorPrimitive.Root
15
- ref={ref}
16
- decorative={decorative}
17
- orientation={orientation}
18
- className={cn(
19
- "shrink-0 bg-border",
20
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
21
- className
22
- )}
23
- {...props}
24
- />
25
- )
26
- )
27
- Separator.displayName = SeparatorPrimitive.Root.displayName
28
-
29
- export { Separator }
@@ -1,140 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import * as SheetPrimitive from "@radix-ui/react-dialog"
5
- import { cva, type VariantProps } from "class-variance-authority"
6
- import { X } from "lucide-react"
7
-
8
- import { cn } from "@/lib/utils"
9
-
10
- const Sheet = SheetPrimitive.Root
11
-
12
- const SheetTrigger = SheetPrimitive.Trigger
13
-
14
- const SheetClose = SheetPrimitive.Close
15
-
16
- const SheetPortal = SheetPrimitive.Portal
17
-
18
- const SheetOverlay = React.forwardRef<
19
- React.ElementRef<typeof SheetPrimitive.Overlay>,
20
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
21
- >(({ className, ...props }, ref) => (
22
- <SheetPrimitive.Overlay
23
- className={cn(
24
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
25
- className
26
- )}
27
- {...props}
28
- ref={ref}
29
- />
30
- ))
31
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
32
-
33
- const sheetVariants = cva(
34
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
35
- {
36
- variants: {
37
- side: {
38
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
39
- bottom:
40
- "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
41
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
42
- right:
43
- "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
44
- },
45
- },
46
- defaultVariants: {
47
- side: "right",
48
- },
49
- }
50
- )
51
-
52
- interface SheetContentProps
53
- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
54
- VariantProps<typeof sheetVariants> {}
55
-
56
- const SheetContent = React.forwardRef<
57
- React.ElementRef<typeof SheetPrimitive.Content>,
58
- SheetContentProps
59
- >(({ side = "right", className, children, ...props }, ref) => (
60
- <SheetPortal>
61
- <SheetOverlay />
62
- <SheetPrimitive.Content
63
- ref={ref}
64
- className={cn(sheetVariants({ side }), className)}
65
- {...props}
66
- >
67
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
68
- <X className="h-4 w-4" />
69
- <span className="sr-only">Close</span>
70
- </SheetPrimitive.Close>
71
- {children}
72
- </SheetPrimitive.Content>
73
- </SheetPortal>
74
- ))
75
- SheetContent.displayName = SheetPrimitive.Content.displayName
76
-
77
- const SheetHeader = ({
78
- className,
79
- ...props
80
- }: React.HTMLAttributes<HTMLDivElement>) => (
81
- <div
82
- className={cn(
83
- "flex flex-col space-y-2 text-center sm:text-left",
84
- className
85
- )}
86
- {...props}
87
- />
88
- )
89
- SheetHeader.displayName = "SheetHeader"
90
-
91
- const SheetFooter = ({
92
- className,
93
- ...props
94
- }: React.HTMLAttributes<HTMLDivElement>) => (
95
- <div
96
- className={cn(
97
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
98
- className
99
- )}
100
- {...props}
101
- />
102
- )
103
- SheetFooter.displayName = "SheetFooter"
104
-
105
- const SheetTitle = React.forwardRef<
106
- React.ElementRef<typeof SheetPrimitive.Title>,
107
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
108
- >(({ className, ...props }, ref) => (
109
- <SheetPrimitive.Title
110
- ref={ref}
111
- className={cn("text-lg font-semibold text-foreground", className)}
112
- {...props}
113
- />
114
- ))
115
- SheetTitle.displayName = SheetPrimitive.Title.displayName
116
-
117
- const SheetDescription = React.forwardRef<
118
- React.ElementRef<typeof SheetPrimitive.Description>,
119
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
120
- >(({ className, ...props }, ref) => (
121
- <SheetPrimitive.Description
122
- ref={ref}
123
- className={cn("text-sm text-muted-foreground", className)}
124
- {...props}
125
- />
126
- ))
127
- SheetDescription.displayName = SheetPrimitive.Description.displayName
128
-
129
- export {
130
- Sheet,
131
- SheetPortal,
132
- SheetOverlay,
133
- SheetTrigger,
134
- SheetClose,
135
- SheetContent,
136
- SheetHeader,
137
- SheetFooter,
138
- SheetTitle,
139
- SheetDescription,
140
- }