diff --git a/development/generate-icon-names.js b/development/generate-icon-names.js index 60637ae86deb..a89887de73cf 100644 --- a/development/generate-icon-names.js +++ b/development/generate-icon-names.js @@ -4,7 +4,7 @@ * Reads all the icon svg files in app/images/icons * and returns an object of icon name key value pairs * stored in the environment variable ICON_NAMES - * Used with the Icon component in ./ui/component-library/icon + * Used with the Icon component in ./ui/components/component-library/icon/icon.js */ const fs = require('fs'); const path = require('path'); diff --git a/ui/components/component-library/button-base/README.mdx b/ui/components/component-library/button-base/README.mdx index e541eb4f3233..76d630f88493 100644 --- a/ui/components/component-library/button-base/README.mdx +++ b/ui/components/component-library/button-base/README.mdx @@ -37,7 +37,7 @@ Possible sizes include: ```jsx import { SIZES } from '../../../helpers/constants/design-system'; -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; @@ -55,7 +55,7 @@ Use boolean `block` prop to quickly enable a full width block button ```jsx import { DISPLAY } from '../../../helpers/constants/design-system'; -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; Default Button Block Button @@ -77,7 +77,7 @@ Button `as` options: ```jsx -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; Button Element @@ -95,7 +95,7 @@ When an `href` prop is passed it will change the element to an anchor(`a`) tag. ```jsx -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; Anchor Element; ``` @@ -109,7 +109,7 @@ Use the boolean `disabled` prop to disable button ```jsx -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; Disabled Button; ``` @@ -123,7 +123,7 @@ Use the boolean `loading` prop to set loading spinner ```jsx -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; Loading Button; ``` @@ -137,7 +137,7 @@ Use the `icon` prop and the `ICON_NAMES` object from `./ui/components/component- ```jsx -import { ButtonBase } from '../../ui/component-library'; +import { ButtonBase } from '../../ui/components/component-library'; import { ICON_NAMES } from '../icon'; Button; diff --git a/ui/components/component-library/button-link/README.mdx b/ui/components/component-library/button-link/README.mdx index ce1d2a7595dc..e6f51f3cc36a 100644 --- a/ui/components/component-library/button-link/README.mdx +++ b/ui/components/component-library/button-link/README.mdx @@ -35,7 +35,7 @@ Possible sizes include: ```jsx import { SIZES } from '../../../helpers/constants/design-system'; -import { ButtonLink } from '../../ui/component-library'; +import { ButtonLink } from '../../ui/components/component-library'; @@ -52,7 +52,7 @@ Use the `type` prop and the `BUTTON_TYPES` object from `./ui/helpers/constants/d ```jsx -import { ButtonLink } from '../../ui/component-library'; +import { ButtonLink } from '../../ui/components/component-library'; Normal Danger @@ -67,7 +67,7 @@ When an `href` is passed the tag element will switch to an `anchor`(`a`) tag. ```jsx -import { ButtonLink } from '../../ui/component-library'; +import { ButtonLink } from '../../ui/components/component-library'; Href Example; ``` diff --git a/ui/components/component-library/button-primary/README.mdx b/ui/components/component-library/button-primary/README.mdx index eabf1196f553..cbde05658002 100644 --- a/ui/components/component-library/button-primary/README.mdx +++ b/ui/components/component-library/button-primary/README.mdx @@ -34,7 +34,7 @@ Possible sizes include: ```jsx import { SIZES } from '../../../helpers/constants/design-system'; -import { ButtonPrimary } from '../../ui/component-library'; +import { ButtonPrimary } from '../../ui/components/component-library'; @@ -50,7 +50,7 @@ Use the `type` prop and the `BUTTON_TYPES` object from `./ui/helpers/constants/d ```jsx -import { ButtonPrimary } from '../../ui/component-library'; +import { ButtonPrimary } from '../../ui/components/component-library'; Normal Danger diff --git a/ui/components/component-library/button-secondary/README.mdx b/ui/components/component-library/button-secondary/README.mdx index 320f263e8d37..4a7897d73b9b 100644 --- a/ui/components/component-library/button-secondary/README.mdx +++ b/ui/components/component-library/button-secondary/README.mdx @@ -34,7 +34,7 @@ Possible sizes include: ```jsx import { SIZES } from '../../../helpers/constants/design-system'; -import { ButtonSecondary } from '../../ui/component-library'; +import { ButtonSecondary } from '../../ui/components/component-library'; @@ -50,7 +50,7 @@ Use the `type` prop and the `BUTTON_TYPES` object from `./ui/helpers/constants/d ```jsx -import { ButtonSecondary } from '../../ui/component-library'; +import { ButtonSecondary } from '../../ui/components/component-library'; Normal Danger diff --git a/ui/components/component-library/help-text/README.mdx b/ui/components/component-library/help-text/README.mdx index 45527c352c02..03c2cf50aade 100644 --- a/ui/components/component-library/help-text/README.mdx +++ b/ui/components/component-library/help-text/README.mdx @@ -26,8 +26,8 @@ The `children` of the `HelpText` can be plain text or react nodes. ```jsx import { SIZES, COLORS } from '../../../helpers/constants/design-system'; -import { Icon, ICON_NAMES } from '../../ui/component-library'; -import { HelpText } from '../../ui/component-library'; +import { Icon, ICON_NAMES } from '../../ui/components/component-library'; +import { HelpText } from '../../ui/components/component-library'; Plain text @@ -50,7 +50,7 @@ Use the `error` prop to show the `HelpText` in error state. ```jsx -import { HelpText } from '../../ui/component-library'; +import { HelpText } from '../../ui/components/component-library'; This HelpText in error state; ``` @@ -65,7 +65,7 @@ It may be useful to change the color of the `HelpText`. Use the `color` prop and ```jsx import { COLORS } from '../../../helpers/constants/design-system'; -import { HelpText } from '../../ui/component-library'; +import { HelpText } from '../../ui/components/component-library'; diff --git a/ui/components/component-library/icon/README.mdx b/ui/components/component-library/icon/README.mdx index 0f184982cf0a..d18913802c4e 100644 --- a/ui/components/component-library/icon/README.mdx +++ b/ui/components/component-library/icon/README.mdx @@ -23,7 +23,7 @@ Use the `name` prop and the `ICON_NAMES` object to change the icon. Use the [IconSearch](/ui-components-component-library-icon-icon-stories-js--name) story to find the icon you want to use. ```jsx -import { Icon, ICON_NAMES } from '../../ui/component-library'; +import { Icon, ICON_NAMES } from '../../ui/components/component-library'; @@ -55,7 +55,7 @@ Possible sizes include: ```jsx import { SIZES } from '../../../helpers/constants/design-system'; -import { Icon, ICON_NAMES } from '../../ui/component-library'; +import { Icon, ICON_NAMES } from '../../ui/components/component-library'; @@ -79,7 +79,7 @@ Use the `color` prop and the `COLORS` object from `./ui/helpers/constants/design ```jsx import { COLORS } from '../../../helpers/constants/design-system'; -import { Icon, ICON_NAMES } from '../../ui/component-library'; +import { Icon, ICON_NAMES } from '../../ui/components/component-library'; diff --git a/ui/components/component-library/label/README.mdx b/ui/components/component-library/label/README.mdx index cc9e6e9ca225..5f83c96d5cc0 100644 --- a/ui/components/component-library/label/README.mdx +++ b/ui/components/component-library/label/README.mdx @@ -26,9 +26,9 @@ The `children` of the label can be text or a react node. ```jsx import { DISPLAY, ALIGN_ITEMS, FLEX_DIRECTION, SIZES, COLORS } from '../../../helpers/constants/design-system'; -import { Icon, ICON_NAMES } from '../../ui/component-library; -import { Label } from '../../ui/component-library; -import { TextFieldBase } from '../../ui/component-library'; +import { Icon, ICON_NAMES } from '../../ui/components/component-library'; +import { Label } from '../../ui/components/component-library'; +import { TextFieldBase } from '../../ui/components/component-library';