kaze-design-system 0.2.0 → 0.2.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/components.css
CHANGED
|
@@ -3440,27 +3440,18 @@
|
|
|
3440
3440
|
|
|
3441
3441
|
.app-layout__main {
|
|
3442
3442
|
flex: 1;
|
|
3443
|
-
|
|
3443
|
+
min-width: 0;
|
|
3444
3444
|
display: flex;
|
|
3445
3445
|
flex-direction: column;
|
|
3446
3446
|
}
|
|
3447
3447
|
|
|
3448
3448
|
.app-layout__content {
|
|
3449
3449
|
flex: 1;
|
|
3450
|
-
padding: var(--space-
|
|
3450
|
+
padding: var(--space-6);
|
|
3451
3451
|
max-width: var(--content-max-width);
|
|
3452
3452
|
width: 100%;
|
|
3453
3453
|
}
|
|
3454
3454
|
|
|
3455
|
-
@media (min-width: 768px) {
|
|
3456
|
-
.app-layout__main {
|
|
3457
|
-
margin-left: var(--sidebar-width);
|
|
3458
|
-
}
|
|
3459
|
-
.app-layout__content {
|
|
3460
|
-
padding: var(--space-6);
|
|
3461
|
-
}
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3464
3455
|
/* ── TopBar ──────────────────────────────────────────────── */
|
|
3465
3456
|
|
|
3466
3457
|
.top-bar {
|
|
@@ -3486,15 +3477,15 @@
|
|
|
3486
3477
|
|
|
3487
3478
|
.sidebar {
|
|
3488
3479
|
width: var(--sidebar-width);
|
|
3489
|
-
position:
|
|
3480
|
+
position: sticky;
|
|
3490
3481
|
top: 0;
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3482
|
+
height: 100dvh;
|
|
3483
|
+
flex-shrink: 0;
|
|
3484
|
+
overflow-y: auto;
|
|
3485
|
+
background-color: var(--color-bg);
|
|
3494
3486
|
border-right: 1px solid var(--color-border);
|
|
3495
|
-
display:
|
|
3487
|
+
display: flex;
|
|
3496
3488
|
flex-direction: column;
|
|
3497
|
-
z-index: var(--z-sticky);
|
|
3498
3489
|
padding: var(--space-5) var(--space-3);
|
|
3499
3490
|
}
|
|
3500
3491
|
|
|
@@ -3522,12 +3513,23 @@
|
|
|
3522
3513
|
border-top: 1px solid var(--color-border-subtle);
|
|
3523
3514
|
}
|
|
3524
3515
|
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3516
|
+
.sidebar__group-label {
|
|
3517
|
+
font-size: var(--font-size-2xs);
|
|
3518
|
+
font-weight: var(--font-weight-semibold);
|
|
3519
|
+
color: var(--color-fg-muted);
|
|
3520
|
+
padding: var(--space-4) var(--space-4) var(--space-1);
|
|
3521
|
+
letter-spacing: 0.03em;
|
|
3529
3522
|
}
|
|
3530
3523
|
|
|
3524
|
+
.sidebar__divider {
|
|
3525
|
+
height: 1px;
|
|
3526
|
+
background: var(--color-border);
|
|
3527
|
+
margin: var(--space-2) var(--space-4);
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
/* Sidebar is always visible (sticky in flex layout).
|
|
3531
|
+
Consumers can add their own @media rules to hide on mobile. */
|
|
3532
|
+
|
|
3531
3533
|
/* ── Logo ────────────────────────────────────────────────── */
|
|
3532
3534
|
|
|
3533
3535
|
.logo {
|
|
@@ -38,7 +38,37 @@ const NavItem = forwardRef(
|
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
NavItem.displayName = "NavItem";
|
|
41
|
+
const SidebarGroupLabel = forwardRef(
|
|
42
|
+
({ className, children, ...rest }, ref) => {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
className: cn("sidebar__group-label", className),
|
|
48
|
+
...rest,
|
|
49
|
+
children
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
55
|
+
const SidebarDivider = forwardRef(
|
|
56
|
+
({ className, ...rest }, ref) => {
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: cn("sidebar__divider", className),
|
|
62
|
+
role: "separator",
|
|
63
|
+
...rest
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
SidebarDivider.displayName = "SidebarDivider";
|
|
41
69
|
export {
|
|
42
70
|
NavItem,
|
|
43
|
-
Sidebar
|
|
71
|
+
Sidebar,
|
|
72
|
+
SidebarDivider,
|
|
73
|
+
SidebarGroupLabel
|
|
44
74
|
};
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { List, ListItem } from "./components/List/List.js";
|
|
|
33
33
|
import { Logo } from "./components/Logo/Logo.js";
|
|
34
34
|
import { Meter } from "./components/Meter/Meter.js";
|
|
35
35
|
import { Metric } from "./components/Metric/Metric.js";
|
|
36
|
-
import { NavItem, Sidebar } from "./components/Sidebar/Sidebar.js";
|
|
36
|
+
import { NavItem, Sidebar, SidebarDivider, SidebarGroupLabel } from "./components/Sidebar/Sidebar.js";
|
|
37
37
|
import { Navbar, NavbarLink, NavbarLinks } from "./components/Navbar/Navbar.js";
|
|
38
38
|
import { NumberField } from "./components/NumberField/NumberField.js";
|
|
39
39
|
import { Pagination } from "./components/Pagination/Pagination.js";
|
|
@@ -127,6 +127,8 @@ export {
|
|
|
127
127
|
SectionHeader,
|
|
128
128
|
Select,
|
|
129
129
|
Sidebar,
|
|
130
|
+
SidebarDivider,
|
|
131
|
+
SidebarGroupLabel,
|
|
130
132
|
Skeleton,
|
|
131
133
|
Sparkline,
|
|
132
134
|
SplitSection,
|
|
@@ -15,3 +15,10 @@ export interface NavItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
15
15
|
href?: string;
|
|
16
16
|
}
|
|
17
17
|
export declare const NavItem: import("react").ForwardRefExoticComponent<NavItemProps & import("react").RefAttributes<HTMLElement>>;
|
|
18
|
+
export interface SidebarGroupLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const SidebarGroupLabel: import("react").ForwardRefExoticComponent<SidebarGroupLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export interface SidebarDividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
}
|
|
24
|
+
export declare const SidebarDivider: import("react").ForwardRefExoticComponent<SidebarDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Sidebar, NavItem } from "./Sidebar";
|
|
2
|
-
export type { SidebarProps, NavItemProps } from "./Sidebar";
|
|
1
|
+
export { Sidebar, NavItem, SidebarGroupLabel, SidebarDivider } from "./Sidebar";
|
|
2
|
+
export type { SidebarProps, NavItemProps, SidebarGroupLabelProps, SidebarDividerProps } from "./Sidebar";
|
|
@@ -34,8 +34,8 @@ export { Dialog, DialogHeader, DialogTitle, DialogBody, DialogFooter, } from "./
|
|
|
34
34
|
export type { DialogProps, DialogHeaderProps, DialogTitleProps, DialogBodyProps, DialogFooterProps, } from "./Dialog";
|
|
35
35
|
export { Divider } from "./Divider";
|
|
36
36
|
export type { DividerProps } from "./Divider";
|
|
37
|
-
export { Sidebar, NavItem } from "./Sidebar";
|
|
38
|
-
export type { SidebarProps, NavItemProps } from "./Sidebar";
|
|
37
|
+
export { Sidebar, NavItem, SidebarGroupLabel, SidebarDivider } from "./Sidebar";
|
|
38
|
+
export type { SidebarProps, NavItemProps, SidebarGroupLabelProps, SidebarDividerProps } from "./Sidebar";
|
|
39
39
|
export { TopBar } from "./TopBar";
|
|
40
40
|
export type { TopBarProps } from "./TopBar";
|
|
41
41
|
export { AppLayout } from "./Layout";
|