@loopr-ai/craft 0.6.0 → 0.7.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/{ButtonBase-85c9347b.js → ButtonBase-c303b1df.js} +3 -3
- package/dist/Form.interfaces-c9b49688.js +6 -0
- package/dist/{createSvgIcon-70f9f72b.js → Grow-d188a215.js} +3944 -4020
- package/dist/TextField-b13f5aff.js +5931 -0
- package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-7cd3ef83.js} +3 -3
- package/dist/Typography-c0106ed0.js +178 -0
- package/dist/{ZoomControllers-7fb8d495.js → ZoomControllers-2e737c18.js} +678 -681
- 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 +27 -5949
- package/dist/components/cell/Typography/index.js +16 -188
- package/dist/components/organ/Form/FieldInput.d.ts +27 -0
- package/dist/components/organ/Form/FieldInput.js +440 -0
- package/dist/components/organ/Form/Form.interfaces.d.ts +55 -0
- package/dist/components/organ/Form/Form.interfaces.js +1 -0
- package/dist/components/organ/Form/Form.styles.d.ts +5 -0
- package/dist/components/organ/Form/Form.styles.js +10 -0
- package/dist/components/organ/Form/Form.utils.d.ts +2 -0
- package/dist/components/organ/Form/Form.utils.js +27 -0
- package/dist/components/organ/Form/index.d.ts +28 -0
- package/dist/components/organ/Form/index.js +130 -0
- package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +1 -1
- package/dist/components/organ/ZoomControlWithDrag/index.js +1 -1
- package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-5180e4db.js} +2 -2
- package/dist/createSvgIcon-78477fc1.js +81 -0
- package/dist/{createTheme-a4db2989.js → createTheme-54078d82.js} +3 -3
- package/dist/dividerClasses-68f129df.js +10 -0
- package/dist/{exactProp-d79ccada.js → exactProp-893ad662.js} +1 -1
- package/dist/{extendSxProp-db8b9da5.js → extendSxProp-8c660b3a.js} +1 -1
- package/dist/global/theme.js +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +20 -16
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-126c6a62.js → styled-2bc0b59e.js} +12 -12
- package/dist/{useTheme-573c40a2.js → useTheme-e2efed29.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as i } from "./createTheme-
|
|
1
|
+
import { P as i } from "./createTheme-54078d82.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
|
-
|
|
120
|
+
v as a,
|
|
121
121
|
x as b,
|
|
122
|
-
|
|
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, c as f, a as s, _ as W, P as t } from "./createTheme-54078d82.js";
|
|
2
|
+
import * as C from "react";
|
|
3
|
+
import { g as O, s as j, a as P, c as N, b as R } from "./styled-2bc0b59e.js";
|
|
4
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
5
|
+
import { e as U } from "./extendSxProp-8c660b3a.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, d = /* @__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: b = !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: b,
|
|
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" && (d.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 = d;
|
|
176
|
+
export {
|
|
177
|
+
w as M
|
|
178
|
+
};
|