@xaui/native 0.9.1-alpha.3 → 0.9.1-alpha.30

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 (143) hide show
  1. package/dist/chunk-27ZRTZEE.js +293 -0
  2. package/dist/chunk-3FV4COTM.js +68 -0
  3. package/dist/chunk-423RQBOX.js +21 -0
  4. package/dist/chunk-4GTAZM2C.js +174 -0
  5. package/dist/chunk-4XPLPQLM.cjs +147 -0
  6. package/dist/{chunk-3QBT3Q65.cjs → chunk-57SJ4LJF.cjs} +7 -2
  7. package/dist/chunk-5GO7MAVY.cjs +74 -0
  8. package/dist/chunk-5RQ7AZPN.cjs +455 -0
  9. package/dist/chunk-5Z4P6WHR.cjs +525 -0
  10. package/dist/chunk-6RVCGLKZ.js +661 -0
  11. package/dist/chunk-7DPL3ZDS.cjs +21 -0
  12. package/dist/chunk-7EIHHOHP.cjs +42 -0
  13. package/dist/chunk-7SEZGVTY.js +62 -0
  14. package/dist/chunk-7XKQJQF2.cjs +70 -0
  15. package/dist/{chunk-X2K2FX3W.js → chunk-A3EGFI6T.js} +6 -1
  16. package/dist/chunk-A5OCK3C2.js +525 -0
  17. package/dist/chunk-BA2DBSAN.js +102 -0
  18. package/dist/chunk-BFMTUMTU.js +669 -0
  19. package/dist/chunk-BVJQ3UPZ.js +62 -0
  20. package/dist/chunk-DFME724B.js +147 -0
  21. package/dist/chunk-E2CWBQTV.js +119 -0
  22. package/dist/chunk-E4TS6632.cjs +314 -0
  23. package/dist/chunk-EGLLDKN6.js +9 -0
  24. package/dist/chunk-EJQCQPET.cjs +9 -0
  25. package/dist/chunk-F6CQ6CBI.cjs +112 -0
  26. package/dist/chunk-F6W3JQ7K.js +42 -0
  27. package/dist/chunk-FMZQW35T.js +431 -0
  28. package/dist/chunk-FNEUOBCV.cjs +174 -0
  29. package/dist/chunk-G7K652GC.js +145 -0
  30. package/dist/chunk-GGW42MY4.js +20 -0
  31. package/dist/chunk-GI24YJPE.js +314 -0
  32. package/dist/chunk-GLGU2WFL.cjs +190 -0
  33. package/dist/chunk-GPVNCJ3Z.cjs +696 -0
  34. package/dist/chunk-GVQOD3VW.js +74 -0
  35. package/dist/chunk-KOC3KQIT.js +124 -0
  36. package/dist/chunk-KPWZLUES.cjs +124 -0
  37. package/dist/chunk-KWCHSIMI.cjs +293 -0
  38. package/dist/chunk-MC7SY2QH.cjs +20 -0
  39. package/dist/chunk-N527BTY4.cjs +366 -0
  40. package/dist/chunk-NBFWWQFW.cjs +346 -0
  41. package/dist/chunk-NYRXUGVL.js +104 -0
  42. package/dist/{chunk-AW63PTQ4.cjs → chunk-OHEHPQLC.cjs} +72 -72
  43. package/dist/chunk-Q3WFY5N3.js +366 -0
  44. package/dist/chunk-QGN2BBJO.cjs +104 -0
  45. package/dist/chunk-TGZZ3RZU.cjs +86 -0
  46. package/dist/{chunk-2KXQATVL.js → chunk-TZG3DERP.js} +46 -46
  47. package/dist/chunk-UBQLKIZC.cjs +431 -0
  48. package/dist/chunk-URSKA2VR.js +190 -0
  49. package/dist/chunk-V4WDMM6Z.js +86 -0
  50. package/dist/chunk-VJEER76X.js +455 -0
  51. package/dist/chunk-VZBWYWEI.cjs +736 -0
  52. package/dist/chunk-WR7YLDVV.cjs +68 -0
  53. package/dist/chunk-X4HQ4H2V.js +701 -0
  54. package/dist/chunk-XFSW3ZNI.cjs +145 -0
  55. package/dist/chunk-XQFAUDR2.cjs +62 -0
  56. package/dist/chunk-YKL6XHM6.js +346 -0
  57. package/dist/chunk-ZP2E2H2G.cjs +119 -0
  58. package/dist/chunk-ZSLNGBDS.cjs +700 -0
  59. package/dist/close-button.type-BUYuoSt2.d.ts +36 -0
  60. package/dist/close-button.type-CHsgZ3wO.d.cts +36 -0
  61. package/dist/components/alert/index.cjs +20 -0
  62. package/dist/components/alert/index.d.cts +169 -0
  63. package/dist/components/alert/index.d.ts +169 -0
  64. package/dist/components/alert/index.js +20 -0
  65. package/dist/components/button/index.cjs +21 -0
  66. package/dist/components/button/index.d.cts +613 -0
  67. package/dist/components/button/index.d.ts +613 -0
  68. package/dist/components/button/index.js +21 -0
  69. package/dist/components/card/index.cjs +22 -0
  70. package/dist/components/card/index.d.cts +620 -0
  71. package/dist/components/card/index.d.ts +620 -0
  72. package/dist/components/card/index.js +22 -0
  73. package/dist/components/checkbox/index.cjs +26 -0
  74. package/dist/components/checkbox/index.d.cts +1136 -0
  75. package/dist/components/checkbox/index.d.ts +1136 -0
  76. package/dist/components/checkbox/index.js +26 -0
  77. package/dist/components/chip/index.cjs +20 -0
  78. package/dist/components/chip/index.d.cts +608 -0
  79. package/dist/components/chip/index.d.ts +608 -0
  80. package/dist/components/chip/index.js +20 -0
  81. package/dist/components/input/index.cjs +25 -0
  82. package/dist/components/input/index.d.cts +205 -0
  83. package/dist/components/input/index.d.ts +205 -0
  84. package/dist/components/input/index.js +25 -0
  85. package/dist/components/input-group/index.cjs +27 -0
  86. package/dist/components/input-group/index.d.cts +270 -0
  87. package/dist/components/input-group/index.d.ts +270 -0
  88. package/dist/components/input-group/index.js +27 -0
  89. package/dist/components/input-otp/index.cjs +29 -0
  90. package/dist/components/input-otp/index.d.cts +325 -0
  91. package/dist/components/input-otp/index.d.ts +325 -0
  92. package/dist/components/input-otp/index.js +29 -0
  93. package/dist/components/radio/index.cjs +26 -0
  94. package/dist/components/radio/index.d.cts +1102 -0
  95. package/dist/components/radio/index.d.ts +1102 -0
  96. package/dist/components/radio/index.js +26 -0
  97. package/dist/components/spinner/index.cjs +16 -0
  98. package/dist/components/spinner/index.d.cts +104 -0
  99. package/dist/components/spinner/index.d.ts +104 -0
  100. package/dist/components/spinner/index.js +16 -0
  101. package/dist/components/switch/index.cjs +27 -0
  102. package/dist/components/switch/index.d.cts +1154 -0
  103. package/dist/components/switch/index.d.ts +1154 -0
  104. package/dist/components/switch/index.js +27 -0
  105. package/dist/components/text-area/index.cjs +14 -0
  106. package/dist/components/text-area/index.d.cts +73 -0
  107. package/dist/components/text-area/index.d.ts +73 -0
  108. package/dist/components/text-area/index.js +14 -0
  109. package/dist/components/typography/index.cjs +15 -0
  110. package/dist/components/typography/index.d.cts +116 -0
  111. package/dist/components/typography/index.d.ts +116 -0
  112. package/dist/components/typography/index.js +15 -0
  113. package/dist/components/view/index.cjs +17 -0
  114. package/dist/components/view/index.d.cts +152 -0
  115. package/dist/components/view/index.d.ts +152 -0
  116. package/dist/components/view/index.js +17 -0
  117. package/dist/create-recipe-BdVd2ffi.d.ts +114 -0
  118. package/dist/create-recipe-dC7wMfnj.d.cts +114 -0
  119. package/dist/icon.type-Kml72iSz.d.ts +73 -0
  120. package/dist/icon.type-d_i9ma-i.d.cts +73 -0
  121. package/dist/index.cjs +246 -4
  122. package/dist/index.d.cts +109 -4
  123. package/dist/index.d.ts +109 -4
  124. package/dist/index.js +266 -24
  125. package/dist/input.type-BUMDlzL9.d.cts +167 -0
  126. package/dist/input.type-D2qgi03E.d.ts +167 -0
  127. package/dist/pressable-feedback.type-BA2C9sSz.d.cts +127 -0
  128. package/dist/pressable-feedback.type-Bs4dQlGj.d.ts +127 -0
  129. package/dist/style-props.type-CfnoGEP7.d.cts +31 -0
  130. package/dist/style-props.type-CfnoGEP7.d.ts +31 -0
  131. package/dist/system/index.cjs +60 -3
  132. package/dist/system/index.d.cts +347 -181
  133. package/dist/system/index.d.ts +347 -181
  134. package/dist/system/index.js +71 -14
  135. package/dist/theme/index.cjs +4 -3
  136. package/dist/theme/index.d.cts +34 -23
  137. package/dist/theme/index.d.ts +34 -23
  138. package/dist/theme/index.js +3 -2
  139. package/dist/{theme.type-C9bFJKFm.d.cts → theme.type-C2gNHpEx.d.cts} +1 -1
  140. package/dist/{theme.type-C9bFJKFm.d.ts → theme.type-C2gNHpEx.d.ts} +1 -1
  141. package/package.json +174 -18
  142. package/dist/chunk-QAMNNTGM.js +0 -637
  143. package/dist/chunk-V63JO65F.cjs +0 -637
@@ -0,0 +1,104 @@
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; }
2
+
3
+ var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
4
+
5
+
6
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
7
+
8
+
9
+ var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
10
+
11
+
12
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
13
+
14
+ // src/components/typography/typography.tsx
15
+ var _react = require('react');
16
+ var _reactnative = require('react-native');
17
+
18
+ // src/components/typography/typography.recipe.ts
19
+ var SLOTS = ["root"];
20
+ var VARIANT_TOKENS = {
21
+ h1: { fg: "foreground" },
22
+ h2: { fg: "foreground" },
23
+ h3: { fg: "foreground" },
24
+ h4: { fg: "foreground" },
25
+ h5: { fg: "foreground" },
26
+ h6: { fg: "foreground" },
27
+ body: { fg: "foreground" },
28
+ "body-sm": { fg: "foreground" },
29
+ "body-xs": { fg: "foreground" },
30
+ code: { fg: "foreground" }
31
+ };
32
+ var ROLES = {
33
+ h1: { step: "4xl", weight: "bold", family: "heading", letterSpacing: -0.5 },
34
+ h2: { step: "3xl", weight: "bold", family: "heading", letterSpacing: -0.4 },
35
+ h3: { step: "2xl", weight: "bold", family: "heading", letterSpacing: -0.3 },
36
+ h4: { step: "xl", weight: "semibold", family: "heading" },
37
+ h5: { step: "lg", weight: "semibold", family: "heading" },
38
+ h6: { step: "md", weight: "semibold", family: "heading" },
39
+ body: { step: "md", weight: "regular", family: "body" },
40
+ "body-sm": { step: "sm", weight: "regular", family: "body" },
41
+ "body-xs": { step: "xs", weight: "regular", family: "body" },
42
+ code: { step: "sm", weight: "regular", family: "mono", chip: true }
43
+ };
44
+ function metricsOf({ step, weight, family, letterSpacing, chip }) {
45
+ return (theme) => ({
46
+ root: {
47
+ fontSize: theme.fontSizes[step],
48
+ lineHeight: theme.lineHeights[step],
49
+ fontWeight: theme.fontWeights[weight],
50
+ fontFamily: theme.fontFamilies[family],
51
+ ...letterSpacing === void 0 ? {} : { letterSpacing },
52
+ ...chip === void 0 ? {} : {
53
+ alignSelf: "flex-start",
54
+ backgroundColor: theme.colors.default,
55
+ paddingHorizontal: theme.spacing(1.5),
56
+ paddingVertical: theme.spacing(0.5),
57
+ borderRadius: theme.radius.md
58
+ }
59
+ }
60
+ });
61
+ }
62
+ var ROLE_AXIS = Object.fromEntries(
63
+ Object.entries(ROLES).map(([name, spec]) => [name, metricsOf(spec)])
64
+ );
65
+ var typographyRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
66
+ slots: SLOTS,
67
+ variantTokens: VARIANT_TOKENS,
68
+ // Ink only. The chip's fill is a token, not a role, so it belongs to the metrics above —
69
+ // where it also stays inside the cache key instead of being recomputed with the tint.
70
+ paint: (_theme, colors) => ({ root: { color: colors.fg } }),
71
+ variants: { variant: ROLE_AXIS },
72
+ defaultVariants: { variant: "body" }
73
+ });
74
+
75
+ // src/components/typography/typography.tsx
76
+ var _jsxruntime = require('react/jsx-runtime');
77
+ var Typography = _react.forwardRef.call(void 0, function Typography2({ children, variant, color, asChild = false, style, ...props }, ref) {
78
+ const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
79
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
80
+ const selection = { variant };
81
+ const styles = typographyRecipe.resolve({ theme, selection });
82
+ const tint = color ? typographyRecipe.tint({ theme, color, selection }) : void 0;
83
+ const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style];
84
+ const Root = asChild ? _chunkZP2E2H2Gcjs.Slot : _reactnative.Text;
85
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: rootStyle, ...rest, children });
86
+ });
87
+ Typography.displayName = "XAUI.Typography";
88
+
89
+ // src/components/typography/text-span.tsx
90
+
91
+
92
+
93
+ var TextSpan = _react.forwardRef.call(void 0, function TextSpan2({ children, asChild = false, style, ...props }, ref) {
94
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
95
+ const Root = asChild ? _chunkZP2E2H2Gcjs.Slot : _reactnative.Text;
96
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [styleProps, style], ...rest, children });
97
+ });
98
+ TextSpan.displayName = "XAUI.TextSpan";
99
+
100
+
101
+
102
+
103
+
104
+ exports.typographyRecipe = typographyRecipe; exports.Typography = Typography; exports.TextSpan = TextSpan;
@@ -0,0 +1,86 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
4
+
5
+
6
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
7
+
8
+
9
+ var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
10
+
11
+
12
+ var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
13
+
14
+ // src/system/close-button/close-button.tsx
15
+ var _react = require('react');
16
+ var _reactnative = require('react-native');
17
+
18
+ // src/system/close-button/close-button.style.ts
19
+
20
+ var closeButtonSheet = _reactnative.StyleSheet.create({
21
+ bar: { transform: [{ rotate: "45deg" }] },
22
+ barMirrored: { transform: [{ rotate: "-45deg" }] }
23
+ });
24
+
25
+ // src/system/close-button/close-button.tsx
26
+ var _jsxruntime = require('react/jsx-runtime');
27
+ var HIT_SLOP = 8;
28
+ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
29
+ name,
30
+ children,
31
+ baseStyle,
32
+ glyphStyle,
33
+ accessibilityRole = "button",
34
+ hitSlop = HIT_SLOP,
35
+ style,
36
+ onPressIn,
37
+ onPressOut,
38
+ ...props
39
+ }, ref) {
40
+ const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
41
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
42
+ if (!rest.accessibilityLabel && !rest["aria-label"]) {
43
+ _chunkEJQCQPETcjs.warnDev.call(void 0,
44
+ `${name}: a close button needs an \`accessibilityLabel\` \u2014 the cross is not text, and the label beside it names what is being dismissed, not the action.`
45
+ );
46
+ }
47
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
48
+ _chunkGPVNCJ3Zcjs.PressableFeedback,
49
+ {
50
+ ref,
51
+ isPressed,
52
+ accessibilityRole,
53
+ hitSlop,
54
+ ...rest,
55
+ style: [
56
+ baseStyle,
57
+ styleProps,
58
+ typeof style === "function" ? style({ pressed: isPressed }) : style
59
+ ],
60
+ onPressIn: press.onPressIn,
61
+ onPressOut: press.onPressOut,
62
+ children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
63
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [glyphStyle, closeButtonSheet.bar] }),
64
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [glyphStyle, closeButtonSheet.barMirrored] })
65
+ ] })))
66
+ }
67
+ );
68
+ });
69
+ CloseButton.displayName = "XAUI.CloseButton";
70
+
71
+ // src/system/close-button/close-button.recipe.ts
72
+ function closeButtonBase(theme) {
73
+ return {
74
+ close: { alignItems: "center", justifyContent: "center" },
75
+ closeGlyph: {
76
+ position: "absolute",
77
+ height: theme.borderWidth.default * 1.5,
78
+ borderRadius: theme.borderWidth.default
79
+ }
80
+ };
81
+ }
82
+
83
+
84
+
85
+
86
+ exports.CloseButton = CloseButton; exports.closeButtonBase = closeButtonBase;
@@ -2,35 +2,21 @@ import {
2
2
  ThemeContext,
3
3
  alpha,
4
4
  mix
5
- } from "./chunk-X2K2FX3W.js";
5
+ } from "./chunk-A3EGFI6T.js";
6
+ import {
7
+ stableHash
8
+ } from "./chunk-GGW42MY4.js";
6
9
 
7
10
  // src/provider/xaui-provider.tsx
8
11
  import { useColorScheme } from "react-native";
9
12
 
10
- // src/utils/stable-hash.ts
11
- function canonical(value) {
12
- if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null";
13
- if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
14
- const entries = Object.entries(value).filter(([, v]) => typeof v !== "function").sort(([a], [b]) => a < b ? -1 : 1).map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`);
15
- return `{${entries.join(",")}}`;
16
- }
17
- function stableHash(value) {
18
- const input = canonical(value);
19
- let hash = 2166136261;
20
- for (let i = 0; i < input.length; i++) {
21
- hash ^= input.charCodeAt(i);
22
- hash = Math.imul(hash, 16777619) >>> 0;
23
- }
24
- return hash.toString(36);
25
- }
26
-
27
13
  // src/theme/derive-colors.ts
28
14
  function deriveColors(s) {
29
15
  return {
30
- accentPressed: mix(s.accent, s.accentForeground, 0.1),
31
- successPressed: mix(s.success, s.successForeground, 0.1),
32
- warningPressed: mix(s.warning, s.warningForeground, 0.1),
33
- dangerPressed: mix(s.danger, s.dangerForeground, 0.1),
16
+ accentPressed: mix(s.accent, s.foreground, 0.1),
17
+ successPressed: mix(s.success, s.foreground, 0.1),
18
+ warningPressed: mix(s.warning, s.foreground, 0.1),
19
+ dangerPressed: mix(s.danger, s.foreground, 0.1),
34
20
  defaultPressed: mix(s.default, s.defaultForeground, 0.04),
35
21
  surfacePressed: mix(s.surface, s.surfaceForeground, 0.08),
36
22
  defaultSoft: alpha(s.default, 0.5),
@@ -63,6 +49,7 @@ function deriveColors(s) {
63
49
  }
64
50
 
65
51
  // src/theme/scales.ts
52
+ import { Platform } from "react-native";
66
53
  var SPACING_UNIT = 4;
67
54
  var RADIUS_BASE = 12;
68
55
  function buildRadius(base) {
@@ -75,7 +62,16 @@ function buildRadius(base) {
75
62
  "2xl": base * 2,
76
63
  "3xl": base * 3,
77
64
  "4xl": base * 4,
78
- field: base * 1.75,
65
+ /**
66
+ * HeroUI's value, reached from the other side of the scale: their `--radius-field` is
67
+ * an alias of their `--radius-xl`, and their base is 8 where ours is 12 — so their
68
+ * field corner is 12 points and, at our default base, so is this.
69
+ *
70
+ * It coincides with `lg` today and is still its own key, because that is what lets a
71
+ * theme round its fields without rounding its cards. It was `base * 1.75`, which put a
72
+ * 48-tall field at 87% of its geometric maximum — a gélule rather than a rounded box.
73
+ */
74
+ field: base,
79
75
  full: 9999
80
76
  };
81
77
  }
@@ -114,7 +110,10 @@ var fontWeights = {
114
110
  var fontFamilies = {
115
111
  body: "System",
116
112
  heading: "System",
117
- mono: "monospace"
113
+ // `'monospace'` is an Android family name, not a generic one: iOS does not resolve it and
114
+ // silently falls back to the system face, so code set with it is not monospaced there.
115
+ // Menlo is the face iOS ships, and it is what HeroUI Native selects for the same reason.
116
+ mono: Platform.OS === "ios" ? "Menlo" : "monospace"
118
117
  };
119
118
  var borderWidth = { default: 1, field: 1 };
120
119
  var opacity = { disabled: 0.5 };
@@ -171,7 +170,7 @@ var tokens = {
171
170
  foreground: "#18181b",
172
171
  surface: "#ffffff",
173
172
  surfaceForeground: "#18181b",
174
- surfaceSecondary: "#f4f4f5",
173
+ surfaceSecondary: "#ececee",
175
174
  surfaceSecondaryForeground: "#18181b",
176
175
  surfaceTertiary: "#e4e4e7",
177
176
  surfaceTertiaryForeground: "#18181b",
@@ -179,7 +178,7 @@ var tokens = {
179
178
  overlayForeground: "#18181b",
180
179
  backdrop: "rgba(0, 0, 0, 0.2)",
181
180
  muted: "#71717a",
182
- default: "#f4f4f5",
181
+ default: "#e4e4e7",
183
182
  defaultForeground: "#18181b",
184
183
  accent: "#9333ea",
185
184
  accentForeground: "#faf5ff",
@@ -189,7 +188,7 @@ var tokens = {
189
188
  fieldBorder: "#e4e4e7",
190
189
  success: "#15803d",
191
190
  successForeground: "#fafafa",
192
- warning: "#b45309",
191
+ warning: "#c2410c",
193
192
  warningForeground: "#fafafa",
194
193
  danger: "#dc2626",
195
194
  dangerForeground: "#fafafa",
@@ -199,24 +198,24 @@ var tokens = {
199
198
  separator: "#d4d4d8",
200
199
  focus: "#9333ea",
201
200
  link: "#18181b",
202
- accentPressed: "#9c4eee",
203
- successPressed: "#378c50",
204
- warningPressed: "#bd642f",
205
- dangerPressed: "#e2473f",
206
- defaultPressed: "#eaeaeb",
201
+ accentPressed: "#8533d3",
202
+ successPressed: "#1b753a",
203
+ warningPressed: "#af3e15",
204
+ dangerPressed: "#c72927",
205
+ defaultPressed: "#dbdbde",
207
206
  surfacePressed: "#eaeaea",
208
- defaultSoft: "rgba(244, 244, 245, 0.5)",
207
+ defaultSoft: "rgba(228, 228, 231, 0.5)",
209
208
  defaultSoftForeground: "#18181b",
210
- defaultSoftPressed: "rgba(244, 244, 245, 0.6)",
209
+ defaultSoftPressed: "rgba(228, 228, 231, 0.6)",
211
210
  accentSoft: "rgba(147, 51, 234, 0.15)",
212
211
  accentSoftForeground: "#7833bc",
213
212
  accentSoftPressed: "rgba(147, 51, 234, 0.2)",
214
213
  successSoft: "rgba(21, 128, 61, 0.15)",
215
214
  successSoftForeground: "#205f34",
216
215
  successSoftPressed: "rgba(21, 128, 61, 0.2)",
217
- warningSoft: "rgba(180, 83, 9, 0.15)",
218
- warningSoftForeground: "#793f1e",
219
- warningSoftPressed: "rgba(180, 83, 9, 0.2)",
216
+ warningSoft: "rgba(194, 65, 12, 0.15)",
217
+ warningSoftForeground: "#82361e",
218
+ warningSoftPressed: "rgba(194, 65, 12, 0.2)",
220
219
  dangerSoft: "rgba(220, 38, 38, 0.15)",
221
220
  dangerSoftForeground: "#b22b28",
222
221
  dangerSoftPressed: "rgba(220, 38, 38, 0.2)",
@@ -259,7 +258,7 @@ var tokens = {
259
258
  fieldBorder: "#3f3f46",
260
259
  success: "#4ade80",
261
260
  successForeground: "#18181b",
262
- warning: "#fbbf24",
261
+ warning: "#fb923c",
263
262
  warningForeground: "#18181b",
264
263
  danger: "#f87171",
265
264
  dangerForeground: "#18181b",
@@ -269,10 +268,10 @@ var tokens = {
269
268
  separator: "#52525b",
270
269
  focus: "#c084fc",
271
270
  link: "#fafafa",
272
- accentPressed: "#ad78e3",
273
- successPressed: "#47c875",
274
- warningPressed: "#e1ac2b",
275
- dangerPressed: "#df6868",
271
+ accentPressed: "#c691fd",
272
+ successPressed: "#64e18d",
273
+ warningPressed: "#fc9d55",
274
+ dangerPressed: "#fa807e",
276
275
  defaultPressed: "#2e2e31",
277
276
  surfacePressed: "#27272a",
278
277
  defaultSoft: "rgba(39, 39, 42, 0.5)",
@@ -284,9 +283,9 @@ var tokens = {
284
283
  successSoft: "rgba(74, 222, 128, 0.15)",
285
284
  successSoftForeground: "#8de8a6",
286
285
  successSoftPressed: "rgba(74, 222, 128, 0.2)",
287
- warningSoft: "rgba(251, 191, 36, 0.15)",
288
- warningSoftForeground: "#fbd586",
289
- warningSoftPressed: "rgba(251, 191, 36, 0.2)",
286
+ warningSoft: "rgba(251, 146, 60, 0.15)",
287
+ warningSoftForeground: "#feb887",
288
+ warningSoftPressed: "rgba(251, 146, 60, 0.2)",
290
289
  dangerSoft: "rgba(248, 113, 113, 0.15)",
291
290
  dangerSoftForeground: "#fc8f8c",
292
291
  dangerSoftPressed: "rgba(248, 113, 113, 0.2)",
@@ -387,6 +386,7 @@ function createTheme(config = {}) {
387
386
  var defaultTheme = createTheme();
388
387
 
389
388
  // src/provider/xaui-provider.tsx
389
+ import { jsx } from "react/jsx-runtime";
390
390
  function XAUIProvider({
391
391
  children,
392
392
  theme = defaultTheme,
@@ -394,7 +394,7 @@ function XAUIProvider({
394
394
  }) {
395
395
  const scheme = useColorScheme();
396
396
  const resolved = colorMode === "system" ? scheme === "dark" ? "dark" : "light" : colorMode;
397
- return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: theme[resolved] }, children);
397
+ return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme[resolved], children });
398
398
  }
399
399
 
400
400
  // src/theme/palette.ts