@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.
- package/dist/{lib/ConfigrPane.d.ts → ConfigrPane.d.ts} +3 -3
- package/dist/{lib/ContentPane.d.ts → ContentPane.d.ts} +5 -9
- package/dist/configr.es.js +2120 -2105
- package/dist/configr.es.js.map +1 -0
- package/dist/configr.umd.js +50 -44
- package/dist/configr.umd.js.map +1 -0
- package/package.json +2 -2
- package/dist/src/App.d.ts +0 -2
- package/dist/src/main.d.ts +0 -0
- package/dist/src/stories/Other.stories.d.ts +0 -15
- package/dist/src/stories/Page.stories.d.ts +0 -14
- package/dist/src/stories/SILCharacterAlternates.d.ts +0 -16
- package/dist/src/stories/bloom.stories.d.ts +0 -9
- /package/dist/{lib/ConfigrAppBar.d.ts → ConfigrAppBar.d.ts} +0 -0
- /package/dist/{lib/ConfigrColorPicker.d.ts → ConfigrColorPicker.d.ts} +0 -0
- /package/dist/{lib/ConfigrTheme.d.ts → ConfigrTheme.d.ts} +0 -0
- /package/dist/{lib/FilterForSearch.d.ts → FilterForSearch.d.ts} +0 -0
- /package/dist/{lib/HighlightSearchTerms.d.ts → HighlightSearchTerms.d.ts} +0 -0
- /package/dist/{lib/SearchContextProvider.d.ts → SearchContextProvider.d.ts} +0 -0
- /package/dist/{lib/index.d.ts → index.d.ts} +0 -0
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
8
|
-
children: React.ReactElement<typeof
|
|
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;
|