Skip to content

Commit

Permalink
[FX-5655] Migrate Quote to TailwindCSS (#4492)
Browse files Browse the repository at this point in the history
* Migrate Quote to TailwindCSS

* Update package.json
  • Loading branch information
dmaklygin authored Aug 20, 2024
1 parent b6f2db4 commit a7ce3ac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-fans-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@toptal/picasso-quote': patch
---

- migrate Quote to TailwindCSS
1 change: 0 additions & 1 deletion packages/base/Quote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"**/styles.js"
],
"peerDependencies": {
"@material-ui/core": "4.12.4",
"@toptal/picasso-tailwind": ">=2.7",
"react": ">=16.12.0 < 19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/base/Quote/src/Quote/__snapshots__/test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`Quote renders 1`] = `
class="mr-4"
>
<svg
class="PicassoQuoteMark-root"
class="fill-blue"
height="24"
viewBox="0 0 30 24"
width="30"
Expand Down
27 changes: 8 additions & 19 deletions packages/base/Quote/src/QuoteMark/QuoteMark.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'

import styles from './styles'

const useStyles = makeStyles(styles, {
name: 'PicassoQuoteMark',
})

export const QuoteMark = () => {
const classes = useStyles()

return (
<svg className={classes.root} width='30' height='24' viewBox='0 0 30 24'>
<path
d='M0 16.32C0 21.24 2.963 24 6.296 24c2.963 0 5.185-2.4 5.185-5.16 0-2.88-2.098-5.04-4.938-5.04-.37 0-1.234.12-1.358.24.247-3.84 3.334-8.52 7.284-11.16L8.765 0C4.075 3.36 0 9.6 0 16.32zm17.53 0c0 4.92 2.84 7.68 6.174 7.68 3.086 0 5.308-2.4 5.308-5.16 0-2.88-2.098-5.04-4.938-5.04-.494 0-1.234.12-1.358.24.247-3.84 3.333-8.52 7.284-11.16L26.296 0c-4.815 3.36-8.765 9.6-8.765 16.32z'
fillRule='evenodd'
/>
</svg>
)
}
export const QuoteMark = () => (
<svg className='fill-blue-500' width='30' height='24' viewBox='0 0 30 24'>
<path
d='M0 16.32C0 21.24 2.963 24 6.296 24c2.963 0 5.185-2.4 5.185-5.16 0-2.88-2.098-5.04-4.938-5.04-.37 0-1.234.12-1.358.24.247-3.84 3.334-8.52 7.284-11.16L8.765 0C4.075 3.36 0 9.6 0 16.32zm17.53 0c0 4.92 2.84 7.68 6.174 7.68 3.086 0 5.308-2.4 5.308-5.16 0-2.88-2.098-5.04-4.938-5.04-.494 0-1.234.12-1.358.24.247-3.84 3.333-8.52 7.284-11.16L26.296 0c-4.815 3.36-8.765 9.6-8.765 16.32z'
fillRule='evenodd'
/>
</svg>
)

QuoteMark.displayName = 'QuoteMark'

Expand Down
9 changes: 0 additions & 9 deletions packages/base/Quote/src/QuoteMark/styles.ts

This file was deleted.

0 comments on commit a7ce3ac

Please sign in to comment.