Repository navigation
@codeatlasdev/ui@2.0.0
Major Changes
-
dbb7193: bits-ui is gone. Every interactive component now runs on the library's own headless layer (WAI-ARIA Authoring Practices, platform first): native
<dialog>for Dialog, AlertDialog, Sheet, Drawer, Lightbox, CommandPalette and DocsSearch; native inputs for Checkbox, Switch and RadioGroup; own floating, dismiss, focus, roving-focus, listbox and presence primitives for Popover, Tooltip, DropdownMenu, Select, Combobox, Tabs, ToggleGroup, SegmentedControl, Slider, PinInput, Accordion, Collapsible, ScrollArea, Pagination, Avatar and the date family. Public props, classes anddata-stateattributes are unchanged.- Smaller bundles: AppShellLayout 41.2 → 35.1 kB gzip, form controls −18.7 kB, date family −45.2 kB.
- No more
ssr.noExternalfor bits-ui and no WKWebView dialog workaround needed. Select/Comboboxwithrequiredblock native form submit while empty and focus the trigger.- Disabled
Slidernow renders dimmed (the selector never matched before). - Interaction patterns were designed after studying Bits UI (credited in NOTICE).
Breaking (upgrade notes)
Props, exported types,
ca-*classes anddata-stateattributes did not change. What changed is the DOM around overlays and the dependency set:- Modal overlays (Dialog, AlertDialog, Sheet, Drawer, Lightbox, CommandPalette, DocsSearch) are a single native
<dialog>moved to<body>; the scrim is its::backdrop. CSS that targeted a separate overlay/scrim element or the old portal container no longer matches. Styledialog.ca-overlay::backdropinstead. --bits-*CSS variables anddata-bits-*attributes are gone (--ca-anchor-width,--ca-accordion-height,--ca-collapsible-height,data-ca-dayreplace the ones used internally).bits-uiis no longer installed with the package. If your app imports frombits-uidirectly, add it to your own dependencies.- Select no longer renders bits-ui's hidden
<input>;requiredstill blocks native form submit.