@slashsuite/ui-react 0.16.4 → 0.17.0
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/MIGRATING.md +10 -0
- package/dist/AppShell.js +1 -1
- package/package.json +1 -1
package/MIGRATING.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Migrating @slashsuite/ui-react
|
|
2
2
|
|
|
3
|
+
## 0.16 to 0.17: the AppShell header is opaque
|
|
4
|
+
|
|
5
|
+
No app code has to change. `AppShell`'s sticky header drew `bg-white/95`, so with no theme the page
|
|
6
|
+
showed through it as it scrolled. It now draws `bg-neutral-50`, which is opaque, and is the `header`
|
|
7
|
+
role in `palette.json`. Every theme in `@slashsuite/themes` remaps the new class to the colour its header
|
|
8
|
+
already had, so a themed app looks the same.
|
|
9
|
+
|
|
10
|
+
- A theme of your own: rename its `.bg-white\/95` rule to `.bg-neutral-50`, keeping the colour.
|
|
11
|
+
- An app that remapped `bg-white/95` itself to make the header solid: drop that rule.
|
|
12
|
+
|
|
3
13
|
## 0.15 to 0.16: no text is under 14px
|
|
4
14
|
|
|
5
15
|
No code has to change. 16px stays the baseline, and 14px (`text-sm`) is now the smallest text any
|
package/dist/AppShell.js
CHANGED
|
@@ -71,7 +71,7 @@ function HeaderEnd({ controls, folded, afterMenuControls, children, }) {
|
|
|
71
71
|
}
|
|
72
72
|
/** The sticky header's box. */
|
|
73
73
|
function headerClass(hideChromeInPrint) {
|
|
74
|
-
return cx("group/shell sticky top-0 z-10 border-b border-slate-200 bg-
|
|
74
|
+
return cx("group/shell sticky top-0 z-10 border-b border-slate-200 bg-neutral-50 pt-[env(safe-area-inset-top)]", hideChromeInPrint && "print:hidden");
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* The sticky header: one row of slots in order, brand, the menu panel (`nav` and `menuControls`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashsuite/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "UISlash React components: primitives, typography roles and a safe Markdown renderer, written against Tailwind v4 utilities. Pair with a theme from @slashsuite/themes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|