@gearbox-protocol/ui-kit 4.0.1 → 4.0.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/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.variants.cjs +1 -1
- package/dist/cjs/components/buttons/tab-button/tab-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/index.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/base/review-button/review-button.js +19 -25
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +7 -6
- package/dist/esm/components/buttons/button/button.variants.js +5 -5
- package/dist/esm/components/buttons/tab-button/tab-button.js +12 -9
- package/dist/esm/components/client-adapters/index.js +2 -4
- package/dist/esm/components/graph/default-config.js +20 -20
- package/dist/esm/components/index.js +279 -281
- package/dist/esm/components/navbar-logo/navbar-logo.js +10 -13
- package/dist/esm/components/rounded-image/rounded-image.js +23 -26
- package/dist/esm/index.js +327 -329
- package/dist/globals.css +1 -1
- package/dist/types/components/client-adapters/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/components/client-adapters/styled-button/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +0 -1
- package/dist/esm/components/client-adapters/styled-button/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +0 -29
- package/dist/types/components/client-adapters/styled-button/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-button/styled-button.d.ts +0 -18
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./styled-button.cjs");exports.StyledButton=t.StyledButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("react"),s=require("../../buttons/button/button.cjs"),l=require("../../../utils/cn.cjs");require("@gearbox-protocol/sdk/onchain");require("../../../utils/z-index.cjs");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const f=d(i),m={primary:"default",outlined:"outline",neutral:"neutral",white:"white",success:"success"},o=f.forwardRef(({size:e="lg",width:n="compact",color:t="primary",className:r,...u},c)=>a.jsx(s.Button,{ref:c,size:e,width:n,variant:m[t],className:l.cn("inline-block whitespace-normal",r),...u}));o.displayName="StyledButton";exports.StyledButton=o;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { Button as s } from "../../buttons/button/button.js";
|
|
4
|
-
import { cn as c } from "../../../utils/cn.js";
|
|
5
|
-
import "@gearbox-protocol/sdk/onchain";
|
|
6
|
-
import "../../../utils/z-index.js";
|
|
7
|
-
const l = {
|
|
8
|
-
primary: "default",
|
|
9
|
-
outlined: "outline",
|
|
10
|
-
neutral: "neutral",
|
|
11
|
-
white: "white",
|
|
12
|
-
success: "success"
|
|
13
|
-
}, p = n.forwardRef(
|
|
14
|
-
({ size: t = "lg", width: r = "compact", color: o = "primary", className: e, ...a }, i) => /* @__PURE__ */ m(
|
|
15
|
-
s,
|
|
16
|
-
{
|
|
17
|
-
ref: i,
|
|
18
|
-
size: t,
|
|
19
|
-
width: r,
|
|
20
|
-
variant: l[o],
|
|
21
|
-
className: c("inline-block whitespace-normal", e),
|
|
22
|
-
...a
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
);
|
|
26
|
-
p.displayName = "StyledButton";
|
|
27
|
-
export {
|
|
28
|
-
p as StyledButton
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './styled-button';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '../../buttons/button';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
type ButtonWidth = "compact" | "wide";
|
|
4
|
-
type ButtonColors = "primary" | "outlined" | "neutral" | "white" | "success";
|
|
5
|
-
type ButtonSize = "sm" | "md" | "lg";
|
|
6
|
-
/**
|
|
7
|
-
* `color` and `square` are named in this component's own vocabulary, so both
|
|
8
|
-
* are omitted from `ButtonProps` before being redeclared — `color` otherwise
|
|
9
|
-
* collides with the HTML attribute.
|
|
10
|
-
*/
|
|
11
|
-
export interface StyledButtonProps extends Omit<ButtonProps, "size" | "width" | "variant" | "color"> {
|
|
12
|
-
size?: ButtonSize;
|
|
13
|
-
width?: ButtonWidth;
|
|
14
|
-
color?: ButtonColors;
|
|
15
|
-
square?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const StyledButton: React.ForwardRefExoticComponent<StyledButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
export { StyledButton };
|