@mezo-org/mezo-clay 0.1.0-dev.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/README.md +104 -0
- package/dist/components/block/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/button/constants.d.ts +11 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/overrides.d.ts +2 -0
- package/dist/components/button/types.d.ts +9 -0
- package/dist/components/button-group/button-group.d.ts +3 -0
- package/dist/components/button-group/constants.d.ts +5 -0
- package/dist/components/button-group/index.d.ts +3 -0
- package/dist/components/button-group/types.d.ts +13 -0
- package/dist/components/button-icon/button-icon.d.ts +2 -0
- package/dist/components/button-icon/constants.d.ts +13 -0
- package/dist/components/button-icon/index.d.ts +4 -0
- package/dist/components/button-icon/overrides.d.ts +5 -0
- package/dist/components/button-icon/types.d.ts +7 -0
- package/dist/components/flex-grid/index.d.ts +2 -0
- package/dist/components/form-control/constants.d.ts +1 -0
- package/dist/components/form-control/form-control-character-count.d.ts +5 -0
- package/dist/components/form-control/form-control.d.ts +2 -0
- package/dist/components/form-control/index.d.ts +5 -0
- package/dist/components/form-control/overrides.d.ts +6 -0
- package/dist/components/form-control/types.d.ts +8 -0
- package/dist/components/icons/alert-circle/index.d.ts +9 -0
- package/dist/components/icons/apple/index.d.ts +9 -0
- package/dist/components/icons/arrow-narrow-left/index.d.ts +9 -0
- package/dist/components/icons/arrow-narrow-right/index.d.ts +9 -0
- package/dist/components/icons/building/index.d.ts +8 -0
- package/dist/components/icons/check-circle/index.d.ts +9 -0
- package/dist/components/icons/check-square/index.d.ts +9 -0
- package/dist/components/icons/chevron-down/index.d.ts +9 -0
- package/dist/components/icons/chevron-left/index.d.ts +9 -0
- package/dist/components/icons/chevron-right/index.d.ts +9 -0
- package/dist/components/icons/chevron-selector-horizontal/index.d.ts +9 -0
- package/dist/components/icons/chevron-selector-vertical/index.d.ts +9 -0
- package/dist/components/icons/chevron-up/index.d.ts +9 -0
- package/dist/components/icons/close/index.d.ts +9 -0
- package/dist/components/icons/coins-hand/index.d.ts +9 -0
- package/dist/components/icons/cube/index.d.ts +8 -0
- package/dist/components/icons/discord/index.d.ts +9 -0
- package/dist/components/icons/eye/index.d.ts +9 -0
- package/dist/components/icons/eye-off/index.d.ts +9 -0
- package/dist/components/icons/google/index.d.ts +9 -0
- package/dist/components/icons/heart/index.d.ts +9 -0
- package/dist/components/icons/home-smile/index.d.ts +8 -0
- package/dist/components/icons/index.d.ts +42 -0
- package/dist/components/icons/info-circle/index.d.ts +9 -0
- package/dist/components/icons/lightning/index.d.ts +8 -0
- package/dist/components/icons/link-external/index.d.ts +8 -0
- package/dist/components/icons/loading/index.d.ts +9 -0
- package/dist/components/icons/log-in/index.d.ts +8 -0
- package/dist/components/icons/mats-circle/index.d.ts +9 -0
- package/dist/components/icons/menu/index.d.ts +9 -0
- package/dist/components/icons/minus-circle/index.d.ts +9 -0
- package/dist/components/icons/minus-square/index.d.ts +9 -0
- package/dist/components/icons/plus-circle/index.d.ts +9 -0
- package/dist/components/icons/receipt/index.d.ts +8 -0
- package/dist/components/icons/search/index.d.ts +23 -0
- package/dist/components/icons/square/index.d.ts +9 -0
- package/dist/components/icons/star/index.d.ts +29 -0
- package/dist/components/icons/trophy/index.d.ts +8 -0
- package/dist/components/icons/user/index.d.ts +9 -0
- package/dist/components/icons/utils.d.ts +46 -0
- package/dist/components/icons/wallet/index.d.ts +9 -0
- package/dist/components/icons/x-circle/index.d.ts +9 -0
- package/dist/components/icons/x-twitter/index.d.ts +9 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/input/constants.d.ts +5 -0
- package/dist/components/input/index.d.ts +6 -0
- package/dist/components/input/input.d.ts +4 -0
- package/dist/components/input/overrides.d.ts +23 -0
- package/dist/components/input/password-input.d.ts +2 -0
- package/dist/components/input/search-input.d.ts +2 -0
- package/dist/components/input/types.d.ts +12 -0
- package/dist/components/side-navigation/index.d.ts +3 -0
- package/dist/components/side-navigation/overrides.d.ts +3 -0
- package/dist/components/side-navigation/side-navigation.d.ts +5 -0
- package/dist/components/tag/constants.d.ts +73 -0
- package/dist/components/tag/index.d.ts +4 -0
- package/dist/components/tag/overrides.d.ts +11 -0
- package/dist/components/tag/tag.d.ts +22 -0
- package/dist/components/tag/types.d.ts +6 -0
- package/dist/components/textarea/constants.d.ts +1 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/overrides.d.ts +4 -0
- package/dist/components/textarea/textarea.d.ts +2 -0
- package/dist/components/textarea/types.d.ts +8 -0
- package/dist/components/typography/index.d.ts +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +4 -0
- package/dist/mezo-clay.css +1 -0
- package/dist/mezo-clay.es.js +19315 -0
- package/dist/mezo-clay.umd.js +241 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/themes/borders.d.ts +8 -0
- package/dist/themes/clay-dark-theme.d.ts +335 -0
- package/dist/themes/clay-light-theme.d.ts +334 -0
- package/dist/themes/color-tokens.d.ts +64 -0
- package/dist/themes/index.d.ts +6 -0
- package/dist/themes/typography.d.ts +219 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +69 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const MinusSquare: 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 MinusSquare;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const PlusCircle: 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 PlusCircle;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const ReceiptCheck: 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>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const SearchSmall: 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 SearchMedium: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
size?: import('baseui/icon').Size;
|
|
12
|
+
color?: import('baseui/icon').Color;
|
|
13
|
+
title?: string | null;
|
|
14
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
15
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export default SearchMedium;
|
|
17
|
+
export declare const SearchLarge: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
size?: import('baseui/icon').Size;
|
|
20
|
+
color?: import('baseui/icon').Color;
|
|
21
|
+
title?: string | null;
|
|
22
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
23
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Square: 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 Square;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const Star01: 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 Star01Outline: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
size?: import('baseui/icon').Size;
|
|
12
|
+
color?: import('baseui/icon').Color;
|
|
13
|
+
title?: string | null;
|
|
14
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
15
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export declare const Star05: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
size?: import('baseui/icon').Size;
|
|
19
|
+
color?: import('baseui/icon').Color;
|
|
20
|
+
title?: string | null;
|
|
21
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
22
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
23
|
+
export declare const Star05Outline: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & {
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
size?: import('baseui/icon').Size;
|
|
26
|
+
color?: import('baseui/icon').Color;
|
|
27
|
+
title?: string | null;
|
|
28
|
+
overrides?: import('baseui/icon').IconOverrides;
|
|
29
|
+
} & import('baseui/icon').StyledComponentArgs & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Trophy01: 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>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const User03: 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 User03;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Theme } from 'baseui/styles';
|
|
2
|
+
export declare function getIconDefaultStory(): {
|
|
3
|
+
args: {
|
|
4
|
+
size: number;
|
|
5
|
+
color: string;
|
|
6
|
+
overrides: {
|
|
7
|
+
Svg: {
|
|
8
|
+
style: ({ $theme }: {
|
|
9
|
+
$theme: any;
|
|
10
|
+
}) => {};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type StyleAttribute = "stroke" | "fill";
|
|
16
|
+
export declare function getIconColorStory(color: string, styleAttribute?: StyleAttribute): {
|
|
17
|
+
args: {
|
|
18
|
+
size: number;
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
play: ({ canvasElement }: {
|
|
22
|
+
canvasElement: any;
|
|
23
|
+
}) => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
type StyleOverridesCallback = ({ $theme }: {
|
|
26
|
+
$theme: Theme;
|
|
27
|
+
}) => void;
|
|
28
|
+
type PlayFnCallback = ({ svg, canvas, }: {
|
|
29
|
+
svg: HTMLElement;
|
|
30
|
+
canvas: any;
|
|
31
|
+
}) => Promise<void>;
|
|
32
|
+
export declare function getIconWithStyleOverridesStory(styleOverridesCb: StyleOverridesCallback, playFnCb?: PlayFnCallback): {
|
|
33
|
+
args: {
|
|
34
|
+
size: number;
|
|
35
|
+
color: string;
|
|
36
|
+
overrides: {
|
|
37
|
+
Svg: {
|
|
38
|
+
style: StyleOverridesCallback;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
play: ({ canvasElement }: {
|
|
43
|
+
canvasElement: any;
|
|
44
|
+
}) => Promise<void>;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const Wallet: 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 Wallet;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const XCircle: 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 XCircle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const XTwitter: 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 XTwitter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './block';
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './button-group';
|
|
4
|
+
export * from './button-icon';
|
|
5
|
+
export * from './flex-grid';
|
|
6
|
+
export * from './form-control';
|
|
7
|
+
export * from './icons';
|
|
8
|
+
export * from './input';
|
|
9
|
+
export * from './side-navigation';
|
|
10
|
+
export * from './tag';
|
|
11
|
+
export * from './textarea';
|
|
12
|
+
export * from './typography';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { SIZE as INPUT_SIZE } from './constants';
|
|
2
|
+
export { default as Input, getBaseInputSize } from './input';
|
|
3
|
+
export { default as PasswordInput } from './password-input';
|
|
4
|
+
export { default as SearchInput } from './search-input';
|
|
5
|
+
export { getEndEnhancer, getRootReadOnlyStyles, getInputContainerReadOnlyStyles, } from './overrides';
|
|
6
|
+
export type { InputProps, PasswordInputProps, SearchInputProps } from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SIZE } from './constants';
|
|
2
|
+
import { InputProps } from './types';
|
|
3
|
+
export declare function getBaseInputSize(size: keyof typeof SIZE): "mini" | "compact" | "default" | "large";
|
|
4
|
+
export default function Input({ value, onChange, disabled, error, positive, incomplete, complete, loading, readOnly, size, type, clearable, clearOnEscape, startEnhancer, endEnhancer, inputMode, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, adjoined, autoComplete, autoFocus, pattern, placeholder, id, inputRef, name, min, max, step, maxLength, onBlur, onKeyDown, onKeyPress, onKeyUp, onFocus, required, overrides, }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InputProps } from './types';
|
|
2
|
+
export declare const InputLoadingSpinner: import('styletron-react').StyletronComponent<"i", import('baseui/spinner').SpinnerProps>;
|
|
3
|
+
export declare function getEndEnhancer({ incomplete, complete, loading, loadingSpinnerSize, }: {
|
|
4
|
+
incomplete: InputProps["incomplete"];
|
|
5
|
+
complete: InputProps["complete"];
|
|
6
|
+
loading: InputProps["loading"];
|
|
7
|
+
loadingSpinnerSize?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function getRootReadOnlyStyles($theme: any, readOnly: boolean): {
|
|
10
|
+
backgroundColor: any;
|
|
11
|
+
borderColor: any;
|
|
12
|
+
borderWidth: any;
|
|
13
|
+
} | {
|
|
14
|
+
backgroundColor?: undefined;
|
|
15
|
+
borderColor?: undefined;
|
|
16
|
+
borderWidth?: undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare function getInputContainerReadOnlyStyles($theme: any, readOnly: boolean): {
|
|
19
|
+
backgroundColor: any;
|
|
20
|
+
} | {
|
|
21
|
+
backgroundColor?: undefined;
|
|
22
|
+
};
|
|
23
|
+
export declare function getInputOverrides({ overrides, size, loading, readOnly, endEnhancer, complete, incomplete, type, }: InputProps): import('baseui/helpers/overrides').Overrides<any>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PasswordInputProps } from './types';
|
|
2
|
+
export default function PasswordInput({ value, onChange, disabled, error, positive, incomplete, complete, loading, readOnly, size, clearable, clearOnEscape, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, adjoined, autoComplete, autoFocus, pattern, placeholder, id, inputRef, name, min, max, step, maxLength, onBlur, onKeyDown, onKeyPress, onKeyUp, onFocus, required, overrides, }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SearchInputProps } from './types';
|
|
2
|
+
export default function SearchInput({ value, onChange, disabled, loading, size, clearOnEscape, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, adjoined, autoComplete, autoFocus, pattern, placeholder, id, inputRef, name, min, max, step, maxLength, onBlur, onKeyDown, onKeyPress, onKeyUp, onFocus, overrides, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputProps as BaseInputProps } from 'baseui/input';
|
|
2
|
+
import { SIZE } from './constants';
|
|
3
|
+
export interface InputProps extends Omit<BaseInputProps, "size"> {
|
|
4
|
+
size?: keyof typeof SIZE;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
complete?: boolean;
|
|
7
|
+
incomplete?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PasswordInputProps extends Omit<Omit<Omit<Omit<InputProps, "type">, "inputMode">, "startEnhancer">, "endEnhancer"> {
|
|
10
|
+
}
|
|
11
|
+
export interface SearchInputProps extends Omit<Omit<Omit<Omit<Omit<Omit<PasswordInputProps, "clearable">, "complete">, "error">, "incomplete">, "positive">, "required"> {
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NavigationProps as BaseSideNavigationProps } from 'baseui/side-navigation';
|
|
3
|
+
export default function SideNavigation({ activeItemId, activePredicate, items, itemMemoizationComparator, onChange, overrides, mapItem, }: BaseSideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function SideNavItemTitle({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function SideNavLeadingIcon({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const COLOR: {
|
|
2
|
+
gray: {
|
|
3
|
+
backgroundPrimary: string;
|
|
4
|
+
backgroundPrimaryDisabled: string;
|
|
5
|
+
fontPrimary: string;
|
|
6
|
+
fontPrimaryDisabled: string;
|
|
7
|
+
backgroundSecondary: string;
|
|
8
|
+
backgroundSecondaryDisabled: string;
|
|
9
|
+
fontSecondary: string;
|
|
10
|
+
fontSecondaryDisabled: string;
|
|
11
|
+
};
|
|
12
|
+
red: {
|
|
13
|
+
backgroundPrimary: string;
|
|
14
|
+
backgroundPrimaryDisabled: string;
|
|
15
|
+
fontPrimary: string;
|
|
16
|
+
fontPrimaryDisabled: string;
|
|
17
|
+
backgroundSecondary: string;
|
|
18
|
+
backgroundSecondaryDisabled: string;
|
|
19
|
+
fontSecondary: string;
|
|
20
|
+
fontSecondaryDisabled: string;
|
|
21
|
+
};
|
|
22
|
+
brown: {
|
|
23
|
+
backgroundPrimary: string;
|
|
24
|
+
backgroundPrimaryDisabled: string;
|
|
25
|
+
fontPrimary: string;
|
|
26
|
+
fontPrimaryDisabled: string;
|
|
27
|
+
backgroundSecondary: string;
|
|
28
|
+
backgroundSecondaryDisabled: string;
|
|
29
|
+
fontSecondary: string;
|
|
30
|
+
fontSecondaryDisabled: string;
|
|
31
|
+
};
|
|
32
|
+
yellow: {
|
|
33
|
+
backgroundPrimary: string;
|
|
34
|
+
backgroundPrimaryDisabled: string;
|
|
35
|
+
fontPrimary: string;
|
|
36
|
+
fontPrimaryDisabled: string;
|
|
37
|
+
backgroundSecondary: string;
|
|
38
|
+
backgroundSecondaryDisabled: string;
|
|
39
|
+
fontSecondary: string;
|
|
40
|
+
fontSecondaryDisabled: string;
|
|
41
|
+
};
|
|
42
|
+
green: {
|
|
43
|
+
backgroundPrimary: string;
|
|
44
|
+
backgroundPrimaryDisabled: string;
|
|
45
|
+
fontPrimary: string;
|
|
46
|
+
fontPrimaryDisabled: string;
|
|
47
|
+
backgroundSecondary: string;
|
|
48
|
+
backgroundSecondaryDisabled: string;
|
|
49
|
+
fontSecondary: string;
|
|
50
|
+
fontSecondaryDisabled: string;
|
|
51
|
+
};
|
|
52
|
+
blue: {
|
|
53
|
+
backgroundPrimary: string;
|
|
54
|
+
backgroundPrimaryDisabled: string;
|
|
55
|
+
fontPrimary: string;
|
|
56
|
+
fontPrimaryDisabled: string;
|
|
57
|
+
backgroundSecondary: string;
|
|
58
|
+
backgroundSecondaryDisabled: string;
|
|
59
|
+
fontSecondary: string;
|
|
60
|
+
fontSecondaryDisabled: string;
|
|
61
|
+
};
|
|
62
|
+
purple: {
|
|
63
|
+
backgroundPrimary: string;
|
|
64
|
+
backgroundPrimaryDisabled: string;
|
|
65
|
+
fontPrimary: string;
|
|
66
|
+
fontPrimaryDisabled: string;
|
|
67
|
+
backgroundSecondary: string;
|
|
68
|
+
backgroundSecondaryDisabled: string;
|
|
69
|
+
fontSecondary: string;
|
|
70
|
+
fontSecondaryDisabled: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export { SIZE } from 'baseui/tag';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TagProps } from './types';
|
|
2
|
+
export declare function getBgColorKey(color: any, hierarchy: any, disabled: any): any;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Gets all overrides for tag
|
|
6
|
+
*
|
|
7
|
+
* Sets styles based on color key and current state: background color,
|
|
8
|
+
* font color, as well as icon, icon size, and border radius. These are all
|
|
9
|
+
* customizations that cannot be set using theme tokens.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getTagOverrides({ overrides, color, size, disabled, hierarchy, onClick, }: TagProps): import('baseui/helpers/overrides').Overrides<any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TagProps } from './types';
|
|
2
|
+
export default function Tag({ overrides,
|
|
3
|
+
/** Include or exclude the "x" button and click action. */
|
|
4
|
+
closeable,
|
|
5
|
+
/** Disable control from being changed. */
|
|
6
|
+
disabled,
|
|
7
|
+
/** Component or String value for label of tag. Default is empty string. */
|
|
8
|
+
children,
|
|
9
|
+
/** The color theme to be applied to a Tag. Default is `KIND.primary`. */
|
|
10
|
+
color, hierarchy,
|
|
11
|
+
/** Text to display in native OS tooltip on long hover. */
|
|
12
|
+
title,
|
|
13
|
+
/** onClick handler for the action button element. */
|
|
14
|
+
onActionClick,
|
|
15
|
+
/** keydown handler for the action button element. */
|
|
16
|
+
onActionKeyDown,
|
|
17
|
+
/** onClick handler for the tag. Passing an onClick handler also makes the tag clickable. */
|
|
18
|
+
onClick,
|
|
19
|
+
/** onkeydown handler for the tag. */
|
|
20
|
+
onKeyDown,
|
|
21
|
+
/** Determines the size of the Tag. */
|
|
22
|
+
size, startEnhancer, contentMaxWidth, }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TagProps as BaseTagProps } from 'baseui/tag';
|
|
2
|
+
import { COLOR } from './constants';
|
|
3
|
+
export interface TagProps extends Omit<Omit<BaseTagProps, "color">, "kind"> {
|
|
4
|
+
color?: keyof typeof COLOR;
|
|
5
|
+
}
|
|
6
|
+
export type { TagOverrides, SharedPropsArg } from 'baseui/tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SIZE } from '../input/constants';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextareaProps } from './types';
|
|
2
|
+
export declare function getIconSize(size: TextareaProps["size"]): "16px" | "24px" | "20px";
|
|
3
|
+
export declare function getSizeAsNumber(size: string): number;
|
|
4
|
+
export declare function getTextareaOverrides({ overrides, size, readOnly, loading, incomplete, complete, }: TextareaProps): import('baseui/helpers/overrides').Overrides<any>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TextareaProps } from './types';
|
|
2
|
+
export default function Textarea({ value, onChange, disabled, error, positive, readOnly, size, type, clearable, clearOnEscape, inputMode, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, adjoined, autoComplete, autoFocus, pattern, placeholder, id, inputRef, name, min, max, step, maxLength, onBlur, onKeyDown, onKeyPress, onKeyUp, onFocus, required, resize, overrides, incomplete, complete, loading, }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextareaProps as BaseTextareaProps } from 'baseui/textarea';
|
|
2
|
+
import { SIZE } from './constants';
|
|
3
|
+
export interface TextareaProps extends Omit<BaseTextareaProps, "size"> {
|
|
4
|
+
size?: keyof typeof SIZE;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
complete?: boolean;
|
|
7
|
+
incomplete?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ParagraphXSmall, ParagraphSmall, ParagraphMedium, ParagraphLarge, LabelXSmall, LabelSmall, LabelMedium, LabelLarge, HeadingXSmall, HeadingSmall, HeadingMedium, HeadingLarge, HeadingXLarge, HeadingXXLarge, DisplayXSmall, DisplaySmall, DisplayMedium, DisplayLarge, MonoParagraphXSmall, MonoParagraphSmall, MonoParagraphMedium, MonoParagraphLarge, MonoLabelXSmall, MonoLabelSmall, MonoLabelMedium, MonoLabelLarge, MonoHeadingXSmall, MonoHeadingSmall, MonoHeadingMedium, MonoHeadingLarge, MonoHeadingXLarge, MonoHeadingXXLarge, MonoDisplayXSmall, MonoDisplaySmall, MonoDisplayMedium, MonoDisplayLarge, } from 'baseui/typography';
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/index.d.ts
ADDED