jcicl 0.0.18 → 0.0.19
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/.chunks/ButtonBase.js +2 -1
- package/.chunks/DefaultPropsProvider.js +10 -10
- package/.chunks/ListContext.js +6 -0
- package/.chunks/Menu.js +489 -628
- package/.chunks/NavLink.js +436 -0
- package/.chunks/NavLinkButton.js +259 -0
- package/.chunks/TransitionGroupContext.js +69 -297
- package/.chunks/emotion-react.browser.esm.js +231 -0
- package/.chunks/index.js +131 -0
- package/.chunks/isHostComponent.js +17 -0
- package/README.md +1 -7
- package/base/Avatar/Avatar/Avatar.d.ts +8 -0
- package/base/Avatar/Avatar/Avatar.js +38 -0
- package/base/Avatar/Avatar/index.js +2 -2
- package/base/Avatar/AvatarWithImage/AvatarWithImage.d.ts +10 -0
- package/{.chunks → base/Avatar/AvatarWithImage}/AvatarWithImage.js +9 -8
- package/base/Avatar/AvatarWithImage/index.js +2 -2
- package/base/Avatar/index.js +3 -3
- package/base/Button/Button.d.ts +7 -0
- package/{.chunks → base/Button}/Button.js +7 -6
- package/base/Button/index.js +2 -2
- package/base/Divider/Divider.d.ts +10 -0
- package/{.chunks → base/Divider}/Divider.js +12 -11
- package/base/Divider/index.js +2 -2
- package/base/Flex/Flex.d.ts +19 -0
- package/{.chunks → base/Flex}/Flex.js +7 -7
- package/base/Flex/index.js +2 -2
- package/base/Grid/Grid.d.ts +14 -0
- package/base/Grid/Grid.js +19 -0
- package/base/Grid/index.js +2 -2
- package/base/Input/Input.d.ts +3 -0
- package/{.chunks → base/Input}/Input.js +21 -18
- package/base/Input/index.js +2 -2
- package/base/index.js +12 -12
- package/composite/ContactCard/ContactCard.d.ts +2 -0
- package/composite/ContactCard/ContactCard.js +1 -0
- package/composite/ContactListItem/ContactListItem.d.ts +1 -0
- package/composite/ContactListItem/ContactListItem.js +1 -0
- package/index.js +19 -17
- package/package.json +1 -1
- package/supercomposite/AppBar/AppBar.d.ts +5 -0
- package/{.chunks → supercomposite/AppBar}/AppBar.js +14 -13
- package/supercomposite/AppBar/index.js +2 -2
- package/supercomposite/AppHeader/AppHeader.d.ts +7 -0
- package/supercomposite/AppHeader/AppHeader.js +31 -0
- package/supercomposite/AppHeader/index.js +2 -2
- package/supercomposite/CompactNav/CompactNav.d.ts +17 -0
- package/{.chunks → supercomposite/CompactNav}/CompactNav.js +14 -12
- package/supercomposite/CompactNav/index.js +2 -2
- package/supercomposite/Nav/Nav.d.ts +13 -0
- package/supercomposite/Nav/Nav.js +626 -0
- package/supercomposite/Nav/index.js +1 -1
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.js +34 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +19 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.js +425 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.d.ts +20 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.js +432 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.d.ts +12 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.js +1 -0
- package/supercomposite/Nav/types.d.ts +2 -0
- package/supercomposite/Nav/types.js +1 -0
- package/supercomposite/index.js +6 -6
- package/templates/AppContainer/AppContainer.d.ts +10 -0
- package/{.chunks → templates/AppContainer}/AppContainer.js +7 -7
- package/templates/AppContainer/index.js +2 -2
- package/templates/BasicPage/BasicPage.d.ts +9 -0
- package/templates/BasicPage/BasicPage.js +31 -0
- package/templates/BasicPage/index.js +2 -2
- package/templates/index.js +4 -4
- package/.chunks/AppHeader.js +0 -31
- package/.chunks/Avatar.js +0 -38
- package/.chunks/BasicPage.js +0 -31
- package/.chunks/Grid.js +0 -18
- package/.chunks/Nav.js +0 -2139
package/.chunks/index.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { i as p, j as b, P as t, k as T, l as h, T as d } from "./DefaultPropsProvider.js";
|
|
4
|
+
import { T as x } from "./emotion-styled.browser.esm.js";
|
|
5
|
+
import { G as g } from "./emotion-react.browser.esm.js";
|
|
6
|
+
const E = (e) => {
|
|
7
|
+
var o;
|
|
8
|
+
const n = {
|
|
9
|
+
systemProps: {},
|
|
10
|
+
otherProps: {}
|
|
11
|
+
}, r = ((o = e == null ? void 0 : e.theme) == null ? void 0 : o.unstable_sxConfig) ?? p;
|
|
12
|
+
return Object.keys(e).forEach((s) => {
|
|
13
|
+
r[s] ? n.systemProps[s] = e[s] : n.otherProps[s] = e[s];
|
|
14
|
+
}), n;
|
|
15
|
+
};
|
|
16
|
+
function P(e) {
|
|
17
|
+
const {
|
|
18
|
+
sx: n,
|
|
19
|
+
...r
|
|
20
|
+
} = e, {
|
|
21
|
+
systemProps: o,
|
|
22
|
+
otherProps: s
|
|
23
|
+
} = E(r);
|
|
24
|
+
let l;
|
|
25
|
+
return Array.isArray(n) ? l = [o, ...n] : typeof n == "function" ? l = (...y) => {
|
|
26
|
+
const c = n(...y);
|
|
27
|
+
return b(c) ? {
|
|
28
|
+
...o,
|
|
29
|
+
...c
|
|
30
|
+
} : o;
|
|
31
|
+
} : l = {
|
|
32
|
+
...o,
|
|
33
|
+
...n
|
|
34
|
+
}, {
|
|
35
|
+
...s,
|
|
36
|
+
sx: l
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function S(e) {
|
|
40
|
+
return e == null || Object.keys(e).length === 0;
|
|
41
|
+
}
|
|
42
|
+
function i(e) {
|
|
43
|
+
const {
|
|
44
|
+
styles: n,
|
|
45
|
+
defaultTheme: r = {}
|
|
46
|
+
} = e;
|
|
47
|
+
return /* @__PURE__ */ u(g, {
|
|
48
|
+
styles: typeof n == "function" ? (s) => n(S(s) ? r : s) : n
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
process.env.NODE_ENV !== "production" && (i.propTypes = {
|
|
52
|
+
defaultTheme: t.object,
|
|
53
|
+
styles: t.oneOfType([t.array, t.string, t.object, t.func])
|
|
54
|
+
});
|
|
55
|
+
function O(e) {
|
|
56
|
+
return Object.keys(e).length === 0;
|
|
57
|
+
}
|
|
58
|
+
function j(e = null) {
|
|
59
|
+
const n = m.useContext(x);
|
|
60
|
+
return !n || O(n) ? e : n;
|
|
61
|
+
}
|
|
62
|
+
const v = T();
|
|
63
|
+
function G(e = v) {
|
|
64
|
+
return j(e);
|
|
65
|
+
}
|
|
66
|
+
function f({
|
|
67
|
+
styles: e,
|
|
68
|
+
themeId: n,
|
|
69
|
+
defaultTheme: r = {}
|
|
70
|
+
}) {
|
|
71
|
+
const o = G(r), s = typeof e == "function" ? e(n && o[n] || o) : e;
|
|
72
|
+
return /* @__PURE__ */ u(i, {
|
|
73
|
+
styles: s
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
process.env.NODE_ENV !== "production" && (f.propTypes = {
|
|
77
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
78
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
79
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
80
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
81
|
+
/**
|
|
82
|
+
* @ignore
|
|
83
|
+
*/
|
|
84
|
+
defaultTheme: t.object,
|
|
85
|
+
/**
|
|
86
|
+
* @ignore
|
|
87
|
+
*/
|
|
88
|
+
styles: t.oneOfType([t.array, t.func, t.number, t.object, t.string, t.bool]),
|
|
89
|
+
/**
|
|
90
|
+
* @ignore
|
|
91
|
+
*/
|
|
92
|
+
themeId: t.string
|
|
93
|
+
});
|
|
94
|
+
function a(e) {
|
|
95
|
+
return /* @__PURE__ */ u(f, {
|
|
96
|
+
...e,
|
|
97
|
+
defaultTheme: h,
|
|
98
|
+
themeId: d
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
process.env.NODE_ENV !== "production" && (a.propTypes = {
|
|
102
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
103
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
104
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
105
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
106
|
+
/**
|
|
107
|
+
* The styles you want to apply globally.
|
|
108
|
+
*/
|
|
109
|
+
styles: t.oneOfType([t.array, t.func, t.number, t.object, t.string, t.bool])
|
|
110
|
+
});
|
|
111
|
+
function k(e) {
|
|
112
|
+
return function(r) {
|
|
113
|
+
return (
|
|
114
|
+
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
115
|
+
/* @__PURE__ */ u(a, {
|
|
116
|
+
styles: typeof e == "function" ? (o) => e({
|
|
117
|
+
theme: o,
|
|
118
|
+
...r
|
|
119
|
+
}) : e
|
|
120
|
+
})
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function V() {
|
|
125
|
+
return P;
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
k as g,
|
|
129
|
+
V as i,
|
|
130
|
+
G as u
|
|
131
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
function r(i, n) {
|
|
3
|
+
var t, a, e;
|
|
4
|
+
return /* @__PURE__ */ o.isValidElement(i) && n.indexOf(
|
|
5
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
6
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
7
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
8
|
+
i.type.muiName ?? ((e = (a = (t = i.type) == null ? void 0 : t._payload) == null ? void 0 : a.value) == null ? void 0 : e.muiName)
|
|
9
|
+
) !== -1;
|
|
10
|
+
}
|
|
11
|
+
function s(i) {
|
|
12
|
+
return typeof i == "string";
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as a,
|
|
16
|
+
r as i
|
|
17
|
+
};
|
package/README.md
CHANGED
|
@@ -90,10 +90,4 @@ Templates are intended to render the HTML for predefined page layouts comprised
|
|
|
90
90
|
|
|
91
91
|
### Publishing the library
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
1. Please increment the version number in `package.json`
|
|
96
|
-
|
|
97
|
-
2. Build the library with `npm run build`
|
|
98
|
-
|
|
99
|
-
3. Publish the library with `npm publish`
|
|
93
|
+
`npm run bp`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '@mui/material/ButtonBase/ButtonBase';
|
|
2
|
+
export interface AvatarProps {
|
|
3
|
+
avatarColor?: string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Avatar: React.FC<AvatarProps & ButtonBaseProps>;
|
|
8
|
+
export default Avatar;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../../.chunks/createSvgIcon.js";
|
|
3
|
+
import { B as d } from "../../../.chunks/ButtonBase.js";
|
|
4
|
+
import i from "../../../assets/theme.js";
|
|
5
|
+
import { n as a, i as l } from "../../../.chunks/emotion-styled.browser.esm.js";
|
|
6
|
+
const m = c(/* @__PURE__ */ t("path", {
|
|
7
|
+
d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
|
|
8
|
+
}), "PersonOutlineOutlined"), s = a(m, {
|
|
9
|
+
shouldForwardProp: (r) => l(r)
|
|
10
|
+
})(({ avatarColor: r = i.colors.darkGreen, backgroundColor: e = i.colors.mint, size: o = 40 }) => ({
|
|
11
|
+
border: `1px solid ${r}`,
|
|
12
|
+
backgroundColor: e,
|
|
13
|
+
borderRadius: "50%",
|
|
14
|
+
padding: "8px",
|
|
15
|
+
fill: r,
|
|
16
|
+
width: `${o - 18}px`,
|
|
17
|
+
height: `${o - 18}px`,
|
|
18
|
+
pointerEvents: "none"
|
|
19
|
+
})), p = a(d)({
|
|
20
|
+
backgroundColor: "transparent",
|
|
21
|
+
borderRadius: "50%",
|
|
22
|
+
span: {
|
|
23
|
+
transition: "313ms all ease-in-out"
|
|
24
|
+
},
|
|
25
|
+
"&:hover, :focus": {
|
|
26
|
+
span: {
|
|
27
|
+
backgroundColor: i.colors.grayO44
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}), g = ({
|
|
31
|
+
avatarColor: r,
|
|
32
|
+
backgroundColor: e,
|
|
33
|
+
size: o,
|
|
34
|
+
...n
|
|
35
|
+
}) => n != null && n.onClick ? /* @__PURE__ */ t(p, { ...n, children: /* @__PURE__ */ t(s, { avatarColor: r, backgroundColor: e, size: o }) }) : /* @__PURE__ */ t(s, { avatarColor: r, backgroundColor: e, size: o });
|
|
36
|
+
export {
|
|
37
|
+
g as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '@mui/material/ButtonBase/ButtonBase';
|
|
2
|
+
export interface AvatarWithImageProps {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const AvatarWithImage: React.FC<AvatarWithImageProps & ButtonBaseProps>;
|
|
10
|
+
export default AvatarWithImage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { B as
|
|
3
|
-
import m from "
|
|
4
|
-
import { n as d } from "
|
|
2
|
+
import { B as l } from "../../../.chunks/ButtonBase.js";
|
|
3
|
+
import m from "../../../assets/theme.js";
|
|
4
|
+
import { n as d } from "../../../.chunks/emotion-styled.browser.esm.js";
|
|
5
5
|
const s = d("img")(
|
|
6
6
|
({ borderColor: o = m.colors.darkGreen, size: r = 40, objectFit: e = "cover" }) => ({
|
|
7
7
|
border: `1px solid ${o}`,
|
|
@@ -12,7 +12,7 @@ const s = d("img")(
|
|
|
12
12
|
objectFit: e,
|
|
13
13
|
objectPosition: "top"
|
|
14
14
|
})
|
|
15
|
-
),
|
|
15
|
+
), c = d(l)({
|
|
16
16
|
backgroundColor: "transparent",
|
|
17
17
|
borderRadius: "50%",
|
|
18
18
|
span: {
|
|
@@ -27,10 +27,11 @@ const s = d("img")(
|
|
|
27
27
|
borderColor: o,
|
|
28
28
|
alt: r = "profile image",
|
|
29
29
|
size: e,
|
|
30
|
-
objectFit:
|
|
31
|
-
src:
|
|
30
|
+
objectFit: t,
|
|
31
|
+
src: i,
|
|
32
32
|
...a
|
|
33
|
-
}) => a != null && a.onClick ? /* @__PURE__ */ n(
|
|
33
|
+
}) => a != null && a.onClick ? /* @__PURE__ */ n(c, { ...a, children: /* @__PURE__ */ n(s, { src: i, alt: r, borderColor: o, size: e, objectFit: t }) }) : /* @__PURE__ */ n(s, { src: i, alt: r, borderColor: o, size: e, objectFit: t });
|
|
34
34
|
export {
|
|
35
|
-
u as
|
|
35
|
+
u as AvatarWithImage,
|
|
36
|
+
u as default
|
|
36
37
|
};
|
package/base/Avatar/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { default as t } from "./Avatar/Avatar.js";
|
|
2
|
+
import { AvatarWithImage as o } from "./AvatarWithImage/AvatarWithImage.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Avatar,
|
|
5
|
-
|
|
5
|
+
o as AvatarWithImage
|
|
6
6
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material/Button/Button';
|
|
3
|
+
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
4
|
+
variant?: 1 | 2;
|
|
5
|
+
}
|
|
6
|
+
export declare const Button: React.FC<PropsWithChildren<ButtonProps>>;
|
|
7
|
+
export default Button;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as D, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import { a as F, g as U, s as c, r as _, e,
|
|
4
|
-
import { m as J } from "
|
|
5
|
-
import { c as K } from "
|
|
6
|
-
import { B as Q } from "
|
|
7
|
-
import i from "
|
|
3
|
+
import { a as F, g as U, s as c, r as _, e, h as H, u as A, c as w, P as t, b as q, d as g } from "../../.chunks/DefaultPropsProvider.js";
|
|
4
|
+
import { m as J } from "../../.chunks/memoTheme.js";
|
|
5
|
+
import { c as K } from "../../.chunks/createSimplePaletteValueFilter.js";
|
|
6
|
+
import { B as Q } from "../../.chunks/ButtonBase.js";
|
|
7
|
+
import i from "../../assets/theme.js";
|
|
8
8
|
function X(o) {
|
|
9
9
|
return F("MuiButton", o);
|
|
10
10
|
}
|
|
@@ -483,5 +483,6 @@ const E = c(R)`
|
|
|
483
483
|
padding: 0.5rem 2rem;
|
|
484
484
|
`, po = ({ variant: o = 1, children: a, ...n }) => o === 2 ? /* @__PURE__ */ d(no, { ...n, children: /* @__PURE__ */ d("p", { children: a }) }) : /* @__PURE__ */ d(ao, { ...n, children: /* @__PURE__ */ d("p", { children: a }) });
|
|
485
485
|
export {
|
|
486
|
-
po as
|
|
486
|
+
po as Button,
|
|
487
|
+
po as default
|
|
487
488
|
};
|
package/base/Button/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DividerProps as MuiDividerProps } from '@mui/material/Divider';
|
|
2
|
+
import { default as theme } from '../../../../../../../../../src/assets/theme';
|
|
3
|
+
export interface DividerProps extends MuiDividerProps {
|
|
4
|
+
color?: keyof typeof theme.colors;
|
|
5
|
+
opacity?: number;
|
|
6
|
+
spacing?: number;
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Divider: React.FC<DividerProps>;
|
|
10
|
+
export default Divider;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as D, i as A } from "
|
|
3
|
-
import u from "
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { n as D, i as A } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import u from "../../assets/theme.js";
|
|
4
4
|
import * as S from "react";
|
|
5
|
-
import { g as R, a as T, s as m, u as L, c as W, P as r, b as $, d as I } from "
|
|
6
|
-
import { m as b } from "
|
|
5
|
+
import { g as R, a as T, s as m, u as L, c as W, P as r, b as $, d as I } from "../../.chunks/DefaultPropsProvider.js";
|
|
6
|
+
import { m as b } from "../../.chunks/memoTheme.js";
|
|
7
7
|
function O(t) {
|
|
8
8
|
return T("MuiDivider", t);
|
|
9
9
|
}
|
|
@@ -199,7 +199,7 @@ const V = (t) => {
|
|
|
199
199
|
className: a,
|
|
200
200
|
orientation: l = "horizontal",
|
|
201
201
|
component: n = s || l === "vertical" ? "div" : "hr",
|
|
202
|
-
flexItem:
|
|
202
|
+
flexItem: g = !1,
|
|
203
203
|
light: x = !1,
|
|
204
204
|
role: c = n !== "hr" ? "separator" : void 0,
|
|
205
205
|
textAlign: w = "center",
|
|
@@ -209,14 +209,14 @@ const V = (t) => {
|
|
|
209
209
|
...o,
|
|
210
210
|
absolute: p,
|
|
211
211
|
component: n,
|
|
212
|
-
flexItem:
|
|
212
|
+
flexItem: g,
|
|
213
213
|
light: x,
|
|
214
214
|
orientation: l,
|
|
215
215
|
role: c,
|
|
216
216
|
textAlign: w,
|
|
217
217
|
variant: y
|
|
218
218
|
}, v = V(h);
|
|
219
|
-
return /* @__PURE__ */
|
|
219
|
+
return /* @__PURE__ */ f(N, {
|
|
220
220
|
as: n,
|
|
221
221
|
className: W(v.root, a),
|
|
222
222
|
role: c,
|
|
@@ -224,7 +224,7 @@ const V = (t) => {
|
|
|
224
224
|
ownerState: h,
|
|
225
225
|
"aria-orientation": c === "separator" && (n !== "hr" || l === "vertical") ? l : void 0,
|
|
226
226
|
...C,
|
|
227
|
-
children: s ? /* @__PURE__ */
|
|
227
|
+
children: s ? /* @__PURE__ */ f(B, {
|
|
228
228
|
className: v.wrapper,
|
|
229
229
|
ownerState: h,
|
|
230
230
|
children: s
|
|
@@ -306,7 +306,8 @@ const M = D(d, {
|
|
|
306
306
|
width: o ? 1 : "100%",
|
|
307
307
|
alignSelf: "stretch",
|
|
308
308
|
transition: "313ms all ease-in-out"
|
|
309
|
-
})), E = ({ orientation: t, ...e }) => /* @__PURE__ */
|
|
309
|
+
})), E = ({ orientation: t, ...e }) => /* @__PURE__ */ f(M, { vertical: t === "vertical", ...e });
|
|
310
310
|
export {
|
|
311
|
-
E as
|
|
311
|
+
E as Divider,
|
|
312
|
+
E as default
|
|
312
313
|
};
|
package/base/Divider/index.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
type AlignItems = 'start' | 'center' | 'stretch' | 'end';
|
|
3
|
+
type JustifyContent = 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
4
|
+
export type FlexProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
alignItems?: AlignItems;
|
|
7
|
+
justifyContent?: JustifyContent;
|
|
8
|
+
center?: boolean;
|
|
9
|
+
column?: boolean;
|
|
10
|
+
full?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
padding?: number;
|
|
15
|
+
gap?: number;
|
|
16
|
+
styles?: CSSProperties;
|
|
17
|
+
};
|
|
18
|
+
declare const Flex: React.FC<FlexProps>;
|
|
19
|
+
export default Flex;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
const w =
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { n as x, i as p } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
const w = x("div", {
|
|
4
4
|
shouldForwardProp: (t) => p(t) && typeof t == "string" && t !== "wrap"
|
|
5
5
|
})(
|
|
6
|
-
({ column: t, alignItems: r, justifyContent: n, center: e, wrap: s, full: o, width: l, height: f, styles:
|
|
6
|
+
({ column: t, alignItems: r, justifyContent: n, center: e, wrap: s, full: o, width: l, height: f, styles: d, padding: a, gap: i }) => ({
|
|
7
7
|
display: "flex",
|
|
8
8
|
flexDirection: t ? "column" : "row",
|
|
9
9
|
flexWrap: s ? "wrap" : "nowrap",
|
|
@@ -13,9 +13,9 @@ const w = d("div", {
|
|
|
13
13
|
height: f ?? (o ? "100%" : "auto"),
|
|
14
14
|
gap: i ? `${i}rem` : 0,
|
|
15
15
|
padding: a ? `${a}rem` : 0,
|
|
16
|
-
...
|
|
16
|
+
...d
|
|
17
17
|
})
|
|
18
|
-
), h = ({ children: t, ...r }) => /* @__PURE__ */
|
|
18
|
+
), h = ({ children: t, ...r }) => /* @__PURE__ */ m(w, { ...r, children: t });
|
|
19
19
|
export {
|
|
20
|
-
h as
|
|
20
|
+
h as default
|
|
21
21
|
};
|
package/base/Flex/index.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
export type GridProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
columns?: string;
|
|
5
|
+
autoColumns?: string;
|
|
6
|
+
rows?: string;
|
|
7
|
+
autoRows?: string;
|
|
8
|
+
gap?: number;
|
|
9
|
+
columnGap?: number;
|
|
10
|
+
rowGap?: number;
|
|
11
|
+
styles?: CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
export declare const Grid: React.FC<GridProps>;
|
|
14
|
+
export default Grid;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { n as s } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
const p = s("div")(
|
|
4
|
+
({ columns: r, autoColumns: o, rows: e, autoRows: t, gap: m, columnGap: i, rowGap: a, styles: d }) => ({
|
|
5
|
+
gridTemplateColumns: r,
|
|
6
|
+
gridAutoColumns: o,
|
|
7
|
+
gridTemplateRows: e,
|
|
8
|
+
gridAutoRows: t,
|
|
9
|
+
gap: `${m}rem`,
|
|
10
|
+
columnGap: `${i}rem`,
|
|
11
|
+
rowGap: `${a}rem`,
|
|
12
|
+
display: "grid",
|
|
13
|
+
...d
|
|
14
|
+
})
|
|
15
|
+
), g = ({ children: r, ...o }) => /* @__PURE__ */ n(p, { ...o, children: r });
|
|
16
|
+
export {
|
|
17
|
+
g as Grid,
|
|
18
|
+
g as default
|
|
19
|
+
};
|
package/base/Grid/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { n as Ao } from "
|
|
3
|
-
import we from "
|
|
2
|
+
import { n as Ao } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import we from "../../assets/theme.js";
|
|
4
4
|
import * as i from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { c as
|
|
10
|
-
import {
|
|
5
|
+
import { h as Bo, l as Wo, T as Do, P as e, g as Q, a as ee, e as _, s as F, u as fe, c as le, b as oe, m as To, r as ye, n as so, o as Uo, q as Vo } from "../../.chunks/DefaultPropsProvider.js";
|
|
6
|
+
import { o as co, d as Ho, f as qo, M as _o, a as Ko, h as We } from "../../.chunks/Menu.js";
|
|
7
|
+
import { a as fo, i as no } from "../../.chunks/isHostComponent.js";
|
|
8
|
+
import { m as K } from "../../.chunks/memoTheme.js";
|
|
9
|
+
import { c as Xe } from "../../.chunks/createSimplePaletteValueFilter.js";
|
|
10
|
+
import { a as Ye, u as ro, e as Go, r as Ie } from "../../.chunks/TransitionGroupContext.js";
|
|
11
|
+
import { c as Xo } from "../../.chunks/createSvgIcon.js";
|
|
12
|
+
import { u as Yo, g as Jo } from "../../.chunks/index.js";
|
|
11
13
|
let mo = 0;
|
|
12
14
|
function Zo(o) {
|
|
13
15
|
const [t, n] = i.useState(o), r = o || t;
|
|
@@ -66,7 +68,7 @@ function ot({
|
|
|
66
68
|
defaultTheme: n,
|
|
67
69
|
themeId: r
|
|
68
70
|
}) {
|
|
69
|
-
let s =
|
|
71
|
+
let s = Yo(n);
|
|
70
72
|
return r && (s = s[r] || s), et({
|
|
71
73
|
theme: s,
|
|
72
74
|
name: t,
|
|
@@ -151,7 +153,7 @@ const Ro = /* @__PURE__ */ i.forwardRef(function(t, n) {
|
|
|
151
153
|
cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
152
154
|
g();
|
|
153
155
|
});
|
|
154
|
-
}, w =
|
|
156
|
+
}, w = Ho(g), A = b.current, L = co(A);
|
|
155
157
|
L.addEventListener("resize", w);
|
|
156
158
|
let k;
|
|
157
159
|
return typeof ResizeObserver < "u" && (k = new ResizeObserver(process.env.NODE_ENV === "test" ? p : g), k.observe(A)), () => {
|
|
@@ -437,7 +439,7 @@ const Ze = (o, t) => {
|
|
|
437
439
|
}
|
|
438
440
|
}]
|
|
439
441
|
};
|
|
440
|
-
})), vo =
|
|
442
|
+
})), vo = Jo({
|
|
441
443
|
"@keyframes mui-auto-fill": {
|
|
442
444
|
from: {
|
|
443
445
|
display: "block"
|
|
@@ -728,7 +730,7 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
|
728
730
|
* Either a string to use a HTML element or a component.
|
|
729
731
|
* @default 'input'
|
|
730
732
|
*/
|
|
731
|
-
inputComponent:
|
|
733
|
+
inputComponent: Go,
|
|
732
734
|
/**
|
|
733
735
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
734
736
|
* @default {}
|
|
@@ -3395,7 +3397,7 @@ const qt = (o) => {
|
|
|
3395
3397
|
}, [a]), i.useEffect(() => {
|
|
3396
3398
|
if (!f)
|
|
3397
3399
|
return;
|
|
3398
|
-
const u =
|
|
3400
|
+
const u = qo(P.current).getElementById(f);
|
|
3399
3401
|
if (u) {
|
|
3400
3402
|
const T = () => {
|
|
3401
3403
|
getSelection().isCollapsed && P.current.focus();
|
|
@@ -3552,7 +3554,7 @@ const qt = (o) => {
|
|
|
3552
3554
|
as: C,
|
|
3553
3555
|
className: R.icon,
|
|
3554
3556
|
ownerState: xe
|
|
3555
|
-
}), /* @__PURE__ */ S(
|
|
3557
|
+
}), /* @__PURE__ */ S(_o, {
|
|
3556
3558
|
id: `menu-${p || ""}`,
|
|
3557
3559
|
anchorEl: te,
|
|
3558
3560
|
open: be,
|
|
@@ -3732,7 +3734,7 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
3732
3734
|
*/
|
|
3733
3735
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
3734
3736
|
});
|
|
3735
|
-
const _t =
|
|
3737
|
+
const _t = Xo(/* @__PURE__ */ S("path", {
|
|
3736
3738
|
d: "M7 10l5 5 5-5z"
|
|
3737
3739
|
}), "ArrowDropDown"), Kt = (o) => {
|
|
3738
3740
|
const {
|
|
@@ -3793,7 +3795,7 @@ const _t = Jo(/* @__PURE__ */ S("path", {
|
|
|
3793
3795
|
filled: /* @__PURE__ */ S(Yt, {
|
|
3794
3796
|
ownerState: V
|
|
3795
3797
|
})
|
|
3796
|
-
}[W], J = Ye(n,
|
|
3798
|
+
}[W], J = Ye(n, Ko(I));
|
|
3797
3799
|
return /* @__PURE__ */ S(i.Fragment, {
|
|
3798
3800
|
children: /* @__PURE__ */ i.cloneElement(I, {
|
|
3799
3801
|
// Most of the logic is implemented in `SelectInput`.
|
|
@@ -4387,7 +4389,8 @@ const on = Ao(zo)({
|
|
|
4387
4389
|
border: "none"
|
|
4388
4390
|
}
|
|
4389
4391
|
}
|
|
4390
|
-
}),
|
|
4392
|
+
}), mn = ({ ...o }) => /* @__PURE__ */ S(on, { ...o });
|
|
4391
4393
|
export {
|
|
4392
|
-
|
|
4394
|
+
mn as Input,
|
|
4395
|
+
mn as default
|
|
4393
4396
|
};
|
package/base/Input/index.js
CHANGED
package/base/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { default as t } from "./Avatar/Avatar/Avatar.js";
|
|
2
|
+
import { AvatarWithImage as a } from "./Avatar/AvatarWithImage/AvatarWithImage.js";
|
|
3
|
+
import { Button as m } from "./Button/Button.js";
|
|
4
|
+
import { Divider as x } from "./Divider/Divider.js";
|
|
5
|
+
import { default as i } from "./Flex/Flex.js";
|
|
6
|
+
import { Grid as l } from "./Grid/Grid.js";
|
|
7
|
+
import { Input as n } from "./Input/Input.js";
|
|
8
8
|
export {
|
|
9
9
|
t as Avatar,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
a as AvatarWithImage,
|
|
11
|
+
m as Button,
|
|
12
|
+
x as Divider,
|
|
13
13
|
i as Flex,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
l as Grid,
|
|
15
|
+
n as Input
|
|
16
16
|
};
|