Skip to content

Commit

Permalink
Merge branch 'appsmithorg:release' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
hajrezvan authored Dec 10, 2024
2 parents ef2196e + ad5e25f commit 35a0ae9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { Calendar } from "../src";
import { today, getLocalTimeZone } from "@internationalized/date";
import { parseDate } from "@internationalized/date";

const meta: Meta<typeof Calendar> = {
component: Calendar,
Expand All @@ -19,34 +19,34 @@ type Story = StoryObj<typeof Calendar>;

export const Default: Story = {
args: {
defaultValue: today(getLocalTimeZone()),
defaultValue: parseDate("2024-01-01"),
},
};

export const WithMinDate: Story = {
args: {
defaultValue: today(getLocalTimeZone()),
minValue: today(getLocalTimeZone()),
defaultValue: parseDate("2024-01-01"),
minValue: parseDate("2024-01-01"),
},
};

export const WithMaxDate: Story = {
args: {
defaultValue: today(getLocalTimeZone()),
maxValue: today(getLocalTimeZone()).add({ days: 10 }),
defaultValue: parseDate("2024-01-01"),
maxValue: parseDate("2024-01-11"),
},
};

export const Disabled: Story = {
args: {
defaultValue: today(getLocalTimeZone()),
defaultValue: parseDate("2024-01-01"),
isDisabled: true,
},
};

export const ReadOnly: Story = {
args: {
defaultValue: today(getLocalTimeZone()),
defaultValue: parseDate("2024-01-01"),
isReadOnly: true,
},
};

0 comments on commit 35a0ae9

Please sign in to comment.