@coveord/plasma-react-icons
Advanced tools
Changelog
53.0.0 (2024-04-16)
From now on, plasma-mantine
package will only work with Mantine version 7. You can follow the migration guide available on the Mantine website to migrate your app.
All our custom components like the Table, Collection, Header, etc. now follow the CSS modules paradigm introduced by Mantine components. So expect changes around how styles are loaded into components.
<Header>
component variants have changed name:
'page'
is now called 'primary'
'modal'
is now called 'secondary'
StickyFooter
component no longer has a divider
class name available. You can still use the borderTop
prop so that the footer has a top border.
The modal wizard component was removed from the plasma codebase, because it can easily be reproduced using a Stepper
component inside a Modal
.
Better integration of the Collection
within mantine forms can now be achieved using the enhanceWithCollectionProps
utility. If you use the Collection component with a Mantine form, it is recommended to use that utility. See mantine documentation to learn more.
Before
const form = useForm({initialValues: {fruits: ['banana', 'orange']}});
<Collection {...form.getInputProps('fruits', {type: 'collection'})}>
...
</Collection>
After
const form = useForm({
initialValues: {fruits: ['banana', 'orange']}
enhanceGetInputProps: (payload) => ({...enhanceWithCollectionProps(payload, 'fruits')}),
});
<Collection {...form.getInputProps('fruits')}>
...
</Collection>
InlineConfirm is a bit different to use:
InlineConfirm.Button
changed to InlineConfirm.Target
InlineConfirm.Target
and InlineConfirm.Prompt
will throw an error if there's no parent InlineConfirm
InlineConfirm.MenuItem
was removed, use <InlineConfirm.Target component={MenuItem}>
insteadBefore:
<InlineConfirm>
<InlineConfirm.Button id="a">Remove</InlineConfirm.Button>
<InlineConfirm.Prompt id="a" label="Are you sure?" onConfirm={onConfirm} />
<InlineConfirm.Button id="b">Remove</InlineConfirm.Button>
<InlineConfirm.Prompt
id="b"
label="Remove?"
confirmLabel="I confirm"
cancelLabel="I changed my mind"
/>
</InlineConfirm>
After:
<InlineConfirm>
<InlineConfirm.Target id="my-button-id">Remove</InlineConfirm.Button>
<InlineConfirm.Prompt id="my-button-id" onConfirm={onConfirm} />
<InlineConfirm.Target id="b">Remove</InlineConfirm.Target>
<InlineConfirm.Prompt
id="b"
label="Remove?"
confirm={<Button onClick={confirmSpy}>I confirm</Button>}
cancel={<Button>I changed my mind</Button>}
/>
</InlineConfirm>
CartNew
icon was renamed to Cart
const theme = createTheme({
...
});
<Plasmantine theme={theme}>
<App />
</Plasmantine>
Changelog
52.27.2-next.12 (2024-04-11)
Changelog
52.27.4 (2024-03-22)
Changelog
52.27.2-next.3 (2024-03-08)
Co-authored-by: Jenkins CI jenkins@coveo.com
Changelog
52.26.1 (2023-11-15)
Changelog
52.23.1 (2023-10-26)
Changelog
52.23.0 (2023-10-25)
Changelog
52.21.0 (2023-10-18)
Changelog
52.16.0 (2023-08-30)
Changelog
52.15.0 (2023-08-21)