Skip to content

Commit ec94f73

Browse files
mmurawski-dnStyleShit
authored andcommitted
refactor(design-system)!: remove deprecated DsSystemStatus component [AR-53409] (#339)
1 parent 19636d0 commit ec94f73

File tree

13 files changed

+20
-236
lines changed

13 files changed

+20
-236
lines changed

.changeset/loose-stamps-study.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@drivenets/design-system': major
3+
'@drivenets/eslint-plugin-design-system': major
4+
---
5+
6+
Remove deprecated component `DsSystemStatus`
7+
Remove deprecation eslint rules for `DsSystemStatus`

packages/design-system/src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $color-secondary-default: var(--action-cta3);
99
$color-secondary-hover: var(--neutral-4);
1010
$color-secondary-disabled: var(--action-disabled);
1111

12-
$color-error-default: var(--system-status-error);
12+
$color-error-default: var(--background-background-negative);
1313
$color-error-hover: var(--utility-error);
1414
$color-error-active: var(--utility-error);
1515
$color-error-disabled: var(--action-disabled);

packages/design-system/src/components/ds-drawer/ds-drawer.stories.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import DsDrawer from './ds-drawer';
55
import { DsButton } from '../ds-button';
66
import { DsTextInput } from '../ds-text-input';
77
import { DsIcon } from '../ds-icon';
8-
// TODO: Use DsStatusBadge instead.
9-
import { DsSystemStatus } from '../ds-system-status';
8+
import { DsStatusBadge } from '../ds-status-badge';
109
import styles from './ds-drawer.stories.module.scss';
1110
import { DsTypography } from '../ds-typography';
1211
import type { DsDrawerColumns, DsDrawerProps } from './ds-drawer.types';
@@ -82,7 +81,7 @@ export const Default: Story = {
8281
<>
8382
<DsDrawer.Header>
8483
<DsDrawer.Title>
85-
Default Drawer <DsSystemStatus status="healthy" label="Active" />
84+
Default Drawer <DsStatusBadge status="active" label="Active" />
8685
</DsDrawer.Title>
8786
<div className={styles.headerActions}>
8887
<button className={styles.expand} aria-label="Expand">
@@ -165,7 +164,7 @@ export const WithTabs: Story = {
165164
<>
166165
<DsDrawer.Header>
167166
<DsDrawer.Title>
168-
Drawer with Tabs <DsSystemStatus status="healthy" label="Active" />
167+
Drawer with Tabs <DsStatusBadge status="active" label="Active" />
169168
</DsDrawer.Title>
170169
<div className={styles.headerActions}>
171170
<button className={styles.expand} aria-label="Expand">

packages/design-system/src/components/ds-system-status/ds-system-status.module.scss

Lines changed: 0 additions & 87 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.stories.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/ds-system-status.types.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

packages/design-system/src/components/ds-system-status/index.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/design-system/src/components/ds-table/stories/components/progress-infographic/progress-infographic.module.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../styles/root_updated';
2+
13
.progressInfographic {
24
width: 100%;
35
height: 20px;
@@ -17,15 +19,15 @@
1719
transition: width 0.3s ease-in-out;
1820

1921
&--low {
20-
background-color: var(--system-status-error);
22+
background-color: var(--background-background-negative);
2123
}
2224

2325
&--medium {
24-
background-color: var(--system-status-info);
26+
background-color: var(--background-background-info-strong);
2527
}
2628

2729
&--high {
28-
background-color: var(--system-status-ok);
30+
background-color: var(--background-background-positive-strong);
2931
}
3032
}
3133
}

packages/design-system/src/components/ds-table/stories/ds-table.stories.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
color: var(--white);
2121

2222
&--single {
23-
background-color: var(--system-status-ok);
23+
background-color: var(--background-background-positive-strong);
2424
}
2525

2626
&--relationship {
27-
background-color: var(--system-status-info);
27+
background-color: var(--background-background-info-strong);
2828
}
2929

3030
&--complicated {
31-
background-color: var(--system-status-error);
31+
background-color: var(--background-background-negative);
3232
}
3333
}
3434

@@ -328,5 +328,5 @@
328328
}
329329

330330
.destructiveAction {
331-
color: var(--system-status-error);
331+
color: var(--background-background-negative);
332332
}

0 commit comments

Comments
 (0)