dhre-ui-kit 0.0.144 → 0.0.146
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 +2 -0
- package/lib/index.js +23 -19
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +23 -19
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
@@ -3029,32 +3029,34 @@ const createStyles$1 = (theme) => {
|
|
|
3029
3029
|
flex: 1,
|
|
3030
3030
|
padding: 20,
|
|
3031
3031
|
justifyContent: "center",
|
|
3032
|
-
backgroundColor: theme
|
|
3032
|
+
backgroundColor: theme.SURFACE_PRIMARY
|
|
3033
3033
|
},
|
|
3034
3034
|
headerText: {
|
|
3035
|
-
color: theme
|
|
3035
|
+
color: theme.CONTENT_PRIMARY,
|
|
3036
3036
|
marginBottom: 20
|
|
3037
3037
|
},
|
|
3038
3038
|
textInput: {
|
|
3039
3039
|
borderRadius: 10,
|
|
3040
|
-
padding:
|
|
3041
|
-
color:
|
|
3040
|
+
padding: 8,
|
|
3041
|
+
color: DHRE_COLORS_TEXT.DH_BLACK,
|
|
3042
3042
|
textAlignVertical: "top",
|
|
3043
3043
|
minHeight: 100,
|
|
3044
|
-
borderColor: theme
|
|
3044
|
+
borderColor: theme.BORDER_INVERTED,
|
|
3045
|
+
borderWidth: 1,
|
|
3046
|
+
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE
|
|
3045
3047
|
},
|
|
3046
3048
|
charCounter: {
|
|
3047
3049
|
textAlign: "left",
|
|
3048
3050
|
marginTop: 10,
|
|
3049
|
-
color: theme
|
|
3051
|
+
color: theme.CONTENT_SECONDRY
|
|
3050
3052
|
},
|
|
3051
3053
|
buttonContainer: {
|
|
3052
3054
|
flexDirection: "row",
|
|
3053
3055
|
marginTop: 20
|
|
3054
3056
|
},
|
|
3055
3057
|
feedbackButton: {
|
|
3056
|
-
backgroundColor: theme
|
|
3057
|
-
borderColor: theme
|
|
3058
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
3059
|
+
borderColor: theme.BORDER_INVERTED,
|
|
3058
3060
|
borderWidth: 1,
|
|
3059
3061
|
paddingVertical: 10,
|
|
3060
3062
|
paddingHorizontal: 20,
|
|
@@ -3093,8 +3095,8 @@ const FeedbackForm = ({
|
|
|
3093
3095
|
{
|
|
3094
3096
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
3095
3097
|
placeholder: inputText,
|
|
3096
|
-
placeholderTextColor: "gray",
|
|
3097
3098
|
multiline: true,
|
|
3099
|
+
placeholderTextColor: Theme.CONTENT_SECONDRY,
|
|
3098
3100
|
maxLength: maxChars,
|
|
3099
3101
|
value: feedback,
|
|
3100
3102
|
onChangeText: (text) => setFeedback(text)
|
|
@@ -3563,11 +3565,12 @@ const toastService = new ToastService();
|
|
|
3563
3565
|
const TagsComponent = ({
|
|
3564
3566
|
tagList,
|
|
3565
3567
|
selectedTag,
|
|
3566
|
-
handleTagPress
|
|
3568
|
+
handleTagPress,
|
|
3569
|
+
selectedTagButton,
|
|
3570
|
+
unselectedTagButton
|
|
3567
3571
|
}) => {
|
|
3568
3572
|
const { theme } = useTheme();
|
|
3569
|
-
const styles = createStyles(
|
|
3570
|
-
console.log(theme, "---");
|
|
3573
|
+
const styles = createStyles(theme);
|
|
3571
3574
|
const reorderedTags = () => {
|
|
3572
3575
|
if (selectedTag) {
|
|
3573
3576
|
return [
|
|
@@ -3583,7 +3586,7 @@ const TagsComponent = ({
|
|
|
3583
3586
|
onPress: () => handleTagPress?.(item.name),
|
|
3584
3587
|
style: [
|
|
3585
3588
|
styles.tagButton,
|
|
3586
|
-
selectedTag === item?.name ? styles.selectedTagButton : styles.unselectedTagButton
|
|
3589
|
+
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3587
3590
|
]
|
|
3588
3591
|
},
|
|
3589
3592
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3621,21 +3624,22 @@ const createStyles = (theme) => {
|
|
|
3621
3624
|
paddingVertical: 8,
|
|
3622
3625
|
paddingHorizontal: 12,
|
|
3623
3626
|
borderRadius: 20,
|
|
3624
|
-
marginHorizontal: 8
|
|
3625
|
-
borderWidth: 1
|
|
3627
|
+
marginHorizontal: 8
|
|
3626
3628
|
},
|
|
3627
3629
|
selectedTagButton: {
|
|
3628
|
-
backgroundColor: theme
|
|
3629
|
-
borderColor: theme
|
|
3630
|
+
backgroundColor: theme.SURFACE_INVERTED,
|
|
3631
|
+
borderColor: theme.SURFACE_INVERTED,
|
|
3632
|
+
borderWidth: 1
|
|
3630
3633
|
},
|
|
3631
3634
|
unselectedTagButton: {
|
|
3632
3635
|
backgroundColor: "transparent",
|
|
3633
|
-
borderColor: theme
|
|
3636
|
+
borderColor: theme.BORDER_SECONDRY,
|
|
3637
|
+
borderWidth: 1
|
|
3634
3638
|
},
|
|
3635
3639
|
closeButton: {
|
|
3636
3640
|
marginLeft: 10,
|
|
3637
3641
|
fontSize: 18,
|
|
3638
|
-
color: theme
|
|
3642
|
+
color: theme.BORDER_SECONDRY
|
|
3639
3643
|
}
|
|
3640
3644
|
});
|
|
3641
3645
|
};
|