Skip to content

Commit cca9840

Browse files
authored
Merge pull request #33 from kubit-ui/feature/delete-import-from-barrel-files
Feature/delete import from barrel files
2 parents 8bc1977 + 641a8ef commit cca9840

File tree

1,679 files changed

+6385
-5660
lines changed

Some content is hidden

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

1,679 files changed

+6385
-5660
lines changed

.storybook/provider/themeProvider.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import React from 'react';
22

3-
import {
4-
FONTS_KUBIT_GLOBAL_STYLES,
5-
FONTS_KUBIT_WIREFRAME_GLOBAL_STYLES,
6-
KUBIT_GLOBAL_STYLES,
7-
KUBIT_WIREFRAME_GLOBAL_STYLES,
8-
} from '../../src/designSystem';
3+
import { FONTS_KUBIT_GLOBAL_STYLES } from '../../src/designSystem/kubit/globalStyles/fonts';
4+
import { KUBIT_GLOBAL_STYLES } from '../../src/designSystem/kubit/globalStyles/globalStyle';
5+
import { FONTS_KUBIT_WIREFRAME_GLOBAL_STYLES } from '../../src/designSystem/kubitWireframe/commons/globalStyles/fonts';
6+
import { KUBIT_WIREFRAME_GLOBAL_STYLES } from '../../src/designSystem/kubitWireframe/commons/globalStyles/globalStyle';
97
import {
108
ThemeProvider as BaseThemeProvider,
119
IGenericLink,
@@ -96,7 +94,7 @@ export const ThemeProvider = ({ children, theme, themeName = 'kubit' }) => {
9694
return getAllMonthNames();
9795
},
9896
getAllWeekdayName: () => {
99-
return getAllWeekdayNames();
97+
return getAllWeekdayNames('long', false);
10098
},
10199
}}
102100
formatDate={(date: Date, format: string | DateFormatOptions) => {

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.15.0",
3+
"version": "1.16.0",
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",
@@ -93,16 +93,17 @@
9393
"@eslint/compat": "^1.2.2",
9494
"@eslint/eslintrc": "^3.1.0",
9595
"@eslint/js": "^9.14.0",
96-
"@storybook/addon-a11y": "^8.4.1",
97-
"@storybook/addon-controls": "^8.4.1",
96+
"@kubit-ui-web/eslint-plugin-no-index-import": "^1.0.2",
97+
"@storybook/addon-a11y": "^8.4.2",
98+
"@storybook/addon-controls": "^8.4.2",
9899
"@storybook/addon-coverage": "^1.0.4",
99-
"@storybook/addon-essentials": "^8.4.1",
100-
"@storybook/addon-interactions": "^8.4.1",
101-
"@storybook/addon-links": "^8.4.1",
102-
"@storybook/addon-themes": "^8.4.1",
103-
"@storybook/blocks": "^8.4.1",
104-
"@storybook/react": "^8.4.1",
105-
"@storybook/react-vite": "^8.4.1",
100+
"@storybook/addon-essentials": "^8.4.2",
101+
"@storybook/addon-interactions": "^8.4.2",
102+
"@storybook/addon-links": "^8.4.2",
103+
"@storybook/addon-themes": "^8.4.2",
104+
"@storybook/blocks": "^8.4.2",
105+
"@storybook/react": "^8.4.2",
106+
"@storybook/react-vite": "^8.4.2",
106107
"@testing-library/jest-dom": "^6.6.3",
107108
"@testing-library/react": "^16.0.1",
108109
"@testing-library/react-hooks": "^8.0.1",
@@ -115,8 +116,8 @@
115116
"@types/react-dom": "^18.3.1",
116117
"@types/styled-components": "^5.1.34",
117118
"@types/ungap__structured-clone": "^1.2.0",
118-
"@typescript-eslint/eslint-plugin": "^8.12.2",
119-
"@typescript-eslint/parser": "^8.12.2",
119+
"@typescript-eslint/eslint-plugin": "^8.13.0",
120+
"@typescript-eslint/parser": "^8.13.0",
120121
"@ungap/structured-clone": "^1.2.0",
121122
"@vitejs/plugin-react": "^4.3.3",
122123
"babel-jest": "^29.7.0",
@@ -126,18 +127,18 @@
126127
"eslint-config-standard-with-typescript": "^43.0.1",
127128
"eslint-import-resolver-typescript": "^3.6.3",
128129
"eslint-plugin-import": "^2.31.0",
129-
"eslint-plugin-jest": "^28.8.3",
130+
"eslint-plugin-jest": "^28.9.0",
130131
"eslint-plugin-jsx-a11y": "^6.10.2",
131-
"eslint-plugin-n": "^17.12.0",
132+
"eslint-plugin-n": "^17.13.1",
132133
"eslint-plugin-node": "^11.1.0",
133134
"eslint-plugin-prettier": "5.2.1",
134135
"eslint-plugin-promise": "^7.1.0",
135136
"eslint-plugin-react": "^7.37.2",
136137
"eslint-plugin-react-hooks": "^5.0.0",
137138
"eslint-plugin-react-refresh": "^0.4.14",
138-
"eslint-plugin-storybook": "^0.10.2",
139+
"eslint-plugin-storybook": "^0.11.0",
139140
"eslint-plugin-unused-imports": "^4.1.4",
140-
"globals": "^15.11.0",
141+
"globals": "^15.12.0",
141142
"gts": "^6.0.2",
142143
"html-validate": "^8.24.2",
143144
"jest": "^29.7.0",
@@ -151,7 +152,7 @@
151152
"prettier": "^3.3.3",
152153
"react-transition-group": "^4.4.5",
153154
"sort-imports": "^1.1.0",
154-
"storybook": "^8.4.1",
155+
"storybook": "^8.4.2",
155156
"ts-jest": "^29.2.5",
156157
"tsc-alias": "1.8.10",
157158
"typedoc": "^0.26.11",

src/assets/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/storybook/icons/icons.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import ICON_CHECKMARK_THICK from './checkmark_thick.svg';
2+
import ICON_CHEVRON_DOWN from './icon_chevron_down.svg';
3+
import ICON_CHEVRON_LEFT from './icon_chevron_left.svg';
4+
import ICON_CHEVRON_RIGHT from './icon_chevron_right.svg';
5+
import ICON_CHEVRON_UP from './icon_chevron_up.svg';
6+
import ICON_DRAG from './icon_ds_handle.svg';
7+
import ICON_GHOST from './icon_ghost.svg';
8+
import ICON_PLACEHOLDER from './icon_placeholder.svg';
9+
import ICON_CLOSE from './icon_x_close.svg';
10+
import ICON_PLAY_BUTTON from './play_button.svg';
11+
import ICON_REPLACE from './replace.svg';
12+
13+
export const ICONS = {
14+
NO_ICON: null,
15+
ICON_CHEVRON_UP,
16+
ICON_CHEVRON_DOWN,
17+
ICON_GHOST,
18+
ICON_PLACEHOLDER,
19+
ICON_CHEVRON_LEFT,
20+
ICON_CHEVRON_RIGHT,
21+
ICON_CLOSE,
22+
ICON_PLAY_BUTTON,
23+
ICON_CHECKMARK_THICK,
24+
ICON_REPLACE,
25+
ICON_DRAG,
26+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import ILLUSTRATION from './illustration.svg';
2+
3+
export const ILLUSTRATIONS = {
4+
NO_ILLUSTRATION: null,
5+
ILLUSTRATION,
6+
};

src/assets/storybook/images/images.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import IMAGE_1 from './image_1.png';
2+
import IMAGE_2 from './image_2.png';
3+
import IMAGE_3 from './image_3.png';
4+
import IMAGE_4 from './image_4.png';
5+
6+
export const IMAGES = {
7+
NO_IMAGE: null,
8+
IMAGE_1,
9+
IMAGE_2,
10+
IMAGE_3,
11+
IMAGE_4,
12+
};

src/assets/storybook/index.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import userEvent from '@testing-library/user-event';
22

33
import { fireEvent } from '@testing-library/react';
4-
import * as React from 'react';
4+
import React from 'react';
55

66
import 'jest-styled-components';
77

88
import { axe } from 'jest-axe';
99

10-
import { FooterPositionType } from '@/components/footer';
1110
import { Link } from '@/components/link/link';
12-
import { TextComponentType } from '@/components/text';
11+
import { renderProvider } from '@/tests/renderProvider/renderProvider.utility';
1312

14-
import { renderProvider } from '../../../tests/renderProvider/renderProvider.utility';
15-
import { Accordion, AccordionControlled } from '../index';
13+
import { FooterPositionType } from '../../footer/types/position';
14+
import { TextComponentType } from '../../text/types/component';
15+
import { AccordionControlled } from '../accordionControlled';
16+
import { AccordionUnControlled as Accordion } from '../accordionUnControlled';
1617

1718
const commonAccordionUncontrolledProps = {
1819
headerRightContent: 'Right content',

src/components/accordion/accordion.styled.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import styled, { css } from 'styled-components';
22

3-
import { CommonStyleType } from '@/types/styles';
43
import { getStyles, getTypographyStyles } from '@/utils/getStyles/getStyles';
54

6-
import { LineSeparatorLinePropsStylesType, LineSeparatorPositionType } from '../lineSeparator';
5+
import { CommonStyleType } from '../../types/styles/commonStyle';
6+
import {
7+
LineSeparatorLinePropsStylesType,
8+
LineSeparatorPositionType,
9+
} from '../lineSeparator/types/lineSeparatorTheme';
710

811
export interface IAccordionStyles {
912
styles?: CommonStyleType;

0 commit comments

Comments
 (0)