Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into prod
  • Loading branch information
masoudmanson committed May 10, 2024
2 parents d2df223 + c42970a commit 865d5d6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [20.2.0](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/components@20.1.2...@czi-sds/components@20.2.0) (2024-05-09)

### Features

- **complexfilter:** add shouldisTriggerChangeOnOptionClick to complexFilter and ([#772](https://github.com/chanzuckerberg/sci-components/issues/772)) ([038ad54](https://github.com/chanzuckerberg/sci-components/commit/038ad542a91b05b06af5b77dff0a644a509f0cc0))

## [20.1.2](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/components@20.1.0...@czi-sds/components@20.1.2) (2024-05-03)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@czi-sds/components",
"version": "20.1.2",
"version": "20.2.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.cjs.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/core/ComplexFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ const ComplexFilter = <
// * such as sliders for ranges, inline multi selects, etc.
return (
<>
<Wrapper {...rest}>
<Wrapper>
<InputDropdownComponent
label={label}
onClick={handleClick}
sdsStage={open ? "userInput" : "default"}
{...InputDropdownProps}
{...rest}
/>

<StyledChipsWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const TestDemo = <
): JSX.Element => {
return (
<RawDropdown<T, Multiple, DisableClearable, FreeSolo>
data-testid="dropdown"
label="Click Target"
onChange={noop}
options={AUTOCOMPLETE_SINGLE_COLUMN_OPTIONS as T[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`<Dropdown /> Default story renders snapshot 1`] = `
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium css-1yq35rh-MuiButtonBase-root-MuiButton-root"
data-testid="dropdown"
label="Click Target"
tabindex="0"
type="button"
Expand Down Expand Up @@ -48,7 +47,6 @@ exports[`<Dropdown /> Default story renders snapshot 1`] = `
exports[`<Dropdown /> MultiColumnWithButtons story renders snapshot 1`] = `
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium css-1yq35rh-MuiButtonBase-root-MuiButton-root"
data-testid="dropdown"
label="Click Target"
tabindex="0"
type="button"
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/core/Dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const Dropdown = <
onClick={handleClick}
sdsStage={open ? "userInput" : "default"}
{...InputDropdownProps}
data-testid="dropdown"
{...rest}
/>
<DropdownMenu<T, Multiple, DisableClearable, FreeSolo>
anchorEl={anchorEl}
Expand Down

0 comments on commit 865d5d6

Please sign in to comment.