@nswds/app 1.83.3 → 1.83.5

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.js CHANGED
@@ -14400,13 +14400,13 @@ function CodeDemoContent({ data, showCode = true, controls = defaultControls })
14400
14400
  }
14401
14401
  }, [themeCategory, primaryColor, accentColor, greyColor, isThemeInitialized]);
14402
14402
  return /* @__PURE__ */ jsxs("div", { className: "mt-8", children: [
14403
- /* @__PURE__ */ jsx("div", { className: "w-full rounded-t-xl border border-grey-200 bg-grey-50 p-4 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-[auto,1fr,auto] sm:items-center", children: [
14403
+ /* @__PURE__ */ jsx("div", { className: "w-full rounded-t-xl border border-grey-200 bg-grey-50 p-4 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxs("div", { className: "relative flex w-full items-center", children: [
14404
14404
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
14405
14405
  data.githubSlug && /* @__PURE__ */ jsx(EditOnGithubButton, { githubSlug: data.githubSlug }),
14406
14406
  data.figmaSlug && /* @__PURE__ */ jsx(OpenInFigmaButton, { figmaSlug: data.figmaSlug })
14407
14407
  ] }),
14408
- /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: controls.viewToggle && /* @__PURE__ */ jsx(ToggleViewButtons, { onSelect: setView }) }),
14409
- /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-3", children: [
14408
+ /* @__PURE__ */ jsx("div", { className: "absolute left-1/2 flex -translate-x-1/2 items-center", children: controls.viewToggle && /* @__PURE__ */ jsx(ToggleViewButtons, { onSelect: setView }) }),
14409
+ /* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-3", children: [
14410
14410
  controls.themeSelector && /* @__PURE__ */ jsx(
14411
14411
  ThemeSelectorDropDown,
14412
14412
  {
@@ -17475,7 +17475,7 @@ function FormatToggle({ format, setFormat }) {
17475
17475
 
17476
17476
  // package.json
17477
17477
  var package_default = {
17478
- version: "1.83.2"};
17478
+ version: "1.83.4"};
17479
17479
  var SluggerContext = React5__default.createContext(null);
17480
17480
  function flattenText(nodes) {
17481
17481
  if (nodes == null || typeof nodes === "boolean") return "";