Skip to content

Commit

Permalink
move LinkButton to rc component folder and update import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwinter07 committed Dec 18, 2024
1 parent afd3ee1 commit adf956e
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { forwardRef } from 'react'
import { Link as RACLink, type LinkProps as RACLinkProps } from 'react-aria-components'
import { ButtonUIProps } from '~components/__actions__/Button/v3'
import { ButtonContent } from '~components/__actions__/Button/v3/subcomponents'
import { type ButtonUIProps } from '~components/__rc__/Button'
import buttonStyles from '~components/__rc__/Button/Button.module.css'
import { ButtonContent } from '~components/__rc__/Button/subcomponents'
import { useReversedColors } from '~components/__utilities__/v3'
import { mergeClassNames } from '~components/utils/mergeClassNames'
import buttonStyles from '../../Button/v3/Button.module.css'
import styles from './LinkButton.module.css'

export type LinkButtonProps = ButtonUIProps &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Canvas, Meta, Controls, ArgTypes, DocsStory } from '@storybook/blocks'
import { ResourceLinks, KAIOInstallation, LinkTo } from '~storybook/components'
import * as exampleStories from './LinkButton.doc.stories'

<Meta title="Actions/LinkButton/LinkButton (v3)/API Specification" />
<Meta title="Components/LinkButton/LinkButton (v3)/API Specification" />

# LinkButton API Specification (v3)

Updated Nov 26, 2024
Updated Dec 18, 2024

<ResourceLinks
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__actions__/LinkButton/v3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Canvas, Meta, Controls } from '@storybook/blocks'
import { ResourceLinks, KAIOInstallation, LinkTo } from '~storybook/components'
import * as LinkButton from './LinkButton.doc.stories'

<Meta title="Actions/LinkButton/LinkButton (v3)/Usage Guidelines" />
<Meta title="Components/LinkButton/LinkButton (v3)/Usage Guidelines" />

# LinkButton (v3)

Updated Nov 26, 2024
Updated Dec 18, 2024

<ResourceLinks
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__actions__/Button/v3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { Meta, StoryObj } from '@storybook/react'
import { type Meta, type StoryObj } from '@storybook/react'
import { VisuallyHidden } from '~components/VisuallyHidden'
import { Icon } from '~components/__future__'
import { Icon } from '~components/__rc__/Icon'
import { LinkButton } from '../index'

const meta = {
title: 'Actions/LinkButton/LinkButton (v3)',
title: 'Components/LinkButton/LinkButton (v3)',
component: LinkButton,
args: {
children: 'Label',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Meta, StoryObj } from '@storybook/react'
import { userEvent, waitFor, within, expect } from '@storybook/test'
import { type Meta, type StoryObj } from '@storybook/react'
import { expect, userEvent, waitFor, within } from '@storybook/test'
import { VisuallyHidden } from '~components/VisuallyHidden'
import { Icon } from '~components/__future__/Icon'
import { Icon } from '~components/__rc__/Icon'
import { LinkButton } from '../index'

const meta = {
title: 'Actions/LinkButton/LinkButton (v3)/LinkButton (v3) tests',
title: 'Components/LinkButton/LinkButton (v3)/LinkButton (v3) tests',
component: LinkButton,
args: {
children: 'Label',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Meta } from '@storybook/react'
import { type Meta } from '@storybook/react'
import { within } from '@storybook/test'
import { Icon } from '~components/__future__/Icon'
import { StickerSheet, StickerSheetStory } from '~storybook/components/StickerSheet'
import { LinkButton, LinkButtonProps } from '../index'
import { Icon } from '~components/__rc__/Icon'
import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet'
import { LinkButton, type LinkButtonProps } from '../index'

export default {
title: 'Actions/LinkButton/LinkButton (v3)',
title: 'Components/LinkButton/LinkButton (v3)',
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/__rc__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export * from './Select'
export * from './Tag'
export * from './Tabs'
export * from './Tooltip'
export * from './LinkButton'

0 comments on commit adf956e

Please sign in to comment.