diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index 9b24e73b..17b89fa3 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -32,6 +32,7 @@ export const RequestStatus = { success: 'success', fail: 'fail', cancelled: 'cancelled', + ignored: 'ignored', } as const export const RequestItemType = { diff --git a/packages/connect-button/.storybook/preview.js b/packages/connect-button/.storybook/preview.js index 7fbc6030..79106bd5 100644 --- a/packages/connect-button/.storybook/preview.js +++ b/packages/connect-button/.storybook/preview.js @@ -10,9 +10,7 @@ export const parameters = { .replaceAll(':host', '.storybook-wrapper') const theme = themeCSS .toString() - .replace(":host([mode='dark'])", '.storybook-wrapper[mode=dark]') - .replace(":host([mode='light'])", '.storybook-wrapper[mode=light]') - .replaceAll(':host', '.storybook-wrapper') + .replaceAll(/(?::host)\(([a-z=\[\]-]+)\)/g, '.storybook-wrapper$1') return html`