Repository navigation
v0.189.0
Minor Changes
- #1432
6f038456Thanks @solarrust! -Resultgains what a confirmation or result dialog needs: anactionsslot forResult.Actionbuttons, which take their size from the Result, asize="large"scale with a bigger icon and text, and alayout="stacked"arrangement that fills the container and stacks the actions to the full width. Size and layout are independent, so a large result can keep its centered row of actions and a medium one can stack them.isCompactkeeps its own scale and arrangement and ignores both. The status icon now has3xof room on every side (a quarter of--icon-sizeonce that is larger, above a12xicon) in every non-compact Result including the default medium one, a customicongets the same room (sized by the Result's--icon-size, so size a custom icon through it rather than on the icon), and that room is the whole distance to the title, so the title keeps its3xfrom the icon in both sizes. OutsideisCompactthe content and the actions now keep their3xwith a top margin instead of the containergap, so agappassed to such a Result adds to it. A status without an icon (404,403,500) renders no icon slot. The stacked layout keeps a1.5xpadding of its own, and none inside aDialog, whoseContentalready pads it.
Patch Changes
-
#1463
d1215d22Thanks @tenphi! - Fix three bugs inuseAlertDialogAPI().open(). AcancelTokenaborted before or while the dialog is open now rejects the promise withundefined, as Cancel does, instead of leaving it pending forever; a caller that aborts without handling that rejection now gets an unhandled rejection where itsawaitused to hang. The default Ok button, shown whenactions.confirmis omitted, now resolves'confirm'instead of rejecting like a dismissal. And a dialog opened while the previous one is still animating out now replaces it instead of being rejected as "Another dialog is already opened", so follow-up dialogs and dialogs opened from a mount effect under StrictMode show. TheAlertDialogApi,AlertDialogApiParamsandAlertDialogResolveStatustypes are now exported, and the AlertDialog docs describe the imperative API. -
#1461
12a62900Thanks @tenphi! - Update@tenphi/tastyto 3.9.6. It fixes a crash whenfloworgapmeets an unsetdisplaybranch (including anulldefault in a state map), acceptschainin the overscroll-behavior longhands, and lets atransitionentry that names one property keep its own timing when a group such asthemethat covers it comes later. That gives a board widget's outside resize grip its intended 120 ms ease-in-out fade instead oftheme's default timing.Boardwidget chrome andPopovertransitions now also read the kit's duration tokens instead of hardcoded values, with the same timing. -
#1461
12a62900Thanks @tenphi! - Style overrides that a component layers over its own defaults now merge the way tasty'sstylesprop does, instead of replacing whole keys. This coversstylesonDisclosure(and its group'scontentStyles),ButtonSplit,DataTable,ItemTable,Placeholder,Paragraph,Avatar,ActiveZoneandDateInput, pluswrapperStyleson the date pickers,inputStylesonPeriodPicker,stylesandheaderStylesonCommandMenu,popoverStylesonPickerandFilterPicker,overlayStylesonCommandTextArea,closeButtonStylesonTag,thumbStylesandtrackStylesonHueSlider, andtriggerStyles,optionStylesandheadingStylesonSelect. A state map without a''key now adds states to the default map instead of discarding it, and a sub-element override keeps the default's other properties. Anullstill resets the component's own value, as before. Renders without such an override are unchanged.