dhre-ui-kit 0.0.142 → 0.0.143

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 CHANGED
@@ -17,7 +17,7 @@ interface CustomTextProps extends TextProps {
17
17
  style?: StyleProp<TextStyle>;
18
18
  textColor?: string;
19
19
  }
20
- declare const _default$i: (props: CustomTextProps) => React$1.JSX.Element;
20
+ declare const _default$j: (props: CustomTextProps) => React$1.JSX.Element;
21
21
 
22
22
  interface BadgeProps {
23
23
  text?: string;
@@ -27,7 +27,7 @@ interface BadgeProps {
27
27
  iconStyle?: ViewStyle;
28
28
  handleIconPress: () => void;
29
29
  }
30
- declare const _default$h: (props: BadgeProps) => React$1.JSX.Element;
30
+ declare const _default$i: (props: BadgeProps) => React$1.JSX.Element;
31
31
 
32
32
  interface BottomDrawerProps {
33
33
  isModalVisible: boolean;
@@ -71,7 +71,7 @@ interface CustomButtonProps {
71
71
  disableButtonTitleColor?: string;
72
72
  }
73
73
 
74
- declare const _default$g: (props: CustomButtonProps) => React$1.JSX.Element;
74
+ declare const _default$h: (props: CustomButtonProps) => React$1.JSX.Element;
75
75
 
76
76
  interface CardsProps {
77
77
  topLeftTitle?: string;
@@ -318,7 +318,7 @@ interface Props {
318
318
  onSelectionChange?: (selected: string[]) => void;
319
319
  style?: ViewStyle;
320
320
  }
321
- declare const _default$f: (props: Props) => React$1.JSX.Element;
321
+ declare const _default$g: (props: Props) => React$1.JSX.Element;
322
322
 
323
323
  interface TagsProps {
324
324
  tags: string[];
@@ -358,7 +358,7 @@ interface AccordionProps {
358
358
  titleVariant?: string;
359
359
  }
360
360
 
361
- declare const _default$e: (props: AccordionProps) => React$1.JSX.Element;
361
+ declare const _default$f: (props: AccordionProps) => React$1.JSX.Element;
362
362
 
363
363
  interface ToastProps {
364
364
  sucessIcon: React$1.ReactElement;
@@ -413,7 +413,7 @@ interface CustomHeaderProps {
413
413
  onRightPress?: () => void;
414
414
  }
415
415
 
416
- declare const _default$d: (props: CustomHeaderProps) => React$1.JSX.Element;
416
+ declare const _default$e: (props: CustomHeaderProps) => React$1.JSX.Element;
417
417
 
418
418
  interface ListItem {
419
419
  id: string;
@@ -456,7 +456,7 @@ interface SwipableListProps {
456
456
  titleStyle?: TextStyle;
457
457
  }
458
458
 
459
- declare const SwipableList: (props: SwipableListProps) => React$1.JSX.Element;
459
+ declare const _default$d: (props: SwipableListProps) => React$1.JSX.Element;
460
460
 
461
461
  interface TypoTextProps extends TextProps {
462
462
  variant: keyof typeof FONT_STYLES;
@@ -1059,4 +1059,4 @@ interface PropertyDetailsProps {
1059
1059
 
1060
1060
  declare const _default: (props: PropertyDetailsProps) => React$1.JSX.Element;
1061
1061
 
1062
- export { _default$e as Accordion, _default$1 as AppointmentCard, _default$h as Badge, BottomDrawer, _default$g as Button, Cards, _default$7 as Category, Checkbox as CheckBox, _default$a as ContactModel, CountryDropDown as CountryPicker, _default$5 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$d as CustomHeader, type CustomHeaderProps, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$i as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$9 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$6 as FeedbackForm, FileUpload, FontStyle, _default$c as Line, NotificationBandge, _default$4 as OTPInput, _default$8 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, _default$3 as Stepper, SwipableList, _default$f as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, type ToastRef, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$b as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
1062
+ export { _default$f as Accordion, _default$1 as AppointmentCard, _default$i as Badge, BottomDrawer, _default$h as Button, Cards, _default$7 as Category, Checkbox as CheckBox, _default$a as ContactModel, CountryDropDown as CountryPicker, _default$5 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$e as CustomHeader, type CustomHeaderProps, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$j as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$9 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$6 as FeedbackForm, FileUpload, FontStyle, _default$c as Line, NotificationBandge, _default$4 as OTPInput, _default$8 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, _default$3 as Stepper, _default$d as SwipableList, _default$g as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, type ToastRef, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$b as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
package/lib/index.js CHANGED
@@ -2302,7 +2302,8 @@ const styles$k = reactNative.StyleSheet.create({
2302
2302
  },
2303
2303
  actionBtn: {
2304
2304
  flexDirection: "row"
2305
- }
2305
+ },
2306
+ seperator: { height: 1 }
2306
2307
  });
2307
2308
 
2308
2309
  const SwipableList = (props) => {
@@ -2327,6 +2328,7 @@ const SwipableList = (props) => {
2327
2328
  rightPrimaryActionStyle,
2328
2329
  titleStyle
2329
2330
  } = props;
2331
+ const { theme } = useTheme();
2330
2332
  const ActionButton = ({
2331
2333
  icon,
2332
2334
  title,
@@ -2398,10 +2400,20 @@ const SwipableList = (props) => {
2398
2400
  {
2399
2401
  data,
2400
2402
  renderItem,
2401
- keyExtractor: (item) => item.id
2403
+ keyExtractor: (item) => item.id,
2404
+ ItemSeparatorComponent: () => /* @__PURE__ */ React__default["default"].createElement(
2405
+ reactNative.View,
2406
+ {
2407
+ style: {
2408
+ ...styles$k.seperator,
2409
+ backgroundColor: theme.BORDER_SEPRATOR
2410
+ }
2411
+ }
2412
+ )
2402
2413
  }
2403
2414
  ));
2404
2415
  };
2416
+ var SwipableList$1 = withThemeProvider(SwipableList);
2405
2417
 
2406
2418
  const styles$j = reactNative.StyleSheet.create({
2407
2419
  container: {
@@ -4477,7 +4489,7 @@ exports.ShapeType = ShapeType;
4477
4489
  exports.SingleSelectionTags = TagsComponent;
4478
4490
  exports.StarRating = Star;
4479
4491
  exports.Stepper = index$3;
4480
- exports.SwipableList = SwipableList;
4492
+ exports.SwipableList = SwipableList$1;
4481
4493
  exports.Tabs = Tabs$1;
4482
4494
  exports.Tags = Tags;
4483
4495
  exports.TextDirectType = TextDirectType;