@gobolt/genesis 0.6.2 → 0.7.1-beta.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/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/SidePanel/SidePanel.d.ts +29 -0
- package/dist/components/SidePanel/index.d.ts +2 -0
- package/dist/components/SidePanel/styles.d.ts +8 -0
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.d.ts +1 -5
- package/dist/components/Table/TableControls/TableControls.d.ts +0 -6
- package/dist/components/Table/TableControls/index.d.ts +1 -1
- package/dist/components/Typography/styles.d.ts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.cjs +1390 -325
- package/dist/index.js +1391 -326
- package/package.json +2 -1
|
@@ -9,7 +9,6 @@ export interface InputProps extends BaseInputProps {
|
|
|
9
9
|
onChange?: (actionEvent: InputEvent) => void;
|
|
10
10
|
value?: string;
|
|
11
11
|
rest?: HTMLInputElement;
|
|
12
|
-
isPassword?: boolean;
|
|
13
12
|
}
|
|
14
13
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
15
14
|
export default Input;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AvatarProps, ButtonProps, OverflowMenuItem } from '../..';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type SidePanelAction = {
|
|
4
|
+
label: string;
|
|
5
|
+
btnProps?: ButtonProps;
|
|
6
|
+
menuItemProps?: Omit<React.ComponentProps<typeof OverflowMenuItem>, "children" | "onClick">;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
};
|
|
9
|
+
export interface SidePanelProps {
|
|
10
|
+
type: "full" | "float";
|
|
11
|
+
open: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
placement?: "left" | "right";
|
|
14
|
+
header: {
|
|
15
|
+
avatar?: AvatarProps;
|
|
16
|
+
title: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
showBackBtn?: boolean;
|
|
19
|
+
actions?: SidePanelAction[];
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onBackBtnClick?: () => void;
|
|
22
|
+
};
|
|
23
|
+
footer?: {
|
|
24
|
+
show?: boolean;
|
|
25
|
+
actions?: SidePanelAction[];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const SidePanel: ({ type, open, children, placement, header, footer, }: SidePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export default SidePanel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
export declare const StyledSidePanel: any;
|
|
3
|
+
export declare const ScrollableContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
interface StickyHeaderProperties {
|
|
5
|
+
theme?: GenesisTheme;
|
|
6
|
+
}
|
|
7
|
+
export declare const StickyHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../..').TileProps, StickyHeaderProperties>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('../..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { Change } from '../Table';
|
|
2
2
|
import { InfiniteScrollChangeEvent } from '../InfiniteScrollTable/types';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
type Item = {
|
|
5
|
-
label: string;
|
|
6
|
-
value: unknown;
|
|
7
|
-
};
|
|
8
4
|
export type Groups = {
|
|
9
|
-
[key: string]: string[]
|
|
5
|
+
[key: string]: string[];
|
|
10
6
|
};
|
|
11
7
|
export interface SecondaryTableControlsRowProps {
|
|
12
8
|
groups: Groups | null;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { PrimaryTableControlsRowProps } from './PrimaryTableControlsRow';
|
|
2
2
|
import { SecondaryTableControlsRowProps } from './SecondaryTableControlsRow';
|
|
3
3
|
import { ActionEvent, TableEventPayload } from '../../../types/events';
|
|
4
|
-
export declare const TABLE_CONTROLS_EVENTS: {
|
|
5
|
-
GROUP_ITEM_CLICK: string;
|
|
6
|
-
ORDER_CLICK: string;
|
|
7
|
-
PRIMARY_SORT_CHANGE: string;
|
|
8
|
-
INPUT_CHANGE: string;
|
|
9
|
-
};
|
|
10
4
|
export type TableControlsData = {
|
|
11
5
|
primaryTableRowData: PrimaryTableControlsRowProps;
|
|
12
6
|
secondaryTableRowData?: SecondaryTableControlsRowProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from './TableControls';
|
|
2
2
|
export type { TableControlsProps } from './TableControls';
|
|
@@ -5,11 +5,12 @@ interface TypographyStyledProperties {
|
|
|
5
5
|
$themeType?: keyof typeof TYPE;
|
|
6
6
|
variant?: string;
|
|
7
7
|
state?: keyof typeof STATE;
|
|
8
|
-
breakpoint?: keyof GenesisTheme["typography"];
|
|
9
8
|
color?: string;
|
|
10
9
|
fontWeight?: number;
|
|
11
10
|
fontSize?: string;
|
|
12
11
|
$isFullWidth?: boolean;
|
|
12
|
+
$letterSpacing?: string;
|
|
13
|
+
$lineHeight?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
15
16
|
ref?: ((instance: HTMLElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLElement> | null | undefined;
|
|
@@ -59,6 +59,8 @@ export { default as Select } from './Select';
|
|
|
59
59
|
export type { SelectProps } from './Select';
|
|
60
60
|
export { default as Shapes } from './Shapes';
|
|
61
61
|
export type { ShapesProps } from './Shapes';
|
|
62
|
+
export { default as SidePanel } from './SidePanel';
|
|
63
|
+
export type { SidePanelProps } from './SidePanel';
|
|
62
64
|
export { default as Switch } from './Switch';
|
|
63
65
|
export type { SwitchProps } from './Switch';
|
|
64
66
|
export { default as Table } from './Table';
|
|
@@ -68,7 +70,6 @@ export type { TableWithControlsProps } from './TableWithControls';
|
|
|
68
70
|
export { useTable } from './Table';
|
|
69
71
|
export { useTableWithControls } from './TableWithControls';
|
|
70
72
|
export type { UseTableConfig } from './Table';
|
|
71
|
-
export { TABLE_CONTROLS_EVENTS } from './Table/TableControls';
|
|
72
73
|
export { default as Tabs } from './Tabs';
|
|
73
74
|
export type { TabsProps } from './Tabs';
|
|
74
75
|
export { default as Tile } from './Tile';
|