@codacy/ui-components 0.66.57 → 0.66.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ export const DropdownContext = /*#__PURE__*/React.createContext(null);
11
11
  */
12
12
  export const Dropdown = ({
13
13
  trigger,
14
- disabled,
15
14
  placement = 'left',
16
15
  size = 'md',
17
16
  initialValue,
@@ -41,7 +41,6 @@ const Input = /*#__PURE__*/React.forwardRef(({
41
41
  showClearButton = false,
42
42
  help,
43
43
  hasError,
44
- hasSuccess,
45
44
  isLoading,
46
45
  errorMessage,
47
46
  onChange,
@@ -112,7 +112,8 @@ function generateInputValidator(validations, inputType, hideSuccess) {
112
112
  didMountRef.current = true;
113
113
  }
114
114
  };
115
- useEffect(doValidation, [debouncedValue]);
115
+ useEffect(doValidation, /* eslint-disable-next-line react-hooks/exhaustive-deps */
116
+ [debouncedValue]);
116
117
  return {
117
118
  value,
118
119
  setValue,
@@ -17,6 +17,7 @@ export const Labeled = ({
17
17
  ...props
18
18
  }) => {
19
19
  return /*#__PURE__*/React.createElement(LabelWrapper, _extends({
20
+ id: id,
20
21
  size: size
21
22
  }, props), label && /*#__PURE__*/React.createElement(Label, {
22
23
  htmlFor: forId
@@ -23,7 +23,6 @@ const ModalComponent = ({
23
23
  children,
24
24
  tabIndex,
25
25
  showCloseButton = false,
26
- p = defaultModalPadding,
27
26
  ...dialog
28
27
  }) => {
29
28
  const labelProps = {
@@ -3,7 +3,6 @@ import React from 'react';
3
3
  import { SliderBar, SliderWrapper } from './styles';
4
4
  export const MultiSlider = ({
5
5
  values,
6
- min = 0,
7
6
  max = 100,
8
7
  size = 'md',
9
8
  ...props
@@ -67,7 +67,6 @@ const HeaderCell = ({
67
67
  name,
68
68
  onClick,
69
69
  align = 'left',
70
- width,
71
70
  ...props
72
71
  }) => {
73
72
  const _direction = direction || defaultDirection;
@@ -62,7 +62,6 @@ export const Caption = /*#__PURE__*/React.forwardRef(({
62
62
  ref: ref
63
63
  }), children));
64
64
  export const DataPoint = /*#__PURE__*/React.forwardRef(({
65
- children,
66
65
  size = 'sm',
67
66
  as = 'p',
68
67
  value,
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
3
3
  /** @deprecated Use useInfiniteScrollRef instead */
4
4
  export function useInfiniteScroll(ref, onLoadMore, containerRef) {
5
5
  const observer = useRef();
6
- const handleLoadMore = useCallback((entries, _) => {
6
+ const handleLoadMore = useCallback(entries => {
7
7
  if (entries[0].isIntersecting && onLoadMore) {
8
8
  onLoadMore();
9
9
  }
@@ -23,7 +23,7 @@ export function useInfiniteScroll(ref, onLoadMore, containerRef) {
23
23
  export default function useInfiniteScrollRef(onLoadMore, containerRef) {
24
24
  const observer = useRef();
25
25
  const [ref, setRef] = React.useState(null);
26
- const handleLoadMore = useCallback((entries, _) => {
26
+ const handleLoadMore = useCallback(entries => {
27
27
  if (entries[0].isIntersecting && onLoadMore) {
28
28
  onLoadMore();
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.66.57",
3
+ "version": "0.66.58",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -27,8 +27,8 @@
27
27
  "check-types:watch": "npm run check-types -- --watch",
28
28
  "check-missing-deps": "node check-missing.js",
29
29
  "clean": "rimraf lib && rimraf storybook-static && rimraf coverage",
30
- "lint": "npm run lint-cmd .",
31
- "lint-cmd": "eslint --ignore-path .eslintignore --ext .js,.jsx,.ts,.tsx",
30
+ "lint": "npm run lint-cmd",
31
+ "lint-cmd": "eslint --ext .js,.jsx,.ts,.tsx src stories",
32
32
  "lint-staged": "lint-staged",
33
33
  "storybook": "storybook dev -p 6006",
34
34
  "test": "vitest",
@@ -53,6 +53,9 @@
53
53
  "@emotion/jest": "^11.11.0",
54
54
  "@emotion/react": "^11.11.1",
55
55
  "@emotion/styled": "^11.11.0",
56
+ "@eslint/compat": "^2.0.0",
57
+ "@eslint/eslintrc": "^3.3.3",
58
+ "@eslint/js": "^9.39.2",
56
59
  "@mdx-js/react": "^2.0.0",
57
60
  "@popperjs/core": "^2.5.4",
58
61
  "@storybook/addon-docs": "^7.6.4",
@@ -75,15 +78,15 @@
75
78
  "@types/resize-observer-browser": "^0.1.6",
76
79
  "@types/styled-system": "^5.1.22",
77
80
  "@types/styled-system__should-forward-prop": "^5.1.4",
78
- "@typescript-eslint/eslint-plugin": "^6.13.2",
79
- "@typescript-eslint/parser": "^6.13.2",
81
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
82
+ "@typescript-eslint/parser": "^8.39.0",
80
83
  "@vitejs/plugin-react": "^4.7.0",
81
84
  "@vitest/coverage-v8": "^3.2.4",
82
85
  "babel-loader": "^9.1.3",
83
86
  "babel-preset-react-app": "^10.0.1",
84
87
  "copy-to-clipboard": "^3.3.1",
85
88
  "depcheck": "^1.4.2",
86
- "eslint": "^8.55.0",
89
+ "eslint": "^9.39.2",
87
90
  "eslint-config-prettier": "^9.1.0",
88
91
  "eslint-config-react-app": "^5.2.1",
89
92
  "eslint-plugin-flowtype": "^8.0.3",
@@ -92,7 +95,7 @@
92
95
  "eslint-plugin-mdx": "^2.0.0",
93
96
  "eslint-plugin-prettier": "^5.0.1",
94
97
  "eslint-plugin-react": "^7.21.5",
95
- "eslint-plugin-react-hooks": "^1.7.0",
98
+ "eslint-plugin-react-hooks": "^5.2.0",
96
99
  "fontsource-inter": "^4.0.0",
97
100
  "husky": "^4.3.0",
98
101
  "jsdom": "^26.1.0",