@rehagro/ui 1.0.43 → 1.0.44
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/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +17 -0
- package/dist/native.d.ts +17 -0
- package/dist/native.js +7 -1
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +7 -1
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/native.mjs
CHANGED
|
@@ -325,6 +325,7 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
325
325
|
wrapperStyle,
|
|
326
326
|
style,
|
|
327
327
|
borderColor,
|
|
328
|
+
borderWidth = "sm",
|
|
328
329
|
accessibilityLabel,
|
|
329
330
|
...rest
|
|
330
331
|
}, ref) {
|
|
@@ -362,13 +363,18 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
362
363
|
xl: theme.radiusXl ?? 32,
|
|
363
364
|
full: 9999
|
|
364
365
|
};
|
|
366
|
+
const borderWidthMap = {
|
|
367
|
+
sm: theme.borderWidthSm ?? 1,
|
|
368
|
+
md: theme.borderWidthMd ?? 2,
|
|
369
|
+
lg: theme.borderWidthLg ?? 3
|
|
370
|
+
};
|
|
365
371
|
const hasError = status === "error" || !!helperText;
|
|
366
372
|
const effectiveBorderColor = hasError ? theme.danger : focused ? theme.primary : borderColor ?? theme.border;
|
|
367
373
|
const containerStyle = {
|
|
368
374
|
height: heightMap[size],
|
|
369
375
|
paddingHorizontal: paddingMap2[size],
|
|
370
376
|
borderRadius: radiusMap2[radius],
|
|
371
|
-
borderWidth:
|
|
377
|
+
borderWidth: borderWidthMap[borderWidth],
|
|
372
378
|
borderColor: effectiveBorderColor,
|
|
373
379
|
backgroundColor: isDisabled ? theme.background : theme.surface,
|
|
374
380
|
flexDirection: "row",
|