@obolnetwork/obol-ui 1.1.1 → 1.1.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/components/atoms/Button/Button.d.ts +5 -3
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/components/atoms/Text/Text.d.ts +3 -3
- package/dist/components/atoms/UnstyledTextField/UnstyledTextField.d.ts +3 -1
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/static-icons/ClockIcon.d.ts +2 -1
- package/dist/components/icons/static-icons/HelpIcon.d.ts +4 -1
- package/dist/components/icons/static-icons/RequestWithdrawIcon.d.ts +7 -0
- package/dist/components/molecules/ResponsiveDialog/ResponsiveDialog.d.ts +4 -1
- package/dist/components/molecules/TableV3/TableV3.d.ts +7 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare const Button: import("@stitches/react/types/styled-component").St
|
|
|
7
7
|
icon?: boolean | "true" | undefined;
|
|
8
8
|
fullWidth?: boolean | "true" | undefined;
|
|
9
9
|
outlined?: boolean | "true" | undefined;
|
|
10
|
+
loading?: boolean | "true" | undefined;
|
|
10
11
|
variant?: "nav" | "tx" | "wallet" | undefined;
|
|
11
12
|
}, {
|
|
12
13
|
motion: "(prefers-reduced-motion)";
|
|
@@ -500,20 +501,21 @@ declare type ButtonComponentVariants = Stitches.VariantProps<typeof Button>;
|
|
|
500
501
|
export declare type ButtonComponentProps = ButtonComponentVariants & {
|
|
501
502
|
loading?: boolean;
|
|
502
503
|
};
|
|
503
|
-
export declare const ButtonStory: (props: Omit<ButtonComponentProps, "color" | "icon" | "ghost" | "fullWidth" | "outlined" | "variant"> & {
|
|
504
|
+
export declare const ButtonStory: (props: Omit<ButtonComponentProps, "color" | "icon" | "ghost" | "fullWidth" | "outlined" | "loading" | "variant"> & {
|
|
504
505
|
color?: "coordinate" | "test" | "create" | "ghost" | "primary" | "secondary" | undefined;
|
|
505
506
|
ghost?: boolean | undefined;
|
|
506
507
|
icon?: boolean | undefined;
|
|
507
508
|
fullWidth?: boolean | undefined;
|
|
508
509
|
outlined?: boolean | undefined;
|
|
510
|
+
loading?: boolean | undefined;
|
|
509
511
|
variant?: "nav" | "tx" | "wallet" | undefined;
|
|
510
512
|
} & {
|
|
511
513
|
children?: ReactNode;
|
|
512
514
|
disabled?: boolean | undefined;
|
|
513
515
|
}) => JSX.Element;
|
|
514
|
-
|
|
516
|
+
declare type LoadingButtonProps = ButtonComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
515
517
|
css?: CSS;
|
|
516
518
|
children?: ReactNode;
|
|
517
|
-
}
|
|
519
|
+
};
|
|
518
520
|
export declare const LoadingButton: React.FC<LoadingButtonProps>;
|
|
519
521
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
value: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
/** Whether to show smooth animations */
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
css?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type * as Stitches from "@stitches/react";
|
|
3
3
|
export declare const Text: import("@stitches/react/types/styled-component").StyledComponent<"span", {
|
|
4
|
-
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | undefined;
|
|
4
|
+
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | "helper" | undefined;
|
|
5
5
|
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
|
|
6
6
|
color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "gradientGold" | "gradientSilver" | "gradientBronze" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "lightGrey" | "obolGold" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | "skeletonBg" | undefined;
|
|
7
7
|
glow?: boolean | "true" | undefined;
|
|
@@ -496,7 +496,7 @@ export declare const Text: import("@stitches/react/types/styled-component").Styl
|
|
|
496
496
|
}>>;
|
|
497
497
|
export default Text;
|
|
498
498
|
export declare const TextStory: (props: Omit<import("@stitches/react/types/styled-component").TransformProps<{
|
|
499
|
-
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | undefined;
|
|
499
|
+
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | "helper" | undefined;
|
|
500
500
|
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
|
|
501
501
|
color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "gradientGold" | "gradientSilver" | "gradientBronze" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "lightGrey" | "obolGold" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | "skeletonBg" | undefined;
|
|
502
502
|
glow?: boolean | "true" | undefined;
|
|
@@ -513,7 +513,7 @@ export declare const TextStory: (props: Omit<import("@stitches/react/types/style
|
|
|
513
513
|
md: "(max-width: 1200px)";
|
|
514
514
|
lg: "(max-width: 1800px)";
|
|
515
515
|
}>, "color" | "size" | "inline" | "variant" | "glow"> & {
|
|
516
|
-
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | undefined;
|
|
516
|
+
variant?: "body" | "pill" | "h1" | "h2" | "h3" | "h4" | "h5" | "metadata" | "subline" | "ens" | "metricStatusCell" | "helper" | undefined;
|
|
517
517
|
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
|
|
518
518
|
color?: "white" | "black" | "lightBackground" | "obolBlue" | "primaryBgDefault" | "primaryBgDefaultHover" | "primaryTextDefault" | "secondaryBgDefault" | "secondaryBgHover" | "grayBgDefault" | "gray2BgDefault" | "neutralDark" | "navButtonBgDefault" | "navButtonBgHover" | "cardBackgroundDark" | "cardBackgroundLight" | "gradientGold" | "gradientSilver" | "gradientBronze" | "textMiddle" | "textLight" | "textLighter" | "textTabHover" | "textTabInactive" | "textGreenDark" | "textGreenLight" | "textGreen1" | "textGreen2" | "textGreen3" | "textGreenHover" | "textCreateHover" | "textGrayHover" | "txButton" | "obolGreen" | "obolMidGreen" | "obolGreenHover" | "obolGreenLight" | "obolDarkDark" | "obolDisabled" | "linkButtonHover" | "progressTrackerGreen" | "lightGrey" | "obolGold" | "coordinate" | "coordinateHover" | "test" | "testHover" | "create" | "createHover" | "light" | "body" | "muted" | "menu" | "bg01" | "bg02" | "bg03" | "bg04" | "bg05" | "tooltip" | "tooltip2" | "skeletonBg" | undefined;
|
|
519
519
|
glow?: boolean | undefined;
|
|
@@ -487,7 +487,9 @@ export declare const UnstyledTextField: import("@stitches/react/types/styled-com
|
|
|
487
487
|
readonly [$$PropertyValue]: "backgroundClip";
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
-
}>>, {
|
|
490
|
+
}>>, {
|
|
491
|
+
variant?: "number" | undefined;
|
|
492
|
+
}, {
|
|
491
493
|
motion: "(prefers-reduced-motion)";
|
|
492
494
|
hover: "(any-hover: hover)";
|
|
493
495
|
dark: "(prefers-color-scheme: dark)";
|
|
@@ -13,6 +13,7 @@ export * from "./static-icons/obol/vertical";
|
|
|
13
13
|
export * from "./static-icons/CodeIcon";
|
|
14
14
|
export * from "./static-icons/MenuIcon";
|
|
15
15
|
export * from "./static-icons/PublicGoodIcon";
|
|
16
|
+
export * from "./static-icons/RequestWithdrawIcon";
|
|
16
17
|
export * from "./static-icons/TrustMinimisedIcon";
|
|
17
18
|
export * from "./static-icons/CreateIcon";
|
|
18
19
|
export * from "./static-icons/TestIcon";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { SvgIconProps } from "../../atoms/SvgIcon/SvgIcon";
|
|
2
|
+
export declare const ClockIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,9 @@ interface ResponsiveDialogComponentProps {
|
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
export declare const ResponsiveDialogComponent: React.FC<ResponsiveDialogComponentProps>;
|
|
10
|
-
export declare const ResponsiveDialogStyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
10
|
+
export declare const ResponsiveDialogStyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
11
|
+
size?: "stepped" | undefined;
|
|
12
|
+
}, {
|
|
11
13
|
motion: "(prefers-reduced-motion)";
|
|
12
14
|
hover: "(any-hover: hover)";
|
|
13
15
|
dark: "(prefers-color-scheme: dark)";
|
|
@@ -990,6 +992,7 @@ export interface ResponsiveDialogProps {
|
|
|
990
992
|
triggerElement?: React.ReactNode;
|
|
991
993
|
css?: CSS;
|
|
992
994
|
children: ReactNode;
|
|
995
|
+
size?: "stepped";
|
|
993
996
|
}
|
|
994
997
|
export declare const ResponsiveDialog: React.FC<ResponsiveDialogProps>;
|
|
995
998
|
export {};
|
|
@@ -57,6 +57,7 @@ declare type TableHeaderProps = {
|
|
|
57
57
|
tooltipContent?: string;
|
|
58
58
|
onClick?: () => void;
|
|
59
59
|
variant?: "uppercase";
|
|
60
|
+
css?: CSS;
|
|
60
61
|
};
|
|
61
62
|
declare type TableLoadingContentProps = {
|
|
62
63
|
columnsCount?: number;
|
|
@@ -89,9 +90,9 @@ export declare const TableV3: {
|
|
|
89
90
|
children?: React.ReactNode;
|
|
90
91
|
}>;
|
|
91
92
|
Header: React.FC<React.PropsWithChildren<TableHeaderProps>>;
|
|
92
|
-
Body: React.FC<{
|
|
93
|
-
|
|
94
|
-
}
|
|
93
|
+
Body: React.FC<React.PropsWithChildren<{
|
|
94
|
+
css?: CSS | undefined;
|
|
95
|
+
}>>;
|
|
95
96
|
Row: import("@stitches/react/types/styled-component").StyledComponent<"tr", {}, {
|
|
96
97
|
sm: "(max-width: 768px)";
|
|
97
98
|
bp2: "(min-width: 769px)";
|
|
@@ -99,7 +100,9 @@ export declare const TableV3: {
|
|
|
99
100
|
sm: "(max-width: 768px)";
|
|
100
101
|
bp2: "(min-width: 769px)";
|
|
101
102
|
}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
102
|
-
Cell: React.FC<React.PropsWithChildren<React.TdHTMLAttributes<HTMLTableCellElement
|
|
103
|
+
Cell: React.FC<React.PropsWithChildren<React.TdHTMLAttributes<HTMLTableCellElement> & {
|
|
104
|
+
css?: CSS | undefined;
|
|
105
|
+
}>>;
|
|
103
106
|
LinkCell: React.FC<React.PropsWithChildren<TableLinkCellProps>>;
|
|
104
107
|
Loading: React.FC<TableLoadingContentProps>;
|
|
105
108
|
NoResults: React.FC<TableNoResultsContentProps>;
|