Skip to content

Commit

Permalink
refactor(Icon): move to future
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Sep 5, 2024
1 parent 0fa46f6 commit 2ae65db
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 27 deletions.
1 change: 0 additions & 1 deletion packages/components/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default rollupConfig({
actionsV3: "./src/__actions__/v3.ts",
containersV1: "./src/__containers__/v1.ts",
containersV2: "./src/__containers__/v2.ts",
illustrationsV3: "./src/__illustrations__/v3.ts",
layoutV1: "./src/__layout__/v1.ts",
layoutV2: "./src/__layout__/v2.ts",
layoutV3: "./src/__layout__/v3.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AddIcon } from "../index"
import styles from "./icon.module.scss"

const meta = {
title: "Components/Icons",
title: "Illustrations/Icon",
component: AddIcon,
args: {
role: "presentation",
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/Icon/_docs/Icon.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Canvas, Controls, Meta, Story } from "@storybook/blocks"
import { ResourceLinks } from "~storybook/components"
import * as IconStories from "./Icon.stories"
import * as IconStories from "./Icon.docs.stories"

<Meta of={IconStories} />

# Icon

<ResourceLinks
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Icons"

/>

## Installation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "~storybook/components/StickerSheet"

export default {
title: "Components/Icons",
title: "Illustrations/Icon",
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Canvas, Meta, Controls, Story } from "@storybook/blocks"
import { ResourceLinks, KAIOInstallation } from "~storybook/components"
import * as IconStories from "./Icon.stories"
import * as IconStories from "./Icon.docs.stories"

<Meta title="Illustrations/Icon/Icon (v3)/API Specification" />
<Meta title="Illustrations/Icon/Icon (Future)/API Specification" />

# Icon API Specification (v3)
# Icon API Specification (Future)

Updated September 2, 2024
Updated September 4, 2024

<ResourceLinks
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__illustrations__/Icon/v3"
designGuidelines="/?path=/docs/illustrations-icon-v3-usage-guidelines--docs"
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__v2__/Icon"
designGuidelines="/?path=/docs/illustrations-icon-v2-usage-guidelines--docs"
/>

<KAIOInstallation exportNames={["Icon" ]} family="illustrations" version="3" />
<KAIOInstallation exportNames="Icon" isFuture />

### Set up

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Canvas, Meta, Controls, Story } from "@storybook/blocks"
import { ResourceLinks, KAIOInstallation, DosAndDonts, DoOrDont } from "~storybook/components"
import * as IconStories from "./Icon.stories"
import * as IconStories from "./Icon.docs.stories"

<Meta title="Illustrations/Icon/Icon (v3)/Usage Guidelines" />
<Meta title="Illustrations/Icon/Icon (Future)/Usage Guidelines" />

# Icon (v3)
# Icon (Future)

Updated September 3, 2024
Updated September 4, 2024

<ResourceLinks
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__illustrations__/Icon/v3"
apiSpecification="/?path=/docs/illustrations-icon-v3-api-specification--docs"
/>

<KAIOInstallation exportNames={["Icon" ]} family="illustrations" version="3" />
<KAIOInstallation exportNames="Icon" isFuture />

## Overview

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { iconDefaultSet } from "../constants"
import { Icon } from "../index"

const meta = {
title: "Illustrations/Icon/Icon (v3)",
title: "Illustrations/Icon/Icon (Future)",
component: Icon,
args: {
name: "star",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { handledRtlIcons, iconDefaultSet } from "../constants"
import { Icon, IconProps } from "../index"

export default {
title: "Illustrations/Icon/Icon (v3)",
title: "Illustrations/Icon/Icon (Future)",
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/__future__/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./Icon"
export * from "./Select"
export * from "./Tag"
export * from "../__layout__/Workflow/v2"
1 change: 0 additions & 1 deletion packages/components/src/__illustrations__/v3.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/components/v3/illustrations/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ae65db

Please sign in to comment.