Skip to content

Commit

Permalink
feat(table): agent - add the table component with its pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
JLou committed Apr 10, 2024
1 parent a7840d3 commit d1e19d0
Show file tree
Hide file tree
Showing 24 changed files with 1,488 additions and 24 deletions.
192 changes: 170 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/css/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { addons } from '@storybook/addons';
import logo from './css3.svg'
import logo from './css3.svg';

addons.setConfig({
theme: {
Expand Down
1 change: 1 addition & 0 deletions packages/css/src/Form/Select/Select.agent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
position: absolute;
top: 50%;
right: 1em;
height: 0.7em; /* when using pure svgs */
font-size: 0.7em;
transform: translateY(-50%);
}
Expand Down
78 changes: 78 additions & 0 deletions packages/css/src/Table/Pager.agent.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@use "../common/common.agent.scss" as common;

/* stylelint-disable no-descending-specificity */
.af-pager {
&__pagination {
display: flex;
margin: 0;
padding: 0;
flex-wrap: wrap;
align-items: center;
justify-content: center;
list-style: none;
}

&__item {
border-radius: common.px-to-rem(25px);
font-size: 0.9375rem;

&--active {
min-width: 1.9rem;
height: 1.9rem;
text-align: center;
color: common.$white;
background: common.$color-axa;

&:hover {
background: common.$color-azur;
}

.af-pager__item-link {
color: common.$white;
}
}

&-link,
&-nolink {
display: inline-flex;
padding: 0.3em 0.5rem;
color: common.$color-pager-link;
}

&-text {
text-decoration: underline;
}

&-icon {
margin: 0 0.5rem;

&:hover {
text-decoration: none;
}
}
}
}

@include common.media-breakpoint-down(xs) {
.af-paging__pager {
margin-top: 2rem;
}

.af-paging__limit {
width: 100%;
margin: 1rem auto;
text-align: center;

[class^="col"] {
width: inherit;
padding: inherit;
flex-basis: inherit;
flex-grow: inherit;
}

.af-form__group {
justify-content: space-evenly;
}
}
}
/* stylelint-enable no-descending-specificity */
Loading

0 comments on commit d1e19d0

Please sign in to comment.