@loopr-ai/craft 0.3.0 → 0.4.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-750a4103.js → ButtonBase-83dd7164.js} +3 -3
- package/dist/{TransitionGroupContext-e16207d6.js → TransitionGroupContext-adf68f00.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 +5660 -5800
- package/dist/components/cell/Typography/index.js +2 -2
- package/dist/components/organ/ZoomControlWithDrag/index.d.ts +19 -0
- package/dist/components/organ/ZoomControlWithDrag/index.js +1598 -0
- package/dist/createSvgIcon-3bff5571.js +157 -0
- package/dist/{createSvgIcon-5dcb7caa.js → createSvgIcon-bd01dddd.js} +2 -2
- package/dist/{createTheme-95c30431.js → createTheme-f511f0cd.js} +4 -4
- package/dist/{exactProp-a28c53c1.js → exactProp-ed2da606.js} +1 -1
- package/dist/global/theme.js +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +12 -10
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-05df7dc6.js → styled-9f5c49f8.js} +15 -13
- package/dist/{useTheme-462e5dc6.js → useTheme-6e15807e.js} +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as b, c as h, a as w, _ as y, P as o } from "./createTheme-
|
|
1
|
+
import { g as b, c as h, a as w, _ as y, P as o } from "./createTheme-f511f0cd.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-9f5c49f8.js";
|
|
5
5
|
function j(e) {
|
|
6
6
|
return b("MuiSvgIcon", e);
|
|
7
7
|
}
|
package/dist/global/theme.js
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import ProgressBar from "./components/cell/ProgressBar";
|
|
|
4
4
|
import Search from "./components/cell/Search";
|
|
5
5
|
import Typography from "./components/cell/Typography";
|
|
6
6
|
import AvatarGroup from "./components/cell/AvatarGroup";
|
|
7
|
-
|
|
7
|
+
import ZoomControlWithDrag from "./components/organ/ZoomControlWithDrag";
|
|
8
|
+
export { Button, ProgressBar, Search, Chip, Typography, AvatarGroup, ZoomControlWithDrag, };
|
|
8
9
|
export * from "./global/interfaces";
|
|
9
10
|
export * from "./providers";
|
package/dist/main.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as a } from "./components/cell/Chip/index.js";
|
|
2
|
+
import { default as e } from "./components/cell/Button/index.js";
|
|
3
3
|
import { default as p } from "./components/cell/ProgressBar/index.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
4
|
+
import { default as s } from "./components/cell/Search/index.js";
|
|
5
|
+
import { default as d } from "./components/cell/Typography/index.js";
|
|
6
6
|
import { default as x } from "./components/cell/AvatarGroup/index.js";
|
|
7
|
-
import { default as g } from "./
|
|
7
|
+
import { default as g } from "./components/organ/ZoomControlWithDrag/index.js";
|
|
8
|
+
import { default as C } from "./providers/CraftThemeProvider.js";
|
|
8
9
|
export {
|
|
9
10
|
x as AvatarGroup,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
e as Button,
|
|
12
|
+
a as Chip,
|
|
13
|
+
C as CraftThemeProvider,
|
|
13
14
|
p as ProgressBar,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
s as Search,
|
|
16
|
+
d as Typography,
|
|
17
|
+
g as ZoomControlWithDrag
|
|
16
18
|
};
|
|
@@ -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, _ as c, a as D, f as j,
|
|
5
|
+
import { P as n, _ as c, a as D, f as j, n as V } from "../createTheme-f511f0cd.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-ed2da606.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,7 +1,7 @@
|
|
|
1
|
-
import { _ as E, g as we, h as re, a as ne, c as z, s as Ce, f as xe } from "./createTheme-
|
|
1
|
+
import { _ as E, g as we, h as re, a as ne, c as z, s as Ce, f as xe } from "./createTheme-f511f0cd.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
|
-
var
|
|
4
|
+
var V = { exports: {} }, f = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-is.production.min.js
|
|
@@ -104,8 +104,8 @@ function ze() {
|
|
|
104
104
|
}
|
|
105
105
|
function y(s) {
|
|
106
106
|
if (typeof s == "object" && s !== null) {
|
|
107
|
-
var
|
|
108
|
-
switch (
|
|
107
|
+
var j = s.$$typeof;
|
|
108
|
+
switch (j) {
|
|
109
109
|
case e:
|
|
110
110
|
var D = s.type;
|
|
111
111
|
switch (D) {
|
|
@@ -126,11 +126,11 @@ function ze() {
|
|
|
126
126
|
case l:
|
|
127
127
|
return W;
|
|
128
128
|
default:
|
|
129
|
-
return
|
|
129
|
+
return j;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
case t:
|
|
133
|
-
return
|
|
133
|
+
return j;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -180,21 +180,21 @@ function ze() {
|
|
|
180
180
|
d.ContextConsumer = w, d.ContextProvider = O, d.Element = $, d.ForwardRef = C, d.Fragment = u, d.Lazy = x, d.Memo = L, d.Portal = N, d.Profiler = Y, d.StrictMode = A, d.Suspense = ue, d.SuspenseList = fe, d.isAsyncMode = de, d.isConcurrentMode = me, d.isContextConsumer = pe, d.isContextProvider = he, d.isElement = ye, d.isForwardRef = ve, d.isFragment = ge, d.isLazy = Se, d.isMemo = _e, d.isPortal = be, d.isProfiler = Ee, d.isStrictMode = Te, d.isSuspense = Pe, d.isSuspenseList = Re, d.isValidElementType = _, d.typeOf = y;
|
|
181
181
|
}()), d;
|
|
182
182
|
}
|
|
183
|
-
process.env.NODE_ENV === "production" ?
|
|
184
|
-
var G =
|
|
183
|
+
process.env.NODE_ENV === "production" ? V.exports = De() : V.exports = ze();
|
|
184
|
+
var G = V.exports;
|
|
185
185
|
const Ye = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
186
|
-
function
|
|
186
|
+
function je(e) {
|
|
187
187
|
const t = `${e}`.match(Ye);
|
|
188
188
|
return t && t[1] || "";
|
|
189
189
|
}
|
|
190
190
|
function ie(e, t = "") {
|
|
191
|
-
return e.displayName || e.name ||
|
|
191
|
+
return e.displayName || e.name || je(e) || t;
|
|
192
192
|
}
|
|
193
193
|
function K(e, t, n) {
|
|
194
194
|
const r = ie(t);
|
|
195
195
|
return e.displayName || (r !== "" ? `${n}(${r})` : n);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Ve(e) {
|
|
198
198
|
if (e != null) {
|
|
199
199
|
if (typeof e == "string")
|
|
200
200
|
return e;
|
|
@@ -639,7 +639,7 @@ function ct(e = {}) {
|
|
|
639
639
|
const C = k(O, ...w);
|
|
640
640
|
if (process.env.NODE_ENV !== "production") {
|
|
641
641
|
let u;
|
|
642
|
-
m && (u = `${m}${z(h || "")}`), u === void 0 && (u = `Styled(${
|
|
642
|
+
m && (u = `${m}${z(h || "")}`), u === void 0 && (u = `Styled(${Ve(a)})`), C.displayName = u;
|
|
643
643
|
}
|
|
644
644
|
return a.muiName && (C.muiName = a.muiName), C;
|
|
645
645
|
};
|
|
@@ -692,7 +692,9 @@ export {
|
|
|
692
692
|
se as e,
|
|
693
693
|
G as f,
|
|
694
694
|
gt as g,
|
|
695
|
-
|
|
695
|
+
ct as h,
|
|
696
|
+
ft as i,
|
|
697
|
+
bt as j,
|
|
696
698
|
mt as r,
|
|
697
699
|
Et as s,
|
|
698
700
|
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.4.0",
|
|
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": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@emotion/styled": "^11.11.0",
|
|
67
67
|
"@fontsource/dm-sans": "^5.0.12",
|
|
68
68
|
"@mui/icons-material": "^5.14.9",
|
|
69
|
-
"@mui/material": "^5.14.8"
|
|
69
|
+
"@mui/material": "^5.14.8",
|
|
70
|
+
"react-zoom-pan-pinch": "^3.1.0"
|
|
70
71
|
}
|
|
71
72
|
}
|