dhre-ui-kit 2.0.6 → 2.0.7

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/lib/index.mjs CHANGED
@@ -11,7 +11,7 @@ import { GestureHandlerRootView, Swipeable, ScrollView as ScrollView$1 } from 'r
11
11
  import DeviceInfo from 'react-native-device-info';
12
12
  import { Calendar } from 'react-native-calendars';
13
13
  import CountryPicker from 'react-native-country-picker-modal';
14
- import { TextInput as TextInput$1 } from 'react-native-paper';
14
+ import { TextInput as TextInput$1, MD3LightTheme } from 'react-native-paper';
15
15
  import { Dropdown } from 'react-native-element-dropdown';
16
16
  import DocumentPicker from 'react-native-document-picker';
17
17
  import RNFS from 'react-native-fs';
@@ -7594,7 +7594,8 @@ const ScrollableList = ({
7594
7594
  defaultItemTextColor = "CONTENT_SECONDRY",
7595
7595
  activeTab,
7596
7596
  errorStyle,
7597
- activeTextStyle
7597
+ activeTextStyle,
7598
+ enableTextWrap
7598
7599
  }) => {
7599
7600
  const [selectedItem, setSelectedItem] = useState(
7600
7601
  data && data.length > 0 ? data[0].name : null
@@ -7628,7 +7629,7 @@ const ScrollableList = ({
7628
7629
  handleSelectCategory(item.name, item.value);
7629
7630
  }
7630
7631
  },
7631
- /* @__PURE__ */ React.createElement(
7632
+ /* @__PURE__ */ React.createElement(View, { style: [enableTextWrap && styles.enableTextWrapStyle] }, /* @__PURE__ */ React.createElement(
7632
7633
  CustomText$1,
7633
7634
  {
7634
7635
  text: item.name,
@@ -7636,7 +7637,7 @@ const ScrollableList = ({
7636
7637
  textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
7637
7638
  style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
7638
7639
  }
7639
- ),
7640
+ )),
7640
7641
  item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
7641
7642
  CustomText$1,
7642
7643
  {
@@ -7664,7 +7665,12 @@ const createStyles$2 = (theme) => {
7664
7665
  gap: 8,
7665
7666
  padding: 12,
7666
7667
  borderBottomWidth: 1,
7667
- borderBottomColor: theme[Theme.BORDER_SEPERATOR_HEADER]
7668
+ borderBottomColor: theme[Theme.BORDER_SEPERATOR_HEADER],
7669
+ flexShrink: 1
7670
+ },
7671
+ enableTextWrapStyle: {
7672
+ flexShrink: 1,
7673
+ flexGrow: 1
7668
7674
  },
7669
7675
  selectedItem: {
7670
7676
  borderBottomWidth: 2,
@@ -7967,10 +7973,27 @@ const CommonTextInput = (props) => {
7967
7973
  secureTextEntry: isSecureTextEntry,
7968
7974
  keyboardType,
7969
7975
  theme: {
7976
+ ...MD3LightTheme,
7970
7977
  colors: {
7978
+ ...MD3LightTheme.colors,
7971
7979
  onSurfaceVariant: currentBorderColor,
7972
7980
  error: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : currentBorderColor,
7973
7981
  primary: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : currentBorderColor
7982
+ },
7983
+ fonts: {
7984
+ ...MD3LightTheme.fonts,
7985
+ bodyLarge: {
7986
+ ...MD3LightTheme.fonts.bodyLarge,
7987
+ fontFamily: "Nakheel-TextRegular"
7988
+ },
7989
+ bodyMedium: {
7990
+ ...MD3LightTheme.fonts.bodyMedium,
7991
+ fontFamily: "Nakheel-TextRegular"
7992
+ },
7993
+ labelLarge: {
7994
+ ...MD3LightTheme.fonts.labelLarge,
7995
+ fontFamily: "Nakheel-TextRegular"
7996
+ }
7974
7997
  }
7975
7998
  },
7976
7999
  style: [
@@ -7979,6 +8002,9 @@ const CommonTextInput = (props) => {
7979
8002
  multiline && styles$9.multilineInput
7980
8003
  // Apply multiline style if true
7981
8004
  ],
8005
+ contentStyle: {
8006
+ fontFamily: "Nakheel-TextRegular"
8007
+ },
7982
8008
  maxLength,
7983
8009
  textColor,
7984
8010
  placeholder: placeholderText,
@@ -8138,7 +8164,7 @@ const CustomDropdown = (props) => {
8138
8164
  dropdownPosition: "bottom",
8139
8165
  renderItem,
8140
8166
  itemTextStyle,
8141
- containerStyle: menuContainerStyle,
8167
+ containerStyle: [{ marginTop: verticalScale(5) }, menuContainerStyle],
8142
8168
  activeColor,
8143
8169
  itemContainerStyle: [styles$8.itemListStyle, itemContainerStyle],
8144
8170
  disable,
@@ -8381,7 +8407,7 @@ const createStyles = (theme) => {
8381
8407
  alignItems: "center",
8382
8408
  paddingVertical: 8,
8383
8409
  paddingHorizontal: 12,
8384
- borderRadius: 20,
8410
+ borderRadius: 0,
8385
8411
  marginHorizontal: 8
8386
8412
  },
8387
8413
  selectedTagButton: {