@kbach/react 1.0.0-beta.0 → 1.0.0-beta.1

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  kb
3
- } from "./chunk-G3RJJNSY.mjs";
3
+ } from "./chunk-ROZXCQSM.mjs";
4
4
 
5
5
  // src/jsx-runtime.tsx
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -281,21 +281,53 @@ var defaultTheme = {
281
281
  ...PALETTE,
282
282
  surface: { light: "#f9fafb", dark: "#111827" }
283
283
  },
284
+ // Real Tailwind's default spacing scale in full — every step is exactly
285
+ // `n * 4px` (Tailwind's base spacing unit), including the fractional
286
+ // `.5` steps (`1.5` -> 6px, `2.5` -> 10px, `3.5` -> 14px) and the "px"
287
+ // literal (a bare 1px, for `p-px`-style hairline spacing). Previously
288
+ // this only had {0,1,2,4,6,8} — a handful of spot-checked values, not
289
+ // the real scale — so anything else (`p-3`, `w-5`, `border-2`, `gap-10`,
290
+ // ...) silently failed to resolve (an unknown spacing key returns `None`
291
+ // the same way an unknown class does, with no error). "0" itself is
292
+ // still needed explicitly (not derivable as "any number * 4") for the
293
+ // same reason it always was: `sticky top-0` needs an actual "0" key to
294
+ // resolve at all, not just fall through as unresolvable.
284
295
  spacing: {
285
- // "0" is always a hardcoded zero in real Tailwind's own scale too,
286
- // regardless of the base spacing unit — needed for `p-0`/`m-0`/
287
- // `top-0`/`inset-0`/etc., and specifically for `sticky top-0` (a
288
- // sticky element needs an explicit offset to have any stick point at
289
- // all; without one it behaves just like `relative`, no different from
290
- // omitting `top-0` outright). Confirmed missing by hand: this
291
- // sandbox's own header used `sticky top-0`, which silently never
292
- // resolved (no "0" spacing key existed) until this was added.
293
296
  "0": 0,
297
+ "px": 1,
298
+ "0.5": 2,
294
299
  "1": 4,
300
+ "1.5": 6,
295
301
  "2": 8,
302
+ "2.5": 10,
303
+ "3": 12,
304
+ "3.5": 14,
296
305
  "4": 16,
306
+ "5": 20,
297
307
  "6": 24,
298
- "8": 32
308
+ "7": 28,
309
+ "8": 32,
310
+ "9": 36,
311
+ "10": 40,
312
+ "11": 44,
313
+ "12": 48,
314
+ "14": 56,
315
+ "16": 64,
316
+ "20": 80,
317
+ "24": 96,
318
+ "28": 112,
319
+ "32": 128,
320
+ "36": 144,
321
+ "40": 160,
322
+ "44": 176,
323
+ "48": 192,
324
+ "52": 208,
325
+ "56": 224,
326
+ "60": 240,
327
+ "64": 256,
328
+ "72": 288,
329
+ "80": 320,
330
+ "96": 384
299
331
  },
300
332
  screens: {
301
333
  sm: 640,
@@ -2,7 +2,7 @@ import {
2
2
  BASE_RESET,
3
3
  RESET_STYLE_ID,
4
4
  getThemeJson
5
- } from "./chunk-AFY36PRX.mjs";
5
+ } from "./chunk-FOQWQDF4.mjs";
6
6
 
7
7
  // src/wasmLoader.ts
8
8
  import init, { generate_css as wasmGenerateCss } from "@kbach/core-engine";
package/dist/index.js CHANGED
@@ -357,21 +357,53 @@ var defaultTheme = {
357
357
  ...PALETTE,
358
358
  surface: { light: "#f9fafb", dark: "#111827" }
359
359
  },
360
+ // Real Tailwind's default spacing scale in full — every step is exactly
361
+ // `n * 4px` (Tailwind's base spacing unit), including the fractional
362
+ // `.5` steps (`1.5` -> 6px, `2.5` -> 10px, `3.5` -> 14px) and the "px"
363
+ // literal (a bare 1px, for `p-px`-style hairline spacing). Previously
364
+ // this only had {0,1,2,4,6,8} — a handful of spot-checked values, not
365
+ // the real scale — so anything else (`p-3`, `w-5`, `border-2`, `gap-10`,
366
+ // ...) silently failed to resolve (an unknown spacing key returns `None`
367
+ // the same way an unknown class does, with no error). "0" itself is
368
+ // still needed explicitly (not derivable as "any number * 4") for the
369
+ // same reason it always was: `sticky top-0` needs an actual "0" key to
370
+ // resolve at all, not just fall through as unresolvable.
360
371
  spacing: {
361
- // "0" is always a hardcoded zero in real Tailwind's own scale too,
362
- // regardless of the base spacing unit — needed for `p-0`/`m-0`/
363
- // `top-0`/`inset-0`/etc., and specifically for `sticky top-0` (a
364
- // sticky element needs an explicit offset to have any stick point at
365
- // all; without one it behaves just like `relative`, no different from
366
- // omitting `top-0` outright). Confirmed missing by hand: this
367
- // sandbox's own header used `sticky top-0`, which silently never
368
- // resolved (no "0" spacing key existed) until this was added.
369
372
  "0": 0,
373
+ "px": 1,
374
+ "0.5": 2,
370
375
  "1": 4,
376
+ "1.5": 6,
371
377
  "2": 8,
378
+ "2.5": 10,
379
+ "3": 12,
380
+ "3.5": 14,
372
381
  "4": 16,
382
+ "5": 20,
373
383
  "6": 24,
374
- "8": 32
384
+ "7": 28,
385
+ "8": 32,
386
+ "9": 36,
387
+ "10": 40,
388
+ "11": 44,
389
+ "12": 48,
390
+ "14": 56,
391
+ "16": 64,
392
+ "20": 80,
393
+ "24": 96,
394
+ "28": 112,
395
+ "32": 128,
396
+ "36": 144,
397
+ "40": 160,
398
+ "44": 176,
399
+ "48": 192,
400
+ "52": 208,
401
+ "56": 224,
402
+ "60": 240,
403
+ "64": 256,
404
+ "72": 288,
405
+ "80": 320,
406
+ "96": 384
375
407
  },
376
408
  screens: {
377
409
  sm: 640,
package/dist/index.mjs CHANGED
@@ -4,14 +4,14 @@ import {
4
4
  isKbachReady,
5
5
  isRuntimeCSSDisabled,
6
6
  kb
7
- } from "./chunk-G3RJJNSY.mjs";
7
+ } from "./chunk-ROZXCQSM.mjs";
8
8
  import {
9
9
  BASE_RESET,
10
10
  RESET_STYLE_ID,
11
11
  defaultTheme,
12
12
  getTheme,
13
13
  setTheme
14
- } from "./chunk-AFY36PRX.mjs";
14
+ } from "./chunk-FOQWQDF4.mjs";
15
15
 
16
16
  // src/KbachReset.tsx
17
17
  import { jsx } from "react/jsx-runtime";
@@ -334,21 +334,53 @@ var defaultTheme = {
334
334
  ...PALETTE,
335
335
  surface: { light: "#f9fafb", dark: "#111827" }
336
336
  },
337
+ // Real Tailwind's default spacing scale in full — every step is exactly
338
+ // `n * 4px` (Tailwind's base spacing unit), including the fractional
339
+ // `.5` steps (`1.5` -> 6px, `2.5` -> 10px, `3.5` -> 14px) and the "px"
340
+ // literal (a bare 1px, for `p-px`-style hairline spacing). Previously
341
+ // this only had {0,1,2,4,6,8} — a handful of spot-checked values, not
342
+ // the real scale — so anything else (`p-3`, `w-5`, `border-2`, `gap-10`,
343
+ // ...) silently failed to resolve (an unknown spacing key returns `None`
344
+ // the same way an unknown class does, with no error). "0" itself is
345
+ // still needed explicitly (not derivable as "any number * 4") for the
346
+ // same reason it always was: `sticky top-0` needs an actual "0" key to
347
+ // resolve at all, not just fall through as unresolvable.
337
348
  spacing: {
338
- // "0" is always a hardcoded zero in real Tailwind's own scale too,
339
- // regardless of the base spacing unit — needed for `p-0`/`m-0`/
340
- // `top-0`/`inset-0`/etc., and specifically for `sticky top-0` (a
341
- // sticky element needs an explicit offset to have any stick point at
342
- // all; without one it behaves just like `relative`, no different from
343
- // omitting `top-0` outright). Confirmed missing by hand: this
344
- // sandbox's own header used `sticky top-0`, which silently never
345
- // resolved (no "0" spacing key existed) until this was added.
346
349
  "0": 0,
350
+ "px": 1,
351
+ "0.5": 2,
347
352
  "1": 4,
353
+ "1.5": 6,
348
354
  "2": 8,
355
+ "2.5": 10,
356
+ "3": 12,
357
+ "3.5": 14,
349
358
  "4": 16,
359
+ "5": 20,
350
360
  "6": 24,
351
- "8": 32
361
+ "7": 28,
362
+ "8": 32,
363
+ "9": 36,
364
+ "10": 40,
365
+ "11": 44,
366
+ "12": 48,
367
+ "14": 56,
368
+ "16": 64,
369
+ "20": 80,
370
+ "24": 96,
371
+ "28": 112,
372
+ "32": 128,
373
+ "36": 144,
374
+ "40": 160,
375
+ "44": 176,
376
+ "48": 192,
377
+ "52": 208,
378
+ "56": 224,
379
+ "60": 240,
380
+ "64": 256,
381
+ "72": 288,
382
+ "80": 320,
383
+ "96": 384
352
384
  },
353
385
  screens: {
354
386
  sm: 640,
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-VBPQAIZL.mjs";
6
- import "./chunk-G3RJJNSY.mjs";
7
- import "./chunk-AFY36PRX.mjs";
5
+ } from "./chunk-AD3G6RHY.mjs";
6
+ import "./chunk-ROZXCQSM.mjs";
7
+ import "./chunk-FOQWQDF4.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
10
  function jsxDEV(type, props, key, isStaticChildren, source, self) {
@@ -333,21 +333,53 @@ var defaultTheme = {
333
333
  ...PALETTE,
334
334
  surface: { light: "#f9fafb", dark: "#111827" }
335
335
  },
336
+ // Real Tailwind's default spacing scale in full — every step is exactly
337
+ // `n * 4px` (Tailwind's base spacing unit), including the fractional
338
+ // `.5` steps (`1.5` -> 6px, `2.5` -> 10px, `3.5` -> 14px) and the "px"
339
+ // literal (a bare 1px, for `p-px`-style hairline spacing). Previously
340
+ // this only had {0,1,2,4,6,8} — a handful of spot-checked values, not
341
+ // the real scale — so anything else (`p-3`, `w-5`, `border-2`, `gap-10`,
342
+ // ...) silently failed to resolve (an unknown spacing key returns `None`
343
+ // the same way an unknown class does, with no error). "0" itself is
344
+ // still needed explicitly (not derivable as "any number * 4") for the
345
+ // same reason it always was: `sticky top-0` needs an actual "0" key to
346
+ // resolve at all, not just fall through as unresolvable.
336
347
  spacing: {
337
- // "0" is always a hardcoded zero in real Tailwind's own scale too,
338
- // regardless of the base spacing unit — needed for `p-0`/`m-0`/
339
- // `top-0`/`inset-0`/etc., and specifically for `sticky top-0` (a
340
- // sticky element needs an explicit offset to have any stick point at
341
- // all; without one it behaves just like `relative`, no different from
342
- // omitting `top-0` outright). Confirmed missing by hand: this
343
- // sandbox's own header used `sticky top-0`, which silently never
344
- // resolved (no "0" spacing key existed) until this was added.
345
348
  "0": 0,
349
+ "px": 1,
350
+ "0.5": 2,
346
351
  "1": 4,
352
+ "1.5": 6,
347
353
  "2": 8,
354
+ "2.5": 10,
355
+ "3": 12,
356
+ "3.5": 14,
348
357
  "4": 16,
358
+ "5": 20,
349
359
  "6": 24,
350
- "8": 32
360
+ "7": 28,
361
+ "8": 32,
362
+ "9": 36,
363
+ "10": 40,
364
+ "11": 44,
365
+ "12": 48,
366
+ "14": 56,
367
+ "16": 64,
368
+ "20": 80,
369
+ "24": 96,
370
+ "28": 112,
371
+ "32": 128,
372
+ "36": 144,
373
+ "40": 160,
374
+ "44": 176,
375
+ "48": 192,
376
+ "52": 208,
377
+ "56": 224,
378
+ "60": 240,
379
+ "64": 256,
380
+ "72": 288,
381
+ "80": 320,
382
+ "96": 384
351
383
  },
352
384
  screens: {
353
385
  sm: 640,
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-VBPQAIZL.mjs";
6
- import "./chunk-G3RJJNSY.mjs";
7
- import "./chunk-AFY36PRX.mjs";
5
+ } from "./chunk-AD3G6RHY.mjs";
6
+ import "./chunk-ROZXCQSM.mjs";
7
+ import "./chunk-FOQWQDF4.mjs";
8
8
  export {
9
9
  Fragment,
10
10
  jsx,
@@ -1421,21 +1421,53 @@ var defaultTheme = {
1421
1421
  ...PALETTE,
1422
1422
  surface: { light: "#f9fafb", dark: "#111827" }
1423
1423
  },
1424
+ // Real Tailwind's default spacing scale in full — every step is exactly
1425
+ // `n * 4px` (Tailwind's base spacing unit), including the fractional
1426
+ // `.5` steps (`1.5` -> 6px, `2.5` -> 10px, `3.5` -> 14px) and the "px"
1427
+ // literal (a bare 1px, for `p-px`-style hairline spacing). Previously
1428
+ // this only had {0,1,2,4,6,8} — a handful of spot-checked values, not
1429
+ // the real scale — so anything else (`p-3`, `w-5`, `border-2`, `gap-10`,
1430
+ // ...) silently failed to resolve (an unknown spacing key returns `None`
1431
+ // the same way an unknown class does, with no error). "0" itself is
1432
+ // still needed explicitly (not derivable as "any number * 4") for the
1433
+ // same reason it always was: `sticky top-0` needs an actual "0" key to
1434
+ // resolve at all, not just fall through as unresolvable.
1424
1435
  spacing: {
1425
- // "0" is always a hardcoded zero in real Tailwind's own scale too,
1426
- // regardless of the base spacing unit — needed for `p-0`/`m-0`/
1427
- // `top-0`/`inset-0`/etc., and specifically for `sticky top-0` (a
1428
- // sticky element needs an explicit offset to have any stick point at
1429
- // all; without one it behaves just like `relative`, no different from
1430
- // omitting `top-0` outright). Confirmed missing by hand: this
1431
- // sandbox's own header used `sticky top-0`, which silently never
1432
- // resolved (no "0" spacing key existed) until this was added.
1433
1436
  "0": 0,
1437
+ "px": 1,
1438
+ "0.5": 2,
1434
1439
  "1": 4,
1440
+ "1.5": 6,
1435
1441
  "2": 8,
1442
+ "2.5": 10,
1443
+ "3": 12,
1444
+ "3.5": 14,
1436
1445
  "4": 16,
1446
+ "5": 20,
1437
1447
  "6": 24,
1438
- "8": 32
1448
+ "7": 28,
1449
+ "8": 32,
1450
+ "9": 36,
1451
+ "10": 40,
1452
+ "11": 44,
1453
+ "12": 48,
1454
+ "14": 56,
1455
+ "16": 64,
1456
+ "20": 80,
1457
+ "24": 96,
1458
+ "28": 112,
1459
+ "32": 128,
1460
+ "36": 144,
1461
+ "40": 160,
1462
+ "44": 176,
1463
+ "48": 192,
1464
+ "52": 208,
1465
+ "56": 224,
1466
+ "60": 240,
1467
+ "64": 256,
1468
+ "72": 288,
1469
+ "80": 320,
1470
+ "96": 384
1439
1471
  },
1440
1472
  screens: {
1441
1473
  sm: 640,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildResetCSS,
3
3
  defaultTheme
4
- } from "./chunk-AFY36PRX.mjs";
4
+ } from "./chunk-FOQWQDF4.mjs";
5
5
 
6
6
  // src/vite-plugin/index.ts
7
7
  import { readFileSync as readFileSync2, writeFileSync, mkdirSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "A utility-first styling engine for React, powered by a real Rust/WASM core — Tailwind CSS v4 feature parity with Kbach's own color palette.",
5
5
  "keywords": ["css", "react", "tailwind", "utility-first", "wasm", "styling"],
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "generate:colors": "node ../core-engine/scripts/generate-palette.mjs src/generatedPalette.ts"
57
57
  },
58
58
  "dependencies": {
59
- "@kbach/core-engine": "1.0.0-beta.0"
59
+ "@kbach/core-engine": "1.0.0-beta.2"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.2.0",