orbital-ds 0.29.1 → 0.30.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.
Files changed (89) hide show
  1. package/AGENTS.md +14 -0
  2. package/components.manifest.json +117 -6
  3. package/dist/hooks/use-ds-messages.d.ts +9 -0
  4. package/dist/lib/auth-flow.d.ts +26 -2
  5. package/dist/lib/auth-flow.js +20 -3
  6. package/dist/lib/header-control.d.ts +4 -0
  7. package/dist/lib/header-control.js +14 -0
  8. package/dist/lib/i18n.d.ts +9 -0
  9. package/dist/lib/i18n.js +27 -0
  10. package/dist/ui/app-bar.d.ts +10 -0
  11. package/dist/ui/app-bar.js +51 -0
  12. package/dist/ui/attachment.js +1 -1
  13. package/dist/ui/auth-form.d.ts +5 -1
  14. package/dist/ui/auth-form.js +5 -0
  15. package/dist/ui/badge.js +2 -2
  16. package/dist/ui/button.js +1 -1
  17. package/dist/ui/content-card.d.ts +6 -2
  18. package/dist/ui/content-card.js +27 -3
  19. package/dist/ui/dropzone.js +1 -1
  20. package/dist/ui/item.js +1 -1
  21. package/dist/ui/legend.js +1 -1
  22. package/dist/ui/locale-switcher.d.ts +19 -0
  23. package/dist/ui/locale-switcher.js +54 -0
  24. package/dist/ui/menubar.js +1 -1
  25. package/dist/ui/message-scroller.js +1 -1
  26. package/dist/ui/navigation-menu.js +2 -2
  27. package/dist/ui/notice-review.d.ts +1 -0
  28. package/dist/ui/notifications.d.ts +12 -2
  29. package/dist/ui/notifications.js +28 -5
  30. package/dist/ui/sidebar.d.ts +17 -3
  31. package/dist/ui/sidebar.js +25 -10
  32. package/dist/ui/theme-toggle.d.ts +14 -0
  33. package/dist/ui/theme-toggle.js +112 -0
  34. package/dist/ui/toggle.js +2 -2
  35. package/dist/ui/week-strip.js +1 -1
  36. package/docs/CONTRACT.md +1 -1
  37. package/docs/designer/patrones.md +6 -0
  38. package/package.json +188 -187
  39. package/scripts/cli.mjs +452 -452
  40. package/dist/motion.css +0 -146
  41. package/dist/styles.css +0 -1656
  42. package/dist/themes/fractalia.css +0 -549
  43. package/dist/themes/fractalia.fonts.css +0 -3
  44. package/dist/themes/fractalia.guide.md +0 -86
  45. package/dist/themes/fractalia.meta.json +0 -112
  46. package/dist/themes/fractalia.scoped.css +0 -549
  47. package/dist/themes/fractalia.tokens.json +0 -39
  48. package/dist/themes/friendly.css +0 -367
  49. package/dist/themes/friendly.fonts.css +0 -2
  50. package/dist/themes/friendly.guide.md +0 -38
  51. package/dist/themes/friendly.meta.json +0 -82
  52. package/dist/themes/friendly.scoped.css +0 -367
  53. package/dist/themes/friendly.tokens.json +0 -45
  54. package/dist/themes/lagoon.css +0 -348
  55. package/dist/themes/lagoon.fonts.css +0 -2
  56. package/dist/themes/lagoon.guide.md +0 -47
  57. package/dist/themes/lagoon.meta.json +0 -85
  58. package/dist/themes/lagoon.scoped.css +0 -348
  59. package/dist/themes/lagoon.tokens.json +0 -49
  60. package/dist/themes/liquid.css +0 -502
  61. package/dist/themes/liquid.fonts.css +0 -7
  62. package/dist/themes/liquid.guide.md +0 -82
  63. package/dist/themes/liquid.meta.json +0 -134
  64. package/dist/themes/liquid.scoped.css +0 -502
  65. package/dist/themes/liquid.tokens.json +0 -47
  66. package/dist/themes/qratia.css +0 -260
  67. package/dist/themes/qratia.fonts.css +0 -2
  68. package/dist/themes/qratia.guide.md +0 -34
  69. package/dist/themes/qratia.meta.json +0 -49
  70. package/dist/themes/qratia.scoped.css +0 -260
  71. package/dist/themes/qratia.tokens.json +0 -49
  72. package/dist/themes/tactile.css +0 -588
  73. package/dist/themes/tactile.fonts.css +0 -3
  74. package/dist/themes/tactile.guide.md +0 -82
  75. package/dist/themes/tactile.meta.json +0 -182
  76. package/dist/themes/tactile.scoped.css +0 -588
  77. package/dist/themes/tactile.tokens.json +0 -42
  78. package/dist/themes/twitter.css +0 -357
  79. package/dist/themes/twitter.fonts.css +0 -6
  80. package/dist/themes/twitter.guide.md +0 -35
  81. package/dist/themes/twitter.meta.json +0 -90
  82. package/dist/themes/twitter.scoped.css +0 -357
  83. package/dist/themes/twitter.tokens.json +0 -45
  84. package/dist/themes/zyro.css +0 -434
  85. package/dist/themes/zyro.fonts.css +0 -2
  86. package/dist/themes/zyro.guide.md +0 -33
  87. package/dist/themes/zyro.meta.json +0 -74
  88. package/dist/themes/zyro.scoped.css +0 -434
  89. package/dist/themes/zyro.tokens.json +0 -46
@@ -0,0 +1,112 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";
3
+ import { useDsMessages } from "../hooks/use-ds-messages.js";
4
+ import { headerControlClass } from "../lib/header-control.js";
5
+ import { cn } from "../lib/utils.js";
6
+ import { Button } from "./button.js";
7
+ import {
8
+ DropdownMenu,
9
+ DropdownMenuContent,
10
+ DropdownMenuRadioGroup,
11
+ DropdownMenuRadioItem,
12
+ DropdownMenuTrigger
13
+ } from "./dropdown-menu.js";
14
+ const MODES = ["light", "dark", "system"];
15
+ const ICONS = { light: SunIcon, dark: MoonIcon, system: MonitorIcon };
16
+ function useModeLabels() {
17
+ const t = useDsMessages();
18
+ return { light: t.themeLight, dark: t.themeDark, system: t.themeSystem };
19
+ }
20
+ function ThemeToggle({
21
+ value = "system",
22
+ onValueChange,
23
+ preset = "icon",
24
+ tone = "neutral",
25
+ className
26
+ }) {
27
+ const t = useDsMessages();
28
+ const labels = useModeLabels();
29
+ const Icon = ICONS[value];
30
+ if (preset === "segmented") {
31
+ return /* @__PURE__ */ jsx(
32
+ "div",
33
+ {
34
+ role: "radiogroup",
35
+ "aria-label": t.themeToggleLabel,
36
+ "data-slot": "theme-toggle",
37
+ "data-preset": preset,
38
+ "data-value": value,
39
+ className: cn("inline-flex items-center gap-(--ds-appbar-gap) rounded-button bg-muted p-1", className),
40
+ children: MODES.map((mode) => {
41
+ const ModeIcon = ICONS[mode];
42
+ return /* @__PURE__ */ jsxs(
43
+ Button,
44
+ {
45
+ type: "button",
46
+ role: "radio",
47
+ "aria-checked": value === mode,
48
+ variant: value === mode ? "secondary" : "ghost",
49
+ size: "sm",
50
+ onClick: () => onValueChange?.(mode),
51
+ children: [
52
+ /* @__PURE__ */ jsx(ModeIcon, {}),
53
+ labels[mode]
54
+ ]
55
+ },
56
+ mode
57
+ );
58
+ })
59
+ }
60
+ );
61
+ }
62
+ if (preset === "cycle") {
63
+ const next = MODES[(MODES.indexOf(value) + 1) % MODES.length];
64
+ return /* @__PURE__ */ jsx(
65
+ Button,
66
+ {
67
+ type: "button",
68
+ variant: "ghost",
69
+ size: "icon-sm",
70
+ "data-slot": "theme-toggle",
71
+ "data-preset": preset,
72
+ "data-value": value,
73
+ "aria-label": `${t.themeToggleLabel}: ${labels[value]}`,
74
+ title: labels[next],
75
+ className: cn(headerControlClass(tone), className),
76
+ onClick: () => onValueChange?.(next),
77
+ children: /* @__PURE__ */ jsx(Icon, {})
78
+ }
79
+ );
80
+ }
81
+ return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
82
+ /* @__PURE__ */ jsx(
83
+ DropdownMenuTrigger,
84
+ {
85
+ render: /* @__PURE__ */ jsx(
86
+ Button,
87
+ {
88
+ type: "button",
89
+ variant: "ghost",
90
+ size: "icon-sm",
91
+ "data-slot": "theme-toggle",
92
+ "data-preset": preset,
93
+ "data-value": value,
94
+ "aria-label": `${t.themeToggleLabel}: ${labels[value]}`,
95
+ className: cn(headerControlClass(tone), className)
96
+ }
97
+ ),
98
+ children: /* @__PURE__ */ jsx(Icon, {})
99
+ }
100
+ ),
101
+ /* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsx(DropdownMenuRadioGroup, { value, onValueChange: (v) => onValueChange?.(v), children: MODES.map((mode) => {
102
+ const ModeIcon = ICONS[mode];
103
+ return /* @__PURE__ */ jsxs(DropdownMenuRadioItem, { value: mode, children: [
104
+ /* @__PURE__ */ jsx(ModeIcon, {}),
105
+ labels[mode]
106
+ ] }, mode);
107
+ }) }) })
108
+ ] });
109
+ }
110
+ export {
111
+ ThemeToggle
112
+ };
package/dist/ui/toggle.js CHANGED
@@ -3,12 +3,12 @@ import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { cn } from "../lib/utils.js";
5
5
  const toggleVariants = cva(
6
- "group/toggle inline-flex items-center justify-center gap-1 rounded-control text-sm font-(--ds-medium-weight) whitespace-nowrap transition-colors duration-(--ds-motion-snap) outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) disabled:pointer-events-none disabled:opacity-(--ds-disabled-opacity) aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(--ds-invalid-ring) aria-pressed:bg-muted [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
6
+ "group/toggle inline-flex items-center justify-center gap-1 rounded-control text-sm font-(--ds-medium-weight) whitespace-nowrap transition-colors duration-(--ds-motion-snap) outline-none hover:bg-(--ds-hover-bg) hover:text-foreground focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) disabled:pointer-events-none disabled:opacity-(--ds-disabled-opacity) aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(--ds-invalid-ring) aria-pressed:bg-muted [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
7
7
  {
8
8
  variants: {
9
9
  variant: {
10
10
  default: "bg-transparent",
11
- outline: "border border-input bg-transparent hover:bg-muted"
11
+ outline: "border border-input bg-transparent hover:bg-(--ds-hover-bg)"
12
12
  },
13
13
  size: {
14
14
  default: "h-(--ds-control-h-md) min-w-(--ds-control-h-md) px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
@@ -62,7 +62,7 @@ function WeekStrip({
62
62
  "aria-pressed": active,
63
63
  "aria-label": full.format(d),
64
64
  onClick: () => choose(d),
65
- className: "relative flex flex-col items-center gap-0.5 rounded-(--ds-week-day-radius) border border-transparent px-1 py-2 text-sm outline-none transition-colors duration-(--ds-motion-fast) ease-(--ds-ease-standard) hover:bg-muted focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) data-today:border-border data-active:bg-primary data-active:text-primary-foreground motion-reduce:transition-none",
65
+ className: "relative flex flex-col items-center gap-0.5 rounded-(--ds-week-day-radius) border border-transparent px-1 py-2 text-sm outline-none transition-colors duration-(--ds-motion-fast) ease-(--ds-ease-standard) hover:bg-(--ds-hover-bg) focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) data-today:border-border data-active:bg-primary data-active:text-primary-foreground motion-reduce:transition-none",
66
66
  children: [
67
67
  /* @__PURE__ */ jsx("small", { className: "text-xs opacity-70", children: weekday.format(d) }),
68
68
  /* @__PURE__ */ jsx("b", { className: "font-display tabular-nums", children: d.getDate() }),
package/docs/CONTRACT.md CHANGED
@@ -81,7 +81,7 @@ Los define la estructura con un valor neutro; un tema los sobrescribe si quiere.
81
81
  | Foco | `--ds-ring-width` |
82
82
  | Lateral | `--ds-sidebar-icon`, `--ds-sidebar-icon-stroke` (iconos), `--ds-sidebar-rail-w` (ancho contraído), `--ds-sidebar-rail-item` (tecla del raíl), `--ds-sidebar-logo` (logo y avatar), `--ds-sidebar-sep-inset` (separadores; negativo = de borde a borde). **Todo tema los define** (contrato) |
83
83
  | **Gesto de tecla** | `--ds-key-outline`, `--ds-key-edge` (colores), `--ds-key-border` (contorno), `--ds-key-edge-w` / `-sm` / `-pressed` (arista en reposo, en controles pequeños y al pulsar), `--ds-key-press` / `-sm` (cuánto se hunde), `--ds-key-radius` / `-sm`, `--ds-key-weight`, `--ds-key-disabled-opacity`, `--ds-rule-w` (filete de superficies), `--ds-overlay-edge-w` (arista de diálogos). Valores neutros en la estructura; los usa la personalidad de un tema como `tactile` |
84
- | **Rotulador** | `--ds-marker` (color; `transparent` lo apaga), `--ds-marker-thickness` (grosor de la franja), `--ds-marker-offset` (cuánto sube); gesto **común**: lo dibuja la estructura en los títulos de cualquier tema |
84
+ | **Rotulador** | `--ds-marker` (color; `transparent` lo apaga), `--ds-marker-thickness` (grosor de la franja), `--ds-marker-offset` (cuánto sube); en desuso desde 0.30: la estructura ya no lo dibuja; se conservan por compatibilidad |
85
85
  | **Títulos y etiquetas** | `--ds-display-variation` (ejes de la fuente de titulares, p. ej. `"SOFT" 50, "WONK" 1`), `--ds-heading-weight` (h1–h3), `--ds-title-weight`, `--ds-title-leading` (títulos de componente), `--ds-heading-tracking`, `--ds-label-tracking` (versalitas), `--ds-strong-weight`, `--ds-nav-weight`, `--ds-tabs-gap` |
86
86
  | **Personalidad común** | `--ds-radius-pill`, `--ds-button-case`, `--ds-button-tracking`, `--ds-button-outline-w`, `--ds-shadow-button` / `-hover`, `--ds-hover-lift`, `--ds-hover-opacity`, `--ds-tab-weight` / `-active-weight`, `--ds-tab-indicator-w`, `--ds-label-weight`, `--ds-nav-active-weight`. Huecos que **cualquier** tema usa en su personalidad (píldoras, botones en mayúsculas, brillo, subrayado de pestañas…) |
87
87
  | Velo | `--color-scrim` |
@@ -109,6 +109,12 @@ Formato: **cuándo** · **piezas** · **reglas** · **evita**.
109
109
  `external`), métodos, registro, segundo factor y aspecto. Presets: `standard` · `social` · `passwordless` ·
110
110
  `partner` · `enterprise` · `hybrid` (plantilla por SSO y externos con cuenta propia, enrutados por dominio con
111
111
  `routeAuthIdentifier`) · `sso-only`. `validateAuthFlow` avisa de combinaciones sin sentido.
112
+ - **Interno o externo:** en `hybrid` (y `enterprise`) el correo decide la puerta. `internalDomains` → SSO de la
113
+ plantilla (sin registro, sin 2FA propio: lo pone el directorio); el resto, cuenta propia con el 2FA y el registro
114
+ del flujo. `access: { internal, external }` ajusta métodos, `mfaRequired` y `signUp` de cada puerta;
115
+ `resolveAuthAccess(flow, correo)` devuelve la regla; `routeAuthIdentifier` ya la usa. En pantalla,
116
+ `AuthForm audience={flow.audience}` explica antes del correo quién entra por dónde, y tras identificarse
117
+ muestra «Personal» o «Externo» junto al correo.
112
118
  - **Piezas:** `AuthLayout` (`centered` · `split` · `cover` · `banner` · `minimal`; fondo con `backdrop`, también
113
119
  `image` + `backdropMedia` y `backdropGlass`) + `AuthForm` (`sign-in` · `social` · `sign-up` · `magic-link` ·
114
120
  `email-code` · `sso` · `forgot-password` · `reset-password`). Proveedores con `authProviders([...])`
package/package.json CHANGED
@@ -1,187 +1,188 @@
1
- {
2
- "name": "orbital-ds",
3
- "version": "0.29.1",
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
- "./dist/lib/echarts-setup.js"
19
- ],
20
- "files": [
21
- "dist",
22
- "scripts/doctor.mjs",
23
- "contract.json",
24
- "components.manifest.json",
25
- "docs",
26
- "AGENTS.md",
27
- "README.md",
28
- "LICENSE",
29
- "scripts/init.mjs",
30
- "scripts/cli.mjs",
31
- "scripts/skill.mjs",
32
- "skill",
33
- "scripts/manifest.mjs",
34
- "scripts/brand-core.mjs",
35
- "scripts/brand-core.d.mts",
36
- "scripts/setup.mjs",
37
- "scripts/brand-file.mjs",
38
- "scripts/i18n.mjs"
39
- ],
40
- "exports": {
41
- "./styles.css": "./dist/styles.css",
42
- "./motion.css": "./dist/motion.css",
43
- "./themes/*.css": "./dist/themes/*.css",
44
- "./themes/*.md": "./dist/themes/*.md",
45
- "./themes/*.meta.json": "./dist/themes/*.meta.json",
46
- "./themes/*.tokens.json": "./dist/themes/*.tokens.json",
47
- "./ui/*": {
48
- "types": "./dist/ui/*.d.ts",
49
- "import": "./dist/ui/*.js"
50
- },
51
- "./lib/*": {
52
- "types": "./dist/lib/*.d.ts",
53
- "import": "./dist/lib/*.js"
54
- },
55
- "./hooks/*": {
56
- "types": "./dist/hooks/*.d.ts",
57
- "import": "./dist/hooks/*.js"
58
- },
59
- "./brand": {
60
- "types": "./scripts/brand-core.d.mts",
61
- "import": "./scripts/brand-core.mjs"
62
- },
63
- "./package.json": "./package.json",
64
- "./contract.json": "./contract.json",
65
- "./components.manifest.json": "./components.manifest.json"
66
- },
67
- "scripts": {
68
- "build": "tsup && node scripts/build-css.mjs",
69
- "dev": "tsup --watch --onSuccess \"node scripts/copy-css.mjs\"",
70
- "typecheck": "tsc --noEmit",
71
- "verify": "pnpm check:ds && pnpm typecheck && pnpm showcase:typecheck && pnpm build && pnpm check:bundle && pnpm check:charts && pnpm check:pack",
72
- "manifest": "node scripts/manifest.mjs",
73
- "check:ds": "node scripts/doctor.mjs",
74
- "check:bundle": "node scripts/check-bundle.mjs",
75
- "check:charts": "node scripts/check-charts.mjs",
76
- "check:pack": "node scripts/check-pack.mjs",
77
- "prepublishOnly": "pnpm verify",
78
- "showcase": "vite --config showcase/vite.config.ts",
79
- "showcase:build": "vite build --config showcase/vite.config.ts",
80
- "showcase:typecheck": "tsc --noEmit -p showcase"
81
- },
82
- "peerDependencies": {
83
- "@base-ui/react": ">=1.9",
84
- "@shadcn/react": ">=0.3",
85
- "class-variance-authority": ">=0.7",
86
- "clsx": ">=2",
87
- "cmdk": ">=1.1",
88
- "date-fns": ">=4",
89
- "embla-carousel-react": ">=8.6",
90
- "input-otp": ">=1.5",
91
- "lucide-react": ">=0.400",
92
- "motion": ">=12",
93
- "next-themes": ">=0.4",
94
- "react": ">=19",
95
- "react-day-picker": ">=10",
96
- "react-dom": ">=19",
97
- "react-resizable-panels": ">=4",
98
- "recharts": ">=3",
99
- "sonner": ">=2",
100
- "tailwind-merge": ">=3",
101
- "tailwindcss": ">=4.1",
102
- "tw-animate-css": ">=1.3",
103
- "echarts": ">=6",
104
- "@tanstack/react-table": ">=9"
105
- },
106
- "peerDependenciesMeta": {
107
- "next-themes": {
108
- "optional": true
109
- },
110
- "recharts": {
111
- "optional": true
112
- },
113
- "sonner": {
114
- "optional": true
115
- },
116
- "@shadcn/react": {
117
- "optional": true
118
- },
119
- "cmdk": {
120
- "optional": true
121
- },
122
- "date-fns": {
123
- "optional": true
124
- },
125
- "embla-carousel-react": {
126
- "optional": true
127
- },
128
- "input-otp": {
129
- "optional": true
130
- },
131
- "react-day-picker": {
132
- "optional": true
133
- },
134
- "react-resizable-panels": {
135
- "optional": true
136
- },
137
- "motion": {
138
- "optional": true
139
- },
140
- "echarts": {
141
- "optional": true
142
- },
143
- "@tanstack/react-table": {
144
- "optional": true
145
- }
146
- },
147
- "devDependencies": {
148
- "@base-ui/react": "^1.9.0",
149
- "@shadcn/react": "^0.3.1",
150
- "@tailwindcss/vite": "^4.3.3",
151
- "@tanstack/react-table": "^9.2.8",
152
- "@types/react": "^19.2.0",
153
- "@types/react-dom": "^19.2.0",
154
- "@vitejs/plugin-react": "^6.1.2",
155
- "class-variance-authority": "^0.7.1",
156
- "clsx": "^2.1.1",
157
- "cmdk": "^1.1.1",
158
- "date-fns": "^4.4.0",
159
- "echarts": "^6.1.0",
160
- "embla-carousel-react": "^8.6.0",
161
- "input-otp": "^1.5.0",
162
- "lucide-react": "^0.577.0",
163
- "motion": "^14.1.0",
164
- "next-themes": "^0.4.6",
165
- "react": "^19.2.0",
166
- "react-day-picker": "^10.0.2",
167
- "react-dom": "^19.2.0",
168
- "react-resizable-panels": "^4.14.4",
169
- "recharts": "3.8.0",
170
- "sonner": "^2.0.8",
171
- "tailwind-merge": "^3.0.2",
172
- "tailwindcss": "^4.1.18",
173
- "tsup": "^8.5.0",
174
- "tw-animate-css": "^1.3.6",
175
- "typescript": "^5.9.0",
176
- "vite": "^8.3.4"
177
- },
178
- "bin": {
179
- "orbital-ds": "./scripts/cli.mjs",
180
- "orbital-ds-doctor": "./scripts/doctor.mjs",
181
- "orbital-ds-init": "./scripts/init.mjs",
182
- "orbital-ds-i18n": "./scripts/i18n.mjs"
183
- },
184
- "dependencies": {
185
- "@clack/prompts": "^1.8.1"
186
- }
187
- }
1
+ {
2
+ "name": "orbital-ds",
3
+ "version": "0.30.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
+ "./dist/lib/echarts-setup.js"
19
+ ],
20
+ "files": [
21
+ "dist",
22
+ "scripts/doctor.mjs",
23
+ "contract.json",
24
+ "components.manifest.json",
25
+ "docs",
26
+ "AGENTS.md",
27
+ "README.md",
28
+ "LICENSE",
29
+ "scripts/init.mjs",
30
+ "scripts/cli.mjs",
31
+ "scripts/skill.mjs",
32
+ "skill",
33
+ "scripts/manifest.mjs",
34
+ "scripts/brand-core.mjs",
35
+ "scripts/brand-core.d.mts",
36
+ "scripts/setup.mjs",
37
+ "scripts/brand-file.mjs",
38
+ "scripts/i18n.mjs"
39
+ ],
40
+ "exports": {
41
+ "./styles.css": "./dist/styles.css",
42
+ "./motion.css": "./dist/motion.css",
43
+ "./themes/*.css": "./dist/themes/*.css",
44
+ "./themes/*.md": "./dist/themes/*.md",
45
+ "./themes/*.meta.json": "./dist/themes/*.meta.json",
46
+ "./themes/*.tokens.json": "./dist/themes/*.tokens.json",
47
+ "./ui/*": {
48
+ "types": "./dist/ui/*.d.ts",
49
+ "import": "./dist/ui/*.js"
50
+ },
51
+ "./lib/*": {
52
+ "types": "./dist/lib/*.d.ts",
53
+ "import": "./dist/lib/*.js"
54
+ },
55
+ "./hooks/*": {
56
+ "types": "./dist/hooks/*.d.ts",
57
+ "import": "./dist/hooks/*.js"
58
+ },
59
+ "./brand": {
60
+ "types": "./scripts/brand-core.d.mts",
61
+ "import": "./scripts/brand-core.mjs"
62
+ },
63
+ "./package.json": "./package.json",
64
+ "./contract.json": "./contract.json",
65
+ "./components.manifest.json": "./components.manifest.json"
66
+ },
67
+ "scripts": {
68
+ "build": "tsup && node scripts/build-css.mjs",
69
+ "dev": "tsup --watch --onSuccess \"node scripts/copy-css.mjs\"",
70
+ "typecheck": "tsc --noEmit",
71
+ "verify": "pnpm check:ds && pnpm check:neutral && pnpm typecheck && pnpm showcase:typecheck && pnpm build && pnpm check:bundle && pnpm check:charts && pnpm check:pack",
72
+ "manifest": "node scripts/manifest.mjs",
73
+ "check:ds": "node scripts/doctor.mjs",
74
+ "check:bundle": "node scripts/check-bundle.mjs",
75
+ "check:charts": "node scripts/check-charts.mjs",
76
+ "check:neutral": "node scripts/neutral.mjs --check",
77
+ "check:pack": "node scripts/check-pack.mjs",
78
+ "prepublishOnly": "pnpm verify",
79
+ "showcase": "vite --config showcase/vite.config.ts",
80
+ "showcase:build": "vite build --config showcase/vite.config.ts",
81
+ "showcase:typecheck": "tsc --noEmit -p showcase"
82
+ },
83
+ "peerDependencies": {
84
+ "@base-ui/react": ">=1.9",
85
+ "@shadcn/react": ">=0.3",
86
+ "class-variance-authority": ">=0.7",
87
+ "clsx": ">=2",
88
+ "cmdk": ">=1.1",
89
+ "date-fns": ">=4",
90
+ "embla-carousel-react": ">=8.6",
91
+ "input-otp": ">=1.5",
92
+ "lucide-react": ">=0.400",
93
+ "motion": ">=12",
94
+ "next-themes": ">=0.4",
95
+ "react": ">=19",
96
+ "react-day-picker": ">=10",
97
+ "react-dom": ">=19",
98
+ "react-resizable-panels": ">=4",
99
+ "recharts": ">=3",
100
+ "sonner": ">=2",
101
+ "tailwind-merge": ">=3",
102
+ "tailwindcss": ">=4.1",
103
+ "tw-animate-css": ">=1.3",
104
+ "echarts": ">=6",
105
+ "@tanstack/react-table": ">=9"
106
+ },
107
+ "peerDependenciesMeta": {
108
+ "next-themes": {
109
+ "optional": true
110
+ },
111
+ "recharts": {
112
+ "optional": true
113
+ },
114
+ "sonner": {
115
+ "optional": true
116
+ },
117
+ "@shadcn/react": {
118
+ "optional": true
119
+ },
120
+ "cmdk": {
121
+ "optional": true
122
+ },
123
+ "date-fns": {
124
+ "optional": true
125
+ },
126
+ "embla-carousel-react": {
127
+ "optional": true
128
+ },
129
+ "input-otp": {
130
+ "optional": true
131
+ },
132
+ "react-day-picker": {
133
+ "optional": true
134
+ },
135
+ "react-resizable-panels": {
136
+ "optional": true
137
+ },
138
+ "motion": {
139
+ "optional": true
140
+ },
141
+ "echarts": {
142
+ "optional": true
143
+ },
144
+ "@tanstack/react-table": {
145
+ "optional": true
146
+ }
147
+ },
148
+ "devDependencies": {
149
+ "@base-ui/react": "^1.9.0",
150
+ "@shadcn/react": "^0.3.1",
151
+ "@tailwindcss/vite": "^4.3.3",
152
+ "@tanstack/react-table": "^9.2.8",
153
+ "@types/react": "^19.2.0",
154
+ "@types/react-dom": "^19.2.0",
155
+ "@vitejs/plugin-react": "^6.1.2",
156
+ "class-variance-authority": "^0.7.1",
157
+ "clsx": "^2.1.1",
158
+ "cmdk": "^1.1.1",
159
+ "date-fns": "^4.4.0",
160
+ "echarts": "^6.1.0",
161
+ "embla-carousel-react": "^8.6.0",
162
+ "input-otp": "^1.5.0",
163
+ "lucide-react": "^0.577.0",
164
+ "motion": "^14.1.0",
165
+ "next-themes": "^0.4.6",
166
+ "react": "^19.2.0",
167
+ "react-day-picker": "^10.0.2",
168
+ "react-dom": "^19.2.0",
169
+ "react-resizable-panels": "^4.14.4",
170
+ "recharts": "3.8.0",
171
+ "sonner": "^2.0.8",
172
+ "tailwind-merge": "^3.0.2",
173
+ "tailwindcss": "^4.1.18",
174
+ "tsup": "^8.5.0",
175
+ "tw-animate-css": "^1.3.6",
176
+ "typescript": "^5.9.0",
177
+ "vite": "^8.3.4"
178
+ },
179
+ "bin": {
180
+ "orbital-ds": "./scripts/cli.mjs",
181
+ "orbital-ds-doctor": "./scripts/doctor.mjs",
182
+ "orbital-ds-init": "./scripts/init.mjs",
183
+ "orbital-ds-i18n": "./scripts/i18n.mjs"
184
+ },
185
+ "dependencies": {
186
+ "@clack/prompts": "^1.8.1"
187
+ }
188
+ }