orbital-ds 0.5.0 → 0.6.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.
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
  import { Button } from './button.js';
6
6
 
7
7
  declare const attachmentVariants: (props?: ({
8
- size?: "default" | "xs" | "sm" | null | undefined;
8
+ size?: "default" | "sm" | "xs" | null | undefined;
9
9
  orientation?: "horizontal" | "vertical" | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
11
11
  declare function Attachment({ className, state, size, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof attachmentVariants> & {
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
7
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
8
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
8
+ size?: "default" | "sm" | "xs" | "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> & {
11
11
  nativeButton?: boolean;
@@ -0,0 +1,11 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+
5
+ declare const iconTileVariants: (props?: ({
6
+ tone?: "neutral" | "primary" | "accent" | "success" | "warning" | "danger" | "info" | null | undefined;
7
+ size?: "sm" | "lg" | "md" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ declare function IconTile({ className, tone, size, ...props }: React.ComponentProps<"div"> & VariantProps<typeof iconTileVariants>): React.JSX.Element;
10
+
11
+ export { IconTile, iconTileVariants };
@@ -0,0 +1,47 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
+ import { cn } from "../lib/utils";
4
+ const iconTileVariants = cva(
5
+ "inline-flex shrink-0 items-center justify-center rounded-(--ds-icon-tile-radius) [&>svg]:size-1/2",
6
+ {
7
+ variants: {
8
+ tone: {
9
+ neutral: "bg-muted text-foreground",
10
+ primary: "bg-primary text-primary-foreground",
11
+ accent: "bg-accent text-accent-foreground",
12
+ success: "bg-success-soft text-success",
13
+ warning: "bg-warning-soft text-warning",
14
+ danger: "bg-danger-soft text-danger",
15
+ info: "bg-info-soft text-info"
16
+ },
17
+ size: {
18
+ sm: "size-(--ds-icon-tile-sm)",
19
+ md: "size-(--ds-icon-tile-md)",
20
+ lg: "size-(--ds-icon-tile-lg)"
21
+ }
22
+ },
23
+ defaultVariants: { tone: "accent", size: "md" }
24
+ }
25
+ );
26
+ function IconTile({
27
+ className,
28
+ tone,
29
+ size,
30
+ ...props
31
+ }) {
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ "data-slot": "icon-tile",
36
+ "data-tone": tone ?? "accent",
37
+ "data-size": size ?? "md",
38
+ "aria-hidden": "true",
39
+ className: cn(iconTileVariants({ tone, size }), className),
40
+ ...props
41
+ }
42
+ );
43
+ }
44
+ export {
45
+ IconTile,
46
+ iconTileVariants
47
+ };
@@ -10,7 +10,7 @@ declare const inputGroupAddonVariants: (props?: ({
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
11
11
  declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
12
12
  declare const inputGroupButtonVariants: (props?: ({
13
- size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
13
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
16
16
  type?: "button" | "submit" | "reset";
package/dist/ui/item.d.ts CHANGED
@@ -9,7 +9,7 @@ declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">)
9
9
  declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
10
10
  declare const itemVariants: (props?: ({
11
11
  variant?: "default" | "outline" | "muted" | null | undefined;
12
- size?: "default" | "xs" | "sm" | null | undefined;
12
+ size?: "default" | "sm" | "xs" | null | undefined;
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
14
14
  declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
15
15
  declare const itemMediaVariants: (props?: ({
@@ -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 markerVariants: (props?: ({
7
- variant?: "separator" | "default" | "border" | null | undefined;
7
+ variant?: "default" | "separator" | "border" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare function Marker({ className, variant, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
10
10
  declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
@@ -26,7 +26,7 @@ const SIDEBAR_COOKIE_NAME = "sidebar_state";
26
26
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
27
27
  const SIDEBAR_WIDTH = "17.5rem";
28
28
  const SIDEBAR_WIDTH_MOBILE = "18rem";
29
- const SIDEBAR_WIDTH_ICON = "4rem";
29
+ const SIDEBAR_WIDTH_ICON = "var(--ds-sidebar-rail-w, 4rem)";
30
30
  const SIDEBAR_KEYBOARD_SHORTCUT = "b";
31
31
  const SidebarContext = React.createContext(null);
32
32
  function useSidebar() {
@@ -180,7 +180,7 @@ function Sidebar({
180
180
  "data-slot": "sidebar-container",
181
181
  "data-side": side,
182
182
  className: cn(
183
- "fixed inset-y-0 z-(--ds-z-raised) hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-(--ds-motion-base) ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
183
+ "fixed inset-y-0 z-(--ds-z-sidebar) hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-(--ds-motion-base) ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
184
184
  // Adjust the padding for floating and inset variants.
185
185
  variant === "floating" || variant === "inset" ? "p-(--ds-sidebar-pad) group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(var(--ds-sidebar-pad)*2)+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
186
186
  className
package/docs/CONTRACT.md CHANGED
@@ -74,9 +74,10 @@ Los define la estructura con un valor neutro; un tema los sobrescribe si quiere.
74
74
  | Sombras | `--shadow-card`, `--shadow-card-hover`, `--shadow-control`, `--shadow-raised`, `--shadow-overlay`, `--shadow-popover` |
75
75
  | Altura de controles | `--ds-control-h-sm`, `-md`, `-lg` |
76
76
  | Espaciado interno | `--ds-card-spacing`, `--ds-card-spacing-sm`, `--ds-field-px`, `--ds-cell-p`, `--ds-overlay-p`, `--ds-overlay-gap`, `--ds-popover-p`, `--ds-menu-p`, `--ds-menu-item-px`, `--ds-menu-item-py`, `--ds-button-px-sm/md/lg`, `--ds-badge-px` |
77
- | Capas | `--ds-z-raised`, `--ds-z-sticky`, `--ds-z-overlay` |
77
+ | Capas | `--ds-z-raised`, `--ds-z-sticky`, `--ds-z-sidebar` (sobre la cabecera sticky), `--ds-z-overlay` |
78
78
  | Movimiento | `--ds-motion-fast`, `--ds-motion-base`, `--ds-motion-slow`, `--ds-motion-blink` |
79
79
  | Foco | `--ds-ring-width` |
80
+ | Sidebar | `--ds-sidebar-rail-w` (ancho del lateral contraído; por defecto `4rem`) |
80
81
  | Velo | `--color-scrim` |
81
82
  | **Materiales** | `--ds-card-backdrop`, `--ds-overlay-backdrop`, `--ds-field-backdrop`, `--ds-sidebar-backdrop` (un `backdrop-filter` completo; por defecto `none`) y `--ds-page-backdrop` (un `background-image` para el fondo de la página; por defecto `none`) |
82
83
 
package/package.json CHANGED
@@ -1,140 +1,142 @@
1
- {
2
- "name": "orbital-ds",
3
- "version": "0.5.0",
4
- "description": "Sistema de diseño genérico: estructura común + temas con personalidad (qratia, zyro) + ~60 componentes sobre Base UI y Tailwind v4, con contrato verificable y legible por agentes.",
5
- "keywords": [
6
- "design-system",
7
- "design-tokens",
8
- "theme",
9
- "tailwindcss",
10
- "base-ui",
11
- "shadcn",
12
- "react"
13
- ],
14
- "license": "MIT",
15
- "type": "module",
16
- "sideEffects": [
17
- "*.css"
18
- ],
19
- "files": [
20
- "dist",
21
- "scripts/doctor.mjs",
22
- "contract.json",
23
- "components.manifest.json",
24
- "docs",
25
- "AGENTS.md",
26
- "README.md",
27
- "LICENSE",
28
- "scripts/init.mjs",
29
- "scripts/manifest.mjs"
30
- ],
31
- "exports": {
32
- "./styles.css": "./dist/styles.css",
33
- "./themes/*.css": "./dist/themes/*.css",
34
- "./ui/*": {
35
- "types": "./dist/ui/*.d.ts",
36
- "import": "./dist/ui/*.js"
37
- },
38
- "./lib/*": {
39
- "types": "./dist/lib/*.d.ts",
40
- "import": "./dist/lib/*.js"
41
- },
42
- "./hooks/*": {
43
- "types": "./dist/hooks/*.d.ts",
44
- "import": "./dist/hooks/*.js"
45
- },
46
- "./package.json": "./package.json",
47
- "./contract.json": "./contract.json",
48
- "./components.manifest.json": "./components.manifest.json"
49
- },
50
- "scripts": {
51
- "build": "tsup && node scripts/build-css.mjs",
52
- "dev": "tsup --watch --onSuccess \"node scripts/copy-css.mjs\"",
53
- "typecheck": "tsc --noEmit",
54
- "verify": "pnpm check:ds && pnpm typecheck && pnpm build",
55
- "manifest": "node scripts/manifest.mjs",
56
- "check:ds": "node scripts/doctor.mjs"
57
- },
58
- "peerDependencies": {
59
- "@base-ui/react": ">=1.9",
60
- "class-variance-authority": ">=0.7",
61
- "clsx": ">=2",
62
- "lucide-react": ">=0.400",
63
- "react": ">=19",
64
- "react-dom": ">=19",
65
- "tailwind-merge": ">=3",
66
- "tailwindcss": ">=4.1",
67
- "tw-animate-css": ">=1.3",
68
- "next-themes": ">=0.4",
69
- "recharts": ">=3",
70
- "sonner": ">=2",
71
- "@shadcn/react": ">=0.3",
72
- "cmdk": ">=1.1",
73
- "date-fns": ">=4",
74
- "embla-carousel-react": ">=8.6",
75
- "input-otp": ">=1.5",
76
- "react-day-picker": ">=10",
77
- "react-resizable-panels": ">=4"
78
- },
79
- "peerDependenciesMeta": {
80
- "next-themes": {
81
- "optional": true
82
- },
83
- "recharts": {
84
- "optional": true
85
- },
86
- "sonner": {
87
- "optional": true
88
- },
89
- "@shadcn/react": {
90
- "optional": true
91
- },
92
- "cmdk": {
93
- "optional": true
94
- },
95
- "date-fns": {
96
- "optional": true
97
- },
98
- "embla-carousel-react": {
99
- "optional": true
100
- },
101
- "input-otp": {
102
- "optional": true
103
- },
104
- "react-day-picker": {
105
- "optional": true
106
- },
107
- "react-resizable-panels": {
108
- "optional": true
109
- }
110
- },
111
- "devDependencies": {
112
- "@base-ui/react": "^1.9.0",
113
- "@types/react": "^19.2.0",
114
- "@types/react-dom": "^19.2.0",
115
- "class-variance-authority": "^0.7.1",
116
- "clsx": "^2.1.1",
117
- "lucide-react": "^0.577.0",
118
- "next-themes": "^0.4.6",
119
- "react": "^19.2.0",
120
- "react-dom": "^19.2.0",
121
- "recharts": "3.8.0",
122
- "sonner": "^2.0.8",
123
- "tailwind-merge": "^3.0.2",
124
- "tailwindcss": "^4.1.18",
125
- "tsup": "^8.5.0",
126
- "tw-animate-css": "^1.3.6",
127
- "typescript": "^5.9.0",
128
- "@shadcn/react": "^0.3.1",
129
- "cmdk": "^1.1.1",
130
- "date-fns": "^4.4.0",
131
- "embla-carousel-react": "^8.6.0",
132
- "input-otp": "^1.5.0",
133
- "react-day-picker": "^10.0.2",
134
- "react-resizable-panels": "^4.14.4"
135
- },
136
- "bin": {
137
- "orbital-ds-doctor": "./scripts/doctor.mjs",
138
- "orbital-ds-init": "./scripts/init.mjs"
139
- }
140
- }
1
+ {
2
+ "name": "orbital-ds",
3
+ "version": "0.6.2",
4
+ "description": "Sistema de diseño genérico: estructura común + temas con personalidad (qratia, zyro) + ~60 componentes sobre Base UI y Tailwind v4, con contrato verificable y legible por agentes.",
5
+ "keywords": [
6
+ "design-system",
7
+ "design-tokens",
8
+ "theme",
9
+ "tailwindcss",
10
+ "base-ui",
11
+ "shadcn",
12
+ "react"
13
+ ],
14
+ "license": "MIT",
15
+ "type": "module",
16
+ "sideEffects": [
17
+ "*.css"
18
+ ],
19
+ "files": [
20
+ "dist",
21
+ "scripts/doctor.mjs",
22
+ "contract.json",
23
+ "components.manifest.json",
24
+ "docs",
25
+ "AGENTS.md",
26
+ "README.md",
27
+ "LICENSE",
28
+ "scripts/init.mjs",
29
+ "scripts/manifest.mjs"
30
+ ],
31
+ "exports": {
32
+ "./styles.css": "./dist/styles.css",
33
+ "./themes/*.css": "./dist/themes/*.css",
34
+ "./themes/*.md": "./dist/themes/*.md",
35
+ "./themes/*.meta.json": "./dist/themes/*.meta.json",
36
+ "./ui/*": {
37
+ "types": "./dist/ui/*.d.ts",
38
+ "import": "./dist/ui/*.js"
39
+ },
40
+ "./lib/*": {
41
+ "types": "./dist/lib/*.d.ts",
42
+ "import": "./dist/lib/*.js"
43
+ },
44
+ "./hooks/*": {
45
+ "types": "./dist/hooks/*.d.ts",
46
+ "import": "./dist/hooks/*.js"
47
+ },
48
+ "./package.json": "./package.json",
49
+ "./contract.json": "./contract.json",
50
+ "./components.manifest.json": "./components.manifest.json"
51
+ },
52
+ "scripts": {
53
+ "build": "tsup && node scripts/build-css.mjs",
54
+ "dev": "tsup --watch --onSuccess \"node scripts/copy-css.mjs\"",
55
+ "typecheck": "tsc --noEmit",
56
+ "verify": "pnpm check:ds && pnpm typecheck && pnpm build",
57
+ "manifest": "node scripts/manifest.mjs",
58
+ "check:ds": "node scripts/doctor.mjs"
59
+ },
60
+ "peerDependencies": {
61
+ "@base-ui/react": ">=1.9",
62
+ "class-variance-authority": ">=0.7",
63
+ "clsx": ">=2",
64
+ "lucide-react": ">=0.400",
65
+ "react": ">=19",
66
+ "react-dom": ">=19",
67
+ "tailwind-merge": ">=3",
68
+ "tailwindcss": ">=4.1",
69
+ "tw-animate-css": ">=1.3",
70
+ "next-themes": ">=0.4",
71
+ "recharts": ">=3",
72
+ "sonner": ">=2",
73
+ "@shadcn/react": ">=0.3",
74
+ "cmdk": ">=1.1",
75
+ "date-fns": ">=4",
76
+ "embla-carousel-react": ">=8.6",
77
+ "input-otp": ">=1.5",
78
+ "react-day-picker": ">=10",
79
+ "react-resizable-panels": ">=4"
80
+ },
81
+ "peerDependenciesMeta": {
82
+ "next-themes": {
83
+ "optional": true
84
+ },
85
+ "recharts": {
86
+ "optional": true
87
+ },
88
+ "sonner": {
89
+ "optional": true
90
+ },
91
+ "@shadcn/react": {
92
+ "optional": true
93
+ },
94
+ "cmdk": {
95
+ "optional": true
96
+ },
97
+ "date-fns": {
98
+ "optional": true
99
+ },
100
+ "embla-carousel-react": {
101
+ "optional": true
102
+ },
103
+ "input-otp": {
104
+ "optional": true
105
+ },
106
+ "react-day-picker": {
107
+ "optional": true
108
+ },
109
+ "react-resizable-panels": {
110
+ "optional": true
111
+ }
112
+ },
113
+ "devDependencies": {
114
+ "@base-ui/react": "^1.9.0",
115
+ "@types/react": "^19.2.0",
116
+ "@types/react-dom": "^19.2.0",
117
+ "class-variance-authority": "^0.7.1",
118
+ "clsx": "^2.1.1",
119
+ "lucide-react": "^0.577.0",
120
+ "next-themes": "^0.4.6",
121
+ "react": "^19.2.0",
122
+ "react-dom": "^19.2.0",
123
+ "recharts": "3.8.0",
124
+ "sonner": "^2.0.8",
125
+ "tailwind-merge": "^3.0.2",
126
+ "tailwindcss": "^4.1.18",
127
+ "tsup": "^8.5.0",
128
+ "tw-animate-css": "^1.3.6",
129
+ "typescript": "^5.9.0",
130
+ "@shadcn/react": "^0.3.1",
131
+ "cmdk": "^1.1.1",
132
+ "date-fns": "^4.4.0",
133
+ "embla-carousel-react": "^8.6.0",
134
+ "input-otp": "^1.5.0",
135
+ "react-day-picker": "^10.0.2",
136
+ "react-resizable-panels": "^4.14.4"
137
+ },
138
+ "bin": {
139
+ "orbital-ds-doctor": "./scripts/doctor.mjs",
140
+ "orbital-ds-init": "./scripts/init.mjs"
141
+ }
142
+ }