@xaui/native 0.9.1-alpha.13 → 0.9.1-alpha.15

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.
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import * as react_native from 'react-native';
4
4
  import { StyleProp, TextStyle, ViewStyle, TextProps, PressableStateCallbackType } from 'react-native';
5
- import { a as IconContextValue, b as IconProps, w as TextStyleProps, P as PressableFeedbackProps, x as ViewStyleProps, g as Recipe, o as SlotStyles, c as AnimationProp } from '../../create-recipe-oiLAlJ4u.cjs';
5
+ import { a as IconContextValue, b as IconProps, w as TextStyleProps, P as PressableFeedbackProps, x as ViewStyleProps, g as Recipe, o as SlotStyles, c as AnimationProp } from '../../create-recipe-BcUu9b2I.cjs';
6
6
  import { S as Size, R as RadiusKey, g as XAUITheme } from '../../theme.type-C9bFJKFm.cjs';
7
7
  import 'react-native-reanimated';
8
8
 
@@ -55,11 +55,15 @@ type ButtonOwnProps = {
55
55
  type ButtonBehaviourProps = Omit<PressableFeedbackProps, 'isPressed' | 'isDisabled' | 'style' | 'children'>;
56
56
  /**
57
57
  * R14 — the button's own props, the press behaviour it forwards, and every `ViewStyle`
58
- * key the two do not already claim. `height` therefore beats the height `size` chose and
59
- * `width="100%"` is what replaced `fullWidth`, both because the style props resolve after
60
- * the recipe. That is the escape hatch, not the normal path.
58
+ * key its own vocabulary does not already claim. `height` therefore beats the height
59
+ * `size` chose and `width="100%"` is what replaced `fullWidth`, both because the style
60
+ * props resolve after the recipe. That is the escape hatch, not the normal path.
61
+ *
62
+ * `PressableFeedback` carries the same keys, so the third term is redundant today. It
63
+ * stays because it is the `Button` that owes them: a root states the rule for its own
64
+ * node rather than inheriting it from whatever it happens to render.
61
65
  */
62
- type ButtonProps = ButtonOwnProps & ButtonBehaviourProps & Omit<ViewStyleProps, keyof ButtonOwnProps | keyof ButtonBehaviourProps>;
66
+ type ButtonProps = ButtonOwnProps & ButtonBehaviourProps & Omit<ViewStyleProps, keyof ButtonOwnProps>;
63
67
  /** `Text`'s own props win over the `TextStyle` keys of the same name (R14). */
64
68
  type ButtonLabelProps = TextProps & Omit<TextStyleProps, keyof TextProps> & {
65
69
  children?: ReactNode;
@@ -212,6 +216,318 @@ declare const Button: react.ForwardRefExoticComponent<{
212
216
  style?: react_native.StyleProp<react_native.ViewStyle> | ((state: react_native.PressableStateCallbackType) => react_native.StyleProp<react_native.ViewStyle>);
213
217
  children?: react.ReactNode;
214
218
  } & {
219
+ borderWidth?: number | undefined | undefined;
220
+ opacity?: react_native.AnimatableNumericValue | undefined;
221
+ filter?: string | readonly react_native.FilterFunction[] | undefined;
222
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined | undefined;
223
+ alignItems?: react_native.FlexAlignType | undefined;
224
+ alignSelf?: "auto" | react_native.FlexAlignType | undefined;
225
+ aspectRatio?: number | string | undefined | undefined;
226
+ boxSizing?: "border-box" | "content-box" | undefined | undefined;
227
+ columnGap?: number | string | undefined | undefined;
228
+ direction?: "inherit" | "ltr" | "rtl" | undefined | undefined;
229
+ display?: "none" | "flex" | "contents" | undefined | undefined;
230
+ flex?: number | undefined | undefined;
231
+ flexBasis?: react_native.DimensionValue | undefined;
232
+ flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined | undefined;
233
+ flexGrow?: number | undefined | undefined;
234
+ flexShrink?: number | undefined | undefined;
235
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined | undefined;
236
+ gap?: number | string | undefined | undefined;
237
+ justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined | undefined;
238
+ overflow?: "visible" | "hidden" | "scroll" | undefined | undefined;
239
+ rowGap?: number | string | undefined | undefined;
240
+ bottom?: react_native.DimensionValue | undefined;
241
+ end?: react_native.DimensionValue | undefined;
242
+ inset?: react_native.DimensionValue | undefined;
243
+ insetBlock?: react_native.DimensionValue | undefined;
244
+ insetBlockEnd?: react_native.DimensionValue | undefined;
245
+ insetBlockStart?: react_native.DimensionValue | undefined;
246
+ insetInline?: react_native.DimensionValue | undefined;
247
+ insetInlineEnd?: react_native.DimensionValue | undefined;
248
+ insetInlineStart?: react_native.DimensionValue | undefined;
249
+ position?: "absolute" | "relative" | "static" | undefined | undefined;
250
+ start?: react_native.DimensionValue | undefined;
251
+ top?: react_native.DimensionValue | undefined;
252
+ zIndex?: number | undefined | undefined;
253
+ margin?: react_native.DimensionValue | undefined;
254
+ marginBlock?: react_native.DimensionValue | undefined;
255
+ marginBlockEnd?: react_native.DimensionValue | undefined;
256
+ marginBlockStart?: react_native.DimensionValue | undefined;
257
+ marginBottom?: react_native.DimensionValue | undefined;
258
+ marginEnd?: react_native.DimensionValue | undefined;
259
+ marginHorizontal?: react_native.DimensionValue | undefined;
260
+ marginInline?: react_native.DimensionValue | undefined;
261
+ marginInlineEnd?: react_native.DimensionValue | undefined;
262
+ marginInlineStart?: react_native.DimensionValue | undefined;
263
+ marginStart?: react_native.DimensionValue | undefined;
264
+ marginTop?: react_native.DimensionValue | undefined;
265
+ marginVertical?: react_native.DimensionValue | undefined;
266
+ padding?: react_native.DimensionValue | undefined;
267
+ paddingBlock?: react_native.DimensionValue | undefined;
268
+ paddingBlockEnd?: react_native.DimensionValue | undefined;
269
+ paddingBlockStart?: react_native.DimensionValue | undefined;
270
+ paddingBottom?: react_native.DimensionValue | undefined;
271
+ paddingEnd?: react_native.DimensionValue | undefined;
272
+ paddingHorizontal?: react_native.DimensionValue | undefined;
273
+ paddingInline?: react_native.DimensionValue | undefined;
274
+ paddingInlineEnd?: react_native.DimensionValue | undefined;
275
+ paddingInlineStart?: react_native.DimensionValue | undefined;
276
+ paddingStart?: react_native.DimensionValue | undefined;
277
+ paddingTop?: react_native.DimensionValue | undefined;
278
+ paddingVertical?: react_native.DimensionValue | undefined;
279
+ height?: react_native.DimensionValue | undefined;
280
+ maxHeight?: react_native.DimensionValue | undefined;
281
+ maxWidth?: react_native.DimensionValue | undefined;
282
+ minHeight?: react_native.DimensionValue | undefined;
283
+ minWidth?: react_native.DimensionValue | undefined;
284
+ width?: react_native.DimensionValue | undefined;
285
+ borderBlockColor?: react_native.ColorValue | undefined;
286
+ borderBlockEndColor?: react_native.ColorValue | undefined;
287
+ borderBlockStartColor?: react_native.ColorValue | undefined;
288
+ borderBottomColor?: react_native.ColorValue | undefined;
289
+ borderBottomEndRadius?: string | react_native.AnimatableNumericValue | undefined;
290
+ borderBottomStartRadius?: string | react_native.AnimatableNumericValue | undefined;
291
+ borderBottomWidth?: number | undefined | undefined;
292
+ borderColor?: react_native.ColorValue | undefined;
293
+ borderCurve?: "circular" | "continuous" | undefined | undefined;
294
+ borderEndColor?: react_native.ColorValue | undefined;
295
+ borderEndEndRadius?: string | react_native.AnimatableNumericValue | undefined;
296
+ borderEndStartRadius?: string | react_native.AnimatableNumericValue | undefined;
297
+ borderEndWidth?: number | undefined | undefined;
298
+ borderRadius?: string | react_native.AnimatableNumericValue | undefined;
299
+ borderStartColor?: react_native.ColorValue | undefined;
300
+ borderStartEndRadius?: string | react_native.AnimatableNumericValue | undefined;
301
+ borderStartStartRadius?: string | react_native.AnimatableNumericValue | undefined;
302
+ borderStartWidth?: number | undefined | undefined;
303
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
304
+ borderTopColor?: react_native.ColorValue | undefined;
305
+ borderTopEndRadius?: string | react_native.AnimatableNumericValue | undefined;
306
+ borderTopStartRadius?: string | react_native.AnimatableNumericValue | undefined;
307
+ borderTopWidth?: number | undefined | undefined;
308
+ backfaceVisibility?: "visible" | "hidden" | undefined | undefined;
309
+ backgroundColor?: react_native.ColorValue | undefined;
310
+ boxShadow?: string | readonly react_native.BoxShadowValue[] | undefined;
311
+ cursor?: react_native.CursorValue | undefined;
312
+ elevation?: number | undefined | undefined;
313
+ experimental_backgroundImage?: string | readonly react_native.GradientValue[] | undefined;
314
+ isolation?: "auto" | "isolate" | undefined | undefined;
315
+ mixBlendMode?: react_native.BlendMode | undefined;
316
+ outlineColor?: react_native.ColorValue | undefined;
317
+ outlineOffset?: react_native.AnimatableNumericValue | undefined;
318
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
319
+ outlineWidth?: react_native.AnimatableNumericValue | undefined;
320
+ shadowColor?: react_native.ColorValue | undefined;
321
+ shadowOffset?: Readonly<{
322
+ width: number;
323
+ height: number;
324
+ }> | undefined;
325
+ shadowOpacity?: react_native.AnimatableNumericValue | undefined;
326
+ shadowRadius?: number | undefined | undefined;
327
+ rotation?: react_native.AnimatableNumericValue | undefined;
328
+ scaleX?: react_native.AnimatableNumericValue | undefined;
329
+ scaleY?: react_native.AnimatableNumericValue | undefined;
330
+ transform?: string | readonly (({
331
+ scaleX: react_native.AnimatableNumericValue;
332
+ } & {
333
+ scaleY?: undefined;
334
+ translateX?: undefined;
335
+ translateY?: undefined;
336
+ perspective?: undefined;
337
+ rotate?: undefined;
338
+ rotateX?: undefined;
339
+ rotateY?: undefined;
340
+ rotateZ?: undefined;
341
+ scale?: undefined;
342
+ skewX?: undefined;
343
+ skewY?: undefined;
344
+ matrix?: undefined;
345
+ }) | ({
346
+ scaleY: react_native.AnimatableNumericValue;
347
+ } & {
348
+ scaleX?: undefined;
349
+ translateX?: undefined;
350
+ translateY?: undefined;
351
+ perspective?: undefined;
352
+ rotate?: undefined;
353
+ rotateX?: undefined;
354
+ rotateY?: undefined;
355
+ rotateZ?: undefined;
356
+ scale?: undefined;
357
+ skewX?: undefined;
358
+ skewY?: undefined;
359
+ matrix?: undefined;
360
+ }) | ({
361
+ translateX: react_native.AnimatableNumericValue | `${number}%`;
362
+ } & {
363
+ scaleX?: undefined;
364
+ scaleY?: undefined;
365
+ translateY?: undefined;
366
+ perspective?: undefined;
367
+ rotate?: undefined;
368
+ rotateX?: undefined;
369
+ rotateY?: undefined;
370
+ rotateZ?: undefined;
371
+ scale?: undefined;
372
+ skewX?: undefined;
373
+ skewY?: undefined;
374
+ matrix?: undefined;
375
+ }) | ({
376
+ translateY: react_native.AnimatableNumericValue | `${number}%`;
377
+ } & {
378
+ scaleX?: undefined;
379
+ scaleY?: undefined;
380
+ translateX?: undefined;
381
+ perspective?: undefined;
382
+ rotate?: undefined;
383
+ rotateX?: undefined;
384
+ rotateY?: undefined;
385
+ rotateZ?: undefined;
386
+ scale?: undefined;
387
+ skewX?: undefined;
388
+ skewY?: undefined;
389
+ matrix?: undefined;
390
+ }) | ({
391
+ perspective: react_native.AnimatableNumericValue;
392
+ } & {
393
+ scaleX?: undefined;
394
+ scaleY?: undefined;
395
+ translateX?: undefined;
396
+ translateY?: undefined;
397
+ rotate?: undefined;
398
+ rotateX?: undefined;
399
+ rotateY?: undefined;
400
+ rotateZ?: undefined;
401
+ scale?: undefined;
402
+ skewX?: undefined;
403
+ skewY?: undefined;
404
+ matrix?: undefined;
405
+ }) | ({
406
+ rotate: react_native.AnimatableStringValue;
407
+ } & {
408
+ scaleX?: undefined;
409
+ scaleY?: undefined;
410
+ translateX?: undefined;
411
+ translateY?: undefined;
412
+ perspective?: undefined;
413
+ rotateX?: undefined;
414
+ rotateY?: undefined;
415
+ rotateZ?: undefined;
416
+ scale?: undefined;
417
+ skewX?: undefined;
418
+ skewY?: undefined;
419
+ matrix?: undefined;
420
+ }) | ({
421
+ rotateX: react_native.AnimatableStringValue;
422
+ } & {
423
+ scaleX?: undefined;
424
+ scaleY?: undefined;
425
+ translateX?: undefined;
426
+ translateY?: undefined;
427
+ perspective?: undefined;
428
+ rotate?: undefined;
429
+ rotateY?: undefined;
430
+ rotateZ?: undefined;
431
+ scale?: undefined;
432
+ skewX?: undefined;
433
+ skewY?: undefined;
434
+ matrix?: undefined;
435
+ }) | ({
436
+ rotateY: react_native.AnimatableStringValue;
437
+ } & {
438
+ scaleX?: undefined;
439
+ scaleY?: undefined;
440
+ translateX?: undefined;
441
+ translateY?: undefined;
442
+ perspective?: undefined;
443
+ rotate?: undefined;
444
+ rotateX?: undefined;
445
+ rotateZ?: undefined;
446
+ scale?: undefined;
447
+ skewX?: undefined;
448
+ skewY?: undefined;
449
+ matrix?: undefined;
450
+ }) | ({
451
+ rotateZ: react_native.AnimatableStringValue;
452
+ } & {
453
+ scaleX?: undefined;
454
+ scaleY?: undefined;
455
+ translateX?: undefined;
456
+ translateY?: undefined;
457
+ perspective?: undefined;
458
+ rotate?: undefined;
459
+ rotateX?: undefined;
460
+ rotateY?: undefined;
461
+ scale?: undefined;
462
+ skewX?: undefined;
463
+ skewY?: undefined;
464
+ matrix?: undefined;
465
+ }) | ({
466
+ scale: react_native.AnimatableNumericValue;
467
+ } & {
468
+ scaleX?: undefined;
469
+ scaleY?: undefined;
470
+ translateX?: undefined;
471
+ translateY?: undefined;
472
+ perspective?: undefined;
473
+ rotate?: undefined;
474
+ rotateX?: undefined;
475
+ rotateY?: undefined;
476
+ rotateZ?: undefined;
477
+ skewX?: undefined;
478
+ skewY?: undefined;
479
+ matrix?: undefined;
480
+ }) | ({
481
+ skewX: react_native.AnimatableStringValue;
482
+ } & {
483
+ scaleX?: undefined;
484
+ scaleY?: undefined;
485
+ translateX?: undefined;
486
+ translateY?: undefined;
487
+ perspective?: undefined;
488
+ rotate?: undefined;
489
+ rotateX?: undefined;
490
+ rotateY?: undefined;
491
+ rotateZ?: undefined;
492
+ scale?: undefined;
493
+ skewY?: undefined;
494
+ matrix?: undefined;
495
+ }) | ({
496
+ skewY: react_native.AnimatableStringValue;
497
+ } & {
498
+ scaleX?: undefined;
499
+ scaleY?: undefined;
500
+ translateX?: undefined;
501
+ translateY?: undefined;
502
+ perspective?: undefined;
503
+ rotate?: undefined;
504
+ rotateX?: undefined;
505
+ rotateY?: undefined;
506
+ rotateZ?: undefined;
507
+ scale?: undefined;
508
+ skewX?: undefined;
509
+ matrix?: undefined;
510
+ }) | ({
511
+ matrix: react_native.AnimatableNumericValue[];
512
+ } & {
513
+ scaleX?: undefined;
514
+ scaleY?: undefined;
515
+ translateX?: undefined;
516
+ translateY?: undefined;
517
+ perspective?: undefined;
518
+ rotate?: undefined;
519
+ rotateX?: undefined;
520
+ rotateY?: undefined;
521
+ rotateZ?: undefined;
522
+ scale?: undefined;
523
+ skewX?: undefined;
524
+ skewY?: undefined;
525
+ }))[] | undefined;
526
+ transformMatrix?: number[] | undefined;
527
+ transformOrigin?: string | (string | number)[] | undefined;
528
+ translateX?: react_native.AnimatableNumericValue | undefined;
529
+ translateY?: react_native.AnimatableNumericValue | undefined;
530
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined | undefined;
215
531
  id?: string | undefined | undefined;
216
532
  onLayout?: ((event: react_native.LayoutChangeEvent) => void) | undefined | undefined;
217
533
  testID?: string | undefined | undefined;
@@ -258,7 +574,6 @@ declare const Button: react.ForwardRefExoticComponent<{
258
574
  accessibilityRespondsToUserInteraction?: boolean | undefined | undefined;
259
575
  hitSlop?: number | react_native.Insets | null | undefined;
260
576
  needsOffscreenAlphaCompositing?: boolean | undefined | undefined;
261
- pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined | undefined;
262
577
  removeClippedSubviews?: boolean | undefined | undefined;
263
578
  collapsable?: boolean | undefined | undefined;
264
579
  collapsableChildren?: boolean | undefined | undefined;
@@ -320,7 +635,7 @@ declare const Button: react.ForwardRefExoticComponent<{
320
635
  unstable_pressDelay?: number | undefined | undefined;
321
636
  asChild?: boolean | undefined;
322
637
  animation?: AnimationProp | undefined;
323
- } & Omit<ViewStyleProps, "id" | "onLayout" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "hitSlop" | "needsOffscreenAlphaCompositing" | "pointerEvents" | "removeClippedSubviews" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onHoverIn" | "onHoverOut" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "delayLongPress" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay" | "asChild" | "animation" | keyof {
638
+ } & Omit<ViewStyleProps, keyof {
324
639
  variant?: ButtonVariant;
325
640
  size?: ButtonSize;
326
641
  radius?: RadiusKey;