Skip to content

Commit 1c7f394

Browse files
committed
chore: remove deprecated story interface import
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent 89daec1 commit 1c7f394

File tree

63 files changed

+226
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+226
-226
lines changed

src/accordion/accordion.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import { DocumentationModule } from "../documentation-component/documentation.module";
55
import { AccordionModule, Accordion } from "./";
66

src/breadcrumb/breadcrumb.stories.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import {
55
BreadcrumbModule,
66
Breadcrumb,
@@ -45,7 +45,7 @@ export default {
4545
subcomponents: { BreadcrumbItemComponent }
4646
} as Meta;
4747

48-
const Template: Story<Breadcrumb> = (args) => ({
48+
const Template = (args) => ({
4949
props: args,
5050
template: `
5151
<cds-breadcrumb [noTrailingSlash]="noTrailingSlash">
@@ -63,7 +63,7 @@ const Template: Story<Breadcrumb> = (args) => ({
6363
});
6464
export const Basic = Template.bind({});
6565

66-
const CurrentPageTemplate: Story<Breadcrumb> = (args) => ({
66+
const CurrentPageTemplate = (args) => ({
6767
props: args,
6868
template: `
6969
<cds-breadcrumb>
@@ -86,7 +86,7 @@ CurrentPage.parameters = {
8686
}
8787
};
8888

89-
const ModelTemplate: Story<Breadcrumb> = (args) => ({
89+
const ModelTemplate = (args) => ({
9090
props: {
9191
...args,
9292
createBreadcrumbItems
@@ -107,7 +107,7 @@ Model.args = {
107107
content: "breadcrumb"
108108
};
109109

110-
const ModelWTemplate: Story<Breadcrumb> = (args) => ({
110+
const ModelWTemplate = (args) => ({
111111
props: {
112112
...args,
113113
createBreadcrumbItems,
@@ -132,7 +132,7 @@ ModelWithTemplate.args = {
132132
content: "breadcrumb"
133133
};
134134

135-
const WithSkeleton: Story<Breadcrumb> = (args) => ({
135+
const WithSkeleton = (args) => ({
136136
props: args,
137137
template: `
138138
<cds-breadcrumb skeleton="true" [noTrailingSlash]="noTrailingSlash">

src/button/button-set.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import { IconModule } from "../icon";
55
import { ButtonModule, ButtonSet } from "./";
66

@@ -20,7 +20,7 @@ export default {
2020
component: ButtonSet
2121
} as Meta;
2222

23-
const Template: Story<ButtonSet> = (args) => ({
23+
const Template = (args) => ({
2424
props: args,
2525
template: `
2626
<cds-button-set>

src/button/button.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import { IconModule } from "../icon";
55
import { ButtonModule, Button } from "./";
66

@@ -56,7 +56,7 @@ export default {
5656
component: Button
5757
} as Meta;
5858

59-
const Template: Story<Button> = (args) => ({
59+
const Template = (args) => ({
6060
props: args,
6161
template: `
6262
<button
@@ -75,7 +75,7 @@ const Template: Story<Button> = (args) => ({
7575
});
7676
export const Basic = Template.bind({});
7777

78-
const WithIconTemplate: Story<Button> = (args) => ({
78+
const WithIconTemplate = (args) => ({
7979
props: args,
8080
template: `
8181
<button

src/button/icon-button.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import { IconModule } from "../icon";
55
import {
66
ButtonModule,
@@ -59,7 +59,7 @@ export default {
5959
component: IconButton
6060
} as Meta;
6161

62-
const Template: Story<IconButton> = (args) => ({
62+
const Template = (args) => ({
6363
props: args,
6464
template: `
6565
<cds-icon-button

src/checkbox/checkbox.stories.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable variable-name */
22

33
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
4-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
4+
import { moduleMetadata, Meta } from "@storybook/angular";
55
import { CheckboxModule, Checkbox } from "./";
66
import { ReactiveFormsStory } from "./stories";
77

@@ -20,7 +20,7 @@ export default {
2020
component: Checkbox
2121
} as Meta;
2222

23-
const Template: Story<Checkbox> = (args) => ({
23+
const Template = (args) => ({
2424
props: args,
2525
template: `
2626
<fieldset class="cds--fieldset">
@@ -50,7 +50,7 @@ Basic.argTypes = {
5050
onIndeterminateChange: { action: "Indeterminate Change!" }
5151
};
5252

53-
const ModelTemplate: Story<Checkbox> = (args) => ({
53+
const ModelTemplate = (args) => ({
5454
props: args,
5555
template: `
5656
<cds-checkbox
@@ -73,7 +73,7 @@ WithNgModel.parameters = {
7373
controls: { disabled: true }
7474
};
7575

76-
const ReactiveTemplate: Story = (args) => ({
76+
const ReactiveTemplate = (args) => ({
7777
props: args,
7878
template: `
7979
<!--

src/code-snippet/code-snippet.stories.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import { CodeSnippetModule, CodeSnippet } from "./";
55

66
export default {
@@ -39,7 +39,7 @@ export default {
3939
component: CodeSnippet
4040
} as Meta;
4141

42-
const Template: Story<CodeSnippet> = (args) => ({
42+
const Template = (args) => ({
4343
props: args,
4444
template: `
4545
<cds-code-snippet display="single">{{code}}</cds-code-snippet>
@@ -50,7 +50,7 @@ Basic.args = {
5050
code: `import { UIShellModule } from 'carbon-components-angular'; // Single line of code`
5151
};
5252

53-
const InlineTemplate: Story<CodeSnippet> = (args) => ({
53+
const InlineTemplate = (args) => ({
5454
props: args,
5555
template: `
5656
Here is some <cds-code-snippet display="inline" [theme]="theme">{{code}}</cds-code-snippet> for you.
@@ -61,7 +61,7 @@ Inline.args = {
6161
code: "<inline code>"
6262
};
6363

64-
const MultiTemplate: Story<CodeSnippet> = (args) => ({
64+
const MultiTemplate = (args) => ({
6565
props: args,
6666
template: `
6767
<cds-code-snippet display="multi">{{code}}</cds-code-snippet>
@@ -122,7 +122,7 @@ Multi.argTypes = {
122122
}
123123
};
124124

125-
const SkeletonTemplate: Story<CodeSnippet> = (args) => ({
125+
const SkeletonTemplate = (args) => ({
126126
props: args,
127127
template: `
128128
<cds-code-snippet display="single" skeleton="true"></cds-code-snippet>

src/combobox/combobox.stories.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable variable-name */
22

33
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
4-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
4+
import { moduleMetadata, Meta } from "@storybook/angular";
55
import { ComboBoxModule, ComboBox } from "./";
66

77
import {
@@ -98,7 +98,7 @@ export default {
9898
component: ComboBox
9999
} as Meta;
100100

101-
const Template: Story<ComboBox> = (args) => ({
101+
const Template = (args) => ({
102102
props: args,
103103
template: `
104104
<cds-combo-box
@@ -131,7 +131,7 @@ Basic.argTypes = {
131131
}
132132
};
133133

134-
const BasicMaxTemplate: Story<ComboBox> = (args) => ({
134+
const BasicMaxTemplate = (args) => ({
135135
props: args,
136136
template: `
137137
<!--
@@ -153,7 +153,7 @@ BasicMax.argTypes = {
153153
}
154154
};
155155

156-
const DynamicTemplate: Story<ComboBox> = (args) => ({
156+
const DynamicTemplate = (args) => ({
157157
props: args,
158158
template: `
159159
<!--
@@ -173,7 +173,7 @@ Dynamic.parameters = {
173173
};
174174

175175

176-
const MultiTemplate: Story<ComboBox> = (args) => ({
176+
const MultiTemplate = (args) => ({
177177
props: args,
178178
template: `
179179
<cds-combo-box
@@ -203,7 +203,7 @@ Multiselect.argTypes = {
203203
selectionFeedback: "top-after-reopen"
204204
};
205205

206-
const ReactiveTemplate: Story<ComboBox> = (args) => ({
206+
const ReactiveTemplate = (args) => ({
207207
props: args,
208208
template: `
209209
<!--
@@ -227,7 +227,7 @@ const ReactiveTemplate: Story<ComboBox> = (args) => ({
227227
});
228228
export const ReactiveForms = ReactiveTemplate.bind({});
229229

230-
const MockQueryTemplate: Story<ComboBox> = (args) => ({
230+
const MockQueryTemplate = (args) => ({
231231
props: args,
232232
template: `
233233
<!--

src/contained-list/contained-list.stories.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
}
5252
} as Meta;
5353

54-
const basicTemplate: Story<ContainedList> = () => ({
54+
const basicTemplate = () => ({
5555
template: `
5656
<cds-contained-list label="List title">
5757
<cds-contained-list-item>List item</cds-contained-list-item>
@@ -69,7 +69,7 @@ const basicTemplate: Story<ContainedList> = () => ({
6969
});
7070
export const basic = basicTemplate.bind({});
7171

72-
const usageExamplesTemplate: Story<ContainedList> = () => ({
72+
const usageExamplesTemplate = () => ({
7373
template: `
7474
<ng-template #add let-item>
7575
<ibm-icon-button
@@ -155,7 +155,7 @@ const usageExamplesTemplate: Story<ContainedList> = () => ({
155155
});
156156
export const usageExamples = usageExamplesTemplate.bind({});
157157

158-
const disclosedTemplate: Story<ContainedList> = () => ({
158+
const disclosedTemplate = () => ({
159159
template: `
160160
<cds-contained-list label="List title" kind="disclosed">
161161
<cds-contained-list-item>List item</cds-contained-list-item>
@@ -173,7 +173,7 @@ const disclosedTemplate: Story<ContainedList> = () => ({
173173
});
174174
export const disclosed = disclosedTemplate.bind({});
175175

176-
const withActionsTemplate: Story<ContainedList> = () => ({
176+
const withActionsTemplate = () => ({
177177
template: `
178178
<ng-template #action let-item>
179179
<button
@@ -193,7 +193,7 @@ const withActionsTemplate: Story<ContainedList> = () => ({
193193
});
194194
export const withActions = withActionsTemplate.bind({});
195195

196-
const withIconsTemplate: Story<ContainedList> = () => ({
196+
const withIconsTemplate = () => ({
197197
template: `
198198
<ng-template #apple let-icon>
199199
<svg ibmIcon="apple" size="16"></svg>
@@ -213,7 +213,7 @@ const withIconsTemplate: Story<ContainedList> = () => ({
213213
});
214214
export const withIcons = withIconsTemplate.bind({});
215215

216-
const withInteractiveItemsTemplate: Story<ContainedList> = () => ({
216+
const withInteractiveItemsTemplate = () => ({
217217
template: `
218218
<cds-contained-list label="List title">
219219
<cds-contained-list-item [clickable]="true">
@@ -233,7 +233,7 @@ const withInteractiveItemsTemplate: Story<ContainedList> = () => ({
233233
});
234234
export const withInteractiveItems = withInteractiveItemsTemplate.bind({});
235235

236-
const withInteractiveItemsAndActionsTemplate: Story<ContainedList> = () => ({
236+
const withInteractiveItemsAndActionsTemplate = () => ({
237237
template: `
238238
<ng-template #action let-item>
239239
<button
@@ -264,7 +264,7 @@ const withInteractiveItemsAndActionsTemplate: Story<ContainedList> = () => ({
264264
});
265265
export const withInteractiveItemsAndActions = withInteractiveItemsAndActionsTemplate.bind({});
266266

267-
const withLayerTemplate: Story<ContainedList> = () => ({
267+
const withLayerTemplate = () => ({
268268
template: `
269269
<div ibmStack="vertical" [gap]="5">
270270
<cds-contained-list label="List title">
@@ -292,7 +292,7 @@ const withLayerTemplate: Story<ContainedList> = () => ({
292292
});
293293
export const withLayer = withLayerTemplate.bind({});
294294

295-
const withListTitleDecoratorsTemplate: Story<ContainedList> = () => ({
295+
const withListTitleDecoratorsTemplate = () => ({
296296
template: `
297297
<ng-template #label let-item>
298298
<div style="display: flex; alignItems: center; justifyContent: space-between">

src/content-switcher/content-switcher.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable variable-name */
22

3-
import { moduleMetadata, Meta, Story } from "@storybook/angular";
3+
import { moduleMetadata, Meta } from "@storybook/angular";
44
import {
55
ContentSwitcherModule,
66
ContentSwitcher,
@@ -23,7 +23,7 @@ export default {
2323
subcomponents: ContentSwitcherOption
2424
} as Meta;
2525

26-
const Template: Story<ContentSwitcher> = (args) => ({
26+
const Template = (args) => ({
2727
props: args,
2828
template: `
2929
<cds-content-switcher (selected)="selected($event)">

0 commit comments

Comments
 (0)