@xaui/native 0.9.1-alpha.21 → 0.9.1-alpha.22

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 (75) hide show
  1. package/dist/{chunk-RMLFMRWL.js → chunk-2U6JR7BF.js} +5 -5
  2. package/dist/{chunk-N7C4UNUL.js → chunk-3JATAB7S.js} +23 -1
  3. package/dist/chunk-4MHJOWM4.cjs +364 -0
  4. package/dist/{chunk-2WMVDMFV.cjs → chunk-6HXWQ5AU.cjs} +2 -2
  5. package/dist/chunk-6WW4CSPY.cjs +82 -0
  6. package/dist/chunk-AHL33YAO.js +425 -0
  7. package/dist/{chunk-XHZBXYVU.js → chunk-AKXG43S4.js} +1 -1
  8. package/dist/{chunk-4NE3SLTM.cjs → chunk-BH5DSJVX.cjs} +102 -73
  9. package/dist/{chunk-BPBY7ON7.cjs → chunk-BNWS26PX.cjs} +19 -21
  10. package/dist/{chunk-5LC6KVL3.cjs → chunk-DXGQ43IV.cjs} +3 -3
  11. package/dist/{chunk-ISVUXVFL.js → chunk-FNQF4KQV.js} +19 -71
  12. package/dist/{chunk-YRCUALUQ.js → chunk-FTCTTBLG.js} +7 -9
  13. package/dist/{chunk-JL27KVRT.js → chunk-FVP5FUVS.js} +3 -3
  14. package/dist/{chunk-UL263KGM.cjs → chunk-GBPWTFTU.cjs} +10 -10
  15. package/dist/{chunk-TUJBDS5M.js → chunk-GG2WWCBK.js} +10 -10
  16. package/dist/{chunk-EVXZGNPA.cjs → chunk-HUZ4AUM2.cjs} +98 -98
  17. package/dist/chunk-I6PE5UUH.cjs +425 -0
  18. package/dist/{chunk-33QILJJH.cjs → chunk-IBEX4XGV.cjs} +11 -11
  19. package/dist/{chunk-IBRVMLUF.js → chunk-KM2TI5IC.js} +107 -80
  20. package/dist/chunk-OGC4RKE3.js +364 -0
  21. package/dist/{chunk-JXLRHKCQ.js → chunk-OYZYWWJ6.js} +1 -1
  22. package/dist/{chunk-EXX6ATAS.js → chunk-PMO62QK4.js} +101 -101
  23. package/dist/{chunk-UBA6AEY6.cjs → chunk-RAWOJ3N3.cjs} +8 -8
  24. package/dist/{chunk-APCBIHLR.cjs → chunk-VDRRD6GM.cjs} +29 -81
  25. package/dist/{chunk-UVO4GFSW.cjs → chunk-YXVKQMCK.cjs} +23 -1
  26. package/dist/chunk-ZQ3JSWRO.js +82 -0
  27. package/dist/close-button.type-BUYuoSt2.d.ts +36 -0
  28. package/dist/close-button.type-CHsgZ3wO.d.cts +36 -0
  29. package/dist/components/alert/index.cjs +17 -0
  30. package/dist/components/alert/index.d.cts +169 -0
  31. package/dist/components/alert/index.d.ts +169 -0
  32. package/dist/components/alert/index.js +17 -0
  33. package/dist/components/button/index.cjs +6 -7
  34. package/dist/components/button/index.d.cts +193 -244
  35. package/dist/components/button/index.d.ts +193 -244
  36. package/dist/components/button/index.js +5 -6
  37. package/dist/components/card/index.cjs +5 -6
  38. package/dist/components/card/index.d.cts +193 -193
  39. package/dist/components/card/index.d.ts +193 -193
  40. package/dist/components/card/index.js +4 -5
  41. package/dist/components/chip/index.cjs +17 -0
  42. package/dist/components/chip/index.d.cts +608 -0
  43. package/dist/components/chip/index.d.ts +608 -0
  44. package/dist/components/chip/index.js +17 -0
  45. package/dist/components/typography/index.cjs +4 -4
  46. package/dist/components/typography/index.d.cts +4 -4
  47. package/dist/components/typography/index.d.ts +4 -4
  48. package/dist/components/typography/index.js +3 -3
  49. package/dist/components/view/index.cjs +3 -3
  50. package/dist/components/view/index.d.cts +7 -7
  51. package/dist/components/view/index.d.ts +7 -7
  52. package/dist/components/view/index.js +2 -2
  53. package/dist/{create-recipe-CC3NNCqF.d.ts → create-recipe-CbXika57.d.ts} +4 -3
  54. package/dist/{create-recipe-CPBFg7ym.d.cts → create-recipe-jHlk434p.d.cts} +4 -3
  55. package/dist/{icon.type-Cs1tMX0W.d.cts → icon.type-CF4KiMKl.d.cts} +1 -1
  56. package/dist/{icon.type-BkcEPJbK.d.ts → icon.type-Dq4_qePa.d.ts} +1 -1
  57. package/dist/index.cjs +36 -14
  58. package/dist/index.d.cts +8 -5
  59. package/dist/index.d.ts +8 -5
  60. package/dist/index.js +55 -33
  61. package/dist/{pressable-feedback.type-wfeiJz5m.d.cts → pressable-feedback.type-BA2C9sSz.d.cts} +1 -1
  62. package/dist/{pressable-feedback.type-DsvWZXWC.d.ts → pressable-feedback.type-Bs4dQlGj.d.ts} +1 -1
  63. package/dist/{style-props.type-B1BG5TCm.d.cts → style-props.type-CfnoGEP7.d.cts} +1 -1
  64. package/dist/{style-props.type-B1BG5TCm.d.ts → style-props.type-CfnoGEP7.d.ts} +1 -1
  65. package/dist/system/index.cjs +15 -7
  66. package/dist/system/index.d.cts +174 -100
  67. package/dist/system/index.d.ts +174 -100
  68. package/dist/system/index.js +15 -7
  69. package/dist/theme/index.cjs +2 -2
  70. package/dist/theme/index.d.cts +10 -10
  71. package/dist/theme/index.d.ts +10 -10
  72. package/dist/theme/index.js +1 -1
  73. package/package.json +21 -1
  74. package/dist/chunk-RRRGLRRP.cjs +0 -28
  75. package/dist/chunk-SGHP76GU.js +0 -28
@@ -418,7 +418,7 @@ declare const tokens: {
418
418
  readonly fieldBorder: "#e4e4e7";
419
419
  readonly success: "#15803d";
420
420
  readonly successForeground: "#fafafa";
421
- readonly warning: "#b45309";
421
+ readonly warning: "#c2410c";
422
422
  readonly warningForeground: "#fafafa";
423
423
  readonly danger: "#dc2626";
424
424
  readonly dangerForeground: "#fafafa";
@@ -430,7 +430,7 @@ declare const tokens: {
430
430
  readonly link: "#18181b";
431
431
  readonly accentPressed: "#8533d3";
432
432
  readonly successPressed: "#1b753a";
433
- readonly warningPressed: "#a34d13";
433
+ readonly warningPressed: "#af3e15";
434
434
  readonly dangerPressed: "#c72927";
435
435
  readonly defaultPressed: "#dbdbde";
436
436
  readonly surfacePressed: "#eaeaea";
@@ -443,9 +443,9 @@ declare const tokens: {
443
443
  readonly successSoft: "rgba(21, 128, 61, 0.15)";
444
444
  readonly successSoftForeground: "#205f34";
445
445
  readonly successSoftPressed: "rgba(21, 128, 61, 0.2)";
446
- readonly warningSoft: "rgba(180, 83, 9, 0.15)";
447
- readonly warningSoftForeground: "#793f1e";
448
- readonly warningSoftPressed: "rgba(180, 83, 9, 0.2)";
446
+ readonly warningSoft: "rgba(194, 65, 12, 0.15)";
447
+ readonly warningSoftForeground: "#82361e";
448
+ readonly warningSoftPressed: "rgba(194, 65, 12, 0.2)";
449
449
  readonly dangerSoft: "rgba(220, 38, 38, 0.15)";
450
450
  readonly dangerSoftForeground: "#b22b28";
451
451
  readonly dangerSoftPressed: "rgba(220, 38, 38, 0.2)";
@@ -488,7 +488,7 @@ declare const tokens: {
488
488
  readonly fieldBorder: "#3f3f46";
489
489
  readonly success: "#4ade80";
490
490
  readonly successForeground: "#18181b";
491
- readonly warning: "#fbbf24";
491
+ readonly warning: "#fb923c";
492
492
  readonly warningForeground: "#18181b";
493
493
  readonly danger: "#f87171";
494
494
  readonly dangerForeground: "#18181b";
@@ -500,7 +500,7 @@ declare const tokens: {
500
500
  readonly link: "#fafafa";
501
501
  readonly accentPressed: "#c691fd";
502
502
  readonly successPressed: "#64e18d";
503
- readonly warningPressed: "#fbc54b";
503
+ readonly warningPressed: "#fc9d55";
504
504
  readonly dangerPressed: "#fa807e";
505
505
  readonly defaultPressed: "#2e2e31";
506
506
  readonly surfacePressed: "#27272a";
@@ -513,9 +513,9 @@ declare const tokens: {
513
513
  readonly successSoft: "rgba(74, 222, 128, 0.15)";
514
514
  readonly successSoftForeground: "#8de8a6";
515
515
  readonly successSoftPressed: "rgba(74, 222, 128, 0.2)";
516
- readonly warningSoft: "rgba(251, 191, 36, 0.15)";
517
- readonly warningSoftForeground: "#fbd586";
518
- readonly warningSoftPressed: "rgba(251, 191, 36, 0.2)";
516
+ readonly warningSoft: "rgba(251, 146, 60, 0.15)";
517
+ readonly warningSoftForeground: "#feb887";
518
+ readonly warningSoftPressed: "rgba(251, 146, 60, 0.2)";
519
519
  readonly dangerSoft: "rgba(248, 113, 113, 0.15)";
520
520
  readonly dangerSoftForeground: "#fc8f8c";
521
521
  readonly dangerSoftPressed: "rgba(248, 113, 113, 0.2)";
@@ -418,7 +418,7 @@ declare const tokens: {
418
418
  readonly fieldBorder: "#e4e4e7";
419
419
  readonly success: "#15803d";
420
420
  readonly successForeground: "#fafafa";
421
- readonly warning: "#b45309";
421
+ readonly warning: "#c2410c";
422
422
  readonly warningForeground: "#fafafa";
423
423
  readonly danger: "#dc2626";
424
424
  readonly dangerForeground: "#fafafa";
@@ -430,7 +430,7 @@ declare const tokens: {
430
430
  readonly link: "#18181b";
431
431
  readonly accentPressed: "#8533d3";
432
432
  readonly successPressed: "#1b753a";
433
- readonly warningPressed: "#a34d13";
433
+ readonly warningPressed: "#af3e15";
434
434
  readonly dangerPressed: "#c72927";
435
435
  readonly defaultPressed: "#dbdbde";
436
436
  readonly surfacePressed: "#eaeaea";
@@ -443,9 +443,9 @@ declare const tokens: {
443
443
  readonly successSoft: "rgba(21, 128, 61, 0.15)";
444
444
  readonly successSoftForeground: "#205f34";
445
445
  readonly successSoftPressed: "rgba(21, 128, 61, 0.2)";
446
- readonly warningSoft: "rgba(180, 83, 9, 0.15)";
447
- readonly warningSoftForeground: "#793f1e";
448
- readonly warningSoftPressed: "rgba(180, 83, 9, 0.2)";
446
+ readonly warningSoft: "rgba(194, 65, 12, 0.15)";
447
+ readonly warningSoftForeground: "#82361e";
448
+ readonly warningSoftPressed: "rgba(194, 65, 12, 0.2)";
449
449
  readonly dangerSoft: "rgba(220, 38, 38, 0.15)";
450
450
  readonly dangerSoftForeground: "#b22b28";
451
451
  readonly dangerSoftPressed: "rgba(220, 38, 38, 0.2)";
@@ -488,7 +488,7 @@ declare const tokens: {
488
488
  readonly fieldBorder: "#3f3f46";
489
489
  readonly success: "#4ade80";
490
490
  readonly successForeground: "#18181b";
491
- readonly warning: "#fbbf24";
491
+ readonly warning: "#fb923c";
492
492
  readonly warningForeground: "#18181b";
493
493
  readonly danger: "#f87171";
494
494
  readonly dangerForeground: "#18181b";
@@ -500,7 +500,7 @@ declare const tokens: {
500
500
  readonly link: "#fafafa";
501
501
  readonly accentPressed: "#c691fd";
502
502
  readonly successPressed: "#64e18d";
503
- readonly warningPressed: "#fbc54b";
503
+ readonly warningPressed: "#fc9d55";
504
504
  readonly dangerPressed: "#fa807e";
505
505
  readonly defaultPressed: "#2e2e31";
506
506
  readonly surfacePressed: "#27272a";
@@ -513,9 +513,9 @@ declare const tokens: {
513
513
  readonly successSoft: "rgba(74, 222, 128, 0.15)";
514
514
  readonly successSoftForeground: "#8de8a6";
515
515
  readonly successSoftPressed: "rgba(74, 222, 128, 0.2)";
516
- readonly warningSoft: "rgba(251, 191, 36, 0.15)";
517
- readonly warningSoftForeground: "#fbd586";
518
- readonly warningSoftPressed: "rgba(251, 191, 36, 0.2)";
516
+ readonly warningSoft: "rgba(251, 146, 60, 0.15)";
517
+ readonly warningSoftForeground: "#feb887";
518
+ readonly warningSoftPressed: "rgba(251, 146, 60, 0.2)";
519
519
  readonly dangerSoft: "rgba(248, 113, 113, 0.15)";
520
520
  readonly dangerSoftForeground: "#fc8f8c";
521
521
  readonly dangerSoftPressed: "rgba(248, 113, 113, 0.2)";
@@ -9,7 +9,7 @@ import {
9
9
  primitives,
10
10
  sourceKeys,
11
11
  tokens
12
- } from "../chunk-TUJBDS5M.js";
12
+ } from "../chunk-GG2WWCBK.js";
13
13
  import {
14
14
  ThemeContext,
15
15
  deriveTint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.9.1-alpha.21",
3
+ "version": "0.9.1-alpha.22",
4
4
  "description": "Composition-first React Native UI components with native animations powered by Reanimated",
5
5
  "keywords": [
6
6
  "react-native",
@@ -27,6 +27,16 @@
27
27
  "default": "./dist/index.cjs"
28
28
  }
29
29
  },
30
+ "./alert": {
31
+ "import": {
32
+ "types": "./dist/components/alert/index.d.ts",
33
+ "default": "./dist/components/alert/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/components/alert/index.d.cts",
37
+ "default": "./dist/components/alert/index.cjs"
38
+ }
39
+ },
30
40
  "./button": {
31
41
  "import": {
32
42
  "types": "./dist/components/button/index.d.ts",
@@ -47,6 +57,16 @@
47
57
  "default": "./dist/components/card/index.cjs"
48
58
  }
49
59
  },
60
+ "./chip": {
61
+ "import": {
62
+ "types": "./dist/components/chip/index.d.ts",
63
+ "default": "./dist/components/chip/index.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/components/chip/index.d.cts",
67
+ "default": "./dist/components/chip/index.cjs"
68
+ }
69
+ },
50
70
  "./typography": {
51
71
  "import": {
52
72
  "types": "./dist/components/typography/index.d.ts",
@@ -1,28 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/hooks/use-press-state.ts
2
- var _react = require('react');
3
- function usePressState(handlers = {}) {
4
- const [isPressed, setIsPressed] = _react.useState.call(void 0, false);
5
- const latest = _react.useRef.call(void 0, handlers);
6
- latest.current = handlers;
7
- const onPressIn = _react.useCallback.call(void 0, (event) => {
8
- setIsPressed(true);
9
- _optionalChain([latest, 'access', _ => _.current, 'access', _2 => _2.onPressIn, 'optionalCall', _3 => _3(event)]);
10
- }, []);
11
- const onPressOut = _react.useCallback.call(void 0, (event) => {
12
- setIsPressed(false);
13
- _optionalChain([latest, 'access', _4 => _4.current, 'access', _5 => _5.onPressOut, 'optionalCall', _6 => _6(event)]);
14
- }, []);
15
- const press = _react.useRef.call(void 0, { onPressIn, onPressOut }).current;
16
- return [isPressed, press];
17
- }
18
-
19
- // src/utils/warn-dev.ts
20
- function warnDev(message) {
21
- if (typeof __DEV__ !== "undefined" && !__DEV__) return;
22
- console.warn(`XAUI: ${message}`);
23
- }
24
-
25
-
26
-
27
-
28
- exports.usePressState = usePressState; exports.warnDev = warnDev;
@@ -1,28 +0,0 @@
1
- // src/hooks/use-press-state.ts
2
- import { useCallback, useRef, useState } from "react";
3
- function usePressState(handlers = {}) {
4
- const [isPressed, setIsPressed] = useState(false);
5
- const latest = useRef(handlers);
6
- latest.current = handlers;
7
- const onPressIn = useCallback((event) => {
8
- setIsPressed(true);
9
- latest.current.onPressIn?.(event);
10
- }, []);
11
- const onPressOut = useCallback((event) => {
12
- setIsPressed(false);
13
- latest.current.onPressOut?.(event);
14
- }, []);
15
- const press = useRef({ onPressIn, onPressOut }).current;
16
- return [isPressed, press];
17
- }
18
-
19
- // src/utils/warn-dev.ts
20
- function warnDev(message) {
21
- if (typeof __DEV__ !== "undefined" && !__DEV__) return;
22
- console.warn(`XAUI: ${message}`);
23
- }
24
-
25
- export {
26
- usePressState,
27
- warnDev
28
- };