diff --git a/react/filterFlyout/src/Example/Example.tsx b/react/filterFlyout/src/Example/Example.tsx new file mode 100644 index 0000000..53aadde --- /dev/null +++ b/react/filterFlyout/src/Example/Example.tsx @@ -0,0 +1,11 @@ +import { Grid, Column } from '@carbon/react'; +import { FilterFlyout } from './FilterFlyout'; +import './example.scss'; + +export const Example = () => ( + + + + + +); diff --git a/react/filterFlyout/src/FilterFlyout.tsx b/react/filterFlyout/src/Example/FilterFlyout.tsx similarity index 96% rename from react/filterFlyout/src/FilterFlyout.tsx rename to react/filterFlyout/src/Example/FilterFlyout.tsx index 96b5ce0..445fc1d 100644 --- a/react/filterFlyout/src/FilterFlyout.tsx +++ b/react/filterFlyout/src/Example/FilterFlyout.tsx @@ -44,9 +44,8 @@ import { rankItem } from '@tanstack/match-sorter-utils'; import { makeData } from './makeData'; import { TagOverflow, pkg } from '@carbon/ibm-products'; -import { ExampleLink } from './ExampleLink'; import { Launch } from '@carbon/react/icons'; -import * as packageJson from '../package.json'; +import * as packageJson from '../../package.json'; pkg.component.TagOverflow = true; @@ -230,24 +229,6 @@ export const FilterFlyout = () => { - - - - } style={{ width: table.getCenterTotalSize(), }}> diff --git a/react/filterFlyout/src/customTypings.d.ts b/react/filterFlyout/src/Example/customTypings.d.ts similarity index 100% rename from react/filterFlyout/src/customTypings.d.ts rename to react/filterFlyout/src/Example/customTypings.d.ts diff --git a/react/filterFlyout/src/App.scss b/react/filterFlyout/src/Example/example.scss similarity index 100% rename from react/filterFlyout/src/App.scss rename to react/filterFlyout/src/Example/example.scss diff --git a/react/filterFlyout/src/Example/index.ts b/react/filterFlyout/src/Example/index.ts new file mode 100644 index 0000000..8765fbd --- /dev/null +++ b/react/filterFlyout/src/Example/index.ts @@ -0,0 +1 @@ +export { Example } from './Example'; diff --git a/react/filterFlyout/src/makeData.ts b/react/filterFlyout/src/Example/makeData.ts similarity index 100% rename from react/filterFlyout/src/makeData.ts rename to react/filterFlyout/src/Example/makeData.ts diff --git a/react/filterFlyout/src/ExampleLink.tsx b/react/filterFlyout/src/ExampleLink.tsx deleted file mode 100644 index 7a03b61..0000000 --- a/react/filterFlyout/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/filterFlyout/src/index.scss b/react/filterFlyout/src/index.scss index 8965062..e3f9104 100644 --- a/react/filterFlyout/src/index.scss +++ b/react/filterFlyout/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/filterFlyout/src/index.ts b/react/filterFlyout/src/index.ts deleted file mode 100644 index 6ea2cea..0000000 --- a/react/filterFlyout/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { FilterFlyout } from './FilterFlyout'; - -export { FilterFlyout }; diff --git a/react/filterFlyout/src/main.tsx b/react/filterFlyout/src/main.tsx index c2a8a76..4337d51 100644 --- a/react/filterFlyout/src/main.tsx +++ b/react/filterFlyout/src/main.tsx @@ -2,14 +2,11 @@ import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import { CodeSnippet, - Column, - Grid, Header, HeaderContainer, HeaderName, } from '@carbon/react'; - -import { FilterFlyout } from './FilterFlyout'; +import { Example } from './Example'; import './index.scss'; @@ -32,10 +29,6 @@ const renderUIShellHeader = () => ( createRoot(document.getElementById('root')!).render( {renderUIShellHeader()} - - - - - + ); diff --git a/react/filterFlyout/tsconfig.app.json b/react/filterFlyout/tsconfig.app.json index a68cf5e..a6e3949 100644 --- a/react/filterFlyout/tsconfig.app.json +++ b/react/filterFlyout/tsconfig.app.json @@ -21,7 +21,7 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "types": [ "./src/customTypings.d.ts" ], + "types": ["./src/Example/customTypings.d.ts"], "resolveJsonModule": true }, "include": ["./src"]