Skip to content

Commit

Permalink
feat(components): rewrite Pagination from scratch (#618)
Browse files Browse the repository at this point in the history
* feat(components): rewrite Pagination from scratch

* fix(components): add spacing around pagination dropdown

* feat(components): update Select icons

* feat(components): apply requested design changes

Replace prev/next labels with icons, reduce max page number from 7 to 5, add total number of pages
after dropdown

* fix(components): replace USD to avoid test flakiness

BREAKING CHANGE:
The Pagination component's props have radically changed. Please refer to the component documentation.
  • Loading branch information
connor-baer authored Jun 25, 2020
1 parent 2effeea commit 82daf30
Show file tree
Hide file tree
Showing 40 changed files with 3,191 additions and 4,959 deletions.
8 changes: 4 additions & 4 deletions .storybook/components/Statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import { light } from '@sumup/design-tokens';
import { Badge, Text } from '../../src';

const variants = {
stable: { color: Badge.SUCCESS, label: 'Stable' },
deprecated: { color: Badge.DANGER, label: 'Deprecated' },
inReview: { color: Badge.WARNING, label: 'In Review' },
experimental: { color: Badge.PRIMARY, label: 'Experimental' }
stable: { color: 'success', label: 'Stable' },
deprecated: { color: 'danger', label: 'Deprecated' },
inReview: { color: 'warning', label: 'In Review' },
experimental: { color: 'primary', label: 'Experimental' }
};

const Status = ({ variant = 'stable' }) => {
Expand Down
Loading

0 comments on commit 82daf30

Please sign in to comment.