@nswds/app 1.88.0 → 1.89.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/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 +2 -2
package/dist/index.js
CHANGED
|
@@ -17503,7 +17503,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
17503
17503
|
|
|
17504
17504
|
// package.json
|
|
17505
17505
|
var package_default = {
|
|
17506
|
-
version: "1.
|
|
17506
|
+
version: "1.88.0"};
|
|
17507
17507
|
var SluggerContext = React5__default.createContext(null);
|
|
17508
17508
|
function flattenText(nodes) {
|
|
17509
17509
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -30564,8 +30564,9 @@ function ThemeColorPaletteContent(props) {
|
|
|
30564
30564
|
] }),
|
|
30565
30565
|
/* @__PURE__ */ jsx("div", { className: "space-y-12", children: currentColorPalette.map((theme2) => {
|
|
30566
30566
|
const baseKey = theme2.name === "Primary" ? primaryColor : theme2.name === "Accent" ? accentColor : "grey";
|
|
30567
|
+
const headingId = theme2.name.toLowerCase().trim().replace(/\s+/g, "-");
|
|
30567
30568
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
30568
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold", children: theme2.name }),
|
|
30569
|
+
/* @__PURE__ */ jsx("h2", { id: headingId, className: "text-2xl font-semibold", children: theme2.name }),
|
|
30569
30570
|
/* @__PURE__ */ jsx(BaseColorSwatches, { baseColors: baseColors[themeCategory][baseKey], format }),
|
|
30570
30571
|
/* @__PURE__ */ jsx(ColourScale, { colorsToUse: theme2.colors }),
|
|
30571
30572
|
/* @__PURE__ */ jsx(ColorSwatches, { theme: theme2.colors, format, viewMode })
|