@shallot-ui/native
Advanced tools
Comparing version 0.19.10 to 0.19.11
@@ -6,2 +6,3 @@ import * as styled_components from 'styled-components'; | ||
import { ColorProps, DisplayProps, ElevationProps, FlexProps, RadiusProps, SizingProps, UnitsAroundProps, VerticalAlignmentProps, HorizontalAlignmentProps, CasingProps, FontProps, FontSizeProps, LetterSpacingProps, LineHeightProps, TextAlignProps, UnderlineProps, UnitPaddingProps, BorderProps, TransitionProps } from '@shallot-ui/theme'; | ||
import { DefaultTheme } from 'styled-components/native'; | ||
@@ -104,2 +105,3 @@ interface BoxStyleProps extends ColorProps, DisplayProps, ElevationProps, FlexProps, RadiusProps, SizingProps, UnitsAroundProps { | ||
interface FormInputProps extends Omit<FormControlColumnProps, 'styles' | 'children'>, FormInputStyleProps, Omit<InputProps, 'as'> { | ||
placeholderColor?: keyof DefaultTheme['colors']; | ||
} | ||
@@ -106,0 +108,0 @@ |
@@ -353,2 +353,3 @@ "use strict"; | ||
var import_react = require("react"); | ||
var import_native5 = require("styled-components/native"); | ||
var import_core12 = require("@shallot-ui/core"); | ||
@@ -386,2 +387,3 @@ | ||
var BaseFormInput = (props) => { | ||
const theme = (0, import_native5.useTheme)(); | ||
const [focused, setFocused] = (0, import_react.useState)(false); | ||
@@ -406,3 +408,4 @@ const [populated, setPopulated] = (0, import_react.useState)(false); | ||
styles, | ||
valid | ||
valid, | ||
placeholderColor | ||
} = _a, rest = __objRest(_a, [ | ||
@@ -419,3 +422,4 @@ "onFocus", | ||
"styles", | ||
"valid" | ||
"valid", | ||
"placeholderColor" | ||
]); | ||
@@ -460,3 +464,4 @@ const handleFocus = (0, import_react.useCallback)((e) => { | ||
onChange: handleChange, | ||
editable: disabled | ||
editable: disabled, | ||
placeholderTextColor: placeholderColor && theme.colors[placeholderColor] | ||
}, inputStyles), rest) | ||
@@ -526,4 +531,4 @@ ) | ||
// src/components/Space/index.ts | ||
var import_native5 = __toESM(require("styled-components/native")); | ||
var Space = (0, import_native5.default)(Box)` | ||
var import_native6 = __toESM(require("styled-components/native")); | ||
var Space = (0, import_native6.default)(Box)` | ||
flex-grow: 1; | ||
@@ -530,0 +535,0 @@ `; |
{ | ||
"name": "@shallot-ui/native", | ||
"version": "0.19.10", | ||
"version": "0.19.11", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
23769
615