Skip to content

Commit

Permalink
chore: upgrade dependencies for minors and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Aug 23, 2024
1 parent 67515ed commit 905e17c
Show file tree
Hide file tree
Showing 24 changed files with 1,079 additions and 636 deletions.
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,48 +74,48 @@
"url": "https://github.com/WTTJ/welcome-ui/issues"
},
"devDependencies": {
"@babel/cli": "7.22.10",
"@babel/core": "7.24.8",
"@babel/eslint-parser": "^7.22.11",
"@babel/cli": "7.24.8",
"@babel/core": "7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-transform-modules-commonjs": "7.23.0",
"@babel/plugin-transform-runtime": "^7.22.10",
"@babel/preset-env": "7.24.7",
"@babel/preset-react": "7.22.15",
"@babel/plugin-transform-modules-commonjs": "7.24.8",
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "^7.22.11",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@swc/core": "^1.3.86",
"@swc/core": "^1.7.14",
"@swc/jest": "^0.2.29",
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^14.2.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "14.5.2",
"@types/emoji-mart": "3.0.9",
"@types/jest": "^29.5.4",
"@types/emoji-mart": "3.0.14",
"@types/jest": "^29.5.12",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.escaperegexp": "^4.1.6",
"@types/lodash.groupby": "^4.6.6",
"@types/lodash.range": "^3.2.6",
"@types/lodash.range": "^3.2.9",
"@types/ramda": "^0.29.2",
"@types/react": "18.0.25",
"@types/react-dom": "18.2.7",
"@types/react-window": "^1.8.5",
"@types/styled-components": "^5.1.25",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@types/react-window": "^1.8.8",
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@vusion/webfonts-generator": "^0.8.0",
"@xstyled/styled-components": "^3.7.3",
"aws-sdk": "^2.1397.0",
"babel-jest": "29.6.4",
"aws-sdk": "^2.1681.0",
"babel-jest": "29.7.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"colors": "^1.4.0",
"conventional-github-releaser": "^3.1.3",
"date-fns": "^2.30.0",
"depcheck": "^1.4.6",
"depcheck": "^1.4.7",
"esbuild": "^0.17.11",
"esbuild-plugin-replace": "^1.4.0",
"esm": "^3.2.25",
Expand All @@ -129,14 +129,14 @@
"minimist": "1.2.8",
"onchange": "^7.0.2",
"postcss-styled-syntax": "^0.5.0",
"react": "^18.1.0",
"react": "^18.3.1",
"react-docgen-typescript": "^2.2.2",
"react-dom": "^18.1.0",
"react-router-dom": "6.16.0",
"react-dom": "^18.3.1",
"react-router-dom": "6.26.1",
"rimraf": "^4.1.1",
"standard-version": "9.5.0",
"styled-components": "^5.3.9",
"svgo": "^3.0.1",
"svgo": "^3.3.2",
"typescript": "5.0.2",
"wttj-config": "^2.6.2",
"yargs": "^17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/Breadcrumb/src/Item.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Item = styled.aBox`
}
`

export const Separator = styled.span`
export const Separator = styled.spanBox`
${th('breadcrumbs.separator')};
display: flex;
align-items: center;
Expand Down
6 changes: 3 additions & 3 deletions packages/Breadcrumb/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ interface GradientProps {
gradientBackground: Colors
}

export const StartGradient = styled.span<GradientProps>(
export const StartGradient = styled.spanBox<GradientProps>(
({ gradientBackground, theme }) => css`
left: 0;
background-image: ${gradient(theme as Theme, gradientBackground)};
transform-origin: left;
`
)

export const EndGradient = styled.span<GradientProps>(
export const EndGradient = styled.spanBox<GradientProps>(
({ gradientBackground, theme }) => css`
right: 0;
background-image: ${gradient(theme as Theme, gradientBackground, 'left')};
Expand All @@ -39,7 +39,7 @@ export const Breadcrumb = styled(Box)`
}
`

export const List = styled.ol`
export const List = styled.olBox`
display: inline-flex;
align-items: center;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion packages/ButtonGroup/src/styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled, { system } from '@xstyled/styled-components'

export const ButtonGroup = styled.div`
export const ButtonGroup = styled.divBox`
display: inline-flex;
flex-wrap: wrap;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion packages/DateTimePicker/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const focusStyles = css`
}
`

export const DateTimePicker = styled.div`
export const DateTimePicker = styled.divBox`
position: relative;
display: inline-flex;
flex-wrap: nowrap;
Expand Down
2 changes: 1 addition & 1 deletion packages/DateTimePickerCommon/src/CustomPopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const CustomPopper = ({
return <StyledCustomPopper popperStyles={popperProps}>{children}</StyledCustomPopper>
}

const StyledCustomPopper = styled.div(
const StyledCustomPopper = styled.divBox(
({ popperStyles }: { popperStyles: CSSObject }) => css`
${datePickerStyles};
${fixAriaMessageStyle};
Expand Down
4 changes: 2 additions & 2 deletions packages/Field/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type IconWrapperProps = {
size?: FieldIconSize
}

export const IconWrapper = styled.div<IconWrapperProps>(
export const IconWrapper = styled.divBox<IconWrapperProps>(
({ iconPlacement, size }) => css`
position: absolute;
top: 0;
Expand Down Expand Up @@ -89,7 +89,7 @@ export const IconWrapper = styled.div<IconWrapperProps>(
`
)

export const IconGroupWrapper = styled.div(
export const IconGroupWrapper = styled.divBox(
({ size }: { size: FieldIconSize }) => css`
position: absolute;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/FileDrop/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const FilePreview = styled.div`
justify-content: center;
`

export const ImagePreview = styled.img`
export const ImagePreview = styled.imgBox`
max-height: 100%;
max-width: 100%;
object-fit: contain;
Expand Down
4 changes: 2 additions & 2 deletions packages/MarkdownEditor/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const Toolbar = styled.div`
z-index: 1;
`

export const ToolbarIcon = styled.a.withConfig({ shouldForwardProp })<ToolbarIconOptions>(
export const ToolbarIcon = styled.aBox.withConfig({ shouldForwardProp })<ToolbarIconOptions>(
({ active }) => css`
display: flex;
align-items: center;
Expand Down Expand Up @@ -91,7 +91,7 @@ export const EmojiPicker = styled.div`
right: ${th('space.md')};
`

export const Actions = styled.div`
export const Actions = styled.divBox`
position: absolute;
bottom: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/Modal/src/Assets/AssetWithTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type AssetWithTitleProps = {
const titleBlockMobile = '4rem'
const titleBlockDesktop = '6rem'

const Wrapper = styled.div`
const Wrapper = styled.divBox`
display: flex;
flex-direction: column;
Expand Down
6 changes: 3 additions & 3 deletions packages/Pagination/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const List = styled.ul`
margin: 0;
`

export const Item = styled.li`
export const Item = styled.liBox`
display: inline-block;
vertical-align: bottom;
padding: 0;
Expand Down Expand Up @@ -47,7 +47,7 @@ export const abstractLinkStyle = css`
}
`

export const ArrowLink = styled.a(
export const ArrowLink = styled.aBox(
props => css`
${abstractLinkStyle};
${props['aria-disabled'] &&
Expand All @@ -58,7 +58,7 @@ export const ArrowLink = styled.a(
`
)

export const PageLink = styled.a(
export const PageLink = styled.aBox(
props => css`
${abstractLinkStyle};
${props['aria-current'] && th('paginations.active')}
Expand Down
2 changes: 1 addition & 1 deletion packages/RadioGroup/src/styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled, { css, system } from '@xstyled/styled-components'
import { WuiProps } from '@welcome-ui/system'

export const Radios = styled.div<{
export const Radios = styled.divBox<{
flexDirection?: WuiProps['flexDirection']
}>(
({ flexDirection }) => css`
Expand Down
2 changes: 1 addition & 1 deletion packages/Select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"sideEffects": false,
"homepage": "https://welcome-ui.com/components/select",
"devDependencies": {
"@types/lodash.capitalize": "^4.2.6",
"@types/lodash.capitalize": "^4.2.9",
"lodash.capitalize": "^4.2.1"
}
}
8 changes: 4 additions & 4 deletions packages/Select/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { IconWrapper as WUIIconWrapper } from '@welcome-ui/field'

import { SelectOptions } from './index'

export const IconWrapper = styled(WUIIconWrapper)``

export const Wrapper = styled('div').withConfig({ shouldForwardProp })<{ disabled: boolean }>(
({ disabled }) => css`
position: relative;
Expand All @@ -23,8 +25,6 @@ export const Wrapper = styled('div').withConfig({ shouldForwardProp })<{ disable
`
)

export const IconWrapper = styled(WUIIconWrapper)``

export const InputWrapper = styled.div`
position: relative;
`
Expand Down Expand Up @@ -123,7 +123,7 @@ export const Item = styled.li(
`
)

export const Indicators = styled.div(
export const Indicators = styled.divBox(
({ size }: { size: Size }) => css`
position: absolute;
padding: 0;
Expand Down Expand Up @@ -162,7 +162,7 @@ export const DropDownIndicator = styled.button.withConfig({ shouldForwardProp })
`
)

export const Tags = styled.div`
export const Tags = styled.divBox`
margin-top: lg;
${/* sc-selector */ StyledTag}:not(:last-child) {
Expand Down
3 changes: 2 additions & 1 deletion packages/Slider/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Hint } from '@welcome-ui/hint'

type BorderProps = {
borderSelectorColor?: string
disabled?: boolean
}

const sliderSelector = css`
Expand Down Expand Up @@ -212,7 +213,7 @@ type OutputProps = {
isVisible?: boolean
}

export const Output = styled.output<OutputProps>(
export const Output = styled.outputBox<OutputProps>(
({ isVisible }) => css`
opacity: 0;
visibility: hidden;
Expand Down
Loading

0 comments on commit 905e17c

Please sign in to comment.