@xaui/native 0.9.1-alpha.30 → 0.9.1-alpha.31
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.
- package/dist/{chunk-6RVCGLKZ.js → chunk-42FMGB5M.js} +57 -57
- package/dist/chunk-AETWQQWU.cjs +92 -0
- package/dist/{chunk-ZSLNGBDS.cjs → chunk-JDFV4W6N.cjs} +57 -57
- package/dist/chunk-ZH5XVNHG.js +92 -0
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.d.cts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.cjs +4 -4
- package/dist/components/button/index.d.cts +167 -167
- package/dist/components/button/index.d.ts +167 -167
- package/dist/components/button/index.js +3 -3
- package/dist/components/card/index.d.cts +169 -169
- package/dist/components/card/index.d.ts +169 -169
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.d.cts +336 -336
- package/dist/components/checkbox/index.d.ts +336 -336
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/index.cjs +3 -3
- package/dist/components/chip/index.d.cts +168 -168
- package/dist/components/chip/index.d.ts +168 -168
- package/dist/components/chip/index.js +2 -2
- package/dist/components/divider/index.cjs +13 -0
- package/dist/components/divider/index.d.cts +117 -0
- package/dist/components/divider/index.d.ts +117 -0
- package/dist/components/divider/index.js +13 -0
- package/dist/components/input/index.d.cts +3 -3
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input-group/index.d.cts +6 -6
- package/dist/components/input-group/index.d.ts +6 -6
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.ts +1 -1
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.d.cts +336 -336
- package/dist/components/radio/index.d.ts +336 -336
- package/dist/components/radio/index.js +2 -2
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.d.cts +338 -338
- package/dist/components/switch/index.d.ts +338 -338
- package/dist/components/switch/index.js +2 -2
- package/dist/components/typography/index.d.cts +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/view/index.d.cts +6 -6
- package/dist/components/view/index.d.ts +6 -6
- package/dist/index.cjs +31 -25
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -25
- package/dist/system/index.cjs +1 -1
- package/dist/system/index.d.cts +2 -2
- package/dist/system/index.d.ts +2 -2
- package/dist/system/index.js +1 -1
- package/package.json +11 -1
- package/dist/{chunk-NBFWWQFW.cjs → chunk-5PTBRJM7.cjs} +3 -3
- package/dist/{chunk-UBQLKIZC.cjs → chunk-ANNUYP55.cjs} +2 -2
- package/dist/{chunk-27ZRTZEE.js → chunk-IHOCANCQ.js} +3 -3
- package/dist/{chunk-E4TS6632.cjs → chunk-L7JN6OBQ.cjs} +2 -2
- package/dist/{chunk-GI24YJPE.js → chunk-MDVSCWJI.js} +3 -3
- package/dist/{chunk-YKL6XHM6.js → chunk-RDTKAAHX.js} +3 -3
- package/dist/{chunk-FMZQW35T.js → chunk-ZH6BHLQR.js} +3 -3
- package/dist/{chunk-KWCHSIMI.cjs → chunk-ZVWXM3UK.cjs} +3 -3
|
@@ -164,26 +164,179 @@ declare const Chip: react.ForwardRefExoticComponent<{
|
|
|
164
164
|
style?: react_native.StyleProp<react_native.ViewStyle> | ((state: react_native.PressableStateCallbackType) => react_native.StyleProp<react_native.ViewStyle>);
|
|
165
165
|
children?: react.ReactNode;
|
|
166
166
|
} & {
|
|
167
|
+
hitSlop?: number | react_native.Insets | null | undefined;
|
|
168
|
+
id?: string | undefined | undefined;
|
|
169
|
+
needsOffscreenAlphaCompositing?: boolean | undefined | undefined;
|
|
170
|
+
onLayout?: ((event: react_native.LayoutChangeEvent) => void) | undefined | undefined;
|
|
171
|
+
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined | undefined;
|
|
172
|
+
removeClippedSubviews?: boolean | undefined | undefined;
|
|
173
|
+
testID?: string | undefined | undefined;
|
|
174
|
+
nativeID?: string | undefined | undefined;
|
|
175
|
+
collapsable?: boolean | undefined | undefined;
|
|
176
|
+
collapsableChildren?: boolean | undefined | undefined;
|
|
177
|
+
onBlur?: null | ((event: react_native.NativeSyntheticEvent<react_native.TargetedEvent>) => void) | undefined | undefined;
|
|
178
|
+
onFocus?: null | ((event: react_native.NativeSyntheticEvent<react_native.TargetedEvent>) => void) | undefined | undefined;
|
|
179
|
+
renderToHardwareTextureAndroid?: boolean | undefined | undefined;
|
|
180
|
+
focusable?: boolean | undefined | undefined;
|
|
181
|
+
tabIndex?: 0 | -1 | undefined | undefined;
|
|
182
|
+
shouldRasterizeIOS?: boolean | undefined | undefined;
|
|
183
|
+
isTVSelectable?: boolean | undefined | undefined;
|
|
184
|
+
hasTVPreferredFocus?: boolean | undefined | undefined;
|
|
185
|
+
tvParallaxShiftDistanceX?: number | undefined | undefined;
|
|
186
|
+
tvParallaxShiftDistanceY?: number | undefined | undefined;
|
|
187
|
+
tvParallaxTiltAngle?: number | undefined | undefined;
|
|
188
|
+
tvParallaxMagnification?: number | undefined | undefined;
|
|
189
|
+
onStartShouldSetResponder?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
190
|
+
onMoveShouldSetResponder?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
191
|
+
onResponderEnd?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
192
|
+
onResponderGrant?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
193
|
+
onResponderReject?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
194
|
+
onResponderMove?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
195
|
+
onResponderRelease?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
196
|
+
onResponderStart?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
197
|
+
onResponderTerminationRequest?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
198
|
+
onResponderTerminate?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
199
|
+
onStartShouldSetResponderCapture?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
200
|
+
onMoveShouldSetResponderCapture?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
201
|
+
onTouchStart?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
202
|
+
onTouchMove?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
203
|
+
onTouchEnd?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
204
|
+
onTouchCancel?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
205
|
+
onTouchEndCapture?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
206
|
+
onPointerEnter?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
207
|
+
onPointerEnterCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
208
|
+
onPointerLeave?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
209
|
+
onPointerLeaveCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
210
|
+
onPointerMove?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
211
|
+
onPointerMoveCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
212
|
+
onPointerCancel?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
213
|
+
onPointerCancelCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
214
|
+
onPointerDown?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
215
|
+
onPointerDownCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
216
|
+
onPointerUp?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
217
|
+
onPointerUpCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
218
|
+
accessible?: boolean | undefined | undefined;
|
|
219
|
+
accessibilityActions?: readonly Readonly<{
|
|
220
|
+
name: react_native.AccessibilityActionName | string;
|
|
221
|
+
label?: string | undefined;
|
|
222
|
+
}>[] | undefined;
|
|
223
|
+
accessibilityLabel?: string | undefined | undefined;
|
|
224
|
+
'aria-label'?: string | undefined | undefined;
|
|
225
|
+
accessibilityRole?: react_native.AccessibilityRole | undefined;
|
|
226
|
+
accessibilityState?: react_native.AccessibilityState | undefined;
|
|
227
|
+
'aria-busy'?: boolean | undefined | undefined;
|
|
228
|
+
'aria-checked'?: boolean | "mixed" | undefined | undefined;
|
|
229
|
+
'aria-disabled'?: boolean | undefined | undefined;
|
|
230
|
+
'aria-expanded'?: boolean | undefined | undefined;
|
|
231
|
+
'aria-selected'?: boolean | undefined | undefined;
|
|
232
|
+
accessibilityHint?: string | undefined | undefined;
|
|
233
|
+
accessibilityValue?: react_native.AccessibilityValue | undefined;
|
|
234
|
+
'aria-valuemax'?: number | undefined;
|
|
235
|
+
'aria-valuemin'?: number | undefined;
|
|
236
|
+
'aria-valuenow'?: number | undefined;
|
|
237
|
+
'aria-valuetext'?: string | undefined;
|
|
238
|
+
onAccessibilityAction?: ((event: react_native.AccessibilityActionEvent) => void) | undefined | undefined;
|
|
239
|
+
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined | undefined;
|
|
240
|
+
'aria-hidden'?: boolean | undefined | undefined;
|
|
241
|
+
'aria-modal'?: boolean | undefined | undefined;
|
|
242
|
+
role?: react_native.Role | undefined;
|
|
243
|
+
accessibilityLabelledBy?: string | string[] | undefined | undefined;
|
|
244
|
+
'aria-labelledby'?: string | undefined | undefined;
|
|
245
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined | undefined;
|
|
246
|
+
'aria-live'?: ("polite" | "assertive" | "off") | undefined | undefined;
|
|
247
|
+
screenReaderFocusable?: boolean | undefined | undefined;
|
|
248
|
+
accessibilityElementsHidden?: boolean | undefined | undefined;
|
|
249
|
+
accessibilityViewIsModal?: boolean | undefined | undefined;
|
|
250
|
+
onAccessibilityEscape?: (() => void) | undefined | undefined;
|
|
251
|
+
onAccessibilityTap?: (() => void) | undefined | undefined;
|
|
252
|
+
onMagicTap?: (() => void) | undefined | undefined;
|
|
253
|
+
accessibilityIgnoresInvertColors?: boolean | undefined | undefined;
|
|
254
|
+
accessibilityLanguage?: string | undefined | undefined;
|
|
255
|
+
accessibilityShowsLargeContentViewer?: boolean | undefined | undefined;
|
|
256
|
+
accessibilityLargeContentTitle?: string | undefined | undefined;
|
|
257
|
+
accessibilityRespondsToUserInteraction?: boolean | undefined | undefined;
|
|
258
|
+
backfaceVisibility?: "visible" | "hidden" | undefined | undefined;
|
|
259
|
+
backgroundColor?: react_native.ColorValue | undefined;
|
|
260
|
+
borderBlockColor?: react_native.ColorValue | undefined;
|
|
261
|
+
borderBlockEndColor?: react_native.ColorValue | undefined;
|
|
262
|
+
borderBlockStartColor?: react_native.ColorValue | undefined;
|
|
263
|
+
borderBottomColor?: react_native.ColorValue | undefined;
|
|
264
|
+
borderBottomEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
265
|
+
borderBottomStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
266
|
+
borderColor?: react_native.ColorValue | undefined;
|
|
267
|
+
borderCurve?: "circular" | "continuous" | undefined | undefined;
|
|
268
|
+
borderEndColor?: react_native.ColorValue | undefined;
|
|
269
|
+
borderEndEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
270
|
+
borderEndStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
271
|
+
borderRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
272
|
+
borderStartColor?: react_native.ColorValue | undefined;
|
|
273
|
+
borderStartEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
274
|
+
borderStartStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
275
|
+
borderStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
|
|
276
|
+
borderTopColor?: react_native.ColorValue | undefined;
|
|
277
|
+
borderTopEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
278
|
+
borderTopStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
279
|
+
outlineColor?: react_native.ColorValue | undefined;
|
|
280
|
+
outlineOffset?: react_native.AnimatableNumericValue | undefined;
|
|
281
|
+
outlineStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
|
|
282
|
+
outlineWidth?: react_native.AnimatableNumericValue | undefined;
|
|
283
|
+
opacity?: react_native.AnimatableNumericValue | undefined;
|
|
284
|
+
elevation?: number | undefined | undefined;
|
|
285
|
+
isolation?: "auto" | "isolate" | undefined | undefined;
|
|
286
|
+
cursor?: react_native.CursorValue | undefined;
|
|
287
|
+
boxShadow?: string | readonly react_native.BoxShadowValue[] | undefined;
|
|
288
|
+
filter?: string | readonly react_native.FilterFunction[] | undefined;
|
|
289
|
+
mixBlendMode?: react_native.BlendMode | undefined;
|
|
290
|
+
experimental_backgroundImage?: string | readonly react_native.GradientValue[] | undefined;
|
|
167
291
|
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined | undefined;
|
|
168
292
|
alignItems?: react_native.FlexAlignType | undefined;
|
|
169
293
|
alignSelf?: "auto" | react_native.FlexAlignType | undefined;
|
|
170
294
|
aspectRatio?: number | string | undefined | undefined;
|
|
295
|
+
borderBottomWidth?: number | undefined | undefined;
|
|
296
|
+
borderEndWidth?: number | undefined | undefined;
|
|
297
|
+
borderStartWidth?: number | undefined | undefined;
|
|
298
|
+
borderTopWidth?: number | undefined | undefined;
|
|
299
|
+
borderWidth?: number | undefined | undefined;
|
|
300
|
+
bottom?: react_native.DimensionValue | undefined;
|
|
171
301
|
boxSizing?: "border-box" | "content-box" | undefined | undefined;
|
|
172
|
-
columnGap?: number | string | undefined | undefined;
|
|
173
|
-
direction?: "inherit" | "ltr" | "rtl" | undefined | undefined;
|
|
174
302
|
display?: "none" | "flex" | "contents" | undefined | undefined;
|
|
303
|
+
end?: react_native.DimensionValue | undefined;
|
|
175
304
|
flex?: number | undefined | undefined;
|
|
176
305
|
flexBasis?: react_native.DimensionValue | undefined;
|
|
177
306
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined | undefined;
|
|
307
|
+
rowGap?: number | string | undefined | undefined;
|
|
308
|
+
gap?: number | string | undefined | undefined;
|
|
309
|
+
columnGap?: number | string | undefined | undefined;
|
|
178
310
|
flexGrow?: number | undefined | undefined;
|
|
179
311
|
flexShrink?: number | undefined | undefined;
|
|
180
312
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined | undefined;
|
|
181
|
-
|
|
313
|
+
height?: react_native.DimensionValue | undefined;
|
|
182
314
|
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined | undefined;
|
|
315
|
+
margin?: react_native.DimensionValue | undefined;
|
|
316
|
+
marginBottom?: react_native.DimensionValue | undefined;
|
|
317
|
+
marginEnd?: react_native.DimensionValue | undefined;
|
|
318
|
+
marginHorizontal?: react_native.DimensionValue | undefined;
|
|
319
|
+
marginStart?: react_native.DimensionValue | undefined;
|
|
320
|
+
marginTop?: react_native.DimensionValue | undefined;
|
|
321
|
+
marginVertical?: react_native.DimensionValue | undefined;
|
|
322
|
+
maxHeight?: react_native.DimensionValue | undefined;
|
|
323
|
+
maxWidth?: react_native.DimensionValue | undefined;
|
|
324
|
+
minHeight?: react_native.DimensionValue | undefined;
|
|
325
|
+
minWidth?: react_native.DimensionValue | undefined;
|
|
183
326
|
overflow?: "visible" | "hidden" | "scroll" | undefined | undefined;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
327
|
+
padding?: react_native.DimensionValue | undefined;
|
|
328
|
+
paddingBottom?: react_native.DimensionValue | undefined;
|
|
329
|
+
paddingEnd?: react_native.DimensionValue | undefined;
|
|
330
|
+
paddingHorizontal?: react_native.DimensionValue | undefined;
|
|
331
|
+
paddingStart?: react_native.DimensionValue | undefined;
|
|
332
|
+
paddingTop?: react_native.DimensionValue | undefined;
|
|
333
|
+
paddingVertical?: react_native.DimensionValue | undefined;
|
|
334
|
+
position?: "absolute" | "relative" | "static" | undefined | undefined;
|
|
335
|
+
start?: react_native.DimensionValue | undefined;
|
|
336
|
+
top?: react_native.DimensionValue | undefined;
|
|
337
|
+
width?: react_native.DimensionValue | undefined;
|
|
338
|
+
zIndex?: number | undefined | undefined;
|
|
339
|
+
direction?: "inherit" | "ltr" | "rtl" | undefined | undefined;
|
|
187
340
|
inset?: react_native.DimensionValue | undefined;
|
|
188
341
|
insetBlock?: react_native.DimensionValue | undefined;
|
|
189
342
|
insetBlockEnd?: react_native.DimensionValue | undefined;
|
|
@@ -191,80 +344,18 @@ declare const Chip: react.ForwardRefExoticComponent<{
|
|
|
191
344
|
insetInline?: react_native.DimensionValue | undefined;
|
|
192
345
|
insetInlineEnd?: react_native.DimensionValue | undefined;
|
|
193
346
|
insetInlineStart?: react_native.DimensionValue | undefined;
|
|
194
|
-
position?: "absolute" | "relative" | "static" | undefined | undefined;
|
|
195
|
-
start?: react_native.DimensionValue | undefined;
|
|
196
|
-
top?: react_native.DimensionValue | undefined;
|
|
197
|
-
zIndex?: number | undefined | undefined;
|
|
198
|
-
margin?: react_native.DimensionValue | undefined;
|
|
199
347
|
marginBlock?: react_native.DimensionValue | undefined;
|
|
200
348
|
marginBlockEnd?: react_native.DimensionValue | undefined;
|
|
201
349
|
marginBlockStart?: react_native.DimensionValue | undefined;
|
|
202
|
-
marginBottom?: react_native.DimensionValue | undefined;
|
|
203
|
-
marginEnd?: react_native.DimensionValue | undefined;
|
|
204
|
-
marginHorizontal?: react_native.DimensionValue | undefined;
|
|
205
350
|
marginInline?: react_native.DimensionValue | undefined;
|
|
206
351
|
marginInlineEnd?: react_native.DimensionValue | undefined;
|
|
207
352
|
marginInlineStart?: react_native.DimensionValue | undefined;
|
|
208
|
-
marginStart?: react_native.DimensionValue | undefined;
|
|
209
|
-
marginTop?: react_native.DimensionValue | undefined;
|
|
210
|
-
marginVertical?: react_native.DimensionValue | undefined;
|
|
211
|
-
padding?: react_native.DimensionValue | undefined;
|
|
212
353
|
paddingBlock?: react_native.DimensionValue | undefined;
|
|
213
354
|
paddingBlockEnd?: react_native.DimensionValue | undefined;
|
|
214
355
|
paddingBlockStart?: react_native.DimensionValue | undefined;
|
|
215
|
-
paddingBottom?: react_native.DimensionValue | undefined;
|
|
216
|
-
paddingEnd?: react_native.DimensionValue | undefined;
|
|
217
|
-
paddingHorizontal?: react_native.DimensionValue | undefined;
|
|
218
356
|
paddingInline?: react_native.DimensionValue | undefined;
|
|
219
357
|
paddingInlineEnd?: react_native.DimensionValue | undefined;
|
|
220
358
|
paddingInlineStart?: react_native.DimensionValue | undefined;
|
|
221
|
-
paddingStart?: react_native.DimensionValue | undefined;
|
|
222
|
-
paddingTop?: react_native.DimensionValue | undefined;
|
|
223
|
-
paddingVertical?: react_native.DimensionValue | undefined;
|
|
224
|
-
height?: react_native.DimensionValue | undefined;
|
|
225
|
-
maxHeight?: react_native.DimensionValue | undefined;
|
|
226
|
-
maxWidth?: react_native.DimensionValue | undefined;
|
|
227
|
-
minHeight?: react_native.DimensionValue | undefined;
|
|
228
|
-
minWidth?: react_native.DimensionValue | undefined;
|
|
229
|
-
width?: react_native.DimensionValue | undefined;
|
|
230
|
-
borderBlockColor?: react_native.ColorValue | undefined;
|
|
231
|
-
borderBlockEndColor?: react_native.ColorValue | undefined;
|
|
232
|
-
borderBlockStartColor?: react_native.ColorValue | undefined;
|
|
233
|
-
borderBottomColor?: react_native.ColorValue | undefined;
|
|
234
|
-
borderBottomEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
235
|
-
borderBottomStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
236
|
-
borderBottomWidth?: number | undefined | undefined;
|
|
237
|
-
borderColor?: react_native.ColorValue | undefined;
|
|
238
|
-
borderCurve?: "circular" | "continuous" | undefined | undefined;
|
|
239
|
-
borderEndColor?: react_native.ColorValue | undefined;
|
|
240
|
-
borderEndEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
241
|
-
borderEndStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
242
|
-
borderEndWidth?: number | undefined | undefined;
|
|
243
|
-
borderRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
244
|
-
borderStartColor?: react_native.ColorValue | undefined;
|
|
245
|
-
borderStartEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
246
|
-
borderStartStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
247
|
-
borderStartWidth?: number | undefined | undefined;
|
|
248
|
-
borderStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
|
|
249
|
-
borderTopColor?: react_native.ColorValue | undefined;
|
|
250
|
-
borderTopEndRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
251
|
-
borderTopStartRadius?: string | react_native.AnimatableNumericValue | undefined;
|
|
252
|
-
borderTopWidth?: number | undefined | undefined;
|
|
253
|
-
borderWidth?: number | undefined | undefined;
|
|
254
|
-
backfaceVisibility?: "visible" | "hidden" | undefined | undefined;
|
|
255
|
-
backgroundColor?: react_native.ColorValue | undefined;
|
|
256
|
-
boxShadow?: string | readonly react_native.BoxShadowValue[] | undefined;
|
|
257
|
-
cursor?: react_native.CursorValue | undefined;
|
|
258
|
-
elevation?: number | undefined | undefined;
|
|
259
|
-
experimental_backgroundImage?: string | readonly react_native.GradientValue[] | undefined;
|
|
260
|
-
filter?: string | readonly react_native.FilterFunction[] | undefined;
|
|
261
|
-
isolation?: "auto" | "isolate" | undefined | undefined;
|
|
262
|
-
mixBlendMode?: react_native.BlendMode | undefined;
|
|
263
|
-
opacity?: react_native.AnimatableNumericValue | undefined;
|
|
264
|
-
outlineColor?: react_native.ColorValue | undefined;
|
|
265
|
-
outlineOffset?: react_native.AnimatableNumericValue | undefined;
|
|
266
|
-
outlineStyle?: "solid" | "dotted" | "dashed" | undefined | undefined;
|
|
267
|
-
outlineWidth?: react_native.AnimatableNumericValue | undefined;
|
|
268
359
|
shadowColor?: react_native.ColorValue | undefined;
|
|
269
360
|
shadowOffset?: Readonly<{
|
|
270
361
|
width: number;
|
|
@@ -272,9 +363,6 @@ declare const Chip: react.ForwardRefExoticComponent<{
|
|
|
272
363
|
}> | undefined;
|
|
273
364
|
shadowOpacity?: react_native.AnimatableNumericValue | undefined;
|
|
274
365
|
shadowRadius?: number | undefined | undefined;
|
|
275
|
-
rotation?: react_native.AnimatableNumericValue | undefined;
|
|
276
|
-
scaleX?: react_native.AnimatableNumericValue | undefined;
|
|
277
|
-
scaleY?: react_native.AnimatableNumericValue | undefined;
|
|
278
366
|
transform?: string | readonly (({
|
|
279
367
|
scaleX: react_native.AnimatableNumericValue;
|
|
280
368
|
} & {
|
|
@@ -471,117 +559,29 @@ declare const Chip: react.ForwardRefExoticComponent<{
|
|
|
471
559
|
skewX?: undefined;
|
|
472
560
|
skewY?: undefined;
|
|
473
561
|
}))[] | undefined;
|
|
474
|
-
transformMatrix?: number[] | undefined;
|
|
475
562
|
transformOrigin?: string | (string | number)[] | undefined;
|
|
563
|
+
transformMatrix?: number[] | undefined;
|
|
564
|
+
rotation?: react_native.AnimatableNumericValue | undefined;
|
|
565
|
+
scaleX?: react_native.AnimatableNumericValue | undefined;
|
|
566
|
+
scaleY?: react_native.AnimatableNumericValue | undefined;
|
|
476
567
|
translateX?: react_native.AnimatableNumericValue | undefined;
|
|
477
568
|
translateY?: react_native.AnimatableNumericValue | undefined;
|
|
478
|
-
|
|
479
|
-
hitSlop?: number | react_native.Insets | null | undefined;
|
|
480
|
-
id?: string | undefined | undefined;
|
|
481
|
-
needsOffscreenAlphaCompositing?: boolean | undefined | undefined;
|
|
482
|
-
onLayout?: ((event: react_native.LayoutChangeEvent) => void) | undefined | undefined;
|
|
483
|
-
removeClippedSubviews?: boolean | undefined | undefined;
|
|
484
|
-
testID?: string | undefined | undefined;
|
|
485
|
-
nativeID?: string | undefined | undefined;
|
|
486
|
-
collapsable?: boolean | undefined | undefined;
|
|
487
|
-
collapsableChildren?: boolean | undefined | undefined;
|
|
488
|
-
onBlur?: null | ((event: react_native.NativeSyntheticEvent<react_native.TargetedEvent>) => void) | undefined | undefined;
|
|
489
|
-
onFocus?: null | ((event: react_native.NativeSyntheticEvent<react_native.TargetedEvent>) => void) | undefined | undefined;
|
|
490
|
-
renderToHardwareTextureAndroid?: boolean | undefined | undefined;
|
|
491
|
-
focusable?: boolean | undefined | undefined;
|
|
492
|
-
tabIndex?: 0 | -1 | undefined | undefined;
|
|
493
|
-
shouldRasterizeIOS?: boolean | undefined | undefined;
|
|
494
|
-
isTVSelectable?: boolean | undefined | undefined;
|
|
495
|
-
hasTVPreferredFocus?: boolean | undefined | undefined;
|
|
496
|
-
tvParallaxShiftDistanceX?: number | undefined | undefined;
|
|
497
|
-
tvParallaxShiftDistanceY?: number | undefined | undefined;
|
|
498
|
-
tvParallaxTiltAngle?: number | undefined | undefined;
|
|
499
|
-
tvParallaxMagnification?: number | undefined | undefined;
|
|
500
|
-
onStartShouldSetResponder?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
501
|
-
onMoveShouldSetResponder?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
502
|
-
onResponderEnd?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
503
|
-
onResponderGrant?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
504
|
-
onResponderReject?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
505
|
-
onResponderMove?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
506
|
-
onResponderRelease?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
507
|
-
onResponderStart?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
508
|
-
onResponderTerminationRequest?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
509
|
-
onResponderTerminate?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
510
|
-
onStartShouldSetResponderCapture?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
511
|
-
onMoveShouldSetResponderCapture?: ((event: react_native.GestureResponderEvent) => boolean) | undefined | undefined;
|
|
512
|
-
onTouchStart?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
513
|
-
onTouchMove?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
514
|
-
onTouchEnd?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
515
|
-
onTouchCancel?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
516
|
-
onTouchEndCapture?: ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
517
|
-
onPointerEnter?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
518
|
-
onPointerEnterCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
519
|
-
onPointerLeave?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
520
|
-
onPointerLeaveCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
521
|
-
onPointerMove?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
522
|
-
onPointerMoveCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
523
|
-
onPointerCancel?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
524
|
-
onPointerCancelCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
525
|
-
onPointerDown?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
526
|
-
onPointerDownCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
527
|
-
onPointerUp?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
528
|
-
onPointerUpCapture?: ((event: react_native.PointerEvent) => void) | undefined | undefined;
|
|
529
|
-
accessible?: boolean | undefined | undefined;
|
|
530
|
-
accessibilityActions?: readonly Readonly<{
|
|
531
|
-
name: react_native.AccessibilityActionName | string;
|
|
532
|
-
label?: string | undefined;
|
|
533
|
-
}>[] | undefined;
|
|
534
|
-
accessibilityLabel?: string | undefined | undefined;
|
|
535
|
-
'aria-label'?: string | undefined | undefined;
|
|
536
|
-
accessibilityRole?: react_native.AccessibilityRole | undefined;
|
|
537
|
-
accessibilityState?: react_native.AccessibilityState | undefined;
|
|
538
|
-
'aria-busy'?: boolean | undefined | undefined;
|
|
539
|
-
'aria-checked'?: boolean | "mixed" | undefined | undefined;
|
|
540
|
-
'aria-disabled'?: boolean | undefined | undefined;
|
|
541
|
-
'aria-expanded'?: boolean | undefined | undefined;
|
|
542
|
-
'aria-selected'?: boolean | undefined | undefined;
|
|
543
|
-
accessibilityHint?: string | undefined | undefined;
|
|
544
|
-
accessibilityValue?: react_native.AccessibilityValue | undefined;
|
|
545
|
-
'aria-valuemax'?: number | undefined;
|
|
546
|
-
'aria-valuemin'?: number | undefined;
|
|
547
|
-
'aria-valuenow'?: number | undefined;
|
|
548
|
-
'aria-valuetext'?: string | undefined;
|
|
549
|
-
onAccessibilityAction?: ((event: react_native.AccessibilityActionEvent) => void) | undefined | undefined;
|
|
550
|
-
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined | undefined;
|
|
551
|
-
'aria-hidden'?: boolean | undefined | undefined;
|
|
552
|
-
'aria-modal'?: boolean | undefined | undefined;
|
|
553
|
-
role?: react_native.Role | undefined;
|
|
554
|
-
accessibilityLabelledBy?: string | string[] | undefined | undefined;
|
|
555
|
-
'aria-labelledby'?: string | undefined | undefined;
|
|
556
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined | undefined;
|
|
557
|
-
'aria-live'?: ("polite" | "assertive" | "off") | undefined | undefined;
|
|
558
|
-
screenReaderFocusable?: boolean | undefined | undefined;
|
|
559
|
-
accessibilityElementsHidden?: boolean | undefined | undefined;
|
|
560
|
-
accessibilityViewIsModal?: boolean | undefined | undefined;
|
|
561
|
-
onAccessibilityEscape?: (() => void) | undefined | undefined;
|
|
562
|
-
onAccessibilityTap?: (() => void) | undefined | undefined;
|
|
563
|
-
onMagicTap?: (() => void) | undefined | undefined;
|
|
564
|
-
accessibilityIgnoresInvertColors?: boolean | undefined | undefined;
|
|
565
|
-
accessibilityLanguage?: string | undefined | undefined;
|
|
566
|
-
accessibilityShowsLargeContentViewer?: boolean | undefined | undefined;
|
|
567
|
-
accessibilityLargeContentTitle?: string | undefined | undefined;
|
|
568
|
-
accessibilityRespondsToUserInteraction?: boolean | undefined | undefined;
|
|
569
|
-
onHoverIn?: null | ((event: react_native.MouseEvent) => void) | undefined | undefined;
|
|
570
|
-
onHoverOut?: null | ((event: react_native.MouseEvent) => void) | undefined | undefined;
|
|
569
|
+
asChild?: boolean | undefined;
|
|
571
570
|
onPress?: null | ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
572
571
|
onPressIn?: null | ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
573
572
|
onPressOut?: null | ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
574
573
|
onLongPress?: null | ((event: react_native.GestureResponderEvent) => void) | undefined | undefined;
|
|
574
|
+
pressRetentionOffset?: number | react_native.Insets | null | undefined;
|
|
575
|
+
onHoverIn?: null | ((event: react_native.MouseEvent) => void) | undefined | undefined;
|
|
576
|
+
onHoverOut?: null | ((event: react_native.MouseEvent) => void) | undefined | undefined;
|
|
575
577
|
cancelable?: null | boolean | undefined | undefined;
|
|
576
578
|
delayHoverIn?: number | null | undefined | undefined;
|
|
577
579
|
delayHoverOut?: number | null | undefined | undefined;
|
|
578
580
|
delayLongPress?: null | number | undefined | undefined;
|
|
579
|
-
pressRetentionOffset?: number | react_native.Insets | null | undefined;
|
|
580
581
|
android_disableSound?: null | boolean | undefined | undefined;
|
|
581
582
|
android_ripple?: react_native.PressableAndroidRippleConfig | null | undefined;
|
|
582
583
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
583
584
|
unstable_pressDelay?: number | undefined | undefined;
|
|
584
|
-
asChild?: boolean | undefined;
|
|
585
585
|
animation?: AnimationProp | undefined;
|
|
586
586
|
} & Omit<ViewStyleProps, keyof {
|
|
587
587
|
variant?: ChipVariant;
|
|
@@ -601,7 +601,7 @@ declare const Chip: react.ForwardRefExoticComponent<{
|
|
|
601
601
|
Avatar: react.ForwardRefExoticComponent<{
|
|
602
602
|
source?: react_native.ImageSourcePropType;
|
|
603
603
|
children?: react.ReactNode;
|
|
604
|
-
} & react_native.ViewProps & Omit<ViewStyleProps, "
|
|
604
|
+
} & react_native.ViewProps & Omit<ViewStyleProps, "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "pointerEvents" | "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" | "source"> & react.RefAttributes<react_native.View>>;
|
|
605
605
|
Close: react.ForwardRefExoticComponent<ChipCloseProps & react.RefAttributes<react_native.View>>;
|
|
606
606
|
};
|
|
607
607
|
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
Chip,
|
|
3
3
|
chipRecipe,
|
|
4
4
|
useChip
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-ZH6BHLQR.js";
|
|
6
6
|
import "../../chunk-V4WDMM6Z.js";
|
|
7
7
|
import "../../chunk-BFMTUMTU.js";
|
|
8
8
|
import "../../chunk-423RQBOX.js";
|
|
9
|
-
import "../../chunk-3FV4COTM.js";
|
|
10
9
|
import "../../chunk-EGLLDKN6.js";
|
|
10
|
+
import "../../chunk-3FV4COTM.js";
|
|
11
11
|
import "../../chunk-4GTAZM2C.js";
|
|
12
12
|
import "../../chunk-A3EGFI6T.js";
|
|
13
13
|
import "../../chunk-E2CWBQTV.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkAETWQQWUcjs = require('../../chunk-AETWQQWU.cjs');
|
|
5
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
6
|
+
require('../../chunk-57SJ4LJF.cjs');
|
|
7
|
+
require('../../chunk-ZP2E2H2G.cjs');
|
|
8
|
+
require('../../chunk-GLGU2WFL.cjs');
|
|
9
|
+
require('../../chunk-MC7SY2QH.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.Divider = _chunkAETWQQWUcjs.Divider; exports.dividerRecipe = _chunkAETWQQWUcjs.dividerRecipe;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { ViewProps, StyleProp, ViewStyle, View } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
|
+
import { S as Size, X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
7
|
+
import { R as Recipe, S as SlotStyles } from '../../create-recipe-dC7wMfnj.cjs';
|
|
8
|
+
|
|
9
|
+
type DividerSlot = 'root';
|
|
10
|
+
type DividerOrientation = 'horizontal' | 'vertical';
|
|
11
|
+
type DividerSize = Size;
|
|
12
|
+
/**
|
|
13
|
+
* What the `Divider` itself understands. R14 — a name in here is the component's, so the
|
|
14
|
+
* style prop that shares it is not exposed: `size` is the divider's scale and never
|
|
15
|
+
* `ViewStyle`'s, and `color` is R7's tint.
|
|
16
|
+
*
|
|
17
|
+
* **No `variant`**, and it is the only component in the core without one. A variant is the
|
|
18
|
+
* design system's *vocabulary* (§1 bis) — a name that means the same thing across the
|
|
19
|
+
* library. On a rule there is nothing for that name to describe: no fill against a
|
|
20
|
+
* foreground, no border against a surface, no intent to report. It had three values naming
|
|
21
|
+
* the three separator tokens, which is a shade of grey wearing a word. `size` says how
|
|
22
|
+
* heavy the rule is and `color` says what colour it is, in React Native's own values —
|
|
23
|
+
* between them there is nothing a third name would add.
|
|
24
|
+
*/
|
|
25
|
+
type DividerOwnProps = {
|
|
26
|
+
/**
|
|
27
|
+
* Which way the rule runs. A horizontal one stretches across its parent and a vertical
|
|
28
|
+
* one stretches down it, so the axis a divider does *not* run along is the one it takes
|
|
29
|
+
* from whatever contains it.
|
|
30
|
+
*/
|
|
31
|
+
orientation?: DividerOrientation;
|
|
32
|
+
/**
|
|
33
|
+
* The thickness — height when horizontal, width when vertical. It is `size` and not
|
|
34
|
+
* `thickness` because that is the vocabulary word (§1 bis), and it is consistent with
|
|
35
|
+
* the rest of the library rather than in spite of it: "`size` drives height, never
|
|
36
|
+
* width" is exactly what this does, on the axis the orientation names.
|
|
37
|
+
*
|
|
38
|
+
* `xs` is the hairline and it is the default, unlike everywhere else in the library.
|
|
39
|
+
* A rule you notice is a rule that is too thick.
|
|
40
|
+
*/
|
|
41
|
+
size?: DividerSize;
|
|
42
|
+
/**
|
|
43
|
+
* A raw tint (`'#7c3aed'`), never a token (R7). There is one thing to colour on a rule,
|
|
44
|
+
* so it lands on the rule.
|
|
45
|
+
*/
|
|
46
|
+
color?: string;
|
|
47
|
+
/**
|
|
48
|
+
* R12 — the child element becomes the rule and keeps its resolved style. What it is
|
|
49
|
+
* for here is the animated one: an `Animated.View` that collapses a section takes the
|
|
50
|
+
* thickness and the colour from the recipe and the height from a shared value.
|
|
51
|
+
*/
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
style?: StyleProp<ViewStyle>;
|
|
54
|
+
/** Only meaningful under `asChild`, where it is the element that becomes the rule. */
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
type DividerProps = Omit<ViewProps, 'style'> & DividerOwnProps & Omit<ViewStyleProps, keyof DividerOwnProps | keyof ViewProps>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The line between two things.
|
|
61
|
+
*
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <Column gap={12}>
|
|
64
|
+
* <Row>…</Row>
|
|
65
|
+
* <Divider />
|
|
66
|
+
* <Row>…</Row>
|
|
67
|
+
* </Column>
|
|
68
|
+
*
|
|
69
|
+
* <Row gap={12}>
|
|
70
|
+
* <Typography>Brouillon</Typography>
|
|
71
|
+
* <Divider orientation="vertical" />
|
|
72
|
+
* <Typography>Il y a deux minutes</Typography>
|
|
73
|
+
* </Row>
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* **One node and no slots.** A rule is a filled box one point thick; there is nothing
|
|
77
|
+
* inside it. A divider with a word in the middle of it is a `Row` holding two of these
|
|
78
|
+
* and a `Typography`, which is the composition the library already has — inventing a
|
|
79
|
+
* `Divider.Label` would put a layout inside a line.
|
|
80
|
+
*
|
|
81
|
+
* **It takes the axis it does not run along from its parent.** `alignSelf: 'stretch'` is
|
|
82
|
+
* the whole mechanism: in a `Column` that is full width, in a `Row` it is full height, and
|
|
83
|
+
* on the axis the thickness fixes it is ignored. So a divider needs no width prop, and a
|
|
84
|
+
* horizontal one written inside a `Row` collapses on purpose rather than guessing.
|
|
85
|
+
*/
|
|
86
|
+
declare const Divider: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "style"> & {
|
|
87
|
+
orientation?: DividerOrientation;
|
|
88
|
+
size?: DividerSize;
|
|
89
|
+
color?: string;
|
|
90
|
+
asChild?: boolean;
|
|
91
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
92
|
+
children?: react.ReactNode;
|
|
93
|
+
} & Omit<ViewStyleProps, "size" | "color" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "pointerEvents" | "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" | "asChild" | "orientation"> & react.RefAttributes<View>>;
|
|
94
|
+
|
|
95
|
+
declare const dividerRecipe: Recipe<"root", "default", {
|
|
96
|
+
readonly size: {
|
|
97
|
+
readonly xs: (theme: XAUITheme) => SlotStyles<DividerSlot>;
|
|
98
|
+
readonly sm: (theme: XAUITheme) => SlotStyles<DividerSlot>;
|
|
99
|
+
readonly md: (theme: XAUITheme) => SlotStyles<DividerSlot>;
|
|
100
|
+
readonly lg: (theme: XAUITheme) => SlotStyles<DividerSlot>;
|
|
101
|
+
};
|
|
102
|
+
/** Second, so it releases the axis `size` had to write blind. */
|
|
103
|
+
readonly orientation: {
|
|
104
|
+
readonly horizontal: () => {
|
|
105
|
+
root: {
|
|
106
|
+
width: "auto";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly vertical: () => {
|
|
110
|
+
root: {
|
|
111
|
+
height: "auto";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}>;
|
|
116
|
+
|
|
117
|
+
export { Divider, type DividerOrientation, type DividerProps, type DividerSize, type DividerSlot, dividerRecipe };
|