@hilum/ui 3.2.0 → 3.2.1
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/dist/index.js
CHANGED
|
@@ -774,7 +774,7 @@ function ButtonGroup({ children, className }) {
|
|
|
774
774
|
"div",
|
|
775
775
|
{
|
|
776
776
|
className: cn(
|
|
777
|
-
"inline-flex
|
|
777
|
+
"inline-flex items-center gap-0.5 rounded-2xl bg-muted p-1",
|
|
778
778
|
className
|
|
779
779
|
),
|
|
780
780
|
children
|
|
@@ -787,9 +787,10 @@ function ButtonGroupItem({ active, className, children, ...props }) {
|
|
|
787
787
|
{
|
|
788
788
|
type: "button",
|
|
789
789
|
className: cn(
|
|
790
|
-
"relative inline-flex min-h-10 items-center gap-1.5 px-3.5 py-2 body font-medium
|
|
791
|
-
"
|
|
792
|
-
|
|
790
|
+
"relative inline-flex min-h-10 items-center justify-center gap-1.5 rounded-xl px-3.5 py-2 body font-medium",
|
|
791
|
+
"transition-[background-color,box-shadow,color,opacity,scale] active:scale-[0.96]",
|
|
792
|
+
"focus:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30",
|
|
793
|
+
active ? "bg-card text-foreground shadow-natural" : "text-muted-foreground hover:text-foreground",
|
|
793
794
|
className
|
|
794
795
|
),
|
|
795
796
|
...props,
|