-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 808-implement-new-icon-variant-of-toggle
- Loading branch information
Showing
10 changed files
with
461 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,18 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [21.5.0](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/[email protected]...@czi-sds/[email protected]) (2024-10-09) | ||
|
||
### Features | ||
|
||
- **icons:** add new s and xs sizes for the Book icon ([#873](https://github.com/chanzuckerberg/sci-components/issues/873)) ([a256f8c](https://github.com/chanzuckerberg/sci-components/commit/a256f8cc45d7f895130d9b326bace180f6a717e9)) | ||
|
||
# [21.4.0](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/[email protected]...@czi-sds/[email protected]) (2024-10-09) | ||
|
||
### Features | ||
|
||
- **segmentedcontrol:** add disabled state in button definition and controlled/uncontrolled state ([#869](https://github.com/chanzuckerberg/sci-components/issues/869)) ([d59af72](https://github.com/chanzuckerberg/sci-components/commit/d59af72ced81f4e4577aa85b6cd272a343170931)) | ||
|
||
# [21.3.0](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/[email protected]...@czi-sds/[email protected]) (2024-10-02) | ||
|
||
### Bug Fixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...components/src/core/SegmentedControl/__storybook__/stories/controlledSegmentedControl.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Args } from "@storybook/react"; | ||
import { useState } from "react"; | ||
import RawSegmentedControl from "src/core/SegmentedControl"; | ||
|
||
export const ControlledSegmentedControlDemo = (props: Args): JSX.Element => { | ||
const { buttonDefinition, ...rest } = props; | ||
|
||
const [value, setValue] = useState("C"); | ||
return ( | ||
<RawSegmentedControl | ||
buttonDefinition={buttonDefinition} | ||
onChange={(_event, newValue) => { | ||
console.log(newValue); | ||
setValue(newValue); | ||
}} | ||
value={value} | ||
{...rest} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.