@gobolt/genesis 0.7.2-beta.1 → 0.7.3
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/GlobalHeader/GlobalHeader.d.ts +15 -0
- package/dist/components/GlobalHeader/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +10 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Tag/styles.d.ts +9 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/index.cjs +857 -1821
- package/dist/index.js +858 -1822
- package/package.json +5 -5
- package/dist/components/SidePanel/SidePanel.d.ts +0 -30
- package/dist/components/SidePanel/index.d.ts +0 -2
- package/dist/components/SidePanel/styles.d.ts +0 -8
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreadcrumbItem } from '../Breadcrumb/Breadcrumb.types';
|
|
3
|
+
import { OverflowMenuItemProps } from '../OverflowMenuItem';
|
|
4
|
+
export interface GlobalHeaderProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
7
|
+
onBack?: () => void;
|
|
8
|
+
menuItems?: OverflowMenuItemProps[];
|
|
9
|
+
primaryAction?: {
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare const GlobalHeader: ({ title, breadcrumbs, onBack, menuItems, primaryAction, }: GlobalHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default GlobalHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TagState = "default" | "disabled";
|
|
2
|
+
export interface TagProps {
|
|
3
|
+
label: string;
|
|
4
|
+
state?: TagState;
|
|
5
|
+
hasClose?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Tag: ({ label, state, hasClose, onClose, onClick, ...rest }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Tag;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTagProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$isDisabled?: boolean;
|
|
5
|
+
$hasClose?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const getGenesisClass: ({ colors }: GenesisTheme, isDisabled?: boolean, hasClose?: boolean) => string;
|
|
8
|
+
export declare const Tag: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTagProps>> & string;
|
|
9
|
+
export {};
|
|
@@ -27,6 +27,8 @@ export { default as ErrorBoundaryFallback } from './ErrorBoundaryFallback';
|
|
|
27
27
|
export type { ErrorBoundaryFallbackProps } from './ErrorBoundaryFallback';
|
|
28
28
|
export { default as Form } from './Form';
|
|
29
29
|
export type { FormProps } from './Form';
|
|
30
|
+
export { default as GlobalHeader } from './GlobalHeader';
|
|
31
|
+
export type { GlobalHeaderProps } from './GlobalHeader';
|
|
30
32
|
export { default as UnitNumber } from './Glyph/custom/UnitNumber';
|
|
31
33
|
export type { UnitNumberProps } from './Glyph/custom/UnitNumber';
|
|
32
34
|
export { default as Input } from './Input';
|
|
@@ -59,8 +61,6 @@ export { default as Select } from './Select';
|
|
|
59
61
|
export type { SelectProps } from './Select';
|
|
60
62
|
export { default as Shapes } from './Shapes';
|
|
61
63
|
export type { ShapesProps } from './Shapes';
|
|
62
|
-
export { default as SidePanel } from './SidePanel';
|
|
63
|
-
export type { SidePanelProps } from './SidePanel';
|
|
64
64
|
export { default as Switch } from './Switch';
|
|
65
65
|
export type { SwitchProps } from './Switch';
|
|
66
66
|
export { default as Table } from './Table';
|
|
@@ -70,6 +70,8 @@ export type { TableWithControlsProps } from './TableWithControls';
|
|
|
70
70
|
export { useTable } from './Table';
|
|
71
71
|
export { useTableWithControls } from './TableWithControls';
|
|
72
72
|
export type { UseTableConfig } from './Table';
|
|
73
|
+
export { default as Tag } from './Tag';
|
|
74
|
+
export type { TagProps, TagState } from './Tag';
|
|
73
75
|
export { default as Tabs } from './Tabs';
|
|
74
76
|
export type { TabsProps } from './Tabs';
|
|
75
77
|
export { default as Tile } from './Tile';
|