jcicl 0.0.137 → 0.0.139
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/AppContainer/AppContainer.d.ts +3 -3
- package/Button/Button.js +7 -5
- package/Search/Search.js +13 -7
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ import { IconProps } from '../../../../../../../../../src/components/base/Icon';
|
|
|
5
5
|
import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
|
|
6
6
|
type ReducedAppHeaderProps = Omit<AppHeaderProps, 'logoProps' | 'iconColor' | 'loggedIn' | 'themeProps'>;
|
|
7
7
|
interface UserInfo {
|
|
8
|
-
name
|
|
9
|
-
email
|
|
10
|
-
avatar
|
|
8
|
+
name?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
avatar?: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export interface AppContainerProps {
|
|
13
13
|
navProps: Omit<NavProps, 'themeColors'>;
|
package/Button/Button.js
CHANGED
|
@@ -312,8 +312,8 @@ const to = (o) => {
|
|
|
312
312
|
disableFocusRipple: C = !1,
|
|
313
313
|
endIcon: h,
|
|
314
314
|
focusVisibleClassName: V,
|
|
315
|
-
fullWidth:
|
|
316
|
-
size:
|
|
315
|
+
fullWidth: j = !1,
|
|
316
|
+
size: M = "medium",
|
|
317
317
|
startIcon: I,
|
|
318
318
|
type: k,
|
|
319
319
|
variant: F = "text",
|
|
@@ -325,8 +325,8 @@ const to = (o) => {
|
|
|
325
325
|
disabled: m,
|
|
326
326
|
disableElevation: W,
|
|
327
327
|
disableFocusRipple: C,
|
|
328
|
-
fullWidth:
|
|
329
|
-
size:
|
|
328
|
+
fullWidth: j,
|
|
329
|
+
size: M,
|
|
330
330
|
type: k,
|
|
331
331
|
variant: F
|
|
332
332
|
}, b = to(y), L = I && /* @__PURE__ */ l(ao, {
|
|
@@ -551,7 +551,9 @@ const B = c(T)`
|
|
|
551
551
|
background-color: ${o ? r.colors.black : r.colors.white};
|
|
552
552
|
height: 28px;
|
|
553
553
|
border-radius: 18px;
|
|
554
|
-
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
justify-content: center;
|
|
555
557
|
border: 2px solid ${o ? "transparent" : r.colors.black};
|
|
556
558
|
color: ${o ? r.colors.white : r.colors.black};
|
|
557
559
|
transition: 108ms all ease-in;
|
package/Search/Search.js
CHANGED
|
@@ -11,7 +11,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
11
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
12
|
}), "Search"), C = m(/* @__PURE__ */ r("path", {
|
|
13
13
|
d: "M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"
|
|
14
|
-
}), "FilterList"),
|
|
14
|
+
}), "FilterList"), I = s("div")(() => ({
|
|
15
15
|
...l`
|
|
16
16
|
position: relative;
|
|
17
17
|
width: 100%;
|
|
@@ -19,7 +19,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
align-items: center;
|
|
21
21
|
`
|
|
22
|
-
})),
|
|
22
|
+
})), M = s(y)(({ borderColor: o, borderFocusColor: i, shadowTertiary: a }) => ({
|
|
23
23
|
backgroundColor: e.colors.white,
|
|
24
24
|
borderRadius: "1rem",
|
|
25
25
|
height: "2rem",
|
|
@@ -85,8 +85,13 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
85
85
|
fieldset: {
|
|
86
86
|
border: "none"
|
|
87
87
|
}
|
|
88
|
+
},
|
|
89
|
+
"&.searchIcon": {
|
|
90
|
+
svg: {
|
|
91
|
+
padding: "2px"
|
|
92
|
+
}
|
|
88
93
|
}
|
|
89
|
-
})),
|
|
94
|
+
})), R = s("div")(({ open: o }) => ({
|
|
90
95
|
...l`
|
|
91
96
|
box-sizing: border-box;
|
|
92
97
|
position: absolute;
|
|
@@ -111,7 +116,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
111
116
|
width: calc(100% - 6px);
|
|
112
117
|
}
|
|
113
118
|
`
|
|
114
|
-
})),
|
|
119
|
+
})), $ = s("div")(() => ({
|
|
115
120
|
...l`
|
|
116
121
|
display: grid;
|
|
117
122
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -148,9 +153,9 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
148
153
|
const [c, g] = S(!1), u = (n) => {
|
|
149
154
|
n.preventDefault(), n.key === "Enter" && d && d();
|
|
150
155
|
}, x = { borderColor: o, borderFocusColor: i, shadowTertiary: a, ...h }, b = t && t.length > 0;
|
|
151
|
-
return /* @__PURE__ */ v(
|
|
156
|
+
return /* @__PURE__ */ v(I, { children: [
|
|
152
157
|
/* @__PURE__ */ r(
|
|
153
|
-
|
|
158
|
+
M,
|
|
154
159
|
{
|
|
155
160
|
slotProps: {
|
|
156
161
|
input: {
|
|
@@ -162,6 +167,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
162
167
|
onClick: d,
|
|
163
168
|
color: i,
|
|
164
169
|
highlightColor: "transparent",
|
|
170
|
+
className: "searchIcon",
|
|
165
171
|
children: /* @__PURE__ */ r(k, {})
|
|
166
172
|
}
|
|
167
173
|
),
|
|
@@ -183,7 +189,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
183
189
|
onKeyUp: u
|
|
184
190
|
}
|
|
185
191
|
),
|
|
186
|
-
/* @__PURE__ */ r(
|
|
192
|
+
/* @__PURE__ */ r(R, { open: c, children: /* @__PURE__ */ r($, { 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
193
|
] });
|
|
188
194
|
};
|
|
189
195
|
export {
|
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.139",
|
|
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",
|