0.9.1-alpha.9
Alpha@xaui/native@0.9.1-alpha.9
Patch Changes
-
40b48e0: Add
Button— the first v1 component, on@xaui/native/button.<Button onPress={submit}>Envoyer</Button> <Button variant="danger" size="lg"> <Button.Icon as={TrashIcon} /> <Button.Label>Supprimer</Button.Label> </Button>Ten variants naming tokens and computing nothing, four sizes driving height and never width,
coloras one raw tint that lands where the variant put its tokens,isLoadinginserting a spinner when none is composed, andasChildhanding the press to someone else's element. The view depth is one —PressableFeedback > (Text | Icon)— and a press allocates no style: every combination of tokens is resolved once and cached for the lifetime of the app.Two fixes the component needed on the way:
- The build emitted classic
React.createElementagainst a binding the sources never import, so every component in the published package would have thrown on first render. esbuild now uses the automatic JSX runtime. - Every animated hook carries an explicit dependency array. Reanimated's Babel plugin
infers one, but it runs in the consumer's build and does not reach a published
diston web, where the hook throws instead of animating.
usePressStatenow acceptsnullhandlers, which is howPressablePropstypes them. - The build emitted classic