@moises.ai/design-system 3.6.19 → 3.6.21
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/package.json
CHANGED
|
@@ -35,15 +35,18 @@ export const CreateNew = ({
|
|
|
35
35
|
setScrolledEnd(atEnd)
|
|
36
36
|
}, [])
|
|
37
37
|
|
|
38
|
+
const isPromptLocked = !!inspireMeLoading || !!boostLoading
|
|
39
|
+
|
|
38
40
|
const handleTextConditioningChange = useCallback(
|
|
39
41
|
(e) => {
|
|
42
|
+
if (isPromptLocked) return
|
|
40
43
|
const newValue = e.target.value
|
|
41
44
|
onFormStateChange((prevState) => ({
|
|
42
45
|
...prevState,
|
|
43
46
|
conditioningText: newValue,
|
|
44
47
|
}))
|
|
45
48
|
},
|
|
46
|
-
[onFormStateChange],
|
|
49
|
+
[onFormStateChange, isPromptLocked],
|
|
47
50
|
)
|
|
48
51
|
|
|
49
52
|
useEffect(() => {
|
|
@@ -104,12 +107,15 @@ export const CreateNew = ({
|
|
|
104
107
|
borderRadius: 'var(--radius-4)',
|
|
105
108
|
}}
|
|
106
109
|
>
|
|
107
|
-
<Box
|
|
110
|
+
<Box
|
|
111
|
+
py="2"
|
|
112
|
+
px="3px"
|
|
113
|
+
style={isPromptLocked ? { pointerEvents: 'none', opacity: 0.5 } : undefined}
|
|
114
|
+
>
|
|
108
115
|
<TextArea
|
|
109
116
|
value={formState.conditioningText}
|
|
110
117
|
onFocus={onTextConditioningFocus}
|
|
111
118
|
onChange={handleTextConditioningChange}
|
|
112
|
-
disabled={!!inspireMeLoading || !!boostLoading}
|
|
113
119
|
placeholder={i18n._(
|
|
114
120
|
`Describe your desired sound characteristics (ex: ${getInstrumentDescription(
|
|
115
121
|
formState.instrument,
|
|
@@ -25,15 +25,12 @@
|
|
|
25
25
|
.rt-TextAreaInput:where(:disabled, :read-only){
|
|
26
26
|
color: var(--neutral-alpha-9) !important;
|
|
27
27
|
-webkit-text-fill-color: var(--neutral-alpha-9) !important;
|
|
28
|
+
background-color: var(--neutral-alpha-3) !important;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
.
|
|
31
|
-
.textArea.disabled *,
|
|
32
|
-
.textArea.disabled textarea {
|
|
31
|
+
.disabled textarea {
|
|
33
32
|
color: var(--neutral-alpha-9) !important;
|
|
34
33
|
-webkit-text-fill-color: var(--neutral-alpha-9) !important;
|
|
35
|
-
background-color: transparent !important;
|
|
36
|
-
box-shadow: none !important;
|
|
37
34
|
opacity: 1 !important;
|
|
38
35
|
}
|
|
39
36
|
|