@indico-data/design-system 3.12.0 → 3.13.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "3.12.0",
3
+ "version": "3.13.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -40,16 +40,13 @@
40
40
  "@react-types/checkbox": "^3.8.1",
41
41
  "@react-types/radio": "^3.8.0",
42
42
  "@tanstack/react-table": "^8.21.2",
43
- "@testing-library/react": "^16.0.0",
44
43
  "classnames": "^2.5.1",
45
44
  "date-fns": "^3.6.0",
46
45
  "focus-trap-react": "^10.2.3",
47
- "html-webpack-plugin": "^5.6.0",
48
46
  "prop-types": "^15.8.1",
49
47
  "react-aria-components": "^1.2.1",
50
48
  "react-data-table-component": "^7.6.2",
51
49
  "react-day-picker": "9.1.3",
52
- "react-docgen-typescript": "^2.4.0",
53
50
  "react-grid-system": "^8.2.0",
54
51
  "react-hook-form": "^7.52.1",
55
52
  "react-modal": "^3.16.1",
@@ -57,13 +54,8 @@
57
54
  "react-stately": "^3.31.0",
58
55
  "react-toastify": "^11.0.5",
59
56
  "react-tooltip": "5.28.0",
60
- "svgo": "^3.2.2",
61
- "ts-jest": "^29.3.1",
62
57
  "tslib": "^2.6.2",
63
58
  "uuid": "^9.0.1",
64
- "webpack": "^5.98.0",
65
- "webpack-cli": "^5.1.4",
66
- "webpack-dev-server": "^5.2.1",
67
59
  "zod": "^3.23.8"
68
60
  },
69
61
  "devDependencies": {
@@ -101,7 +93,7 @@
101
93
  "@storybook/theming": "^8.0.8",
102
94
  "@testing-library/dom": "^10.0.0",
103
95
  "@testing-library/jest-dom": "^6.4.2",
104
- "@testing-library/react": "^16.0.0",
96
+ "@testing-library/react": "^16.3.0",
105
97
  "@testing-library/user-event": "^14.5.2",
106
98
  "@types/css-modules": "^1.0.5",
107
99
  "@types/identity-obj-proxy": "^3",
@@ -124,6 +116,7 @@
124
116
  "eslint": "^8.56.0",
125
117
  "eslint-plugin-react": "^7.33.2",
126
118
  "eslint-plugin-react-hooks": "^4.6.0",
119
+ "html-webpack-plugin": "^5.6.5",
127
120
  "identity-obj-proxy": "^3.0.0",
128
121
  "jest": "^29.7.0",
129
122
  "jest-environment-jsdom": "^29.7.0",
@@ -134,6 +127,7 @@
134
127
  "postcss-url": "^10.1.3",
135
128
  "prettier": "3.2.5",
136
129
  "react": "^18.2.0",
130
+ "react-docgen-typescript": "^2.4.0",
137
131
  "react-dom": "^18.2.0",
138
132
  "react-grid-system": "^8.2.0",
139
133
  "react-router-dom": "^6.22.1",
@@ -152,11 +146,16 @@
152
146
  "storybook-css-modules": "^1.0.8",
153
147
  "style-loader": "2.0.0",
154
148
  "styled-components": "^6.1.8",
149
+ "svgo": "^4.0.0",
150
+ "ts-jest": "^29.4.6",
155
151
  "ts-loader": "^9.5.1",
156
152
  "ts-node": "^10.9.2",
157
153
  "tsconfig-paths-webpack-plugin": "^4.1.0",
158
154
  "typescript": "^5.3.3",
159
- "webpack-bundle-analyzer": "^4.10.2"
155
+ "webpack": "^5.103.0",
156
+ "webpack-bundle-analyzer": "^4.10.2",
157
+ "webpack-cli": "^6.0.1",
158
+ "webpack-dev-server": "^5.2.2"
160
159
  },
161
160
  "resolutions": {
162
161
  "jackspeak": "2.1.1"
@@ -17,10 +17,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) =>
17
17
  onClick,
18
18
  type = 'button',
19
19
  size = 'md',
20
- onMouseEnter,
21
20
  onMouseExit,
22
- onKeyDown,
23
- onBlur,
24
21
  className,
25
22
  href,
26
23
  ...rest
@@ -55,10 +52,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) =>
55
52
  aria-disabled={isLoading || isDisabled}
56
53
  aria-busy={isLoading}
57
54
  type={type}
58
- onMouseEnter={onMouseEnter}
59
55
  onMouseLeave={onMouseExit}
60
- onKeyDown={onKeyDown}
61
- onBlur={onBlur}
62
56
  {...rest}
63
57
  >
64
58
  {/* Loading Icon on the left (default) */}
@@ -6,39 +6,15 @@ export type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
6
6
 
7
7
  export type ButtonTypes = 'button' | 'submit' | 'reset';
8
8
 
9
- export interface ButtonProps {
10
- /**
11
- * The class name to apply to the button
12
- */
13
- className?: string;
9
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
14
10
  /**
15
11
  * The aria-label to apply to the button
16
12
  */
17
13
  ariaLabel: string;
18
- /**
19
- * The children to apply to the button
20
- */
21
- children?: React.ReactNode | React.ReactNode[];
22
- /**
23
- * The function to call when the mouse enters the button
24
- */
25
- onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
26
14
  /**
27
15
  * The function to call when the mouse exits the button
28
16
  */
29
17
  onMouseExit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
30
- /**
31
- * The function to call when the button loses focus
32
- */
33
- onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
34
- /**
35
- * The function to call when the button is clicked
36
- */
37
- onClick?: (...args: any[]) => void;
38
- /**
39
- * The function to call when the button is pressed
40
- */
41
- onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
42
18
  /**
43
19
  * Determines the visual style and emphasis level of the button
44
20
  */
@@ -45,7 +45,7 @@ const HorizontalStickyHeader = ({
45
45
  variant="link"
46
46
  size="sm"
47
47
  iconLeft="pin"
48
- onClick={onPinColumn}
48
+ onClick={() => onPinColumn?.(`sticky-column-${position}`)}
49
49
  ariaLabel={isPinned ? 'Unpin column' : 'Pin column'}
50
50
  className={`table__column--${isPinned ? 'is-pinned' : 'is-not-pinned'} table__column__pin-action`}
51
51
  />