@cityofportland/components-react 1.0.0-alpha.5 → 1.0.0-alpha.7
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.lib.css +2 -0
- package/dist/alert/{alert.d.ts → alert.lib.d.ts} +29 -15
- package/dist/alert/alert.lib.es.js +64 -0
- package/dist/box/{box.css → box.lib.css} +1 -0
- package/dist/box/{box.d.ts → box.lib.d.ts} +17 -17
- package/dist/box/box.lib.es.js +4 -0
- package/dist/box-B8x1KDnE.js +45 -0
- package/dist/button/button.lib.css +2 -0
- package/dist/button/{button.d.ts → button.lib.d.ts} +15 -46
- package/dist/button/button.lib.es.js +4 -0
- package/dist/button-rc1SIqSI.js +16 -0
- package/dist/card/card.lib.css +2 -0
- package/dist/card/card.lib.d.ts +134 -0
- package/dist/card/card.lib.es.js +44 -0
- package/dist/city-seal/{city-seal.css → city-seal.lib.css} +1 -0
- package/dist/city-seal/city-seal.lib.es.js +4 -0
- package/dist/city-seal-7i9vWvJO.js +11 -0
- package/dist/collection/collection.lib.css +2 -0
- package/dist/collection/collection.lib.d.ts +81 -0
- package/dist/collection/collection.lib.es.js +25 -0
- package/dist/footer/footer.lib.css +2 -0
- package/dist/footer/{footer.d.ts → footer.lib.d.ts} +3 -3
- package/dist/footer/footer.lib.es.js +2615 -0
- package/dist/header/header.lib.css +2 -0
- package/dist/header/{header.d.ts → header.lib.d.ts} +23 -23
- package/dist/header/header.lib.es.js +44 -0
- package/dist/icon/icon.lib.css +2 -0
- package/dist/icon/icon.lib.es.js +4 -0
- package/dist/icon-Du3bCwWr.js +21 -0
- package/dist/input/input.lib.css +2 -0
- package/dist/input/input.lib.d.ts +142 -0
- package/dist/input/input.lib.es.js +46 -0
- package/dist/tag/tag.lib.css +2 -0
- package/dist/tag/tag.lib.es.js +17 -0
- package/dist/utilities/utilities.lib.css +2 -0
- package/dist/utils-D8EDUGI1.js +7 -0
- package/package.json +40 -38
- package/dist/alert/alert.css +0 -1
- package/dist/alert/alert.es.js +0 -88
- package/dist/box/box.es.js +0 -56
- package/dist/button/button.css +0 -1
- package/dist/button/button.es.js +0 -40
- package/dist/card/card.css +0 -1
- package/dist/card/card.d.ts +0 -66
- package/dist/card/card.es.js +0 -75
- package/dist/city-seal/city-seal.es.js +0 -17
- package/dist/footer/footer.css +0 -1
- package/dist/footer/footer.es.js +0 -10987
- package/dist/header/header.css +0 -1
- package/dist/header/header.es.js +0 -44
- package/dist/icon/icon.css +0 -1
- package/dist/icon/icon.es.js +0 -31
- package/dist/index-IqW719eK.js +0 -1484
- package/dist/tag/tag.css +0 -1
- package/dist/tag/tag.es.js +0 -17
- package/dist/utilities/utilities.css +0 -1
- package/dist/utils-DpTd6iI4.js +0 -7
- /package/dist/city-seal/{city-seal.d.ts → city-seal.lib.d.ts} +0 -0
- /package/dist/icon/{icon.d.ts → icon.lib.d.ts} +0 -0
- /package/dist/tag/{tag.d.ts → tag.lib.d.ts} +0 -0
package/dist/alert/alert.es.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../index-IqW719eK.js";
|
|
2
|
-
import { Box as a } from "../box/box.es.js";
|
|
3
|
-
import { Button as u } from "../button/button.es.js";
|
|
4
|
-
import { Icon as h } from "../icon/icon.es.js";
|
|
5
|
-
import { m as n } from "../utils-DpTd6iI4.js";
|
|
6
|
-
const L = {
|
|
7
|
-
name: "xmark",
|
|
8
|
-
comments: [
|
|
9
|
-
"! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc."
|
|
10
|
-
],
|
|
11
|
-
width: 640,
|
|
12
|
-
height: 640,
|
|
13
|
-
paths: [
|
|
14
|
-
{
|
|
15
|
-
d: "M183.1 137.4C170.6 124.9 150.3 124.9 137.8 137.4C125.3 149.9 125.3 170.2 137.8 182.7L275.2 320L137.9 457.4C125.4 469.9 125.4 490.2 137.9 502.7C150.4 515.2 170.7 515.2 183.2 502.7L320.5 365.3L457.9 502.6C470.4 515.1 490.7 515.1 503.2 502.6C515.7 490.1 515.7 469.8 503.2 457.3L365.8 320L503.1 182.6C515.6 170.1 515.6 149.8 503.1 137.3C490.6 124.8 470.3 124.8 457.8 137.3L320.5 274.7L183.1 137.4z"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}, N = ({
|
|
19
|
-
children: t,
|
|
20
|
-
className: e,
|
|
21
|
-
...s
|
|
22
|
-
}) => /* @__PURE__ */ r.jsx(a, { className: n(e, "alert__content"), ...s, children: t }), g = ({ children: t, className: e, ...s }) => /* @__PURE__ */ r.jsx(a, { className: n(e, "alert__text"), ...s, children: t }), F = ({
|
|
23
|
-
as: t = "span",
|
|
24
|
-
children: e,
|
|
25
|
-
className: s,
|
|
26
|
-
...o
|
|
27
|
-
}) => /* @__PURE__ */ r.jsx(a, { as: t, className: n(s, "alert__icon"), ...o, children: e }), b = ({
|
|
28
|
-
as: t = "header",
|
|
29
|
-
children: e,
|
|
30
|
-
className: s,
|
|
31
|
-
...o
|
|
32
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
33
|
-
a,
|
|
34
|
-
{
|
|
35
|
-
as: t,
|
|
36
|
-
className: n(s, "alert__heading"),
|
|
37
|
-
...o,
|
|
38
|
-
children: e
|
|
39
|
-
}
|
|
40
|
-
), B = ({
|
|
41
|
-
as: t = "div",
|
|
42
|
-
color: e,
|
|
43
|
-
variant: s,
|
|
44
|
-
size: o = "default",
|
|
45
|
-
role: i = "status",
|
|
46
|
-
children: m,
|
|
47
|
-
dismissible: C = !0,
|
|
48
|
-
className: p,
|
|
49
|
-
"aria-label": x = `${e} alert`,
|
|
50
|
-
onDismiss: c,
|
|
51
|
-
...d
|
|
52
|
-
}) => /* @__PURE__ */ r.jsxs(
|
|
53
|
-
a,
|
|
54
|
-
{
|
|
55
|
-
as: t,
|
|
56
|
-
className: n(p, "alert", `alert--${o}`),
|
|
57
|
-
color: e,
|
|
58
|
-
variant: s,
|
|
59
|
-
role: i,
|
|
60
|
-
"aria-label": x,
|
|
61
|
-
...d,
|
|
62
|
-
children: [
|
|
63
|
-
m,
|
|
64
|
-
C ? /* @__PURE__ */ r.jsx("span", { className: "alert__close", children: /* @__PURE__ */ r.jsx(
|
|
65
|
-
u,
|
|
66
|
-
{
|
|
67
|
-
"aria-label": "Dismiss alert",
|
|
68
|
-
onClick: (f) => {
|
|
69
|
-
const l = f.currentTarget.closest(".alert");
|
|
70
|
-
if (!l) {
|
|
71
|
-
console.warn("Could not find alert to dismiss");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
l.remove(), c && c(l);
|
|
75
|
-
},
|
|
76
|
-
children: /* @__PURE__ */ r.jsx(h, { icon: L, size: "sm" })
|
|
77
|
-
}
|
|
78
|
-
) }) : ""
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
export {
|
|
83
|
-
B as Alert,
|
|
84
|
-
N as AlertContent,
|
|
85
|
-
g as AlertDescription,
|
|
86
|
-
F as AlertIcon,
|
|
87
|
-
b as AlertTitle
|
|
88
|
-
};
|
package/dist/box/box.es.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { R as c, j as m } from "../index-IqW719eK.js";
|
|
2
|
-
import { m as x } from "../utils-DpTd6iI4.js";
|
|
3
|
-
const t = [
|
|
4
|
-
"subtle",
|
|
5
|
-
"moderate",
|
|
6
|
-
"emphasis",
|
|
7
|
-
"strong"
|
|
8
|
-
], o = /* @__PURE__ */ new Map([
|
|
9
|
-
["default", t],
|
|
10
|
-
["inverse", t],
|
|
11
|
-
["primary", t],
|
|
12
|
-
["secondary", t],
|
|
13
|
-
["success", t],
|
|
14
|
-
["danger", t],
|
|
15
|
-
["warning", t],
|
|
16
|
-
["info", t],
|
|
17
|
-
["disabled", t],
|
|
18
|
-
["fixed", ["dark", "light"]]
|
|
19
|
-
]), l = (e, s) => {
|
|
20
|
-
const n = [e, s];
|
|
21
|
-
return !e || !s ? [void 0, void 0] : o.has(e) ? o.get(e)?.includes(s) ? n : (console.error(`[Box component] '${s}' is not a valid variant for color '${e}'.`), [void 0, void 0]) : (console.error(`[Box component] '${e}' is not a valid box color.`), [void 0, void 0]);
|
|
22
|
-
};
|
|
23
|
-
function p({
|
|
24
|
-
className: e = "",
|
|
25
|
-
color: s,
|
|
26
|
-
variant: n
|
|
27
|
-
}) {
|
|
28
|
-
const d = ["box"];
|
|
29
|
-
return s && n && d.push(
|
|
30
|
-
s ? `box--${s}` : "",
|
|
31
|
-
n ? `box--${n}` : ""
|
|
32
|
-
), x(...d, e);
|
|
33
|
-
}
|
|
34
|
-
const R = c.forwardRef(
|
|
35
|
-
({ as: e, children: s, color: n, variant: d, className: r, ...u }, f) => {
|
|
36
|
-
const a = e || "div";
|
|
37
|
-
[n, d] = l(n, d);
|
|
38
|
-
const i = p({
|
|
39
|
-
className: r,
|
|
40
|
-
color: n,
|
|
41
|
-
variant: d
|
|
42
|
-
});
|
|
43
|
-
return /* @__PURE__ */ m.jsx(
|
|
44
|
-
a,
|
|
45
|
-
{
|
|
46
|
-
ref: f,
|
|
47
|
-
className: i.length ? i : void 0,
|
|
48
|
-
...u,
|
|
49
|
-
children: s
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
export {
|
|
55
|
-
R as Box
|
|
56
|
-
};
|
package/dist/button/button.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}::backdrop{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer components{.button{--button-action-factor:.85}@media(prefers-color-scheme:dark){.button{--button-action-factor:1.15}}.button{--button-action-color:oklch(from var(--box-background-color) calc(l * var(--button-action-factor)) calc(c * var(--button-action-factor)) h);justify-content:center;align-items:center;gap:var(--spacing-xs,.5rem);overflow-wrap:anywhere;vertical-align:bottom;cursor:pointer;max-width:100%;transition-property:background-color,box-shadow,--tw-ring-offset-color,--tw-ring-offset-width;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s);--tw-duration:.2s;--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-offset-color:var(--box-background-color);transition-duration:.2s;display:inline-flex}.button:focus{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button:focus-visible{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button.button--disabled,.button:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button:not(:-webkit-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}}.button.button--outline{color:inherit;--tw-inset-ring-color:var(--box-background-color);--tw-ring-offset-color:var(--box-background-color);background-color:#0000}.button.button--outline:active{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-inset-ring-color:var(--button-action-color)}.button.button--outline.button--disabled,.button.button--outline:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:is(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button.button--3xs{padding-inline:var(--spacing-3xs,.125rem)}.button.button--2xs{padding-inline:var(--spacing-2xs,.25rem)}.button.button--xs{padding-inline:var(--spacing-xs,.5rem);padding-block:var(--spacing-3xs,.125rem)}.button.button--sm{padding-inline:var(--spacing-sm,.75rem);padding-block:var(--spacing-2xs,.25rem)}.button.button--md{padding-inline:var(--spacing-md,1rem);padding-block:var(--spacing-xs,.5rem)}.button.button--lg{padding-inline:var(--spacing-lg,1.25rem);padding-block:var(--spacing-sm,.75rem)}.button.button--xl{padding-inline:var(--spacing-xl,1.5rem);padding-block:var(--spacing-md,1rem)}.button.button--2xl{padding-inline:var(--spacing-2xl,2rem);padding-block:var(--spacing-lg,1.25rem)}.button.button--3xl{padding-inline:var(--spacing-3xl,2.5rem);padding-block:var(--spacing-xl,1.5rem)}.button.button--4xl{padding-inline:var(--spacing-4xl,3.5rem);padding-block:var(--spacing-2xl,2rem)}.button.button--5xl{padding-inline:var(--spacing-5xl,4rem);padding-block:var(--spacing-3xl,2.5rem)}}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
package/dist/button/button.es.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../index-IqW719eK.js";
|
|
2
|
-
import { m } from "../utils-DpTd6iI4.js";
|
|
3
|
-
import { Box as f } from "../box/box.es.js";
|
|
4
|
-
const b = "button", c = ({
|
|
5
|
-
as: e,
|
|
6
|
-
children: n = null,
|
|
7
|
-
size: o,
|
|
8
|
-
outline: s = !1,
|
|
9
|
-
disabled: t = !1,
|
|
10
|
-
className: r,
|
|
11
|
-
...u
|
|
12
|
-
}) => {
|
|
13
|
-
const a = e ?? b;
|
|
14
|
-
return (
|
|
15
|
-
//@ts-expect-error Impossible to dynamically determine the set of valid properties.
|
|
16
|
-
// Would need to know what the "as" property is at type checking time.
|
|
17
|
-
// Users of this component will get valid type-checking
|
|
18
|
-
/* @__PURE__ */ l.jsx(
|
|
19
|
-
f,
|
|
20
|
-
{
|
|
21
|
-
as: a,
|
|
22
|
-
className: m(
|
|
23
|
-
"button",
|
|
24
|
-
o && `button--${o}`,
|
|
25
|
-
t && "button--disabled",
|
|
26
|
-
s && "button--outline",
|
|
27
|
-
r
|
|
28
|
-
),
|
|
29
|
-
disabled: t,
|
|
30
|
-
"aria-disabled": t ? "true" : "false",
|
|
31
|
-
role: "button",
|
|
32
|
-
...u,
|
|
33
|
-
children: n
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
c as Button
|
|
40
|
-
};
|
package/dist/card/card.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}}}@layer components{.card{border-radius:var(--radius-lg,.5rem);gap:var(--spacing-lg,1.25rem);flex-direction:column;display:flex}.card.card--bordered{--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);padding:var(--spacing-md,1rem)}.card:not(.card--bordered){--box-background-color:revert!important;--box-text-color:revert!important;--box-border-color:revert!important;--box-outline-color:revert!important;--box-ring-color:revert!important}.card .card__body{gap:var(--spacing-sm,.75rem);flex-direction:column;flex-grow:1;align-self:stretch;display:flex}.card .card__body .card__description{flex:auto}.card .card__body .card__footer{margin-top:auto}.card .card__body .card__title{font-size:var(--text-heading-md,.976875rem);--tw-leading:var(--leading-heading-md,1.5rem);line-height:var(--leading-heading-md,1.5rem);--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);--tw-tracking:0%;letter-spacing:0%}.card .card__media{flex:none;display:flex}.card .card__media>img,.card .card__media video{border-radius:var(--radius-lg,.5rem);object-fit:cover;object-position:center;aspect-ratio:2;width:100%;max-width:100%;height:auto;max-height:100%}@container (width>=30rem){.card.card--horizontal{flex-direction:row;align-items:flex-start}.card.card--horizontal:not(.card--bordered) .card__body{padding-top:var(--spacing-xs,.5rem)}.card.card--horizontal:not(.card--bordered):has(.card__media--left) .card__body{padding-left:var(--spacing-none,0)}.card.card--horizontal:not(.card--bordered):has(.card__media--right) .card__body{padding-right:var(--spacing-none,0)}.card.card--horizontal .card__media{max-width:33.3333%}.card.card--horizontal .card__media>img,.card.card--horizontal .card__media>video{aspect-ratio:4/3}.card.card--horizontal .card__media.card__media--left{order:-9999}.card.card--horizontal .card__media.card__media--right{order:9999}}.card.card--vertical{flex-direction:column}.card.card--vertical .card__media>img,.card.card--vertical .card__media video{aspect-ratio:2}}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}
|
package/dist/card/card.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Available color schemes based on design system color tokens
|
|
5
|
-
*/
|
|
6
|
-
declare const BOX_COLORS: readonly ["default", "inverse", "primary", "secondary", "success", "danger", "warning", "info", "fixed", "disabled", "fixed"];
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Available color variations based on design system tokens
|
|
10
|
-
*/
|
|
11
|
-
declare const BOX_VARIANTS: readonly ["subtle", "moderate", "emphasis", "strong", "light", "dark"];
|
|
12
|
-
|
|
13
|
-
declare type BoxColorScheme = (typeof BOX_COLORS)[number];
|
|
14
|
-
|
|
15
|
-
declare type BoxColorVariation = (typeof BOX_VARIANTS)[number];
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Core box properties shared across all framework implementations
|
|
19
|
-
*/
|
|
20
|
-
declare interface BoxProps {
|
|
21
|
-
/**
|
|
22
|
-
* HTML element type to render the Box as. Defaults to 'div'.
|
|
23
|
-
* @default "div"
|
|
24
|
-
*/
|
|
25
|
-
as?: keyof HTMLElementTagNameMap;
|
|
26
|
-
/**
|
|
27
|
-
* Color scheme for background and content colors
|
|
28
|
-
*/
|
|
29
|
-
color?: BoxColorScheme;
|
|
30
|
-
/**
|
|
31
|
-
* Color variation within the chosen color scheme
|
|
32
|
-
*/
|
|
33
|
-
variant?: BoxColorVariation;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export declare const Card: ({ as, layout, border, children, className, ...props }: ReactCardProps) => default_2.JSX.Element;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Available card layouts based on design system layout options
|
|
40
|
-
*/
|
|
41
|
-
declare const CARD_LAYOUTS: readonly ["horizontal", "vertical"];
|
|
42
|
-
|
|
43
|
-
declare type CardLayout = (typeof CARD_LAYOUTS)[number];
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Core card properties shared across all framework implementations
|
|
47
|
-
*/
|
|
48
|
-
declare interface CardProps extends BoxProps {
|
|
49
|
-
/**
|
|
50
|
-
* Whether the card has a border or not
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
border?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Layout of the card
|
|
56
|
-
* @default "vertical"
|
|
57
|
-
*/
|
|
58
|
-
layout?: CardLayout;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export declare type ReactCardProps = CardProps & {
|
|
62
|
-
children: default_2.ReactNode;
|
|
63
|
-
className?: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { }
|
package/dist/card/card.es.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../index-IqW719eK.js";
|
|
2
|
-
import { Box as o } from "../box/box.es.js";
|
|
3
|
-
import { m as c } from "../utils-DpTd6iI4.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
const j = ({
|
|
6
|
-
as: a = "article",
|
|
7
|
-
layout: r = "vertical",
|
|
8
|
-
border: s = !0,
|
|
9
|
-
children: t = null,
|
|
10
|
-
className: d,
|
|
11
|
-
...i
|
|
12
|
-
}) => {
|
|
13
|
-
const m = c(
|
|
14
|
-
"card",
|
|
15
|
-
`card--${r}`,
|
|
16
|
-
s && "card--bordered",
|
|
17
|
-
d
|
|
18
|
-
);
|
|
19
|
-
return /* @__PURE__ */ e.jsx(o, { as: a, className: m, ...i, children: t });
|
|
20
|
-
}, p = ({
|
|
21
|
-
children: a,
|
|
22
|
-
className: r,
|
|
23
|
-
position: s,
|
|
24
|
-
...t
|
|
25
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
26
|
-
o,
|
|
27
|
-
{
|
|
28
|
-
...t,
|
|
29
|
-
as: "figure",
|
|
30
|
-
className: c(
|
|
31
|
-
"card__media",
|
|
32
|
-
`card__media--${s}`,
|
|
33
|
-
r
|
|
34
|
-
),
|
|
35
|
-
children: a
|
|
36
|
-
}
|
|
37
|
-
), C = ({
|
|
38
|
-
children: a,
|
|
39
|
-
className: r,
|
|
40
|
-
...s
|
|
41
|
-
}) => /* @__PURE__ */ e.jsx(o, { className: c("card__body", r), ...s, children: a }), f = ({
|
|
42
|
-
children: a,
|
|
43
|
-
className: r,
|
|
44
|
-
...s
|
|
45
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
46
|
-
o,
|
|
47
|
-
{
|
|
48
|
-
className: c("card__title", "heading-md", r),
|
|
49
|
-
...s,
|
|
50
|
-
children: a
|
|
51
|
-
}
|
|
52
|
-
), N = ({
|
|
53
|
-
children: a,
|
|
54
|
-
className: r,
|
|
55
|
-
...s
|
|
56
|
-
}) => /* @__PURE__ */ e.jsx(o, { className: c("card__description", r), ...s, children: a }), u = ({
|
|
57
|
-
children: a,
|
|
58
|
-
className: r,
|
|
59
|
-
...s
|
|
60
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
61
|
-
o,
|
|
62
|
-
{
|
|
63
|
-
className: ["card__footer", r].filter(Boolean).join(" "),
|
|
64
|
-
...s,
|
|
65
|
-
children: a
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
export {
|
|
69
|
-
j as Card,
|
|
70
|
-
C as CardBody,
|
|
71
|
-
N as CardDescription,
|
|
72
|
-
u as CardFooter,
|
|
73
|
-
p as CardMedia,
|
|
74
|
-
f as CardTitle
|
|
75
|
-
};
|