Skip to content

@salt-ds/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Apr 09:12
· 471 commits to main since this release
7c6437c

Minor Changes

  • 96c2ca6: Removed SegmentedButtonGroup from labs and promoted to core.

  • 8ed621b: Removed the onClose prop from Overlay, onOpenChange is now called for events that open/close the overlay.

    export const ControlledOverlay = () => {
      const [open, setOpen] = useState(false);
      const onOpenChange = (newOpen: boolean) => setOpen(newOpen);
    
      return (
        <Overlay open={open} onOpenChange={onOpenChange}>
          <OverlayTrigger>
            <Button>Show Overlay</Button>
          </OverlayTrigger>
          <OverlayPanel>Overlay Content</OverlayPanel>
        </Overlay>
      );
    };
  • ebe5917: Added OverlayPanelCloseButton and OverlayPanelContent components as children of OverlayPanel

    export const OverlayWithCloseButton = ({ onOpenChange }: OverlayProps) => {
      const [open, setOpen] = useState(false);
    
      const onChange = (newOpen: boolean) => {
        setOpen(newOpen);
      };
    
      const handleClose = () => setOpen(false);
    
      return (
        <Overlay open={open} onOpenChange={onChange}>
          <OverlayTrigger>
            <Button>Show Overlay</Button>
          </OverlayTrigger>
          <OverlayPanel>
            <OverlayPanelCloseButton onClick={handleClose} />
            <OverlayPanelContent>Overlay Content</OverlayPanelContent>
          </OverlayPanel>
        </Overlay>
      );
    };

Patch Changes

  • f620261: Visual updates to Calendar's "today" indicator and Tab's active indicator due to --salt-size-indicator being updated.