@ory/elements-preact
Advanced tools
Comparing version 0.1.0-beta.9 to 0.1.0-beta.10
import { JSX } from './preact/compat'; | ||
import { ButtonLinkContainerStyle } from "../theme/button-link.css"; | ||
export interface CustomHref { | ||
href: string; | ||
handler: (url: string) => void; | ||
href?: string; | ||
handler: () => void; | ||
} | ||
@@ -7,0 +7,0 @@ export type ButtonLinkProps = { |
@@ -11,4 +11,24 @@ import { PropsWithChildren, ReactElement, ReactNode } from './preact/compat'; | ||
export declare const ThemeProvider: ({ children, theme, themeOverrides, enableFontSmoothing, }: ThemeProviderProps) => import("preact").JSX.Element; | ||
export declare const IntlProvider: ({ locale, children, }: PropsWithChildren<{ | ||
locale?: "en" | "es" | "de" | "fr" | "nl" | "se" | "pt" | undefined; | ||
}>) => import("preact").JSX.Element; | ||
export type TranslationFile = { | ||
[K in keyof typeof locales.en]: string; | ||
}; | ||
export declare const LanguageCodes: readonly ["ab", "aa", "af", "sq", "am", "ar", "hy", "as", "ay", "az", "ba", "eu", "bn", "dz", "bh", "bi", "br", "bg", "my", "be", "km", "ca", "zh", "co", "hr", "cs", "da", "nl", "en", "eo", "et", "fo", "fj", "fi", "fr", "fy", "gd", "gl", "ka", "de", "el", "kl", "gn", "gu", "ha", "iw", "hi", "hu", "is", "in", "ia", "ie", "ik", "ga", "it", "ja", "jw", "kn", "ks", "kk", "rw", "ky", "rn", "ko", "ku", "lo", "la", "lv", "ln", "lt", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mo", "mn", "na", "ne", "no", "oc", "or", "om", "ps", "fa", "pl", "pt", "pa", "qu", "rm", "ro", "ru", "sm", "sg", "sa", "sr", "sh", "st", "tn", "sn", "sd", "si", "ss", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tr", "tk", "tw", "uk", "ur", "uz", "vi", "vo", "cy", "wo", "xh", "ji", "yo", "zu"]; | ||
export type CustomLanguageFormats = { | ||
[k in (typeof LanguageCodes)[number]]?: Partial<TranslationFile>; | ||
}; | ||
export interface CustomTranslations { | ||
customTranslations: Partial<CustomLanguageFormats>; | ||
locale: (typeof LanguageCodes)[number]; | ||
defaultLocale: (typeof LanguageCodes)[number]; | ||
} | ||
export type SupportedLanguageFormats = { | ||
[k in keyof typeof locales]: TranslationFile; | ||
}; | ||
type locale = keyof typeof locales; | ||
export interface SupportedTranslations { | ||
locale?: locale; | ||
defaultLocale?: locale; | ||
} | ||
export type IntlProviderProps<Type> = Type extends CustomTranslations ? PropsWithChildren<CustomTranslations> : PropsWithChildren<SupportedTranslations>; | ||
export declare const IntlProvider: <T extends CustomTranslations | SupportedTranslations = SupportedTranslations>({ children, ...props }: IntlProviderProps<T>) => import("preact").JSX.Element; | ||
export {}; |
{ | ||
"name": "@ory/elements-preact", | ||
"version": "0.1.0-beta.9", | ||
"version": "0.1.0-beta.10", | ||
"publishConfig": { | ||
@@ -67,3 +67,3 @@ "access": "public" | ||
}, | ||
"gitHead": "723aebf727eb7a01c0fb46b96e8b5e6f27108801" | ||
"gitHead": "e4394b81f0169d85e889973f1b6fda10d4a3cc69" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2782485
13092