@nswds/app 5.0.0 → 5.0.2

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 CHANGED
@@ -10176,7 +10176,13 @@ function ToggleViewButtons({ onSelect }) {
10176
10176
  { name: "tablet", title: "Toggle tablet view", icon: Icons.tablet },
10177
10177
  { name: "mobile", title: "Toggle mobile view", icon: Icons.smartphone }
10178
10178
  ];
10179
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden items-center justify-center space-x-2 sm:flex", children: views.map((v) => /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(Tooltip5, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button2, { onClick: () => onSelect(v.name), color: "light", variant: "outline", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(v.icon, {}) }) }) }) }, v.name)) });
10179
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden items-center justify-center space-x-2 sm:flex", children: views.map((v) => /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip5, { children: [
10180
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button2, { onClick: () => onSelect(v.name), color: "light", variant: "outline", size: "icon", children: [
10181
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: v.title }),
10182
+ /* @__PURE__ */ jsxRuntime.jsx(v.icon, {})
10183
+ ] }) }),
10184
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: v.title }) })
10185
+ ] }) }, v.name)) });
10180
10186
  }
10181
10187
  function ThemeSelectorDropDown({
10182
10188
  themeCategory,
@@ -10287,7 +10293,7 @@ function ToggleRTLButton({ isRTL, onClick }) {
10287
10293
  ]
10288
10294
  }
10289
10295
  ) }),
10290
- /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Add to library" }) })
10296
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: title }) })
10291
10297
  ] }) });
10292
10298
  }
10293
10299
  function ToggleDarkModeButton({
@@ -10304,7 +10310,7 @@ function ToggleDarkModeButton({
10304
10310
  /* @__PURE__ */ jsxRuntime.jsx(Icons.dark_mode, { className: "dark:hidden" })
10305
10311
  ] })
10306
10312
  ] }) }),
10307
- /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Add to library" }) })
10313
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: title }) })
10308
10314
  ] }) });
10309
10315
  }
10310
10316
  function CopyToClipboardButton({
@@ -14482,7 +14488,7 @@ function FormatToggle({ format, setFormat }) {
14482
14488
 
14483
14489
  // package.json
14484
14490
  var package_default = {
14485
- version: "5.0.0"};
14491
+ version: "5.0.2"};
14486
14492
  var SluggerContext = React5__namespace.default.createContext(null);
14487
14493
  function flattenText(nodes) {
14488
14494
  if (nodes == null || typeof nodes === "boolean") return "";