@cityofportland/components-react 1.0.0-alpha.5 → 1.0.0-alpha.6
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/dist/alert/alert.es.js +39 -38
- package/dist/box/box.es.js +2 -54
- package/dist/box-1tl08xTv.js +57 -0
- package/dist/button/button.es.js +2 -38
- package/dist/button-CF_WgNBC.js +38 -0
- package/dist/card/card.es.js +24 -23
- package/dist/city-seal/city-seal.es.js +2 -15
- package/dist/city-seal-D1o5dRUd.js +18 -0
- package/dist/footer/footer.es.js +745 -744
- package/dist/header/header.es.js +26 -25
- package/dist/icon/icon.es.js +2 -29
- package/dist/icon-CzVwiUJU.js +32 -0
- package/dist/tag/tag.es.js +6 -5
- package/package.json +5 -5
- package/dist/index-IqW719eK.js +0 -1484
package/dist/header/header.es.js
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { B as t } from "../box-1tl08xTv.js";
|
|
4
|
+
import { C as i } from "../city-seal-D1o5dRUd.js";
|
|
4
5
|
import { m } from "../utils-DpTd6iI4.js";
|
|
5
|
-
const
|
|
6
|
+
const _ = ({
|
|
6
7
|
children: e,
|
|
7
|
-
className:
|
|
8
|
-
...
|
|
9
|
-
}) => /* @__PURE__ */
|
|
10
|
-
children: e = /* @__PURE__ */
|
|
11
|
-
}) => /* @__PURE__ */
|
|
8
|
+
className: r,
|
|
9
|
+
...s
|
|
10
|
+
}) => /* @__PURE__ */ a(t, { className: m(["header__branding"], r), ...s, children: e }), f = ({
|
|
11
|
+
children: e = /* @__PURE__ */ a(i, { size: "sm" })
|
|
12
|
+
}) => /* @__PURE__ */ a("span", { className: "header__logo", children: e }), g = ({
|
|
12
13
|
children: e
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ a("div", { className: "header__content", children: e }), h = ({
|
|
14
15
|
children: e,
|
|
15
|
-
href:
|
|
16
|
-
className:
|
|
16
|
+
href: r = "#",
|
|
17
|
+
className: s = "",
|
|
17
18
|
...o
|
|
18
19
|
}) => {
|
|
19
|
-
const n = m(["link",
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
},
|
|
20
|
+
const n = m(["link", s]);
|
|
21
|
+
return /* @__PURE__ */ a("a", { href: r, className: n, ...o, children: e });
|
|
22
|
+
}, H = ({
|
|
22
23
|
children: e,
|
|
23
|
-
className:
|
|
24
|
-
color:
|
|
24
|
+
className: r,
|
|
25
|
+
color: s,
|
|
25
26
|
variant: o,
|
|
26
27
|
...n
|
|
27
|
-
}) => /* @__PURE__ */
|
|
28
|
+
}) => /* @__PURE__ */ a(
|
|
28
29
|
t,
|
|
29
30
|
{
|
|
30
31
|
as: "header",
|
|
31
|
-
color:
|
|
32
|
+
color: s,
|
|
32
33
|
variant: o,
|
|
33
|
-
className: ["header",
|
|
34
|
+
className: ["header", r].filter(Boolean).join(" "),
|
|
34
35
|
...n,
|
|
35
36
|
children: e
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
H as Header,
|
|
41
|
+
_ as HeaderBranding,
|
|
42
|
+
g as HeaderContent,
|
|
43
|
+
f as HeaderLogo,
|
|
44
|
+
h as HeaderNavLink
|
|
44
45
|
};
|
package/dist/icon/icon.es.js
CHANGED
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function c({
|
|
3
|
-
className: i = "",
|
|
4
|
-
size: s
|
|
5
|
-
}) {
|
|
6
|
-
const t = /* @__PURE__ */ new Set(["icon"]);
|
|
7
|
-
return s && t.add(`icon--${s}`), i && i.split(" ").forEach((o) => t.add(o)), Array.from(t).join(" ");
|
|
8
|
-
}
|
|
9
|
-
const d = ({
|
|
10
|
-
className: i,
|
|
11
|
-
icon: s,
|
|
12
|
-
size: t,
|
|
13
|
-
...o
|
|
14
|
-
}) => {
|
|
15
|
-
const n = c({
|
|
16
|
-
className: i,
|
|
17
|
-
size: t
|
|
18
|
-
});
|
|
19
|
-
return /* @__PURE__ */ r.jsx(
|
|
20
|
-
"svg",
|
|
21
|
-
{
|
|
22
|
-
viewBox: `0 0 ${s.width} ${s.height}`,
|
|
23
|
-
className: n,
|
|
24
|
-
...o,
|
|
25
|
-
children: s.paths.map((a) => /* @__PURE__ */ r.jsx("path", { ...a }))
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
1
|
+
import { I } from "../icon-CzVwiUJU.js";
|
|
29
2
|
export {
|
|
30
|
-
|
|
3
|
+
I as Icon
|
|
31
4
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
function c({
|
|
4
|
+
className: i = "",
|
|
5
|
+
size: t
|
|
6
|
+
}) {
|
|
7
|
+
const s = /* @__PURE__ */ new Set(["icon"]);
|
|
8
|
+
return t && s.add(`icon--${t}`), i && i.split(" ").forEach((o) => s.add(o)), Array.from(s).join(" ");
|
|
9
|
+
}
|
|
10
|
+
const h = ({
|
|
11
|
+
className: i,
|
|
12
|
+
icon: t,
|
|
13
|
+
size: s,
|
|
14
|
+
...o
|
|
15
|
+
}) => {
|
|
16
|
+
const a = c({
|
|
17
|
+
className: i,
|
|
18
|
+
size: s
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ r(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
viewBox: `0 0 ${t.width} ${t.height}`,
|
|
24
|
+
className: a,
|
|
25
|
+
...o,
|
|
26
|
+
children: t.paths.map((n) => /* @__PURE__ */ r("path", { ...n }))
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
h as I
|
|
32
|
+
};
|
package/dist/tag/tag.es.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
const c = ({
|
|
4
5
|
variant: t = "info",
|
|
5
6
|
children: o = null,
|
|
6
7
|
className: n = null,
|
|
7
8
|
...r
|
|
8
9
|
}) => {
|
|
9
|
-
function
|
|
10
|
+
function i() {
|
|
10
11
|
const s = ["tag"];
|
|
11
12
|
return s.push(`tag--${t}`), n && s.push(n), s;
|
|
12
13
|
}
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ p("span", { className: i().join(" "), ...r, children: o });
|
|
14
15
|
};
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
c as Tag
|
|
17
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofportland/components-react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "Portland Component Library using design tokens from Figma",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "City of Portland, Oregon"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"vite-plugin-dts": "^4.5.4",
|
|
47
47
|
"vitest": "^4.1.7",
|
|
48
48
|
"vitest-browser-react": "^2.0.2",
|
|
49
|
-
"@cityofportland/
|
|
50
|
-
"@cityofportland/design-tokens": "2.0.0-alpha.
|
|
51
|
-
"@cityofportland/
|
|
52
|
-
"@cityofportland/types": "1.0.0-alpha.
|
|
49
|
+
"@cityofportland/icons": "1.0.0-alpha.6",
|
|
50
|
+
"@cityofportland/design-tokens": "2.0.0-alpha.6",
|
|
51
|
+
"@cityofportland/components-css": "1.0.0-alpha.6",
|
|
52
|
+
"@cityofportland/types": "1.0.0-alpha.6"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"zod": "^4.4.3"
|