@jetbrains/ring-ui 5.0.141 → 5.0.142
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.
|
@@ -9,7 +9,7 @@ import startOfDay from 'date-fns/startOfDay';
|
|
|
9
9
|
import startOfYear from 'date-fns/startOfYear';
|
|
10
10
|
import linearFunction from '../global/linear-function';
|
|
11
11
|
import MonthSlider from './month-slider';
|
|
12
|
-
import {
|
|
12
|
+
import { YEAR, MIDDLE_DAY, yearScrollSpeed, dateType } from './consts';
|
|
13
13
|
import styles from './date-picker.css';
|
|
14
14
|
class MonthName extends PureComponent {
|
|
15
15
|
static propTypes = {
|
|
@@ -19,7 +19,7 @@ class MonthName extends PureComponent {
|
|
|
19
19
|
};
|
|
20
20
|
handleClick = () => {
|
|
21
21
|
const end = endOfMonth(this.props.month);
|
|
22
|
-
this.props.onScrollChange((
|
|
22
|
+
this.props.onScrollChange(end.getTime());
|
|
23
23
|
};
|
|
24
24
|
render() {
|
|
25
25
|
const { month, locale } = this.props;
|
|
@@ -10,7 +10,7 @@ import startOfDay from 'date-fns/startOfDay';
|
|
|
10
10
|
import startOfYear from 'date-fns/startOfYear';
|
|
11
11
|
import linearFunction from '../global/linear-function.js';
|
|
12
12
|
import MonthSlider from './month-slider.js';
|
|
13
|
-
import { dateType,
|
|
13
|
+
import { dateType, YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
|
|
14
14
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
15
15
|
import 'date-fns/addYears';
|
|
16
16
|
import 'date-fns/subYears';
|
|
@@ -24,7 +24,7 @@ class MonthName extends PureComponent {
|
|
|
24
24
|
};
|
|
25
25
|
handleClick = () => {
|
|
26
26
|
const end = endOfMonth(this.props.month);
|
|
27
|
-
this.props.onScrollChange((
|
|
27
|
+
this.props.onScrollChange(end.getTime());
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
30
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.142",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -82,21 +82,21 @@
|
|
|
82
82
|
"@primer/octicons": "^19.1.0",
|
|
83
83
|
"@rollup/plugin-babel": "^6.0.3",
|
|
84
84
|
"@rollup/plugin-json": "^6.0.0",
|
|
85
|
-
"@rollup/plugin-node-resolve": "^15.0
|
|
85
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
86
86
|
"@rollup/plugin-replace": "^5.0.2",
|
|
87
|
-
"@storybook/addon-a11y": "7.0.
|
|
88
|
-
"@storybook/addon-docs": "7.0.
|
|
89
|
-
"@storybook/addon-essentials": "7.0.
|
|
87
|
+
"@storybook/addon-a11y": "7.0.18",
|
|
88
|
+
"@storybook/addon-docs": "7.0.18",
|
|
89
|
+
"@storybook/addon-essentials": "7.0.18",
|
|
90
90
|
"@storybook/addon-storyshots": "7.0.12",
|
|
91
|
-
"@storybook/addon-storyshots-puppeteer": "7.0.
|
|
92
|
-
"@storybook/addon-storysource": "7.0.
|
|
93
|
-
"@storybook/addons": "7.0.
|
|
91
|
+
"@storybook/addon-storyshots-puppeteer": "7.0.18",
|
|
92
|
+
"@storybook/addon-storysource": "7.0.18",
|
|
93
|
+
"@storybook/addons": "7.0.18",
|
|
94
94
|
"@storybook/html": "7.0.12",
|
|
95
|
-
"@storybook/html-webpack5": "^7.0.
|
|
95
|
+
"@storybook/html-webpack5": "^7.0.18",
|
|
96
96
|
"@storybook/preview-api": "7.0.12",
|
|
97
|
-
"@storybook/react": "7.0.
|
|
98
|
-
"@storybook/source-loader": "7.0.
|
|
99
|
-
"@storybook/theming": "7.0.
|
|
97
|
+
"@storybook/react": "7.0.18",
|
|
98
|
+
"@storybook/source-loader": "7.0.18",
|
|
99
|
+
"@storybook/theming": "7.0.18",
|
|
100
100
|
"@testing-library/react": "^14.0.0",
|
|
101
101
|
"@testing-library/user-event": "^14.4.3",
|
|
102
102
|
"@types/chai": "^4.3.5",
|
|
@@ -104,12 +104,12 @@
|
|
|
104
104
|
"@types/chai-dom": "0.0.10",
|
|
105
105
|
"@types/chai-enzyme": "^0.6.8",
|
|
106
106
|
"@types/enzyme": "^3.10.13",
|
|
107
|
-
"@types/react": "^18.2.
|
|
107
|
+
"@types/react": "^18.2.7",
|
|
108
108
|
"@types/react-dom": "^18.2.4",
|
|
109
109
|
"@types/sinon": "^10.0.15",
|
|
110
110
|
"@types/sinon-chai": "^3.2.9",
|
|
111
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
112
|
-
"@typescript-eslint/parser": "^5.59.
|
|
111
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
112
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
113
113
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
114
114
|
"acorn": "^8.8.2",
|
|
115
115
|
"angular": "^1.8.3",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"angular-route": "^1.8.3",
|
|
118
118
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
119
119
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
120
|
-
"caniuse-lite": "^1.0.
|
|
120
|
+
"caniuse-lite": "^1.0.30001492",
|
|
121
121
|
"chai": "^4.3.7",
|
|
122
122
|
"chai-as-promised": "^7.1.1",
|
|
123
123
|
"chai-dom": "^1.10.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"mocha": "^10.2.0",
|
|
155
155
|
"pinst": "^3.0.0",
|
|
156
156
|
"prettier": "^2.8.8",
|
|
157
|
-
"puppeteer": "^20.
|
|
157
|
+
"puppeteer": "^20.4.0",
|
|
158
158
|
"raw-loader": "^4.0.2",
|
|
159
159
|
"react": "^18.2.0",
|
|
160
160
|
"react-dom": "^18.2.0",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"sinon": "^15.1.0",
|
|
168
168
|
"sinon-chai": "^3.7.0",
|
|
169
169
|
"storage-mock": "^2.1.0",
|
|
170
|
-
"storybook": "^7.0.
|
|
170
|
+
"storybook": "^7.0.18",
|
|
171
171
|
"storybook-addon-themes": "^6.1.0",
|
|
172
172
|
"storybook-zeplin": "^2.0.0",
|
|
173
173
|
"stylelint": "^15.6.2",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"terser-webpack-plugin": "^5.3.9",
|
|
177
177
|
"typescript": "~5.0.4",
|
|
178
178
|
"wallaby-webpack": "^3.9.16",
|
|
179
|
-
"webpack": "^5.
|
|
179
|
+
"webpack": "^5.84.1",
|
|
180
180
|
"webpack-cli": "^5.1.1",
|
|
181
181
|
"xmlappend": "^1.0.4"
|
|
182
182
|
},
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
"dependencies": {
|
|
203
|
-
"@babel/core": "^7.
|
|
203
|
+
"@babel/core": "^7.22.1",
|
|
204
204
|
"@babel/preset-typescript": "^7.21.5",
|
|
205
205
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
206
206
|
"@jetbrains/icons": "^3.21.0",
|
|
@@ -215,13 +215,13 @@
|
|
|
215
215
|
"@types/util-deprecate": "^1.0.0",
|
|
216
216
|
"@ungap/url-search-params": "^0.2.2",
|
|
217
217
|
"babel-loader": "9.1.2",
|
|
218
|
-
"babel-plugin-transform-define": "^2.1.
|
|
219
|
-
"browserslist": "^4.21.
|
|
218
|
+
"babel-plugin-transform-define": "^2.1.2",
|
|
219
|
+
"browserslist": "^4.21.7",
|
|
220
220
|
"change-case": "^4.1.1",
|
|
221
221
|
"classnames": "^2.3.2",
|
|
222
222
|
"combokeys": "^3.0.1",
|
|
223
223
|
"compile-code-loader": "^1.0.0",
|
|
224
|
-
"css-loader": "^6.
|
|
224
|
+
"css-loader": "^6.8.1",
|
|
225
225
|
"csstype": "^3.1.2",
|
|
226
226
|
"date-fns": "^2.30.0",
|
|
227
227
|
"deep-equal": "^2.2.1",
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
"interpolate-loader": "^2.0.1",
|
|
238
238
|
"just-debounce-it": "^3.2.0",
|
|
239
239
|
"memoize-one": "^6.0.0",
|
|
240
|
-
"postcss": "^8.4.
|
|
240
|
+
"postcss": "^8.4.24",
|
|
241
241
|
"postcss-calc": "^9.0.1",
|
|
242
242
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
243
243
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
244
|
-
"postcss-loader": "^7.3.
|
|
244
|
+
"postcss-loader": "^7.3.2",
|
|
245
245
|
"postcss-modules-values-replace": "^4.1.0",
|
|
246
246
|
"postcss-preset-env": "^8.4.1",
|
|
247
247
|
"prop-types": "^15.8.1",
|