@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.
- package/dist/{chunk-7XGOXTGT.js → chunk-4O3PXFQ7.js} +15 -31
- package/dist/{chunk-3QBT3Q65.cjs → chunk-6N5JXRUZ.cjs} +26 -3
- package/dist/chunk-B3EAZ2CC.js +1010 -0
- package/dist/{chunk-2FEDC7U5.cjs → chunk-DDYMIWLW.cjs} +41 -57
- package/dist/chunk-IVVFYUDW.cjs +1044 -0
- package/dist/{chunk-6OHFG32Y.cjs → chunk-MLJ543GP.cjs} +41 -53
- package/dist/{chunk-NQ5WWF77.js → chunk-RWLODK55.js} +35 -47
- package/dist/{chunk-X2K2FX3W.js → chunk-XJARE6SC.js} +24 -1
- package/dist/components/button/index.cjs +4 -4
- package/dist/components/button/index.d.cts +162 -13
- package/dist/components/button/index.d.ts +162 -13
- package/dist/components/button/index.js +3 -3
- package/dist/{create-recipe-Dn9kj5Rs.d.ts → create-recipe-3OPwcC6P.d.ts} +81 -21
- package/dist/{create-recipe-BjSP0zL_.d.cts → create-recipe-oiLAlJ4u.d.cts} +81 -21
- package/dist/index.cjs +28 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -12
- package/dist/system/index.cjs +24 -4
- package/dist/system/index.d.cts +160 -35
- package/dist/system/index.d.ts +160 -35
- package/dist/system/index.js +31 -11
- package/dist/theme/index.cjs +3 -3
- package/dist/theme/index.d.cts +19 -8
- package/dist/theme/index.d.ts +19 -8
- package/dist/theme/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-E2UGZJBT.cjs +0 -959
- package/dist/chunk-R4HJCQPI.js +0 -889
- /package/dist/{chunk-LMUPNKPH.cjs → chunk-2FOEFUPM.cjs} +0 -0
- /package/dist/{chunk-3TIDEII6.js → chunk-TO6DAGFB.js} +0 -0
package/dist/theme/index.cjs
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDDYMIWLWcjs = require('../chunk-DDYMIWLW.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
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 =
|
|
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;
|
package/dist/theme/index.d.cts
CHANGED
|
@@ -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: "#
|
|
421
|
-
readonly successPressed: "#
|
|
422
|
-
readonly warningPressed: "#
|
|
423
|
-
readonly dangerPressed: "#
|
|
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: "#
|
|
491
|
-
readonly successPressed: "#
|
|
492
|
-
readonly warningPressed: "#
|
|
493
|
-
readonly dangerPressed: "#
|
|
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)";
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -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: "#
|
|
421
|
-
readonly successPressed: "#
|
|
422
|
-
readonly warningPressed: "#
|
|
423
|
-
readonly dangerPressed: "#
|
|
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: "#
|
|
491
|
-
readonly successPressed: "#
|
|
492
|
-
readonly warningPressed: "#
|
|
493
|
-
readonly dangerPressed: "#
|
|
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)";
|
package/dist/theme/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
primitives,
|
|
10
10
|
sourceKeys,
|
|
11
11
|
tokens
|
|
12
|
-
} from "../chunk-
|
|
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-
|
|
19
|
+
} from "../chunk-XJARE6SC.js";
|
|
20
20
|
export {
|
|
21
21
|
ThemeContext,
|
|
22
22
|
XAUIProvider,
|