Skip to content

Commit

Permalink
Revert "feat(datepicker): add support for date range" (#1523)
Browse files Browse the repository at this point in the history
This PR reverts #1460.
  • Loading branch information
venkateshr06 authored Sep 4, 2024
1 parent 4e1d6f8 commit 512926d
Show file tree
Hide file tree
Showing 73 changed files with 256 additions and 1,934 deletions.
11 changes: 3 additions & 8 deletions .storybook/stories/datepicker/datepicker.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,14 @@ export default {
getDateString: { control: { disable: true }, table: { disable: true } },
},
args: {
// inputs
disabled: false,
placeholder: '',
id: '',
// outputs
clrDateChange: action('clrDateChange'),
// story helpers
getDateObject: date => {
try {
return date && new Date(date).toISOString();
} catch {
return undefined;
}
},
getDateObject: date => new Date(date),
getDateString: date => date && new Date(date).toISOString().split('T')[0],
},
};
Expand All @@ -61,7 +56,7 @@ const DatePickerTemplate: StoryFn = args => ({
#date
type="date"
[id]="id"
[clrDate]="getDateObject(date.value || clrDate)"
[clrDate]="getDateObject(clrDate || date.value)"
[min]="getDateString(min)"
[max]="getDateString(max)"
[disabled]="disabled"
Expand Down
120 changes: 0 additions & 120 deletions .storybook/stories/datepicker/daterangepicker.stories.ts

This file was deleted.

Loading

0 comments on commit 512926d

Please sign in to comment.