kewti_components 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.
- package/dist/App.d.ts +2 -0
- package/dist/components/theme-provider.d.ts +15 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/index.d.ts +7 -0
- package/dist/kewti-banks/component.d.ts +16 -0
- package/dist/kewti-banks/index.d.ts +19 -0
- package/dist/kewti-banks/parse.d.ts +19 -0
- package/dist/kewti-calender/DateInput.d.ts +6 -0
- package/dist/kewti-calender/EthiopianCalendar.d.ts +6 -0
- package/dist/kewti-calender/try.d.ts +1 -0
- package/dist/kewti-calender/useEthiopianCalendar.d.ts +20 -0
- package/dist/kewti-calender/utils.d.ts +14 -0
- package/dist/kewti-inputs/component.d.ts +26 -0
- package/dist/kewti-inputs/transliterate.d.ts +4 -0
- package/dist/kewti-maps/component.d.ts +17 -0
- package/dist/kewti-passwords/component.d.ts +21 -0
- package/dist/kewti-regions/component.d.ts +4 -0
- package/dist/kewti.es.js +6469 -7844
- package/dist/kewti.umd.js +32 -37
- package/dist/kewtiDemo/component.d.ts +1 -0
- package/dist/kewtiPage/KewtiPage.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/package.json +13 -7
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type Theme = "dark" | "light" | "system";
|
|
3
|
+
type ThemeProviderProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
defaultTheme?: Theme;
|
|
6
|
+
storageKey?: string;
|
|
7
|
+
disableTransitionOnChange?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ThemeProviderState = {
|
|
10
|
+
theme: Theme;
|
|
11
|
+
setTheme: (theme: Theme) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, disableTransitionOnChange, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Alert, AlertTitle, AlertDescription, AlertAction };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
|
|
3
|
+
size?: "default" | "sm";
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import { Dialog } from './dialog';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Button } from './button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { EthiopianCalendar } from './kewti-calender/EthiopianCalendar';
|
|
2
|
+
export { EthiopianDatePicker } from './kewti-calender/DateInput';
|
|
3
|
+
export { KewtiInput } from './kewti-inputs/component';
|
|
4
|
+
export { KewtiLocationSelector } from './kewti-regions/component';
|
|
5
|
+
export { KewtiMap } from './kewti-maps/component';
|
|
6
|
+
export { default as TransactionValidator } from './kewti-banks/component';
|
|
7
|
+
export { KewtiPassword } from './kewti-passwords/component';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface TelebirrTransaction {
|
|
2
|
+
id: string;
|
|
3
|
+
receiverName?: string;
|
|
4
|
+
transactionTo?: string;
|
|
5
|
+
phone?: string;
|
|
6
|
+
payerTelebirrNo?: string;
|
|
7
|
+
amount?: number;
|
|
8
|
+
settledAmount?: number;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ValidationResult {
|
|
12
|
+
isValid: boolean;
|
|
13
|
+
date: string;
|
|
14
|
+
errors: string[];
|
|
15
|
+
}
|
|
16
|
+
export default function TransactionValidator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface TelebirrData {
|
|
2
|
+
payerName: string;
|
|
3
|
+
payerTelebirrNo: string;
|
|
4
|
+
creditedPartyName: string;
|
|
5
|
+
creditedPartyAccountNo: string;
|
|
6
|
+
transactionStatus: string;
|
|
7
|
+
receiptNo: string;
|
|
8
|
+
paymentDate: string;
|
|
9
|
+
settledAmount: string;
|
|
10
|
+
serviceFee: string;
|
|
11
|
+
serviceFeeVAT: string;
|
|
12
|
+
totalPaidAmount: string;
|
|
13
|
+
bankName: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function validateTransaction(data: TelebirrData, expectedAmount: number, expectedReceiverAccount: string, expectedReceiverName: string): {
|
|
16
|
+
isValid: boolean;
|
|
17
|
+
date: string;
|
|
18
|
+
errors: string[] | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface TelebirrReceipt {
|
|
2
|
+
payerName: string;
|
|
3
|
+
payerTelebirrNo: string;
|
|
4
|
+
creditedPartyName: string;
|
|
5
|
+
creditedPartyAccountNo: string;
|
|
6
|
+
transactionStatus: string;
|
|
7
|
+
receiptNo: string;
|
|
8
|
+
paymentDate: string;
|
|
9
|
+
settledAmount: string;
|
|
10
|
+
serviceFee: string;
|
|
11
|
+
serviceFeeVAT: string;
|
|
12
|
+
totalPaidAmount: string;
|
|
13
|
+
bankName: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class TelebirrVerificationError extends Error {
|
|
16
|
+
details?: string;
|
|
17
|
+
constructor(message: string, details?: string);
|
|
18
|
+
}
|
|
19
|
+
export declare function verifyTelebirr(reference: string): Promise<TelebirrReceipt | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface UseEthiopianCalendarReturn {
|
|
2
|
+
currentDay: number;
|
|
3
|
+
currentMonth: number;
|
|
4
|
+
currentYear: number;
|
|
5
|
+
today: {
|
|
6
|
+
day: number;
|
|
7
|
+
month: number;
|
|
8
|
+
year: number;
|
|
9
|
+
};
|
|
10
|
+
daysInCurrentMonth: number;
|
|
11
|
+
monthName: string;
|
|
12
|
+
monthAmharic: string;
|
|
13
|
+
goToPrevMonth: () => void;
|
|
14
|
+
goToNextMonth: () => void;
|
|
15
|
+
goToToday: () => void;
|
|
16
|
+
setCurrentMonth: React.Dispatch<React.SetStateAction<number>>;
|
|
17
|
+
setCurrentYear: React.Dispatch<React.SetStateAction<number>>;
|
|
18
|
+
}
|
|
19
|
+
export declare function useEthiopianCalendar(): UseEthiopianCalendarReturn;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const ETHIOPIAN_MONTHS: {
|
|
2
|
+
index: number;
|
|
3
|
+
name: string;
|
|
4
|
+
amharic: string;
|
|
5
|
+
days: number;
|
|
6
|
+
}[];
|
|
7
|
+
export declare function isEthiopianLeapYear(etYear: number): boolean;
|
|
8
|
+
export declare function toEthiopianDate(date: Date): {
|
|
9
|
+
day: number;
|
|
10
|
+
month: number;
|
|
11
|
+
year: number;
|
|
12
|
+
};
|
|
13
|
+
export declare function toGregorianDate(day: number, month: number, year: number): Date;
|
|
14
|
+
export declare function getEthiopianMonthStartDay(month: number, year: number): number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const chatInputVariants: (props?: ({
|
|
4
|
+
size?: "default" | "full" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
interface ChatInputProps extends VariantProps<typeof chatInputVariants> {
|
|
7
|
+
variant?: "input" | "textarea";
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
onSend?: (value: string) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
containerStyle?: React.CSSProperties;
|
|
14
|
+
setUserInput?: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
+
inputClassName?: string;
|
|
16
|
+
defaultLanguage?: "am" | "en";
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface Window {
|
|
20
|
+
webkitSpeechRecognition: any;
|
|
21
|
+
SpeechRecognition: any;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare function KewtiInput({ variant, placeholder, onSend, size, className, containerClassName, inputClassName, defaultLanguage, // Defaults to Amharic
|
|
25
|
+
style, containerStyle, setUserInput }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type MapItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
src: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
initial?: string;
|
|
8
|
+
onChange?: (item: MapItem | undefined) => void;
|
|
9
|
+
onRegionSelect?: (info: {
|
|
10
|
+
map: string;
|
|
11
|
+
regionIndex: number;
|
|
12
|
+
}) => void;
|
|
13
|
+
showPreview?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function KewtiMap({ onRegionSelect, label }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface KewtiPasswordProps {
|
|
3
|
+
/** Placeholder text */
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
/** Show the strength meter & rule checklist */
|
|
6
|
+
showStrength?: boolean;
|
|
7
|
+
/** External change handler */
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
/** Controlled value */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** Label text above the input */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Extra wrapper classes */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Slot for a mascot or illustration above the input */
|
|
16
|
+
mascot?: React.ReactNode;
|
|
17
|
+
setUserPassword?: React.Dispatch<React.SetStateAction<string>>;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
export declare function KewtiPassword({ placeholder, showStrength, onChange, value: controlledValue, label, className, mascot, setUserPassword, style }: KewtiPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|