Skip to content

Commit

Permalink
Merge 1.24.1 => main (#2379)
Browse files Browse the repository at this point in the history
DES-6558 fix(odyssey-react-mui): trigger test run
fix(odyssey-react-mui): add back margin removed in error
fix(odyssey-react-mui): fix margin start
fix(odyssey-react-mui): add back no children styling
fix(odyssey-react-mui): add back size and full width styling
fix(odyssey-storybook): add back floatingAction styles
build: bump versions for 1.24.1
docs: update CHANGELOG for 1.24.1
  • Loading branch information
bryancunningham-okta authored Oct 4, 2024
1 parent a50c7bd commit 68802a2
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 23 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

### Bug Fixes

- **odyssey-react-mui:** add back margin removed in error ([e36cb89](https://github.com/okta/odyssey/commit/e36cb89d20daf7eb68cbc58d8391ea7cf512b281))
- **odyssey-react-mui:** add back no children styling ([2a07fa3](https://github.com/okta/odyssey/commit/2a07fa37130d48206939aa94c42add4a3f105157))
- **odyssey-react-mui:** add back size and full width styling ([11552fd](https://github.com/okta/odyssey/commit/11552fd7818d232535eb89c86d04c3ccc15896b3))
- **odyssey-react-mui:** fix margin start ([478e20e](https://github.com/okta/odyssey/commit/478e20ef320ee26c1fd96e93a1dabb7131808d6f))
- **odyssey-react-mui:** trigger test run ([4c4b3ac](https://github.com/okta/odyssey/commit/4c4b3acde21aab8ade82f8ac25f47d310016c0c0))
- **odyssey-storybook:** add back floatingAction styles ([0b84954](https://github.com/okta/odyssey/commit/0b8495484de11e35e2959c2e3b6dba80394b6a3e))

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

### Features
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"npmClient": "yarn",
"packages": ["packages/*"],
"useNx": false,
"version": "1.24.0"
"version": "1.24.1"
}
4 changes: 4 additions & 0 deletions packages/browserslist-config-odyssey/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

**Note:** Version bump only for package @okta/browserslist-config-odyssey

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

**Note:** Version bump only for package @okta/browserslist-config-odyssey
Expand Down
2 changes: 1 addition & 1 deletion packages/browserslist-config-odyssey/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/browserslist-config-odyssey",
"version": "1.24.0",
"version": "1.24.1",
"description": "Browserslist config for Odyssey, Okta's design system",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/odyssey-babel-preset/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

**Note:** Version bump only for package @okta/odyssey-babel-preset

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

**Note:** Version bump only for package @okta/odyssey-babel-preset
Expand Down
2 changes: 1 addition & 1 deletion packages/odyssey-babel-preset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/odyssey-babel-preset",
"version": "1.24.0",
"version": "1.24.1",
"description": "Babel preset for Odyssey, Okta's design system",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/odyssey-design-tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

**Note:** Version bump only for package @okta/odyssey-design-tokens

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/odyssey-design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/odyssey-design-tokens",
"version": "1.24.0",
"version": "1.24.1",
"description": "Design tokens for Odyssey, Okta's design system",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/odyssey-react-mui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

### Bug Fixes

- **odyssey-react-mui:** add back margin removed in error ([e36cb89](https://github.com/okta/odyssey/commit/e36cb89d20daf7eb68cbc58d8391ea7cf512b281))
- **odyssey-react-mui:** add back no children styling ([2a07fa3](https://github.com/okta/odyssey/commit/2a07fa37130d48206939aa94c42add4a3f105157))
- **odyssey-react-mui:** add back size and full width styling ([11552fd](https://github.com/okta/odyssey/commit/11552fd7818d232535eb89c86d04c3ccc15896b3))
- **odyssey-react-mui:** fix margin start ([478e20e](https://github.com/okta/odyssey/commit/478e20ef320ee26c1fd96e93a1dabb7131808d6f))
- **odyssey-storybook:** add back floatingAction styles ([0b84954](https://github.com/okta/odyssey/commit/0b8495484de11e35e2959c2e3b6dba80394b6a3e))

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/odyssey-react-mui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/odyssey-react-mui",
"version": "1.24.0",
"version": "1.24.1",
"description": "React MUI components for Odyssey, Okta's design system",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down
108 changes: 92 additions & 16 deletions packages/odyssey-react-mui/src/theme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,29 @@ export const components = ({
},
},

...(ownerState.size === "small" && {
height: odysseyTokens.Spacing6,
paddingBlock: odysseyTokens.Spacing2,
paddingInline: odysseyTokens.Spacing3,
fontSize: odysseyTokens.TypographySizeBody,
}),

...(ownerState.size === "large" && {
height: odysseyTokens.Spacing8,
paddingBlock: odysseyTokens.Spacing4,
paddingInline: odysseyTokens.Spacing4,
}),

...(ownerState.fullWidth === true && {
width: "100%",
marginBlock: "0",
marginInline: "0",

"&:not(:last-child)": {
marginBlockEnd: odysseyTokens.Spacing4,
},
}),

...(ownerState.variant === "primary" && {
color: odysseyTokens.HueNeutralWhite,
backgroundColor: odysseyTokens.PalettePrimaryMain,
Expand Down Expand Up @@ -733,28 +756,81 @@ export const components = ({
color: odysseyTokens.TypographyColorDisabled,
},
}),

...(ownerState.variant === "floatingAction" && {
backgroundColor: "transparent",
color: odysseyTokens.TypographyColorAction,

"&:hover": {
backgroundColor: odysseyTokens.HueNeutral100,
},

"&:active": {
backgroundColor: odysseyTokens.HueNeutral200,
},

"&:disabled": {
backgroundColor: "transparent",
color: odysseyTokens.TypographyColorDisabled,
},
}),

...(ownerState.children === "" && {
minWidth: "auto",
padding: odysseyTokens.Spacing3,

[`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {
margin: "0",
},

...(ownerState.size === "large" && {
padding: odysseyTokens.Spacing4,
}),

...(ownerState.size === "small" && {
padding: odysseyTokens.Spacing2,
}),

...(ownerState.size === "large" && {
padding: odysseyTokens.Spacing4,
}),
}),
};
},

endIcon: ({ ownerState }) => ({
display: "inline-flex",
margin: 0,
marginInlineStart: odysseyTokens.Spacing2,
endIcon: ({ ownerState }) => {
const hasNoChildren =
ownerState.children === "" ||
ownerState.children === undefined ||
ownerState.children === null;

...(ownerState.children === undefined && {
marginInlineStart: 0,
}),
}),
return {
display: "inline-flex",
margin: 0,
marginInlineStart: odysseyTokens.Spacing2,

startIcon: ({ ownerState }) => ({
display: "inline-flex",
margin: 0,
marginInlineEnd: odysseyTokens.Spacing2,
...(hasNoChildren && {
marginInlineStart: 0,
}),
};
},

...(ownerState.children === undefined && {
marginInlineEnd: 0,
}),
}),
startIcon: ({ ownerState }) => {
const hasNoChildren =
ownerState.children === "" ||
ownerState.children === undefined ||
ownerState.children === null;

return {
display: "inline-flex",
margin: 0,
marginInlineEnd: odysseyTokens.Spacing2,

...(hasNoChildren && {
marginInlineEnd: 0,
}),
};
},
},
},
MuiButtonBase: {
Expand Down
4 changes: 4 additions & 0 deletions packages/odyssey-storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

**Note:** Version bump only for package @okta/odyssey-storybook

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/odyssey-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/odyssey-storybook",
"version": "1.24.0",
"version": "1.24.1",
"description": "Documentation for Odyssey, Okta's design system",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/odyssey-svgr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)

**Note:** Version bump only for package @okta/odyssey-svgr

## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)

**Note:** Version bump only for package @okta/odyssey-svgr
Expand Down
2 changes: 1 addition & 1 deletion packages/odyssey-svgr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okta/odyssey-svgr",
"version": "1.24.0",
"version": "1.24.1",
"description": "Configuration files for svgr icon conversion",
"author": "Okta, Inc.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 68802a2

Please sign in to comment.