jcicl 0.0.135 → 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.
@@ -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: string;
9
- email: string;
10
- avatar: React.ReactNode;
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: M = !1,
316
- size: j = "medium",
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: M,
329
- size: j,
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
- padding: 0 29px;
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"), M = s("div")(() => ({
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
- })), R = s(y)(({ borderColor: o, borderFocusColor: i, shadowTertiary: a }) => ({
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
- })), $ = s("div")(({ open: o }) => ({
94
+ })), R = s("div")(({ open: o }) => ({
90
95
  ...l`
91
96
  box-sizing: border-box;
92
97
  position: absolute;
@@ -98,7 +103,7 @@ const k = m(/* @__PURE__ */ r("path", {
98
103
  gap: 1rem;
99
104
  background-color: ${e.colors.white};
100
105
  box-shadow: ${e.boxShadows.midnight};
101
- padding: ${o ? "2rem 1rem" : 0};
106
+ padding: ${o ? "2rem 1rem 1rem 1rem" : 0};
102
107
  transition: 313ms all ease-in-out;
103
108
  display: grid;
104
109
  grid-template-rows: ${o ? "1fr" : "0fr"};
@@ -111,7 +116,7 @@ const k = m(/* @__PURE__ */ r("path", {
111
116
  width: calc(100% - 6px);
112
117
  }
113
118
  `
114
- })), F = s("div")(() => ({
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(M, { children: [
156
+ return /* @__PURE__ */ v(I, { children: [
152
157
  /* @__PURE__ */ r(
153
- R,
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($, { 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)) }) })
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.135",
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",