@xaui/native 0.9.1-alpha.4 → 0.9.1-alpha.40

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 (203) hide show
  1. package/dist/chunk-2EGR4LWD.js +145 -0
  2. package/dist/chunk-2NRZKJG7.js +531 -0
  3. package/dist/chunk-2PMXMKS5.js +67 -0
  4. package/dist/chunk-2XPG2243.js +586 -0
  5. package/dist/chunk-36PRYGAM.js +13 -0
  6. package/dist/chunk-3E7CDKFO.cjs +696 -0
  7. package/dist/chunk-3GFRSZYR.js +54 -0
  8. package/dist/chunk-423RQBOX.js +21 -0
  9. package/dist/chunk-4CUZZWFW.js +92 -0
  10. package/dist/chunk-4GTAZM2C.js +174 -0
  11. package/dist/chunk-4KFKWBN5.cjs +89 -0
  12. package/dist/{chunk-3QBT3Q65.cjs → chunk-57SJ4LJF.cjs} +7 -2
  13. package/dist/chunk-5R26NM4M.cjs +402 -0
  14. package/dist/chunk-5VKYNBNA.js +607 -0
  15. package/dist/chunk-64MXEVT3.js +66 -0
  16. package/dist/chunk-6DOLGZVV.cjs +147 -0
  17. package/dist/chunk-6L2TS2R3.cjs +92 -0
  18. package/dist/chunk-6UEZJRVI.js +669 -0
  19. package/dist/chunk-734MFAX4.js +27 -0
  20. package/dist/chunk-73RKQC5X.js +104 -0
  21. package/dist/chunk-7DPL3ZDS.cjs +21 -0
  22. package/dist/chunk-7EIHHOHP.cjs +42 -0
  23. package/dist/chunk-7GHM4GKL.cjs +119 -0
  24. package/dist/chunk-7YF5NAHQ.cjs +74 -0
  25. package/dist/{chunk-X2K2FX3W.js → chunk-A3EGFI6T.js} +6 -1
  26. package/dist/chunk-ABAGZTXZ.cjs +736 -0
  27. package/dist/{chunk-AW63PTQ4.cjs → chunk-ACAPTWE3.cjs} +85 -81
  28. package/dist/chunk-AMCSSOJT.cjs +104 -0
  29. package/dist/chunk-BA2DBSAN.js +102 -0
  30. package/dist/chunk-BRRXFOBY.js +431 -0
  31. package/dist/chunk-C5YLPCFC.cjs +293 -0
  32. package/dist/chunk-DA3OKXHV.cjs +700 -0
  33. package/dist/chunk-DD4276RF.js +366 -0
  34. package/dist/chunk-DG2I4PJG.js +701 -0
  35. package/dist/chunk-DHGLGSH6.js +661 -0
  36. package/dist/chunk-DIBUQ46Y.js +346 -0
  37. package/dist/chunk-EGLLDKN6.js +9 -0
  38. package/dist/chunk-EJQCQPET.cjs +9 -0
  39. package/dist/chunk-EKS3W46M.cjs +66 -0
  40. package/dist/chunk-EZEYMLO3.js +402 -0
  41. package/dist/chunk-F6CQ6CBI.cjs +112 -0
  42. package/dist/chunk-F6W3JQ7K.js +42 -0
  43. package/dist/chunk-FHUYHV6J.js +89 -0
  44. package/dist/chunk-FNEUOBCV.cjs +174 -0
  45. package/dist/chunk-G7P3ERYF.cjs +478 -0
  46. package/dist/chunk-GA6PBWNT.js +147 -0
  47. package/dist/chunk-GFUZ3MUT.cjs +455 -0
  48. package/dist/chunk-GGW43Q37.cjs +1 -0
  49. package/dist/chunk-GTR5X65M.cjs +27 -0
  50. package/dist/chunk-H4E4HDEP.cjs +13 -0
  51. package/dist/chunk-H7DS4IO7.js +198 -0
  52. package/dist/chunk-HDVVZG4S.cjs +198 -0
  53. package/dist/chunk-IKJVLJKT.js +151 -0
  54. package/dist/chunk-J3MB4PI5.cjs +531 -0
  55. package/dist/chunk-K72UDPVN.js +119 -0
  56. package/dist/chunk-KCMYU7WF.js +86 -0
  57. package/dist/chunk-LRN3RNDO.js +940 -0
  58. package/dist/chunk-LTX6TB5I.js +124 -0
  59. package/dist/chunk-LUPCPLND.cjs +145 -0
  60. package/dist/chunk-M63GFNKV.js +194 -0
  61. package/dist/chunk-N3KTZMPG.js +293 -0
  62. package/dist/chunk-NCTOTTVW.js +13 -0
  63. package/dist/chunk-NWGLP6JX.cjs +410 -0
  64. package/dist/chunk-R73XQK7X.cjs +314 -0
  65. package/dist/chunk-RU7JCMWC.cjs +881 -0
  66. package/dist/chunk-SNIHUKDA.cjs +184 -0
  67. package/dist/chunk-T5FV5F7A.cjs +607 -0
  68. package/dist/chunk-TDTUAIFF.cjs +153 -0
  69. package/dist/chunk-TJ74XVZN.cjs +431 -0
  70. package/dist/chunk-TK44VBIE.cjs +194 -0
  71. package/dist/chunk-UAWBAD4E.cjs +346 -0
  72. package/dist/chunk-UFTCTTKK.js +381 -0
  73. package/dist/chunk-WDDXU3OH.cjs +67 -0
  74. package/dist/chunk-WFEMJCXO.cjs +13 -0
  75. package/dist/chunk-WHJTBTYM.js +0 -0
  76. package/dist/{chunk-2KXQATVL.js → chunk-WKCQ6VGW.js} +59 -55
  77. package/dist/chunk-XFPQFCEK.js +455 -0
  78. package/dist/chunk-XSQPVDFH.cjs +60 -0
  79. package/dist/chunk-XTC2SLFT.js +153 -0
  80. package/dist/chunk-XV735BSA.cjs +366 -0
  81. package/dist/chunk-XWNG2U4K.cjs +124 -0
  82. package/dist/chunk-YGYYJ3LQ.js +314 -0
  83. package/dist/chunk-YVHT2UVW.js +74 -0
  84. package/dist/chunk-ZFOOJK37.cjs +86 -0
  85. package/dist/close-button.type-BUYuoSt2.d.ts +36 -0
  86. package/dist/close-button.type-CHsgZ3wO.d.cts +36 -0
  87. package/dist/components/accordion/index.cjs +35 -0
  88. package/dist/components/accordion/index.d.cts +299 -0
  89. package/dist/components/accordion/index.d.ts +299 -0
  90. package/dist/components/accordion/index.js +35 -0
  91. package/dist/components/alert/index.cjs +20 -0
  92. package/dist/components/alert/index.d.cts +169 -0
  93. package/dist/components/alert/index.d.ts +169 -0
  94. package/dist/components/alert/index.js +20 -0
  95. package/dist/components/avatar/index.cjs +16 -0
  96. package/dist/components/avatar/index.d.cts +131 -0
  97. package/dist/components/avatar/index.d.ts +131 -0
  98. package/dist/components/avatar/index.js +16 -0
  99. package/dist/components/badge/index.cjs +15 -0
  100. package/dist/components/badge/index.d.cts +157 -0
  101. package/dist/components/badge/index.d.ts +157 -0
  102. package/dist/components/badge/index.js +15 -0
  103. package/dist/components/button/index.cjs +22 -0
  104. package/dist/components/button/index.d.cts +613 -0
  105. package/dist/components/button/index.d.ts +613 -0
  106. package/dist/components/button/index.js +22 -0
  107. package/dist/components/card/index.cjs +22 -0
  108. package/dist/components/card/index.d.cts +620 -0
  109. package/dist/components/card/index.d.ts +620 -0
  110. package/dist/components/card/index.js +22 -0
  111. package/dist/components/checkbox/index.cjs +26 -0
  112. package/dist/components/checkbox/index.d.cts +1136 -0
  113. package/dist/components/checkbox/index.d.ts +1136 -0
  114. package/dist/components/checkbox/index.js +26 -0
  115. package/dist/components/chip/index.cjs +20 -0
  116. package/dist/components/chip/index.d.cts +608 -0
  117. package/dist/components/chip/index.d.ts +608 -0
  118. package/dist/components/chip/index.js +20 -0
  119. package/dist/components/divider/index.cjs +13 -0
  120. package/dist/components/divider/index.d.cts +117 -0
  121. package/dist/components/divider/index.d.ts +117 -0
  122. package/dist/components/divider/index.js +13 -0
  123. package/dist/components/field-group/index.cjs +27 -0
  124. package/dist/components/field-group/index.d.cts +270 -0
  125. package/dist/components/field-group/index.d.ts +270 -0
  126. package/dist/components/field-group/index.js +27 -0
  127. package/dist/components/input-otp/index.cjs +29 -0
  128. package/dist/components/input-otp/index.d.cts +325 -0
  129. package/dist/components/input-otp/index.d.ts +325 -0
  130. package/dist/components/input-otp/index.js +29 -0
  131. package/dist/components/menu/index.cjs +49 -0
  132. package/dist/components/menu/index.d.cts +351 -0
  133. package/dist/components/menu/index.d.ts +351 -0
  134. package/dist/components/menu/index.js +49 -0
  135. package/dist/components/popover/index.cjs +38 -0
  136. package/dist/components/popover/index.d.cts +254 -0
  137. package/dist/components/popover/index.d.ts +254 -0
  138. package/dist/components/popover/index.js +38 -0
  139. package/dist/components/radio/index.cjs +26 -0
  140. package/dist/components/radio/index.d.cts +1102 -0
  141. package/dist/components/radio/index.d.ts +1102 -0
  142. package/dist/components/radio/index.js +26 -0
  143. package/dist/components/select/index.cjs +50 -0
  144. package/dist/components/select/index.d.cts +498 -0
  145. package/dist/components/select/index.d.ts +498 -0
  146. package/dist/components/select/index.js +50 -0
  147. package/dist/components/skeleton/index.cjs +11 -0
  148. package/dist/components/skeleton/index.d.cts +111 -0
  149. package/dist/components/skeleton/index.d.ts +111 -0
  150. package/dist/components/skeleton/index.js +11 -0
  151. package/dist/components/spinner/index.cjs +17 -0
  152. package/dist/components/spinner/index.d.cts +104 -0
  153. package/dist/components/spinner/index.d.ts +104 -0
  154. package/dist/components/spinner/index.js +17 -0
  155. package/dist/components/switch/index.cjs +27 -0
  156. package/dist/components/switch/index.d.cts +1154 -0
  157. package/dist/components/switch/index.d.ts +1154 -0
  158. package/dist/components/switch/index.js +27 -0
  159. package/dist/components/text-area/index.cjs +14 -0
  160. package/dist/components/text-area/index.d.cts +73 -0
  161. package/dist/components/text-area/index.d.ts +73 -0
  162. package/dist/components/text-area/index.js +14 -0
  163. package/dist/components/text-field/index.cjs +25 -0
  164. package/dist/components/text-field/index.d.cts +205 -0
  165. package/dist/components/text-field/index.d.ts +205 -0
  166. package/dist/components/text-field/index.js +25 -0
  167. package/dist/components/typography/index.cjs +15 -0
  168. package/dist/components/typography/index.d.cts +116 -0
  169. package/dist/components/typography/index.d.ts +116 -0
  170. package/dist/components/typography/index.js +15 -0
  171. package/dist/components/view/index.cjs +17 -0
  172. package/dist/components/view/index.d.cts +152 -0
  173. package/dist/components/view/index.d.ts +152 -0
  174. package/dist/components/view/index.js +17 -0
  175. package/dist/create-recipe-BdVd2ffi.d.ts +114 -0
  176. package/dist/create-recipe-dC7wMfnj.d.cts +114 -0
  177. package/dist/icon.type-Kml72iSz.d.ts +73 -0
  178. package/dist/icon.type-d_i9ma-i.d.cts +73 -0
  179. package/dist/index.cjs +400 -4
  180. package/dist/index.d.cts +118 -4
  181. package/dist/index.d.ts +118 -4
  182. package/dist/index.js +423 -27
  183. package/dist/placement-DHa0Rrh1.d.cts +38 -0
  184. package/dist/placement-DHa0Rrh1.d.ts +38 -0
  185. package/dist/pressable-feedback.type-BA2C9sSz.d.cts +127 -0
  186. package/dist/pressable-feedback.type-Bs4dQlGj.d.ts +127 -0
  187. package/dist/style-props.type-CfnoGEP7.d.cts +31 -0
  188. package/dist/style-props.type-CfnoGEP7.d.ts +31 -0
  189. package/dist/system/index.cjs +73 -4
  190. package/dist/system/index.d.cts +379 -193
  191. package/dist/system/index.d.ts +379 -193
  192. package/dist/system/index.js +87 -18
  193. package/dist/text-field.type-0l73acce.d.ts +167 -0
  194. package/dist/text-field.type-DBh06DU5.d.cts +167 -0
  195. package/dist/theme/index.cjs +5 -3
  196. package/dist/theme/index.d.cts +55 -24
  197. package/dist/theme/index.d.ts +55 -24
  198. package/dist/theme/index.js +4 -2
  199. package/dist/{theme.type-C9bFJKFm.d.cts → theme.type-C2gNHpEx.d.cts} +1 -1
  200. package/dist/{theme.type-C9bFJKFm.d.ts → theme.type-C2gNHpEx.d.ts} +1 -1
  201. package/package.json +254 -18
  202. package/dist/chunk-ECDWSSHJ.js +0 -688
  203. package/dist/chunk-IYFGO523.cjs +0 -688
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { i as XAUIThemeSet, h as XAUIThemeConfig, f as XAUISourceColors, b as XAUIDerivedColors, g as XAUITheme, d as XAUIRadius, C as ColorMode, X as XAUIColors } from '../theme.type-C9bFJKFm.js';
4
- export { F as FontSizeKey, a as FontWeightKey, R as RadiusKey, S as Size, c as XAUIPrimitiveColors, e as XAUIShadow } from '../theme.type-C9bFJKFm.js';
3
+ import { i as XAUIThemeSet, h as XAUIThemeConfig, g as XAUISourceColors, c as XAUIDerivedColors, X as XAUITheme, e as XAUIRadius, C as ColorMode, a as XAUIColors } from '../theme.type-C2gNHpEx.js';
4
+ export { F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, d as XAUIPrimitiveColors, f as XAUIShadow } from '../theme.type-C2gNHpEx.js';
5
5
  import 'react-native';
6
6
 
7
7
  /** `'system'` follows the device; the resolved value is never `'system'`. */
@@ -12,6 +12,14 @@ type XAUIProviderProps = {
12
12
  theme?: XAUIThemeSet;
13
13
  /** Controlled: the library owns neither the state nor its persistence. */
14
14
  colorMode?: ColorModePreference;
15
+ /**
16
+ * Mounts the `PortalHost` overlays render into. Set false only to mount one yourself,
17
+ * somewhere the provider cannot reach — under a gesture root, say. Without a host
18
+ * anywhere, `Portal` renders nothing and overlays are silently absent.
19
+ *
20
+ * @default true
21
+ */
22
+ hasPortalHost?: boolean;
15
23
  };
16
24
 
17
25
  /**
@@ -20,8 +28,14 @@ type XAUIProviderProps = {
20
28
  * `theme` is expected to come from `createTheme` at module level. The provider selects a
21
29
  * mode from an already-resolved set rather than memoizing on the prop's identity — which
22
30
  * is what the v0 provider did, rebuilding every style in the app on each parent render.
31
+ *
32
+ * It also mounts the `PortalHost` every overlay renders into. That is here rather than in
33
+ * the app because forgetting it is silent: `Portal` renders nothing outside a host, so a
34
+ * select would open onto an empty screen with no error to read. An app that needs the
35
+ * host somewhere else — under a gesture root, or inside its own navigation container —
36
+ * sets `hasPortalHost={false}` and mounts one itself.
23
37
  */
24
- declare function XAUIProvider({ children, theme, colorMode, }: XAUIProviderProps): react.JSX.Element;
38
+ declare function XAUIProvider({ children, theme, colorMode, hasPortalHost, }: XAUIProviderProps): react.JSX.Element;
25
39
 
26
40
  /**
27
41
  * Build a theme once, at module level:
@@ -44,6 +58,17 @@ declare const defaultTheme: XAUIThemeSet;
44
58
  * These are HeroUI's `color-mix(in oklab, …)` formulas transposed to JS, because React
45
59
  * Native has no `color-mix()`. Their `-hover` names became `-pressed`: what they feed is
46
60
  * the press overlay, and the web name was a leftover.
61
+ *
62
+ * **One deliberate divergence: a pressed state always moves towards the mode's ink**
63
+ * (P2-API-REVIEW §E). Mixing towards the variant's own foreground — which is what their
64
+ * formula does — makes the direction follow the fill's lightness rather than a decision:
65
+ * `#9333ea` has near-white text and lightened under the finger in light mode, while
66
+ * `#c084fc` has dark text and darkened in dark mode. Same component, opposite gesture,
67
+ * nobody's choice. Towards `foreground` it is one direction — darker in light, lighter in
68
+ * dark — and the label's contrast rises in both instead of falling in one.
69
+ *
70
+ * The neutral fills already did this: `defaultForeground` and `surfaceForeground` *are*
71
+ * the ink, so only the four saturated intents ever flipped.
47
72
  */
48
73
  declare function deriveColors(s: XAUISourceColors): XAUIDerivedColors;
49
74
 
@@ -380,6 +405,12 @@ declare function buildRadius(base: number): XAUIRadius;
380
405
  /**
381
406
  * Three roles, not an sm→xl scale — which is what lets dark mode drop the surface shadow
382
407
  * entirely instead of shipping a scale that reads as dirt on a dark background.
408
+ *
409
+ * `overlay` was heavier: a 24-point blur eight points down at 16 of Android's elevation.
410
+ * Android draws elevation on its own curve and draws it strongly, so a panel that read as
411
+ * lifted on iOS read as detached on Android — a dark halo the width of the gap between it
412
+ * and the field it came out of. Half the elevation and two thirds of the blur still say
413
+ * "above the page" without the panel looking cut out of it.
383
414
  */
384
415
  declare function buildShadows(mode: ColorMode): XAUITheme['shadows'];
385
416
 
@@ -389,7 +420,7 @@ declare const tokens: {
389
420
  readonly foreground: "#18181b";
390
421
  readonly surface: "#ffffff";
391
422
  readonly surfaceForeground: "#18181b";
392
- readonly surfaceSecondary: "#f4f4f5";
423
+ readonly surfaceSecondary: "#ececee";
393
424
  readonly surfaceSecondaryForeground: "#18181b";
394
425
  readonly surfaceTertiary: "#e4e4e7";
395
426
  readonly surfaceTertiaryForeground: "#18181b";
@@ -397,7 +428,7 @@ declare const tokens: {
397
428
  readonly overlayForeground: "#18181b";
398
429
  readonly backdrop: "rgba(0, 0, 0, 0.2)";
399
430
  readonly muted: "#71717a";
400
- readonly default: "#f4f4f5";
431
+ readonly default: "#e4e4e7";
401
432
  readonly defaultForeground: "#18181b";
402
433
  readonly accent: "#9333ea";
403
434
  readonly accentForeground: "#faf5ff";
@@ -407,7 +438,7 @@ declare const tokens: {
407
438
  readonly fieldBorder: "#e4e4e7";
408
439
  readonly success: "#15803d";
409
440
  readonly successForeground: "#fafafa";
410
- readonly warning: "#b45309";
441
+ readonly warning: "#c2410c";
411
442
  readonly warningForeground: "#fafafa";
412
443
  readonly danger: "#dc2626";
413
444
  readonly dangerForeground: "#fafafa";
@@ -417,24 +448,24 @@ declare const tokens: {
417
448
  readonly separator: "#d4d4d8";
418
449
  readonly focus: "#9333ea";
419
450
  readonly link: "#18181b";
420
- readonly accentPressed: "#9c4eee";
421
- readonly successPressed: "#378c50";
422
- readonly warningPressed: "#bd642f";
423
- readonly dangerPressed: "#e2473f";
424
- readonly defaultPressed: "#eaeaeb";
451
+ readonly accentPressed: "#8533d3";
452
+ readonly successPressed: "#1b753a";
453
+ readonly warningPressed: "#af3e15";
454
+ readonly dangerPressed: "#c72927";
455
+ readonly defaultPressed: "#dbdbde";
425
456
  readonly surfacePressed: "#eaeaea";
426
- readonly defaultSoft: "rgba(244, 244, 245, 0.5)";
457
+ readonly defaultSoft: "rgba(228, 228, 231, 0.5)";
427
458
  readonly defaultSoftForeground: "#18181b";
428
- readonly defaultSoftPressed: "rgba(244, 244, 245, 0.6)";
459
+ readonly defaultSoftPressed: "rgba(228, 228, 231, 0.6)";
429
460
  readonly accentSoft: "rgba(147, 51, 234, 0.15)";
430
461
  readonly accentSoftForeground: "#7833bc";
431
462
  readonly accentSoftPressed: "rgba(147, 51, 234, 0.2)";
432
463
  readonly successSoft: "rgba(21, 128, 61, 0.15)";
433
464
  readonly successSoftForeground: "#205f34";
434
465
  readonly successSoftPressed: "rgba(21, 128, 61, 0.2)";
435
- readonly warningSoft: "rgba(180, 83, 9, 0.15)";
436
- readonly warningSoftForeground: "#793f1e";
437
- readonly warningSoftPressed: "rgba(180, 83, 9, 0.2)";
466
+ readonly warningSoft: "rgba(194, 65, 12, 0.15)";
467
+ readonly warningSoftForeground: "#82361e";
468
+ readonly warningSoftPressed: "rgba(194, 65, 12, 0.2)";
438
469
  readonly dangerSoft: "rgba(220, 38, 38, 0.15)";
439
470
  readonly dangerSoftForeground: "#b22b28";
440
471
  readonly dangerSoftPressed: "rgba(220, 38, 38, 0.2)";
@@ -477,7 +508,7 @@ declare const tokens: {
477
508
  readonly fieldBorder: "#3f3f46";
478
509
  readonly success: "#4ade80";
479
510
  readonly successForeground: "#18181b";
480
- readonly warning: "#fbbf24";
511
+ readonly warning: "#fb923c";
481
512
  readonly warningForeground: "#18181b";
482
513
  readonly danger: "#f87171";
483
514
  readonly dangerForeground: "#18181b";
@@ -487,10 +518,10 @@ declare const tokens: {
487
518
  readonly separator: "#52525b";
488
519
  readonly focus: "#c084fc";
489
520
  readonly link: "#fafafa";
490
- readonly accentPressed: "#ad78e3";
491
- readonly successPressed: "#47c875";
492
- readonly warningPressed: "#e1ac2b";
493
- readonly dangerPressed: "#df6868";
521
+ readonly accentPressed: "#c691fd";
522
+ readonly successPressed: "#64e18d";
523
+ readonly warningPressed: "#fc9d55";
524
+ readonly dangerPressed: "#fa807e";
494
525
  readonly defaultPressed: "#2e2e31";
495
526
  readonly surfacePressed: "#27272a";
496
527
  readonly defaultSoft: "rgba(39, 39, 42, 0.5)";
@@ -502,9 +533,9 @@ declare const tokens: {
502
533
  readonly successSoft: "rgba(74, 222, 128, 0.15)";
503
534
  readonly successSoftForeground: "#8de8a6";
504
535
  readonly successSoftPressed: "rgba(74, 222, 128, 0.2)";
505
- readonly warningSoft: "rgba(251, 191, 36, 0.15)";
506
- readonly warningSoftForeground: "#fbd586";
507
- readonly warningSoftPressed: "rgba(251, 191, 36, 0.2)";
536
+ readonly warningSoft: "rgba(251, 146, 60, 0.15)";
537
+ readonly warningSoftForeground: "#feb887";
538
+ readonly warningSoftPressed: "rgba(251, 146, 60, 0.2)";
508
539
  readonly dangerSoft: "rgba(248, 113, 113, 0.15)";
509
540
  readonly dangerSoftForeground: "#fc8f8c";
510
541
  readonly dangerSoftPressed: "rgba(248, 113, 113, 0.2)";
@@ -9,14 +9,16 @@ import {
9
9
  primitives,
10
10
  sourceKeys,
11
11
  tokens
12
- } from "../chunk-2KXQATVL.js";
12
+ } from "../chunk-WKCQ6VGW.js";
13
+ import "../chunk-2PMXMKS5.js";
13
14
  import {
14
15
  ThemeContext,
15
16
  deriveTint,
16
17
  useColorMode,
17
18
  useThemeColor,
18
19
  useXAUITheme
19
- } from "../chunk-X2K2FX3W.js";
20
+ } from "../chunk-A3EGFI6T.js";
21
+ import "../chunk-M63GFNKV.js";
20
22
  export {
21
23
  ThemeContext,
22
24
  XAUIProvider,
@@ -156,4 +156,4 @@ type XAUIThemeSet = {
156
156
  dark: XAUITheme;
157
157
  };
158
158
 
159
- export type { ColorMode as C, FontSizeKey as F, RadiusKey as R, Size as S, XAUIColors as X, FontWeightKey as a, XAUIDerivedColors as b, XAUIPrimitiveColors as c, XAUIRadius as d, XAUIShadow as e, XAUISourceColors as f, XAUITheme as g, XAUIThemeConfig as h, XAUIThemeSet as i };
159
+ export type { ColorMode as C, FontSizeKey as F, RadiusKey as R, Size as S, XAUITheme as X, XAUIColors as a, FontWeightKey as b, XAUIDerivedColors as c, XAUIPrimitiveColors as d, XAUIRadius as e, XAUIShadow as f, XAUISourceColors as g, XAUIThemeConfig as h, XAUIThemeSet as i };
@@ -156,4 +156,4 @@ type XAUIThemeSet = {
156
156
  dark: XAUITheme;
157
157
  };
158
158
 
159
- export type { ColorMode as C, FontSizeKey as F, RadiusKey as R, Size as S, XAUIColors as X, FontWeightKey as a, XAUIDerivedColors as b, XAUIPrimitiveColors as c, XAUIRadius as d, XAUIShadow as e, XAUISourceColors as f, XAUITheme as g, XAUIThemeConfig as h, XAUIThemeSet as i };
159
+ export type { ColorMode as C, FontSizeKey as F, RadiusKey as R, Size as S, XAUITheme as X, XAUIColors as a, FontWeightKey as b, XAUIDerivedColors as c, XAUIPrimitiveColors as d, XAUIRadius as e, XAUIShadow as f, XAUISourceColors as g, XAUIThemeConfig as h, XAUIThemeSet as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.9.1-alpha.4",
3
+ "version": "0.9.1-alpha.40",
4
4
  "description": "Composition-first React Native UI components with native animations powered by Reanimated",
5
5
  "keywords": [
6
6
  "react-native",
@@ -14,23 +14,258 @@
14
14
  ],
15
15
  "license": "MIT",
16
16
  "type": "module",
17
- "main": "./dist/index.js",
17
+ "main": "./dist/index.cjs",
18
18
  "types": "./dist/index.d.ts",
19
19
  "exports": {
20
20
  ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js",
23
- "require": "./dist/index.js"
21
+ "import": {
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/index.d.cts",
27
+ "default": "./dist/index.cjs"
28
+ }
29
+ },
30
+ "./accordion": {
31
+ "import": {
32
+ "types": "./dist/components/accordion/index.d.ts",
33
+ "default": "./dist/components/accordion/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/components/accordion/index.d.cts",
37
+ "default": "./dist/components/accordion/index.cjs"
38
+ }
39
+ },
40
+ "./alert": {
41
+ "import": {
42
+ "types": "./dist/components/alert/index.d.ts",
43
+ "default": "./dist/components/alert/index.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/components/alert/index.d.cts",
47
+ "default": "./dist/components/alert/index.cjs"
48
+ }
49
+ },
50
+ "./avatar": {
51
+ "import": {
52
+ "types": "./dist/components/avatar/index.d.ts",
53
+ "default": "./dist/components/avatar/index.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/components/avatar/index.d.cts",
57
+ "default": "./dist/components/avatar/index.cjs"
58
+ }
59
+ },
60
+ "./badge": {
61
+ "import": {
62
+ "types": "./dist/components/badge/index.d.ts",
63
+ "default": "./dist/components/badge/index.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/components/badge/index.d.cts",
67
+ "default": "./dist/components/badge/index.cjs"
68
+ }
69
+ },
70
+ "./button": {
71
+ "import": {
72
+ "types": "./dist/components/button/index.d.ts",
73
+ "default": "./dist/components/button/index.js"
74
+ },
75
+ "require": {
76
+ "types": "./dist/components/button/index.d.cts",
77
+ "default": "./dist/components/button/index.cjs"
78
+ }
79
+ },
80
+ "./card": {
81
+ "import": {
82
+ "types": "./dist/components/card/index.d.ts",
83
+ "default": "./dist/components/card/index.js"
84
+ },
85
+ "require": {
86
+ "types": "./dist/components/card/index.d.cts",
87
+ "default": "./dist/components/card/index.cjs"
88
+ }
89
+ },
90
+ "./checkbox": {
91
+ "import": {
92
+ "types": "./dist/components/checkbox/index.d.ts",
93
+ "default": "./dist/components/checkbox/index.js"
94
+ },
95
+ "require": {
96
+ "types": "./dist/components/checkbox/index.d.cts",
97
+ "default": "./dist/components/checkbox/index.cjs"
98
+ }
99
+ },
100
+ "./chip": {
101
+ "import": {
102
+ "types": "./dist/components/chip/index.d.ts",
103
+ "default": "./dist/components/chip/index.js"
104
+ },
105
+ "require": {
106
+ "types": "./dist/components/chip/index.d.cts",
107
+ "default": "./dist/components/chip/index.cjs"
108
+ }
109
+ },
110
+ "./divider": {
111
+ "import": {
112
+ "types": "./dist/components/divider/index.d.ts",
113
+ "default": "./dist/components/divider/index.js"
114
+ },
115
+ "require": {
116
+ "types": "./dist/components/divider/index.d.cts",
117
+ "default": "./dist/components/divider/index.cjs"
118
+ }
119
+ },
120
+ "./field-group": {
121
+ "import": {
122
+ "types": "./dist/components/field-group/index.d.ts",
123
+ "default": "./dist/components/field-group/index.js"
124
+ },
125
+ "require": {
126
+ "types": "./dist/components/field-group/index.d.cts",
127
+ "default": "./dist/components/field-group/index.cjs"
128
+ }
129
+ },
130
+ "./input-otp": {
131
+ "import": {
132
+ "types": "./dist/components/input-otp/index.d.ts",
133
+ "default": "./dist/components/input-otp/index.js"
134
+ },
135
+ "require": {
136
+ "types": "./dist/components/input-otp/index.d.cts",
137
+ "default": "./dist/components/input-otp/index.cjs"
138
+ }
139
+ },
140
+ "./menu": {
141
+ "import": {
142
+ "types": "./dist/components/menu/index.d.ts",
143
+ "default": "./dist/components/menu/index.js"
144
+ },
145
+ "require": {
146
+ "types": "./dist/components/menu/index.d.cts",
147
+ "default": "./dist/components/menu/index.cjs"
148
+ }
149
+ },
150
+ "./popover": {
151
+ "import": {
152
+ "types": "./dist/components/popover/index.d.ts",
153
+ "default": "./dist/components/popover/index.js"
154
+ },
155
+ "require": {
156
+ "types": "./dist/components/popover/index.d.cts",
157
+ "default": "./dist/components/popover/index.cjs"
158
+ }
159
+ },
160
+ "./radio": {
161
+ "import": {
162
+ "types": "./dist/components/radio/index.d.ts",
163
+ "default": "./dist/components/radio/index.js"
164
+ },
165
+ "require": {
166
+ "types": "./dist/components/radio/index.d.cts",
167
+ "default": "./dist/components/radio/index.cjs"
168
+ }
169
+ },
170
+ "./select": {
171
+ "import": {
172
+ "types": "./dist/components/select/index.d.ts",
173
+ "default": "./dist/components/select/index.js"
174
+ },
175
+ "require": {
176
+ "types": "./dist/components/select/index.d.cts",
177
+ "default": "./dist/components/select/index.cjs"
178
+ }
179
+ },
180
+ "./skeleton": {
181
+ "import": {
182
+ "types": "./dist/components/skeleton/index.d.ts",
183
+ "default": "./dist/components/skeleton/index.js"
184
+ },
185
+ "require": {
186
+ "types": "./dist/components/skeleton/index.d.cts",
187
+ "default": "./dist/components/skeleton/index.cjs"
188
+ }
189
+ },
190
+ "./spinner": {
191
+ "import": {
192
+ "types": "./dist/components/spinner/index.d.ts",
193
+ "default": "./dist/components/spinner/index.js"
194
+ },
195
+ "require": {
196
+ "types": "./dist/components/spinner/index.d.cts",
197
+ "default": "./dist/components/spinner/index.cjs"
198
+ }
199
+ },
200
+ "./switch": {
201
+ "import": {
202
+ "types": "./dist/components/switch/index.d.ts",
203
+ "default": "./dist/components/switch/index.js"
204
+ },
205
+ "require": {
206
+ "types": "./dist/components/switch/index.d.cts",
207
+ "default": "./dist/components/switch/index.cjs"
208
+ }
209
+ },
210
+ "./text-area": {
211
+ "import": {
212
+ "types": "./dist/components/text-area/index.d.ts",
213
+ "default": "./dist/components/text-area/index.js"
214
+ },
215
+ "require": {
216
+ "types": "./dist/components/text-area/index.d.cts",
217
+ "default": "./dist/components/text-area/index.cjs"
218
+ }
219
+ },
220
+ "./text-field": {
221
+ "import": {
222
+ "types": "./dist/components/text-field/index.d.ts",
223
+ "default": "./dist/components/text-field/index.js"
224
+ },
225
+ "require": {
226
+ "types": "./dist/components/text-field/index.d.cts",
227
+ "default": "./dist/components/text-field/index.cjs"
228
+ }
229
+ },
230
+ "./typography": {
231
+ "import": {
232
+ "types": "./dist/components/typography/index.d.ts",
233
+ "default": "./dist/components/typography/index.js"
234
+ },
235
+ "require": {
236
+ "types": "./dist/components/typography/index.d.cts",
237
+ "default": "./dist/components/typography/index.cjs"
238
+ }
239
+ },
240
+ "./view": {
241
+ "import": {
242
+ "types": "./dist/components/view/index.d.ts",
243
+ "default": "./dist/components/view/index.js"
244
+ },
245
+ "require": {
246
+ "types": "./dist/components/view/index.d.cts",
247
+ "default": "./dist/components/view/index.cjs"
248
+ }
24
249
  },
25
250
  "./system": {
26
- "types": "./dist/system/index.d.ts",
27
- "import": "./dist/system/index.js",
28
- "require": "./dist/system/index.js"
251
+ "import": {
252
+ "types": "./dist/system/index.d.ts",
253
+ "default": "./dist/system/index.js"
254
+ },
255
+ "require": {
256
+ "types": "./dist/system/index.d.cts",
257
+ "default": "./dist/system/index.cjs"
258
+ }
29
259
  },
30
260
  "./theme": {
31
- "types": "./dist/theme/index.d.ts",
32
- "import": "./dist/theme/index.js",
33
- "require": "./dist/theme/index.js"
261
+ "import": {
262
+ "types": "./dist/theme/index.d.ts",
263
+ "default": "./dist/theme/index.js"
264
+ },
265
+ "require": {
266
+ "types": "./dist/theme/index.d.cts",
267
+ "default": "./dist/theme/index.cjs"
268
+ }
34
269
  }
35
270
  },
36
271
  "files": [
@@ -67,19 +302,20 @@
67
302
  }
68
303
  },
69
304
  "devDependencies": {
70
- "@types/react": "^19.1.0",
71
- "react": "19.1.0",
72
- "react-native": "0.83.6",
305
+ "@types/react": "^19.2.0",
306
+ "react": "19.2.0",
307
+ "react-native": "0.83.10",
73
308
  "react-native-gesture-handler": "^2.28.0",
74
- "react-native-reanimated": "^4.0.0",
309
+ "react-native-reanimated": "4.2.1",
75
310
  "react-native-safe-area-context": "^5.6.0",
76
- "react-native-svg": "^15.8.0",
77
- "react-native-worklets": "^0.5.1",
311
+ "react-native-svg": "15.15.3",
312
+ "react-native-worklets": "0.7.4",
78
313
  "tsup": "^8.5.1",
79
314
  "typescript": "^5.9.3"
80
315
  },
316
+ "module": "./dist/index.js",
81
317
  "scripts": {
82
- "build": "rm -rf dist && tsup --config tsup.config.ts",
318
+ "build": "rm -rf dist && tsup --config tsup.config.ts && node ../../tooling/workletize/workletize.mjs dist",
83
319
  "dev": "tsup --config tsup.config.ts --watch",
84
320
  "test": "vitest",
85
321
  "lint": "eslint src/",