Skip to content

Commit f552550

Browse files
authored
Merge pull request #34 from kubit-ui/feature/improvements-and-solve-bugs
Feature/improvements and solve bugs
2 parents cca9840 + 9379e79 commit f552550

File tree

29 files changed

+151
-85
lines changed

29 files changed

+151
-85
lines changed

package.json

Lines changed: 20 additions & 20 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.0",
3+
"version": "1.16.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",
@@ -90,20 +90,20 @@
9090
"@babel/preset-env": "^7.26.0",
9191
"@babel/preset-react": "^7.25.9",
9292
"@babel/preset-typescript": "^7.26.0",
93-
"@eslint/compat": "^1.2.2",
94-
"@eslint/eslintrc": "^3.1.0",
95-
"@eslint/js": "^9.14.0",
93+
"@eslint/compat": "^1.2.3",
94+
"@eslint/eslintrc": "^3.2.0",
95+
"@eslint/js": "^9.15.0",
9696
"@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",
97+
"@storybook/addon-a11y": "^8.4.4",
98+
"@storybook/addon-controls": "^8.4.4",
9999
"@storybook/addon-coverage": "^1.0.4",
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",
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",
107107
"@testing-library/jest-dom": "^6.6.3",
108108
"@testing-library/react": "^16.0.1",
109109
"@testing-library/react-hooks": "^8.0.1",
@@ -116,20 +116,20 @@
116116
"@types/react-dom": "^18.3.1",
117117
"@types/styled-components": "^5.1.34",
118118
"@types/ungap__structured-clone": "^1.2.0",
119-
"@typescript-eslint/eslint-plugin": "^8.13.0",
120-
"@typescript-eslint/parser": "^8.13.0",
119+
"@typescript-eslint/eslint-plugin": "^8.14.0",
120+
"@typescript-eslint/parser": "^8.14.0",
121121
"@ungap/structured-clone": "^1.2.0",
122122
"@vitejs/plugin-react": "^4.3.3",
123123
"babel-jest": "^29.7.0",
124124
"cpy-cli": "^5.0.0",
125-
"eslint": "^9.14.0",
125+
"eslint": "^9.15.0",
126126
"eslint-config-prettier": "^9.1.0",
127127
"eslint-config-standard-with-typescript": "^43.0.1",
128128
"eslint-import-resolver-typescript": "^3.6.3",
129129
"eslint-plugin-import": "^2.31.0",
130130
"eslint-plugin-jest": "^28.9.0",
131131
"eslint-plugin-jsx-a11y": "^6.10.2",
132-
"eslint-plugin-n": "^17.13.1",
132+
"eslint-plugin-n": "^17.13.2",
133133
"eslint-plugin-node": "^11.1.0",
134134
"eslint-plugin-prettier": "5.2.1",
135135
"eslint-plugin-promise": "^7.1.0",
@@ -140,7 +140,7 @@
140140
"eslint-plugin-unused-imports": "^4.1.4",
141141
"globals": "^15.12.0",
142142
"gts": "^6.0.2",
143-
"html-validate": "^8.24.2",
143+
"html-validate": "^8.25.0",
144144
"jest": "^29.7.0",
145145
"jest-axe": "^9.0.0",
146146
"jest-canvas-mock": "^2.5.2",
@@ -152,12 +152,12 @@
152152
"prettier": "^3.3.3",
153153
"react-transition-group": "^4.4.5",
154154
"sort-imports": "^1.1.0",
155-
"storybook": "^8.4.2",
155+
"storybook": "^8.4.4",
156156
"ts-jest": "^29.2.5",
157157
"tsc-alias": "1.8.10",
158158
"typedoc": "^0.26.11",
159159
"typescript": "^5.6.3",
160-
"vite": "^5.4.10",
160+
"vite": "^5.4.11",
161161
"vite-tsconfig-paths": "^4.3.2",
162162
"yarn-deduplicate": "^6.0.2"
163163
},

src/assets/storybook/videos/videos.ts

Whitespace-only changes.

src/components/backToTop/backToTopControlled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const BackToTopControlledComponent = React.forwardRef(
6161
button.style.bottom = `${newBottomPosition}px`;
6262
const display = window.scrollY >= visibilityScrollOffset;
6363
button.style.display = display ? 'flex' : 'none';
64-
}, [visibilityScrollOffset]);
64+
}, [bottomPosition, stopElement, visibilityScrollOffset]);
6565

6666
React.useEffect(() => {
6767
handleScrollListener();

src/components/badgeV2/index.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// interfaces and type
2-
export type {
3-
BadgeLabelType as BadgeLabelTypeV2,
4-
IBadgeStandAlone as IBadgeStandAloneV2,
5-
IBadge as IBadgeV2,
6-
BadgeVariantStylesType as BadgeVariantStylesTypeV2,
7-
BadgeStylesType as BadgeStylesTypeV2,
8-
} from './types';
9-
10-
// enums
11-
export { BadgeState as BadgeStateV2 } from './types';
1+
export * from './types';
122

133
export { BadgeV2 } from './badge';

src/components/badgeV2/types/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
export type * from './badge';
2-
export type { BadgeVariantStylesType, BadgeStylesType } from './badgeTheme';
1+
export type {
2+
BadgeVariantStylesType as BadgeVariantStylesTypeV2,
3+
BadgeStylesType as BadgeStylesTypeV2,
4+
} from './badgeTheme';
35
export * from './state';
6+
export type {
7+
BadgeLabelType as BadgeLabelTypeV2,
8+
IBadgeStandAlone as IBadgeStandAloneV2,
9+
IBadge as IBadgeV2,
10+
} from './badge';

src/components/carousel/carousel.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const ArrowRightIconContainer = styled.div<{
161161
getStyles(styles[CarouselArrowStateType.DEFAULT]?.arrowRightIconButtonContainer)};
162162
&:focus {
163163
${props =>
164-
getStyles(props.styles[CarouselArrowStateType.DEFAULT]?.arrowLeftIconButtonContainer)}
164+
getStyles(props.styles[CarouselArrowStateType.DEFAULT]?.arrowRightIconButtonContainer)}
165165
}
166166
&:hover {
167167
${props =>

src/components/drawer/drawerStandAlone.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import React from 'react';
23

34
import { Footer } from '@/components/footer/footer';
@@ -54,7 +55,6 @@ const DrawerStandAloneComponent = (
5455
<DrawerTitleContentFooterContainerStyled blocked={blocked} styles={props.styles}>
5556
<DrawerTitleStyled
5657
data-drawer-title
57-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5858
as={Text as any}
5959
component={titleComponent as unknown as TextComponentType}
6060
customTypography={props.styles.title}
@@ -80,7 +80,6 @@ const DrawerStandAloneComponent = (
8080
{props.footer?.content && (props.styles.footer?.variant || props.footer.variant) && (
8181
<DrawerFooterStyled
8282
data-drawer-footer
83-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
8483
as={Footer as any}
8584
customFooterStyles={props.styles}
8685
variant={props.styles.footer?.variant}

src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export * from './tableV2';
8585
export * from './dataTable';
8686
export * from './video';
8787
export * from './progressBar';
88+
8889
export * from './virtualKeyboard';
8990

9091
/**
@@ -110,6 +111,7 @@ export * from './headerStructure';
110111
export * from './footer';
111112
export * from './portal';
112113
export * from './textCount';
114+
113115
export * from './operativeLayout';
114116
export * from './emptyState';
115117
export * from './loadingState';

src/components/inputCurrency/stories/inputCurrency.stories.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { Meta, StoryObj } from '@storybook/react';
2+
import React from 'react';
23

4+
import { Button } from '@/components/button/button';
35
import {
46
additionalInfoAction,
57
labelSecondary,
@@ -25,12 +27,29 @@ const meta = {
2527
figmaUrl:
2628
'https://www.figma.com/file/EYQkbENTFO5r8muvXlPoOy/Kubit-v.1.0.0?type=design&node-id=3922-29850&mode=dev',
2729
},
30+
render: ({ ...args }) => <StoryWithHooks {...args} />,
2831
} satisfies Meta<typeof Story>;
2932

3033
export default meta;
3134

3235
type Story = StoryObj<typeof meta> & { args: { themeArgs?: object } };
3336

37+
const StoryWithHooks = args => {
38+
const [value, setValue] = React.useState<string | number | undefined>(3);
39+
const onClick = () => {
40+
setValue(undefined);
41+
};
42+
43+
return (
44+
<div>
45+
<Story {...args} value={value} />
46+
<Button size="MEDIUM" variant="PRIMARY" onClick={onClick}>
47+
Clear
48+
</Button>
49+
</div>
50+
);
51+
};
52+
3453
const commonArgs: IInputCurrency = {
3554
variant: Object.values(variantsObject[themeSelected].InputCurrencyVariant || {})[0] as string,
3655
id: 'input',

src/components/pageControl/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type {
1313
} from './types';
1414

1515
// enums
16-
export { PageControlState, ArrowsControlState } from './types';
16+
export { PageControlState, ArrowsControlState, PageControlDirectionType } from './types';
1717

1818
// componet
1919
export { PageControl } from './pageControl';

0 commit comments

Comments
 (0)