quicksnack 3.46.4 → 3.48.0
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/breakpoints.css +4 -0
- package/dist/src/form/ScaffoldForm/scaffoldFormProps.d.ts +79 -1
- package/dist/src/form/ScaffoldForm/scaffoldPasswordProps.d.ts +16 -1
- package/dist/src/form/ScaffoldForm/utils/FormPositioner.d.ts +3 -3
- package/dist/theme.css +2 -0
- package/dist/utils.css +1531 -0
- package/dist/variables.css +153 -0
- package/package.json +2 -1
|
@@ -1,4 +1,82 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const scaffoldFormProps: {
|
|
2
|
-
fields: {
|
|
3
|
+
fields: {
|
|
4
|
+
firstName: {
|
|
5
|
+
type: "TextField";
|
|
6
|
+
props: {
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
prefix: {
|
|
11
|
+
type: "TextField";
|
|
12
|
+
props: {
|
|
13
|
+
label: string;
|
|
14
|
+
isRequired: true;
|
|
15
|
+
hint: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
lastName: {
|
|
19
|
+
type: "TextField";
|
|
20
|
+
props: {
|
|
21
|
+
label: string;
|
|
22
|
+
hint: string;
|
|
23
|
+
error: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
avatar: {
|
|
27
|
+
type: "FileField";
|
|
28
|
+
props: {
|
|
29
|
+
label: string;
|
|
30
|
+
placeholder: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
description: {
|
|
34
|
+
type: "TextField";
|
|
35
|
+
props: {
|
|
36
|
+
label: string;
|
|
37
|
+
multiline: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
toppings: {
|
|
41
|
+
type: "Checkbox";
|
|
42
|
+
props: {
|
|
43
|
+
label: string;
|
|
44
|
+
error: string;
|
|
45
|
+
options: {
|
|
46
|
+
tomato: string;
|
|
47
|
+
cheese: string;
|
|
48
|
+
pineapple: string;
|
|
49
|
+
pepperoni: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
crust: {
|
|
54
|
+
type: "Select";
|
|
55
|
+
props: {
|
|
56
|
+
label: string;
|
|
57
|
+
options: {
|
|
58
|
+
plain: string;
|
|
59
|
+
wholeWheat: string;
|
|
60
|
+
cheese: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
terms: {
|
|
65
|
+
type: "Checkbox";
|
|
66
|
+
props: {
|
|
67
|
+
options: {
|
|
68
|
+
agree: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
submit: {
|
|
73
|
+
type: "Button";
|
|
74
|
+
props: {
|
|
75
|
+
children: string;
|
|
76
|
+
variant: "primary";
|
|
77
|
+
icon: JSX.Element;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
3
81
|
columns: import("../..").Responsive<string>;
|
|
4
82
|
};
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export declare const scaffoldPasswordProps: {
|
|
2
|
-
fields: {
|
|
2
|
+
fields: {
|
|
3
|
+
password: {
|
|
4
|
+
type: "PasswordStrengthField";
|
|
5
|
+
props: {
|
|
6
|
+
type: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
prefix: {
|
|
11
|
+
type: "TextField";
|
|
12
|
+
props: {
|
|
13
|
+
type: "password";
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
3
18
|
columns: import("../..").Responsive<string>;
|
|
4
19
|
};
|
|
@@ -18,15 +18,15 @@ export declare class FormPositioner<T extends Fields, K extends keyof T> {
|
|
|
18
18
|
* .setVertical("mobileS", 1) // NOTE: align everything in a single column for mobileS until laptop
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
setGrid(breakPoint: BreakPoint, columns: string, arrayGrid: Array<Array<K>>): FormPositioner<
|
|
21
|
+
setGrid(breakPoint: BreakPoint, columns: string, arrayGrid: Array<Array<K>>): FormPositioner<T, keyof T>;
|
|
22
22
|
/**
|
|
23
23
|
* Aligns all input-fields vertically.
|
|
24
24
|
*/
|
|
25
|
-
setVertical(breakPoint: BreakPoint, numColumns?: number, columns?: string): FormPositioner<
|
|
25
|
+
setVertical(breakPoint: BreakPoint, numColumns?: number, columns?: string): FormPositioner<T, keyof T>;
|
|
26
26
|
/**
|
|
27
27
|
* Aligns all input-fields horizontally.
|
|
28
28
|
*/
|
|
29
|
-
setHorizontal(breakPoint: BreakPoint, columns?: string): FormPositioner<
|
|
29
|
+
setHorizontal(breakPoint: BreakPoint, columns?: string): FormPositioner<T, keyof T>;
|
|
30
30
|
getColumns(): Responsive<string>;
|
|
31
31
|
getFields(): T;
|
|
32
32
|
getScaffoldProps(): {
|
package/dist/theme.css
ADDED