dhre-ui-kit 0.0.197 → 0.0.199
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.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3072,6 +3072,14 @@ const createStyles$1 = (theme) => {
|
|
|
3072
3072
|
paddingHorizontal: 20,
|
|
3073
3073
|
borderRadius: 30
|
|
3074
3074
|
},
|
|
3075
|
+
feedbackButtonDisable: {
|
|
3076
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
3077
|
+
borderColor: theme.SURFACE_DISABLE,
|
|
3078
|
+
borderWidth: 1,
|
|
3079
|
+
paddingVertical: 10,
|
|
3080
|
+
paddingHorizontal: 20,
|
|
3081
|
+
borderRadius: 30
|
|
3082
|
+
},
|
|
3075
3083
|
cancelButton: {
|
|
3076
3084
|
paddingVertical: 10,
|
|
3077
3085
|
paddingHorizontal: 40
|
|
@@ -3119,12 +3127,12 @@ const FeedbackForm = ({
|
|
|
3119
3127
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3120
3128
|
style: styles.charCounter
|
|
3121
3129
|
}
|
|
3122
|
-
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3130
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { disabled: feedback?.length < 1, style: feedback?.length < 1 ? styles.feedbackButtonDisable : styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3123
3131
|
CustomText$1,
|
|
3124
3132
|
{
|
|
3125
3133
|
text: leftBtnTxt,
|
|
3126
3134
|
variant: FontStyle.L1_REGULAR,
|
|
3127
|
-
textColor: Theme.CONTENT_PRIMARY
|
|
3135
|
+
textColor: feedback?.length < 1 ? Theme.CONTENT_SECONDRY : Theme.CONTENT_PRIMARY
|
|
3128
3136
|
}
|
|
3129
3137
|
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
|
|
3130
3138
|
CustomText$1,
|