@xaui/native 0.9.1-alpha.11 → 0.9.1-alpha.13

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 (31) hide show
  1. package/dist/{chunk-7XGOXTGT.js → chunk-4O3PXFQ7.js} +15 -31
  2. package/dist/{chunk-3QBT3Q65.cjs → chunk-6N5JXRUZ.cjs} +26 -3
  3. package/dist/chunk-B3EAZ2CC.js +1010 -0
  4. package/dist/{chunk-2FEDC7U5.cjs → chunk-DDYMIWLW.cjs} +41 -57
  5. package/dist/chunk-IVVFYUDW.cjs +1044 -0
  6. package/dist/{chunk-6OHFG32Y.cjs → chunk-MLJ543GP.cjs} +41 -53
  7. package/dist/{chunk-NQ5WWF77.js → chunk-RWLODK55.js} +35 -47
  8. package/dist/{chunk-X2K2FX3W.js → chunk-XJARE6SC.js} +24 -1
  9. package/dist/components/button/index.cjs +4 -4
  10. package/dist/components/button/index.d.cts +162 -13
  11. package/dist/components/button/index.d.ts +162 -13
  12. package/dist/components/button/index.js +3 -3
  13. package/dist/{create-recipe-Dn9kj5Rs.d.ts → create-recipe-3OPwcC6P.d.ts} +81 -21
  14. package/dist/{create-recipe-BjSP0zL_.d.cts → create-recipe-oiLAlJ4u.d.cts} +81 -21
  15. package/dist/index.cjs +28 -8
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +32 -12
  19. package/dist/system/index.cjs +24 -4
  20. package/dist/system/index.d.cts +160 -35
  21. package/dist/system/index.d.ts +160 -35
  22. package/dist/system/index.js +31 -11
  23. package/dist/theme/index.cjs +3 -3
  24. package/dist/theme/index.d.cts +19 -8
  25. package/dist/theme/index.d.ts +19 -8
  26. package/dist/theme/index.js +2 -2
  27. package/package.json +1 -1
  28. package/dist/chunk-E2UGZJBT.cjs +0 -959
  29. package/dist/chunk-R4HJCQPI.js +0 -889
  30. /package/dist/{chunk-LMUPNKPH.cjs → chunk-2FOEFUPM.cjs} +0 -0
  31. /package/dist/{chunk-3TIDEII6.js → chunk-TO6DAGFB.js} +0 -0
@@ -9,14 +9,14 @@
9
9
 
10
10
 
11
11
 
12
- var _chunk2FEDC7U5cjs = require('../chunk-2FEDC7U5.cjs');
12
+ var _chunkDDYMIWLWcjs = require('../chunk-DDYMIWLW.cjs');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
- var _chunk3QBT3Q65cjs = require('../chunk-3QBT3Q65.cjs');
19
+ var _chunk6N5JXRUZcjs = require('../chunk-6N5JXRUZ.cjs');
20
20
 
21
21
 
22
22
 
@@ -33,4 +33,4 @@ var _chunk3QBT3Q65cjs = require('../chunk-3QBT3Q65.cjs');
33
33
 
34
34
 
35
35
 
36
- exports.ThemeContext = _chunk3QBT3Q65cjs.ThemeContext; exports.XAUIProvider = _chunk2FEDC7U5cjs.XAUIProvider; exports.buildRadius = _chunk2FEDC7U5cjs.buildRadius; exports.buildShadows = _chunk2FEDC7U5cjs.buildShadows; exports.createTheme = _chunk2FEDC7U5cjs.createTheme; exports.defaultTheme = _chunk2FEDC7U5cjs.defaultTheme; exports.deriveColors = _chunk2FEDC7U5cjs.deriveColors; exports.deriveTint = _chunk3QBT3Q65cjs.deriveTint; exports.palette = _chunk2FEDC7U5cjs.palette; exports.primitives = _chunk2FEDC7U5cjs.primitives; exports.sourceKeys = _chunk2FEDC7U5cjs.sourceKeys; exports.tokens = _chunk2FEDC7U5cjs.tokens; exports.useColorMode = _chunk3QBT3Q65cjs.useColorMode; exports.useThemeColor = _chunk3QBT3Q65cjs.useThemeColor; exports.useXAUITheme = _chunk3QBT3Q65cjs.useXAUITheme;
36
+ exports.ThemeContext = _chunk6N5JXRUZcjs.ThemeContext; exports.XAUIProvider = _chunkDDYMIWLWcjs.XAUIProvider; exports.buildRadius = _chunkDDYMIWLWcjs.buildRadius; exports.buildShadows = _chunkDDYMIWLWcjs.buildShadows; exports.createTheme = _chunkDDYMIWLWcjs.createTheme; exports.defaultTheme = _chunkDDYMIWLWcjs.defaultTheme; exports.deriveColors = _chunkDDYMIWLWcjs.deriveColors; exports.deriveTint = _chunk6N5JXRUZcjs.deriveTint; exports.palette = _chunkDDYMIWLWcjs.palette; exports.primitives = _chunkDDYMIWLWcjs.primitives; exports.sourceKeys = _chunkDDYMIWLWcjs.sourceKeys; exports.tokens = _chunkDDYMIWLWcjs.tokens; exports.useColorMode = _chunk6N5JXRUZcjs.useColorMode; exports.useThemeColor = _chunk6N5JXRUZcjs.useThemeColor; exports.useXAUITheme = _chunk6N5JXRUZcjs.useXAUITheme;
@@ -44,6 +44,17 @@ declare const defaultTheme: XAUIThemeSet;
44
44
  * These are HeroUI's `color-mix(in oklab, …)` formulas transposed to JS, because React
45
45
  * Native has no `color-mix()`. Their `-hover` names became `-pressed`: what they feed is
46
46
  * the press overlay, and the web name was a leftover.
47
+ *
48
+ * **One deliberate divergence: a pressed state always moves towards the mode's ink**
49
+ * (P2-API-REVIEW §E). Mixing towards the variant's own foreground — which is what their
50
+ * formula does — makes the direction follow the fill's lightness rather than a decision:
51
+ * `#9333ea` has near-white text and lightened under the finger in light mode, while
52
+ * `#c084fc` has dark text and darkened in dark mode. Same component, opposite gesture,
53
+ * nobody's choice. Towards `foreground` it is one direction — darker in light, lighter in
54
+ * dark — and the label's contrast rises in both instead of falling in one.
55
+ *
56
+ * The neutral fills already did this: `defaultForeground` and `surfaceForeground` *are*
57
+ * the ink, so only the four saturated intents ever flipped.
47
58
  */
48
59
  declare function deriveColors(s: XAUISourceColors): XAUIDerivedColors;
49
60
 
@@ -417,10 +428,10 @@ declare const tokens: {
417
428
  readonly separator: "#d4d4d8";
418
429
  readonly focus: "#9333ea";
419
430
  readonly link: "#18181b";
420
- readonly accentPressed: "#9c4eee";
421
- readonly successPressed: "#378c50";
422
- readonly warningPressed: "#bd642f";
423
- readonly dangerPressed: "#e2473f";
431
+ readonly accentPressed: "#8533d3";
432
+ readonly successPressed: "#1b753a";
433
+ readonly warningPressed: "#a34d13";
434
+ readonly dangerPressed: "#c72927";
424
435
  readonly defaultPressed: "#eaeaeb";
425
436
  readonly surfacePressed: "#eaeaea";
426
437
  readonly defaultSoft: "rgba(244, 244, 245, 0.5)";
@@ -487,10 +498,10 @@ declare const tokens: {
487
498
  readonly separator: "#52525b";
488
499
  readonly focus: "#c084fc";
489
500
  readonly link: "#fafafa";
490
- readonly accentPressed: "#ad78e3";
491
- readonly successPressed: "#47c875";
492
- readonly warningPressed: "#e1ac2b";
493
- readonly dangerPressed: "#df6868";
501
+ readonly accentPressed: "#c691fd";
502
+ readonly successPressed: "#64e18d";
503
+ readonly warningPressed: "#fbc54b";
504
+ readonly dangerPressed: "#fa807e";
494
505
  readonly defaultPressed: "#2e2e31";
495
506
  readonly surfacePressed: "#27272a";
496
507
  readonly defaultSoft: "rgba(39, 39, 42, 0.5)";
@@ -44,6 +44,17 @@ declare const defaultTheme: XAUIThemeSet;
44
44
  * These are HeroUI's `color-mix(in oklab, …)` formulas transposed to JS, because React
45
45
  * Native has no `color-mix()`. Their `-hover` names became `-pressed`: what they feed is
46
46
  * the press overlay, and the web name was a leftover.
47
+ *
48
+ * **One deliberate divergence: a pressed state always moves towards the mode's ink**
49
+ * (P2-API-REVIEW §E). Mixing towards the variant's own foreground — which is what their
50
+ * formula does — makes the direction follow the fill's lightness rather than a decision:
51
+ * `#9333ea` has near-white text and lightened under the finger in light mode, while
52
+ * `#c084fc` has dark text and darkened in dark mode. Same component, opposite gesture,
53
+ * nobody's choice. Towards `foreground` it is one direction — darker in light, lighter in
54
+ * dark — and the label's contrast rises in both instead of falling in one.
55
+ *
56
+ * The neutral fills already did this: `defaultForeground` and `surfaceForeground` *are*
57
+ * the ink, so only the four saturated intents ever flipped.
47
58
  */
48
59
  declare function deriveColors(s: XAUISourceColors): XAUIDerivedColors;
49
60
 
@@ -417,10 +428,10 @@ declare const tokens: {
417
428
  readonly separator: "#d4d4d8";
418
429
  readonly focus: "#9333ea";
419
430
  readonly link: "#18181b";
420
- readonly accentPressed: "#9c4eee";
421
- readonly successPressed: "#378c50";
422
- readonly warningPressed: "#bd642f";
423
- readonly dangerPressed: "#e2473f";
431
+ readonly accentPressed: "#8533d3";
432
+ readonly successPressed: "#1b753a";
433
+ readonly warningPressed: "#a34d13";
434
+ readonly dangerPressed: "#c72927";
424
435
  readonly defaultPressed: "#eaeaeb";
425
436
  readonly surfacePressed: "#eaeaea";
426
437
  readonly defaultSoft: "rgba(244, 244, 245, 0.5)";
@@ -487,10 +498,10 @@ declare const tokens: {
487
498
  readonly separator: "#52525b";
488
499
  readonly focus: "#c084fc";
489
500
  readonly link: "#fafafa";
490
- readonly accentPressed: "#ad78e3";
491
- readonly successPressed: "#47c875";
492
- readonly warningPressed: "#e1ac2b";
493
- readonly dangerPressed: "#df6868";
501
+ readonly accentPressed: "#c691fd";
502
+ readonly successPressed: "#64e18d";
503
+ readonly warningPressed: "#fbc54b";
504
+ readonly dangerPressed: "#fa807e";
494
505
  readonly defaultPressed: "#2e2e31";
495
506
  readonly surfacePressed: "#27272a";
496
507
  readonly defaultSoft: "rgba(39, 39, 42, 0.5)";
@@ -9,14 +9,14 @@ import {
9
9
  primitives,
10
10
  sourceKeys,
11
11
  tokens
12
- } from "../chunk-7XGOXTGT.js";
12
+ } from "../chunk-4O3PXFQ7.js";
13
13
  import {
14
14
  ThemeContext,
15
15
  deriveTint,
16
16
  useColorMode,
17
17
  useThemeColor,
18
18
  useXAUITheme
19
- } from "../chunk-X2K2FX3W.js";
19
+ } from "../chunk-XJARE6SC.js";
20
20
  export {
21
21
  ThemeContext,
22
22
  XAUIProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.9.1-alpha.11",
3
+ "version": "0.9.1-alpha.13",
4
4
  "description": "Composition-first React Native UI components with native animations powered by Reanimated",
5
5
  "keywords": [
6
6
  "react-native",