From 4947c0d118f8b0872736a9430916cdd5a9c2a606 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:39:04 +0000 Subject: [PATCH] Bump styled-components from 5.3.11 to 6.1.11 (#43057) * Bump styled-components from 5.3.11 to 6.1.11 Bumps [styled-components](https://github.com/styled-components/styled-components) from 5.3.11 to 6.1.11. - [Release notes](https://github.com/styled-components/styled-components/releases) - [Commits](https://github.com/styled-components/styled-components/compare/v5.3.11...v6.1.11) --- updated-dependencies: - dependency-name: styled-components dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Remove @types/styled-components * Add babel-plugin-styled-components * Fix issues after upgrading packages * Update snapshots * Post-merge fixes * Declare @emotion/is-prop-valid as an explicit dependency * Correct formatting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bartosz Leper --- e | 2 +- package.json | 2 +- web/packages/build/package.json | 2 +- web/packages/design/package.json | 1 + .../AnimatedProgressBar.tsx | 2 +- .../__snapshots__/buttons.story.test.tsx.snap | 180 ++++---- .../CardError.story.test.jsx.snap | 2 +- .../__snapshots__/CardIcon.test.jsx.snap | 2 +- .../__snapshots__/CardSuccess.test.jsx.snap | 2 +- web/packages/design/src/Checkbox/Checkbox.tsx | 2 +- .../design/src/DataTable/StyledTable.tsx | 4 +- web/packages/design/src/Input/Input.story.js | 2 + web/packages/design/src/Input/Input.tsx | 8 +- .../design/src/Onboard/WelcomeWrapper.tsx | 2 +- .../WelcomeWrapper.story.test.tsx.snap | 2 +- .../design/src/StepSlider/StepSlider.tsx | 4 +- web/packages/design/src/Text/Text.tsx | 5 +- .../design/src/TextArea/TextArea.story.tsx | 2 + web/packages/design/src/TextArea/TextArea.tsx | 6 +- .../design/src/ThemeProvider/index.tsx | 24 +- .../__snapshots__/Topnav.story.test.jsx.snap | 4 +- web/packages/design/src/system/typography.ts | 22 + .../AssumeStartTime/AssumeStartTime.tsx | 2 +- .../RequestCheckout/RequestCheckout.tsx | 8 +- .../RequestCheckout.story.test.tsx.snap | 246 +++++----- .../ResourceList.story.test.tsx.snap | 424 +++++++++--------- .../RequestDelete.story.test.tsx.snap | 60 +-- .../RequestReview.story.test.tsx.snap | 28 +- .../RequestView.story.test.tsx.snap | 146 +++--- .../AwsLaunchButton/AwsLaunchButton.tsx | 4 +- .../ClusterDropdown/ClusterDropdown.tsx | 2 +- .../__snapshots__/FieldInput.test.tsx.snap | 11 +- .../UploadForm/UploadForm.tsx | 2 +- .../__snapshots__/FormPassword.test.tsx.snap | 72 +-- .../shared/components/MenuLogin/MenuLogin.tsx | 4 +- .../TextSelectCopy.story.test.tsx.snap | 8 +- .../TextSelectCopyMulti.story.test.tsx.snap | 40 +- .../shared/components/ToolTip/ToolTip.tsx | 2 +- .../CardsView/ResourceCard.tsx | 4 +- .../UnifiedResources/FilterPanel.tsx | 4 +- .../ListView/ResourceListItem.tsx | 6 +- .../AccessRequests.story.test.tsx.snap | 8 +- .../__snapshots__/Audit.story.test.tsx.snap | 144 +++--- .../Clusters.story.test.tsx.snap | 60 +-- .../DocumentBlank.story.test.tsx.snap | 4 +- .../DocumentKubeExec.test.tsx | 2 +- .../Console/DocumentNodes/DocumentNodes.tsx | 2 +- .../DocumentNodes.story.test.tsx.snap | 96 ++-- .../__snapshots__/Tabs.story.test.tsx.snap | 4 +- .../__snapshots__/ConnectDialog.test.tsx.snap | 28 +- .../DesktopSession.story.test.tsx.snap | 118 ++--- .../SelectResource/SelectResource.tsx | 4 +- .../SelectResource.story.test.tsx.snap | 8 +- .../teleport/src/Discover/Shared/HintBox.tsx | 2 +- .../ConnectDialog.story.test.tsx.snap | 42 +- web/packages/teleport/src/LocksV2/common.tsx | 2 +- .../__snapshots__/LoginFailed.test.tsx.snap | 4 +- .../__snapshots__/LoginSuccess.test.tsx.snap | 2 +- .../src/Navigation/NavigationItem.tsx | 2 +- .../__snapshots__/Nodes.story.test.tsx.snap | 192 ++++---- .../Recordings.story.test.tsx.snap | 74 +-- .../Sessions.story.test.tsx.snap | 202 ++++----- .../__snapshots__/Support.story.test.tsx.snap | 18 +- .../UserDelete.story.test.tsx.snap | 42 +- .../UserReset.story.test.tsx.snap | 42 +- .../UserTokenLink.story.test.tsx.snap | 28 +- .../__snapshots__/Users.story.test.tsx.snap | 68 +-- .../NewCredentials.story.test.tsx.snap | 140 +++--- .../AgentButtonAdd.story.test.tsx.snap | 20 +- .../src/components/BannerList/Banner.tsx | 4 +- .../FormLogin.story.test.tsx.snap | 240 +++++----- .../teleport/src/components/Layout/Layout.jsx | 2 +- .../ReAuthenticate.story.test.tsx.snap | 76 ++-- .../RecoveryCodes.story.test.tsx.snap | 36 +- .../teleport/src/components/Tabs/Tabs.tsx | 8 +- .../components/Wizard/Navigation/Bullet.tsx | 4 +- .../NewRequest/NewRequest.tsx | 2 +- .../RequestList/RequestList.tsx | 2 +- .../teleterm/src/ui/Search/SearchBar.tsx | 2 +- .../src/ui/Search/pickers/ActionPicker.tsx | 2 +- .../src/ui/Search/pickers/ResultList.tsx | 2 +- .../src/ui/ThemeProvider/ThemeProvider.tsx | 4 +- .../ConnectionStatusIndicator.tsx | 4 +- .../VirtualScroll/VirtualScroll.tsx | 4 +- yarn.lock | 96 ++-- 85 files changed, 1639 insertions(+), 1562 deletions(-) diff --git a/e b/e index f475736c2f1eb..18549064b7b9e 160000 --- a/e +++ b/e @@ -1 +1 @@ -Subproject commit f475736c2f1ebeff02af475fb8cb45eb9957351f +Subproject commit 18549064b7b9e734c91c1a2c667cb50ca7cb672e diff --git a/package.json b/package.json index 7e0f2cee2e475..9d849b0b1999d 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "react-router-dom": "5.1.1", "react-select": "^3.0.8", "react-transition-group": "^4.4.5", - "styled-components": "5.3.11", + "styled-components": "6.1.11", "tslib": "^2.6.3", "whatwg-fetch": "^3.6.20" }, diff --git a/web/packages/build/package.json b/web/packages/build/package.json index 8a1d36f8a924e..425cbe59b9dc4 100644 --- a/web/packages/build/package.json +++ b/web/packages/build/package.json @@ -25,6 +25,7 @@ "@types/jsdom": "^21.1.7", "@vitejs/plugin-react-swc": "^3.7.0", "babel-loader": "^8.2.5", + "babel-plugin-styled-components": "^2.1.4", "eslint": "^8.56.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-babel": "^5.3.1", @@ -47,4 +48,3 @@ "ts-loader": "^9.5.1" } } - diff --git a/web/packages/design/package.json b/web/packages/design/package.json index 90aa7efb22008..fbb8f80146887 100644 --- a/web/packages/design/package.json +++ b/web/packages/design/package.json @@ -10,6 +10,7 @@ "directory": "packages/design" }, "dependencies": { + "@emotion/is-prop-valid": "1.2.2", "styled-system": "^3.1.11", "csstype": "^3.0.2" }, diff --git a/web/packages/design/src/AnimatedProgressBar/AnimatedProgressBar.tsx b/web/packages/design/src/AnimatedProgressBar/AnimatedProgressBar.tsx index 5bf5d8bfc9c35..d5ad45a1f3bd0 100644 --- a/web/packages/design/src/AnimatedProgressBar/AnimatedProgressBar.tsx +++ b/web/packages/design/src/AnimatedProgressBar/AnimatedProgressBar.tsx @@ -66,7 +66,7 @@ const Bar = styled.span` overflow: hidden; width: 118px; - ::after { + &::after { content: ''; position: absolute; top: 0; diff --git a/web/packages/design/src/Button/__snapshots__/buttons.story.test.tsx.snap b/web/packages/design/src/Button/__snapshots__/buttons.story.test.tsx.snap index 20695cb3da103..b3e27d29c76c0 100644 --- a/web/packages/design/src/Button/__snapshots__/buttons.story.test.tsx.snap +++ b/web/packages/design/src/Button/__snapshots__/buttons.story.test.tsx.snap @@ -25,7 +25,7 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); border-color: transparent; border-width: 1.5px; padding: 0 30.5px; @@ -38,8 +38,8 @@ exports[`buttons 1`] = ` .c3:focus-visible, .teleport-button__force-focus-visible .c3 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -61,7 +61,7 @@ exports[`buttons 1`] = ` .c3:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -111,7 +111,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c4:active, @@ -123,7 +123,7 @@ exports[`buttons 1`] = ` .c4:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -173,7 +173,7 @@ exports[`buttons 1`] = ` background-color: #FF8179; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c5:active, @@ -185,7 +185,7 @@ exports[`buttons 1`] = ` .c5:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -235,7 +235,7 @@ exports[`buttons 1`] = ` background-color: #33CCB8; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c6:active, @@ -247,7 +247,7 @@ exports[`buttons 1`] = ` .c6:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -273,7 +273,7 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); border-color: transparent; border-width: 1.5px; padding: 0 30.5px; @@ -286,8 +286,8 @@ exports[`buttons 1`] = ` .c7:focus-visible, .teleport-button__force-focus-visible .c7 { background-color: transparent; - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -296,7 +296,7 @@ exports[`buttons 1`] = ` .teleport-button__force-hover .c7 { background-color: rgba(255,255,255,0.07); border-color: transparent; - color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); box-shadow: none; } @@ -309,7 +309,7 @@ exports[`buttons 1`] = ` .c7:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -356,7 +356,7 @@ exports[`buttons 1`] = ` .c8:hover, .teleport-button__force-hover .c8 { - background-color: rgba(159,133,255,0.1); + background-color: rgba(159,133,255, 0.1); border-color: transparent; color: #B29DFF; box-shadow: none; @@ -364,14 +364,14 @@ exports[`buttons 1`] = ` .c8:active, .teleport-button__force-active .c8 { - background-color: rgba(159,133,255,0.18); + background-color: rgba(159,133,255, 0.18); border-color: transparent; color: #C5B6FF; } .c8:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -418,7 +418,7 @@ exports[`buttons 1`] = ` .c9:hover, .teleport-button__force-hover .c9 { - background-color: rgba(255,98,87,0.1); + background-color: rgba(255, 98, 87, 0.1); border-color: transparent; color: #FF8179; box-shadow: none; @@ -426,14 +426,14 @@ exports[`buttons 1`] = ` .c9:active, .teleport-button__force-active .c9 { - background-color: rgba(255,98,87,0.18); + background-color: rgba(255, 98, 87, 0.18); border-color: transparent; color: #FF8179; } .c9:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -480,7 +480,7 @@ exports[`buttons 1`] = ` .c10:hover, .teleport-button__force-hover .c10 { - background-color: rgba(0,191,166,0.1); + background-color: rgba(0, 191, 166, 0.1); border-color: transparent; color: #33CCB8; box-shadow: none; @@ -488,14 +488,14 @@ exports[`buttons 1`] = ` .c10:active, .teleport-button__force-active .c10 { - background-color: rgba(0,191,166,0.18); + background-color: rgba(0, 191, 166, 0.18); border-color: transparent; color: #33CCB8; } .c10:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -521,8 +521,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 30.5px; min-height: 32px; @@ -534,8 +534,8 @@ exports[`buttons 1`] = ` .c11:focus-visible, .teleport-button__force-focus-visible .c11 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -557,7 +557,7 @@ exports[`buttons 1`] = ` .c11:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -607,7 +607,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c12:active, @@ -619,7 +619,7 @@ exports[`buttons 1`] = ` .c12:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -669,7 +669,7 @@ exports[`buttons 1`] = ` background-color: #FF8179; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c13:active, @@ -681,7 +681,7 @@ exports[`buttons 1`] = ` .c13:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -731,7 +731,7 @@ exports[`buttons 1`] = ` background-color: #33CCB8; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c14:active, @@ -743,7 +743,7 @@ exports[`buttons 1`] = ` .c14:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -793,7 +793,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c17:active, @@ -805,7 +805,7 @@ exports[`buttons 1`] = ` .c17:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -855,7 +855,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c18:active, @@ -867,7 +867,7 @@ exports[`buttons 1`] = ` .c18:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -917,7 +917,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c19:active, @@ -929,7 +929,7 @@ exports[`buttons 1`] = ` .c19:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -979,7 +979,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c22:active, @@ -991,7 +991,7 @@ exports[`buttons 1`] = ` .c22:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1041,7 +1041,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c23:active, @@ -1053,7 +1053,7 @@ exports[`buttons 1`] = ` .c23:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1103,7 +1103,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c24:active, @@ -1115,7 +1115,7 @@ exports[`buttons 1`] = ` .c24:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1165,7 +1165,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c25:active, @@ -1177,7 +1177,7 @@ exports[`buttons 1`] = ` .c25:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1228,7 +1228,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c26:active, @@ -1240,7 +1240,7 @@ exports[`buttons 1`] = ` .c26:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1291,7 +1291,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c27:active, @@ -1303,7 +1303,7 @@ exports[`buttons 1`] = ` .c27:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1329,8 +1329,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 30.5px; min-height: 32px; @@ -1344,8 +1344,8 @@ exports[`buttons 1`] = ` .c31:focus-visible, .teleport-button__force-focus-visible .c31 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -1367,7 +1367,7 @@ exports[`buttons 1`] = ` .c31:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1393,8 +1393,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 30.5px; min-height: 40px; @@ -1406,8 +1406,8 @@ exports[`buttons 1`] = ` .c34:focus-visible, .teleport-button__force-focus-visible .c34 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -1429,7 +1429,7 @@ exports[`buttons 1`] = ` .c34:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1455,8 +1455,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 30.5px; min-height: 40px; @@ -1470,8 +1470,8 @@ exports[`buttons 1`] = ` .c35:focus-visible, .teleport-button__force-focus-visible .c35 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -1493,7 +1493,7 @@ exports[`buttons 1`] = ` .c35:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1519,8 +1519,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 6.5px; min-height: 24px; @@ -1532,8 +1532,8 @@ exports[`buttons 1`] = ` .c36:focus-visible, .teleport-button__force-focus-visible .c36 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -1555,7 +1555,7 @@ exports[`buttons 1`] = ` .c36:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1581,8 +1581,8 @@ exports[`buttons 1`] = ` transition: background-color 0.1s,border-color 0.1s,outline-color 0.1s,box-shadow 0.1s; -webkit-font-smoothing: antialiased; background-color: transparent; - color: rgba(255,255,255,0.54); - border-color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); + border-color: rgba(255, 255, 255, 0.54); border-width: 1.5px; padding: 0 6.5px; min-height: 24px; @@ -1596,8 +1596,8 @@ exports[`buttons 1`] = ` .c37:focus-visible, .teleport-button__force-focus-visible .c37 { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.72); - border-color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); + border-color: rgba(255, 255, 255, 0.72); border-radius: 4px; outline: none; } @@ -1619,7 +1619,7 @@ exports[`buttons 1`] = ` .c37:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1669,7 +1669,7 @@ exports[`buttons 1`] = ` background-color: #B29DFF; border-color: transparent; color: #000000; - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.20), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),0px 5px 8px 0px rgba(0, 0, 0, 0.14),0px 1px 14px 0px rgba(0, 0, 0, 0.12); } .c38:active, @@ -1681,7 +1681,7 @@ exports[`buttons 1`] = ` .c38:disabled { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1690,7 +1690,7 @@ exports[`buttons 1`] = ` .c38[disabled] { background-color: rgba(255,255,255,0.07); - color: rgba(255,255,255,0.3); + color: rgba(255, 255, 255, 0.3); border-color: transparent; box-shadow: none; cursor: auto; @@ -1718,7 +1718,7 @@ exports[`buttons 1`] = ` } .c39:disabled { - color: rgba(255,255,255,0.36); + color: rgba(255, 255, 255, 0.36); cursor: default; } @@ -1752,7 +1752,7 @@ exports[`buttons 1`] = ` } .c41:disabled { - color: rgba(255,255,255,0.36); + color: rgba(255, 255, 255, 0.36); cursor: default; } @@ -1786,7 +1786,7 @@ exports[`buttons 1`] = ` } .c42:disabled { - color: rgba(255,255,255,0.36); + color: rgba(255, 255, 255, 0.36); cursor: default; } @@ -1834,7 +1834,7 @@ exports[`buttons 1`] = ` display: inline-flex; align-items: center; justify-content: center; - color: rgba(255,255,255,0.72); + color: rgba(255, 255, 255, 0.72); } .c30 { @@ -1850,7 +1850,7 @@ exports[`buttons 1`] = ` .c21 { appearance: none; - border: 1px solid rgba(255,255,255,0.54); + border: 1px solid rgba(255, 255, 255, 0.54); border-radius: 4px; box-sizing: border-box; display: block; @@ -1867,7 +1867,7 @@ exports[`buttons 1`] = ` .c21:hover, .c21:focus, .c21:active { - border: 1px solid rgba(255,255,255,0.72); + border: 1px solid rgba(255, 255, 255, 0.72); } .c21::-ms-clear { @@ -1875,7 +1875,7 @@ exports[`buttons 1`] = ` } .c21::placeholder { - color: rgba(255,255,255,0.54); + color: rgba(255, 255, 255, 0.54); opacity: 1; } @@ -1884,8 +1884,8 @@ exports[`buttons 1`] = ` } .c21:disabled { - color: rgba(255,255,255,0.36); - border-color: rgba(255,255,255,0.36); + color: rgba(255, 255, 255, 0.36); + border-color: rgba(255, 255, 255, 0.36); } .c1 { diff --git a/web/packages/design/src/CardError/__snapshots__/CardError.story.test.jsx.snap b/web/packages/design/src/CardError/__snapshots__/CardError.story.test.jsx.snap index 06d044cfc2ab0..02cbfed1c68e4 100644 --- a/web/packages/design/src/CardError/__snapshots__/CardError.story.test.jsx.snap +++ b/web/packages/design/src/CardError/__snapshots__/CardError.story.test.jsx.snap @@ -37,7 +37,7 @@ exports[`rendering of Error Cards 1`] = ` } .c1 { - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px rgba(0,0,0,0.14),0px 1px 18px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px rgba(0, 0, 0, 0.14),0px 1px 18px rgba(0, 0, 0, 0.12); border-radius: 8px; background-color: #222C59; } diff --git a/web/packages/design/src/CardIcon/__snapshots__/CardIcon.test.jsx.snap b/web/packages/design/src/CardIcon/__snapshots__/CardIcon.test.jsx.snap index f114018219b1e..42371d7473af2 100644 --- a/web/packages/design/src/CardIcon/__snapshots__/CardIcon.test.jsx.snap +++ b/web/packages/design/src/CardIcon/__snapshots__/CardIcon.test.jsx.snap @@ -13,7 +13,7 @@ exports[`rendering of CardIcon components 1`] = ` } .c1 { - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px rgba(0,0,0,0.14),0px 1px 18px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px rgba(0, 0, 0, 0.14),0px 1px 18px rgba(0, 0, 0, 0.12); border-radius: 8px; background-color: #222C59; } diff --git a/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.jsx.snap b/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.jsx.snap index 23c5497cb8331..41bc1987adb82 100644 --- a/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.jsx.snap +++ b/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.jsx.snap @@ -13,7 +13,7 @@ exports[`rendering of CardSuccess components 1`] = ` } .c1 { - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px rgba(0,0,0,0.14),0px 1px 18px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px rgba(0, 0, 0, 0.14),0px 1px 18px rgba(0, 0, 0, 0.12); border-radius: 8px; background-color: #222C59; } diff --git a/web/packages/design/src/Checkbox/Checkbox.tsx b/web/packages/design/src/Checkbox/Checkbox.tsx index d5be0f3009e1e..3843036c91c01 100644 --- a/web/packages/design/src/Checkbox/Checkbox.tsx +++ b/web/packages/design/src/Checkbox/Checkbox.tsx @@ -106,7 +106,7 @@ const Checkmark = styled(Icon.CheckThick)` const CheckboxInternal = styled.input.attrs(props => ({ // TODO(bl-nero): Make radio buttons a separate control. type: props.type || 'checkbox', -}))` +}))<{ cbSize?: CheckboxSize }>` // reset the appearance so we can style the background -webkit-appearance: none; -moz-appearance: none; diff --git a/web/packages/design/src/DataTable/StyledTable.tsx b/web/packages/design/src/DataTable/StyledTable.tsx index d938dc2722732..4995206f2e4b5 100644 --- a/web/packages/design/src/DataTable/StyledTable.tsx +++ b/web/packages/design/src/DataTable/StyledTable.tsx @@ -75,13 +75,13 @@ export const StyledTable = styled.table` border-top: ${props => props.theme.borders[2]} ${props => props.theme.colors.spotBackground[0]}; - :hover { + &:hover { border-top: ${props => props.theme.borders[2]} rgba(0, 0, 0, 0); background-color: ${props => props.theme.colors.levels.surface}; // We use a pseudo element for the shadow with position: absolute in order to prevent // the shadow from increasing the size of the layout and causing scrollbar flicker. - :after { + &:after { box-shadow: ${props => props.theme.boxShadow[3]}; content: ''; position: absolute; diff --git a/web/packages/design/src/Input/Input.story.js b/web/packages/design/src/Input/Input.story.js index e741ab64d5558..42bdc2ef164cc 100644 --- a/web/packages/design/src/Input/Input.story.js +++ b/web/packages/design/src/Input/Input.story.js @@ -28,5 +28,7 @@ export const Inputs = () => ( <> + + ); diff --git a/web/packages/design/src/Input/Input.tsx b/web/packages/design/src/Input/Input.tsx index 59726300324d5..f4e66cf180471 100644 --- a/web/packages/design/src/Input/Input.tsx +++ b/web/packages/design/src/Input/Input.tsx @@ -67,20 +67,20 @@ const Input = styled.input` border: 1px solid ${props => props.theme.colors.text.slightlyMuted}; } - ::-ms-clear { + &::-ms-clear { display: none; } - ::placeholder { + &::placeholder { color: ${props => props.theme.colors.text.muted}; opacity: 1; } - :read-only { + &:read-only { cursor: not-allowed; } - :disabled { + &:disabled { color: ${props => props.theme.colors.text.disabled}; border-color: ${props => props.theme.colors.text.disabled}; } diff --git a/web/packages/design/src/Onboard/WelcomeWrapper.tsx b/web/packages/design/src/Onboard/WelcomeWrapper.tsx index 8b2324322ef3e..47532dd7af467 100644 --- a/web/packages/design/src/Onboard/WelcomeWrapper.tsx +++ b/web/packages/design/src/Onboard/WelcomeWrapper.tsx @@ -61,7 +61,7 @@ const OnboardWrapper = styled.div` background-size: cover; // leveraging pseudo element for opacity/blur - ::after { + &::after { content: ''; top: 0; left: 0; diff --git a/web/packages/design/src/Onboard/__snapshots__/WelcomeWrapper.story.test.tsx.snap b/web/packages/design/src/Onboard/__snapshots__/WelcomeWrapper.story.test.tsx.snap index 027b10bea88bd..cda95bd560676 100644 --- a/web/packages/design/src/Onboard/__snapshots__/WelcomeWrapper.story.test.tsx.snap +++ b/web/packages/design/src/Onboard/__snapshots__/WelcomeWrapper.story.test.tsx.snap @@ -11,7 +11,7 @@ exports[`wrapper 1`] = ` } .c6 { - box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px rgba(0,0,0,0.14),0px 1px 18px rgba(0,0,0,0.12); + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px rgba(0, 0, 0, 0.14),0px 1px 18px rgba(0, 0, 0, 0.12); border-radius: 8px; background-color: #222C59; } diff --git a/web/packages/design/src/StepSlider/StepSlider.tsx b/web/packages/design/src/StepSlider/StepSlider.tsx index 3bb73e14fba43..4cab9f3a42b73 100644 --- a/web/packages/design/src/StepSlider/StepSlider.tsx +++ b/web/packages/design/src/StepSlider/StepSlider.tsx @@ -246,8 +246,8 @@ const HiddenBox = styled.div` position: absolute; `; -const Wrap = styled.div( - ({ tDuration }: { tDuration: number }) => ` +const Wrap = styled.div<{ tDuration: number }>( + ({ tDuration }) => ` .prev-slide-enter { transform: translateX(-100%); diff --git a/web/packages/design/src/Text/Text.tsx b/web/packages/design/src/Text/Text.tsx index 527bf56c1f041..dc2ba10535f31 100644 --- a/web/packages/design/src/Text/Text.tsx +++ b/web/packages/design/src/Text/Text.tsx @@ -36,6 +36,7 @@ import { fontWeight, } from 'design/system'; import { fontWeights } from 'design/theme/typography'; +import { shouldForwardTypographyProp } from 'design/system/typography'; interface FontWeightProps { fontWeight?: ResponsiveValue; @@ -49,7 +50,9 @@ export interface TextProps TextAlignProps, FontWeightProps {} -const Text = styled.div` +const Text = styled.div.withConfig({ + shouldForwardProp: shouldForwardTypographyProp, +})` overflow: hidden; text-overflow: ellipsis; ${typography} diff --git a/web/packages/design/src/TextArea/TextArea.story.tsx b/web/packages/design/src/TextArea/TextArea.story.tsx index 045dbee380bfe..3bf2692bc14a4 100644 --- a/web/packages/design/src/TextArea/TextArea.story.tsx +++ b/web/packages/design/src/TextArea/TextArea.story.tsx @@ -28,6 +28,8 @@ export const TextAreas = () => ( <>