@beemafrica/ui 0.1.0 → 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.
- package/package.json +3 -3
- package/src/components/accordion.tsx +1 -1
- package/src/components/avatar.tsx +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/card.tsx +1 -1
- package/src/components/dialog.tsx +3 -3
- package/src/components/field.tsx +4 -4
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +2 -3
- package/src/components/pagination.tsx +9 -7
- package/src/components/separator.tsx +2 -3
- package/src/components/table.tsx +1 -1
- package/src/components/tabs.tsx +3 -4
- package/src/components/textarea.tsx +1 -1
- package/src/components/ticket.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beemafrica/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared Beem UI components built on shadcn/Radix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"typecheck": "tsc --noEmit",
|
|
11
11
|
"pack:local": "npm pack"
|
package/src/components/card.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "@
|
|
4
|
-
import { cn } from "@
|
|
3
|
+
import { Button } from "@beemafrica/ui/components/button"
|
|
4
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
5
5
|
import { XIcon } from "lucide-react"
|
|
6
6
|
import { Dialog as DialogPrimitive } from "radix-ui"
|
|
7
7
|
import type * as React from "react"
|
|
@@ -108,7 +108,7 @@ function DialogFooter({
|
|
|
108
108
|
<div
|
|
109
109
|
data-slot="dialog-footer"
|
|
110
110
|
className={cn(
|
|
111
|
-
"-mx-12 -mb-12 flex flex-col-reverse gap-2 rounded-b-xl border-t
|
|
111
|
+
"-mx-12 -mb-12 flex flex-col-reverse gap-2 rounded-b-xl border-t px-12 pb-12 pt-4 sm:flex-row sm:justify-end",
|
|
112
112
|
className
|
|
113
113
|
)}
|
|
114
114
|
{...props}
|
package/src/components/field.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Label } from "@
|
|
4
|
-
import { Separator } from "@
|
|
3
|
+
import { Label } from "@beemafrica/ui/components/label"
|
|
4
|
+
import { Separator } from "@beemafrica/ui/components/separator"
|
|
5
5
|
|
|
6
|
-
import { cn } from "@
|
|
6
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
7
7
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
8
8
|
import { useMemo } from "react"
|
|
9
9
|
|
|
@@ -194,7 +194,7 @@ function FieldError({
|
|
|
194
194
|
...new Map(errors.map((error) => [error?.message, error])).values(),
|
|
195
195
|
]
|
|
196
196
|
|
|
197
|
-
if (uniqueErrors?.length
|
|
197
|
+
if (uniqueErrors?.length === 1) {
|
|
198
198
|
return uniqueErrors[0]?.message
|
|
199
199
|
}
|
|
200
200
|
|
package/src/components/input.tsx
CHANGED
package/src/components/label.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
4
4
|
import { Label as LabelPrimitive } from "radix-ui"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@beem/ui/lib/utils"
|
|
5
|
+
import type * as React from "react"
|
|
7
6
|
|
|
8
7
|
function Label({
|
|
9
8
|
className,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Button } from "@beemafrica/ui/components/button"
|
|
2
2
|
|
|
3
|
-
import { cn } from "@
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
4
|
+
import {
|
|
5
|
+
ChevronLeftIcon,
|
|
6
|
+
ChevronRightIcon,
|
|
7
|
+
MoreHorizontalIcon,
|
|
8
|
+
} from "lucide-react"
|
|
9
|
+
import type * as React from "react"
|
|
6
10
|
|
|
7
11
|
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
|
|
8
12
|
return (
|
|
9
13
|
<nav
|
|
10
|
-
role="navigation"
|
|
11
14
|
aria-label="pagination"
|
|
12
15
|
data-slot="pagination"
|
|
13
16
|
className={cn("mx-auto flex w-full justify-center", className)}
|
|
@@ -111,8 +114,7 @@ function PaginationEllipsis({
|
|
|
111
114
|
)}
|
|
112
115
|
{...props}
|
|
113
116
|
>
|
|
114
|
-
<MoreHorizontalIcon
|
|
115
|
-
/>
|
|
117
|
+
<MoreHorizontalIcon />
|
|
116
118
|
<span className="sr-only">More pages</span>
|
|
117
119
|
</span>
|
|
118
120
|
)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
4
4
|
import { Separator as SeparatorPrimitive } from "radix-ui"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@beem/ui/lib/utils"
|
|
5
|
+
import type * as React from "react"
|
|
7
6
|
|
|
8
7
|
function Separator({
|
|
9
8
|
className,
|
package/src/components/table.tsx
CHANGED
package/src/components/tabs.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
4
4
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
5
5
|
import { Tabs as TabsPrimitive } from "radix-ui"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@beem/ui/lib/utils"
|
|
6
|
+
import type * as React from "react"
|
|
8
7
|
|
|
9
8
|
function Tabs({
|
|
10
9
|
className,
|
|
@@ -87,4 +86,4 @@ function TabsContent({
|
|
|
87
86
|
)
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
export { Tabs, TabsList, TabsTrigger,
|
|
89
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Avatar, AvatarFallback } from "@
|
|
2
|
-
import { Button } from "@
|
|
1
|
+
import { Avatar, AvatarFallback } from "@beemafrica/ui/components/avatar"
|
|
2
|
+
import { Button } from "@beemafrica/ui/components/button"
|
|
3
3
|
import {
|
|
4
4
|
Collapsible,
|
|
5
5
|
CollapsibleContent,
|
|
6
6
|
CollapsibleTrigger,
|
|
7
|
-
} from "@
|
|
8
|
-
import { cn } from "@
|
|
7
|
+
} from "@beemafrica/ui/components/collapsible"
|
|
8
|
+
import { cn } from "@beemafrica/ui/lib/utils"
|
|
9
9
|
import { ChevronRightIcon } from "lucide-react"
|
|
10
10
|
|
|
11
11
|
interface History {
|