@semcore/errors 3.9.17 → 3.9.19

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 CHANGED
@@ -2,11 +2,21 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [3.9.19] - 2023-05-03
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/button` [4.3.21 ~> 4.3.22], `@semcore/utils` [3.50.4 ~> 3.50.5]).
10
+
11
+ ## [3.9.18] - 2023-04-26
12
+
5
13
  ## [3.9.17] - 2023-04-24
6
14
 
15
+ ## [3.9.16] - 2023-04-17
16
+
7
17
  ### Changed
8
18
 
9
- - Version patch update due to children dependencies update (`@semcore/button` [4.3.20 ~> 4.3.21], `@semcore/utils` [3.50.3 ~> 3.50.4]).
19
+ - Version patch update due to children dependencies update (`@semcore/button` [4.3.19 ~> 4.3.20], `@semcore/utils` [3.50.0 ~> 3.50.3]).
10
20
 
11
21
  ## [3.9.8] - 2023-03-16
12
22
 
package/lib/cjs/Error.js CHANGED
@@ -17,15 +17,15 @@ var _react = _interopRequireDefault(require("react"));
17
17
  var _flexBox = require("@semcore/flex-box");
18
18
  var _illustration = require("@semcore/illustration");
19
19
  /*__reshadow-styles__:"./style/errors.shadow.css"*/
20
- var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SError_13v4p_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_13v4p_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_13v4p_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SInner_13v4p_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_13v4p_gg_,.___SImage_13v4p_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_13v4p_gg_,.___SImage_13v4p_gg_{width:200px;height:200px}}.___SImageWrapper_13v4p_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_13v4p_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_13v4p_gg_{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_13v4p_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}.___SControls_13v4p_gg_{display:flex;align-items:center}.___SControls_13v4p_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}" /*__inner_css_end__*/, "13v4p_gg_") /*__reshadow_css_end__*/, {
21
- "__SError": "___SError_13v4p_gg_",
22
- "__SInner": "___SInner_13v4p_gg_",
23
- "__SImageWrapper": "___SImageWrapper_13v4p_gg_",
24
- "__SImage": "___SImage_13v4p_gg_",
25
- "__SWrapper": "___SWrapper_13v4p_gg_",
26
- "__STitle": "___STitle_13v4p_gg_",
27
- "__SDescription": "___SDescription_13v4p_gg_",
28
- "__SControls": "___SControls_13v4p_gg_"
20
+ var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SError_1nheo_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1nheo_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1nheo_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SInner_1nheo_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_1nheo_gg_,.___SImage_1nheo_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_1nheo_gg_,.___SImage_1nheo_gg_{width:200px;height:200px}}.___SImageWrapper_1nheo_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_1nheo_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_1nheo_gg_{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_1nheo_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}.___SControls_1nheo_gg_{display:flex;align-items:center}.___SControls_1nheo_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}" /*__inner_css_end__*/, "1nheo_gg_") /*__reshadow_css_end__*/, {
21
+ "__SError": "___SError_1nheo_gg_",
22
+ "__SInner": "___SInner_1nheo_gg_",
23
+ "__SImageWrapper": "___SImageWrapper_1nheo_gg_",
24
+ "__SImage": "___SImage_1nheo_gg_",
25
+ "__SWrapper": "___SWrapper_1nheo_gg_",
26
+ "__STitle": "___STitle_1nheo_gg_",
27
+ "__SDescription": "___SDescription_1nheo_gg_",
28
+ "__SControls": "___SControls_1nheo_gg_"
29
29
  });
30
30
  var getIconPath = function getIconPath(name) {
31
31
  return (0, _illustration.getIllustrationPath)(name);
@@ -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} 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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AAA0C,WAAA;IAAA,OAAkB;EAAG,GAAAW,KAAA,IAAG;AACpE;AAEA,SAASG,QAAQA,CAACV,KAAK,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EACvB,IAAMC,SAAS,GACiCR,YAD1B;EACtB,OAAAO,KAAA,GAAO,IAAAlD,aAAO,EAACsC,KAAK,CAACb,MAAM,CAAC,eAAC9B,MAAA,YAAAoC,aAAA,CAACoB,SAAS,EAAAD,KAAA,CAAAlB,EAAA,kBAAAC,cAAA,qBAAAzC,KAAA,CAAA0C,WAAA,MAAAe,KAAA,IAAgB;AACzD;AAAC,IAAAG,QAAA,GAEc,IAAAC,gBAAe,EAAC/C,SAAS,EAAE;EACxC+B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA,WAAW;EACXI,QAAQ,EAARA;AACF,CAAC,CAAC;AAAA3C,OAAA,cAAA+C,QAAA"}
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} 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,+BAAAP,KAAA,CAAAQ,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,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"}
package/lib/es6/Error.js CHANGED
@@ -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__*/".___SError_13v4p_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_13v4p_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_13v4p_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SInner_13v4p_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_13v4p_gg_,.___SImage_13v4p_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_13v4p_gg_,.___SImage_13v4p_gg_{width:200px;height:200px}}.___SImageWrapper_13v4p_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_13v4p_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_13v4p_gg_{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_13v4p_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}.___SControls_13v4p_gg_{display:flex;align-items:center}.___SControls_13v4p_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}" /*__inner_css_end__*/, "13v4p_gg_") /*__reshadow_css_end__*/, {
18
- "__SError": "___SError_13v4p_gg_",
19
- "__SInner": "___SInner_13v4p_gg_",
20
- "__SImageWrapper": "___SImageWrapper_13v4p_gg_",
21
- "__SImage": "___SImage_13v4p_gg_",
22
- "__SWrapper": "___SWrapper_13v4p_gg_",
23
- "__STitle": "___STitle_13v4p_gg_",
24
- "__SDescription": "___SDescription_13v4p_gg_",
25
- "__SControls": "___SControls_13v4p_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SError_1nheo_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1nheo_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1nheo_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SInner_1nheo_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImageWrapper_1nheo_gg_,.___SImage_1nheo_gg_{width:260px;height:260px}@media (max-width:320px){.___SImageWrapper_1nheo_gg_,.___SImage_1nheo_gg_{width:200px;height:200px}}.___SImageWrapper_1nheo_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SWrapper_1nheo_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___STitle_1nheo_gg_{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_1nheo_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}.___SControls_1nheo_gg_{display:flex;align-items:center}.___SControls_1nheo_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}" /*__inner_css_end__*/, "1nheo_gg_") /*__reshadow_css_end__*/, {
18
+ "__SError": "___SError_1nheo_gg_",
19
+ "__SInner": "___SInner_1nheo_gg_",
20
+ "__SImageWrapper": "___SImageWrapper_1nheo_gg_",
21
+ "__SImage": "___SImage_1nheo_gg_",
22
+ "__SWrapper": "___SWrapper_1nheo_gg_",
23
+ "__STitle": "___STitle_1nheo_gg_",
24
+ "__SDescription": "___SDescription_1nheo_gg_",
25
+ "__SControls": "___SControls_1nheo_gg_"
26
26
  });
27
27
  export var getIconPath = function getIconPath(name) {
28
28
  return getIllustrationPath(name);
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","names":["React","Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","style","_sstyled","insert","getIconPath","name","RootError","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref5","SError","_this$asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_objectSpread","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4"],"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} 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":";;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,mBAAmB;AAC7C,OAAOC,eAAe,IAAIC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAG5D,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAAI;EAAA,OAAKL,mBAAmB,CAACK,IAAI,CAAC;AAAA;AAAC,IAEzDC,SAAS,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,SAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,SAAA;EAAA,SAAAA,UAAA;IAAAK,eAAA,OAAAL,SAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,SAAA;IAAAS,GAAA;IAAAC,KAAA,EAIb,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACP,IAAMC,MAAM,GAOM1B,IAPC;MACnB,IAAA2B,aAAA,GAAmC,IAAI,CAACH,OAAO;QAAvCI,QAAQ,GAAAD,aAAA,CAARC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AqC,aAAA,CAACU,MAAM,EAAAD,KAAA,CAAAR,EAAA,WAAAC,aAAA,KAAAS,aAAA;IAAA,OAAkB;EAAI,GAAAJ,KAAA,IAAG;AAC/D;AAEA,SAASK,WAAWA,CAACN,KAAK,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC1B,IAAMC,YAAY,GACiCnD,GAD1B;EACzB,OAAAkD,KAAA,GAAO7C,OAAO,CAACqC,KAAK,CAACZ,MAAM,CAAC,eAAC/B,KAAA,CAAAqC,aAAA,CAACe,YAAY,EAAAD,KAAA,CAAAb,EAAA,iBAAAC,aAAA,KAAAc,aAAA;IAAA,OAAkB;EAAG,GAAAH,KAAA,IAAG;AACpE;AAEA,SAASI,QAAQA,CAACX,KAAK,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EACvB,IAAMC,SAAS,GACiCxD,GAD1B;EACtB,OAAAuD,KAAA,GAAOlD,OAAO,CAACqC,KAAK,CAACZ,MAAM,CAAC,eAAC/B,KAAA,CAAAqC,aAAA,CAACoB,SAAS,EAAAD,KAAA,CAAAlB,EAAA,cAAAC,aAAA,KAAAmB,aAAA,KAAAH,KAAA,IAAgB;AACzD;AAEA,eAAepD,eAAe,CAACU,SAAS,EAAE;EACxC6B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA,WAAW;EACXK,QAAQ,EAARA;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"Error.js","names":["React","Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","style","_sstyled","insert","getIconPath","name","RootError","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref5","SError","_this$asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_objectSpread","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4"],"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} 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":";;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,mBAAmB;AAC7C,OAAOC,eAAe,IAAIC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAG5D,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAAI;EAAA,OAAKL,mBAAmB,CAACK,IAAI,CAAC;AAAA;AAAC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,SAAS,EAAE;EACxC6B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA,WAAW;EACXK,QAAQ,EAARA;AACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/errors",
3
3
  "description": "Semrush Errors Component",
4
- "version": "3.9.17",
4
+ "version": "3.9.19",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "@semcore/button": "^4",
13
13
  "@semcore/flex-box": "^4",
14
14
  "@semcore/format-text": "^3.0.0",
15
- "@semcore/illustration": "1.4.15",
15
+ "@semcore/illustration": "1.4.16",
16
16
  "@semcore/typography": "^4",
17
17
  "@semcore/utils": "^3.27"
18
18
  },