@ethnolib/language-chooser-react-mui 0.0.1 → 0.0.3

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,6 +1,5 @@
1
1
  import { ButtonProps } from '@mui/material';
2
-
3
- export declare const CustomizeLanguageButton: React.FunctionComponent<{
4
- currentTagPreview: string;
5
- forUnlistedLanguage: boolean;
6
- } & ButtonProps>;
2
+ export declare const CustomizeLanguageButton: React.FunctionComponent<{
3
+ currentTagPreview: string;
4
+ forUnlistedLanguage: boolean;
5
+ } & ButtonProps>;
@@ -1,13 +1,13 @@
1
1
  import { ICustomizableLanguageDetails } from '@ethnolib/language-chooser-react-hook';
2
2
  import { ILanguage, IScript } from '../../../common/find-language/index.ts';
3
- import * as React from "react";
4
- export declare const CustomizeLanguageDialog: React.FunctionComponent<{
5
- open: boolean;
6
- selectedLanguage: ILanguage | undefined;
7
- selectedScript: IScript | undefined;
8
- customizableLanguageDetails: ICustomizableLanguageDetails;
9
- saveLanguageDetails: (details: ICustomizableLanguageDetails, script?: IScript) => void;
10
- selectUnlistedLanguage: () => void;
11
- searchString: string;
12
- onClose: () => void;
13
- }>;
3
+ import * as React from "react";
4
+ export declare const CustomizeLanguageDialog: React.FunctionComponent<{
5
+ open: boolean;
6
+ selectedLanguage: ILanguage | undefined;
7
+ selectedScript: IScript | undefined;
8
+ customizableLanguageDetails: ICustomizableLanguageDetails;
9
+ saveLanguageDetails: (details: ICustomizableLanguageDetails, script?: IScript) => void;
10
+ selectUnlistedLanguage: () => void;
11
+ searchString: string;
12
+ onClose: () => void;
13
+ }>;
package/Demo.d.ts CHANGED
@@ -1,3 +1,2 @@
1
-
2
- declare function Demo(): import("@emotion/react/jsx-runtime").JSX.Element;
3
- export default Demo;
1
+ declare function Demo(): import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default Demo;
package/LanguageCard.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { OptionCardPropsWithoutColors } from './OptionCard';
2
2
  import { ILanguage } from '../../../common/find-language/index.ts';
3
-
4
- export declare const LanguageCard: React.FunctionComponent<{
5
- languageCardData: ILanguage;
6
- } & OptionCardPropsWithoutColors>;
3
+ export declare const LanguageCard: React.FunctionComponent<{
4
+ languageCardData: ILanguage;
5
+ } & OptionCardPropsWithoutColors>;
@@ -1,8 +1,7 @@
1
1
  import { ILanguage } from '../../../common/find-language/index.ts';
2
2
  import { ILanguagePickerInitialState } from '@ethnolib/language-chooser-react-hook';
3
3
  import { FuseResult } from 'fuse.js';
4
-
5
- export declare const LanguagePicker: React.FunctionComponent<{
6
- searchResultModifier: (results: FuseResult<ILanguage>[], searchString: string) => ILanguage[];
7
- initialState: ILanguagePickerInitialState;
8
- }>;
4
+ export declare const LanguagePicker: React.FunctionComponent<{
5
+ searchResultModifier: (results: FuseResult<ILanguage>[], searchString: string) => ILanguage[];
6
+ initialState: ILanguagePickerInitialState;
7
+ }>;
package/OptionCard.d.ts CHANGED
@@ -1,13 +1,12 @@
1
1
  import { default as React } from 'react';
2
-
3
- export interface OptionCardProps {
4
- isSelected: boolean;
5
- backgroundColorWhenNotSelected?: string;
6
- backgroundColorWhenSelected?: string;
7
- className?: string;
8
- onClick?: () => void;
9
- }
10
- export type OptionCardPropsWithoutColors = Omit<OptionCardProps, "backgroundColorWhenNotSelected" | "backgroundColorWhenSelected">;
11
- export declare const OptionCard: React.FunctionComponent<{
12
- children: React.ReactNode;
13
- } & OptionCardProps>;
2
+ export interface OptionCardProps {
3
+ isSelected: boolean;
4
+ backgroundColorWhenNotSelected?: string;
5
+ backgroundColorWhenSelected?: string;
6
+ className?: string;
7
+ onClick?: () => void;
8
+ }
9
+ export type OptionCardPropsWithoutColors = Omit<OptionCardProps, "backgroundColorWhenNotSelected" | "backgroundColorWhenSelected">;
10
+ export declare const OptionCard: React.FunctionComponent<{
11
+ children: React.ReactNode;
12
+ } & OptionCardProps>;
@@ -1,6 +1,5 @@
1
1
  import { TypographyProps } from '@mui/material';
2
2
  import { default as React } from 'react';
3
-
4
- export declare const PartiallyBoldedTypography: React.FunctionComponent<{
5
- children: string;
6
- } & TypographyProps>;
3
+ export declare const PartiallyBoldedTypography: React.FunctionComponent<{
4
+ children: string;
5
+ } & TypographyProps>;
package/ScriptCard.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { OptionCardPropsWithoutColors } from './OptionCard';
2
2
  import { IScript } from '../../../common/find-language/index.ts';
3
-
4
- export declare const ScriptCard: React.FunctionComponent<{
5
- scriptData: IScript;
6
- } & OptionCardPropsWithoutColors>;
3
+ export declare const ScriptCard: React.FunctionComponent<{
4
+ scriptData: IScript;
5
+ } & OptionCardPropsWithoutColors>;
package/TextInput.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
-
3
- export declare const TextInput: React.FunctionComponent<{
4
- id: string;
5
- label: string;
6
- } & TextFieldProps>;
2
+ export declare const TextInput: React.FunctionComponent<{
3
+ id: string;
4
+ label: string;
5
+ } & TextFieldProps>;
package/colors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export declare const COLORS: {
2
- white: string;
3
- blues: string[];
4
- greys: string[];
5
- };
1
+ export declare const COLORS: {
2
+ white: string;
3
+ blues: string[];
4
+ greys: string[];
5
+ };
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './LanguagePicker';
1
+ export * from './LanguagePicker';
package/main.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A language chooser React component using MUI",
4
4
  "author": "SIL Global",
5
5
  "license": "MIT",
6
- "version": "0.0.1",
6
+ "version": "0.0.3",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "exports": {