@tpzdsp/next-toolkit 1.11.0 → 1.11.1
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/package.json +28 -30
- package/src/components/Button/Button.stories.tsx +3 -4
- package/src/components/Card/Card.stories.tsx +1 -2
- package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +1 -2
- package/src/components/ErrorBoundary/ErrorFallback.stories.tsx +1 -2
- package/src/components/ErrorText/ErrorText.stories.tsx +1 -2
- package/src/components/Heading/Heading.stories.tsx +1 -2
- package/src/components/Hint/Hint.stories.tsx +3 -3
- package/src/components/Modal/Modal.stories.tsx +3 -3
- package/src/components/Modal/Modal.test.tsx +1 -1
- package/src/components/Paragraph/Paragraph.stories.tsx +1 -2
- package/src/components/SlidingPanel/SlidingPanel.stories.tsx +1 -2
- package/src/components/accordion/Accordion.stories.tsx +1 -2
- package/src/components/backToTop/BackToTop.stories.tsx +2 -2
- package/src/components/chip/Chip.stories.tsx +1 -2
- package/src/components/cookieBanner/CookieBanner.stories.tsx +1 -2
- package/src/components/divider/RuleDivider.stories.tsx +1 -2
- package/src/components/form/Input.stories.tsx +2 -2
- package/src/components/form/TextArea.stories.tsx +1 -2
- package/src/components/select/Select.stories.tsx +3 -3
- package/src/components/select/Select.test.tsx +1 -0
- package/src/components/select/SelectSkeleton.stories.tsx +1 -2
- package/src/components/skipLink/SkipLink.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpzdsp/next-toolkit",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "A reusable React component library for Next.js applications",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">= 24.12.0",
|
|
7
|
+
"yarn": ">=1.22.22"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"private": false,
|
|
7
11
|
"homepage": "https://github.com/DSP3-apps/next-toolkit#readme",
|
|
@@ -118,24 +122,18 @@
|
|
|
118
122
|
"@eslint/js": "^9.30.1",
|
|
119
123
|
"@semantic-release/changelog": "^6.0.3",
|
|
120
124
|
"@semantic-release/git": "^10.0.1",
|
|
121
|
-
"@semantic-release/github": "^
|
|
122
|
-
"@storybook/addon-docs": "
|
|
123
|
-
"@storybook/addon-
|
|
124
|
-
"@storybook/addon-
|
|
125
|
-
"@storybook/
|
|
126
|
-
"@storybook/addon-onboarding": "8.6.14",
|
|
127
|
-
"@storybook/preview-api": "^8.6.14",
|
|
128
|
-
"@storybook/react": "8.6.14",
|
|
129
|
-
"@storybook/react-vite": "8.6.14",
|
|
130
|
-
"@storybook/test": "^8.6.14",
|
|
131
|
-
"@storybook/types": "8.6.14",
|
|
125
|
+
"@semantic-release/github": "^12.0.2",
|
|
126
|
+
"@storybook/addon-docs": "10.2.0",
|
|
127
|
+
"@storybook/addon-links": "10.2.0",
|
|
128
|
+
"@storybook/addon-onboarding": "10.2.0",
|
|
129
|
+
"@storybook/react-vite": "10.2.0",
|
|
132
130
|
"@tailwindcss/typography": "^0.5.16",
|
|
133
131
|
"@tanstack/react-query": "^5.89.0",
|
|
134
132
|
"@testing-library/dom": "^10.4.0",
|
|
135
133
|
"@testing-library/jest-dom": "^6.6.3",
|
|
136
134
|
"@testing-library/react": "^16.3.0",
|
|
137
135
|
"@testing-library/user-event": "^14.6.1",
|
|
138
|
-
"@tpzdsp/eslint-config-dsp": "^1.9.
|
|
136
|
+
"@tpzdsp/eslint-config-dsp": "^1.9.2",
|
|
139
137
|
"@turf/turf": "^7.2.0",
|
|
140
138
|
"@types/geojson": "^7946.0.16",
|
|
141
139
|
"@types/jsonwebtoken": "^9.0.10",
|
|
@@ -144,8 +142,8 @@
|
|
|
144
142
|
"@types/react-dom": "^19.1.6",
|
|
145
143
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
146
144
|
"@typescript-eslint/parser": "^8.38.0",
|
|
147
|
-
"@vitejs/plugin-react": "^
|
|
148
|
-
"@vitest/coverage-v8": "^
|
|
145
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
146
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
149
147
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
150
148
|
"autoprefixer": "^10.4.21",
|
|
151
149
|
"buffer": "^6.0.3",
|
|
@@ -158,27 +156,27 @@
|
|
|
158
156
|
"eslint-plugin-import": "^2.32.0",
|
|
159
157
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
160
158
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
161
|
-
"eslint-plugin-prettier": "^5.5.
|
|
159
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
162
160
|
"eslint-plugin-react": "^7.37.5",
|
|
163
|
-
"eslint-plugin-react-hooks": "^
|
|
161
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
164
162
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
165
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
166
|
-
"eslint-plugin-storybook": "
|
|
163
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
164
|
+
"eslint-plugin-storybook": "10.2.0",
|
|
167
165
|
"focus-trap": "^7.6.5",
|
|
168
166
|
"focus-trap-react": "^11.0.4",
|
|
169
167
|
"geojson": "^0.5.0",
|
|
170
|
-
"globals": "^
|
|
168
|
+
"globals": "^17.0.0",
|
|
171
169
|
"husky": "^9.1.7",
|
|
172
|
-
"jsdom": "^
|
|
170
|
+
"jsdom": "^27.4.0",
|
|
173
171
|
"jsonwebtoken": "^9.0.3",
|
|
174
|
-
"next": "^
|
|
172
|
+
"next": "^16.1.4",
|
|
175
173
|
"ol": "^10.6.1",
|
|
176
174
|
"ol-geocoder": "^4.3.3",
|
|
177
175
|
"ol-mapbox-style": "^13.0.1",
|
|
178
176
|
"postcss": "^8.5.6",
|
|
179
|
-
"prettier": "^3.
|
|
180
|
-
"prettier-plugin-classnames": "^0.
|
|
181
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
177
|
+
"prettier": "^3.8.1",
|
|
178
|
+
"prettier-plugin-classnames": "^0.9.0",
|
|
179
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
182
180
|
"process": "^0.11.10",
|
|
183
181
|
"proj4": "^2.19.10",
|
|
184
182
|
"react": "^19.2.1",
|
|
@@ -188,17 +186,17 @@
|
|
|
188
186
|
"react-select": "^5.10.2",
|
|
189
187
|
"react-select-event": "^5.5.1",
|
|
190
188
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
191
|
-
"semantic-release": "^
|
|
192
|
-
"storybook": "
|
|
189
|
+
"semantic-release": "^25.0.2",
|
|
190
|
+
"storybook": "10.2.0",
|
|
193
191
|
"stream-browserify": "^3.0.0",
|
|
194
192
|
"tailwind-merge": "^3.3.1",
|
|
195
193
|
"tailwindcss": "^3.4.16",
|
|
196
|
-
"typescript": "
|
|
194
|
+
"typescript": "^5.9.3",
|
|
197
195
|
"typescript-eslint": "^8.35.1",
|
|
198
196
|
"util": "^0.12.5",
|
|
199
197
|
"vite": "^7.0.4",
|
|
200
198
|
"vite-plugin-dts": "^4.5.4",
|
|
201
|
-
"vitest": "^
|
|
199
|
+
"vitest": "^4.0.17",
|
|
202
200
|
"zod": "^4.1.8"
|
|
203
201
|
},
|
|
204
202
|
"peerDependencies": {
|
|
@@ -213,7 +211,7 @@
|
|
|
213
211
|
"focus-trap": "^7.6.5",
|
|
214
212
|
"focus-trap-react": "^11.0.4",
|
|
215
213
|
"geojson": "^0.5.0",
|
|
216
|
-
"next": "^
|
|
214
|
+
"next": "^16.1.4",
|
|
217
215
|
"ol": "^10.6.1",
|
|
218
216
|
"ol-geocoder": "^4.3.3",
|
|
219
217
|
"ol-mapbox-style": "^13.0.1",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { action } from 'storybook/actions';
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
4
|
|
|
6
5
|
import { Button } from './Button';
|
|
7
6
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import { FaChevronRight } from 'react-icons/fa6';
|
|
3
2
|
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
4
|
|
|
6
5
|
import { Card } from './Card';
|
|
7
6
|
import { ExternalLink } from '../link/ExternalLink';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import type { FallbackProps } from 'react-error-boundary';
|
|
3
2
|
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
4
|
|
|
6
5
|
import { ErrorBoundary } from './ErrorBoundary';
|
|
7
6
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
2
|
|
|
4
3
|
import { ErrorFallback } from './ErrorFallback';
|
|
5
4
|
import { ApiError } from '../../errors/ApiError';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
2
|
|
|
4
3
|
import { ErrorText } from './ErrorText';
|
|
5
4
|
import { ExternalLink } from '../link/ExternalLink';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import { fn } from 'storybook/test';
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
5
|
import { Hint } from './Hint';
|
|
6
6
|
import { Button } from '../Button/Button';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import { useState } from 'react';
|
|
3
2
|
|
|
4
|
-
import { useArgs } from '
|
|
5
|
-
|
|
3
|
+
import { useArgs } from 'storybook/preview-api';
|
|
4
|
+
|
|
5
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
6
6
|
|
|
7
7
|
import { Modal } from './Modal';
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ vi.mock('../../hooks/useClickOutside', () => ({
|
|
|
12
12
|
useClickOutside: vi.fn(),
|
|
13
13
|
}));
|
|
14
14
|
|
|
15
|
-
describe.
|
|
15
|
+
describe.todo('Modal', () => {
|
|
16
16
|
// Setup modal root element for each test
|
|
17
17
|
beforeEach(() => {
|
|
18
18
|
const modalRoot = document.createElement('div');
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
2
|
|
|
4
3
|
import { Paragraph } from './Paragraph';
|
|
5
4
|
import { ExternalLink } from '../link/ExternalLink';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
5
|
import { BackToTop } from './BackToTop';
|
|
6
6
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import { AiFillChrome } from 'react-icons/ai';
|
|
3
2
|
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
4
|
|
|
6
5
|
import { Chip } from './Chip';
|
|
7
6
|
import { Paragraph } from '../Paragraph/Paragraph';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable custom/padding-between-jsx-elements */
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
5
|
import { Input } from './Input';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import { fn } from 'storybook/test';
|
|
4
|
+
|
|
5
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
6
6
|
|
|
7
7
|
import { Select } from './Select';
|
|
8
8
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* eslint-disable storybook/no-renderer-packages */
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
4
|
|
|
6
5
|
import { SelectSkeleton } from './SelectSkeleton';
|
|
7
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
5
|
import { SkipLink } from './SkipLink';
|
|
6
6
|
|