@loopr-ai/craft 0.6.0 → 0.7.1

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 (39) hide show
  1. package/dist/Box-8cd400c2.js +58 -0
  2. package/dist/{ButtonBase-85c9347b.js → ButtonBase-fc1e48eb.js} +3 -3
  3. package/dist/Form.interfaces-c9b49688.js +6 -0
  4. package/dist/{createSvgIcon-70f9f72b.js → Grow-a906cda2.js} +3944 -4020
  5. package/dist/TextField-a534df29.js +5931 -0
  6. package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-ba502e63.js} +3 -3
  7. package/dist/Typography-65e5f8a8.js +178 -0
  8. package/dist/{ZoomControllers-7fb8d495.js → ZoomControllers-8a147df0.js} +848 -900
  9. package/dist/components/cell/AvatarGroup/index.js +3 -3
  10. package/dist/components/cell/Button/index.js +3 -3
  11. package/dist/components/cell/Chip/index.js +5 -5
  12. package/dist/components/cell/ProgressBar/index.js +3 -3
  13. package/dist/components/cell/Search/index.js +27 -5949
  14. package/dist/components/cell/Typography/index.js +16 -188
  15. package/dist/components/organ/Form/FieldInput.d.ts +27 -0
  16. package/dist/components/organ/Form/FieldInput.js +440 -0
  17. package/dist/components/organ/Form/Form.interfaces.d.ts +55 -0
  18. package/dist/components/organ/Form/Form.interfaces.js +1 -0
  19. package/dist/components/organ/Form/Form.styles.d.ts +5 -0
  20. package/dist/components/organ/Form/Form.styles.js +10 -0
  21. package/dist/components/organ/Form/Form.utils.d.ts +2 -0
  22. package/dist/components/organ/Form/Form.utils.js +27 -0
  23. package/dist/components/organ/Form/index.d.ts +30 -0
  24. package/dist/components/organ/Form/index.js +137 -0
  25. package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +3 -2
  26. package/dist/components/organ/ZoomControlWithDrag/index.js +18 -17
  27. package/dist/createSvgIcon-8e5d9dc7.js +81 -0
  28. package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-bb3d4825.js} +5 -5
  29. package/dist/{createTheme-a4db2989.js → createTheme-ca1567c6.js} +7 -7
  30. package/dist/dividerClasses-0233db5a.js +10 -0
  31. package/dist/{exactProp-d79ccada.js → exactProp-3d9df1ae.js} +1 -1
  32. package/dist/{extendSxProp-db8b9da5.js → extendSxProp-fc2654e5.js} +1 -1
  33. package/dist/global/theme.js +1 -1
  34. package/dist/main.d.ts +5 -3
  35. package/dist/main.js +20 -16
  36. package/dist/providers/CraftThemeProvider.js +2 -2
  37. package/dist/{styled-126c6a62.js → styled-80b57810.js} +49 -49
  38. package/dist/{useTheme-573c40a2.js → useTheme-16446f25.js} +1 -1
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { P as i } from "./createTheme-a4db2989.js";
1
+ import { P as i } from "./createTheme-ca1567c6.js";
2
2
  import { c as m } from "./chainPropTypes-004bf492.js";
3
3
  import * as o from "react";
4
4
  import h from "react";
@@ -117,9 +117,9 @@ const B = h.createContext(null);
117
117
  export {
118
118
  B as T,
119
119
  D as _,
120
- A as a,
120
+ v as a,
121
121
  x as b,
122
- v as c,
122
+ A as c,
123
123
  C as e,
124
124
  K as r,
125
125
  T as s,
@@ -0,0 +1,178 @@
1
+ import { g as M, b as f, a as s, _ as W, P as t } from "./createTheme-ca1567c6.js";
2
+ import * as C from "react";
3
+ import { g as O, a as j, b as P, c as N, e as R } from "./styled-80b57810.js";
4
+ import { jsx as _ } from "react/jsx-runtime";
5
+ import { e as U } from "./extendSxProp-fc2654e5.js";
6
+ function D(a) {
7
+ return M("MuiTypography", a);
8
+ }
9
+ O("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
10
+ const E = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], L = (a) => {
11
+ const {
12
+ align: o,
13
+ gutterBottom: r,
14
+ noWrap: e,
15
+ paragraph: i,
16
+ variant: n,
17
+ classes: h
18
+ } = a, p = {
19
+ root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
20
+ };
21
+ return R(p, D, h);
22
+ }, V = j("span", {
23
+ name: "MuiTypography",
24
+ slot: "Root",
25
+ overridesResolver: (a, o) => {
26
+ const {
27
+ ownerState: r
28
+ } = a;
29
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
30
+ }
31
+ })(({
32
+ theme: a,
33
+ ownerState: o
34
+ }) => s({
35
+ margin: 0
36
+ }, o.variant === "inherit" && {
37
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
38
+ font: "inherit"
39
+ }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
40
+ textAlign: o.align
41
+ }, o.noWrap && {
42
+ overflow: "hidden",
43
+ textOverflow: "ellipsis",
44
+ whiteSpace: "nowrap"
45
+ }, o.gutterBottom && {
46
+ marginBottom: "0.35em"
47
+ }, o.paragraph && {
48
+ marginBottom: 16
49
+ })), u = {
50
+ h1: "h1",
51
+ h2: "h2",
52
+ h3: "h3",
53
+ h4: "h4",
54
+ h5: "h5",
55
+ h6: "h6",
56
+ subtitle1: "h6",
57
+ subtitle2: "h6",
58
+ body1: "p",
59
+ body2: "p",
60
+ inherit: "p"
61
+ }, $ = {
62
+ primary: "primary.main",
63
+ textPrimary: "text.primary",
64
+ secondary: "secondary.main",
65
+ textSecondary: "text.secondary",
66
+ error: "error.main"
67
+ }, z = (a) => $[a] || a, b = /* @__PURE__ */ C.forwardRef(function(o, r) {
68
+ const e = P({
69
+ props: o,
70
+ name: "MuiTypography"
71
+ }), i = z(e.color), n = U(s({}, e, {
72
+ color: i
73
+ })), {
74
+ align: h = "inherit",
75
+ className: p,
76
+ component: l,
77
+ gutterBottom: d = !1,
78
+ noWrap: v = !1,
79
+ paragraph: c = !1,
80
+ variant: g = "body1",
81
+ variantMapping: m = u
82
+ } = n, T = W(n, E), y = s({}, n, {
83
+ align: h,
84
+ color: i,
85
+ className: p,
86
+ component: l,
87
+ gutterBottom: d,
88
+ noWrap: v,
89
+ paragraph: c,
90
+ variant: g,
91
+ variantMapping: m
92
+ }), x = l || (c ? "p" : m[g] || u[g]) || "span", B = L(y);
93
+ return /* @__PURE__ */ _(V, s({
94
+ as: x,
95
+ ref: r,
96
+ ownerState: y,
97
+ className: N(B.root, p)
98
+ }, T));
99
+ });
100
+ process.env.NODE_ENV !== "production" && (b.propTypes = {
101
+ // ----------------------------- Warning --------------------------------
102
+ // | These PropTypes are generated from the TypeScript type definitions |
103
+ // | To update them edit the d.ts file and run "yarn proptypes" |
104
+ // ----------------------------------------------------------------------
105
+ /**
106
+ * Set the text-align on the component.
107
+ * @default 'inherit'
108
+ */
109
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
110
+ /**
111
+ * The content of the component.
112
+ */
113
+ children: t.node,
114
+ /**
115
+ * Override or extend the styles applied to the component.
116
+ */
117
+ classes: t.object,
118
+ /**
119
+ * @ignore
120
+ */
121
+ className: t.string,
122
+ /**
123
+ * The component used for the root node.
124
+ * Either a string to use a HTML element or a component.
125
+ */
126
+ component: t.elementType,
127
+ /**
128
+ * If `true`, the text will have a bottom margin.
129
+ * @default false
130
+ */
131
+ gutterBottom: t.bool,
132
+ /**
133
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
134
+ *
135
+ * Note that text overflow can only happen with block or inline-block level elements
136
+ * (the element needs to have a width in order to overflow).
137
+ * @default false
138
+ */
139
+ noWrap: t.bool,
140
+ /**
141
+ * If `true`, the element will be a paragraph element.
142
+ * @default false
143
+ */
144
+ paragraph: t.bool,
145
+ /**
146
+ * The system prop that allows defining system overrides as well as additional CSS styles.
147
+ */
148
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
149
+ /**
150
+ * Applies the theme typography styles.
151
+ * @default 'body1'
152
+ */
153
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
154
+ /**
155
+ * The component maps the variant prop to a range of different HTML element types.
156
+ * For instance, subtitle1 to `<h6>`.
157
+ * If you wish to change that mapping, you can provide your own.
158
+ * Alternatively, you can use the `component` prop.
159
+ * @default {
160
+ * h1: 'h1',
161
+ * h2: 'h2',
162
+ * h3: 'h3',
163
+ * h4: 'h4',
164
+ * h5: 'h5',
165
+ * h6: 'h6',
166
+ * subtitle1: 'h6',
167
+ * subtitle2: 'h6',
168
+ * body1: 'p',
169
+ * body2: 'p',
170
+ * inherit: 'p',
171
+ * }
172
+ */
173
+ variantMapping: t.object
174
+ });
175
+ const w = b;
176
+ export {
177
+ w as M
178
+ };