@ethnolib/language-chooser-react-mui 0.0.22 → 0.0.24

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,7 +1,16 @@
1
1
  import { ILanguage } from '@ethnolib/find-language';
2
2
  import { IOrthography } from '@ethnolib/language-chooser-react-hook';
3
3
  import { FuseResult } from 'fuse.js';
4
- export declare const languageChooserMuiTheme: import('@mui/material').Theme;
4
+ declare module "@mui/material/styles" {
5
+ interface PaletteColor {
6
+ lighter?: string;
7
+ lightest?: string;
8
+ }
9
+ interface SimplePaletteColorOptions {
10
+ lighter?: string;
11
+ lightest?: string;
12
+ }
13
+ }
5
14
  export interface ILanguageChooserProps {
6
15
  searchResultModifier: (results: FuseResult<ILanguage>[], searchString: string) => ILanguage[];
7
16
  initialSearchString?: string;
@@ -10,5 +19,7 @@ export interface ILanguageChooserProps {
10
19
  onSelectionChange?: (orthographyInfo: IOrthography | undefined, languageTag: string | undefined) => void;
11
20
  rightPanelComponent?: React.ReactNode;
12
21
  actionButtons?: React.ReactNode;
22
+ languageCardBackgroundColorOverride?: string;
23
+ scriptCardBackgroundColorOverride?: string;
13
24
  }
14
25
  export declare const LanguageChooser: React.FunctionComponent<ILanguageChooserProps>;
package/OptionCard.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import { PaletteColor } from '@mui/material';
1
2
  import { default as React } from 'react';
2
3
  export interface OptionCardProps {
3
4
  isSelected: boolean;
4
- backgroundColorWhenNotSelected?: string;
5
+ backgroundColorWhenNotSelected?: string | PaletteColor;
5
6
  backgroundColorWhenSelected?: string;
6
7
  className?: string;
7
8
  onClick?: () => void;
@@ -1,10 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  export declare const DialogDemo: React.FunctionComponent<{
3
- initialSearchString?: string;
4
3
  initialLanguageTag?: string;
5
- initialCustomDisplayName?: string;
6
4
  demoRightPanelComponent?: boolean;
5
+ primaryColor?: string;
6
+ initialSearchString?: string;
7
+ initialCustomDisplayName?: string;
7
8
  dialogHeight?: string;
8
9
  dialogWidth?: string;
10
+ languageCardBackgroundColorOverride?: string;
11
+ scriptCardBackgroundColorOverride?: string;
9
12
  }>;
10
13
  export default DialogDemo;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ThemeDemo: React.FunctionComponent;