jamstacks 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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# jamstacks
|
|
2
2
|
|
|
3
|
-
Shared React components for Jamstacks templates. The initial library provides a dark
|
|
3
|
+
Shared React components for Jamstacks templates. The initial library provides a light/dark/system theme toggle and a shared theme API. It works with React 18.2+ and React 19, including Next.js App Router and static exports, with no Next.js or Tailwind runtime dependency.
|
|
4
4
|
|
|
5
5
|
## Install in a template
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ export default function App() {
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Use one provider per document and place all
|
|
47
|
+
Use one provider per document and place all toggles inside it. Multiple toggles share the same state. `DarkModeToggle` is a single native keyboard-accessible button that cycles between three preferences, showing a sun, moon or monitor icon for the current one. From System, a click switches to the opposite of the device's appearance, then to the device's appearance, then back to System, so the first click always changes what the visitor sees. Its accessible name and tooltip include the current preference ("Theme: System" by default; `aria-label` replaces the "Theme" prefix), and `data-theme-preference="light|dark|system"` exposes it to template selectors. It supports a forwarded button ref and ordinary button props, including `className`, `style`, `disabled`, `aria-label`, and `onClick`. Calling `event.preventDefault()` in `onClick` cancels the theme change. It stays disabled until hydration finishes so a click cannot overwrite a saved preference before it has loaded.
|
|
48
48
|
|
|
49
49
|
## Next.js App Router
|
|
50
50
|
|
|
@@ -72,7 +72,7 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
|
|
72
72
|
import { DarkModeToggle } from 'jamstacks';
|
|
73
73
|
|
|
74
74
|
export default function Header() {
|
|
75
|
-
return <header><DarkModeToggle aria-label="
|
|
75
|
+
return <header><DarkModeToggle aria-label="Theme" /></header>;
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
@@ -108,7 +108,7 @@ An existing template that uses only `@media (prefers-color-scheme: dark)` needs
|
|
|
108
108
|
body { background: var(--page-background); color: var(--page-ink); }
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Apply the same pattern to all of the template's dark palette variables, including inherited `--jamstacks-*` component fallbacks. With Tailwind, configure its dark variant to use the `.dark` class rather than a media query. The toggle carries its own inline styles and needs no stylesheet import or global CSS rules. Its colours can be customized through `--jamstacks-toggle-background`, `--jamstacks-toggle-dark-background`, `--jamstacks-toggle-border`, `--jamstacks-toggle-color`, `--jamstacks-toggle-dark-color
|
|
111
|
+
Apply the same pattern to all of the template's dark palette variables, including inherited `--jamstacks-*` component fallbacks. With Tailwind, configure its dark variant to use the `.dark` class rather than a media query. The toggle carries its own inline styles and needs no stylesheet import or global CSS rules. Its colours can be customized through `--jamstacks-toggle-background`, `--jamstacks-toggle-dark-background`, `--jamstacks-toggle-border`, `--jamstacks-toggle-color`, and `--jamstacks-toggle-dark-color`. The `style` prop overrides the button's defaults; `className` remains available for template selectors. It preserves the browser's native keyboard-focus outline. Theme changes are instantaneous, with no animation that needs reduced-motion handling.
|
|
112
112
|
|
|
113
113
|
## Theme API
|
|
114
114
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
export interface DarkModeToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'role' | 'aria-checked'> {
|
|
2
|
+
export interface DarkModeToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'role' | 'aria-checked' | 'aria-pressed'> {
|
|
3
3
|
}
|
|
4
|
-
/** A
|
|
4
|
+
/** A single tri-state light / dark / system button with encapsulated inline styles; no stylesheet import is needed. */
|
|
5
5
|
export declare const DarkModeToggle: import("react").ForwardRefExoticComponent<DarkModeToggleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,33 +2,44 @@
|
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useTheme } from '../theme/ThemeProvider.js';
|
|
5
|
+
const names = { light: 'Light', dark: 'Dark', system: 'System' };
|
|
5
6
|
const buttonStyle = {
|
|
6
|
-
display: 'inline-
|
|
7
|
-
|
|
7
|
+
display: 'inline-grid',
|
|
8
|
+
placeItems: 'center',
|
|
8
9
|
flexShrink: 0,
|
|
9
10
|
boxSizing: 'border-box',
|
|
10
|
-
width: '
|
|
11
|
-
height: '
|
|
12
|
-
padding:
|
|
11
|
+
width: '2rem',
|
|
12
|
+
height: '2rem',
|
|
13
|
+
padding: 0,
|
|
13
14
|
border: '1px solid var(--jamstacks-toggle-border, #788579)',
|
|
14
15
|
borderRadius: 999,
|
|
15
16
|
outlineOffset: 3,
|
|
16
17
|
};
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
const iconStyle = { display: 'block', width: '1rem', height: '1rem' };
|
|
19
|
+
function deviceTheme() {
|
|
20
|
+
try {
|
|
21
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
return 'light';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Cycles through the three preferences so that the first click always changes the appearance:
|
|
29
|
+
* system → opposite of the device → same as the device → system.
|
|
30
|
+
*/
|
|
31
|
+
function nextTheme(theme, device) {
|
|
32
|
+
const opposite = device === 'dark' ? 'light' : 'dark';
|
|
33
|
+
if (theme === 'system')
|
|
34
|
+
return opposite;
|
|
35
|
+
return theme === opposite ? device : 'system';
|
|
36
|
+
}
|
|
37
|
+
/** A single tri-state light / dark / system button with encapsulated inline styles; no stylesheet import is needed. */
|
|
38
|
+
export const DarkModeToggle = forwardRef(function DarkModeToggle({ className, style, onClick, disabled, title, 'aria-label': label = 'Theme', ...props }, ref) {
|
|
39
|
+
const { theme, resolvedTheme, setTheme, mounted } = useTheme();
|
|
30
40
|
const isDark = resolvedTheme === 'dark';
|
|
31
41
|
const isDisabled = disabled || !mounted;
|
|
42
|
+
const name = `${label}: ${names[theme]}`;
|
|
32
43
|
return (_jsx("button", { ...props, ref: ref, type: "button", className: ['jamstacks-dark-mode-toggle', className].filter(Boolean).join(' '), style: {
|
|
33
44
|
...buttonStyle,
|
|
34
45
|
background: isDark ? 'var(--jamstacks-toggle-dark-background, #334a3c)' : 'var(--jamstacks-toggle-background, #e5e7eb)',
|
|
@@ -36,10 +47,11 @@ export const DarkModeToggle = forwardRef(function DarkModeToggle({ className, st
|
|
|
36
47
|
cursor: isDisabled ? 'default' : 'pointer',
|
|
37
48
|
opacity: isDisabled ? .55 : 1,
|
|
38
49
|
...style,
|
|
39
|
-
},
|
|
50
|
+
}, "aria-label": name, title: title ?? name, "data-theme-preference": theme, disabled: isDisabled, onClick: event => {
|
|
40
51
|
onClick?.(event);
|
|
41
52
|
if (!event.defaultPrevented)
|
|
42
|
-
setTheme(
|
|
43
|
-
}, children: _jsx("
|
|
53
|
+
setTheme(nextTheme(theme, theme === 'system' ? resolvedTheme : deviceTheme()));
|
|
54
|
+
}, children: _jsx("svg", { className: "jamstacks-dark-mode-toggle__icon", style: iconStyle, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", children: theme === 'dark' ? _jsx("path", { d: "M20.5 13A8.5 8.5 0 0 1 11 3.5 8.5 8.5 0 1 0 20.5 13Z" })
|
|
55
|
+
: theme === 'light' ? _jsxs(_Fragment, { children: [_jsx("circle", { cx: "12", cy: "12", r: "4" }), _jsx("path", { d: "M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5" })] }) : _jsxs(_Fragment, { children: [_jsx("rect", { x: "3", y: "4", width: "18", height: "12", rx: "2" }), _jsx("path", { d: "M8 20h8m-4-4v4" })] }) }) }));
|
|
44
56
|
});
|
|
45
57
|
//# sourceMappingURL=DarkModeToggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeToggle.js","sourceRoot":"","sources":["../../src/components/DarkModeToggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"DarkModeToggle.js","sourceRoot":"","sources":["../../src/components/DarkModeToggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKrD,MAAM,KAAK,GAA0B,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAExF,MAAM,WAAW,GAAkB;IACjC,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,mDAAmD;IAC3D,YAAY,EAAE,GAAG;IACjB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,SAAS,GAAkB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAErF,SAAS,WAAW;IAClB,IAAI,CAAC;QAAC,OAAO,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CA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gBAAgB,GAAG,IAC1B,GACD,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ButtonHTMLAttributes, CSSProperties } from 'react';\nimport { useTheme } from '../theme/ThemeProvider.js';\nimport type { ResolvedTheme, Theme } from '../theme/types.js';\n\nexport interface DarkModeToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'role' | 'aria-checked' | 'aria-pressed'> {}\n\nconst names: Record<Theme, string> = { light: 'Light', dark: 'Dark', system: 'System' };\n\nconst buttonStyle: CSSProperties = {\n display: 'inline-grid',\n placeItems: 'center',\n flexShrink: 0,\n boxSizing: 'border-box',\n width: '2rem',\n height: '2rem',\n padding: 0,\n border: '1px solid var(--jamstacks-toggle-border, #788579)',\n borderRadius: 999,\n outlineOffset: 3,\n};\n\nconst iconStyle: CSSProperties = { display: 'block', width: '1rem', height: '1rem' };\n\nfunction deviceTheme(): ResolvedTheme {\n try { return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; } catch { return 'light'; }\n}\n\n/**\n * Cycles through the three preferences so that the first click always changes the appearance:\n * system → opposite of the device → same as the device → system.\n */\nfunction nextTheme(theme: Theme, device: ResolvedTheme): Theme {\n const opposite: ResolvedTheme = device === 'dark' ? 'light' : 'dark';\n if (theme === 'system') return opposite;\n return theme === opposite ? device : 'system';\n}\n\n/** A single tri-state light / dark / system button with encapsulated inline styles; no stylesheet import is needed. */\nexport const DarkModeToggle = forwardRef<HTMLButtonElement, DarkModeToggleProps>(function DarkModeToggle(\n { className, style, onClick, disabled, title, 'aria-label': label = 'Theme', ...props }, ref,\n) {\n const { theme, resolvedTheme, setTheme, mounted } = useTheme();\n const isDark = resolvedTheme === 'dark';\n const isDisabled = disabled || !mounted;\n const name = `${label}: ${names[theme]}`;\n return (\n <button\n {...props}\n ref={ref}\n type=\"button\"\n className={['jamstacks-dark-mode-toggle', className].filter(Boolean).join(' ')}\n style={{\n ...buttonStyle,\n background: isDark ? 'var(--jamstacks-toggle-dark-background, #334a3c)' : 'var(--jamstacks-toggle-background, #e5e7eb)',\n color: isDark ? 'var(--jamstacks-toggle-dark-color, #f3f4f6)' : 'var(--jamstacks-toggle-color, #243c2d)',\n cursor: isDisabled ? 'default' : 'pointer',\n opacity: isDisabled ? .55 : 1,\n ...style,\n }}\n aria-label={name}\n title={title ?? name}\n data-theme-preference={theme}\n disabled={isDisabled}\n onClick={event => {\n onClick?.(event);\n if (!event.defaultPrevented) setTheme(nextTheme(theme, theme === 'system' ? resolvedTheme : deviceTheme()));\n }}\n >\n <svg className=\"jamstacks-dark-mode-toggle__icon\" style={iconStyle} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\"\n strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n {theme === 'dark' ? <path d=\"M20.5 13A8.5 8.5 0 0 1 11 3.5 8.5 8.5 0 1 0 20.5 13Z\" />\n : theme === 'light' ? <>\n <circle cx=\"12\" cy=\"12\" r=\"4\" />\n <path d=\"M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5\" />\n </> : <>\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"12\" rx=\"2\" />\n <path d=\"M8 20h8m-4-4v4\" />\n </>}\n </svg>\n </button>\n );\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamstacks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared React components and theme utilities for Jamstacks templates.",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"repository": {
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ServiceStack/jamstacks-react.git"
|
|
10
|
+
},
|
|
8
11
|
"homepage": "https://github.com/ServiceStack/jamstacks-react#readme",
|
|
9
|
-
"bugs": {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ServiceStack/jamstacks-react/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"jamstacks",
|
|
17
|
+
"react",
|
|
18
|
+
"components",
|
|
19
|
+
"dark-mode",
|
|
20
|
+
"nextjs"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
12
25
|
"main": "./dist/index.js",
|
|
13
26
|
"module": "./dist/index.js",
|
|
14
27
|
"types": "./dist/index.d.ts",
|
|
15
28
|
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./server": {
|
|
35
|
+
"types": "./dist/server.d.ts",
|
|
36
|
+
"import": "./dist/server.js",
|
|
37
|
+
"default": "./dist/server.js"
|
|
38
|
+
},
|
|
18
39
|
"./package.json": "./package.json"
|
|
19
40
|
},
|
|
20
41
|
"sideEffects": false,
|
|
@@ -31,7 +52,10 @@
|
|
|
31
52
|
"prepare": "npm run build",
|
|
32
53
|
"prepack": "npm run build"
|
|
33
54
|
},
|
|
34
|
-
"peerDependencies": {
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
57
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
58
|
+
},
|
|
35
59
|
"devDependencies": {
|
|
36
60
|
"@playwright/test": "1.65.1",
|
|
37
61
|
"@types/node": "24.19.2",
|
|
@@ -42,6 +66,10 @@
|
|
|
42
66
|
"react-dom": "19.3.1",
|
|
43
67
|
"typescript": "7.0.2"
|
|
44
68
|
},
|
|
45
|
-
"engines": {
|
|
46
|
-
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=22"
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"access": "public"
|
|
74
|
+
}
|
|
47
75
|
}
|