@metamask/design-system-react-native 0.27.0 → 0.28.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
  3. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  4. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  5. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  6. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
  7. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  9. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  10. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
  11. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  12. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -2
  13. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  14. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  15. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  16. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -2
  17. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  18. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  19. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  20. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  21. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  22. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  23. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  24. package/dist/components/Content/Content.cjs +71 -0
  25. package/dist/components/Content/Content.cjs.map +1 -0
  26. package/dist/components/Content/Content.constants.cjs +9 -0
  27. package/dist/components/Content/Content.constants.cjs.map +1 -0
  28. package/dist/components/Content/Content.constants.d.cts +3 -0
  29. package/dist/components/Content/Content.constants.d.cts.map +1 -0
  30. package/dist/components/Content/Content.constants.d.mts +3 -0
  31. package/dist/components/Content/Content.constants.d.mts.map +1 -0
  32. package/dist/components/Content/Content.constants.mjs +6 -0
  33. package/dist/components/Content/Content.constants.mjs.map +1 -0
  34. package/dist/components/Content/Content.d.cts +4 -0
  35. package/dist/components/Content/Content.d.cts.map +1 -0
  36. package/dist/components/Content/Content.d.mts +4 -0
  37. package/dist/components/Content/Content.d.mts.map +1 -0
  38. package/dist/components/Content/Content.mjs +71 -0
  39. package/dist/components/Content/Content.mjs.map +1 -0
  40. package/dist/components/Content/Content.types.cjs +3 -0
  41. package/dist/components/Content/Content.types.cjs.map +1 -0
  42. package/dist/components/Content/Content.types.d.cts +31 -0
  43. package/dist/components/Content/Content.types.d.cts.map +1 -0
  44. package/dist/components/Content/Content.types.d.mts +31 -0
  45. package/dist/components/Content/Content.types.d.mts.map +1 -0
  46. package/dist/components/Content/Content.types.mjs +2 -0
  47. package/dist/components/Content/Content.types.mjs.map +1 -0
  48. package/dist/components/Content/index.cjs +8 -0
  49. package/dist/components/Content/index.cjs.map +1 -0
  50. package/dist/components/Content/index.d.cts +4 -0
  51. package/dist/components/Content/index.d.cts.map +1 -0
  52. package/dist/components/Content/index.d.mts +4 -0
  53. package/dist/components/Content/index.d.mts.map +1 -0
  54. package/dist/components/Content/index.mjs +3 -0
  55. package/dist/components/Content/index.mjs.map +1 -0
  56. package/dist/components/SectionHeader/SectionHeader.cjs +47 -24
  57. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  58. package/dist/components/SectionHeader/SectionHeader.d.cts +16 -13
  59. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
  60. package/dist/components/SectionHeader/SectionHeader.d.mts +16 -13
  61. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
  62. package/dist/components/SectionHeader/SectionHeader.mjs +48 -25
  63. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
  64. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
  65. package/dist/components/SectionHeader/SectionHeader.types.d.cts +16 -9
  66. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
  67. package/dist/components/SectionHeader/SectionHeader.types.d.mts +16 -9
  68. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
  69. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
  70. package/dist/components/TextArea/TextArea.cjs +3 -7
  71. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  72. package/dist/components/TextArea/TextArea.d.cts +158 -163
  73. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  74. package/dist/components/TextArea/TextArea.d.mts +158 -163
  75. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  76. package/dist/components/TextArea/TextArea.mjs +4 -8
  77. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  78. package/dist/components/TextArea/TextArea.types.cjs.map +1 -1
  79. package/dist/components/TextArea/TextArea.types.d.cts +12 -45
  80. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  81. package/dist/components/TextArea/TextArea.types.d.mts +12 -45
  82. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  83. package/dist/components/TextArea/TextArea.types.mjs.map +1 -1
  84. package/dist/components/index.cjs +6 -3
  85. package/dist/components/index.cjs.map +1 -1
  86. package/dist/components/index.d.cts +2 -0
  87. package/dist/components/index.d.cts.map +1 -1
  88. package/dist/components/index.d.mts +2 -0
  89. package/dist/components/index.d.mts.map +1 -1
  90. package/dist/components/index.mjs +1 -0
  91. package/dist/components/index.mjs.map +1 -1
  92. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.cjs.map +1 -1
  93. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +2 -2
  94. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  95. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +2 -2
  96. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  97. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.mjs.map +1 -1
  98. package/package.json +6 -6
@@ -1,13 +1,9 @@
1
1
  import type { SectionHeaderPropsShared } from "@metamask/design-system-shared";
2
- import type { ViewProps } from "react-native";
2
+ import type { PressableProps, ViewProps } from "react-native";
3
3
  import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
4
4
  import type { IconProps } from "../Icon/index.mjs";
5
5
  import type { TextProps } from "../Text/Text.types.mjs";
6
- /**
7
- * SectionHeader component props (React Native).
8
- * Extends {@link SectionHeaderPropsShared} with platform `Text` / `Icon` passthroughs, `twClassName`, and `View` props.
9
- */
10
- export type SectionHeaderProps = SectionHeaderPropsShared & {
6
+ type SectionHeaderPropsBase = SectionHeaderPropsShared & {
11
7
  /**
12
8
  * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
13
9
  */
@@ -19,14 +15,25 @@ export type SectionHeaderProps = SectionHeaderPropsShared & {
19
15
  /**
20
16
  * Optional prop to pass additional properties to the start icon.
21
17
  */
22
- startIconProps?: Partial<IconProps>;
18
+ startIconProps?: Omit<Partial<IconProps>, 'name'>;
23
19
  /**
24
20
  * Optional prop to pass additional properties to the end icon.
25
21
  */
26
- endIconProps?: Partial<IconProps>;
22
+ endIconProps?: Omit<Partial<IconProps>, 'name'>;
27
23
  /**
28
24
  * Optional Tailwind class name to apply to the outer row.
29
25
  */
30
26
  twClassName?: string;
31
- } & Omit<ViewProps, 'children'>;
27
+ };
28
+ /**
29
+ * SectionHeader component props (React Native).
30
+ * Extends {@link SectionHeaderPropsShared} with platform `Text` / `Icon` passthroughs, `twClassName`, and wrapper props.
31
+ * When `isInteractive` is `true`, the outer wrapper is a `Pressable`; otherwise it is a {@link BoxRow} with `ViewProps`.
32
+ */
33
+ export type SectionHeaderProps = (SectionHeaderPropsBase & {
34
+ isInteractive?: false;
35
+ } & Omit<ViewProps, 'children'>) | (SectionHeaderPropsBase & {
36
+ isInteractive: true;
37
+ } & Omit<PressableProps, 'children'>);
38
+ export {};
32
39
  //# sourceMappingURL=SectionHeader.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.types.d.mts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uCAAuC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"SectionHeader.types.d.mts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uCAAuC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB;AAG9D,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD,KAAK,sBAAsB,GAAG,wBAAwB,GAAG;IACvD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,CAAC,sBAAsB,GAAG;IACxB,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,GAChC,CAAC,sBAAsB,GAAG;IACxB,aAAa,EAAE,IAAI,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.types.mjs","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { SectionHeaderPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SectionHeader component props (React Native).\n * Extends {@link SectionHeaderPropsShared} with platform `Text` / `Icon` passthroughs, `twClassName`, and `View` props.\n */\nexport type SectionHeaderProps = SectionHeaderPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (SectionHeader sets those via `title`, `titleAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional prop to pass additional properties to the start icon.\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop to pass additional properties to the end icon.\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Optional Tailwind class name to apply to the outer row.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"SectionHeader.types.mjs","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { SectionHeaderPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps, ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text/Text.types';\n\ntype SectionHeaderPropsBase = SectionHeaderPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (SectionHeader sets those via `title`, `titleAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional prop to pass additional properties to the start icon.\n */\n startIconProps?: Omit<Partial<IconProps>, 'name'>;\n /**\n * Optional prop to pass additional properties to the end icon.\n */\n endIconProps?: Omit<Partial<IconProps>, 'name'>;\n /**\n * Optional Tailwind class name to apply to the outer row.\n */\n twClassName?: string;\n};\n\n/**\n * SectionHeader component props (React Native).\n * Extends {@link SectionHeaderPropsShared} with platform `Text` / `Icon` passthroughs, `twClassName`, and wrapper props.\n * When `isInteractive` is `true`, the outer wrapper is a `Pressable`; otherwise it is a {@link BoxRow} with `ViewProps`.\n */\nexport type SectionHeaderProps =\n | (SectionHeaderPropsBase & {\n isInteractive?: false;\n } & Omit<ViewProps, 'children'>)\n | (SectionHeaderPropsBase & {\n isInteractive: true;\n } & Omit<PressableProps, 'children'>);\n"]}
@@ -4,9 +4,8 @@ exports.TextArea = void 0;
4
4
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
5
5
  const react_1 = require("react");
6
6
  const react_native_1 = require("react-native");
7
- const Box_1 = require("../Box/index.cjs");
8
7
  const Input_1 = require("../Input/index.cjs");
9
- exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, textVariant, inputElement, style, twClassName, testID, ...props }, ref) => {
8
+ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, isDisabled = false, isError = false, textVariant, style, twClassName, testID, ...props }, ref) => {
10
9
  const [isFocused, setIsFocused] = (0, react_1.useState)(autoFocus);
11
10
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
12
11
  (0, react_1.useEffect)(() => {
@@ -14,7 +13,6 @@ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder,
14
13
  setIsFocused(false);
15
14
  }
16
15
  }, [isDisabled, isReadOnly]);
17
- const { twClassName: inputTwClassNameFromProps, ...inputRestWithoutTwClassName } = inputProps ?? {};
18
16
  const onBlurHandler = (0, react_1.useCallback)((e) => {
19
17
  if (!isDisabled) {
20
18
  setIsFocused(false);
@@ -27,12 +25,10 @@ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder,
27
25
  onFocus?.(e);
28
26
  }
29
27
  }, [isDisabled, onFocus]);
30
- return (<Box_1.Box ref={ref} {...props} testID={testID} accessible={false} style={[
28
+ return (<Input_1.Input ref={ref} {...props} testID={testID} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={textVariant} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled multiline textAlignVertical="top" style={[
31
29
  tw.style('rounded-lg', 'min-h-24', 'border', 'px-4', 'py-3', 'bg-muted', isDisabled && 'border-muted', !isDisabled && isError && 'border-error-default', !isDisabled && !isError && isFocused && 'border-default', !isDisabled && !isError && !isFocused && 'border-muted', isDisabled && 'opacity-50', twClassName),
32
30
  style,
33
- ]}>
34
- {inputElement || (<Input_1.Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={textVariant} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled multiline textAlignVertical="top" twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`}/>)}
35
- </Box_1.Box>);
31
+ ]}/>);
36
32
  });
37
33
  exports.TextArea.displayName = 'TextArea';
38
34
  //# sourceMappingURL=TextArea.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
1
+ {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;AAAA,qFAAmE;AACnE,iCAAqE;AACrE,+CAAyC;AAEzC,8CAAiC;AAKpB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,UAAU,EAAE;YAC5B,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CAAC,EACD,CAAC,UAAU,EAAE,MAAM,CAAC,CACrB,CAAC;IAEF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,CAAC,aAAK,CACJ,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { TextInput } from 'react-native';\n\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<TextInput, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n isDisabled = false,\n isError = false,\n textVariant,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Input\n ref={ref}\n {...props}\n testID={testID}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n />\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
@@ -1,170 +1,165 @@
1
- import { View } from "react-native";
1
+ import { TextInput } from "react-native";
2
2
  export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "isStateStylesDisabled"> & {
3
3
  isError?: boolean | undefined;
4
- inputElement?: import("react").ReactNode;
4
+ } & {
5
+ children?: import("react").ReactNode;
6
+ hitSlop?: number | import("react-native").Insets | null | undefined;
7
+ id?: string | undefined;
8
+ needsOffscreenAlphaCompositing?: boolean | undefined;
9
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
10
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
11
+ removeClippedSubviews?: boolean | undefined;
12
+ style?: import("react-native").StyleProp<import("react-native").TextStyle>;
13
+ testID?: string | undefined;
14
+ nativeID?: string | undefined;
15
+ collapsable?: boolean | undefined;
16
+ collapsableChildren?: boolean | undefined;
17
+ renderToHardwareTextureAndroid?: boolean | undefined;
18
+ focusable?: boolean | undefined;
19
+ tabIndex?: 0 | -1 | undefined;
20
+ shouldRasterizeIOS?: boolean | undefined;
21
+ isTVSelectable?: boolean | undefined;
22
+ hasTVPreferredFocus?: boolean | undefined;
23
+ tvParallaxShiftDistanceX?: number | undefined;
24
+ tvParallaxShiftDistanceY?: number | undefined;
25
+ tvParallaxTiltAngle?: number | undefined;
26
+ tvParallaxMagnification?: number | undefined;
27
+ onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
28
+ onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
29
+ onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
30
+ onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
31
+ onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
32
+ onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
33
+ onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
34
+ onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
35
+ onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
36
+ onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
37
+ onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
38
+ onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
39
+ onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
40
+ onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
41
+ onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
42
+ onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
43
+ onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
44
+ onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
45
+ onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
46
+ onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
47
+ onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
48
+ onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
49
+ onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
50
+ onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
51
+ onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
52
+ onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
53
+ onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
54
+ onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
55
+ onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
56
+ accessible?: boolean | undefined;
57
+ accessibilityActions?: readonly Readonly<{
58
+ name: string;
59
+ label?: string | undefined;
60
+ }>[] | undefined;
61
+ accessibilityLabel?: string | undefined;
62
+ 'aria-label'?: string | undefined;
63
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
64
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
65
+ 'aria-busy'?: boolean | undefined;
66
+ 'aria-checked'?: boolean | "mixed" | undefined;
67
+ 'aria-disabled'?: boolean | undefined;
68
+ 'aria-expanded'?: boolean | undefined;
69
+ 'aria-selected'?: boolean | undefined;
70
+ accessibilityHint?: string | undefined;
71
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
72
+ 'aria-valuemax'?: number | undefined;
73
+ 'aria-valuemin'?: number | undefined;
74
+ 'aria-valuenow'?: number | undefined;
75
+ 'aria-valuetext'?: string | undefined;
76
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
77
+ importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
78
+ 'aria-hidden'?: boolean | undefined;
79
+ 'aria-modal'?: boolean | undefined;
80
+ role?: import("react-native").Role | undefined;
81
+ accessibilityLabelledBy?: string | string[] | undefined;
82
+ 'aria-labelledby'?: string | undefined;
83
+ accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
84
+ 'aria-live'?: "polite" | "assertive" | "off" | undefined;
85
+ screenReaderFocusable?: boolean | undefined;
86
+ accessibilityElementsHidden?: boolean | undefined;
87
+ accessibilityViewIsModal?: boolean | undefined;
88
+ onAccessibilityEscape?: (() => void) | undefined;
89
+ onAccessibilityTap?: (() => void) | undefined;
90
+ onMagicTap?: (() => void) | undefined;
91
+ accessibilityIgnoresInvertColors?: boolean | undefined;
92
+ accessibilityLanguage?: string | undefined;
93
+ accessibilityShowsLargeContentViewer?: boolean | undefined;
94
+ accessibilityLargeContentTitle?: string | undefined;
95
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
96
+ twClassName?: string | undefined;
97
+ onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
98
+ onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
99
+ onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
100
+ allowFontScaling?: boolean | undefined;
101
+ numberOfLines?: number | undefined;
102
+ maxFontSizeMultiplier?: number | null | undefined;
103
+ lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
104
+ selectionColor?: import("react-native").ColorValue | undefined;
105
+ textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
106
+ textAlign?: "center" | "left" | "right" | undefined;
107
+ textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
108
+ verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
109
+ rejectResponderTermination?: boolean | null | undefined;
110
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
111
+ autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
112
+ autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
113
+ autoCorrect?: boolean | undefined;
114
+ blurOnSubmit?: boolean | undefined;
115
+ submitBehavior?: import("react-native").SubmitBehavior | undefined;
116
+ caretHidden?: boolean | undefined;
117
+ contextMenuHidden?: boolean | undefined;
118
+ keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
119
+ inputMode?: import("react-native").InputModeOptions | undefined;
120
+ maxLength?: number | undefined;
121
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
122
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
123
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
124
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
125
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
126
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
127
+ readOnly?: boolean | undefined;
128
+ returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
129
+ enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
130
+ secureTextEntry?: boolean | undefined;
131
+ selectTextOnFocus?: boolean | undefined;
132
+ selection?: {
133
+ start: number;
134
+ end?: number | undefined;
135
+ } | undefined;
136
+ inputAccessoryViewID?: string | undefined;
137
+ inputAccessoryViewButtonLabel?: string | undefined;
138
+ disableKeyboardShortcuts?: boolean | undefined;
139
+ clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
140
+ clearTextOnFocus?: boolean | undefined;
141
+ dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
142
+ enablesReturnKeyAutomatically?: boolean | undefined;
143
+ keyboardAppearance?: "default" | "light" | "dark" | undefined;
144
+ passwordRules?: string | null | undefined;
145
+ selectionState?: import("react-native").DocumentSelectionState | undefined;
146
+ spellCheck?: boolean | undefined;
147
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
148
+ scrollEnabled?: boolean | undefined;
149
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
150
+ smartInsertDelete?: boolean | undefined;
151
+ cursorColor?: import("react-native").ColorValue | null | undefined;
152
+ selectionHandleColor?: import("react-native").ColorValue | null | undefined;
153
+ importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
154
+ disableFullscreenUI?: boolean | undefined;
155
+ inlineImageLeft?: string | undefined;
156
+ inlineImagePadding?: number | undefined;
157
+ returnKeyLabel?: string | undefined;
158
+ underlineColorAndroid?: import("react-native").ColorValue | undefined;
159
+ showSoftInputOnFocus?: boolean | undefined;
5
160
  } & {
6
161
  onChangeText?: ((text: string) => void) | undefined;
7
162
  onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
8
163
  onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
9
- inputProps?: {
10
- children?: import("react").ReactNode;
11
- hitSlop?: number | import("react-native").Insets | null | undefined;
12
- id?: string | undefined;
13
- needsOffscreenAlphaCompositing?: boolean | undefined;
14
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
15
- pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
16
- removeClippedSubviews?: boolean | undefined;
17
- testID?: string | undefined;
18
- nativeID?: string | undefined;
19
- collapsable?: boolean | undefined;
20
- collapsableChildren?: boolean | undefined;
21
- renderToHardwareTextureAndroid?: boolean | undefined;
22
- focusable?: boolean | undefined;
23
- tabIndex?: 0 | -1 | undefined;
24
- shouldRasterizeIOS?: boolean | undefined;
25
- isTVSelectable?: boolean | undefined;
26
- hasTVPreferredFocus?: boolean | undefined;
27
- tvParallaxShiftDistanceX?: number | undefined;
28
- tvParallaxShiftDistanceY?: number | undefined;
29
- tvParallaxTiltAngle?: number | undefined;
30
- tvParallaxMagnification?: number | undefined;
31
- onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
32
- onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
33
- onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
34
- onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
35
- onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
36
- onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
37
- onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
38
- onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
39
- onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
40
- onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
41
- onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
42
- onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
43
- onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
44
- onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
45
- onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
46
- onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
47
- onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
48
- onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
49
- onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
50
- onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
51
- onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
52
- onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
53
- onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
54
- onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
55
- onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
56
- onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
57
- onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
58
- onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
59
- onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
60
- accessible?: boolean | undefined;
61
- accessibilityActions?: readonly Readonly<{
62
- name: string;
63
- label?: string | undefined;
64
- }>[] | undefined;
65
- accessibilityLabel?: string | undefined;
66
- 'aria-label'?: string | undefined;
67
- accessibilityRole?: import("react-native").AccessibilityRole | undefined;
68
- accessibilityState?: import("react-native").AccessibilityState | undefined;
69
- 'aria-busy'?: boolean | undefined;
70
- 'aria-checked'?: boolean | "mixed" | undefined;
71
- 'aria-disabled'?: boolean | undefined;
72
- 'aria-expanded'?: boolean | undefined;
73
- 'aria-selected'?: boolean | undefined;
74
- accessibilityHint?: string | undefined;
75
- accessibilityValue?: import("react-native").AccessibilityValue | undefined;
76
- 'aria-valuemax'?: number | undefined;
77
- 'aria-valuemin'?: number | undefined;
78
- 'aria-valuenow'?: number | undefined;
79
- 'aria-valuetext'?: string | undefined;
80
- onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
81
- importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
82
- 'aria-hidden'?: boolean | undefined;
83
- 'aria-modal'?: boolean | undefined;
84
- role?: import("react-native").Role | undefined;
85
- accessibilityLabelledBy?: string | string[] | undefined;
86
- 'aria-labelledby'?: string | undefined;
87
- accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
88
- 'aria-live'?: "polite" | "assertive" | "off" | undefined;
89
- screenReaderFocusable?: boolean | undefined;
90
- accessibilityElementsHidden?: boolean | undefined;
91
- accessibilityViewIsModal?: boolean | undefined;
92
- onAccessibilityEscape?: (() => void) | undefined;
93
- onAccessibilityTap?: (() => void) | undefined;
94
- onMagicTap?: (() => void) | undefined;
95
- accessibilityIgnoresInvertColors?: boolean | undefined;
96
- accessibilityLanguage?: string | undefined;
97
- accessibilityShowsLargeContentViewer?: boolean | undefined;
98
- accessibilityLargeContentTitle?: string | undefined;
99
- accessibilityRespondsToUserInteraction?: boolean | undefined;
100
- twClassName?: string | undefined;
101
- onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
102
- onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
- onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
104
- allowFontScaling?: boolean | undefined;
105
- numberOfLines?: number | undefined;
106
- maxFontSizeMultiplier?: number | null | undefined;
107
- lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
108
- selectionColor?: import("react-native").ColorValue | undefined;
109
- textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
110
- textAlign?: "center" | "left" | "right" | undefined;
111
- textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
112
- verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
113
- rejectResponderTermination?: boolean | null | undefined;
114
- onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
115
- autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
116
- autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
117
- autoCorrect?: boolean | undefined;
118
- blurOnSubmit?: boolean | undefined;
119
- submitBehavior?: import("react-native").SubmitBehavior | undefined;
120
- caretHidden?: boolean | undefined;
121
- contextMenuHidden?: boolean | undefined;
122
- keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
123
- inputMode?: import("react-native").InputModeOptions | undefined;
124
- maxLength?: number | undefined;
125
- onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
126
- onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
127
- onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
128
- onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
129
- onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
130
- onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
131
- readOnly?: boolean | undefined;
132
- returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
133
- enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
134
- secureTextEntry?: boolean | undefined;
135
- selectTextOnFocus?: boolean | undefined;
136
- selection?: {
137
- start: number;
138
- end?: number | undefined;
139
- } | undefined;
140
- inputAccessoryViewID?: string | undefined;
141
- inputAccessoryViewButtonLabel?: string | undefined;
142
- disableKeyboardShortcuts?: boolean | undefined;
143
- clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
144
- clearTextOnFocus?: boolean | undefined;
145
- dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
146
- enablesReturnKeyAutomatically?: boolean | undefined;
147
- keyboardAppearance?: "default" | "light" | "dark" | undefined;
148
- passwordRules?: string | null | undefined;
149
- selectionState?: import("react-native").DocumentSelectionState | undefined;
150
- spellCheck?: boolean | undefined;
151
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
152
- scrollEnabled?: boolean | undefined;
153
- lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
154
- smartInsertDelete?: boolean | undefined;
155
- cursorColor?: import("react-native").ColorValue | null | undefined;
156
- selectionHandleColor?: import("react-native").ColorValue | null | undefined;
157
- importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
158
- disableFullscreenUI?: boolean | undefined;
159
- inlineImageLeft?: string | undefined;
160
- inlineImagePadding?: number | undefined;
161
- returnKeyLabel?: string | undefined;
162
- underlineColorAndroid?: import("react-native").ColorValue | undefined;
163
- showSoftInputOnFocus?: boolean | undefined;
164
- } | undefined;
165
- inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
166
- twClassName?: string | undefined;
167
- style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
168
- testID?: string | undefined;
169
- } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
164
+ } & import("react").RefAttributes<TextInput>>;
170
165
  //# sourceMappingURL=TextArea.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,qBAAqB;AAOzC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAsFpB,CAAC"}