dhre-ui-kit 0.0.141 → 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.mjs CHANGED
@@ -2259,7 +2259,6 @@ const styles$k = StyleSheet.create({
2259
2259
  container: {
2260
2260
  flex: 1
2261
2261
  },
2262
- swippableContainer: { paddingVertical: verticalScale(16) },
2263
2262
  actionButton: {
2264
2263
  justifyContent: "center",
2265
2264
  alignItems: "center",
@@ -2270,7 +2269,8 @@ const styles$k = StyleSheet.create({
2270
2269
  },
2271
2270
  actionBtn: {
2272
2271
  flexDirection: "row"
2273
- }
2272
+ },
2273
+ seperator: { height: 1 }
2274
2274
  });
2275
2275
 
2276
2276
  const SwipableList = (props) => {
@@ -2295,6 +2295,7 @@ const SwipableList = (props) => {
2295
2295
  rightPrimaryActionStyle,
2296
2296
  titleStyle
2297
2297
  } = props;
2298
+ const { theme } = useTheme();
2298
2299
  const ActionButton = ({
2299
2300
  icon,
2300
2301
  title,
@@ -2357,8 +2358,7 @@ const SwipableList = (props) => {
2357
2358
  item.isRead ? leftSecondaryActionInActiveIcon : leftSecondaryActionActiveIcon,
2358
2359
  item.isRead ? leftSecondaryActionInActiveTitle : leftSecondaryActionActiveTitle
2359
2360
  ),
2360
- renderRightActions: () => rightActionHandle(item),
2361
- containerStyle: styles$k.swippableContainer
2361
+ renderRightActions: () => rightActionHandle(item)
2362
2362
  },
2363
2363
  props?.renderItem(item)
2364
2364
  ));
@@ -2367,10 +2367,20 @@ const SwipableList = (props) => {
2367
2367
  {
2368
2368
  data,
2369
2369
  renderItem,
2370
- keyExtractor: (item) => item.id
2370
+ keyExtractor: (item) => item.id,
2371
+ ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(
2372
+ View,
2373
+ {
2374
+ style: {
2375
+ ...styles$k.seperator,
2376
+ backgroundColor: theme.BORDER_SEPRATOR
2377
+ }
2378
+ }
2379
+ )
2371
2380
  }
2372
2381
  ));
2373
2382
  };
2383
+ var SwipableList$1 = withThemeProvider(SwipableList);
2374
2384
 
2375
2385
  const styles$j = StyleSheet.create({
2376
2386
  container: {
@@ -4400,5 +4410,5 @@ const PropertyDetails = ({
4400
4410
  };
4401
4411
  var index = withThemeProvider(PropertyDetails);
4402
4412
 
4403
- export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, index$4 as OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
4413
+ export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, index$4 as OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList$1 as SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
4404
4414
  //# sourceMappingURL=index.mjs.map