dhre-ui-kit 3.4.2 → 3.6.0

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.
@@ -22,6 +22,12 @@ export interface BottomDrawerProps {
22
22
  backdropOpacity?: number;
23
23
  propagateSwipe?: boolean;
24
24
  swipeDirection?: string;
25
+ /** Forwarded to react-native-modal. Defaults to true (today's behavior: content
26
+ * hosted in Android's native Dialog window). Set false to render inline in the
27
+ * normal view tree instead — required on Android to work around a known RN core
28
+ * bug (RN >=0.76, old architecture) where a ScrollView inside RN's native <Modal>
29
+ * loses scroll on initial mount: https://github.com/facebook/react-native/issues/48822 */
30
+ coverScreen?: boolean;
25
31
  footer?: React.ReactNode;
26
32
  rightTitleVariant?: string;
27
33
  rightTitle?: string;
@@ -0,0 +1,30 @@
1
+ declare const styles: {
2
+ container: {
3
+ flexDirection: "row";
4
+ alignItems: "center";
5
+ justifyContent: "space-between";
6
+ paddingVertical: number;
7
+ paddingHorizontal: number;
8
+ borderWidth: number;
9
+ borderStyle: "dashed";
10
+ borderRadius: number;
11
+ marginBottom: number;
12
+ };
13
+ fileUploadContainerStyle: {
14
+ flexDirection: "row";
15
+ alignItems: "center";
16
+ justifyContent: "space-between";
17
+ paddingVertical: number;
18
+ paddingHorizontal: number;
19
+ borderRadius: number;
20
+ marginBottom: number;
21
+ };
22
+ innerContainer: {
23
+ flexDirection: "row";
24
+ columnGap: number;
25
+ };
26
+ titleContainer: {
27
+ gap: number;
28
+ };
29
+ };
30
+ export default styles;
File without changes
@@ -21,6 +21,8 @@ interface CommonTextInputProps extends BaseTextInputProps {
21
21
  disableBorder?: boolean;
22
22
  /** Force RTL layout. When omitted, auto-detected from the label/value text. */
23
23
  forceRTL?: boolean;
24
+ /** Overrides the computed outline/border color (error/disabled/focused/filled logic). */
25
+ borderColor?: string;
24
26
  }
25
27
  declare const _default: (props: CommonTextInputProps) => React.JSX.Element;
26
28
  export default _default;
package/lib/index.js CHANGED
@@ -1705,6 +1705,7 @@ const BottomDrawer = ({
1705
1705
  footer,
1706
1706
  propagateSwipe = true,
1707
1707
  swipeDirection = "down",
1708
+ coverScreen = true,
1708
1709
  rightTitleVariant = FontStyle.BODY1_MEDIUM,
1709
1710
  rightTitle,
1710
1711
  rightTitleStyle,
@@ -1721,6 +1722,7 @@ const BottomDrawer = ({
1721
1722
  hasBackdrop: showBlurView,
1722
1723
  backdropOpacity,
1723
1724
  propagateSwipe,
1725
+ coverScreen,
1724
1726
  style: { margin: 0 },
1725
1727
  hideModalContentWhileAnimating: true
1726
1728
  },
@@ -2011,7 +2013,7 @@ function buildPlainContainerStyle(variant, disabled, disabledColor, theme) {
2011
2013
  }
2012
2014
  if (variant === "quaternary") {
2013
2015
  return {
2014
- backgroundColor: "transparent",
2016
+ backgroundColor: theme[Theme.BUTTON_INVRTED_FILL],
2015
2017
  borderWidth: 1,
2016
2018
  borderColor: disabled ? theme[Theme.BUTTON_QUATERNARY_DISABLED_STROKE] : theme[Theme.BUTTON_QUATERNARY_DEFAULT_STROKE]
2017
2019
  };
@@ -3811,7 +3813,7 @@ const CustomHeader = ({
3811
3813
  {
3812
3814
  variant: "BODY1_MEDIUM",
3813
3815
  text: title,
3814
- style: { color: titleColor ?? theme.CONTENT_PRIMARY["dark"] }
3816
+ style: { color: titleColor ?? theme.CONTENT_PRIMARY }
3815
3817
  }
3816
3818
  ), titleSuffixIcon && React__default["default"].cloneElement(titleSuffixIcon, {
3817
3819
  width: ICON_SIZE,
@@ -11774,7 +11776,8 @@ const CommonTextInput = (props) => {
11774
11776
  onRightIconPress,
11775
11777
  onlyErrorBorderLabel,
11776
11778
  disableBorder = false,
11777
- forceRTL
11779
+ forceRTL,
11780
+ borderColor: borderColorOverride
11778
11781
  } = props;
11779
11782
  const [isFocused, setIsFocused] = React.useState(false);
11780
11783
  const handleFocus = () => setIsFocused(true);
@@ -11783,7 +11786,7 @@ const CommonTextInput = (props) => {
11783
11786
  const isDisabled = !editable;
11784
11787
  const isError = !!(errorMessage?.length || onlyErrorBorderLabel);
11785
11788
  const hasValue = !!value?.length;
11786
- const currentBorderColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.STROKE_TERTIARY] : isFocused || hasValue && !disableBorder ? theme[Theme.STROKE_ACTIVE] : theme[Theme.STROKE_SECONDARY];
11789
+ const currentBorderColor = borderColorOverride ?? (isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.STROKE_TERTIARY] : isFocused || hasValue && !disableBorder ? theme[Theme.STROKE_ACTIVE] : theme[Theme.STROKE_SECONDARY]);
11787
11790
  const borderWidth = isFocused && !isDisabled ? 2 : 1;
11788
11791
  const inputTextColor = isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_PRIMARY];
11789
11792
  const placeholderColor = theme[Theme.CONTENT_SECONDRY];