diff --git a/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx b/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx index 0416efdf08e..df544a5cd1d 100644 --- a/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx +++ b/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx @@ -3,108 +3,138 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { Accordion } from '../Accordion'; -import { AccordionToggle } from '../AccordionToggle'; -import { AccordionContent } from '../AccordionContent'; -import { AccordionItem } from '../AccordionItem'; -import { AccordionExpandedContentBody } from '../AccordionExpandedContentBody'; - -describe('Accordion', () => { - test('Accordion default', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); - - test('Accordion with non-default headingLevel', () => { - const { asFragment } = render( - - - Item One - Item One Content - - - ); - expect(asFragment()).toMatchSnapshot(); - }); - - test('It should pass optional aria props', () => { - render( - - - - ); - const button = screen.getByRole('button'); - - expect(button).toHaveAttribute('aria-label', 'Toggle details for'); - expect(button).toHaveAttribute('aria-labelledby', 'ex-toggle2 ex-item2'); - expect(button).toHaveAttribute('aria-expanded', 'false'); - }); - - test('Toggle expanded', () => { - render( - - - - ); - const button = screen.getByRole('button'); - - expect(button).toHaveAttribute('aria-expanded', 'true'); - expect(button).toHaveClass('pf-m-expanded'); - }); - - test('renders content with custom Toggle and Content containers', () => { - const container = 'a'; - - const { asFragment } = render( - - - - Item One - - Item One Content - - - ); - - expect(screen.getByText('Item One')).toBeInTheDocument(); - expect(screen.getByText('Item One Content')).toBeInTheDocument(); - }); - - test('Accordion bordered', () => { - const { asFragment } = render( - - - Item One - Item One Content - - - ); - expect(asFragment()).toMatchSnapshot(); - }); - - test('Accordion display large', () => { - const { asFragment } = render( - - - Item One - Item One Content - - - ); - expect(asFragment()).toMatchSnapshot(); - }); - - test('Accordion custom content', () => { - const { asFragment } = render( - - - Item One - - Item one content body 1 - Item one Content body 2 - - - - ); - expect(asFragment()).toMatchSnapshot(); - }); +import { AccordionContext } from '../AccordionContext'; + +test('Renders without children', () => { + render(); + + expect(screen.getByTestId('accordion')).toBeVisible(); +}); + +test('Renders children', () => { + render(Test); + + expect(screen.getByText('Test')).toBeVisible(); +}); + +test('Renders with the passed aria label', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveAccessibleName('Accordion test'); +}); + +test('Renders with inherited element props spread to the component', () => { + render( + <> + Test +

Label

+ + ); + + expect(screen.getByText('Test')).toHaveAccessibleName('Label'); +}); + +test('Renders with class name pf-c-accordion', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('pf-c-accordion'); +}); + +test('Renders with custom class names provided via prop', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('test-class'); +}); + +test('Renders Accordion as a "dl" by default', () => { + render(Test); + + /* these tests asserting a nodeName property aren't my favorite, but dl and div elements don't have implicit aria + roles for us to select/assert against with something more directly meaningful to user experience */ + expect(screen.getByText('Test')).toHaveProperty('nodeName', 'DL'); +}); + +test('Renders Accordion as a "div" when asDefinitionList is false', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveProperty('nodeName', 'DIV'); +}); + +test('Provides a ContentContainer of "dd" in a context by default', () => { + render( + + {({ ContentContainer }) => ContentContainer} + + ); + + expect(screen.getByText('dd')).toBeVisible(); +}); + +test('Provides a ContentContainer of "div" in a context when asDefinitionList is false', () => { + render( + + {({ ContentContainer }) => ContentContainer} + + ); + + expect(screen.getByText('div')).toBeVisible(); +}); + +test('Provides a ToggleContainer of "dt" in a context by default', () => { + render( + + {({ ToggleContainer }) => ToggleContainer} + + ); + + expect(screen.getByText('dt')).toBeVisible(); +}); + +test('Provides a ToggleContainer of "h3" in a context when asDefinitionList is false', () => { + render( + + {({ ToggleContainer }) => ToggleContainer} + + ); + + expect(screen.getByText('h3')).toBeVisible(); +}); + +test('Provides a ToggleContainer of "h2" in a context when asDefinitionList is false and headingLevel is "h2"', () => { + render( + + {({ ToggleContainer }) => ToggleContainer} + + ); + + expect(screen.getByText('h2')).toBeVisible(); +}); + +test('Renders without pf-m-bordered by default', () => { + render(Test); + + expect(screen.getByText('Test')).not.toHaveClass('pf-m-bordered'); +}); + +test('Renders with pf-m-bordered when isBordered=true', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('pf-m-bordered'); +}); + +test('Renders without pf-m-display-lg by default', () => { + render(Test); + + expect(screen.getByText('Test')).not.toHaveClass('pf-m-display-lg'); +}); + +test('Renders with pf-m-display-lg when displaySize=large', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('pf-m-display-lg'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render(); + expect(asFragment()).toMatchSnapshot(); }); diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx new file mode 100644 index 00000000000..8c07a023fd9 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx @@ -0,0 +1,180 @@ +import React from 'react'; + +import { render, screen } from '@testing-library/react'; + +import { AccordionContent } from '../AccordionContent'; +import { AccordionContext } from '../AccordionContext'; + +jest.mock('../AccordionExpandedContentBody', () => ({ + AccordionExpandedContentBody: ({ children }) =>
{children}
+})); + +test('Renders without children', () => { + render( + + + + ); + + expect(screen.getByTestId('accordion-content')).toBeVisible(); +}); + +test('Renders children', () => { + render( + + Test + + ); + + expect(screen.getByText('Test')).toBeVisible(); +}); + +test('Renders with children wrapped in AccordionExpandedContentBody by default', () => { + render( + + Test + + ); + + expect(screen.getByText('Test')).toHaveAccessibleName('Expanded content body mock'); +}); + +test('Does not render children wrapped in AccordionExpandedContentBody when isCustomContent=true', () => { + render( + + Test + + ); + + expect(screen.getByText('Test')).not.toHaveAccessibleName('Expanded content body mock'); +}); + +test('Renders with the passed aria label', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).toHaveAccessibleName('Accordion content'); +}); + +test('Renders with inherited element props spread to the component', () => { + render( + <> + + Test +

Label

+
+ + ); + + expect(screen.getByRole('heading')).toHaveAccessibleName('Label'); +}); + +test('Renders with class name pf-c-accordion__expanded-content', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).toHaveClass('pf-c-accordion__expanded-content'); +}); + +test('Renders with custom class names provided via prop', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).toHaveClass('test-class'); +}); + +test('Renders with the id prop passed to the container', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).toHaveProperty('id', 'test-id'); +}); + +test('Renders the container as the element provided in ContentContainer from a context by default', () => { + render( + + Test + + ); + + expect(screen.queryByRole('heading', { level: 1 })).not.toBeInTheDocument(); + expect(screen.getByRole('heading', { level: 3 })).toBeVisible(); +}); + +test('Renders as the element provided via the component prop when one is provided', () => { + render( + + Test + + ); + + expect(screen.queryByRole('heading', { level: 3 })).not.toBeInTheDocument(); + expect(screen.getByRole('heading', { level: 1 })).toBeVisible(); +}); + +test('Renders without pf-m-fixed by default', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).not.toHaveClass('pf-m-fixed'); +}); + +test('Renders with pf-m-fixed when isFixed is true', () => { + render( + + Test + + ); + + expect(screen.getByRole('heading')).toHaveClass('pf-m-fixed'); +}); + +test('Renders unhidden and with pf-m-expanded by default', () => { + render( + + Test + + ); + + const contentContainer = screen.getByRole('heading') + + expect(contentContainer).not.toHaveAttribute('hidden'); + expect(contentContainer).toHaveClass('pf-m-expanded'); +}); + +test('Renders aria-hidden and without pf-m-expanded when isHidden is true', () => { + render( + + Test + + ); + + const contentContainer = screen.getByRole('heading', { hidden: true }) + + expect(contentContainer).toHaveAttribute('hidden'); + expect(contentContainer).not.toHaveClass('pf-m-expanded'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render( + + Test + + ); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx new file mode 100644 index 00000000000..bbd4cbbf6a3 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx @@ -0,0 +1,33 @@ +import React from 'react'; + +import { render, screen } from '@testing-library/react'; + +import { AccordionExpandedContentBody } from '../AccordionExpandedContentBody'; + +test('Renders without children', () => { + const { asFragment } = render(); + + /* a snapshot test is used here because this component isn't selectable via better screen queries without children + as it doesn't spread other props to its container + */ + expect(asFragment()).toMatchSnapshot(); +}); + +test('Renders children', () => { + render(Test); + + expect(screen.getByText('Test')).toBeVisible(); +}); + +test('Renders with class name pf-c-accordion__expanded-content-body', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('pf-c-accordion__expanded-content-body'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render( + Test + ); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionItem.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionItem.test.tsx new file mode 100644 index 00000000000..d2a6c8ff540 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionItem.test.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +import { render, screen } from '@testing-library/react'; + +import { AccordionItem } from '../AccordionItem'; + +test('Renders children', () => { + render(Test); + + expect(screen.getByText('Test')).toBeVisible(); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render( + Test + ); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx new file mode 100644 index 00000000000..3f76b9a8b13 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx @@ -0,0 +1,164 @@ +import React from 'react'; + +import { render, screen } from '@testing-library/react'; + +import { AccordionToggle } from '../AccordionToggle'; +import { AccordionContext } from '../AccordionContext'; + +jest.mock('@patternfly/react-icons/dist/esm/icons/angle-right-icon', () => () => 'Icon mock'); + +test('Renders without children', () => { + render( + + + + ); + + expect(screen.getByTestId('accordion-toggle-test-id')).toBeVisible(); +}); + +test('Renders children', () => { + render( + + Test + + ); + + expect(screen.getByText('Test')).toBeVisible(); +}); + +test('Renders with inherited element props spread to the component', () => { + render( + <> + + + Test + +

Label

+
+ + ); + + expect(screen.getByRole('button')).toHaveAccessibleName('Label'); +}); + +test('Renders the accordion toggle with class pf-c-accordion__toggle', () => { + render( + + + Test + + + ); + + expect(screen.getByRole('button')).toHaveClass('pf-c-accordion__toggle'); +}); + +test('Renders the accordion toggle with custom class names provided via prop', () => { + render( + + + Test + + + ); + + expect(screen.getByRole('button')).toHaveClass('test-class'); +}); + +test('Renders with children inside class pf-c-accordion__toggle-text', () => { + render( + + + Test + + + ); + + expect(screen.getByText('Test')).toHaveClass('pf-c-accordion__toggle-text'); +}); + +test('Renders with the toggle icon inside class pf-c-accordion__toggle-icon', () => { + render( + + + Test + + + ); + + expect(screen.getByText('Icon mock')).toHaveClass('pf-c-accordion__toggle-icon'); +}); + +test('Renders with the id prop passed to the toggle', () => { + render( + + + Test + + + ); + + expect(screen.getByRole('button')).toHaveProperty('id', 'accordion-toggle'); +}); + +test('Renders the container as the element provided in ToggleContainer from a context by default', () => { + render( + + Test + + ); + + expect(screen.queryByRole('heading', { level: 1 })).not.toBeInTheDocument(); + expect(screen.getByRole('heading', { level: 3 })).toBeVisible(); +}); + +test('Renders the container as the element provided via the component prop when one is provided', () => { + render( + + + Test + + + ); + + expect(screen.queryByRole('heading', { level: 3 })).not.toBeInTheDocument(); + expect(screen.getByRole('heading', { level: 1 })).toBeVisible(); +}); + +test('Renders the toggle without pf-m-expanded and aria-expanded=false by default', () => { + render( + + Test + + ); + + const toggle = screen.getByRole('button'); + + expect(toggle).not.toHaveClass('pf-m-expanded'); + expect(toggle).toHaveAttribute('aria-expanded', 'false'); +}); + +test('Renders the toggle with pf-m-expanded and aria-expanded=true when isExpanded=true', () => { + render( + + + Test + + + ); + + const toggle = screen.getByRole('button'); + + expect(toggle).toHaveClass('pf-m-expanded'); + expect(toggle).toHaveAttribute('aria-expanded', 'true'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render( + + Test + + ); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap index 4e4121ce518..176a5bba191 100644 --- a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +++ b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap @@ -1,115 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Accordion Accordion bordered 1`] = ` - -
-
- -
-
-
- Item One Content -
-
-
-
-`; - -exports[`Accordion Accordion custom content 1`] = ` - -
-
- -
-
-
- Item one content body 1 -
-
- Item one Content body 2 -
-
-
-
-`; - -exports[`Accordion Accordion default 1`] = ` +exports[`Matches the snapshot 1`] = `
`; - -exports[`Accordion Accordion display large 1`] = ` - -
-
- -
-
-
- Item One Content -
-
-
-
-`; - -exports[`Accordion Accordion with non-default headingLevel 1`] = ` - -
-

- -

-
-
- Item One Content -
-
-
-
-`; diff --git a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionContent.test.tsx.snap b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionContent.test.tsx.snap new file mode 100644 index 00000000000..1ff2488c81b --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionContent.test.tsx.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + +

+
+ Test +
+

+
+`; diff --git a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionExpandedContentBody.test.tsx.snap b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionExpandedContentBody.test.tsx.snap new file mode 100644 index 00000000000..21188ba69ab --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionExpandedContentBody.test.tsx.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + +
+ Test +
+
+`; + +exports[`Renders without children 1`] = ` + +
+ +`; diff --git a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionItem.test.tsx.snap b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionItem.test.tsx.snap new file mode 100644 index 00000000000..2c26d83dce7 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionItem.test.tsx.snap @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + + Test + +`; diff --git a/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionToggle.test.tsx.snap b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionToggle.test.tsx.snap new file mode 100644 index 00000000000..25b9cadd984 --- /dev/null +++ b/packages/react-core/src/components/Accordion/__tests__/__snapshots__/AccordionToggle.test.tsx.snap @@ -0,0 +1,25 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + +

+ +

+
+`; diff --git a/packages/react-integration/cypress/integration/accordion.spec.ts b/packages/react-integration/cypress/integration/accordion.spec.ts deleted file mode 100644 index 03fbc825ad4..00000000000 --- a/packages/react-integration/cypress/integration/accordion.spec.ts +++ /dev/null @@ -1,34 +0,0 @@ -describe('Accordion Demo Test', () => { - it('Navigate to Accordion section', () => { - cy.visit('http://localhost:3000/accordion-demo-nav-link'); - }); - - it('Verify toggle open behavior', () => { - cy.get('#item-1').click(); - cy.get('#item-1').should('have.attr', 'aria-expanded', 'true'); - cy.get('#item-2').should('have.attr', 'aria-expanded', 'false'); - cy.get('#item-3').should('have.attr', 'aria-expanded', 'false'); - const expandedContent = cy.get('#accordion-example .pf-c-accordion__expanded-content.pf-m-expanded'); - expandedContent.should('have.length', 1); - expandedContent.should('have.attr', 'id', 'item-1-content'); - }); - - it('Verify toggle switch behavior', () => { - cy.get('#item-2').click(); - cy.get('#item-1').should('have.attr', 'aria-expanded', 'false'); - cy.get('#item-2').should('have.attr', 'aria-expanded', 'true'); - cy.get('#item-3').should('have.attr', 'aria-expanded', 'false'); - const expandedContent = cy.get('#accordion-example .pf-c-accordion__expanded-content.pf-m-expanded'); - expandedContent.should('have.length', 1); - expandedContent.should('have.attr', 'id', 'item-2-content'); - }); - - it('Verify toggle close behavior', () => { - cy.get('#item-2').click(); - cy.get('#item-1').should('have.attr', 'aria-expanded', 'false'); - cy.get('#item-2').should('have.attr', 'aria-expanded', 'false'); - cy.get('#item-3').should('have.attr', 'aria-expanded', 'false'); - const expandedContent = cy.get('#accordion-example .pf-c-accordion__expanded-content.pf-m-expanded'); - expandedContent.should('not.exist'); - }); -}); diff --git a/packages/react-integration/demo-app-ts/src/Demos.ts b/packages/react-integration/demo-app-ts/src/Demos.ts index 691a14208ea..e3b8cba3d80 100644 --- a/packages/react-integration/demo-app-ts/src/Demos.ts +++ b/packages/react-integration/demo-app-ts/src/Demos.ts @@ -15,11 +15,6 @@ export const Demos: DemoInterface[] = [ name: 'About Modal Demo', componentType: Examples.AboutModalDemo }, - { - id: 'accordion-demo', - name: 'Accordion Demo', - componentType: Examples.AccordionDemo - }, { id: 'alert-timeout-close-button-demo', name: 'Alert Timeout Close Button Demo', diff --git a/packages/react-integration/demo-app-ts/src/components/demos/AccordionDemo/AccordionDemo.tsx b/packages/react-integration/demo-app-ts/src/components/demos/AccordionDemo/AccordionDemo.tsx deleted file mode 100644 index 82eff12da2f..00000000000 --- a/packages/react-integration/demo-app-ts/src/components/demos/AccordionDemo/AccordionDemo.tsx +++ /dev/null @@ -1,207 +0,0 @@ -import React from 'react'; -import { - Accordion, - AccordionItem, - AccordionContent, - AccordionToggle, - AccordionExpandedContentBody, - Stack, - StackItem, - Button -} from '@patternfly/react-core'; - -interface AccordionDemoState { - expanded: string; -} - -export class AccordionDemo extends React.Component { - static displayName = 'AccordionDemo'; - state: AccordionDemoState = { - expanded: '' - }; - - componentDidMount() { - window.scrollTo(0, 0); - } - - onToggle = (id: string) => { - const { expanded } = this.state; - this.setState({ expanded: id !== expanded ? id : '' }); - }; - - render() { - const { expanded } = this.state; - return ( - - - - - this.onToggle('item-1')} isExpanded={expanded === 'item-1'} id="item-1"> - Item One - - -

- Item One Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
- - this.onToggle('item-2')} isExpanded={expanded === 'item-2'} id="item-2"> - Item Two - - -

- Item Two Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
- - this.onToggle('item-3')} isExpanded={expanded === 'item-3'} id="item-3"> - Item Three - - -

- Item Three Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
-
-
- - - - this.onToggle('item-1')} isExpanded={expanded === 'item-1'} id="item-1"> - Item One - - -

- Item One Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
- - this.onToggle('item-2')} isExpanded={expanded === 'item-2'} id="item-2"> - Item Two - - -

- Item Two Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
- - this.onToggle('item-3')} isExpanded={expanded === 'item-3'} id="item-3"> - Item Three - - -

- Item Three Content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. -

-
-
-
-
- - - - { - this.onToggle('ex-toggle1'); - }} - isExpanded={expanded === 'ex-toggle1'} - id="ex-toggle1" - > - Item One - - -

- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore - et dolore magna aliqua. -

-
-
- - { - this.onToggle('ex-toggle2'); - }} - isExpanded={expanded === 'ex-toggle2'} - id="ex-toggle2" - > - Item Two - - -

- Vivamus et tortor sed arcu congue vehicula eget et diam. Praesent nec dictum lorem. Aliquam id diam - ultrices, faucibus erat id, maximus nunc. -

-
-
- - { - this.onToggle('ex-toggle3'); - }} - isExpanded={expanded === 'ex-toggle3'} - id="ex-toggle3" - > - Item Three - - -

Morbi vitae urna quis nunc convallis hendrerit. Aliquam congue orci quis ultricies tempus.

-
-
- - { - this.onToggle('ex-toggle4'); - }} - isExpanded={expanded === 'ex-toggle4'} - id="ex-toggle4" - > - Item Four - - - - Donec vel posuere orci. Phasellus quis tortor a ex hendrerit efficitur. Aliquam lacinia ligula - pharetra, sagittis ex ut, pellentesque diam. Vestibulum ante ipsum primis in faucibus orci luctus et - ultrices posuere cubilia Curae; Vestibulum ultricies nulla nibh. Etiam vel dui fermentum ligula - ullamcorper eleifend non quis tortor. Morbi tempus ornare tempus. Orci varius natoque penatibus et - magnis dis parturient montes, nascetur ridiculus mus. Mauris et velit neque. Donec ultricies - condimentum mauris, pellentesque imperdiet libero convallis convallis. Aliquam erat volutpat. Donec - rutrum semper tempus. Proin dictum imperdiet nibh, quis dapibus nulla. Integer sed tincidunt lectus, - sit amet auctor eros. - - - - - - - - { - this.onToggle('ex-toggle5'); - }} - isExpanded={expanded === 'ex-toggle5'} - id="ex-toggle5" - > - Item Five - - -

Vivamus finibus dictum ex id ultrices. Mauris dictum neque a iaculis blandit.

-
-
-
-
-
- ); - } -} diff --git a/packages/react-integration/demo-app-ts/src/components/demos/index.ts b/packages/react-integration/demo-app-ts/src/components/demos/index.ts index 5d234aab0a4..d0539a1cf0f 100644 --- a/packages/react-integration/demo-app-ts/src/components/demos/index.ts +++ b/packages/react-integration/demo-app-ts/src/components/demos/index.ts @@ -1,5 +1,4 @@ export * from './AboutModal/AboutModalDemo'; -export * from './AccordionDemo/AccordionDemo'; export * from './AlertDemo/AlertDemo'; export * from './AlertDemo/AlertTimeoutCloseButtonDemo'; export * from './AlertGroupDemo/AlertGroupDemo';