@semcore/errors 3.3.4 → 3.3.6

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,6 +2,18 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [3.3.6] - 2022-10-03
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/illustration` [1.1.3 ~> 1.1.4]).
10
+
11
+ ## [3.3.5] - 2022-09-27
12
+
13
+ ### Changed
14
+
15
+ - Moved svg illustrations to `@semcore/illustration` component.
16
+
5
17
  ## [3.3.4] - 2022-09-20
6
18
 
7
19
  ### Changed
package/lib/cjs/Error.js CHANGED
@@ -27,6 +27,8 @@ var _react = _interopRequireDefault(require("react"));
27
27
 
28
28
  var _flexBox = require("@semcore/flex-box");
29
29
 
30
+ var _illustration = require("@semcore/illustration");
31
+
30
32
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
33
 
32
34
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -44,25 +46,23 @@ var style = (
44
46
  /*__reshadow_css_start__*/
45
47
  _core.sstyled.insert(
46
48
  /*__inner_css_start__*/
47
- ".___SError_19jqz_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_19jqz_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_19jqz_gg_,.___SImageWrapper_19jqz_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_19jqz_gg_,.___SImageWrapper_19jqz_gg_{width:200px;height:200px}}.___SImageWrapper_19jqz_gg_{margin-right:40px}.___SWrapper_19jqz_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_19jqz_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_19jqz_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_19jqz_gg_{display:flex;align-items:center}.___SControls_19jqz_gg_>:not(:last-child){margin-right:12px}"
49
+ ".___SError_715jy_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_715jy_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_715jy_gg_,.___SImageWrapper_715jy_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_715jy_gg_,.___SImageWrapper_715jy_gg_{width:200px;height:200px}}.___SImageWrapper_715jy_gg_{margin-right:40px}.___SWrapper_715jy_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_715jy_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_715jy_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_715jy_gg_{display:flex;align-items:center}.___SControls_715jy_gg_>:not(:last-child){margin-right:12px}"
48
50
  /*__inner_css_end__*/
49
- , "19jqz_gg_")
51
+ , "715jy_gg_")
50
52
  /*__reshadow_css_end__*/
51
53
  , {
52
- "__SError": "___SError_19jqz_gg_",
53
- "__SInner": "___SInner_19jqz_gg_",
54
- "__SImage": "___SImage_19jqz_gg_",
55
- "__SImageWrapper": "___SImageWrapper_19jqz_gg_",
56
- "__SWrapper": "___SWrapper_19jqz_gg_",
57
- "__STitle": "___STitle_19jqz_gg_",
58
- "__SDescription": "___SDescription_19jqz_gg_",
59
- "__SControls": "___SControls_19jqz_gg_"
54
+ "__SError": "___SError_715jy_gg_",
55
+ "__SInner": "___SInner_715jy_gg_",
56
+ "__SImage": "___SImage_715jy_gg_",
57
+ "__SImageWrapper": "___SImageWrapper_715jy_gg_",
58
+ "__SWrapper": "___SWrapper_715jy_gg_",
59
+ "__STitle": "___STitle_715jy_gg_",
60
+ "__SDescription": "___SDescription_715jy_gg_",
61
+ "__SControls": "___SControls_715jy_gg_"
60
62
  });
61
- var testEnv = process.env.NODE_ENV === 'test';
62
- var version = testEnv ? '3.0.0' : "3.3.4";
63
63
 
64
64
  var getIconPath = function getIconPath(name) {
65
- return "https://static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
65
+ return (0, _illustration.getIllustrationPath)(name);
66
66
  };
67
67
 
68
68
  exports.getIconPath = getIconPath;
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","names":["testEnv","process","env","NODE_ENV","version","getIconPath","name","RootError","SError","Flex","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","sstyled","Component","style","Title","props","STitle","Box","Description","SDescription","Controls","SControls","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 style from './style/errors.shadow.css';\n\nconst testEnv = process.env.NODE_ENV === 'test';\n\nconst version = testEnv ? '3.0.0' : preval`module.exports = require('../package.json').version`;\n\nexport const getIconPath = (name) =>\n `https://static.semrush.com/ui-kit/errors/${version}/${name}.svg`;\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;;AAFA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,OAAO,GAAGC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,MAAzC;AAEA,IAAMC,OAAO,GAAGJ,OAAO,GAAG,OAAH,UAAvB;;AAEO,IAAMK,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,0DACmBF,OADnB,cAC8BE,IAD9B;AAAA,CAApB;;;;IAGDC,S;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMC,aAPlB;MACA,oBAAmC,KAAKC,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAO,IAAAC,aAAA,EAAQN,MAAR,CAAP,eACE,gCAAC,MAAD;QAAA,QAA2B;MAA3B,yBACE,gCAAC,MAAD,0BACGC,IAAI,iBACH,gCAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBACC,gCAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB,aAAvB;QAAA,eAAiD;MAAjD,GADD,GAGCA,IAJJ,CAFJ,eAUE,gCAAC,QAAD,yCACE,gCAAC,QAAD,2BADF,CAVF,CADF,CADF;IAkBD;;;EA7BqBM,e;;iCAAlBZ,S,iBACiB,O;iCADjBA,S,WAEWa,K;;AA8BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiCC,YAD7C;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASa,WAAT,CAAqBH,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMI,YAAY,GACiCF,YADnD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASe,QAAT,CAAkBL,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMM,SAAS,GACiCJ,YADhD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,SAAD,8EAA7B;AACD;;eAEc,IAAAiB,gBAAA,EAAgBtB,SAAhB,EAA2B;EACxCc,KAAK,EAALA,KADwC;EAExCI,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAA3B,C"}
1
+ {"version":3,"file":"Error.js","names":["getIconPath","name","getIllustrationPath","RootError","SError","Flex","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","sstyled","Component","style","Title","props","STitle","Box","Description","SDescription","Controls","SControls","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;;AAFA;;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAU,IAAAC,iCAAA,EAAoBD,IAApB,CAAV;AAAA,CAApB;;;;IAEDE,S;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMC,aAPlB;MACA,oBAAmC,KAAKC,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAO,IAAAC,aAAA,EAAQN,MAAR,CAAP,eACE,gCAAC,MAAD;QAAA,QAA2B;MAA3B,yBACE,gCAAC,MAAD,0BACGC,IAAI,iBACH,gCAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBACC,gCAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB,aAAvB;QAAA,eAAiD;MAAjD,GADD,GAGCA,IAJJ,CAFJ,eAUE,gCAAC,QAAD,yCACE,gCAAC,QAAD,2BADF,CAVF,CADF,CADF;IAkBD;;;EA7BqBM,e;;iCAAlBZ,S,iBACiB,O;iCADjBA,S,WAEWa,K;;AA8BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiCC,YAD7C;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASa,WAAT,CAAqBH,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMI,YAAY,GACiCF,YADnD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASe,QAAT,CAAkBL,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMM,SAAS,GACiCJ,YADhD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,SAAD,8EAA7B;AACD;;eAEc,IAAAiB,gBAAA,EAAgBtB,SAAhB,EAA2B;EACxCc,KAAK,EAALA,KADwC;EAExCI,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAA3B,C"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = Error;
8
+ exports["default"] = _default;
9
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.js","names":["Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Box, IFlexProps } from '@semcore/flex-box';\nimport { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { TIllustrationNamesErrors } from '@semcore/illustration';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\nexport interface IErrorsProps extends IFlexProps {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n}\n\nexport interface IErrorsContext {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n}\n\nexport interface IProjectNotFoundProps extends IWithI18nEnhanceProps {\n /**\n * Link to the projects\n * @default /projects\n */\n projectsLink?: string;\n contactsLink?: string;\n supportTeamLink?: string;\n}\n\nexport interface IPageNotFoundProps extends IWithI18nEnhanceProps {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\nexport interface IPageErrorProps extends IWithI18nEnhanceProps {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\nexport interface IMaintenanceProps extends IWithI18nEnhanceProps {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\nexport interface IAccessDeniedProps extends IWithI18nEnhanceProps {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\ndeclare const Error: (<T>(props: CProps<IErrorsProps & T, IErrorsContext>) => ReturnEl) & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: <T>(props: IProjectNotFoundProps & IErrorsProps & T) => ReturnEl;\ndeclare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) => ReturnEl;\ndeclare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;\ndeclare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;\ndeclare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":";;;;;;eA+EeA,K"}
package/lib/es6/Error.js CHANGED
@@ -21,30 +21,29 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
21
21
  import React from 'react';
22
22
  import { Box, Flex } from '@semcore/flex-box';
23
23
  import createComponent, { Root, Component, sstyled } from '@semcore/core';
24
+ import { getIllustrationPath } from '@semcore/illustration';
24
25
 
25
26
  /*__reshadow-styles__:"./style/errors.shadow.css"*/
26
27
  var style = (
27
28
  /*__reshadow_css_start__*/
28
29
  _sstyled.insert(
29
30
  /*__inner_css_start__*/
30
- ".___SError_19jqz_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_19jqz_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_19jqz_gg_,.___SImageWrapper_19jqz_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_19jqz_gg_,.___SImageWrapper_19jqz_gg_{width:200px;height:200px}}.___SImageWrapper_19jqz_gg_{margin-right:40px}.___SWrapper_19jqz_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_19jqz_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_19jqz_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_19jqz_gg_{display:flex;align-items:center}.___SControls_19jqz_gg_>:not(:last-child){margin-right:12px}"
31
+ ".___SError_715jy_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_715jy_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_715jy_gg_,.___SImageWrapper_715jy_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_715jy_gg_,.___SImageWrapper_715jy_gg_{width:200px;height:200px}}.___SImageWrapper_715jy_gg_{margin-right:40px}.___SWrapper_715jy_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_715jy_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_715jy_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_715jy_gg_{display:flex;align-items:center}.___SControls_715jy_gg_>:not(:last-child){margin-right:12px}"
31
32
  /*__inner_css_end__*/
32
- , "19jqz_gg_")
33
+ , "715jy_gg_")
33
34
  /*__reshadow_css_end__*/
34
35
  , {
35
- "__SError": "___SError_19jqz_gg_",
36
- "__SInner": "___SInner_19jqz_gg_",
37
- "__SImage": "___SImage_19jqz_gg_",
38
- "__SImageWrapper": "___SImageWrapper_19jqz_gg_",
39
- "__SWrapper": "___SWrapper_19jqz_gg_",
40
- "__STitle": "___STitle_19jqz_gg_",
41
- "__SDescription": "___SDescription_19jqz_gg_",
42
- "__SControls": "___SControls_19jqz_gg_"
36
+ "__SError": "___SError_715jy_gg_",
37
+ "__SInner": "___SInner_715jy_gg_",
38
+ "__SImage": "___SImage_715jy_gg_",
39
+ "__SImageWrapper": "___SImageWrapper_715jy_gg_",
40
+ "__SWrapper": "___SWrapper_715jy_gg_",
41
+ "__STitle": "___STitle_715jy_gg_",
42
+ "__SDescription": "___SDescription_715jy_gg_",
43
+ "__SControls": "___SControls_715jy_gg_"
43
44
  });
44
- var testEnv = process.env.NODE_ENV === 'test';
45
- var version = testEnv ? '3.0.0' : "3.3.4";
46
45
  export var getIconPath = function getIconPath(name) {
47
- return "https://static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
46
+ return getIllustrationPath(name);
48
47
  };
49
48
 
50
49
  var RootError = /*#__PURE__*/function (_Component) {
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","names":["React","Box","Flex","createComponent","Root","Component","sstyled","testEnv","process","env","NODE_ENV","version","getIconPath","name","RootError","SError","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","style","Title","props","STitle","Description","SDescription","Controls","SControls"],"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 style from './style/errors.shadow.css';\n\nconst testEnv = process.env.NODE_ENV === 'test';\n\nconst version = testEnv ? '3.0.0' : preval`module.exports = require('../package.json').version`;\n\nexport const getIconPath = (name) =>\n `https://static.semrush.com/ui-kit/errors/${version}/${name}.svg`;\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,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,eAAP,IAA0BC,IAA1B,EAAgCC,SAAhC,EAA2CC,OAA3C,QAA0D,eAA1D;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMC,OAAO,GAAGC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,MAAzC;AAEA,IAAMC,OAAO,GAAGJ,OAAO,GAAG,OAAH,UAAvB;AAEA,OAAO,IAAMK,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,0DACmBF,OADnB,cAC8BE,IAD9B;AAAA,CAApB;;IAGDC,S;;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMb,IAPlB;MACA,oBAAmC,KAAKc,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAOjB,OAAO,CAACY,MAAD,CAAd,eACE,oBAAC,MAAD;QAAA,QAA2B;MAA3B,yBACE,oBAAC,MAAD,0BACGC,IAAI,iBACH,oBAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBACC,oBAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB,aAAvB;QAAA,eAAiD;MAAjD,GADD,GAGCA,IAJJ,CAFJ,eAUE,oBAAC,QAAD,yCACE,oBAAC,QAAD,2BADF,CAVF,CADF,CADF;IAkBD;;;;EA7BqBd,S;;gBAAlBS,S,iBACiB,O;;gBADjBA,S,WAEWU,K;;AA8BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiC1B,GAD7C;EACA,eAAOK,OAAO,CAACoB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASU,WAAT,CAAqBF,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMG,YAAY,GACiC5B,GADnD;EACA,eAAOK,OAAO,CAACoB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASY,QAAT,CAAkBJ,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMK,SAAS,GACiC9B,GADhD;EACA,eAAOK,OAAO,CAACoB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,SAAD,qEAA7B;AACD;;AAED,eAAef,eAAe,CAACW,SAAD,EAAY;EACxCW,KAAK,EAALA,KADwC;EAExCG,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAAZ,CAA9B"}
1
+ {"version":3,"file":"Error.js","names":["React","Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","getIconPath","name","RootError","SError","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","style","Title","props","STitle","Description","SDescription","Controls","SControls"],"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,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,eAAP,IAA0BC,IAA1B,EAAgCC,SAAhC,EAA2CC,OAA3C,QAA0D,eAA1D;AACA,SAASC,mBAAT,QAAoC,uBAApC;;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAUF,mBAAmB,CAACE,IAAD,CAA7B;AAAA,CAApB;;IAEDC,S;;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMT,IAPlB;MACA,oBAAmC,KAAKU,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAOb,OAAO,CAACQ,MAAD,CAAd,eACE,oBAAC,MAAD;QAAA,QAA2B;MAA3B,yBACE,oBAAC,MAAD,0BACGC,IAAI,iBACH,oBAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBACC,oBAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB,aAAvB;QAAA,eAAiD;MAAjD,GADD,GAGCA,IAJJ,CAFJ,eAUE,oBAAC,QAAD,yCACE,oBAAC,QAAD,2BADF,CAVF,CADF,CADF;IAkBD;;;;EA7BqBV,S;;gBAAlBK,S,iBACiB,O;;gBADjBA,S,WAEWU,K;;AA8BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiCtB,GAD7C;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASU,WAAT,CAAqBF,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMG,YAAY,GACiCxB,GADnD;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASY,QAAT,CAAkBJ,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMK,SAAS,GACiC1B,GADhD;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,SAAD,qEAA7B;AACD;;AAED,eAAeX,eAAe,CAACO,SAAD,EAAY;EACxCW,KAAK,EAALA,KADwC;EAExCG,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAAZ,CAA9B"}
@@ -0,0 +1,2 @@
1
+ export default Error;
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.js","names":["Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Box, IFlexProps } from '@semcore/flex-box';\nimport { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { TIllustrationNamesErrors } from '@semcore/illustration';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\nexport interface IErrorsProps extends IFlexProps {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n}\n\nexport interface IErrorsContext {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n}\n\nexport interface IProjectNotFoundProps extends IWithI18nEnhanceProps {\n /**\n * Link to the projects\n * @default /projects\n */\n projectsLink?: string;\n contactsLink?: string;\n supportTeamLink?: string;\n}\n\nexport interface IPageNotFoundProps extends IWithI18nEnhanceProps {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\nexport interface IPageErrorProps extends IWithI18nEnhanceProps {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\nexport interface IMaintenanceProps extends IWithI18nEnhanceProps {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\nexport interface IAccessDeniedProps extends IWithI18nEnhanceProps {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n}\n\ndeclare const Error: (<T>(props: CProps<IErrorsProps & T, IErrorsContext>) => ReturnEl) & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: <T>(props: IProjectNotFoundProps & IErrorsProps & T) => ReturnEl;\ndeclare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) => ReturnEl;\ndeclare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;\ndeclare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;\ndeclare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":"AA+EA,eAAeA,KAAf"}
@@ -1,21 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Box, IFlexProps } from '@semcore/flex-box';
3
3
  import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
+ import { TIllustrationNamesErrors } from '@semcore/illustration';
4
5
  import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
6
 
6
- export type iconNamesErrors =
7
- | 'access_denied'
8
- | 'blocked'
9
- | 'confirmation'
10
- | 'connection_lost'
11
- | 'deleted_account'
12
- | 'dns'
13
- | 'maintenance'
14
- | 'no_payment'
15
- | 'page_error'
16
- | 'page_not_found'
17
- | 'project_not_found'
18
- | 'timeout';
7
+ export type iconNamesErrors = TIllustrationNamesErrors;
19
8
 
20
9
  export interface IErrorsProps extends IFlexProps {
21
10
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/errors",
3
3
  "description": "Semrush Errors Component",
4
- "version": "3.3.4",
4
+ "version": "3.3.6",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -9,16 +9,16 @@
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "scripts": {
12
- "build": "build --source=js",
13
- "test": "jest",
14
- "upload-static": "gcs-upload svg/*.svg"
12
+ "build": "pnpm semcore-builder --source=js",
13
+ "test": "jest"
15
14
  },
16
15
  "dependencies": {
17
- "@semcore/utils": "^3.27",
18
16
  "@semcore/button": "^4",
19
17
  "@semcore/flex-box": "^4",
20
18
  "@semcore/format-text": "^3.0.0",
21
- "@semcore/typography": "^4"
19
+ "@semcore/illustration": "1.1.4",
20
+ "@semcore/typography": "^4",
21
+ "@semcore/utils": "^3.27"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@semcore/core": "^1.11",
@@ -33,6 +33,8 @@
33
33
  "directory": "semcore/errors"
34
34
  },
35
35
  "devDependencies": {
36
- "@semcore/jest-preset-ui": "1.0.0"
36
+ "@types/react": "16.8 - 17",
37
+ "@semcore/jest-preset-ui": "1.0.0",
38
+ "@types/node": "^17.0.45"
37
39
  }
38
40
  }
@@ -1,92 +0,0 @@
1
- import React from 'react';
2
- import { Box, IFlexProps } from '@semcore/flex-box';
3
- import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
- import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
-
6
- export type iconNamesErrors =
7
- | 'access_denied'
8
- | 'blocked'
9
- | 'confirmation'
10
- | 'connection_lost'
11
- | 'deleted_account'
12
- | 'dns'
13
- | 'maintenance'
14
- | 'no_payment'
15
- | 'page_error'
16
- | 'page_not_found'
17
- | 'project_not_found'
18
- | 'timeout';
19
-
20
- export interface IErrorsProps extends IFlexProps {
21
- /**
22
- * Error icon
23
- */
24
- icon?: string | React.ReactNode;
25
- }
26
-
27
- export interface IErrorsContext {
28
- getTextProps: PropGetterFn;
29
- getDescriptionProps: PropGetterFn;
30
- getControlsProps: PropGetterFn;
31
- }
32
-
33
- export interface IProjectNotFoundProps extends IWithI18nEnhanceProps {
34
- /**
35
- * Link to the projects
36
- * @default /projects
37
- */
38
- projectsLink?: string;
39
- contactsLink?: string;
40
- supportTeamLink?: string;
41
- }
42
-
43
- export interface IPageNotFoundProps extends IWithI18nEnhanceProps {
44
- /**
45
- * href of the home link
46
- * @default /
47
- */
48
- homeLink?: string;
49
- }
50
-
51
- export interface IPageErrorProps extends IWithI18nEnhanceProps {
52
- /**
53
- * Page reloading button click handler
54
- * @default () => { if (canUseDOM()) { location.reload(); } }
55
- */
56
- onClick?: (e: React.MouseEvent) => void;
57
- }
58
-
59
- export interface IMaintenanceProps extends IWithI18nEnhanceProps {
60
- /**
61
- * Tool name
62
- */
63
- toolName: string;
64
- /**
65
- * href of the home link
66
- * @default /
67
- */
68
- homeLink?: string;
69
- }
70
-
71
- export interface IAccessDeniedProps extends IWithI18nEnhanceProps {
72
- /**
73
- * href of the home link
74
- * @default /
75
- */
76
- homeLink?: string;
77
- }
78
-
79
- declare const Error: (<T>(props: CProps<IErrorsProps & T, IErrorsContext>) => ReturnEl) & {
80
- Title: typeof Box;
81
- Description: typeof Box;
82
- Controls: typeof Box;
83
- };
84
- declare const ProjectNotFound: <T>(props: IProjectNotFoundProps & IErrorsProps & T) => ReturnEl;
85
- declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) => ReturnEl;
86
- declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
- declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
- declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNamesErrors) => string;
90
-
91
- export default Error;
92
- export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
@@ -1,92 +0,0 @@
1
- import React from 'react';
2
- import { Box, IFlexProps } from '@semcore/flex-box';
3
- import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
- import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
-
6
- export type iconNamesErrors =
7
- | 'access_denied'
8
- | 'blocked'
9
- | 'confirmation'
10
- | 'connection_lost'
11
- | 'deleted_account'
12
- | 'dns'
13
- | 'maintenance'
14
- | 'no_payment'
15
- | 'page_error'
16
- | 'page_not_found'
17
- | 'project_not_found'
18
- | 'timeout';
19
-
20
- export interface IErrorsProps extends IFlexProps {
21
- /**
22
- * Error icon
23
- */
24
- icon?: string | React.ReactNode;
25
- }
26
-
27
- export interface IErrorsContext {
28
- getTextProps: PropGetterFn;
29
- getDescriptionProps: PropGetterFn;
30
- getControlsProps: PropGetterFn;
31
- }
32
-
33
- export interface IProjectNotFoundProps extends IWithI18nEnhanceProps {
34
- /**
35
- * Link to the projects
36
- * @default /projects
37
- */
38
- projectsLink?: string;
39
- contactsLink?: string;
40
- supportTeamLink?: string;
41
- }
42
-
43
- export interface IPageNotFoundProps extends IWithI18nEnhanceProps {
44
- /**
45
- * href of the home link
46
- * @default /
47
- */
48
- homeLink?: string;
49
- }
50
-
51
- export interface IPageErrorProps extends IWithI18nEnhanceProps {
52
- /**
53
- * Page reloading button click handler
54
- * @default () => { if (canUseDOM()) { location.reload(); } }
55
- */
56
- onClick?: (e: React.MouseEvent) => void;
57
- }
58
-
59
- export interface IMaintenanceProps extends IWithI18nEnhanceProps {
60
- /**
61
- * Tool name
62
- */
63
- toolName: string;
64
- /**
65
- * href of the home link
66
- * @default /
67
- */
68
- homeLink?: string;
69
- }
70
-
71
- export interface IAccessDeniedProps extends IWithI18nEnhanceProps {
72
- /**
73
- * href of the home link
74
- * @default /
75
- */
76
- homeLink?: string;
77
- }
78
-
79
- declare const Error: (<T>(props: CProps<IErrorsProps & T, IErrorsContext>) => ReturnEl) & {
80
- Title: typeof Box;
81
- Description: typeof Box;
82
- Controls: typeof Box;
83
- };
84
- declare const ProjectNotFound: <T>(props: IProjectNotFoundProps & IErrorsProps & T) => ReturnEl;
85
- declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) => ReturnEl;
86
- declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
- declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
- declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNamesErrors) => string;
90
-
91
- export default Error;
92
- export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
@@ -1,48 +0,0 @@
1
- <svg width="260" height="260" viewBox="0 0 260 260" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M241.18 128.14c0-61.35-49.73-111.08-111.08-111.08S19 66.79 19 128.14a110.89 110.89 0 0 0 46.3 90.19l-10.25 27.95a2.76 2.76 0 0 0 2.59 3.72h144.91a2.77 2.77 0 0 0 2.6-3.72l-10.26-27.96a110.89 110.89 0 0 0 46.29-90.18Z" fill="#FFE74D"/>
3
- <mask id="a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="19" y="10" width="223" height="240">
4
- <path d="M241.18 128.14c0-24.64-8.03-47.4-21.6-65.83-7.86-10.67-.79-42.27-11.89-49.55-10.63-9.95-38.88 10.44-51.36 7.42a111.36 111.36 0 0 0-26.23-3.12C68.75 17.06 19 66.79 19 128.14a110.89 110.89 0 0 0 46.3 90.19l-10.25 27.95a2.76 2.76 0 0 0 2.59 3.72h144.91a2.77 2.77 0 0 0 2.6-3.72l-10.26-27.96a110.89 110.89 0 0 0 46.29-90.18Z" fill="#FFE74D"/>
5
- </mask>
6
- <g mask="url(#a)">
7
- <path d="m47 22.15 74.57 19.4 4.03 187.25-95.53 11.79L47 22.15Z" fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
8
- <path d="m16.54 246.1-5.84-5.14L33.35 18.59l5.22-7.08-22.03 234.6Z" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
9
- <path d="m121.57 41.55 77.16-29.5 42.45 223.85-110.1-6.76-9.51-187.6Z" fill="#FFE74D" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
10
- <path d="m241.18 235.9 5.93-1.07-43.71-221-4.67-1.78 42.45 223.85Z" fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
11
- <path d="m46.16 32.93 75.9 18.28M45.29 44.14l77.27 17.04M44.39 55.78l78.7 15.72M43.45 67.89l80.18 14.27M42.48 80.49l81.7 12.7M41.46 93.6l83.3 11.02M40.4 107.29l84.96 9.17M39.3 121.56l86.69 7.18M38.14 136.46l88.5 5.01M36.93 152.03l90.37 2.66M35.67 168.32l92.33.1M34.35 185.4l94.37-2.7M32.96 203.29l96.52-5.73M130.26 213.02l-98.75 9.06M115.78 59.69l-.4-10.1M116.63 80.92l-.43-10.8M117.53 103.67l-.46-11.58M119.55 154.47l-.53-13.43M121.9 213.79l-.62-15.75M96.4 45.03l-.08-10.05M96.58 66.2l-.09-10.77M96.77 88.97l-.1-11.6M96.97 113.4l-.1-12.47M97.19 139.8l-.12-13.45M97.42 168.42l-.12-14.61M97.68 199.44l-.13-15.85M97.96 233.3l-.14-17.3M77.25 51.2l.26-10.72M75.53 124.56l.31-13.44M74.85 153.15l.35-14.6M73.32 218.24l.4-17.37M57.84 35.75l.6-10.63M56.55 58.21l.66-11.44M55.16 82.46l.71-12.36M50.25 168.32l.9-15.87M46.16 239.8l1.1-19.17" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
12
- <path d="m121.57 41.55-4.16 1.53-70.64-17.96.23-2.97 74.57 19.4Z" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
13
- <path d="m158.14 95.07-22.69 5.33-3.62-53.72 20.57-7.43 5.74 55.82ZM197.24 85.88l-26.62 6.26-6.98-56.95 23.8-8.6 9.8 59.3ZM170.55 215.73l-27.39-.76-4.92-73.11 24.36-3.38 7.95 77.25ZM218.94 217.08l-33.11-.92-9.76-79.56 28.9-4 13.97 84.48ZM161.17 124.54l-23.82 4.04-1.08-15.99 23.18-4.78 1.72 16.73ZM202.47 117.55l-28.15 4.77-2.1-17.15 27.28-5.63 2.97 18Z" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
14
- <path d="m137.9 99.82-3.54-52.5 18.2-6.51M172.97 91.59l-6.82-55.65 21.55-7.7M170.46 214.85l-24.86-.65-4.86-72.2 21.91-3.02M188.14 215.3l-9.63-78.51 26.54-3.66-.09-.53M139.8 128.16l-1.02-15.27 20.76-4.26M176.69 121.91l-2-16.3 24.95-5.2" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
15
- <path d="m218.77 216.1-30.63-.8-2.31.86M131.83 46.68l2.53.65M163.64 35.2l2.5.74M136.27 112.6l2.51.29M172.22 105.17l2.47.44M145.6 214.2l-2.44.77" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
16
- <path d="M212.74 111.2a1.85 1.85 0 0 1-1.59 1.75 186.85 186.85 0 0 1-20.36 1.22c-.28 0-.5-.66-.1-.88 5.23-2.94 16.61-6.12 19.42-6.73a1.77 1.77 0 0 1 1.98 1.05 7.5 7.5 0 0 1 .65 3.6Z" fill="#000"/>
17
- <path d="m173.35 163.24 52.74 11.2 1.01-6.02-53.75-5.18Z" fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
18
- <path d="m176.13 128.74 30.58-20.65 23.67 25.44" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
19
- <path d="M212.74 108.94a1.9 1.9 0 0 1-1.7 1.75c-2.8.3-5.7.55-8.7.76-4.53.3-8.85.45-12.96.45-.3 0-.53-.66-.11-.88 5.56-2.94 17.68-6.12 20.67-6.73a1.89 1.89 0 0 1 2.1 1.05 7.31 7.31 0 0 1 .7 3.6Z" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
20
- <path d="m233.5 130.94-60.14-5.8-3.64 37.74 60.14 5.8 3.64-37.74Z" fill="#fff" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
21
- <path d="m119.85 84.55-78.4-.82.7-9.62 77.34 2.23.36 8.21Z" fill="#FFE74D"/>
22
- <path d="m44.9 83.76-3.45-.03.7-9.62h.47l8.29.25-6.01 9.4ZM61.3 83.93l-8.07-.08 5.7-9.26 7.79.22-5.43 9.12ZM76.69 84.1l-7.58-.08 5.16-9 7.32.22-4.9 8.86ZM91.17 84.25l-7.13-.08 4.65-8.72 6.9.2-4.42 8.6ZM104.81 84.4l-6.72-.08 4.2-8.48 6.52.2-4 8.35ZM117.69 84.53l-6.35-.07 3.8-8.24 4.35.12.16 3.76-1.96 4.43Z" fill="#000"/>
23
- <path d="m119.85 84.55-78.4-.82M42.15 74.11l77.34 2.23" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
24
- <path d="m122.9 152.34-82.95-50.33.94-11.2 81.51 50.46.5 11.07Z" fill="#FFE74D"/>
25
- <path d="m42.76 103.71-2.8-1.7.41-5.01 6.42-2.54 7.35 4.56-11.38 4.7ZM57.7 112.78l-7.41-4.5 11.09-4.79 7.12 4.41-10.8 4.88ZM72.2 121.57l-7.2-4.36 10.52-4.96 6.92 4.28-10.24 5.04ZM86.25 130.1l-6.98-4.23 9.98-5.12 6.72 4.15-9.72 5.2ZM99.89 138.38l-6.77-4.11 9.46-5.27 6.53 4.03-9.22 5.35ZM113.13 146.41l-6.57-3.99 8.98-5.4 6.33 3.92-8.74 5.47Z" fill="#000"/>
26
- <path d="m40.89 90.81 81.51 50.46M122.9 152.34l-82.95-50.33" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
27
- <path d="m124.76 193.69-90.84-14.43 1-12.75 89.34 15.9.5 11.28Z" fill="#FFE74D"/>
28
- <path d="m34.42 179.34-.5-.08 1-12.75.75.13 9.4 1.67-10.65 11.03ZM53.3 182.34l-9.3-1.48 10.2-10.92 8.88 1.57-9.78 10.83ZM71.17 185.18l-8.81-1.4 9.37-10.73 8.42 1.5-8.98 10.63ZM88.08 187.86l-8.34-1.32L88.36 176l7.99 1.43-8.27 10.42ZM104.13 190.41l-7.92-1.26 7.93-10.33 7.59 1.35-7.6 10.24ZM119.37 192.83l-7.53-1.2 7.3-10.14 5.11.91.15 3.2-5.03 7.23Z" fill="#000"/>
29
- <path d="m124.76 193.69-90.84-14.43M34.93 166.5l89.32 15.9" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
30
- <path d="M121.21 114.67 37.07 139.3l.88-11.9 82.83-22.17.43 9.44Z" fill="#FFE74D"/>
31
- <path d="m42.48 137.71-5.4 1.59.87-11.9 8.77-2.35-4.24 12.66ZM59.62 132.7l-8.4 2.46 3.94-12.37 8.14-2.18-3.68 12.09ZM75.52 128.04l-7.8 2.29 3.42-11.82 7.57-2.02-3.2 11.55ZM90.31 123.71l-7.26 2.13 2.96-11.3 7.06-1.9-2.76 11.07ZM104.11 119.67l-6.78 1.99 2.56-10.84 6.6-1.76-2.38 10.61ZM117.02 115.9l-6.35 1.85 2.2-10.4 6.18-1.65-2.03 10.2Z" fill="#000"/>
32
- <path d="m37.95 127.4 82.83-22.17" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
33
- <path d="m49.29 124.36 47.16-12.61M108.1 179.52l7.2 1.29M49.23 169.05l32.89 5.85M53.8 74.45 103 75.89" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
34
- <path d="m123.55 166.83-93.48 57.75 1.55-15.99 91.42-53.3.51 11.54Z" fill="#FFE74D"/>
35
- <path d="m44.54 215.64-9.54 5.9 3.18-16.78 9.25-5.38-2.89 16.26ZM62.43 204.59l-8.75 5.4 2.6-15.78 8.5-4.95-2.35 15.33ZM78.86 194.44l-8.04 4.97 2.1-14.9 7.82-4.56-1.88 14.5ZM94 185.09l-7.42 4.58 1.67-14.1 7.23-4.22L94 185.1ZM108 176.44l-6.87 4.24 1.3-13.38 6.7-3.9-1.14 13.04ZM120.97 168.42l-6.37 3.94.99-12.73 6.23-3.63-.85 12.42Z" fill="#000"/>
36
- <path d="m31.62 208.6 91.42-53.32" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
37
- <path d="m36.62 205.67 82.18-47.92" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
38
- <path d="M121.21 114.67 37.07 139.3M123.55 166.83l-93.48 57.75" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
39
- <path d="M119.75 82.2 43.8 53.04l.78-8.77 74.79 29.7.37 8.23Z" fill="#FFE74D"/>
40
- <path d="m49.48 55.21-5.62-2.15.19-2.35 6.58-4.04 7.52 2.98-8.67 5.56ZM64.6 61.02l-7.48-2.87 8.38-5.58 7.19 2.86-8.1 5.59ZM79.06 66.57l-7.15-2.74 7.82-5.6 6.9 2.73-7.57 5.61ZM92.9 71.89l-6.84-2.63 7.3-5.62 6.61 2.62-7.06 5.63ZM106.18 76.98l-6.57-2.52 6.83-5.63 6.34 2.53-6.6 5.62ZM118.92 81.88l-6.3-2.43 6.38-5.63.38.15.37 8.23-.83-.32Z" fill="#000"/>
41
- <path d="m44.6 44.27 74.78 29.7M119.75 82.2 43.8 53.04" stroke="#FFE74D" stroke-linecap="round" stroke-linejoin="round"/>
42
- <path d="m59.69 50.26 55.48 22.04" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"/>
43
- <path d="m125.99 128.74 5.08 100.4-5.47-.33-8.19-185.73 4.16-1.53 4.42 87.2Z" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
44
- <path d="m47 22.15 74.57 19.4-.36-6.98L38.57 11.5l-22.03 234.6 13.24-1.73L47 22.16Z" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
45
- </g>
46
- <path d="M130.1 17.56C68.75 17.56 19 66.79 19 128.14a110.89 110.89 0 0 0 46.3 90.19l-9.72 27.95" stroke="#FFE74D" stroke-linejoin="round"/>
47
- <path d="m180.06 133.35 1.88.18 2.68 9.76-1.83-.18-.76-2.9-3.41-.34-1.3 2.72-1.76-.18 4.5-9.06Zm1.55 5.27-.84-3.21-1.44 2.99 2.28.22ZM190.54 134.23c2.11.2 3.62 1.54 3.87 3.5l-1.77.32c-.2-1.26-.9-2.1-2.27-2.22-1.84-.18-3.02 1.21-3.16 2.96-.15 1.75.67 3.33 2.54 3.51a2.48 2.48 0 0 0 2.75-1.72l1.68.64c-.77 1.93-2.45 2.88-4.58 2.68-2.94-.29-4.45-2.58-4.2-5.29.27-2.7 2.33-4.65 5.14-4.38ZM200.4 135.18c2.12.21 3.62 1.54 3.88 3.5l-1.78.32c-.2-1.26-.9-2.1-2.26-2.22-1.84-.18-3.02 1.21-3.17 2.96-.15 1.75.68 3.34 2.55 3.51a2.47 2.47 0 0 0 2.75-1.72l1.67.65c-.77 1.92-2.44 2.87-4.58 2.67-2.93-.29-4.44-2.57-4.18-5.28.26-2.71 2.3-4.64 5.12-4.39ZM206.16 135.87l6.22.6-.15 1.56-4.5-.46-.2 2.18 3.1.3-.15 1.55-3.1-.3-.25 2.57 4.62.45-.15 1.56-6.34-.61.9-9.4ZM218.52 139.87a1.68 1.68 0 0 0-1.63-1.56c-1.05-.1-1.71.26-1.78 1-.09.86.86 1.14 1.94 1.5 1.43.45 3.07 1.08 2.87 3.09-.17 1.78-1.72 2.75-3.82 2.56-2.1-.2-3.3-1.3-3.59-3.06l1.81-.33a1.94 1.94 0 0 0 1.94 1.85c.98.1 1.78-.22 1.87-1.13.09-.92-.84-1.17-1.91-1.5-1.43-.46-3.12-1.01-2.92-3.08.16-1.61 1.81-2.6 3.74-2.42 1.86.18 3 1.18 3.25 2.8l-1.77.28ZM226.77 140.67a1.7 1.7 0 0 0-1.64-1.57c-1.06-.1-1.71.27-1.78 1-.09.86.87 1.14 1.95 1.5 1.42.45 3.06 1.08 2.87 3.1-.18 1.77-1.73 2.75-3.82 2.55-2.1-.2-3.3-1.3-3.6-3.06l1.81-.32a1.93 1.93 0 0 0 1.94 1.85c.98.1 1.78-.22 1.87-1.14.09-.91-.84-1.17-1.9-1.5-1.44-.45-3.12-1-2.92-3.08.15-1.6 1.8-2.6 3.73-2.41 1.86.18 3 1.17 3.26 2.8l-1.77.28ZM177.65 148.31l3.04.3a4.51 4.51 0 0 1 4.26 5.13 4.54 4.54 0 0 1-5.16 4.28l-3.05-.3.9-9.4Zm1.57 1.77-.6 6.22 1.32.13c1.76.17 3.03-.98 3.22-2.85.18-1.87-.86-3.21-2.62-3.38l-1.32-.12ZM187.26 149.24l6.22.6-.15 1.56-4.5-.46-.2 2.18 3.1.3-.15 1.55-3.1-.3-.25 2.58 4.62.45-.15 1.56-6.34-.61.9-9.4ZM195.29 150.02l1.84.17 3.82 7.31.66-6.87 1.65.16-.9 9.4-1.85-.17-3.83-7.36-.66 6.93-1.64-.16.9-9.41ZM205.7 151.02l1.72.16-.9 9.42-1.74-.17.91-9.4ZM209.85 151.42l6.23.6-.15 1.56-4.5-.46-.2 2.18 3.1.3-.16 1.55-3.1-.3-.24 2.57 4.62.46-.15 1.55-6.34-.61.9-9.4ZM217.88 152.2l3.06.3a4.53 4.53 0 0 1 4.25 5.12 4.55 4.55 0 0 1-5.16 4.28l-3.06-.29.91-9.42Zm1.58 1.76-.6 6.22 1.32.13c1.75.17 3.03-.98 3.21-2.84.18-1.87-.85-3.22-2.6-3.38l-1.33-.13Z" fill="#000"/>
48
- </svg>