@loopr-ai/craft 0.7.2 → 0.7.3
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/{ButtonBase-fc1e48eb.js → ButtonBase-85c9347b.js} +3 -3
- package/dist/{TextField-a534df29.js → TextField-fded06e5.js} +7 -7
- package/dist/Tooltip-b926c320.js +2022 -0
- package/dist/{TransitionGroupContext-ba502e63.js → TransitionGroupContext-fe9a562f.js} +3 -3
- package/dist/ZoomControllers-36e39bb0.js +1432 -0
- package/dist/components/cell/AvatarGroup/index.js +3 -3
- package/dist/components/cell/Button/index.js +3 -3
- package/dist/components/cell/Chip/index.js +5 -5
- package/dist/components/cell/ProgressBar/index.js +3 -3
- package/dist/components/cell/Search/index.js +2 -2
- package/dist/components/cell/Typography/index.js +5 -19
- package/dist/components/organ/Form/Form.interfaces.d.ts +6 -6
- package/dist/components/organ/Form/Form.styles.d.ts +99 -2
- package/dist/components/organ/Form/Form.styles.js +99 -4
- package/dist/components/organ/Form/FormInput.js +517 -0
- package/dist/components/organ/Form/index.js +155 -107
- package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +2 -2
- package/dist/components/organ/ZoomControlWithDrag/index.js +2 -2
- package/dist/{createSvgIcon-bb3d4825.js → createSvgIcon-58aa3adf.js} +5 -5
- package/dist/{Grow-a906cda2.js → createSvgIcon-f773ce57.js} +4020 -3944
- package/dist/{createTheme-ca1567c6.js → createTheme-a4db2989.js} +7 -7
- package/dist/{exactProp-3d9df1ae.js → exactProp-d79ccada.js} +1 -1
- package/dist/{extendSxProp-fc2654e5.js → extendSxProp-db8b9da5.js} +1 -1
- package/dist/global/colors.d.ts +5 -0
- package/dist/global/colors.js +11 -6
- package/dist/global/constants.d.ts +3 -0
- package/dist/global/constants.js +6 -1
- package/dist/global/theme.js +1 -1
- package/dist/{Typography-65e5f8a8.js → index-03287c17.js} +61 -45
- package/dist/main.js +10 -10
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-80b57810.js → styled-126c6a62.js} +49 -49
- package/dist/{useTheme-16446f25.js → useTheme-573c40a2.js} +1 -1
- package/package.json +1 -1
- package/dist/Box-8cd400c2.js +0 -58
- package/dist/ZoomControllers-8a147df0.js +0 -3390
- package/dist/components/organ/Form/FieldInput.js +0 -442
- package/dist/createSvgIcon-8e5d9dc7.js +0 -81
- package/dist/dividerClasses-0233db5a.js +0 -10
- /package/dist/components/organ/Form/{FieldInput.d.ts → FormInput.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as h, jsxs as G } from "react/jsx-runtime";
|
|
2
|
-
import { g as I, a as l, _ as k, P as a } from "../../../createTheme-
|
|
2
|
+
import { g as I, a as l, _ as k, P as a } from "../../../createTheme-a4db2989.js";
|
|
3
3
|
import * as g from "react";
|
|
4
|
-
import { g as D,
|
|
5
|
-
import { c as q } from "../../../createSvgIcon-
|
|
4
|
+
import { g as D, s as M, a as E, c as R, b as U, f as F } from "../../../styled-126c6a62.js";
|
|
5
|
+
import { c as q } from "../../../createSvgIcon-58aa3adf.js";
|
|
6
6
|
import { c as V } from "../../../chainPropTypes-004bf492.js";
|
|
7
7
|
const B = q(/* @__PURE__ */ h("path", {
|
|
8
8
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as C, jsxs as F } from "react/jsx-runtime";
|
|
2
2
|
import { getColorToHex as v } from "../../../global/colors.js";
|
|
3
|
-
import { g as U,
|
|
3
|
+
import { g as U, c as e, a as t, e as b, _ as D, P as a } from "../../../createTheme-a4db2989.js";
|
|
4
4
|
import * as p from "react";
|
|
5
|
-
import { g as H,
|
|
6
|
-
import { B as Q } from "../../../ButtonBase-
|
|
5
|
+
import { g as H, s as y, r as A, e as q, a as J, c as R, b as K } from "../../../styled-126c6a62.js";
|
|
6
|
+
import { B as Q } from "../../../ButtonBase-85c9347b.js";
|
|
7
7
|
function X(o) {
|
|
8
8
|
return U("MuiButton", o);
|
|
9
9
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as m, jsxs as Q } from "react/jsx-runtime";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { useMemo as L } from "react";
|
|
4
|
-
import { g as X,
|
|
5
|
-
import { g as Z,
|
|
6
|
-
import { c as ao } from "../../../createSvgIcon-
|
|
7
|
-
import { u as lo } from "../../../TransitionGroupContext-
|
|
8
|
-
import { B as M } from "../../../ButtonBase-
|
|
4
|
+
import { g as X, c as r, a as f, e as b, _ as Y, P as l } from "../../../createTheme-a4db2989.js";
|
|
5
|
+
import { g as Z, s as U, a as w, c as k, b as oo } from "../../../styled-126c6a62.js";
|
|
6
|
+
import { c as ao } from "../../../createSvgIcon-58aa3adf.js";
|
|
7
|
+
import { u as lo } from "../../../TransitionGroupContext-fe9a562f.js";
|
|
8
|
+
import { B as M } from "../../../ButtonBase-85c9347b.js";
|
|
9
9
|
import { u as eo } from "../../../unsupportedProp-3dbf01f6.js";
|
|
10
10
|
const ro = ao(/* @__PURE__ */ m("path", {
|
|
11
11
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as j, jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { getColorToHex as $ } from "../../../global/colors.js";
|
|
3
|
-
import { g as D,
|
|
3
|
+
import { g as D, c as n, a as l, _ as q, P as o, l as E, b as U } from "../../../createTheme-a4db2989.js";
|
|
4
4
|
import * as z from "react";
|
|
5
|
-
import { g as w,
|
|
6
|
-
import { u as V } from "../../../useTheme-
|
|
5
|
+
import { g as w, s as h, a as A, c as F, b as K } from "../../../styled-126c6a62.js";
|
|
6
|
+
import { u as V } from "../../../useTheme-573c40a2.js";
|
|
7
7
|
import { k as P, c as x } from "../../../emotion-react.browser.esm-ff33c213.js";
|
|
8
8
|
function S(r) {
|
|
9
9
|
return D("MuiLinearProgress", r);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f, { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, i as p } from "../../../createSvgIcon-
|
|
3
|
-
import { T as m } from "../../../TextField-
|
|
2
|
+
import { r as c, i as p } from "../../../createSvgIcon-f773ce57.js";
|
|
3
|
+
import { T as m } from "../../../TextField-fded06e5.js";
|
|
4
4
|
var e = {}, v = p;
|
|
5
5
|
Object.defineProperty(e, "__esModule", {
|
|
6
6
|
value: !0
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const c = ({
|
|
6
|
-
type: o = "bodyText",
|
|
7
|
-
textColor: r = "black",
|
|
8
|
-
children: t,
|
|
9
|
-
sx: m,
|
|
10
|
-
...p
|
|
11
|
-
}) => {
|
|
12
|
-
const s = {
|
|
13
|
-
...i[o],
|
|
14
|
-
color: e(r),
|
|
15
|
-
...m
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ a(f, { sx: s, ...p, children: t });
|
|
18
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../global/colors.js";
|
|
3
|
+
import "../../../global/theme.js";
|
|
4
|
+
import { T as i } from "../../../index-03287c17.js";
|
|
19
5
|
export {
|
|
20
|
-
|
|
6
|
+
i as default
|
|
21
7
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FormInputProps } from "./FieldInput";
|
|
3
2
|
export interface InputField {
|
|
4
3
|
label: string;
|
|
5
4
|
name: string;
|
|
@@ -41,13 +40,14 @@ export interface ConfigField extends SelectField {
|
|
|
41
40
|
customComponent?: string;
|
|
42
41
|
submitDataKey?: string;
|
|
43
42
|
preFillWithDateTime?: boolean;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
value: string;
|
|
47
|
-
handleChange: (key: string, value: string) => void;
|
|
43
|
+
groupName?: string;
|
|
44
|
+
hidden?: boolean;
|
|
48
45
|
}
|
|
49
46
|
export interface CustomFields {
|
|
50
|
-
[key_name: string]:
|
|
47
|
+
[key_name: string]: {
|
|
48
|
+
component: React.ComponentType<any>;
|
|
49
|
+
props?: any;
|
|
50
|
+
};
|
|
51
51
|
}
|
|
52
52
|
export interface InvalidData {
|
|
53
53
|
message: string;
|
|
@@ -1,5 +1,102 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const styles: {
|
|
3
|
-
|
|
2
|
+
alignVertical: {
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
};
|
|
6
|
+
formInputWrapper: {
|
|
7
|
+
display: string;
|
|
8
|
+
alignItems: string;
|
|
9
|
+
outline: string;
|
|
10
|
+
outlineOffset: string;
|
|
11
|
+
border: string;
|
|
12
|
+
borderBottom: string;
|
|
13
|
+
"&:first-of-type": {
|
|
14
|
+
border: string;
|
|
15
|
+
borderRadius: string;
|
|
16
|
+
borderBottom: string;
|
|
17
|
+
};
|
|
18
|
+
"&:last-of-type": {
|
|
19
|
+
borderRadius: string;
|
|
20
|
+
borderBottom: string;
|
|
21
|
+
};
|
|
22
|
+
"&:only-of-type": {
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
};
|
|
25
|
+
"& > label": {
|
|
26
|
+
flex: number;
|
|
27
|
+
};
|
|
28
|
+
"& > div": {
|
|
29
|
+
flex: number;
|
|
30
|
+
};
|
|
31
|
+
"&:has(.Mui-focused)": {
|
|
32
|
+
outlineColor: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
heading: {
|
|
36
|
+
textAlign: string;
|
|
37
|
+
fontWeight: number;
|
|
38
|
+
margin: string;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
color: string;
|
|
42
|
+
textAlign: string;
|
|
43
|
+
padding: string;
|
|
44
|
+
};
|
|
45
|
+
textfieldWrapper: {
|
|
46
|
+
padding: string;
|
|
47
|
+
"& > div": {
|
|
48
|
+
width: string;
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
textfield: {
|
|
53
|
+
"& .MuiInputBase-root": {
|
|
54
|
+
paddingLeft: number;
|
|
55
|
+
paddingRight: number;
|
|
56
|
+
"& input": {
|
|
57
|
+
textAlign: string;
|
|
58
|
+
padding: string;
|
|
59
|
+
};
|
|
60
|
+
"& fieldset": {
|
|
61
|
+
border: string;
|
|
62
|
+
};
|
|
63
|
+
"&.Mui-focused": {
|
|
64
|
+
background: string;
|
|
65
|
+
"& .MuiSelect-select > span::before": {
|
|
66
|
+
color: string;
|
|
67
|
+
};
|
|
68
|
+
"& input::placeholder": {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
"& .MuiSelect-select": {
|
|
74
|
+
padding: string;
|
|
75
|
+
position: string;
|
|
76
|
+
"& > span::before": {
|
|
77
|
+
position: string;
|
|
78
|
+
right: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
selectDropdown: {
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
border: string;
|
|
85
|
+
borderRadius: string;
|
|
86
|
+
};
|
|
87
|
+
tooltipPopper: {
|
|
88
|
+
zIndex: number;
|
|
89
|
+
};
|
|
90
|
+
tooltip: {
|
|
91
|
+
"& .MuiTypography-root": {
|
|
92
|
+
display: string;
|
|
93
|
+
gap: string;
|
|
94
|
+
alignItems: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
errorIcon: {
|
|
98
|
+
fontSize: string;
|
|
99
|
+
color: string;
|
|
100
|
+
};
|
|
4
101
|
};
|
|
5
102
|
export default styles;
|
|
@@ -1,10 +1,105 @@
|
|
|
1
|
-
|
|
1
|
+
import { customColors as e } from "../../../global/colors.js";
|
|
2
|
+
const r = {
|
|
2
3
|
alignVertical: {
|
|
3
4
|
display: "flex",
|
|
4
|
-
flexDirection: "column"
|
|
5
|
-
|
|
5
|
+
flexDirection: "column"
|
|
6
|
+
},
|
|
7
|
+
formInputWrapper: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
outline: "1px solid transparent",
|
|
11
|
+
outlineOffset: "-1px",
|
|
12
|
+
border: `1px solid ${e.borderGrey}`,
|
|
13
|
+
borderBottom: "none",
|
|
14
|
+
"&:first-of-type": {
|
|
15
|
+
border: `1px solid ${e.borderGrey}`,
|
|
16
|
+
borderRadius: "4px 4px 0 0",
|
|
17
|
+
borderBottom: "none"
|
|
18
|
+
},
|
|
19
|
+
"&:last-of-type": {
|
|
20
|
+
borderRadius: "0 0 4px 4px",
|
|
21
|
+
borderBottom: `1px solid ${e.borderGrey}`
|
|
22
|
+
},
|
|
23
|
+
"&:only-of-type": {
|
|
24
|
+
borderRadius: "4px"
|
|
25
|
+
},
|
|
26
|
+
"& > label": {
|
|
27
|
+
flex: 1
|
|
28
|
+
},
|
|
29
|
+
"& > div": {
|
|
30
|
+
flex: 2
|
|
31
|
+
},
|
|
32
|
+
"&:has(.Mui-focused)": {
|
|
33
|
+
outlineColor: "black"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
heading: {
|
|
37
|
+
textAlign: "left",
|
|
38
|
+
fontWeight: 500,
|
|
39
|
+
margin: "0.75rem 0"
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
color: e.darkGrey,
|
|
43
|
+
textAlign: "left",
|
|
44
|
+
padding: " 0 0.75rem"
|
|
45
|
+
},
|
|
46
|
+
textfieldWrapper: {
|
|
47
|
+
padding: "0.5rem",
|
|
48
|
+
"& > div": {
|
|
49
|
+
width: "100%",
|
|
50
|
+
borderRadius: "4px"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
textfield: {
|
|
54
|
+
"& .MuiInputBase-root": {
|
|
55
|
+
paddingLeft: 0,
|
|
56
|
+
paddingRight: 0,
|
|
57
|
+
"& input": {
|
|
58
|
+
textAlign: "right",
|
|
59
|
+
padding: "0.75rem"
|
|
60
|
+
},
|
|
61
|
+
"& fieldset": {
|
|
62
|
+
border: "none"
|
|
63
|
+
},
|
|
64
|
+
"&.Mui-focused": {
|
|
65
|
+
background: e.lightGrey,
|
|
66
|
+
"& .MuiSelect-select > span::before": {
|
|
67
|
+
color: "rgba(153, 153, 153, 0.6)"
|
|
68
|
+
},
|
|
69
|
+
"& input::placeholder": {
|
|
70
|
+
color: e.grey
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"& .MuiSelect-select": {
|
|
75
|
+
padding: "0.75rem",
|
|
76
|
+
position: "relative",
|
|
77
|
+
"& > span::before": {
|
|
78
|
+
position: "absolute",
|
|
79
|
+
right: "2rem"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
selectDropdown: {
|
|
84
|
+
boxShadow: "0px 2px 8px 0px rgba(0,0,0,0.8)",
|
|
85
|
+
border: "2px solid #E9F0F0",
|
|
86
|
+
borderRadius: "4px"
|
|
87
|
+
},
|
|
88
|
+
tooltipPopper: {
|
|
89
|
+
zIndex: 1
|
|
90
|
+
},
|
|
91
|
+
tooltip: {
|
|
92
|
+
"& .MuiTypography-root": {
|
|
93
|
+
display: "flex",
|
|
94
|
+
gap: "0.25rem",
|
|
95
|
+
alignItems: "center"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
errorIcon: {
|
|
99
|
+
fontSize: "0.75rem",
|
|
100
|
+
color: e.redLight
|
|
6
101
|
}
|
|
7
102
|
};
|
|
8
103
|
export {
|
|
9
|
-
|
|
104
|
+
r as default
|
|
10
105
|
};
|