agroptima-design-system 0.27.11 → 0.27.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/run-linters.yml +1 -1
- package/.github/workflows/run-tests.yml +1 -1
- package/.nvmrc +1 -1
- package/package.json +12 -13
- package/src/atoms/Multiselect.tsx +2 -2
- package/src/icons/electronic-invoice.svg +1 -0
- package/src/icons/index.tsx +2 -0
- package/src/stories/Alert.stories.ts +1 -1
- package/src/stories/CardMenu.stories.js +0 -2
- package/src/stories/CardsTable.stories.js +3 -3
- package/src/stories/Changelog.mdx +5 -0
- package/src/stories/Collapsible.stories.js +6 -6
- package/src/stories/Drawer.stories.js +1 -1
- package/src/stories/Form.stories.js +3 -3
- package/src/stories/Modal.stories.js +4 -4
- package/src/stories/Popover.stories.js +2 -2
- package/tests/Alert.spec.tsx +2 -2
- package/tests/Badge.spec.tsx +2 -2
- package/tests/Button.spec.tsx +2 -2
- package/tests/Card.spec.tsx +2 -2
- package/tests/CardMenuOption.spec.tsx +1 -1
- package/tests/CardsTable.spec.tsx +3 -3
- package/tests/CheckableTag.spec.tsx +2 -2
- package/tests/Checkbox.spec.tsx +1 -1
- package/tests/Collapsible.spec.tsx +2 -2
- package/tests/Drawer.spec.tsx +3 -3
- package/tests/EmptyState.spec.tsx +3 -3
- package/tests/FloatingButton.spec.tsx +2 -2
- package/tests/Icon.spec.tsx +1 -1
- package/tests/IconButton.spec.tsx +2 -2
- package/tests/Input.spec.tsx +1 -1
- package/tests/Menu.spec.tsx +2 -2
- package/tests/Modal.spec.tsx +1 -1
- package/tests/Multiselect.spec.tsx +1 -1
- package/tests/Pagination.spec.tsx +1 -1
- package/tests/Popover.spec.tsx +2 -2
- package/tests/QuantitySelector.spec.tsx +1 -2
- package/tests/RadioButton.spec.tsx +1 -2
- package/tests/Select.spec.tsx +1 -2
- package/tests/TextArea.spec.tsx +1 -2
- package/tests/utils/classNames.spec.tsx +1 -1
- package/tsconfig.json +1 -4
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
lts/*
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agroptima-design-system",
|
|
3
|
-
|
|
4
|
-
"version": "0.27.11",
|
|
3
|
+
"version": "0.27.13",
|
|
5
4
|
"scripts": {
|
|
6
5
|
"dev": "npm run storybook",
|
|
7
6
|
"storybook": "storybook dev -p 6006 --ci",
|
|
@@ -25,16 +24,16 @@
|
|
|
25
24
|
"@chromatic-com/storybook": "^3.2.2",
|
|
26
25
|
"@eslint/eslintrc": "^3.1.0",
|
|
27
26
|
"@eslint/js": "^9.14.0",
|
|
28
|
-
"@storybook/addon-a11y": "^8.4.
|
|
27
|
+
"@storybook/addon-a11y": "^8.4.5",
|
|
29
28
|
"@storybook/addon-designs": "^8.0.4",
|
|
30
|
-
"@storybook/addon-essentials": "^8.4.
|
|
31
|
-
"@storybook/addon-interactions": "^8.4.
|
|
32
|
-
"@storybook/addon-links": "^8.4.
|
|
33
|
-
"@storybook/addon-viewport": "^8.4.
|
|
34
|
-
"@storybook/blocks": "^8.4.
|
|
35
|
-
"@storybook/nextjs": "^8.4.
|
|
36
|
-
"@storybook/react": "^8.4.
|
|
37
|
-
"@storybook/test": "^8.4.
|
|
29
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
30
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
31
|
+
"@storybook/addon-links": "^8.4.5",
|
|
32
|
+
"@storybook/addon-viewport": "^8.4.5",
|
|
33
|
+
"@storybook/blocks": "^8.4.5",
|
|
34
|
+
"@storybook/nextjs": "^8.4.5",
|
|
35
|
+
"@storybook/react": "^8.4.5",
|
|
36
|
+
"@storybook/test": "^8.4.5",
|
|
38
37
|
"@svgr/webpack": "^8.1.0",
|
|
39
38
|
"@testing-library/jest-dom": "^6.6.3",
|
|
40
39
|
"@testing-library/react": "^16.0.1",
|
|
@@ -49,12 +48,12 @@
|
|
|
49
48
|
"eslint-config-next": "15.0.3",
|
|
50
49
|
"eslint-config-prettier": "^9.0.0",
|
|
51
50
|
"eslint-plugin-prettier": "^5.0.1",
|
|
52
|
-
"eslint-plugin-storybook": "^0.11.
|
|
51
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
53
52
|
"jest": "^29.7.0",
|
|
54
53
|
"jest-axe": "^9.0.0",
|
|
55
54
|
"jest-environment-jsdom": "^29.7.0",
|
|
56
55
|
"prettier": "3.3.3",
|
|
57
|
-
"storybook": "^8.4.
|
|
56
|
+
"storybook": "^8.4.5",
|
|
58
57
|
"ts-node": "^10.9.2",
|
|
59
58
|
"typescript": "^5.6.3"
|
|
60
59
|
},
|
|
@@ -4,8 +4,8 @@ import { Icon } from './Icon'
|
|
|
4
4
|
import { IconButton } from './Button'
|
|
5
5
|
import { classNames } from '../utils/classNames'
|
|
6
6
|
import { buildHelpText } from '../utils/buildHelpText'
|
|
7
|
-
import { useOutsideClick } from '
|
|
8
|
-
import { useOpen } from '
|
|
7
|
+
import { useOutsideClick } from '../utils/useOutsideClick'
|
|
8
|
+
import { useOpen } from '../utils/useOpen'
|
|
9
9
|
|
|
10
10
|
export type Variant = 'primary'
|
|
11
11
|
export type Option = { id: string; label: string }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#electronic-invoice__a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.62 18.45H1.81c-.14 0-.26-.12-.26-.26V6.668H4.9a1.81 1.81 0 0 0 1.81-1.8V1.54h7.48c.14 0 .26.11.26.26v7.007c.075 0 .148-.005.22-.01.072-.005.145-.01.22-.01.38 0 .75.04 1.11.1V1.799A1.81 1.81 0 0 0 14.19 0H5.93c-.41.001-.99.15-1.37.53L.53 4.539c-.38.38-.53.95-.53 1.359v12.304A1.81 1.81 0 0 0 1.81 20h9.5a6.22 6.22 0 0 1-1.69-1.54v-.01ZM5.16 2.11v2.759c0 .14-.12.26-.26.26H2.12l3.03-3.01.01-.009ZM3.1 9.995v6.147c0 .43.35.77.77.77h4.9c-.24-.63-.37-1.31-.37-2.02 0-.929.23-1.808.62-2.588h-.24v-1.54h1.34a6.591 6.591 0 0 1 2.23-1.499c-.07-.02-.14-.04-.22-.04H3.87c-.43 0-.77.34-.77.77Zm1.54.77h2.58v1.539H4.64v-1.54Zm0 3.078h2.58v1.54H4.64v-1.54Zm7.49-9.225h-3.1a.77.77 0 0 1 0-1.54h3.1a.77.77 0 0 1 0 1.54Zm-3.1 3.068h3.1c.43 0 .77-.35.77-.77 0-.42-.35-.77-.77-.77h-3.1a.77.77 0 0 0 0 1.54ZM20 14.992a4.999 4.999 0 0 1-5 4.998c-2.761 0-5-2.237-5-4.997a4.999 4.999 0 0 1 5-4.998 5 5 0 0 1 5 4.998Zm-4.667 2.999v-.666H16v.666h-.667Zm-.666-2.332v1.666h.666v-1.666h1.334v-.667h.666v1.333H16v.666h.667v1H18v-.666h-.667v-1H18v-1.332h-.667v-.667h-.666v.666h-1.334v-.666h-2v.666h-.666v-.666H12v.666h.667v.667h.666v-.667H14v.667h.667Zm0 0v-.667h.666v.667h-.666ZM15 12.66v-.666h.667v.666H15Zm0 0v.667h.667v.666h-1.334V12.66H15Zm-2.5.833h1v-1h-1v1Zm-.5.5v-1.999h2v1.999h-2Zm.5 3.498h1v-1h-1v1Zm-.5.5v-1.999h2v1.999h-2Zm4.5-4.498h1v-1h-1v1Zm-.5.5v-1.999h2v1.999h-2Zm-3.25-.75v-.5h.5v.5h-.5Zm0 3.998v-.5h.5v.5h-.5Zm4-3.998v-.5h.5v.5h-.5Z" fill="#161C26"/></g><defs><clipPath id="electronic-invoice__a"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
|
package/src/icons/index.tsx
CHANGED
|
@@ -23,6 +23,7 @@ import DoubleArrowRight from './double-arrow-right.svg'
|
|
|
23
23
|
import Download from './download.svg'
|
|
24
24
|
import Edit from './edit.svg'
|
|
25
25
|
import EditColumns from './edit-columns.svg'
|
|
26
|
+
import ElectronicInvoice from './electronic-invoice.svg'
|
|
26
27
|
import EmptyState from './empty-customize.svg'
|
|
27
28
|
import Error from './error.svg'
|
|
28
29
|
import Export from './export.svg'
|
|
@@ -73,6 +74,7 @@ export {
|
|
|
73
74
|
Download,
|
|
74
75
|
Edit,
|
|
75
76
|
EditColumns,
|
|
77
|
+
ElectronicInvoice,
|
|
76
78
|
EmptyState,
|
|
77
79
|
Error,
|
|
78
80
|
Export,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
} from '../atoms/CardsTable'
|
|
11
11
|
import { IconButton } from '../atoms/Button'
|
|
12
12
|
import { Badge } from '../atoms/Badge'
|
|
13
|
-
import { Checkbox } from '
|
|
14
|
-
import { Popover, PopoverMenu, PopoverMenuOption } from '
|
|
15
|
-
import { Button } from '
|
|
13
|
+
import { Checkbox } from '../atoms/Checkbox'
|
|
14
|
+
import { Popover, PopoverMenu, PopoverMenuOption } from '../atoms/Popover'
|
|
15
|
+
import { Button } from '../atoms/Button'
|
|
16
16
|
|
|
17
17
|
const figmaPrimaryDesign = {
|
|
18
18
|
design: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Collapsible } from '
|
|
3
|
-
import { Input } from '
|
|
4
|
-
import { Select } from '
|
|
5
|
-
import { Card } from '
|
|
6
|
-
import { Form as FormComponent, Actions } from '
|
|
7
|
-
import { Button } from '
|
|
2
|
+
import { Collapsible } from '../atoms/Collapsible'
|
|
3
|
+
import { Input } from '../atoms/Input'
|
|
4
|
+
import { Select } from '../atoms/Select'
|
|
5
|
+
import { Card } from '../atoms/Card'
|
|
6
|
+
import { Form as FormComponent, Actions } from '../atoms/Form'
|
|
7
|
+
import { Button } from '../atoms/Button'
|
|
8
8
|
|
|
9
9
|
const figmaPrimaryDesign = {
|
|
10
10
|
design: {
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { Drawer } from '../atoms/Drawer'
|
|
4
4
|
import { CheckableTagGroup, CheckableTag } from '../atoms/CheckableTag'
|
|
5
|
-
import { Collapsible } from '
|
|
5
|
+
import { Collapsible } from '../atoms/Collapsible'
|
|
6
6
|
|
|
7
7
|
const figmaPrimaryDesign = {
|
|
8
8
|
design: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Form, Actions } from '
|
|
2
|
-
import { Input } from '
|
|
3
|
-
import { Button } from '
|
|
1
|
+
import { Form, Actions } from '../atoms/Form'
|
|
2
|
+
import { Input } from '../atoms/Input'
|
|
3
|
+
import { Button } from '../atoms/Button'
|
|
4
4
|
|
|
5
5
|
const meta = {
|
|
6
6
|
title: 'Design System/Atoms/Form',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Modal } from '
|
|
3
|
-
import { DetailItem } from '
|
|
4
|
-
import { Collapsible } from '
|
|
5
|
-
import { Card } from '
|
|
2
|
+
import { Modal } from '../atoms/Modal'
|
|
3
|
+
import { DetailItem } from '../atoms/DetailItem'
|
|
4
|
+
import { Collapsible } from '../atoms/Collapsible'
|
|
5
|
+
import { Card } from '../atoms/Card'
|
|
6
6
|
|
|
7
7
|
const figmaPrimaryDesign = {
|
|
8
8
|
design: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Popover, PopoverMenu, PopoverMenuOption } from '
|
|
3
|
-
import { Button } from '
|
|
2
|
+
import { Popover, PopoverMenu, PopoverMenuOption } from '../atoms/Popover'
|
|
3
|
+
import { Button } from '../atoms/Button'
|
|
4
4
|
|
|
5
5
|
const figmaPrimaryDesign = {
|
|
6
6
|
design: {
|
package/tests/Alert.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Variant } from '
|
|
1
|
+
import type { Variant } from '../src/atoms/Alert/Alert'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { screen, render } from '@testing-library/react'
|
|
4
|
-
import { Alert } from '
|
|
4
|
+
import { Alert } from '../src/atoms/Alert'
|
|
5
5
|
|
|
6
6
|
describe('Alert', () => {
|
|
7
7
|
const variants = ['info', 'success', 'warning', 'error']
|
package/tests/Badge.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Variant } from '
|
|
1
|
+
import type { Variant } from '../src/atoms/Badge'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { getByTitle, render, screen } from '@testing-library/react'
|
|
4
|
-
import { Badge } from '
|
|
4
|
+
import { Badge } from '../src/atoms/Badge'
|
|
5
5
|
|
|
6
6
|
describe('Badge', () => {
|
|
7
7
|
const variants = [
|
package/tests/Button.spec.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ButtonVariant } from '
|
|
1
|
+
import type { ButtonVariant } from '../src/atoms/Button/Button'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { screen, render } from '@testing-library/react'
|
|
4
4
|
import userEvent from '@testing-library/user-event'
|
|
5
|
-
import { Button } from '
|
|
5
|
+
import { Button } from '../src/atoms/Button/Button'
|
|
6
6
|
|
|
7
7
|
describe('Button', () => {
|
|
8
8
|
const variants = [
|
package/tests/Card.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { Card, CardHeader, CardContent, CardFooter } from '
|
|
4
|
-
import { Button } from '
|
|
3
|
+
import { Card, CardHeader, CardContent, CardFooter } from '../src/atoms/Card'
|
|
4
|
+
import { Button } from '../src/atoms/Button'
|
|
5
5
|
|
|
6
6
|
describe('Product card', () => {
|
|
7
7
|
it('renders the expected structure and data', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { CardMenuOption } from '
|
|
3
|
+
import { CardMenuOption } from '../src/atoms/CardMenu/CardMenuOption'
|
|
4
4
|
|
|
5
5
|
describe('CardMenuOption', () => {
|
|
6
6
|
it('renders', () => {
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
CardsTableBody,
|
|
9
9
|
CardsTableCell,
|
|
10
10
|
Alignment,
|
|
11
|
-
} from '
|
|
12
|
-
import { IconButton } from '
|
|
13
|
-
import { Badge } from '
|
|
11
|
+
} from '../src/atoms/CardsTable'
|
|
12
|
+
import { IconButton } from '../src/atoms/Button'
|
|
13
|
+
import { Badge } from '../src/atoms/Badge'
|
|
14
14
|
|
|
15
15
|
describe('CardsTable', () => {
|
|
16
16
|
it('renders', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Variant } from '
|
|
1
|
+
import type { Variant } from '../src/atoms/CheckableTag'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { render } from '@testing-library/react'
|
|
4
|
-
import { CheckableTag } from '
|
|
4
|
+
import { CheckableTag } from '../src/atoms/CheckableTag'
|
|
5
5
|
|
|
6
6
|
describe('CheckableTag', () => {
|
|
7
7
|
const variants = ['primary']
|
package/tests/Checkbox.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { Collapsible } from '
|
|
4
|
-
import { Input } from '
|
|
3
|
+
import { Collapsible } from '../src/atoms/Collapsible'
|
|
4
|
+
import { Input } from '../src/atoms/Input'
|
|
5
5
|
|
|
6
6
|
describe('Collapsible', () => {
|
|
7
7
|
it('renders', () => {
|
package/tests/Drawer.spec.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { Drawer } from '
|
|
4
|
-
import { Collapsible } from '
|
|
5
|
-
import { CheckableTag, CheckableTagGroup } from '
|
|
3
|
+
import { Drawer } from '../src/atoms/Drawer'
|
|
4
|
+
import { Collapsible } from '../src/atoms/Collapsible'
|
|
5
|
+
import { CheckableTag, CheckableTagGroup } from '../src/atoms/CheckableTag'
|
|
6
6
|
|
|
7
7
|
describe('Drawer', () => {
|
|
8
8
|
it('renders with expected title, content and buttons', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import type { Variant } from '
|
|
4
|
-
import { EmptyState } from '
|
|
5
|
-
import { Button } from '
|
|
3
|
+
import type { Variant } from '../src/atoms/EmptyState'
|
|
4
|
+
import { EmptyState } from '../src/atoms/EmptyState'
|
|
5
|
+
import { Button } from '../src/atoms/Button/Button'
|
|
6
6
|
|
|
7
7
|
describe('EmptyState', () => {
|
|
8
8
|
const variants = ['primary']
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Variant } from '
|
|
1
|
+
import type { Variant } from '../src/atoms/Button/FloatingButton'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { screen, render } from '@testing-library/react'
|
|
4
4
|
import userEvent from '@testing-library/user-event'
|
|
5
|
-
import { FloatingButton } from '
|
|
5
|
+
import { FloatingButton } from '../src/atoms/Button/FloatingButton'
|
|
6
6
|
|
|
7
7
|
describe('Floating Button', () => {
|
|
8
8
|
const variants = ['primary']
|
package/tests/Icon.spec.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Variant } from '
|
|
1
|
+
import type { Variant } from '../src/atoms/Button/IconButton'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { screen, render } from '@testing-library/react'
|
|
4
4
|
import userEvent from '@testing-library/user-event'
|
|
5
|
-
import { IconButton } from '
|
|
5
|
+
import { IconButton } from '../src/atoms/Button/IconButton'
|
|
6
6
|
|
|
7
7
|
describe('Icon Button', () => {
|
|
8
8
|
const variants = ['primary', 'secondary']
|
package/tests/Input.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { getByText, render, screen } from '@testing-library/react'
|
|
3
3
|
import userEvent from '@testing-library/user-event'
|
|
4
|
-
import { Input } from '
|
|
4
|
+
import { Input } from '../src/atoms/Input'
|
|
5
5
|
|
|
6
6
|
describe('Input', () => {
|
|
7
7
|
it('renders the Text type', () => {
|
package/tests/Menu.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { Menu } from '
|
|
4
|
-
import { MenuDropdown, MenuLink } from '
|
|
3
|
+
import { Menu } from '../src/atoms/Menu/Menu'
|
|
4
|
+
import { MenuDropdown, MenuLink } from '../src/atoms/Menu'
|
|
5
5
|
|
|
6
6
|
describe('Menu', () => {
|
|
7
7
|
it('renders first-level menu', () => {
|
package/tests/Modal.spec.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render, screen } from '@testing-library/react'
|
|
3
3
|
import userEvent from '@testing-library/user-event'
|
|
4
|
-
import { Multiselect } from '
|
|
4
|
+
import { Multiselect } from '../src/atoms/Multiselect'
|
|
5
5
|
import { Placeholder } from 'storybook/internal/components'
|
|
6
6
|
|
|
7
7
|
describe('Multiselect', () => {
|
package/tests/Popover.spec.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { Popover, PopoverMenu, PopoverMenuOption } from '@/atoms/Popover'
|
|
4
|
-
import { Button } from '@/atoms/Button'
|
|
5
3
|
import userEvent from '@testing-library/user-event'
|
|
4
|
+
import { Popover, PopoverMenu, PopoverMenuOption } from '../src/atoms/Popover'
|
|
5
|
+
import { Button } from '../src/atoms/Button'
|
|
6
6
|
|
|
7
7
|
describe('PopoverMenu', () => {
|
|
8
8
|
it('shows when click on button', async () => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { render } from '@testing-library/react'
|
|
3
|
-
import { QuantitySelector } from '
|
|
2
|
+
import { QuantitySelector } from '../src/atoms/QuantitySelector'
|
|
4
3
|
|
|
5
4
|
describe('QuantitySelector', () => {
|
|
6
5
|
it('renders', () => {
|
package/tests/Select.spec.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { render, screen } from '@testing-library/react'
|
|
2
|
+
import { Select } from '../src/atoms/Select'
|
|
3
3
|
import userEvent from '@testing-library/user-event'
|
|
4
|
-
import { Select } from '@/atoms/Select'
|
|
5
4
|
|
|
6
5
|
describe('Select', () => {
|
|
7
6
|
it('renders', async () => {
|
package/tests/TextArea.spec.tsx
CHANGED