Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix preview examples #1442

Merged
merged 3 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 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,7 @@

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,7 @@ 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,7 +15,7 @@ import {
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 @@ -17,7 +17,7 @@ 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,7 @@
*/

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,7 @@
*/

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


export default () => {
return <IxAvatar initials="JD"></IxAvatar>;
Expand Down
2 changes: 1 addition & 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,7 @@
*/

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,7 @@
*/

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,7 @@
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,7 @@ 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,7 @@
import './styles/blind.css';

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


export default () => {
return (
Expand Down
2 changes: 1 addition & 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,7 @@
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,7 @@
*/

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,7 @@
*/

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,7 @@
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,7 @@
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,7 @@
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,7 @@
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,7 @@
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,7 @@
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,7 @@
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,7 @@
*/

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,7 @@
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,7 @@
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,7 @@
import './styles/icon-button.css';

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


export default () => {
return (
Expand Down
2 changes: 1 addition & 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,7 @@
import './styles/buttons.css';

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


export default () => {
return (
Expand Down
2 changes: 1 addition & 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,7 @@
*/

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


export default () => {
return (
Expand Down
2 changes: 1 addition & 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,7 @@
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
2 changes: 1 addition & 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,7 @@
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,7 @@

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,7 @@

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

import React from 'react';


export default () => {
return (
Expand Down
Loading
Loading