@ctrl-ui/react 0.8.15 → 0.8.17
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/styles/theme.css
CHANGED
|
@@ -462,10 +462,17 @@
|
|
|
462
462
|
--radius-lg: var(--radius-lg);
|
|
463
463
|
--radius-xl: var(--radius-xl);
|
|
464
464
|
--radius-2xl: var(--radius-2xl);
|
|
465
|
+
--radius-control: var(--radius-control);
|
|
465
466
|
--radius-field: var(--radius-field);
|
|
466
467
|
--radius-panel: var(--radius-panel);
|
|
467
468
|
--radius-scene: var(--radius-scene);
|
|
468
469
|
|
|
470
|
+
--spacing-control: var(--control-h);
|
|
471
|
+
--spacing-control-xs: var(--control-h-xs);
|
|
472
|
+
--spacing-control-sm: var(--control-h-sm);
|
|
473
|
+
--spacing-control-md: var(--control-h-md);
|
|
474
|
+
--spacing-control-lg: var(--control-h-lg);
|
|
475
|
+
|
|
469
476
|
--text-micro: var(--text-micro);
|
|
470
477
|
--text-caption: var(--text-caption);
|
|
471
478
|
--text-label: var(--text-label);
|
|
@@ -642,10 +649,6 @@
|
|
|
642
649
|
background-color: var(--background);
|
|
643
650
|
}
|
|
644
651
|
|
|
645
|
-
:root:has([data-app-shell]:not([data-scroll="page"])) {
|
|
646
|
-
overscroll-behavior: none;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
652
|
:root:has([data-control-family="sidebar"][data-slot="wrapper"] [data-control-family="sidebar"][data-variant="inset"][data-state]) {
|
|
650
653
|
background-color: var(--sidebar);
|
|
651
654
|
}
|
package/dist/ui/input-otp.js
CHANGED
|
@@ -19,7 +19,7 @@ function InputOTPSlot({ index, length, className, ...props }) {
|
|
|
19
19
|
"data-control": "true",
|
|
20
20
|
"aria-label": slotAriaLabel(index, length),
|
|
21
21
|
"aria-labelledby": index === 0 ? labelId : void 0,
|
|
22
|
-
className: cn("relative flex size-
|
|
22
|
+
className: cn("relative flex size-control-md items-center justify-center", className),
|
|
23
23
|
...props
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -91,7 +91,7 @@ function NavigationMenuLink({ variant = "default", className, active, children,
|
|
|
91
91
|
"data-popup-part": "navigation-link",
|
|
92
92
|
"data-variant": variant,
|
|
93
93
|
active,
|
|
94
|
-
className: cn("block select-none", variant === "compact" && "inline-flex h-
|
|
94
|
+
className: cn("block select-none", variant === "compact" && "inline-flex h-control-sm items-center px-[calc(var(--padding-x)*0.75)]", className),
|
|
95
95
|
...props,
|
|
96
96
|
children
|
|
97
97
|
});
|
package/dist/ui/pagination.js
CHANGED
|
@@ -30,7 +30,7 @@ function PaginationItem({ className, ...props }) {
|
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
const paginationLinkChrome = "inline-flex h-
|
|
33
|
+
const paginationLinkChrome = "inline-flex h-control-sm min-w-control-sm cursor-pointer select-none items-center justify-center whitespace-nowrap aria-disabled:pointer-events-none [&>svg]:size-4 [&>svg]:shrink-0";
|
|
34
34
|
function PaginationLink({ isActive = false, disabled = false, href, className, ...props }) {
|
|
35
35
|
return /* @__PURE__ */ jsx("a", {
|
|
36
36
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -71,7 +71,7 @@ function PaginationEllipsis({ label = "More pages", className, ...props }) {
|
|
|
71
71
|
"data-control-ui": "pagination",
|
|
72
72
|
"data-control-family": "pagination",
|
|
73
73
|
"data-slot": "ellipsis",
|
|
74
|
-
className: cn("flex h-
|
|
74
|
+
className: cn("flex h-control-sm min-w-control-sm items-center justify-center [&>svg]:size-4", className),
|
|
75
75
|
...props,
|
|
76
76
|
children: [/* @__PURE__ */ jsx(MoreHorizontal, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
|
|
77
77
|
className: "sr-only",
|
package/dist/ui/sidebar-menu.js
CHANGED
|
@@ -57,7 +57,7 @@ function SidebarGroupLabel({ className, render, children, ...props }) {
|
|
|
57
57
|
"data-control-ui": "sidebar",
|
|
58
58
|
"data-control-family": "sidebar",
|
|
59
59
|
"data-slot": "group-label",
|
|
60
|
-
className: cn("flex h-
|
|
60
|
+
className: cn("flex h-control-sm shrink-0 items-center [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:invisible group-data-[collapsible=icon]:-mt-control-sm group-data-[collapsible=icon]:opacity-0", className),
|
|
61
61
|
children
|
|
62
62
|
}
|
|
63
63
|
});
|