@indra-inter/neobrutalism-components 0.1.0
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/README.md +1330 -0
- package/dist/module/assets/avatar-profile.png +0 -0
- package/dist/module/components/accordion/accordion.js +203 -0
- package/dist/module/components/accordion/accordion.js.map +1 -0
- package/dist/module/components/app-bar/app-bar.js +140 -0
- package/dist/module/components/app-bar/app-bar.js.map +1 -0
- package/dist/module/components/avatar/avatar.js +184 -0
- package/dist/module/components/avatar/avatar.js.map +1 -0
- package/dist/module/components/badge/badge.js +133 -0
- package/dist/module/components/badge/badge.js.map +1 -0
- package/dist/module/components/bottom-navigation/bottom-navigation.js +166 -0
- package/dist/module/components/bottom-navigation/bottom-navigation.js.map +1 -0
- package/dist/module/components/bottom-sheet/bottom-sheet.js +285 -0
- package/dist/module/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/module/components/button/button.js +253 -0
- package/dist/module/components/button/button.js.map +1 -0
- package/dist/module/components/calendar/calendar.js +458 -0
- package/dist/module/components/calendar/calendar.js.map +1 -0
- package/dist/module/components/call-item/call-item.js +128 -0
- package/dist/module/components/call-item/call-item.js.map +1 -0
- package/dist/module/components/card/card.js +189 -0
- package/dist/module/components/card/card.js.map +1 -0
- package/dist/module/components/chat-list-item/chat-list-item.js +212 -0
- package/dist/module/components/chat-list-item/chat-list-item.js.map +1 -0
- package/dist/module/components/checkbox/checkbox.js +141 -0
- package/dist/module/components/checkbox/checkbox.js.map +1 -0
- package/dist/module/components/dialog/dialog.js +342 -0
- package/dist/module/components/dialog/dialog.js.map +1 -0
- package/dist/module/components/divider/divider.js +41 -0
- package/dist/module/components/divider/divider.js.map +1 -0
- package/dist/module/components/dropdown/dropdown-menu.js +214 -0
- package/dist/module/components/dropdown/dropdown-menu.js.map +1 -0
- package/dist/module/components/dropdown/dropdown.js +616 -0
- package/dist/module/components/dropdown/dropdown.js.map +1 -0
- package/dist/module/components/dropdown/types.js +4 -0
- package/dist/module/components/dropdown/types.js.map +1 -0
- package/dist/module/components/icon-button/icon-button.js +140 -0
- package/dist/module/components/icon-button/icon-button.js.map +1 -0
- package/dist/module/components/input/currency-input.js +60 -0
- package/dist/module/components/input/currency-input.js.map +1 -0
- package/dist/module/components/input/input.js +281 -0
- package/dist/module/components/input/input.js.map +1 -0
- package/dist/module/components/input/otp-input.js +196 -0
- package/dist/module/components/input/otp-input.js.map +1 -0
- package/dist/module/components/input/password-input.js +74 -0
- package/dist/module/components/input/password-input.js.map +1 -0
- package/dist/module/components/input/phone-input.js +68 -0
- package/dist/module/components/input/phone-input.js.map +1 -0
- package/dist/module/components/input/url-input.js +43 -0
- package/dist/module/components/input/url-input.js.map +1 -0
- package/dist/module/components/list-item/list-item.js +148 -0
- package/dist/module/components/list-item/list-item.js.map +1 -0
- package/dist/module/components/pin-code-field/pin-code-field.js +164 -0
- package/dist/module/components/pin-code-field/pin-code-field.js.map +1 -0
- package/dist/module/components/progress/progress.js +261 -0
- package/dist/module/components/progress/progress.js.map +1 -0
- package/dist/module/components/radio/radio.js +135 -0
- package/dist/module/components/radio/radio.js.map +1 -0
- package/dist/module/components/skeleton/skeleton.js +328 -0
- package/dist/module/components/skeleton/skeleton.js.map +1 -0
- package/dist/module/components/switch/switch.js +170 -0
- package/dist/module/components/switch/switch.js.map +1 -0
- package/dist/module/components/tabs/tabs.js +197 -0
- package/dist/module/components/tabs/tabs.js.map +1 -0
- package/dist/module/components/toast/toast-provider.js +117 -0
- package/dist/module/components/toast/toast-provider.js.map +1 -0
- package/dist/module/components/toast/toast.js +154 -0
- package/dist/module/components/toast/toast.js.map +1 -0
- package/dist/module/index.js +38 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/theme/design-tokens.generated.js +379 -0
- package/dist/module/theme/design-tokens.generated.js.map +1 -0
- package/dist/module/theme/theme-provider.js +20 -0
- package/dist/module/theme/theme-provider.js.map +1 -0
- package/dist/module/theme/theme.js +56 -0
- package/dist/module/theme/theme.js.map +1 -0
- package/dist/typescript/components/accordion/accordion.d.ts +40 -0
- package/dist/typescript/components/accordion/accordion.d.ts.map +1 -0
- package/dist/typescript/components/app-bar/app-bar.d.ts +34 -0
- package/dist/typescript/components/app-bar/app-bar.d.ts.map +1 -0
- package/dist/typescript/components/avatar/avatar.d.ts +17 -0
- package/dist/typescript/components/avatar/avatar.d.ts.map +1 -0
- package/dist/typescript/components/badge/badge.d.ts +20 -0
- package/dist/typescript/components/badge/badge.d.ts.map +1 -0
- package/dist/typescript/components/bottom-navigation/bottom-navigation.d.ts +28 -0
- package/dist/typescript/components/bottom-navigation/bottom-navigation.d.ts.map +1 -0
- package/dist/typescript/components/bottom-sheet/bottom-sheet.d.ts +38 -0
- package/dist/typescript/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/dist/typescript/components/button/button.d.ts +21 -0
- package/dist/typescript/components/button/button.d.ts.map +1 -0
- package/dist/typescript/components/calendar/calendar.d.ts +41 -0
- package/dist/typescript/components/calendar/calendar.d.ts.map +1 -0
- package/dist/typescript/components/call-item/call-item.d.ts +21 -0
- package/dist/typescript/components/call-item/call-item.d.ts.map +1 -0
- package/dist/typescript/components/card/card.d.ts +37 -0
- package/dist/typescript/components/card/card.d.ts.map +1 -0
- package/dist/typescript/components/chat-list-item/chat-list-item.d.ts +37 -0
- package/dist/typescript/components/chat-list-item/chat-list-item.d.ts.map +1 -0
- package/dist/typescript/components/checkbox/checkbox.d.ts +15 -0
- package/dist/typescript/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/typescript/components/dialog/dialog.d.ts +34 -0
- package/dist/typescript/components/dialog/dialog.d.ts.map +1 -0
- package/dist/typescript/components/divider/divider.d.ts +10 -0
- package/dist/typescript/components/divider/divider.d.ts.map +1 -0
- package/dist/typescript/components/dropdown/dropdown-menu.d.ts +27 -0
- package/dist/typescript/components/dropdown/dropdown-menu.d.ts.map +1 -0
- package/dist/typescript/components/dropdown/dropdown.d.ts +4 -0
- package/dist/typescript/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/typescript/components/dropdown/types.d.ts +52 -0
- package/dist/typescript/components/dropdown/types.d.ts.map +1 -0
- package/dist/typescript/components/icon-button/icon-button.d.ts +20 -0
- package/dist/typescript/components/icon-button/icon-button.d.ts.map +1 -0
- package/dist/typescript/components/input/currency-input.d.ts +10 -0
- package/dist/typescript/components/input/currency-input.d.ts.map +1 -0
- package/dist/typescript/components/input/input.d.ts +32 -0
- package/dist/typescript/components/input/input.d.ts.map +1 -0
- package/dist/typescript/components/input/otp-input.d.ts +23 -0
- package/dist/typescript/components/input/otp-input.d.ts.map +1 -0
- package/dist/typescript/components/input/password-input.d.ts +14 -0
- package/dist/typescript/components/input/password-input.d.ts.map +1 -0
- package/dist/typescript/components/input/phone-input.d.ts +13 -0
- package/dist/typescript/components/input/phone-input.d.ts.map +1 -0
- package/dist/typescript/components/input/url-input.d.ts +10 -0
- package/dist/typescript/components/input/url-input.d.ts.map +1 -0
- package/dist/typescript/components/list-item/list-item.d.ts +30 -0
- package/dist/typescript/components/list-item/list-item.d.ts.map +1 -0
- package/dist/typescript/components/pin-code-field/pin-code-field.d.ts +25 -0
- package/dist/typescript/components/pin-code-field/pin-code-field.d.ts.map +1 -0
- package/dist/typescript/components/progress/progress.d.ts +18 -0
- package/dist/typescript/components/progress/progress.d.ts.map +1 -0
- package/dist/typescript/components/radio/radio.d.ts +12 -0
- package/dist/typescript/components/radio/radio.d.ts.map +1 -0
- package/dist/typescript/components/skeleton/skeleton.d.ts +16 -0
- package/dist/typescript/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/typescript/components/switch/switch.d.ts +12 -0
- package/dist/typescript/components/switch/switch.d.ts.map +1 -0
- package/dist/typescript/components/tabs/tabs.d.ts +37 -0
- package/dist/typescript/components/tabs/tabs.d.ts.map +1 -0
- package/dist/typescript/components/toast/toast-provider.d.ts +22 -0
- package/dist/typescript/components/toast/toast-provider.d.ts.map +1 -0
- package/dist/typescript/components/toast/toast.d.ts +15 -0
- package/dist/typescript/components/toast/toast.d.ts.map +1 -0
- package/dist/typescript/index.d.ts +36 -0
- package/dist/typescript/index.d.ts.map +1 -0
- package/dist/typescript/package.json +1 -0
- package/dist/typescript/theme/design-tokens.generated.d.ts +375 -0
- package/dist/typescript/theme/design-tokens.generated.d.ts.map +1 -0
- package/dist/typescript/theme/theme-provider.d.ts +8 -0
- package/dist/typescript/theme/theme-provider.d.ts.map +1 -0
- package/dist/typescript/theme/theme.d.ts +52 -0
- package/dist/typescript/theme/theme.d.ts.map +1 -0
- package/package.json +88 -0
- package/tokens.css +132 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
+
type ViewSlotProps = PropsWithChildren<ViewProps & {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}>;
|
|
6
|
+
export type BottomSheetAnimation = 'none' | 'slide';
|
|
7
|
+
export type BottomSheetProps = PropsWithChildren<{
|
|
8
|
+
/** Controls the open and close motion. Defaults to a vertical slide. */
|
|
9
|
+
animation?: BottomSheetAnimation;
|
|
10
|
+
/** Duration of the open and close animation in milliseconds. */
|
|
11
|
+
animationDuration?: number;
|
|
12
|
+
/** Overrides the bottom safe-area spacing inside the sheet. */
|
|
13
|
+
bottomPadding?: number;
|
|
14
|
+
/** Enables a downward swipe on the sheet surface to dismiss it. */
|
|
15
|
+
dragToDismiss?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Use this only when the consuming screen has a persistent header that the
|
|
18
|
+
* sheet must clear while the keyboard is open.
|
|
19
|
+
*/
|
|
20
|
+
keyboardVerticalOffset?: number;
|
|
21
|
+
/** Called after a visible sheet has finished closing. */
|
|
22
|
+
onCloseComplete?: () => void;
|
|
23
|
+
onOpenChange: (open: boolean) => void;
|
|
24
|
+
open: boolean;
|
|
25
|
+
radius?: number;
|
|
26
|
+
/** Shows the platform surface shadow. Defaults to true. */
|
|
27
|
+
shadow?: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
export type BottomSheetHeaderProps = {
|
|
30
|
+
title: string;
|
|
31
|
+
titleNumberOfLines?: number;
|
|
32
|
+
};
|
|
33
|
+
export declare function BottomSheet({ animation, animationDuration, bottomPadding, children, dragToDismiss, keyboardVerticalOffset, onCloseComplete, onOpenChange, open, radius, shadow, }: BottomSheetProps): import("react").JSX.Element;
|
|
34
|
+
export declare function BottomSheetHeader({ title, titleNumberOfLines, }: BottomSheetHeaderProps): import("react").JSX.Element;
|
|
35
|
+
export declare function BottomSheetBody({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
36
|
+
export declare function BottomSheetFooter({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=bottom-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/bottom-sheet/bottom-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AACf,OAAO,EASL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB,KAAK,aAAa,GAAG,iBAAiB,CACpC,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAC7C,CAAC;AAKF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,wEAAwE;IACxE,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,SAAmB,EACnB,iBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,aAAqB,EACrB,sBAA0B,EAC1B,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,MAAa,GACd,EAAE,gBAAgB,+BAiLlB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,kBAAsB,GACvB,EAAE,sBAAsB,+BAcxB;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAQ3E;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,+BAQf"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type PressableProps, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline' | 'destructive' | 'warning' | 'success' | 'info' | 'neutral' | 'noShadow';
|
|
4
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ButtonRounded = 'sharp' | 'rounded';
|
|
6
|
+
export interface ButtonProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
7
|
+
className?: string;
|
|
8
|
+
containerClassName?: string;
|
|
9
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
12
|
+
leadingIcon?: ReactNode;
|
|
13
|
+
radius?: number;
|
|
14
|
+
rounded?: ButtonRounded;
|
|
15
|
+
size?: ButtonSize;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
trailingIcon?: ReactNode;
|
|
18
|
+
variant?: ButtonVariant;
|
|
19
|
+
}
|
|
20
|
+
export declare function Button({ containerStyle, children, disabled, labelStyle, leadingIcon, onHoverIn, onHoverOut, radius, rounded, size, style, trailingIcon, variant, ...props }: ButtonProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,OAAO,GACP,SAAS,GACT,aAAa,GACb,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,CAAC;AACf,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC;AAGhD,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,EACrB,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAmB,EACnB,IAAW,EACX,KAAK,EACL,YAAY,EACZ,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,WAAW,+BAsGb"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
export type CalendarMode = 'single' | 'range';
|
|
3
|
+
export type CalendarRangeValue = {
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CalendarRadius = number | {
|
|
8
|
+
topLeft?: number;
|
|
9
|
+
topRight?: number;
|
|
10
|
+
bottomRight?: number;
|
|
11
|
+
bottomLeft?: number;
|
|
12
|
+
};
|
|
13
|
+
type CalendarSharedProps = {
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
defaultVisibleMonth?: string;
|
|
17
|
+
disabledDates?: readonly string[];
|
|
18
|
+
firstDayOfWeek?: 0 | 1;
|
|
19
|
+
locale?: string;
|
|
20
|
+
maxDate?: string;
|
|
21
|
+
minDate?: string;
|
|
22
|
+
onVisibleMonthChange?: (month: string) => void;
|
|
23
|
+
radius?: CalendarRadius;
|
|
24
|
+
navigationButtonRadius?: CalendarRadius;
|
|
25
|
+
selectedRadius?: CalendarRadius;
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
};
|
|
28
|
+
export type CalendarProps = (CalendarSharedProps & {
|
|
29
|
+
mode?: 'single';
|
|
30
|
+
value?: string;
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
onValueChange?: (value: string | undefined) => void;
|
|
33
|
+
}) | (CalendarSharedProps & {
|
|
34
|
+
mode: 'range';
|
|
35
|
+
value?: CalendarRangeValue;
|
|
36
|
+
defaultValue?: CalendarRangeValue;
|
|
37
|
+
onValueChange?: (value: CalendarRangeValue | undefined) => void;
|
|
38
|
+
});
|
|
39
|
+
export declare function Calendar(props: CalendarProps): import("react").JSX.Element;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/calendar.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEN,KAAK,mBAAmB,GAAG;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,sBAAsB,CAAC,EAAE,cAAc,CAAC;IACxC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB,CAAC,mBAAmB,GAAG;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACrD,CAAC,GACF,CAAC,mBAAmB,GAAG;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,KAAK,IAAI,CAAC;CACjE,CAAC,CAAC;AA0BP,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAmM5C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
export type CallItemType = 'incoming' | 'outgoing' | 'missed' | 'video';
|
|
4
|
+
export type CallItemProps = {
|
|
5
|
+
accessibilityLabel?: string;
|
|
6
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
7
|
+
detail: ReactNode;
|
|
8
|
+
detailStyle?: StyleProp<TextStyle>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
divider?: boolean;
|
|
11
|
+
leading?: ReactNode;
|
|
12
|
+
leadingStyle?: StyleProp<ViewStyle>;
|
|
13
|
+
onPress?: () => void;
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
17
|
+
trailing?: ReactNode;
|
|
18
|
+
type?: CallItemType;
|
|
19
|
+
};
|
|
20
|
+
export declare function CallItem({ accessibilityLabel, containerStyle, detail, detailStyle, disabled, divider, leading, leadingStyle, onPress, style, title, titleStyle, trailing, type, }: CallItemProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=call-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-item.d.ts","sourceRoot":"","sources":["../../../../src/components/call-item/call-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,kBAAkB,EAClB,cAAc,EACd,MAAM,EACN,WAAW,EACX,QAAgB,EAChB,OAAc,EACd,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,QAAQ,EACR,IAAiB,GAClB,EAAE,aAAa,+BAwCf"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
+
export type CardShadowVariant = 'default' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info';
|
|
4
|
+
export type CardRadius = number | {
|
|
5
|
+
topLeft?: number;
|
|
6
|
+
topRight?: number;
|
|
7
|
+
bottomRight?: number;
|
|
8
|
+
bottomLeft?: number;
|
|
9
|
+
};
|
|
10
|
+
export interface CardProps extends Omit<ViewProps, 'children' | 'style'> {
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
containerClassName?: string;
|
|
15
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
contentClassName?: string;
|
|
17
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
18
|
+
radius?: CardRadius;
|
|
19
|
+
shadowColor?: string;
|
|
20
|
+
shadowVariant?: CardShadowVariant;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
}
|
|
23
|
+
type ViewSlotProps = PropsWithChildren<ViewProps & {
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
}>;
|
|
26
|
+
type TextSlotProps = PropsWithChildren<{
|
|
27
|
+
style?: StyleProp<TextStyle>;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function Card({ backgroundColor, children, contentStyle, containerStyle, radius, shadowColor, shadowVariant, style, ...props }: CardProps): import("react").JSX.Element;
|
|
30
|
+
export declare function CardHeader({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
31
|
+
export declare function CardTitle({ children, style }: TextSlotProps): import("react").JSX.Element;
|
|
32
|
+
export declare function CardDescription({ children, style }: TextSlotProps): import("react").JSX.Element;
|
|
33
|
+
export declare function CardAction({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
34
|
+
export declare function CardContent({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
35
|
+
export declare function CardFooter({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX,MAAM,MAAM,UAAU,GAClB,MAAM,GACN;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEN,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,KAAK,aAAa,GAAG,iBAAiB,CACpC,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAC7C,CAAC;AACF,KAAK,aAAa,GAAG,iBAAiB,CAAC;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAAC,CAAC;AAEzE,wBAAgB,IAAI,CAAC,EACnB,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,MAAM,EACN,WAAW,EACX,aAAyB,EACzB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,SAAS,+BA+BX;AAQD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOtE;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,+BAG3D;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,+BAGjE;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOtE;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOvE;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOtE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
import { type BadgeProps } from '../badge/badge.js';
|
|
4
|
+
export type ChatListItemState = 'default' | 'unread' | 'request';
|
|
5
|
+
export type ChatListItemProps = {
|
|
6
|
+
accessibilityLabel?: string;
|
|
7
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
8
|
+
delayLongPress?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
divider?: boolean;
|
|
11
|
+
leading?: ReactNode;
|
|
12
|
+
leadingStyle?: StyleProp<ViewStyle>;
|
|
13
|
+
message: ReactNode;
|
|
14
|
+
messageLeading?: ReactNode;
|
|
15
|
+
messageNumberOfLines?: number;
|
|
16
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
17
|
+
onLongPress?: () => void;
|
|
18
|
+
onPress?: () => void;
|
|
19
|
+
onSelectionChange?: (selected: boolean) => void;
|
|
20
|
+
selectable?: boolean;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
selectionAccessibilityLabel?: string;
|
|
23
|
+
state?: ChatListItemState;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
timestamp: ReactNode;
|
|
26
|
+
timestampNumberOfLines?: number;
|
|
27
|
+
timestampStyle?: StyleProp<TextStyle>;
|
|
28
|
+
title: ReactNode;
|
|
29
|
+
titleNumberOfLines?: number;
|
|
30
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
31
|
+
titleTrailing?: ReactNode;
|
|
32
|
+
trailing?: ReactNode;
|
|
33
|
+
unreadBadgeProps?: Omit<BadgeProps, 'children'>;
|
|
34
|
+
unreadCount?: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function ChatListItem({ accessibilityLabel, containerStyle, delayLongPress, disabled, divider, leading, leadingStyle, message, messageLeading, messageNumberOfLines, messageStyle, onLongPress, onPress, onSelectionChange, selectable, selected, selectionAccessibilityLabel, state, style, timestamp, timestampNumberOfLines, timestampStyle, title, titleNumberOfLines, titleStyle, titleTrailing, trailing, unreadBadgeProps, unreadCount, }: ChatListItemProps): import("react").JSX.Element;
|
|
37
|
+
//# sourceMappingURL=chat-list-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-list-item.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-list-item/chat-list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAKxD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,KAAK,EAAE,SAAS,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,QAAgB,EAChB,OAAc,EACd,OAAO,EACP,YAAY,EACZ,OAAO,EACP,cAAc,EACd,oBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,UAAkB,EAClB,QAAgB,EAChB,2BAA2B,EAC3B,KAAiB,EACjB,KAAK,EACL,SAAS,EACT,sBAA0B,EAC1B,cAAc,EACd,KAAK,EACL,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,WAAW,GACZ,EAAE,iBAAiB,+BAwFnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PressableProps, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
export type SelectionControlLabelPosition = 'left' | 'right';
|
|
3
|
+
export interface CheckboxProps extends Omit<PressableProps, 'children' | 'onPress' | 'style'> {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
labelPosition?: SelectionControlLabelPosition;
|
|
10
|
+
onValueChange?: (checked: boolean) => void;
|
|
11
|
+
radius?: number;
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
}
|
|
14
|
+
export declare function Checkbox({ accessibilityLabel, checked, description, disabled, error, indeterminate, label, labelPosition, onValueChange, radius, style, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,EACvB,kBAAkB,EAClB,OAAe,EACf,WAAW,EACX,QAAQ,EACR,KAAa,EACb,aAAqB,EACrB,KAAK,EACL,aAAuB,EACvB,aAAa,EACb,MAAU,EACV,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,+BAsDf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
+
type ViewSlotProps = PropsWithChildren<ViewProps & {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}>;
|
|
6
|
+
export type DialogProps = PropsWithChildren<{
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
open: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export type DialogHeaderProps = {
|
|
11
|
+
closeLabel?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
titleNumberOfLines?: number;
|
|
14
|
+
};
|
|
15
|
+
export type ConfirmDialogProps = {
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
cancelLabel?: string;
|
|
18
|
+
confirmLabel?: string;
|
|
19
|
+
description: string;
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
onCancel?: () => void;
|
|
22
|
+
onConfirm?: () => void;
|
|
23
|
+
onOpenChange: (open: boolean) => void;
|
|
24
|
+
open: boolean;
|
|
25
|
+
title: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function DialogProvider({ children }: PropsWithChildren): import("react").JSX.Element;
|
|
28
|
+
export declare function Dialog({ children, onOpenChange, open }: DialogProps): import("react").JSX.Element;
|
|
29
|
+
export declare function DialogHeader({ closeLabel, title, titleNumberOfLines, }: DialogHeaderProps): import("react").JSX.Element;
|
|
30
|
+
export declare function DialogBody({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
31
|
+
export declare function DialogFooter({ children, style, ...props }: ViewSlotProps): import("react").JSX.Element;
|
|
32
|
+
export declare function ConfirmDialog({ actions, cancelLabel, confirmLabel, description, icon, onCancel, onConfirm, onOpenChange, open, title, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAUtB,KAAK,aAAa,GAAG,iBAAiB,CACpC,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,CAC7C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;IAC1C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAO7D;AAED,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,WAAW,+BA4BnE;AAED,wBAAgB,YAAY,CAAC,EAC3B,UAA2B,EAC3B,KAAK,EACL,kBAAsB,GACvB,EAAE,iBAAiB,+BAmBnB;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOtE;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAOxE;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,WAAsB,EACtB,YAAwB,EACxB,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,KAAK,GACN,EAAE,kBAAkB,+BAyEpB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
2
|
+
export type DividerInset = 'none' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface DividerProps extends Omit<ViewProps, 'children' | 'style'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
inset?: DividerInset;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
thickness?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function Divider({ inset, style, thickness, ...props }: DividerProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../../src/components/divider/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAc,EACd,KAAK,EACL,SAAa,EACb,GAAG,KAAK,EACT,EAAE,YAAY,+BAkBd"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { CardShadowVariant } from '../card/card.js';
|
|
3
|
+
export type DropdownMenuItem = {
|
|
4
|
+
destructive?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
leading?: ReactNode;
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type DropdownMenuVariant = 'default' | 'emoji';
|
|
11
|
+
export type DropdownMenuAlign = 'start' | 'center' | 'end';
|
|
12
|
+
export type DropdownMenuSide = 'top' | 'bottom';
|
|
13
|
+
export type DropdownMenuShadowVariant = CardShadowVariant;
|
|
14
|
+
export type DropdownMenuProps = {
|
|
15
|
+
align?: DropdownMenuAlign;
|
|
16
|
+
children: ReactElement;
|
|
17
|
+
items: readonly DropdownMenuItem[];
|
|
18
|
+
shadow?: boolean;
|
|
19
|
+
shadowColor?: string;
|
|
20
|
+
shadowOffset?: number;
|
|
21
|
+
shadowVariant?: DropdownMenuShadowVariant;
|
|
22
|
+
side?: DropdownMenuSide;
|
|
23
|
+
sideOffset?: number;
|
|
24
|
+
variant?: DropdownMenuVariant;
|
|
25
|
+
};
|
|
26
|
+
export declare function DropdownMenu({ align, children, items, shadow, shadowColor, shadowOffset, shadowVariant, side, sideOffset, variant, }: DropdownMenuProps): import("react").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAc,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAChD,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAC1C,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,KAAe,EACf,QAAQ,EACR,KAAK,EACL,MAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAyB,EACzB,IAAe,EACf,UAAc,EACd,OAAmB,GACpB,EAAE,iBAAiB,+BAuGnB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DropdownProps } from './types.js';
|
|
2
|
+
export type { DropdownOption, DropdownOptionState, DropdownProps, DropdownType, MultiSelectDropdownProps, SingleDropdownProps, } from './types.js';
|
|
3
|
+
export declare function Dropdown<Item>(props: DropdownProps<Item>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAEV,aAAa,EAGd,MAAM,YAAS,CAAC;AAEjB,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,YAAS,CAAC;AAEjB,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,+BAMxD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type DropdownType = 'single' | 'searchable' | 'multi-select';
|
|
3
|
+
export type DropdownOption = {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
group?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
leading?: ReactNode;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
export type DropdownOptionState = {
|
|
11
|
+
selected: boolean;
|
|
12
|
+
};
|
|
13
|
+
type OptionsDataSource = {
|
|
14
|
+
items?: never;
|
|
15
|
+
options: readonly DropdownOption[];
|
|
16
|
+
};
|
|
17
|
+
type ItemsDataSource<Item> = {
|
|
18
|
+
getOptionDisabled?: (item: Item) => boolean;
|
|
19
|
+
getOptionGroup?: (item: Item) => string | undefined;
|
|
20
|
+
getOptionLabel: (item: Item) => string;
|
|
21
|
+
getOptionValue: (item: Item) => string;
|
|
22
|
+
items: readonly Item[];
|
|
23
|
+
options?: never;
|
|
24
|
+
};
|
|
25
|
+
type DropdownDataSource<Item> = OptionsDataSource | ItemsDataSource<Item>;
|
|
26
|
+
type SharedDropdownProps<Item> = DropdownDataSource<Item> & {
|
|
27
|
+
accessibilityLabel?: string;
|
|
28
|
+
emptyText?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
renderLeading?: (item: Item) => ReactNode;
|
|
31
|
+
renderOption?: (item: Item, state: DropdownOptionState) => ReactNode;
|
|
32
|
+
renderValue?: (items: readonly Item[]) => ReactNode;
|
|
33
|
+
showSelectedLeading?: boolean;
|
|
34
|
+
getOptionSearchText?: (item: Item) => string;
|
|
35
|
+
};
|
|
36
|
+
export type SingleDropdownProps<Item = DropdownOption> = SharedDropdownProps<Item> & {
|
|
37
|
+
defaultValue?: string;
|
|
38
|
+
onValueChange?: (value: string | undefined) => void;
|
|
39
|
+
type?: 'single' | 'searchable';
|
|
40
|
+
value?: string;
|
|
41
|
+
};
|
|
42
|
+
export type MultiSelectDropdownProps<Item = DropdownOption> = SharedDropdownProps<Item> & {
|
|
43
|
+
badgeRadius?: number;
|
|
44
|
+
checkboxRadius?: number;
|
|
45
|
+
defaultValue?: readonly string[];
|
|
46
|
+
onValueChange?: (value: readonly string[]) => void;
|
|
47
|
+
type: 'multi-select';
|
|
48
|
+
value?: readonly string[];
|
|
49
|
+
};
|
|
50
|
+
export type DropdownProps<Item = DropdownOption> = SingleDropdownProps<Item> | MultiSelectDropdownProps<Item>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;CACpC,CAAC;AAEF,KAAK,eAAe,CAAC,IAAI,IAAI;IAC3B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS,CAAC;IACpD,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACvC,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACvC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,KAAK,kBAAkB,CAAC,IAAI,IAAI,iBAAiB,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AAE1E,KAAK,mBAAmB,CAAC,IAAI,IAAI,kBAAkB,CAAC,IAAI,CAAC,GAAG;IAC1D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC;IAC1C,YAAY,CAAC,EAAE,CACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,mBAAmB,KACvB,SAAS,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,KAAK,SAAS,CAAC;IACpD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,IAAI,GAAG,cAAc,IAAI,mBAAmB,CAAC,IAAI,CAAC,GAAG;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IACpD,IAAI,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,IAAI,GAAG,cAAc,IAAI,mBAAmB,CAAC,IAAI,CAAC,GAAG;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,IAAI,GAAG,cAAc,IAC3C,mBAAmB,CAAC,IAAI,CAAC,GACzB,wBAAwB,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type PressableProps, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
export type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'ghost';
|
|
4
|
+
export type IconButtonRounded = 'sharp' | 'rounded';
|
|
5
|
+
export interface IconButtonProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
6
|
+
accessibilityLabel: string;
|
|
7
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
8
|
+
icon: ReactNode;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
11
|
+
radius?: number;
|
|
12
|
+
rounded?: IconButtonRounded;
|
|
13
|
+
shadow?: boolean;
|
|
14
|
+
shadowColor?: string;
|
|
15
|
+
size?: number;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
variant?: IconButtonVariant;
|
|
18
|
+
}
|
|
19
|
+
export declare function IconButton({ accessibilityLabel, containerStyle, disabled, icon, label, labelStyle, radius, rounded, shadow, shadowColor, size, style, variant, ...props }: IconButtonProps): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,wBAAgB,UAAU,CAAC,EACzB,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,UAAU,EACV,MAAM,EACN,OAAmB,EACnB,MAAa,EACb,WAAW,EACX,IAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,eAAe,+BAsEjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextInput } from 'react-native';
|
|
2
|
+
import { type InputProps } from './input.js';
|
|
3
|
+
export interface CurrencyInputProps extends Omit<InputProps, 'leadingAddon' | 'leadingAddonStyle' | 'trailingAddon' | 'trailingAddonStyle'> {
|
|
4
|
+
currencyCode?: string;
|
|
5
|
+
showCurrencyCode?: boolean;
|
|
6
|
+
showSymbol?: boolean;
|
|
7
|
+
symbol?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CurrencyInput: import("react").ForwardRefExoticComponent<CurrencyInputProps & import("react").RefAttributes<TextInput>>;
|
|
10
|
+
//# sourceMappingURL=currency-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/currency-input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAEjD,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACR,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,oBAAoB,CACvB;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,0GAoCzB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { TextInput, type StyleProp, type TextInputProps, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
export type InputVariant = 'default' | 'filled' | 'dashed';
|
|
4
|
+
export interface InputProps extends TextInputProps {
|
|
5
|
+
/**
|
|
6
|
+
* On iOS, changes the hard-shadow color to the primary token while focused.
|
|
7
|
+
* Android keeps its hard shadow static to avoid native TextInput focus loss.
|
|
8
|
+
*/
|
|
9
|
+
changeShadowOnFocus?: boolean;
|
|
10
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
11
|
+
error?: string;
|
|
12
|
+
fieldStyle?: StyleProp<ViewStyle>;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
leadingAddon?: ReactNode;
|
|
16
|
+
leadingAddonStyle?: StyleProp<ViewStyle>;
|
|
17
|
+
leadingIcon?: ReactNode;
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
style?: StyleProp<TextStyle>;
|
|
20
|
+
trailingAddon?: ReactNode;
|
|
21
|
+
trailingAddonStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
trailingIcon?: ReactNode;
|
|
23
|
+
variant?: InputVariant;
|
|
24
|
+
}
|
|
25
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<TextInput>>;
|
|
26
|
+
export interface TextAreaProps extends Omit<InputProps, 'fieldStyle' | 'multiline' | 'numberOfLines'> {
|
|
27
|
+
fieldStyle?: StyleProp<ViewStyle>;
|
|
28
|
+
height?: number;
|
|
29
|
+
numberOfLines?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<TextInput>>;
|
|
32
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAIL,SAAS,EAET,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,iBAAiB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,KAAK,kGA6JhB,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,WAAW,GAAG,eAAe,CAAC;IACtE,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,qGA2BnB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TextInput, type StyleProp, type TextInputProps, type TextStyle, type ViewStyle } from 'react-native';
|
|
2
|
+
export interface OtpInputProps extends Omit<TextInputProps, 'autoComplete' | 'defaultValue' | 'keyboardType' | 'maxLength' | 'onChangeText' | 'secureTextEntry' | 'style' | 'textContentType' | 'value'> {
|
|
3
|
+
cellCount?: number;
|
|
4
|
+
cellStyle?: StyleProp<ViewStyle>;
|
|
5
|
+
/**
|
|
6
|
+
* On iOS, changes the hard-shadow color to the primary token for the
|
|
7
|
+
* focused cell. Android keeps the hard shadow static to preserve focus.
|
|
8
|
+
*/
|
|
9
|
+
changeShadowOnFocus?: boolean;
|
|
10
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
16
|
+
mask?: boolean;
|
|
17
|
+
maskSymbol?: string;
|
|
18
|
+
onChangeText?: (value: string) => void;
|
|
19
|
+
onComplete?: (value: string) => void;
|
|
20
|
+
value?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const OtpInput: import("react").ForwardRefExoticComponent<OtpInputProps & import("react").RefAttributes<TextInput>>;
|
|
23
|
+
//# sourceMappingURL=otp-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp-input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/otp-input.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,SAAS,EAET,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAStB,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,cAAc,EACZ,cAAc,GACd,cAAc,GACd,cAAc,GACd,WAAW,GACX,cAAc,GACd,iBAAiB,GACjB,OAAO,GACP,iBAAiB,GACjB,OAAO,CACV;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,qGAkJnB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
import { type InputProps } from './input.js';
|
|
4
|
+
export interface PasswordInputProps extends Omit<InputProps, 'secureTextEntry' | 'trailingIcon' | 'trailingAddon' | 'trailingAddonStyle'> {
|
|
5
|
+
defaultVisible?: boolean;
|
|
6
|
+
hideLabel?: string;
|
|
7
|
+
onVisibilityChange?: (visible: boolean) => void;
|
|
8
|
+
showLabel?: string;
|
|
9
|
+
showVisibilityToggle?: boolean;
|
|
10
|
+
trailingIcon?: ReactNode;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const PasswordInput: import("react").ForwardRefExoticComponent<PasswordInputProps & import("react").RefAttributes<TextInput>>;
|
|
14
|
+
//# sourceMappingURL=password-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/password-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAA+B,SAAS,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAEjD,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACR,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,oBAAoB,CACvB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,0GA4DzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextInput } from 'react-native';
|
|
2
|
+
import { type InputProps } from './input.js';
|
|
3
|
+
export interface PhoneCountry {
|
|
4
|
+
dialCode: string;
|
|
5
|
+
isoCode: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PhoneInputProps extends Omit<InputProps, 'leadingAddon' | 'leadingAddonStyle'> {
|
|
8
|
+
country?: PhoneCountry;
|
|
9
|
+
countryAccessibilityLabel?: string;
|
|
10
|
+
onCountryPress?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const PhoneInput: import("react").ForwardRefExoticComponent<PhoneInputProps & import("react").RefAttributes<TextInput>>;
|
|
13
|
+
//# sourceMappingURL=phone-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/phone-input.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,SAAS,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,UAAU,EAAE,cAAc,GAAG,mBAAmB,CAAC;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAID,eAAO,MAAM,UAAU,uGAgDtB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
import { type InputProps } from './input.js';
|
|
4
|
+
export interface UrlInputProps extends Omit<InputProps, 'leadingAddon'> {
|
|
5
|
+
leadingAddon?: ReactNode;
|
|
6
|
+
protocol?: string;
|
|
7
|
+
showProtocol?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const UrlInput: import("react").ForwardRefExoticComponent<UrlInputProps & import("react").RefAttributes<TextInput>>;
|
|
10
|
+
//# sourceMappingURL=url-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/url-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC;IACrE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,qGA8BnB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
export type ListItemTrailingAction = {
|
|
4
|
+
accessibilityLabel: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon: ReactNode;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type ListItemProps = {
|
|
10
|
+
accessibilityLabel?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
containerClassName?: string;
|
|
13
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
divider?: boolean;
|
|
18
|
+
gap?: number;
|
|
19
|
+
leading?: ReactNode;
|
|
20
|
+
leadingStyle?: StyleProp<ViewStyle>;
|
|
21
|
+
onPress?: () => void;
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
title: ReactNode;
|
|
24
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
25
|
+
trailing?: ReactNode;
|
|
26
|
+
trailingStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
trailingAction?: ListItemTrailingAction;
|
|
28
|
+
};
|
|
29
|
+
export declare function ListItem({ accessibilityLabel, containerStyle, description, descriptionStyle, disabled, divider, gap, leading, leadingStyle, onPress, style, title, titleStyle, trailing, trailingStyle, trailingAction, }: ListItemProps): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=list-item.d.ts.map
|