@gobolt/genesis 0.4.2 → 0.4.4
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/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Form/Form.d.ts +1 -0
- package/dist/components/Insights/DonutChart/DonutChart.d.ts +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +13 -0
- package/dist/components/OverflowMenu/index.d.ts +2 -0
- package/dist/components/OverflowMenu/styles.d.ts +13 -0
- package/dist/components/Progress/Progress.d.ts +2 -1
- package/dist/components/Progress/styles.d.ts +1 -1
- package/dist/components/Row/Row.d.ts +1 -1
- package/dist/components/Row/styles.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +3476 -3377
- package/dist/index.js +12222 -12123
- package/dist/providers/BreakpointProvider.d.ts +1 -1
- package/dist/providers/ToastProvider.d.ts +2 -1
- package/dist/utils/icon-util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export interface AvatarProps {
|
|
|
10
10
|
shape?: "circle" | "square";
|
|
11
11
|
children?: string;
|
|
12
12
|
backgroundColor?: string;
|
|
13
|
-
user?: GoBoltUser;
|
|
13
|
+
user?: GoBoltUser | null;
|
|
14
14
|
}
|
|
15
15
|
declare const Avatar: ({ size, shape, children, backgroundColor, user, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default Avatar;
|
|
@@ -7,8 +7,8 @@ export interface BadgeProps {
|
|
|
7
7
|
hasIcon?: boolean;
|
|
8
8
|
customIcon?: React.ReactNode | null;
|
|
9
9
|
size?: "small" | "normal" | "large";
|
|
10
|
-
backgroundColor?: string;
|
|
11
|
-
textColor?: string;
|
|
10
|
+
backgroundColor?: string | null;
|
|
11
|
+
textColor?: string | null;
|
|
12
12
|
onClick?: () => void | null;
|
|
13
13
|
hasHover?: boolean;
|
|
14
14
|
}
|
|
@@ -16,6 +16,7 @@ export declare const FormItem: (<Values = any>(props: import('antd').FormItemPro
|
|
|
16
16
|
};
|
|
17
17
|
interface GenesisFormProps extends FormProps {
|
|
18
18
|
form?: FormInstance;
|
|
19
|
+
children: React.ReactNode;
|
|
19
20
|
}
|
|
20
21
|
interface FormType extends React.FC<GenesisFormProps> {
|
|
21
22
|
Item: typeof S.Form.Item;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OverflowMenuProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
trigger: React.ReactNode;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
placement?: "bottom" | "top" | "left" | "right";
|
|
8
|
+
offset?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const OverflowMenu: React.FC<OverflowMenuProps>;
|
|
13
|
+
export default OverflowMenu;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledOverflowMenuWrapperProperties {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
}
|
|
5
|
+
interface StyledOverflowMenuContainerProperties {
|
|
6
|
+
theme?: GenesisTheme;
|
|
7
|
+
$isAnimating?: boolean;
|
|
8
|
+
$placement?: "bottom" | "top" | "left" | "right";
|
|
9
|
+
}
|
|
10
|
+
export declare const getGenesisClass: (theme: GenesisTheme) => string;
|
|
11
|
+
export declare const OverflowMenuWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledOverflowMenuWrapperProperties>> & string;
|
|
12
|
+
export declare const OverflowMenuContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledOverflowMenuContainerProperties>> & string;
|
|
13
|
+
export {};
|
|
@@ -14,6 +14,7 @@ export interface ProgressProps {
|
|
|
14
14
|
height?: number;
|
|
15
15
|
isTextBeforeBar?: boolean;
|
|
16
16
|
isProgressCombined?: boolean;
|
|
17
|
+
isSingleBarOverallSuccess?: boolean;
|
|
17
18
|
}
|
|
18
|
-
declare const Progress: ({ firstBarData, secondBarData, width, height, isTextBeforeBar, isProgressCombined, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const Progress: ({ firstBarData, secondBarData, width, height, isTextBeforeBar, isProgressCombined, isSingleBarOverallSuccess, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default Progress;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProgressProps } from 'antd';
|
|
2
2
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
3
3
|
import { Percent } from './Progress';
|
|
4
|
-
interface StyledProgressProperties extends ProgressProps {
|
|
4
|
+
interface StyledProgressProperties extends Omit<ProgressProps, "success"> {
|
|
5
5
|
theme?: GenesisTheme;
|
|
6
6
|
percent?: number;
|
|
7
7
|
success?: Percent | null;
|
|
@@ -7,7 +7,7 @@ export interface RowProps {
|
|
|
7
7
|
actions?: Action[] | null;
|
|
8
8
|
hasBorder?: boolean;
|
|
9
9
|
isLoading?: boolean;
|
|
10
|
-
badgeProps?: BadgeProps;
|
|
10
|
+
badgeProps?: BadgeProps | null;
|
|
11
11
|
}
|
|
12
12
|
declare const Row: ({ label, value, isFullWidth, actions, hasBorder, isLoading, badgeProps: badgeProperties, }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default Row;
|
|
@@ -9,6 +9,6 @@ export declare const getGenesisColumnClass: ({ colors, borderRadius, sizing }: {
|
|
|
9
9
|
colors: any;
|
|
10
10
|
borderRadius: any;
|
|
11
11
|
sizing: any;
|
|
12
|
-
}, $hasBorder?: boolean, $isFullWidth?: boolean, actions?:
|
|
12
|
+
}, $hasBorder?: boolean, $isFullWidth?: boolean, actions?: any) => string;
|
|
13
13
|
export declare const Column: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColumnProperties>> & string;
|
|
14
14
|
export {};
|
|
@@ -5,12 +5,14 @@ import * as React from "react";
|
|
|
5
5
|
export type Change = (actionEvent: ActionEvent) => void;
|
|
6
6
|
export type SelectionType = "checkbox" | "radio";
|
|
7
7
|
export interface MaterializedViewConfig<T = any> {
|
|
8
|
-
height?: number | string;
|
|
8
|
+
height?: number | string | "dynamic";
|
|
9
9
|
onLoadMore?: (offset: number, limit: number) => Promise<T[]> | T[];
|
|
10
10
|
loadMoreThreshold?: number;
|
|
11
11
|
initialLoadSize?: number;
|
|
12
12
|
hasMore?: boolean;
|
|
13
13
|
loading?: boolean;
|
|
14
|
+
maxHeight?: number | string;
|
|
15
|
+
minHeight?: number | string;
|
|
14
16
|
}
|
|
15
17
|
export interface TableProps<T extends Record<string, any>> {
|
|
16
18
|
dataSource: T[];
|
|
@@ -39,6 +39,8 @@ export { default as Message } from './Message';
|
|
|
39
39
|
export type { MessageProps } from './Message';
|
|
40
40
|
export { default as Notification } from './Notification';
|
|
41
41
|
export type { NotificationProps } from './Notification';
|
|
42
|
+
export { default as OverflowMenu } from './OverflowMenu';
|
|
43
|
+
export type { OverflowMenuProps } from './OverflowMenu';
|
|
42
44
|
export { default as Popover } from './Popover';
|
|
43
45
|
export type { PopoverProps } from './Popover';
|
|
44
46
|
export { default as Progress } from './Progress';
|