diff --git a/react/ai-label/src/Example/AiExamples.tsx b/react/ai-label/src/Example/AiExamples.tsx new file mode 100644 index 0000000..3c3f47b --- /dev/null +++ b/react/ai-label/src/Example/AiExamples.tsx @@ -0,0 +1,19 @@ +import { Column, Grid } from '@carbon/react'; +import { SortableWithAiLabel } from './SortableWithAiLabel'; +import { ColumnWithAiLabel } from './ColumnWithAiLabel'; +import { WithSelection } from './WithSelection'; +import './example.scss'; + +export const AiExamples = () => ( + + + + + + + + + + + +); diff --git a/react/ai-label/src/ColumnWithAiLabel.tsx b/react/ai-label/src/Example/ColumnWithAiLabel.tsx similarity index 100% rename from react/ai-label/src/ColumnWithAiLabel.tsx rename to react/ai-label/src/Example/ColumnWithAiLabel.tsx diff --git a/react/ai-label/src/ExampleAiLabel.tsx b/react/ai-label/src/Example/ExampleAiLabel.tsx similarity index 100% rename from react/ai-label/src/ExampleAiLabel.tsx rename to react/ai-label/src/Example/ExampleAiLabel.tsx diff --git a/react/ai-label/src/SortableWithAiLabel.tsx b/react/ai-label/src/Example/SortableWithAiLabel.tsx similarity index 100% rename from react/ai-label/src/SortableWithAiLabel.tsx rename to react/ai-label/src/Example/SortableWithAiLabel.tsx diff --git a/react/ai-label/src/WithSelection.tsx b/react/ai-label/src/Example/WithSelection.tsx similarity index 100% rename from react/ai-label/src/WithSelection.tsx rename to react/ai-label/src/Example/WithSelection.tsx diff --git a/react/ai-label/src/customTypings.d.ts b/react/ai-label/src/Example/customTypings.d.ts similarity index 100% rename from react/ai-label/src/customTypings.d.ts rename to react/ai-label/src/Example/customTypings.d.ts diff --git a/react/ai-label/src/App.scss b/react/ai-label/src/Example/example.scss similarity index 100% rename from react/ai-label/src/App.scss rename to react/ai-label/src/Example/example.scss diff --git a/react/ai-label/src/makeData.tsx b/react/ai-label/src/Example/makeData.tsx similarity index 100% rename from react/ai-label/src/makeData.tsx rename to react/ai-label/src/Example/makeData.tsx diff --git a/react/ai-label/src/ExampleLink.tsx b/react/ai-label/src/ExampleLink.tsx deleted file mode 100644 index 7a03b61..0000000 --- a/react/ai-label/src/ExampleLink.tsx +++ /dev/null @@ -1,9 +0,0 @@ -export const ExampleLink = ({ icon, label, url }) => { - const Icon = icon; - return ( - - {icon && } - {label} - - ); -}; diff --git a/react/ai-label/src/index.scss b/react/ai-label/src/index.scss index 8965062..e3f9104 100644 --- a/react/ai-label/src/index.scss +++ b/react/ai-label/src/index.scss @@ -3,21 +3,8 @@ ); @use '@carbon/styles/scss/type'; @use '@carbon/ibm-products/css/index'; -@use './App'; body { margin: 0; padding: 0; } - -.example--link { - @include type.type-style('label-01'); - - display: flex; - align-items: center; - margin-right: 0.5rem; -} - -.example--link__icon { - margin-right: 0.25rem; -} diff --git a/react/ai-label/src/index.ts b/react/ai-label/src/index.ts deleted file mode 100644 index 0b4ed4a..0000000 --- a/react/ai-label/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SortableColumns } from './SortableWithAiLabel'; - -export { SortableColumns }; diff --git a/react/ai-label/src/main.tsx b/react/ai-label/src/main.tsx index e910fcc..660337e 100644 --- a/react/ai-label/src/main.tsx +++ b/react/ai-label/src/main.tsx @@ -2,18 +2,13 @@ import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import { CodeSnippet, - Column, - Grid, Header, HeaderContainer, HeaderName, } from '@carbon/react'; -import { SortableWithAiLabel } from './SortableWithAiLabel'; -import { ColumnWithAiLabel } from './ColumnWithAiLabel'; - import './index.scss'; -import { WithSelection } from './WithSelection'; +import { AiExamples } from './Example/AiExamples'; const renderUIShellHeader = () => ( ( createRoot(document.getElementById('root')!).render( {renderUIShellHeader()} - - - - - - - - - - - + ); diff --git a/react/ai-label/tsconfig.app.json b/react/ai-label/tsconfig.app.json index ca0ffd7..8930dbf 100644 --- a/react/ai-label/tsconfig.app.json +++ b/react/ai-label/tsconfig.app.json @@ -22,7 +22,7 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "types": ["./src/customTypings.d.ts"], + "types": ["./src/Example/customTypings.d.ts"], "resolveJsonModule": true }, "include": ["./src"]