-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FX-5649] Migrate Autocomplete to TailwindCSS (#4491)
- Loading branch information
1 parent
1a3de3d
commit b9aee47
Showing
9 changed files
with
32 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@toptal/picasso-autocomplete': major | ||
'@toptal/picasso': patch | ||
--- | ||
|
||
- migrate to TailwindCSS, material-ui@4 is no longer required for this package | ||
- make @toptal/picasso-tailwind-merge a peer dependency |
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
9 changes: 6 additions & 3 deletions
9
packages/base/Autocomplete/src/Autocomplete/PoweredByGoogle.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
import type { Theme } from '@material-ui/core/styles' | ||
import { createStyles } from '@material-ui/core/styles' | ||
|
||
export default ({ sizes: { input, borderWidth }, palette }: Theme) => | ||
createStyles({ | ||
root: { | ||
position: 'relative', | ||
width: input.width, | ||
}, | ||
rootFull: { | ||
width: '100%', | ||
}, | ||
rootShrink: { | ||
width: 'auto', | ||
}, | ||
rootAuto: {}, | ||
poweredByGoogle: { | ||
padding: '0.75rem 1rem', | ||
borderTop: `${borderWidth} solid ${palette.grey.light}`, | ||
}, | ||
horizontalLayout: { | ||
width: '100%', | ||
}, | ||
}) | ||
export const rootClassByWidth: Record<'full' | 'shrink' | 'auto', string> = { | ||
full: 'w-full', | ||
shrink: 'w-auto', | ||
auto: 'w-[18.75rem]', | ||
} |
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