@devseed-ui/collecticons
Advanced tools
Comparing version 0.11.1 to 0.12.0
# @devseed-ui/collecticons | ||
## 0.12.0 | ||
### Minor Changes | ||
- Release with version updates to dependencies | ||
- 7f4f2d9: Publishing of Accordion, Modal, Toolbar and major changes to helpers and base | ||
## 0.11.1 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@devseed-ui/collecticons", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"description": "devseed UI Kit Collecticons", | ||
@@ -16,5 +16,4 @@ "browser": "./dist/index.web.js", | ||
"dependencies": { | ||
"@devseed-ui/button": "^2.3.2", | ||
"collecticons-lib": "^2.1.0" | ||
} | ||
} |
import React from 'react'; | ||
import { mountWithTheme } from '../../../test/_setup-theme-provider'; | ||
import toJson from 'enzyme-to-json'; | ||
import { cleanup } from '@testing-library/react'; | ||
import { renderWithTheme } from '../../../test/_setup-theme-provider'; | ||
import styled from 'styled-components'; | ||
import { Button } from '@devseed-ui/button'; | ||
@@ -10,3 +11,3 @@ import collecticon from '.'; | ||
let wrapper; | ||
const IconButton = styled(Button)` | ||
const Icon = styled.span` | ||
::before { | ||
@@ -17,10 +18,12 @@ ${collecticon('trash-bin')} | ||
afterAll(cleanup); | ||
beforeEach(() => { | ||
wrapper = mountWithTheme(<IconButton />); | ||
wrapper = renderWithTheme(<Icon />); | ||
}); | ||
describe('<IconButton />', () => { | ||
it('renders <IconButton />', () => { | ||
expect(toJson(wrapper)).toMatchSnapshot(); | ||
describe('<Icon />', () => { | ||
it('renders <Icon />', () => { | ||
expect(wrapper.asFragment()).toMatchSnapshot(); | ||
}); | ||
}); |
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import styled from 'styled-components'; | ||
import { Button } from '@devseed-ui/button'; | ||
import collecticon from '.'; | ||
const RemoveButton = styled(Button)` | ||
const Icon = styled.span` | ||
::before { | ||
@@ -14,2 +13,4 @@ ${collecticon('trash-bin')} | ||
storiesOf('Collecticons', module).add('Default', () => <RemoveButton />); | ||
storiesOf('Collecticons', module).add('Default', () => ( | ||
<Icon>Icon before the text</Icon> | ||
)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1
1526
272036
- Removed@devseed-ui/button@^2.3.2
- Removed@babel/runtime@7.26.9(transitive)
- Removed@devseed-ui/button@2.4.5(transitive)
- Removed@devseed-ui/collecticons@1.0.0(transitive)
- Removed@devseed-ui/theme-provider@2.4.0(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedpolished@3.7.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)