@scripso-homepad/ui 0.4.19 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-THZ3HYMF.js → chunk-KJYQA5OY.js} +59 -21
- package/dist/chunk-KJYQA5OY.js.map +1 -0
- package/dist/index.cjs +58 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +57 -19
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Input.tsx +15 -3
- package/src/components/PhoneInput.tsx +1 -0
- package/src/components/Select.tsx +2 -1
- package/src/theme/input.ts +48 -17
- package/dist/chunk-THZ3HYMF.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -48,7 +48,7 @@ interface InputProps extends TextInputProps {
|
|
|
48
48
|
/** When `secureTextEntry` is set, show a toggleable eye icon. Pass `false` to disable. */
|
|
49
49
|
showPasswordToggle?: boolean;
|
|
50
50
|
}
|
|
51
|
-
declare function Input({ label, leftIcon, rightIcon, error, invalid, hint, containerStyle, style, className, fieldClassName, fieldStyle, labelClassName, labelStyles, inputClassName, errorClassName, hintClassName, editable, secureTextEntry, showPasswordToggle, onFocus, onBlur, onChangeText, keyboardType, multiline, textAlignVertical, ...props }: InputProps): react.JSX.Element;
|
|
51
|
+
declare function Input({ label, leftIcon, rightIcon, error, invalid, hint, containerStyle, style, className, fieldClassName, fieldStyle, labelClassName, labelStyles, inputClassName, errorClassName, hintClassName, editable, secureTextEntry, showPasswordToggle, onFocus, onBlur, onChangeText, keyboardType, multiline, textAlign, textAlignVertical, ...props }: InputProps): react.JSX.Element;
|
|
52
52
|
|
|
53
53
|
type SelectOption = {
|
|
54
54
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ interface InputProps extends TextInputProps {
|
|
|
48
48
|
/** When `secureTextEntry` is set, show a toggleable eye icon. Pass `false` to disable. */
|
|
49
49
|
showPasswordToggle?: boolean;
|
|
50
50
|
}
|
|
51
|
-
declare function Input({ label, leftIcon, rightIcon, error, invalid, hint, containerStyle, style, className, fieldClassName, fieldStyle, labelClassName, labelStyles, inputClassName, errorClassName, hintClassName, editable, secureTextEntry, showPasswordToggle, onFocus, onBlur, onChangeText, keyboardType, multiline, textAlignVertical, ...props }: InputProps): react.JSX.Element;
|
|
51
|
+
declare function Input({ label, leftIcon, rightIcon, error, invalid, hint, containerStyle, style, className, fieldClassName, fieldStyle, labelClassName, labelStyles, inputClassName, errorClassName, hintClassName, editable, secureTextEntry, showPasswordToggle, onFocus, onBlur, onChangeText, keyboardType, multiline, textAlign, textAlignVertical, ...props }: InputProps): react.JSX.Element;
|
|
52
52
|
|
|
53
53
|
type SelectOption = {
|
|
54
54
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-
|
|
2
|
-
export { Button, Input, Label, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-
|
|
1
|
+
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-KJYQA5OY.js';
|
|
2
|
+
export { Button, Input, Label, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-KJYQA5OY.js';
|
|
3
3
|
import { createContext, useRef, useState, useMemo, useEffect, useLayoutEffect, useContext, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import { Platform, StyleSheet, Animated, Easing, View, Pressable, Text, Modal, ScrollView, TextInput, Dimensions } from 'react-native';
|
|
5
5
|
import Svg2, { Path } from 'react-native-svg';
|
|
@@ -587,7 +587,6 @@ function Select({
|
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
589
|
if (selectedValues.includes(nextValue)) {
|
|
590
|
-
onValueChange?.("");
|
|
591
590
|
closeMenu();
|
|
592
591
|
return;
|
|
593
592
|
}
|
|
@@ -1172,6 +1171,7 @@ function PhoneInput({
|
|
|
1172
1171
|
View,
|
|
1173
1172
|
{
|
|
1174
1173
|
style: [
|
|
1174
|
+
inputFieldMetrics.containerBase,
|
|
1175
1175
|
inputFieldMetrics.container,
|
|
1176
1176
|
phoneFieldStyles.container,
|
|
1177
1177
|
styles3.phoneField
|