Skip to content

Commit 7852671

Browse files
authored
feat(pure-cell): добавлен новый тип отступа от графики (#1758)
1 parent 685f827 commit 7852671

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.changeset/hungry-lies-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@alfalab/core-components-pure-cell': minor
3+
---
4+
5+
- Добавлен новый тип `max` отступа от графики

packages/pure-cell/src/components/graphics/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type Props = {
2828
/**
2929
* Отступ от графики
3030
*/
31-
graphicPadding?: 'airy' | 'default' | 'compact' | 'tiny' | 'none';
31+
graphicPadding?: 'max' | 'airy' | 'default' | 'compact' | 'tiny' | 'none';
3232

3333
/**
3434
* Клик по контенту графики.

packages/pure-cell/src/components/graphics/index.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
margin-right: var(--gap-0);
2323
}
2424

25+
&.max {
26+
margin-right: var(--gap-24);
27+
}
28+
2529
&.airy {
2630
margin-right: var(--gap-16);
2731
}
@@ -43,6 +47,11 @@
4347
&.none {
4448
margin-bottom: var(--gap-0);
4549
}
50+
51+
&.max {
52+
margin-bottom: var(--gap-24);
53+
}
54+
4655
&.airy {
4756
margin-bottom: var(--gap-16);
4857
}

packages/pure-cell/src/docs/Component.stories.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const VIEWS = ['primary', 'secondary', 'tertiary', 'link', 'ghost'];
4949
);
5050
const graphicPadding = select(
5151
'graphicPadding',
52-
['airy', 'default', 'compact', 'tiny', 'none', undefined],
52+
['max', 'airy', 'default', 'compact', 'tiny', 'none', undefined],
5353
undefined,
5454
);
5555
const direction = select('direction', ['vertical', 'horizontal'], 'horizontal');
@@ -301,7 +301,7 @@ export const VIEWS = ['primary', 'secondary', 'tertiary', 'link', 'ghost'];
301301
);
302302
const graphicPadding = select(
303303
'graphicPadding',
304-
['airy', 'default', 'compact', 'tiny', 'none', undefined],
304+
['max', 'airy', 'default', 'compact', 'tiny', 'none', undefined],
305305
undefined,
306306
);
307307
const addonPadding = select('addonPadding', ['default', 'none'], 'default');

0 commit comments

Comments
 (0)