dhre-ui-kit 0.0.144 → 0.0.145

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
@@ -661,6 +661,8 @@ interface TagsComponentProps {
661
661
  selectedTag: string;
662
662
  setSelectedTag: (val: string) => void;
663
663
  handleTagPress?: (val: string) => void | undefined;
664
+ selectedTagButton?: ViewStyle;
665
+ unselectedTagButton?: ViewStyle;
664
666
  }
665
667
  declare const _default$6: (props: TagsComponentProps) => React$1.JSX.Element;
666
668
 
package/lib/index.js CHANGED
@@ -3563,11 +3563,12 @@ const toastService = new ToastService();
3563
3563
  const TagsComponent = ({
3564
3564
  tagList,
3565
3565
  selectedTag,
3566
- handleTagPress
3566
+ handleTagPress,
3567
+ selectedTagButton,
3568
+ unselectedTagButton
3567
3569
  }) => {
3568
3570
  const { theme } = useTheme();
3569
- const styles = createStyles({ theme });
3570
- console.log(theme, "---");
3571
+ const styles = createStyles(theme);
3571
3572
  const reorderedTags = () => {
3572
3573
  if (selectedTag) {
3573
3574
  return [
@@ -3583,7 +3584,7 @@ const TagsComponent = ({
3583
3584
  onPress: () => handleTagPress?.(item.name),
3584
3585
  style: [
3585
3586
  styles.tagButton,
3586
- selectedTag === item?.name ? styles.selectedTagButton : styles.unselectedTagButton
3587
+ selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
3587
3588
  ]
3588
3589
  },
3589
3590
  /* @__PURE__ */ React__default["default"].createElement(
@@ -3621,21 +3622,22 @@ const createStyles = (theme) => {
3621
3622
  paddingVertical: 8,
3622
3623
  paddingHorizontal: 12,
3623
3624
  borderRadius: 20,
3624
- marginHorizontal: 8,
3625
- borderWidth: 1
3625
+ marginHorizontal: 8
3626
3626
  },
3627
3627
  selectedTagButton: {
3628
- backgroundColor: theme[Theme.SURFACE_INVERTED],
3629
- borderColor: theme[Theme.SURFACE_INVERTED]
3628
+ backgroundColor: theme.SURFACE_INVERTED,
3629
+ borderColor: theme.SURFACE_INVERTED,
3630
+ borderWidth: 1
3630
3631
  },
3631
3632
  unselectedTagButton: {
3632
3633
  backgroundColor: "transparent",
3633
- borderColor: theme[Theme.BORDER_SECONDRY]
3634
+ borderColor: theme.BORDER_SECONDRY,
3635
+ borderWidth: 1
3634
3636
  },
3635
3637
  closeButton: {
3636
3638
  marginLeft: 10,
3637
3639
  fontSize: 18,
3638
- color: theme[Theme.SURFACE_PRIMARY]
3640
+ color: theme.BORDER_SECONDRY
3639
3641
  }
3640
3642
  });
3641
3643
  };