tokka-ui 0.2.2 → 0.3.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/dist/alert-dialog.d.ts +5 -1
- package/dist/alert-dialog.js +13 -1
- package/dist/avatar.d.ts +4 -1
- package/dist/avatar.js +36 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.js +2 -2
- package/dist/card.d.ts +3 -2
- package/dist/card.js +11 -1
- package/dist/carousel.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/{chunk-QBAV4RWS.js → chunk-A7UVRY2Z.js} +1 -1
- package/dist/{chunk-HHN2GS4U.js → chunk-CR3N6JKY.js} +1 -1
- package/dist/{chunk-BOKKBA25.js → chunk-ETVGPIML.js} +35 -1
- package/dist/{chunk-63HUTNB3.js → chunk-UFTU4NA7.js} +2 -2
- package/dist/{chunk-DVPPDIDA.js → chunk-XWKD7TFC.js} +13 -9
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +9 -1
- package/dist/data-table.js +1 -1
- package/dist/date-picker.d.ts +1 -1
- package/dist/date-picker.js +11 -3
- package/dist/drawer.js +1 -1
- package/dist/dropdown-menu.d.ts +1 -0
- package/dist/dropdown-menu.js +2 -1
- package/dist/field.d.ts +9 -0
- package/dist/field.js +62 -0
- package/dist/hover-card.js +2 -2
- package/dist/input.js +2 -2
- package/dist/native-select.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.d.ts +9 -1
- package/dist/popover.js +9 -1
- package/dist/progress.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/select.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.js +2 -2
- package/dist/textarea.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +7 -3
- package/package.json +7 -2
- package/src/alert-dialog.tsx +12 -0
- package/src/avatar.tsx +43 -1
- package/src/breadcrumb.tsx +1 -1
- package/src/button.tsx +13 -9
- package/src/card.tsx +16 -4
- package/src/checkbox.tsx +2 -2
- package/src/drawer.tsx +1 -1
- package/src/dropdown-menu.tsx +3 -1
- package/src/field.tsx +67 -0
- package/src/hover-card.tsx +12 -10
- package/src/input.tsx +2 -2
- package/src/native-select.tsx +1 -1
- package/src/popover.tsx +38 -1
- package/src/progress.tsx +1 -1
- package/src/radio-group.tsx +1 -1
- package/src/scroll-area.tsx +1 -1
- package/src/select.tsx +1 -1
- package/src/slider.tsx +1 -1
- package/src/switch.tsx +1 -1
- package/src/table.tsx +2 -2
- package/src/tabs.tsx +2 -2
- package/src/textarea.tsx +1 -1
- package/src/toggle.tsx +1 -1
- package/src/tooltip.tsx +5 -2
package/src/tabs.tsx
CHANGED
|
@@ -26,7 +26,7 @@ const TabsTrigger = React.forwardRef<
|
|
|
26
26
|
<TabsPrimitive.Trigger
|
|
27
27
|
ref={ref}
|
|
28
28
|
className={cn(
|
|
29
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-
|
|
29
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
30
30
|
className
|
|
31
31
|
)}
|
|
32
32
|
{...props}
|
|
@@ -41,7 +41,7 @@ const TabsContent = React.forwardRef<
|
|
|
41
41
|
<TabsPrimitive.Content
|
|
42
42
|
ref={ref}
|
|
43
43
|
className={cn(
|
|
44
|
-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-
|
|
44
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
45
45
|
className
|
|
46
46
|
)}
|
|
47
47
|
{...props}
|
package/src/textarea.tsx
CHANGED
|
@@ -9,7 +9,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
|
9
9
|
return (
|
|
10
10
|
<textarea
|
|
11
11
|
className={cn(
|
|
12
|
-
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-
|
|
12
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
13
13
|
className
|
|
14
14
|
)}
|
|
15
15
|
ref={ref}
|
package/src/toggle.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority"
|
|
|
4
4
|
import { cn } from "./lib/utils"
|
|
5
5
|
|
|
6
6
|
const toggleVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-
|
|
7
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
package/src/tooltip.tsx
CHANGED
|
@@ -11,7 +11,7 @@ const TooltipTrigger = TooltipPrimitive.Trigger
|
|
|
11
11
|
const TooltipContent = React.forwardRef<
|
|
12
12
|
React.ElementRef<typeof TooltipPrimitive.Content>,
|
|
13
13
|
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
|
14
|
-
>(({ className, sideOffset =
|
|
14
|
+
>(({ className, sideOffset = 0, ...props }, ref) => (
|
|
15
15
|
<TooltipPrimitive.Content
|
|
16
16
|
ref={ref}
|
|
17
17
|
sideOffset={sideOffset}
|
|
@@ -20,7 +20,10 @@ const TooltipContent = React.forwardRef<
|
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
22
22
|
{...props}
|
|
23
|
-
|
|
23
|
+
>
|
|
24
|
+
{props.children}
|
|
25
|
+
<TooltipPrimitive.Arrow className="fill-border" />
|
|
26
|
+
</TooltipPrimitive.Content>
|
|
24
27
|
))
|
|
25
28
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName
|
|
26
29
|
|