Skip to content

Commit 23c79ea

Browse files
authored
chore: Bump emotion and pin error-ex packages
Sets a resolution for error-ex to be 1.3.4 since 1.3.3 was vulnerable Updates emotion to 11.14.0 minor change to Disclosure documentation and type
1 parent c060c7c commit 23c79ea

File tree

4 files changed

+206
-721
lines changed

4 files changed

+206
-721
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "1.2.0",
55
"author": "Codecademy Engineers <dev@codecademy.com>",
66
"dependencies": {
7-
"@emotion/react": "11.11.1",
8-
"@emotion/styled": "11.11.0",
7+
"@emotion/react": "11.14.0",
8+
"@emotion/styled": "11.14.0",
99
"@vidstack/react": "^1.12.12",
1010
"core-js": "3.7.0",
1111
"lodash": "^4.17.5",
@@ -113,7 +113,8 @@
113113
"private": true,
114114
"repository": "git@github.com:Codecademy/gamut.git",
115115
"resolutions": {
116-
"@typescript-eslint/utils": "^5.15.0"
116+
"@typescript-eslint/utils": "^5.15.0",
117+
"error-ex": "1.3.4"
117118
},
118119
"scripts": {
119120
"build": "nx run-many --target=build --all",

packages/gamut/src/Disclosure/elements.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@ export const StyledFillButton = styled(FillButton)(
103103
})
104104
);
105105

106-
export type DisclosureBodyWrapperStyles = StyleProps<
107-
typeof disclosureBodyWrapperStates
108-
>;
109-
110106
const disclosureBodyWrapperStates = states({
111107
hasPanelBg: {
112108
bg: 'background-selected',
113109
p: 8,
114110
},
115111
});
116112

113+
export type DisclosureBodyWrapperStyles = StyleProps<
114+
typeof disclosureBodyWrapperStates
115+
>;
116+
117117
export const DisclosureBodyWrapper = styled(
118118
FlexBox
119119
)<DisclosureBodyWrapperStyles>(disclosureBodyWrapperStates);

packages/styleguide/src/lib/Molecules/Disclosure/Disclosure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Use a `Disclosure` to progressively reveal information, giving users the option
4949

5050
### Spacing options
5151

52-
`spacing` is an optional prop you can pass to `Disclosure`. By default it's set to `"normal"`, though you can set it to `"condensed"` or `"compact"` as well. Spacing will determine the height of the heading, the size of the chevron icon, as well as the padding of both the heading and the body.
52+
`spacing` is an optional prop that controls the height of the heading, the size of the chevron icon, as well as the padding of both the heading and the body. By default it's set to `"normal"`though you can set it to `"condensed"` or `"compact"` as well.
5353

5454
<Canvas of={DisclosureStories.Normal} />
5555
<Canvas of={DisclosureStories.Condensed} />

0 commit comments

Comments
 (0)