@commercetools-uikit/accessible-hidden 12.2.2 → 12.2.9
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/README.md +0 -1
- package/dist/commercetools-uikit-accessible-hidden.cjs.dev.js +29 -7
- package/dist/commercetools-uikit-accessible-hidden.cjs.prod.js +30 -6
- package/dist/commercetools-uikit-accessible-hidden.esm.js +19 -5
- package/dist/declarations/src/accessible-hidden.d.ts +9 -9
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/version.d.ts +2 -2
- package/package.json +3 -7
package/README.md
CHANGED
|
@@ -2,15 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
14
|
var _pt = require('prop-types');
|
|
7
15
|
require('react');
|
|
8
|
-
|
|
16
|
+
require('@emotion/react');
|
|
17
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
9
18
|
|
|
10
19
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
11
20
|
|
|
21
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
22
|
+
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
23
|
+
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
24
|
+
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
25
|
+
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
26
|
+
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
27
|
+
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
28
|
+
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
12
29
|
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
13
30
|
|
|
31
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
32
|
+
|
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
34
|
+
|
|
14
35
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
15
36
|
|
|
16
37
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -19,23 +40,24 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19
40
|
} : {
|
|
20
41
|
name: "a70vxx-AccessibleHidden",
|
|
21
42
|
styles: "clip:rect(0 0 0 0);width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden;position:absolute;white-space:nowrap;label:AccessibleHidden;",
|
|
43
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtaGlkZGVuLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTWSIsImZpbGUiOiJhY2Nlc3NpYmxlLWhpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbnR5cGUgUHJvcHMgPSB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGU7XG59O1xuXG5jb25zdCBBY2Nlc3NpYmxlSGlkZGVuID0gKHByb3BzOiBQcm9wcykgPT4gKFxuICA8ZGl2XG4gICAgY3NzPXtjc3NgXG4gICAgICBjbGlwOiByZWN0KDAgMCAwIDApO1xuICAgICAgd2lkdGg6IDFweDtcbiAgICAgIGhlaWdodDogMXB4O1xuICAgICAgbWFyZ2luOiAtMXB4O1xuICAgICAgYm9yZGVyOiAwO1xuICAgICAgcGFkZGluZzogMDtcbiAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgIGB9XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcbkFjY2Vzc2libGVIaWRkZW4uZGlzcGxheU5hbWUgPSAnQWNjZXNzaWJsZUhpZGRlbic7XG5cbmV4cG9ydCBkZWZhdWx0IEFjY2Vzc2libGVIaWRkZW47XG4iXX0= */",
|
|
22
44
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
45
|
};
|
|
24
46
|
|
|
25
47
|
var AccessibleHidden = function AccessibleHidden(props) {
|
|
26
|
-
return
|
|
48
|
+
return jsxRuntime.jsx("div", _objectSpread({
|
|
27
49
|
css: _ref
|
|
28
50
|
}, props));
|
|
29
51
|
};
|
|
30
52
|
|
|
31
53
|
AccessibleHidden.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
32
|
-
children: _pt__default[
|
|
54
|
+
children: _pt__default["default"].node.isRequired
|
|
33
55
|
} : {};
|
|
34
56
|
AccessibleHidden.displayName = 'AccessibleHidden';
|
|
35
57
|
var AccessibleHidden$1 = AccessibleHidden;
|
|
36
58
|
|
|
37
|
-
// NOTE: This string will be replaced
|
|
38
|
-
var version =
|
|
59
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
60
|
+
var version = "12.2.9";
|
|
39
61
|
|
|
40
|
-
exports[
|
|
62
|
+
exports["default"] = AccessibleHidden$1;
|
|
41
63
|
exports.version = version;
|
|
@@ -2,10 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
14
|
require('prop-types');
|
|
7
15
|
require('react');
|
|
8
|
-
|
|
16
|
+
require('@emotion/react');
|
|
17
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
18
|
+
|
|
19
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
20
|
+
|
|
21
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
22
|
+
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
23
|
+
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
24
|
+
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
25
|
+
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
26
|
+
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
27
|
+
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
28
|
+
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
29
|
+
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
|
|
32
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
9
33
|
|
|
10
34
|
var _ref = {
|
|
11
35
|
name: "yeifab",
|
|
@@ -13,7 +37,7 @@ var _ref = {
|
|
|
13
37
|
} ;
|
|
14
38
|
|
|
15
39
|
var AccessibleHidden = function AccessibleHidden(props) {
|
|
16
|
-
return
|
|
40
|
+
return jsxRuntime.jsx("div", _objectSpread({
|
|
17
41
|
css: _ref
|
|
18
42
|
}, props));
|
|
19
43
|
};
|
|
@@ -22,8 +46,8 @@ AccessibleHidden.propTypes = {};
|
|
|
22
46
|
AccessibleHidden.displayName = 'AccessibleHidden';
|
|
23
47
|
var AccessibleHidden$1 = AccessibleHidden;
|
|
24
48
|
|
|
25
|
-
// NOTE: This string will be replaced
|
|
26
|
-
var version =
|
|
49
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
50
|
+
var version = "12.2.9";
|
|
27
51
|
|
|
28
|
-
exports[
|
|
52
|
+
exports["default"] = AccessibleHidden$1;
|
|
29
53
|
exports.version = version;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
2
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
3
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
2
10
|
import _pt from 'prop-types';
|
|
3
11
|
import 'react';
|
|
4
|
-
import
|
|
12
|
+
import '@emotion/react';
|
|
13
|
+
import { jsx } from '@emotion/react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5
18
|
|
|
6
19
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7
20
|
|
|
@@ -11,11 +24,12 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
11
24
|
} : {
|
|
12
25
|
name: "a70vxx-AccessibleHidden",
|
|
13
26
|
styles: "clip:rect(0 0 0 0);width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden;position:absolute;white-space:nowrap;label:AccessibleHidden;",
|
|
27
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtaGlkZGVuLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTWSIsImZpbGUiOiJhY2Nlc3NpYmxlLWhpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbnR5cGUgUHJvcHMgPSB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGU7XG59O1xuXG5jb25zdCBBY2Nlc3NpYmxlSGlkZGVuID0gKHByb3BzOiBQcm9wcykgPT4gKFxuICA8ZGl2XG4gICAgY3NzPXtjc3NgXG4gICAgICBjbGlwOiByZWN0KDAgMCAwIDApO1xuICAgICAgd2lkdGg6IDFweDtcbiAgICAgIGhlaWdodDogMXB4O1xuICAgICAgbWFyZ2luOiAtMXB4O1xuICAgICAgYm9yZGVyOiAwO1xuICAgICAgcGFkZGluZzogMDtcbiAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgIGB9XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcbkFjY2Vzc2libGVIaWRkZW4uZGlzcGxheU5hbWUgPSAnQWNjZXNzaWJsZUhpZGRlbic7XG5cbmV4cG9ydCBkZWZhdWx0IEFjY2Vzc2libGVIaWRkZW47XG4iXX0= */",
|
|
14
28
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15
29
|
};
|
|
16
30
|
|
|
17
31
|
var AccessibleHidden = function AccessibleHidden(props) {
|
|
18
|
-
return jsx("div",
|
|
32
|
+
return jsx("div", _objectSpread({
|
|
19
33
|
css: _ref
|
|
20
34
|
}, props));
|
|
21
35
|
};
|
|
@@ -26,7 +40,7 @@ AccessibleHidden.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
26
40
|
AccessibleHidden.displayName = 'AccessibleHidden';
|
|
27
41
|
var AccessibleHidden$1 = AccessibleHidden;
|
|
28
42
|
|
|
29
|
-
// NOTE: This string will be replaced
|
|
30
|
-
var version =
|
|
43
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
44
|
+
var version = "12.2.9";
|
|
31
45
|
|
|
32
46
|
export { AccessibleHidden$1 as default, version };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
declare const AccessibleHidden: {
|
|
6
|
-
(props: Props): JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default AccessibleHidden;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const AccessibleHidden: {
|
|
6
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default AccessibleHidden;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './accessible-hidden';
|
|
2
|
-
export { default as version } from './version';
|
|
1
|
+
export { default } from './accessible-hidden';
|
|
2
|
+
export { default as version } from './version';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: "__@UI_KIT_PACKAGE/VERSION_OF_RELEASE__";
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/accessible-hidden",
|
|
3
3
|
"description": "Component to hide content offscreen while keeping it accessible. This is also helpful for testing purposes.",
|
|
4
|
-
"version": "12.2.
|
|
4
|
+
"version": "12.2.9",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
12
|
"keywords": ["javascript", "design system", "react", "uikit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
@@ -19,12 +18,9 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-accessible-hidden.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-accessible-hidden.esm.js",
|
|
21
20
|
"files": ["dist"],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepare": "../../../scripts/version.js replace"
|
|
24
|
-
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "7.
|
|
27
|
-
"@babel/runtime-corejs3": "7.
|
|
22
|
+
"@babel/runtime": "7.16.5",
|
|
23
|
+
"@babel/runtime-corejs3": "7.16.5",
|
|
28
24
|
"@emotion/react": "^11.4.0",
|
|
29
25
|
"prop-types": "15.7.2"
|
|
30
26
|
},
|