@algorithm-shift/design-system 1.2.954 → 1.2.956
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/dist/client.d.mts +4 -4
- package/dist/client.d.ts +4 -4
- package/dist/index.css +24 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +26 -24
- package/dist/index.d.ts +26 -24
- package/dist/index.js +609 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -566
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ interface FormWrapperProps<T extends z.ZodObject<any>> {
|
|
|
7
7
|
validation?: Record<string, any>;
|
|
8
8
|
formName?: string;
|
|
9
9
|
defaultValues?: Partial<z.infer<T>> | any;
|
|
10
|
-
children?:
|
|
10
|
+
children?: React.ReactNode | ((form: UseFormReturn<z.infer<T>>) => React.ReactNode);
|
|
11
11
|
onSubmit?: (data: z.infer<T>) => void;
|
|
12
12
|
onReset?: () => void;
|
|
13
13
|
}
|
|
@@ -17,7 +17,7 @@ interface FormProps<T extends z.ZodObject<any>> {
|
|
|
17
17
|
validation?: any[];
|
|
18
18
|
formName?: string;
|
|
19
19
|
defaultValues?: Partial<z.infer<T>> | any;
|
|
20
|
-
children?:
|
|
20
|
+
children?: React.ReactNode;
|
|
21
21
|
onSubmit?: (data: z.infer<T>) => void;
|
|
22
22
|
onReset?: () => void;
|
|
23
23
|
}
|
|
@@ -35,7 +35,7 @@ type CanvasAction = {
|
|
|
35
35
|
declare function stateReducer(state: CanvasState, action: CanvasAction): CanvasState;
|
|
36
36
|
|
|
37
37
|
declare function StateProvider({ children, initialState }: {
|
|
38
|
-
children:
|
|
38
|
+
children: React.ReactNode;
|
|
39
39
|
initialState?: CanvasState;
|
|
40
40
|
}): react_jsx_runtime.JSX.Element;
|
|
41
41
|
declare function useAppState(): any;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ interface FormWrapperProps<T extends z.ZodObject<any>> {
|
|
|
7
7
|
validation?: Record<string, any>;
|
|
8
8
|
formName?: string;
|
|
9
9
|
defaultValues?: Partial<z.infer<T>> | any;
|
|
10
|
-
children?:
|
|
10
|
+
children?: React.ReactNode | ((form: UseFormReturn<z.infer<T>>) => React.ReactNode);
|
|
11
11
|
onSubmit?: (data: z.infer<T>) => void;
|
|
12
12
|
onReset?: () => void;
|
|
13
13
|
}
|
|
@@ -17,7 +17,7 @@ interface FormProps<T extends z.ZodObject<any>> {
|
|
|
17
17
|
validation?: any[];
|
|
18
18
|
formName?: string;
|
|
19
19
|
defaultValues?: Partial<z.infer<T>> | any;
|
|
20
|
-
children?:
|
|
20
|
+
children?: React.ReactNode;
|
|
21
21
|
onSubmit?: (data: z.infer<T>) => void;
|
|
22
22
|
onReset?: () => void;
|
|
23
23
|
}
|
|
@@ -35,7 +35,7 @@ type CanvasAction = {
|
|
|
35
35
|
declare function stateReducer(state: CanvasState, action: CanvasAction): CanvasState;
|
|
36
36
|
|
|
37
37
|
declare function StateProvider({ children, initialState }: {
|
|
38
|
-
children:
|
|
38
|
+
children: React.ReactNode;
|
|
39
39
|
initialState?: CanvasState;
|
|
40
40
|
}): react_jsx_runtime.JSX.Element;
|
|
41
41
|
declare function useAppState(): any;
|
package/dist/index.css
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"Courier New",
|
|
23
23
|
monospace;
|
|
24
24
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
25
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
25
26
|
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
26
27
|
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
|
27
28
|
--color-green-50: oklch(98.2% 0.018 155.826);
|
|
@@ -389,6 +390,9 @@
|
|
|
389
390
|
.z-\[900\] {
|
|
390
391
|
z-index: 900;
|
|
391
392
|
}
|
|
393
|
+
.z-\[999\] {
|
|
394
|
+
z-index: 999;
|
|
395
|
+
}
|
|
392
396
|
.col-span-12 {
|
|
393
397
|
grid-column: span 12 / span 12;
|
|
394
398
|
}
|
|
@@ -761,6 +765,9 @@
|
|
|
761
765
|
.min-w-\[8rem\] {
|
|
762
766
|
min-width: 8rem;
|
|
763
767
|
}
|
|
768
|
+
.min-w-\[60px\] {
|
|
769
|
+
min-width: 60px;
|
|
770
|
+
}
|
|
764
771
|
.min-w-\[80px\] {
|
|
765
772
|
min-width: 80px;
|
|
766
773
|
}
|
|
@@ -1255,6 +1262,9 @@
|
|
|
1255
1262
|
.pr-2 {
|
|
1256
1263
|
padding-right: calc(var(--spacing) * 2);
|
|
1257
1264
|
}
|
|
1265
|
+
.pr-7 {
|
|
1266
|
+
padding-right: calc(var(--spacing) * 7);
|
|
1267
|
+
}
|
|
1258
1268
|
.pr-8 {
|
|
1259
1269
|
padding-right: calc(var(--spacing) * 8);
|
|
1260
1270
|
}
|
|
@@ -1884,6 +1894,13 @@
|
|
|
1884
1894
|
}
|
|
1885
1895
|
}
|
|
1886
1896
|
}
|
|
1897
|
+
.hover\:bg-gray-200 {
|
|
1898
|
+
&:hover {
|
|
1899
|
+
@media (hover: hover) {
|
|
1900
|
+
background-color: var(--color-gray-200);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1887
1904
|
.hover\:bg-gray-400 {
|
|
1888
1905
|
&:hover {
|
|
1889
1906
|
@media (hover: hover) {
|
|
@@ -1977,6 +1994,13 @@
|
|
|
1977
1994
|
}
|
|
1978
1995
|
}
|
|
1979
1996
|
}
|
|
1997
|
+
.hover\:text-red-600 {
|
|
1998
|
+
&:hover {
|
|
1999
|
+
@media (hover: hover) {
|
|
2000
|
+
color: var(--color-red-600);
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
1980
2004
|
.hover\:underline {
|
|
1981
2005
|
&:hover {
|
|
1982
2006
|
@media (hover: hover) {
|