jcicl 0.0.159 → 0.0.161
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/Search/Search.js +12 -12
- package/package.json +1 -1
package/Search/Search.js
CHANGED
|
@@ -7,11 +7,11 @@ import z from "../Icon/Icon.js";
|
|
|
7
7
|
import { Button as p } from "../Button/Button.js";
|
|
8
8
|
import { c as m } from "../.chunks/createSvgIcon.js";
|
|
9
9
|
import { T as y } from "../.chunks/TextField.js";
|
|
10
|
-
const
|
|
10
|
+
const F = 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
|
-
}), "Search"),
|
|
12
|
+
}), "Search"), j = m(/* @__PURE__ */ r("path", {
|
|
13
13
|
d: "M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"
|
|
14
|
-
}), "FilterList"),
|
|
14
|
+
}), "FilterList"), k = 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
|
+
})), C = s(y)(({ borderColor: o, borderFocusColor: i, shadowTertiary: a }) => ({
|
|
23
23
|
backgroundColor: e.colors.white,
|
|
24
24
|
borderRadius: "1rem",
|
|
25
25
|
height: "2rem",
|
|
@@ -91,7 +91,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
91
91
|
padding: "2px"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
})),
|
|
94
|
+
})), I = s("div")(({ open: o }) => ({
|
|
95
95
|
...l`
|
|
96
96
|
box-sizing: border-box;
|
|
97
97
|
position: absolute;
|
|
@@ -108,7 +108,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
108
108
|
display: grid;
|
|
109
109
|
grid-template-rows: ${o ? "1fr" : "0fr"};
|
|
110
110
|
|
|
111
|
-
.
|
|
111
|
+
.jcFiltersWrapper {
|
|
112
112
|
overflow: hidden;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -135,7 +135,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
135
135
|
grid-template-columns: repeat(1, 1fr);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
.jcFiltersButton {
|
|
139
139
|
width: 100%;
|
|
140
140
|
justify-self: center;
|
|
141
141
|
}
|
|
@@ -153,9 +153,9 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
153
153
|
const [c, g] = S(!1), u = (n) => {
|
|
154
154
|
n.preventDefault(), n.key === "Enter" && d && d();
|
|
155
155
|
}, x = { borderColor: o, borderFocusColor: i, shadowTertiary: a, ...h }, b = t && t.length > 0;
|
|
156
|
-
return /* @__PURE__ */ v(
|
|
156
|
+
return /* @__PURE__ */ v(k, { className: "jcInputContainer", children: [
|
|
157
157
|
/* @__PURE__ */ r(
|
|
158
|
-
|
|
158
|
+
C,
|
|
159
159
|
{
|
|
160
160
|
slotProps: {
|
|
161
161
|
input: {
|
|
@@ -168,14 +168,14 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
168
168
|
color: i,
|
|
169
169
|
highlightColor: "transparent",
|
|
170
170
|
className: "searchIcon",
|
|
171
|
-
children: /* @__PURE__ */ r(
|
|
171
|
+
children: /* @__PURE__ */ r(F, {})
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
endAdornment: b && /* @__PURE__ */ r(
|
|
175
175
|
z,
|
|
176
176
|
{
|
|
177
177
|
onClick: () => g(!c),
|
|
178
|
-
icon: /* @__PURE__ */ r(
|
|
178
|
+
icon: /* @__PURE__ */ r(j, {}),
|
|
179
179
|
backgroundColor: o,
|
|
180
180
|
iconColor: e.colors.white,
|
|
181
181
|
size: 28,
|
|
@@ -189,7 +189,7 @@ const k = m(/* @__PURE__ */ r("path", {
|
|
|
189
189
|
onKeyUp: u
|
|
190
190
|
}
|
|
191
191
|
),
|
|
192
|
-
/* @__PURE__ */ r(
|
|
192
|
+
/* @__PURE__ */ r(I, { open: c, className: "jcFiltersContainer", children: /* @__PURE__ */ r(M, { className: "jcFiltersWrapper", children: t == null ? void 0 : t.map(({ name: n, onClick: f, active: w }) => /* @__PURE__ */ r(p, { className: "jcFiltersButton", variant: "filter", onClick: f, active: w, children: n }, n)) }) })
|
|
193
193
|
] });
|
|
194
194
|
};
|
|
195
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.161",
|
|
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",
|