@nswds/app 5.0.0 → 5.0.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 +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10123,7 +10123,13 @@ function ToggleViewButtons({ onSelect }) {
|
|
|
10123
10123
|
{ name: "tablet", title: "Toggle tablet view", icon: Icons.tablet },
|
|
10124
10124
|
{ name: "mobile", title: "Toggle mobile view", icon: Icons.smartphone }
|
|
10125
10125
|
];
|
|
10126
|
-
return /* @__PURE__ */ jsx("div", { className: "hidden items-center justify-center space-x-2 sm:flex", children: views.map((v) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */
|
|
10126
|
+
return /* @__PURE__ */ jsx("div", { className: "hidden items-center justify-center space-x-2 sm:flex", children: views.map((v) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip5, { children: [
|
|
10127
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button2, { onClick: () => onSelect(v.name), color: "light", variant: "outline", size: "icon", children: [
|
|
10128
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: v.title }),
|
|
10129
|
+
/* @__PURE__ */ jsx(v.icon, {})
|
|
10130
|
+
] }) }),
|
|
10131
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: v.title }) })
|
|
10132
|
+
] }) }, v.name)) });
|
|
10127
10133
|
}
|
|
10128
10134
|
function ThemeSelectorDropDown({
|
|
10129
10135
|
themeCategory,
|
|
@@ -10234,7 +10240,7 @@ function ToggleRTLButton({ isRTL, onClick }) {
|
|
|
10234
10240
|
]
|
|
10235
10241
|
}
|
|
10236
10242
|
) }),
|
|
10237
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children:
|
|
10243
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: title }) })
|
|
10238
10244
|
] }) });
|
|
10239
10245
|
}
|
|
10240
10246
|
function ToggleDarkModeButton({
|
|
@@ -10251,7 +10257,7 @@ function ToggleDarkModeButton({
|
|
|
10251
10257
|
/* @__PURE__ */ jsx(Icons.dark_mode, { className: "dark:hidden" })
|
|
10252
10258
|
] })
|
|
10253
10259
|
] }) }),
|
|
10254
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children:
|
|
10260
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: title }) })
|
|
10255
10261
|
] }) });
|
|
10256
10262
|
}
|
|
10257
10263
|
function CopyToClipboardButton({
|
|
@@ -14429,7 +14435,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14429
14435
|
|
|
14430
14436
|
// package.json
|
|
14431
14437
|
var package_default = {
|
|
14432
|
-
version: "5.0.
|
|
14438
|
+
version: "5.0.1"};
|
|
14433
14439
|
var SluggerContext = React5__default.createContext(null);
|
|
14434
14440
|
function flattenText(nodes) {
|
|
14435
14441
|
if (nodes == null || typeof nodes === "boolean") return "";
|