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.d.ts +1 -0
- package/lib/index.js +32 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +33 -7
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -7630,7 +7630,8 @@ const ScrollableList = ({
|
|
|
7630
7630
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
7631
7631
|
activeTab,
|
|
7632
7632
|
errorStyle,
|
|
7633
|
-
activeTextStyle
|
|
7633
|
+
activeTextStyle,
|
|
7634
|
+
enableTextWrap
|
|
7634
7635
|
}) => {
|
|
7635
7636
|
const [selectedItem, setSelectedItem] = React.useState(
|
|
7636
7637
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -7664,7 +7665,7 @@ const ScrollableList = ({
|
|
|
7664
7665
|
handleSelectCategory(item.name, item.value);
|
|
7665
7666
|
}
|
|
7666
7667
|
},
|
|
7667
|
-
/* @__PURE__ */ React__default["default"].createElement(
|
|
7668
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [enableTextWrap && styles.enableTextWrapStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
7668
7669
|
CustomText$1,
|
|
7669
7670
|
{
|
|
7670
7671
|
text: item.name,
|
|
@@ -7672,7 +7673,7 @@ const ScrollableList = ({
|
|
|
7672
7673
|
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
|
|
7673
7674
|
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
7674
7675
|
}
|
|
7675
|
-
),
|
|
7676
|
+
)),
|
|
7676
7677
|
item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
|
|
7677
7678
|
CustomText$1,
|
|
7678
7679
|
{
|
|
@@ -7700,7 +7701,12 @@ const createStyles$2 = (theme) => {
|
|
|
7700
7701
|
gap: 8,
|
|
7701
7702
|
padding: 12,
|
|
7702
7703
|
borderBottomWidth: 1,
|
|
7703
|
-
borderBottomColor: theme[Theme.BORDER_SEPERATOR_HEADER]
|
|
7704
|
+
borderBottomColor: theme[Theme.BORDER_SEPERATOR_HEADER],
|
|
7705
|
+
flexShrink: 1
|
|
7706
|
+
},
|
|
7707
|
+
enableTextWrapStyle: {
|
|
7708
|
+
flexShrink: 1,
|
|
7709
|
+
flexGrow: 1
|
|
7704
7710
|
},
|
|
7705
7711
|
selectedItem: {
|
|
7706
7712
|
borderBottomWidth: 2,
|
|
@@ -8003,10 +8009,27 @@ const CommonTextInput = (props) => {
|
|
|
8003
8009
|
secureTextEntry: isSecureTextEntry,
|
|
8004
8010
|
keyboardType,
|
|
8005
8011
|
theme: {
|
|
8012
|
+
...reactNativePaper.MD3LightTheme,
|
|
8006
8013
|
colors: {
|
|
8014
|
+
...reactNativePaper.MD3LightTheme.colors,
|
|
8007
8015
|
onSurfaceVariant: currentBorderColor,
|
|
8008
8016
|
error: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : currentBorderColor,
|
|
8009
8017
|
primary: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : currentBorderColor
|
|
8018
|
+
},
|
|
8019
|
+
fonts: {
|
|
8020
|
+
...reactNativePaper.MD3LightTheme.fonts,
|
|
8021
|
+
bodyLarge: {
|
|
8022
|
+
...reactNativePaper.MD3LightTheme.fonts.bodyLarge,
|
|
8023
|
+
fontFamily: "Nakheel-TextRegular"
|
|
8024
|
+
},
|
|
8025
|
+
bodyMedium: {
|
|
8026
|
+
...reactNativePaper.MD3LightTheme.fonts.bodyMedium,
|
|
8027
|
+
fontFamily: "Nakheel-TextRegular"
|
|
8028
|
+
},
|
|
8029
|
+
labelLarge: {
|
|
8030
|
+
...reactNativePaper.MD3LightTheme.fonts.labelLarge,
|
|
8031
|
+
fontFamily: "Nakheel-TextRegular"
|
|
8032
|
+
}
|
|
8010
8033
|
}
|
|
8011
8034
|
},
|
|
8012
8035
|
style: [
|
|
@@ -8015,6 +8038,9 @@ const CommonTextInput = (props) => {
|
|
|
8015
8038
|
multiline && styles$9.multilineInput
|
|
8016
8039
|
// Apply multiline style if true
|
|
8017
8040
|
],
|
|
8041
|
+
contentStyle: {
|
|
8042
|
+
fontFamily: "Nakheel-TextRegular"
|
|
8043
|
+
},
|
|
8018
8044
|
maxLength,
|
|
8019
8045
|
textColor,
|
|
8020
8046
|
placeholder: placeholderText,
|
|
@@ -8174,7 +8200,7 @@ const CustomDropdown = (props) => {
|
|
|
8174
8200
|
dropdownPosition: "bottom",
|
|
8175
8201
|
renderItem,
|
|
8176
8202
|
itemTextStyle,
|
|
8177
|
-
containerStyle: menuContainerStyle,
|
|
8203
|
+
containerStyle: [{ marginTop: verticalScale(5) }, menuContainerStyle],
|
|
8178
8204
|
activeColor,
|
|
8179
8205
|
itemContainerStyle: [styles$8.itemListStyle, itemContainerStyle],
|
|
8180
8206
|
disable,
|
|
@@ -8417,7 +8443,7 @@ const createStyles = (theme) => {
|
|
|
8417
8443
|
alignItems: "center",
|
|
8418
8444
|
paddingVertical: 8,
|
|
8419
8445
|
paddingHorizontal: 12,
|
|
8420
|
-
borderRadius:
|
|
8446
|
+
borderRadius: 0,
|
|
8421
8447
|
marginHorizontal: 8
|
|
8422
8448
|
},
|
|
8423
8449
|
selectedTagButton: {
|