From dec20b4cef7f8d475ebbf02089f746173f7c2553 Mon Sep 17 00:00:00 2001 From: faisne <166654065+sheila-semrush@users.noreply.github.com> Date: Thu, 9 Jan 2025 20:34:46 +0100 Subject: [PATCH 1/3] [docs] Fixed table examples aria labels --- .../data-table/docs/examples/access-to-cells.tsx | 2 +- .../data-table/docs/examples/access-to-set-of-cells.tsx | 2 +- .../data-table/docs/examples/accordion-inside-table.tsx | 2 +- .../examples/adding-additional-elements-to-table-body.tsx | 2 +- .../docs/examples/additional-elements-in-header.tsx | 2 +- stories/components/data-table/docs/examples/borders.tsx | 2 +- .../data-table/docs/examples/column-alignment.tsx | 2 +- .../components/data-table/docs/examples/column-expand.tsx | 2 +- .../components/data-table/docs/examples/column-sizes.tsx | 2 +- .../data-table/docs/examples/columns-merging.tsx | 2 +- stories/components/data-table/docs/examples/compact.tsx | 2 +- .../data-table/docs/examples/custom-rows-rendering.tsx | 2 +- .../docs/examples/custom-view-for-table-body.tsx | 2 +- .../data-table/docs/examples/customizing-header.tsx | 2 +- .../data-table/docs/examples/export-in-image.tsx | 2 +- .../components/data-table/docs/examples/fixed-columns.tsx | 2 +- .../docs/examples/fixed-header-with-spin-overlay.tsx | 2 +- .../components/data-table/docs/examples/fixed-header.tsx | 4 ++-- .../data-table/docs/examples/multi-level-header.tsx | 2 +- stories/components/data-table/docs/examples/pagination.tsx | 2 +- .../components/data-table/docs/examples/rows-merging.tsx | 2 +- .../data-table/docs/examples/scroll-in-table.tsx | 2 +- .../data-table/docs/examples/secondary-table.tsx | 7 +------ .../docs/examples/sorting-changing-size-by-columns.tsx | 2 +- .../data-table/docs/examples/sorting-changing-size.tsx | 2 +- stories/components/data-table/docs/examples/sorting.tsx | 7 +------ .../docs/examples/table-in-table-with-fixed-column.tsx | 4 ++-- .../components/data-table/docs/examples/table-in-table.tsx | 4 ++-- .../data-table/docs/examples/virtual-scroll-in-table.tsx | 2 +- 29 files changed, 32 insertions(+), 42 deletions(-) diff --git a/stories/components/data-table/docs/examples/access-to-cells.tsx b/stories/components/data-table/docs/examples/access-to-cells.tsx index 7efacbb23b..cc2322d87f 100644 --- a/stories/components/data-table/docs/examples/access-to-cells.tsx +++ b/stories/components/data-table/docs/examples/access-to-cells.tsx @@ -4,7 +4,7 @@ import { ButtonLink } from '@semcore/button'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/access-to-set-of-cells.tsx b/stories/components/data-table/docs/examples/access-to-set-of-cells.tsx index 4644f7bbfa..6094d504e5 100644 --- a/stories/components/data-table/docs/examples/access-to-set-of-cells.tsx +++ b/stories/components/data-table/docs/examples/access-to-set-of-cells.tsx @@ -4,7 +4,7 @@ import Spin from '@semcore/spin'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/accordion-inside-table.tsx b/stories/components/data-table/docs/examples/accordion-inside-table.tsx index c840225c40..9fac7772d2 100644 --- a/stories/components/data-table/docs/examples/accordion-inside-table.tsx +++ b/stories/components/data-table/docs/examples/accordion-inside-table.tsx @@ -23,7 +23,7 @@ const Demo = () => { return ( /* [1] Wrapping the table in the Accordion control component; */ - + diff --git a/stories/components/data-table/docs/examples/adding-additional-elements-to-table-body.tsx b/stories/components/data-table/docs/examples/adding-additional-elements-to-table-body.tsx index d49eb4801b..fe86bbce78 100644 --- a/stories/components/data-table/docs/examples/adding-additional-elements-to-table-body.tsx +++ b/stories/components/data-table/docs/examples/adding-additional-elements-to-table-body.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/additional-elements-in-header.tsx b/stories/components/data-table/docs/examples/additional-elements-in-header.tsx index 18130d0ea9..045a0d2723 100644 --- a/stories/components/data-table/docs/examples/additional-elements-in-header.tsx +++ b/stories/components/data-table/docs/examples/additional-elements-in-header.tsx @@ -36,7 +36,7 @@ const Demo = () => { } `} - + diff --git a/stories/components/data-table/docs/examples/borders.tsx b/stories/components/data-table/docs/examples/borders.tsx index 8b3715bc07..f4bd9ade9b 100644 --- a/stories/components/data-table/docs/examples/borders.tsx +++ b/stories/components/data-table/docs/examples/borders.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/column-alignment.tsx b/stories/components/data-table/docs/examples/column-alignment.tsx index cec50f7d0f..2e21a6cd41 100644 --- a/stories/components/data-table/docs/examples/column-alignment.tsx +++ b/stories/components/data-table/docs/examples/column-alignment.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/column-expand.tsx b/stories/components/data-table/docs/examples/column-expand.tsx index a7373f4974..c7df15b6ea 100644 --- a/stories/components/data-table/docs/examples/column-expand.tsx +++ b/stories/components/data-table/docs/examples/column-expand.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/column-sizes.tsx b/stories/components/data-table/docs/examples/column-sizes.tsx index caeb1eec1f..87a8417f86 100644 --- a/stories/components/data-table/docs/examples/column-sizes.tsx +++ b/stories/components/data-table/docs/examples/column-sizes.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/columns-merging.tsx b/stories/components/data-table/docs/examples/columns-merging.tsx index c713848632..db74275fb2 100644 --- a/stories/components/data-table/docs/examples/columns-merging.tsx +++ b/stories/components/data-table/docs/examples/columns-merging.tsx @@ -34,7 +34,7 @@ const data = [ const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/compact.tsx b/stories/components/data-table/docs/examples/compact.tsx index e53663eebb..0556155ac3 100644 --- a/stories/components/data-table/docs/examples/compact.tsx +++ b/stories/components/data-table/docs/examples/compact.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/custom-rows-rendering.tsx b/stories/components/data-table/docs/examples/custom-rows-rendering.tsx index 8e99e8bfa9..36df8a73c5 100644 --- a/stories/components/data-table/docs/examples/custom-rows-rendering.tsx +++ b/stories/components/data-table/docs/examples/custom-rows-rendering.tsx @@ -9,7 +9,7 @@ const cache = new CellMeasurerCache({ const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/custom-view-for-table-body.tsx b/stories/components/data-table/docs/examples/custom-view-for-table-body.tsx index 1fdc9d965c..d5c6e17bef 100644 --- a/stories/components/data-table/docs/examples/custom-view-for-table-body.tsx +++ b/stories/components/data-table/docs/examples/custom-view-for-table-body.tsx @@ -4,7 +4,7 @@ import { Box, Flex } from '@semcore/flex-box'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/customizing-header.tsx b/stories/components/data-table/docs/examples/customizing-header.tsx index 1fe72a587c..bc5e7da331 100644 --- a/stories/components/data-table/docs/examples/customizing-header.tsx +++ b/stories/components/data-table/docs/examples/customizing-header.tsx @@ -7,7 +7,7 @@ import { LinkTrigger } from '@semcore/base-trigger'; const Demo = () => { return ( - + { - + diff --git a/stories/components/data-table/docs/examples/fixed-columns.tsx b/stories/components/data-table/docs/examples/fixed-columns.tsx index d45cd4e31e..175f93ac58 100644 --- a/stories/components/data-table/docs/examples/fixed-columns.tsx +++ b/stories/components/data-table/docs/examples/fixed-columns.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/fixed-header-with-spin-overlay.tsx b/stories/components/data-table/docs/examples/fixed-header-with-spin-overlay.tsx index eaae3c2e7f..962344f460 100644 --- a/stories/components/data-table/docs/examples/fixed-header-with-spin-overlay.tsx +++ b/stories/components/data-table/docs/examples/fixed-header-with-spin-overlay.tsx @@ -14,7 +14,7 @@ const Demo = () => { }; }, [loading]); return ( - + diff --git a/stories/components/data-table/docs/examples/fixed-header.tsx b/stories/components/data-table/docs/examples/fixed-header.tsx index e472970c06..5de6ddadd5 100644 --- a/stories/components/data-table/docs/examples/fixed-header.tsx +++ b/stories/components/data-table/docs/examples/fixed-header.tsx @@ -7,7 +7,7 @@ const Demo = () => { return ( <> - + @@ -19,7 +19,7 @@ const Demo = () => {

with Scroll.Bar in Header

- + diff --git a/stories/components/data-table/docs/examples/multi-level-header.tsx b/stories/components/data-table/docs/examples/multi-level-header.tsx index 7b07db2b78..9f8661fc20 100644 --- a/stories/components/data-table/docs/examples/multi-level-header.tsx +++ b/stories/components/data-table/docs/examples/multi-level-header.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/pagination.tsx b/stories/components/data-table/docs/examples/pagination.tsx index 33b47812f5..677388107b 100644 --- a/stories/components/data-table/docs/examples/pagination.tsx +++ b/stories/components/data-table/docs/examples/pagination.tsx @@ -15,7 +15,7 @@ const Demo = () => { return ( <> - + diff --git a/stories/components/data-table/docs/examples/rows-merging.tsx b/stories/components/data-table/docs/examples/rows-merging.tsx index 33fa2191b7..9598ddf663 100644 --- a/stories/components/data-table/docs/examples/rows-merging.tsx +++ b/stories/components/data-table/docs/examples/rows-merging.tsx @@ -41,7 +41,7 @@ const data = [ const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/scroll-in-table.tsx b/stories/components/data-table/docs/examples/scroll-in-table.tsx index 5047c52f0b..61549567c8 100644 --- a/stories/components/data-table/docs/examples/scroll-in-table.tsx +++ b/stories/components/data-table/docs/examples/scroll-in-table.tsx @@ -3,7 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/secondary-table.tsx b/stories/components/data-table/docs/examples/secondary-table.tsx index 2470e91d13..cd746ffcef 100644 --- a/stories/components/data-table/docs/examples/secondary-table.tsx +++ b/stories/components/data-table/docs/examples/secondary-table.tsx @@ -3,12 +3,7 @@ import DataTable from '@semcore/data-table'; const Demo = () => { return ( - + diff --git a/stories/components/data-table/docs/examples/sorting-changing-size-by-columns.tsx b/stories/components/data-table/docs/examples/sorting-changing-size-by-columns.tsx index b88bc4c6cd..be0071afd8 100644 --- a/stories/components/data-table/docs/examples/sorting-changing-size-by-columns.tsx +++ b/stories/components/data-table/docs/examples/sorting-changing-size-by-columns.tsx @@ -28,7 +28,7 @@ const Demo = () => { data={sortedData} sort={sort} onSortChange={setSort} - aria-label={'Table title. With columns marked to recalculate'} + aria-label={'Sorting with columns marked to recalculate'} > diff --git a/stories/components/data-table/docs/examples/sorting-changing-size.tsx b/stories/components/data-table/docs/examples/sorting-changing-size.tsx index 7871ae3ce9..afa2f51833 100644 --- a/stories/components/data-table/docs/examples/sorting-changing-size.tsx +++ b/stories/components/data-table/docs/examples/sorting-changing-size.tsx @@ -28,7 +28,7 @@ const Demo = () => { data={sortedData} sort={sort} onSortChange={setSort} - aria-label={'Table title. Sorting with change sortable column size'} + aria-label={'Sorting with change sortable column size'} > diff --git a/stories/components/data-table/docs/examples/sorting.tsx b/stories/components/data-table/docs/examples/sorting.tsx index 9c477589f4..f5d8876383 100644 --- a/stories/components/data-table/docs/examples/sorting.tsx +++ b/stories/components/data-table/docs/examples/sorting.tsx @@ -24,12 +24,7 @@ const Demo = () => { ); return ( - + diff --git a/stories/components/data-table/docs/examples/table-in-table-with-fixed-column.tsx b/stories/components/data-table/docs/examples/table-in-table-with-fixed-column.tsx index 65350d88f5..441d8f4304 100644 --- a/stories/components/data-table/docs/examples/table-in-table-with-fixed-column.tsx +++ b/stories/components/data-table/docs/examples/table-in-table-with-fixed-column.tsx @@ -18,7 +18,7 @@ const Demo = () => { const [value, setValue] = React.useState([]); return ( - + @@ -33,7 +33,7 @@ const Demo = () => { active: value.includes(index), collapse: { children: ( - + {/* [1] Set the desired z-index */} diff --git a/website/docs/components/skeleton/examples/text_initial_loading.tsx b/website/docs/components/skeleton/examples/text_initial_loading.tsx index d8dbe2fd9a..6172f81ba8 100644 --- a/website/docs/components/skeleton/examples/text_initial_loading.tsx +++ b/website/docs/components/skeleton/examples/text_initial_loading.tsx @@ -1,19 +1,15 @@ import React from 'react'; -import { Text } from 'intergalactic/typography'; -import { Flex } from 'intergalactic/flex-box'; -import Button from 'intergalactic/button'; -import Skeleton from 'intergalactic/skeleton'; +import { Text } from '@semcore/typography'; +import { Flex } from '@semcore/flex-box'; +import Button from '@semcore/button'; +import Skeleton from '@semcore/skeleton'; const Demo = () => { - const [loading, setLoading] = React.useState(false); + const [loading, setLoading] = React.useState(true); return ( <> - - - - - + {!loading && ( The Egyptian pyramids are ancient masonry structures located in Egypt. Sources cite at @@ -21,11 +17,14 @@ const Demo = () => { the Kingdom of Kush, now located in the modern country of Sudan. )} - + ); }; diff --git a/website/docs/components/spin-container/examples/usage_in_content.tsx b/website/docs/components/spin-container/examples/usage_in_content.tsx index 21052c7c5c..9187667179 100644 --- a/website/docs/components/spin-container/examples/usage_in_content.tsx +++ b/website/docs/components/spin-container/examples/usage_in_content.tsx @@ -1,41 +1,27 @@ import React from 'react'; -import { Text } from 'intergalactic/typography'; -import SpinContainer from 'intergalactic/spin-container'; +import { Text } from '@semcore/typography'; +import SpinContainer from '@semcore/spin-container'; +import Button from '@semcore/button'; class Demo extends React.PureComponent { state = { loading: true }; - timerFetch: any; - timer: any; - - componentDidMount() { - this.timerFetch = setInterval(this.fetchData, 3000); - } - - componentWillUnmount() { - clearInterval(this.timerFetch); - clearInterval(this.timer); - } - - fetchData = () => { - this.setState({ loading: false }); - setTimeout(() => { - this.timer = this.setState({ loading: true }); - }, 1000); - }; render() { const { loading } = this.state; return ( - - {!loading && ( - - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aperiam atque beatae - distinctio doloremque, et id quae reiciendis repellat saepe sapiente sequi veritatis. - Adipisci, consequuntur excepturi nobis porro quas recusandae? + <> + + + The Intergalactic Design System uses two sets of design tokens: basic and semantic. + Basic tokens set the main colors, while semantic tokens build on them. Changing the + basic tokens lets you create new themes. - )} - + + + ); } } diff --git a/website/docs/components/spin-container/examples/usage_in_dropdown_lists.tsx b/website/docs/components/spin-container/examples/usage_in_dropdown_lists.tsx deleted file mode 100644 index 8d510142bb..0000000000 --- a/website/docs/components/spin-container/examples/usage_in_dropdown_lists.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import React from 'react'; -import SpinContainer from 'intergalactic/spin-container'; -import { Text } from 'intergalactic/typography'; -import Dropdown from 'intergalactic/dropdown'; -import Button from 'intergalactic/button'; - -class Demo extends React.PureComponent { - state = { loading: true }; - timerFetch: any; - timer: any; - - componentDidMount() { - this.timerFetch = setInterval(this.fetchData, 3000); - } - - componentWillUnmount() { - clearInterval(this.timerFetch); - clearInterval(this.timer); - } - - fetchData = () => { - this.setState({ loading: false }); - setTimeout(() => { - this.timer = this.setState({ loading: true }); - }, 1000); - }; - - render() { - const { loading } = this.state; - - return ( - - Help me - - - - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aperiam atque beatae - distinctio doloremque, et id quae reiciendis repellat saepe sapiente sequi veritatis. - Adipisci, consequuntur excepturi nobis porro quas recusandae? - - - - - ); - } -} - -export default Demo; diff --git a/website/docs/components/spin-container/examples/usage_in_dropdowns.tsx b/website/docs/components/spin-container/examples/usage_in_dropdowns.tsx new file mode 100644 index 0000000000..fad353261b --- /dev/null +++ b/website/docs/components/spin-container/examples/usage_in_dropdowns.tsx @@ -0,0 +1,51 @@ +import React from 'react'; +import SpinContainer from '@semcore/spin-container'; +import { Text } from '@semcore/typography'; +import Dropdown from '@semcore/dropdown'; +import Button from '@semcore/button'; + +class Demo extends React.PureComponent { + state = { loading: true }; + timer: any; + textRef = React.createRef(); + + componentWillUnmount() { + clearTimeout(this.timer); + } + + fetchData = () => { + clearTimeout(this.timer); + this.setState({ loading: true }); + this.timer = setTimeout(() => { + this.setState({ loading: false }, () => this.textRef.current?.focus()); + }, 1500); + }; + + render() { + const { loading } = this.state; + + return ( + + + Dropdown with SpinContainer + + + + + The Intergalactic Design System uses two sets of design tokens: basic and semantic. + Basic tokens set the main colors, while semantic tokens build on them. Changing the + basic tokens lets you create new themes. + + + + + ); + } +} + +export default Demo; diff --git a/website/docs/components/spin-container/spin-container-api.md b/website/docs/components/spin-container/spin-container-api.md index 386ff59cf0..94b89fa5b1 100644 --- a/website/docs/components/spin-container/spin-container-api.md +++ b/website/docs/components/spin-container/spin-container-api.md @@ -24,7 +24,7 @@ import SpinContainer from '@semcore/ui/spin-container'; ## SpinContainer.Overlay -By default, it is a UI component and a base that closes the content under `Spin`. +A semitransparent box with a [Spin](../spin/spin.md) displayed over the content. ```jsx import SpinContainer from '@semcore/ui/spin-container'; diff --git a/website/docs/components/spin-container/spin-container-code.md b/website/docs/components/spin-container/spin-container-code.md index 915b261bd0..1937f58708 100644 --- a/website/docs/components/spin-container/spin-container-code.md +++ b/website/docs/components/spin-container/spin-container-code.md @@ -14,14 +14,14 @@ tabs: Design('spin-container'), A11y('spin-container-a11y'), API('spin-container ::: -## Usage in dropdown lists +## Usage in dropdowns -This example demonstrates how to resize and display content within the SpinContainer. +This example demonstrates how to resize and display content within the `SpinContainer`. ::: sandbox ::: diff --git a/website/docs/components/spin/examples/basic_example.tsx b/website/docs/components/spin/examples/basic_example.tsx index ed9fe5197a..1a9a84da56 100644 --- a/website/docs/components/spin/examples/basic_example.tsx +++ b/website/docs/components/spin/examples/basic_example.tsx @@ -1,11 +1,10 @@ import React from 'react'; -import { Flex } from 'intergalactic/flex-box'; -import DataTable from 'intergalactic/data-table'; -import Spin from 'intergalactic/spin'; -import Button from 'intergalactic/button'; +import DataTable from '@semcore/data-table'; +import Spin from '@semcore/spin'; +import Button from '@semcore/button'; const Demo = () => { - const [loading, setLoading] = React.useState(false); + const [loading, setLoading] = React.useState(true); const data = [ { @@ -20,10 +19,6 @@ const Demo = () => { return ( <> - - - - @@ -43,6 +38,9 @@ const Demo = () => { + ); }; diff --git a/website/docs/table-group/data-table/data-table-code.md b/website/docs/table-group/data-table/data-table-code.md index a03ec839e1..40fce71cdb 100644 --- a/website/docs/table-group/data-table/data-table-code.md +++ b/website/docs/table-group/data-table/data-table-code.md @@ -80,18 +80,6 @@ Scroll in the table header is useful for very long tables with fixed columns, al ::: -### Fixed header with loading state in table - -For correct components overlapping, use the `SpinContainer` component with `SpinContainer.Overlay` but without `SpinContainer.Content` . - -::: sandbox - - - -::: - ### Header customization You can insert tooltips, selects, and other components into the table header using the `children` property. @@ -346,16 +334,16 @@ Avoid placing [Pagination](/components/pagination/pagination) inside the table, ::: -## Table states +## Loading states -### Loading data +### SpinContainer Replace the `tag` property with `` on the `SpinContainer` to cover the table with a [Spin](/components/spin/spin). ::: sandbox ::: From 69244e5792ea77d34519e7519293a5ae47a8fd66 Mon Sep 17 00:00:00 2001 From: faisne <166654065+sheila-semrush@users.noreply.github.com> Date: Thu, 9 Jan 2025 20:56:47 +0100 Subject: [PATCH 3/3] [chore] fix example name in tests --- semcore/data-table/__tests__/data-table.axe-test.tsx | 12 ++++++------ semcore/data-table/__tests__/index.test.tsx | 2 +- .../data-table/docs/DataTable.docs.stories.tsx | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/semcore/data-table/__tests__/data-table.axe-test.tsx b/semcore/data-table/__tests__/data-table.axe-test.tsx index c54a65bf65..b43999c3d2 100644 --- a/semcore/data-table/__tests__/data-table.axe-test.tsx +++ b/semcore/data-table/__tests__/data-table.axe-test.tsx @@ -110,12 +110,6 @@ test.describe('DataTable', () => { expect(violations).toEqual([]); }); - test('download status', async ({ page }) => { - const standPath = 'stories/components/data-table/docs/examples/download-status.tsx'; - const violations = await checkAxe(page, standPath); - - expect(violations).toEqual([]); - }); test('export in image', async ({ page }) => { const standPath = 'stories/components/data-table/docs/examples/export-in-image.tsx'; const violations = await checkAxe(page, standPath); @@ -177,6 +171,12 @@ test.describe('DataTable', () => { expect(violations).toEqual([]); }); + test('spin container in table', async ({ page }) => { + const standPath = 'stories/components/data-table/docs/examples/spin-container-in-table.tsx'; + const violations = await checkAxe(page, standPath); + + expect(violations).toEqual([]); + }); test('sorting changing size by columns', async ({ page }) => { const standPath = 'stories/components/data-table/docs/examples/sorting-changing-size-by-columns.tsx'; diff --git a/semcore/data-table/__tests__/index.test.tsx b/semcore/data-table/__tests__/index.test.tsx index ae6ca75de8..6b35190f20 100644 --- a/semcore/data-table/__tests__/index.test.tsx +++ b/semcore/data-table/__tests__/index.test.tsx @@ -641,7 +641,7 @@ describe('DataTable', () => { await expect(await snapshot(component)).toMatchImageSnapshot(task); }); - test.concurrent('Download status', async ({ task }) => { + test.concurrent('SpinContainer in table', async ({ task }) => { const component = (
diff --git a/stories/components/data-table/docs/DataTable.docs.stories.tsx b/stories/components/data-table/docs/DataTable.docs.stories.tsx index 4d09fc8b0d..73b2608425 100644 --- a/stories/components/data-table/docs/DataTable.docs.stories.tsx +++ b/stories/components/data-table/docs/DataTable.docs.stories.tsx @@ -17,7 +17,6 @@ import CompactExample from './examples/compact'; import CustomRowsRenderingExample from './examples/custom-rows-rendering'; import CustomViewForTableBodyExample from './examples/custom-view-for-table-body'; import CustomizingHeaderExample from './examples/customizing-header'; -import DownloadStatusExample from './examples/download-status'; import ExportInImageExample from './examples/export-in-image'; import FixedColumnsExample from './examples/fixed-columns'; import FixedHeaderExample from './examples/fixed-header'; @@ -28,6 +27,7 @@ import RowsMergingExample from './examples/rows-merging'; import ScrollInTableExample from './examples/scroll-in-table'; import SecondaryTableExample from './examples/secondary-table'; import SkeletonInTableExample from './examples/skeleton-in-table'; +import SpinContainerInTableExample from './examples/spin-container-in-table'; import SortingExample from './examples/sorting'; import SortingChangingSizeExample from './examples/sorting-changing-size'; import SortingChangingSizeByColumnsExample from './examples/sorting-changing-size-by-columns'; @@ -103,10 +103,6 @@ export const CustomizingHeader: Story = { render: CustomizingHeaderExample, }; -export const DownloadStatus: Story = { - render: DownloadStatusExample, -}; - export const ExportInImage: Story = { render: ExportInImageExample, }; @@ -147,6 +143,10 @@ export const SkeletonInTable: Story = { render: SkeletonInTableExample, }; +export const SpinContainerInTable: Story = { + render: SpinContainerInTableExample, +}; + export const Sorting: Story = { render: SortingExample, }; @@ -169,4 +169,4 @@ export const TableInTableWithFixedColumn: Story = { export const VirtualScrollInTable: Story = { render: VirtualScrollInTableExample, -}; \ No newline at end of file +};