kewti_components 0.0.1 → 0.0.2
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.umd.js +1 -1
- 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 +3 -2
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 {};
|
package/dist/kewti.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(WA,oA){typeof exports=="object"&&typeof module<"u"?oA(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],oA):(WA=typeof globalThis<"u"?globalThis:WA||self,oA(WA.
|
|
1
|
+
(function(WA,oA){typeof exports=="object"&&typeof module<"u"?oA(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],oA):(WA=typeof globalThis<"u"?globalThis:WA||self,oA(WA.KewtiComponents={},WA.React,WA.ReactDOM))})(this,(function(WA,oA,Gs){"use strict";function Js(A){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const t in A)if(t!=="default"){const q=Object.getOwnPropertyDescriptor(A,t);Object.defineProperty(e,t,q.get?q:{enumerable:!0,get:()=>A[t]})}}return e.default=A,Object.freeze(e)}const b=Js(oA),Ys=Js(Gs);function Lq(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Hq={exports:{}},Wt={};var Us;function $u(){if(Us)return Wt;Us=1;var A=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(q,n,r){var s=null;if(r!==void 0&&(s=""+r),n.key!==void 0&&(s=""+n.key),"key"in n){r={};for(var a in n)a!=="key"&&(r[a]=n[a])}else r=n;return n=r.ref,{$$typeof:A,type:q,key:s,ref:n!==void 0?n:null,props:r}}return Wt.Fragment=e,Wt.jsx=t,Wt.jsxs=t,Wt}var Kt={};var Xs;function Ac(){return Xs||(Xs=1,process.env.NODE_ENV!=="production"&&(function(){function A(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===R?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case w:return"Fragment";case y:return"Profiler";case T:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case O:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case d:return"Portal";case M:return E.displayName||"Context";case x:return(E._context.displayName||"Context")+".Consumer";case F:var Q=E.render;return E=E.displayName,E||(E=Q.displayName||Q.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case D:return Q=E.displayName||null,Q!==null?Q:A(E.type)||"Memo";case I:Q=E._payload,E=E._init;try{return A(E(Q))}catch{}}return null}function e(E){return""+E}function t(E){try{e(E);var Q=!1}catch{Q=!0}if(Q){Q=console;var N=Q.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return N.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),e(E)}}function q(E){if(E===w)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===I)return"<...>";try{var Q=A(E);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function n(){var E=G.A;return E===null?null:E.getOwner()}function r(){return Error("react-stack-top-frame")}function s(E){if(j.call(E,"key")){var Q=Object.getOwnPropertyDescriptor(E,"key").get;if(Q&&Q.isReactWarning)return!1}return E.key!==void 0}function a(E,Q){function N(){AA||(AA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}N.isReactWarning=!0,Object.defineProperty(E,"key",{get:N,configurable:!0})}function u(){var E=A(this.type);return tA[E]||(tA[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function o(E,Q,N,Y,U,eA){var $=N.ref;return E={$$typeof:f,type:E,key:Q,props:N,_owner:Y},($!==void 0?$:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:u}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:eA}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function c(E,Q,N,Y,U,eA){var $=Q.children;if($!==void 0)if(Y)if(_($)){for(Y=0;Y<$.length;Y++)l($[Y]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l($);if(j.call(Q,"key")){$=A(E);var K=Object.keys(Q).filter(function(nA){return nA!=="key"});Y=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",p[$+Y]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function KewtiDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/main.d.ts
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kewti_components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/kewti.umd.js",
|
|
7
7
|
"module": "./dist/kewti.es.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"react-dom": "^19.2.4",
|
|
61
61
|
"typescript": "~5.9.3",
|
|
62
62
|
"typescript-eslint": "^8.57.1",
|
|
63
|
-
"vite": "^7.3.1"
|
|
63
|
+
"vite": "^7.3.1",
|
|
64
|
+
"vite-plugin-dts": "^5.0.0"
|
|
64
65
|
}
|
|
65
66
|
}
|