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/package.json
CHANGED
|
@@ -1,188 +1,218 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "orbital-ds",
|
|
3
|
-
"version": "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
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"react
|
|
98
|
-
"react-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"optional": true
|
|
116
|
-
},
|
|
117
|
-
"
|
|
118
|
-
"optional": true
|
|
119
|
-
},
|
|
120
|
-
"
|
|
121
|
-
"optional": true
|
|
122
|
-
},
|
|
123
|
-
"
|
|
124
|
-
"optional": true
|
|
125
|
-
},
|
|
126
|
-
"
|
|
127
|
-
"optional": true
|
|
128
|
-
},
|
|
129
|
-
"
|
|
130
|
-
"optional": true
|
|
131
|
-
},
|
|
132
|
-
"
|
|
133
|
-
"optional": true
|
|
134
|
-
},
|
|
135
|
-
"
|
|
136
|
-
"optional": true
|
|
137
|
-
},
|
|
138
|
-
"
|
|
139
|
-
"optional": true
|
|
140
|
-
},
|
|
141
|
-
"
|
|
142
|
-
"optional": true
|
|
143
|
-
},
|
|
144
|
-
"
|
|
145
|
-
"optional": true
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"@
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"@
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "orbital-ds",
|
|
3
|
+
"version": "0.35.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
|
+
"@tanstack/react-table": ">=9",
|
|
87
|
+
"class-variance-authority": ">=0.7",
|
|
88
|
+
"clsx": ">=2",
|
|
89
|
+
"cmdk": ">=1.1",
|
|
90
|
+
"date-fns": ">=4",
|
|
91
|
+
"echarts": ">=6",
|
|
92
|
+
"embla-carousel-react": ">=8.6",
|
|
93
|
+
"input-otp": ">=1.5",
|
|
94
|
+
"lucide-react": ">=0.400",
|
|
95
|
+
"motion": ">=12",
|
|
96
|
+
"next-themes": ">=0.4",
|
|
97
|
+
"react": ">=19",
|
|
98
|
+
"react-day-picker": ">=10",
|
|
99
|
+
"react-dom": ">=19",
|
|
100
|
+
"react-resizable-panels": ">=4",
|
|
101
|
+
"recharts": ">=3",
|
|
102
|
+
"sonner": ">=2",
|
|
103
|
+
"tailwind-merge": ">=3",
|
|
104
|
+
"tailwindcss": ">=4.1",
|
|
105
|
+
"tw-animate-css": ">=1.3",
|
|
106
|
+
"@tiptap/react": ">=3",
|
|
107
|
+
"@tiptap/pm": ">=3",
|
|
108
|
+
"@tiptap/core": ">=3",
|
|
109
|
+
"@tiptap/starter-kit": ">=3",
|
|
110
|
+
"@tiptap/markdown": ">=3",
|
|
111
|
+
"@tiptap/extension-placeholder": ">=3"
|
|
112
|
+
},
|
|
113
|
+
"peerDependenciesMeta": {
|
|
114
|
+
"next-themes": {
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"recharts": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"sonner": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"@shadcn/react": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"cmdk": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"date-fns": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"embla-carousel-react": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"input-otp": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"react-day-picker": {
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"react-resizable-panels": {
|
|
142
|
+
"optional": true
|
|
143
|
+
},
|
|
144
|
+
"motion": {
|
|
145
|
+
"optional": true
|
|
146
|
+
},
|
|
147
|
+
"echarts": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"@tanstack/react-table": {
|
|
151
|
+
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"@tiptap/react": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"@tiptap/pm": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"@tiptap/core": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"@tiptap/starter-kit": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"@tiptap/markdown": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"@tiptap/extension-placeholder": {
|
|
169
|
+
"optional": true
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"devDependencies": {
|
|
173
|
+
"@base-ui/react": "^1.9.0",
|
|
174
|
+
"@shadcn/react": "^0.3.1",
|
|
175
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
176
|
+
"@tanstack/react-table": "^9.2.8",
|
|
177
|
+
"@tiptap/core": "^3.33.1",
|
|
178
|
+
"@tiptap/extension-placeholder": "^3.33.1",
|
|
179
|
+
"@tiptap/markdown": "^3.33.1",
|
|
180
|
+
"@tiptap/pm": "^3.33.1",
|
|
181
|
+
"@tiptap/react": "^3.33.1",
|
|
182
|
+
"@tiptap/starter-kit": "^3.33.1",
|
|
183
|
+
"@types/react": "^19.2.0",
|
|
184
|
+
"@types/react-dom": "^19.2.0",
|
|
185
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
186
|
+
"class-variance-authority": "^0.7.1",
|
|
187
|
+
"clsx": "^2.1.1",
|
|
188
|
+
"cmdk": "^1.1.1",
|
|
189
|
+
"date-fns": "^4.4.0",
|
|
190
|
+
"echarts": "^6.1.0",
|
|
191
|
+
"embla-carousel-react": "^8.6.0",
|
|
192
|
+
"input-otp": "^1.5.0",
|
|
193
|
+
"lucide-react": "^0.577.0",
|
|
194
|
+
"motion": "^14.1.0",
|
|
195
|
+
"next-themes": "^0.4.6",
|
|
196
|
+
"react": "^19.2.0",
|
|
197
|
+
"react-day-picker": "^10.0.2",
|
|
198
|
+
"react-dom": "^19.2.0",
|
|
199
|
+
"react-resizable-panels": "^4.14.4",
|
|
200
|
+
"recharts": "3.8.0",
|
|
201
|
+
"sonner": "^2.0.8",
|
|
202
|
+
"tailwind-merge": "^3.0.2",
|
|
203
|
+
"tailwindcss": "^4.1.18",
|
|
204
|
+
"tsup": "^8.5.0",
|
|
205
|
+
"tw-animate-css": "^1.3.6",
|
|
206
|
+
"typescript": "^5.9.0",
|
|
207
|
+
"vite": "^8.3.4"
|
|
208
|
+
},
|
|
209
|
+
"bin": {
|
|
210
|
+
"orbital-ds": "./scripts/cli.mjs",
|
|
211
|
+
"orbital-ds-doctor": "./scripts/doctor.mjs",
|
|
212
|
+
"orbital-ds-init": "./scripts/init.mjs",
|
|
213
|
+
"orbital-ds-i18n": "./scripts/i18n.mjs"
|
|
214
|
+
},
|
|
215
|
+
"dependencies": {
|
|
216
|
+
"@clack/prompts": "^1.8.1"
|
|
217
|
+
}
|
|
218
|
+
}
|
package/scripts/brand-core.mjs
CHANGED
|
@@ -137,12 +137,17 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
|
|
|
137
137
|
// Foco: el primario si se ve (3:1 sobre papel y tarjeta); si no (p. ej. un amarillo), oscurecido hasta verse.
|
|
138
138
|
const foco = ratio(prim, papel) >= 3 && ratio(prim, blanco) >= 3 ? prim : ajustar(prim, -1, (c) => ratio(c, papel) >= 3 && ratio(c, blanco) >= 3) ?? enlace;
|
|
139
139
|
const enlaceHover = ajustar(enlace, -1, (c) => rgbToOklch(c).l <= rgbToOklch(enlace).l - 0.07) ?? enlace;
|
|
140
|
+
// Destino activo del lateral claro: el primario, pero visible (3:1) sobre el propio lateral y sobre blanco aunque
|
|
141
|
+
// el primario sea muy claro (amarillo, verde neón, blanco). El texto encima se recalcula contra ese tono.
|
|
142
|
+
const verSobre = (c) => ratio(c, suave) >= 3 && ratio(c, blanco) >= 3 && ratio(textoSobre(c), c) >= 4.5;
|
|
143
|
+
const activoL = verSobre(prim) ? prim : ajustar(prim, -1, verSobre) ?? enlace;
|
|
144
|
+
const activoLFg = textoSobre(activoL);
|
|
140
145
|
const brillo = oklchToRgb({ ...rgbToOklch(prim), l: Math.min(0.95, rgbToOklch(prim).l + 0.08) });
|
|
141
146
|
|
|
142
147
|
const acentoC = acento ?? secundario ?? ok(0.82, 0.16, (H + 180) % 360);
|
|
143
148
|
const claro = {
|
|
144
149
|
primary: hex(prim), 'primary-foreground': hex(primFg), ring: hex(foco), link: hex(enlace), 'link-hover': hex(enlaceHover),
|
|
145
|
-
brand: hex(prim), 'brand-bright': hex(brillo), 'sidebar-primary': hex(
|
|
150
|
+
brand: hex(prim), 'brand-bright': hex(brillo), 'sidebar-primary': hex(activoL), 'sidebar-primary-foreground': hex(activoLFg), 'sidebar-ring': hex(foco),
|
|
146
151
|
'accent-foreground': hex(tinta),
|
|
147
152
|
background: hex(papel), foreground: hex(tinta), card: '#ffffff', 'card-foreground': hex(tinta), popover: '#ffffff', 'popover-foreground': hex(tinta),
|
|
148
153
|
secondary: hex(suave), 'secondary-foreground': hex(tinta), muted: hex(suave), 'muted-foreground': rgba(tinta, 0.72),
|
|
@@ -150,6 +155,12 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
|
|
|
150
155
|
sidebar: hex(suave), 'sidebar-foreground': hex(tinta), 'sidebar-accent': '#ffffff', 'sidebar-accent-foreground': hex(tinta), 'sidebar-border': rgba(tinta, 0.26),
|
|
151
156
|
inset: hex(suave), 'inset-foreground': hex(tinta), neutral: rgba(tinta, 0.72), 'neutral-soft': rgba(tinta, 0.08),
|
|
152
157
|
};
|
|
158
|
+
// Secundario: además de la serie 2 de los gráficos, tiñe la superficie de acento (selección, resalte, activo).
|
|
159
|
+
if (secundario) {
|
|
160
|
+
const S = rgbToOklch(secundario);
|
|
161
|
+
claro.accent = hex(ok(0.93, S.c < 0.02 ? 0 : Math.min(Math.max(S.c * 0.3, 0.025), 0.06), S.h));
|
|
162
|
+
claro['accent-foreground'] = hex(tinta);
|
|
163
|
+
}
|
|
153
164
|
if (gestos) {
|
|
154
165
|
claro['ds-key-outline'] = hex(tinta); claro['ds-key-edge'] = rgba(tinta, 0.26);
|
|
155
166
|
claro['ds-marker'] = marcador ? rgba(acentoC, 0.62) : 'transparent';
|
|
@@ -173,6 +184,11 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
|
|
|
173
184
|
sidebar: hex(suaveO), 'sidebar-foreground': hex(textoO), 'sidebar-accent': hex(tarjetaO), 'sidebar-accent-foreground': hex(textoO), 'sidebar-border': rgba(textoO, 0.26),
|
|
174
185
|
inset: hex(suaveO), 'inset-foreground': hex(textoO), neutral: rgba(textoO, 0.72), 'neutral-soft': rgba(textoO, 0.1),
|
|
175
186
|
};
|
|
187
|
+
if (secundario) {
|
|
188
|
+
const S = rgbToOklch(secundario);
|
|
189
|
+
oscuro.accent = hex(ok(0.3, S.c < 0.02 ? 0 : Math.min(Math.max(S.c * 0.3, 0.03), 0.07), S.h));
|
|
190
|
+
oscuro['accent-foreground'] = hex(textoO);
|
|
191
|
+
}
|
|
176
192
|
if (gestos) {
|
|
177
193
|
oscuro['ds-key-outline'] = rgba(textoO, 0.92); oscuro['ds-key-edge'] = rgba(textoO, 0.26);
|
|
178
194
|
oscuro['ds-marker'] = marcador ? rgba(acentoC, 0.45) : 'transparent';
|
|
@@ -205,6 +221,8 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
|
|
|
205
221
|
const pares = [
|
|
206
222
|
['claro', 'texto/papel', tinta, papel, 4.5], ['claro', 'texto/tarjeta', tinta, blanco, 4.5], ['claro', 'texto sobre primario', primFg, prim, 4.5],
|
|
207
223
|
['claro', 'enlace/papel', enlace, papel, 4.5], ['claro', 'foco/papel', foco, papel, 3],
|
|
224
|
+
['claro', 'activo del lateral/lateral', activoL, suave, 3], ['claro', 'texto sobre activo del lateral', activoLFg, activoL, 4.5],
|
|
225
|
+
...(secundario ? [['claro', 'texto/acento', tinta, rgbFrom(claro.accent), 4.5], ['oscuro', 'texto/acento', textoO, rgbFrom(oscuro.accent), 4.5]] : []),
|
|
208
226
|
['oscuro', 'texto/fondo', textoO, fondoO, 4.5], ['oscuro', 'texto sobre primario', primOFg, primO, 4.5], ['oscuro', 'enlace/fondo', enlaceO, fondoO, 4.5], ['oscuro', 'foco/fondo', focoO, fondoO, 3],
|
|
209
227
|
...seriesC.map((c, i) => ['claro', `serie ${i + 1}/papel`, c, papel, 3]),
|
|
210
228
|
...seriesO.map((c, i) => ['oscuro', `serie ${i + 1}/fondo`, c, fondoO, 3]),
|
|
@@ -215,6 +233,7 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
|
|
|
215
233
|
|
|
216
234
|
/* ═══════════════════════════ API PÚBLICA (orbital-ds/brand) ═══════════════════ */
|
|
217
235
|
/** Alias en inglés de la API pública. */
|
|
236
|
+
const rgbFrom = (h) => ({ r: parseInt(h.slice(1, 3), 16), g: parseInt(h.slice(3, 5), 16), b: parseInt(h.slice(5, 7), 16) });
|
|
218
237
|
export const deriveBrand = derivar;
|
|
219
238
|
export const deriveChartSeries = derivarSeries;
|
|
220
239
|
export const contrastRatio = ratio;
|