// The component layer, re-exported. // // Three vocabularies sit under `@luxfi/ui`, each complete on its own and none of // them a renamed copy of another: // // import { AccordionRoot } from '@luxfi/ui/accordion' // the Lux skin // import { Accordion } from '@luxfi/ui/primitives' // the component layer // import { XStack, Sheet } from '@luxfi/ui/gui' // the engine // // All three resolve to @hanzo/gui in the end — the component layer is built on // the same engine the skin is — so this is one engine, not a second one smuggled // in. What differs is the API shape: the skin's parts are named `*Root` / // `*Trigger` / `*Content` around Lux props, the component layer's follow the // Radix part names, and the engine's are the raw frames. // // A separate subpath for the same reason ./gui is one: the skin and this layer // both define Accordion, Avatar, Badge, Checkbox, Drawer, Heading, Input, // Progress, Separator, Slider, Switch, Tabs, Textarea, Toaster and Tooltip // parts, so merging them into the root barrel would collide on 43 names. // // A star, not a list, so a component added upstream is reachable here without a // line to write — the same reason the build reads its entries from the // directory. Reaching for `@hanzo/ui` directly instead is what resolves a second // copy of the engine and produces "Missing theme." // // The palettes are NOT interchangeable, and this is the sharp edge. The skin // paints from the `--color-*` layer in tokens.css; this layer paints from theme // keys — $panel, $ink, $soft, $edge, $bound, $quiet, $hover — that are declared // in @hanzo/ui/gui-config's theme rows and nowhere else. ./lux.config takes that // config's tokens and fonts but states its own `themes:`, so the Lux rows carry // none of those names and a component from here has nothing to resolve them to. // Declaring them on the Lux rows is the fix; taking the Hanzo rows wholesale is // not, since those also restate `background`, `color`, `borderColor` and the // accent pair, and Lux's ground is true black on purpose. export * from '@hanzo/ui/primitives';