@gearbox-protocol/permissionless-ui 1.9.4 → 1.10.0
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/auth/connect-required.cjs +2 -2
- package/dist/cjs/components/auth/index.cjs +2 -2
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -0
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/index.cjs +2 -2
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/navitem/navitem.cjs +5 -5
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +3 -3
- package/dist/cjs/components/table/editable-table.cjs +3 -3
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/components/auth/connect-required.js +2 -2
- package/dist/esm/components/auth/index.js +1 -1
- package/dist/esm/components/buttons/button/button.js +1 -1
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +1 -1
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -0
- package/dist/esm/components/dialog/dialog-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +1 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +1 -1
- package/dist/esm/components/filter/filter-dropdown-item.js +1 -1
- package/dist/esm/components/filter/filter-modal-item.js +1 -1
- package/dist/esm/components/filter/filter-radio-item.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/input/input.js +1 -1
- package/dist/esm/components/navitem/navitem.js +5 -5
- package/dist/esm/components/select/select.js +1 -1
- package/dist/esm/components/tab-control/tab-control.js +1 -1
- package/dist/esm/components/table/editable-grid-table.js +3 -3
- package/dist/esm/components/table/editable-table.js +3 -3
- package/dist/esm/components/tabs/tabs.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/components/auth/connect-required.d.ts +1 -1
- package/dist/types/components/auth/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const connectkit = require('connectkit');
|
|
7
|
+
const wagmi = require('wagmi');
|
|
6
8
|
require('../buttons/back-button/back-button.cjs');
|
|
7
9
|
const components_buttons_button_button = require('../buttons/button/button.cjs');
|
|
8
10
|
require('../buttons/copy-button/copy-button.cjs');
|
|
@@ -15,8 +17,6 @@ require('tailwind-merge');
|
|
|
15
17
|
require('sonner');
|
|
16
18
|
require('@gearbox-protocol/sdk');
|
|
17
19
|
const components_buttons_tabButton_tabButton = require('../buttons/tab-button/tab-button.cjs');
|
|
18
|
-
const connectkit = require('connectkit');
|
|
19
|
-
const wagmi = require('wagmi');
|
|
20
20
|
|
|
21
21
|
function ConnectRequired({
|
|
22
22
|
children,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const components_auth_connectRequired = require('./connect-required.cjs');
|
|
5
6
|
const components_auth_signinRequired = require('./signin-required.cjs');
|
|
6
7
|
const components_auth_siweProvider = require('./siwe-provider.cjs');
|
|
7
|
-
const components_auth_connectRequired = require('./connect-required.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
11
12
|
exports.SignInRequired = components_auth_signinRequired.SignInRequired;
|
|
12
13
|
exports.SIWEClientProvider = components_auth_siweProvider.SIWEClientProvider;
|
|
13
|
-
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
31
31
|
|
|
32
32
|
const buttonVariants = classVarianceAuthority.cva(
|
|
33
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_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",
|
|
33
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_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",
|
|
34
34
|
{
|
|
35
35
|
variants: {
|
|
36
36
|
variant: {
|
|
@@ -16,7 +16,7 @@ const NavigationButton = React.forwardRef(({ href, text, isActive, ...props }, r
|
|
|
16
16
|
href,
|
|
17
17
|
ref,
|
|
18
18
|
className: utils_cn.cn(
|
|
19
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 relative",
|
|
19
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 relative",
|
|
20
20
|
"text-decoration-none text-foreground hover:text-foreground hover:bg-secondary px-4 py-2",
|
|
21
21
|
isActive ? "bg-secondary md:bg-transparent text-foreground" : ""
|
|
22
22
|
),
|
|
@@ -24,6 +24,7 @@ function RangeButtons({
|
|
|
24
24
|
"text-xs leading-[14px] font-medium text-center",
|
|
25
25
|
"rounded-md border cursor-pointer transition-colors",
|
|
26
26
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
27
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
27
28
|
r.value === range ? "bg-secondary border-secondary text-secondary-foreground" : "bg-muted border-muted text-muted-foreground hover:border-secondary",
|
|
28
29
|
index < rangeList.length - 1 && "mr-1.5"
|
|
29
30
|
),
|
|
@@ -45,7 +45,7 @@ const DialogContent = React__namespace.forwardRef(({ className, children, ...pro
|
|
|
45
45
|
...props,
|
|
46
46
|
children: [
|
|
47
47
|
children,
|
|
48
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground cursor-pointer hover:text-foreground", children: [
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:cursor-not-allowed disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground cursor-pointer hover:text-foreground", children: [
|
|
49
49
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
50
50
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
51
51
|
] })
|
|
@@ -36,7 +36,7 @@ const DropdownMenuCheckboxItem = React__namespace.forwardRef(
|
|
|
36
36
|
{
|
|
37
37
|
ref,
|
|
38
38
|
className: utils_cn.cn(
|
|
39
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
39
|
+
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
40
40
|
className
|
|
41
41
|
),
|
|
42
42
|
checked,
|
|
@@ -34,7 +34,7 @@ const DropdownMenuItem = React__namespace.forwardRef(({ className, inset, ...pro
|
|
|
34
34
|
{
|
|
35
35
|
ref,
|
|
36
36
|
className: utils_cn.cn(
|
|
37
|
-
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
37
|
+
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
38
38
|
inset && "pl-8",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
@@ -35,7 +35,7 @@ const DropdownMenuRadioItem = React__namespace.forwardRef(({ className, children
|
|
|
35
35
|
{
|
|
36
36
|
ref,
|
|
37
37
|
className: utils_cn.cn(
|
|
38
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
38
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
...props,
|
|
@@ -35,7 +35,7 @@ const FilterCheckboxItem = React__namespace.forwardRef(({ className, children, c
|
|
|
35
35
|
{
|
|
36
36
|
ref,
|
|
37
37
|
className: utils_cn.cn(
|
|
38
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
38
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
checked,
|
|
@@ -34,7 +34,7 @@ const FilterDropdownItem = React__namespace.forwardRef(({ className, inset, ...p
|
|
|
34
34
|
{
|
|
35
35
|
ref,
|
|
36
36
|
className: utils_cn.cn(
|
|
37
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
37
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
38
38
|
inset && "pl-8",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
@@ -35,7 +35,7 @@ const FilterModalItem = React__namespace.forwardRef(({ className, active, disabl
|
|
|
35
35
|
"flex cursor-pointer select-none items-center gap-2 rounded-sm px-3 py-2 text-sm outline-none transition-colors",
|
|
36
36
|
"hover:bg-accent hover:text-accent-foreground",
|
|
37
37
|
active && "bg-accent text-accent-foreground",
|
|
38
|
-
disabled && "pointer-events-none opacity-50",
|
|
38
|
+
disabled && "cursor-not-allowed pointer-events-none opacity-50",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
...props
|
|
@@ -35,7 +35,7 @@ const FilterRadioItem = React__namespace.forwardRef(({ className, children, ...p
|
|
|
35
35
|
{
|
|
36
36
|
ref,
|
|
37
37
|
className: utils_cn.cn(
|
|
38
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
38
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
...props,
|
|
@@ -6,9 +6,9 @@ const components_alertDialog_alertDialog = require('./alert-dialog/alert-dialog.
|
|
|
6
6
|
const components_assetLine_assetLine = require('./asset-line/asset-line.cjs');
|
|
7
7
|
const components_assetsListCell_assetsListCell = require('./assets-list-cell/assets-list-cell.cjs');
|
|
8
8
|
const components_assetsRatio_assetsRatio = require('./assets-ratio/assets-ratio.cjs');
|
|
9
|
+
const components_auth_connectRequired = require('./auth/connect-required.cjs');
|
|
9
10
|
const components_auth_signinRequired = require('./auth/signin-required.cjs');
|
|
10
11
|
const components_auth_siweProvider = require('./auth/siwe-provider.cjs');
|
|
11
|
-
const components_auth_connectRequired = require('./auth/connect-required.cjs');
|
|
12
12
|
const components_badge_badge = require('./badge/badge.cjs');
|
|
13
13
|
const components_baseLink_baseLink = require('./base-link/base-link.cjs');
|
|
14
14
|
const components_blockSync_blockSync = require('./block-sync/block-sync.cjs');
|
|
@@ -153,9 +153,9 @@ exports.AlertDialogTrigger = components_alertDialog_alertDialog.AlertDialogTrigg
|
|
|
153
153
|
exports.AssetLine = components_assetLine_assetLine.AssetLine;
|
|
154
154
|
exports.AssetsListCell = components_assetsListCell_assetsListCell.AssetsListCell;
|
|
155
155
|
exports.AssetsRatio = components_assetsRatio_assetsRatio.AssetsRatio;
|
|
156
|
+
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
156
157
|
exports.SignInRequired = components_auth_signinRequired.SignInRequired;
|
|
157
158
|
exports.SIWEClientProvider = components_auth_siweProvider.SIWEClientProvider;
|
|
158
|
-
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
159
159
|
exports.Badge = components_badge_badge.Badge;
|
|
160
160
|
exports.badgeVariants = components_badge_badge.badgeVariants;
|
|
161
161
|
exports.BaseLink = components_baseLink_baseLink.BaseLink;
|
|
@@ -10,7 +10,7 @@ require('sonner');
|
|
|
10
10
|
require('@gearbox-protocol/sdk');
|
|
11
11
|
|
|
12
12
|
const inputVariants = classVarianceAuthority.cva(
|
|
13
|
-
"flex w-full rounded-md border border-input px-3 py-1 shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm bg-[rgb(40,40,40)] text-foreground border-[rgb(100,100,100)] focus:bg-[rgb(40,40,40)] active:bg-[rgb(40,40,40)] [&:not(:placeholder-shown)]:bg-[rgb(40,40,40)] autofill:bg-[rgb(40,40,40)] [-webkit-autofill]:bg-[rgb(40,40,40)] [&:-webkit-autofill]:shadow-[0_0_0_1000px_rgb(40,40,40)_inset] [&:-webkit-autofill]:[text-fill-color:currentColor] outline-none",
|
|
13
|
+
"flex w-full rounded-md border border-input px-3 py-1 shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm bg-[rgb(40,40,40)] text-foreground border-[rgb(100,100,100)] focus:bg-[rgb(40,40,40)] active:bg-[rgb(40,40,40)] [&:not(:placeholder-shown)]:bg-[rgb(40,40,40)] autofill:bg-[rgb(40,40,40)] [-webkit-autofill]:bg-[rgb(40,40,40)] [&:-webkit-autofill]:shadow-[0_0_0_1000px_rgb(40,40,40)_inset] [&:-webkit-autofill]:[text-fill-color:currentColor] outline-none [&::-webkit-search-cancel-button]:cursor-pointer",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
16
16
|
size: {
|
|
@@ -31,15 +31,15 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
32
|
|
|
33
33
|
const navitemVariants = classVarianceAuthority.cva(
|
|
34
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 relative",
|
|
34
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 relative",
|
|
35
35
|
{
|
|
36
36
|
variants: {
|
|
37
37
|
variant: {
|
|
38
|
-
default: "text-decoration-none text-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-
|
|
39
|
-
active: "text-foreground bg-
|
|
40
|
-
ghost: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-
|
|
38
|
+
default: "text-decoration-none text-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-secondary md:data-[active=true]:bg-transparent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-secondary",
|
|
39
|
+
active: "text-foreground bg-secondary md:bg-transparent active:bg-transparent focus:bg-transparent md:active:bg-secondary md:focus:bg-secondary",
|
|
40
|
+
ghost: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-secondary md:data-[active=true]:bg-transparent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-secondary",
|
|
41
41
|
link: "text-decoration-none text-muted-foreground hover:text-foreground underline-offset-4 hover:underline data-[active=true]:text-foreground data-[active=true]:underline active:bg-transparent focus:bg-transparent",
|
|
42
|
-
pill: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-accent rounded-full data-[active=true]:bg-
|
|
42
|
+
pill: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-accent rounded-full data-[active=true]:bg-secondary md:data-[active=true]:bg-accent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-accent",
|
|
43
43
|
tab: "text-decoration-none text-muted-foreground hover:text-foreground border-b-2 border-transparent hover:border-border data-[active=true]:border-primary data-[active=true]:text-foreground rounded-none active:bg-transparent focus:bg-transparent"
|
|
44
44
|
},
|
|
45
45
|
size: {
|
|
@@ -136,7 +136,7 @@ const SelectItem = React__namespace.forwardRef(({ className, children, ...props
|
|
|
136
136
|
{
|
|
137
137
|
ref,
|
|
138
138
|
className: utils_cn.cn(
|
|
139
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-secondary focus:bg-secondary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 bg-transparent text-foreground border-[rgb(100,100,100)] cursor-pointer",
|
|
139
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-secondary focus:bg-secondary data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 bg-transparent text-foreground border-[rgb(100,100,100)] cursor-pointer",
|
|
140
140
|
className
|
|
141
141
|
),
|
|
142
142
|
...props,
|
|
@@ -106,7 +106,7 @@ function TabControl({
|
|
|
106
106
|
"flex items-center bg-transparent border-none shrink-0",
|
|
107
107
|
tabItemWrapPadding || "pb-3.5",
|
|
108
108
|
variant === "equal" ? "flex-1 justify-center min-w-0" : !isLast && "mr-10 sm:mr-8",
|
|
109
|
-
s
|
|
109
|
+
s ? "cursor-default" : t.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
110
110
|
!t.disabled && "hover:text-foreground"
|
|
111
111
|
),
|
|
112
112
|
style: tabItemWrapPadding ? { padding: tabItemWrapPadding } : void 0,
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
const lucideReact = require('lucide-react');
|
|
7
|
-
const components_auth_signinRequired = require('../auth/signin-required.cjs');
|
|
8
7
|
require('connectkit');
|
|
9
|
-
require('
|
|
8
|
+
require('wagmi');
|
|
10
9
|
require('../buttons/back-button/back-button.cjs');
|
|
11
10
|
const components_buttons_button_button = require('../buttons/button/button.cjs');
|
|
12
11
|
require('../buttons/copy-button/copy-button.cjs');
|
|
@@ -19,7 +18,8 @@ require('tailwind-merge');
|
|
|
19
18
|
require('sonner');
|
|
20
19
|
require('@gearbox-protocol/sdk');
|
|
21
20
|
const components_buttons_tabButton_tabButton = require('../buttons/tab-button/tab-button.cjs');
|
|
22
|
-
require('
|
|
21
|
+
const components_auth_signinRequired = require('../auth/signin-required.cjs');
|
|
22
|
+
require('viem/siwe');
|
|
23
23
|
const components_tokenIcon_tokenIcon = require('../token-icon/token-icon.cjs');
|
|
24
24
|
const components_table_gridTable = require('./grid-table.cjs');
|
|
25
25
|
const components_table_updatedValue = require('./updated-value.cjs');
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const components_auth_signinRequired = require('../auth/signin-required.cjs');
|
|
7
6
|
require('connectkit');
|
|
8
|
-
require('
|
|
7
|
+
require('wagmi');
|
|
9
8
|
require('../buttons/back-button/back-button.cjs');
|
|
10
9
|
require('../buttons/button/button.cjs');
|
|
11
10
|
require('../buttons/copy-button/copy-button.cjs');
|
|
@@ -18,7 +17,8 @@ require('tailwind-merge');
|
|
|
18
17
|
require('sonner');
|
|
19
18
|
require('@gearbox-protocol/sdk');
|
|
20
19
|
const components_buttons_tabButton_tabButton = require('../buttons/tab-button/tab-button.cjs');
|
|
21
|
-
require('
|
|
20
|
+
const components_auth_signinRequired = require('../auth/signin-required.cjs');
|
|
21
|
+
require('viem/siwe');
|
|
22
22
|
const components_tokenIcon_tokenIcon = require('../token-icon/token-icon.cjs');
|
|
23
23
|
const components_table_table = require('./table.cjs');
|
|
24
24
|
const components_table_updatedValue = require('./updated-value.cjs');
|
|
@@ -47,7 +47,7 @@ const TabsTrigger = React__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
47
47
|
{
|
|
48
48
|
ref,
|
|
49
49
|
className: utils_cn.cn(
|
|
50
|
-
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow rounded-none border-b-2 border-transparent px-2 py-2 text-gray-400 hover:text-foreground data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground focus:outline-none cursor-pointer shrink-0",
|
|
50
|
+
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow rounded-none border-b-2 border-transparent px-2 py-2 text-gray-400 hover:text-foreground data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground focus:outline-none cursor-pointer shrink-0",
|
|
51
51
|
className
|
|
52
52
|
),
|
|
53
53
|
...props
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -6,9 +6,9 @@ const components_alertDialog_alertDialog = require('./components/alert-dialog/al
|
|
|
6
6
|
const components_assetLine_assetLine = require('./components/asset-line/asset-line.cjs');
|
|
7
7
|
const components_assetsListCell_assetsListCell = require('./components/assets-list-cell/assets-list-cell.cjs');
|
|
8
8
|
const components_assetsRatio_assetsRatio = require('./components/assets-ratio/assets-ratio.cjs');
|
|
9
|
+
const components_auth_connectRequired = require('./components/auth/connect-required.cjs');
|
|
9
10
|
const components_auth_signinRequired = require('./components/auth/signin-required.cjs');
|
|
10
11
|
const components_auth_siweProvider = require('./components/auth/siwe-provider.cjs');
|
|
11
|
-
const components_auth_connectRequired = require('./components/auth/connect-required.cjs');
|
|
12
12
|
const components_badge_badge = require('./components/badge/badge.cjs');
|
|
13
13
|
const components_baseLink_baseLink = require('./components/base-link/base-link.cjs');
|
|
14
14
|
const components_blockSync_blockSync = require('./components/block-sync/block-sync.cjs');
|
|
@@ -173,9 +173,9 @@ exports.AlertDialogTrigger = components_alertDialog_alertDialog.AlertDialogTrigg
|
|
|
173
173
|
exports.AssetLine = components_assetLine_assetLine.AssetLine;
|
|
174
174
|
exports.AssetsListCell = components_assetsListCell_assetsListCell.AssetsListCell;
|
|
175
175
|
exports.AssetsRatio = components_assetsRatio_assetsRatio.AssetsRatio;
|
|
176
|
+
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
176
177
|
exports.SignInRequired = components_auth_signinRequired.SignInRequired;
|
|
177
178
|
exports.SIWEClientProvider = components_auth_siweProvider.SIWEClientProvider;
|
|
178
|
-
exports.ConnectRequired = components_auth_connectRequired.ConnectRequired;
|
|
179
179
|
exports.Badge = components_badge_badge.Badge;
|
|
180
180
|
exports.badgeVariants = components_badge_badge.badgeVariants;
|
|
181
181
|
exports.BaseLink = components_baseLink_baseLink.BaseLink;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useModal } from 'connectkit';
|
|
3
|
+
import { useAccount } from 'wagmi';
|
|
2
4
|
import '../buttons/back-button/back-button.js';
|
|
3
5
|
import { Button } from '../buttons/button/button.js';
|
|
4
6
|
import '../buttons/copy-button/copy-button.js';
|
|
@@ -11,8 +13,6 @@ import 'tailwind-merge';
|
|
|
11
13
|
import 'sonner';
|
|
12
14
|
import '@gearbox-protocol/sdk';
|
|
13
15
|
import { TabButton } from '../buttons/tab-button/tab-button.js';
|
|
14
|
-
import { useModal } from 'connectkit';
|
|
15
|
-
import { useAccount } from 'wagmi';
|
|
16
16
|
|
|
17
17
|
function ConnectRequired({
|
|
18
18
|
children,
|
|
@@ -7,7 +7,7 @@ import 'sonner';
|
|
|
7
7
|
import '@gearbox-protocol/sdk';
|
|
8
8
|
|
|
9
9
|
const buttonVariants = cva(
|
|
10
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_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",
|
|
10
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_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",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
@@ -12,7 +12,7 @@ const NavigationButton = React__default.forwardRef(({ href, text, isActive, ...p
|
|
|
12
12
|
href,
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(
|
|
15
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 relative",
|
|
15
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 relative",
|
|
16
16
|
"text-decoration-none text-foreground hover:text-foreground hover:bg-secondary px-4 py-2",
|
|
17
17
|
isActive ? "bg-secondary md:bg-transparent text-foreground" : ""
|
|
18
18
|
),
|
|
@@ -20,6 +20,7 @@ function RangeButtons({
|
|
|
20
20
|
"text-xs leading-[14px] font-medium text-center",
|
|
21
21
|
"rounded-md border cursor-pointer transition-colors",
|
|
22
22
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
23
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
23
24
|
r.value === range ? "bg-secondary border-secondary text-secondary-foreground" : "bg-muted border-muted text-muted-foreground hover:border-secondary",
|
|
24
25
|
index < rangeList.length - 1 && "mr-1.5"
|
|
25
26
|
),
|
|
@@ -21,7 +21,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
21
21
|
...props,
|
|
22
22
|
children: [
|
|
23
23
|
children,
|
|
24
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground cursor-pointer hover:text-foreground", children: [
|
|
24
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:cursor-not-allowed disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground cursor-pointer hover:text-foreground", children: [
|
|
25
25
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
26
26
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
27
27
|
] })
|
|
@@ -12,7 +12,7 @@ const DropdownMenuCheckboxItem = React.forwardRef(
|
|
|
12
12
|
{
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(
|
|
15
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
15
|
+
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
checked,
|
|
@@ -10,7 +10,7 @@ const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref)
|
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
className: cn(
|
|
13
|
-
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
13
|
+
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
14
14
|
inset && "pl-8",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
@@ -11,7 +11,7 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
14
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props,
|
|
@@ -11,7 +11,7 @@ const FilterCheckboxItem = React.forwardRef(({ className, children, checked, ...
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
14
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
checked,
|
|
@@ -10,7 +10,7 @@ const FilterDropdownItem = React.forwardRef(({ className, inset, ...props }, ref
|
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
className: cn(
|
|
13
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
13
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
14
14
|
inset && "pl-8",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
@@ -12,7 +12,7 @@ const FilterModalItem = React.forwardRef(({ className, active, disabled, ...prop
|
|
|
12
12
|
"flex cursor-pointer select-none items-center gap-2 rounded-sm px-3 py-2 text-sm outline-none transition-colors",
|
|
13
13
|
"hover:bg-accent hover:text-accent-foreground",
|
|
14
14
|
active && "bg-accent text-accent-foreground",
|
|
15
|
-
disabled && "pointer-events-none opacity-50",
|
|
15
|
+
disabled && "cursor-not-allowed pointer-events-none opacity-50",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
...props
|
|
@@ -11,7 +11,7 @@ const FilterRadioItem = React.forwardRef(({ className, children, ...props }, ref
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
14
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props,
|
|
@@ -2,9 +2,9 @@ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent,
|
|
|
2
2
|
export { AssetLine } from './asset-line/asset-line.js';
|
|
3
3
|
export { AssetsListCell } from './assets-list-cell/assets-list-cell.js';
|
|
4
4
|
export { AssetsRatio } from './assets-ratio/assets-ratio.js';
|
|
5
|
+
export { ConnectRequired } from './auth/connect-required.js';
|
|
5
6
|
export { SignInRequired } from './auth/signin-required.js';
|
|
6
7
|
export { SIWEClientProvider } from './auth/siwe-provider.js';
|
|
7
|
-
export { ConnectRequired } from './auth/connect-required.js';
|
|
8
8
|
export { Badge, badgeVariants } from './badge/badge.js';
|
|
9
9
|
export { BaseLink } from './base-link/base-link.js';
|
|
10
10
|
export { BlockSync } from './block-sync/block-sync.js';
|
|
@@ -6,7 +6,7 @@ import 'sonner';
|
|
|
6
6
|
import '@gearbox-protocol/sdk';
|
|
7
7
|
|
|
8
8
|
const inputVariants = cva(
|
|
9
|
-
"flex w-full rounded-md border border-input px-3 py-1 shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm bg-[rgb(40,40,40)] text-foreground border-[rgb(100,100,100)] focus:bg-[rgb(40,40,40)] active:bg-[rgb(40,40,40)] [&:not(:placeholder-shown)]:bg-[rgb(40,40,40)] autofill:bg-[rgb(40,40,40)] [-webkit-autofill]:bg-[rgb(40,40,40)] [&:-webkit-autofill]:shadow-[0_0_0_1000px_rgb(40,40,40)_inset] [&:-webkit-autofill]:[text-fill-color:currentColor] outline-none",
|
|
9
|
+
"flex w-full rounded-md border border-input px-3 py-1 shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm bg-[rgb(40,40,40)] text-foreground border-[rgb(100,100,100)] focus:bg-[rgb(40,40,40)] active:bg-[rgb(40,40,40)] [&:not(:placeholder-shown)]:bg-[rgb(40,40,40)] autofill:bg-[rgb(40,40,40)] [-webkit-autofill]:bg-[rgb(40,40,40)] [&:-webkit-autofill]:shadow-[0_0_0_1000px_rgb(40,40,40)_inset] [&:-webkit-autofill]:[text-fill-color:currentColor] outline-none [&::-webkit-search-cancel-button]:cursor-pointer",
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
size: {
|
|
@@ -8,15 +8,15 @@ import 'sonner';
|
|
|
8
8
|
import '@gearbox-protocol/sdk';
|
|
9
9
|
|
|
10
10
|
const navitemVariants = cva(
|
|
11
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 relative",
|
|
11
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 relative",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
|
-
default: "text-decoration-none text-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-
|
|
16
|
-
active: "text-foreground bg-
|
|
17
|
-
ghost: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-
|
|
15
|
+
default: "text-decoration-none text-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-secondary md:data-[active=true]:bg-transparent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-secondary",
|
|
16
|
+
active: "text-foreground bg-secondary md:bg-transparent active:bg-transparent focus:bg-transparent md:active:bg-secondary md:focus:bg-secondary",
|
|
17
|
+
ghost: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-secondary data-[active=true]:bg-secondary md:data-[active=true]:bg-transparent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-secondary",
|
|
18
18
|
link: "text-decoration-none text-muted-foreground hover:text-foreground underline-offset-4 hover:underline data-[active=true]:text-foreground data-[active=true]:underline active:bg-transparent focus:bg-transparent",
|
|
19
|
-
pill: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-accent rounded-full data-[active=true]:bg-
|
|
19
|
+
pill: "text-decoration-none text-muted-foreground hover:text-foreground hover:bg-accent rounded-full data-[active=true]:bg-secondary md:data-[active=true]:bg-accent data-[active=true]:text-foreground active:bg-transparent focus:bg-transparent md:focus:bg-accent",
|
|
20
20
|
tab: "text-decoration-none text-muted-foreground hover:text-foreground border-b-2 border-transparent hover:border-border data-[active=true]:border-primary data-[active=true]:text-foreground rounded-none active:bg-transparent focus:bg-transparent"
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
@@ -112,7 +112,7 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
112
112
|
{
|
|
113
113
|
ref,
|
|
114
114
|
className: cn(
|
|
115
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-secondary focus:bg-secondary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 bg-transparent text-foreground border-[rgb(100,100,100)] cursor-pointer",
|
|
115
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-secondary focus:bg-secondary data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 bg-transparent text-foreground border-[rgb(100,100,100)] cursor-pointer",
|
|
116
116
|
className
|
|
117
117
|
),
|
|
118
118
|
...props,
|
|
@@ -102,7 +102,7 @@ function TabControl({
|
|
|
102
102
|
"flex items-center bg-transparent border-none shrink-0",
|
|
103
103
|
tabItemWrapPadding || "pb-3.5",
|
|
104
104
|
variant === "equal" ? "flex-1 justify-center min-w-0" : !isLast && "mr-10 sm:mr-8",
|
|
105
|
-
s
|
|
105
|
+
s ? "cursor-default" : t.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
106
106
|
!t.disabled && "hover:text-foreground"
|
|
107
107
|
),
|
|
108
108
|
style: tabItemWrapPadding ? { padding: tabItemWrapPadding } : void 0,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { ExternalLink } from 'lucide-react';
|
|
3
|
-
import { SignInRequired } from '../auth/signin-required.js';
|
|
4
3
|
import 'connectkit';
|
|
5
|
-
import '
|
|
4
|
+
import 'wagmi';
|
|
6
5
|
import '../buttons/back-button/back-button.js';
|
|
7
6
|
import { Button } from '../buttons/button/button.js';
|
|
8
7
|
import '../buttons/copy-button/copy-button.js';
|
|
@@ -15,7 +14,8 @@ import 'tailwind-merge';
|
|
|
15
14
|
import 'sonner';
|
|
16
15
|
import '@gearbox-protocol/sdk';
|
|
17
16
|
import { TabButton } from '../buttons/tab-button/tab-button.js';
|
|
18
|
-
import '
|
|
17
|
+
import { SignInRequired } from '../auth/signin-required.js';
|
|
18
|
+
import 'viem/siwe';
|
|
19
19
|
import { TokenIcon } from '../token-icon/token-icon.js';
|
|
20
20
|
import { GridTableCell, GridTable } from './grid-table.js';
|
|
21
21
|
import { UpdatedValue } from './updated-value.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { SignInRequired } from '../auth/signin-required.js';
|
|
3
2
|
import 'connectkit';
|
|
4
|
-
import '
|
|
3
|
+
import 'wagmi';
|
|
5
4
|
import '../buttons/back-button/back-button.js';
|
|
6
5
|
import '../buttons/button/button.js';
|
|
7
6
|
import '../buttons/copy-button/copy-button.js';
|
|
@@ -14,7 +13,8 @@ import 'tailwind-merge';
|
|
|
14
13
|
import 'sonner';
|
|
15
14
|
import '@gearbox-protocol/sdk';
|
|
16
15
|
import { TabButton } from '../buttons/tab-button/tab-button.js';
|
|
17
|
-
import '
|
|
16
|
+
import { SignInRequired } from '../auth/signin-required.js';
|
|
17
|
+
import 'viem/siwe';
|
|
18
18
|
import { TokenIcon } from '../token-icon/token-icon.js';
|
|
19
19
|
import { TableCell, Table } from './table.js';
|
|
20
20
|
import { UpdatedValue } from './updated-value.js';
|
|
@@ -23,7 +23,7 @@ const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
23
23
|
{
|
|
24
24
|
ref,
|
|
25
25
|
className: cn(
|
|
26
|
-
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow rounded-none border-b-2 border-transparent px-2 py-2 text-gray-400 hover:text-foreground data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground focus:outline-none cursor-pointer shrink-0",
|
|
26
|
+
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow rounded-none border-b-2 border-transparent px-2 py-2 text-gray-400 hover:text-foreground data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground focus:outline-none cursor-pointer shrink-0",
|
|
27
27
|
className
|
|
28
28
|
),
|
|
29
29
|
...props
|
package/dist/esm/index.js
CHANGED
|
@@ -2,9 +2,9 @@ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent,
|
|
|
2
2
|
export { AssetLine } from './components/asset-line/asset-line.js';
|
|
3
3
|
export { AssetsListCell } from './components/assets-list-cell/assets-list-cell.js';
|
|
4
4
|
export { AssetsRatio } from './components/assets-ratio/assets-ratio.js';
|
|
5
|
+
export { ConnectRequired } from './components/auth/connect-required.js';
|
|
5
6
|
export { SignInRequired } from './components/auth/signin-required.js';
|
|
6
7
|
export { SIWEClientProvider } from './components/auth/siwe-provider.js';
|
|
7
|
-
export { ConnectRequired } from './components/auth/connect-required.js';
|
|
8
8
|
export { Badge, badgeVariants } from './components/badge/badge.js';
|
|
9
9
|
export { BaseLink } from './components/base-link/base-link.js';
|
|
10
10
|
export { BlockSync } from './components/block-sync/block-sync.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TabButtonProps } from '../buttons';
|
|
2
1
|
import { ReactNode } from '../../../node_modules/.pnpm/react@19.2.0/node_modules/react';
|
|
3
2
|
import { Address } from 'viem';
|
|
3
|
+
import { TabButtonProps } from '../buttons';
|
|
4
4
|
/**
|
|
5
5
|
* SignInRequired — component that requires SIWE authentication to display content.
|
|
6
6
|
*
|