@ethnolib/language-chooser-react-mui 0.0.1
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/CustomizeLanguageButton.d.ts +6 -0
- package/CustomizeLanguageDialog.d.ts +13 -0
- package/Demo.d.ts +3 -0
- package/LanguageCard.d.ts +6 -0
- package/LanguagePicker.d.ts +8 -0
- package/OptionCard.d.ts +13 -0
- package/PartiallyBoldedTypography.d.ts +6 -0
- package/ScriptCard.d.ts +6 -0
- package/TextInput.d.ts +6 -0
- package/colors.d.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +374 -0
- package/index.mjs +307249 -0
- package/main.d.ts +1 -0
- package/package.json +56 -0
- package/style.css +1 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ICustomizableLanguageDetails } from '@ethnolib/language-chooser-react-hook';
|
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
|
+
}>;
|
package/Demo.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ILanguage } from '../../../common/find-language/index.ts';
|
2
|
+
import { ILanguagePickerInitialState } from '@ethnolib/language-chooser-react-hook';
|
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
|
+
}>;
|
package/OptionCard.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
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>;
|
package/ScriptCard.d.ts
ADDED
package/TextInput.d.ts
ADDED
package/colors.d.ts
ADDED
package/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './LanguagePicker';
|