@loopr-ai/craft 0.4.1 → 0.5.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.
- package/dist/{ButtonBase-83dd7164.js → ButtonBase-262628d1.js} +3 -3
- package/dist/{TransitionGroupContext-adf68f00.js → TransitionGroupContext-fe9a562f.js} +1 -1
- 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 +2884 -23115
- package/dist/components/cell/Typography/index.js +76 -100
- package/dist/components/organ/ZoomControlWithDrag/index.d.ts +11 -7
- package/dist/components/organ/ZoomControlWithDrag/index.js +2972 -918
- package/dist/createSvgIcon-4ecd3248.js +20405 -0
- package/dist/{createSvgIcon-bd01dddd.js → createSvgIcon-5f0c7512.js} +2 -2
- package/dist/{createTheme-f511f0cd.js → createTheme-a4db2989.js} +6 -6
- package/dist/{exactProp-ed2da606.js → exactProp-d79ccada.js} +1 -1
- package/dist/extendSxProp-db8b9da5.js +29 -0
- package/dist/global/theme.js +1 -1
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-9f5c49f8.js → styled-d4863b7f.js} +5 -4
- package/dist/{useTheme-6e15807e.js → useTheme-3e8a77bb.js} +1 -1
- package/package.json +2 -2
- package/dist/createSvgIcon-3bff5571.js +0 -157
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as b, c as h,
|
|
1
|
+
import { g as b, c as h, _ as w, a as y, P as o } from "./createTheme-a4db2989.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { jsxs as C, jsx as z } from "react/jsx-runtime";
|
|
4
|
-
import { g as T, s as N, a as R, c as O, b as B } from "./styled-
|
|
4
|
+
import { g as T, s as N, a as R, c as O, b as B } from "./styled-d4863b7f.js";
|
|
5
5
|
function j(e) {
|
|
6
6
|
return b("MuiSvgIcon", e);
|
|
7
7
|
}
|
|
@@ -2202,18 +2202,18 @@ function En(e = {}, ...t) {
|
|
|
2202
2202
|
export {
|
|
2203
2203
|
Yt as C,
|
|
2204
2204
|
ue as P,
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2205
|
+
se as _,
|
|
2206
|
+
U as a,
|
|
2207
|
+
qr as b,
|
|
2208
2208
|
bt as c,
|
|
2209
|
-
|
|
2209
|
+
Ge as d,
|
|
2210
2210
|
On as e,
|
|
2211
2211
|
En as f,
|
|
2212
2212
|
Ft as g,
|
|
2213
2213
|
zr as h,
|
|
2214
2214
|
oe as i,
|
|
2215
|
-
|
|
2216
|
-
|
|
2215
|
+
It as j,
|
|
2216
|
+
vn as k,
|
|
2217
2217
|
Fr as l,
|
|
2218
2218
|
ae as m,
|
|
2219
2219
|
F as n,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { _ as a, a as i, d as c, i as f } from "./createTheme-a4db2989.js";
|
|
2
|
+
const x = ["sx"], P = (t) => {
|
|
3
|
+
var s, o;
|
|
4
|
+
const n = {
|
|
5
|
+
systemProps: {},
|
|
6
|
+
otherProps: {}
|
|
7
|
+
}, r = (s = t == null || (o = t.theme) == null ? void 0 : o.unstable_sxConfig) != null ? s : c;
|
|
8
|
+
return Object.keys(t).forEach((e) => {
|
|
9
|
+
r[e] ? n.systemProps[e] = t[e] : n.otherProps[e] = t[e];
|
|
10
|
+
}), n;
|
|
11
|
+
};
|
|
12
|
+
function m(t) {
|
|
13
|
+
const {
|
|
14
|
+
sx: s
|
|
15
|
+
} = t, o = a(t, x), {
|
|
16
|
+
systemProps: n,
|
|
17
|
+
otherProps: r
|
|
18
|
+
} = P(o);
|
|
19
|
+
let e;
|
|
20
|
+
return Array.isArray(s) ? e = [n, ...s] : typeof s == "function" ? e = (...u) => {
|
|
21
|
+
const l = s(...u);
|
|
22
|
+
return f(l) ? i({}, n, l) : n;
|
|
23
|
+
} : e = i({}, n, s), i({}, r, {
|
|
24
|
+
sx: e
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
m as e
|
|
29
|
+
};
|
package/dist/global/theme.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { useMemo as O } from "react";
|
|
4
4
|
import { defaultTheme as P } from "../global/theme.js";
|
|
5
|
-
import { P as n,
|
|
5
|
+
import { P as n, a as c, _ as D, f as j, n as V } from "../createTheme-a4db2989.js";
|
|
6
6
|
import { c as b, a as g, T as f } from "../useThemeWithoutDefault-188598a8.js";
|
|
7
|
-
import { e as v } from "../exactProp-
|
|
7
|
+
import { e as v } from "../exactProp-d79ccada.js";
|
|
8
8
|
const l = /* @__PURE__ */ p.createContext(null);
|
|
9
9
|
process.env.NODE_ENV !== "production" && (l.displayName = "ThemeContext");
|
|
10
10
|
const E = l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as E, g as we, h as re, _ as ne, c as z, s as Ce, f as xe } from "./createTheme-a4db2989.js";
|
|
2
2
|
import { m as ke, w as Oe, a as $e, g as Ae, s as Fe, r as Me, b as Ie, i as Le, c as Ne, T as oe } from "./useThemeWithoutDefault-188598a8.js";
|
|
3
3
|
import * as F from "react";
|
|
4
4
|
var V = { exports: {} }, f = {};
|
|
@@ -692,9 +692,10 @@ export {
|
|
|
692
692
|
se as e,
|
|
693
693
|
G as f,
|
|
694
694
|
gt as g,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
695
|
+
bt as h,
|
|
696
|
+
Ke as i,
|
|
697
|
+
ct as j,
|
|
698
|
+
ft as k,
|
|
698
699
|
mt as r,
|
|
699
700
|
Et as s,
|
|
700
701
|
Qe as u
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopr-ai/craft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Component library based out of Material UI customized to support Loopr AI products",
|
|
5
5
|
"homepage": "https://loopr.ai",
|
|
6
6
|
"author": {
|
|
@@ -69,4 +69,4 @@
|
|
|
69
69
|
"@mui/material": "^5.14.8",
|
|
70
70
|
"react-zoom-pan-pinch": "^3.1.0"
|
|
71
71
|
}
|
|
72
|
-
}
|
|
72
|
+
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { _ as I, C as y, c as $, j as S } from "./createTheme-f511f0cd.js";
|
|
2
|
-
import { c as N } from "./createSvgIcon-bd01dddd.js";
|
|
3
|
-
import { s as w, c as T, b as C, u as D, a as R } from "./TransitionGroupContext-adf68f00.js";
|
|
4
|
-
import * as u from "react";
|
|
5
|
-
import { u as x } from "./unsupportedProp-3dbf01f6.js";
|
|
6
|
-
function V(...e) {
|
|
7
|
-
return e.reduce((t, n) => n == null ? t : function(...o) {
|
|
8
|
-
t.apply(this, o), n.apply(this, o);
|
|
9
|
-
}, () => {
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function M(e, t = 166) {
|
|
13
|
-
let n;
|
|
14
|
-
function r(...o) {
|
|
15
|
-
const s = () => {
|
|
16
|
-
e.apply(this, o);
|
|
17
|
-
};
|
|
18
|
-
clearTimeout(n), n = setTimeout(s, t);
|
|
19
|
-
}
|
|
20
|
-
return r.clear = () => {
|
|
21
|
-
clearTimeout(n);
|
|
22
|
-
}, r;
|
|
23
|
-
}
|
|
24
|
-
function q(e, t) {
|
|
25
|
-
return process.env.NODE_ENV === "production" ? () => null : (n, r, o, s, i) => {
|
|
26
|
-
const c = o || "<<anonymous>>", l = i || r;
|
|
27
|
-
return typeof n[r] < "u" ? new Error(`The ${s} \`${l}\` of \`${c}\` is deprecated. ${t}`) : null;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function O(e, t) {
|
|
31
|
-
return /* @__PURE__ */ u.isValidElement(e) && t.indexOf(e.type.muiName) !== -1;
|
|
32
|
-
}
|
|
33
|
-
function b(e) {
|
|
34
|
-
return e && e.ownerDocument || document;
|
|
35
|
-
}
|
|
36
|
-
function F(e) {
|
|
37
|
-
return b(e).defaultView || window;
|
|
38
|
-
}
|
|
39
|
-
function j(e, t) {
|
|
40
|
-
if (process.env.NODE_ENV === "production")
|
|
41
|
-
return () => null;
|
|
42
|
-
const n = t ? I({}, t.propTypes) : null;
|
|
43
|
-
return (o) => (s, i, c, l, a, ..._) => {
|
|
44
|
-
const d = a || i, p = n == null ? void 0 : n[d];
|
|
45
|
-
if (p) {
|
|
46
|
-
const m = p(s, i, c, l, a, ..._);
|
|
47
|
-
if (m)
|
|
48
|
-
return m;
|
|
49
|
-
}
|
|
50
|
-
return typeof s[i] < "u" && !s[o] ? new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
let h = 0;
|
|
54
|
-
function k(e) {
|
|
55
|
-
const [t, n] = u.useState(e), r = e || t;
|
|
56
|
-
return u.useEffect(() => {
|
|
57
|
-
t == null && (h += 1, n(`mui-${h}`));
|
|
58
|
-
}, [t]), r;
|
|
59
|
-
}
|
|
60
|
-
const g = u["useId".toString()];
|
|
61
|
-
function G(e) {
|
|
62
|
-
if (g !== void 0) {
|
|
63
|
-
const t = g();
|
|
64
|
-
return e ?? t;
|
|
65
|
-
}
|
|
66
|
-
return k(e);
|
|
67
|
-
}
|
|
68
|
-
function P({
|
|
69
|
-
controlled: e,
|
|
70
|
-
default: t,
|
|
71
|
-
name: n,
|
|
72
|
-
state: r = "value"
|
|
73
|
-
}) {
|
|
74
|
-
const {
|
|
75
|
-
current: o
|
|
76
|
-
} = u.useRef(e !== void 0), [s, i] = u.useState(t), c = o ? e : s;
|
|
77
|
-
if (process.env.NODE_ENV !== "production") {
|
|
78
|
-
u.useEffect(() => {
|
|
79
|
-
o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
80
|
-
`));
|
|
81
|
-
}, [r, n, e]);
|
|
82
|
-
const {
|
|
83
|
-
current: a
|
|
84
|
-
} = u.useRef(t);
|
|
85
|
-
u.useEffect(() => {
|
|
86
|
-
!o && a !== t && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
87
|
-
`));
|
|
88
|
-
}, [JSON.stringify(t)]);
|
|
89
|
-
}
|
|
90
|
-
const l = u.useCallback((a) => {
|
|
91
|
-
o || i(a);
|
|
92
|
-
}, []);
|
|
93
|
-
return [c, l];
|
|
94
|
-
}
|
|
95
|
-
const U = {
|
|
96
|
-
configure: (e) => {
|
|
97
|
-
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
98
|
-
`)), y.configure(e);
|
|
99
|
-
}
|
|
100
|
-
}, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
101
|
-
__proto__: null,
|
|
102
|
-
capitalize: $,
|
|
103
|
-
createChainedFunction: V,
|
|
104
|
-
createSvgIcon: N,
|
|
105
|
-
debounce: M,
|
|
106
|
-
deprecatedPropType: q,
|
|
107
|
-
isMuiElement: O,
|
|
108
|
-
ownerDocument: b,
|
|
109
|
-
ownerWindow: F,
|
|
110
|
-
requirePropFactory: j,
|
|
111
|
-
setRef: w,
|
|
112
|
-
unstable_ClassNameGenerator: U,
|
|
113
|
-
unstable_useEnhancedEffect: T,
|
|
114
|
-
unstable_useId: G,
|
|
115
|
-
unsupportedProp: x,
|
|
116
|
-
useControlled: P,
|
|
117
|
-
useEventCallback: C,
|
|
118
|
-
useForkRef: D,
|
|
119
|
-
useIsFocusVisible: R
|
|
120
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
121
|
-
var E = { exports: {} };
|
|
122
|
-
(function(e) {
|
|
123
|
-
function t(n) {
|
|
124
|
-
return n && n.__esModule ? n : {
|
|
125
|
-
default: n
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
129
|
-
})(E);
|
|
130
|
-
var H = E.exports, f = {};
|
|
131
|
-
const A = /* @__PURE__ */ S(z);
|
|
132
|
-
var v;
|
|
133
|
-
function K() {
|
|
134
|
-
return v || (v = 1, function(e) {
|
|
135
|
-
"use client";
|
|
136
|
-
Object.defineProperty(e, "__esModule", {
|
|
137
|
-
value: !0
|
|
138
|
-
}), Object.defineProperty(e, "default", {
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
get: function() {
|
|
141
|
-
return t.createSvgIcon;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
var t = A;
|
|
145
|
-
}(f)), f;
|
|
146
|
-
}
|
|
147
|
-
export {
|
|
148
|
-
F as a,
|
|
149
|
-
O as b,
|
|
150
|
-
V as c,
|
|
151
|
-
M as d,
|
|
152
|
-
G as e,
|
|
153
|
-
H as i,
|
|
154
|
-
b as o,
|
|
155
|
-
K as r,
|
|
156
|
-
P as u
|
|
157
|
-
};
|