@semcore/errors 4.29.0 → 4.30.0-prerelease.1
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/CHANGELOG.md +3 -3
- package/lib/cjs/Error.js +10 -9
- package/lib/cjs/Error.js.map +1 -1
- package/lib/es6/Error.js +10 -10
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.
|
|
5
|
+
## [4.30.0] - 2024-05-16
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
- Version minor update due to children dependencies update (`@semcore/button` [5.
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/button` [5.25.0 ~> 5.26.0], `@semcore/utils` [4.25.0 ~> 4.26.1], `@semcore/core` [2.22.0 ~> 2.23.0]).
|
|
10
10
|
|
|
11
|
-
## [4.
|
|
11
|
+
## [4.29.0] - 2024-05-16
|
|
12
12
|
|
|
13
13
|
### Changed
|
|
14
14
|
|
package/lib/cjs/Error.js
CHANGED
|
@@ -12,20 +12,21 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var _index = require("@semcore/utils/lib/core/index");
|
|
15
16
|
var _core = _interopRequireWildcard(require("@semcore/core"));
|
|
16
17
|
var _react = _interopRequireDefault(require("react"));
|
|
17
18
|
var _flexBox = require("@semcore/flex-box");
|
|
18
19
|
var _illustration = require("@semcore/illustration");
|
|
19
20
|
/*__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
20
|
-
var style = ( /*__reshadow_css_start__*/
|
|
21
|
-
"__SInner": "
|
|
22
|
-
"__SImageWrapper": "
|
|
23
|
-
"__SWrapper": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"__SDescription": "
|
|
26
|
-
"__SError": "
|
|
27
|
-
"__SControls": "
|
|
28
|
-
"__SImage": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_c6qcq_gg_ .___SControls_c6qcq_gg_{display:flex;align-items:center}.___SError_c6qcq_gg_ .___SControls_c6qcq_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SInner_c6qcq_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_c6qcq_gg_,.___SImage_c6qcq_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_c6qcq_gg_,.___SImage_c6qcq_gg_{width:200px;height:200px}}.___SImageWrapper_c6qcq_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_c6qcq_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_c6qcq_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SDescription_c6qcq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "c6qcq_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SInner": "___SInner_c6qcq_gg_",
|
|
23
|
+
"__SImageWrapper": "___SImageWrapper_c6qcq_gg_",
|
|
24
|
+
"__SWrapper": "___SWrapper_c6qcq_gg_",
|
|
25
|
+
"__STitle": "___STitle_c6qcq_gg_",
|
|
26
|
+
"__SDescription": "___SDescription_c6qcq_gg_",
|
|
27
|
+
"__SError": "___SError_c6qcq_gg_",
|
|
28
|
+
"__SControls": "___SControls_c6qcq_gg_",
|
|
29
|
+
"__SImage": "___SImage_c6qcq_gg_"
|
|
29
30
|
});
|
|
30
31
|
var getIconPath = function getIconPath(name) {
|
|
31
32
|
return (0, _illustration.getIllustrationPath)(name);
|
package/lib/cjs/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_illustration","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref5","SError","Flex","_this$asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","_default","createComponent"],"sources":["../../src/Error.jsx"],"sourcesContent":["import React from 'react';\nimport { Box, Flex } from '@semcore/flex-box';\nimport createComponent, { Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex} role='alert'>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? (\n <SImage src={icon} alt='error image' aria-hidden='true' />\n ) : (\n icon\n )}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Error.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_illustration","style","_index","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref5","SError","Flex","_this$asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","_default","createComponent"],"sources":["../../src/Error.jsx"],"sourcesContent":["import React from 'react';\nimport { Box, Flex } from '@semcore/flex-box';\nimport createComponent, { Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex} role='alert'>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? (\n <SImage src={icon} alt='error image' aria-hidden='true' />\n ) : (\n icon\n )}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":";;;;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAA4D;AAAA,IAAAK,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGrD,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAAI;EAAA,OAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAAA;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAAA,IAEzDI,SAAS,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,SAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,SAAA;EAAA,SAAAA,UAAA;IAAA,IAAAK,gBAAA,mBAAAL,SAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,SAAA;IAAAS,GAAA;IAAAC,KAAA,E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error.js
CHANGED
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
import { sstyled as _sstyled } from "@semcore/core";
|
|
7
|
+
import { sstyled as _sstyled } from "@semcore/utils/lib/core/index";
|
|
8
8
|
import { assignProps as _assignProps4 } from "@semcore/core";
|
|
9
9
|
import { assignProps as _assignProps3 } from "@semcore/core";
|
|
10
10
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
@@ -14,15 +14,15 @@ import { Box, Flex } from '@semcore/flex-box';
|
|
|
14
14
|
import createComponent, { Root, Component, sstyled } from '@semcore/core';
|
|
15
15
|
import { getIllustrationPath } from '@semcore/illustration';
|
|
16
16
|
/*__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SInner": "
|
|
19
|
-
"__SImageWrapper": "
|
|
20
|
-
"__SWrapper": "
|
|
21
|
-
"__STitle": "
|
|
22
|
-
"__SDescription": "
|
|
23
|
-
"__SError": "
|
|
24
|
-
"__SControls": "
|
|
25
|
-
"__SImage": "
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_c6qcq_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_c6qcq_gg_ .___SControls_c6qcq_gg_{display:flex;align-items:center}.___SError_c6qcq_gg_ .___SControls_c6qcq_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SInner_c6qcq_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_c6qcq_gg_,.___SImage_c6qcq_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_c6qcq_gg_,.___SImage_c6qcq_gg_{width:200px;height:200px}}.___SImageWrapper_c6qcq_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_c6qcq_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_c6qcq_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SDescription_c6qcq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "c6qcq_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SInner": "___SInner_c6qcq_gg_",
|
|
19
|
+
"__SImageWrapper": "___SImageWrapper_c6qcq_gg_",
|
|
20
|
+
"__SWrapper": "___SWrapper_c6qcq_gg_",
|
|
21
|
+
"__STitle": "___STitle_c6qcq_gg_",
|
|
22
|
+
"__SDescription": "___SDescription_c6qcq_gg_",
|
|
23
|
+
"__SError": "___SError_c6qcq_gg_",
|
|
24
|
+
"__SControls": "___SControls_c6qcq_gg_",
|
|
25
|
+
"__SImage": "___SImage_c6qcq_gg_"
|
|
26
26
|
});
|
|
27
27
|
export var getIconPath = function getIconPath(name) {
|
|
28
28
|
return getIllustrationPath(name);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.30.0-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/button": "5.
|
|
13
|
-
"@semcore/flex-box": "5.
|
|
14
|
-
"@semcore/format-text": "4.
|
|
15
|
-
"@semcore/illustration": "2.
|
|
16
|
-
"@semcore/typography": "5.
|
|
17
|
-
"@semcore/utils": "4.
|
|
12
|
+
"@semcore/button": "5.26.0-prerelease.1",
|
|
13
|
+
"@semcore/flex-box": "5.25.0-prerelease.1",
|
|
14
|
+
"@semcore/format-text": "4.25.0-prerelease.1",
|
|
15
|
+
"@semcore/illustration": "2.25.0-prerelease.1",
|
|
16
|
+
"@semcore/typography": "5.33.0-prerelease.1",
|
|
17
|
+
"@semcore/utils": "4.26.1-prerelease.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@semcore/core": "^2.
|
|
20
|
+
"@semcore/core": "^2.23.0-prerelease.1",
|
|
21
21
|
"react": "16.8 - 18",
|
|
22
22
|
"react-dom": "16.8 - 18"
|
|
23
23
|
},
|