@nswds/app 1.88.0 → 1.89.0
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/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17557,7 +17557,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
17557
17557
|
|
|
17558
17558
|
// package.json
|
|
17559
17559
|
var package_default = {
|
|
17560
|
-
version: "1.
|
|
17560
|
+
version: "1.88.0"};
|
|
17561
17561
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
17562
17562
|
function flattenText(nodes) {
|
|
17563
17563
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -30618,8 +30618,9 @@ function ThemeColorPaletteContent(props) {
|
|
|
30618
30618
|
] }),
|
|
30619
30619
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-12", children: currentColorPalette.map((theme2) => {
|
|
30620
30620
|
const baseKey = theme2.name === "Primary" ? primaryColor : theme2.name === "Accent" ? accentColor : "grey";
|
|
30621
|
+
const headingId = theme2.name.toLowerCase().trim().replace(/\s+/g, "-");
|
|
30621
30622
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
30622
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-semibold", children: theme2.name }),
|
|
30623
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { id: headingId, className: "text-2xl font-semibold", children: theme2.name }),
|
|
30623
30624
|
/* @__PURE__ */ jsxRuntime.jsx(BaseColorSwatches, { baseColors: baseColors[themeCategory][baseKey], format }),
|
|
30624
30625
|
/* @__PURE__ */ jsxRuntime.jsx(ColourScale, { colorsToUse: theme2.colors }),
|
|
30625
30626
|
/* @__PURE__ */ jsxRuntime.jsx(ColorSwatches, { theme: theme2.colors, format, viewMode })
|