@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.
@@ -1,44 +1,45 @@
1
- import { j as s } from "../index-IqW719eK.js";
2
- import { Box as t } from "../box/box.es.js";
3
- import { CitySeal as i } from "../city-seal/city-seal.es.js";
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 j = ({
6
+ const _ = ({
6
7
  children: e,
7
- className: a,
8
- ...r
9
- }) => /* @__PURE__ */ s.jsx(t, { className: m(["header__branding"], a), ...r, children: e }), p = ({
10
- children: e = /* @__PURE__ */ s.jsx(i, { size: "sm" })
11
- }) => /* @__PURE__ */ s.jsx("span", { className: "header__logo", children: e }), N = ({
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__ */ s.jsx("div", { className: "header__content", children: e }), _ = ({
14
+ }) => /* @__PURE__ */ a("div", { className: "header__content", children: e }), h = ({
14
15
  children: e,
15
- href: a = "#",
16
- className: r = "",
16
+ href: r = "#",
17
+ className: s = "",
17
18
  ...o
18
19
  }) => {
19
- const n = m(["link", r]);
20
- return /* @__PURE__ */ s.jsx("a", { href: a, className: n, ...o, children: e });
21
- }, f = ({
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: a,
24
- color: r,
24
+ className: r,
25
+ color: s,
25
26
  variant: o,
26
27
  ...n
27
- }) => /* @__PURE__ */ s.jsx(
28
+ }) => /* @__PURE__ */ a(
28
29
  t,
29
30
  {
30
31
  as: "header",
31
- color: r,
32
+ color: s,
32
33
  variant: o,
33
- className: ["header", a].filter(Boolean).join(" "),
34
+ className: ["header", r].filter(Boolean).join(" "),
34
35
  ...n,
35
36
  children: e
36
37
  }
37
38
  );
38
39
  export {
39
- f as Header,
40
- j as HeaderBranding,
41
- N as HeaderContent,
42
- p as HeaderLogo,
43
- _ as HeaderNavLink
40
+ H as Header,
41
+ _ as HeaderBranding,
42
+ g as HeaderContent,
43
+ f as HeaderLogo,
44
+ h as HeaderNavLink
44
45
  };
@@ -1,31 +1,4 @@
1
- import { j as r } from "../index-IqW719eK.js";
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
- d as Icon
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
+ };
@@ -1,17 +1,18 @@
1
- import { j as a } from "../index-IqW719eK.js";
1
+ import { jsx as p } from "react/jsx-runtime";
2
2
  /* empty css */
3
- const e = ({
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 u() {
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__ */ a.jsx("span", { className: u().join(" "), ...r, children: o });
14
+ return /* @__PURE__ */ p("span", { className: i().join(" "), ...r, children: o });
14
15
  };
15
16
  export {
16
- e as Tag
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.5",
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/components-css": "1.0.0-alpha.5",
50
- "@cityofportland/design-tokens": "2.0.0-alpha.5",
51
- "@cityofportland/icons": "1.0.0-alpha.5",
52
- "@cityofportland/types": "1.0.0-alpha.5"
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"