@xaui/native 0.0.38 → 0.0.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 (103) hide show
  1. package/dist/alert/index.cjs +9 -6
  2. package/dist/alert/index.d.cts +1 -1
  3. package/dist/alert/index.d.ts +1 -1
  4. package/dist/alert/index.js +7 -4
  5. package/dist/app-bar/index.cjs +3 -3
  6. package/dist/app-bar/index.js +1 -1
  7. package/dist/autocomplete/index.cjs +17 -17
  8. package/dist/autocomplete/index.js +5 -5
  9. package/dist/avatar/index.cjs +5 -5
  10. package/dist/avatar/index.js +1 -1
  11. package/dist/badge/index.cjs +4 -4
  12. package/dist/badge/index.js +1 -1
  13. package/dist/bottom-sheet/index.cjs +3 -3
  14. package/dist/bottom-sheet/index.js +2 -2
  15. package/dist/bottom-tab-bar/index.cjs +2 -2
  16. package/dist/bottom-tab-bar/index.js +1 -1
  17. package/dist/button/index.cjs +18 -18
  18. package/dist/button/index.js +10 -10
  19. package/dist/card/index.cjs +6 -6
  20. package/dist/card/index.js +1 -1
  21. package/dist/carousel/index.cjs +2 -2
  22. package/dist/carousel/index.js +1 -1
  23. package/dist/checkbox/index.cjs +6 -6
  24. package/dist/checkbox/index.js +1 -1
  25. package/dist/chip/index.cjs +3 -3
  26. package/dist/chip/index.js +1 -1
  27. package/dist/{chunk-LUBWRVI2.js → chunk-2JKWVIPB.js} +1 -1
  28. package/dist/{chunk-RVR42THG.cjs → chunk-3XWF77Y3.cjs} +3 -3
  29. package/dist/{chunk-2ANGPYCP.cjs → chunk-43I45LX7.cjs} +37 -32
  30. package/dist/{chunk-QMYWIWSX.cjs → chunk-FBTBWI3P.cjs} +4 -4
  31. package/dist/{chunk-F7WH4DMG.js → chunk-J3BOFXIH.js} +1 -1
  32. package/dist/{chunk-ED22WCCI.js → chunk-K24VDBNN.js} +1 -1
  33. package/dist/{chunk-LTKYHG5V.js → chunk-LVNBYERF.js} +4 -0
  34. package/dist/{chunk-E4DOPNVW.js → chunk-M6A23KUM.js} +35 -30
  35. package/dist/{chunk-OQ2BLOOG.cjs → chunk-RZJFCDFS.cjs} +4 -0
  36. package/dist/{chunk-JEGEPGVU.js → chunk-UVI56OO5.js} +2 -2
  37. package/dist/{chunk-BD72HIPR.cjs → chunk-X5KNZ6YJ.cjs} +2 -2
  38. package/dist/{chunk-KTLGDLCB.cjs → chunk-XQED3KRW.cjs} +7 -7
  39. package/dist/color-picker/index.cjs +6 -6
  40. package/dist/color-picker/index.js +3 -3
  41. package/dist/core/index.cjs +2 -2
  42. package/dist/core/index.js +1 -1
  43. package/dist/datepicker/index.cjs +17 -17
  44. package/dist/datepicker/index.js +5 -5
  45. package/dist/dialog/index.cjs +5 -5
  46. package/dist/dialog/index.js +1 -1
  47. package/dist/divider/index.cjs +3 -3
  48. package/dist/divider/index.js +2 -2
  49. package/dist/drawer/index.cjs +2 -2
  50. package/dist/drawer/index.js +1 -1
  51. package/dist/expansion-panel/index.cjs +11 -11
  52. package/dist/expansion-panel/index.js +2 -2
  53. package/dist/fab/index.cjs +4 -4
  54. package/dist/fab/index.js +3 -3
  55. package/dist/fab-menu/index.cjs +7 -7
  56. package/dist/fab-menu/index.js +3 -3
  57. package/dist/feature-discovery/index.cjs +2 -2
  58. package/dist/feature-discovery/index.js +1 -1
  59. package/dist/indicator/index.cjs +3 -3
  60. package/dist/indicator/index.js +2 -2
  61. package/dist/input/index.cjs +37 -34
  62. package/dist/input/index.js +34 -31
  63. package/dist/input-trigger/index.cjs +3 -3
  64. package/dist/input-trigger/index.js +2 -2
  65. package/dist/list/index.cjs +5 -5
  66. package/dist/list/index.js +1 -1
  67. package/dist/menu/index.cjs +3 -3
  68. package/dist/menu/index.js +1 -1
  69. package/dist/menubox/index.cjs +5 -5
  70. package/dist/menubox/index.js +1 -1
  71. package/dist/picker/index.cjs +6 -6
  72. package/dist/picker/index.js +3 -3
  73. package/dist/progress/index.cjs +2 -2
  74. package/dist/progress/index.js +1 -1
  75. package/dist/radio/index.cjs +7 -7
  76. package/dist/radio/index.js +1 -1
  77. package/dist/segment-button/index.cjs +8 -8
  78. package/dist/segment-button/index.js +5 -5
  79. package/dist/select/index.cjs +16 -16
  80. package/dist/select/index.js +5 -5
  81. package/dist/skeleton/index.cjs +2 -2
  82. package/dist/skeleton/index.js +1 -1
  83. package/dist/slider/index.cjs +5 -5
  84. package/dist/slider/index.js +1 -1
  85. package/dist/snackbar/index.cjs +3 -3
  86. package/dist/snackbar/index.js +1 -1
  87. package/dist/snippet/index.cjs +3 -3
  88. package/dist/snippet/index.js +1 -1
  89. package/dist/stepper/index.cjs +2 -2
  90. package/dist/stepper/index.js +1 -1
  91. package/dist/switch/index.cjs +7 -7
  92. package/dist/switch/index.js +1 -1
  93. package/dist/tabs/index.cjs +8 -8
  94. package/dist/tabs/index.js +5 -5
  95. package/dist/timepicker/index.cjs +5 -5
  96. package/dist/timepicker/index.js +2 -2
  97. package/dist/toolbar/index.cjs +2 -2
  98. package/dist/toolbar/index.js +1 -1
  99. package/dist/typography/index.cjs +3 -3
  100. package/dist/typography/index.js +1 -1
  101. package/dist/view/index.cjs +3 -3
  102. package/dist/view/index.js +1 -1
  103. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/input/input.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -17,40 +17,43 @@ var _icons = require('@xaui/icons');
17
17
  // src/components/input/input.hook.ts
18
18
 
19
19
  var _core = require('@xaui/core');
20
- var sizeMap = {
21
- sm: {
22
- minHeight: 40,
23
- fontSize: 14,
24
- paddingHorizontal: 12,
25
- paddingVertical: 8,
26
- slotGap: 8,
27
- labelSize: 13,
28
- helperSize: 12
29
- },
30
- md: {
31
- minHeight: 46,
32
- fontSize: 16,
33
- paddingHorizontal: 14,
34
- paddingVertical: 10,
35
- slotGap: 10,
36
- labelSize: 14,
37
- helperSize: 13
38
- },
39
- lg: {
40
- minHeight: 52,
41
- fontSize: 17,
42
- paddingHorizontal: 16,
43
- paddingVertical: 12,
44
- slotGap: 12,
45
- labelSize: 15,
46
- helperSize: 15
47
- }
48
- };
49
20
  var useTextInputSizeStyles = (size) => {
50
- return _react.useMemo.call(void 0, () => sizeMap[size], [size]);
21
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
22
+ return _react.useMemo.call(void 0, () => {
23
+ const sizeMap = {
24
+ sm: {
25
+ minHeight: theme.componentSizes.sm,
26
+ fontSize: 14,
27
+ paddingHorizontal: 12,
28
+ paddingVertical: 8,
29
+ slotGap: 8,
30
+ labelSize: 13,
31
+ helperSize: 12
32
+ },
33
+ md: {
34
+ minHeight: theme.componentSizes.md,
35
+ fontSize: 16,
36
+ paddingHorizontal: 14,
37
+ paddingVertical: 10,
38
+ slotGap: 10,
39
+ labelSize: 14,
40
+ helperSize: 13
41
+ },
42
+ lg: {
43
+ minHeight: theme.componentSizes.lg,
44
+ fontSize: 17,
45
+ paddingHorizontal: 16,
46
+ paddingVertical: 12,
47
+ slotGap: 12,
48
+ labelSize: 15,
49
+ helperSize: 15
50
+ }
51
+ };
52
+ return sizeMap[size];
53
+ }, [size, theme]);
51
54
  };
52
55
  var useTextInputRadiusStyles = (radius) => {
53
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
56
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
54
57
  return _react.useMemo.call(void 0, () => {
55
58
  if (radius === "full") {
56
59
  return { borderRadius: theme.borderRadius.full };
@@ -65,7 +68,7 @@ var useTextInputVariantStyles = ({
65
68
  isInvalid,
66
69
  isDisabled
67
70
  }) => {
68
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
71
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
69
72
  const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
70
73
  const colorScheme = theme.colors[safeThemeColor];
71
74
  return _react.useMemo.call(void 0, () => {
@@ -1245,7 +1248,7 @@ var NumberInput = _react.forwardRef.call(void 0,
1245
1248
  fullWidth = true,
1246
1249
  customAppearance
1247
1250
  }, ref) => {
1248
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
1251
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
1249
1252
  const {
1250
1253
  displayValue,
1251
1254
  handleTextChange,
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/input/input.tsx
7
7
  import React, { forwardRef, useMemo as useMemo2, useState, useRef, useEffect } from "react";
@@ -17,37 +17,40 @@ import { CloseIcon } from "@xaui/icons";
17
17
  // src/components/input/input.hook.ts
18
18
  import { useMemo } from "react";
19
19
  import { getSafeThemeColor, withOpacity, withPaletteNumber } from "@xaui/core";
20
- var sizeMap = {
21
- sm: {
22
- minHeight: 40,
23
- fontSize: 14,
24
- paddingHorizontal: 12,
25
- paddingVertical: 8,
26
- slotGap: 8,
27
- labelSize: 13,
28
- helperSize: 12
29
- },
30
- md: {
31
- minHeight: 46,
32
- fontSize: 16,
33
- paddingHorizontal: 14,
34
- paddingVertical: 10,
35
- slotGap: 10,
36
- labelSize: 14,
37
- helperSize: 13
38
- },
39
- lg: {
40
- minHeight: 52,
41
- fontSize: 17,
42
- paddingHorizontal: 16,
43
- paddingVertical: 12,
44
- slotGap: 12,
45
- labelSize: 15,
46
- helperSize: 15
47
- }
48
- };
49
20
  var useTextInputSizeStyles = (size) => {
50
- return useMemo(() => sizeMap[size], [size]);
21
+ const theme = useXUITheme();
22
+ return useMemo(() => {
23
+ const sizeMap = {
24
+ sm: {
25
+ minHeight: theme.componentSizes.sm,
26
+ fontSize: 14,
27
+ paddingHorizontal: 12,
28
+ paddingVertical: 8,
29
+ slotGap: 8,
30
+ labelSize: 13,
31
+ helperSize: 12
32
+ },
33
+ md: {
34
+ minHeight: theme.componentSizes.md,
35
+ fontSize: 16,
36
+ paddingHorizontal: 14,
37
+ paddingVertical: 10,
38
+ slotGap: 10,
39
+ labelSize: 14,
40
+ helperSize: 13
41
+ },
42
+ lg: {
43
+ minHeight: theme.componentSizes.lg,
44
+ fontSize: 17,
45
+ paddingHorizontal: 16,
46
+ paddingVertical: 12,
47
+ slotGap: 12,
48
+ labelSize: 15,
49
+ helperSize: 15
50
+ }
51
+ };
52
+ return sizeMap[size];
53
+ }, [size, theme]);
51
54
  };
52
55
  var useTextInputRadiusStyles = (radius) => {
53
56
  const theme = useXUITheme();
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2ANGPYCPcjs = require('../chunk-2ANGPYCP.cjs');
3
+ var _chunk43I45LX7cjs = require('../chunk-43I45LX7.cjs');
4
4
  require('../chunk-56RPWZD2.cjs');
5
- require('../chunk-OQ2BLOOG.cjs');
5
+ require('../chunk-RZJFCDFS.cjs');
6
6
 
7
7
 
8
- exports.InputTrigger = _chunk2ANGPYCPcjs.InputTrigger;
8
+ exports.InputTrigger = _chunk43I45LX7cjs.InputTrigger;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  InputTrigger
3
- } from "../chunk-E4DOPNVW.js";
3
+ } from "../chunk-M6A23KUM.js";
4
4
  import "../chunk-SHBDANQN.js";
5
- import "../chunk-LTKYHG5V.js";
5
+ import "../chunk-LVNBYERF.js";
6
6
  export {
7
7
  InputTrigger
8
8
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/list/list.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -45,7 +45,7 @@ var styles = _reactnative.StyleSheet.create({
45
45
 
46
46
 
47
47
  var ListDivider = () => {
48
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
48
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
49
49
  return /* @__PURE__ */ _react2.default.createElement(
50
50
  _reactnative.View,
51
51
  {
@@ -143,7 +143,7 @@ var List = ({
143
143
  // src/components/list/list.hook.ts
144
144
 
145
145
  var useListItemSizeStyles = (size) => {
146
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
146
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
147
147
  return _react.useMemo.call(void 0, () => {
148
148
  const sizes = {
149
149
  xs: {
@@ -189,7 +189,7 @@ var ListItem = ({
189
189
  onPress
190
190
  }) => {
191
191
  const context = _react.useContext.call(void 0, ListContext);
192
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
192
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
193
193
  const selectionMode = _nullishCoalesce(_optionalChain([context, 'optionalAccess', _2 => _2.selectionMode]), () => ( "none"));
194
194
  const isPressable = _nullishCoalesce(_optionalChain([context, 'optionalAccess', _3 => _3.isPressable]), () => ( true));
195
195
  const isSelectable = _nullishCoalesce(_optionalChain([context, 'optionalAccess', _4 => _4.isSelectable]), () => ( false));
@@ -301,7 +301,7 @@ function ListBuilder({
301
301
  style,
302
302
  flatListProps
303
303
  }) {
304
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
304
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
305
305
  const isControlled = controlledSelectedKeys !== void 0;
306
306
  const [internalSelectedKeys, setInternalSelectedKeys] = _react.useState.call(void 0, defaultSelectedKeys);
307
307
  const selectedKeys = isControlled ? controlledSelectedKeys : internalSelectedKeys;
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/list/list.tsx
7
7
  import React2, { useCallback, useMemo, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/menu/menu.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -160,7 +160,7 @@ var Menu = ({
160
160
  customAppearance,
161
161
  maxHeight = 280
162
162
  }) => {
163
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
163
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
164
164
  const { triggerRef, triggerPosition } = useMenuTriggerMeasurements(visible);
165
165
  const { contentSize, handleContentLayout, isMeasured } = useMenuContentLayout(visible);
166
166
  const menuPosition = useMenuPosition(triggerPosition, contentSize, position);
@@ -274,7 +274,7 @@ var MenuItem = ({
274
274
  customAppearance,
275
275
  accessibilityLabel
276
276
  }) => {
277
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
277
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
278
278
  const titleColor = isDisabled ? theme.colors.foreground + "50" : theme.colors.foreground;
279
279
  const renderTitle = () => {
280
280
  if (typeof title === "string" || typeof title === "number") {
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/menu/menu.tsx
7
7
  import React from "react";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/menubox/menubox.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -51,7 +51,7 @@ var MenuBox = ({
51
51
  style,
52
52
  backgroundColor
53
53
  }) => {
54
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
54
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
55
55
  const itemCount = _react.Children.count(children);
56
56
  const itemKeys = _react.useMemo.call(void 0, () => {
57
57
  const keys = [];
@@ -91,7 +91,7 @@ var MenuBox = ({
91
91
  // src/components/menubox/menubox.hook.ts
92
92
 
93
93
  var useMenuBoxItemSizeStyles = (size) => {
94
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
94
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
95
95
  return _react.useMemo.call(void 0, () => {
96
96
  const sizes = {
97
97
  xs: {
@@ -123,7 +123,7 @@ var useMenuBoxItemSizeStyles = (size) => {
123
123
  }, [size, theme]);
124
124
  };
125
125
  var useMenuBoxRadiusStyles = (radius, isFirst, isLast) => {
126
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
126
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
127
127
  return _react.useMemo.call(void 0, () => {
128
128
  const radiusMap = {
129
129
  none: theme.borderRadius.none,
@@ -178,7 +178,7 @@ var runMenuBoxPressOutAnimation = (animatedScale, animatedOpacity) => {
178
178
  // src/components/menubox/menubox-item.tsx
179
179
  var MenuBoxItem = (props) => {
180
180
  const context = _react.useContext.call(void 0, MenuBoxContext);
181
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
181
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
182
182
  const animatedScale = _react2.default.useRef(new _reactnative.Animated.Value(1)).current;
183
183
  const animatedOpacity = _react2.default.useRef(new _reactnative.Animated.Value(1)).current;
184
184
  const {
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/menubox/menubox.tsx
7
7
  import React, { useMemo, Children, isValidElement } from "react";
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
 
3
- var _chunk2ANGPYCPcjs = require('../chunk-2ANGPYCP.cjs');
3
+ var _chunk43I45LX7cjs = require('../chunk-43I45LX7.cjs');
4
4
 
5
5
 
6
- var _chunkRVR42THGcjs = require('../chunk-RVR42THG.cjs');
6
+ var _chunk3XWF77Y3cjs = require('../chunk-3XWF77Y3.cjs');
7
7
  require('../chunk-56RPWZD2.cjs');
8
8
 
9
9
 
10
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
10
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
11
11
 
12
12
  // src/components/picker/picker.tsx
13
13
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -156,7 +156,7 @@ var Picker = ({
156
156
  const [internalIsOpen, setInternalIsOpen] = _react.useState.call(void 0, false);
157
157
  const isControlled = isOpened !== void 0;
158
158
  const isOpen = isControlled ? Boolean(isOpened) : internalIsOpen;
159
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
159
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
160
160
  const sheetBackground = theme.mode === "dark" ? theme.colors.background : "#ffffff";
161
161
  const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
162
162
  const colorScheme = theme.colors[safeThemeColor];
@@ -187,7 +187,7 @@ var Picker = ({
187
187
  };
188
188
  const chevronColor = _core.withOpacity.call(void 0, theme.colors.foreground, 0.45);
189
189
  return /* @__PURE__ */ _react2.default.createElement(_react2.default.Fragment, null, /* @__PURE__ */ _react2.default.createElement(
190
- _chunk2ANGPYCPcjs.InputTrigger,
190
+ _chunk43I45LX7cjs.InputTrigger,
191
191
  {
192
192
  value: displayLabel,
193
193
  placeholder,
@@ -206,7 +206,7 @@ var Picker = ({
206
206
  onPress: handleOpen
207
207
  }
208
208
  ), /* @__PURE__ */ _react2.default.createElement(
209
- _chunkRVR42THGcjs.BottomSheet,
209
+ _chunk3XWF77Y3cjs.BottomSheet,
210
210
  {
211
211
  isOpen,
212
212
  snapPoints: [Math.min(0.35 + options.length * 0.065, 0.85)],
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  InputTrigger
3
- } from "../chunk-E4DOPNVW.js";
3
+ } from "../chunk-M6A23KUM.js";
4
4
  import {
5
5
  BottomSheet
6
- } from "../chunk-ED22WCCI.js";
6
+ } from "../chunk-K24VDBNN.js";
7
7
  import "../chunk-SHBDANQN.js";
8
8
  import {
9
9
  useXUITheme
10
- } from "../chunk-LTKYHG5V.js";
10
+ } from "../chunk-LVNBYERF.js";
11
11
 
12
12
  // src/components/picker/picker.tsx
13
13
  import React, { useState } from "react";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/progress/progress.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -157,7 +157,7 @@ var Progress = (props) => {
157
157
  size,
158
158
  disableAnimation = false
159
159
  } = props;
160
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
160
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
161
161
  const colorScheme = theme.colors[themeColor];
162
162
  const mainColor = _nullishCoalesce(color, () => ( colorScheme.main));
163
163
  const trackColor = _nullishCoalesce(backgroundColor, () => ( colorScheme.background));
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/progress/progress.tsx
7
7
  import React3 from "react";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }require('../chunk-56RPWZD2.cjs');
2
2
 
3
3
 
4
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
4
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
5
5
 
6
6
  // src/components/radio/radio.tsx
7
7
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -18,7 +18,7 @@ var RadioGroupContext = _react2.default.createContext(
18
18
 
19
19
 
20
20
  function useSizeStyles(size, variant) {
21
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
21
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
22
22
  const sizeStyles = _react.useMemo.call(void 0, () => {
23
23
  const sizes = {
24
24
  xs: {
@@ -47,7 +47,7 @@ function useSizeStyles(size, variant) {
47
47
  return sizeStyles;
48
48
  }
49
49
  function useRadiusStyles(radius) {
50
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
50
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
51
51
  const radiusStyles = _react.useMemo.call(void 0, () => {
52
52
  const radii = {
53
53
  none: theme.borderRadius.none,
@@ -61,7 +61,7 @@ function useRadiusStyles(radius) {
61
61
  return radiusStyles;
62
62
  }
63
63
  function useDotColors(themeColor, variant, isActive) {
64
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
64
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
65
65
  const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
66
66
  const colorScheme = theme.colors[safeThemeColor];
67
67
  const dotColors = _react.useMemo.call(void 0, () => {
@@ -82,7 +82,7 @@ function useDotColors(themeColor, variant, isActive) {
82
82
  return dotColors;
83
83
  }
84
84
  function useVariantStyles(themeColor, variant, isActive) {
85
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
85
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
86
86
  const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
87
87
  const colorScheme = theme.colors[safeThemeColor];
88
88
  const variantStyles = _react.useMemo.call(void 0, () => {
@@ -244,7 +244,7 @@ var Radio = ({
244
244
  onValueChange
245
245
  }) => {
246
246
  const group = _react.useContext.call(void 0, RadioGroupContext);
247
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
247
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
248
248
  const resolvedLabelAlignment = _nullishCoalesce(_nullishCoalesce(labelAlignment, () => ( _optionalChain([group, 'optionalAccess', _ => _.labelAlignment]))), () => ( "right"));
249
249
  const resolvedThemeColor = _nullishCoalesce(_nullishCoalesce(themeColor, () => ( _optionalChain([group, 'optionalAccess', _2 => _2.themeColor]))), () => ( "primary"));
250
250
  const resolvedVariant = _nullishCoalesce(_nullishCoalesce(variant, () => ( _optionalChain([group, 'optionalAccess', _3 => _3.variant]))), () => ( "filled"));
@@ -410,7 +410,7 @@ var RadioGroup = ({
410
410
  gap,
411
411
  style
412
412
  }) => {
413
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
413
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
414
414
  const isControlled = typeof value === "string";
415
415
  const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
416
416
  const selectedValue = isControlled ? value : internalValue;
@@ -1,7 +1,7 @@
1
1
  import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useXUITheme
4
- } from "../chunk-LTKYHG5V.js";
4
+ } from "../chunk-LVNBYERF.js";
5
5
 
6
6
  // src/components/radio/radio.tsx
7
7
  import React2, { useContext, useEffect, useRef, useState } from "react";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkOQ2BLOOGcjs = require('../chunk-OQ2BLOOG.cjs');
5
+ var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
6
6
 
7
7
  // src/components/segment-button/segment-button.tsx
8
8
  var _react = require('react'); var _react2 = _interopRequireDefault(_react);
@@ -53,34 +53,34 @@ var styles = _reactnative.StyleSheet.create({
53
53
 
54
54
  var _core = require('@xaui/core');
55
55
  function useSegmentSizeStyles(size) {
56
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
56
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
57
57
  return _react.useMemo.call(void 0, () => {
58
58
  const sizes = {
59
59
  xs: {
60
60
  paddingHorizontal: theme.spacing.sm,
61
61
  paddingVertical: theme.spacing.xs,
62
- minHeight: 32,
62
+ minHeight: theme.componentSizes.xs,
63
63
  fontSize: theme.fontSizes.xs,
64
64
  iconSize: 14
65
65
  },
66
66
  sm: {
67
67
  paddingHorizontal: theme.spacing.md,
68
68
  paddingVertical: theme.spacing.xs,
69
- minHeight: 36,
69
+ minHeight: theme.componentSizes.sm,
70
70
  fontSize: theme.fontSizes.sm,
71
71
  iconSize: 16
72
72
  },
73
73
  md: {
74
74
  paddingHorizontal: theme.spacing.md,
75
75
  paddingVertical: theme.spacing.sm,
76
- minHeight: 40,
76
+ minHeight: theme.componentSizes.md,
77
77
  fontSize: theme.fontSizes.md,
78
78
  iconSize: 18
79
79
  },
80
80
  lg: {
81
81
  paddingHorizontal: theme.spacing.lg,
82
82
  paddingVertical: theme.spacing.md,
83
- minHeight: 48,
83
+ minHeight: theme.componentSizes.lg,
84
84
  fontSize: theme.fontSizes.lg,
85
85
  iconSize: 20
86
86
  }
@@ -89,7 +89,7 @@ function useSegmentSizeStyles(size) {
89
89
  }, [size, theme]);
90
90
  }
91
91
  function useSegmentVariantStyles(themeColor, variant, elevation = 0) {
92
- const theme = _chunkOQ2BLOOGcjs.useXUITheme.call(void 0, );
92
+ const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
93
93
  const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
94
94
  const colorScheme = theme.colors[safeThemeColor];
95
95
  const selectedBackgroundColor = _core.withPaletteNumber.call(void 0, colorScheme.main, 400);
@@ -182,7 +182,7 @@ var SegmentButton = ({
182
182
  return selected ? [selected] : [];
183
183
  }, [selected]);
184
184
  const variantStyles = useSegmentVariantStyles(themeColor, variant, elevation);
185
- const radiusStyles = _chunkOQ2BLOOGcjs.useBorderRadiusStyles.call(void 0, radius);
185
+ const radiusStyles = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
186
186
  const toggleItem = _react.useCallback.call(void 0,
187
187
  (key) => {
188
188
  let nextSelected;
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
2
2
  import {
3
3
  useBorderRadiusStyles,
4
4
  useXUITheme
5
- } from "../chunk-LTKYHG5V.js";
5
+ } from "../chunk-LVNBYERF.js";
6
6
 
7
7
  // src/components/segment-button/segment-button.tsx
8
8
  import React, { useCallback, useMemo as useMemo2, useState } from "react";
@@ -59,28 +59,28 @@ function useSegmentSizeStyles(size) {
59
59
  xs: {
60
60
  paddingHorizontal: theme.spacing.sm,
61
61
  paddingVertical: theme.spacing.xs,
62
- minHeight: 32,
62
+ minHeight: theme.componentSizes.xs,
63
63
  fontSize: theme.fontSizes.xs,
64
64
  iconSize: 14
65
65
  },
66
66
  sm: {
67
67
  paddingHorizontal: theme.spacing.md,
68
68
  paddingVertical: theme.spacing.xs,
69
- minHeight: 36,
69
+ minHeight: theme.componentSizes.sm,
70
70
  fontSize: theme.fontSizes.sm,
71
71
  iconSize: 16
72
72
  },
73
73
  md: {
74
74
  paddingHorizontal: theme.spacing.md,
75
75
  paddingVertical: theme.spacing.sm,
76
- minHeight: 40,
76
+ minHeight: theme.componentSizes.md,
77
77
  fontSize: theme.fontSizes.md,
78
78
  iconSize: 18
79
79
  },
80
80
  lg: {
81
81
  paddingHorizontal: theme.spacing.lg,
82
82
  paddingVertical: theme.spacing.md,
83
- minHeight: 48,
83
+ minHeight: theme.componentSizes.lg,
84
84
  fontSize: theme.fontSizes.lg,
85
85
  iconSize: 20
86
86
  }