Skip to content

@weave-design/[email protected]

Compare
Choose a tag to compare
@hig-bot hig-bot released this 07 Mar 03:46
· 200 commits to master since this release

@weave-design/slider-v1.0.0 (2023-03-07)

Bug Fixes

  • react v. in peerDependencies instead of dependencies (4701332)
  • behavior: bump @hig/utils dependents to v0.2.1 (48b74d0)
  • behavior: call onChange handlers when controlled (af9c176)
  • bundle: Fix package bundles (a1b479d)
  • bundle: include dependency CSS (f5a4a62)
  • correct controlled component logic (fb6ca8b)
  • Fixing slider component bug, transparency in Firefox (6084cbf)
  • Forcing semantic release by editing readmes (d39b61f)
  • package: update @hig/utils to version 0.4.0 (aa4421f)
  • package: Upgrade dependency for missing feature (ec11db3)
  • provide a number value to onChange handlers (7ee56ca)
  • slider knob missing border radius (34cf17e)
  • stop using deprecated theme-data roles (4dfe027)
  • styles: Keep range mixins alongside Slider package (1b7641c)
  • theme-context and theme-data as peer dependencies (928520d)
  • tweak Slider styling (a00d038)

Code Refactoring

  • Major Release - React 17 Upgrade (2523711)

Features

  • a new look and API for Slider (f2d2ceb)
  • add stylesheet, sliderRef prop, allow passing down of className (7a6e52b)
  • adds discrete slider (eb74c99)
  • implement ControlBehavior in Slider (e7a8b5e)
  • Initialize remaining components to be migrated into packages (3b654ce)
  • make Slider themable (115f5bf)
  • match slider knob to latest design toolkit (885c7ba)
  • release: move from pre-relase phase (a6d9b96)
  • Slider component (#974) (81afec5)
  • slider: Add Slider placeholders (0419206)
  • update theme-data dependency (2c04016)
  • updating peer dependencies release (0a8a2b6)
  • use ControlBehavior props for Slider styles (0591cff)

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.
  • To enable different styling for the value portion of the range track,
    visually distinguishing it from the unfilled portion of the track,
    we always set an initial value for a Slider if a value is not explicitly
    provided. This initial value default is the midpoint between the min and
    max props. THe midpoint will be 50 unless you set min or max. This
    behavior mimics the browser behavior for range inputs.
    • rm label, instuctions, & required props and value text
  • use stylesheet functions instead of scss
  • rm dependency on classnames
  • add dependency on emotion
  • pass arbitrary props thru to presenters/Input

This removes the label, instructions, and required props that
previously allowed you to specify text that would decorate a range
input. If you were previously using...

<Slider
  label="What is your age?"
  instructions="You must be 21 or older."
  required="Age is required."
  min={21}
  max={99}
  step={1}
/>

...you can achieve the same look by using a combination of Slider and
Label or Typography components.