Skip to content

Commit 2400dd2

Browse files
tenphiCopilot
andauthored
feat(ItemBase): loading state (#760)
Co-authored-by: Copilot <[email protected]>
1 parent 17d2e95 commit 2400dd2

File tree

63 files changed

+605
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+605
-116
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Add support for loading state in ItemBase via `isLoading` and `loadingSlot` props.

.changeset/sour-turtles-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Add loading state support to ItemButton.

.storybook/preview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { configure } from '@storybook/test';
12
import isChromatic from 'chromatic/isChromatic';
23
import { config } from 'react-transition-group';
3-
import { configure } from 'storybook/test';
44

55
import { Root } from '../src';
66

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
"@react-stately/utils": "^3.10.5",
7575
"@react-types/shared": "^3.27.0",
7676
"@sparticuz/chromium": "^137.0.1",
77+
"@storybook/react": "^9.1.2",
78+
"@storybook/test": "^8.6.14",
7779
"@tabler/icons-react": "^3.31.0",
7880
"@tanstack/react-virtual": "^3.13.12",
7981
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
@@ -103,13 +105,13 @@
103105
},
104106
"devDependencies": {
105107
"@actions/core": "^1.11.1",
106-
"@eslint/js": "^9.25.1",
107108
"@actions/exec": "^1.1.1",
108109
"@actions/github": "^6.0.0",
109110
"@changesets/changelog-github": "^0.4.4",
110111
"@changesets/cli": "^2.22.0",
111112
"@commitlint/cli": "^17.4.4",
112113
"@commitlint/config-conventional": "^17.4.4",
114+
"@eslint/js": "^9.25.1",
113115
"@jest/types": "^29.6.3",
114116
"@size-limit/file": "^8.2.4",
115117
"@size-limit/webpack": "^8.2.4",

pnpm-lock.yaml

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/actions/Action/Action.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react-vite';
1+
import { StoryFn } from '@storybook/react';
22

33
import { baseProps } from '../../../stories/lists/baseProps';
44

src/components/actions/Button/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react-vite';
1+
import { StoryFn } from '@storybook/react';
22
import { IconCaretDown, IconCoin } from '@tabler/icons-react';
33

44
import { baseProps } from '../../../stories/lists/baseProps';

src/components/actions/CommandMenu/CommandMenu.stories.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
import {
2+
expect,
3+
findByRole,
4+
userEvent,
5+
waitFor,
6+
within,
7+
} from '@storybook/test';
18
import {
29
IconArrowBack,
310
IconArrowForward,
@@ -7,7 +14,6 @@ import {
714
IconSelect,
815
} from '@tabler/icons-react';
916
import React, { useState } from 'react';
10-
import { expect, findByRole, userEvent, waitFor, within } from 'storybook/test';
1117

1218
import { tasty } from '../../../tasty';
1319
import { Card } from '../../content/Card/Card';
@@ -29,7 +35,7 @@ import { useContextMenu } from '../use-context-menu';
2935

3036
import { CommandMenu, CubeCommandMenuProps } from './CommandMenu';
3137

32-
import type { StoryFn } from '@storybook/react-vite';
38+
import type { StoryFn } from '@storybook/react';
3339

3440
// Styled components for header and footer
3541
const HeaderTitle = tasty(Text, {

0 commit comments

Comments
 (0)