@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 CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@beemafrica/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Shared Beem UI components built on shadcn/Radix",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
- "access": "public"
8
- },
7
+ "access": "public"
8
+ },
9
9
  "scripts": {
10
10
  "typecheck": "tsc --noEmit",
11
11
  "pack:local": "npm pack"
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
 
3
- import { cn } from "@beem/ui/lib/utils"
3
+ import { cn } from "@beemafrica/ui/lib/utils"
4
4
  import { ChevronDownIcon, ChevronUpIcon } from "lucide-react"
5
5
  import { Accordion as AccordionPrimitive } from "radix-ui"
6
6
  import type * as React from "react"
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
 
3
- import { cn } from "@beem/ui/lib/utils"
3
+ import { cn } from "@beemafrica/ui/lib/utils"
4
4
  import { Avatar as AvatarPrimitive } from "radix-ui"
5
5
  import type * as React from "react"
6
6
 
@@ -1,4 +1,4 @@
1
- import { cn } from "@beem/ui/lib/utils"
1
+ import { cn } from "@beemafrica/ui/lib/utils"
2
2
  import { cva, type VariantProps } from "class-variance-authority"
3
3
  import { Slot } from "radix-ui"
4
4
  import type * as React from "react"
@@ -1,4 +1,4 @@
1
- import { cn } from "@beem/ui/lib/utils"
1
+ import { cn } from "@beemafrica/ui/lib/utils"
2
2
  import type * as React from "react"
3
3
 
4
4
  function Card({
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
 
3
- import { Button } from "@beem/ui/components/button"
4
- import { cn } from "@beem/ui/lib/utils"
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 bg-muted/50 px-12 pb-12 pt-4 sm:flex-row sm:justify-end",
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}
@@ -1,9 +1,9 @@
1
1
  "use client"
2
2
 
3
- import { Label } from "@beem/ui/components/label"
4
- import { Separator } from "@beem/ui/components/separator"
3
+ import { Label } from "@beemafrica/ui/components/label"
4
+ import { Separator } from "@beemafrica/ui/components/separator"
5
5
 
6
- import { cn } from "@beem/ui/lib/utils"
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 == 1) {
197
+ if (uniqueErrors?.length === 1) {
198
198
  return uniqueErrors[0]?.message
199
199
  }
200
200
 
@@ -1,4 +1,4 @@
1
- import { cn } from "@beem/ui/lib/utils"
1
+ import { cn } from "@beemafrica/ui/lib/utils"
2
2
  import type * as React from "react"
3
3
 
4
4
  function Input({ className, type, ...props }: React.ComponentProps<"input">) {
@@ -1,9 +1,8 @@
1
1
  "use client"
2
2
 
3
- import * as React from "react"
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 * as React from "react"
1
+ import { Button } from "@beemafrica/ui/components/button"
2
2
 
3
- import { cn } from "@beem/ui/lib/utils"
4
- import { Button } from "@beem/ui/components/button"
5
- import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
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 * as React from "react"
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,
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
 
3
- import { cn } from "@beem/ui/lib/utils"
3
+ import { cn } from "@beemafrica/ui/lib/utils"
4
4
  import type * as React from "react"
5
5
 
6
6
  function Table({ className, ...props }: React.ComponentProps<"table">) {
@@ -1,10 +1,9 @@
1
1
  "use client"
2
2
 
3
- import * as React from "react"
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, TabsContent, tabsListVariants }
89
+ export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants }
@@ -1,4 +1,4 @@
1
- import { cn } from "@beem/ui/lib/utils"
1
+ import { cn } from "@beemafrica/ui/lib/utils"
2
2
  import type * as React from "react"
3
3
 
4
4
  function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
@@ -1,11 +1,11 @@
1
- import { Avatar, AvatarFallback } from "@beem/ui/components/avatar"
2
- import { Button } from "@beem/ui/components/button"
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 "@beem/ui/components/collapsible"
8
- import { cn } from "@beem/ui/lib/utils"
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 {