@xaui/native 0.9.1-alpha.41 → 0.9.1-alpha.43

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 (105) hide show
  1. package/dist/{chunk-TJ74XVZN.cjs → chunk-3JXI2IHV.cjs} +8 -8
  2. package/dist/{chunk-C5YLPCFC.cjs → chunk-4KSKQD37.cjs} +5 -5
  3. package/dist/{chunk-DA3OKXHV.cjs → chunk-54CWXA34.cjs} +59 -59
  4. package/dist/{chunk-XV735BSA.cjs → chunk-66FOASTP.cjs} +6 -6
  5. package/dist/{chunk-UFTCTTKK.js → chunk-6CO6FM67.js} +15 -15
  6. package/dist/{chunk-RU7JCMWC.cjs → chunk-76XDVA24.cjs} +6 -6
  7. package/dist/{chunk-G7P3ERYF.cjs → chunk-7KLBTMXV.cjs} +5 -5
  8. package/dist/{chunk-NWGLP6JX.cjs → chunk-7TOG4TVU.cjs} +15 -15
  9. package/dist/{chunk-ZFOOJK37.cjs → chunk-AAVCMCJ3.cjs} +2 -2
  10. package/dist/{chunk-T5FV5F7A.cjs → chunk-C5LONNXT.cjs} +6 -6
  11. package/dist/{chunk-XFPQFCEK.js → chunk-DY3SUG5P.js} +6 -6
  12. package/dist/{chunk-KCMYU7WF.js → chunk-EYD4H4X6.js} +1 -1
  13. package/dist/{chunk-DHGLGSH6.js → chunk-FBCWNXZC.js} +58 -58
  14. package/dist/{chunk-2XPG2243.js → chunk-GJSFKH4L.js} +16 -16
  15. package/dist/{chunk-DD4276RF.js → chunk-HA6BFY3A.js} +6 -6
  16. package/dist/{chunk-GFUZ3MUT.cjs → chunk-HOI5425P.cjs} +6 -6
  17. package/dist/chunk-J5WXI5NU.js +520 -0
  18. package/dist/{chunk-LRN3RNDO.js → chunk-JKP4TPIL.js} +16 -16
  19. package/dist/{chunk-6UEZJRVI.js → chunk-LIUO6D3D.js} +75 -75
  20. package/dist/{chunk-DIBUQ46Y.js → chunk-MXGER5PI.js} +5 -5
  21. package/dist/{chunk-EZEYMLO3.js → chunk-N5AEXTUM.js} +4 -4
  22. package/dist/chunk-NA262TF2.js +724 -0
  23. package/dist/{chunk-R73XQK7X.cjs → chunk-NCCRQK3P.cjs} +5 -5
  24. package/dist/{chunk-5VKYNBNA.js → chunk-NHZRQM5J.js} +4 -4
  25. package/dist/chunk-P2GKAAA3.cjs +442 -0
  26. package/dist/{chunk-VLKBESEV.cjs → chunk-QWMVMLSU.cjs} +5 -5
  27. package/dist/{chunk-GA6PBWNT.js → chunk-QZ24MZRX.js} +1 -1
  28. package/dist/{chunk-YVHT2UVW.js → chunk-R7BU4CPS.js} +1 -1
  29. package/dist/{chunk-6DOLGZVV.cjs → chunk-S4QUM4EE.cjs} +4 -4
  30. package/dist/{chunk-DG2I4PJG.js → chunk-SACDOFGF.js} +15 -15
  31. package/dist/{chunk-ABAGZTXZ.cjs → chunk-SIP5J7HU.cjs} +15 -15
  32. package/dist/{chunk-3E7CDKFO.cjs → chunk-TGMVEHV7.cjs} +61 -61
  33. package/dist/{chunk-YGYYJ3LQ.js → chunk-TRETQZEW.js} +5 -5
  34. package/dist/{chunk-UAWBAD4E.cjs → chunk-URA25DU4.cjs} +5 -5
  35. package/dist/{chunk-BRRXFOBY.js → chunk-USF6EWYR.js} +7 -7
  36. package/dist/{chunk-5R26NM4M.cjs → chunk-VPQPFLT5.cjs} +6 -6
  37. package/dist/{chunk-G3CCT4EY.js → chunk-VT34G7RT.js} +16 -16
  38. package/dist/{chunk-7YF5NAHQ.cjs → chunk-VZK3NLBH.cjs} +7 -7
  39. package/dist/{chunk-N3KTZMPG.js → chunk-XNMZQSY5.js} +5 -5
  40. package/dist/chunk-ZTBA7CNK.cjs +510 -0
  41. package/dist/components/accordion/index.cjs +5 -5
  42. package/dist/components/accordion/index.js +4 -4
  43. package/dist/components/alert/index.cjs +6 -6
  44. package/dist/components/alert/index.js +5 -5
  45. package/dist/components/avatar/index.cjs +4 -4
  46. package/dist/components/avatar/index.js +3 -3
  47. package/dist/components/badge/index.cjs +4 -4
  48. package/dist/components/badge/index.js +3 -3
  49. package/dist/components/bottom-sheet/index.cjs +37 -0
  50. package/dist/components/bottom-sheet/index.d.cts +230 -0
  51. package/dist/components/bottom-sheet/index.d.ts +230 -0
  52. package/dist/components/bottom-sheet/index.js +37 -0
  53. package/dist/components/button/index.cjs +5 -5
  54. package/dist/components/button/index.js +4 -4
  55. package/dist/components/card/index.cjs +5 -5
  56. package/dist/components/card/index.js +4 -4
  57. package/dist/components/checkbox/index.cjs +5 -5
  58. package/dist/components/checkbox/index.js +4 -4
  59. package/dist/components/chip/index.cjs +6 -6
  60. package/dist/components/chip/index.js +5 -5
  61. package/dist/components/divider/index.cjs +4 -4
  62. package/dist/components/divider/index.js +3 -3
  63. package/dist/components/field-group/index.cjs +5 -5
  64. package/dist/components/field-group/index.js +4 -4
  65. package/dist/components/input-otp/index.cjs +4 -4
  66. package/dist/components/input-otp/index.js +3 -3
  67. package/dist/components/menu/index.cjs +5 -5
  68. package/dist/components/menu/index.js +4 -4
  69. package/dist/components/popover/index.cjs +5 -5
  70. package/dist/components/popover/index.js +4 -4
  71. package/dist/components/radio/index.cjs +5 -5
  72. package/dist/components/radio/index.js +4 -4
  73. package/dist/components/select/index.cjs +5 -5
  74. package/dist/components/select/index.js +4 -4
  75. package/dist/components/slider/index.cjs +33 -0
  76. package/dist/components/slider/index.d.cts +284 -0
  77. package/dist/components/slider/index.d.ts +284 -0
  78. package/dist/components/slider/index.js +33 -0
  79. package/dist/components/spinner/index.cjs +1 -1
  80. package/dist/components/spinner/index.js +1 -1
  81. package/dist/components/switch/index.cjs +5 -5
  82. package/dist/components/switch/index.js +4 -4
  83. package/dist/components/tabs/index.cjs +5 -5
  84. package/dist/components/tabs/index.js +4 -4
  85. package/dist/components/text-area/index.cjs +5 -5
  86. package/dist/components/text-area/index.js +4 -4
  87. package/dist/components/text-field/index.cjs +4 -4
  88. package/dist/components/text-field/index.js +3 -3
  89. package/dist/components/typography/index.cjs +4 -4
  90. package/dist/components/typography/index.js +3 -3
  91. package/dist/index.cjs +85 -37
  92. package/dist/index.d.cts +2 -0
  93. package/dist/index.d.ts +2 -0
  94. package/dist/index.js +132 -84
  95. package/dist/system/index.cjs +11 -11
  96. package/dist/system/index.js +13 -13
  97. package/package.json +21 -1
  98. package/dist/{chunk-4CUZZWFW.js → chunk-26OGEFQI.js} +3 -3
  99. package/dist/{chunk-H7DS4IO7.js → chunk-346QBNUD.js} +4 -4
  100. package/dist/{chunk-J3MB4PI5.cjs → chunk-A7YB7YWX.cjs} +3 -3
  101. package/dist/{chunk-AMCSSOJT.cjs → chunk-BNFIFRQA.cjs} +3 -3
  102. package/dist/{chunk-6L2TS2R3.cjs → chunk-KSUV74BE.cjs} +3 -3
  103. package/dist/{chunk-HDVVZG4S.cjs → chunk-RKCWYUGA.cjs} +3 -3
  104. package/dist/{chunk-2NRZKJG7.js → chunk-S2WNWMNT.js} +4 -4
  105. package/dist/{chunk-73RKQC5X.js → chunk-SZLXPF3G.js} +3 -3
@@ -6,7 +6,7 @@ var _chunkXSQPVDFHcjs = require('./chunk-XSQPVDFH.cjs');
6
6
  var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
7
7
 
8
8
 
9
- var _chunk3E7CDKFOcjs = require('./chunk-3E7CDKFO.cjs');
9
+ var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
10
10
 
11
11
 
12
12
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
@@ -16,14 +16,14 @@ var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
19
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
20
20
 
21
21
 
22
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
23
22
 
23
+ var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
24
24
 
25
25
 
26
- var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
26
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
27
27
 
28
28
 
29
29
  var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
@@ -275,7 +275,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
275
275
  );
276
276
  }
277
277
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
278
- _chunk3E7CDKFOcjs.PressableFeedback,
278
+ _chunkTGMVEHV7cjs.PressableFeedback,
279
279
  {
280
280
  ref,
281
281
  isPressed,
@@ -24,10 +24,13 @@ import {
24
24
  } from "./chunk-F6W3JQ7K.js";
25
25
  import {
26
26
  PressableFeedback
27
- } from "./chunk-6UEZJRVI.js";
27
+ } from "./chunk-LIUO6D3D.js";
28
28
  import {
29
29
  usePressState
30
30
  } from "./chunk-423RQBOX.js";
31
+ import {
32
+ createSlotContext
33
+ } from "./chunk-K72UDPVN.js";
31
34
  import {
32
35
  createRecipe,
33
36
  radiusAxis
@@ -35,9 +38,6 @@ import {
35
38
  import {
36
39
  useXAUITheme
37
40
  } from "./chunk-A3EGFI6T.js";
38
- import {
39
- createSlotContext
40
- } from "./chunk-K72UDPVN.js";
41
41
  import {
42
42
  useStyleProps
43
43
  } from "./chunk-M63GFNKV.js";
@@ -0,0 +1,442 @@
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; }
2
+
3
+ var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
4
+
5
+
6
+
7
+ var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
8
+
9
+
10
+ var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
11
+
12
+
13
+ var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
14
+
15
+
16
+ var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
17
+
18
+
19
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
20
+
21
+
22
+ var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
23
+
24
+
25
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
26
+
27
+
28
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
29
+
30
+ // src/components/bottom-sheet/bottom-sheet-close.tsx
31
+ var _react = require('react');
32
+
33
+ // src/components/bottom-sheet/bottom-sheet.context.ts
34
+ var [BottomSheetProvider, useBottomSheet] = _chunk7GHM4GKLcjs.createSlotContext.call(void 0, "BottomSheet");
35
+
36
+ // src/components/bottom-sheet/bottom-sheet-close.tsx
37
+ var _jsxruntime = require('react/jsx-runtime');
38
+ var BottomSheetClose = _react.forwardRef.call(void 0,
39
+ function BottomSheetClose2({
40
+ children,
41
+ asChild = false,
42
+ accessibilityRole = "button",
43
+ style,
44
+ onPress,
45
+ onPressIn,
46
+ onPressOut,
47
+ ...props
48
+ }, ref) {
49
+ const { close } = useBottomSheet();
50
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
51
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
52
+ const handlePress = _react.useCallback.call(void 0,
53
+ (event) => {
54
+ _optionalChain([onPress, 'optionalCall', _ => _(event)]);
55
+ close();
56
+ },
57
+ [close, onPress]
58
+ );
59
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
60
+ _chunkTGMVEHV7cjs.PressableFeedback,
61
+ {
62
+ ref,
63
+ isPressed,
64
+ asChild,
65
+ accessibilityRole,
66
+ ...rest,
67
+ style: [
68
+ styleProps,
69
+ typeof style === "function" ? style({ pressed: isPressed }) : style
70
+ ],
71
+ onPress: handlePress,
72
+ onPressIn: press.onPressIn,
73
+ onPressOut: press.onPressOut,
74
+ children
75
+ }
76
+ );
77
+ }
78
+ );
79
+ BottomSheetClose.displayName = "XAUI.BottomSheet.Close";
80
+
81
+ // src/components/bottom-sheet/bottom-sheet-content.tsx
82
+
83
+ var _reactnativegesturehandler = require('react-native-gesture-handler');
84
+
85
+
86
+
87
+
88
+
89
+ var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
90
+
91
+ // src/components/bottom-sheet/bottom-sheet.animation.ts
92
+ var SHEET_SPRING = { damping: 28, stiffness: 260, mass: 0.9 };
93
+ var DISMISS_VELOCITY = 900;
94
+
95
+ // src/components/bottom-sheet/bottom-sheet-content.tsx
96
+
97
+ function BottomSheetContent({
98
+ children,
99
+ isSwipeable = true,
100
+ accessibilityViewIsModal = true,
101
+ style,
102
+ onLayout,
103
+ ...props
104
+ }) {
105
+ const context = useBottomSheet();
106
+ const { contentStyle, isOpen, dismissThreshold, close } = context;
107
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
108
+ const [height, setHeight] = _react.useState.call(void 0, 0);
109
+ const offset = _reactnativereanimated.useSharedValue.call(void 0, OFFSCREEN);
110
+ const measure = _react.useCallback.call(void 0,
111
+ (event) => {
112
+ _optionalChain([onLayout, 'optionalCall', _2 => _2(event)]);
113
+ setHeight(event.nativeEvent.layout.height);
114
+ },
115
+ [onLayout]
116
+ );
117
+ _react.useEffect.call(void 0, () => {
118
+ if (height === 0) return;
119
+ offset.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 0 : height, SHEET_SPRING));
120
+ }, [height, isOpen, offset]);
121
+ const pan = _reactnativegesturehandler.Gesture.Pan().enabled(isSwipeable).onUpdate((event) => {
122
+ offset.set(Math.max(event.translationY, 0));
123
+ }).onEnd((event) => {
124
+ const farEnough = event.translationY > height * dismissThreshold;
125
+ const fastEnough = event.velocityY > DISMISS_VELOCITY;
126
+ if (farEnough || fastEnough) {
127
+ offset.set(_reactnativereanimated.withSpring.call(void 0, height, SHEET_SPRING));
128
+ _reactnativereanimated.runOnJS.call(void 0, close)();
129
+ return;
130
+ }
131
+ offset.set(_reactnativereanimated.withSpring.call(void 0, 0, SHEET_SPRING));
132
+ });
133
+ const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, () => ({
134
+ transform: [{ translateY: offset.get() }]
135
+ }));
136
+ if (!isOpen) return null;
137
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BottomSheetProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativegesturehandler.GestureDetector, { gesture: pan, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
138
+ _reactnativereanimated2.default.View,
139
+ {
140
+ accessibilityViewIsModal,
141
+ onLayout: measure,
142
+ ...rest,
143
+ style: [contentStyle, slide, styleProps, style],
144
+ children
145
+ }
146
+ ) }) }) });
147
+ }
148
+ var OFFSCREEN = 2e3;
149
+ BottomSheetContent.displayName = "XAUI.BottomSheet.Content";
150
+
151
+ // src/components/bottom-sheet/bottom-sheet-description.tsx
152
+
153
+ var _reactnative = require('react-native');
154
+
155
+ var BottomSheetDescription = _react.forwardRef.call(void 0,
156
+ function BottomSheetDescription2({ children, style, ...props }, ref) {
157
+ const { descriptionStyle } = useBottomSheet();
158
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
159
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, ...rest, style: [descriptionStyle, styleProps, style], children });
160
+ }
161
+ );
162
+ BottomSheetDescription.displayName = "XAUI.BottomSheet.Description";
163
+
164
+ // src/components/bottom-sheet/bottom-sheet-handle.tsx
165
+
166
+
167
+
168
+ var BottomSheetHandle = _react.forwardRef.call(void 0,
169
+ function BottomSheetHandle2({ style, ...props }, ref) {
170
+ const { handleStyle } = useBottomSheet();
171
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
172
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
173
+ _reactnative.View,
174
+ {
175
+ ref,
176
+ accessibilityElementsHidden: true,
177
+ importantForAccessibility: "no-hide-descendants",
178
+ ...rest,
179
+ style: [handleStyle, styleProps, style]
180
+ }
181
+ );
182
+ }
183
+ );
184
+ BottomSheetHandle.displayName = "XAUI.BottomSheet.Handle";
185
+
186
+ // src/components/bottom-sheet/bottom-sheet-overlay.tsx
187
+
188
+
189
+
190
+
191
+ var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
192
+ var BottomSheetOverlay = _react.forwardRef.call(void 0,
193
+ function BottomSheetOverlay2({ children, isDismissable = true, style, ...props }, ref) {
194
+ const context = useBottomSheet();
195
+ const { overlayStyle, isOpen, close } = context;
196
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
197
+ if (!isOpen) return null;
198
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BottomSheetProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
199
+ AnimatedPressable,
200
+ {
201
+ ref,
202
+ entering: _chunkEKS3W46Mcjs.overlayEntering,
203
+ exiting: _chunkEKS3W46Mcjs.overlayExiting,
204
+ accessibilityRole: "none",
205
+ importantForAccessibility: "no",
206
+ onPress: isDismissable ? close : void 0,
207
+ ...rest,
208
+ style: [overlayStyle, styleProps, style],
209
+ children
210
+ }
211
+ ) }) });
212
+ }
213
+ );
214
+ BottomSheetOverlay.displayName = "XAUI.BottomSheet.Overlay";
215
+
216
+ // src/components/bottom-sheet/bottom-sheet-title.tsx
217
+
218
+
219
+
220
+ var BottomSheetTitle = _react.forwardRef.call(void 0,
221
+ function BottomSheetTitle2({ children, accessibilityRole = "header", style, ...props }, ref) {
222
+ const { titleStyle } = useBottomSheet();
223
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
224
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
225
+ _reactnative.Text,
226
+ {
227
+ ref,
228
+ accessibilityRole,
229
+ ...rest,
230
+ style: [titleStyle, styleProps, style],
231
+ children
232
+ }
233
+ );
234
+ }
235
+ );
236
+ BottomSheetTitle.displayName = "XAUI.BottomSheet.Title";
237
+
238
+ // src/components/bottom-sheet/bottom-sheet-trigger.tsx
239
+
240
+
241
+ var BottomSheetTrigger = _react.forwardRef.call(void 0,
242
+ function BottomSheetTrigger2({
243
+ children,
244
+ asChild = false,
245
+ accessibilityRole = "button",
246
+ accessibilityState,
247
+ style,
248
+ onPress,
249
+ onPressIn,
250
+ onPressOut,
251
+ ...props
252
+ }, ref) {
253
+ const { isOpen, isDisabled, toggle } = useBottomSheet();
254
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
255
+ const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
256
+ const handlePress = _react.useCallback.call(void 0,
257
+ (event) => {
258
+ _optionalChain([onPress, 'optionalCall', _3 => _3(event)]);
259
+ toggle();
260
+ },
261
+ [onPress, toggle]
262
+ );
263
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
264
+ _chunkTGMVEHV7cjs.PressableFeedback,
265
+ {
266
+ ref,
267
+ isPressed,
268
+ isDisabled,
269
+ asChild,
270
+ accessibilityRole,
271
+ accessibilityState: {
272
+ disabled: isDisabled,
273
+ expanded: isOpen,
274
+ ...accessibilityState
275
+ },
276
+ ...rest,
277
+ style: [
278
+ styleProps,
279
+ typeof style === "function" ? style({ pressed: isPressed }) : style
280
+ ],
281
+ onPress: handlePress,
282
+ onPressIn: press.onPressIn,
283
+ onPressOut: press.onPressOut,
284
+ children
285
+ }
286
+ );
287
+ }
288
+ );
289
+ BottomSheetTrigger.displayName = "XAUI.BottomSheet.Trigger";
290
+
291
+ // src/components/bottom-sheet/bottom-sheet.tsx
292
+
293
+
294
+ // src/components/bottom-sheet/bottom-sheet.recipe.ts
295
+ var SLOTS = ["overlay", "content", "handle", "title", "description"];
296
+ var HANDLE = { width: 36, height: 4 };
297
+ function topCorners(radius) {
298
+ return (theme) => ({
299
+ content: {
300
+ borderTopStartRadius: theme.radius[radius],
301
+ borderTopEndRadius: theme.radius[radius]
302
+ }
303
+ });
304
+ }
305
+ var RADII = [
306
+ "xs",
307
+ "sm",
308
+ "md",
309
+ "lg",
310
+ "xl",
311
+ "2xl",
312
+ "3xl",
313
+ "4xl",
314
+ "field",
315
+ "full"
316
+ ];
317
+ var bottomSheetRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
318
+ slots: SLOTS,
319
+ base: (theme) => ({
320
+ overlay: {
321
+ position: "absolute",
322
+ top: 0,
323
+ bottom: 0,
324
+ start: 0,
325
+ end: 0,
326
+ backgroundColor: theme.colors.backdrop
327
+ },
328
+ content: {
329
+ position: "absolute",
330
+ start: 0,
331
+ end: 0,
332
+ bottom: 0,
333
+ backgroundColor: theme.colors.overlay,
334
+ padding: theme.spacing(5),
335
+ gap: theme.spacing(2),
336
+ // HeroUI's `--radius-4xl` on a base of 8 is 32 points; the nearest on our base of 12
337
+ // is `3xl` at 36. A sheet's corner is the largest in the library because it is the
338
+ // only edge of it you can see.
339
+ borderTopStartRadius: theme.radius["3xl"],
340
+ borderTopEndRadius: theme.radius["3xl"],
341
+ borderCurve: "continuous",
342
+ ...theme.shadows.overlay
343
+ },
344
+ /**
345
+ * The grab bar. It is the only thing telling a reader the sheet can be dragged — the
346
+ * gesture has no other affordance, and a sheet without one reads as a panel that
347
+ * happens to have arrived from below.
348
+ */
349
+ handle: {
350
+ alignSelf: "center",
351
+ width: HANDLE.width,
352
+ height: HANDLE.height,
353
+ borderRadius: HANDLE.height / 2,
354
+ backgroundColor: theme.colors.separator
355
+ },
356
+ title: {
357
+ fontFamily: theme.fontFamilies.body,
358
+ fontWeight: theme.fontWeights.medium,
359
+ fontSize: theme.fontSizes.lg,
360
+ lineHeight: theme.lineHeights.lg,
361
+ color: theme.colors.overlayForeground
362
+ },
363
+ description: {
364
+ fontFamily: theme.fontFamilies.body,
365
+ fontSize: theme.fontSizes.md,
366
+ lineHeight: theme.lineHeights.md,
367
+ color: theme.colors.muted
368
+ }
369
+ }),
370
+ /** One variant: a sheet is the theme's floating surface, with no emphasis to report. */
371
+ variantTokens: { default: {} },
372
+ variants: {
373
+ radius: Object.fromEntries(RADII.map((r) => [r, topCorners(r)]))
374
+ },
375
+ defaultVariants: { variant: "default" }
376
+ });
377
+
378
+ // src/components/bottom-sheet/bottom-sheet.tsx
379
+
380
+ function BottomSheet({
381
+ children,
382
+ radius,
383
+ isOpen: controlledOpen,
384
+ defaultOpen = false,
385
+ onOpenChange,
386
+ isDisabled = false,
387
+ dismissThreshold = 0.35
388
+ }) {
389
+ const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
390
+ const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
391
+ value: controlledOpen,
392
+ defaultValue: defaultOpen,
393
+ onChange: onOpenChange
394
+ });
395
+ const styles = bottomSheetRecipe.resolve({ theme, selection: { radius } });
396
+ const open = _react.useCallback.call(void 0, () => setOpen(true), [setOpen]);
397
+ const close = _react.useCallback.call(void 0, () => setOpen(false), [setOpen]);
398
+ const toggle = _react.useCallback.call(void 0, () => setOpen((current) => !current), [setOpen]);
399
+ const context = _react.useMemo.call(void 0,
400
+ () => ({
401
+ overlayStyle: styles.overlay,
402
+ contentStyle: styles.content,
403
+ handleStyle: styles.handle,
404
+ titleStyle: styles.title,
405
+ descriptionStyle: styles.description,
406
+ isOpen,
407
+ isDisabled,
408
+ dismissThreshold,
409
+ open,
410
+ close,
411
+ toggle
412
+ }),
413
+ [styles, isOpen, isDisabled, dismissThreshold, open, close, toggle]
414
+ );
415
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BottomSheetProvider, { value: context, children });
416
+ }
417
+ BottomSheet.displayName = "XAUI.BottomSheet.Root";
418
+
419
+ // src/components/bottom-sheet/index.ts
420
+ var BottomSheet2 = Object.assign(BottomSheet, {
421
+ Trigger: BottomSheetTrigger,
422
+ Overlay: BottomSheetOverlay,
423
+ Content: BottomSheetContent,
424
+ Handle: BottomSheetHandle,
425
+ Title: BottomSheetTitle,
426
+ Description: BottomSheetDescription,
427
+ Close: BottomSheetClose
428
+ });
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+ exports.useBottomSheet = useBottomSheet; exports.BottomSheetClose = BottomSheetClose; exports.BottomSheetContent = BottomSheetContent; exports.BottomSheetDescription = BottomSheetDescription; exports.BottomSheetHandle = BottomSheetHandle; exports.BottomSheetOverlay = BottomSheetOverlay; exports.BottomSheetTitle = BottomSheetTitle; exports.BottomSheetTrigger = BottomSheetTrigger; exports.bottomSheetRecipe = bottomSheetRecipe; exports.BottomSheet = BottomSheet; exports.BottomSheet2 = BottomSheet2;
@@ -3,21 +3,21 @@
3
3
  var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
4
4
 
5
5
 
6
- var _chunk3E7CDKFOcjs = require('./chunk-3E7CDKFO.cjs');
6
+ var _chunkTGMVEHV7cjs = require('./chunk-TGMVEHV7.cjs');
7
7
 
8
8
 
9
9
  var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
13
+ var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
14
14
 
15
15
 
16
- var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
17
16
 
17
+ var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
18
18
 
19
19
 
20
- var _chunk7GHM4GKLcjs = require('./chunk-7GHM4GKL.cjs');
20
+ var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
21
21
 
22
22
 
23
23
  var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
@@ -179,7 +179,7 @@ var TabsTrigger = _react.forwardRef.call(void 0, function TabsTrigger2({
179
179
  );
180
180
  const text = typeof children === "function" ? null : _chunk7GHM4GKLcjs.childrenToString.call(void 0, children);
181
181
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTriggerProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
182
- _chunk3E7CDKFOcjs.PressableFeedback,
182
+ _chunkTGMVEHV7cjs.PressableFeedback,
183
183
  {
184
184
  ref,
185
185
  isPressed,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextFieldField,
3
3
  useTextField
4
- } from "./chunk-2NRZKJG7.js";
4
+ } from "./chunk-S2WNWMNT.js";
5
5
  import {
6
6
  Icon
7
7
  } from "./chunk-FHUYHV6J.js";
@@ -5,7 +5,7 @@ import {
5
5
  TextFieldLabel,
6
6
  TextFieldRoot,
7
7
  useTextField
8
- } from "./chunk-2NRZKJG7.js";
8
+ } from "./chunk-S2WNWMNT.js";
9
9
  import {
10
10
  createSlotContext
11
11
  } from "./chunk-K72UDPVN.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkJ3MB4PI5cjs = require('./chunk-J3MB4PI5.cjs');
4
+ var _chunkA7YB7YWXcjs = require('./chunk-A7YB7YWX.cjs');
5
5
 
6
6
 
7
7
  var _chunk4KFKWBN5cjs = require('./chunk-4KFKWBN5.cjs');
@@ -36,7 +36,7 @@ var FieldGroupField = _react.forwardRef.call(void 0,
36
36
  () => decoratorPadding(prefixWidth, suffixWidth),
37
37
  [prefixWidth, suffixWidth]
38
38
  );
39
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ3MB4PI5cjs.TextFieldField, { ref, ...props, style: [padding, style] });
39
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA7YB7YWXcjs.TextFieldField, { ref, ...props, style: [padding, style] });
40
40
  }
41
41
  );
42
42
  FieldGroupField.displayName = "XAUI.FieldGroup.Field";
@@ -44,7 +44,7 @@ FieldGroupField.displayName = "XAUI.FieldGroup.Field";
44
44
  // src/components/field-group/field-group-icon.tsx
45
45
 
46
46
  function FieldGroupIcon({ size, color, ...rest }) {
47
- const { icon } = _chunkJ3MB4PI5cjs.useTextField.call(void 0, );
47
+ const { icon } = _chunkA7YB7YWXcjs.useTextField.call(void 0, );
48
48
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4KFKWBN5cjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
49
49
  }
50
50
  FieldGroupIcon.displayName = "XAUI.FieldGroup.Icon";
@@ -58,7 +58,7 @@ var _reactnative = require('react-native');
58
58
 
59
59
  var FieldGroupDecorator = _react.forwardRef.call(void 0,
60
60
  function FieldGroupDecorator2({ side, children, isDecorative = false, onLayout, style, ...props }, ref) {
61
- const { prefixStyle, suffixStyle, isDisabled } = _chunkJ3MB4PI5cjs.useTextField.call(void 0, );
61
+ const { prefixStyle, suffixStyle, isDisabled } = _chunkA7YB7YWXcjs.useTextField.call(void 0, );
62
62
  const { setPrefixWidth, setSuffixWidth } = useFieldGroup();
63
63
  const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
64
64
  const report = side === "prefix" ? setPrefixWidth : setSuffixWidth;
@@ -1,7 +1,7 @@
1
1
  import { useControllableState } from "./chunk-F6W3JQ7K.js";
2
+ import { createSlotContext } from "./chunk-K72UDPVN.js";
2
3
  import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
3
4
  import { useXAUITheme } from "./chunk-A3EGFI6T.js";
4
- import { createSlotContext } from "./chunk-K72UDPVN.js";
5
5
  import { useStyleProps } from "./chunk-M63GFNKV.js";
6
6
 
7
7
  // src/components/input-otp/input-otp-box.tsx
@@ -40,10 +40,10 @@ function InputOTPCaret({
40
40
  });
41
41
  }
42
42
  InputOTPCaret.displayName = "XAUI.InputOTP.Caret";
43
- const _worklet_16670090179149_init_data = {
44
- code: "function chunkDG2I4PJGJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
45
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-DG2I4PJG.js",
46
- sourceMap: "{\"version\":3,\"names\":[\"chunkDG2I4PJGJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-DG2I4PJG.js\"],\"mappings\":\"AA8DyC,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
43
+ const _worklet_15888708666305_init_data = {
44
+ code: "function chunkSACDOFGFJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
45
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SACDOFGF.js",
46
+ sourceMap: "{\"version\":3,\"names\":[\"chunkSACDOFGFJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SACDOFGF.js\"],\"mappings\":\"AA8DyC,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
47
47
  };
48
48
  function BlinkingCaret({
49
49
  style
@@ -56,26 +56,26 @@ function BlinkingCaret({
56
56
  }), -1, true);
57
57
  return () => cancelAnimation(opacity);
58
58
  }, [opacity]);
59
- const animatedStyle = useAnimatedStyle(function chunkDG2I4PJGJs1Factory({
60
- _worklet_16670090179149_init_data,
59
+ const animatedStyle = useAnimatedStyle(function chunkSACDOFGFJs1Factory({
60
+ _worklet_15888708666305_init_data,
61
61
  opacity
62
62
  }) {
63
63
  const _e = [new global.Error(), -2, -27];
64
- const chunkDG2I4PJGJs1 = function () {
64
+ const chunkSACDOFGFJs1 = function () {
65
65
  return {
66
66
  opacity: opacity.value
67
67
  };
68
68
  };
69
- chunkDG2I4PJGJs1.__closure = {
69
+ chunkSACDOFGFJs1.__closure = {
70
70
  opacity
71
71
  };
72
- chunkDG2I4PJGJs1.__workletHash = 16670090179149;
73
- chunkDG2I4PJGJs1.__pluginVersion = "0.7.4";
74
- chunkDG2I4PJGJs1.__initData = _worklet_16670090179149_init_data;
75
- chunkDG2I4PJGJs1.__stackDetails = _e;
76
- return chunkDG2I4PJGJs1;
72
+ chunkSACDOFGFJs1.__workletHash = 15888708666305;
73
+ chunkSACDOFGFJs1.__pluginVersion = "0.7.4";
74
+ chunkSACDOFGFJs1.__initData = _worklet_15888708666305_init_data;
75
+ chunkSACDOFGFJs1.__stackDetails = _e;
76
+ return chunkSACDOFGFJs1;
77
77
  }({
78
- _worklet_16670090179149_init_data,
78
+ _worklet_15888708666305_init_data,
79
79
  opacity
80
80
  }), [opacity]);
81
81
  return /* @__PURE__ */jsx(Animated.View, {