From 6fe900f2ff0bf61b8ecb035b11bd2e0b31e7c575 Mon Sep 17 00:00:00 2001 From: Mandy Wehrman Date: Mon, 30 Oct 2023 15:44:01 -0400 Subject: [PATCH] fix(Storybook): adds back src to the import path for ui-components --- .../.storybook/addons/decorators/withLightning.js | 2 +- .../.storybook/addons/panels/ComponentStylesPanel.js | 2 +- .../lightning-ui-docs/.storybook/addons/panels/ThemePanel.js | 2 +- .../.storybook/addons/toolbars/ThemeDownload.js | 2 +- .../lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js | 2 +- .../apps/lightning-ui-docs/.storybook/utils/registerEvents.js | 2 +- packages/apps/lightning-ui-docs/.storybook/utils/themeUtils.js | 2 +- packages/apps/lightning-ui-docs/index.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/decorators/withLightning.js b/packages/apps/lightning-ui-docs/.storybook/addons/decorators/withLightning.js index ccd492990..c4b64f743 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/decorators/withLightning.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/decorators/withLightning.js @@ -21,7 +21,7 @@ import { context, utils, TextBox -} from '@lightningjs/ui-components'; +} from '@lightningjs/ui-components/src'; import { createApp, clearInspector } from '../../../index'; let previousID = null; diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/panels/ComponentStylesPanel.js b/packages/apps/lightning-ui-docs/.storybook/addons/panels/ComponentStylesPanel.js index af294a228..be7dfd517 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/panels/ComponentStylesPanel.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/panels/ComponentStylesPanel.js @@ -21,7 +21,7 @@ import { useGlobals } from '@storybook/manager-api'; import { AddonPanel } from '@storybook/components'; import { OptionsControl, ColorControl } from '@storybook/blocks'; import { Table, TableRow, NumberRow } from '../components'; -import { utils } from '@lightningjs/ui-components'; +import { utils } from '@lightningjs/ui-components/src'; import debounce from 'debounce'; import { diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/panels/ThemePanel.js b/packages/apps/lightning-ui-docs/.storybook/addons/panels/ThemePanel.js index bc8c31d15..5eb7c5aa5 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/panels/ThemePanel.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/panels/ThemePanel.js @@ -19,7 +19,7 @@ import React from 'react'; import lng from '@lightningjs/core'; import { ColorControl, NumberControl } from '@storybook/blocks'; -import { utils } from '@lightningjs/ui-components'; +import { utils } from '@lightningjs/ui-components/src'; import { useGlobals } from '@storybook/manager-api'; import { colorUpdate, diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemeDownload.js b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemeDownload.js index 85c523c78..c7735e661 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemeDownload.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemeDownload.js @@ -20,7 +20,7 @@ import React from 'react'; import { DOWNLOAD_ID } from '../constants'; import { Icons, IconButton } from '@storybook/components'; import { convertNumToHexAlphaArray } from '../../utils/helpers'; -import { utils } from '@lightningjs/ui-components'; +import { utils } from '@lightningjs/ui-components/src'; export default () => { const download = () => { diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js index 3f50558a3..7ad17157a 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js @@ -21,7 +21,7 @@ import { useGlobals } from '@storybook/manager-api'; import { TabButton, TooltipLinkList, WithTooltip } from '@storybook/components'; import { THEMEPICKER_ID } from '../constants'; import { setGlobalTheme } from '../../utils/themeUtils'; -import { utils } from '@lightningjs/ui-components'; +import { utils } from '@lightningjs/ui-components/src'; export default () => { const [{ LUITheme }, updateGlobals] = useGlobals(); diff --git a/packages/apps/lightning-ui-docs/.storybook/utils/registerEvents.js b/packages/apps/lightning-ui-docs/.storybook/utils/registerEvents.js index e9a20d146..3f08ee18b 100644 --- a/packages/apps/lightning-ui-docs/.storybook/utils/registerEvents.js +++ b/packages/apps/lightning-ui-docs/.storybook/utils/registerEvents.js @@ -16,7 +16,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { context } from '@lightningjs/ui-components'; +import { context } from '@lightningjs/ui-components/src'; // creates an array of extensions // added to the theme by setTheme in themeSelect diff --git a/packages/apps/lightning-ui-docs/.storybook/utils/themeUtils.js b/packages/apps/lightning-ui-docs/.storybook/utils/themeUtils.js index 1e33a86cc..1e2fd1463 100644 --- a/packages/apps/lightning-ui-docs/.storybook/utils/themeUtils.js +++ b/packages/apps/lightning-ui-docs/.storybook/utils/themeUtils.js @@ -17,7 +17,7 @@ */ import baseTheme from '@lightningjs/ui-components-theme-base'; -import { utils } from '@lightningjs/ui-components'; +import { utils } from '@lightningjs/ui-components/src'; import debounce from 'debounce'; // Component Styles Panel diff --git a/packages/apps/lightning-ui-docs/index.js b/packages/apps/lightning-ui-docs/index.js index f5e7e7070..01cafbbdc 100644 --- a/packages/apps/lightning-ui-docs/index.js +++ b/packages/apps/lightning-ui-docs/index.js @@ -23,7 +23,7 @@ import { Speech, pool, context -} from '@lightningjs/ui-components'; +} from '@lightningjs/ui-components/src'; import { themeSelect, themeSelectFromMessageEvent