Skip to content

Commit 90d68c4

Browse files
authored
Merge pull request #21 from kubit-ui/feature/improve-storybook-and-fix-bugs
Improve content of Storybook
2 parents bfa6acc + c92cc80 commit 90d68c4

File tree

182 files changed

+670
-238
lines changed

Some content is hidden

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

182 files changed

+670
-238
lines changed

.storybook/preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const preview: Preview = {
4545
},
4646
options: {
4747
storySort: {
48-
method: 'alphabetical',
4948
order: ['Getting Started', ['Introduction'], 'Components'],
5049
},
5150
},

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
55
"author": {
66
"name": "Kubit",
@@ -63,7 +63,7 @@
6363
"dist:esm": "tsc -p tsconfig-esm.json && tsc-alias -p tsconfig-esm.json",
6464
"dist:esm:watch": "tsc -p tsconfig-esm.json --watch & tsc-alias -p tsconfig-esm.json --watch",
6565
"dev:yalc:push": "nodemon --watch dist --exec 'find dist \\( -name '*.svg' -o -name '*.ttf' -o -name '*.otf' -o -name '*.eot' -o -name '*.png' -o -name '*.jpg' \\) -exec rm \"{}\" \\; && yarn postdist && yalc push'",
66-
"build": "storybook build -o bundle --disable-telemetry",
66+
"build": "storybook build -o bundle --disable-telemetry --debug",
6767
"storybook:axe": "yarn build && axe-storybook --build-dir bundle",
6868
"createAssetsFiles": "node ./scripts/createAssetsFiles.js",
6969
"prettier": "prettier 'src/**/*.ts' --write",
@@ -83,12 +83,12 @@
8383
"license": "Apache-2.0",
8484
"devDependencies": {
8585
"@babel/core": "^7.24.9",
86-
"@babel/preset-env": "^7.24.8",
86+
"@babel/preset-env": "^7.25.0",
8787
"@babel/preset-react": "^7.24.7",
8888
"@babel/preset-typescript": "^7.24.7",
8989
"@eslint/compat": "^1.1.1",
9090
"@eslint/eslintrc": "^3.1.0",
91-
"@eslint/js": "^9.7.0",
91+
"@eslint/js": "^9.8.0",
9292
"@storybook/addon-a11y": "^8.2.6",
9393
"@storybook/addon-controls": "^8.2.6",
9494
"@storybook/addon-coverage": "^1.0.4",
@@ -117,14 +117,14 @@
117117
"@vitejs/plugin-react": "^4.3.1",
118118
"babel-jest": "^29.7.0",
119119
"cpy-cli": "^5.0.0",
120-
"eslint": "^9.7.0",
120+
"eslint": "^9.8.0",
121121
"eslint-config-prettier": "^9.1.0",
122122
"eslint-config-standard-with-typescript": "^43.0.1",
123123
"eslint-import-resolver-typescript": "^3.6.1",
124124
"eslint-plugin-import": "^2.29.1",
125125
"eslint-plugin-jest": "^28.6.0",
126126
"eslint-plugin-jsx-a11y": "^6.9.0",
127-
"eslint-plugin-n": "^17.9.0",
127+
"eslint-plugin-n": "^17.10.1",
128128
"eslint-plugin-node": "^11.1.0",
129129
"eslint-plugin-prettier": "5.2.1",
130130
"eslint-plugin-promise": "^7.0.0",
@@ -153,7 +153,8 @@
153153
"typedoc": "^0.26.5",
154154
"typedoc-plugin-markdown": "^4.2.3",
155155
"typescript": "^5.5.4",
156-
"vite": "^5.3.4",
156+
"vercel": "^35.2.1",
157+
"vite": "^5.3.5",
157158
"vite-tsconfig-paths": "^4.3.2",
158159
"yarn-deduplicate": "^6.0.2"
159160
},
Lines changed: 38 additions & 0 deletions
Loading
-99.7 KB
Loading
-86.1 KB
Loading
-237 KB
Loading
-69.7 KB
Loading

src/assets/storybook/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ICON_GHOST from './icons/icon_ghost.svg';
77
import ICON_PLACEHOLDER from './icons/icon_placeholder.svg';
88
import ICON_CLOSE from './icons/icon_x_close.svg';
99
import ICON_PLAY_BUTTON from './icons/play_button.svg';
10+
import ICON_REPLACE from './icons/replace.svg';
1011
import ILLUSTRATION from './illustrations/illustration.svg';
1112
import IMAGE_1 from './images/image_1.png';
1213
import IMAGE_2 from './images/image_2.png';
@@ -24,6 +25,7 @@ export const ICONS = {
2425
ICON_CLOSE,
2526
ICON_PLAY_BUTTON,
2627
ICON_CHECKMARK_THICK,
28+
ICON_REPLACE,
2729
};
2830

2931
export const ILLUSTRATIONS = {

src/components/accordion/__tests__/accordion.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'jest-styled-components';
88
import { axe } from 'jest-axe';
99

1010
import { FooterPositionType } from '@/components/footer';
11-
import { Link } from '@/components/link';
11+
import { Link } from '@/components/link/link';
1212
import { TextComponentType } from '@/components/text';
1313

1414
import { renderProvider } from '../../../tests/renderProvider/renderProvider.utility';

src/components/accordion/accordionStandAlone.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import * as React from 'react';
22

33
import { ButtonType } from '@/components/button';
44
import { ElementOrIcon } from '@/components/elementOrIcon';
5-
import { Text, TextComponentType } from '@/components/text';
5+
import { Text } from '@/components/text/text';
6+
import { TextComponentType } from '@/components/text/types/component';
67
import { useId } from '@/hooks';
78

89
import {

0 commit comments

Comments
 (0)