@scripso-homepad/ui 0.4.4 → 0.4.6
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-66WR57JJ.js → chunk-Y7I7LA2K.js} +12 -3
- package/dist/chunk-Y7I7LA2K.js.map +1 -0
- package/dist/index.cjs +20 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +10 -1
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +0 -3
- package/src/theme/input.ts +10 -1
- package/src/theme/select.ts +10 -1
- package/dist/chunk-66WR57JJ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { colors, buttonTypography, spacing, fontSize, fontWeight, fonts, radii, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-
|
|
2
|
-
export { Input, Label, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray } from './chunk-
|
|
1
|
+
import { colors, buttonTypography, spacing, fontSize, fontWeight, fonts, radii, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-Y7I7LA2K.js';
|
|
2
|
+
export { Input, Label, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray } from './chunk-Y7I7LA2K.js';
|
|
3
3
|
import { createContext, useRef, useState, useEffect, useMemo, useLayoutEffect, useContext, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import { StyleSheet, Platform, TouchableOpacity, Text, View, Animated, Easing, Pressable, Modal, ScrollView, TextInput, Dimensions } from 'react-native';
|
|
5
5
|
import Svg3, { Path } from 'react-native-svg';
|
|
@@ -57,7 +57,6 @@ var sizeConfig = {
|
|
|
57
57
|
paddingBottom: 8,
|
|
58
58
|
paddingLeft: 24,
|
|
59
59
|
paddingHorizontalCentered: 24,
|
|
60
|
-
minHeight: 52,
|
|
61
60
|
text: buttonTypography.lg,
|
|
62
61
|
iconContainerSize: 36,
|
|
63
62
|
iconContainerRadius: 12,
|
|
@@ -71,7 +70,6 @@ var sizeConfig = {
|
|
|
71
70
|
paddingBottom: 8,
|
|
72
71
|
paddingLeft: 16,
|
|
73
72
|
paddingHorizontalCentered: 16,
|
|
74
|
-
minHeight: 48,
|
|
75
73
|
text: buttonTypography.sm,
|
|
76
74
|
iconContainerSize: 32,
|
|
77
75
|
iconContainerRadius: 8,
|
|
@@ -109,7 +107,6 @@ function Button({
|
|
|
109
107
|
{
|
|
110
108
|
borderRadius: metrics.borderRadius,
|
|
111
109
|
backgroundColor: preset.backgroundColor,
|
|
112
|
-
minHeight: metrics.minHeight,
|
|
113
110
|
paddingTop: metrics.paddingTop,
|
|
114
111
|
paddingBottom: metrics.paddingBottom,
|
|
115
112
|
paddingLeft: hasIcon ? metrics.paddingLeft : metrics.paddingHorizontalCentered,
|
|
@@ -265,7 +262,16 @@ function createOutlineStyle(ringColor) {
|
|
|
265
262
|
...Platform.OS !== "web" ? { overflow: "hidden" } : null
|
|
266
263
|
};
|
|
267
264
|
}
|
|
268
|
-
var defaultOutline =
|
|
265
|
+
var defaultOutline = {
|
|
266
|
+
borderRadius: radii.lg,
|
|
267
|
+
borderWidth: 0,
|
|
268
|
+
borderColor: colors.transparent,
|
|
269
|
+
padding: 0,
|
|
270
|
+
backgroundColor: colors.transparent,
|
|
271
|
+
width: "100%",
|
|
272
|
+
alignSelf: "stretch",
|
|
273
|
+
...Platform.OS !== "web" ? { overflow: "hidden" } : null
|
|
274
|
+
};
|
|
269
275
|
function getSelectFieldStyles(state) {
|
|
270
276
|
const containerBase = {
|
|
271
277
|
borderRadius: radii.lg,
|