@rango-dev/ui 0.33.1-next.0 → 0.33.1-next.1
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/index.js.map +2 -2
- package/dist/widget/ui/src/components/Alert/Alert.d.ts +2 -2
- package/dist/widget/ui/src/components/Alert/Alert.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.helpers.d.ts +3 -3
- package/dist/widget/ui/src/components/Alert/Alert.helpers.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.icon.d.ts +2 -2
- package/dist/widget/ui/src/components/Alert/Alert.icon.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.stories.d.ts +4 -4
- package/dist/widget/ui/src/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Alert/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Flags/flags.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Select/Select.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Spinner/Spinner.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWallets.stories.d.ts +1 -1
- package/dist/widget/ui/src/icons/Icons.stories.d.ts +1 -1
- package/package.json +9 -8
- package/src/components/Alert/Alert.helpers.ts +3 -3
- package/src/components/Alert/Alert.icon.tsx +2 -2
- package/src/components/Alert/Alert.stories.tsx +3 -3
- package/src/components/Alert/Alert.tsx +2 -2
- package/src/components/Alert/Alert.types.ts +1 -1
- package/src/components/Alert/index.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export declare function Alert(props: PropsWithChildren<
|
|
4
|
+
export declare function Alert(props: PropsWithChildren<AlertPropTypes>): React.JSX.Element;
|
|
5
5
|
export declare namespace Alert {
|
|
6
6
|
var toString: () => string;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,qBAiD7D;yBAjDe,KAAK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const getColor: (type: Type, variant:
|
|
3
|
-
export declare const mapVariantToSize: (variant:
|
|
1
|
+
import type { AlertPropTypes, Type } from './Alert.types';
|
|
2
|
+
export declare const getColor: (type: Type, variant: AlertPropTypes['variant']) => string | undefined;
|
|
3
|
+
export declare const mapVariantToSize: (variant: AlertPropTypes['variant']) => "small" | "xsmall";
|
|
4
4
|
//# sourceMappingURL=Alert.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1D,eAAO,MAAM,QAAQ,SAAU,IAAI,WAAW,cAAc,CAAC,SAAS,CAAC,uBActE,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,cAAc,CAAC,SAAS,CAAC,uBASlE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare function AlertIcon(props: Pick<
|
|
3
|
+
declare function AlertIcon(props: Pick<AlertPropTypes, 'type'>): React.JSX.Element;
|
|
4
4
|
export default AlertIcon;
|
|
5
5
|
//# sourceMappingURL=Alert.icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.icon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.icon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,iBAAS,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,qBAarD;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, AlertPropTypes & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const Main: (args:
|
|
8
|
-
export declare const WithoutFooter: (args:
|
|
7
|
+
export declare const Main: (args: AlertPropTypes) => React.JSX.Element;
|
|
8
|
+
export declare const WithoutFooter: (args: AlertPropTypes) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=Alert.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,MAAM,OAAO,CAAC;;;;AAI1B,wBAyBwB;AAExB,eAAO,MAAM,IAAI,SAAU,cAAc,sBAOxC,CAAC;AACF,eAAO,MAAM,aAAa,SAAU,cAAc,sBAIjD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { CSS } from '../../theme';
|
|
|
2
2
|
import type { BaseAlign } from '../Typography/Typography.types';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
export type Type = 'success' | 'warning' | 'error' | 'info' | 'loading';
|
|
5
|
-
export interface
|
|
5
|
+
export interface AlertPropTypes {
|
|
6
6
|
type: Type;
|
|
7
7
|
title?: ReactNode;
|
|
8
8
|
footer?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Alert.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Flags from '.';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, any>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (props: Flags.FlagPropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=flags.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Modal.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './NotFound.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=NotFound.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Popover.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("./Popover.types").ContentType & {
|
|
4
4
|
content: React.ReactNode;
|
|
5
5
|
} & {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Radio.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Radio.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './RadioGroup.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.stories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SvgIconPropsWithChildren } from '../SvgIcon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("../SvgIcon").SvgIconProps & {
|
|
4
4
|
children?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
progress: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Select.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes<string>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes<string>) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Select.stories.d.ts.map
|
package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.stories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './SelectableCategoryList.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=SelectableCategoryList.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Skeleton.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Skeleton.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Spinner.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (props: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Spinner.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './SwapListItem.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, React.PropsWithChildren<PropTypes>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (props: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=SwapListItem.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Switch.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Switch.stories.d.ts.map
|
|
@@ -162,7 +162,7 @@ export declare const TabsContainer: import("@stitches/react/types/styled-compone
|
|
|
162
162
|
zIndices: {};
|
|
163
163
|
transitions: {};
|
|
164
164
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
165
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
165
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
166
166
|
export default _default;
|
|
167
167
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
168
168
|
//# sourceMappingURL=Tabs.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './TextField.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, {
|
|
4
4
|
label?: React.ReactNode;
|
|
5
5
|
prefix?: React.ReactNode;
|
|
6
6
|
suffix?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToastProps } from './Toast.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("./Toast.types").ToastType & {
|
|
4
4
|
id: string | number;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropTypes } from './Tooltip.types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropTypes } from './ConnectWalletsModal';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, PropTypes>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=ConnectWallets.stories.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SvgIconProps } from '../components/SvgIcon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, any>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (props: SvgIconProps) => React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Icons.stories.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.33.1-next.
|
|
3
|
+
"version": "0.33.1-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -33,24 +33,25 @@
|
|
|
33
33
|
"@babel/preset-env": "^7.21.4",
|
|
34
34
|
"@babel/preset-react": "^7.18.6",
|
|
35
35
|
"@babel/preset-typescript": "^7.21.4",
|
|
36
|
+
"@chromatic-com/storybook": "^1",
|
|
36
37
|
"@lingui/core": "4.2.1",
|
|
37
38
|
"@lingui/react": "4.2.1",
|
|
38
|
-
"@storybook/addon-essentials": "^
|
|
39
|
+
"@storybook/addon-essentials": "^8.0.8",
|
|
39
40
|
"@storybook/addon-info": "^5.3.21",
|
|
40
|
-
"@storybook/addon-links": "^
|
|
41
|
+
"@storybook/addon-links": "^8.0.8",
|
|
41
42
|
"@storybook/addons": "^7.1.1",
|
|
42
|
-
"@storybook/react": "^
|
|
43
|
-
"@storybook/react-
|
|
43
|
+
"@storybook/react": "^8.0.8",
|
|
44
|
+
"@storybook/react-vite": "^8.0.8",
|
|
45
|
+
"@storybook/react-webpack5": "^8.0.8",
|
|
44
46
|
"@svgr/babel-plugin-remove-jsx-attribute": "8.0.0",
|
|
45
47
|
"@svgr/cli": "^8.0.1",
|
|
46
48
|
"@types/react": "^18.0.25",
|
|
47
49
|
"@types/react-dom": "^18.0.8",
|
|
48
50
|
"babel-loader": "^9.1.0",
|
|
49
|
-
"husky": "^8.0.2",
|
|
50
51
|
"react": "^18.2.0",
|
|
51
52
|
"react-dom": "^18.2.0",
|
|
52
53
|
"react-is": "^18.2.0",
|
|
53
|
-
"storybook": "^
|
|
54
|
+
"storybook": "^8.0.8"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@radix-ui/react-checkbox": "^1.0.1",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"@radix-ui/react-select": "^2.0.0",
|
|
61
62
|
"@radix-ui/react-switch": "^1.0.1",
|
|
62
63
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
63
|
-
"@rango-dev/wallets-shared": "^0.32.0",
|
|
64
|
+
"@rango-dev/wallets-shared": "^0.32.1-next.0",
|
|
64
65
|
"@stitches/react": "^1.2.8",
|
|
65
66
|
"copy-to-clipboard": "^3.3.3",
|
|
66
67
|
"rango-sdk": "^0.1.45",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes, Type } from './Alert.types';
|
|
2
2
|
|
|
3
|
-
export const getColor = (type: Type, variant:
|
|
3
|
+
export const getColor = (type: Type, variant: AlertPropTypes['variant']) => {
|
|
4
4
|
if (variant === 'regular') {
|
|
5
5
|
return undefined;
|
|
6
6
|
}
|
|
@@ -16,7 +16,7 @@ export const getColor = (type: Type, variant: PropTypes['variant']) => {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export const mapVariantToSize = (variant:
|
|
19
|
+
export const mapVariantToSize = (variant: AlertPropTypes['variant']) => {
|
|
20
20
|
switch (variant) {
|
|
21
21
|
case 'alarm':
|
|
22
22
|
return 'small';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '../../icons';
|
|
11
11
|
import { Spinner } from '../Spinner';
|
|
12
12
|
|
|
13
|
-
function AlertIcon(props: Pick<
|
|
13
|
+
function AlertIcon(props: Pick<AlertPropTypes, 'type'>) {
|
|
14
14
|
switch (props.type) {
|
|
15
15
|
case 'success':
|
|
16
16
|
return <CompleteIcon color={props.type} size={12} />;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
},
|
|
33
33
|
} as Meta<typeof Alert>;
|
|
34
34
|
|
|
35
|
-
export const Main = (args:
|
|
35
|
+
export const Main = (args: AlertPropTypes) => (
|
|
36
36
|
<div style={{ width: 350 }}>
|
|
37
37
|
<Alert
|
|
38
38
|
{...args}
|
|
@@ -40,7 +40,7 @@ export const Main = (args: PropTypes) => (
|
|
|
40
40
|
/>
|
|
41
41
|
</div>
|
|
42
42
|
);
|
|
43
|
-
export const WithoutFooter = (args:
|
|
43
|
+
export const WithoutFooter = (args: AlertPropTypes) => (
|
|
44
44
|
<div style={{ width: 350 }}>
|
|
45
45
|
<Alert {...args} variant="alarm" />
|
|
46
46
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlertPropTypes } from './Alert.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
@@ -10,7 +10,7 @@ import { getColor, mapVariantToSize } from './Alert.helpers';
|
|
|
10
10
|
import AlertIcon from './Alert.icon';
|
|
11
11
|
import { Container, IconHighlight, Main, TitleContainer } from './Alert.styles';
|
|
12
12
|
|
|
13
|
-
export function Alert(props: PropsWithChildren<
|
|
13
|
+
export function Alert(props: PropsWithChildren<AlertPropTypes>) {
|
|
14
14
|
const {
|
|
15
15
|
type,
|
|
16
16
|
title,
|