@gearbox-protocol/permissionless-ui 1.22.0-next.18 → 1.22.0-next.19

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 g=require("react/jsx-runtime"),m=require("class-variance-authority"),f=require("react"),p=require("../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk");function x(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const y=x(f),i=m.cva("",{variants:{variant:{h1:"text-4xl font-bold tracking-tight",h2:"text-3xl font-semibold tracking-tight",h3:"text-2xl font-semibold",h4:"text-xl font-semibold",h5:"text-lg font-medium",h6:"text-base font-medium",body:"text-base",bodySmall:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wider"},color:{inherit:"text-inherit",default:"text-foreground",muted:"text-muted-foreground",success:"text-success",warning:"text-warning",destructive:"text-destructive",primary:"text-primary"},weight:{inherit:"",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},align:{inherit:"",left:"text-left",center:"text-center",right:"text-right"},leading:{inherit:"",tight:"leading-tight",normal:"leading-normal",relaxed:"leading-relaxed"},truncate:{true:"truncate",false:""}},defaultVariants:{variant:"body",color:"inherit",weight:"inherit",align:"inherit",leading:"inherit",truncate:!1}}),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySmall:"p",caption:"span",overline:"span"},a=y.forwardRef(({className:t,variant:e="body",color:r,weight:n,align:o,leading:l,truncate:s,as:c,...d},u)=>{const h=c||b[e||"body"];return g.jsx(h,{ref:u,className:p.cn(i({variant:e,color:r,weight:n,align:o,leading:l,truncate:s}),t),...d})});a.displayName="Typography";exports.Typography=a;exports.typographyVariants=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),m=require("class-variance-authority"),f=require("react"),p=require("../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk");function x(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const y=x(f),i=m.cva("",{variants:{variant:{inherit:"",h1:"text-4xl font-bold tracking-tight",h2:"text-3xl font-semibold tracking-tight",h3:"text-2xl font-semibold",h4:"text-xl font-semibold",h5:"text-lg font-medium",h6:"text-base font-medium",body:"text-base",bodySmall:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wider"},color:{inherit:"text-inherit",default:"text-foreground",muted:"text-muted-foreground",success:"text-success",warning:"text-warning",destructive:"text-destructive",primary:"text-primary",secondary:"text-secondary-foreground"},weight:{inherit:"",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},align:{inherit:"",left:"text-left",center:"text-center",right:"text-right"},leading:{inherit:"",tight:"leading-tight",normal:"leading-normal",relaxed:"leading-relaxed"},truncate:{true:"truncate",false:""}},defaultVariants:{variant:"body",color:"inherit",weight:"inherit",align:"inherit",leading:"inherit",truncate:!1}}),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySmall:"p",caption:"span",overline:"span",inherit:"span"},a=y.forwardRef(({className:t,variant:e="body",color:r,weight:n,align:o,leading:l,truncate:s,as:c,...d},h)=>{const u=c||b[e||"body"];return g.jsx(u,{ref:h,className:p.cn(i({variant:e,color:r,weight:n,align:o,leading:l,truncate:s}),t),...d})});a.displayName="Typography";exports.Typography=a;exports.typographyVariants=i;
@@ -7,6 +7,7 @@ import "@gearbox-protocol/sdk";
7
7
  const p = x("", {
8
8
  variants: {
9
9
  variant: {
10
+ inherit: "",
10
11
  h1: "text-4xl font-bold tracking-tight",
11
12
  h2: "text-3xl font-semibold tracking-tight",
12
13
  h3: "text-2xl font-semibold",
@@ -25,7 +26,8 @@ const p = x("", {
25
26
  success: "text-success",
26
27
  warning: "text-warning",
27
28
  destructive: "text-destructive",
28
- primary: "text-primary"
29
+ primary: "text-primary",
30
+ secondary: "text-secondary-foreground"
29
31
  },
30
32
  weight: {
31
33
  inherit: "",
@@ -69,36 +71,37 @@ const p = x("", {
69
71
  body: "p",
70
72
  bodySmall: "p",
71
73
  caption: "span",
72
- overline: "span"
74
+ overline: "span",
75
+ inherit: "span"
73
76
  }, u = c.forwardRef(
74
77
  ({
75
78
  className: e,
76
79
  variant: t = "body",
77
- color: i,
78
- weight: r,
80
+ color: r,
81
+ weight: i,
79
82
  align: n,
80
83
  leading: o,
81
84
  truncate: a,
82
85
  as: l,
83
- ...h
84
- }, m) => {
85
- const d = l || f[t || "body"];
86
+ ...d
87
+ }, h) => {
88
+ const m = l || f[t || "body"];
86
89
  return /* @__PURE__ */ s(
87
- d,
90
+ m,
88
91
  {
89
- ref: m,
92
+ ref: h,
90
93
  className: g(
91
94
  p({
92
95
  variant: t,
93
- color: i,
94
- weight: r,
96
+ color: r,
97
+ weight: i,
95
98
  align: n,
96
99
  leading: o,
97
100
  truncate: a
98
101
  }),
99
102
  e
100
103
  ),
101
- ...h
104
+ ...d
102
105
  }
103
106
  );
104
107
  }
@@ -1,8 +1,8 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const typographyVariants: (props?: ({
4
- variant?: "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bodySmall" | "overline" | null | undefined;
5
- color?: "inherit" | "default" | "muted" | "success" | "warning" | "destructive" | "primary" | null | undefined;
4
+ variant?: "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bodySmall" | "overline" | "inherit" | null | undefined;
5
+ color?: "inherit" | "default" | "muted" | "success" | "warning" | "destructive" | "primary" | "secondary" | null | undefined;
6
6
  weight?: "medium" | "inherit" | "normal" | "semibold" | "bold" | null | undefined;
7
7
  align?: "inherit" | "left" | "center" | "right" | null | undefined;
8
8
  leading?: "inherit" | "normal" | "tight" | "relaxed" | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.22.0-next.18",
3
+ "version": "1.22.0-next.19",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",