@gearbox-protocol/ui-kit 4.0.0-next.82 → 4.0.0-next.83
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=require("../../../utils/cn.cjs");require("@gearbox-protocol/sdk/onchain");require("../../../utils/z-index.cjs");const d=r.cva("inline-flex items-center justify-center gap-2 whitespace-normal text-center rounded-md text-sm font-medium transition-colors cursor-pointer disabled:!cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([style*='width']):not([style*='height'])]:size-4 [&_svg]:shrink-0 border border-transparent outline-none focus-visible:outline-none",{variants:{variant:{default:e.cn("text-primary-foreground bg-primary border border-primary","hover:bg-accent hover:border-accent","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 disabled:opacity-50",outline:e.cn("text-primary-foreground bg-transparent border border-gray-40","hover:bg-gray-60 hover:border-gray-60","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 disabled:opacity-50",ghost:"hover:bg-secondary hover:text-accent-foreground disabled:opacity-50",white:e.cn("font-medium text-white-foreground bg-white border border-white","shadow-[0_1px_1px_0_rgba(0,0,0,0.15)]","hover:shadow-[0_3px_3px_0_rgba(0,0,0,0.25)]","disabled:text-gray-80 disabled:bg-gray-110 disabled:border-gray-110","disabled:shadow-[0_1px_1px_0_rgba(0,0,0,0.15)]"),neutral:e.cn("text-primary-foreground bg-gray-60 border border-gray-60","hover:bg-gray-90 hover:border-gray-90","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),success:e.cn("font-medium text-success-foreground bg-success border border-success","hover:bg-success-hover hover:border-success-hover","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),link:"text-primary underline-offset-4 hover:underline disabled:opacity-50",text:"text-muted-foreground hover:text-foreground hover:bg-transparent disabled:opacity-50",pink:"bg-pink-700 hover:bg-pink-600 disabled:bg-pink-700 text-primary-foreground disabled:opacity-50","pink-outline":"border-pink-700 hover:border-pink-600 disabled:border-pink-700 text-foreground disabled:opacity-50",blue:"bg-blue-800 hover:bg-blue-700 disabled:bg-blue-700 text-primary-foreground disabled:opacity-50","blue-outline":"border-blue-800 hover:border-blue-700 disabled:border-blue-800 text-foreground disabled:opacity-50"},size:{auto:"h-auto p-1.5",xs:"px-3 py-0.5 text-xs rounded-full",sm:"min-h-7 px-3 py-1 !text-xs !leading-[14px] rounded-[6px]",md:"min-h-8 px-3.5 py-1.5 !text-sm !leading-4 rounded-[8px]",default:"px-4 min-h-[40px] py-2.5 !text-[15px] !leading-[18px] rounded-[12px]",lg:"px-4 min-h-[44px] py-2.5 !text-[16px] !leading-[19px] rounded-[22px]",icon:"h-9 w-9 p-2"},width:{compact:"w-auto",wide:"w-full"}},defaultVariants:{variant:"default",size:"default",width:"compact"}});exports.buttonVariants=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=require("../../../utils/cn.cjs");require("@gearbox-protocol/sdk/onchain");require("../../../utils/z-index.cjs");const d=r.cva("inline-flex items-center justify-center gap-2 whitespace-normal text-center rounded-md text-sm font-medium transition-colors cursor-pointer disabled:!cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([style*='width']):not([style*='height'])]:size-4 [&_svg]:shrink-0 border border-transparent outline-none focus-visible:outline-none",{variants:{variant:{default:e.cn("text-primary-foreground bg-primary border border-primary","hover:bg-accent hover:border-accent","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 disabled:opacity-50",outline:e.cn("text-primary-foreground bg-transparent border border-gray-40","hover:bg-gray-60 hover:border-gray-60","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 disabled:opacity-50",ghost:"hover:bg-secondary hover:text-accent-foreground disabled:opacity-50",white:e.cn("font-medium text-white-foreground bg-white border border-white","shadow-[0_1px_1px_0_rgba(0,0,0,0.15)]","hover:shadow-[0_3px_3px_0_rgba(0,0,0,0.25)]","disabled:text-gray-80 disabled:bg-gray-110 disabled:border-gray-110","disabled:shadow-[0_1px_1px_0_rgba(0,0,0,0.15)]"),neutral:e.cn("text-primary-foreground bg-gray-60 border border-gray-60","hover:bg-gray-90 hover:border-gray-90","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),success:e.cn("font-medium text-success-foreground bg-success border border-success","hover:bg-success-hover hover:border-success-hover","disabled:text-secondary-foreground disabled:bg-gray-20 disabled:border-gray-20"),link:"text-primary underline-offset-4 hover:underline disabled:opacity-50",text:"text-muted-foreground hover:text-foreground hover:bg-transparent disabled:opacity-50",pink:"bg-pink-700 hover:bg-pink-600 disabled:bg-pink-700 text-primary-foreground disabled:opacity-50","pink-outline":"border-pink-700 hover:border-pink-600 disabled:border-pink-700 text-foreground disabled:opacity-50",blue:"bg-blue-800 hover:bg-blue-700 disabled:bg-blue-700 text-primary-foreground disabled:opacity-50","blue-outline":"border-blue-800 hover:border-blue-700 disabled:border-blue-800 text-foreground disabled:opacity-50"},size:{auto:"h-auto p-1.5",xs:"px-3 py-0.5 text-xs rounded-full",sm:"min-h-7 h-fit px-3 py-1 !text-xs !leading-[14px] rounded-[6px]",md:"min-h-8 h-fit px-3.5 py-1.5 !text-sm !leading-4 rounded-[8px]",default:"px-4 min-h-[40px] h-fit py-2.5 !text-[15px] !leading-[18px] rounded-[12px]",lg:"px-4 min-h-[44px] h-fit py-2.5 !text-[16px] !leading-[19px] rounded-[22px]",icon:"h-9 w-9 p-2"},width:{compact:"w-auto",wide:"w-full"}},defaultVariants:{variant:"default",size:"default",width:"compact"}});exports.buttonVariants=d;
|
|
@@ -49,10 +49,10 @@ const i = r(
|
|
|
49
49
|
size: {
|
|
50
50
|
auto: "h-auto p-1.5",
|
|
51
51
|
xs: "px-3 py-0.5 text-xs rounded-full",
|
|
52
|
-
sm: "min-h-7 px-3 py-1 !text-xs !leading-[14px] rounded-[6px]",
|
|
53
|
-
md: "min-h-8 px-3.5 py-1.5 !text-sm !leading-4 rounded-[8px]",
|
|
54
|
-
default: "px-4 min-h-[40px] py-2.5 !text-[15px] !leading-[18px] rounded-[12px]",
|
|
55
|
-
lg: "px-4 min-h-[44px] py-2.5 !text-[16px] !leading-[19px] rounded-[22px]",
|
|
52
|
+
sm: "min-h-7 h-fit px-3 py-1 !text-xs !leading-[14px] rounded-[6px]",
|
|
53
|
+
md: "min-h-8 h-fit px-3.5 py-1.5 !text-sm !leading-4 rounded-[8px]",
|
|
54
|
+
default: "px-4 min-h-[40px] h-fit py-2.5 !text-[15px] !leading-[18px] rounded-[12px]",
|
|
55
|
+
lg: "px-4 min-h-[44px] h-fit py-2.5 !text-[16px] !leading-[19px] rounded-[22px]",
|
|
56
56
|
icon: "h-9 w-9 p-2"
|
|
57
57
|
},
|
|
58
58
|
width: {
|