@sillsdev/config-r 1.0.0-alpha.16 → 1.0.0-alpha.17

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,10 +1,10 @@
1
1
  import { ThemeOptions } from '@mui/material';
2
- import { ConfigrGroup } from './ContentPane';
3
2
  import * as React from 'react';
3
+ import { ConfigrPage } from './ContentPane';
4
4
  export declare const ConfigrPane: React.FunctionComponent<React.PropsWithChildren<{
5
5
  label: string;
6
6
  initialValues: object;
7
- children: React.ReactElement<typeof ConfigrGroup> | React.ReactElement<typeof ConfigrGroup>[];
7
+ children: React.ReactElement<typeof ConfigrPage> | React.ReactElement<typeof ConfigrPage>[];
8
8
  onChange?: (currentValues: any) => void;
9
9
  showAppBar?: boolean;
10
10
  showSearch?: boolean;
@@ -12,5 +12,5 @@ export declare const ConfigrPane: React.FunctionComponent<React.PropsWithChildre
12
12
  themeOverrides?: ThemeOptions;
13
13
  showJson?: boolean;
14
14
  className?: string;
15
- selectedAreaIndex?: number;
15
+ initiallySelectedTopLevelPageIndex?: number;
16
16
  }>>;
@@ -1,19 +1,14 @@
1
1
  import { SerializedStyles } from '@emotion/react';
2
- import { ReactNode } from 'react';
3
2
  import * as React from 'react';
3
+ import { ReactNode } from 'react';
4
4
  type valueGetter = () => Object;
5
5
  export declare const ContentPane: React.FunctionComponent<React.PropsWithChildren<{
6
6
  initialValues: object;
7
- currentAreaIndex?: number;
8
- children: React.ReactElement<typeof InternalGroup> | React.ReactElement<typeof InternalGroup>[];
7
+ currentTopLevelPageIndex?: number;
8
+ children: React.ReactElement<typeof ConfigrPage> | React.ReactElement<typeof ConfigrPage>[];
9
9
  setValueGetter?: (vg: valueGetter) => void;
10
10
  onChange?: (currentValues: any) => void;
11
11
  }>>;
12
- declare const InternalGroup: React.FunctionComponent<React.PropsWithChildren<{
13
- label?: string;
14
- description?: string | React.ReactNode;
15
- level?: undefined | 1 | 2;
16
- }>>;
17
12
  type BooleanEditorComponent = React.FunctionComponent<{
18
13
  value: boolean;
19
14
  disabled?: boolean;
@@ -79,12 +74,12 @@ interface ISelectProps extends IConfigrProps<string> {
79
74
  export declare const ConfigrSelect: React.FunctionComponent<React.PropsWithChildren<ISelectProps>>;
80
75
  export declare const ConfigrGroup: React.FunctionComponent<React.PropsWithChildren<{
81
76
  label?: string;
82
- pageKey?: string;
83
77
  searchTerms?: string;
84
78
  description?: string | React.ReactNode;
85
79
  getErrorMessage?: (data: any) => string | undefined;
86
80
  inFocussedPage?: boolean;
87
81
  }>>;
82
+ export type PageChild = React.ReactElement<typeof ConfigrGroup> | false | undefined | null;
88
83
  export declare const ConfigrPage: React.FunctionComponent<React.PropsWithChildren<{
89
84
  label: string;
90
85
  labelCss?: SerializedStyles;
@@ -93,6 +88,7 @@ export declare const ConfigrPage: React.FunctionComponent<React.PropsWithChildre
93
88
  topLevel?: boolean;
94
89
  getErrorMessage?: (data: any) => string | undefined;
95
90
  inFocussedPage?: boolean;
91
+ children: PageChild | PageChild[];
96
92
  }>>;
97
93
  export declare const ConfigrForEach: React.FunctionComponent<React.PropsWithChildren<{
98
94
  path: string;