@meith/ui 0.6.0 → 0.8.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.
- package/package.json +1 -1
- package/src/badge.tsx +1 -1
- package/src/button.tsx +1 -1
- package/src/field.tsx +1 -0
- package/src/index.ts +9 -18
- package/src/utils.ts +1 -1
package/package.json
CHANGED
package/src/badge.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from './utils'
|
|
2
|
-
import {
|
|
2
|
+
import { type BadgeVariants, badgeVariants } from './variants'
|
|
3
3
|
|
|
4
4
|
function Badge({ className, tone, ...props }: React.ComponentProps<'span'> & BadgeVariants) {
|
|
5
5
|
return <span data-slot="badge" className={cn(badgeVariants({ tone }), className)} {...props} />
|
package/src/button.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Button as ButtonPrimitive } from '@base-ui/react/button'
|
|
4
4
|
|
|
5
5
|
import { cn } from './utils'
|
|
6
|
-
import {
|
|
6
|
+
import { type ButtonVariants, buttonVariants } from './variants'
|
|
7
7
|
|
|
8
8
|
export type ButtonProps = ButtonPrimitive.Props & ButtonVariants
|
|
9
9
|
|
package/src/field.tsx
CHANGED
|
@@ -37,6 +37,7 @@ function NativeSelect({ className, ...props }: React.ComponentProps<'select'>) {
|
|
|
37
37
|
|
|
38
38
|
function Label({ className, ...props }: React.ComponentProps<'label'>) {
|
|
39
39
|
return (
|
|
40
|
+
// biome-ignore lint/a11y/noLabelWithoutControl: the Label primitive itself — its caller supplies the control it wraps
|
|
40
41
|
<label
|
|
41
42
|
data-slot="label"
|
|
42
43
|
className={cn('text-sm font-medium leading-none text-foreground select-none', className)}
|
package/src/index.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
export { cn } from './utils'
|
|
2
|
-
|
|
3
|
-
export { buttonVariants, badgeVariants } from './variants'
|
|
4
|
-
export type { ButtonVariants, BadgeVariants } from './variants'
|
|
5
|
-
|
|
6
|
-
export { Alert, AlertDescription, AlertTitle, alertVariants } from './alert'
|
|
7
1
|
export type { AlertTone } from './alert'
|
|
8
|
-
|
|
9
|
-
export { Avatar } from './avatar'
|
|
2
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from './alert'
|
|
10
3
|
export type { AvatarProps } from './avatar'
|
|
11
|
-
|
|
4
|
+
export { Avatar } from './avatar'
|
|
12
5
|
export { Badge } from './badge'
|
|
13
|
-
|
|
6
|
+
export type { CardProps } from './card'
|
|
14
7
|
export {
|
|
15
8
|
Card,
|
|
16
9
|
CardAction,
|
|
@@ -21,15 +14,13 @@ export {
|
|
|
21
14
|
CardRows,
|
|
22
15
|
CardTitle,
|
|
23
16
|
} from './card'
|
|
24
|
-
export type { CardProps } from './card'
|
|
25
|
-
|
|
26
|
-
export { Disclosure } from './disclosure'
|
|
27
17
|
export type { DisclosureProps } from './disclosure'
|
|
28
|
-
|
|
18
|
+
export { Disclosure } from './disclosure'
|
|
29
19
|
export { Empty, EmptyAction, EmptyDescription, EmptyTitle } from './empty'
|
|
30
|
-
|
|
31
|
-
export { Field, Input, Label, NativeSelect, Textarea } from './field'
|
|
32
20
|
export type { FieldProps } from './field'
|
|
33
|
-
|
|
34
|
-
export { Separator } from './separator'
|
|
21
|
+
export { Field, Input, Label, NativeSelect, Textarea } from './field'
|
|
35
22
|
export type { SeparatorProps } from './separator'
|
|
23
|
+
export { Separator } from './separator'
|
|
24
|
+
export { cn } from './utils'
|
|
25
|
+
export type { BadgeVariants, ButtonVariants } from './variants'
|
|
26
|
+
export { badgeVariants, buttonVariants } from './variants'
|
package/src/utils.ts
CHANGED