Skip to content

Commit bff3d85

Browse files
authored
chore: More enhancements to stories (#2141)
1 parent 2d71f62 commit bff3d85

22 files changed

Lines changed: 2382 additions & 598 deletions

stories/calendar.stories.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
IgcCalendarComponent,
99
defineComponents,
1010
} from 'igniteui-webcomponents';
11+
import { disableStoryControls } from './story.js';
1112

1213
defineComponents(IgcCalendarComponent);
1314

@@ -232,6 +233,7 @@ export const Basic: Story = {
232233
};
233234

234235
export const RangeSelection: Story = {
236+
argTypes: disableStoryControls(metadata),
235237
render: () => {
236238
const start = new Date(currentYear, currentMonth, 5);
237239
const end = new Date(currentYear, currentMonth, 18);
@@ -246,6 +248,7 @@ export const RangeSelection: Story = {
246248
};
247249

248250
export const MultipleSelection: Story = {
251+
argTypes: disableStoryControls(metadata),
249252
render: () => {
250253
const values = [
251254
new Date(currentYear, currentMonth, 3),
@@ -264,6 +267,7 @@ export const MultipleSelection: Story = {
264267
};
265268

266269
export const MultipleMonths: Story = {
270+
argTypes: disableStoryControls(metadata),
267271
render: () => {
268272
const start = new Date(currentYear, currentMonth, 20);
269273
const end = new Date(currentYear, currentMonth + 1, 10);
@@ -279,6 +283,7 @@ export const MultipleMonths: Story = {
279283
};
280284

281285
export const DisabledDates: Story = {
286+
argTypes: disableStoryControls(metadata),
282287
render: () => {
283288
const disabledDates: DateRangeDescriptor[] = [
284289
{ type: DateRangeType.Weekends },
@@ -297,6 +302,7 @@ export const DisabledDates: Story = {
297302
};
298303

299304
export const SpecialDates: Story = {
305+
argTypes: disableStoryControls(metadata),
300306
render: () => {
301307
const specialDates: DateRangeDescriptor[] = [
302308
{

0 commit comments

Comments
 (0)