jcicl 0.0.130 → 0.0.133
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/DefaultPropsProvider.js +439 -439
- package/.chunks/Portal.js +42 -42
- package/.chunks/{Input.js → TextField.js} +708 -794
- package/.chunks/TransitionGroupContext.js +6 -7
- package/AppContainer/AppContainer.d.ts +11 -4
- package/AppContainer/AppContainer.js +487 -480
- package/AppHeader/AppHeader.d.ts +7 -2
- package/AppHeader/AppHeader.js +98 -70
- package/Button/Button.d.ts +2 -1
- package/Button/Button.js +107 -89
- package/EditableInfoCard/EditableInfoCard.js +1 -1
- package/Flex/Flex.js +12 -11
- package/Icon/Icon.d.ts +1 -0
- package/Icon/Icon.js +22 -18
- package/Input/Input.d.ts +0 -3
- package/Input/Input.js +41 -6
- package/Input/index.js +2 -2
- package/LabeledInput/LabeledInput.js +4 -4
- package/ListButton/ListButton.d.ts +1 -1
- package/Search/Search.d.ts +15 -0
- package/Search/Search.js +192 -0
- package/Search/index.d.ts +1 -0
- package/Search/index.js +4 -0
- package/animation/Pulse/Pulse.d.ts +11 -0
- package/animation/Pulse/Pulse.js +58 -0
- package/animation/Pulse/index.d.ts +1 -0
- package/animation/Pulse/index.js +4 -0
- package/index.d.ts +0 -1
- package/index.js +48 -50
- package/package.json +1 -1
- package/theme.d.ts +6 -0
- package/theme.js +5 -0
- package/Avatar/Avatar.d.ts +0 -8
- package/Avatar/Avatar.js +0 -38
- package/Avatar/index.d.ts +0 -1
- package/Avatar/index.js +0 -4
|
@@ -11,7 +11,7 @@ import L from "../Loading/Loading.js";
|
|
|
11
11
|
import M from "../WithLoading/WithLoading.js";
|
|
12
12
|
import { Flex as f } from "../Flex/Flex.js";
|
|
13
13
|
import { Tooltip as x } from "../Tooltip/Tooltip.js";
|
|
14
|
-
import { T as _ } from "../.chunks/
|
|
14
|
+
import { T as _ } from "../.chunks/TextField.js";
|
|
15
15
|
import { B as oo } from "../.chunks/ButtonBase.js";
|
|
16
16
|
const eo = j(/* @__PURE__ */ o("path", {
|
|
17
17
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
package/Flex/Flex.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { n as d, i as m } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
const p = d("div", {
|
|
4
4
|
shouldForwardProp: (o) => m(o) && typeof o == "string" && o !== "wrap"
|
|
5
5
|
})(
|
|
6
|
-
({ column: o, alignItems: r, justifyContent: a, wrap:
|
|
6
|
+
({ column: o, alignItems: r, justifyContent: a, wrap: e, width: i, height: s, styles: n, padding: t, gap: l, placeContent: f }) => ({
|
|
7
|
+
boxSizing: "border-box",
|
|
7
8
|
display: "flex",
|
|
8
9
|
flexDirection: o ? "column" : "row",
|
|
9
|
-
flexWrap:
|
|
10
|
+
flexWrap: e ? "wrap" : "nowrap",
|
|
10
11
|
alignItems: r,
|
|
11
12
|
justifyContent: a,
|
|
12
13
|
placeContent: f,
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
14
|
+
width: i,
|
|
15
|
+
height: s,
|
|
15
16
|
gap: l,
|
|
16
|
-
padding:
|
|
17
|
+
padding: t,
|
|
17
18
|
fontFamily: "Roboto, sans-serif",
|
|
18
19
|
...n
|
|
19
20
|
})
|
|
20
|
-
),
|
|
21
|
+
), b = ({ children: o, ...r }) => /* @__PURE__ */ x(p, { className: "jcFlex", ...r, children: o });
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
b as Flex,
|
|
24
|
+
b as default
|
|
24
25
|
};
|
package/Icon/Icon.d.ts
CHANGED
package/Icon/Icon.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import
|
|
4
|
-
import { n as l, i as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { B as p } from "../.chunks/ButtonBase.js";
|
|
3
|
+
import i from "../theme.js";
|
|
4
|
+
import { n as l, i as m } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
5
|
const a = l("div", {
|
|
6
|
-
shouldForwardProp: (r) =>
|
|
6
|
+
shouldForwardProp: (r) => m(r)
|
|
7
7
|
})(
|
|
8
|
-
({ iconColor: r =
|
|
8
|
+
({ iconColor: r = i.colors.darkGreen, backgroundColor: n = i.colors.mint, size: o = 40, padding: s = 8 }) => ({
|
|
9
9
|
display: "flex",
|
|
10
10
|
alignItems: "center",
|
|
11
11
|
justifyContent: "center",
|
|
12
|
+
borderRadius: "50%",
|
|
13
|
+
boxShadow: `0 0 2px ${i.colors.midnight}`,
|
|
12
14
|
svg: {
|
|
15
|
+
boxSizing: "border-box",
|
|
13
16
|
border: `1px solid ${r}`,
|
|
14
17
|
backgroundColor: n,
|
|
15
18
|
borderRadius: "50%",
|
|
16
|
-
padding:
|
|
19
|
+
padding: `${s}px`,
|
|
17
20
|
fill: r,
|
|
18
|
-
width: `${
|
|
19
|
-
height: `${
|
|
21
|
+
width: `${o}px`,
|
|
22
|
+
height: `${o}px`,
|
|
20
23
|
pointerEvents: "none"
|
|
21
24
|
}
|
|
22
25
|
})
|
|
23
|
-
),
|
|
26
|
+
), h = l(p)({
|
|
24
27
|
backgroundColor: "transparent",
|
|
25
28
|
borderRadius: "50%",
|
|
26
29
|
span: {
|
|
@@ -28,19 +31,20 @@ const a = l("div", {
|
|
|
28
31
|
},
|
|
29
32
|
"&:hover, :focus-visible": {
|
|
30
33
|
span: {
|
|
31
|
-
backgroundColor:
|
|
34
|
+
backgroundColor: i.colors.grayO44
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
|
-
}),
|
|
37
|
+
}), b = ({
|
|
35
38
|
icon: r,
|
|
36
39
|
iconColor: n,
|
|
37
|
-
backgroundColor:
|
|
38
|
-
size:
|
|
39
|
-
|
|
40
|
+
backgroundColor: o,
|
|
41
|
+
size: s,
|
|
42
|
+
padding: c,
|
|
43
|
+
...e
|
|
40
44
|
}) => {
|
|
41
|
-
const
|
|
42
|
-
return
|
|
45
|
+
const d = { iconColor: n, backgroundColor: o, size: s, padding: c };
|
|
46
|
+
return e != null && e.onClick ? /* @__PURE__ */ t(h, { ...e, children: /* @__PURE__ */ t(a, { ...d, children: r }) }) : /* @__PURE__ */ t(a, { ...d, children: r });
|
|
43
47
|
};
|
|
44
48
|
export {
|
|
45
|
-
|
|
49
|
+
b as default
|
|
46
50
|
};
|
package/Input/Input.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
|
|
2
2
|
export type InputProps = Omit<MuiTextFieldProps, 'variant'> & {
|
|
3
|
-
variant?: 'outlined' | 'simple';
|
|
4
|
-
shadowTertiary?: string;
|
|
5
|
-
borderColor?: string;
|
|
6
3
|
borderFocusColor?: string;
|
|
7
4
|
};
|
|
8
5
|
export declare const Input: React.FC<InputProps>;
|
package/Input/Input.js
CHANGED
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
-
import "../theme.js";
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import r from "../theme.js";
|
|
4
|
+
import { T as d } from "../.chunks/TextField.js";
|
|
5
|
+
const s = t(d, {
|
|
6
|
+
shouldForwardProp: (o) => o != "borderFocusColor"
|
|
7
|
+
})(({ borderFocusColor: o }) => ({
|
|
8
|
+
backgroundColor: r.colors.white,
|
|
9
|
+
borderRadius: "0",
|
|
10
|
+
height: "18px",
|
|
11
|
+
input: {
|
|
12
|
+
transition: "313ms all ease-out",
|
|
13
|
+
height: "15px",
|
|
14
|
+
padding: "2px 0",
|
|
15
|
+
borderRadius: "0",
|
|
16
|
+
borderBottom: `1px solid ${r.colors.gray}`,
|
|
17
|
+
"&:focus-visible": {
|
|
18
|
+
boxShadow: `0 3px 2px -2px ${o}`
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"&:hover, :focus-visible": {
|
|
22
|
+
input: {
|
|
23
|
+
boxShadow: `0 3px 2px -2px ${o}`
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
fieldset: {
|
|
27
|
+
borderRadius: "0",
|
|
28
|
+
border: "none"
|
|
29
|
+
},
|
|
30
|
+
"&.Mui-focused": {
|
|
31
|
+
fieldset: {
|
|
32
|
+
border: "none"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})), x = ({
|
|
36
|
+
borderFocusColor: o = r.colors.darkGreen,
|
|
37
|
+
// icon primary
|
|
38
|
+
...e
|
|
39
|
+
}) => /* @__PURE__ */ i(s, { borderFocusColor: o, ...e });
|
|
5
40
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
41
|
+
x as Input,
|
|
42
|
+
x as default
|
|
8
43
|
};
|
package/Input/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
1
|
+
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { n as p } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
3
|
import { c as s } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Input as i } from "../Input/Input.js";
|
|
5
5
|
const n = p("div")(({ grid: t }) => ({
|
|
6
6
|
...s`
|
|
7
7
|
display: flex;
|
|
@@ -23,12 +23,12 @@ const n = p("div")(({ grid: t }) => ({
|
|
|
23
23
|
width: ${t && "calc(100% + 4px)"};
|
|
24
24
|
}
|
|
25
25
|
`
|
|
26
|
-
})), c = ({ label: t, grid:
|
|
26
|
+
})), c = ({ label: t, grid: o = !0, ...r }) => /* @__PURE__ */ e(n, { grid: o, children: [
|
|
27
27
|
/* @__PURE__ */ e("span", { children: [
|
|
28
28
|
t,
|
|
29
29
|
":"
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ a(i, { ...r })
|
|
32
32
|
] });
|
|
33
33
|
export {
|
|
34
34
|
c as LabeledInput,
|
|
@@ -5,7 +5,7 @@ export interface ListButtonProps extends ButtonBaseProps {
|
|
|
5
5
|
active?: boolean;
|
|
6
6
|
activeStyles?: CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "
|
|
8
|
+
declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & {
|
|
9
9
|
theme?: import('@emotion/react').Theme;
|
|
10
10
|
} & ListButtonProps, {}, {}>;
|
|
11
11
|
export default ListButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
|
|
2
|
+
export type SearchFilterProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type SearchProps = Omit<MuiTextFieldProps, 'variant'> & {
|
|
8
|
+
shadowTertiary?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
borderFocusColor?: string;
|
|
11
|
+
onSearch: () => void;
|
|
12
|
+
filters?: SearchFilterProps[];
|
|
13
|
+
};
|
|
14
|
+
export declare const Search: React.FC<SearchProps>;
|
|
15
|
+
export default Search;
|
package/Search/Search.js
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S } from "react";
|
|
3
|
+
import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as l } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import e from "../theme.js";
|
|
6
|
+
import z from "../Icon/Icon.js";
|
|
7
|
+
import { Button as p } from "../Button/Button.js";
|
|
8
|
+
import { c as m } from "../.chunks/createSvgIcon.js";
|
|
9
|
+
import { T as y } from "../.chunks/TextField.js";
|
|
10
|
+
const k = m(/* @__PURE__ */ r("path", {
|
|
11
|
+
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
12
|
+
}), "Search"), C = m(/* @__PURE__ */ r("path", {
|
|
13
|
+
d: "M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"
|
|
14
|
+
}), "FilterList"), M = s("div")(() => ({
|
|
15
|
+
...l`
|
|
16
|
+
position: relative;
|
|
17
|
+
width: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
`
|
|
22
|
+
})), R = s(y)(({ borderColor: o, borderFocusColor: i, shadowTertiary: a }) => ({
|
|
23
|
+
backgroundColor: e.colors.white,
|
|
24
|
+
borderRadius: "1rem",
|
|
25
|
+
height: "2rem",
|
|
26
|
+
border: `1px solid ${o}`,
|
|
27
|
+
transition: "313ms all ease-out",
|
|
28
|
+
zIndex: 1327,
|
|
29
|
+
".MuiInputBase-root": {
|
|
30
|
+
padding: "0 2px"
|
|
31
|
+
},
|
|
32
|
+
svg: {
|
|
33
|
+
border: "none !important",
|
|
34
|
+
transition: "313ms all ease-out",
|
|
35
|
+
borderRadius: "50%",
|
|
36
|
+
boxSizing: "border-box"
|
|
37
|
+
},
|
|
38
|
+
".jcButton": {
|
|
39
|
+
marginRight: "2px",
|
|
40
|
+
svg: {
|
|
41
|
+
padding: "2px"
|
|
42
|
+
},
|
|
43
|
+
"&:hover": {
|
|
44
|
+
svg: {
|
|
45
|
+
boxShadow: `0 0 2px ${e.colors.midnight}`
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
button: {
|
|
50
|
+
borderRadius: "50%",
|
|
51
|
+
"&:hover": {
|
|
52
|
+
svg: {
|
|
53
|
+
backgroundColor: i,
|
|
54
|
+
fill: e.colors.white
|
|
55
|
+
},
|
|
56
|
+
".MuiTouchRipple-root": {
|
|
57
|
+
backgroundColor: "transparent"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
input: {
|
|
62
|
+
boxSizing: "border-box",
|
|
63
|
+
padding: 0,
|
|
64
|
+
paddingRight: "4px",
|
|
65
|
+
transition: "313ms all ease-out",
|
|
66
|
+
height: "2rem",
|
|
67
|
+
borderRadius: "1rem",
|
|
68
|
+
boxShadow: "0 0 0 0",
|
|
69
|
+
display: "flex",
|
|
70
|
+
alignItems: "center"
|
|
71
|
+
},
|
|
72
|
+
"&:hover, :focus-visible, :focus-within": {
|
|
73
|
+
borderColor: i,
|
|
74
|
+
boxShadow: a
|
|
75
|
+
},
|
|
76
|
+
"&:focus-visible": {
|
|
77
|
+
borderColor: o,
|
|
78
|
+
borderWidth: "2px"
|
|
79
|
+
},
|
|
80
|
+
fieldset: {
|
|
81
|
+
borderRadius: "1rem",
|
|
82
|
+
border: "none"
|
|
83
|
+
},
|
|
84
|
+
"&.Mui-focused": {
|
|
85
|
+
fieldset: {
|
|
86
|
+
border: "none"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})), $ = s("div")(({ open: o }) => ({
|
|
90
|
+
...l`
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
position: absolute;
|
|
93
|
+
width: calc(50%);
|
|
94
|
+
top: 1rem;
|
|
95
|
+
right: 3px;
|
|
96
|
+
z-index: 1313;
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: 1rem;
|
|
99
|
+
background-color: ${e.colors.white};
|
|
100
|
+
box-shadow: ${e.boxShadows.midnight};
|
|
101
|
+
padding: ${o ? "2rem 1rem" : 0};
|
|
102
|
+
transition: 313ms all ease-in-out;
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-rows: ${o ? "1fr" : "0fr"};
|
|
105
|
+
|
|
106
|
+
.filtersWrapper {
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media screen and (max-width: ${e.screenSizes.tablet}) {
|
|
111
|
+
width: calc(100% - 6px);
|
|
112
|
+
}
|
|
113
|
+
`
|
|
114
|
+
})), F = s("div")(() => ({
|
|
115
|
+
...l`
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-template-columns: repeat(3, 1fr);
|
|
118
|
+
grid-row-gap: 1.3rem;
|
|
119
|
+
grid-column-gap: 1.3rem;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
width: 100%;
|
|
123
|
+
|
|
124
|
+
@media screen and (max-width: ${e.screenSizes.tablet}) {
|
|
125
|
+
display: grid;
|
|
126
|
+
grid-template-columns: repeat(2, 1fr);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media screen and (max-width: 786px) {
|
|
130
|
+
grid-template-columns: repeat(1, 1fr);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.filtersButton {
|
|
134
|
+
width: 100%;
|
|
135
|
+
justify-self: center;
|
|
136
|
+
}
|
|
137
|
+
`
|
|
138
|
+
})), P = ({
|
|
139
|
+
borderColor: o = e.colors.green,
|
|
140
|
+
// border primary
|
|
141
|
+
borderFocusColor: i = e.colors.darkGreen,
|
|
142
|
+
// icon primary
|
|
143
|
+
shadowTertiary: a = e.boxShadows.darkGreenThick,
|
|
144
|
+
filters: t,
|
|
145
|
+
onSearch: d,
|
|
146
|
+
...h
|
|
147
|
+
}) => {
|
|
148
|
+
const [c, g] = S(!1), u = (n) => {
|
|
149
|
+
n.preventDefault(), n.key === "Enter" && d && d();
|
|
150
|
+
}, x = { borderColor: o, borderFocusColor: i, shadowTertiary: a, ...h }, b = t && t.length > 0;
|
|
151
|
+
return /* @__PURE__ */ v(M, { children: [
|
|
152
|
+
/* @__PURE__ */ r(
|
|
153
|
+
R,
|
|
154
|
+
{
|
|
155
|
+
slotProps: {
|
|
156
|
+
input: {
|
|
157
|
+
startAdornment: /* @__PURE__ */ r(
|
|
158
|
+
p,
|
|
159
|
+
{
|
|
160
|
+
variant: "icon",
|
|
161
|
+
size: 28,
|
|
162
|
+
onClick: d,
|
|
163
|
+
color: i,
|
|
164
|
+
highlightColor: "transparent",
|
|
165
|
+
children: /* @__PURE__ */ r(k, {})
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
endAdornment: b && /* @__PURE__ */ r(
|
|
169
|
+
z,
|
|
170
|
+
{
|
|
171
|
+
onClick: () => g(!c),
|
|
172
|
+
icon: /* @__PURE__ */ r(C, {}),
|
|
173
|
+
backgroundColor: o,
|
|
174
|
+
iconColor: e.colors.white,
|
|
175
|
+
size: 28,
|
|
176
|
+
padding: 3
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
type: "search",
|
|
182
|
+
...x,
|
|
183
|
+
onKeyUp: u
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ r($, { open: c, children: /* @__PURE__ */ r(F, { className: "filtersWrapper", children: t == null ? void 0 : t.map(({ name: n, onClick: f, active: w }) => /* @__PURE__ */ r(p, { className: "filtersButton", variant: "filter", onClick: f, active: w, children: n }, n)) }) })
|
|
187
|
+
] });
|
|
188
|
+
};
|
|
189
|
+
export {
|
|
190
|
+
P as Search,
|
|
191
|
+
P as default
|
|
192
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type SearchProps, type SearchFilterProps } from './Search';
|
package/Search/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PulseContainerProps {
|
|
2
|
+
color: string;
|
|
3
|
+
size: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
growth: number;
|
|
6
|
+
}
|
|
7
|
+
export type PulseProps = Partial<PulseContainerProps> & {
|
|
8
|
+
frequency?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const Pulse: React.FC<PulseProps>;
|
|
11
|
+
export default Pulse;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { n as p } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as l } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import d from "../../theme.js";
|
|
5
|
+
const c = p("div")(({ color: o, size: r, duration: a, growth: t }) => ({
|
|
6
|
+
...l`
|
|
7
|
+
* {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
position: relative;
|
|
13
|
+
width: ${r}px;
|
|
14
|
+
height: ${r}px;
|
|
15
|
+
background-color: ${o};
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
|
|
18
|
+
span {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translate(-50%, -50%);
|
|
23
|
+
background: transparent;
|
|
24
|
+
border: 1px solid ${o};
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
animation: pulse ${a}s linear infinite;
|
|
27
|
+
animation-delay: calc(var(--i) * 0.5s);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes pulse {
|
|
31
|
+
0% {
|
|
32
|
+
width: ${r}px;
|
|
33
|
+
height: ${r}px;
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
50% {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
width: ${r * t}px;
|
|
41
|
+
height: ${r * t}px;
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`
|
|
46
|
+
})), $ = ({
|
|
47
|
+
color: o = d.colors.qalb,
|
|
48
|
+
size: r = 12,
|
|
49
|
+
frequency: a = 4,
|
|
50
|
+
duration: t = 2,
|
|
51
|
+
growth: n = 6.3
|
|
52
|
+
}) => {
|
|
53
|
+
const e = Array(a).fill(0).map((u, s) => /* @__PURE__ */ i("span", { style: { "--i": s } }));
|
|
54
|
+
return /* @__PURE__ */ i(c, { ...{ color: o, size: r, duration: t, growth: n }, children: e });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
$ as default
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type PulseProps } from './Pulse';
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { I } from "
|
|
9
|
-
import {
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { default as T } from "./
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { default as z } from "./
|
|
21
|
-
import { default as K } from "./
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { default as Y } from "./AppContainer/AppContainer.js";
|
|
1
|
+
import { AvatarWithImage as t } from "./AvatarWithImage/AvatarWithImage.js";
|
|
2
|
+
import { Button as a } from "./Button/Button.js";
|
|
3
|
+
import { Divider as p } from "./Divider/Divider.js";
|
|
4
|
+
import { Flex as x } from "./Flex/Flex.js";
|
|
5
|
+
import { Grid as l } from "./Grid/Grid.js";
|
|
6
|
+
import { default as i } from "./Icon/Icon.js";
|
|
7
|
+
import { Input as s } from "./Input/Input.js";
|
|
8
|
+
import { LabeledValue as I } from "./LabeledValue/LabeledValue.js";
|
|
9
|
+
import { default as c } from "./ListButton/ListButton.js";
|
|
10
|
+
import { default as A } from "./Loading/Loading.js";
|
|
11
|
+
import { default as h } from "./ScrollContainer/ScrollContainer.js";
|
|
12
|
+
import { Accordion as B } from "./Accordion/Accordion.js";
|
|
13
|
+
import { default as E } from "./ErrorBoundary/ErrorBoundary.js";
|
|
14
|
+
import { InfoCard as D } from "./InfoCard/InfoCard.js";
|
|
15
|
+
import { LabeledInput as G } from "./LabeledInput/LabeledInput.js";
|
|
16
|
+
import { default as N } from "./List/List.js";
|
|
17
|
+
import { default as T } from "./LogoLoop/LogoLoop.js";
|
|
18
|
+
import { Tooltip as j } from "./Tooltip/Tooltip.js";
|
|
19
|
+
import { default as q } from "./WithLabel/WithLabel.js";
|
|
20
|
+
import { default as z } from "./WithLoading/WithLoading.js";
|
|
21
|
+
import { default as K } from "./AppHeader/AppHeader.js";
|
|
22
|
+
import { EditableInfoCard as O } from "./EditableInfoCard/EditableInfoCard.js";
|
|
23
|
+
import { Nav as Q } from "./Nav/Nav.js";
|
|
24
|
+
import { default as U } from "./AppContainer/AppContainer.js";
|
|
26
25
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
t as
|
|
31
|
-
a as
|
|
32
|
-
p as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
l as
|
|
37
|
-
i as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
q as
|
|
50
|
-
z as
|
|
51
|
-
K as WithLoading
|
|
26
|
+
B as Accordion,
|
|
27
|
+
U as AppContainer,
|
|
28
|
+
K as AppHeader,
|
|
29
|
+
t as AvatarWithImage,
|
|
30
|
+
a as Button,
|
|
31
|
+
p as Divider,
|
|
32
|
+
O as EditableInfoCard,
|
|
33
|
+
E as ErrorBoundary,
|
|
34
|
+
x as Flex,
|
|
35
|
+
l as Grid,
|
|
36
|
+
i as Icon,
|
|
37
|
+
D as InfoCard,
|
|
38
|
+
s as Input,
|
|
39
|
+
G as LabeledInput,
|
|
40
|
+
I as LabeledValue,
|
|
41
|
+
N as List,
|
|
42
|
+
c as ListButton,
|
|
43
|
+
A as Loading,
|
|
44
|
+
T as LogoLoop,
|
|
45
|
+
Q as Nav,
|
|
46
|
+
h as ScrollContainer,
|
|
47
|
+
j as Tooltip,
|
|
48
|
+
q as WithLabel,
|
|
49
|
+
z as WithLoading
|
|
52
50
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.133",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|