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.mjs
CHANGED
|
@@ -2996,32 +2996,34 @@ const createStyles$1 = (theme) => {
|
|
|
2996
2996
|
flex: 1,
|
|
2997
2997
|
padding: 20,
|
|
2998
2998
|
justifyContent: "center",
|
|
2999
|
-
backgroundColor: theme
|
|
2999
|
+
backgroundColor: theme.SURFACE_PRIMARY
|
|
3000
3000
|
},
|
|
3001
3001
|
headerText: {
|
|
3002
|
-
color: theme
|
|
3002
|
+
color: theme.CONTENT_PRIMARY,
|
|
3003
3003
|
marginBottom: 20
|
|
3004
3004
|
},
|
|
3005
3005
|
textInput: {
|
|
3006
3006
|
borderRadius: 10,
|
|
3007
|
-
padding:
|
|
3008
|
-
color:
|
|
3007
|
+
padding: 8,
|
|
3008
|
+
color: DHRE_COLORS_TEXT.DH_BLACK,
|
|
3009
3009
|
textAlignVertical: "top",
|
|
3010
3010
|
minHeight: 100,
|
|
3011
|
-
borderColor: theme
|
|
3011
|
+
borderColor: theme.BORDER_INVERTED,
|
|
3012
|
+
borderWidth: 1,
|
|
3013
|
+
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE
|
|
3012
3014
|
},
|
|
3013
3015
|
charCounter: {
|
|
3014
3016
|
textAlign: "left",
|
|
3015
3017
|
marginTop: 10,
|
|
3016
|
-
color: theme
|
|
3018
|
+
color: theme.CONTENT_SECONDRY
|
|
3017
3019
|
},
|
|
3018
3020
|
buttonContainer: {
|
|
3019
3021
|
flexDirection: "row",
|
|
3020
3022
|
marginTop: 20
|
|
3021
3023
|
},
|
|
3022
3024
|
feedbackButton: {
|
|
3023
|
-
backgroundColor: theme
|
|
3024
|
-
borderColor: theme
|
|
3025
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
3026
|
+
borderColor: theme.BORDER_INVERTED,
|
|
3025
3027
|
borderWidth: 1,
|
|
3026
3028
|
paddingVertical: 10,
|
|
3027
3029
|
paddingHorizontal: 20,
|
|
@@ -3060,8 +3062,8 @@ const FeedbackForm = ({
|
|
|
3060
3062
|
{
|
|
3061
3063
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
3062
3064
|
placeholder: inputText,
|
|
3063
|
-
placeholderTextColor: "gray",
|
|
3064
3065
|
multiline: true,
|
|
3066
|
+
placeholderTextColor: Theme.CONTENT_SECONDRY,
|
|
3065
3067
|
maxLength: maxChars,
|
|
3066
3068
|
value: feedback,
|
|
3067
3069
|
onChangeText: (text) => setFeedback(text)
|
|
@@ -3530,11 +3532,12 @@ const toastService = new ToastService();
|
|
|
3530
3532
|
const TagsComponent = ({
|
|
3531
3533
|
tagList,
|
|
3532
3534
|
selectedTag,
|
|
3533
|
-
handleTagPress
|
|
3535
|
+
handleTagPress,
|
|
3536
|
+
selectedTagButton,
|
|
3537
|
+
unselectedTagButton
|
|
3534
3538
|
}) => {
|
|
3535
3539
|
const { theme } = useTheme();
|
|
3536
|
-
const styles = createStyles(
|
|
3537
|
-
console.log(theme, "---");
|
|
3540
|
+
const styles = createStyles(theme);
|
|
3538
3541
|
const reorderedTags = () => {
|
|
3539
3542
|
if (selectedTag) {
|
|
3540
3543
|
return [
|
|
@@ -3550,7 +3553,7 @@ const TagsComponent = ({
|
|
|
3550
3553
|
onPress: () => handleTagPress?.(item.name),
|
|
3551
3554
|
style: [
|
|
3552
3555
|
styles.tagButton,
|
|
3553
|
-
selectedTag === item?.name ? styles.selectedTagButton : styles.unselectedTagButton
|
|
3556
|
+
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3554
3557
|
]
|
|
3555
3558
|
},
|
|
3556
3559
|
/* @__PURE__ */ React.createElement(
|
|
@@ -3588,21 +3591,22 @@ const createStyles = (theme) => {
|
|
|
3588
3591
|
paddingVertical: 8,
|
|
3589
3592
|
paddingHorizontal: 12,
|
|
3590
3593
|
borderRadius: 20,
|
|
3591
|
-
marginHorizontal: 8
|
|
3592
|
-
borderWidth: 1
|
|
3594
|
+
marginHorizontal: 8
|
|
3593
3595
|
},
|
|
3594
3596
|
selectedTagButton: {
|
|
3595
|
-
backgroundColor: theme
|
|
3596
|
-
borderColor: theme
|
|
3597
|
+
backgroundColor: theme.SURFACE_INVERTED,
|
|
3598
|
+
borderColor: theme.SURFACE_INVERTED,
|
|
3599
|
+
borderWidth: 1
|
|
3597
3600
|
},
|
|
3598
3601
|
unselectedTagButton: {
|
|
3599
3602
|
backgroundColor: "transparent",
|
|
3600
|
-
borderColor: theme
|
|
3603
|
+
borderColor: theme.BORDER_SECONDRY,
|
|
3604
|
+
borderWidth: 1
|
|
3601
3605
|
},
|
|
3602
3606
|
closeButton: {
|
|
3603
3607
|
marginLeft: 10,
|
|
3604
3608
|
fontSize: 18,
|
|
3605
|
-
color: theme
|
|
3609
|
+
color: theme.BORDER_SECONDRY
|
|
3606
3610
|
}
|
|
3607
3611
|
});
|
|
3608
3612
|
};
|