-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to react 18 and chakra v2 (#7292)
* feat: upgrade react and chakra-ui react v17 -> react v18 chakra v1 -> chakra v2 * fix: breaking changes from Chakra v2 * fix: use React 18 * feat: update framer-motion, MotionBox instantiation * feat: update changed React.FC to FCC prop type * fix: sync all type-fest package types * fix: remove unnecessary package patches * feat: remove unnecessary scripts and script comments * fix: correctly generate chakra theme types * fix: revert motionbox back to old implementation new implementation doesn't work lol * fix: upgrade serverless type-fest to sync with rest of app * fix: use updated useToken call signature * fix: update react-joyride for React 18 compat * fix: types for allowed MyInfo types * fix: broken types assertions or code raised by linter * fix: invalid React SVG prop clip-path -> clipPath * fix: replace dnd package with React 18 compatible package * fix: update package to remove console warning about deprecated calls ReactMarkdown: Support for defaultProps will be removed from function components in a future major release. * fix: temporary fix for menu focus color desync final fix is to move to OGPDS * feat: update `@testing-library/*` packages remove unused testing-library/dom package * feat: lock storybook packages * fix: correctly upgrade virus-scanner type-fest package * fix: use `isDisabled` prop over disabled will not correctly set state if isDisabled is used instead * fix: test assertions due to RTL changes * fix: upgrade floating-ui package for compatibility * fix: compat issues in ChakraUI v2 * feat: update input theming for ChakraUI v2 * fix: NumberInput render * feat: update Drawer and Modal themes to have background using cssVars * fix: use explicit style context required by Chakra V2 * fix: correctly import from component Button * fix: update margin due to flex using `gap` now instead of the margin-top previously, which allowed for margin collapse * fix: update Rating component spacing due to flex gap change in chakra * fix: update YesNo field margins due to Flex gap change * fix: weird margins with collaborator menu, match width * fix: use __css instead of sx for FeatureBanner or text will be space-betweened * fix: button spacing for CreateWorkspaceModal * fix: button spacing for DeleteWorkspaceModal * fix: button spacing for RenameWorkspaceModal * fix: spacing on LandingPage sections * feat: update ParagraphField story to catch multiline changes too * feat: remove unnecessary focus-visible package * feat: update `isTruncated` -> `noOfLines` * feat: fix width of PermissionDropdown for consistent widths * fix: align ViewOnlyPermission row margins * fix: SingleSelect theme breaking because of Menu really need to go to OGPDS soon lol * fix: add padding to prefill lock icon * fix: add correct msw handlers for workspace page * fix: add back missing margins * fix: make AvatarMenu have automatic height instead of following button's height * fix: add back missing menuitem padding for SingleSelect * fix: update imported lottie file type * fix: correct modal story color scheme for cancel button * fix: set minH of TagInput to input's var * fix: use input exported css variables for styling TagInput * fix: move combobox input to the top when focused so the border won't look janky * feat: use mockdate decorator so skeleton width fixed in snapshot * fix: spacing of collaborator list view again * fix: landing page margins * fix: avatarmenudivider margins * fix: remove removed patches copy in dockerfile * remove ineffective white bg on style header --------- Co-authored-by: Ken <[email protected]>
- Loading branch information
Showing
135 changed files
with
4,627 additions
and
5,609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
frontend/src/components/Calendar/CalendarBase/CalendarStyleProvider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { createStylesContext } from '@chakra-ui/react' | ||
|
||
const [CalendarStylesProvider, useCalendarStyles] = | ||
createStylesContext('Calendar') | ||
|
||
export { CalendarStylesProvider, useCalendarStyles } | ||
Oops, something went wrong.