@gobolt/genesis 0.3.27 → 0.3.28

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.
@@ -25,6 +25,7 @@ export interface BarChartProps {
25
25
  showIcons?: boolean;
26
26
  iconSize?: number;
27
27
  iconSpacing?: number;
28
+ showAdditionalGridLines?: boolean;
28
29
  }
29
30
  declare const BarChart: React.FC<BarChartProps>;
30
31
  export default BarChart;
@@ -0,0 +1,75 @@
1
+ export declare const CHART_HEIGHTS: {
2
+ readonly MIN_HEIGHT: 160;
3
+ readonly DESIGN_EXAMPLE_HEIGHT: 160;
4
+ readonly DEFAULT_HEIGHT: 160;
5
+ readonly DONUT_DEFAULT_HEIGHT: 300;
6
+ };
7
+ export declare const CHART_WIDTHS: {
8
+ readonly DEFAULT_WIDTH: 260;
9
+ readonly LINE_CHART_DEFAULT_WIDTH: 280;
10
+ };
11
+ export declare const CHART_MARGINS: {
12
+ readonly LINE_CHART: {
13
+ readonly top: 15;
14
+ readonly right: 30;
15
+ readonly bottom: 30;
16
+ readonly left: 8;
17
+ };
18
+ readonly BAR_CHART: {
19
+ readonly top: 15;
20
+ readonly right: 30;
21
+ readonly bottom: 30;
22
+ readonly left: 8;
23
+ };
24
+ readonly DONUT_CHART: {
25
+ readonly top: 20;
26
+ readonly right: 20;
27
+ readonly bottom: 20;
28
+ readonly left: 20;
29
+ };
30
+ };
31
+ export declare const CHART_HEIGHT_CALCULATIONS: {
32
+ readonly LINE_CHART: 5;
33
+ readonly BAR_CHART: 5;
34
+ readonly DONUT_CHART: 0;
35
+ };
36
+ export declare const CHART_GRID_LINES: {
37
+ readonly LINE_CHART: readonly [0, 33, 65, 100];
38
+ readonly BAR_CHART: readonly [0, 15, 35, 50];
39
+ };
40
+ export declare const CHART_Y_AXIS_LABELS: {
41
+ readonly LINE_CHART: readonly [100, 65, 33, 0];
42
+ readonly BAR_CHART: readonly [50, 35, 15, 0];
43
+ };
44
+ export declare const CHART_CONTAINER_PADDING: {
45
+ readonly CONTAINER: "Size2";
46
+ readonly CHART_CONTAINER: "Size2";
47
+ };
48
+ export declare const CHART_TRANSITION_DURATION = 0.15;
49
+ export declare const CHART_TOOLTIP_LINE_LENGTH_REDUCTION = 0;
50
+ export declare const x_axis_style: {
51
+ label: {
52
+ font_family: string;
53
+ font_size: string;
54
+ font_style: string;
55
+ font_weight: string;
56
+ line_height: string;
57
+ };
58
+ };
59
+ export declare const y_axis_style: {
60
+ label: {
61
+ font_family: string;
62
+ font_size: string;
63
+ font_style: string;
64
+ font_weight: string;
65
+ line_height: string;
66
+ letter_spacing: string;
67
+ text_transform: string;
68
+ };
69
+ };
70
+ export declare const VEHICLE_INSIGHTS_CONFIG: {
71
+ readonly BAR_COLOR: "#9a9a9a";
72
+ readonly BAR_WIDTH: 4;
73
+ readonly BAR_SPACING: 40;
74
+ readonly GRID_LINE_POSITIONS: readonly [5, 10, 73, 108];
75
+ };
@@ -13,6 +13,8 @@ export interface PrimaryTableControlsRowProps {
13
13
  onChange?: (event: ActionEvent<TableEventPayload>) => void;
14
14
  searchValue?: string;
15
15
  selectedSortOption?: string;
16
+ hasFilter?: boolean;
17
+ hasSettings?: boolean;
16
18
  }
17
- declare const PrimaryTableControlsRow: ({ sortOptions, searchByPlaceholder, searchField, isSortedAscending, searchValue, selectedSortOption, onChange, }: PrimaryTableControlsRowProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const PrimaryTableControlsRow: ({ sortOptions, searchByPlaceholder, searchField, isSortedAscending, searchValue, selectedSortOption, onChange, hasFilter, hasSettings, }: PrimaryTableControlsRowProps) => import("react/jsx-runtime").JSX.Element;
18
20
  export default PrimaryTableControlsRow;
@@ -8,6 +8,8 @@ export type UseTableConfig = {
8
8
  selectionType?: SelectionType;
9
9
  simulateDelay?: number;
10
10
  disableRowSelection?: (record: any) => unknown;
11
+ hasSettings?: boolean;
12
+ hasFilter?: boolean;
11
13
  disableAutoFetch?: boolean;
12
14
  dataSource?: any[];
13
15
  };
@@ -19,6 +21,8 @@ export declare const useTable: <T extends Record<string, any>>(useTableConfig: a
19
21
  getCheckboxProps: (record: any) => unknown;
20
22
  };
21
23
  selectedRows: T[];
24
+ hasSettings: boolean;
25
+ hasFilter: boolean;
22
26
  updateDataSource: (newDataSource: T[]) => void;
23
27
  dataSource: T[];
24
28
  columns: ColumnsType<T>;
@@ -3,6 +3,8 @@ import { ActionEvent, TableEventPayload } from '../../types/events';
3
3
  export declare const useTableWithControls: (tableConfig: UseTableConfig) => {
4
4
  onChange: (actionEvent: ActionEvent<TableEventPayload>) => void;
5
5
  primaryTableRowData: {
6
+ hasSettings: boolean | undefined;
7
+ hasFilter: boolean | undefined;
6
8
  sortOptions: {
7
9
  value: string;
8
10
  label: import("react/jsx-runtime").JSX.Element;
@@ -26,4 +28,4 @@ export declare const useTableWithControls: (tableConfig: UseTableConfig) => {
26
28
  getCheckboxProps: (record: any) => unknown;
27
29
  };
28
30
  updateDataSource: (newDataSource: Record<string, any>[]) => void;
29
- };
31
+ } | null;
@@ -2,6 +2,11 @@ export interface TooltipProps {
2
2
  tip: string;
3
3
  placement?: "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
4
4
  children?: React.ReactNode;
5
+ isVisible?: boolean;
6
+ x?: number;
7
+ y?: number;
8
+ isAbsolutePositioned?: boolean;
9
+ hasPointerEvents?: boolean;
5
10
  }
6
- declare const Tooltip: ({ tip, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Tooltip: ({ tip, children, isVisible, x, y, isAbsolutePositioned, hasPointerEvents, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
7
12
  export default Tooltip;