@mezo-org/mezo-clay 0.1.0-dev.2 → 0.1.0-dev.20
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 +5 -7
- package/dist/components/accordion/accordion.d.ts +2 -0
- package/dist/components/accordion/constants.d.ts +10 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/accordion/panel.d.ts +20 -0
- package/dist/components/accordion/types.d.ts +18 -0
- package/dist/components/avatar/avatar.d.ts +22 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/badge/hint.d.ts +6 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/badge/notification.d.ts +9 -0
- package/dist/components/badge/types.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +19 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner/types.d.ts +12 -0
- package/dist/components/banner/utils.d.ts +292 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +7 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/overrides.d.ts +2 -1
- package/dist/components/button/types.d.ts +5 -1
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/types.d.ts +2 -3
- package/dist/components/button-icon/button-icon.d.ts +4 -1
- package/dist/components/button-icon/index.d.ts +0 -1
- package/dist/components/card/card-skeletons.d.ts +13 -0
- package/dist/components/card/card.d.ts +24 -0
- package/dist/components/card/context.d.ts +7 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/types.d.ts +10 -0
- package/dist/components/checkbox/checkbox.d.ts +5 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/divider/index.d.ts +9 -0
- package/dist/components/icons/alert-triangle/index.d.ts +15 -0
- package/dist/components/icons/arrow-circle-down/index.d.ts +9 -0
- package/dist/components/icons/arrow-circle-up/index.d.ts +9 -0
- package/dist/components/icons/arrow-left/index.d.ts +9 -0
- package/dist/components/icons/arrow-right/index.d.ts +9 -0
- package/dist/components/icons/bezier-curve/index.d.ts +9 -0
- package/dist/components/icons/bitcoin-circle/index.d.ts +14 -0
- package/dist/components/icons/check-circle/index.d.ts +5 -2
- package/dist/components/icons/circle-cut/index.d.ts +9 -0
- package/dist/components/icons/copy/index.d.ts +8 -0
- package/dist/components/icons/cryptocurrency/index.d.ts +8 -0
- package/dist/components/icons/email/index.d.ts +8 -0
- package/dist/components/icons/eth-circle/index.d.ts +14 -0
- package/dist/components/icons/gas-fee/index.d.ts +9 -0
- package/dist/components/icons/handshake/index.d.ts +9 -0
- package/dist/components/icons/index.d.ts +37 -9
- package/dist/components/icons/info-circle/index.d.ts +8 -2
- package/dist/components/icons/link/index.d.ts +8 -0
- package/dist/components/icons/lock/index.d.ts +8 -0
- package/dist/components/icons/log-out/index.d.ts +8 -0
- package/dist/components/icons/mats/index.d.ts +9 -0
- package/dist/components/icons/mats-circle/index.d.ts +8 -8
- package/dist/components/icons/menu/index.d.ts +2 -2
- package/dist/components/icons/mezo-circle/index.d.ts +14 -0
- package/dist/components/icons/musd-circle/index.d.ts +28 -0
- package/dist/components/icons/plus-square/index.d.ts +9 -0
- package/dist/components/icons/safe/index.d.ts +9 -0
- package/dist/components/icons/settings/index.d.ts +7 -0
- package/dist/components/icons/shield/index.d.ts +8 -0
- package/dist/components/icons/tag/index.d.ts +8 -0
- package/dist/components/icons/tbtc-circle/index.d.ts +14 -0
- package/dist/components/icons/thusd-circle/index.d.ts +14 -0
- package/dist/components/icons/trend-down/index.d.ts +9 -0
- package/dist/components/icons/trend-up/index.d.ts +9 -0
- package/dist/components/icons/trophy/index.d.ts +8 -1
- package/dist/components/icons/upload/index.d.ts +8 -0
- package/dist/components/icons/user/index.d.ts +8 -2
- package/dist/components/icons/utils.d.ts +2 -1
- package/dist/components/icons/vbtc-circle/index.d.ts +14 -0
- package/dist/components/index.d.ts +33 -3
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/link/index.d.ts +6 -0
- package/dist/components/menu/context.d.ts +7 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/menu-items.d.ts +18 -0
- package/dist/components/menu/menu.d.ts +28 -0
- package/dist/components/menu/types.d.ts +1 -0
- package/dist/components/message-card/index.d.ts +1 -1
- package/dist/components/message-card/message-card.d.ts +6 -2
- package/dist/components/message-card/overrides.d.ts +12 -7
- package/dist/components/mobile-header/index.d.ts +1 -0
- package/dist/components/mobile-header/mobile-header.d.ts +15 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +26 -0
- package/dist/components/progress-bar/hooks.d.ts +1 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/progress-bar.d.ts +3 -0
- package/dist/components/progress-steps/index.d.ts +2 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/radio.d.ts +5 -0
- package/dist/components/section-heading/index.d.ts +1 -0
- package/dist/components/section-heading/section-heading.d.ts +5 -0
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +9 -0
- package/dist/components/side-navigation/index.d.ts +1 -1
- package/dist/components/side-navigation/overrides.d.ts +2 -1
- package/dist/components/side-navigation/side-navigation.d.ts +15 -3
- package/dist/components/snackbar/index.d.ts +3 -0
- package/dist/components/snackbar/snackbar.d.ts +3 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.d.ts +11 -0
- package/dist/components/stepper/index.d.ts +2 -0
- package/dist/components/stepper/stepper.d.ts +5 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tab-title.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +9 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components/tooltip/types.d.ts +1 -0
- package/dist/mezo-clay.es.js +32897 -14687
- package/dist/mezo-clay.umd.js +82 -42
- package/dist/styles/index.d.ts +1 -1
- package/dist/themes/clay-light-theme.d.ts +12 -0
- package/dist/themes/index.d.ts +2 -2
- package/dist/themes/provider.d.ts +8 -0
- package/dist/utils/console.d.ts +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +17 -18
- package/dist/components/block/index.d.ts +0 -1
- package/dist/components/button-group/constants.d.ts +0 -5
- package/dist/components/button-icon/overrides.d.ts +0 -5
|
@@ -1,15 +1,45 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './badge';
|
|
3
|
+
export * from './banner';
|
|
4
|
+
export * from './breadcrumbs';
|
|
2
5
|
export * from './button';
|
|
3
6
|
export * from './button-group';
|
|
4
7
|
export * from './button-icon';
|
|
8
|
+
export * from './checkbox';
|
|
9
|
+
export * from './divider';
|
|
5
10
|
export * from './flex-grid';
|
|
6
11
|
export * from './form-control';
|
|
7
12
|
export * from './icons';
|
|
8
13
|
export * from './input';
|
|
14
|
+
export * from './link';
|
|
15
|
+
export * from './list';
|
|
16
|
+
export * from './menu';
|
|
9
17
|
export * from './message-card';
|
|
18
|
+
export * from './mobile-header';
|
|
19
|
+
export * from './modal';
|
|
20
|
+
export * from './progress-bar';
|
|
21
|
+
export * from './radio';
|
|
22
|
+
export * from './section-heading';
|
|
23
|
+
export * from './segmented-control';
|
|
10
24
|
export * from './side-navigation';
|
|
25
|
+
export * from './skeleton';
|
|
26
|
+
export * from './snackbar';
|
|
27
|
+
export * from './spinner';
|
|
28
|
+
export * from './stepper';
|
|
29
|
+
export * from './tabs';
|
|
11
30
|
export * from './tag';
|
|
12
31
|
export * from './textarea';
|
|
32
|
+
export * from './tooltip';
|
|
13
33
|
export * from './typography';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
34
|
+
export * from './card';
|
|
35
|
+
export * from './table';
|
|
36
|
+
export * from './progress-steps';
|
|
37
|
+
export { Block } from 'baseui/block';
|
|
38
|
+
export type { BlockProps } from 'baseui/block';
|
|
39
|
+
export { Icon } from 'baseui/icon';
|
|
40
|
+
export type { IconProps } from 'baseui/icon';
|
|
41
|
+
export { Grid, Cell } from 'baseui/layout-grid';
|
|
42
|
+
export type { GridProps, CellProps } from 'baseui/layout-grid';
|
|
43
|
+
export { Popover, StatefulPopover } from 'baseui/popover';
|
|
44
|
+
export type { PopoverProps, StatefulPopoverProps } from 'baseui/popover';
|
|
45
|
+
export { mergeOverrides } from 'baseui';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SIZE } from './constants';
|
|
2
2
|
import { InputProps } from './types';
|
|
3
|
-
export declare function getBaseInputSize(size: keyof typeof SIZE): "
|
|
3
|
+
export declare function getBaseInputSize(size: keyof typeof SIZE): "default" | "large" | "compact" | "mini";
|
|
4
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,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StyledLink } from 'baseui/link';
|
|
3
|
+
export type LinkProps = ComponentProps<typeof StyledLink> & {
|
|
4
|
+
size?: "xsmall" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
export declare function Link({ children, size, ...restProps }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from 'baseui/icon';
|
|
3
|
+
export type MenuListItemProps = {
|
|
4
|
+
artwork?: ComponentType<IconProps>;
|
|
5
|
+
artworkProps?: IconProps;
|
|
6
|
+
endEnhancer?: ReactNode;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
id?: string;
|
|
9
|
+
};
|
|
10
|
+
export type MenuProfileItemProps = {
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
body?: string;
|
|
14
|
+
imgUrl?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function MenuListItem({ artwork, artworkProps, endEnhancer, label, id, }: MenuListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function MenuProfileItem({ title, subtitle, body, imgUrl, id, }: MenuProfileItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StatefulMenuProps as BaseStatefulMenuProps } from 'baseui/menu';
|
|
3
|
+
import { MenuSize } from './types';
|
|
4
|
+
import { MenuListItemProps, MenuProfileItemProps } from './menu-items';
|
|
5
|
+
export type MenuProps = BaseStatefulMenuProps & {
|
|
6
|
+
id?: string;
|
|
7
|
+
noResultsMsg?: ReactNode;
|
|
8
|
+
size?: MenuSize;
|
|
9
|
+
};
|
|
10
|
+
export declare function Menu({ id, overrides, size, noResultsMsg, ...restProps }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type ArrayMenuListItems = ReadonlyArray<MenuListItemProps>;
|
|
12
|
+
export type GroupedMenuListItems = {
|
|
13
|
+
__ungrouped: ArrayMenuListItems;
|
|
14
|
+
[x: string]: ArrayMenuListItems;
|
|
15
|
+
};
|
|
16
|
+
export type MenuListProps = Omit<MenuProps, "items"> & {
|
|
17
|
+
items: ArrayMenuListItems | GroupedMenuListItems;
|
|
18
|
+
};
|
|
19
|
+
export declare function MenuList({ overrides, ...restProps }: MenuListProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export type ArrayMenuProfileItems = ReadonlyArray<MenuProfileItemProps>;
|
|
21
|
+
export type GroupedMenuProfileItems = {
|
|
22
|
+
__ungrouped: ArrayMenuProfileItems;
|
|
23
|
+
[x: string]: ArrayMenuProfileItems;
|
|
24
|
+
};
|
|
25
|
+
export type MenuProfileProps = Omit<MenuProps, "items"> & {
|
|
26
|
+
items: ArrayMenuProfileItems | GroupedMenuProfileItems;
|
|
27
|
+
};
|
|
28
|
+
export declare function MenuProfile({ overrides, ...restProps }: MenuProfileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MenuSize = "small" | "medium" | "large";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as MessageCard } from './message-card';
|
|
2
|
-
export type { MessageCardProps } from '
|
|
2
|
+
export type { MessageCardProps } from './message-card';
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { MessageCardProps } from 'baseui/message-card';
|
|
2
|
-
export
|
|
1
|
+
import { MessageCardProps as MessageCardPropsBaseUi } from 'baseui/message-card';
|
|
2
|
+
export type MessageCardProps = MessageCardPropsBaseUi & {
|
|
3
|
+
id?: string;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export default function MessageCard({ onClick, onDismiss, heading, paragraph, buttonLabel, buttonKind, backgroundColor, backgroundColorType, image, overrides, isLoading, id, }: MessageCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
buttonKind:
|
|
5
|
-
backgroundColor:
|
|
6
|
-
backgroundColorType:
|
|
7
|
-
|
|
1
|
+
import { MessageCardOverrides as MessageCardOverridesBaseUi, MessageCardProps } from 'baseui/message-card';
|
|
2
|
+
type MessageCardOverrides = {
|
|
3
|
+
overrides: MessageCardOverridesBaseUi;
|
|
4
|
+
buttonKind: "secondary" | "tertiary";
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
backgroundColorType: "light" | "dark";
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
image: MessageCardProps["image"];
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function getMessageCardOverrides({ overrides, image, buttonKind, backgroundColor, backgroundColorType, isLoading, id, }: MessageCardOverrides): import('baseui/helpers/overrides').Overrides<any>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mobile-header';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MobileHeaderProps as BaseMobileHeaderProps, IconButton as BaseIconButton } from 'baseui/mobile-header';
|
|
2
|
+
import { IconProps } from 'baseui/icon';
|
|
3
|
+
import { StyleObject } from 'styletron-react';
|
|
4
|
+
import { ButtonIconProps } from '../button-icon';
|
|
5
|
+
export type MobileHeaderButton = BaseIconButton & {
|
|
6
|
+
iconProps?: IconProps;
|
|
7
|
+
overrides?: ButtonIconProps["overrides"];
|
|
8
|
+
};
|
|
9
|
+
export interface MobileHeaderProps extends Omit<Omit<BaseMobileHeaderProps, "navButton">, "actionButtons"> {
|
|
10
|
+
navButton?: MobileHeaderButton;
|
|
11
|
+
actionButtons?: [MobileHeaderButton?, MobileHeaderButton?];
|
|
12
|
+
rootWrapperCss?: StyleObject;
|
|
13
|
+
actionButtonsWrapperCss?: StyleObject;
|
|
14
|
+
}
|
|
15
|
+
export declare function MobileHeader({ actionButtons, expanded, navButton, overrides, type, rootWrapperCss, actionButtonsWrapperCss, ...restProps }: MobileHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
2
|
+
import { ModalHeader as BaseModalHeader, ModalFooter as BaseModalFooter, ModalBody as BaseModalBody, ModalButton as BaseModalButton, ModalProps as BaseModalProps, SharedStylePropsArg } from 'baseui/modal';
|
|
3
|
+
export type ModalHeaderProps = ComponentProps<typeof BaseModalHeader>;
|
|
4
|
+
export declare function ModalHeader(props: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type ModalImageProps = {
|
|
6
|
+
imageSrc: string;
|
|
7
|
+
imageAriaLabel: string;
|
|
8
|
+
};
|
|
9
|
+
export type ModalHeaderWithImageProps = ModalHeaderProps & ModalImageProps;
|
|
10
|
+
export declare function ModalHeaderWithImage({ imageSrc, imageAriaLabel, children, ...restProps }: ModalHeaderWithImageProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type ModalBodyWithImageProps = ComponentProps<typeof BaseModalBody> & ModalImageProps & {
|
|
12
|
+
imageLayout?: "left" | "right";
|
|
13
|
+
imageWidth?: "string";
|
|
14
|
+
};
|
|
15
|
+
export declare function ModalBodyWithImage({ children, imageSrc, imageAriaLabel, imageLayout, imageWidth, }: ModalBodyWithImageProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type ModalFooterProps = ComponentProps<typeof BaseModalFooter>;
|
|
17
|
+
export declare function ModalFooter(props: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function ModalSecondaryButtonWrapper({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export type ModalButtonProps = ComponentProps<typeof BaseModalButton>;
|
|
20
|
+
export declare function ModalButton({ overrides, ...restProps }: ModalButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function ModalClose(props: SharedStylePropsArg): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type ModalProps = BaseModalProps & {
|
|
23
|
+
id?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function Modal({ id, overrides, ...restProps }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { Orientation, ProgressStepsOverrides, ProgressStepsProps, StepOverrides, StepProps, NumberedStepOverrides, NumberedStepProps, StyleProps as ProgressStepsStyleProps, } from 'baseui/progress-steps';
|
|
2
|
+
export { StyledProgressSteps, StyledStep, Step, ProgressSteps, NumberedStep, StyledIconContainer, StyledIcon, StyledInnerIcon, StyledContent, StyledContentTitle, StyledContentTail, StyledContentDescription, StyledNumberStep, StyledNumberIcon, StyledNumberContentTail, ORIENTATION as PROGRESS_STEPS_ORIENTATION, } from 'baseui//progress-steps';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './section-heading';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ListHeadingProps } from '../list';
|
|
2
|
+
export type SectionHeadingProps = ListHeadingProps & {
|
|
3
|
+
headingLevel?: 1 | 2 | 3;
|
|
4
|
+
};
|
|
5
|
+
export declare function SectionHeading({ headingLevel, overrides, ...restProps }: SectionHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './segmented-control';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SegmentProps as BaseSegmentProps, SegmentedControlProps as BaseSegmentedControlProps } from 'baseui/segmented-control';
|
|
2
|
+
export type SegmentProps = BaseSegmentProps & {
|
|
3
|
+
id?: string;
|
|
4
|
+
};
|
|
5
|
+
export type SegmentedControlProps = BaseSegmentedControlProps & {
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Segment(props: SegmentProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SegmentedControl({ children, disabled, overrides, width, id, ...restProps }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as SideNavigation, SideNavItemTitle, SideNavLeadingIcon, } from './side-navigation';
|
|
2
|
+
export type { SideNavigationItemProps, SideNavigationProps, } from './side-navigation';
|
|
2
3
|
export { NavItem as SideNavItem } from 'baseui/side-navigation';
|
|
3
|
-
export type { NavigationProps as SideNavigationProps } from 'baseui/side-navigation';
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { NavigationProps as BaseSideNavigationProps } from 'baseui/side-navigation';
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
import { NavigationProps as BaseSideNavigationProps, Item as BaseItemProps } from 'baseui/side-navigation';
|
|
3
|
+
export type SideNavigationItemProps = Omit<BaseItemProps, "subNav"> & {
|
|
4
|
+
id?: string;
|
|
5
|
+
subNav?: SideNavigationItemProps[];
|
|
6
|
+
};
|
|
7
|
+
export type SideNavigationProps = Omit<BaseSideNavigationProps, "items"> & {
|
|
8
|
+
id?: string;
|
|
9
|
+
items?: SideNavigationItemProps[];
|
|
10
|
+
};
|
|
11
|
+
export default function SideNavigation({ activeItemId, activePredicate, items, itemMemoizationComparator, onChange, overrides, mapItem, id, }: SideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type SideNavigationItemTitleProps = React.PropsWithChildren & {
|
|
13
|
+
id?: string;
|
|
14
|
+
"data-attr"?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function SideNavItemTitle({ children, ...restProps }: SideNavigationItemTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
17
|
export declare function SideNavLeadingIcon({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SnackbarElementProps as BaseSnackbarElementProps, SnackbarProviderProps as BaseSnackbarProviderProps } from 'baseui/snackbar';
|
|
2
|
+
export declare function SnackbarElement({ overrides, ...restProps }: BaseSnackbarElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function SnackbarProvider({ overrides, ...restProps }: BaseSnackbarProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spinner';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SpinnerProps as BaseSpinnerProps } from 'baseui/spinner';
|
|
3
|
+
import { Sizing } from 'baseui/themes';
|
|
4
|
+
type Size = "small" | "medium" | "large" | "xlarge";
|
|
5
|
+
export type SpinnerProps = Omit<Omit<BaseSpinnerProps, "$size">, "$borderWidth"> & {
|
|
6
|
+
$size?: number | string | keyof Sizing | Size;
|
|
7
|
+
$borderWidth?: number | string | keyof Sizing | Size;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare function Spinner({ $color, $size, $borderWidth, label }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { StyledTable as StyledTableGrid, StyledBodyCell as StyleBodyCellGrid, StyledHeadCell as StyledHeadCellGrid, SortableHeadCell, SORT_DIRECTION, } from 'baseui/table-grid';
|
|
2
|
+
export type { TableProps as SemanticTableProps, Size, Divider as SemanticTableDivider, TableOverrides, BuilderOverrides, TableBuilderProps, ColumnOverrides, TableBuilderColumnProps, } from 'baseui/table-semantic';
|
|
3
|
+
export { StyledTable as SemanticStyledTable, Table as SemanticTable, TableBuilder, TableBuilderColumn, DIVIDER, SIZE, StyledRoot, StyledTableHead, StyledTableHeadRow, StyledTableHeadCell, StyledTableHeadCellSortable, StyledTableBody, StyledTableBodyRow, StyledTableBodyCell, StyledTableLoadingMessage, StyledTableEmptyMessage, StyledSortAscIcon, StyledSortDescIcon, StyledSortNoneIcon, } from 'baseui/table-semantic';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { TabProps } from 'baseui/tabs-motion';
|
|
3
|
+
export default function TabTitle({ title, badgeContent, }: {
|
|
4
|
+
title: TabProps["title"];
|
|
5
|
+
badgeContent: ReactNode;
|
|
6
|
+
}): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabProps as BaseTabProps, TabsProps as BaseTabsProps } from 'baseui/tabs-motion';
|
|
2
|
+
export type TabProps = BaseTabProps & {
|
|
3
|
+
id?: string;
|
|
4
|
+
};
|
|
5
|
+
export type TabsProps = BaseTabsProps & {
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Tabs({ id, activeKey, overrides, children, ...restProps }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Tab(props: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { StatefulTooltipProps } from 'baseui/tooltip';
|
|
3
|
+
import { IconProps } from 'baseui/icon';
|
|
4
|
+
import { TooltipPosition } from './types';
|
|
5
|
+
export type TooltipProps = Omit<StatefulTooltipProps, "placement" | "content"> & {
|
|
6
|
+
content: ReactNode | string;
|
|
7
|
+
position?: TooltipPosition;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
CloseIcon?: ComponentType<IconProps>;
|
|
11
|
+
iconProps?: IconProps;
|
|
12
|
+
};
|
|
13
|
+
export declare function Tooltip({ children, content, position, overrides, popoverMargin, backgroundColor, color, CloseIcon, iconProps, triggerType, ...restProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TooltipPosition = "top" | "bottom" | "left" | "right";
|