@nswds/app 4.0.2 → 4.0.3
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/globals.css +4 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -0
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
package/dist/globals.css
CHANGED
|
@@ -4783,6 +4783,10 @@
|
|
|
4783
4783
|
.outline-transparent {
|
|
4784
4784
|
outline-color: transparent;
|
|
4785
4785
|
}
|
|
4786
|
+
.invert {
|
|
4787
|
+
--tw-invert: invert(100%);
|
|
4788
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4789
|
+
}
|
|
4786
4790
|
.filter {
|
|
4787
4791
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4788
4792
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -13722,6 +13722,11 @@ function DrawerDescription({
|
|
|
13722
13722
|
}
|
|
13723
13723
|
function DynamicFavicon({ lightModeFavicon, darkModeFavicon }) {
|
|
13724
13724
|
React5.useEffect(() => {
|
|
13725
|
+
if (process.env.NODE_ENV !== "production") {
|
|
13726
|
+
console.warn(
|
|
13727
|
+
"[@nswds/app] DynamicFavicon is deprecated and will be removed in the next major. Use the app/ icon file conventions (favicon.ico, icon.svg, apple-icon.png) and put @media (prefers-color-scheme: dark) inside icon.svg \u2014 the browser then swaps the icon natively, before hydration, with no second asset."
|
|
13728
|
+
);
|
|
13729
|
+
}
|
|
13725
13730
|
const updateFavicon = () => {
|
|
13726
13731
|
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
13727
13732
|
const favicon = document.querySelector("link[rel='icon']");
|
|
@@ -14487,7 +14492,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14487
14492
|
|
|
14488
14493
|
// package.json
|
|
14489
14494
|
var package_default = {
|
|
14490
|
-
version: "4.0.
|
|
14495
|
+
version: "4.0.3"};
|
|
14491
14496
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
14492
14497
|
function flattenText(nodes) {
|
|
14493
14498
|
if (nodes == null || typeof nodes === "boolean") return "";
|