Skip to content

@weave-design/[email protected]

Compare
Choose a tag to compare
@hig-bot hig-bot released this 28 Feb 04:21
· 218 commits to master since this release

@weave-design/modal-v1.0.0 (2023-02-28)

BREAKING

  • icon/icon-button: Removes @hig/icon and refactor @hig/icon-button to use @hig/icons (49d78f4)

Bug Fixes

  • react v. in peerDependencies instead of dependencies (4701332)
  • a11y: correct markup semantics (2a328ea)
  • add missing [@hig](https://github.com/hig)/icon-button dependency (01ccb76)
  • bundle: Fix package bundles (a1b479d)
  • bundle: include dependency CSS (f5a4a62)
  • combined greenkeeper prs for version updates see pr 1392 (d0a017a)
  • design updates (5d9d1b9)
  • Forcing semantic release by editing readmes (d39b61f)
  • header font-weight, line height & body padding (828d5d7)
  • package: update @hig/icons to version 2.0.0 (b04b9e5)
  • package: update @hig/utils to version 0.4.0 (ba296ed)
  • pass closeButtonAriaLabel to title attribute (b9348f9)
  • remove key duplicated (2683acc)
  • stop using deprecated theme-data roles (38960a5)
  • storybook: Add back Icon stories (f38f2d4)
  • stylesheet function needs to be passed down to the header (b7e8d0e)
  • theme-context and theme-data as peer dependencies (676136d)
  • update dependencies (70fb27c)
  • update icon-button dependency (1526394)

Code Refactoring

  • Major Release - React 17 Upgrade (2523711)

Features

  • add stylesheet prop for Modal customization (7034cea)
  • allow PropTypes.node for title prop (b0744d8)
  • Initialize remaining components to be migrated into packages (3b654ce)
  • modal: Add Modal placeholders (87cd8d7)
  • pass down css className to all emotion styled elements (d1e5ee8)
  • props.style becomes props.type for consistency with other React components (aa32562)
  • Pure React modal (1e03939)
  • themable Modal (0c71121)
  • updating peer dependencies release (0a8a2b6)
  • use emotion and stylesheet function in Modal (057d56f)
  • use latest theme-data (bb2cca9)

Reverts

  • "Revert "Revert "feat : Migrate all repository to React v17.0 """ (bf78986)

BREAKING CHANGES

  • This release includes upgrading to React 17 and all associated libraries. The components have also had structural changes, utilizing stateless components and hooks. There should be no change in look or behavior of components. The code usage is the same so if you’re already on react 17 you can bump the version directly. If you’re on an old version of react you’ll need to upgrade your project’s react first to 17 and then the HIG components. This upgrade also means no more fixes for the react 15 version but it will still be available for download from NPM. You can fork the repo and make fixes with the older version if there is something critical past this release date.
  • A new look for Modal with theming options and a new stylesheet prop
    for customizing styles.
  • DOM classNames like hig__modal-V1* replaced with
    emotion-generated class names
  • icon/icon-button: Removes @hig/icon
  • icon/icon-button: Use icon prop instead of name or svg in @hig/icon-button to render Icon/svg
  • icon/icon-button: No longer export names from @hig/icon-button

Usage:

import { Assets24 } from "@hig/icons"

function MyComponent() {
  return (
    <IconButton
      icon={<Assets24 />}
      onClick={() => console.log('Clicked it.')}
    />
  );
}