@elastic/eui 65.0.1 → 65.0.2
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/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +4 -1
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +4 -1
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/es/components/icon/icon.js +2 -1
- package/es/global_styling/functions/logicals.json +56 -0
- package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/lib/components/icon/icon.js +2 -1
- package/lib/global_styling/functions/logicals.json +56 -0
- package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/es/components/icon/icon.js +2 -1
- package/optimize/es/global_styling/functions/logicals.json +56 -0
- package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/lib/components/icon/icon.js +2 -1
- package/optimize/lib/global_styling/functions/logicals.json +56 -0
- package/package.json +1 -1
- package/src/components/datagrid/_data_grid_data_row.scss +7 -0
- package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
- package/test-env/global_styling/functions/logicals.json +56 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -114,7 +114,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
114
114
|
|
|
115
115
|
_this = _super.call(this, props);
|
|
116
116
|
|
|
117
|
-
_defineProperty(_assertThisInitialized(_this), "isMounted",
|
|
117
|
+
_defineProperty(_assertThisInitialized(_this), "isMounted", false);
|
|
118
118
|
|
|
119
119
|
_defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
|
|
120
120
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
@@ -172,6 +172,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
_createClass(EuiIconClass, [{
|
|
173
173
|
key: "componentDidMount",
|
|
174
174
|
value: function componentDidMount() {
|
|
175
|
+
this.isMounted = true;
|
|
175
176
|
var type = this.props.type;
|
|
176
177
|
|
|
177
178
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"height": "block-size",
|
|
3
|
+
"width": "inline-size",
|
|
4
|
+
"max-height": "max-block-size",
|
|
5
|
+
"max-width": "max-inline-size",
|
|
6
|
+
"min-height": "min-block-size",
|
|
7
|
+
"min-width": "min-inline-size",
|
|
8
|
+
"top": "inset-block-start",
|
|
9
|
+
"right": "inset-inline-end",
|
|
10
|
+
"bottom": "inset-block-end",
|
|
11
|
+
"left": "inset-inline-start",
|
|
12
|
+
"horizontal": "inset-block",
|
|
13
|
+
"vertical": "inset-inline",
|
|
14
|
+
"margin-left": "margin-inline-start",
|
|
15
|
+
"margin-right": "margin-inline-end",
|
|
16
|
+
"margin-top": "margin-block-start",
|
|
17
|
+
"margin-bottom": "margin-block-end",
|
|
18
|
+
"margin-horizontal": "margin-inline",
|
|
19
|
+
"margin-vertical": "margin-block",
|
|
20
|
+
"padding-left": "padding-inline-start",
|
|
21
|
+
"padding-right": "padding-inline-end",
|
|
22
|
+
"padding-top": "padding-block-start",
|
|
23
|
+
"padding-bottom": "padding-block-end",
|
|
24
|
+
"padding-horizontal": "padding-inline",
|
|
25
|
+
"padding-vertical": "padding-block",
|
|
26
|
+
"overflow-x": "overflow-inline",
|
|
27
|
+
"overflow-y": "overflow-block",
|
|
28
|
+
"border-horizontal": "border-inline",
|
|
29
|
+
"border-horizontal-color": "border-inline-color",
|
|
30
|
+
"border-horizontal-width": "border-inline-width",
|
|
31
|
+
"border-horizontal-style": "border-inline-style",
|
|
32
|
+
"border-vertical": "border-block",
|
|
33
|
+
"border-vertical-color": "border-block-color",
|
|
34
|
+
"border-vertical-width": "border-block-width",
|
|
35
|
+
"border-vertical-style": "border-block-style",
|
|
36
|
+
"border-bottom": "border-block-end",
|
|
37
|
+
"border-bottom-color": "border-block-end-color",
|
|
38
|
+
"border-bottom-style": "border-block-end-style",
|
|
39
|
+
"border-bottom-width": "border-block-end-width",
|
|
40
|
+
"border-top": "border-block-start",
|
|
41
|
+
"border-top-color": "border-block-start-color",
|
|
42
|
+
"border-top-style": "border-block-start-style",
|
|
43
|
+
"border-top-width": "border-block-start-width",
|
|
44
|
+
"border-right": "border-inline-end",
|
|
45
|
+
"border-right-color": "border-inline-end-color",
|
|
46
|
+
"border-right-style": "border-inline-end-style",
|
|
47
|
+
"border-right-width": "border-inline-end-width",
|
|
48
|
+
"border-left": "border-inline-start",
|
|
49
|
+
"border-left-color": "border-inline-start-color",
|
|
50
|
+
"border-left-style": "border-inline-start-style",
|
|
51
|
+
"border-left-width": "border-inline-start-width",
|
|
52
|
+
"border-top-left-radius": "border-start-start-radius",
|
|
53
|
+
"border-top-right-radius": "border-start-end-radius",
|
|
54
|
+
"border-bottom-left-radius": "border-end-start-radius",
|
|
55
|
+
"border-bottom-right-radius": "border-end-end-radius"
|
|
56
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -144,7 +144,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
144
144
|
|
|
145
145
|
_this = _super.call(this, props);
|
|
146
146
|
|
|
147
|
-
_defineProperty(_assertThisInitialized(_this), "isMounted",
|
|
147
|
+
_defineProperty(_assertThisInitialized(_this), "isMounted", false);
|
|
148
148
|
|
|
149
149
|
_defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
|
|
150
150
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
@@ -204,6 +204,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
204
204
|
_createClass(EuiIconClass, [{
|
|
205
205
|
key: "componentDidMount",
|
|
206
206
|
value: function componentDidMount() {
|
|
207
|
+
this.isMounted = true;
|
|
207
208
|
var type = this.props.type;
|
|
208
209
|
|
|
209
210
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"height": "block-size",
|
|
3
|
+
"width": "inline-size",
|
|
4
|
+
"max-height": "max-block-size",
|
|
5
|
+
"max-width": "max-inline-size",
|
|
6
|
+
"min-height": "min-block-size",
|
|
7
|
+
"min-width": "min-inline-size",
|
|
8
|
+
"top": "inset-block-start",
|
|
9
|
+
"right": "inset-inline-end",
|
|
10
|
+
"bottom": "inset-block-end",
|
|
11
|
+
"left": "inset-inline-start",
|
|
12
|
+
"horizontal": "inset-block",
|
|
13
|
+
"vertical": "inset-inline",
|
|
14
|
+
"margin-left": "margin-inline-start",
|
|
15
|
+
"margin-right": "margin-inline-end",
|
|
16
|
+
"margin-top": "margin-block-start",
|
|
17
|
+
"margin-bottom": "margin-block-end",
|
|
18
|
+
"margin-horizontal": "margin-inline",
|
|
19
|
+
"margin-vertical": "margin-block",
|
|
20
|
+
"padding-left": "padding-inline-start",
|
|
21
|
+
"padding-right": "padding-inline-end",
|
|
22
|
+
"padding-top": "padding-block-start",
|
|
23
|
+
"padding-bottom": "padding-block-end",
|
|
24
|
+
"padding-horizontal": "padding-inline",
|
|
25
|
+
"padding-vertical": "padding-block",
|
|
26
|
+
"overflow-x": "overflow-inline",
|
|
27
|
+
"overflow-y": "overflow-block",
|
|
28
|
+
"border-horizontal": "border-inline",
|
|
29
|
+
"border-horizontal-color": "border-inline-color",
|
|
30
|
+
"border-horizontal-width": "border-inline-width",
|
|
31
|
+
"border-horizontal-style": "border-inline-style",
|
|
32
|
+
"border-vertical": "border-block",
|
|
33
|
+
"border-vertical-color": "border-block-color",
|
|
34
|
+
"border-vertical-width": "border-block-width",
|
|
35
|
+
"border-vertical-style": "border-block-style",
|
|
36
|
+
"border-bottom": "border-block-end",
|
|
37
|
+
"border-bottom-color": "border-block-end-color",
|
|
38
|
+
"border-bottom-style": "border-block-end-style",
|
|
39
|
+
"border-bottom-width": "border-block-end-width",
|
|
40
|
+
"border-top": "border-block-start",
|
|
41
|
+
"border-top-color": "border-block-start-color",
|
|
42
|
+
"border-top-style": "border-block-start-style",
|
|
43
|
+
"border-top-width": "border-block-start-width",
|
|
44
|
+
"border-right": "border-inline-end",
|
|
45
|
+
"border-right-color": "border-inline-end-color",
|
|
46
|
+
"border-right-style": "border-inline-end-style",
|
|
47
|
+
"border-right-width": "border-inline-end-width",
|
|
48
|
+
"border-left": "border-inline-start",
|
|
49
|
+
"border-left-color": "border-inline-start-color",
|
|
50
|
+
"border-left-style": "border-inline-start-style",
|
|
51
|
+
"border-left-width": "border-inline-start-width",
|
|
52
|
+
"border-top-left-radius": "border-start-start-radius",
|
|
53
|
+
"border-top-right-radius": "border-start-end-radius",
|
|
54
|
+
"border-bottom-left-radius": "border-end-start-radius",
|
|
55
|
+
"border-bottom-right-radius": "border-end-end-radius"
|
|
56
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -96,7 +96,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
96
96
|
|
|
97
97
|
_this = _super.call(this, props);
|
|
98
98
|
|
|
99
|
-
_defineProperty(_assertThisInitialized(_this), "isMounted",
|
|
99
|
+
_defineProperty(_assertThisInitialized(_this), "isMounted", false);
|
|
100
100
|
|
|
101
101
|
_defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
|
|
102
102
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
@@ -154,6 +154,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
154
154
|
_createClass(EuiIconClass, [{
|
|
155
155
|
key: "componentDidMount",
|
|
156
156
|
value: function componentDidMount() {
|
|
157
|
+
this.isMounted = true;
|
|
157
158
|
var type = this.props.type;
|
|
158
159
|
|
|
159
160
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"height": "block-size",
|
|
3
|
+
"width": "inline-size",
|
|
4
|
+
"max-height": "max-block-size",
|
|
5
|
+
"max-width": "max-inline-size",
|
|
6
|
+
"min-height": "min-block-size",
|
|
7
|
+
"min-width": "min-inline-size",
|
|
8
|
+
"top": "inset-block-start",
|
|
9
|
+
"right": "inset-inline-end",
|
|
10
|
+
"bottom": "inset-block-end",
|
|
11
|
+
"left": "inset-inline-start",
|
|
12
|
+
"horizontal": "inset-block",
|
|
13
|
+
"vertical": "inset-inline",
|
|
14
|
+
"margin-left": "margin-inline-start",
|
|
15
|
+
"margin-right": "margin-inline-end",
|
|
16
|
+
"margin-top": "margin-block-start",
|
|
17
|
+
"margin-bottom": "margin-block-end",
|
|
18
|
+
"margin-horizontal": "margin-inline",
|
|
19
|
+
"margin-vertical": "margin-block",
|
|
20
|
+
"padding-left": "padding-inline-start",
|
|
21
|
+
"padding-right": "padding-inline-end",
|
|
22
|
+
"padding-top": "padding-block-start",
|
|
23
|
+
"padding-bottom": "padding-block-end",
|
|
24
|
+
"padding-horizontal": "padding-inline",
|
|
25
|
+
"padding-vertical": "padding-block",
|
|
26
|
+
"overflow-x": "overflow-inline",
|
|
27
|
+
"overflow-y": "overflow-block",
|
|
28
|
+
"border-horizontal": "border-inline",
|
|
29
|
+
"border-horizontal-color": "border-inline-color",
|
|
30
|
+
"border-horizontal-width": "border-inline-width",
|
|
31
|
+
"border-horizontal-style": "border-inline-style",
|
|
32
|
+
"border-vertical": "border-block",
|
|
33
|
+
"border-vertical-color": "border-block-color",
|
|
34
|
+
"border-vertical-width": "border-block-width",
|
|
35
|
+
"border-vertical-style": "border-block-style",
|
|
36
|
+
"border-bottom": "border-block-end",
|
|
37
|
+
"border-bottom-color": "border-block-end-color",
|
|
38
|
+
"border-bottom-style": "border-block-end-style",
|
|
39
|
+
"border-bottom-width": "border-block-end-width",
|
|
40
|
+
"border-top": "border-block-start",
|
|
41
|
+
"border-top-color": "border-block-start-color",
|
|
42
|
+
"border-top-style": "border-block-start-style",
|
|
43
|
+
"border-top-width": "border-block-start-width",
|
|
44
|
+
"border-right": "border-inline-end",
|
|
45
|
+
"border-right-color": "border-inline-end-color",
|
|
46
|
+
"border-right-style": "border-inline-end-style",
|
|
47
|
+
"border-right-width": "border-inline-end-width",
|
|
48
|
+
"border-left": "border-inline-start",
|
|
49
|
+
"border-left-color": "border-inline-start-color",
|
|
50
|
+
"border-left-style": "border-inline-start-style",
|
|
51
|
+
"border-left-width": "border-inline-start-width",
|
|
52
|
+
"border-top-left-radius": "border-start-start-radius",
|
|
53
|
+
"border-top-right-radius": "border-start-end-radius",
|
|
54
|
+
"border-bottom-left-radius": "border-end-start-radius",
|
|
55
|
+
"border-bottom-right-radius": "border-end-end-radius"
|
|
56
|
+
}
|