Releases: nextjs-components/nextjs-components
Releases · nextjs-components/nextjs-components
v5.3.0-rc.1
chore: @babel/preset-typescript
v5.2.0
v5.1.1 - fix(Switch.Control) a11y
Fixed
- fix(switch.control): a11y
-
- "Form elements do not have associated labels"
Full Changelog: v5.1.0...v5.1.1
v5.1.0 Update Note; Fix Button
What's Changed
Other Changes
- feat(Note): update styles by @thiskevinwang in #205
Full Changelog: v5.0.1...v5.1.0
v5.0.1
Full Changelog: v5.0.0...v5.0.1
v5.0.0 - Badge updates
What's Changed
Warning
This introduces a breaking change to the Badge
component API
The type
prop is removed, variant
prop has changed, and the size
prop expects "sm" | "md" | "lg"
- core(Badge): updated variants by @dtsuper3 in #170
- core(Badge): API updates by @thiskevinwang in #202
New Contributors
Full Changelog: v4.1.2...v5.0.0
v4.1.2
Full Changelog: v4.1.1...v4.1.2
v4.1.1
What's Changed
Other Changes
- core(Menu): updates by @thiskevinwang in #199
Full Changelog: v4.1.0...v4.1.1
v4.1.0
What's Changed
New Pill
component
Refactored Button
and MenuButton
- mouse interaction doesn't focus the button anymore; achieved via
document.activeElement.blur()
Addressed some RSC issues; - added
use client
directive to icons
Other Changes
- Pill; refactor Menu & Button by @thiskevinwang in #196
Full Changelog: v4.0.0...v4.1.0
v4.0.0
What's Changed
Warning
This introduces a breaking change to the Switch
API, and a new Switch.Control
component.
const MyComponent = () => {
const [active, setActive] = React.useState('source')
return (
<Switch
- items={[
- {
- name: 'Source',
- value: 'source',
- width: 80
- },
- {
- name: 'Output',
- value: 'output',
- width: 90,
- }
- ]}
- active={active}
- onChange={v => setActive(v)}
- />
+ >
+ <Switch.Control label="Source" defaultChecked value="source" onChange={e => setActive(e.target.value)}/>
+ <Switch.Control label="Output" value="output" onChange={e => setActive(e.target.value)}/>
+ </Switch>
)
}
Important
This makes Stack
renderable as React Server Components since it no longer uses styled-jsx
internally
Other Changes
- refactor: +
Switch.Control
;Stack
to RSC by @thiskevinwang in #193
Full Changelog: v3.1.0...v4.0.0