@5voltfx/design-system 0.1.0 → 0.1.1
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/chunk-3LTHHL5C.js +11 -0
- package/dist/chunk-3LTHHL5C.js.map +1 -0
- package/dist/chunk-5KN5TPGG.js +30 -0
- package/dist/chunk-5KN5TPGG.js.map +1 -0
- package/dist/chunk-AYAMNHNF.js +1 -0
- package/dist/chunk-AYAMNHNF.js.map +1 -0
- package/dist/chunk-BOPVPQLB.js +25 -0
- package/dist/chunk-BOPVPQLB.js.map +1 -0
- package/dist/chunk-EW3S3GK6.js +41 -0
- package/dist/chunk-EW3S3GK6.js.map +1 -0
- package/dist/chunk-NE25337V.js +1 -0
- package/dist/chunk-NE25337V.js.map +1 -0
- package/dist/chunk-SFECTSQP.js +68 -0
- package/dist/chunk-SFECTSQP.js.map +1 -0
- package/dist/chunk-TNWQQ56F.js +19 -0
- package/dist/chunk-TNWQQ56F.js.map +1 -0
- package/dist/chunk-U6JTDANG.js +22 -0
- package/dist/chunk-U6JTDANG.js.map +1 -0
- package/dist/chunk-YCZXDQJZ.js +41 -0
- package/dist/chunk-YCZXDQJZ.js.map +1 -0
- package/{src/components/Button/Button.css → dist/components/Button/index.css} +2 -11
- package/dist/components/Button/index.css.map +1 -0
- package/dist/components/Button/index.js +7 -0
- package/dist/components/Button/index.js.map +1 -0
- package/{src/components/Card/Card.css → dist/components/Card/index.css} +3 -3
- package/dist/components/Card/index.css.map +1 -0
- package/dist/components/Card/index.js +7 -0
- package/dist/components/Card/index.js.map +1 -0
- package/{src/components/Footer/Footer.css → dist/components/Footer/index.css} +28 -7
- package/dist/components/Footer/index.css.map +1 -0
- package/dist/components/Footer/index.js +8 -0
- package/dist/components/Footer/index.js.map +1 -0
- package/dist/components/Header/index.css +98 -0
- package/dist/components/Header/index.css.map +1 -0
- package/dist/components/Header/index.js +8 -0
- package/dist/components/Header/index.js.map +1 -0
- package/{src/components/Layout/Layout.css → dist/components/Layout/index.css} +2 -4
- package/dist/components/Layout/index.css.map +1 -0
- package/dist/components/Layout/index.js +11 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/{src/components/Nav/Nav.css → dist/components/Nav/index.css} +2 -8
- package/dist/components/Nav/index.css.map +1 -0
- package/dist/components/Nav/index.js +8 -0
- package/dist/components/Nav/index.js.map +1 -0
- package/{src/components/ThemeSwitcher/ThemeSwitcher.css → dist/components/ThemeSwitcher/index.css} +3 -7
- package/dist/components/ThemeSwitcher/index.css.map +1 -0
- package/dist/components/ThemeSwitcher/index.js +8 -0
- package/dist/components/ThemeSwitcher/index.js.map +1 -0
- package/dist/components/Typography/index.css +50 -0
- package/dist/components/Typography/index.css.map +1 -0
- package/dist/components/Typography/index.js +9 -0
- package/dist/components/Typography/index.js.map +1 -0
- package/dist/index.css +544 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +116 -0
- package/dist/index.js.map +1 -0
- package/package.json +19 -6
- package/vite-plugin.js +13 -10
- package/src/components/Button/Button.jsx +0 -20
- package/src/components/Button/index.js +0 -1
- package/src/components/Card/Card.jsx +0 -6
- package/src/components/Card/index.js +0 -1
- package/src/components/Footer/Footer.jsx +0 -37
- package/src/components/Footer/index.js +0 -1
- package/src/components/Header/Header.css +0 -47
- package/src/components/Header/Header.jsx +0 -30
- package/src/components/Header/index.js +0 -1
- package/src/components/Layout/Container.jsx +0 -10
- package/src/components/Layout/Grid.jsx +0 -22
- package/src/components/Layout/Stack.jsx +0 -24
- package/src/components/Layout/index.js +0 -3
- package/src/components/Nav/Nav.jsx +0 -29
- package/src/components/Nav/index.js +0 -1
- package/src/components/ThemeSwitcher/ThemeSwitcher.jsx +0 -26
- package/src/components/ThemeSwitcher/index.js +0 -1
- package/src/components/Typography/Heading.jsx +0 -29
- package/src/components/Typography/Text.jsx +0 -20
- package/src/components/Typography/Typography.css +0 -35
- package/src/components/Typography/index.js +0 -2
- package/src/index.js +0 -12
- package/src/theme/ThemeContext.js +0 -3
- package/src/theme/ThemeProvider.jsx +0 -66
- package/src/theme/themeConstants.js +0 -12
- package/src/theme/useTheme.js +0 -10
- package/src/tokens/base.css +0 -21
- package/src/tokens/colors.css +0 -29
- package/src/tokens/elevation.css +0 -10
- package/src/tokens/index.css +0 -8
- package/src/tokens/motion.css +0 -6
- package/src/tokens/radius.css +0 -6
- package/src/tokens/spacing.css +0 -10
- package/src/tokens/themes.css +0 -156
- package/src/tokens/typography.css +0 -29
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/components/Card/Card.jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Card({ as: Component = "div", className = "", ...rest }) {
|
|
4
|
+
const classes = ["ds-card", className].filter(Boolean).join(" ");
|
|
5
|
+
return /* @__PURE__ */ jsx(Component, { className: classes, ...rest });
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
Card
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-3LTHHL5C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Card/Card.jsx"],"sourcesContent":["import \"./Card.css\";\n\nexport function Card({ as: Component = \"div\", className = \"\", ...rest }) {\n const classes = [\"ds-card\", className].filter(Boolean).join(\" \");\n return <Component className={classes} {...rest} />;\n}\n"],"mappings":";AAIS;AAFF,SAAS,KAAK,EAAE,IAAI,YAAY,OAAO,YAAY,IAAI,GAAG,KAAK,GAAG;AACvE,QAAM,UAAU,CAAC,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC/D,SAAO,oBAAC,aAAU,WAAW,SAAU,GAAG,MAAM;AAClD;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThemeSwitcher
|
|
3
|
+
} from "./chunk-YCZXDQJZ.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Footer/Footer.jsx
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function Footer({
|
|
8
|
+
brand = "5VoltFX/Matt Welker",
|
|
9
|
+
showThemeSwitcher = true,
|
|
10
|
+
left,
|
|
11
|
+
right,
|
|
12
|
+
className = ""
|
|
13
|
+
}) {
|
|
14
|
+
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
15
|
+
return /* @__PURE__ */ jsx("footer", { className: ["ds-footer", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs("div", { className: "ds-footer__inner", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "ds-footer__left", children: left }),
|
|
17
|
+
/* @__PURE__ */ jsx("div", { className: "ds-footer__center", children: showThemeSwitcher && /* @__PURE__ */ jsx(ThemeSwitcher, {}) }),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "ds-footer__right", children: right ?? /* @__PURE__ */ jsxs("span", { className: "ds-footer__copyright", children: [
|
|
19
|
+
"\xA9 ",
|
|
20
|
+
year,
|
|
21
|
+
" ",
|
|
22
|
+
brand
|
|
23
|
+
] }) })
|
|
24
|
+
] }) });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
Footer
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-5KN5TPGG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Footer/Footer.jsx"],"sourcesContent":["import { ThemeSwitcher } from \"../ThemeSwitcher/ThemeSwitcher.jsx\";\nimport \"./Footer.css\";\n\n/**\n * Generalizes the 3 existing footers: 5voltfx.com's simple centered\n * copyright, song-chart's minimal bar, and mattwelker.com's 3-column\n * layout (auth links / theme swatches / copyright). `left` and `right`\n * default to nothing and a copyright string respectively, so a single\n * centered ThemeSwitcher is the only thing rendered out of the box.\n */\nexport function Footer({\n brand = \"5VoltFX/Matt Welker\",\n showThemeSwitcher = true,\n left,\n right,\n className = \"\",\n}) {\n const year = new Date().getFullYear();\n\n return (\n <footer className={[\"ds-footer\", className].filter(Boolean).join(\" \")}>\n <div className=\"ds-footer__inner\">\n <div className=\"ds-footer__left\">{left}</div>\n <div className=\"ds-footer__center\">\n {showThemeSwitcher && <ThemeSwitcher />}\n </div>\n <div className=\"ds-footer__right\">\n {right ?? (\n <span className=\"ds-footer__copyright\">\n © {year} {brand}\n </span>\n )}\n </div>\n </div>\n </footer>\n );\n}\n"],"mappings":";;;;;AAsBQ,cAMI,YANJ;AAZD,SAAS,OAAO;AAAA,EACrB,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB;AAAA,EACA;AAAA,EACA,YAAY;AACd,GAAG;AACD,QAAM,QAAO,oBAAI,KAAK,GAAE,YAAY;AAEpC,SACE,oBAAC,YAAO,WAAW,CAAC,aAAa,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAClE,+BAAC,SAAI,WAAU,oBACb;AAAA,wBAAC,SAAI,WAAU,mBAAmB,gBAAK;AAAA,IACvC,oBAAC,SAAI,WAAU,qBACZ,+BAAqB,oBAAC,iBAAc,GACvC;AAAA,IACA,oBAAC,SAAI,WAAU,oBACZ,mBACC,qBAAC,UAAK,WAAU,wBAAuB;AAAA;AAAA,MAClC;AAAA,MAAK;AAAA,MAAE;AAAA,OACZ,GAEJ;AAAA,KACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-AYAMNHNF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Nav
|
|
3
|
+
} from "./chunk-TNWQQ56F.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Header/Header.jsx
|
|
6
|
+
import { Link } from "react-router-dom";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function Header({
|
|
9
|
+
brand,
|
|
10
|
+
brandHref = "/",
|
|
11
|
+
links = [],
|
|
12
|
+
actions,
|
|
13
|
+
className = ""
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx("header", { className: ["ds-header", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs("div", { className: "ds-header__inner", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Link, { to: brandHref, className: "ds-header__brand", children: brand }),
|
|
17
|
+
links.length > 0 && /* @__PURE__ */ jsx(Nav, { links, className: "ds-header__nav" }),
|
|
18
|
+
actions && /* @__PURE__ */ jsx("div", { className: "ds-header__actions", children: actions })
|
|
19
|
+
] }) });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Header
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-BOPVPQLB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Header/Header.jsx"],"sourcesContent":["import { Link } from \"react-router-dom\";\nimport { Nav } from \"../Nav/Nav.jsx\";\nimport \"./Header.css\";\n\n/**\n * Generic header shell with brand/nav/actions slots, so each site's\n * bespoke chrome (song-chart's auth-aware menu + fullscreen toggle,\n * mattwelker.com's audio-loop toggle + Venmo link, 5voltfx.com's plain\n * logo-with-text-fallback) stays app-specific and is passed in rather\n * than encoded into this component.\n */\nexport function Header({\n brand,\n brandHref = \"/\",\n links = [],\n actions,\n className = \"\",\n}) {\n return (\n <header className={[\"ds-header\", className].filter(Boolean).join(\" \")}>\n <div className=\"ds-header__inner\">\n <Link to={brandHref} className=\"ds-header__brand\">\n {brand}\n </Link>\n {links.length > 0 && <Nav links={links} className=\"ds-header__nav\" />}\n {actions && <div className=\"ds-header__actions\">{actions}</div>}\n </div>\n </header>\n );\n}\n"],"mappings":";;;;;AAAA,SAAS,YAAY;AAoBf,SACE,KADF;AATC,SAAS,OAAO;AAAA,EACrB;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ,CAAC;AAAA,EACT;AAAA,EACA,YAAY;AACd,GAAG;AACD,SACE,oBAAC,YAAO,WAAW,CAAC,aAAa,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAClE,+BAAC,SAAI,WAAU,oBACb;AAAA,wBAAC,QAAK,IAAI,WAAW,WAAU,oBAC5B,iBACH;AAAA,IACC,MAAM,SAAS,KAAK,oBAAC,OAAI,OAAc,WAAU,kBAAiB;AAAA,IAClE,WAAW,oBAAC,SAAI,WAAU,sBAAsB,mBAAQ;AAAA,KAC3D,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/components/Typography/Heading.jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var SCALE_BY_LEVEL = { 1: "700", 2: "600", 3: "500", 4: "400", 5: "300", 6: "200" };
|
|
4
|
+
function Heading({
|
|
5
|
+
level = 1,
|
|
6
|
+
size,
|
|
7
|
+
decorative = false,
|
|
8
|
+
className = "",
|
|
9
|
+
children,
|
|
10
|
+
...rest
|
|
11
|
+
}) {
|
|
12
|
+
const Component = `h${level}`;
|
|
13
|
+
const scale = size ?? SCALE_BY_LEVEL[level] ?? "300";
|
|
14
|
+
const classes = [
|
|
15
|
+
"ds-heading",
|
|
16
|
+
`ds-heading--${scale}`,
|
|
17
|
+
decorative ? "ds-heading--decorative" : "",
|
|
18
|
+
className
|
|
19
|
+
].filter(Boolean).join(" ");
|
|
20
|
+
return /* @__PURE__ */ jsx(Component, { className: classes, ...rest, children });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/components/Typography/Text.jsx
|
|
24
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
25
|
+
function Text({
|
|
26
|
+
as: Component = "p",
|
|
27
|
+
size = "200",
|
|
28
|
+
tone = "default",
|
|
29
|
+
className = "",
|
|
30
|
+
children,
|
|
31
|
+
...rest
|
|
32
|
+
}) {
|
|
33
|
+
const classes = ["ds-text", `ds-text--${size}`, `ds-text--${tone}`, className].filter(Boolean).join(" ");
|
|
34
|
+
return /* @__PURE__ */ jsx2(Component, { className: classes, ...rest, children });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
Heading,
|
|
39
|
+
Text
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-EW3S3GK6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Typography/Heading.jsx","../src/components/Typography/Text.jsx"],"sourcesContent":["import \"./Typography.css\";\n\nconst SCALE_BY_LEVEL = { 1: \"700\", 2: \"600\", 3: \"500\", 4: \"400\", 5: \"300\", 6: \"200\" };\n\nexport function Heading({\n level = 1,\n size,\n decorative = false,\n className = \"\",\n children,\n ...rest\n}) {\n const Component = `h${level}`;\n const scale = size ?? SCALE_BY_LEVEL[level] ?? \"300\";\n const classes = [\n \"ds-heading\",\n `ds-heading--${scale}`,\n decorative ? \"ds-heading--decorative\" : \"\",\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <Component className={classes} {...rest}>\n {children}\n </Component>\n );\n}\n","import \"./Typography.css\";\n\nexport function Text({\n as: Component = \"p\",\n size = \"200\",\n tone = \"default\",\n className = \"\",\n children,\n ...rest\n}) {\n const classes = [\"ds-text\", `ds-text--${size}`, `ds-text--${tone}`, className]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <Component className={classes} {...rest}>\n {children}\n </Component>\n );\n}\n"],"mappings":";AAwBI;AAtBJ,IAAM,iBAAiB,EAAE,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM;AAE7E,SAAS,QAAQ;AAAA,EACtB,QAAQ;AAAA,EACR;AAAA,EACA,aAAa;AAAA,EACb,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,YAAY,IAAI,KAAK;AAC3B,QAAM,QAAQ,QAAQ,eAAe,KAAK,KAAK;AAC/C,QAAM,UAAU;AAAA,IACd;AAAA,IACA,eAAe,KAAK;AAAA,IACpB,aAAa,2BAA2B;AAAA,IACxC;AAAA,EACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,oBAAC,aAAU,WAAW,SAAU,GAAG,MAChC,UACH;AAEJ;;;ACbI,gBAAAA,YAAA;AAbG,SAAS,KAAK;AAAA,EACnB,IAAI,YAAY;AAAA,EAChB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,UAAU,CAAC,WAAW,YAAY,IAAI,IAAI,YAAY,IAAI,IAAI,SAAS,EAC1E,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAA,KAAC,aAAU,WAAW,SAAU,GAAG,MAChC,UACH;AAEJ;","names":["jsx"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-NE25337V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// src/components/Layout/Container.jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Container({ as: Component = "div", className = "", ...rest }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
Component,
|
|
6
|
+
{
|
|
7
|
+
className: ["ds-container", className].filter(Boolean).join(" "),
|
|
8
|
+
...rest
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/components/Layout/Stack.jsx
|
|
14
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
15
|
+
function Stack({
|
|
16
|
+
as: Component = "div",
|
|
17
|
+
gap = "4",
|
|
18
|
+
direction = "column",
|
|
19
|
+
align,
|
|
20
|
+
className = "",
|
|
21
|
+
style,
|
|
22
|
+
...rest
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ jsx2(
|
|
25
|
+
Component,
|
|
26
|
+
{
|
|
27
|
+
className: ["ds-stack", className].filter(Boolean).join(" "),
|
|
28
|
+
style: {
|
|
29
|
+
"--ds-stack-gap": `var(--ds-space-${gap})`,
|
|
30
|
+
flexDirection: direction,
|
|
31
|
+
alignItems: align,
|
|
32
|
+
...style
|
|
33
|
+
},
|
|
34
|
+
...rest
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/components/Layout/Grid.jsx
|
|
40
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
41
|
+
function Grid({
|
|
42
|
+
as: Component = "div",
|
|
43
|
+
columns = 2,
|
|
44
|
+
gap = "4",
|
|
45
|
+
className = "",
|
|
46
|
+
style,
|
|
47
|
+
...rest
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ jsx3(
|
|
50
|
+
Component,
|
|
51
|
+
{
|
|
52
|
+
className: ["ds-grid", className].filter(Boolean).join(" "),
|
|
53
|
+
style: {
|
|
54
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
|
|
55
|
+
gap: `var(--ds-space-${gap})`,
|
|
56
|
+
...style
|
|
57
|
+
},
|
|
58
|
+
...rest
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
Container,
|
|
65
|
+
Stack,
|
|
66
|
+
Grid
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=chunk-SFECTSQP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Layout/Container.jsx","../src/components/Layout/Stack.jsx","../src/components/Layout/Grid.jsx"],"sourcesContent":["import \"./Layout.css\";\n\nexport function Container({ as: Component = \"div\", className = \"\", ...rest }) {\n return (\n <Component\n className={[\"ds-container\", className].filter(Boolean).join(\" \")}\n {...rest}\n />\n );\n}\n","import \"./Layout.css\";\n\nexport function Stack({\n as: Component = \"div\",\n gap = \"4\",\n direction = \"column\",\n align,\n className = \"\",\n style,\n ...rest\n}) {\n return (\n <Component\n className={[\"ds-stack\", className].filter(Boolean).join(\" \")}\n style={{\n \"--ds-stack-gap\": `var(--ds-space-${gap})`,\n flexDirection: direction,\n alignItems: align,\n ...style,\n }}\n {...rest}\n />\n );\n}\n","import \"./Layout.css\";\n\nexport function Grid({\n as: Component = \"div\",\n columns = 2,\n gap = \"4\",\n className = \"\",\n style,\n ...rest\n}) {\n return (\n <Component\n className={[\"ds-grid\", className].filter(Boolean).join(\" \")}\n style={{\n gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,\n gap: `var(--ds-space-${gap})`,\n ...style,\n }}\n {...rest}\n />\n );\n}\n"],"mappings":";AAII;AAFG,SAAS,UAAU,EAAE,IAAI,YAAY,OAAO,YAAY,IAAI,GAAG,KAAK,GAAG;AAC5E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,CAAC,gBAAgB,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC9D,GAAG;AAAA;AAAA,EACN;AAEJ;;;ACGI,gBAAAA,YAAA;AAVG,SAAS,MAAM;AAAA,EACpB,IAAI,YAAY;AAAA,EAChB,MAAM;AAAA,EACN,YAAY;AAAA,EACZ;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAG;AACD,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,CAAC,YAAY,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC3D,OAAO;AAAA,QACL,kBAAkB,kBAAkB,GAAG;AAAA,QACvC,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,GAAG;AAAA,MACL;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;;;ACZI,gBAAAC,YAAA;AATG,SAAS,KAAK;AAAA,EACnB,IAAI,YAAY;AAAA,EAChB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAG;AACD,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,CAAC,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC1D,OAAO;AAAA,QACL,qBAAqB,UAAU,OAAO;AAAA,QACtC,KAAK,kBAAkB,GAAG;AAAA,QAC1B,GAAG;AAAA,MACL;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":["jsx","jsx"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/components/Nav/Nav.jsx
|
|
2
|
+
import { NavLink } from "react-router-dom";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
function Nav({ links = [], className = "" }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("nav", { className: ["ds-nav", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx("ul", { className: "ds-nav__list", children: links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
6
|
+
NavLink,
|
|
7
|
+
{
|
|
8
|
+
to: link.to,
|
|
9
|
+
end: link.end,
|
|
10
|
+
className: ({ isActive }) => "ds-nav__link" + (isActive ? " ds-nav__link--active" : ""),
|
|
11
|
+
children: link.label
|
|
12
|
+
}
|
|
13
|
+
) }, link.to)) }) });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
Nav
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-TNWQQ56F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Nav/Nav.jsx"],"sourcesContent":["import { NavLink } from \"react-router-dom\";\nimport \"./Nav.css\";\n\n/**\n * Generic nav-links list. Generalizes 5voltfx.com's Navbar.jsx (active\n * underline via NavLink), song-chart's SiteHeader nav, and mattwelker.com's\n * PageNav link list into one component driven by a `links` array.\n */\nexport function Nav({ links = [], className = \"\" }) {\n return (\n <nav className={[\"ds-nav\", className].filter(Boolean).join(\" \")}>\n <ul className=\"ds-nav__list\">\n {links.map((link) => (\n <li key={link.to}>\n <NavLink\n to={link.to}\n end={link.end}\n className={({ isActive }) =>\n \"ds-nav__link\" + (isActive ? \" ds-nav__link--active\" : \"\")\n }\n >\n {link.label}\n </NavLink>\n </li>\n ))}\n </ul>\n </nav>\n );\n}\n"],"mappings":";AAAA,SAAS,eAAe;AAcZ;AANL,SAAS,IAAI,EAAE,QAAQ,CAAC,GAAG,YAAY,GAAG,GAAG;AAClD,SACE,oBAAC,SAAI,WAAW,CAAC,UAAU,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAC5D,8BAAC,QAAG,WAAU,gBACX,gBAAM,IAAI,CAAC,SACV,oBAAC,QACC;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,KAAK;AAAA,MACT,KAAK,KAAK;AAAA,MACV,WAAW,CAAC,EAAE,SAAS,MACrB,kBAAkB,WAAW,0BAA0B;AAAA,MAGxD,eAAK;AAAA;AAAA,EACR,KATO,KAAK,EAUd,CACD,GACH,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/components/Button/Button.jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Button({
|
|
4
|
+
as: Component = "button",
|
|
5
|
+
variant = "primary",
|
|
6
|
+
size = "md",
|
|
7
|
+
className = "",
|
|
8
|
+
...rest
|
|
9
|
+
}) {
|
|
10
|
+
const classes = [
|
|
11
|
+
"ds-button",
|
|
12
|
+
`ds-button--${variant}`,
|
|
13
|
+
`ds-button--${size}`,
|
|
14
|
+
className
|
|
15
|
+
].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ jsx(Component, { className: classes, ...rest });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
Button
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-U6JTDANG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Button/Button.jsx"],"sourcesContent":["import \"./Button.css\";\n\nexport function Button({\n as: Component = \"button\",\n variant = \"primary\",\n size = \"md\",\n className = \"\",\n ...rest\n}) {\n const classes = [\n \"ds-button\",\n `ds-button--${variant}`,\n `ds-button--${size}`,\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return <Component className={classes} {...rest} />;\n}\n"],"mappings":";AAkBS;AAhBF,SAAS,OAAO;AAAA,EACrB,IAAI,YAAY;AAAA,EAChB,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,GAAG;AACL,GAAG;AACD,QAAM,UAAU;AAAA,IACd;AAAA,IACA,cAAc,OAAO;AAAA,IACrB,cAAc,IAAI;AAAA,IAClB;AAAA,EACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SAAO,oBAAC,aAAU,WAAW,SAAU,GAAG,MAAM;AAClD;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/theme/useTheme.js
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
|
|
4
|
+
// src/theme/ThemeContext.js
|
|
5
|
+
import { createContext } from "react";
|
|
6
|
+
var ThemeContext = createContext(null);
|
|
7
|
+
|
|
8
|
+
// src/theme/useTheme.js
|
|
9
|
+
function useTheme() {
|
|
10
|
+
const context = useContext(ThemeContext);
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
13
|
+
}
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// src/components/ThemeSwitcher/ThemeSwitcher.jsx
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
function ThemeSwitcher({ className = "" }) {
|
|
20
|
+
const { theme, setTheme, themes } = useTheme();
|
|
21
|
+
return /* @__PURE__ */ jsx("div", { className: ["ds-theme-switcher", className].filter(Boolean).join(" "), children: themes.map((option) => /* @__PURE__ */ jsx(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
type: "button",
|
|
25
|
+
className: "ds-theme-switcher__swatch" + (option.id === theme ? " ds-theme-switcher__swatch--active" : ""),
|
|
26
|
+
style: { backgroundColor: option.swatch },
|
|
27
|
+
"aria-label": option.label,
|
|
28
|
+
"aria-pressed": option.id === theme,
|
|
29
|
+
title: option.label,
|
|
30
|
+
onClick: () => setTheme(option.id)
|
|
31
|
+
},
|
|
32
|
+
option.id
|
|
33
|
+
)) });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
ThemeContext,
|
|
38
|
+
useTheme,
|
|
39
|
+
ThemeSwitcher
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-YCZXDQJZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/useTheme.js","../src/theme/ThemeContext.js","../src/components/ThemeSwitcher/ThemeSwitcher.jsx"],"sourcesContent":["import { useContext } from \"react\";\nimport { ThemeContext } from \"./ThemeContext.js\";\n\nexport function useTheme() {\n const context = useContext(ThemeContext);\n if (!context) {\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n }\n return context;\n}\n","import { createContext } from \"react\";\n\nexport const ThemeContext = createContext(null);\n","import { useTheme } from \"../../theme/useTheme.js\";\nimport \"./ThemeSwitcher.css\";\n\nexport function ThemeSwitcher({ className = \"\" }) {\n const { theme, setTheme, themes } = useTheme();\n\n return (\n <div className={[\"ds-theme-switcher\", className].filter(Boolean).join(\" \")}>\n {themes.map((option) => (\n <button\n key={option.id}\n type=\"button\"\n className={\n \"ds-theme-switcher__swatch\" +\n (option.id === theme ? \" ds-theme-switcher__swatch--active\" : \"\")\n }\n style={{ backgroundColor: option.swatch }}\n aria-label={option.label}\n aria-pressed={option.id === theme}\n title={option.label}\n onClick={() => setTheme(option.id)}\n />\n ))}\n </div>\n );\n}\n"],"mappings":";AAAA,SAAS,kBAAkB;;;ACA3B,SAAS,qBAAqB;AAEvB,IAAM,eAAe,cAAc,IAAI;;;ADCvC,SAAS,WAAW;AACzB,QAAM,UAAU,WAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,8CAA8C;AAAA,EAChE;AACA,SAAO;AACT;;;AEAQ;AAND,SAAS,cAAc,EAAE,YAAY,GAAG,GAAG;AAChD,QAAM,EAAE,OAAO,UAAU,OAAO,IAAI,SAAS;AAE7C,SACE,oBAAC,SAAI,WAAW,CAAC,qBAAqB,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GACtE,iBAAO,IAAI,CAAC,WACX;AAAA,IAAC;AAAA;AAAA,MAEC,MAAK;AAAA,MACL,WACE,+BACC,OAAO,OAAO,QAAQ,uCAAuC;AAAA,MAEhE,OAAO,EAAE,iBAAiB,OAAO,OAAO;AAAA,MACxC,cAAY,OAAO;AAAA,MACnB,gBAAc,OAAO,OAAO;AAAA,MAC5B,OAAO,OAAO;AAAA,MACd,SAAS,MAAM,SAAS,OAAO,EAAE;AAAA;AAAA,IAV5B,OAAO;AAAA,EAWd,CACD,GACH;AAEJ;","names":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* src/components/Button/Button.css */
|
|
1
2
|
.ds-button {
|
|
2
3
|
display: inline-flex;
|
|
3
4
|
align-items: center;
|
|
@@ -18,60 +19,50 @@
|
|
|
18
19
|
transform var(--ds-motion-duration-fast) var(--ds-motion-ease-standard),
|
|
19
20
|
box-shadow var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
20
21
|
}
|
|
21
|
-
|
|
22
22
|
.ds-button--md {
|
|
23
23
|
padding: var(--ds-space-3) var(--ds-space-5);
|
|
24
24
|
}
|
|
25
|
-
|
|
26
25
|
.ds-button--sm {
|
|
27
26
|
padding: var(--ds-space-2) var(--ds-space-4);
|
|
28
27
|
font-size: var(--ds-font-size-100);
|
|
29
28
|
}
|
|
30
|
-
|
|
31
29
|
.ds-button--lg {
|
|
32
30
|
padding: var(--ds-space-4) var(--ds-space-6);
|
|
33
31
|
font-size: var(--ds-font-size-300);
|
|
34
32
|
}
|
|
35
|
-
|
|
36
33
|
.ds-button--primary {
|
|
37
34
|
background-color: var(--ds-color-bg-2);
|
|
38
35
|
color: var(--ds-color-font-0);
|
|
39
36
|
box-shadow: var(--ds-shadow-sm);
|
|
40
37
|
}
|
|
41
|
-
|
|
42
38
|
.ds-button--primary:hover {
|
|
43
39
|
transform: translateY(-1px);
|
|
44
40
|
box-shadow: var(--ds-shadow-md);
|
|
45
41
|
}
|
|
46
|
-
|
|
47
42
|
.ds-button--secondary {
|
|
48
43
|
background-color: transparent;
|
|
49
44
|
color: var(--ds-color-font-0);
|
|
50
45
|
border-color: var(--ds-color-bw-3);
|
|
51
46
|
}
|
|
52
|
-
|
|
53
47
|
.ds-button--secondary:hover {
|
|
54
48
|
background-color: var(--ds-color-bw-1);
|
|
55
49
|
}
|
|
56
|
-
|
|
57
50
|
.ds-button--ghost {
|
|
58
51
|
background: transparent;
|
|
59
52
|
color: var(--ds-color-font-1);
|
|
60
53
|
padding-inline: var(--ds-space-3);
|
|
61
54
|
}
|
|
62
|
-
|
|
63
55
|
.ds-button--ghost:hover {
|
|
64
56
|
color: var(--ds-color-font-0);
|
|
65
57
|
}
|
|
66
|
-
|
|
67
58
|
.ds-button:focus-visible {
|
|
68
59
|
outline: 2px solid var(--ds-color-bg-2);
|
|
69
60
|
outline-offset: 2px;
|
|
70
61
|
}
|
|
71
|
-
|
|
72
62
|
.ds-button:disabled {
|
|
73
63
|
opacity: 0.5;
|
|
74
64
|
cursor: not-allowed;
|
|
75
65
|
transform: none;
|
|
76
66
|
box-shadow: none;
|
|
77
67
|
}
|
|
68
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/Button.css"],"sourcesContent":[".ds-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--ds-space-2);\n border: 1px solid transparent;\n border-radius: var(--ds-radius-pill);\n font-family: var(--ds-font-body);\n font-weight: var(--ds-font-weight-semibold);\n font-size: var(--ds-font-size-200);\n line-height: var(--ds-line-height-tight);\n text-decoration: none;\n cursor: pointer;\n transition:\n background-color var(--ds-motion-duration-base) var(--ds-motion-ease-standard),\n border-color var(--ds-motion-duration-base) var(--ds-motion-ease-standard),\n color var(--ds-motion-duration-base) var(--ds-motion-ease-standard),\n transform var(--ds-motion-duration-fast) var(--ds-motion-ease-standard),\n box-shadow var(--ds-motion-duration-base) var(--ds-motion-ease-standard);\n}\n\n.ds-button--md {\n padding: var(--ds-space-3) var(--ds-space-5);\n}\n\n.ds-button--sm {\n padding: var(--ds-space-2) var(--ds-space-4);\n font-size: var(--ds-font-size-100);\n}\n\n.ds-button--lg {\n padding: var(--ds-space-4) var(--ds-space-6);\n font-size: var(--ds-font-size-300);\n}\n\n.ds-button--primary {\n background-color: var(--ds-color-bg-2);\n color: var(--ds-color-font-0);\n box-shadow: var(--ds-shadow-sm);\n}\n\n.ds-button--primary:hover {\n transform: translateY(-1px);\n box-shadow: var(--ds-shadow-md);\n}\n\n.ds-button--secondary {\n background-color: transparent;\n color: var(--ds-color-font-0);\n border-color: var(--ds-color-bw-3);\n}\n\n.ds-button--secondary:hover {\n background-color: var(--ds-color-bw-1);\n}\n\n.ds-button--ghost {\n background: transparent;\n color: var(--ds-color-font-1);\n padding-inline: var(--ds-space-3);\n}\n\n.ds-button--ghost:hover {\n color: var(--ds-color-font-0);\n}\n\n.ds-button:focus-visible {\n outline: 2px solid var(--ds-color-bg-2);\n outline-offset: 2px;\n}\n\n.ds-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n transform: none;\n box-shadow: none;\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,OAAK,IAAI;AACT,UAAQ,IAAI,MAAM;AAClB,iBAAe,IAAI;AACnB,eAAa,IAAI;AACjB,eAAa,IAAI;AACjB,aAAW,IAAI;AACf,eAAa,IAAI;AACjB,mBAAiB;AACjB,UAAQ;AACR;AAAA,IACE,iBAAiB,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IAC9E,aAAa,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IAC1E,MAAM,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IACnE,UAAU,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IACvE,WAAW,IAAI,2BAA2B,IAAI;AAClD;AAEA,CAAC;AACC,WAAS,IAAI,cAAc,IAAI;AACjC;AAEA,CAAC;AACC,WAAS,IAAI,cAAc,IAAI;AAC/B,aAAW,IAAI;AACjB;AAEA,CAAC;AACC,WAAS,IAAI,cAAc,IAAI;AAC/B,aAAW,IAAI;AACjB;AAEA,CAAC;AACC,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,cAAY,IAAI;AAClB;AAEA,CANC,kBAMkB;AACjB,aAAW,WAAW;AACtB,cAAY,IAAI;AAClB;AAEA,CAAC;AACC,oBAAkB;AAClB,SAAO,IAAI;AACX,gBAAc,IAAI;AACpB;AAEA,CANC,oBAMoB;AACnB,oBAAkB,IAAI;AACxB;AAEA,CAAC;AACC,cAAY;AACZ,SAAO,IAAI;AACX,kBAAgB,IAAI;AACtB;AAEA,CANC,gBAMgB;AACf,SAAO,IAAI;AACb;AAEA,CAlEC,SAkES;AACR,WAAS,IAAI,MAAM,IAAI;AACvB,kBAAgB;AAClB;AAEA,CAvEC,SAuES;AACR,WAAS;AACT,UAAQ;AACR,aAAW;AACX,cAAY;AACd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* src/components/Card/Card.css */
|
|
1
2
|
.ds-card {
|
|
2
3
|
background-color: var(--ds-color-bg-1);
|
|
3
4
|
color: var(--ds-color-font-0);
|
|
@@ -5,7 +6,6 @@
|
|
|
5
6
|
border-radius: var(--ds-radius-lg);
|
|
6
7
|
padding: var(--ds-space-5);
|
|
7
8
|
box-shadow: var(--ds-shadow-sm);
|
|
8
|
-
transition:
|
|
9
|
-
box-shadow var(--ds-motion-duration-base) var(--ds-motion-ease-standard),
|
|
10
|
-
transform var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
9
|
+
transition: box-shadow var(--ds-motion-duration-base) var(--ds-motion-ease-standard), transform var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
11
10
|
}
|
|
11
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Card/Card.css"],"sourcesContent":[".ds-card {\n background-color: var(--ds-color-bg-1);\n color: var(--ds-color-font-0);\n border: 1px solid var(--ds-color-bw-1);\n border-radius: var(--ds-radius-lg);\n padding: var(--ds-space-5);\n box-shadow: var(--ds-shadow-sm);\n transition:\n box-shadow var(--ds-motion-duration-base) var(--ds-motion-ease-standard),\n transform var(--ds-motion-duration-base) var(--ds-motion-ease-standard);\n}\n"],"mappings":";AAAA,CAAC;AACC,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,UAAQ,IAAI,MAAM,IAAI;AACtB,iBAAe,IAAI;AACnB,WAAS,IAAI;AACb,cAAY,IAAI;AAChB,cACE,WAAW,IAAI,2BAA2B,IAAI,0BAA0B,EACxE,UAAU,IAAI,2BAA2B,IAAI;AACjD;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +1,36 @@
|
|
|
1
|
+
/* src/components/ThemeSwitcher/ThemeSwitcher.css */
|
|
2
|
+
.ds-theme-switcher {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--ds-space-2);
|
|
6
|
+
}
|
|
7
|
+
.ds-theme-switcher__swatch {
|
|
8
|
+
width: 20px;
|
|
9
|
+
height: 20px;
|
|
10
|
+
border-radius: var(--ds-radius-pill);
|
|
11
|
+
border: 2px solid transparent;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
padding: 0;
|
|
14
|
+
transition: transform var(--ds-motion-duration-fast) var(--ds-motion-ease-standard), border-color var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
15
|
+
}
|
|
16
|
+
.ds-theme-switcher__swatch:hover {
|
|
17
|
+
transform: scale(1.15);
|
|
18
|
+
}
|
|
19
|
+
.ds-theme-switcher__swatch--active {
|
|
20
|
+
border-color: var(--ds-color-font-0);
|
|
21
|
+
}
|
|
22
|
+
.ds-theme-switcher__swatch:focus-visible {
|
|
23
|
+
outline: 2px solid var(--ds-color-bg-2);
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* src/components/Footer/Footer.css */
|
|
1
28
|
.ds-footer {
|
|
2
29
|
background-color: var(--ds-color-bg-1);
|
|
3
30
|
color: var(--ds-color-font-1);
|
|
4
31
|
border-top: 1px solid var(--ds-color-bw-1);
|
|
5
32
|
font-family: var(--ds-font-body);
|
|
6
33
|
}
|
|
7
|
-
|
|
8
34
|
.ds-footer__inner {
|
|
9
35
|
max-width: 1200px;
|
|
10
36
|
margin: 0 auto;
|
|
@@ -14,35 +40,30 @@
|
|
|
14
40
|
justify-content: space-between;
|
|
15
41
|
gap: var(--ds-space-4);
|
|
16
42
|
}
|
|
17
|
-
|
|
18
43
|
.ds-footer__left,
|
|
19
44
|
.ds-footer__right {
|
|
20
45
|
flex: 1;
|
|
21
46
|
display: flex;
|
|
22
47
|
align-items: center;
|
|
23
48
|
}
|
|
24
|
-
|
|
25
49
|
.ds-footer__right {
|
|
26
50
|
justify-content: flex-end;
|
|
27
51
|
}
|
|
28
|
-
|
|
29
52
|
.ds-footer__center {
|
|
30
53
|
display: flex;
|
|
31
54
|
justify-content: center;
|
|
32
55
|
}
|
|
33
|
-
|
|
34
56
|
.ds-footer__copyright {
|
|
35
57
|
font-size: var(--ds-font-size-100);
|
|
36
58
|
}
|
|
37
|
-
|
|
38
59
|
@media (width <= 660px) {
|
|
39
60
|
.ds-footer__inner {
|
|
40
61
|
flex-direction: column;
|
|
41
62
|
padding: var(--ds-space-4);
|
|
42
63
|
}
|
|
43
|
-
|
|
44
64
|
.ds-footer__left,
|
|
45
65
|
.ds-footer__right {
|
|
46
66
|
justify-content: center;
|
|
47
67
|
}
|
|
48
68
|
}
|
|
69
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ThemeSwitcher/ThemeSwitcher.css","../../../src/components/Footer/Footer.css"],"sourcesContent":[".ds-theme-switcher {\n display: flex;\n align-items: center;\n gap: var(--ds-space-2);\n}\n\n.ds-theme-switcher__swatch {\n width: 20px;\n height: 20px;\n border-radius: var(--ds-radius-pill);\n border: 2px solid transparent;\n cursor: pointer;\n padding: 0;\n transition:\n transform var(--ds-motion-duration-fast) var(--ds-motion-ease-standard),\n border-color var(--ds-motion-duration-base) var(--ds-motion-ease-standard);\n}\n\n.ds-theme-switcher__swatch:hover {\n transform: scale(1.15);\n}\n\n.ds-theme-switcher__swatch--active {\n border-color: var(--ds-color-font-0);\n}\n\n.ds-theme-switcher__swatch:focus-visible {\n outline: 2px solid var(--ds-color-bg-2);\n outline-offset: 2px;\n}\n",".ds-footer {\n background-color: var(--ds-color-bg-1);\n color: var(--ds-color-font-1);\n border-top: 1px solid var(--ds-color-bw-1);\n font-family: var(--ds-font-body);\n}\n\n.ds-footer__inner {\n max-width: 1200px;\n margin: 0 auto;\n padding: var(--ds-space-4) var(--ds-space-6);\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--ds-space-4);\n}\n\n.ds-footer__left,\n.ds-footer__right {\n flex: 1;\n display: flex;\n align-items: center;\n}\n\n.ds-footer__right {\n justify-content: flex-end;\n}\n\n.ds-footer__center {\n display: flex;\n justify-content: center;\n}\n\n.ds-footer__copyright {\n font-size: var(--ds-font-size-100);\n}\n\n@media (width <= 660px) {\n .ds-footer__inner {\n flex-direction: column;\n padding: var(--ds-space-4);\n }\n\n .ds-footer__left,\n .ds-footer__right {\n justify-content: center;\n }\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK,IAAI;AACX;AAEA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,iBAAe,IAAI;AACnB,UAAQ,IAAI,MAAM;AAClB,UAAQ;AACR,WAAS;AACT,cACE,UAAU,IAAI,2BAA2B,IAAI,0BAA0B,EACvE,aAAa,IAAI,2BAA2B,IAAI;AACpD;AAEA,CAZC,yBAYyB;AACxB,aAAW,MAAM;AACnB;AAEA,CAAC;AACC,gBAAc,IAAI;AACpB;AAEA,CApBC,yBAoByB;AACxB,WAAS,IAAI,MAAM,IAAI;AACvB,kBAAgB;AAClB;;;AC7BA,CAAC;AACC,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,cAAY,IAAI,MAAM,IAAI;AAC1B,eAAa,IAAI;AACnB;AAEA,CAAC;AACC,aAAW;AACX,UAAQ,EAAE;AACV,WAAS,IAAI,cAAc,IAAI;AAC/B,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,OAAK,IAAI;AACX;AAEA,CAAC;AACD,CAAC;AACC,QAAM;AACN,WAAS;AACT,eAAa;AACf;AAEA,CANC;AAOC,mBAAiB;AACnB;AAEA,CAAC;AACC,WAAS;AACT,mBAAiB;AACnB;AAEA,CAAC;AACC,aAAW,IAAI;AACjB;AAEA,QAAQ,SAAS;AACf,GA/BD;AAgCG,oBAAgB;AAChB,aAAS,IAAI;AACf;AAEA,GA1BD;AAAA,EA2BC,CA1BD;AA2BG,qBAAiB;AACnB;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* src/components/Nav/Nav.css */
|
|
2
|
+
.ds-nav__list {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--ds-space-5);
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
.ds-nav__link {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
padding: var(--ds-space-2) 0;
|
|
14
|
+
color: var(--ds-color-font-1);
|
|
15
|
+
font-family: var(--ds-font-body);
|
|
16
|
+
font-weight: var(--ds-font-weight-medium);
|
|
17
|
+
font-size: var(--ds-font-size-100);
|
|
18
|
+
text-transform: uppercase;
|
|
19
|
+
letter-spacing: 0.04em;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
transition: color var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
22
|
+
}
|
|
23
|
+
.ds-nav__link::after {
|
|
24
|
+
content: "";
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: 0;
|
|
27
|
+
bottom: -2px;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 2px;
|
|
30
|
+
background-color: var(--ds-color-bg-2);
|
|
31
|
+
transform: scaleX(0);
|
|
32
|
+
transform-origin: left;
|
|
33
|
+
transition: transform var(--ds-motion-duration-base) var(--ds-motion-ease-standard);
|
|
34
|
+
}
|
|
35
|
+
.ds-nav__link:hover {
|
|
36
|
+
color: var(--ds-color-font-0);
|
|
37
|
+
}
|
|
38
|
+
.ds-nav__link:hover::after {
|
|
39
|
+
transform: scaleX(1);
|
|
40
|
+
}
|
|
41
|
+
.ds-nav__link--active {
|
|
42
|
+
color: var(--ds-color-font-0);
|
|
43
|
+
}
|
|
44
|
+
.ds-nav__link--active::after {
|
|
45
|
+
transform: scaleX(1);
|
|
46
|
+
}
|
|
47
|
+
@media (width <= 660px) {
|
|
48
|
+
.ds-nav__list {
|
|
49
|
+
gap: var(--ds-space-3);
|
|
50
|
+
}
|
|
51
|
+
.ds-nav__link {
|
|
52
|
+
font-size: 0.75rem;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* src/components/Header/Header.css */
|
|
57
|
+
.ds-header {
|
|
58
|
+
background-color: var(--ds-color-bg-0);
|
|
59
|
+
color: var(--ds-color-font-0);
|
|
60
|
+
border-bottom: 1px solid var(--ds-color-bw-1);
|
|
61
|
+
font-family: var(--ds-font-body);
|
|
62
|
+
}
|
|
63
|
+
.ds-header__inner {
|
|
64
|
+
max-width: 1200px;
|
|
65
|
+
margin: 0 auto;
|
|
66
|
+
padding: var(--ds-space-4) var(--ds-space-6);
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: var(--ds-space-6);
|
|
70
|
+
}
|
|
71
|
+
.ds-header__brand {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
color: var(--ds-color-font-0);
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
font-weight: var(--ds-font-weight-bold);
|
|
77
|
+
font-size: var(--ds-font-size-300);
|
|
78
|
+
letter-spacing: 0.02em;
|
|
79
|
+
}
|
|
80
|
+
.ds-header__nav {
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
83
|
+
.ds-header__actions {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: var(--ds-space-3);
|
|
87
|
+
margin-left: auto;
|
|
88
|
+
}
|
|
89
|
+
@media (width <= 480px) {
|
|
90
|
+
.ds-header__inner {
|
|
91
|
+
padding: var(--ds-space-3) var(--ds-space-4);
|
|
92
|
+
gap: var(--ds-space-4);
|
|
93
|
+
}
|
|
94
|
+
.ds-header__brand {
|
|
95
|
+
font-size: var(--ds-font-size-200);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Nav/Nav.css","../../../src/components/Header/Header.css"],"sourcesContent":[".ds-nav__list {\n display: flex;\n align-items: center;\n gap: var(--ds-space-5);\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.ds-nav__link {\n position: relative;\n display: inline-block;\n padding: var(--ds-space-2) 0;\n color: var(--ds-color-font-1);\n font-family: var(--ds-font-body);\n font-weight: var(--ds-font-weight-medium);\n font-size: var(--ds-font-size-100);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n text-decoration: none;\n transition: color var(--ds-motion-duration-base) var(--ds-motion-ease-standard);\n}\n\n.ds-nav__link::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: -2px;\n width: 100%;\n height: 2px;\n background-color: var(--ds-color-bg-2);\n transform: scaleX(0);\n transform-origin: left;\n transition: transform var(--ds-motion-duration-base) var(--ds-motion-ease-standard);\n}\n\n.ds-nav__link:hover {\n color: var(--ds-color-font-0);\n}\n\n.ds-nav__link:hover::after {\n transform: scaleX(1);\n}\n\n.ds-nav__link--active {\n color: var(--ds-color-font-0);\n}\n\n.ds-nav__link--active::after {\n transform: scaleX(1);\n}\n\n@media (width <= 660px) {\n .ds-nav__list {\n gap: var(--ds-space-3);\n }\n\n .ds-nav__link {\n font-size: 0.75rem;\n }\n}\n",".ds-header {\n background-color: var(--ds-color-bg-0);\n color: var(--ds-color-font-0);\n border-bottom: 1px solid var(--ds-color-bw-1);\n font-family: var(--ds-font-body);\n}\n\n.ds-header__inner {\n max-width: 1200px;\n margin: 0 auto;\n padding: var(--ds-space-4) var(--ds-space-6);\n display: flex;\n align-items: center;\n gap: var(--ds-space-6);\n}\n\n.ds-header__brand {\n display: flex;\n align-items: center;\n color: var(--ds-color-font-0);\n text-decoration: none;\n font-weight: var(--ds-font-weight-bold);\n font-size: var(--ds-font-size-300);\n letter-spacing: 0.02em;\n}\n\n.ds-header__nav {\n flex: 1;\n}\n\n.ds-header__actions {\n display: flex;\n align-items: center;\n gap: var(--ds-space-3);\n margin-left: auto;\n}\n\n@media (width <= 480px) {\n .ds-header__inner {\n padding: var(--ds-space-3) var(--ds-space-4);\n gap: var(--ds-space-4);\n }\n\n .ds-header__brand {\n font-size: var(--ds-font-size-200);\n }\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK,IAAI;AACT,cAAY;AACZ,UAAQ;AACR,WAAS;AACX;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,WAAS,IAAI,cAAc;AAC3B,SAAO,IAAI;AACX,eAAa,IAAI;AACjB,eAAa,IAAI;AACjB,aAAW,IAAI;AACf,kBAAgB;AAChB,kBAAgB;AAChB,mBAAiB;AACjB,cAAY,MAAM,IAAI,2BAA2B,IAAI;AACvD;AAEA,CAdC,YAcY;AACX,WAAS;AACT,YAAU;AACV,QAAM;AACN,UAAQ;AACR,SAAO;AACP,UAAQ;AACR,oBAAkB,IAAI;AACtB,aAAW,OAAO;AAClB,oBAAkB;AAClB,cAAY,UAAU,IAAI,2BAA2B,IAAI;AAC3D;AAEA,CA3BC,YA2BY;AACX,SAAO,IAAI;AACb;AAEA,CA/BC,YA+BY,MAAM;AACjB,aAAW,OAAO;AACpB;AAEA,CAAC;AACC,SAAO,IAAI;AACb;AAEA,CAJC,oBAIoB;AACnB,aAAW,OAAO;AACpB;AAEA,QAAQ,SAAS;AACf,GArDD;AAsDG,SAAK,IAAI;AACX;AAEA,GAhDD;AAiDG,eAAW;AACb;AACF;;;AC5DA,CAAC;AACC,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,iBAAe,IAAI,MAAM,IAAI;AAC7B,eAAa,IAAI;AACnB;AAEA,CAAC;AACC,aAAW;AACX,UAAQ,EAAE;AACV,WAAS,IAAI,cAAc,IAAI;AAC/B,WAAS;AACT,eAAa;AACb,OAAK,IAAI;AACX;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,SAAO,IAAI;AACX,mBAAiB;AACjB,eAAa,IAAI;AACjB,aAAW,IAAI;AACf,kBAAgB;AAClB;AAEA,CAAC;AACC,QAAM;AACR;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK,IAAI;AACT,eAAa;AACf;AAEA,QAAQ,SAAS;AACf,GA/BD;AAgCG,aAAS,IAAI,cAAc,IAAI;AAC/B,SAAK,IAAI;AACX;AAEA,GA3BD;AA4BG,eAAW,IAAI;AACjB;AACF;","names":[]}
|