react-native-better-html 1.0.14 → 1.0.16

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/index.ts
2
2
  import {
3
- useTheme as useTheme10,
3
+ useTheme as useTheme11,
4
4
  useLoader as useLoader2,
5
5
  useLoaderControls,
6
6
  countries,
@@ -35,7 +35,18 @@ var appConfig = {};
35
35
  var theme = {};
36
36
 
37
37
  // src/constants/icons.ts
38
- var icons = {};
38
+ var icons = {
39
+ magnifyingGlass: {
40
+ width: 512,
41
+ height: 512,
42
+ paths: [
43
+ {
44
+ d: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z",
45
+ type: "fill"
46
+ }
47
+ ]
48
+ }
49
+ };
39
50
 
40
51
  // src/constants/assets.ts
41
52
  var assets = {};
@@ -137,10 +148,10 @@ var checkBetterCoreContextValue = (value, functionsName) => {
137
148
  var pressStrength = () => {
138
149
  if (!checkBetterCoreContextValue(externalBetterCoreContextValue, "pressStrength")) return void 0;
139
150
  return {
140
- z05: externalBetterCoreContextValue.colorTheme === "dark" ? 0.85 : 0.95,
141
- z1: externalBetterCoreContextValue.colorTheme === "dark" ? 0.6 : 0.8,
142
- z2: externalBetterCoreContextValue.colorTheme === "dark" ? 0.5 : 0.7,
143
- z3: externalBetterCoreContextValue.colorTheme === "dark" ? 0.4 : 0.6
151
+ p05: externalBetterCoreContextValue.colorTheme === "dark" ? 0.85 : 0.95,
152
+ p1: externalBetterCoreContextValue.colorTheme === "dark" ? 0.6 : 0.8,
153
+ p2: externalBetterCoreContextValue.colorTheme === "dark" ? 0.5 : 0.7,
154
+ p3: externalBetterCoreContextValue.colorTheme === "dark" ? 0.4 : 0.6
144
155
  };
145
156
  };
146
157
 
@@ -654,7 +665,8 @@ var ViewComponent = function View({
654
665
  previousValue.shadowOffset = void 0;
655
666
  else previousValue[currentValue] = void 0;
656
667
  return previousValue;
657
- }, {})
668
+ }, {}),
669
+ width: props.width !== "100%" ? props.width : void 0
658
670
  }),
659
671
  [style]
660
672
  );
@@ -1066,7 +1078,7 @@ ButtonComponent.secondary = function Secondary(props) {
1066
1078
  borderWidth: 1,
1067
1079
  borderColor: theme2.colors.border,
1068
1080
  textColor: theme2.colors.textPrimary,
1069
- pressStrength: pressStrength().z05,
1081
+ pressStrength: pressStrength().p05,
1070
1082
  animateOpacity: props.disabled ? 0.4 : 1,
1071
1083
  ...props
1072
1084
  }
@@ -1262,19 +1274,58 @@ var Image2 = memo8(ImageComponent);
1262
1274
  Image2.profileImage = ImageComponent.profileImage;
1263
1275
  var Image_default = Image2;
1264
1276
 
1277
+ // src/components/Icon.tsx
1278
+ import { useEffect as useEffect4 } from "react";
1279
+ import { Platform as Platform4 } from "react-native";
1280
+ import { Path, Svg } from "react-native-svg";
1281
+ import { useBetterCoreContext as useBetterCoreContext3, useTheme as useTheme8 } from "react-better-core";
1282
+ import { SymbolView } from "expo-symbols";
1283
+ import { jsx as jsx9 } from "react/jsx-runtime";
1284
+ import { createElement } from "react";
1285
+ function Icon({ name, nameIOS, size = 16, color, ...props }) {
1286
+ const theme2 = useTheme8();
1287
+ const { icons: icons2 } = useBetterCoreContext3();
1288
+ const svgColor = color ?? theme2.colors.textPrimary;
1289
+ useEffect4(() => {
1290
+ if (!icons2[name.toString()])
1291
+ console.warn(
1292
+ `The icon \`${name}\` you are trying to use does not exist. Make sure to add it to the \`icons\` object in \`<BetterComponentsProvider>\` config value prop.`
1293
+ );
1294
+ }, [icons2, name]);
1295
+ return /* @__PURE__ */ jsx9(View_default, { width: size, height: size, pressType: "opacity", pressStrength: pressStrength().p2, ...props, children: Platform4.OS === "ios" && nameIOS ? /* @__PURE__ */ jsx9(SymbolView, { name: nameIOS, tintColor: svgColor, size }) : /* @__PURE__ */ jsx9(
1296
+ Svg,
1297
+ {
1298
+ width: size,
1299
+ height: size,
1300
+ viewBox: `0 0 ${icons2[name.toString()]?.width ?? 0} ${icons2[name.toString()]?.height ?? 0}`,
1301
+ fill: "none",
1302
+ children: icons2[name.toString()]?.paths.map(({ type, ...path }) => /* @__PURE__ */ createElement(
1303
+ Path,
1304
+ {
1305
+ ...path,
1306
+ fill: type === "fill" ? svgColor : void 0,
1307
+ stroke: type === "stroke" ? svgColor : void 0,
1308
+ key: path.d
1309
+ }
1310
+ ))
1311
+ }
1312
+ ) });
1313
+ }
1314
+ var Icon_default = Icon;
1315
+
1265
1316
  // src/components/InputField.tsx
1266
1317
  import {
1267
1318
  forwardRef,
1268
1319
  memo as memo9,
1269
1320
  useCallback as useCallback3,
1270
- useEffect as useEffect4,
1321
+ useEffect as useEffect5,
1271
1322
  useImperativeHandle,
1272
1323
  useMemo as useMemo8,
1273
1324
  useRef as useRef2,
1274
1325
  useState as useState2
1275
1326
  } from "react";
1276
1327
  import {
1277
- Platform as Platform4,
1328
+ Platform as Platform5,
1278
1329
  TextInput as TextInput2
1279
1330
  } from "react-native";
1280
1331
  import RNDateTimePicker, {
@@ -1283,13 +1334,14 @@ import RNDateTimePicker, {
1283
1334
  import {
1284
1335
  darkenColor,
1285
1336
  lightenColor,
1286
- useBetterCoreContext as useBetterCoreContext3,
1337
+ useBetterCoreContext as useBetterCoreContext4,
1287
1338
  useBooleanState as useBooleanState4,
1288
- useTheme as useTheme8
1339
+ useTheme as useTheme9
1289
1340
  } from "react-better-core";
1290
- import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1341
+ import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
1291
1342
  var InputFieldComponent = forwardRef(
1292
1343
  ({
1344
+ flex,
1293
1345
  placeholder,
1294
1346
  type = "text",
1295
1347
  iOSDateTimeFullSize,
@@ -1321,6 +1373,10 @@ var InputFieldComponent = forwardRef(
1321
1373
  maxLength,
1322
1374
  multiline,
1323
1375
  numberOfLines = 2,
1376
+ leftIcon,
1377
+ leftIconIOS,
1378
+ rightIcon,
1379
+ rightIconIOS,
1324
1380
  paddingHorizontal,
1325
1381
  paddingVertical,
1326
1382
  onFocus,
@@ -1329,19 +1385,22 @@ var InputFieldComponent = forwardRef(
1329
1385
  onPress,
1330
1386
  onPressPrefix,
1331
1387
  onPressSuffix,
1332
- onPressEnter
1388
+ onPressEnter,
1389
+ ...props
1333
1390
  }, ref) => {
1334
- const theme2 = useTheme8();
1335
- const { colorTheme } = useBetterCoreContext3();
1391
+ const theme2 = useTheme9();
1392
+ const { colorTheme } = useBetterCoreContext4();
1336
1393
  const textInputRef = useRef2(null);
1337
1394
  const [internalValue, setInternalValue] = useState2(value?.toString() || defaultValue || "");
1338
1395
  const [internalDateValue, setInternalDateValue] = useState2();
1339
1396
  const [isFocused, setIsFocused] = useBooleanState4();
1340
- const isIOSDateTime = Platform4.OS === "ios" && (type === "date" || type === "time");
1397
+ const isIOSDateTime = Platform5.OS === "ios" && (type === "date" || type === "time");
1398
+ const iconSize = 16;
1399
+ const iconSideSpace = theme2.styles.space;
1341
1400
  const borderWidth = 1;
1342
1401
  const readyPaddingHorizontal = paddingHorizontal ?? theme2.styles.space;
1343
1402
  const readyPaddingVertical = paddingVertical ? parseFloat(paddingVertical.toString()) : (theme2.styles.space + theme2.styles.gap) / 2;
1344
- const readyHeight = height ?? isIOSDateTime ? void 0 : borderWidth + readyPaddingVertical + lineHeight + readyPaddingVertical + borderWidth + (Platform4.OS === "android" ? 2 : 0);
1403
+ const readyHeight = height ?? isIOSDateTime ? void 0 : borderWidth + readyPaddingVertical + lineHeight + readyPaddingVertical + borderWidth + (Platform5.OS === "android" ? 2 : 0);
1345
1404
  const onChangeRNDateTimePicker = useCallback3(
1346
1405
  (event, data) => {
1347
1406
  setInternalDateValue(data);
@@ -1353,7 +1412,7 @@ var InputFieldComponent = forwardRef(
1353
1412
  (event) => {
1354
1413
  onPress?.(event);
1355
1414
  if (type === "date" || type === "time") {
1356
- if (Platform4.OS === "android") {
1415
+ if (Platform5.OS === "android") {
1357
1416
  DateTimePickerAndroid.open({
1358
1417
  value: internalDateValue ?? /* @__PURE__ */ new Date(),
1359
1418
  is24Hour: true,
@@ -1371,7 +1430,7 @@ var InputFieldComponent = forwardRef(
1371
1430
  },
1372
1431
  onChange: onChangeRNDateTimePicker
1373
1432
  });
1374
- } else if (Platform4.OS === "ios") {
1433
+ } else if (Platform5.OS === "ios") {
1375
1434
  }
1376
1435
  }
1377
1436
  },
@@ -1399,10 +1458,23 @@ var InputFieldComponent = forwardRef(
1399
1458
  fontWeight,
1400
1459
  lineHeight,
1401
1460
  color: theme2.colors.textPrimary,
1461
+ paddingLeft: leftIcon ? iconSideSpace + iconSize + iconSideSpace : void 0,
1462
+ paddingRight: rightIcon ? iconSideSpace + iconSize + iconSideSpace : void 0,
1402
1463
  paddingHorizontal: readyPaddingHorizontal,
1403
1464
  paddingVertical: readyPaddingVertical
1404
1465
  }),
1405
- [theme2.colors, fontSize, fontWeight, lineHeight, readyPaddingHorizontal, readyPaddingVertical]
1466
+ [
1467
+ theme2.colors,
1468
+ fontSize,
1469
+ fontWeight,
1470
+ lineHeight,
1471
+ readyPaddingHorizontal,
1472
+ readyPaddingVertical,
1473
+ iconSideSpace,
1474
+ iconSize,
1475
+ leftIcon,
1476
+ rightIcon
1477
+ ]
1406
1478
  );
1407
1479
  const rnDateTimePickerStyle = useMemo8(
1408
1480
  () => ({
@@ -1411,7 +1483,7 @@ var InputFieldComponent = forwardRef(
1411
1483
  }),
1412
1484
  [iOSDateTimeFullSize]
1413
1485
  );
1414
- useEffect4(() => {
1486
+ useEffect5(() => {
1415
1487
  if (value === void 0) return;
1416
1488
  setInternalValue(value.toString());
1417
1489
  try {
@@ -1419,7 +1491,7 @@ var InputFieldComponent = forwardRef(
1419
1491
  } catch (error) {
1420
1492
  }
1421
1493
  }, [value]);
1422
- useEffect4(() => {
1494
+ useEffect5(() => {
1423
1495
  if (type !== "date" && type !== "time") return;
1424
1496
  const date = internalDateValue?.toISOString().split("T")[0] ?? "";
1425
1497
  const hours = internalDateValue ? internalDateValue.getHours().toString() : "00";
@@ -1438,20 +1510,21 @@ var InputFieldComponent = forwardRef(
1438
1510
  const withPressInputField = !!onPress || type === "date" || type === "time";
1439
1511
  const prefixSuffixBackgroundColor = colorTheme === "light" ? darkenColor(theme2.colors.backgroundContent, 0.03) : lightenColor(theme2.colors.backgroundContent, 0.1);
1440
1512
  const labelComponent = label && /* @__PURE__ */ jsxs4(View_default, { isRow: true, alignItems: "center", gap: 2, children: [
1441
- /* @__PURE__ */ jsx9(Text_default, { fontSize: 14, color: isError ? theme2.colors.error : theme2.colors.textSecondary, children: label }),
1442
- required && /* @__PURE__ */ jsx9(Text_default, { color: theme2.colors.error, children: "*" })
1513
+ /* @__PURE__ */ jsx10(Text_default, { fontSize: 14, color: isError ? theme2.colors.error : theme2.colors.textSecondary, children: label }),
1514
+ required && /* @__PURE__ */ jsx10(Text_default, { color: theme2.colors.error, children: "*" })
1443
1515
  ] });
1444
1516
  return /* @__PURE__ */ jsxs4(
1445
1517
  Animate_default.View,
1446
1518
  {
1447
- flex: 1,
1519
+ flex,
1448
1520
  gap: theme2.styles.gap / 3,
1449
1521
  initialOpacity: 1,
1450
1522
  animateOpacity: disabled ? 0.6 : 1,
1523
+ ...props,
1451
1524
  children: [
1452
1525
  isIOSDateTime && !iOSDateTimeFullSize ? void 0 : labelComponent,
1453
- /* @__PURE__ */ jsxs4(View_default, { isRow: true, position: "relative", alignItems: "center", flex: 1, height: readyHeight, children: [
1454
- prefix && /* @__PURE__ */ jsx9(
1526
+ /* @__PURE__ */ jsxs4(View_default, { isRow: true, position: "relative", alignItems: "center", height: readyHeight, children: [
1527
+ prefix && /* @__PURE__ */ jsx10(
1455
1528
  View_default,
1456
1529
  {
1457
1530
  isRow: true,
@@ -1466,12 +1539,12 @@ var InputFieldComponent = forwardRef(
1466
1539
  borderColor: theme2.colors.border,
1467
1540
  paddingHorizontal: readyPaddingHorizontal,
1468
1541
  onPress: onPressPrefix,
1469
- children: typeof prefix === "string" ? /* @__PURE__ */ jsx9(
1542
+ children: typeof prefix === "string" ? /* @__PURE__ */ jsx10(
1470
1543
  Text_default,
1471
1544
  {
1472
1545
  fontWeight: 700,
1473
1546
  lineHeight,
1474
- marginTop: Platform4.OS === "ios" && onPressPrefix ? readyPaddingVertical : void 0,
1547
+ marginTop: Platform5.OS === "ios" && onPressPrefix ? readyPaddingVertical : void 0,
1475
1548
  children: prefix
1476
1549
  }
1477
1550
  ) : prefix
@@ -1479,7 +1552,7 @@ var InputFieldComponent = forwardRef(
1479
1552
  ),
1480
1553
  isIOSDateTime ? /* @__PURE__ */ jsxs4(Fragment3, { children: [
1481
1554
  !iOSDateTimeFullSize ? labelComponent : void 0,
1482
- /* @__PURE__ */ jsx9(
1555
+ /* @__PURE__ */ jsx10(
1483
1556
  RNDateTimePicker,
1484
1557
  {
1485
1558
  value: internalDateValue ?? /* @__PURE__ */ new Date(),
@@ -1490,7 +1563,7 @@ var InputFieldComponent = forwardRef(
1490
1563
  onChange: onChangeRNDateTimePicker
1491
1564
  }
1492
1565
  )
1493
- ] }) : /* @__PURE__ */ jsx9(
1566
+ ] }) : /* @__PURE__ */ jsx10(
1494
1567
  View_default,
1495
1568
  {
1496
1569
  flex: 1,
@@ -1500,11 +1573,13 @@ var InputFieldComponent = forwardRef(
1500
1573
  borderTopRightRadius: suffix ? 0 : theme2.styles.borderRadius,
1501
1574
  borderBottomRightRadius: suffix ? 0 : theme2.styles.borderRadius,
1502
1575
  pressStrength: 1,
1503
- onPress: Platform4.OS === "android" ? editable === false || withPressInputField ? onPressInputField : void 0 : void 0,
1504
- children: /* @__PURE__ */ jsx9(
1576
+ onPress: Platform5.OS === "android" ? editable === false || withPressInputField ? onPressInputField : void 0 : void 0,
1577
+ children: /* @__PURE__ */ jsxs4(
1505
1578
  Animate_default.View,
1506
1579
  {
1580
+ position: "relative",
1507
1581
  flex: 1,
1582
+ justifyContent: "center",
1508
1583
  backgroundColor: theme2.colors.backgroundContent,
1509
1584
  borderTopLeftRadius: prefix ? 0 : theme2.styles.borderRadius,
1510
1585
  borderBottomLeftRadius: prefix ? 0 : theme2.styles.borderRadius,
@@ -1514,44 +1589,68 @@ var InputFieldComponent = forwardRef(
1514
1589
  initialBorderColor: theme2.colors.border,
1515
1590
  animateBorderColor: isFocused ? theme2.colors.primary : isError ? theme2.colors.error : theme2.colors.border,
1516
1591
  overflow: "hidden",
1517
- children: /* @__PURE__ */ jsx9(
1518
- TextInput2,
1519
- {
1520
- style: textInputStyle,
1521
- value: internalValue,
1522
- defaultValue,
1523
- autoCapitalize,
1524
- autoComplete,
1525
- autoCorrect,
1526
- autoFocus,
1527
- placeholder: placeholder ?? label,
1528
- placeholderTextColor: theme2.colors.textSecondary + "80",
1529
- enterKeyHint: returnKeyLabel,
1530
- returnKeyType,
1531
- onSubmitEditing: onPressEnter,
1532
- readOnly: !editable || disabled || type === "date" || type === "time",
1533
- textAlign,
1534
- editable: !disabled,
1535
- keyboardAppearance,
1536
- keyboardType,
1537
- cursorColor: theme2.colors.primary,
1538
- selectionColor: theme2.colors.primary,
1539
- secureTextEntry,
1540
- onFocus: onFocusElement,
1541
- onBlur: onBlurElement,
1542
- onChangeText,
1543
- maxLength,
1544
- multiline,
1545
- numberOfLines,
1546
- onPress: withPressInputField ? onPressInputField : void 0,
1547
- ref: textInputRef
1548
- }
1549
- )
1592
+ children: [
1593
+ leftIcon && /* @__PURE__ */ jsx10(
1594
+ Icon_default,
1595
+ {
1596
+ position: "absolute",
1597
+ left: iconSideSpace,
1598
+ name: leftIcon,
1599
+ nameIOS: leftIconIOS,
1600
+ size: iconSize,
1601
+ pointerEvents: "box-none"
1602
+ }
1603
+ ),
1604
+ /* @__PURE__ */ jsx10(
1605
+ TextInput2,
1606
+ {
1607
+ style: textInputStyle,
1608
+ value: internalValue,
1609
+ defaultValue,
1610
+ autoCapitalize,
1611
+ autoComplete,
1612
+ autoCorrect,
1613
+ autoFocus,
1614
+ placeholder: placeholder ?? label,
1615
+ placeholderTextColor: theme2.colors.textSecondary + "80",
1616
+ enterKeyHint: returnKeyLabel,
1617
+ returnKeyType,
1618
+ onSubmitEditing: onPressEnter,
1619
+ readOnly: !editable || disabled || type === "date" || type === "time",
1620
+ textAlign,
1621
+ editable: !disabled,
1622
+ keyboardAppearance,
1623
+ keyboardType,
1624
+ cursorColor: theme2.colors.primary,
1625
+ selectionColor: theme2.colors.primary,
1626
+ secureTextEntry,
1627
+ onFocus: onFocusElement,
1628
+ onBlur: onBlurElement,
1629
+ onChangeText,
1630
+ maxLength,
1631
+ multiline,
1632
+ numberOfLines,
1633
+ onPress: withPressInputField ? onPressInputField : void 0,
1634
+ ref: textInputRef
1635
+ }
1636
+ ),
1637
+ rightIcon && /* @__PURE__ */ jsx10(
1638
+ Icon_default,
1639
+ {
1640
+ position: "absolute",
1641
+ right: iconSideSpace,
1642
+ name: rightIcon,
1643
+ nameIOS: rightIconIOS,
1644
+ size: iconSize,
1645
+ pointerEvents: "box-none"
1646
+ }
1647
+ )
1648
+ ]
1550
1649
  }
1551
1650
  )
1552
1651
  }
1553
1652
  ),
1554
- suffix && /* @__PURE__ */ jsx9(
1653
+ suffix && /* @__PURE__ */ jsx10(
1555
1654
  View_default,
1556
1655
  {
1557
1656
  isRow: true,
@@ -1565,19 +1664,19 @@ var InputFieldComponent = forwardRef(
1565
1664
  borderColor: theme2.colors.border,
1566
1665
  paddingHorizontal: readyPaddingHorizontal,
1567
1666
  onPress: onPressSuffix,
1568
- children: typeof suffix === "string" ? /* @__PURE__ */ jsx9(
1667
+ children: typeof suffix === "string" ? /* @__PURE__ */ jsx10(
1569
1668
  Text_default,
1570
1669
  {
1571
1670
  fontWeight: 700,
1572
1671
  lineHeight,
1573
- marginTop: Platform4.OS === "ios" && onPressSuffix ? readyPaddingVertical : void 0,
1672
+ marginTop: Platform5.OS === "ios" && onPressSuffix ? readyPaddingVertical : void 0,
1574
1673
  children: suffix
1575
1674
  }
1576
1675
  ) : suffix
1577
1676
  }
1578
1677
  )
1579
1678
  ] }),
1580
- infoMessage && /* @__PURE__ */ jsx9(
1679
+ infoMessage && /* @__PURE__ */ jsx10(
1581
1680
  Animate_default.Text,
1582
1681
  {
1583
1682
  fontSize: 14,
@@ -1589,7 +1688,7 @@ var InputFieldComponent = forwardRef(
1589
1688
  children: infoMessage
1590
1689
  }
1591
1690
  ),
1592
- errorMessage && /* @__PURE__ */ jsx9(
1691
+ errorMessage && /* @__PURE__ */ jsx10(
1593
1692
  Animate_default.Text,
1594
1693
  {
1595
1694
  fontSize: 14,
@@ -1607,7 +1706,7 @@ var InputFieldComponent = forwardRef(
1607
1706
  }
1608
1707
  );
1609
1708
  InputFieldComponent.email = forwardRef(function Email(props, ref) {
1610
- return /* @__PURE__ */ jsx9(
1709
+ return /* @__PURE__ */ jsx10(
1611
1710
  InputFieldComponent,
1612
1711
  {
1613
1712
  placeholder: "your@email.here",
@@ -1621,7 +1720,7 @@ InputFieldComponent.email = forwardRef(function Email(props, ref) {
1621
1720
  );
1622
1721
  });
1623
1722
  InputFieldComponent.password = forwardRef(function Password(props, ref) {
1624
- return /* @__PURE__ */ jsx9(
1723
+ return /* @__PURE__ */ jsx10(
1625
1724
  InputFieldComponent,
1626
1725
  {
1627
1726
  secureTextEntry: true,
@@ -1634,11 +1733,15 @@ InputFieldComponent.password = forwardRef(function Password(props, ref) {
1634
1733
  }
1635
1734
  );
1636
1735
  });
1736
+ InputFieldComponent.search = forwardRef(function Search(props, ref) {
1737
+ return /* @__PURE__ */ jsx10(InputFieldComponent, { placeholder: "Search...", leftIcon: "magnifyingGlass", ...props, ref });
1738
+ });
1637
1739
  InputFieldComponent.code = forwardRef(function Password2({ isSmall, ...props }, ref) {
1638
- const theme2 = useTheme8();
1639
- return /* @__PURE__ */ jsx9(
1740
+ const theme2 = useTheme9();
1741
+ return /* @__PURE__ */ jsx10(
1640
1742
  InputFieldComponent,
1641
1743
  {
1744
+ flex: 1,
1642
1745
  fontSize: isSmall ? 36 : 42,
1643
1746
  fontWeight: 900,
1644
1747
  lineHeight: isSmall ? 42 : 50,
@@ -1653,21 +1756,22 @@ InputFieldComponent.code = forwardRef(function Password2({ isSmall, ...props },
1653
1756
  var InputField = memo9(InputFieldComponent);
1654
1757
  InputField.email = InputFieldComponent.email;
1655
1758
  InputField.password = InputFieldComponent.password;
1759
+ InputField.search = InputFieldComponent.search;
1656
1760
  InputField.code = InputFieldComponent.code;
1657
1761
  var InputField_default = InputField;
1658
1762
 
1659
1763
  // src/components/StatusBar.tsx
1660
1764
  import { memo as memo10 } from "react";
1661
- import { useTheme as useTheme9 } from "react-better-core";
1662
- import { StatusBar as NativeStatusBar, Platform as Platform5 } from "react-native";
1663
- import { jsx as jsx10 } from "react/jsx-runtime";
1765
+ import { useTheme as useTheme10 } from "react-better-core";
1766
+ import { StatusBar as NativeStatusBar, Platform as Platform6 } from "react-native";
1767
+ import { jsx as jsx11 } from "react/jsx-runtime";
1664
1768
  function StatusBar({ darkStatusBar, hidden, barStyle, androidBarStyle, iOSBarStyle }) {
1665
- const theme2 = useTheme9();
1666
- return /* @__PURE__ */ jsx10(
1769
+ const theme2 = useTheme10();
1770
+ return /* @__PURE__ */ jsx11(
1667
1771
  NativeStatusBar,
1668
1772
  {
1669
1773
  backgroundColor: darkStatusBar ? theme2.colors.backgroundSecondary : void 0,
1670
- barStyle: barStyle ?? (Platform5.OS === "android" ? androidBarStyle : iOSBarStyle),
1774
+ barStyle: barStyle ?? (Platform6.OS === "android" ? androidBarStyle : iOSBarStyle),
1671
1775
  hidden
1672
1776
  }
1673
1777
  );
@@ -1690,6 +1794,7 @@ export {
1690
1794
  Animate_default as Animate,
1691
1795
  BetterComponentsProvider_default as BetterComponentsProvider,
1692
1796
  Button_default as Button,
1797
+ Icon_default as Icon,
1693
1798
  Image_default as Image,
1694
1799
  InputField_default as InputField,
1695
1800
  Loader_default as Loader,
@@ -1723,6 +1828,6 @@ export {
1723
1828
  useKeyboard,
1724
1829
  useLoader2 as useLoader,
1725
1830
  useLoaderControls,
1726
- useTheme10 as useTheme
1831
+ useTheme11 as useTheme
1727
1832
  };
1728
1833
  //# sourceMappingURL=index.mjs.map