Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into prod
  • Loading branch information
masoudmanson committed May 3, 2024
2 parents c35419d + 860283f commit 1f63e72
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 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.1.1](https://github.com/chanzuckerberg/sci-components/compare/@czi-sds/components@20.1.0...@czi-sds/components@20.1.1) (2024-05-02)

### Bug Fixes

- **autocomplete:** fix controlled open state ([#767](https://github.com/chanzuckerberg/sci-components/issues/767)) ([6a77a3d](https://github.com/chanzuckerberg/sci-components/commit/6a77a3d49f2313ed569d1916ad58b1abfa68b935))

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

### 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.0",
"version": "20.1.1",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.cjs.d.ts",
Expand Down
12 changes: 12 additions & 0 deletions packages/components/src/core/styles/common/SDSAppTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export const SDSAppTheme: AppTheme = {
s: 2,
},
fontWeights: {
bold: 700,
light: 300,
medium: 800,
regular: 400,
semibold: 600,
},
Expand Down Expand Up @@ -378,6 +381,15 @@ export const SDSAppTheme: AppTheme = {
},
};

/**
* (masoudmanson): This is to make sure that the old defaultAppTheme
* export is still available for backward compatibility.
*
* @deprecated
* Please use `SDSAppTheme` instead. This export will be removed in the future.
*/
export const defaultAppTheme = SDSAppTheme;

// (mlila) whenever our theme uses colors, we need to make sure we allow consuming
// applications to override those colors using their own custom theme.
// By defining borders using SDSAppTheme.colors instead of defaultThemeColors,
Expand Down
5 changes: 0 additions & 5 deletions packages/components/src/core/styles/common/defaultTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ import { makeThemeOptions } from "./makeThemeOptions";
const defaultThemeOptions: SDSThemeOptions = makeThemeOptions(SDSAppTheme);

export const defaultTheme = createTheme(defaultThemeOptions);

/**
* (masoudmanson): This is to keep the old defaultAppTheme export for backward compatibility.
*/
export const defaultAppTheme = defaultTheme;
3 changes: 3 additions & 0 deletions packages/components/src/core/styles/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ export interface Typography {
}

export interface FontWeights {
bold: number;
light: number;
medium: number;
regular: number;
semibold: number;
}
Expand Down

0 comments on commit 1f63e72

Please sign in to comment.