@mezo-org/mezo-clay 0.1.0-dev.0 → 0.1.0-dev.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/README.md +3 -1
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/overrides.d.ts +15 -0
- package/dist/components/icons/coins-swap/index.d.ts +8 -0
- package/dist/components/icons/index.d.ts +6 -2
- package/dist/components/icons/mats-circle/index.d.ts +8 -2
- package/dist/components/icons/message-question-circle/index.d.ts +9 -0
- package/dist/components/icons/plus/index.d.ts +9 -0
- package/dist/components/icons/settings/index.d.ts +8 -0
- package/dist/components/icons/wallet/index.d.ts +8 -2
- package/dist/components/index.d.ts +3 -0
- package/dist/components/list/index.d.ts +7 -0
- package/dist/components/list/list-heading.d.ts +14 -0
- package/dist/components/list/list-item-label.d.ts +3 -0
- package/dist/components/list/list.d.ts +10 -0
- package/dist/components/message-card/index.d.ts +2 -0
- package/dist/components/message-card/message-card.d.ts +2 -0
- package/dist/components/message-card/overrides.d.ts +7 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/mezo-clay.es.js +8895 -7318
- package/dist/mezo-clay.umd.js +30 -17
- package/dist/themes/clay-dark-theme.d.ts +1 -0
- package/dist/themes/clay-light-theme.d.ts +1 -1
- package/dist/themes/color-tokens.d.ts +1 -0
- package/package.json +18 -17
package/README.md
CHANGED
|
@@ -65,7 +65,9 @@ The library is output as the /dist directory.
|
|
|
65
65
|
|
|
66
66
|
### Install
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
```shell
|
|
69
|
+
pnpm add @mezo-org/mezo-clay
|
|
70
|
+
```
|
|
69
71
|
|
|
70
72
|
Clay (and Base) uses [Styletron](https://www.styletron.org/) for its component styling (as css in js), and requires its engine as a peer dependency, so you will need to install it as well.
|
|
71
73
|
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
import { ButtonProps } from './types';
|
|
2
|
+
export declare function getButtonHoverStyles(kind: any, disabled?: boolean): {
|
|
3
|
+
boxShadow?: undefined;
|
|
4
|
+
} | {
|
|
5
|
+
boxShadow: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getButtonActiveStyles($theme: any, kind: any, disabled?: boolean): {
|
|
8
|
+
boxShadow?: undefined;
|
|
9
|
+
color?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
boxShadow: string;
|
|
12
|
+
color?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
color: any;
|
|
15
|
+
boxShadow?: undefined;
|
|
16
|
+
};
|
|
2
17
|
export declare function getButtonOverrides({ overrides, kind, disabled }: ButtonProps): import('baseui/helpers/overrides').Overrides<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const CoinsSwap02: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -14,6 +14,7 @@ export { default as ChevronSelectorVertical } from './chevron-selector-vertical'
|
|
|
14
14
|
export { default as ChevronUp } from './chevron-up';
|
|
15
15
|
export { default as Close } from './close';
|
|
16
16
|
export { default as CoinsHand } from './coins-hand';
|
|
17
|
+
export { CoinsSwap02 } from './coins-swap';
|
|
17
18
|
export { Cube01 } from './cube';
|
|
18
19
|
export { default as Discord } from './discord';
|
|
19
20
|
export { default as Eye } from './eye';
|
|
@@ -26,17 +27,20 @@ export { Lightning01 } from './lightning';
|
|
|
26
27
|
export { LinkExternal02 } from './link-external';
|
|
27
28
|
export { default as Loading } from './loading';
|
|
28
29
|
export { LogIn01 } from './log-in';
|
|
29
|
-
export {
|
|
30
|
+
export { MatsCircle, MatsCircleBlack } from './mats-circle';
|
|
30
31
|
export { default as Menu } from './menu';
|
|
32
|
+
export { default as MessageQuestionCircle } from './message-question-circle';
|
|
31
33
|
export { default as MinusCircle } from './minus-circle';
|
|
32
34
|
export { default as MinusSquare } from './minus-square';
|
|
35
|
+
export { default as Plus } from './plus';
|
|
33
36
|
export { default as PlusCircle } from './plus-circle';
|
|
34
37
|
export { ReceiptCheck } from './receipt';
|
|
35
38
|
export { SearchSmall, SearchMedium, SearchLarge } from './search';
|
|
39
|
+
export { Settings03 } from './settings';
|
|
36
40
|
export { default as Square } from './square';
|
|
37
41
|
export { Star01, Star01Outline, Star05, Star05Outline } from './star';
|
|
38
42
|
export { Trophy01 } from './trophy';
|
|
39
43
|
export { default as User03 } from './user';
|
|
40
|
-
export {
|
|
44
|
+
export { Wallet03, Wallet04 } from './wallet';
|
|
41
45
|
export { default as XCircle } from './x-circle';
|
|
42
46
|
export { default as XTwitter } from './x-twitter';
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const MatsCircle: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
2
|
+
export declare const MatsCircle: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export declare const MatsCircleBlack: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
10
|
children?: React.ReactNode;
|
|
4
11
|
size?: import('baseui/icon').Size;
|
|
5
12
|
color?: import('baseui/icon').Color;
|
|
6
13
|
title?: string | null;
|
|
7
14
|
overrides?: import('baseui/icon').IconOverrides;
|
|
8
15
|
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
-
export default MatsCircle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const MessageQuestionCircle: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export default MessageQuestionCircle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Plus: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export default Plus;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const Settings03: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const Wallet03: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import('baseui/icon').Size;
|
|
5
|
+
color?: import('baseui/icon').Color;
|
|
6
|
+
title?: string | null;
|
|
7
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
8
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export declare const Wallet04: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
3
10
|
children?: React.ReactNode;
|
|
4
11
|
size?: import('baseui/icon').Size;
|
|
5
12
|
color?: import('baseui/icon').Color;
|
|
6
13
|
title?: string | null;
|
|
7
14
|
overrides?: import('baseui/icon').IconOverrides;
|
|
8
15
|
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
-
export default Wallet;
|
|
@@ -6,7 +6,10 @@ export * from './flex-grid';
|
|
|
6
6
|
export * from './form-control';
|
|
7
7
|
export * from './icons';
|
|
8
8
|
export * from './input';
|
|
9
|
+
export * from './message-card';
|
|
9
10
|
export * from './side-navigation';
|
|
10
11
|
export * from './tag';
|
|
11
12
|
export * from './textarea';
|
|
12
13
|
export * from './typography';
|
|
14
|
+
export * from './skeleton';
|
|
15
|
+
export * from './list';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as ListHeading } from './list-heading';
|
|
2
|
+
export { type ListHeadingProps } from './list-heading';
|
|
3
|
+
export { default as ListItem } from './list';
|
|
4
|
+
export { type ListItemProps } from './list';
|
|
5
|
+
export { default as ListItemLabel } from './list-item-label';
|
|
6
|
+
export { type ListItemLabelProps } from './list-item-label';
|
|
7
|
+
export { ARTWORK_SIZES, SHAPE } from 'baseui/list';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HeadingProps } from 'baseui/list';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type ConditionalProps = {
|
|
4
|
+
endEnhancer?: string;
|
|
5
|
+
endEnhancerDescription?: HeadingProps["endEnhancerDescription"];
|
|
6
|
+
} | {
|
|
7
|
+
endEnhancer?: React.ComponentType;
|
|
8
|
+
endEnhancerDescription?: never;
|
|
9
|
+
};
|
|
10
|
+
export type ListHeadingProps = HeadingProps & {
|
|
11
|
+
isFetching?: boolean;
|
|
12
|
+
} & ConditionalProps;
|
|
13
|
+
export default function ListHeading({ isFetching, overrides, ...restProps }: ListHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ListProps } from 'baseui/list';
|
|
2
|
+
type State = "enabled" | "disabled" | "loading";
|
|
3
|
+
export type ListItemProps = ListProps & {
|
|
4
|
+
state?: State;
|
|
5
|
+
};
|
|
6
|
+
export declare const useListItemContext: () => {
|
|
7
|
+
state: State;
|
|
8
|
+
};
|
|
9
|
+
export default function ListItem({ children, overrides, state, ...restProps }: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MessageCardProps } from 'baseui/message-card';
|
|
2
|
+
export default function MessageCard({ onClick, onDismiss, heading, paragraph, buttonLabel, buttonKind, backgroundColor, backgroundColorType, image, overrides, }: MessageCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function getMessageCardOverrides({ overrides, image, buttonKind, backgroundColor, backgroundColorType, }: {
|
|
2
|
+
overrides: any;
|
|
3
|
+
image: any;
|
|
4
|
+
buttonKind: any;
|
|
5
|
+
backgroundColor: any;
|
|
6
|
+
backgroundColorType: any;
|
|
7
|
+
}): import('baseui/helpers/overrides').Overrides<any>;
|