@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.
@@ -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
+ }
@@ -134,7 +134,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
134
134
 
135
135
  (0, _classCallCheck2.default)(this, EuiIconClass);
136
136
  _this = _super.call(this, props);
137
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted", true);
137
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted", false);
138
138
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "loadIconComponent", function (iconType) {
139
139
  if (iconComponentCache.hasOwnProperty(iconType)) {
140
140
  // exists in cache
@@ -191,6 +191,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
191
191
  (0, _createClass2.default)(EuiIconClass, [{
192
192
  key: "componentDidMount",
193
193
  value: function componentDidMount() {
194
+ this.isMounted = true;
194
195
  var type = this.props.type;
195
196
 
196
197
  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
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "65.0.1",
4
+ "version": "65.0.2",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -104,6 +104,13 @@
104
104
  max-width: 400px !important;
105
105
  max-height: 400px !important;
106
106
  z-index: $euiZDataGridCellPopover !important;
107
+ // Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
108
+ // (see https://github.com/elastic/eui/issues/6151)
109
+ // Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
110
+ // since we don't use the popover arrow in any case for cell popovers
111
+ filter: none;
112
+ // sass-lint:disable-block mixins-before-declarations
113
+ @include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
107
114
  }
108
115
 
109
116
  .euiDataGridRowCell__expandFlex {
@@ -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
+ }
@@ -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
+ }