orbital-ds 0.30.0 → 0.35.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/AGENTS.md +1 -1
- package/components.manifest.json +3216 -3160
- package/dist/hooks/use-ds-messages.d.ts +39 -0
- package/dist/lib/i18n.d.ts +39 -0
- package/dist/lib/i18n.js +117 -0
- package/dist/lib/template-syntax.d.ts +22 -0
- package/dist/lib/template-syntax.js +66 -0
- package/dist/motion.css +146 -0
- package/dist/styles.css +1699 -0
- package/dist/themes/chocolate.css +259 -0
- package/dist/themes/chocolate.fonts.css +2 -0
- package/dist/themes/chocolate.guide.md +30 -0
- package/dist/themes/chocolate.meta.json +61 -0
- package/dist/themes/chocolate.scoped.css +259 -0
- package/dist/themes/chocolate.tokens.json +49 -0
- package/dist/themes/fractalia.css +556 -0
- package/dist/themes/fractalia.fonts.css +3 -0
- package/dist/themes/fractalia.guide.md +86 -0
- package/dist/themes/fractalia.meta.json +112 -0
- package/dist/themes/fractalia.scoped.css +556 -0
- package/dist/themes/fractalia.tokens.json +39 -0
- package/dist/themes/friendly.css +375 -0
- package/dist/themes/friendly.fonts.css +2 -0
- package/dist/themes/friendly.guide.md +38 -0
- package/dist/themes/friendly.meta.json +82 -0
- package/dist/themes/friendly.scoped.css +375 -0
- package/dist/themes/friendly.tokens.json +45 -0
- package/dist/themes/lagoon.css +359 -0
- package/dist/themes/lagoon.fonts.css +2 -0
- package/dist/themes/lagoon.guide.md +47 -0
- package/dist/themes/lagoon.meta.json +85 -0
- package/dist/themes/lagoon.scoped.css +359 -0
- package/dist/themes/lagoon.tokens.json +49 -0
- package/dist/themes/liquid.css +510 -0
- package/dist/themes/liquid.fonts.css +7 -0
- package/dist/themes/liquid.guide.md +82 -0
- package/dist/themes/liquid.meta.json +134 -0
- package/dist/themes/liquid.scoped.css +510 -0
- package/dist/themes/liquid.tokens.json +47 -0
- package/dist/themes/matcha.css +259 -0
- package/dist/themes/matcha.fonts.css +2 -0
- package/dist/themes/matcha.guide.md +30 -0
- package/dist/themes/matcha.meta.json +61 -0
- package/dist/themes/matcha.scoped.css +259 -0
- package/dist/themes/matcha.tokens.json +49 -0
- package/dist/themes/qratia.css +264 -0
- package/dist/themes/qratia.fonts.css +2 -0
- package/dist/themes/qratia.guide.md +34 -0
- package/dist/themes/qratia.meta.json +49 -0
- package/dist/themes/qratia.scoped.css +264 -0
- package/dist/themes/qratia.tokens.json +49 -0
- package/dist/themes/stone.css +263 -0
- package/dist/themes/stone.fonts.css +2 -0
- package/dist/themes/stone.guide.md +30 -0
- package/dist/themes/stone.meta.json +47 -0
- package/dist/themes/stone.scoped.css +263 -0
- package/dist/themes/stone.tokens.json +49 -0
- package/dist/themes/tactile.css +596 -0
- package/dist/themes/tactile.fonts.css +3 -0
- package/dist/themes/tactile.guide.md +82 -0
- package/dist/themes/tactile.meta.json +182 -0
- package/dist/themes/tactile.scoped.css +596 -0
- package/dist/themes/tactile.tokens.json +42 -0
- package/dist/themes/twitter.css +364 -0
- package/dist/themes/twitter.fonts.css +6 -0
- package/dist/themes/twitter.guide.md +35 -0
- package/dist/themes/twitter.meta.json +90 -0
- package/dist/themes/twitter.scoped.css +364 -0
- package/dist/themes/twitter.tokens.json +45 -0
- package/dist/themes/y2k.css +259 -0
- package/dist/themes/y2k.fonts.css +2 -0
- package/dist/themes/y2k.guide.md +30 -0
- package/dist/themes/y2k.meta.json +59 -0
- package/dist/themes/y2k.scoped.css +259 -0
- package/dist/themes/y2k.tokens.json +49 -0
- package/dist/themes/zyro.css +442 -0
- package/dist/themes/zyro.fonts.css +2 -0
- package/dist/themes/zyro.guide.md +33 -0
- package/dist/themes/zyro.meta.json +74 -0
- package/dist/themes/zyro.scoped.css +442 -0
- package/dist/themes/zyro.tokens.json +46 -0
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.js +2 -2
- package/dist/ui/attachment.js +1 -1
- package/dist/ui/auth-form.js +4 -4
- package/dist/ui/auth-layout.d.ts +3 -1
- package/dist/ui/auth-layout.js +7 -4
- package/dist/ui/auth-parts.js +4 -4
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/ayuda.js +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +1 -1
- package/dist/ui/bottom-nav.js +1 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/bubble.d.ts +1 -1
- package/dist/ui/bubble.js +3 -3
- package/dist/ui/button-group.js +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +4 -4
- package/dist/ui/calendar.js +6 -6
- package/dist/ui/carousel.js +4 -4
- package/dist/ui/choice-card.js +1 -1
- package/dist/ui/combobox.js +4 -4
- package/dist/ui/command.js +2 -2
- package/dist/ui/content-card.js +2 -2
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/data-table.d.ts +13 -3
- package/dist/ui/data-table.js +164 -71
- package/dist/ui/date-picker.js +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/drawer.js +5 -5
- package/dist/ui/dropdown-menu.js +9 -9
- package/dist/ui/field.js +3 -3
- package/dist/ui/heatmap-grid.js +2 -2
- package/dist/ui/input-group.js +3 -3
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/instruction-editor.d.ts +51 -0
- package/dist/ui/instruction-editor.js +263 -0
- package/dist/ui/item.d.ts +1 -1
- package/dist/ui/item.js +1 -1
- package/dist/ui/marker.d.ts +1 -1
- package/dist/ui/marker.js +2 -2
- package/dist/ui/menubar.js +8 -8
- package/dist/ui/mfa-challenge.js +3 -3
- package/dist/ui/mfa-setup.js +1 -1
- package/dist/ui/navigation-menu.js +2 -2
- package/dist/ui/oauth-consent.js +3 -3
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/panel.js +1 -0
- package/dist/ui/passkey-list.js +1 -1
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/session-timeout.js +1 -1
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/sidebar.js +7 -7
- package/dist/ui/sign-out-dialog.js +1 -1
- package/dist/ui/sparkline.d.ts +1 -1
- package/dist/ui/status-badge.d.ts +2 -2
- package/dist/ui/switch.js +1 -1
- package/dist/ui/table.js +2 -2
- package/dist/ui/tabs.d.ts +1 -1
- package/dist/ui/tabs.js +2 -2
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +3 -3
- package/dist/ui/tooltip.js +2 -2
- package/docs/CONTRACT.md +224 -224
- package/package.json +218 -188
- package/scripts/brand-core.mjs +20 -1
- package/scripts/cli.mjs +457 -457
- package/scripts/doctor.mjs +2 -0
- package/scripts/init.mjs +1 -1
- package/scripts/manifest.mjs +100 -100
package/dist/ui/avatar.js
CHANGED
|
@@ -63,7 +63,7 @@ function AvatarBadge({ className, ...props }) {
|
|
|
63
63
|
{
|
|
64
64
|
"data-slot": "avatar-badge",
|
|
65
65
|
className: cn(
|
|
66
|
-
"absolute
|
|
66
|
+
"absolute end-0 bottom-0 z-(--ds-z-raised) inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-(length:--ds-avatar-ring-w) ring-background select-none",
|
|
67
67
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
68
68
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
69
69
|
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
package/dist/ui/ayuda.js
CHANGED
|
@@ -17,7 +17,7 @@ function Ayuda({ children, etiqueta }) {
|
|
|
17
17
|
children: /* @__PURE__ */ jsx(CircleHelpIcon, { "aria-hidden": "true", className: "size-3.5" })
|
|
18
18
|
}
|
|
19
19
|
),
|
|
20
|
-
/* @__PURE__ */ jsx(PopoverContent, { "data-slot": "help-content", className: "w-72 text-sm font-normal", side: "top", children })
|
|
20
|
+
/* @__PURE__ */ jsx(PopoverContent, { "data-slot": "help-content", className: "w-72 text-sm font-(--ds-normal-weight)", side: "top", children })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
23
23
|
export {
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | "danger" | "link" | "outline" | "secondary" | "ghost" | "neutral" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
10
10
|
|
package/dist/ui/badge.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
5
|
const badgeVariants = cva(
|
|
6
|
-
"group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-badge border border-transparent px-(--ds-badge-px) py-(--ds-badge-py) text-xs font-(--ds-badge-weight) whitespace-nowrap transition-all duration-(--ds-motion-snap) focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) has-data-[icon=inline-end]:
|
|
6
|
+
"group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-badge border border-transparent px-(--ds-badge-px) py-(--ds-badge-py) text-xs font-(--ds-badge-weight) whitespace-nowrap transition-all duration-(--ds-motion-snap) focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(--ds-invalid-ring) [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
package/dist/ui/banner.js
CHANGED
|
@@ -73,7 +73,7 @@ function BannerActions({ className, ...props }) {
|
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
"data-slot": "banner-actions",
|
|
76
|
-
className: cn("
|
|
76
|
+
className: cn("ms-auto flex shrink-0 items-center gap-2", className),
|
|
77
77
|
...props
|
|
78
78
|
}
|
|
79
79
|
);
|
package/dist/ui/bottom-nav.js
CHANGED
|
@@ -81,7 +81,7 @@ function BottomNavBadge({ className, ...props }) {
|
|
|
81
81
|
{
|
|
82
82
|
"data-slot": "bottom-nav-badge",
|
|
83
83
|
className: cn(
|
|
84
|
-
"absolute -top-1 -end-1 flex min-w-2.5 h-2.5 items-center justify-center rounded-
|
|
84
|
+
"absolute -top-1 -end-1 flex min-w-2.5 h-2.5 items-center justify-center rounded-(--ds-radius-pill) bg-destructive px-1 text-(length:--ds-bottom-nav-label) leading-none font-(--ds-strong-weight) text-destructive-foreground not-empty:h-4 not-empty:min-w-4 ring-(length:--ds-avatar-ring-w) ring-(--ds-bottom-nav-bg)",
|
|
85
85
|
className
|
|
86
86
|
),
|
|
87
87
|
...props
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -67,7 +67,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
67
67
|
role: "link",
|
|
68
68
|
"aria-disabled": "true",
|
|
69
69
|
"aria-current": "page",
|
|
70
|
-
className: cn("font-normal text-foreground", className),
|
|
70
|
+
className: cn("font-(--ds-normal-weight) text-foreground", className),
|
|
71
71
|
...props
|
|
72
72
|
}
|
|
73
73
|
);
|
package/dist/ui/bubble.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
7
|
declare const bubbleVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
|
|
11
11
|
align?: "start" | "end";
|
package/dist/ui/bubble.js
CHANGED
|
@@ -59,7 +59,7 @@ function BubbleContent({
|
|
|
59
59
|
props: mergeProps(
|
|
60
60
|
{
|
|
61
61
|
className: cn(
|
|
62
|
-
"w-fit max-w-full min-w-0 overflow-hidden rounded-bubble border border-transparent px-(--ds-bubble-px) py-(--ds-bubble-py) text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-
|
|
62
|
+
"w-fit max-w-full min-w-0 overflow-hidden rounded-bubble border border-transparent px-(--ds-bubble-px) py-(--ds-bubble-py) text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:duration-(--ds-motion-snap) [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-(length:--ds-ring-width) [button,a]:focus-visible:ring-(--ds-ring-color)",
|
|
63
63
|
className
|
|
64
64
|
)
|
|
65
65
|
},
|
|
@@ -80,8 +80,8 @@ const bubbleReactionsVariants = cva(
|
|
|
80
80
|
bottom: "bottom-0 translate-y-3/4"
|
|
81
81
|
},
|
|
82
82
|
align: {
|
|
83
|
-
start: "
|
|
84
|
-
end: "
|
|
83
|
+
start: "start-3",
|
|
84
|
+
end: "end-3"
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
defaultVariants: {
|
package/dist/ui/button-group.js
CHANGED
|
@@ -9,7 +9,7 @@ const buttonGroupVariants = cva(
|
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
orientation: {
|
|
12
|
-
horizontal: "[&>[data-slot]:has(~[data-slot])]:rounded-
|
|
12
|
+
horizontal: "[&>[data-slot]:has(~[data-slot])]:rounded-e-none [&>[data-slot]~[data-slot]]:rounded-s-none [&>[data-slot]~[data-slot]]:border-s-0",
|
|
13
13
|
vertical: "flex-col [&>[data-slot]:has(~[data-slot])]:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"
|
|
14
14
|
}
|
|
15
15
|
},
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | "cta" | null | undefined;
|
|
8
8
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Button({ className, variant, size, render, nativeButton: _nativeButton, ...props }: useRender.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
package/dist/ui/button.js
CHANGED
|
@@ -16,10 +16,10 @@ const buttonVariants = cva(
|
|
|
16
16
|
link: "text-primary underline-offset-4 hover:underline disabled:bg-[color:var(--ds-button-disabled-bg,transparent)] disabled:text-[color:var(--ds-button-disabled-fg,var(--primary))]"
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
19
|
-
default: "h-(--ds-control-h-md) gap-1.5 px-(--ds-button-px-md) has-data-[icon=inline-end]:
|
|
20
|
-
xs: "h-(--ds-control-h-xs) gap-1 px-2.5 text-xs has-data-[icon=inline-end]:
|
|
21
|
-
sm: "h-(--ds-control-h-sm) gap-1 px-(--ds-button-px-sm) has-data-[icon=inline-end]:
|
|
22
|
-
lg: "h-(--ds-control-h-lg) gap-1.5 px-(--ds-button-px-lg) has-data-[icon=inline-end]:
|
|
19
|
+
default: "h-(--ds-control-h-md) gap-1.5 px-(--ds-button-px-md) has-data-[icon=inline-end]:pe-2.5 has-data-[icon=inline-start]:ps-2.5",
|
|
20
|
+
xs: "h-(--ds-control-h-xs) gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2 [&_svg:not([class*='size-'])]:size-3",
|
|
21
|
+
sm: "h-(--ds-control-h-sm) gap-1 px-(--ds-button-px-sm) has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
22
|
+
lg: "h-(--ds-control-h-lg) gap-1.5 px-(--ds-button-px-lg) has-data-[icon=inline-end]:pe-3 has-data-[icon=inline-start]:ps-3",
|
|
23
23
|
icon: "size-(--ds-control-h-md) rounded-button-icon",
|
|
24
24
|
"icon-xs": "size-(--ds-control-h-xs) rounded-button-icon [&_svg:not([class*='size-'])]:size-3",
|
|
25
25
|
"icon-sm": "size-(--ds-control-h-sm) rounded-button-icon",
|
package/dist/ui/calendar.js
CHANGED
|
@@ -84,7 +84,7 @@ function Calendar({
|
|
|
84
84
|
month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
|
|
85
85
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
86
86
|
weekday: cn(
|
|
87
|
-
"flex-1 rounded-(--cell-radius) text-xs font-normal text-muted-foreground select-none",
|
|
87
|
+
"flex-1 rounded-(--cell-radius) text-xs font-(--ds-normal-weight) text-muted-foreground select-none",
|
|
88
88
|
defaultClassNames.weekday
|
|
89
89
|
),
|
|
90
90
|
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
@@ -97,17 +97,17 @@ function Calendar({
|
|
|
97
97
|
defaultClassNames.week_number
|
|
98
98
|
),
|
|
99
99
|
day: cn(
|
|
100
|
-
"group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-
|
|
101
|
-
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-
|
|
100
|
+
"group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)",
|
|
101
|
+
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)",
|
|
102
102
|
defaultClassNames.day
|
|
103
103
|
),
|
|
104
104
|
range_start: cn(
|
|
105
|
-
"relative isolate z-0 rounded-
|
|
105
|
+
"relative isolate z-0 rounded-s-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:end-0 after:w-4 after:bg-muted",
|
|
106
106
|
defaultClassNames.range_start
|
|
107
107
|
),
|
|
108
108
|
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
109
109
|
range_end: cn(
|
|
110
|
-
"relative isolate z-0 rounded-
|
|
110
|
+
"relative isolate z-0 rounded-e-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:start-0 after:w-4 after:bg-muted",
|
|
111
111
|
defaultClassNames.range_end
|
|
112
112
|
),
|
|
113
113
|
today: cn(
|
|
@@ -207,7 +207,7 @@ function CalendarDayButton({
|
|
|
207
207
|
"data-range-end": modifiers.range_end,
|
|
208
208
|
"data-range-middle": modifiers.range_middle,
|
|
209
209
|
className: cn(
|
|
210
|
-
"relative isolate z-(--ds-z-raised) flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-(--ds-z-raised) group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-(length:--ds-ring-width) group-data-[focused=true]/day:ring-(--ds-ring-color) data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-
|
|
210
|
+
"relative isolate z-(--ds-z-raised) flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-(--ds-normal-weight) group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-(--ds-z-raised) group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-(length:--ds-ring-width) group-data-[focused=true]/day:ring-(--ds-ring-color) data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70",
|
|
211
211
|
defaultClassNames.day,
|
|
212
212
|
className
|
|
213
213
|
),
|
package/dist/ui/carousel.js
CHANGED
|
@@ -111,7 +111,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
111
111
|
{
|
|
112
112
|
className: cn(
|
|
113
113
|
"flex",
|
|
114
|
-
orientation === "horizontal" ? "-
|
|
114
|
+
orientation === "horizontal" ? "-ms-(--ds-carousel-gap)" : "-mt-(--ds-carousel-gap) flex-col",
|
|
115
115
|
className
|
|
116
116
|
),
|
|
117
117
|
...props
|
|
@@ -131,7 +131,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
131
131
|
"data-slot": "carousel-item",
|
|
132
132
|
className: cn(
|
|
133
133
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
134
|
-
orientation === "horizontal" ? "
|
|
134
|
+
orientation === "horizontal" ? "ps-(--ds-carousel-gap)" : "pt-(--ds-carousel-gap)",
|
|
135
135
|
className
|
|
136
136
|
),
|
|
137
137
|
...props
|
|
@@ -154,7 +154,7 @@ function CarouselPrevious({
|
|
|
154
154
|
size,
|
|
155
155
|
className: cn(
|
|
156
156
|
"absolute touch-manipulation rounded-(--ds-radius-pill)",
|
|
157
|
-
orientation === "horizontal" ? "inset-y-0 -
|
|
157
|
+
orientation === "horizontal" ? "inset-y-0 -start-12 my-auto" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
158
158
|
className
|
|
159
159
|
),
|
|
160
160
|
disabled: !canScrollPrev,
|
|
@@ -183,7 +183,7 @@ function CarouselNext({
|
|
|
183
183
|
size,
|
|
184
184
|
className: cn(
|
|
185
185
|
"absolute touch-manipulation rounded-(--ds-radius-pill)",
|
|
186
|
-
orientation === "horizontal" ? "inset-y-0 -
|
|
186
|
+
orientation === "horizontal" ? "inset-y-0 -end-12 my-auto" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
187
187
|
className
|
|
188
188
|
),
|
|
189
189
|
disabled: !canScrollNext,
|
package/dist/ui/choice-card.js
CHANGED
|
@@ -67,7 +67,7 @@ function ChoiceCardDescription({ className, ...props }) {
|
|
|
67
67
|
"span",
|
|
68
68
|
{
|
|
69
69
|
"data-slot": "choice-card-description",
|
|
70
|
-
className: cn("text-xs font-normal text-muted-foreground group-data-disabled/choice-card:text-current", className),
|
|
70
|
+
className: cn("text-xs font-(--ds-normal-weight) text-muted-foreground group-data-disabled/choice-card:text-current", className),
|
|
71
71
|
...props
|
|
72
72
|
}
|
|
73
73
|
);
|
package/dist/ui/combobox.js
CHANGED
|
@@ -130,7 +130,7 @@ function ComboboxItem({
|
|
|
130
130
|
{
|
|
131
131
|
"data-slot": "combobox-item",
|
|
132
132
|
className: cn(
|
|
133
|
-
"relative flex w-full cursor-default items-center gap-2.5 rounded-item py-(--ds-menu-item-py)
|
|
133
|
+
"relative flex w-full cursor-default items-center gap-2.5 rounded-item py-(--ds-menu-item-py) pe-8 ps-(--ds-menu-item-px) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-(--ds-disabled-opacity) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
134
134
|
className
|
|
135
135
|
),
|
|
136
136
|
...props,
|
|
@@ -139,7 +139,7 @@ function ComboboxItem({
|
|
|
139
139
|
/* @__PURE__ */ jsx(
|
|
140
140
|
ComboboxPrimitive.ItemIndicator,
|
|
141
141
|
{
|
|
142
|
-
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute
|
|
142
|
+
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center" }),
|
|
143
143
|
children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" })
|
|
144
144
|
}
|
|
145
145
|
)
|
|
@@ -226,7 +226,7 @@ function ComboboxChip({
|
|
|
226
226
|
{
|
|
227
227
|
"data-slot": "combobox-chip",
|
|
228
228
|
className: cn(
|
|
229
|
-
"flex h-(--ds-chip-h) w-fit items-center justify-center gap-1 rounded-control bg-muted-foreground/10 px-2 text-xs font-(--ds-medium-weight) whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-(--ds-disabled-opacity) has-data-[slot=combobox-chip-remove]:
|
|
229
|
+
"flex h-(--ds-chip-h) w-fit items-center justify-center gap-1 rounded-control bg-muted-foreground/10 px-2 text-xs font-(--ds-medium-weight) whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-(--ds-disabled-opacity) has-data-[slot=combobox-chip-remove]:pe-0",
|
|
230
230
|
className
|
|
231
231
|
),
|
|
232
232
|
...props,
|
|
@@ -236,7 +236,7 @@ function ComboboxChip({
|
|
|
236
236
|
ComboboxPrimitive.ChipRemove,
|
|
237
237
|
{
|
|
238
238
|
render: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-xs" }),
|
|
239
|
-
className: "-
|
|
239
|
+
className: "-ms-1 opacity-50 hover:opacity-100",
|
|
240
240
|
"data-slot": "combobox-chip-remove",
|
|
241
241
|
children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
|
|
242
242
|
}
|
package/dist/ui/command.js
CHANGED
|
@@ -151,7 +151,7 @@ function CommandItem({
|
|
|
151
151
|
...props,
|
|
152
152
|
children: [
|
|
153
153
|
children,
|
|
154
|
-
/* @__PURE__ */ jsx(CheckIcon, { className: "
|
|
154
|
+
/* @__PURE__ */ jsx(CheckIcon, { className: "ms-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
|
|
155
155
|
]
|
|
156
156
|
}
|
|
157
157
|
);
|
|
@@ -165,7 +165,7 @@ function CommandShortcut({
|
|
|
165
165
|
{
|
|
166
166
|
"data-slot": "command-shortcut",
|
|
167
167
|
className: cn(
|
|
168
|
-
"
|
|
168
|
+
"ms-auto text-xs tracking-(--ds-widest-tracking) text-muted-foreground group-data-[selected=true]/command-item:text-foreground",
|
|
169
169
|
className
|
|
170
170
|
),
|
|
171
171
|
...props
|
package/dist/ui/content-card.js
CHANGED
|
@@ -98,8 +98,8 @@ function ContentCard({
|
|
|
98
98
|
action ? /* @__PURE__ */ jsx(CardAction, { className: "relative z-(--ds-z-raised)", children: action }) : null
|
|
99
99
|
] }),
|
|
100
100
|
preset === "metric" && value != null ? /* @__PURE__ */ jsxs(CardContent, { "data-slot": "content-card-value", className: "flex items-baseline gap-2", children: [
|
|
101
|
-
/* @__PURE__ */ jsx("span", { className: "text-3xl font-(--ds-stat-value-weight) tracking-tight tabular-nums", children: value }),
|
|
102
|
-
delta ? /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-muted-foreground tabular-nums", children: delta }) : null
|
|
101
|
+
/* @__PURE__ */ jsx("span", { className: "text-3xl font-(--ds-stat-value-weight) tracking-(--ds-tight-tracking) tabular-nums", children: value }),
|
|
102
|
+
delta ? /* @__PURE__ */ jsx("span", { className: "text-sm font-(--ds-medium-weight) text-muted-foreground tabular-nums", children: delta }) : null
|
|
103
103
|
] }) : null,
|
|
104
104
|
children ? /* @__PURE__ */ jsx(CardContent, { children }) : null,
|
|
105
105
|
footer ? /* @__PURE__ */ jsx(CardFooter, { className: "relative z-(--ds-z-raised) gap-2", children: footer }) : null
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -63,7 +63,7 @@ function ContextMenuLabel({
|
|
|
63
63
|
"data-slot": "context-menu-label",
|
|
64
64
|
"data-inset": inset,
|
|
65
65
|
className: cn(
|
|
66
|
-
"px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-xs text-muted-foreground data-inset:
|
|
66
|
+
"px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-xs text-muted-foreground data-inset:ps-9.5",
|
|
67
67
|
className
|
|
68
68
|
),
|
|
69
69
|
...props
|
|
@@ -83,7 +83,7 @@ function ContextMenuItem({
|
|
|
83
83
|
"data-inset": inset,
|
|
84
84
|
"data-variant": variant,
|
|
85
85
|
className: cn(
|
|
86
|
-
"group/context-menu-item relative flex cursor-default items-center gap-2.5 rounded-item px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:
|
|
86
|
+
"group/context-menu-item relative flex cursor-default items-center gap-2.5 rounded-item px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:ps-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-(--ds-disabled-opacity) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-highlighted:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
|
|
87
87
|
className
|
|
88
88
|
),
|
|
89
89
|
...props
|
|
@@ -105,13 +105,13 @@ function ContextMenuSubTrigger({
|
|
|
105
105
|
"data-slot": "context-menu-sub-trigger",
|
|
106
106
|
"data-inset": inset,
|
|
107
107
|
className: cn(
|
|
108
|
-
"flex cursor-default items-center rounded-item px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:
|
|
108
|
+
"flex cursor-default items-center rounded-item px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:ps-9.5 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
109
109
|
className
|
|
110
110
|
),
|
|
111
111
|
...props,
|
|
112
112
|
children: [
|
|
113
113
|
children,
|
|
114
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "
|
|
114
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto" })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
@@ -142,13 +142,13 @@ function ContextMenuCheckboxItem({
|
|
|
142
142
|
"data-slot": "context-menu-checkbox-item",
|
|
143
143
|
"data-inset": inset,
|
|
144
144
|
className: cn(
|
|
145
|
-
"relative flex cursor-default items-center gap-2 rounded-item py-(--ds-menu-item-py)
|
|
145
|
+
"relative flex cursor-default items-center gap-2 rounded-item py-(--ds-menu-item-py) pe-8 ps-(--ds-menu-item-px) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:ps-9.5 data-disabled:pointer-events-none data-disabled:opacity-(--ds-disabled-opacity) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
146
146
|
className
|
|
147
147
|
),
|
|
148
148
|
checked,
|
|
149
149
|
...props,
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute
|
|
151
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute end-2", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
152
152
|
CheckIcon,
|
|
153
153
|
{}
|
|
154
154
|
) }) }),
|
|
@@ -180,12 +180,12 @@ function ContextMenuRadioItem({
|
|
|
180
180
|
"data-slot": "context-menu-radio-item",
|
|
181
181
|
"data-inset": inset,
|
|
182
182
|
className: cn(
|
|
183
|
-
"relative flex cursor-default items-center gap-2 rounded-item py-(--ds-menu-item-py)
|
|
183
|
+
"relative flex cursor-default items-center gap-2 rounded-item py-(--ds-menu-item-py) pe-8 ps-(--ds-menu-item-px) text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-inset:ps-9.5 data-disabled:pointer-events-none data-disabled:opacity-(--ds-disabled-opacity) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
184
184
|
className
|
|
185
185
|
),
|
|
186
186
|
...props,
|
|
187
187
|
children: [
|
|
188
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute
|
|
188
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute end-2", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
189
189
|
CheckIcon,
|
|
190
190
|
{}
|
|
191
191
|
) }) }),
|
|
@@ -216,7 +216,7 @@ function ContextMenuShortcut({
|
|
|
216
216
|
{
|
|
217
217
|
"data-slot": "context-menu-shortcut",
|
|
218
218
|
className: cn(
|
|
219
|
-
"
|
|
219
|
+
"ms-auto text-xs tracking-(--ds-widest-tracking) text-muted-foreground group-focus/context-menu-item:text-accent-foreground",
|
|
220
220
|
className
|
|
221
221
|
),
|
|
222
222
|
...props
|
package/dist/ui/data-table.d.ts
CHANGED
|
@@ -146,9 +146,9 @@ declare function DataTableBarCell({ value, max, format, tone, className, }: {
|
|
|
146
146
|
tone?: DsDataTone;
|
|
147
147
|
className?: string;
|
|
148
148
|
}): React.JSX.Element;
|
|
149
|
-
type DataTablePreset = "browse" | "manage" | "compact";
|
|
149
|
+
type DataTablePreset = "browse" | "manage" | "compact" | "grouped" | "tree";
|
|
150
150
|
interface DataTableProps<TData extends object> {
|
|
151
|
-
/** Intención: `browse` (consultar), `manage` (seleccionar y actuar)
|
|
151
|
+
/** Intención: `browse` (consultar), `manage` (seleccionar y actuar), `compact` (denso), `grouped` (con `groupBy`) o `tree` (con `getSubRows`). Solo fija valores por defecto. */
|
|
152
152
|
preset?: DataTablePreset;
|
|
153
153
|
columns: DataTableColumn<TData>[];
|
|
154
154
|
data: TData[];
|
|
@@ -179,10 +179,20 @@ interface DataTableProps<TData extends object> {
|
|
|
179
179
|
/** Acciones al final de cada fila (botón, menú…). */
|
|
180
180
|
rowActions?: (row: TData) => React.ReactNode;
|
|
181
181
|
density?: "comfortable" | "compact";
|
|
182
|
+
/** Agrupa las filas de cada página por esta clave; cada grupo lleva una cabecera plegable con su recuento. */
|
|
183
|
+
groupBy?: (row: TData) => string;
|
|
184
|
+
/** Contenido de la cabecera de grupo (por defecto, la clave y el recuento). */
|
|
185
|
+
groupLabel?: (key: string, count: number) => React.ReactNode;
|
|
186
|
+
/** Claves de grupo plegadas al principio. */
|
|
187
|
+
defaultCollapsedGroups?: readonly string[];
|
|
188
|
+
/** Hijos de una fila: activa la jerarquía (sangría y botón de expandir en la primera columna). */
|
|
189
|
+
getSubRows?: (row: TData) => readonly TData[] | undefined;
|
|
190
|
+
/** Ids de fila expandidos al principio (con `getSubRows`). */
|
|
191
|
+
defaultExpandedRows?: readonly string[];
|
|
182
192
|
/** Nombre accesible de la tabla. */
|
|
183
193
|
"aria-label"?: string;
|
|
184
194
|
className?: string;
|
|
185
195
|
}
|
|
186
|
-
declare function DataTable<TData extends object>({ columns, data, getRowId, state: controlled, onStateChange, defaultState, preset, searchable, selectable, columnToggle, pageSizes, loading, empty, onRowClick, toolbar, rowActions, density, "aria-label": ariaLabel, className, }: DataTableProps<TData>): React.JSX.Element;
|
|
196
|
+
declare function DataTable<TData extends object>({ columns, data, getRowId, state: controlled, onStateChange, defaultState, preset, searchable, selectable, columnToggle, pageSizes, loading, empty, onRowClick, toolbar, rowActions, density, groupBy, groupLabel, defaultCollapsedGroups, getSubRows, defaultExpandedRows, "aria-label": ariaLabel, className, }: DataTableProps<TData>): React.JSX.Element;
|
|
187
197
|
|
|
188
198
|
export { DATA_TABLE_PAGE_SIZES, DataTable, DataTableBarCell, type DataTableColumn, type DataTableColumnMeta, type DataTableFeatures, type DataTableFilterOption, DataTableNumber, type DataTablePreset, type DataTableProps, type DataTableSearch, type DataTableState, createDataTableColumnHelper, dataTableFeatures, dataTableStateFromSearch, dataTableStateToSearch, validateDataTableSearch };
|