@hilum/ui 3.2.0 → 3.2.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/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/button-group.tsx +6 -5
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ function ButtonGroup({ children, className }: ButtonGroupProps) {
|
|
|
10
10
|
return (
|
|
11
11
|
<div
|
|
12
12
|
className={cn(
|
|
13
|
-
"inline-flex
|
|
13
|
+
"inline-flex items-center gap-0.5 rounded-xl bg-muted p-0.5",
|
|
14
14
|
className,
|
|
15
15
|
)}
|
|
16
16
|
>
|
|
@@ -28,11 +28,12 @@ function ButtonGroupItem({ active, className, children, ...props }: ButtonGroupI
|
|
|
28
28
|
<button
|
|
29
29
|
type="button"
|
|
30
30
|
className={cn(
|
|
31
|
-
"relative inline-flex min-h-
|
|
32
|
-
"
|
|
31
|
+
"relative inline-flex min-h-8 items-center justify-center gap-1 rounded-[10px] px-3 py-1 body-sm font-medium",
|
|
32
|
+
"transition-[background-color,box-shadow,color,opacity,scale] active:scale-[0.96]",
|
|
33
|
+
"focus:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30",
|
|
33
34
|
active
|
|
34
|
-
? "bg-
|
|
35
|
-
: "text-muted-foreground hover:
|
|
35
|
+
? "bg-card text-foreground shadow-natural"
|
|
36
|
+
: "text-muted-foreground hover:text-foreground",
|
|
36
37
|
className,
|
|
37
38
|
)}
|
|
38
39
|
{...props}
|