dhre-ui-kit 3.0.1 → 3.0.2

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.
@@ -1,7 +1,6 @@
1
1
  declare const styles: {
2
2
  container: {
3
3
  paddingVertical: number;
4
- borderBottomWidth: number;
5
4
  };
6
5
  header: {
7
6
  flexDirection: "row";
@@ -21,7 +21,6 @@ declare const styles: {
21
21
  height: number;
22
22
  width: number;
23
23
  alignSelf: "center";
24
- backgroundColor: string;
25
24
  borderRadius: number;
26
25
  };
27
26
  headerContainer: {
@@ -32,14 +31,12 @@ declare const styles: {
32
31
  };
33
32
  title: {
34
33
  flex: number;
35
- color: string;
36
34
  textAlign: "left";
37
35
  };
38
36
  leftIconStyle: {
39
37
  marginRight: number;
40
38
  };
41
39
  rightTitle: {
42
- color: string;
43
40
  textAlign: "right";
44
41
  marginRight: number;
45
42
  };
@@ -1,4 +1,4 @@
1
- import { TextStyle, ViewStyle } from 'react-native';
1
+ import { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
2
  export interface CheckBoxProps {
3
3
  isChecked: boolean;
4
4
  onCheck?: (checked: boolean) => void;
@@ -8,11 +8,15 @@ export interface CheckBoxProps {
8
8
  testID?: string;
9
9
  /** Icon rendered when checkbox is checked and enabled (Selected / Default) */
10
10
  checkedIcon: React.ReactElement;
11
- /** Icon rendered when checkbox is unchecked and enabled (Unselected / Default) */
12
- uncheckedIcon: React.ReactElement;
11
+ /**
12
+ * Icon rendered when checkbox is unchecked and enabled (Unselected / Default).
13
+ * Optional — when omitted the container renders as an empty box (border only).
14
+ */
15
+ uncheckedIcon?: React.ReactElement;
13
16
  titleVariant?: string;
14
17
  titleStyle?: TextStyle;
15
18
  containerStyle?: ViewStyle;
19
+ checkboxStyle?: StyleProp<ViewStyle>;
16
20
  onPress?: () => void;
17
21
  hideCheckbox?: boolean;
18
22
  /**
@@ -7,6 +7,9 @@ declare const styles: {
7
7
  checkboxContainer: {
8
8
  alignItems: "center";
9
9
  justifyContent: "center";
10
+ borderRadius: number;
11
+ borderWidth: number;
12
+ overflow: "hidden";
10
13
  };
11
14
  };
12
15
  export default styles;
@@ -1,3 +1,4 @@
1
+ export { OUTLINED_GRADIENT_COLORS, OUTLINED_GRADIENT_START, OUTLINED_GRADIENT_END, OUTLINED_BORDER_WIDTH, } from '../../theme/gradients';
1
2
  import { FontStyle } from '../../utils/appEnum';
2
3
  import type { CustomIconSize } from './CustomIcon.interface';
3
4
  declare const styles: {
@@ -41,16 +42,6 @@ export declare const ICON_BLUR_TYPE_STYLE: {
41
42
  overflow: "hidden";
42
43
  };
43
44
  };
44
- export declare const OUTLINED_GRADIENT_COLORS: readonly [string, "#438CB1"];
45
- export declare const OUTLINED_GRADIENT_START: {
46
- readonly x: 0;
47
- readonly y: 0;
48
- };
49
- export declare const OUTLINED_GRADIENT_END: {
50
- readonly x: 1;
51
- readonly y: 1;
52
- };
53
- export declare const OUTLINED_BORDER_WIDTH = 1;
54
45
  export declare const OUTLINED_BUTTON_STYLES: {
55
46
  shell: {
56
47
  borderRadius: number;
@@ -12,6 +12,10 @@ export interface CustomSlideButtonProps {
12
12
  sliderBackgroundColor?: string;
13
13
  sliderTextColor?: string;
14
14
  resetTimer?: number;
15
+ /** When true, thumb starts on the right and the user drags leftward to complete (Arabic/RTL layout). Default: false. */
16
+ isRTL?: boolean;
17
+ /** Style applied to the container between onComplete and the auto-reset. Use to override the success-fill background. */
18
+ completedContainerStyle?: ViewStyle;
15
19
  }
16
20
  export type SlideButtonHandle = {
17
21
  reset?: () => void;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { CustomSlideButtonProps, SlideButtonHandle } from './custom-slide-button.interface';
3
- declare const _default: (props: CustomSlideButtonProps & React.RefAttributes<SlideButtonHandle>) => React.JSX.Element;
2
+ import { CustomSlideButtonProps } from './custom-slide-button.interface';
3
+ declare const _default: React.FC<CustomSlideButtonProps>;
4
4
  export default _default;
@@ -4,8 +4,13 @@ declare const styles: {
4
4
  justifyContent: "center";
5
5
  alignItems: "center";
6
6
  };
7
+ gradientShell: {
8
+ borderRadius: number;
9
+ padding: number;
10
+ };
7
11
  sliderContainer: {
8
12
  height: number;
13
+ borderRadius: number;
9
14
  overflow: "hidden";
10
15
  justifyContent: "center";
11
16
  };
@@ -19,6 +24,7 @@ declare const styles: {
19
24
  height: number;
20
25
  justifyContent: "center";
21
26
  alignItems: "center";
27
+ borderRadius: number;
22
28
  margin: number;
23
29
  };
24
30
  buttonTextContainer: {
@@ -1,4 +1,5 @@
1
1
  import { ViewStyle } from "react-native";
2
+ import { FontStyle } from "../../utils/appEnum";
2
3
  export type RadioButtonItem = {
3
4
  label: string;
4
5
  value: string;
@@ -10,4 +11,7 @@ export interface RadioButtonGroupProps {
10
11
  labelStyle?: ViewStyle;
11
12
  optionContainerStyle?: ViewStyle;
12
13
  selectedValue?: string;
14
+ size?: 'large' | 'small';
15
+ fontVariant?: FontStyle;
16
+ radioColor?: string;
13
17
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RadioButtonGroupProps } from './RadioButtonGroup.interface';
3
- declare const RadioButtonGroup: React.FC<RadioButtonGroupProps>;
4
- export default RadioButtonGroup;
3
+ declare const _default: (props: RadioButtonGroupProps) => React.JSX.Element;
4
+ export default _default;
@@ -1,11 +1,11 @@
1
- declare const styles: {
1
+ export declare const createStyles: (themeColors: Record<string, string>, size: "large" | "small", radioColor?: string) => {
2
2
  container: {
3
3
  rowGap: number;
4
4
  };
5
5
  optionContainer: {
6
6
  flexDirection: "row";
7
7
  columnGap: number;
8
- alignItems: "center";
8
+ alignItems: "flex-start";
9
9
  };
10
10
  radioButton: {
11
11
  width: number;
@@ -13,12 +13,20 @@ declare const styles: {
13
13
  borderRadius: number;
14
14
  borderWidth: number;
15
15
  borderColor: string;
16
+ justifyContent: "center";
17
+ alignItems: "center";
16
18
  };
17
19
  radioButtonSelected: {
20
+ borderWidth: number;
21
+ backgroundColor: string;
22
+ };
23
+ radioButtonInnerDot: {
24
+ width: number;
25
+ height: number;
26
+ borderRadius: number;
18
27
  backgroundColor: string;
19
28
  };
20
29
  label: {
21
30
  color: string;
22
31
  };
23
32
  };
24
- export default styles;
@@ -7,6 +7,7 @@ interface CommonTextInputProps extends BaseTextInputProps {
7
7
  placeholderText?: string;
8
8
  isSecureTextEntry?: boolean;
9
9
  inputStyle?: ViewStyle;
10
+ containerStyle?: ViewStyle;
10
11
  keyboardType?: 'default' | 'numeric' | 'email-address' | 'phone-pad';
11
12
  maxLength?: number;
12
13
  errorMessage?: string;