ublo-lib 1.47.29 → 1.47.31
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.
|
@@ -43,7 +43,6 @@ function CustomContactForm({ site, kind, title, fields, presets, className, inne
|
|
|
43
43
|
else {
|
|
44
44
|
snackbar.show({ type: "success", message: Messages.get(lang, "sent") });
|
|
45
45
|
Plausible.sendGoal("Contact-us (other requests)");
|
|
46
|
-
setData((currentData) => getInitialFormState(fields, undefined, currentData.subject?.value));
|
|
47
46
|
resetForm();
|
|
48
47
|
}
|
|
49
48
|
setSending(false);
|
|
@@ -52,7 +51,9 @@ function CustomContactForm({ site, kind, title, fields, presets, className, inne
|
|
|
52
51
|
const resetForm = () => {
|
|
53
52
|
presets?.setter?.(undefined);
|
|
54
53
|
setData((currentData) => getInitialFormState(fields, undefined, currentData.subject?.value));
|
|
54
|
+
setReady(false);
|
|
55
55
|
setFormKey((prevKey) => prevKey + 1);
|
|
56
|
+
setReady(true);
|
|
56
57
|
};
|
|
57
58
|
const blurForm = () => {
|
|
58
59
|
const activeElement = document.activeElement;
|
|
@@ -129,7 +129,7 @@ button.button {
|
|
|
129
129
|
background-color: var(--ds-grey-500, #484848);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.selected button.button {
|
|
132
|
+
.weeks:not(.withPeriods) .selected button.button {
|
|
133
133
|
position: relative;
|
|
134
134
|
background-color: var(--ds-secondary, var(--ds-blue-400, #4177f6));
|
|
135
135
|
}
|
|
@@ -145,12 +145,16 @@ button.button::before {
|
|
|
145
145
|
background-color: var(--ds-secondary, var(--ds-blue-400, #4177f6));
|
|
146
146
|
opacity: 0;
|
|
147
147
|
transform: scaleX(0.8);
|
|
148
|
-
transition:
|
|
149
|
-
|
|
148
|
+
transition:
|
|
149
|
+
opacity 160ms var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
150
150
|
transform 160ms var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
151
151
|
pointer-events: none;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
.weeks.withPeriods button.button::before {
|
|
155
|
+
content: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
154
158
|
.selected button.button::before {
|
|
155
159
|
opacity: 0.5;
|
|
156
160
|
transform: none;
|
|
@@ -158,8 +162,7 @@ button.button::before {
|
|
|
158
162
|
|
|
159
163
|
.weeks.withPeriods .selected button.button {
|
|
160
164
|
outline: 2px solid var(--ds-primary, var(--ds-blue-500, #002dcc));
|
|
161
|
-
outline-offset: -
|
|
162
|
-
border-radius: var(--ds-radius-100, 4px);
|
|
165
|
+
outline-offset: -2px;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
168
|
.check {
|