@gearbox-protocol/permissionless-ui 1.22.0-next.22 → 1.22.0-next.23
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 i=require("react/jsx-runtime"),s=require("class-variance-authority"),u=require("react"),o=require("../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk");function f(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const p=f(u),d=s.cva("rounded-lg p-5",{variants:{backgroundColor:{transparent:"bg-transparent [--tip-card-bg:transparent]",light:"bg-gray-30 [--tip-card-bg:hsl(var(--gray-30))]",dark:"bg-card [--tip-card-bg:hsl(var(--card))]","gray-10":"bg-gray-10 [--tip-card-bg:hsl(var(--gray-10))]"},textColor:{unset:"",light:"text-foreground",dark:"text-secondary-foreground"},borderColor:{light:"border border-gray-20",dark:"border border-gray-10",none:"border-0",gradient:o.cn("relative border-0 isolate","before:content-[''] before:absolute before:z-[-1]","before:p-px before:-inset-px before:rounded-[inherit]","before:bg-[linear-gradient(135deg,rgb(246,44,161)_0%,rgb(255,127,35)_100%)]","before:[mask:linear-gradient(rgb(255,255,255)_0px,rgb(255,255,255)_0px)_content-box_exclude,_linear-gradient(rgb(255,255,255)_0px,rgb(255,255,255)_0px)]","before:[mask-composite:exclude] before:[-webkit-mask-composite:xor]")}},defaultVariants:{textColor:"unset",backgroundColor:"transparent",borderColor:"dark"}}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("class-variance-authority"),u=require("react"),o=require("../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk");function f(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const p=f(u),d=s.cva("rounded-lg p-5",{variants:{backgroundColor:{transparent:"bg-transparent [--tip-card-bg:transparent]",light:"bg-gray-30 [--tip-card-bg:hsl(var(--gray-30))]",dark:"bg-card [--tip-card-bg:hsl(var(--card))]","gray-10":"bg-gray-10 [--tip-card-bg:hsl(var(--gray-10))]"},textColor:{unset:"",light:"text-foreground",dark:"text-secondary-foreground"},borderColor:{light:"border border-gray-20",dark:"border border-gray-10",none:"border-0",gradient:o.cn("relative border-0 isolate","before:content-[''] before:absolute before:z-[-1]","before:p-px before:-inset-px before:rounded-[inherit]","before:bg-[linear-gradient(135deg,rgb(246,44,161)_0%,rgb(255,127,35)_100%)]","before:[mask:linear-gradient(rgb(255,255,255)_0px,rgb(255,255,255)_0px)_content-box_exclude,_linear-gradient(rgb(255,255,255)_0px,rgb(255,255,255)_0px)]","before:[mask-composite:exclude] before:[-webkit-mask-composite:xor]")}},defaultVariants:{textColor:"unset",backgroundColor:"transparent",borderColor:"dark"}}),x=s.cva("",{variants:{attributeColor:{warning:"after:bg-warning",alert:"after:bg-destructive",success:"after:bg-success",primary:"after:bg-primary"}}}),c=p.forwardRef(({className:r,textColor:t,backgroundColor:e,borderColor:a=e==="dark"?"dark":"light",attributeColor:n,children:l,...b},g)=>i.jsxs("div",{ref:g,className:o.cn(n?"relative":"",d({textColor:t,backgroundColor:e,borderColor:a}),r),...b,children:[n&&i.jsx("div",{className:o.cn("absolute inset-0 h-full w-full overflow-hidden pointer-events-none rounded-lg z-0","after:absolute after:top-0 after:left-0 after:block after:w-1 after:h-full after:content-['']",x({attributeColor:n}))}),l]}));c.displayName="TipCard";exports.TipCard=c;exports.tipCardVariants=d;
|
|
@@ -83,7 +83,7 @@ const p = t("rounded-lg p-5", {
|
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
className: e(
|
|
86
|
-
"absolute inset-0 h-full w-full overflow-hidden pointer-events-none rounded-
|
|
86
|
+
"absolute inset-0 h-full w-full overflow-hidden pointer-events-none rounded-lg z-0",
|
|
87
87
|
"after:absolute after:top-0 after:left-0 after:block after:w-1 after:h-full after:content-['']",
|
|
88
88
|
c({ attributeColor: r })
|
|
89
89
|
)
|