Repository navigation
Added
@lumx/react,@lumx/vue:TextField,Combobox.Input,SelectTextField,TimePickerField: add thebeforeElementprop (and the#beforeElementslot in Vue) to show a custom element at the start of the field.TreeListItem: add thedefaultOpenprop to open a parent item at mount.Tooltip:labelaccepts a function, called on open and on each render while open (for example, an overflow check). It needs the defaultcloseMode="unmount".- Add
useOverflowTooltipLabel(@lumx/react/utils,@lumx/vue/utils): a tooltip label that shows only when the text overflows.
@lumx/vue:TextField,SelectButton,SelectTextField,SelectionChipGroup,TimePickerField,TreeList,Combobox.Input: add theupdate:valueevent. It supportsv-model:value.Checkbox,Switch: add theupdate:isCheckedevent. It supportsv-model:is-checked.Dialog,Lightbox,AlertDialog,Popover,PopoverDialog: add theupdate:isOpenevent. It supportsv-model:is-open. The event only reports the close, so it only ever sendsfalse.ExpansionPanel: add theupdate:isOpenevent. It supportsv-model:is-open.TabProvider: add theupdate:activeTabIndexevent. It supportsv-model:active-tab-index.- These are new events. The current props and events do not change.
Changed
@lumx/react,@lumx/vue:TooltipProps['label']also accepts a function. Code that reads it as a string must handle the function type.SelectTextField(single selection):searchInputValue=""keeps the input empty while an option is selected. Code that copiesonSearchintosearchInputValuemust passsearch || undefinedto keep showing the name of the selection.SelectTextField,TimePickerField(single selection): withhasClearButton={false}, erasing the input or pressing Escape no longer clears the selection.
@lumx/vue:Text: no mutation or resize observer for thetitle, as in React. Thetitleno longer updates on resize.
Fixed
@lumx/react,@lumx/vue:Tooltip: close when the anchor detaches (for example, an empty label), so the tooltip no longer comes back with no hover.Text: a hidden text (width 0) gets notitle.
@lumx/react:NavigationItem: measure the label overflow when the tooltip opens, so a label that mounts hidden or overflows after a resize gets its tooltip.
@lumx/vue:Tooltip:forceOpenno longer takes the Escape key from the container, as in React.Tooltip: the anchor keeps the focus when the label becomes empty.
🎨 StoryBook React - 🎨 StoryBook Vue - 📄 See changelog history