Skip to content

Commit

Permalink
docs: fix preview examples (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux authored Sep 2, 2024
1 parent 6965814 commit 6da25df
Show file tree
Hide file tree
Showing 174 changed files with 383 additions and 1,127 deletions.
14 changes: 7 additions & 7 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"generate-previews": "ts-node -P ./scripts/tsconfig.json ./scripts/generate-preview-snippets.ts"
},
"dependencies": {
"@docusaurus/core": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/theme-live-codeblock": "3.4.0",
"@docusaurus/core": "3.3.0",
"@docusaurus/preset-classic": "3.3.0",
"@docusaurus/theme-live-codeblock": "3.3.0",
"@mdx-js/react": "^3.0.0",
"@siemens/ix": "workspace:*",
"@siemens/ix-echarts": "workspace:*",
"@siemens/ix-icons": "^2.0.0",
"@siemens/ix-react": "workspace:*",
"@stackblitz/sdk": "^1.8.1",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^3.4.0",
"docusaurus-lunr-search": "^3.3.0",
"docusaurus-plugin-sass": "^0.2.2",
"execa": "^5.1.1",
"html-test-app": "workspace:*",
Expand All @@ -47,9 +47,9 @@
"sass": "^1.54.8"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0",
"@docusaurus/types": "3.4.0",
"@docusaurus/module-type-aliases": "3.3.0",
"@docusaurus/tsconfig": "3.3.0",
"@docusaurus/types": "3.3.0",
"@types/fs-extra": "^9.0.13",
"@types/rimraf": "^3.0.2",
"@types/tar": "^6.1.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import {
IxMenuAbout,
IxMenuAboutItem,
} from '@siemens/ix-react';
import React, { useLayoutEffect, useRef } from 'react';

import { useLayoutEffect, useRef } from 'react';

export default () => {
const ref = useRef<HTMLIxMenuElement>(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxActionCard } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/aggrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { GridOptions } from 'ag-grid-community';
import { AgGridReact } from 'ag-grid-react';
import React from 'react';

const gridOptions = {
columnDefs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
IxMenu,
IxMenuItem,
} from '@siemens/ix-react';
import React from 'react';

const appSwitchConfig: AppSwitchConfiguration = {
i18nAppSwitch: 'Switch to Application',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
IxMenuItem,
} from '@siemens/ix-react';

import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [breakpoints, setBreakpoints] = useState<Breakpoint[]>(['md']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
IxIconButton,
} from '@siemens/ix-react';

import React from 'react';

export default () => {
return (
<IxApplicationHeader name="My Application">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
IxMenu,
IxMenuItem,
} from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';

export default () => {
return <IxAvatar initials="JD"></IxAvatar>;
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';

export default () => {
return <IxAvatar></IxAvatar>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxBasicNavigation, IxMenu, IxMenuItem } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/basic-navigation.css';

import { IxBasicNavigation, IxMenu, IxMenuItem } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
IxDropdownItem,
IxIconButton,
} from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/blind.css';

import { IxBlind } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/blind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/blind.css';

import { IxBlind } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';

export default () => {
const [nextItems, setNextItems] = useState<string[]>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/button-loading.css';

import { IxButton, IxIconButton } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [toggle, setToggle] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/icon-button.css';

import { IxIconButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/card-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxCardList, IxPushCard } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/card.css';

import { IxCard, IxCardContent, IxIcon, IxTypography } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxCategoryFilter } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [suggestions] = useState(['Item 1', 'Item 2']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { FilterState, LogicalFilterOperator } from '@siemens/ix';
import { IxCategoryFilter } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [filter] = useState<FilterState>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React, { useLayoutEffect, useRef } from 'react';
import { useLayoutEffect, useRef } from 'react';

export default () => {
const ref = useRef<HTMLInputElement>(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';


export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import './styles/chip.css';

import { IxChip } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { IxContentHeader, IxIconButton } from '@siemens/ix-react';

import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { IxButton, IxContentHeader } from '@siemens/ix-react';

import React from 'react';

export default () => {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/react-test-app/src/preview-examples/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { IxContent, IxContentHeader } from '@siemens/ix-react';

import React from 'react';

export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { DateDropdownOption } from '@siemens/ix';
import { IxDateDropdown } from '@siemens/ix-react';
import React from 'react';

const today = new Date().toLocaleDateString('en-US', {
year: 'numeric',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/
import { IxDateDropdown } from '@siemens/ix-react';
import React from 'react';

export default () => {
return <IxDateDropdown />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxDatePicker, IxSelect, IxSelectItem } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [locale, setLocale] = useState<'de' | 'en' | (string & {})>('de');
Expand Down
Loading

0 comments on commit 6da25df

Please sign in to comment.