leafygreen-ui

LeafyGreen UI – LeafyGreen's React UI Kit

APACHE-2.0 License

Downloads
8.8M
Stars
217
Committers
47

Bot releases are visible (Hide)

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 19 days ago

Minor Changes

  • f38cdc3dc: Exports getTestUtils from Button package
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 20 days ago

Minor Changes

  • 43c895142: Adds 'EmptyFolder' and 'EmptyDatabase' glyphs
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 27 days ago

Minor Changes

  • e56c58339: Updates AtlasLogoLockup component to latest.
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 30f111498: LG-4473 Updates the selected and setSelected props to accept both strings and numbers. The string must match the text content from the name prop on the Tab component.

      const [selectedTab, setSelectedTab] = useState<string | number>('Tab 4');
    
      return (
        <div>
          <Button onClick={() => setSelectedTab('Tab 2')}>
            Set second tab as active
          </Button>
          <Tabs
            selected={selectedTab}
            setSelected={setSelectedTab}
          >
            <Tab name="Tab 1">
              Content 1
            </Tab>
            <Tab name="Tab 2">
              Content 2
            </Tab>
            <Tab name="Tab 3">
              Content 3
            </Tab>
            <Tab name="Tab 4">
              Content 4
            </Tab>
          <Tabs>
        </div>
      );
    

Patch Changes

leafygreen-ui - @lg-tools/[email protected]

Published by github-actions[bot] about 1 month ago

Patch Changes

leafygreen-ui - @lg-tools/[email protected]

Published by github-actions[bot] about 1 month ago

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 9776f5f42: Adds renderHookServer method

    @testing-library/react-hooks/server exposed a renderHook method
    that allowed for one to render hooks as if SSR, and control
    hydration. This is no longer supported in versions >=18.

    This code was extracted from @testing-library/react-hooks/server and
    updated to be compatible with React version >= 18 using hydrateRoot.

    More context found here:
    https://github.com/testing-library/react-testing-library/issues/1120

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 9776f5f42: Adds useSsrCheck and adds it to viewport check in useViewportSize.

    When server side rendering is used, window is not defined. This is causing build issues on the server where we access window in useViewportSize. To fix this, this change adds a hook, useSsrCheck, that checks the rendering environment and can be used before attempting to access window. It adds a check of this to useViewportSize to fix the current build issue.

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 24786ff3d: - c3906f78: - Exports getTestUtils, a util to reliably interact with LG Table in a product test suite. For more details, check out the README LG-4171
    • Exports the constant, LGIDS which stores data-lgid values.

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Patch Changes

  • 07bab6308: LG-4507: fix FormFieldInputContainer autocomplete styling used in DateInputSegment, TextArea and TextInput. A double-border issue occurs when the auto-completed input has focus or hover state applied
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • f91e1ce97: Unsets lowest level shadow for darkMode. (sets shadow.dark[100] to "unset")
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 6b8ad3d42: Updates children type to accept React.ReactNode rather than just string
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 1 month ago

Patch Changes

  • 330616d55: Omits children from cancelButtonProps. The text will always render cancel.
  • Updated dependencies [f91e1ce97]
leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 82bcd310a: Adds a new "Article" rich link variant

Patch Changes

leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • f6f49c65e: Adds exports for the MessageLinks component & types

Patch Changes

leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] about 1 month ago

Minor Changes

  • 79f0e7696: Add shouldRenderHotkeyIndicator prop to InputBar component which determines if hotkey indicator is rendered
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • e7bc12814: Adds more thorough test coverage for disabled inputs
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 9530dba5b: Cleans up running tasks in Toast on unmount
  • Updated dependencies [e7bc12814]
  • Updated dependencies [c1b8b633b]
  • Updated dependencies [fe2483937]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • e7bc12814: Adds more thorough test coverage for disabled inputs
  • Updated dependencies [c1b8b633b]
  • Updated dependencies [fe2483937]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • e7bc12814: Adds more thorough test coverage for disabled inputs
  • Updated dependencies [c1b8b633b]
  • Updated dependencies [fe2483937]
Package Rankings
Top 1.98% on Npmjs.org
Badges
Extracted from project README
version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version