@stevederico/skateboard-ui 2.11.0 → 2.12.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/CHANGELOG.md +8 -0
- package/layout/Layout.jsx +4 -1
- package/package.json +1 -1
- package/shadcn/ui/button.jsx +1 -1
- package/styles.css +10 -0
package/CHANGELOG.md
CHANGED
package/layout/Layout.jsx
CHANGED
|
@@ -40,6 +40,9 @@ export default function Layout({ children }) {
|
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<div className="min-h-screen flex flex-col pt-[env(safe-area-inset-top)] pb-[calc(5rem+env(safe-area-inset-bottom))] md:pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] pr-[env(safe-area-inset-right)]">
|
|
43
|
+
<a href="#main" className="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-background focus:text-foreground focus:rounded-md focus:ring-2 focus:ring-ring">
|
|
44
|
+
Skip to content
|
|
45
|
+
</a>
|
|
43
46
|
<SidebarProvider
|
|
44
47
|
defaultOpen={!constants.sidebarCollapsed}
|
|
45
48
|
style={{
|
|
@@ -47,7 +50,7 @@ export default function Layout({ children }) {
|
|
|
47
50
|
'--header-height': '3.5rem',
|
|
48
51
|
}}>
|
|
49
52
|
{showSidebar && <Sidebar variant="inset" />}
|
|
50
|
-
<SidebarInset className={`border border-border/50 ${constants.hideSidebarInsetRounding ? "md:peer-data-[variant=inset]:rounded-none" : ""}`}>
|
|
53
|
+
<SidebarInset id="main" className={`border border-border/50 ${constants.hideSidebarInsetRounding ? "md:peer-data-[variant=inset]:rounded-none" : ""}`}>
|
|
51
54
|
<Outlet />
|
|
52
55
|
</SidebarInset>
|
|
53
56
|
</SidebarProvider>
|
package/package.json
CHANGED
package/shadcn/ui/button.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";
|
|
|
4
4
|
import { cn } from "../lib/utils.js"
|
|
5
5
|
|
|
6
6
|
const buttonVariants = cva(
|
|
7
|
-
"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",
|
|
7
|
+
"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none active:scale-[0.98]",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
package/styles.css
CHANGED
|
@@ -209,6 +209,16 @@
|
|
|
209
209
|
code, pre, kbd {
|
|
210
210
|
font-family: 'Geist Mono', ui-monospace, monospace;
|
|
211
211
|
}
|
|
212
|
+
::selection {
|
|
213
|
+
background-color: color-mix(in oklch, var(--color-app) 20%, transparent);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@layer utilities {
|
|
218
|
+
.content-auto {
|
|
219
|
+
content-visibility: auto;
|
|
220
|
+
contain-intrinsic-size: auto 200px;
|
|
221
|
+
}
|
|
212
222
|
}
|
|
213
223
|
|
|
214
224
|
#root {
|