@xaui/native 0.9.1-alpha.37 → 0.9.1-alpha.39

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 (149) hide show
  1. package/dist/{chunk-OULTSBKU.js → chunk-26OGEFQI.js} +1 -1
  2. package/dist/chunk-2EGR4LWD.js +145 -0
  3. package/dist/{chunk-TJHYSSBZ.js → chunk-346QBNUD.js} +1 -1
  4. package/dist/chunk-37L7YGZV.cjs +425 -0
  5. package/dist/{chunk-PPWXLZGL.js → chunk-3GFRSZYR.js} +15 -23
  6. package/dist/{chunk-DKH6BNPF.cjs → chunk-3JXI2IHV.cjs} +13 -13
  7. package/dist/{chunk-7B3UBUC6.cjs → chunk-4KFKWBN5.cjs} +23 -2
  8. package/dist/{chunk-IGLKACSR.cjs → chunk-4KSKQD37.cjs} +5 -5
  9. package/dist/{chunk-UBOXW5WO.cjs → chunk-54CWXA34.cjs} +61 -61
  10. package/dist/chunk-64MXEVT3.js +66 -0
  11. package/dist/{chunk-ZJWEVFAO.cjs → chunk-66FOASTP.cjs} +9 -9
  12. package/dist/{chunk-5PPNDKRX.js → chunk-6CO6FM67.js} +16 -16
  13. package/dist/{chunk-DVDQSW7U.cjs → chunk-76XDVA24.cjs} +65 -190
  14. package/dist/{chunk-54FJOKAN.cjs → chunk-7GHM4GKL.cjs} +25 -25
  15. package/dist/chunk-7KLBTMXV.cjs +478 -0
  16. package/dist/{chunk-AP6RVIIK.cjs → chunk-7TOG4TVU.cjs} +21 -21
  17. package/dist/{chunk-LEWW24RQ.cjs → chunk-A7YB7YWX.cjs} +3 -3
  18. package/dist/{chunk-3P6M2R4S.cjs → chunk-AAVCMCJ3.cjs} +4 -4
  19. package/dist/{chunk-VFTT3Q4B.cjs → chunk-BNFIFRQA.cjs} +3 -3
  20. package/dist/{chunk-JXNFOOKC.js → chunk-DY3SUG5P.js} +5 -5
  21. package/dist/chunk-EKS3W46M.cjs +66 -0
  22. package/dist/{chunk-EOJ5MYAQ.js → chunk-EYD4H4X6.js} +4 -4
  23. package/dist/{chunk-RGKWNK4T.js → chunk-FBCWNXZC.js} +58 -58
  24. package/dist/{chunk-HXW4ANVB.js → chunk-FHUYHV6J.js} +25 -4
  25. package/dist/chunk-GJSFKH4L.js +586 -0
  26. package/dist/{chunk-6G3XWPNP.js → chunk-HA6BFY3A.js} +3 -3
  27. package/dist/{chunk-FTQHDJYL.cjs → chunk-HOI5425P.cjs} +9 -9
  28. package/dist/{chunk-XWY4DF37.js → chunk-JKP4TPIL.js} +86 -289
  29. package/dist/{chunk-YXPYOOHU.js → chunk-K72UDPVN.js} +27 -27
  30. package/dist/{chunk-NTD3NPRX.cjs → chunk-KSUV74BE.cjs} +2 -2
  31. package/dist/{chunk-UGF35NSE.js → chunk-LIUO6D3D.js} +75 -75
  32. package/dist/{chunk-E3X5ODKQ.js → chunk-LTX6TB5I.js} +1 -1
  33. package/dist/chunk-LUPCPLND.cjs +145 -0
  34. package/dist/{chunk-BORJJYDW.js → chunk-MXGER5PI.js} +2 -2
  35. package/dist/{chunk-GTT4NHS2.cjs → chunk-NCCRQK3P.cjs} +11 -11
  36. package/dist/chunk-NCTOTTVW.js +13 -0
  37. package/dist/{chunk-NKPTXTTS.js → chunk-QZ24MZRX.js} +3 -3
  38. package/dist/{chunk-7LSY4WFL.js → chunk-R7BU4CPS.js} +2 -2
  39. package/dist/{chunk-JB5LGQ54.cjs → chunk-RKCWYUGA.cjs} +3 -3
  40. package/dist/{chunk-SMW6ZWMH.js → chunk-S2WNWMNT.js} +1 -1
  41. package/dist/{chunk-WVLSQO6K.cjs → chunk-S4QUM4EE.cjs} +9 -9
  42. package/dist/{chunk-SO5UAGIU.js → chunk-SACDOFGF.js} +15 -15
  43. package/dist/{chunk-CUQTAPBU.cjs → chunk-SIP5J7HU.cjs} +17 -17
  44. package/dist/{chunk-O3A3DBSZ.js → chunk-SZLXPF3G.js} +1 -1
  45. package/dist/{chunk-437QULXO.cjs → chunk-TDTUAIFF.cjs} +5 -5
  46. package/dist/{chunk-DRMT346W.cjs → chunk-TGMVEHV7.cjs} +64 -64
  47. package/dist/{chunk-TDYPY2J7.js → chunk-TRETQZEW.js} +7 -7
  48. package/dist/{chunk-ITURCQMQ.cjs → chunk-URA25DU4.cjs} +5 -5
  49. package/dist/{chunk-4PTWZCOK.js → chunk-USF6EWYR.js} +7 -7
  50. package/dist/{chunk-P747CRAY.cjs → chunk-VZK3NLBH.cjs} +9 -9
  51. package/dist/chunk-WFEMJCXO.cjs +13 -0
  52. package/dist/chunk-XAFP5JLK.js +425 -0
  53. package/dist/{chunk-RVRVGG73.js → chunk-XNMZQSY5.js} +2 -2
  54. package/dist/{chunk-K4TWKF5U.cjs → chunk-XSQPVDFH.cjs} +15 -25
  55. package/dist/{chunk-JDSE4TQL.js → chunk-XTC2SLFT.js} +1 -1
  56. package/dist/{chunk-C5VDFRAD.cjs → chunk-XWNG2U4K.cjs} +2 -2
  57. package/dist/components/accordion/index.cjs +35 -0
  58. package/dist/components/accordion/index.d.cts +299 -0
  59. package/dist/components/accordion/index.d.ts +299 -0
  60. package/dist/components/accordion/index.js +35 -0
  61. package/dist/components/alert/index.cjs +7 -7
  62. package/dist/components/alert/index.d.cts +2 -2
  63. package/dist/components/alert/index.d.ts +2 -2
  64. package/dist/components/alert/index.js +6 -6
  65. package/dist/components/avatar/index.cjs +4 -4
  66. package/dist/components/avatar/index.d.cts +3 -3
  67. package/dist/components/avatar/index.d.ts +3 -3
  68. package/dist/components/avatar/index.js +3 -3
  69. package/dist/components/badge/index.cjs +3 -3
  70. package/dist/components/badge/index.d.cts +1 -1
  71. package/dist/components/badge/index.d.ts +1 -1
  72. package/dist/components/badge/index.js +2 -2
  73. package/dist/components/button/index.cjs +8 -7
  74. package/dist/components/button/index.d.cts +204 -204
  75. package/dist/components/button/index.d.ts +204 -204
  76. package/dist/components/button/index.js +7 -6
  77. package/dist/components/card/index.cjs +5 -5
  78. package/dist/components/card/index.d.cts +206 -206
  79. package/dist/components/card/index.d.ts +206 -206
  80. package/dist/components/card/index.js +4 -4
  81. package/dist/components/checkbox/index.cjs +5 -5
  82. package/dist/components/checkbox/index.d.cts +408 -408
  83. package/dist/components/checkbox/index.d.ts +408 -408
  84. package/dist/components/checkbox/index.js +4 -4
  85. package/dist/components/chip/index.cjs +7 -7
  86. package/dist/components/chip/index.d.cts +205 -205
  87. package/dist/components/chip/index.d.ts +205 -205
  88. package/dist/components/chip/index.js +6 -6
  89. package/dist/components/divider/index.cjs +3 -3
  90. package/dist/components/divider/index.d.cts +3 -3
  91. package/dist/components/divider/index.d.ts +3 -3
  92. package/dist/components/divider/index.js +2 -2
  93. package/dist/components/field-group/index.cjs +5 -5
  94. package/dist/components/field-group/index.d.cts +8 -8
  95. package/dist/components/field-group/index.d.ts +8 -8
  96. package/dist/components/field-group/index.js +4 -4
  97. package/dist/components/input-otp/index.cjs +3 -3
  98. package/dist/components/input-otp/index.d.cts +2 -2
  99. package/dist/components/input-otp/index.d.ts +2 -2
  100. package/dist/components/input-otp/index.js +2 -2
  101. package/dist/components/popover/index.cjs +37 -0
  102. package/dist/components/popover/index.d.cts +254 -0
  103. package/dist/components/popover/index.d.ts +254 -0
  104. package/dist/components/popover/index.js +37 -0
  105. package/dist/components/radio/index.cjs +5 -5
  106. package/dist/components/radio/index.d.cts +419 -419
  107. package/dist/components/radio/index.d.ts +419 -419
  108. package/dist/components/radio/index.js +4 -4
  109. package/dist/components/select/index.cjs +10 -7
  110. package/dist/components/select/index.d.cts +24 -45
  111. package/dist/components/select/index.d.ts +24 -45
  112. package/dist/components/select/index.js +9 -6
  113. package/dist/components/skeleton/index.d.cts +1 -1
  114. package/dist/components/skeleton/index.d.ts +1 -1
  115. package/dist/components/spinner/index.cjs +5 -4
  116. package/dist/components/spinner/index.d.cts +1 -1
  117. package/dist/components/spinner/index.d.ts +1 -1
  118. package/dist/components/spinner/index.js +4 -3
  119. package/dist/components/switch/index.cjs +5 -5
  120. package/dist/components/switch/index.d.cts +409 -409
  121. package/dist/components/switch/index.d.ts +409 -409
  122. package/dist/components/switch/index.js +4 -4
  123. package/dist/components/text-area/index.cjs +4 -4
  124. package/dist/components/text-area/index.js +3 -3
  125. package/dist/components/text-field/index.cjs +3 -3
  126. package/dist/components/text-field/index.d.cts +3 -3
  127. package/dist/components/text-field/index.d.ts +3 -3
  128. package/dist/components/text-field/index.js +2 -2
  129. package/dist/components/typography/index.cjs +3 -3
  130. package/dist/components/typography/index.d.cts +5 -5
  131. package/dist/components/typography/index.d.ts +5 -5
  132. package/dist/components/typography/index.js +2 -2
  133. package/dist/components/view/index.cjs +3 -3
  134. package/dist/components/view/index.d.cts +8 -8
  135. package/dist/components/view/index.d.ts +8 -8
  136. package/dist/components/view/index.js +2 -2
  137. package/dist/index.cjs +89 -28
  138. package/dist/index.d.cts +5 -2
  139. package/dist/index.d.ts +5 -2
  140. package/dist/index.js +109 -48
  141. package/dist/placement-DHa0Rrh1.d.cts +38 -0
  142. package/dist/placement-DHa0Rrh1.d.ts +38 -0
  143. package/dist/system/index.cjs +24 -8
  144. package/dist/system/index.d.cts +83 -34
  145. package/dist/system/index.d.ts +83 -34
  146. package/dist/system/index.js +24 -8
  147. package/package.json +21 -1
  148. /package/dist/{chunk-OJCCV65P.cjs → chunk-GGW43Q37.cjs} +0 -0
  149. /package/dist/{chunk-MESKS6AI.js → chunk-WHJTBTYM.js} +0 -0
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunk7KLBTMXVcjs = require('../../chunk-7KLBTMXV.cjs');
13
+ require('../../chunk-EKS3W46M.cjs');
14
+ require('../../chunk-4KFKWBN5.cjs');
15
+ require('../../chunk-7EIHHOHP.cjs');
16
+ require('../../chunk-TGMVEHV7.cjs');
17
+ require('../../chunk-7DPL3ZDS.cjs');
18
+ require('../../chunk-EJQCQPET.cjs');
19
+ require('../../chunk-7GHM4GKL.cjs');
20
+ require('../../chunk-H4E4HDEP.cjs');
21
+ require('../../chunk-FNEUOBCV.cjs');
22
+ require('../../chunk-57SJ4LJF.cjs');
23
+ require('../../chunk-TK44VBIE.cjs');
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ exports.Accordion = _chunk7KLBTMXVcjs.Accordion; exports.AccordionContent = _chunk7KLBTMXVcjs.AccordionContent; exports.AccordionIndicator = _chunk7KLBTMXVcjs.AccordionIndicator; exports.AccordionItem = _chunk7KLBTMXVcjs.AccordionItem; exports.AccordionRoot = _chunk7KLBTMXVcjs.AccordionRoot; exports.AccordionTrigger = _chunk7KLBTMXVcjs.AccordionTrigger; exports.accordionLayoutTransition = _chunk7KLBTMXVcjs.LAYOUT; exports.accordionRecipe = _chunk7KLBTMXVcjs.accordionRecipe; exports.useAccordion = _chunk7KLBTMXVcjs.useAccordion; exports.useAccordionItem = _chunk7KLBTMXVcjs.useAccordionItem;
@@ -0,0 +1,299 @@
1
+ import * as react_native from 'react-native';
2
+ import { StyleProp, ViewStyle, TextStyle, ViewProps, PressableProps, View } from 'react-native';
3
+ import * as react from 'react';
4
+ import { ComponentType, ReactNode } from 'react';
5
+ import { V as ViewStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
6
+ import { S as Size, R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
7
+ import { b as IconComponentProps, I as IconContextValue } from '../../icon.type-d_i9ma-i.cjs';
8
+ import { R as Recipe, S as SlotStyles, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
9
+ import * as react_native_reanimated from 'react-native-reanimated';
10
+
11
+ type AccordionSlot = 'root'
12
+ /** The clipping layer inside the root. See the recipe for why it is not the root. */
13
+ | 'container' | 'separator' | 'item' | 'trigger' | 'indicator' | 'content';
14
+ /**
15
+ * Four emphasis levels, no intent — `danger` on a list of expandable rows would be
16
+ * colouring a container rather than reporting a meaning.
17
+ *
18
+ * The ladder descends without a gap: `primary` is the strong fill, `secondary` the
19
+ * quieter one, `tertiary` an edge with nothing behind it, `ghost` nothing at all. Neither
20
+ * the `Button`'s five nor the `Card`'s four read that cleanly — both put `default`
21
+ * somewhere in the middle of an order it does not name a position in.
22
+ *
23
+ * `ghost` is the default here, and it is HeroUI's own `default`: rows separated by
24
+ * hairlines, on whatever page they sit on. `primary` is their `surface`.
25
+ */
26
+ type AccordionVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
27
+ type AccordionSize = Size;
28
+ /** One open at a time, or as many as the reader wants. */
29
+ type AccordionSelectionMode = 'single' | 'multiple';
30
+ /** A string in `single` mode, a list of them in `multiple`. */
31
+ type AccordionValue = string | readonly string[];
32
+ type AccordionOwnProps = {
33
+ children?: ReactNode;
34
+ variant?: AccordionVariant;
35
+ size?: AccordionSize;
36
+ radius?: RadiusKey;
37
+ /** The tint (R7) — a raw value, never a token. */
38
+ color?: string;
39
+ selectionMode?: AccordionSelectionMode;
40
+ /** Controlled. Leave unset and the root owns it. */
41
+ value?: AccordionValue;
42
+ defaultValue?: AccordionValue;
43
+ onValueChange?: (value: AccordionValue) => void;
44
+ isDisabled?: boolean;
45
+ /**
46
+ * Whether an open item can be closed by pressing it again. Off, the accordion always
47
+ * has one item open — which is what a set of tabs pretending to be an accordion needs.
48
+ *
49
+ * @default true
50
+ */
51
+ isCollapsible?: boolean;
52
+ /** The hairline between rows. It is the only thing separating them in `ghost`. */
53
+ hasSeparator?: boolean;
54
+ asChild?: boolean;
55
+ };
56
+ type AccordionProps = AccordionOwnProps & Omit<ViewProps, keyof AccordionOwnProps> & Omit<ViewStyleProps, keyof AccordionOwnProps | keyof ViewProps>;
57
+ type AccordionItemOwnProps = {
58
+ /** What identifies this row in the root's value. */
59
+ value: string;
60
+ isDisabled?: boolean;
61
+ children?: ReactNode | ((state: AccordionItemRenderState) => ReactNode);
62
+ };
63
+ type AccordionItemProps = AccordionItemOwnProps & Omit<ViewProps, keyof AccordionItemOwnProps> & Omit<ViewStyleProps, keyof AccordionItemOwnProps | keyof ViewProps>;
64
+ /** What an item's render function is handed, so a row can paint its own open state. */
65
+ type AccordionItemRenderState = {
66
+ isExpanded: boolean;
67
+ isDisabled: boolean;
68
+ value: string;
69
+ };
70
+ type AccordionTriggerOwnProps = {
71
+ children?: ReactNode;
72
+ asChild?: boolean;
73
+ };
74
+ type AccordionTriggerProps = AccordionTriggerOwnProps & Omit<PressableProps, keyof AccordionTriggerOwnProps> & Omit<ViewStyleProps, keyof AccordionTriggerOwnProps | keyof PressableProps>;
75
+ /** The chevron, turning with the panel. */
76
+ type AccordionIndicatorProps = {
77
+ /** The glyph. Defaults to the chevron the library ships. */
78
+ as?: ComponentType<IconComponentProps>;
79
+ size?: number;
80
+ /** A raw value (R7), never a token. */
81
+ color?: string;
82
+ };
83
+ type AccordionContentOwnProps = {
84
+ children?: ReactNode;
85
+ };
86
+ type AccordionContentProps = AccordionContentOwnProps & Omit<ViewProps, keyof AccordionContentOwnProps> & Omit<ViewStyleProps, keyof AccordionContentOwnProps | keyof ViewProps>;
87
+ /** R5 — resolved style ids and the state the slots read. No slot re-resolves anything. */
88
+ type AccordionContextValue = {
89
+ separatorStyle: StyleProp<ViewStyle>;
90
+ itemStyle: StyleProp<ViewStyle>;
91
+ triggerStyle: StyleProp<ViewStyle>;
92
+ triggerPressedStyle: StyleProp<ViewStyle>;
93
+ indicatorStyle: StyleProp<ViewStyle>;
94
+ contentStyle: StyleProp<ViewStyle>;
95
+ /** Text colour for a stringifiable trigger child, wrapped the way R3 asks. */
96
+ labelStyle: StyleProp<TextStyle>;
97
+ glyph: IconContextValue;
98
+ isDisabled: boolean;
99
+ isExpanded: (value: string) => boolean;
100
+ toggle: (value: string) => void;
101
+ };
102
+ /** One row's own state. Everything visual still comes from `useAccordion()`. */
103
+ type AccordionItemContextValue = {
104
+ value: string;
105
+ isExpanded: boolean;
106
+ isDisabled: boolean;
107
+ };
108
+
109
+ /**
110
+ * The chevron, turning with the panel.
111
+ *
112
+ * The same spring as the `Select`'s, for the same reason: a 180-degree turn on a timing
113
+ * curve reads as an animation playing beside the row, and on a spring heavy enough not to
114
+ * overshoot it reads as the panel pushing the glyph round. It is a worklet, so it keeps
115
+ * turning while the panel's content mounts.
116
+ */
117
+ declare function AccordionIndicator({ as, ...props }: AccordionIndicatorProps): react.JSX.Element;
118
+ declare namespace AccordionIndicator {
119
+ var displayName: string;
120
+ }
121
+
122
+ /**
123
+ * A list of rows that open.
124
+ *
125
+ * ```tsx
126
+ * <Accordion defaultValue="shipping">
127
+ * <Accordion.Item value="shipping">
128
+ * <Accordion.Trigger>
129
+ * Livraison
130
+ * <Accordion.Indicator />
131
+ * </Accordion.Trigger>
132
+ * <Accordion.Content>
133
+ * <Text>Sous trois jours ouvrés.</Text>
134
+ * </Accordion.Content>
135
+ * </Accordion.Item>
136
+ * </Accordion>
137
+ * ```
138
+ *
139
+ * The separators are the root's, drawn between the children rather than by them. A row
140
+ * that drew its own would draw one under the last item too, and every accordion would
141
+ * start by hiding it.
142
+ */
143
+ declare const AccordionRoot: react.ForwardRefExoticComponent<{
144
+ children?: react.ReactNode;
145
+ variant?: AccordionVariant;
146
+ size?: AccordionSize;
147
+ radius?: RadiusKey;
148
+ color?: string;
149
+ selectionMode?: AccordionSelectionMode;
150
+ value?: AccordionValue;
151
+ defaultValue?: AccordionValue;
152
+ onValueChange?: (value: AccordionValue) => void;
153
+ isDisabled?: boolean;
154
+ isCollapsible?: boolean;
155
+ hasSeparator?: boolean;
156
+ asChild?: boolean;
157
+ } & Omit<react_native.ViewProps, keyof {
158
+ children?: react.ReactNode;
159
+ variant?: AccordionVariant;
160
+ size?: AccordionSize;
161
+ radius?: RadiusKey;
162
+ color?: string;
163
+ selectionMode?: AccordionSelectionMode;
164
+ value?: AccordionValue;
165
+ defaultValue?: AccordionValue;
166
+ onValueChange?: (value: AccordionValue) => void;
167
+ isDisabled?: boolean;
168
+ isCollapsible?: boolean;
169
+ hasSeparator?: boolean;
170
+ asChild?: boolean;
171
+ }> & Omit<ViewStyleProps, "color" | "value" | "pointerEvents" | "style" | "children" | "size" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "variant" | "radius" | "selectionMode" | "defaultValue" | "onValueChange" | "isDisabled" | "isCollapsible" | "hasSeparator" | "asChild"> & react.RefAttributes<View>>;
172
+
173
+ /**
174
+ * The panel.
175
+ *
176
+ * **It is mounted or it is not** — there is no measured height anywhere in this component,
177
+ * and no `maxHeight` either. The row's layout transition animates the height between the
178
+ * two states, which is what lets a panel whose content grows afterwards — an image
179
+ * loading, a list filling — grow with it instead of being stuck at whatever it measured.
180
+ *
181
+ * It fades rather than sliding. The height is already moving underneath it, and two
182
+ * things travelling at once reads as the panel fighting itself.
183
+ */
184
+ declare const AccordionContent: react.ForwardRefExoticComponent<{
185
+ children?: react.ReactNode;
186
+ } & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<View>>;
187
+
188
+ /**
189
+ * One row: its trigger, and the panel under it.
190
+ *
191
+ * The height animation lives here rather than on the content, because the height that
192
+ * changes is the row's. `overflow: 'hidden'` on it is what turns a mounted panel into one
193
+ * unrolling — without it the content is drawn outside the row from the first frame.
194
+ *
195
+ * `children` may be a function, which is how a row paints its own open state without the
196
+ * caller wiring `useAccordionItem` themselves.
197
+ */
198
+ declare const AccordionItem: react.ForwardRefExoticComponent<{
199
+ value: string;
200
+ isDisabled?: boolean;
201
+ children?: react.ReactNode | ((state: AccordionItemRenderState) => react.ReactNode);
202
+ } & Omit<react_native.ViewProps, keyof {
203
+ value: string;
204
+ isDisabled?: boolean;
205
+ children?: react.ReactNode | ((state: AccordionItemRenderState) => react.ReactNode);
206
+ }> & Omit<ViewStyleProps, "value" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "isDisabled"> & react.RefAttributes<View>>;
207
+
208
+ /**
209
+ * The row you press. It carries `expanded` for a screen reader, which is the only thing
210
+ * telling one whether the panel under it is open — the chevron says nothing out loud.
211
+ */
212
+ declare const AccordionTrigger: react.ForwardRefExoticComponent<{
213
+ children?: ReactNode;
214
+ asChild?: boolean;
215
+ } & Omit<react_native.PressableProps, keyof {
216
+ children?: ReactNode;
217
+ asChild?: boolean;
218
+ }> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
219
+
220
+ declare const useAccordion: () => AccordionContextValue;
221
+ declare const useAccordionItem: () => AccordionItemContextValue;
222
+
223
+ declare const accordionRecipe: Recipe<"separator" | "root" | "container" | "item" | "trigger" | "indicator" | "content", AccordionVariant, {
224
+ readonly size: {
225
+ readonly xs: (theme: XAUITheme) => SlotStyles<AccordionSlot>;
226
+ readonly sm: (theme: XAUITheme) => SlotStyles<AccordionSlot>;
227
+ readonly md: (theme: XAUITheme) => SlotStyles<AccordionSlot>;
228
+ readonly lg: (theme: XAUITheme) => SlotStyles<AccordionSlot>;
229
+ };
230
+ readonly radius: Record<RadiusKey, StyleFn<"root" | "container">>;
231
+ }>;
232
+
233
+ /**
234
+ * How the panel opens.
235
+ *
236
+ * There is no measured height anywhere in this component: the content is mounted or it is
237
+ * not, and Reanimated's layout transition animates the row's height between the two.
238
+ * Measuring it ourselves would mean a hidden pass on every open, and a panel whose
239
+ * content grows afterwards — an image loading, a list filling — would be stuck at the
240
+ * height it had when it was measured.
241
+ *
242
+ * HeroUI's spring, and stiffer than the chevron's: 1600 against 1000. A height is a
243
+ * bigger distance than a rotation, and at the chevron's stiffness the same damping makes
244
+ * a long panel take almost half a second to settle.
245
+ */
246
+ declare const LAYOUT: react_native_reanimated.ComplexAnimationBuilder;
247
+
248
+ declare const Accordion: react.ForwardRefExoticComponent<{
249
+ children?: react.ReactNode;
250
+ variant?: AccordionVariant;
251
+ size?: AccordionSize;
252
+ radius?: RadiusKey;
253
+ color?: string;
254
+ selectionMode?: AccordionSelectionMode;
255
+ value?: AccordionValue;
256
+ defaultValue?: AccordionValue;
257
+ onValueChange?: (value: AccordionValue) => void;
258
+ isDisabled?: boolean;
259
+ isCollapsible?: boolean;
260
+ hasSeparator?: boolean;
261
+ asChild?: boolean;
262
+ } & Omit<react_native.ViewProps, keyof {
263
+ children?: react.ReactNode;
264
+ variant?: AccordionVariant;
265
+ size?: AccordionSize;
266
+ radius?: RadiusKey;
267
+ color?: string;
268
+ selectionMode?: AccordionSelectionMode;
269
+ value?: AccordionValue;
270
+ defaultValue?: AccordionValue;
271
+ onValueChange?: (value: AccordionValue) => void;
272
+ isDisabled?: boolean;
273
+ isCollapsible?: boolean;
274
+ hasSeparator?: boolean;
275
+ asChild?: boolean;
276
+ }> & Omit<ViewStyleProps, "color" | "value" | "pointerEvents" | "style" | "children" | "size" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "variant" | "radius" | "selectionMode" | "defaultValue" | "onValueChange" | "isDisabled" | "isCollapsible" | "hasSeparator" | "asChild"> & react.RefAttributes<react_native.View>> & {
277
+ Item: react.ForwardRefExoticComponent<{
278
+ value: string;
279
+ isDisabled?: boolean;
280
+ children?: react.ReactNode | ((state: AccordionItemRenderState) => react.ReactNode);
281
+ } & Omit<react_native.ViewProps, keyof {
282
+ value: string;
283
+ isDisabled?: boolean;
284
+ children?: react.ReactNode | ((state: AccordionItemRenderState) => react.ReactNode);
285
+ }> & Omit<ViewStyleProps, "value" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "isDisabled"> & react.RefAttributes<react_native.View>>;
286
+ Trigger: react.ForwardRefExoticComponent<{
287
+ children?: react.ReactNode;
288
+ asChild?: boolean;
289
+ } & Omit<react_native.PressableProps, keyof {
290
+ children?: react.ReactNode;
291
+ asChild?: boolean;
292
+ }> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "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" | "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" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
293
+ Indicator: typeof AccordionIndicator;
294
+ Content: react.ForwardRefExoticComponent<{
295
+ children?: react.ReactNode;
296
+ } & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<react_native.View>>;
297
+ };
298
+
299
+ export { Accordion, AccordionContent, type AccordionContentProps, type AccordionContextValue, AccordionIndicator, type AccordionIndicatorProps, AccordionItem, type AccordionItemContextValue, type AccordionItemProps, type AccordionItemRenderState, type AccordionProps, AccordionRoot, type AccordionSelectionMode, type AccordionSize, type AccordionSlot, AccordionTrigger, type AccordionTriggerProps, type AccordionValue, type AccordionVariant, LAYOUT as accordionLayoutTransition, accordionRecipe, useAccordion, useAccordionItem };