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

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 (209) hide show
  1. package/dist/chunk-2EGR4LWD.js +145 -0
  2. package/dist/chunk-2NRZKJG7.js +531 -0
  3. package/dist/chunk-2PMXMKS5.js +67 -0
  4. package/dist/chunk-2XPG2243.js +586 -0
  5. package/dist/chunk-36PRYGAM.js +13 -0
  6. package/dist/chunk-3E7CDKFO.cjs +696 -0
  7. package/dist/chunk-3GFRSZYR.js +54 -0
  8. package/dist/chunk-423RQBOX.js +21 -0
  9. package/dist/chunk-4CUZZWFW.js +92 -0
  10. package/dist/chunk-4GTAZM2C.js +174 -0
  11. package/dist/chunk-4KFKWBN5.cjs +89 -0
  12. package/dist/{chunk-3QBT3Q65.cjs → chunk-57SJ4LJF.cjs} +7 -2
  13. package/dist/chunk-5R26NM4M.cjs +402 -0
  14. package/dist/chunk-5VKYNBNA.js +607 -0
  15. package/dist/chunk-64MXEVT3.js +66 -0
  16. package/dist/chunk-6DOLGZVV.cjs +147 -0
  17. package/dist/chunk-6L2TS2R3.cjs +92 -0
  18. package/dist/chunk-6UEZJRVI.js +669 -0
  19. package/dist/chunk-734MFAX4.js +27 -0
  20. package/dist/chunk-73RKQC5X.js +104 -0
  21. package/dist/chunk-7DPL3ZDS.cjs +21 -0
  22. package/dist/chunk-7EIHHOHP.cjs +42 -0
  23. package/dist/chunk-7GHM4GKL.cjs +119 -0
  24. package/dist/chunk-7YF5NAHQ.cjs +74 -0
  25. package/dist/{chunk-X2K2FX3W.js → chunk-A3EGFI6T.js} +6 -1
  26. package/dist/chunk-ABAGZTXZ.cjs +736 -0
  27. package/dist/{chunk-AW63PTQ4.cjs → chunk-ACAPTWE3.cjs} +85 -81
  28. package/dist/chunk-AMCSSOJT.cjs +104 -0
  29. package/dist/chunk-BA2DBSAN.js +102 -0
  30. package/dist/chunk-BRRXFOBY.js +431 -0
  31. package/dist/chunk-C5YLPCFC.cjs +293 -0
  32. package/dist/chunk-DA3OKXHV.cjs +700 -0
  33. package/dist/chunk-DD4276RF.js +366 -0
  34. package/dist/chunk-DG2I4PJG.js +701 -0
  35. package/dist/chunk-DHGLGSH6.js +661 -0
  36. package/dist/chunk-DIBUQ46Y.js +346 -0
  37. package/dist/chunk-EGLLDKN6.js +9 -0
  38. package/dist/chunk-EJQCQPET.cjs +9 -0
  39. package/dist/chunk-EKS3W46M.cjs +66 -0
  40. package/dist/chunk-EZEYMLO3.js +402 -0
  41. package/dist/chunk-F6CQ6CBI.cjs +112 -0
  42. package/dist/chunk-F6W3JQ7K.js +42 -0
  43. package/dist/chunk-FHUYHV6J.js +89 -0
  44. package/dist/chunk-FNEUOBCV.cjs +174 -0
  45. package/dist/chunk-G3CCT4EY.js +518 -0
  46. package/dist/chunk-G7P3ERYF.cjs +478 -0
  47. package/dist/chunk-GA6PBWNT.js +147 -0
  48. package/dist/chunk-GFUZ3MUT.cjs +455 -0
  49. package/dist/chunk-GGW43Q37.cjs +1 -0
  50. package/dist/chunk-GTR5X65M.cjs +27 -0
  51. package/dist/chunk-H4E4HDEP.cjs +13 -0
  52. package/dist/chunk-H7DS4IO7.js +198 -0
  53. package/dist/chunk-HDVVZG4S.cjs +198 -0
  54. package/dist/chunk-IKJVLJKT.js +151 -0
  55. package/dist/chunk-J3MB4PI5.cjs +531 -0
  56. package/dist/chunk-K72UDPVN.js +119 -0
  57. package/dist/chunk-KCMYU7WF.js +86 -0
  58. package/dist/chunk-LRN3RNDO.js +940 -0
  59. package/dist/chunk-LTX6TB5I.js +124 -0
  60. package/dist/chunk-LUPCPLND.cjs +145 -0
  61. package/dist/chunk-M63GFNKV.js +194 -0
  62. package/dist/chunk-N3KTZMPG.js +293 -0
  63. package/dist/chunk-NCTOTTVW.js +13 -0
  64. package/dist/chunk-NWGLP6JX.cjs +410 -0
  65. package/dist/chunk-R73XQK7X.cjs +314 -0
  66. package/dist/chunk-RU7JCMWC.cjs +881 -0
  67. package/dist/chunk-SNIHUKDA.cjs +184 -0
  68. package/dist/chunk-T5FV5F7A.cjs +607 -0
  69. package/dist/chunk-TDTUAIFF.cjs +153 -0
  70. package/dist/chunk-TJ74XVZN.cjs +431 -0
  71. package/dist/chunk-TK44VBIE.cjs +194 -0
  72. package/dist/chunk-UAWBAD4E.cjs +346 -0
  73. package/dist/chunk-UFTCTTKK.js +381 -0
  74. package/dist/chunk-VLKBESEV.cjs +407 -0
  75. package/dist/chunk-WDDXU3OH.cjs +67 -0
  76. package/dist/chunk-WFEMJCXO.cjs +13 -0
  77. package/dist/chunk-WHJTBTYM.js +0 -0
  78. package/dist/{chunk-2KXQATVL.js → chunk-WKCQ6VGW.js} +59 -55
  79. package/dist/chunk-XFPQFCEK.js +455 -0
  80. package/dist/chunk-XSQPVDFH.cjs +60 -0
  81. package/dist/chunk-XTC2SLFT.js +153 -0
  82. package/dist/chunk-XV735BSA.cjs +366 -0
  83. package/dist/chunk-XWNG2U4K.cjs +124 -0
  84. package/dist/chunk-YGYYJ3LQ.js +314 -0
  85. package/dist/chunk-YVHT2UVW.js +74 -0
  86. package/dist/chunk-ZFOOJK37.cjs +86 -0
  87. package/dist/close-button.type-BUYuoSt2.d.ts +36 -0
  88. package/dist/close-button.type-CHsgZ3wO.d.cts +36 -0
  89. package/dist/components/accordion/index.cjs +35 -0
  90. package/dist/components/accordion/index.d.cts +299 -0
  91. package/dist/components/accordion/index.d.ts +299 -0
  92. package/dist/components/accordion/index.js +35 -0
  93. package/dist/components/alert/index.cjs +20 -0
  94. package/dist/components/alert/index.d.cts +169 -0
  95. package/dist/components/alert/index.d.ts +169 -0
  96. package/dist/components/alert/index.js +20 -0
  97. package/dist/components/avatar/index.cjs +16 -0
  98. package/dist/components/avatar/index.d.cts +131 -0
  99. package/dist/components/avatar/index.d.ts +131 -0
  100. package/dist/components/avatar/index.js +16 -0
  101. package/dist/components/badge/index.cjs +15 -0
  102. package/dist/components/badge/index.d.cts +157 -0
  103. package/dist/components/badge/index.d.ts +157 -0
  104. package/dist/components/badge/index.js +15 -0
  105. package/dist/components/button/index.cjs +22 -0
  106. package/dist/components/button/index.d.cts +613 -0
  107. package/dist/components/button/index.d.ts +613 -0
  108. package/dist/components/button/index.js +22 -0
  109. package/dist/components/card/index.cjs +22 -0
  110. package/dist/components/card/index.d.cts +620 -0
  111. package/dist/components/card/index.d.ts +620 -0
  112. package/dist/components/card/index.js +22 -0
  113. package/dist/components/checkbox/index.cjs +26 -0
  114. package/dist/components/checkbox/index.d.cts +1136 -0
  115. package/dist/components/checkbox/index.d.ts +1136 -0
  116. package/dist/components/checkbox/index.js +26 -0
  117. package/dist/components/chip/index.cjs +20 -0
  118. package/dist/components/chip/index.d.cts +608 -0
  119. package/dist/components/chip/index.d.ts +608 -0
  120. package/dist/components/chip/index.js +20 -0
  121. package/dist/components/divider/index.cjs +13 -0
  122. package/dist/components/divider/index.d.cts +117 -0
  123. package/dist/components/divider/index.d.ts +117 -0
  124. package/dist/components/divider/index.js +13 -0
  125. package/dist/components/field-group/index.cjs +27 -0
  126. package/dist/components/field-group/index.d.cts +270 -0
  127. package/dist/components/field-group/index.d.ts +270 -0
  128. package/dist/components/field-group/index.js +27 -0
  129. package/dist/components/input-otp/index.cjs +29 -0
  130. package/dist/components/input-otp/index.d.cts +325 -0
  131. package/dist/components/input-otp/index.d.ts +325 -0
  132. package/dist/components/input-otp/index.js +29 -0
  133. package/dist/components/menu/index.cjs +49 -0
  134. package/dist/components/menu/index.d.cts +351 -0
  135. package/dist/components/menu/index.d.ts +351 -0
  136. package/dist/components/menu/index.js +49 -0
  137. package/dist/components/popover/index.cjs +38 -0
  138. package/dist/components/popover/index.d.cts +254 -0
  139. package/dist/components/popover/index.d.ts +254 -0
  140. package/dist/components/popover/index.js +38 -0
  141. package/dist/components/radio/index.cjs +26 -0
  142. package/dist/components/radio/index.d.cts +1102 -0
  143. package/dist/components/radio/index.d.ts +1102 -0
  144. package/dist/components/radio/index.js +26 -0
  145. package/dist/components/select/index.cjs +50 -0
  146. package/dist/components/select/index.d.cts +498 -0
  147. package/dist/components/select/index.d.ts +498 -0
  148. package/dist/components/select/index.js +50 -0
  149. package/dist/components/skeleton/index.cjs +11 -0
  150. package/dist/components/skeleton/index.d.cts +111 -0
  151. package/dist/components/skeleton/index.d.ts +111 -0
  152. package/dist/components/skeleton/index.js +11 -0
  153. package/dist/components/spinner/index.cjs +17 -0
  154. package/dist/components/spinner/index.d.cts +104 -0
  155. package/dist/components/spinner/index.d.ts +104 -0
  156. package/dist/components/spinner/index.js +17 -0
  157. package/dist/components/switch/index.cjs +27 -0
  158. package/dist/components/switch/index.d.cts +1154 -0
  159. package/dist/components/switch/index.d.ts +1154 -0
  160. package/dist/components/switch/index.js +27 -0
  161. package/dist/components/tabs/index.cjs +33 -0
  162. package/dist/components/tabs/index.d.cts +261 -0
  163. package/dist/components/tabs/index.d.ts +261 -0
  164. package/dist/components/tabs/index.js +33 -0
  165. package/dist/components/text-area/index.cjs +14 -0
  166. package/dist/components/text-area/index.d.cts +73 -0
  167. package/dist/components/text-area/index.d.ts +73 -0
  168. package/dist/components/text-area/index.js +14 -0
  169. package/dist/components/text-field/index.cjs +25 -0
  170. package/dist/components/text-field/index.d.cts +205 -0
  171. package/dist/components/text-field/index.d.ts +205 -0
  172. package/dist/components/text-field/index.js +25 -0
  173. package/dist/components/typography/index.cjs +15 -0
  174. package/dist/components/typography/index.d.cts +116 -0
  175. package/dist/components/typography/index.d.ts +116 -0
  176. package/dist/components/typography/index.js +15 -0
  177. package/dist/components/view/index.cjs +17 -0
  178. package/dist/components/view/index.d.cts +152 -0
  179. package/dist/components/view/index.d.ts +152 -0
  180. package/dist/components/view/index.js +17 -0
  181. package/dist/create-recipe-BdVd2ffi.d.ts +114 -0
  182. package/dist/create-recipe-dC7wMfnj.d.cts +114 -0
  183. package/dist/icon.type-Kml72iSz.d.ts +73 -0
  184. package/dist/icon.type-d_i9ma-i.d.cts +73 -0
  185. package/dist/index.cjs +423 -5
  186. package/dist/index.d.cts +119 -4
  187. package/dist/index.d.ts +119 -4
  188. package/dist/index.js +445 -27
  189. package/dist/placement-DHa0Rrh1.d.cts +38 -0
  190. package/dist/placement-DHa0Rrh1.d.ts +38 -0
  191. package/dist/pressable-feedback.type-BA2C9sSz.d.cts +127 -0
  192. package/dist/pressable-feedback.type-Bs4dQlGj.d.ts +127 -0
  193. package/dist/style-props.type-CfnoGEP7.d.cts +31 -0
  194. package/dist/style-props.type-CfnoGEP7.d.ts +31 -0
  195. package/dist/system/index.cjs +73 -4
  196. package/dist/system/index.d.cts +379 -193
  197. package/dist/system/index.d.ts +379 -193
  198. package/dist/system/index.js +87 -18
  199. package/dist/text-field.type-0l73acce.d.ts +167 -0
  200. package/dist/text-field.type-DBh06DU5.d.cts +167 -0
  201. package/dist/theme/index.cjs +5 -3
  202. package/dist/theme/index.d.cts +55 -24
  203. package/dist/theme/index.d.ts +55 -24
  204. package/dist/theme/index.js +4 -2
  205. package/dist/{theme.type-C9bFJKFm.d.cts → theme.type-C2gNHpEx.d.cts} +1 -1
  206. package/dist/{theme.type-C9bFJKFm.d.ts → theme.type-C2gNHpEx.d.ts} +1 -1
  207. package/package.json +264 -18
  208. package/dist/chunk-ECDWSSHJ.js +0 -688
  209. package/dist/chunk-IYFGO523.cjs +0 -688
package/dist/index.d.ts CHANGED
@@ -1,6 +1,121 @@
1
- export { AnimationConfig, AnimationProp, AsChildProps, Axes, CompoundVariant, FeedbackContext, FeedbackVariant, HIGHLIGHT_OPACITY, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PossibleRef, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackProps, PressableFeedbackRippleProps, RELEASE_DURATION, RIPPLE_COVERAGE, RIPPLE_DURATION, RIPPLE_OPACITY, Recipe, RecipeConfig, ResolveArgs, ResolvedAnimation, ResolvedSelection, ResolvedStyles, Selection, Slot, SlotAnimation, SlotProps, SlotStyle, SlotStyles, StateName, States, StyleFn, TintArgs, VariantColors, VariantRole, VariantTokens, childrenToString, createRecipe, createSlotContext, mergeProps, mergeRefs, resolveAnimation, resolveSlotAnimation, useFeedback } from './system/index.js';
1
+ export { Accordion, AccordionContent, AccordionContentProps, AccordionContextValue, AccordionIndicator, AccordionIndicatorProps, AccordionItem, AccordionItemContextValue, AccordionItemProps, AccordionItemRenderState, AccordionProps, AccordionRoot, AccordionSelectionMode, AccordionSize, AccordionSlot, AccordionTrigger, AccordionTriggerProps, AccordionValue, AccordionVariant, accordionLayoutTransition, accordionRecipe, useAccordion, useAccordionItem } from './components/accordion/index.js';
2
+ export { Alert, AlertCloseProps, AlertContentProps, AlertContextValue, AlertDescriptionProps, AlertIconProps, AlertProps, AlertSize, AlertSlot, AlertTitleProps, AlertVariant, alertRecipe, useAlert } from './components/alert/index.js';
3
+ export { Avatar, AvatarContextValue, AvatarFallbackProps, AvatarImageProps, AvatarInitialsProps, AvatarProps, AvatarSize, AvatarSlot, AvatarVariant, avatarRecipe, useAvatar } from './components/avatar/index.js';
4
+ export { Badge, BadgePlacement, BadgeProps, BadgeSize, BadgeSlot, BadgeVariant, badgeRecipe, placementInsets } from './components/badge/index.js';
5
+ export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonProps, ButtonSize, ButtonSlot, ButtonSpinnerProps, ButtonVariant, buttonRecipe, useButton } from './components/button/index.js';
6
+ export { CARD_BACKGROUND, Card, CardBackgroundProps, CardBodyProps, CardContextValue, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSlot, CardTitleProps, CardVariant, cardRecipe, markBackground, useCard } from './components/card/index.js';
7
+ export { Checkbox, CheckboxContextValue, CheckboxIndicator, CheckboxIndicatorProps, CheckboxLabel, CheckboxLabelProps, CheckboxProps, CheckboxRoot, CheckboxSize, CheckboxSlot, CheckboxVariant, checkboxRecipe, useCheckbox } from './components/checkbox/index.js';
8
+ export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps, ChipIconProps, ChipLabelProps, ChipProps, ChipSize, ChipSlot, ChipVariant, chipRecipe, useChip } from './components/chip/index.js';
9
+ export { Divider, DividerOrientation, DividerProps, DividerSize, DividerSlot, dividerRecipe } from './components/divider/index.js';
10
+ export { TextField, TextFieldDescription, TextFieldError, TextFieldField, TextFieldLabel, TextFieldRoot, textFieldRecipe, useTextField } from './components/text-field/index.js';
11
+ export { FieldGroup, FieldGroupContextValue, FieldGroupField, FieldGroupFieldProps, FieldGroupIcon, FieldGroupIconProps, FieldGroupPrefix, FieldGroupPrefixProps, FieldGroupProps, FieldGroupRoot, FieldGroupSide, FieldGroupSuffix, FieldGroupSuffixProps, decoratorPadding, useFieldGroup } from './components/field-group/index.js';
12
+ export { InputOTP, InputOTPBoxContextValue, InputOTPBoxProps, InputOTPCaretProps, InputOTPContextValue, InputOTPGroupProps, InputOTPHandle, InputOTPPattern, InputOTPPlaceholderProps, InputOTPProps, InputOTPRenderState, InputOTPSeparatorProps, InputOTPSize, InputOTPSlot, InputOTPValueProps, InputOTPVariant, OTPSlotState, OTP_ALPHANUMERIC, OTP_DIGITS, OTP_LETTERS, buildSlots, extractPastedCode, inputOTPRecipe, useInputOTP, useInputOTPBox } from './components/input-otp/index.js';
13
+ export { Menu, MenuAlign, MenuAnchor, MenuContent, MenuContentProps, MenuContextValue, MenuGroup, MenuGroupProps, MenuInsets, MenuItem, MenuItemContextValue, MenuItemDescription, MenuItemDescriptionProps, MenuItemIndicator, MenuItemIndicatorProps, MenuItemProps, MenuItemRenderState, MenuItemTitle, MenuItemTitleProps, MenuItemVariant, MenuLabel, MenuLabelProps, MenuOverlay, MenuOverlayProps, MenuPlacement, MenuProps, MenuRoot, MenuSeparator, MenuSeparatorProps, MenuSlot, MenuTrigger, MenuTriggerProps, MenuWidth, menuRecipe, useMenu, useMenuItem } from './components/menu/index.js';
14
+ export { Popover, PopoverAlign, PopoverAnchor, PopoverClose, PopoverCloseProps, PopoverContent, PopoverContentProps, PopoverContextValue, PopoverDescription, PopoverDescriptionProps, PopoverInsets, PopoverOverlay, PopoverOverlayProps, PopoverPlacement, PopoverProps, PopoverRoot, PopoverSlot, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps, PopoverWidth, popoverRecipe, usePopover } from './components/popover/index.js';
15
+ export { Radio, RadioContextValue, RadioIndicator, RadioIndicatorProps, RadioLabel, RadioLabelProps, RadioProps, RadioRoot, RadioSize, RadioSlot, RadioVariant, radioRecipe, useRadio } from './components/radio/index.js';
16
+ export { CheckIcon, Select, SelectAlign, SelectAnchor, SelectContent, SelectContentProps, SelectContextValue, SelectIndicator, SelectIndicatorProps, SelectInsets, SelectItem, SelectItemContextValue, SelectItemDescription, SelectItemDescriptionProps, SelectItemIndicator, SelectItemIndicatorProps, SelectItemLabel, SelectItemLabelProps, SelectItemProps, SelectItemRenderState, SelectLabel, SelectLabelProps, SelectOverlay, SelectOverlayProps, SelectPlacement, SelectProps, SelectRoot, SelectSize, SelectSlot, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, SelectVariant, SelectWidth, selectRecipe, useSelect, useSelectItem } from './components/select/index.js';
17
+ export { Skeleton, SkeletonProps, SkeletonSlot, skeletonRecipe } from './components/skeleton/index.js';
18
+ export { Spinner, SpinnerProps, SpinnerSize, SpinnerSlot, SpinnerVariant, spinnerRecipe } from './components/spinner/index.js';
19
+ export { Switch, SwitchContextValue, SwitchLabel, SwitchLabelProps, SwitchProps, SwitchRoot, SwitchSize, SwitchSlot, SwitchThumb, SwitchThumbProps, SwitchTrack, SwitchTrackProps, SwitchVariant, switchRecipe, useSwitch } from './components/switch/index.js';
20
+ export { TabRect, Tabs, TabsContent, TabsContentProps, TabsContextValue, TabsIndicator, TabsIndicatorProps, TabsLabel, TabsLabelProps, TabsList, TabsListProps, TabsProps, TabsRoot, TabsSize, TabsSlot, TabsTrigger, TabsTriggerContextValue, TabsTriggerProps, TabsTriggerRenderState, TabsVariant, tabsRecipe, useTabs, useTabsTrigger } from './components/tabs/index.js';
21
+ export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
22
+ export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
23
+ export { AxisProps, Column, ColumnProps, Grid, GridContextValue, GridItemProps, GridProps, Row, RowProps, Stack, StackItemProps, StackProps, useGrid } from './components/view/index.js';
24
+ import { RefCallback } from 'react';
25
+ import { PossibleRef } from './system/index.js';
26
+ export { AsChildProps, ChevronDownIcon, CloseButton, CloseButtonSlots, FEEDBACK_OVERLAY, HIGHLIGHT_DURATION, HIGHLIGHT_OPACITY, INDICATOR_ROTATION, INDICATOR_SPRING, Icon, IconContext, MergeableProps, PRESS_DURATION, PRESS_SCALE, Portal, PortalContext, PortalHost, PortalHostProps, PortalMethods, PortalProps, PressableFeedback, PressableFeedbackHighlightProps, PressableFeedbackRippleProps, RIPPLE_CONFIRM_DURATION, RIPPLE_EXPAND_DURATION, RIPPLE_FADE_IN, RIPPLE_FADE_OUT, RIPPLE_FADE_OUT_DELAY, RIPPLE_OPACITY, RIPPLE_START_SCALE, SCALE_REFERENCE_WIDTH, SelectionFill, SelectionFillProps, Slot, SlotProps, anchoredEntering, anchoredExiting, childrenToString, closeButtonBase, createSlotContext, markOverlay, mergeProps, mergeRefs, overlayEntering, overlayExiting, pressScaleFor, radiusAxis, resolveAnimation, resolveSlotAnimation, rippleRadiusFor, useFeedback, useIconContext, useStyleProps } from './system/index.js';
27
+ import { GestureResponderEvent, ViewStyle } from 'react-native';
28
+ export { C as CloseButtonProps } from './close-button.type-BUYuoSt2.js';
29
+ export { b as IconComponentProps, I as IconContextValue, a as IconProps } from './icon.type-Kml72iSz.js';
30
+ export { A as Axes, C as CompoundVariant, R as Recipe, d as RecipeConfig, b as ResolveArgs, e as ResolvedSelection, f as ResolvedStyles, g as Selection, h as SlotStyle, S as SlotStyles, i as StateName, j as States, a as StyleFn, T as TintArgs, V as VariantColors, k as VariantRole, l as VariantTokens, c as createRecipe } from './create-recipe-BdVd2ffi.js';
31
+ export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.js';
2
32
  export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.js';
3
- export { C as ColorMode, F as FontSizeKey, a as FontWeightKey, R as RadiusKey, S as Size, X as XAUIColors, b as XAUIDerivedColors, c as XAUIPrimitiveColors, d as XAUIRadius, e as XAUIShadow, f as XAUISourceColors, g as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C9bFJKFm.js';
4
- import 'react';
5
- import 'react-native';
33
+ export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.js';
34
+ export { b as TextFieldContextValue, c as TextFieldDescriptionProps, d as TextFieldErrorProps, T as TextFieldFieldProps, e as TextFieldLabelPlacement, f as TextFieldLabelProps, a as TextFieldProps, g as TextFieldSize, h as TextFieldSlot, i as TextFieldVariant } from './text-field.type-0l73acce.js';
35
+ export { A as AnimationConfig, a as AnimationProp, F as FeedbackContext, P as PressableFeedbackProps, R as RadiusStyle, b as ResolvedAnimation, c as RippleWave, S as SlotAnimation } from './pressable-feedback.type-Bs4dQlGj.js';
6
36
  import 'react-native-reanimated';
37
+ import './placement-DHa0Rrh1.js';
38
+
39
+ type ControllableStateOptions<T> = {
40
+ /** Present means controlled: the caller owns the value and this never stores one. */
41
+ value?: T;
42
+ /** The starting value when uncontrolled. */
43
+ defaultValue: T;
44
+ /** Called with every new value, controlled or not. */
45
+ onChange?: (value: T) => void;
46
+ };
47
+ /**
48
+ * One state that works both ways, so a component never has two code paths for "the
49
+ * caller drives this" and "we do".
50
+ *
51
+ * The setter is stable across renders and reads the current value from a ref, so a
52
+ * handler built on it can be passed to a memoized child without rebuilding it on every
53
+ * render — which is the whole reason components reach for this rather than a local
54
+ * `useState` plus an `if`.
55
+ */
56
+ declare function useControllableState<T>({ value, defaultValue, onChange, }: ControllableStateOptions<T>): [T, (next: T | ((current: T) => T)) => void];
57
+
58
+ /**
59
+ * `mergeRefs` for a component that renders: memoized on the refs it was given, so React
60
+ * does not detach and reattach every one of them on each render — which it does whenever
61
+ * a ref callback changes identity, and which costs a node measurement every time.
62
+ */
63
+ declare function useMergedRef<T>(...refs: Array<PossibleRef<T>>): RefCallback<T>;
64
+
65
+ /**
66
+ * `null` as much as `undefined`: that is how `PressableProps` types its handlers, and a
67
+ * root forwarding what it was given should not have to launder them first.
68
+ */
69
+ type PressHandlers = {
70
+ onPressIn?: PressHandler | null;
71
+ onPressOut?: PressHandler | null;
72
+ };
73
+ type PressHandler = (event: GestureResponderEvent) => void;
74
+ /**
75
+ * The press state a root owns, with the handlers that maintain it.
76
+ *
77
+ * It exists because every pressable component needs the same three things and gets one
78
+ * of them wrong on its own: the state has to be *up here* — the recipe resolves on it
79
+ * (R5) — the caller's handlers must be **composed, never replaced**, and the returned
80
+ * handlers must keep their identity so passing them down does not defeat a memo.
81
+ *
82
+ * ```tsx
83
+ * const [isPressed, pressHandlers] = usePressState(props)
84
+ * const styles = recipe.resolve({ theme, selection, states: { pressed: isPressed } })
85
+ * <PressableFeedback isPressed={isPressed} {...pressHandlers} />
86
+ * ```
87
+ */
88
+ declare function usePressState(handlers?: PressHandlers): [boolean, {
89
+ onPressIn: PressHandler;
90
+ onPressOut: PressHandler;
91
+ }];
92
+
93
+ /**
94
+ * The value from the render before this one, `undefined` on the first.
95
+ *
96
+ * Written in an effect rather than during render on purpose: reading it mid-render would
97
+ * make "previous" mean something different depending on whether React re-ran the render,
98
+ * which under StrictMode it does.
99
+ */
100
+ declare function usePrevious<T>(value: T): T | undefined;
101
+
102
+ /**
103
+ * One turn. Slow enough to read as waiting, fast enough not to read as stuck — HeroUI
104
+ * arrives at the same figure from the other side, a 1000ms turn played at 1.1×.
105
+ *
106
+ * It is a constant rather than a parameter because the library turns at one speed: two
107
+ * spinners on one screen at two rates is a bug, and the only way to be sure of that is
108
+ * for there to be one number.
109
+ */
110
+ declare const ROTATION_DURATION = 900;
111
+ /**
112
+ * A full turn, repeating, on the UI thread. Returns the animated style to merge onto the
113
+ * node that spins.
114
+ *
115
+ * **A caller that must animate nothing does not call it.** Hooks cannot be conditional,
116
+ * so "no animation" is only true if this one is never reached — which is why both call
117
+ * sites render two components rather than branch inside one.
118
+ */
119
+ declare function useRotation(): ViewStyle;
120
+
121
+ export { type ControllableStateOptions, PossibleRef, type PressHandlers, ROTATION_DURATION, useControllableState, useMergedRef, usePressState, usePrevious, useRotation };
package/dist/index.js CHANGED
@@ -1,25 +1,4 @@
1
- import {
2
- HIGHLIGHT_OPACITY,
3
- PRESS_DURATION,
4
- PRESS_SCALE,
5
- Portal,
6
- PortalContext,
7
- PortalHost,
8
- PressableFeedback,
9
- RELEASE_DURATION,
10
- RIPPLE_COVERAGE,
11
- RIPPLE_DURATION,
12
- RIPPLE_OPACITY,
13
- Slot,
14
- childrenToString,
15
- createRecipe,
16
- createSlotContext,
17
- mergeProps,
18
- mergeRefs,
19
- resolveAnimation,
20
- resolveSlotAnimation,
21
- useFeedback
22
- } from "./chunk-ECDWSSHJ.js";
1
+ import "./chunk-WHJTBTYM.js";
23
2
  import {
24
3
  XAUIProvider,
25
4
  buildRadius,
@@ -31,48 +10,487 @@ import {
31
10
  primitives,
32
11
  sourceKeys,
33
12
  tokens
34
- } from "./chunk-2KXQATVL.js";
13
+ } from "./chunk-WKCQ6VGW.js";
14
+ import {
15
+ Skeleton,
16
+ skeletonRecipe
17
+ } from "./chunk-IKJVLJKT.js";
18
+ import {
19
+ Spinner,
20
+ spinnerRecipe
21
+ } from "./chunk-LTX6TB5I.js";
22
+ import {
23
+ Switch,
24
+ SwitchLabel,
25
+ SwitchRoot,
26
+ SwitchThumb,
27
+ SwitchTrack,
28
+ switchRecipe,
29
+ useSwitch
30
+ } from "./chunk-DHGLGSH6.js";
31
+ import {
32
+ Tabs,
33
+ TabsContent,
34
+ TabsIndicator,
35
+ TabsLabel,
36
+ TabsList,
37
+ TabsRoot,
38
+ TabsTrigger,
39
+ tabsRecipe,
40
+ useTabs,
41
+ useTabsTrigger
42
+ } from "./chunk-G3CCT4EY.js";
43
+ import {
44
+ TextArea,
45
+ useTextArea
46
+ } from "./chunk-YVHT2UVW.js";
47
+ import {
48
+ TextSpan,
49
+ Typography,
50
+ typographyRecipe
51
+ } from "./chunk-73RKQC5X.js";
52
+ import {
53
+ Column,
54
+ Grid,
55
+ Row,
56
+ Stack,
57
+ useGrid
58
+ } from "./chunk-XTC2SLFT.js";
59
+ import {
60
+ Chip,
61
+ chipRecipe,
62
+ useChip
63
+ } from "./chunk-BRRXFOBY.js";
64
+ import {
65
+ Divider,
66
+ dividerRecipe
67
+ } from "./chunk-4CUZZWFW.js";
68
+ import {
69
+ FieldGroup,
70
+ FieldGroupField,
71
+ FieldGroupIcon,
72
+ FieldGroupPrefix,
73
+ FieldGroupRoot,
74
+ FieldGroupSuffix,
75
+ decoratorPadding,
76
+ useFieldGroup
77
+ } from "./chunk-GA6PBWNT.js";
78
+ import {
79
+ TextField,
80
+ TextFieldDescription,
81
+ TextFieldError,
82
+ TextFieldField,
83
+ TextFieldLabel,
84
+ TextFieldRoot,
85
+ textFieldRecipe,
86
+ useTextField
87
+ } from "./chunk-2NRZKJG7.js";
88
+ import {
89
+ InputOTP,
90
+ OTP_ALPHANUMERIC,
91
+ OTP_DIGITS,
92
+ OTP_LETTERS,
93
+ buildSlots,
94
+ extractPastedCode,
95
+ inputOTPRecipe,
96
+ useInputOTP,
97
+ useInputOTPBox
98
+ } from "./chunk-DG2I4PJG.js";
99
+ import {
100
+ Menu,
101
+ Menu2,
102
+ MenuContent,
103
+ MenuGroup,
104
+ MenuItem,
105
+ MenuItemDescription,
106
+ MenuItemIndicator,
107
+ MenuItemTitle,
108
+ MenuLabel,
109
+ MenuOverlay,
110
+ MenuSeparator,
111
+ MenuTrigger,
112
+ menuRecipe,
113
+ useMenu,
114
+ useMenuItem
115
+ } from "./chunk-5VKYNBNA.js";
116
+ import {
117
+ Popover,
118
+ Popover2,
119
+ PopoverClose,
120
+ PopoverContent,
121
+ PopoverDescription,
122
+ PopoverOverlay,
123
+ PopoverTitle,
124
+ PopoverTrigger,
125
+ popoverRecipe,
126
+ usePopover
127
+ } from "./chunk-EZEYMLO3.js";
128
+ import "./chunk-734MFAX4.js";
129
+ import {
130
+ Radio,
131
+ RadioIndicator,
132
+ RadioLabel,
133
+ RadioRoot,
134
+ radioRecipe,
135
+ useRadio
136
+ } from "./chunk-N3KTZMPG.js";
137
+ import {
138
+ CheckIcon,
139
+ Select,
140
+ Select2,
141
+ SelectContent,
142
+ SelectIndicator,
143
+ SelectItem,
144
+ SelectItemDescription,
145
+ SelectItemIndicator,
146
+ SelectItemLabel,
147
+ SelectLabel,
148
+ SelectOverlay,
149
+ SelectTrigger,
150
+ SelectValue,
151
+ selectRecipe,
152
+ useSelect,
153
+ useSelectItem
154
+ } from "./chunk-LRN3RNDO.js";
155
+ import "./chunk-2EGR4LWD.js";
156
+ import {
157
+ Portal,
158
+ PortalContext,
159
+ PortalHost
160
+ } from "./chunk-2PMXMKS5.js";
161
+ import {
162
+ Accordion,
163
+ AccordionContent,
164
+ AccordionIndicator,
165
+ AccordionItem,
166
+ AccordionRoot,
167
+ AccordionTrigger,
168
+ LAYOUT,
169
+ accordionRecipe,
170
+ useAccordion,
171
+ useAccordionItem
172
+ } from "./chunk-2XPG2243.js";
173
+ import {
174
+ INDICATOR_ROTATION,
175
+ INDICATOR_SPRING,
176
+ anchoredEntering,
177
+ anchoredExiting,
178
+ overlayEntering,
179
+ overlayExiting
180
+ } from "./chunk-64MXEVT3.js";
181
+ import {
182
+ Alert,
183
+ alertRecipe,
184
+ useAlert
185
+ } from "./chunk-DD4276RF.js";
186
+ import {
187
+ CloseButton,
188
+ closeButtonBase
189
+ } from "./chunk-KCMYU7WF.js";
190
+ import {
191
+ Avatar,
192
+ avatarRecipe,
193
+ useAvatar
194
+ } from "./chunk-UFTCTTKK.js";
195
+ import {
196
+ Badge,
197
+ badgeRecipe,
198
+ placementInsets
199
+ } from "./chunk-H7DS4IO7.js";
200
+ import {
201
+ Button,
202
+ buttonRecipe,
203
+ useButton
204
+ } from "./chunk-YGYYJ3LQ.js";
205
+ import {
206
+ ROTATION_DURATION,
207
+ usePrevious,
208
+ useRotation
209
+ } from "./chunk-3GFRSZYR.js";
210
+ import {
211
+ useMergedRef
212
+ } from "./chunk-NCTOTTVW.js";
213
+ import {
214
+ ChevronDownIcon,
215
+ Icon,
216
+ IconContext,
217
+ useIconContext
218
+ } from "./chunk-FHUYHV6J.js";
219
+ import {
220
+ CARD_BACKGROUND,
221
+ Card,
222
+ cardRecipe,
223
+ markBackground,
224
+ useCard
225
+ } from "./chunk-XFPQFCEK.js";
226
+ import {
227
+ Checkbox,
228
+ CheckboxIndicator,
229
+ CheckboxLabel,
230
+ CheckboxRoot,
231
+ checkboxRecipe,
232
+ useCheckbox
233
+ } from "./chunk-DIBUQ46Y.js";
234
+ import {
235
+ SelectionFill
236
+ } from "./chunk-BA2DBSAN.js";
237
+ import {
238
+ useControllableState
239
+ } from "./chunk-F6W3JQ7K.js";
240
+ import {
241
+ FEEDBACK_OVERLAY,
242
+ HIGHLIGHT_DURATION,
243
+ HIGHLIGHT_OPACITY,
244
+ PRESS_DURATION,
245
+ PRESS_SCALE,
246
+ PressableFeedback,
247
+ RIPPLE_CONFIRM_DURATION,
248
+ RIPPLE_EXPAND_DURATION,
249
+ RIPPLE_FADE_IN,
250
+ RIPPLE_FADE_OUT,
251
+ RIPPLE_FADE_OUT_DELAY,
252
+ RIPPLE_OPACITY,
253
+ RIPPLE_START_SCALE,
254
+ SCALE_REFERENCE_WIDTH,
255
+ markOverlay,
256
+ pressScaleFor,
257
+ resolveAnimation,
258
+ resolveSlotAnimation,
259
+ rippleRadiusFor,
260
+ useFeedback
261
+ } from "./chunk-6UEZJRVI.js";
262
+ import {
263
+ usePressState
264
+ } from "./chunk-423RQBOX.js";
265
+ import "./chunk-EGLLDKN6.js";
266
+ import {
267
+ createRecipe,
268
+ radiusAxis
269
+ } from "./chunk-4GTAZM2C.js";
35
270
  import {
36
271
  ThemeContext,
37
272
  deriveTint,
38
273
  useColorMode,
39
274
  useThemeColor,
40
275
  useXAUITheme
41
- } from "./chunk-X2K2FX3W.js";
276
+ } from "./chunk-A3EGFI6T.js";
277
+ import {
278
+ Slot,
279
+ childrenToString,
280
+ createSlotContext,
281
+ mergeProps
282
+ } from "./chunk-K72UDPVN.js";
283
+ import {
284
+ mergeRefs
285
+ } from "./chunk-36PRYGAM.js";
286
+ import {
287
+ useStyleProps
288
+ } from "./chunk-M63GFNKV.js";
42
289
  export {
290
+ Accordion,
291
+ AccordionContent,
292
+ AccordionIndicator,
293
+ AccordionItem,
294
+ AccordionRoot,
295
+ AccordionTrigger,
296
+ Alert,
297
+ Avatar,
298
+ Badge,
299
+ Button,
300
+ CARD_BACKGROUND,
301
+ Card,
302
+ CheckIcon,
303
+ Checkbox,
304
+ CheckboxIndicator,
305
+ CheckboxLabel,
306
+ CheckboxRoot,
307
+ ChevronDownIcon,
308
+ Chip,
309
+ CloseButton,
310
+ Column,
311
+ Divider,
312
+ FEEDBACK_OVERLAY,
313
+ FieldGroup,
314
+ FieldGroupField,
315
+ FieldGroupIcon,
316
+ FieldGroupPrefix,
317
+ FieldGroupRoot,
318
+ FieldGroupSuffix,
319
+ Grid,
320
+ HIGHLIGHT_DURATION,
43
321
  HIGHLIGHT_OPACITY,
322
+ INDICATOR_ROTATION,
323
+ INDICATOR_SPRING,
324
+ Icon,
325
+ IconContext,
326
+ InputOTP,
327
+ Menu2 as Menu,
328
+ MenuContent,
329
+ MenuGroup,
330
+ MenuItem,
331
+ MenuItemDescription,
332
+ MenuItemIndicator,
333
+ MenuItemTitle,
334
+ MenuLabel,
335
+ MenuOverlay,
336
+ Menu as MenuRoot,
337
+ MenuSeparator,
338
+ MenuTrigger,
339
+ OTP_ALPHANUMERIC,
340
+ OTP_DIGITS,
341
+ OTP_LETTERS,
44
342
  PRESS_DURATION,
45
343
  PRESS_SCALE,
344
+ Popover2 as Popover,
345
+ PopoverClose,
346
+ PopoverContent,
347
+ PopoverDescription,
348
+ PopoverOverlay,
349
+ Popover as PopoverRoot,
350
+ PopoverTitle,
351
+ PopoverTrigger,
46
352
  Portal,
47
353
  PortalContext,
48
354
  PortalHost,
49
355
  PressableFeedback,
50
- RELEASE_DURATION,
51
- RIPPLE_COVERAGE,
52
- RIPPLE_DURATION,
356
+ RIPPLE_CONFIRM_DURATION,
357
+ RIPPLE_EXPAND_DURATION,
358
+ RIPPLE_FADE_IN,
359
+ RIPPLE_FADE_OUT,
360
+ RIPPLE_FADE_OUT_DELAY,
53
361
  RIPPLE_OPACITY,
362
+ RIPPLE_START_SCALE,
363
+ ROTATION_DURATION,
364
+ Radio,
365
+ RadioIndicator,
366
+ RadioLabel,
367
+ RadioRoot,
368
+ Row,
369
+ SCALE_REFERENCE_WIDTH,
370
+ Select2 as Select,
371
+ SelectContent,
372
+ SelectIndicator,
373
+ SelectItem,
374
+ SelectItemDescription,
375
+ SelectItemIndicator,
376
+ SelectItemLabel,
377
+ SelectLabel,
378
+ SelectOverlay,
379
+ Select as SelectRoot,
380
+ SelectTrigger,
381
+ SelectValue,
382
+ SelectionFill,
383
+ Skeleton,
54
384
  Slot,
385
+ Spinner,
386
+ Stack,
387
+ Switch,
388
+ SwitchLabel,
389
+ SwitchRoot,
390
+ SwitchThumb,
391
+ SwitchTrack,
392
+ Tabs,
393
+ TabsContent,
394
+ TabsIndicator,
395
+ TabsLabel,
396
+ TabsList,
397
+ TabsRoot,
398
+ TabsTrigger,
399
+ TextArea,
400
+ TextField,
401
+ TextFieldDescription,
402
+ TextFieldError,
403
+ TextFieldField,
404
+ TextFieldLabel,
405
+ TextFieldRoot,
406
+ TextSpan,
55
407
  ThemeContext,
408
+ Typography,
56
409
  XAUIProvider,
410
+ LAYOUT as accordionLayoutTransition,
411
+ accordionRecipe,
412
+ alertRecipe,
413
+ anchoredEntering,
414
+ anchoredExiting,
415
+ avatarRecipe,
416
+ badgeRecipe,
57
417
  buildRadius,
58
418
  buildShadows,
419
+ buildSlots,
420
+ buttonRecipe,
421
+ cardRecipe,
422
+ checkboxRecipe,
59
423
  childrenToString,
424
+ chipRecipe,
425
+ closeButtonBase,
60
426
  createRecipe,
61
427
  createSlotContext,
62
428
  createTheme,
429
+ decoratorPadding,
63
430
  defaultTheme,
64
431
  deriveColors,
65
432
  deriveTint,
433
+ dividerRecipe,
434
+ extractPastedCode,
435
+ inputOTPRecipe,
436
+ markBackground,
437
+ markOverlay,
438
+ menuRecipe,
66
439
  mergeProps,
67
440
  mergeRefs,
441
+ overlayEntering,
442
+ overlayExiting,
68
443
  palette,
444
+ placementInsets,
445
+ popoverRecipe,
446
+ pressScaleFor,
69
447
  primitives,
448
+ radioRecipe,
449
+ radiusAxis,
70
450
  resolveAnimation,
71
451
  resolveSlotAnimation,
452
+ rippleRadiusFor,
453
+ selectRecipe,
454
+ skeletonRecipe,
72
455
  sourceKeys,
456
+ spinnerRecipe,
457
+ switchRecipe,
458
+ tabsRecipe,
459
+ textFieldRecipe,
73
460
  tokens,
461
+ typographyRecipe,
462
+ useAccordion,
463
+ useAccordionItem,
464
+ useAlert,
465
+ useAvatar,
466
+ useButton,
467
+ useCard,
468
+ useCheckbox,
469
+ useChip,
74
470
  useColorMode,
471
+ useControllableState,
75
472
  useFeedback,
473
+ useFieldGroup,
474
+ useGrid,
475
+ useIconContext,
476
+ useInputOTP,
477
+ useInputOTPBox,
478
+ useMenu,
479
+ useMenuItem,
480
+ useMergedRef,
481
+ usePopover,
482
+ usePressState,
483
+ usePrevious,
484
+ useRadio,
485
+ useRotation,
486
+ useSelect,
487
+ useSelectItem,
488
+ useStyleProps,
489
+ useSwitch,
490
+ useTabs,
491
+ useTabsTrigger,
492
+ useTextArea,
493
+ useTextField,
76
494
  useThemeColor,
77
495
  useXAUITheme
78
496
  };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Where a floating panel lands against the thing that opened it, as four numbers.
3
+ *
4
+ * Pure on purpose, and shared: positioning an overlay is the one part of a `Select`, a
5
+ * `Popover` or a `Menu` that is arithmetic rather than rendering, and arithmetic that runs
6
+ * once per open is arithmetic worth a test rather than a screenshot.
7
+ *
8
+ * Everything here is in the coordinate space of whatever the panel is laid out in — the
9
+ * caller subtracts the portal host's own origin before calling, because the trigger
10
+ * reports itself against the window and the panel is not laid out in the window.
11
+ */
12
+ /** `start` and `end` rather than `left` and `right` (R13): the sides mirror in RTL. */
13
+ type Placement = 'top' | 'bottom' | 'start' | 'end';
14
+ /** Where the panel lines up along the edge it is pinned to. */
15
+ type Align = 'start' | 'center' | 'end';
16
+ /** The trigger's rectangle. */
17
+ type Anchor = {
18
+ x: number;
19
+ y: number;
20
+ width: number;
21
+ height: number;
22
+ };
23
+ /**
24
+ * `trigger` matches the anchor exactly. `content-fit` hugs what the panel measured at,
25
+ * which the component bounds with a measure of its own. `full` is the screen less its
26
+ * insets — the way to say "yes, actually, all of it", which nothing else in the union can
27
+ * express: a number is a guess at the screen's width, and `content-fit` refuses on purpose.
28
+ */
29
+ type AnchoredWidth = number | 'trigger' | 'content-fit' | 'full';
30
+ /** Screen edges the panel refuses to cross, in points. */
31
+ type Insets = {
32
+ top?: number;
33
+ bottom?: number;
34
+ start?: number;
35
+ end?: number;
36
+ };
37
+
38
+ export type { Align as A, Insets as I, Placement as P, AnchoredWidth as a, Anchor as b };