@sparrowengg/twigs-mobile 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/lib/commonjs/alert/helpers.js +1 -1
- package/lib/commonjs/avatar/avatar-group.js +1 -1
- package/lib/commonjs/avatar/avatar.js +1 -1
- package/lib/commonjs/bottom-sheet/bottom-sheet-header.js +1 -1
- package/lib/commonjs/dropdown/constants.js +1 -0
- package/lib/commonjs/dropdown/dropdown-context.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-content.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-item.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-label.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-separator.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-trigger.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu.js +1 -0
- package/lib/commonjs/dropdown/helpers.js +1 -0
- package/lib/commonjs/dropdown/index.js +1 -0
- package/lib/commonjs/dropdown/styles.js +1 -0
- package/lib/commonjs/dropdown/types.js +1 -0
- package/lib/commonjs/flex/flex.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/loader/circle-loader.js +1 -1
- package/lib/commonjs/loader/line-loader.js +1 -1
- package/lib/commonjs/modal/helpers.js +1 -1
- package/lib/commonjs/stepper/constants.js +1 -0
- package/lib/commonjs/stepper/helpers.js +1 -0
- package/lib/commonjs/stepper/icons.js +1 -0
- package/lib/commonjs/stepper/index.js +1 -0
- package/lib/commonjs/stepper/stepper-connector.js +1 -0
- package/lib/commonjs/stepper/stepper-context.js +1 -0
- package/lib/commonjs/stepper/stepper-item.js +1 -0
- package/lib/commonjs/stepper/stepper-trigger.js +1 -0
- package/lib/commonjs/stepper/stepper.js +1 -0
- package/lib/commonjs/stepper/styles.js +1 -0
- package/lib/commonjs/stepper/types.js +1 -0
- package/lib/commonjs/tabs/constants.js +1 -0
- package/lib/commonjs/tabs/helpers.js +1 -0
- package/lib/commonjs/tabs/index.js +1 -0
- package/lib/commonjs/tabs/styles.js +1 -0
- package/lib/commonjs/tabs/tabs-content.js +1 -0
- package/lib/commonjs/tabs/tabs-context.js +1 -0
- package/lib/commonjs/tabs/tabs-list.js +1 -0
- package/lib/commonjs/tabs/tabs-trigger.js +1 -0
- package/lib/commonjs/tabs/tabs.js +1 -0
- package/lib/commonjs/tabs/types.js +1 -0
- package/lib/commonjs/text/constants.js +1 -0
- package/lib/commonjs/text/helpers.js +1 -0
- package/lib/commonjs/text/text.js +1 -1
- package/lib/commonjs/text-area/constants.js +1 -0
- package/lib/commonjs/text-area/index.js +1 -0
- package/lib/commonjs/text-area/styles.js +1 -0
- package/lib/commonjs/text-area/text-area.js +1 -0
- package/lib/commonjs/text-area/types.js +1 -0
- package/lib/commonjs/text-input/constants.js +1 -1
- package/lib/commonjs/text-input/styles.js +1 -1
- package/lib/commonjs/text-input/text-input.js +1 -1
- package/lib/commonjs/toast/helpers.js +1 -1
- package/lib/commonjs/toast/toast-item.js +1 -1
- package/lib/commonjs/tooltip/tooltip.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/module/alert/helpers.js +1 -1
- package/lib/module/avatar/avatar-group.js +1 -1
- package/lib/module/avatar/avatar.js +1 -1
- package/lib/module/bottom-sheet/bottom-sheet-header.js +1 -1
- package/lib/module/dropdown/constants.js +1 -0
- package/lib/module/dropdown/dropdown-context.js +1 -0
- package/lib/module/dropdown/dropdown-menu-content.js +1 -0
- package/lib/module/dropdown/dropdown-menu-item.js +1 -0
- package/lib/module/dropdown/dropdown-menu-label.js +1 -0
- package/lib/module/dropdown/dropdown-menu-separator.js +1 -0
- package/lib/module/dropdown/dropdown-menu-trigger.js +1 -0
- package/lib/module/dropdown/dropdown-menu.js +1 -0
- package/lib/module/dropdown/helpers.js +1 -0
- package/lib/module/dropdown/index.js +1 -0
- package/lib/module/dropdown/styles.js +1 -0
- package/lib/module/dropdown/types.js +1 -0
- package/lib/module/flex/flex.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/loader/circle-loader.js +1 -1
- package/lib/module/loader/line-loader.js +1 -1
- package/lib/module/modal/helpers.js +1 -1
- package/lib/module/stepper/constants.js +1 -0
- package/lib/module/stepper/helpers.js +1 -0
- package/lib/module/stepper/icons.js +1 -0
- package/lib/module/stepper/index.js +1 -0
- package/lib/module/stepper/stepper-connector.js +1 -0
- package/lib/module/stepper/stepper-context.js +1 -0
- package/lib/module/stepper/stepper-item.js +1 -0
- package/lib/module/stepper/stepper-trigger.js +1 -0
- package/lib/module/stepper/stepper.js +1 -0
- package/lib/module/stepper/styles.js +1 -0
- package/lib/module/stepper/types.js +1 -0
- package/lib/module/tabs/constants.js +1 -0
- package/lib/module/tabs/helpers.js +1 -0
- package/lib/module/tabs/index.js +1 -0
- package/lib/module/tabs/styles.js +1 -0
- package/lib/module/tabs/tabs-content.js +1 -0
- package/lib/module/tabs/tabs-context.js +1 -0
- package/lib/module/tabs/tabs-list.js +1 -0
- package/lib/module/tabs/tabs-trigger.js +1 -0
- package/lib/module/tabs/tabs.js +1 -0
- package/lib/module/tabs/types.js +1 -0
- package/lib/module/text/constants.js +1 -0
- package/lib/module/text/helpers.js +1 -0
- package/lib/module/text/text.js +1 -1
- package/lib/module/text-area/constants.js +1 -0
- package/lib/module/text-area/index.js +1 -0
- package/lib/module/text-area/styles.js +1 -0
- package/lib/module/text-area/text-area.js +1 -0
- package/lib/module/text-area/types.js +1 -0
- package/lib/module/text-input/constants.js +1 -1
- package/lib/module/text-input/styles.js +1 -1
- package/lib/module/text-input/text-input.js +1 -1
- package/lib/module/toast/helpers.js +1 -1
- package/lib/module/toast/toast-item.js +1 -1
- package/lib/module/tooltip/tooltip.js +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/typescript/dropdown/constants.d.ts +23 -0
- package/lib/typescript/dropdown/dropdown-context.d.ts +18 -0
- package/lib/typescript/dropdown/dropdown-menu-content.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-item.d.ts +5 -0
- package/lib/typescript/dropdown/dropdown-menu-label.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-separator.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-trigger.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu.d.ts +5 -0
- package/lib/typescript/dropdown/helpers.d.ts +11 -0
- package/lib/typescript/dropdown/index.d.ts +8 -0
- package/lib/typescript/dropdown/styles.d.ts +32 -0
- package/lib/typescript/dropdown/types.d.ts +54 -0
- package/lib/typescript/index.d.ts +8 -0
- package/lib/typescript/modal/types.d.ts +0 -2
- package/lib/typescript/separator/types.d.ts +0 -4
- package/lib/typescript/stepper/constants.d.ts +23 -0
- package/lib/typescript/stepper/helpers.d.ts +10 -0
- package/lib/typescript/stepper/icons.d.ts +8 -0
- package/lib/typescript/stepper/index.d.ts +5 -0
- package/lib/typescript/stepper/stepper-connector.d.ts +3 -0
- package/lib/typescript/stepper/stepper-context.d.ts +12 -0
- package/lib/typescript/stepper/stepper-item.d.ts +6 -0
- package/lib/typescript/stepper/stepper-trigger.d.ts +14 -0
- package/lib/typescript/stepper/stepper.d.ts +6 -0
- package/lib/typescript/stepper/styles.d.ts +51 -0
- package/lib/typescript/stepper/types.d.ts +25 -0
- package/lib/typescript/switch/types.d.ts +8 -2
- package/lib/typescript/tabs/constants.d.ts +18 -0
- package/lib/typescript/tabs/helpers.d.ts +13 -0
- package/lib/typescript/tabs/index.d.ts +6 -0
- package/lib/typescript/tabs/styles.d.ts +39 -0
- package/lib/typescript/tabs/tabs-content.d.ts +6 -0
- package/lib/typescript/tabs/tabs-context.d.ts +23 -0
- package/lib/typescript/tabs/tabs-list.d.ts +6 -0
- package/lib/typescript/tabs/tabs-trigger.d.ts +5 -0
- package/lib/typescript/tabs/tabs.d.ts +6 -0
- package/lib/typescript/tabs/types.d.ts +43 -0
- package/lib/typescript/text/constants.d.ts +2 -0
- package/lib/typescript/text/helpers.d.ts +10 -0
- package/lib/typescript/text/types.d.ts +12 -0
- package/lib/typescript/text-area/constants.d.ts +24 -0
- package/lib/typescript/text-area/index.d.ts +3 -0
- package/lib/typescript/text-area/styles.d.ts +37 -0
- package/lib/typescript/text-area/text-area.d.ts +6 -0
- package/lib/typescript/text-area/types.d.ts +37 -0
- package/lib/typescript/text-input/constants.d.ts +15 -2
- package/lib/typescript/text-input/styles.d.ts +20 -34
- package/lib/typescript/text-input/text-input.d.ts +1 -1
- package/lib/typescript/text-input/types.d.ts +22 -41
- package/lib/typescript/toast/toast-content.d.ts +1 -1
- package/lib/typescript/utils/index.d.ts +7 -0
- package/package.json +3 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { TextInputProps as RNTextInputProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type TextAreaSize = 'lg' | 'xl';
|
|
5
|
+
export type TextAreaVariant = 'default' | 'filled';
|
|
6
|
+
export interface TextAreaProps extends Omit<RNTextInputProps, 'style' | 'multiline'>, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Size preset controlling font size, border radius, and padding. @default 'lg' */
|
|
8
|
+
size?: TextAreaSize;
|
|
9
|
+
/** Visual variant. @default 'default' */
|
|
10
|
+
variant?: TextAreaVariant;
|
|
11
|
+
/** Number of visible text lines. Sets the initial height. @default 3 */
|
|
12
|
+
rows?: number;
|
|
13
|
+
/** Maximum number of rows before scrolling when autoGrow is enabled. */
|
|
14
|
+
maxRows?: number;
|
|
15
|
+
/** Whether the textarea automatically grows with content. @default true */
|
|
16
|
+
autoGrow?: boolean;
|
|
17
|
+
/** Whether the input is disabled. @default false */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Error message shown below the textarea. When present, error border styling is applied. */
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
/** Label text rendered above the textarea. */
|
|
22
|
+
label?: string;
|
|
23
|
+
/** Helper text rendered below the textarea (hidden when errorMessage is present). */
|
|
24
|
+
helperText?: string;
|
|
25
|
+
/** Show character count next to the label. Requires `maxLength` to be set. @default false */
|
|
26
|
+
showCount?: boolean;
|
|
27
|
+
/** Show a required indicator next to the label. Pass `true` for default "*" or a custom ReactElement. @default false */
|
|
28
|
+
requiredIndicator?: boolean | ReactElement;
|
|
29
|
+
/** Custom renderer for the character counter. Overrides the default `{length}/{maxLength}` display. */
|
|
30
|
+
renderCounter?: (info: {
|
|
31
|
+
length: number;
|
|
32
|
+
maxLength: number;
|
|
33
|
+
}) => ReactNode;
|
|
34
|
+
/** Set to `true` when this textarea is rendered inside a BottomSheet. Swaps the underlying input to BottomSheetTextInput for proper keyboard handling. @default false */
|
|
35
|
+
insideBottomSheet?: boolean;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import type { TextInputSize } from './types';
|
|
2
2
|
export interface TextInputSizeConfig {
|
|
3
|
+
/** Input field height in dp. */
|
|
3
4
|
height: number;
|
|
5
|
+
/** Border radius in dp. */
|
|
4
6
|
borderRadius: number;
|
|
7
|
+
/** Placeholder / input text font size in dp. */
|
|
5
8
|
fontSize: number;
|
|
9
|
+
/** Horizontal padding inside the input in dp. */
|
|
6
10
|
paddingHorizontal: number;
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
/** Font size for the label text above the input. */
|
|
12
|
+
labelFontSize: number;
|
|
13
|
+
/** Line height for label text. */
|
|
14
|
+
labelLineHeight: number;
|
|
15
|
+
/** Letter spacing for label text. */
|
|
16
|
+
labelLetterSpacing: number;
|
|
17
|
+
/** Line height for placeholder / input text. */
|
|
18
|
+
inputLineHeight: number;
|
|
19
|
+
/** Icon width & height in dp. */
|
|
9
20
|
iconSize: number;
|
|
21
|
+
/** Gap between icon and text inside the input. */
|
|
22
|
+
iconTextGap: number;
|
|
10
23
|
}
|
|
11
24
|
/** Resolved size config for a given text-input size. */
|
|
12
25
|
export declare const getSizeConfig: (size: TextInputSize) => TextInputSizeConfig;
|
|
@@ -1,57 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
/** Static layout styles — no theme colors here. Theme-dependent styles go in helpers or component. */
|
|
2
|
+
export declare const styles: {
|
|
3
3
|
container: {
|
|
4
4
|
position: "relative";
|
|
5
5
|
width: "100%";
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
fullWidth: {
|
|
8
|
+
width: "100%";
|
|
9
9
|
};
|
|
10
10
|
inputWrapper: {
|
|
11
11
|
position: "relative";
|
|
12
12
|
width: "100%";
|
|
13
13
|
borderWidth: number;
|
|
14
14
|
borderStyle: "solid";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
opacity: number;
|
|
15
|
+
flexDirection: "row";
|
|
16
|
+
alignItems: "center";
|
|
19
17
|
};
|
|
20
18
|
textInput: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
fontFamily?: string | undefined | undefined;
|
|
25
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
19
|
+
outlineStyle?: string | undefined;
|
|
20
|
+
outlineWidth?: number | undefined;
|
|
21
|
+
outlineColor?: string | undefined;
|
|
26
22
|
flex: number;
|
|
27
23
|
margin: number;
|
|
28
24
|
padding: number;
|
|
29
|
-
|
|
25
|
+
borderWidth: number;
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
textAlignVertical: "center";
|
|
30
28
|
};
|
|
31
29
|
iconContainer: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
zIndex: number;
|
|
35
|
-
};
|
|
36
|
-
iconContainerLeft: {
|
|
37
|
-
left: number;
|
|
38
|
-
};
|
|
39
|
-
iconContainerLeftElement: {
|
|
40
|
-
left: number;
|
|
41
|
-
};
|
|
42
|
-
iconContainerRight: {
|
|
43
|
-
right: number;
|
|
44
|
-
};
|
|
45
|
-
iconContainerRightElement: {
|
|
46
|
-
right: number;
|
|
30
|
+
justifyContent: "center";
|
|
31
|
+
alignItems: "center";
|
|
47
32
|
};
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
labelRow: {
|
|
34
|
+
flexDirection: "row";
|
|
35
|
+
justifyContent: "space-between";
|
|
50
36
|
alignItems: "center";
|
|
51
|
-
justifyContent: "center";
|
|
52
37
|
};
|
|
53
|
-
|
|
54
|
-
|
|
38
|
+
labelWithIndicator: {
|
|
39
|
+
flexDirection: "row";
|
|
40
|
+
alignItems: "center";
|
|
55
41
|
};
|
|
56
42
|
};
|
|
57
43
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextInput as RNTextInput } from 'react-native';
|
|
3
3
|
import type { TextInputProps } from './types';
|
|
4
|
-
/** Themed text input with size/variant presets, icon slots, error state, and
|
|
4
|
+
/** Themed text input with size/variant presets, icon slots, label, error state, and helper text. */
|
|
5
5
|
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<RNTextInput>>;
|
|
6
6
|
//# sourceMappingURL=text-input.d.ts.map
|
|
@@ -1,57 +1,38 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type { TextInputProps as RNTextInputProps
|
|
3
|
-
import type {
|
|
4
|
-
export type TextInputSize = '
|
|
2
|
+
import type { TextInputProps as RNTextInputProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type TextInputSize = 'lg' | 'xl';
|
|
5
5
|
export type TextInputVariant = 'default' | 'filled';
|
|
6
|
-
export interface TextInputProps extends
|
|
7
|
-
/** Size preset controlling height, font size, and icon dimensions. @default '
|
|
6
|
+
export interface TextInputProps extends Omit<RNTextInputProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Size preset controlling height, font size, and icon dimensions. @default 'lg' */
|
|
8
8
|
size?: TextInputSize;
|
|
9
9
|
/** Visual variant. @default 'default' */
|
|
10
10
|
variant?: TextInputVariant;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
defaultValue?: string;
|
|
14
|
-
onChangeText?: (text: string) => void;
|
|
15
11
|
/** Icon rendered inside the input on the left. */
|
|
16
12
|
leftIcon?: ReactElement;
|
|
17
|
-
/** Icon rendered inside the input on the right.
|
|
13
|
+
/** Icon rendered inside the input on the right. */
|
|
18
14
|
rightIcon?: ReactElement;
|
|
19
15
|
/** Arbitrary element rendered on the right (outside the icon slot). */
|
|
20
16
|
rightElement?: ReactElement;
|
|
21
17
|
/** Arbitrary element rendered on the left (outside the icon slot). */
|
|
22
18
|
leftElement?: ReactElement;
|
|
23
19
|
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
errorBorder?: boolean;
|
|
26
|
-
placeholderTextColor?: string;
|
|
27
|
-
cursorColor?: string;
|
|
28
|
-
secureTextEntry?: boolean;
|
|
29
|
-
/** Controlled password visibility state — pair with `setShowPassword`. */
|
|
30
|
-
showPassword?: boolean;
|
|
31
|
-
/** Toggle callback for password visibility. */
|
|
32
|
-
setShowPassword?: (show: boolean) => void;
|
|
33
|
-
/** Style overrides applied to the inner RNTextInput. */
|
|
34
|
-
inputStyle?: TextStyle;
|
|
35
|
-
readOnly?: boolean;
|
|
36
|
-
autoCapitalize?: RNTextInputProps['autoCapitalize'];
|
|
37
|
-
autoCorrect?: RNTextInputProps['autoCorrect'];
|
|
38
|
-
autoFocus?: RNTextInputProps['autoFocus'];
|
|
39
|
-
blurOnSubmit?: RNTextInputProps['blurOnSubmit'];
|
|
40
|
-
editable?: RNTextInputProps['editable'];
|
|
41
|
-
keyboardType?: RNTextInputProps['keyboardType'];
|
|
42
|
-
maxLength?: RNTextInputProps['maxLength'];
|
|
43
|
-
multiline?: RNTextInputProps['multiline'];
|
|
44
|
-
numberOfLines?: RNTextInputProps['numberOfLines'];
|
|
45
|
-
onBlur?: RNTextInputProps['onBlur'];
|
|
46
|
-
onFocus?: RNTextInputProps['onFocus'];
|
|
47
|
-
onSubmitEditing?: RNTextInputProps['onSubmitEditing'];
|
|
48
|
-
returnKeyType?: RNTextInputProps['returnKeyType'];
|
|
49
|
-
textContentType?: RNTextInputProps['textContentType'];
|
|
50
|
-
/** Content rendered below the input (e.g. helper text). */
|
|
51
|
-
children?: ReactNode;
|
|
52
|
-
/** Error message shown below the input with `accessibilityRole="alert"`. */
|
|
20
|
+
/** Error message shown below the input. When present, error border styling is applied automatically. */
|
|
53
21
|
errorMessage?: string;
|
|
54
|
-
|
|
55
|
-
|
|
22
|
+
/** Label text rendered above the input. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Helper text rendered below the input (hidden when errorMessage is present). */
|
|
25
|
+
helperText?: string;
|
|
26
|
+
/** Show character count next to the label. Requires `maxLength` to be set. @default false */
|
|
27
|
+
showCount?: boolean;
|
|
28
|
+
/** Show a required indicator next to the label. Pass `true` for default "*" or a custom ReactElement. @default false */
|
|
29
|
+
requiredIndicator?: boolean | ReactElement;
|
|
30
|
+
/** Custom renderer for the character counter. Overrides the default `{length}/{maxLength}` display. */
|
|
31
|
+
renderCounter?: (info: {
|
|
32
|
+
length: number;
|
|
33
|
+
maxLength: number;
|
|
34
|
+
}) => ReactNode;
|
|
35
|
+
/** Set to `true` when this input is rendered inside a BottomSheet. Swaps the underlying input to BottomSheetTextInput for proper keyboard handling. @default false */
|
|
36
|
+
insideBottomSheet?: boolean;
|
|
56
37
|
}
|
|
57
38
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -4,5 +4,5 @@ import type { ToastContentProps } from './types';
|
|
|
4
4
|
* Visual content renderer for a single toast. Consumed by ToastItem.
|
|
5
5
|
* Not exported from the public API — consumers interact via toast() and ToastProvider.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ToastContent: ({ title, description, variant: variantProp, icon, action }: ToastContentProps) => React.JSX.Element;
|
|
7
|
+
export declare const ToastContent: ({ title, description, variant: variantProp, icon, action, }: ToastContentProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=toast-content.d.ts.map
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { AccessibilityRole, ViewProps, ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
2
3
|
import type { AnimatedProps } from 'react-native-reanimated';
|
|
3
4
|
/** @see https://reactnative.dev/docs/accessibility */
|
|
4
5
|
export interface BaseAccessibilityProps {
|
|
6
|
+
/**
|
|
7
|
+
* Used to locate a component in end-to-end tests.
|
|
8
|
+
* @see https://reactnative.dev/docs/view#testid
|
|
9
|
+
*/
|
|
10
|
+
testID?: string;
|
|
5
11
|
accessible?: boolean;
|
|
6
12
|
accessibilityRole?: AccessibilityRole;
|
|
7
13
|
accessibilityLabel?: string;
|
|
@@ -87,5 +93,6 @@ export declare const colorOpacity: (color: string, opacity: number) => string;
|
|
|
87
93
|
* name so the property is omitted to avoid Android rendering issues.
|
|
88
94
|
*/
|
|
89
95
|
export declare const createTextStyle: (fontFamily: string, fontWeight?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "normal" | "bold") => Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
96
|
+
export declare function getBottomSheetTextInput(): typeof RNTextInput;
|
|
90
97
|
export {};
|
|
91
98
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparrowengg/twigs-mobile",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Twigs React Native component library",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"release:dry": "release-it --dry-run"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
|
-
"registry": "https://registry.npmjs.org/"
|
|
48
|
+
"registry": "https://registry.npmjs.org/",
|
|
49
|
+
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"keywords": [
|
|
51
52
|
"react-native",
|