Skip to content

Commit

Permalink
chore: updates (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuignoto authored Apr 5, 2023
1 parent 6fbf661 commit bcbb30a
Show file tree
Hide file tree
Showing 10 changed files with 4,206 additions and 9,539 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,63 @@
"documentation": "documentation"
},
"dependencies": {
"@babel/core": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-classes": "^7.21.0",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@relative-ci/agent": "^4.1.3",
"@sentry/react": "^7.42.0",
"@sentry/tracing": "^7.42.0",
"@sentry/react": "^7.46.0",
"@sentry/tracing": "^7.46.0",
"@types/bluebird": "^3.5.38",
"@types/node": "^18.15.0",
"@types/react": "^18.0.28",
"@types/node": "^18.15.11",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vitest/coverage-c8": "^0.29.2",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitest/coverage-c8": "^0.29.8",
"autoprefixer": "^10.4.14",
"cssnano": "^5.1.15",
"esbuild": "^0.17.11",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"cssnano": "^6.0.0",
"esbuild": "^0.17.15",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"eslint-plugin-typescript-sort-keys": "^2.3.0",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"postcss": "^8.4.21",
"postcss-bem-linter": "^3.3.0",
"postcss-import": "^15.1.0",
"postcss-preset-env": "^8.0.1",
"postcss-preset-env": "^8.3.0",
"postcss-reporter": "^7.0.5",
"postcss-scss": "^4.0.6",
"prettier": "^2.8.4",
"prettier": "^2.8.7",
"pretty-quick": "^3.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remove-files-webpack-plugin": "^1.5.0",
"sass": "^1.59.2",
"snyk": "^1.1117.0",
"stylelint": "15.2.0",
"sass": "^1.60.0",
"snyk": "^1.1139.0",
"stylelint": "15.4.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-order": "^6.0.3",
"stylelint-scss": "^4.4.0",
"stylelint-scss": "^4.6.0",
"thread-loader": "^3.0.4",
"ts-toolbelt": "^9.6.0",
"turbo": "^1.8.3",
"typescript": "^4.9.5",
"webpack": "^5.76.1",
"turbo": "^1.8.8",
"typescript": "^5.0.3",
"webpack": "^5.77.0",
"webpack-stats-plugin": "^1.1.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/components/tabs/widgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function widgets() {
}
}, [media]);

return width > 0 ? (
return +width > 0 || width ? (
<div className="rc-demo-widgets">
<Section size="md" title="Flat tabs">
<Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Widgets = () => {
}
}, [media]);

return width > 0 ? (
return +width > 0 || width ? (
<div className="rc-demo-widgets">
<Section size="md" border={false}>
<Text>
Expand Down
50 changes: 25 additions & 25 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"dependencies": {
"@docsearch/react": "^3.3.3",
"@fortawesome/fontawesome-svg-core": "^6.3.0",
"@fortawesome/free-brands-svg-icons": "^6.3.0",
"@fortawesome/free-solid-svg-icons": "^6.3.0",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-brands-svg-icons": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@stackblitz/sdk": "^1.8.2",
"algoliasearch": "^4.15.0",
"algoliasearch": "^4.17.0",
"classnames": "^2.3.2",
"fast-deep-equal": "^3.1.3",
"normalize.css": "^8.0.1",
Expand All @@ -36,47 +36,47 @@
"react-element-to-jsx-string": "^15.0.0",
"react-feather": "^2.0.10",
"react-responsive": "^9.0.2",
"react-router": "^6.9.0",
"react-router-dom": "^6.9.0",
"react-router": "^6.10.0",
"react-router-dom": "^6.10.0",
"react-syntax-highlighter": "^15.5.0",
"react-transition-group": "^4.4.5",
"resize-observer-polyfill": "^1.5.1",
"use-debounce": "^9.0.3",
"vite": "4.1.4"
"vite": "4.2.1"
},
"devDependencies": {
"@axe-core/react": "^4.6.0",
"@babel/core": "^7.21.0",
"@axe-core/react": "^4.6.1",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@csstools/postcss-sass": "^5.0.1",
"@playwright/test": "^1.31.2",
"@types/react": "^18.0.28",
"@playwright/test": "^1.32.2",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@types/react-instantsearch-dom": "^6.12.3",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-transition-group": "^4.4.5",
"@vitejs/plugin-react": "3.1.0",
"autoprefixer": "^10.4.14",
"cssnano": "^5.1.15",
"esbuild": "^0.17.11",
"cssnano": "^6.0.0",
"esbuild": "^0.17.15",
"postcss": "^8.4.21",
"postcss-bem-linter": "^3.3.0",
"postcss-prefixer": "^2.1.3",
"postcss-preset-env": "^8.0.1",
"prettier": "^2.8.4",
"postcss-preset-env": "^8.3.0",
"prettier": "^2.8.7",
"recoil": "^0.7.7",
"rimraf": "^4.4.0",
"sass": "^1.59.2",
"snyk": "^1.1117.0",
"stylelint": "15.2.0",
"rimraf": "^4.4.1",
"sass": "^1.60.0",
"snyk": "^1.1139.0",
"stylelint": "15.4.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-scss": "^4.4.0",
"typescript": "^4.9.5",
"typescript-plugin-css-modules": "^4.2.3",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-scss": "^4.6.0",
"typescript": "^5.0.3",
"typescript-plugin-css-modules": "^5.0.0",
"use-timer": "^2.0.1",
"vite-plugin-react-svg": "^0.2.0",
"vite-plugin-svgr": "^2.4.0"
Expand Down
9 changes: 8 additions & 1 deletion packages/lib/components/radio/radio.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@use '@design/theme.scss';
@use '@design/animate.scss';
@use '@design/animations.scss';
@use '@design/effects.scss';
@use 'sass:map';

$sizes: (
Expand Down Expand Up @@ -52,6 +53,7 @@ $heights: (

.wrapper:hover:not(.disabled) {
@extend %border-radius;
@include effects.include-transition(background);

&.dark {
background: theme.$gunmetal-gray;
Expand Down Expand Up @@ -80,15 +82,20 @@ $heights: (
position: relative;
width: $val;

&.ico_checked::after {
&::after {
@include position.position-abs('center center');
background: theme.$primary;
@include effects.include-transition-multiple(height width);
border-radius: 100%;
content: '';
display: block;
height: 65%;
width: 65%;
}

&:not(.ico_checked)::after {
background: transparent;
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions packages/lib/design/effects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@
}
}
}

@mixin include-transition($property, $duration: 0.2s, $timing: ease-in) {
transition: $property $duration $timing;
}

@mixin include-transition-multiple($props, $duration: 0.2s, $timing: ease-in) {
transition: $props $duration $timing;
}
28 changes: 14 additions & 14 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"classnames": "^2.3.2",
"fast-deep-equal": "^3.1.3",
"hex-rgb": "^5.0.0",
"nanoid": "^4.0.1",
"nanoid": "^4.0.2",
"use-debounce": "^9.0.3"
},
"peerDependencies": {
Expand All @@ -49,42 +49,42 @@
},
"devDependencies": {
"@csstools/postcss-sass": "^5.0.1",
"@testing-library/dom": "^9.0.1",
"@testing-library/dom": "^9.2.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/bluebird": "^3.5.38",
"@types/jest": "^29.4.0",
"@types/jest": "^29.5.0",
"@types/jest-axe": "^3.5.5",
"@types/node": "^18.15.0",
"@types/node": "^18.15.11",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-transition-group": "^4.4.5",
"@types/testing-library__jest-dom": "^5.14.5",
"@vitejs/plugin-react": "3.1.0",
"@vitest/browser": "^0.29.2",
"@vitest/ui": "^0.29.2",
"@vitest/browser": "^0.29.8",
"@vitest/ui": "^0.29.8",
"autoprefixer": "^10.4.14",
"babel-loader": "^9.1.2",
"c8": "^7.13.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "6.7.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"jest-axe": "^7.0.0",
"jest-axe": "^7.0.1",
"jsdom": "^21.1.1",
"mini-css-extract-plugin": "^2.7.3",
"mini-css-extract-plugin": "^2.7.5",
"postcss": "^8.4.21",
"postcss-loader": "7.0.2",
"postcss-preset-env": "^8.0.1",
"postcss-preset-env": "^8.3.0",
"resize-observer-polyfill": "^1.5.1",
"sass-loader": "13.2.0",
"terser-webpack-plugin": "^5.3.7",
"ts-loader": "^9.4.2",
"ts-toolbelt": "^9.6.0",
"typescript": "^4.9.5",
"typescript-plugin-css-modules": "^4.2.3",
"vite": "4.1.4",
"vitest": "0.29.2",
"webpack": "^5.76.1",
"typescript": "^5.0.3",
"typescript-plugin-css-modules": "^5.0.0",
"vite": "4.2.1",
"vitest": "0.29.8",
"webpack": "^5.77.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
Expand Down
36 changes: 18 additions & 18 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@percy/cli": "^1.20.3",
"@babel/preset-typescript": "^7.21.4",
"@percy/cli": "^1.21.0",
"@percy/storybook": "^4.3.5",
"@storybook/addon-a11y": "^6.5.16",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-docs": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/addon-storysource": "^6.5.16",
"@storybook/addon-a11y": "^7.0.2",
"@storybook/addon-actions": "^7.0.2",
"@storybook/addon-docs": "^7.0.2",
"@storybook/addon-essentials": "^7.0.2",
"@storybook/addon-links": "^7.0.2",
"@storybook/addon-storysource": "^7.0.2",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^6.5.16",
"@storybook/source-loader": "^6.5.16",
"@types/node": "^18.15.0",
"@storybook/react": "^7.0.2",
"@storybook/source-loader": "^7.0.2",
"@types/node": "^18.15.11",
"acorn": "^8.8.2",
"babel-loader": "^9.1.2",
"chromatic": "^6.17.1",
"chromatic": "^6.17.3",
"css-loader": "5.2.6",
"postcss": "^8.4.21",
"postcss-loader": "7.0.2",
"postcss-preset-env": "8.0.1",
"sass": "^1.59.2",
"postcss-preset-env": "8.3.0",
"sass": "^1.60.0",
"sass-loader": "10.1.1",
"style-loader": "2.0.0",
"typescript": "^4.9.5",
"webpack": "^5.76.1"
"typescript": "^5.0.3",
"webpack": "^5.77.0"
},
"dependencies": {
"react": "link:..\\..\\node_modules\\react",
Expand Down
Loading

1 comment on commit bcbb30a

@vercel
Copy link

@vercel vercel bot commented on bcbb30a Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.