@hanzo/ui 8.0.16 → 8.0.18

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 hanzo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,120 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var v5 = require('@hanzogui/config/v5');
7
+ var gui = require('@hanzo/gui');
8
+
9
+ // src/gui-config.ts
10
+ var GEIST = "'Geist', system-ui, -apple-system, sans-serif";
11
+ var FONT_SIZE = {
12
+ 1: 11,
13
+ 2: 13,
14
+ 3: 14,
15
+ 4: 15,
16
+ 5: 15,
17
+ 6: 17,
18
+ 7: 21,
19
+ 8: 26,
20
+ 9: 26,
21
+ 10: 32,
22
+ 11: 40,
23
+ 12: 48,
24
+ 13: 56,
25
+ 14: 64,
26
+ 15: 80,
27
+ 16: 96,
28
+ true: 14
29
+ };
30
+ var LINE_HEIGHT = {
31
+ 1: 16,
32
+ 2: 18,
33
+ 3: 20,
34
+ 4: 22,
35
+ 5: 22,
36
+ 6: 24,
37
+ 7: 28,
38
+ 8: 32,
39
+ 9: 32,
40
+ 10: 38,
41
+ 11: 46,
42
+ 12: 54,
43
+ 13: 62,
44
+ 14: 70,
45
+ 15: 86,
46
+ 16: 102,
47
+ true: 20
48
+ };
49
+ var RADIUS = {
50
+ 0: 0,
51
+ 1: 6,
52
+ 2: 6,
53
+ 3: 8,
54
+ 4: 8,
55
+ 5: 12,
56
+ 6: 12,
57
+ 7: 12,
58
+ 8: 12,
59
+ 9: 12,
60
+ 10: 9999,
61
+ 11: 9999,
62
+ 12: 9999,
63
+ true: 8
64
+ };
65
+ var STEP = {
66
+ "0": 0,
67
+ "0.25": 1,
68
+ "0.5": 2,
69
+ "0.75": 3,
70
+ "1": 4,
71
+ "1.5": 6,
72
+ "2": 8,
73
+ "2.5": 10,
74
+ "3": 12,
75
+ "3.5": 14,
76
+ "4": 16,
77
+ "4.5": 20,
78
+ "5": 24,
79
+ "6": 32,
80
+ "7": 40,
81
+ "8": 48,
82
+ "9": 56,
83
+ "10": 64,
84
+ "11": 80,
85
+ "12": 96,
86
+ "13": 112,
87
+ "14": 128,
88
+ "15": 144,
89
+ "16": 160,
90
+ "17": 160,
91
+ "18": 176,
92
+ "19": 192,
93
+ "20": 208
94
+ };
95
+ var space = {};
96
+ for (const [k, v] of Object.entries(STEP)) {
97
+ space[`$${k}`] = v;
98
+ space[`-${k}`] = -v;
99
+ }
100
+ space.$true = STEP["4"];
101
+ space["-true"] = -16;
102
+ var config = gui.createGui({
103
+ ...v5.defaultConfig,
104
+ tokens: {
105
+ ...v5.defaultConfig.tokens,
106
+ radius: RADIUS,
107
+ space
108
+ },
109
+ fonts: {
110
+ ...v5.defaultConfig.fonts,
111
+ body: { ...v5.defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
112
+ heading: { ...v5.defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT }
113
+ }
114
+ });
115
+ var gui_config_default = config;
116
+
117
+ exports.config = config;
118
+ exports.default = gui_config_default;
119
+ //# sourceMappingURL=gui-config.cjs.map
120
+ //# sourceMappingURL=gui-config.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/gui-config.ts"],"names":["createGui","defaultConfig"],"mappings":";;;;;;;;AA8BA,IAAM,KAAA,GAAQ,+CAAA;AAMd,IAAM,SAAA,GAAY;AAAA,EAChB,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,IAAA,EAAM;AACR,CAAA;AAKA,IAAM,WAAA,GAAc;AAAA,EAClB,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,EAAA,EAAI,EAAA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import { defaultConfig } from '@hanzogui/config/v5'\nimport { createGui } from '@hanzo/gui'\n\n// ─────────────────────────────────────────────────────────────────────────────\n// THE ONE SCALE — shared, because a second app that copied it would fork it.\n//\n// This lived in the console's own gui.config.ts. The moment a second Hanzo admin\n// exists (the dedicated Hanzo Social app), a private scale is a scale that drifts:\n// the two products would render @hanzo/ui/product components at different sizes,\n// radii and spacing. So the scale ships WITH the components.\n//\n// Three scales used to disagree. `app/design/typography.css` declared the\n// intended compact register (11/13/14/15/17/21/26 — the linear.app density);\n// @hanzo/gui's Tamagui `$N` ladder is what components actually TYPE (thousands\n// of `fontSize=\"$N\"` call sites); and the rendered result was TEN distinct\n// sizes, including 217 nodes at the retired 16px base and 30 at 10px, while the\n// intended 11px label size rendered NOWHERE.\n//\n// The ladder is exactly why we do not edit thousands of call sites: REMAP IT\n// ONCE and every surface lands on the design scale. So this file is the single\n// place the console's type, radius and spacing scales are defined —\n// `app/design/*.css` declares them for CSS consumers, this maps the `$N` tokens\n// onto the same numbers for the component layer. Change a value here, the whole\n// product moves. Adding a fourth spelling of a size is the thing to refuse.\n//\n// Canonical face: Geist Sans for UI, Geist Mono for anything numeric/code/id\n// (`.hz-mono`). The host self-hosts both faces (its own fonts.css) — this only\n// names them.\n// ─────────────────────────────────────────────────────────────────────────────\n\nconst GEIST = \"'Geist', system-ui, -apple-system, sans-serif\"\n\n/** Type — SIX sizes in the app, matching the host's `--text-*` design tokens.\n * $1 label · $2 nav + dense body · $3 base · $4/$5 emphasis · $6 section head ·\n * $7 page title · $8+ display. `$5` collapses onto 15 to retire the 16px base\n * (217 stray nodes); `$9` collapses onto 26 so a page title has ONE size. */\nconst FONT_SIZE = {\n 1: 11,\n 2: 13,\n 3: 14,\n 4: 15,\n 5: 15,\n 6: 17,\n 7: 21,\n 8: 26,\n 9: 26,\n 10: 32,\n 11: 40,\n 12: 48,\n 13: 56,\n 14: 64,\n 15: 80,\n 16: 96,\n true: 14,\n} as const\n\n/** Leading, paired 1:1 with the sizes above. A size token carries a line-height\n * tuned for ONE line, so these track the type scale rather than the inherited\n * ladder, which left an 11px label sitting in an 18px box. */\nconst LINE_HEIGHT = {\n 1: 16,\n 2: 18,\n 3: 20,\n 4: 22,\n 5: 22,\n 6: 24,\n 7: 28,\n 8: 32,\n 9: 32,\n 10: 38,\n 11: 46,\n 12: 54,\n 13: 62,\n 14: 70,\n 15: 86,\n 16: 102,\n true: 20,\n} as const\n\n/** Radius — FOUR values, no more. 6 control · 8 input/row · 12 panel · pill.\n * The inherited ladder had thirteen spellings rendering ten values, including\n * three different spellings of \"pill\" (`{999}`, `{99}`, `$10`). `$10`+ IS the\n * pill, so the 115 `rounded=\"$10\"` call sites finally mean one thing. */\nconst RADIUS = {\n 0: 0,\n 1: 6,\n 2: 6,\n 3: 8,\n 4: 8,\n 5: 12,\n 6: 12,\n 7: 12,\n 8: 12,\n 9: 12,\n 10: 9999,\n 11: 9999,\n 12: 9999,\n true: 8,\n} as const\n\n/** Spacing — the 4px ramp, and only the 4px ramp. The inherited ladder landed on\n * odd pixels belonging to no scale: `$2`=7, `$3`=13, `$4`=18 were the three\n * most-rendered paddings in the whole app. Mirrored into negative steps because\n * Tamagui resolves `-$3` from this same map. */\nconst STEP: Record<string, number> = {\n '0': 0,\n '0.25': 1,\n '0.5': 2,\n '0.75': 3,\n '1': 4,\n '1.5': 6,\n '2': 8,\n '2.5': 10,\n '3': 12,\n '3.5': 14,\n '4': 16,\n '4.5': 20,\n '5': 24,\n '6': 32,\n '7': 40,\n '8': 48,\n '9': 56,\n '10': 64,\n '11': 80,\n '12': 96,\n '13': 112,\n '14': 128,\n '15': 144,\n '16': 160,\n '17': 160,\n '18': 176,\n '19': 192,\n '20': 208,\n}\n\nconst space: Record<string, number> = {}\nfor (const [k, v] of Object.entries(STEP)) {\n space[`$${k}`] = v\n space[`-${k}`] = -v\n}\nspace.$true = STEP['4']\nspace['-true'] = -STEP['4']\n\nexport const config = createGui({\n ...defaultConfig,\n tokens: {\n ...defaultConfig.tokens,\n radius: RADIUS,\n space,\n },\n fonts: {\n ...defaultConfig.fonts,\n body: { ...defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },\n heading: { ...defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },\n },\n})\n\nexport default config\n\nexport type Conf = typeof config\n"]}
@@ -0,0 +1,587 @@
1
+ export declare const config: import("@hanzogui/web").GuiInternalConfig<{
2
+ radius: {
3
+ readonly 0: 0;
4
+ readonly 1: 6;
5
+ readonly 2: 6;
6
+ readonly 3: 8;
7
+ readonly 4: 8;
8
+ readonly 5: 12;
9
+ readonly 6: 12;
10
+ readonly 7: 12;
11
+ readonly 8: 12;
12
+ readonly 9: 12;
13
+ readonly 10: 9999;
14
+ readonly 11: 9999;
15
+ readonly 12: 9999;
16
+ readonly true: 8;
17
+ };
18
+ space: Record<string, number>;
19
+ zIndex: {
20
+ 0: number;
21
+ 1: number;
22
+ 2: number;
23
+ 3: number;
24
+ 4: number;
25
+ 5: number;
26
+ };
27
+ size: {
28
+ $0: number;
29
+ "$0.25": number;
30
+ "$0.5": number;
31
+ "$0.75": number;
32
+ $1: number;
33
+ "$1.5": number;
34
+ $2: number;
35
+ "$2.5": number;
36
+ $3: number;
37
+ "$3.5": number;
38
+ $4: number;
39
+ $true: number;
40
+ "$4.5": number;
41
+ $5: number;
42
+ $6: number;
43
+ $7: number;
44
+ $8: number;
45
+ $9: number;
46
+ $10: number;
47
+ $11: number;
48
+ $12: number;
49
+ $13: number;
50
+ $14: number;
51
+ $15: number;
52
+ $16: number;
53
+ $17: number;
54
+ $18: number;
55
+ $19: number;
56
+ $20: number;
57
+ };
58
+ }, import("@hanzogui/config/v5").V5Themes, {
59
+ text: "textAlign";
60
+ b: "bottom";
61
+ bg: "backgroundColor";
62
+ content: "alignContent";
63
+ grow: "flexGrow";
64
+ items: "alignItems";
65
+ justify: "justifyContent";
66
+ l: "left";
67
+ m: "margin";
68
+ maxH: "maxHeight";
69
+ maxW: "maxWidth";
70
+ mb: "marginBottom";
71
+ minH: "minHeight";
72
+ minW: "minWidth";
73
+ ml: "marginLeft";
74
+ mr: "marginRight";
75
+ mt: "marginTop";
76
+ mx: "marginHorizontal";
77
+ my: "marginVertical";
78
+ p: "padding";
79
+ pb: "paddingBottom";
80
+ pl: "paddingLeft";
81
+ pr: "paddingRight";
82
+ pt: "paddingTop";
83
+ px: "paddingHorizontal";
84
+ py: "paddingVertical";
85
+ r: "right";
86
+ rounded: "borderRadius";
87
+ select: "userSelect";
88
+ self: "alignSelf";
89
+ shrink: "flexShrink";
90
+ t: "top";
91
+ z: "zIndex";
92
+ }, {
93
+ readonly touchable: {
94
+ pointer: string;
95
+ };
96
+ readonly hoverable: {
97
+ hover: string;
98
+ };
99
+ readonly 'max-xxl': {
100
+ readonly maxWidth: number;
101
+ };
102
+ readonly 'max-xl': {
103
+ readonly maxWidth: number;
104
+ };
105
+ readonly 'max-lg': {
106
+ readonly maxWidth: number;
107
+ };
108
+ readonly 'max-md': {
109
+ readonly maxWidth: number;
110
+ };
111
+ readonly 'max-sm': {
112
+ readonly maxWidth: number;
113
+ };
114
+ readonly 'max-xs': {
115
+ readonly maxWidth: number;
116
+ };
117
+ readonly 'max-xxs': {
118
+ readonly maxWidth: number;
119
+ };
120
+ readonly 'max-xxxs': {
121
+ readonly maxWidth: number;
122
+ };
123
+ readonly 'max-200': {
124
+ readonly maxWidth: number;
125
+ };
126
+ readonly 'max-100': {
127
+ readonly maxWidth: number;
128
+ };
129
+ readonly xxxs: {
130
+ readonly minWidth: number;
131
+ };
132
+ readonly xxs: {
133
+ readonly minWidth: number;
134
+ };
135
+ readonly xs: {
136
+ readonly minWidth: number;
137
+ };
138
+ readonly sm: {
139
+ readonly minWidth: number;
140
+ };
141
+ readonly md: {
142
+ readonly minWidth: number;
143
+ };
144
+ readonly lg: {
145
+ readonly minWidth: number;
146
+ };
147
+ readonly xl: {
148
+ readonly minWidth: number;
149
+ };
150
+ readonly xxl: {
151
+ readonly minWidth: number;
152
+ };
153
+ readonly 'max-height-lg': {
154
+ readonly maxHeight: number;
155
+ };
156
+ readonly 'max-height-md': {
157
+ readonly maxHeight: number;
158
+ };
159
+ readonly 'max-height-sm': {
160
+ readonly maxHeight: number;
161
+ };
162
+ readonly 'max-height-xs': {
163
+ readonly maxHeight: number;
164
+ };
165
+ readonly 'max-height-xxs': {
166
+ readonly maxHeight: number;
167
+ };
168
+ readonly 'max-height-xxxs': {
169
+ readonly maxHeight: number;
170
+ };
171
+ readonly 'max-height-200': {
172
+ readonly maxHeight: number;
173
+ };
174
+ readonly 'max-height-100': {
175
+ readonly maxHeight: number;
176
+ };
177
+ readonly 'height-sm': {
178
+ readonly minHeight: number;
179
+ };
180
+ readonly 'height-md': {
181
+ readonly minHeight: number;
182
+ };
183
+ readonly 'height-lg': {
184
+ readonly minHeight: number;
185
+ };
186
+ }, {}, {
187
+ body: {
188
+ family: string;
189
+ size: {
190
+ readonly 1: 11;
191
+ readonly 2: 13;
192
+ readonly 3: 14;
193
+ readonly 4: 15;
194
+ readonly 5: 15;
195
+ readonly 6: 17;
196
+ readonly 7: 21;
197
+ readonly 8: 26;
198
+ readonly 9: 26;
199
+ readonly 10: 32;
200
+ readonly 11: 40;
201
+ readonly 12: 48;
202
+ readonly 13: 56;
203
+ readonly 14: 64;
204
+ readonly 15: 80;
205
+ readonly 16: 96;
206
+ readonly true: 14;
207
+ };
208
+ lineHeight: {
209
+ readonly 1: 16;
210
+ readonly 2: 18;
211
+ readonly 3: 20;
212
+ readonly 4: 22;
213
+ readonly 5: 22;
214
+ readonly 6: 24;
215
+ readonly 7: 28;
216
+ readonly 8: 32;
217
+ readonly 9: 32;
218
+ readonly 10: 38;
219
+ readonly 11: 46;
220
+ readonly 12: 54;
221
+ readonly 13: 62;
222
+ readonly 14: 70;
223
+ readonly 15: 86;
224
+ readonly 16: 102;
225
+ readonly true: 20;
226
+ };
227
+ weight: {
228
+ 1: any;
229
+ 5: any;
230
+ 7: any;
231
+ 12: any;
232
+ 2: any;
233
+ 3: any;
234
+ 16: any;
235
+ 4: any;
236
+ 6: any;
237
+ true: any;
238
+ 10: any;
239
+ 8: any;
240
+ 11: any;
241
+ 9: any;
242
+ 15: any;
243
+ 14: any;
244
+ 13: any;
245
+ };
246
+ letterSpacing: {
247
+ 1: any;
248
+ 5: any;
249
+ 7: any;
250
+ 12: any;
251
+ 2: any;
252
+ 3: any;
253
+ 16: any;
254
+ 4: any;
255
+ 6: any;
256
+ true: any;
257
+ 10: any;
258
+ 8: any;
259
+ 11: any;
260
+ 9: any;
261
+ 15: any;
262
+ 14: any;
263
+ 13: any;
264
+ };
265
+ style: {
266
+ 1: any;
267
+ 5: any;
268
+ 7: any;
269
+ 12: any;
270
+ 2: any;
271
+ 3: any;
272
+ 16: any;
273
+ 4: any;
274
+ 6: any;
275
+ true: any;
276
+ 10: any;
277
+ 8: any;
278
+ 11: any;
279
+ 9: any;
280
+ 15: any;
281
+ 14: any;
282
+ 13: any;
283
+ };
284
+ transform: {
285
+ 1: any;
286
+ 5: any;
287
+ 7: any;
288
+ 12: any;
289
+ 2: any;
290
+ 3: any;
291
+ 16: any;
292
+ 4: any;
293
+ 6: any;
294
+ true: any;
295
+ 10: any;
296
+ 8: any;
297
+ 11: any;
298
+ 9: any;
299
+ 15: any;
300
+ 14: any;
301
+ 13: any;
302
+ };
303
+ color: {
304
+ 1: any;
305
+ 5: any;
306
+ 7: any;
307
+ 12: any;
308
+ 2: any;
309
+ 3: any;
310
+ 16: any;
311
+ 4: any;
312
+ 6: any;
313
+ true: any;
314
+ 10: any;
315
+ 8: any;
316
+ 11: any;
317
+ 9: any;
318
+ 15: any;
319
+ 14: any;
320
+ 13: any;
321
+ };
322
+ face: Partial<Partial<{
323
+ bold: {
324
+ normal?: string;
325
+ italic?: string;
326
+ };
327
+ normal: {
328
+ normal?: string;
329
+ italic?: string;
330
+ };
331
+ 100: {
332
+ normal?: string;
333
+ italic?: string;
334
+ };
335
+ 500: {
336
+ normal?: string;
337
+ italic?: string;
338
+ };
339
+ 700: {
340
+ normal?: string;
341
+ italic?: string;
342
+ };
343
+ 200: {
344
+ normal?: string;
345
+ italic?: string;
346
+ };
347
+ 300: {
348
+ normal?: string;
349
+ italic?: string;
350
+ };
351
+ 400: {
352
+ normal?: string;
353
+ italic?: string;
354
+ };
355
+ 600: {
356
+ normal?: string;
357
+ italic?: string;
358
+ };
359
+ 800: {
360
+ normal?: string;
361
+ italic?: string;
362
+ };
363
+ 900: {
364
+ normal?: string;
365
+ italic?: string;
366
+ };
367
+ }> | undefined>;
368
+ };
369
+ heading: {
370
+ family: string;
371
+ size: {
372
+ readonly 1: 11;
373
+ readonly 2: 13;
374
+ readonly 3: 14;
375
+ readonly 4: 15;
376
+ readonly 5: 15;
377
+ readonly 6: 17;
378
+ readonly 7: 21;
379
+ readonly 8: 26;
380
+ readonly 9: 26;
381
+ readonly 10: 32;
382
+ readonly 11: 40;
383
+ readonly 12: 48;
384
+ readonly 13: 56;
385
+ readonly 14: 64;
386
+ readonly 15: 80;
387
+ readonly 16: 96;
388
+ readonly true: 14;
389
+ };
390
+ lineHeight: {
391
+ readonly 1: 16;
392
+ readonly 2: 18;
393
+ readonly 3: 20;
394
+ readonly 4: 22;
395
+ readonly 5: 22;
396
+ readonly 6: 24;
397
+ readonly 7: 28;
398
+ readonly 8: 32;
399
+ readonly 9: 32;
400
+ readonly 10: 38;
401
+ readonly 11: 46;
402
+ readonly 12: 54;
403
+ readonly 13: 62;
404
+ readonly 14: 70;
405
+ readonly 15: 86;
406
+ readonly 16: 102;
407
+ readonly true: 20;
408
+ };
409
+ weight: {
410
+ 1: any;
411
+ 5: any;
412
+ 7: any;
413
+ 12: any;
414
+ 2: any;
415
+ 3: any;
416
+ 16: any;
417
+ 4: any;
418
+ 6: any;
419
+ true: any;
420
+ 10: any;
421
+ 8: any;
422
+ 11: any;
423
+ 9: any;
424
+ 15: any;
425
+ 14: any;
426
+ 13: any;
427
+ };
428
+ letterSpacing: {
429
+ 1: any;
430
+ 5: any;
431
+ 7: any;
432
+ 12: any;
433
+ 2: any;
434
+ 3: any;
435
+ 16: any;
436
+ 4: any;
437
+ 6: any;
438
+ true: any;
439
+ 10: any;
440
+ 8: any;
441
+ 11: any;
442
+ 9: any;
443
+ 15: any;
444
+ 14: any;
445
+ 13: any;
446
+ };
447
+ style: {
448
+ 1: any;
449
+ 5: any;
450
+ 7: any;
451
+ 12: any;
452
+ 2: any;
453
+ 3: any;
454
+ 16: any;
455
+ 4: any;
456
+ 6: any;
457
+ true: any;
458
+ 10: any;
459
+ 8: any;
460
+ 11: any;
461
+ 9: any;
462
+ 15: any;
463
+ 14: any;
464
+ 13: any;
465
+ };
466
+ transform: {
467
+ 1: any;
468
+ 5: any;
469
+ 7: any;
470
+ 12: any;
471
+ 2: any;
472
+ 3: any;
473
+ 16: any;
474
+ 4: any;
475
+ 6: any;
476
+ true: any;
477
+ 10: any;
478
+ 8: any;
479
+ 11: any;
480
+ 9: any;
481
+ 15: any;
482
+ 14: any;
483
+ 13: any;
484
+ };
485
+ color: {
486
+ 1: any;
487
+ 5: any;
488
+ 7: any;
489
+ 12: any;
490
+ 2: any;
491
+ 3: any;
492
+ 16: any;
493
+ 4: any;
494
+ 6: any;
495
+ true: any;
496
+ 10: any;
497
+ 8: any;
498
+ 11: any;
499
+ 9: any;
500
+ 15: any;
501
+ 14: any;
502
+ 13: any;
503
+ };
504
+ face: Partial<Partial<{
505
+ bold: {
506
+ normal?: string;
507
+ italic?: string;
508
+ };
509
+ normal: {
510
+ normal?: string;
511
+ italic?: string;
512
+ };
513
+ 100: {
514
+ normal?: string;
515
+ italic?: string;
516
+ };
517
+ 500: {
518
+ normal?: string;
519
+ italic?: string;
520
+ };
521
+ 700: {
522
+ normal?: string;
523
+ italic?: string;
524
+ };
525
+ 200: {
526
+ normal?: string;
527
+ italic?: string;
528
+ };
529
+ 300: {
530
+ normal?: string;
531
+ italic?: string;
532
+ };
533
+ 400: {
534
+ normal?: string;
535
+ italic?: string;
536
+ };
537
+ 600: {
538
+ normal?: string;
539
+ italic?: string;
540
+ };
541
+ 800: {
542
+ normal?: string;
543
+ italic?: string;
544
+ };
545
+ 900: {
546
+ normal?: string;
547
+ italic?: string;
548
+ };
549
+ }> | undefined>;
550
+ };
551
+ }, {
552
+ mediaQueryDefaultActive: {
553
+ touchable: boolean;
554
+ hoverable: boolean;
555
+ "max-xxl": boolean;
556
+ "max-xl": boolean;
557
+ "max-lg": boolean;
558
+ "max-md": boolean;
559
+ "max-sm": boolean;
560
+ "max-xs": boolean;
561
+ "max-xxs": boolean;
562
+ "max-xxxs": boolean;
563
+ xxxs: boolean;
564
+ xxs: boolean;
565
+ xs: boolean;
566
+ sm: boolean;
567
+ md: boolean;
568
+ lg: boolean;
569
+ xl: boolean;
570
+ xxl: boolean;
571
+ "max-height-sm": boolean;
572
+ "max-height-md": boolean;
573
+ "max-height-lg": boolean;
574
+ "height-sm": boolean;
575
+ "height-md": boolean;
576
+ "height-lg": boolean;
577
+ };
578
+ defaultFont: string;
579
+ fastSchemeChange: true;
580
+ shouldAddPrefersColorThemes: true;
581
+ allowedStyleValues: "somewhat-strict-web";
582
+ addThemeClassName: "html";
583
+ onlyAllowShorthands: true;
584
+ styleCompat: "react-native";
585
+ }, "default">;
586
+ export default config;
587
+ export type Conf = typeof config;
@@ -0,0 +1,115 @@
1
+ 'use client';
2
+ import { defaultConfig } from '@hanzogui/config/v5';
3
+ import { createGui } from '@hanzo/gui';
4
+
5
+ // src/gui-config.ts
6
+ var GEIST = "'Geist', system-ui, -apple-system, sans-serif";
7
+ var FONT_SIZE = {
8
+ 1: 11,
9
+ 2: 13,
10
+ 3: 14,
11
+ 4: 15,
12
+ 5: 15,
13
+ 6: 17,
14
+ 7: 21,
15
+ 8: 26,
16
+ 9: 26,
17
+ 10: 32,
18
+ 11: 40,
19
+ 12: 48,
20
+ 13: 56,
21
+ 14: 64,
22
+ 15: 80,
23
+ 16: 96,
24
+ true: 14
25
+ };
26
+ var LINE_HEIGHT = {
27
+ 1: 16,
28
+ 2: 18,
29
+ 3: 20,
30
+ 4: 22,
31
+ 5: 22,
32
+ 6: 24,
33
+ 7: 28,
34
+ 8: 32,
35
+ 9: 32,
36
+ 10: 38,
37
+ 11: 46,
38
+ 12: 54,
39
+ 13: 62,
40
+ 14: 70,
41
+ 15: 86,
42
+ 16: 102,
43
+ true: 20
44
+ };
45
+ var RADIUS = {
46
+ 0: 0,
47
+ 1: 6,
48
+ 2: 6,
49
+ 3: 8,
50
+ 4: 8,
51
+ 5: 12,
52
+ 6: 12,
53
+ 7: 12,
54
+ 8: 12,
55
+ 9: 12,
56
+ 10: 9999,
57
+ 11: 9999,
58
+ 12: 9999,
59
+ true: 8
60
+ };
61
+ var STEP = {
62
+ "0": 0,
63
+ "0.25": 1,
64
+ "0.5": 2,
65
+ "0.75": 3,
66
+ "1": 4,
67
+ "1.5": 6,
68
+ "2": 8,
69
+ "2.5": 10,
70
+ "3": 12,
71
+ "3.5": 14,
72
+ "4": 16,
73
+ "4.5": 20,
74
+ "5": 24,
75
+ "6": 32,
76
+ "7": 40,
77
+ "8": 48,
78
+ "9": 56,
79
+ "10": 64,
80
+ "11": 80,
81
+ "12": 96,
82
+ "13": 112,
83
+ "14": 128,
84
+ "15": 144,
85
+ "16": 160,
86
+ "17": 160,
87
+ "18": 176,
88
+ "19": 192,
89
+ "20": 208
90
+ };
91
+ var space = {};
92
+ for (const [k, v] of Object.entries(STEP)) {
93
+ space[`$${k}`] = v;
94
+ space[`-${k}`] = -v;
95
+ }
96
+ space.$true = STEP["4"];
97
+ space["-true"] = -16;
98
+ var config = createGui({
99
+ ...defaultConfig,
100
+ tokens: {
101
+ ...defaultConfig.tokens,
102
+ radius: RADIUS,
103
+ space
104
+ },
105
+ fonts: {
106
+ ...defaultConfig.fonts,
107
+ body: { ...defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },
108
+ heading: { ...defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT }
109
+ }
110
+ });
111
+ var gui_config_default = config;
112
+
113
+ export { config, gui_config_default as default };
114
+ //# sourceMappingURL=gui-config.js.map
115
+ //# sourceMappingURL=gui-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/gui-config.ts"],"names":[],"mappings":";;;;AA8BA,IAAM,KAAA,GAAQ,+CAAA;AAMd,IAAM,SAAA,GAAY;AAAA,EAChB,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,IAAA,EAAM;AACR,CAAA;AAKA,IAAM,WAAA,GAAc;AAAA,EAClB,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,CAAA,EAAG,EAAA;AAAA,EACH,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,E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M,GAAA;AAAA,EACN,IAAA,EAAM,GAAA;AAAA,EACN,IAAA,EAAM,GAAA;AAAA,EACN,IAAA,EAAM,GAAA;AAAA,EACN,IAAA,EAAM;AACR,CAAA;AAEA,IAAM,QAAgC,EAAC;AACvC,KAAA,MAAW,CAAC,CAAA,EAAG,CAAC,KAAK,MAAA,CAAO,OAAA,CAAQ,IAAI,CAAA,EAAG;AACzC,EAAA,KAAA,CAAM,CAAA,CAAA,EAAI,CAAC,CAAA,CAAE,CAAA,GAAI,CAAA;AACjB,EAAA,KAAA,CAAM,CAAA,CAAA,EAAI,CAAC,CAAA,CAAE,CAAA,GAAI,CAAC,CAAA;AACpB;AACA,KAAA,CAAM,KAAA,GAAQ,KAAK,GAAG,CAAA;AACtB,KAAA,CAAM,OAAO,CAAA,GAAI,GAAS;AAEnB,IAAM,SAAS,SAAA,CAAU;AAAA,EAC9B,GAAG,aAAA;AAAA,EACH,MAAA,EAAQ;AAAA,IACN,GAAG,aAAA,CAAc,MAAA;AAAA,IACjB,MAAA,EAAQ,MAAA;AAAA,IACR;AAAA,GACF;AAAA,EACA,KAAA,EAAO;AAAA,IACL,GAAG,aAAA,CAAc,KAAA;AAAA,IACjB,IAAA,EAAM,EAAE,GAAG,aAAA,CAAc,KAAA,CAAM,IAAA,EAAM,MAAA,EAAQ,KAAA,EAAO,IAAA,EAAM,SAAA,EAAW,UAAA,EAAY,WAAA,EAAY;AAAA,IAC7F,OAAA,EAAS,EAAE,GAAG,aAAA,CAAc,KAAA,CAAM,OAAA,EAAS,MAAA,EAAQ,KAAA,EAAO,IAAA,EAAM,SAAA,EAAW,UAAA,EAAY,WAAA;AAAY;AAEvG,CAAC;AAED,IAAO,kBAAA,GAAQ","file":"gui-config.js","sourcesContent":["import { defaultConfig } from '@hanzogui/config/v5'\nimport { createGui } from '@hanzo/gui'\n\n// ─────────────────────────────────────────────────────────────────────────────\n// THE ONE SCALE — shared, because a second app that copied it would fork it.\n//\n// This lived in the console's own gui.config.ts. The moment a second Hanzo admin\n// exists (the dedicated Hanzo Social app), a private scale is a scale that drifts:\n// the two products would render @hanzo/ui/product components at different sizes,\n// radii and spacing. So the scale ships WITH the components.\n//\n// Three scales used to disagree. `app/design/typography.css` declared the\n// intended compact register (11/13/14/15/17/21/26 — the linear.app density);\n// @hanzo/gui's Tamagui `$N` ladder is what components actually TYPE (thousands\n// of `fontSize=\"$N\"` call sites); and the rendered result was TEN distinct\n// sizes, including 217 nodes at the retired 16px base and 30 at 10px, while the\n// intended 11px label size rendered NOWHERE.\n//\n// The ladder is exactly why we do not edit thousands of call sites: REMAP IT\n// ONCE and every surface lands on the design scale. So this file is the single\n// place the console's type, radius and spacing scales are defined —\n// `app/design/*.css` declares them for CSS consumers, this maps the `$N` tokens\n// onto the same numbers for the component layer. Change a value here, the whole\n// product moves. Adding a fourth spelling of a size is the thing to refuse.\n//\n// Canonical face: Geist Sans for UI, Geist Mono for anything numeric/code/id\n// (`.hz-mono`). The host self-hosts both faces (its own fonts.css) — this only\n// names them.\n// ─────────────────────────────────────────────────────────────────────────────\n\nconst GEIST = \"'Geist', system-ui, -apple-system, sans-serif\"\n\n/** Type — SIX sizes in the app, matching the host's `--text-*` design tokens.\n * $1 label · $2 nav + dense body · $3 base · $4/$5 emphasis · $6 section head ·\n * $7 page title · $8+ display. `$5` collapses onto 15 to retire the 16px base\n * (217 stray nodes); `$9` collapses onto 26 so a page title has ONE size. */\nconst FONT_SIZE = {\n 1: 11,\n 2: 13,\n 3: 14,\n 4: 15,\n 5: 15,\n 6: 17,\n 7: 21,\n 8: 26,\n 9: 26,\n 10: 32,\n 11: 40,\n 12: 48,\n 13: 56,\n 14: 64,\n 15: 80,\n 16: 96,\n true: 14,\n} as const\n\n/** Leading, paired 1:1 with the sizes above. A size token carries a line-height\n * tuned for ONE line, so these track the type scale rather than the inherited\n * ladder, which left an 11px label sitting in an 18px box. */\nconst LINE_HEIGHT = {\n 1: 16,\n 2: 18,\n 3: 20,\n 4: 22,\n 5: 22,\n 6: 24,\n 7: 28,\n 8: 32,\n 9: 32,\n 10: 38,\n 11: 46,\n 12: 54,\n 13: 62,\n 14: 70,\n 15: 86,\n 16: 102,\n true: 20,\n} as const\n\n/** Radius — FOUR values, no more. 6 control · 8 input/row · 12 panel · pill.\n * The inherited ladder had thirteen spellings rendering ten values, including\n * three different spellings of \"pill\" (`{999}`, `{99}`, `$10`). `$10`+ IS the\n * pill, so the 115 `rounded=\"$10\"` call sites finally mean one thing. */\nconst RADIUS = {\n 0: 0,\n 1: 6,\n 2: 6,\n 3: 8,\n 4: 8,\n 5: 12,\n 6: 12,\n 7: 12,\n 8: 12,\n 9: 12,\n 10: 9999,\n 11: 9999,\n 12: 9999,\n true: 8,\n} as const\n\n/** Spacing — the 4px ramp, and only the 4px ramp. The inherited ladder landed on\n * odd pixels belonging to no scale: `$2`=7, `$3`=13, `$4`=18 were the three\n * most-rendered paddings in the whole app. Mirrored into negative steps because\n * Tamagui resolves `-$3` from this same map. */\nconst STEP: Record<string, number> = {\n '0': 0,\n '0.25': 1,\n '0.5': 2,\n '0.75': 3,\n '1': 4,\n '1.5': 6,\n '2': 8,\n '2.5': 10,\n '3': 12,\n '3.5': 14,\n '4': 16,\n '4.5': 20,\n '5': 24,\n '6': 32,\n '7': 40,\n '8': 48,\n '9': 56,\n '10': 64,\n '11': 80,\n '12': 96,\n '13': 112,\n '14': 128,\n '15': 144,\n '16': 160,\n '17': 160,\n '18': 176,\n '19': 192,\n '20': 208,\n}\n\nconst space: Record<string, number> = {}\nfor (const [k, v] of Object.entries(STEP)) {\n space[`$${k}`] = v\n space[`-${k}`] = -v\n}\nspace.$true = STEP['4']\nspace['-true'] = -STEP['4']\n\nexport const config = createGui({\n ...defaultConfig,\n tokens: {\n ...defaultConfig.tokens,\n radius: RADIUS,\n space,\n },\n fonts: {\n ...defaultConfig.fonts,\n body: { ...defaultConfig.fonts.body, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },\n heading: { ...defaultConfig.fonts.heading, family: GEIST, size: FONT_SIZE, lineHeight: LINE_HEIGHT },\n },\n})\n\nexport default config\n\nexport type Conf = typeof config\n"]}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "8.0.16",
3
+ "version": "8.0.18",
4
4
  "type": "module",
5
- "description": "Hanzo UI \u2014 the one canonical, backend-flexible component library on @hanzo/gui + @hanzo/tokens. A shared design core (Hanzo dark-first tokens, Geist Sans/Mono typography) with per-backend implementations: the shadcn-compatible web surface (Radix + Tailwind, the API apps import) and the @hanzo/gui product layer (cross-platform web + native + desktop). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
5
+ "description": "Hanzo UI the one canonical, backend-flexible component library on @hanzo/gui + @hanzo/tokens. A shared design core (Hanzo dark-first tokens, Geist Sans/Mono typography) with per-backend implementations: the shadcn-compatible web surface (Radix + Tailwind, the API apps import) and the @hanzo/gui product layer (cross-platform web + native + desktop). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
6
6
  "exports": {
7
7
  ".": {
8
8
  "types": "./dist/index.d.ts",
@@ -46,6 +46,12 @@
46
46
  "require": "./dist/product/index.cjs",
47
47
  "default": "./dist/product/index.js"
48
48
  },
49
+ "./gui-config": {
50
+ "types": "./dist/gui-config.d.ts",
51
+ "import": "./dist/gui-config.js",
52
+ "require": "./dist/gui-config.cjs",
53
+ "default": "./dist/gui-config.js"
54
+ },
49
55
  "./product/social": {
50
56
  "types": "./dist/product/social/index.d.ts",
51
57
  "import": "./dist/product/social/index.js",
@@ -146,8 +152,6 @@
146
152
  ],
147
153
  "dependencies": {
148
154
  "@hanzo/logo": "^1.0.13",
149
- "@hanzo/products": "^0.2.0",
150
- "@hanzo/tokens": "^1.0.0",
151
155
  "@hanzogui/telemetry": "^0.1.0",
152
156
  "@radix-ui/react-aspect-ratio": "^1.1.8",
153
157
  "@radix-ui/react-avatar": "^1.1.11",
@@ -172,16 +176,19 @@
172
176
  "cmdk": "^1.1.1",
173
177
  "lucide-react": ">=0.456.0",
174
178
  "sonner": "^2.0.7",
175
- "tailwind-merge": "^3.5.0"
179
+ "tailwind-merge": "^3.5.0",
180
+ "@hanzo/tokens": "1.0.0",
181
+ "@hanzo/products": "0.2.0"
176
182
  },
177
183
  "peerDependencies": {
178
184
  "@hanzo/canvas": ">=0.1.0",
185
+ "@hanzo/cd": ">=0.1.0",
179
186
  "@hanzo/dashboard": ">=0.1.0",
180
187
  "@hanzo/data": ">=1.2.0",
181
- "@hanzo/cd": ">=0.1.0",
182
188
  "@hanzo/gui": ">=7.2.2",
183
189
  "@hanzo/ui-shadcn": ">=5.7.0",
184
190
  "@hanzo/usage": ">=0.1.0",
191
+ "@hanzogui/config": ">=7.3.0",
185
192
  "@hanzogui/lucide-icons-2": ">=7.3.0",
186
193
  "@hanzogui/next-theme": ">=7.3.0",
187
194
  "next-themes": ">=0.2.1",
@@ -239,5 +246,16 @@
239
246
  "access": "public"
240
247
  },
241
248
  "license": "BSD-3-Clause",
242
- "author": "Hanzo AI <dev@hanzo.ai>"
249
+ "author": "Hanzo AI <dev@hanzo.ai>",
250
+ "scripts": {
251
+ "build": "tsup && tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/hanzo-motion.css dist/styles/hanzo-motion.css && node scripts/add-use-client.mjs",
252
+ "clean": "rm -rf dist types",
253
+ "gen:primitives": "node scripts/gen-primitives.mjs",
254
+ "tc": "tsc --noEmit",
255
+ "typecheck": "tsc --noEmit",
256
+ "typecheck:ui": "tsc -p tsconfig.check.json",
257
+ "check:svelte": "svelte-check --tsconfig ./tsconfig.svelte.json",
258
+ "test": "vitest run",
259
+ "test:watch": "vitest"
260
+ }
243
261
  }