Skip to content

Commit ea1524a

Browse files
authored
Merge pull request #35 from kubit-ui/feature/update-components-and-solve-bugs
Feature/update components and solve bugs
2 parents f552550 + fe4c240 commit ea1524a

File tree

125 files changed

+1584
-643
lines changed

Some content is hidden

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

125 files changed

+1584
-643
lines changed

package.json

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.16.1",
3+
"version": "1.17.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",
@@ -87,60 +87,62 @@
8787
"license": "Apache-2.0",
8888
"devDependencies": {
8989
"@babel/core": "^7.26.0",
90+
"@babel/helper-environment-visitor": "^7.24.7",
91+
"@babel/helper-split-export-declaration": "^7.24.7",
9092
"@babel/preset-env": "^7.26.0",
91-
"@babel/preset-react": "^7.25.9",
93+
"@babel/preset-react": "^7.26.3",
9294
"@babel/preset-typescript": "^7.26.0",
93-
"@eslint/compat": "^1.2.3",
95+
"@eslint/compat": "^1.2.4",
9496
"@eslint/eslintrc": "^3.2.0",
95-
"@eslint/js": "^9.15.0",
97+
"@eslint/js": "^9.16.0",
9698
"@kubit-ui-web/eslint-plugin-no-index-import": "^1.0.2",
97-
"@storybook/addon-a11y": "^8.4.4",
98-
"@storybook/addon-controls": "^8.4.4",
99+
"@storybook/addon-a11y": "^8.4.7",
100+
"@storybook/addon-controls": "^8.4.7",
99101
"@storybook/addon-coverage": "^1.0.4",
100-
"@storybook/addon-essentials": "^8.4.4",
101-
"@storybook/addon-interactions": "^8.4.4",
102-
"@storybook/addon-links": "^8.4.4",
103-
"@storybook/addon-themes": "^8.4.4",
104-
"@storybook/blocks": "^8.4.4",
105-
"@storybook/react": "^8.4.4",
106-
"@storybook/react-vite": "^8.4.4",
102+
"@storybook/addon-essentials": "^8.4.7",
103+
"@storybook/addon-interactions": "^8.4.7",
104+
"@storybook/addon-links": "^8.4.7",
105+
"@storybook/addon-themes": "^8.4.7",
106+
"@storybook/blocks": "^8.4.7",
107+
"@storybook/react": "^8.4.7",
108+
"@storybook/react-vite": "^8.4.7",
107109
"@testing-library/jest-dom": "^6.6.3",
108-
"@testing-library/react": "^16.0.1",
110+
"@testing-library/react": "^16.1.0",
109111
"@testing-library/react-hooks": "^8.0.1",
110112
"@testing-library/user-event": "^14.5.2",
111113
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
112114
"@types/jest": "^29.5.14",
113115
"@types/jest-axe": "^3.5.9",
114-
"@types/mocha": "^10.0.9",
116+
"@types/mocha": "^10.0.10",
115117
"@types/react": "^18.3.12",
116118
"@types/react-dom": "^18.3.1",
117119
"@types/styled-components": "^5.1.34",
118120
"@types/ungap__structured-clone": "^1.2.0",
119-
"@typescript-eslint/eslint-plugin": "^8.14.0",
120-
"@typescript-eslint/parser": "^8.14.0",
121+
"@typescript-eslint/eslint-plugin": "^8.17.0",
122+
"@typescript-eslint/parser": "^8.17.0",
121123
"@ungap/structured-clone": "^1.2.0",
122-
"@vitejs/plugin-react": "^4.3.3",
124+
"@vitejs/plugin-react": "^4.3.4",
123125
"babel-jest": "^29.7.0",
124126
"cpy-cli": "^5.0.0",
125-
"eslint": "^9.15.0",
127+
"eslint": "^9.16.0",
126128
"eslint-config-prettier": "^9.1.0",
127129
"eslint-config-standard-with-typescript": "^43.0.1",
128-
"eslint-import-resolver-typescript": "^3.6.3",
130+
"eslint-import-resolver-typescript": "^3.7.0",
129131
"eslint-plugin-import": "^2.31.0",
130132
"eslint-plugin-jest": "^28.9.0",
131133
"eslint-plugin-jsx-a11y": "^6.10.2",
132-
"eslint-plugin-n": "^17.13.2",
134+
"eslint-plugin-n": "^17.14.0",
133135
"eslint-plugin-node": "^11.1.0",
134136
"eslint-plugin-prettier": "5.2.1",
135-
"eslint-plugin-promise": "^7.1.0",
137+
"eslint-plugin-promise": "^7.2.1",
136138
"eslint-plugin-react": "^7.37.2",
137-
"eslint-plugin-react-hooks": "^5.0.0",
138-
"eslint-plugin-react-refresh": "^0.4.14",
139-
"eslint-plugin-storybook": "^0.11.0",
139+
"eslint-plugin-react-hooks": "^5.1.0",
140+
"eslint-plugin-react-refresh": "^0.4.16",
141+
"eslint-plugin-storybook": "^0.11.1",
140142
"eslint-plugin-unused-imports": "^4.1.4",
141-
"globals": "^15.12.0",
143+
"globals": "^15.13.0",
142144
"gts": "^6.0.2",
143-
"html-validate": "^8.25.0",
145+
"html-validate": "^8.27.0",
144146
"jest": "^29.7.0",
145147
"jest-axe": "^9.0.0",
146148
"jest-canvas-mock": "^2.5.2",
@@ -149,15 +151,15 @@
149151
"jest-junit": "^16.0.0",
150152
"jest-styled-components": "^7.2.0",
151153
"json-beautify": "^1.1.1",
152-
"prettier": "^3.3.3",
154+
"prettier": "^3.4.2",
153155
"react-transition-group": "^4.4.5",
154156
"sort-imports": "^1.1.0",
155-
"storybook": "^8.4.4",
157+
"storybook": "^8.4.7",
156158
"ts-jest": "^29.2.5",
157159
"tsc-alias": "1.8.10",
158-
"typedoc": "^0.26.11",
159-
"typescript": "^5.6.3",
160-
"vite": "^5.4.11",
160+
"typedoc": "^0.27.3",
161+
"typescript": "^5.7.2",
162+
"vite": "^6.0.3",
161163
"vite-tsconfig-paths": "^4.3.2",
162164
"yarn-deduplicate": "^6.0.2"
163165
},

src/assets/storybook/videos/videos.ts

Whitespace-only changes.

src/components/actionBottomSheet/actionBottomSheetStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const ActionBottomSheetStandAloneComponent = (
5555
>
5656
{props.dragIcon && isMobileOrTablet && (
5757
<DraggableIcon ref={props.dragIconRef} data-drag-icon styles={props.styles}>
58-
<ElementOrIcon {...props.dragIcon} />
58+
<ElementOrIcon customIconStyles={props.styles.dragIcon} {...props.dragIcon} />
5959
</DraggableIcon>
6060
)}
6161
{hasHeader && (

src/components/actionBottomSheet/types/actionBottomSheetTheme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export type ActionBottomSheetVariantStylesType = {
2121
headerContent?: CommonStyleType;
2222
content?: CommonStyleType;
2323
popoverVariant?: string;
24+
dragIcon?: IconTypes;
2425
dragIconContainer?: CommonStyleType;
2526
};
2627

src/components/backToTop/backToTopStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import { pickAriaProps } from '@/utils/aria/aria';
44

55
//components
6-
import { IconBasic as Icon } from '../icon/icon';
6+
import { IconHost as Icon } from '../icon/iconHost';
77
import { BackToTopStyled } from './backToTop.styled';
88
import { IBackToTopStandAlone } from './types/backToTop';
99

src/components/calendar/calendarStandAlone.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ const CalendarStandAloneComponent = (
2525
const today = new Date();
2626

2727
return (
28-
<CalendarStyled ref={ref} data-testid={dataTestId} id={props.id} styles={props.styles}>
28+
<CalendarStyled
29+
ref={ref}
30+
data-calendar
31+
data-testid={dataTestId}
32+
id={props.id}
33+
styles={props.styles}
34+
>
2935
<Selector
3036
configAccesibility={props.configAccesibility}
3137
configCalendar={props.configCalendar}

src/components/calendar/utils/handleKeysmoves.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export const handleKeyDownMove = ({
7575
}
7676
// to go to max date if next day below is disabled unless it is the max date
7777
if (
78-
previous + firstEmptyAndDisabledDays + 1 >= maxDate.getDate() - 7 &&
78+
previous + firstEmptyAndDisabledDays + 1 >=
79+
maxDate.getDate() + firstEmptyAndDisabledDays - 7 &&
7980
previous !== daysAndEmptyDaysUntilMaxDate
8081
) {
8182
return maxDate.getDate() + firstEmptyAndDisabledDays - 1;

src/components/carousel/carouselStandAlone.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ const CarouselStandAloneComponent = (
161161
<PageControl
162162
arrowsControlVariant={pageControlArrowsControlVariant}
163163
currentPosition={currentPage}
164-
leftArrowControl={leftArrowControlPageControl}
164+
leftControl={leftArrowControlPageControl}
165165
pages={numPages}
166-
rightArrowControl={rightArrowControlPageControl}
166+
rightControl={rightArrowControlPageControl}
167167
variant={pageControlVariant}
168168
/>
169169
</PageControlContainerStyled>

src/components/dot/__tests__/dot.test.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@ test('Should render Dot with plus simbol', async () => {
5959
expect(container).toHTMLValidate();
6060
expect(results).toHaveNoViolations();
6161
});
62+
63+
test('Get label', async () => {
64+
const { getByText, container } = renderProvider(
65+
<Dot {...mockMaxNumberProps} label="myLabel" number={undefined} />
66+
);
67+
68+
const dot = getByText('myLabel');
69+
70+
expect(dot).toBeInTheDocument();
71+
const results = await axe(container);
72+
expect(container).toHTMLValidate();
73+
expect(results).toHaveNoViolations();
74+
});

src/components/dot/dot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const DotComponent = React.forwardRef(
2828
<DotStandAlone
2929
{...props}
3030
ref={ref}
31-
formatedNumber={size !== 'SMALL' ? formattedNumber : undefined}
31+
formatedNumber={formattedNumber}
3232
sizeStyles={sizeStyles}
3333
styles={styles}
3434
/>

0 commit comments

Comments
 (0)