-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dsw-000-dividersize
- Loading branch information
Showing
23 changed files
with
779 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@justeattakeaway/pie-toast-provider": minor | ||
"@justeattakeaway/pie-toast": minor | ||
"@justeattakeaway/pie-webc": minor | ||
"pie-storybook": minor | ||
"pie-monorepo": minor | ||
--- | ||
|
||
[Added] - priority order for the toast provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
apps/pie-storybook/stories/testing/pie-toast-provider.test.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { html } from 'lit'; | ||
import { type Meta } from '@storybook/web-components'; | ||
|
||
import '@justeattakeaway/pie-toast-provider'; | ||
import { type ToastProviderProps, defaultProps } from '@justeattakeaway/pie-toast-provider'; | ||
|
||
import { createStory } from '../../utilities'; | ||
|
||
type ToastProviderStoryMeta = Meta<ToastProviderProps>; | ||
|
||
const defaultArgs: ToastProviderProps = { | ||
...defaultProps, | ||
}; | ||
|
||
const toastProviderStoryMeta: ToastProviderStoryMeta = { | ||
title: 'Toast Provider', | ||
component: 'pie-toast-provider', | ||
argTypes: { | ||
options: { | ||
description: 'Default options for all toasts; accepts all toast props.', | ||
control: 'object', | ||
defaultValue: { | ||
summary: defaultProps.options, | ||
}, | ||
}, | ||
}, | ||
args: defaultArgs, | ||
}; | ||
|
||
export default toastProviderStoryMeta; | ||
|
||
const onQueueUpdate = (queue: CustomEvent) => { | ||
console.log('toast provider queue:', queue.detail); | ||
}; | ||
|
||
const Template = ({ options }: ToastProviderProps) => html` | ||
<pie-toast-provider | ||
.options="${options}" | ||
@pie-toast-provider-queue-update="${onQueueUpdate}"> | ||
</pie-toast-provider> | ||
`; | ||
|
||
export const Default = createStory<ToastProviderProps>(Template, defaultArgs)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { defineConfig } from '@sand4rt/experimental-ct-web'; | ||
import { getPlaywrightConfig } from '@justeattakeaway/pie-components-config'; | ||
import { defineConfig } from '@playwright/test'; | ||
import { getPlaywrightNativeConfig } from '@justeattakeaway/pie-components-config'; | ||
|
||
export default defineConfig(getPlaywrightConfig()); | ||
export default defineConfig(getPlaywrightNativeConfig()); |
17 changes: 5 additions & 12 deletions
17
packages/components/pie-chip/test/accessibility/pie-chip.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.