Skip to content

Commit 2d4237d

Browse files
author
m2rt
committed
feat(tag): new tedi-ready component #297
story changes
1 parent a3cd0ee commit 2d4237d

2 files changed

Lines changed: 3 additions & 39 deletions

File tree

community/components/tags/tag/tag.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414

1515
export type TagType = "primary" | "secondary" | "danger";
1616

17+
/**
18+
* @deprecated Use Tag from TEDI-ready instead. This component will be removed from future versions.
19+
*/
1720
@Component({
1821
selector: "tedi-tag",
1922
imports: [SpinnerComponent, IconComponent, TediTranslationPipe],

tedi/components/tags/tag/tag.stories.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -75,45 +75,6 @@ type Story = StoryObj<TagComponent & { content: string }>;
7575

7676
export const Default: Story = {};
7777

78-
export const WithCloseButton: Story = {
79-
render: () => ({
80-
template: `
81-
<tedi-tag [closable]="true">
82-
Tag
83-
</tedi-tag>
84-
`,
85-
}),
86-
};
87-
88-
export const WithLoader: Story = {
89-
render: () => ({
90-
template: `
91-
<tedi-tag [loading]="true">
92-
taotlus_scan_lk_1.pdf
93-
</tedi-tag>
94-
`,
95-
}),
96-
};
97-
98-
export const WithInvalidIcon: Story = {
99-
render: () => ({
100-
template: `
101-
<tedi-row [gap]="1">
102-
<tedi-col>
103-
<tedi-tag type="danger">
104-
taotlus_scan_lk_1.pdf
105-
</tedi-tag>
106-
</tedi-col>
107-
<tedi-col>
108-
<tedi-tag type="danger" [closable]="true">
109-
taotlus_scan_lk_1.pdf
110-
</tedi-tag>
111-
</tedi-col>
112-
</tedi-row>
113-
`,
114-
}),
115-
};
116-
11778
export const Primary: Story = {
11879
render: (props) => ({
11980
props,

0 commit comments

Comments
 (0)