Skip to content

Commit 6d96364

Browse files
author
Kubit
committed
Update exports and package
1 parent a6a8db6 commit 6d96364

File tree

8 files changed

+43
-41
lines changed

8 files changed

+43
-41
lines changed

.storybook/preview.tsx

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

package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.7.1",
3+
"version": "1.8.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",
@@ -82,24 +82,24 @@
8282
"sideEffects": false,
8383
"license": "Apache-2.0",
8484
"devDependencies": {
85-
"@babel/core": "^7.24.8",
85+
"@babel/core": "^7.24.9",
8686
"@babel/preset-env": "^7.24.8",
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.6.0",
92-
"@storybook/addon-a11y": "^8.2.2",
93-
"@storybook/addon-controls": "^8.2.2",
91+
"@eslint/js": "^9.7.0",
92+
"@storybook/addon-a11y": "^8.2.6",
93+
"@storybook/addon-controls": "^8.2.6",
9494
"@storybook/addon-coverage": "^1.0.4",
95-
"@storybook/addon-essentials": "^8.2.2",
96-
"@storybook/addon-interactions": "^8.2.2",
97-
"@storybook/addon-links": "^8.2.2",
98-
"@storybook/addon-themes": "^8.2.2",
99-
"@storybook/blocks": "^8.2.2",
100-
"@storybook/react": "^8.2.2",
101-
"@storybook/react-vite": "^8.2.2",
102-
"@testing-library/jest-dom": "^6.4.6",
95+
"@storybook/addon-essentials": "^8.2.6",
96+
"@storybook/addon-interactions": "^8.2.6",
97+
"@storybook/addon-links": "^8.2.6",
98+
"@storybook/addon-themes": "^8.2.6",
99+
"@storybook/blocks": "^8.2.6",
100+
"@storybook/react": "^8.2.6",
101+
"@storybook/react-vite": "^8.2.6",
102+
"@testing-library/jest-dom": "^6.4.8",
103103
"@testing-library/react": "^16.0.0",
104104
"@testing-library/react-hooks": "^8.0.1",
105105
"@testing-library/user-event": "^14.5.2",
@@ -111,13 +111,13 @@
111111
"@types/react-dom": "^18.3.0",
112112
"@types/styled-components": "^5.1.34",
113113
"@types/ungap__structured-clone": "^1.2.0",
114-
"@typescript-eslint/eslint-plugin": "^7.16.0",
115-
"@typescript-eslint/parser": "^7.16.0",
114+
"@typescript-eslint/eslint-plugin": "^7.17.0",
115+
"@typescript-eslint/parser": "^7.17.0",
116116
"@ungap/structured-clone": "^1.2.0",
117117
"@vitejs/plugin-react": "^4.3.1",
118118
"babel-jest": "^29.7.0",
119119
"cpy-cli": "^5.0.0",
120-
"eslint": "^9.6.0",
120+
"eslint": "^9.7.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",
@@ -126,16 +126,16 @@
126126
"eslint-plugin-jsx-a11y": "^6.9.0",
127127
"eslint-plugin-n": "^17.9.0",
128128
"eslint-plugin-node": "^11.1.0",
129-
"eslint-plugin-prettier": "5.1.3",
130-
"eslint-plugin-promise": "^6.4.0",
131-
"eslint-plugin-react": "^7.34.3",
129+
"eslint-plugin-prettier": "5.2.1",
130+
"eslint-plugin-promise": "^7.0.0",
131+
"eslint-plugin-react": "^7.35.0",
132132
"eslint-plugin-react-hooks": "^4.6.2",
133-
"eslint-plugin-react-refresh": "^0.4.8",
133+
"eslint-plugin-react-refresh": "^0.4.9",
134134
"eslint-plugin-storybook": "^0.8.0",
135-
"eslint-plugin-unused-imports": "^4.0.0",
135+
"eslint-plugin-unused-imports": "^4.0.1",
136136
"globals": "^15.8.0",
137137
"gts": "^5.3.1",
138-
"html-validate": "^8.20.1",
138+
"html-validate": "^8.21.0",
139139
"jest": "^29.7.0",
140140
"jest-axe": "^9.0.0",
141141
"jest-canvas-mock": "^2.5.2",
@@ -144,26 +144,26 @@
144144
"jest-junit": "^16.0.0",
145145
"jest-styled-components": "^7.2.0",
146146
"json-beautify": "^1.1.1",
147-
"prettier": "^3.3.2",
147+
"prettier": "^3.3.3",
148148
"react-transition-group": "^4.4.5",
149149
"sort-imports": "^1.1.0",
150-
"storybook": "^8.2.2",
151-
"ts-jest": "^29.2.2",
150+
"storybook": "^8.2.6",
151+
"ts-jest": "^29.2.3",
152152
"tsc-alias": "1.8.10",
153-
"typedoc": "^0.26.4",
154-
"typedoc-plugin-markdown": "^4.2.1",
155-
"typescript": "^5.5.3",
156-
"vite": "^5.3.3",
153+
"typedoc": "^0.26.5",
154+
"typedoc-plugin-markdown": "^4.2.3",
155+
"typescript": "^5.5.4",
156+
"vite": "^5.3.4",
157157
"vite-tsconfig-paths": "^4.3.2",
158158
"yarn-deduplicate": "^6.0.2"
159159
},
160160
"dependencies": {
161-
"@emotion/is-prop-valid": "^1.2.2",
161+
"@emotion/is-prop-valid": "^1.3.0",
162162
"lottie-web": "^5.12.2",
163163
"react": "^18.3.1",
164164
"react-dom": "^18.3.1",
165165
"react-transition-group": "^4.4.5",
166-
"styled-components": "^6.1.11"
166+
"styled-components": "^6.1.12"
167167
},
168168
"resolutions": {
169169
"strip-ansi": "^6.0.1",

src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export * from './headerStructure';
8080
export * from './radioButtonGroup';
8181
export * from './functionalitiesModule';
8282
export * from './footer';
83+
export * from './inputDigitSequence';
8384
export * from './layout';
8485
export * from './operativeLayout';
8586
export * from './grid';

src/designSystem/kubit/components/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export * from './layout/styles';
6767
export * from './dropdownSelected/styles';
6868
export * from './header/styles';
6969
export * from './headerStructure/styles';
70+
export * from './inputDigitSequence/styles';
7071
export * from './selectorBoxFile/styles';
7172
export * from './skeleton/styles';
7273
export * from './slider/styles';

src/designSystem/kubit/components/variants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export * from './layout/variants';
6666
export * from './dropdownSelected/variants';
6767
export * from './header/variants';
6868
export * from './headerStructure/variants';
69+
export * from './inputDigitSequence/variants';
6970
export * from './selectorBoxFile/variants';
7071
export * from './skeleton/variants';
7172
export * from './slider/variants';

src/designSystem/variants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type Variants = {
3232
LayoutVariantType?: object;
3333
EmptyStateVariantType?: object;
3434
EmptyStateStateType?: object;
35-
FooterVariant?: object;
35+
FooterVariants?: object;
3636
FunctionalitiesModuleVariantType?: object;
3737
TabsVariantType?: object;
3838
HeaderVariantType?: object;

src/hooks/useZoomEffect/useZoomEffect.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ export const useZoomEffect = (
4747
const innerElementRef = useRef<HTMLElement | null>(null);
4848
// original styles ref
4949
const originalStyles = useRef<CssProperty[]>([]);
50-
// indicate if zoomed
51-
const zoomed = useRef<boolean>(false);
5250
// control the previous zoom value
5351
const prevZoom = useRef<number>(INIT_ZOOM);
5452
// indicate the theme breakpoints
@@ -63,13 +61,12 @@ export const useZoomEffect = (
6361
const element = innerElementRef.current;
6462
// storage the original styles
6563
const zoom = window.devicePixelRatio;
64+
const forwardZoom = prevZoom.current <= zoom;
6665
if (zoom > maxZoom) {
67-
zoomed.current && changeCssProperty(element, effect);
68-
zoomed.current = false;
69-
} else if (prevZoom.current > zoom && zoom === INIT_ZOOM) {
66+
changeCssProperty(element, effect);
67+
} else if (!forwardZoom && zoom <= maxZoom) {
7068
// apply the original styles when returning to normal size after zooming in
71-
!zoomed.current && changeCssProperty(element, originalStyles.current);
72-
zoomed.current = true;
69+
changeCssProperty(element, originalStyles.current);
7370
}
7471
prevZoom.current = zoom;
7572
}, [condition]);

src/types/styled.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ export interface CustomTheme {
88
Z_INDEX?: ZIndexType;
99
STATES?: STATES;
1010
POSITIONS?: POSITIONS;
11-
FOCUS_STYLES?: ThemedCssFunction;
12-
FOCUS_STYLES_ALT?: ThemedCssFunction;
11+
FOCUS_STYLES?: FlattenSimpleInterpolation;
12+
FOCUS_STYLES_ALT?: FlattenSimpleInterpolation;
1313
ILLUSTRATIONS_STYLES?: IllustrationType;
1414
ICONS_STYLES?: IconType;
1515
TEXT_STYLES?: TypographyTypes;
1616
SPACINGS: SpacingsType;
1717
}
1818

1919
declare module 'styled-components' {
20+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
2021
export interface DefaultTheme extends CustomTheme {}
2122
}

0 commit comments

Comments
 (0)