@jetbrains/kotlin-web-site-ui 4.0.0-alpha.3 → 4.0.0
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.
|
@@ -2,6 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import styles from './search-button.module.pcss.js';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import SvgSearch from './search.svg.js';
|
|
5
|
+
const DATA_TEST_HEADER_SEARCH_BUTTON = 'header-search-button';
|
|
5
6
|
|
|
6
7
|
const SearchButton = ({
|
|
7
8
|
onClick,
|
|
@@ -12,9 +13,10 @@ const SearchButton = ({
|
|
|
12
13
|
className: classNames(styles.button, {
|
|
13
14
|
[styles.active]: isActive
|
|
14
15
|
}),
|
|
16
|
+
"data-test": DATA_TEST_HEADER_SEARCH_BUTTON,
|
|
15
17
|
"aria-label": "Search",
|
|
16
18
|
onClick: onClick
|
|
17
19
|
}, React__default.createElement(SvgSearch, null));
|
|
18
20
|
};
|
|
19
21
|
|
|
20
|
-
export { SearchButton };
|
|
22
|
+
export { DATA_TEST_HEADER_SEARCH_BUTTON, SearchButton };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/kotlin-web-site-ui",
|
|
3
3
|
"description": "UI components for Kotlin web sites development",
|
|
4
|
-
"version": "4.0.0
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"files": [
|
|
@@ -17,12 +17,10 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"codegeneration": "node ./scripts/build.js && yarn run copy-static",
|
|
19
19
|
"copy-static": "copyfiles -f src/svg/*.svg out/svg",
|
|
20
|
-
"build": "webpack --mode production --devtool source-map",
|
|
21
|
-
"watch": "webpack --mode development --watch",
|
|
22
20
|
"storybook": "yarn & start-storybook -p 6006",
|
|
23
21
|
"build-storybook": "build-storybook",
|
|
24
22
|
"storybook-docs": "start-storybook --docs --no-manager-cache",
|
|
25
|
-
"release:ci": "npm run
|
|
23
|
+
"release:ci": "npm run codegeneration && standard-version && git push --follow-tags origin master && npm publish"
|
|
26
24
|
},
|
|
27
25
|
"peerDependencies": {
|
|
28
26
|
"@rescui/checkbox": "0.x",
|
|
@@ -83,7 +81,6 @@
|
|
|
83
81
|
"copyfiles": "^2.4.1",
|
|
84
82
|
"core-js": "^3.10.0",
|
|
85
83
|
"css-loader": "^5.2.0",
|
|
86
|
-
"csso-webpack-plugin": "^2.0.0-beta.3",
|
|
87
84
|
"eslint": "^7.24.0",
|
|
88
85
|
"eslint-config-prettier": "^8.2.0",
|
|
89
86
|
"eslint-plugin-import": "^2.22.1",
|
|
@@ -115,7 +112,6 @@
|
|
|
115
112
|
"sha.js": "^2.4.11",
|
|
116
113
|
"standard-version": "^9.2.0",
|
|
117
114
|
"svgo-loader": "^3.0.0",
|
|
118
|
-
"terser-webpack-plugin": "^5.1.1",
|
|
119
115
|
"typescript": "^4.2.4",
|
|
120
116
|
"webpack": "^5.30.0",
|
|
121
117
|
"webpack-cli": "^4.6.0",
|