0.18.0
asChild composes or fails to compile, and Schedule's agenda starts at its date
Spotlight
An agenda that starts where you are
The agenda opens on its anchor date and lists visibleDays days, 7 by default. Prev and Next step by that span, and the title shows the range. Clicking a row selects the event without opening a popover.
Menu items that are your router links
Wrap a router Link in Menu.Item asChild and the link becomes the menu item, with its sections, indicator and highlight. Pressing Enter on it navigates client-side.
Changes
4 breaking changes
- Accordion, Tabs, Breadcrumb, Notification, AppShell:
asChildis a compile error on the data forms ofAccordion,TabsandBreadcrumb, on the ready-madeNotificationand onAppShell.Sidebar(theirRootparts keep it) - Circular Progress, Progress, Rating, Slider, Divider, Field, Input, PillsInput:
asChildis a compile error onCircularProgress,Progress,Rating,Slider,Divider,Field,InputBaseandPillsInput - Combobox, Drawer, Modal, Popover, Tooltip:
asChildis a compile error onCombobox.Control,Group,Content,PanelandItem,Drawer/Modal.Positioner,Drawer.Grabber,Popover.ContentandTooltip.Arrow
4added
2changed
11fixed
- breaking4
- AccordionTabsBreadcrumb#294
asChildis a compile error on the data forms ofAccordion,TabsandBreadcrumb, on the ready-madeNotificationand onAppShell.Sidebar(theirRootparts keep it) - Circular ProgressProgressRating#294
asChildis a compile error onCircularProgress,Progress,Rating,Slider,Divider,Field,InputBaseandPillsInput - ComboboxDrawerModal#294
asChildis a compile error onCombobox.Control,Group,Content,PanelandItem,Drawer/Modal.Positioner,Drawer.Grabber,Popover.ContentandTooltip.Arrow - Schedule#294
asChildis a compile error onSchedule, its views andSchedule.NextUp(ScheduleToolbarand itsTitlekeep it) - added4
- Schedule#286
visibleDaysworks with an agenda renderer, and an agenda entry can pin its own span:{ id: "agenda", visibleDays: 14 } - CodeBlock#290
titleadds a header row above the code (a filename, say) that hosts the toolbar - CodeBlock#290
notation={false}shows[!code …]markers verbatim - Collapse#288
CollapseacceptsasChild - changed2
- Schedule#286
The agenda opens on its anchor date for
visibleDaysdays (default 7) instead of a calendar month; Prev/Next step by that span and the title shows the range - Schedule#286
Clicking an agenda row only selects it:
withEventDetailsnow defaults tofalsein the agenda — pass it (orrenderEventDetails) to bring the popover back - fixed11
- Menu#288
Menu.Item,CheckboxItem,RadioItem,SubTriggerandItemGroupLabelrender as your router link underasChild, with their sections, indicator and highlight - Menu#288
Pressing Enter on a link item navigates client-side instead of reloading the page
- Menu#287
A
Menubuilt from a non-literalitemsarray typesonSelect's value asstringinstead ofany - Breadcrumb#288
Breadcrumb.Home asChildputs its house icon inside an empty link - Combobox#288
Combobox.TriggerandClearTriggerkeep their icon underasChild - Accordion#288
Accordion.ItemTriggerandItemContentcompose onto your element underasChild - PillTimelineAlert#288
Pill,Timeline.Item,AlertandScheduleToolbar.Titlerender their content inside your element underasChildinstead of rendering nothing - ModalDrawer#288
CloseTrigger asChilduses your element in place of the icon button, without the forcedaria-label - Clipboard#288
Clipboard.Input asChildwires your input as the read-only value field - Tabs#294
The data form's
onChangeis typed with your tab values only, no longer widened by the nativeChangeEvent - CodeBlock#290
Code stays left-to-right on RTL pages