@ansible/ansible-ui-framework 2.4.2632 → 2.4.2634

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.
@@ -1,4 +1,11 @@
1
1
  import './PageDashboardChart.css';
2
+ export declare enum PageDashboardChartVariantE {
3
+ lineChart = "lineChart",
4
+ stackedAreaChart = "stackedAreaChart",
5
+ barChart = "barChart",
6
+ stackedBarChart = "stackedBarChart"
7
+ }
8
+ export type PageDashboardChartVariant = keyof typeof PageDashboardChartVariantE;
2
9
  export declare function PageDashboardChart(props: {
3
10
  id?: string;
4
11
  groups: {
@@ -18,7 +25,7 @@ export declare function PageDashboardChart(props: {
18
25
  yLabel?: string;
19
26
  xLabel?: string;
20
27
  allowZero?: boolean;
21
- variant?: 'stackedAreaChart' | 'lineChart';
28
+ variant?: PageDashboardChartVariant;
22
29
  padding?: {
23
30
  top?: number;
24
31
  bottom?: number;
@@ -1,5 +1,9 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
3
+ export interface SelectOptionObject {
4
+ toString(): string;
5
+ compareTo?(selectOption: unknown): boolean;
6
+ }
3
7
  export type PageFormCreatableSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
8
  id?: string;
5
9
  name: TFieldName;