Skip to content

Commit

Permalink
deps: fix lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprevot committed May 7, 2024
1 parent 9fca049 commit a4da6d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,134 +468,6 @@ export const InteractiveClearedStaticVerticalSideBySide: Story = {
},
}

export const InteractiveTodayStaticHorizontalSideBySide: Story = {
args: {
onChange: fn(),
onClear: fn(),
onClose: fn(),
onDateChange: fn(),
onDismiss: fn(),
onFieldChange: fn(),
onNow: fn(),
onOpen: fn(),
onOpenChange: fn(),
onTimeChange: fn(),
onToday: fn(),
orientation: Orientations.Horizontal,
pickerVariant: PickerVariants.SideBySide,
staticPicker: true,
value: null,
},

play: async ({ canvasElement }) => {
const canvas = within(canvasElement)

const todayButton = canvas.getByLabelText('Today')

await sleep(500)

await userEvent.hover(todayButton)
await sleep(500)
await userEvent.click(todayButton)
},
}

export const InteractiveTodayStaticVerticalSideBySide: Story = {
args: {
onChange: fn(),
onClear: fn(),
onClose: fn(),
onDateChange: fn(),
onDismiss: fn(),
onFieldChange: fn(),
onNow: fn(),
onOpen: fn(),
onOpenChange: fn(),
onTimeChange: fn(),
onToday: fn(),
orientation: Orientations.Vertical,
pickerVariant: PickerVariants.SideBySide,
staticPicker: true,
value: null,
},

play: async ({ canvasElement }) => {
const canvas = within(canvasElement)

const todayButton = canvas.getByLabelText('Today')

await sleep(500)

await userEvent.hover(todayButton)
await sleep(500)
await userEvent.click(todayButton)
},
}

export const InteractiveNowStaticHorizontalSideBySide: Story = {
args: {
onChange: fn(),
onClear: fn(),
onClose: fn(),
onDateChange: fn(),
onDismiss: fn(),
onFieldChange: fn(),
onNow: fn(),
onOpen: fn(),
onOpenChange: fn(),
onTimeChange: fn(),
onToday: fn(),
orientation: Orientations.Horizontal,
pickerVariant: PickerVariants.SideBySide,
staticPicker: true,
value: null,
},

play: async ({ canvasElement }) => {
const canvas = within(canvasElement)

const nowButton = canvas.getByLabelText('Now')

await sleep(500)

await userEvent.hover(nowButton)
await sleep(500)
await userEvent.click(nowButton)
},
}

export const InteractiveNowStaticVerticalSideBySide: Story = {
args: {
onChange: fn(),
onClear: fn(),
onClose: fn(),
onDateChange: fn(),
onDismiss: fn(),
onFieldChange: fn(),
onNow: fn(),
onOpen: fn(),
onOpenChange: fn(),
onTimeChange: fn(),
onToday: fn(),
orientation: Orientations.Vertical,
pickerVariant: PickerVariants.SideBySide,
staticPicker: true,
value: null,
},

play: async ({ canvasElement }) => {
const canvas = within(canvasElement)

const nowButton = canvas.getByLabelText('Now')

await sleep(500)

await userEvent.hover(nowButton)
await sleep(500)
await userEvent.click(nowButton)
},
}

const separator = <hr className="my-3 w-full" />

const Wrapper = ({ children }: { children: ReactNode }) => (
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5056,7 +5056,7 @@ __metadata:
languageName: node
linkType: hard

"@snowball-tech/design-tokens@npm:11.2.4, @snowball-tech/design-tokens@workspace:packages/design-tokens":
"@snowball-tech/design-tokens@npm:12.0.0, @snowball-tech/design-tokens@workspace:packages/design-tokens":
version: 0.0.0-use.local
resolution: "@snowball-tech/design-tokens@workspace:packages/design-tokens"
dependencies:
Expand Down Expand Up @@ -5141,7 +5141,7 @@ __metadata:
"@radix-ui/react-toggle-group": "npm:^1.0.4"
"@radix-ui/react-toolbar": "npm:^1.0.4"
"@react-hookz/web": "npm:^24.0.4"
"@snowball-tech/design-tokens": "npm:11.2.4"
"@snowball-tech/design-tokens": "npm:12.0.0"
"@snowball-tech/eslint-config": "npm:^5.4.2"
"@snowball-tech/prettier-config": "npm:^1.4.7"
"@storybook/addon-a11y": "npm:^8.0.10"
Expand Down

0 comments on commit a4da6d7

Please sign in to comment.