jcicl 0.0.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/.chunks/AppBar.js +359 -0
- package/.chunks/AppContainer.js +71 -0
- package/.chunks/AppHeader.js +31 -0
- package/.chunks/Avatar.js +38 -0
- package/.chunks/AvatarWithImage.js +36 -0
- package/.chunks/BasicPage.js +31 -0
- package/.chunks/Button.js +486 -0
- package/.chunks/ButtonBase.js +874 -0
- package/.chunks/CompactNav.js +70 -0
- package/.chunks/Divider.js +311 -0
- package/.chunks/Flex.js +21 -0
- package/.chunks/Grid.js +18 -0
- package/.chunks/Input.js +4392 -0
- package/.chunks/Menu.js +3160 -0
- package/.chunks/Nav.js +2138 -0
- package/.chunks/TransitionGroupContext.js +342 -0
- package/.chunks/createSimplePaletteValueFilter.js +17 -0
- package/.chunks/createSvgIcon.js +249 -0
- package/.chunks/emotion-styled.browser.esm.js +1032 -0
- package/.chunks/jocologo.js +4 -0
- package/.chunks/memoTheme.js +15 -0
- package/.chunks/theme.js +3314 -0
- package/base/Avatar/Avatar/index.d.ts +1 -0
- package/base/Avatar/Avatar/index.js +4 -0
- package/base/Avatar/AvatarWithImage/index.d.ts +1 -0
- package/base/Avatar/AvatarWithImage/index.js +4 -0
- package/base/Avatar/index.d.ts +2 -0
- package/base/Avatar/index.js +6 -0
- package/base/Button/index.d.ts +1 -0
- package/base/Button/index.js +4 -0
- package/base/Divider/index.d.ts +1 -0
- package/base/Divider/index.js +4 -0
- package/base/Flex/index.d.ts +1 -0
- package/base/Flex/index.js +4 -0
- package/base/Grid/index.d.ts +1 -0
- package/base/Grid/index.js +4 -0
- package/base/Input/index.d.ts +1 -0
- package/base/Input/index.js +4 -0
- package/base/index.d.ts +7 -0
- package/base/index.js +16 -0
- package/index.d.ts +3 -0
- package/index.js +22 -0
- package/package.json +82 -0
- package/supercomposite/AppBar/index.d.ts +1 -0
- package/supercomposite/AppBar/index.js +4 -0
- package/supercomposite/AppHeader/index.d.ts +1 -0
- package/supercomposite/AppHeader/index.js +4 -0
- package/supercomposite/CompactNav/index.d.ts +1 -0
- package/supercomposite/CompactNav/index.js +4 -0
- package/supercomposite/Nav/index.d.ts +2 -0
- package/supercomposite/Nav/index.js +4 -0
- package/supercomposite/index.d.ts +3 -0
- package/supercomposite/index.js +8 -0
- package/templates/AppContainer/index.d.ts +1 -0
- package/templates/AppContainer/index.js +4 -0
- package/templates/BasicPage/index.d.ts +1 -0
- package/templates/BasicPage/index.js +4 -0
- package/templates/index.d.ts +2 -0
- package/templates/index.js +6 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { jsx as e, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { I } from "./Input.js";
|
|
3
|
+
import { B as R } from "./Button.js";
|
|
4
|
+
import { n as y } from "./emotion-styled.browser.esm.js";
|
|
5
|
+
import { l as j } from "./jocologo.js";
|
|
6
|
+
import { a as v, g as x, s as B, e as c, u as A, c as m, P as r, b as k, t as f } from "./theme.js";
|
|
7
|
+
import * as T from "react";
|
|
8
|
+
import { m as C } from "./memoTheme.js";
|
|
9
|
+
import { c as N } from "./createSimplePaletteValueFilter.js";
|
|
10
|
+
import { P as $ } from "./Menu.js";
|
|
11
|
+
function z(o) {
|
|
12
|
+
return v("MuiAppBar", o);
|
|
13
|
+
}
|
|
14
|
+
x("MuiAppBar", ["root", "positionFixed", "positionAbsolute", "positionSticky", "positionStatic", "positionRelative", "colorDefault", "colorPrimary", "colorSecondary", "colorInherit", "colorTransparent", "colorError", "colorInfo", "colorSuccess", "colorWarning"]);
|
|
15
|
+
const D = (o) => {
|
|
16
|
+
const {
|
|
17
|
+
color: t,
|
|
18
|
+
position: a,
|
|
19
|
+
classes: s
|
|
20
|
+
} = o, n = {
|
|
21
|
+
root: ["root", `color${c(t)}`, `position${c(a)}`]
|
|
22
|
+
};
|
|
23
|
+
return k(n, z, s);
|
|
24
|
+
}, b = (o, t) => o ? `${o == null ? void 0 : o.replace(")", "")}, ${t})` : t, M = B($, {
|
|
25
|
+
name: "MuiAppBar",
|
|
26
|
+
slot: "Root",
|
|
27
|
+
overridesResolver: (o, t) => {
|
|
28
|
+
const {
|
|
29
|
+
ownerState: a
|
|
30
|
+
} = o;
|
|
31
|
+
return [t.root, t[`position${c(a.position)}`], t[`color${c(a.color)}`]];
|
|
32
|
+
}
|
|
33
|
+
})(C(({
|
|
34
|
+
theme: o
|
|
35
|
+
}) => ({
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
width: "100%",
|
|
39
|
+
boxSizing: "border-box",
|
|
40
|
+
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
|
41
|
+
flexShrink: 0,
|
|
42
|
+
variants: [{
|
|
43
|
+
props: {
|
|
44
|
+
position: "fixed"
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
position: "fixed",
|
|
48
|
+
zIndex: (o.vars || o).zIndex.appBar,
|
|
49
|
+
top: 0,
|
|
50
|
+
left: "auto",
|
|
51
|
+
right: 0,
|
|
52
|
+
"@media print": {
|
|
53
|
+
// Prevent the app bar to be visible on each printed page.
|
|
54
|
+
position: "absolute"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
props: {
|
|
59
|
+
position: "absolute"
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
position: "absolute",
|
|
63
|
+
zIndex: (o.vars || o).zIndex.appBar,
|
|
64
|
+
top: 0,
|
|
65
|
+
left: "auto",
|
|
66
|
+
right: 0
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
props: {
|
|
70
|
+
position: "sticky"
|
|
71
|
+
},
|
|
72
|
+
style: {
|
|
73
|
+
position: "sticky",
|
|
74
|
+
zIndex: (o.vars || o).zIndex.appBar,
|
|
75
|
+
top: 0,
|
|
76
|
+
left: "auto",
|
|
77
|
+
right: 0
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: {
|
|
81
|
+
position: "static"
|
|
82
|
+
},
|
|
83
|
+
style: {
|
|
84
|
+
position: "static"
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
props: {
|
|
88
|
+
position: "relative"
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
position: "relative"
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
props: {
|
|
95
|
+
color: "inherit"
|
|
96
|
+
},
|
|
97
|
+
style: {
|
|
98
|
+
"--AppBar-color": "inherit"
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
props: {
|
|
102
|
+
color: "default"
|
|
103
|
+
},
|
|
104
|
+
style: {
|
|
105
|
+
"--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[100],
|
|
106
|
+
"--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[100]),
|
|
107
|
+
...o.applyStyles("dark", {
|
|
108
|
+
"--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[900],
|
|
109
|
+
"--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[900])
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
}, ...Object.entries(o.palette).filter(N(["contrastText"])).map(([t]) => ({
|
|
113
|
+
props: {
|
|
114
|
+
color: t
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
"--AppBar-background": (o.vars ?? o).palette[t].main,
|
|
118
|
+
"--AppBar-color": (o.vars ?? o).palette[t].contrastText
|
|
119
|
+
}
|
|
120
|
+
})), {
|
|
121
|
+
props: (t) => t.enableColorOnDark === !0 && !["inherit", "transparent"].includes(t.color),
|
|
122
|
+
style: {
|
|
123
|
+
backgroundColor: "var(--AppBar-background)",
|
|
124
|
+
color: "var(--AppBar-color)"
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
props: (t) => t.enableColorOnDark === !1 && !["inherit", "transparent"].includes(t.color),
|
|
128
|
+
style: {
|
|
129
|
+
backgroundColor: "var(--AppBar-background)",
|
|
130
|
+
color: "var(--AppBar-color)",
|
|
131
|
+
...o.applyStyles("dark", {
|
|
132
|
+
backgroundColor: o.vars ? b(o.vars.palette.AppBar.darkBg, "var(--AppBar-background)") : null,
|
|
133
|
+
color: o.vars ? b(o.vars.palette.AppBar.darkColor, "var(--AppBar-color)") : null
|
|
134
|
+
})
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
props: {
|
|
138
|
+
color: "transparent"
|
|
139
|
+
},
|
|
140
|
+
style: {
|
|
141
|
+
"--AppBar-background": "transparent",
|
|
142
|
+
"--AppBar-color": "inherit",
|
|
143
|
+
backgroundColor: "var(--AppBar-background)",
|
|
144
|
+
color: "var(--AppBar-color)",
|
|
145
|
+
...o.applyStyles("dark", {
|
|
146
|
+
backgroundImage: "none"
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
}]
|
|
150
|
+
}))), w = /* @__PURE__ */ T.forwardRef(function(t, a) {
|
|
151
|
+
const s = A({
|
|
152
|
+
props: t,
|
|
153
|
+
name: "MuiAppBar"
|
|
154
|
+
}), {
|
|
155
|
+
className: n,
|
|
156
|
+
color: i = "primary",
|
|
157
|
+
enableColorOnDark: d = !1,
|
|
158
|
+
position: l = "fixed",
|
|
159
|
+
...u
|
|
160
|
+
} = s, p = {
|
|
161
|
+
...s,
|
|
162
|
+
color: i,
|
|
163
|
+
position: l,
|
|
164
|
+
enableColorOnDark: d
|
|
165
|
+
}, g = D(p);
|
|
166
|
+
return /* @__PURE__ */ e(M, {
|
|
167
|
+
square: !0,
|
|
168
|
+
component: "header",
|
|
169
|
+
ownerState: p,
|
|
170
|
+
elevation: 4,
|
|
171
|
+
className: m(g.root, n, l === "fixed" && "mui-fixed"),
|
|
172
|
+
ref: a,
|
|
173
|
+
...u
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
177
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
178
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
179
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
180
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
181
|
+
/**
|
|
182
|
+
* The content of the component.
|
|
183
|
+
*/
|
|
184
|
+
children: r.node,
|
|
185
|
+
/**
|
|
186
|
+
* Override or extend the styles applied to the component.
|
|
187
|
+
*/
|
|
188
|
+
classes: r.object,
|
|
189
|
+
/**
|
|
190
|
+
* @ignore
|
|
191
|
+
*/
|
|
192
|
+
className: r.string,
|
|
193
|
+
/**
|
|
194
|
+
* The color of the component.
|
|
195
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
196
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
197
|
+
* @default 'primary'
|
|
198
|
+
*/
|
|
199
|
+
color: r.oneOfType([r.oneOf(["default", "inherit", "primary", "secondary", "transparent", "error", "info", "success", "warning"]), r.string]),
|
|
200
|
+
/**
|
|
201
|
+
* If true, the `color` prop is applied in dark mode.
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
enableColorOnDark: r.bool,
|
|
205
|
+
/**
|
|
206
|
+
* The positioning type. The behavior of the different options is described
|
|
207
|
+
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
|
208
|
+
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
|
209
|
+
* @default 'fixed'
|
|
210
|
+
*/
|
|
211
|
+
position: r.oneOf(["absolute", "fixed", "relative", "static", "sticky"]),
|
|
212
|
+
/**
|
|
213
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
214
|
+
*/
|
|
215
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
216
|
+
});
|
|
217
|
+
function h(o) {
|
|
218
|
+
return v("MuiToolbar", o);
|
|
219
|
+
}
|
|
220
|
+
x("MuiToolbar", ["root", "gutters", "regular", "dense"]);
|
|
221
|
+
const P = (o) => {
|
|
222
|
+
const {
|
|
223
|
+
classes: t,
|
|
224
|
+
disableGutters: a,
|
|
225
|
+
variant: s
|
|
226
|
+
} = o;
|
|
227
|
+
return k({
|
|
228
|
+
root: ["root", !a && "gutters", s]
|
|
229
|
+
}, h, t);
|
|
230
|
+
}, U = B("div", {
|
|
231
|
+
name: "MuiToolbar",
|
|
232
|
+
slot: "Root",
|
|
233
|
+
overridesResolver: (o, t) => {
|
|
234
|
+
const {
|
|
235
|
+
ownerState: a
|
|
236
|
+
} = o;
|
|
237
|
+
return [t.root, !a.disableGutters && t.gutters, t[a.variant]];
|
|
238
|
+
}
|
|
239
|
+
})(C(({
|
|
240
|
+
theme: o
|
|
241
|
+
}) => ({
|
|
242
|
+
position: "relative",
|
|
243
|
+
display: "flex",
|
|
244
|
+
alignItems: "center",
|
|
245
|
+
variants: [{
|
|
246
|
+
props: ({
|
|
247
|
+
ownerState: t
|
|
248
|
+
}) => !t.disableGutters,
|
|
249
|
+
style: {
|
|
250
|
+
paddingLeft: o.spacing(2),
|
|
251
|
+
paddingRight: o.spacing(2),
|
|
252
|
+
[o.breakpoints.up("sm")]: {
|
|
253
|
+
paddingLeft: o.spacing(3),
|
|
254
|
+
paddingRight: o.spacing(3)
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
props: {
|
|
259
|
+
variant: "dense"
|
|
260
|
+
},
|
|
261
|
+
style: {
|
|
262
|
+
minHeight: 48
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
props: {
|
|
266
|
+
variant: "regular"
|
|
267
|
+
},
|
|
268
|
+
style: o.mixins.toolbar
|
|
269
|
+
}]
|
|
270
|
+
}))), S = /* @__PURE__ */ T.forwardRef(function(t, a) {
|
|
271
|
+
const s = A({
|
|
272
|
+
props: t,
|
|
273
|
+
name: "MuiToolbar"
|
|
274
|
+
}), {
|
|
275
|
+
className: n,
|
|
276
|
+
component: i = "div",
|
|
277
|
+
disableGutters: d = !1,
|
|
278
|
+
variant: l = "regular",
|
|
279
|
+
...u
|
|
280
|
+
} = s, p = {
|
|
281
|
+
...s,
|
|
282
|
+
component: i,
|
|
283
|
+
disableGutters: d,
|
|
284
|
+
variant: l
|
|
285
|
+
}, g = P(p);
|
|
286
|
+
return /* @__PURE__ */ e(U, {
|
|
287
|
+
as: i,
|
|
288
|
+
className: m(g.root, n),
|
|
289
|
+
ref: a,
|
|
290
|
+
ownerState: p,
|
|
291
|
+
...u
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
295
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
296
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
297
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
298
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
299
|
+
/**
|
|
300
|
+
* The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
|
|
301
|
+
* The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.
|
|
302
|
+
*/
|
|
303
|
+
children: r.node,
|
|
304
|
+
/**
|
|
305
|
+
* Override or extend the styles applied to the component.
|
|
306
|
+
*/
|
|
307
|
+
classes: r.object,
|
|
308
|
+
/**
|
|
309
|
+
* @ignore
|
|
310
|
+
*/
|
|
311
|
+
className: r.string,
|
|
312
|
+
/**
|
|
313
|
+
* The component used for the root node.
|
|
314
|
+
* Either a string to use a HTML element or a component.
|
|
315
|
+
*/
|
|
316
|
+
component: r.elementType,
|
|
317
|
+
/**
|
|
318
|
+
* If `true`, disables gutter padding.
|
|
319
|
+
* @default false
|
|
320
|
+
*/
|
|
321
|
+
disableGutters: r.bool,
|
|
322
|
+
/**
|
|
323
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
324
|
+
*/
|
|
325
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
326
|
+
/**
|
|
327
|
+
* The variant to use.
|
|
328
|
+
* @default 'regular'
|
|
329
|
+
*/
|
|
330
|
+
variant: r.oneOfType([r.oneOf(["dense", "regular"]), r.string])
|
|
331
|
+
});
|
|
332
|
+
const E = y(w)({
|
|
333
|
+
width: "100%",
|
|
334
|
+
padding: 0,
|
|
335
|
+
boxShadow: "0px 0px 7px 4px rgba(0, 0, 0, 0.63)",
|
|
336
|
+
backgroundColor: f.colors.midnight,
|
|
337
|
+
position: "sticky",
|
|
338
|
+
top: "0",
|
|
339
|
+
zIndex: 1e3,
|
|
340
|
+
height: `${f.constants.appBarHeight}px`
|
|
341
|
+
}), G = y(S)(() => ({
|
|
342
|
+
display: "flex",
|
|
343
|
+
width: "calc(100% - 3rem)",
|
|
344
|
+
justifyContent: "space-between",
|
|
345
|
+
color: f.colors.white,
|
|
346
|
+
padding: "0.5rem 1.5rem 0 1.5rem",
|
|
347
|
+
gap: "2rem",
|
|
348
|
+
"@media (min-width: 600px)": {
|
|
349
|
+
paddingLeft: "1.5rem",
|
|
350
|
+
paddingRight: "1.5rem"
|
|
351
|
+
}
|
|
352
|
+
})), Q = ({ ...o }) => /* @__PURE__ */ e(E, { position: "static", ...o, children: /* @__PURE__ */ O(G, { children: [
|
|
353
|
+
/* @__PURE__ */ e("a", { href: "https://int.johnsoncountyiowa.gov/home", target: "_blank", children: /* @__PURE__ */ e("img", { src: j, alt: "logo", width: "60px" }) }),
|
|
354
|
+
/* @__PURE__ */ e(I, { placeholder: "Search..." }),
|
|
355
|
+
/* @__PURE__ */ e(R, { children: "Log in" })
|
|
356
|
+
] }) });
|
|
357
|
+
export {
|
|
358
|
+
Q as A
|
|
359
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { A as s } from "./AppHeader.js";
|
|
3
|
+
import { C as l } from "./CompactNav.js";
|
|
4
|
+
import { n as i } from "./emotion-styled.browser.esm.js";
|
|
5
|
+
import { t as r } from "./theme.js";
|
|
6
|
+
const c = i("div")({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
width: "100%",
|
|
10
|
+
position: "relative",
|
|
11
|
+
backgroundColor: r.colors.whiteGreen2,
|
|
12
|
+
height: "100vh",
|
|
13
|
+
fontFamily: "Roboto, sans-serif",
|
|
14
|
+
overflow: "hidden"
|
|
15
|
+
}), x = i("div")({
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
justifyContent: "flex-start",
|
|
19
|
+
alignItems: "flex-start",
|
|
20
|
+
width: "calc(100% - 2px)",
|
|
21
|
+
padding: "4px 2px",
|
|
22
|
+
paddingLeft: 0,
|
|
23
|
+
height: `calc(100% - ${r.constants.appHeaderHeight}px - 8px)`
|
|
24
|
+
}), m = i("div")(({ withActionsPanel: o }) => ({
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
opacity: o ? 1 : 0,
|
|
28
|
+
border: `1px solid ${r.colors.green}`,
|
|
29
|
+
borderRight: 0,
|
|
30
|
+
borderRadius: "4px",
|
|
31
|
+
borderTopRightRadius: 0,
|
|
32
|
+
borderBottomRightRadius: 0,
|
|
33
|
+
height: "calc(100% - 32px)",
|
|
34
|
+
padding: o ? "1rem" : 0,
|
|
35
|
+
backgroundColor: r.colors.darkGreenO22,
|
|
36
|
+
color: r.colors.mint,
|
|
37
|
+
width: o ? "400px" : 0,
|
|
38
|
+
transition: "313ms all ease-in-out",
|
|
39
|
+
...!o && {
|
|
40
|
+
border: "none"
|
|
41
|
+
}
|
|
42
|
+
})), f = i("div")(({ withActionsPanel: o }) => ({
|
|
43
|
+
display: "flex",
|
|
44
|
+
backgroundColor: r.colors.whiteGreen,
|
|
45
|
+
borderRadius: "4px",
|
|
46
|
+
borderBottomLeftRadius: o ? 0 : "4px",
|
|
47
|
+
borderTopLeftRadius: o ? 0 : "4px",
|
|
48
|
+
border: `1px solid ${r.colors.green}`,
|
|
49
|
+
width: "100%",
|
|
50
|
+
height: "calc(100% - 2rem)",
|
|
51
|
+
padding: "1rem",
|
|
52
|
+
h1: {
|
|
53
|
+
margin: 0
|
|
54
|
+
}
|
|
55
|
+
})), R = ({
|
|
56
|
+
navProps: o,
|
|
57
|
+
appHeaderProps: n,
|
|
58
|
+
withActionsPanel: t,
|
|
59
|
+
actionsPanelContent: d,
|
|
60
|
+
children: p
|
|
61
|
+
}) => /* @__PURE__ */ a(c, { children: [
|
|
62
|
+
/* @__PURE__ */ e(s, { ...n }),
|
|
63
|
+
/* @__PURE__ */ a(x, { children: [
|
|
64
|
+
/* @__PURE__ */ e(l, { ...o }),
|
|
65
|
+
/* @__PURE__ */ e(m, { withActionsPanel: t, children: d && d }),
|
|
66
|
+
/* @__PURE__ */ e(f, { withActionsPanel: t, children: p })
|
|
67
|
+
] })
|
|
68
|
+
] });
|
|
69
|
+
export {
|
|
70
|
+
R as A
|
|
71
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a } from "react";
|
|
3
|
+
import { n } from "./emotion-styled.browser.esm.js";
|
|
4
|
+
import { t as o } from "./theme.js";
|
|
5
|
+
import { l as s } from "./jocologo.js";
|
|
6
|
+
import { I as p } from "./Input.js";
|
|
7
|
+
import { B as m } from "./Button.js";
|
|
8
|
+
import { A as c } from "./Avatar.js";
|
|
9
|
+
const d = n("div")({
|
|
10
|
+
display: "grid",
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
padding: "4px 16px 4px 20px",
|
|
13
|
+
backgroundColor: "transparent",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "space-between",
|
|
16
|
+
gridTemplateColumns: `minmax(${o.constants.appSideNavWidth + o.constants.appInnerNavWidth}px, 1fr) 2fr 1fr`
|
|
17
|
+
}), l = n("img")({
|
|
18
|
+
height: "40px"
|
|
19
|
+
}), f = n("div")({}), g = n("div")({
|
|
20
|
+
justifySelf: "end"
|
|
21
|
+
}), j = () => {
|
|
22
|
+
const [r, e] = a(!1);
|
|
23
|
+
return /* @__PURE__ */ i(d, { children: [
|
|
24
|
+
/* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(l, { src: s }) }),
|
|
25
|
+
/* @__PURE__ */ t(p, { placeholder: "Search..." }),
|
|
26
|
+
/* @__PURE__ */ t(g, { children: r ? /* @__PURE__ */ t(c, { onClick: () => e(!1) }) : /* @__PURE__ */ t(m, { onClick: () => e(!0), children: "Log In" }) })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
j as A
|
|
31
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "./createSvgIcon.js";
|
|
3
|
+
import { B as d } from "./ButtonBase.js";
|
|
4
|
+
import { t as i } from "./theme.js";
|
|
5
|
+
import { n as a, i as l } from "./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: n = i.colors.mint, size: o = 40 }) => ({
|
|
11
|
+
border: `1px solid ${r}`,
|
|
12
|
+
backgroundColor: n,
|
|
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: n,
|
|
33
|
+
size: o,
|
|
34
|
+
...e
|
|
35
|
+
}) => e != null && e.onClick ? /* @__PURE__ */ t(p, { ...e, children: /* @__PURE__ */ t(s, { avatarColor: r, backgroundColor: n, size: o }) }) : /* @__PURE__ */ t(s, { avatarColor: r, backgroundColor: n, size: o });
|
|
36
|
+
export {
|
|
37
|
+
g as A
|
|
38
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { B as c } from "./ButtonBase.js";
|
|
3
|
+
import { t as m } from "./theme.js";
|
|
4
|
+
import { n as d } from "./emotion-styled.browser.esm.js";
|
|
5
|
+
const s = d("img")(
|
|
6
|
+
({ borderColor: o = m.colors.darkGreen, size: r = 40, objectFit: e = "cover" }) => ({
|
|
7
|
+
border: `1px solid ${o}`,
|
|
8
|
+
borderRadius: "50%",
|
|
9
|
+
width: `${r - 2}px`,
|
|
10
|
+
height: `${r - 2}px`,
|
|
11
|
+
pointerEvents: "none",
|
|
12
|
+
objectFit: e,
|
|
13
|
+
objectPosition: "top"
|
|
14
|
+
})
|
|
15
|
+
), l = d(c)({
|
|
16
|
+
backgroundColor: "transparent",
|
|
17
|
+
borderRadius: "50%",
|
|
18
|
+
span: {
|
|
19
|
+
transition: "313ms all ease-in-out"
|
|
20
|
+
},
|
|
21
|
+
"&:hover, :focus": {
|
|
22
|
+
span: {
|
|
23
|
+
backgroundColor: m.colors.grayO44
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}), u = ({
|
|
27
|
+
borderColor: o,
|
|
28
|
+
alt: r = "profile image",
|
|
29
|
+
size: e,
|
|
30
|
+
objectFit: t,
|
|
31
|
+
src: i,
|
|
32
|
+
...a
|
|
33
|
+
}) => a != null && a.onClick ? /* @__PURE__ */ n(l, { ...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
|
+
export {
|
|
35
|
+
u as A
|
|
36
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { A as s } from "./AppBar.js";
|
|
3
|
+
import { N as p } from "./Nav.js";
|
|
4
|
+
import { n as r } from "./emotion-styled.browser.esm.js";
|
|
5
|
+
import { t as a } from "./theme.js";
|
|
6
|
+
const m = r("div")({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
width: "100%",
|
|
10
|
+
position: "relative"
|
|
11
|
+
}), l = r("div")({
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
justifyContent: "flex-start",
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
width: `calc(100% - 2rem - ${a.constants.navBarWidth}px)`,
|
|
17
|
+
marginLeft: `${a.constants.navBarWidth}px`,
|
|
18
|
+
padding: "1rem",
|
|
19
|
+
height: `calc(100% - ${a.constants.appBarHeight}px)`,
|
|
20
|
+
fontFamily: "Roboto, sans-serif",
|
|
21
|
+
h1: {
|
|
22
|
+
margin: 0
|
|
23
|
+
}
|
|
24
|
+
}), g = ({ appBarProps: e, navProps: i, children: n }) => /* @__PURE__ */ o(m, { children: [
|
|
25
|
+
/* @__PURE__ */ t(s, { ...e }),
|
|
26
|
+
/* @__PURE__ */ t(p, { withAppBar: !0, ...i, anchor: "left" }),
|
|
27
|
+
/* @__PURE__ */ t(l, { children: n })
|
|
28
|
+
] });
|
|
29
|
+
export {
|
|
30
|
+
g as B
|
|
31
|
+
};
|