@manafishrov/ui 1.3.5 → 1.3.7
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
|
@@ -9,12 +9,12 @@ export type AutoSubmitProps = {
|
|
|
9
9
|
export const AutoSubmit: Component<AutoSubmitProps> = (props) => {
|
|
10
10
|
const form = useFormContext();
|
|
11
11
|
const values = form.useStore((state) => state.values);
|
|
12
|
-
const
|
|
12
|
+
const isDirty = form.useStore((state) => state.isDirty);
|
|
13
13
|
|
|
14
14
|
createEffect(() => {
|
|
15
15
|
values();
|
|
16
16
|
|
|
17
|
-
if (!
|
|
17
|
+
if (!isDirty()) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* Toast positioning and animations - required for Ark UI stacking behavior */
|
|
2
2
|
|
|
3
3
|
[data-scope='toast'][data-part='root'] {
|
|
4
|
-
translate: var(--x
|
|
5
|
-
scale: var(--scale
|
|
6
|
-
z-index: var(--z-index
|
|
7
|
-
height: var(--height
|
|
8
|
-
opacity: var(--opacity
|
|
4
|
+
translate: var(--x) var(--y);
|
|
5
|
+
scale: var(--scale);
|
|
6
|
+
z-index: var(--z-index);
|
|
7
|
+
height: var(--height);
|
|
8
|
+
opacity: var(--opacity);
|
|
9
9
|
will-change: translate, opacity, scale, height;
|
|
10
10
|
transition:
|
|
11
11
|
translate 400ms,
|