@loopr-ai/craft 0.7.2 → 0.7.4

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.
Files changed (41) hide show
  1. package/dist/{ButtonBase-fc1e48eb.js → ButtonBase-85c9347b.js} +3 -3
  2. package/dist/{TextField-a534df29.js → TextField-fded06e5.js} +7 -7
  3. package/dist/Tooltip-b926c320.js +2022 -0
  4. package/dist/{TransitionGroupContext-ba502e63.js → TransitionGroupContext-fe9a562f.js} +3 -3
  5. package/dist/ZoomControllers-36e39bb0.js +1432 -0
  6. package/dist/components/cell/AvatarGroup/index.js +3 -3
  7. package/dist/components/cell/Button/index.js +3 -3
  8. package/dist/components/cell/Chip/index.js +5 -5
  9. package/dist/components/cell/ProgressBar/index.js +3 -3
  10. package/dist/components/cell/Search/index.js +2 -2
  11. package/dist/components/cell/Typography/index.js +5 -19
  12. package/dist/components/organ/Form/Form.interfaces.d.ts +6 -6
  13. package/dist/components/organ/Form/Form.styles.d.ts +99 -2
  14. package/dist/components/organ/Form/Form.styles.js +99 -4
  15. package/dist/components/organ/Form/FormInput.js +517 -0
  16. package/dist/components/organ/Form/index.d.ts +2 -0
  17. package/dist/components/organ/Form/index.js +156 -106
  18. package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +2 -2
  19. package/dist/components/organ/ZoomControlWithDrag/index.js +2 -2
  20. package/dist/{createSvgIcon-bb3d4825.js → createSvgIcon-58aa3adf.js} +5 -5
  21. package/dist/{Grow-a906cda2.js → createSvgIcon-f773ce57.js} +4020 -3944
  22. package/dist/{createTheme-ca1567c6.js → createTheme-a4db2989.js} +7 -7
  23. package/dist/{exactProp-3d9df1ae.js → exactProp-d79ccada.js} +1 -1
  24. package/dist/{extendSxProp-fc2654e5.js → extendSxProp-db8b9da5.js} +1 -1
  25. package/dist/global/colors.d.ts +5 -0
  26. package/dist/global/colors.js +11 -6
  27. package/dist/global/constants.d.ts +3 -0
  28. package/dist/global/constants.js +6 -1
  29. package/dist/global/theme.js +1 -1
  30. package/dist/{Typography-65e5f8a8.js → index-03287c17.js} +61 -45
  31. package/dist/main.js +10 -10
  32. package/dist/providers/CraftThemeProvider.js +2 -2
  33. package/dist/{styled-80b57810.js → styled-126c6a62.js} +49 -49
  34. package/dist/{useTheme-16446f25.js → useTheme-573c40a2.js} +1 -1
  35. package/package.json +1 -1
  36. package/dist/Box-8cd400c2.js +0 -58
  37. package/dist/ZoomControllers-8a147df0.js +0 -3390
  38. package/dist/components/organ/Form/FieldInput.js +0 -442
  39. package/dist/createSvgIcon-8e5d9dc7.js +0 -81
  40. package/dist/dividerClasses-0233db5a.js +0 -10
  41. /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-ca1567c6.js";
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, a as M, b as E, c as R, e as U, h as F } from "../../../styled-80b57810.js";
5
- import { c as q } from "../../../createSvgIcon-bb3d4825.js";
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, b as e, a as t, f as b, _ as D, P as a } from "../../../createTheme-ca1567c6.js";
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, a as y, r as A, f as q, b as J, c as R, e as K } from "../../../styled-80b57810.js";
6
- import { B as Q } from "../../../ButtonBase-fc1e48eb.js";
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, b as r, a as f, f as b, _ as Y, P as l } from "../../../createTheme-ca1567c6.js";
5
- import { g as Z, a as U, b as w, c as k, e as oo } from "../../../styled-80b57810.js";
6
- import { c as ao } from "../../../createSvgIcon-bb3d4825.js";
7
- import { u as lo } from "../../../TransitionGroupContext-ba502e63.js";
8
- import { B as M } from "../../../ButtonBase-fc1e48eb.js";
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, b as n, a as l, _ as q, P as o, l as E, e as U } from "../../../createTheme-ca1567c6.js";
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, a as h, b as A, c as F, e as K } from "../../../styled-80b57810.js";
6
- import { u as V } from "../../../useTheme-16446f25.js";
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-8e5d9dc7.js";
3
- import { T as m } from "../../../TextField-a534df29.js";
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 { jsx as a } from "react/jsx-runtime";
2
- import { getColorToHex as e } from "../../../global/colors.js";
3
- import { fontCustomizations as i } from "../../../global/theme.js";
4
- import { M as f } from "../../../Typography-65e5f8a8.js";
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
- c as default
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
- export interface CustomFieldProps {
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]: React.ComponentType<FormInputProps>;
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
- [key: string]: React.CSSProperties;
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
- const e = {
1
+ import { customColors as e } from "../../../global/colors.js";
2
+ const r = {
2
3
  alignVertical: {
3
4
  display: "flex",
4
- flexDirection: "column",
5
- gap: "1rem"
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
- e as default
104
+ r as default
10
105
  };