@semcore/widget-empty 17.1.0-prerelease.3 → 17.2.0-prerelease.3

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,16 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [17.2.0] - 2026-06-05
6
+
7
+ ### Changed
8
+
9
+ - Removed unnecessary width/height of the image.
10
+
11
+ ### Added
12
+
13
+ - Links to the API and examples in the docs.
14
+
5
15
  ## [17.1.0] - 2026-05-13
6
16
 
7
17
  ### Added
@@ -25,6 +25,12 @@ class Error extends _core.Component {
25
25
  }, _ref), /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default.Title, null, getI18nText('title')), /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default.Description, null, description || getI18nText('description')), /*#__PURE__*/_react.default.createElement(Children, null));
26
26
  }
27
27
  }
28
+
29
+ /**
30
+ * WidgetEmpty Error
31
+ *
32
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api#error|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
33
+ */
28
34
  (0, _defineProperty2.default)(Error, "displayName", 'WidgetError');
29
35
  (0, _defineProperty2.default)(Error, "defaultProps", {
30
36
  i18n: _intergalacticDynamicLocales.localizedMessages,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","Error","Component","render","_ref","asProps","Children","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18n","localizedMessages","locale","i18nEnhance","_default","exports","createComponent"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,KAAK,SAASC,eAAS,CAAC;EAS5BC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACH,OAAO;IAE3D,oBACER,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAAcC,oBAAW,MAAAlB,KAAA,CAAAmB,WAAA;MAAA,QAAQ,IAAAC,wBAAW,EAAC,SAAS;IAAC,GAAAT,IAAA,gBACrDP,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACK,KAAK,QAAEN,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACM,WAAW,QACrBR,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAAC,IAAAU,gBAAA,CAAAP,OAAA,EAtBKR,KAAK,iBACY,aAAa;AAAA,IAAAe,gBAAA,CAAAP,OAAA,EAD9BR,KAAK,kBAEa;EACpBgB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,CAAAP,OAAA,EALGR,KAAK,aAOQ,CAAC,IAAAmB,oBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAiBpC,IAAAc,qBAAe,EAACtB,KAAK,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","Error","Component","render","_ref","asProps","Children","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18n","localizedMessages","locale","i18nEnhance","_default","exports","createComponent"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\n/**\n * WidgetEmpty Error\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api#error|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(Error);\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,KAAK,SAASC,eAAS,CAAC;EAS5BC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACH,OAAO;IAE3D,oBACER,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAAcC,oBAAW,MAAAlB,KAAA,CAAAmB,WAAA;MAAA,QAAQ,IAAAC,wBAAW,EAAC,SAAS;IAAC,GAAAT,IAAA,gBACrDP,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACK,KAAK,QAAEN,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACM,WAAW,QACrBR,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAAU,gBAAA,CAAAP,OAAA,EAxBMR,KAAK,iBACY,aAAa;AAAA,IAAAe,gBAAA,CAAAP,OAAA,EAD9BR,KAAK,kBAEa;EACpBgB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,CAAAP,OAAA,EALGR,KAAK,aAOQ,CAAC,IAAAmB,oBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAsBpC,IAAAc,qBAAe,EAACtB,KAAK,CAAC","ignoreList":[]}
@@ -26,6 +26,12 @@ class NoData extends _core.Component {
26
26
  }, _ref), /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default.Title, null, getI18nText('title')), /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default.Description, null, description || getI18nText('description')), /*#__PURE__*/_react.default.createElement(Children, null));
27
27
  }
28
28
  }
29
+
30
+ /**
31
+ * WidgetEmpty NoData
32
+ *
33
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
34
+ */
29
35
  (0, _defineProperty2.default)(NoData, "displayName", 'WidgetNoData');
30
36
  (0, _defineProperty2.default)(NoData, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
31
37
  (0, _defineProperty2.default)(NoData, "defaultProps", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","NoData","Component","render","_ref","asProps","Children","type","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","_default","exports","createComponent"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,MAAM,SAASC,eAAS,CAAC;EAS7BC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACJ,OAAO;IAEjE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,oBAAW,MAAAnB,KAAA,CAAAoB,WAAA;MAAA,QAAQ,IAAAC,wBAAW,EAACP,IAAI;IAAC,GAAAH,IAAA,gBAChDP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,YAAA,CAAAY,OAAW,CAACK,KAAK,QAAEN,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,YAAA,CAAAY,OAAW,CAACM,WAAW,QACrBR,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAAC,IAAAW,gBAAA,CAAAP,OAAA,EAtBKT,MAAM,iBACW,cAAc;AAAA,IAAAgB,gBAAA,CAAAP,OAAA,EAD/BT,MAAM,aAEO,CAAC,IAAAiB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAP,OAAA,EAF7CT,MAAM,kBAGY;EACpBmB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZd,IAAI,EAAE;AACR,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAiBY,IAAAc,qBAAe,EAACvB,MAAM,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","NoData","Component","render","_ref","asProps","Children","type","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","_default","exports","createComponent"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\n/**\n * WidgetEmpty NoData\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(NoData);\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,O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Ac,qBAAe,EAACvB,MAAM,CAAC","ignoreList":[]}
@@ -12,13 +12,13 @@ var _isNode = _interopRequireDefault(require("@semcore/core/lib/utils/isNode"));
12
12
  var _illustration = require("@semcore/illustration");
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  /*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
15
- const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_kdmvo_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_kdmvo_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_kdmvo_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_kdmvo_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"kdmvo_gg_"),
15
+ const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_14e6x_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_14e6x_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_14e6x_gg_{text-align:center;color:var(--intergalactic-text-secondary,#00030095);font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);font-weight:var(--intergalactic-bold,700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___SDescription_14e6x_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%);color:var(--intergalactic-text-secondary,#00030095);max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___STitle_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}", /*__inner_css_end__*/"14e6x_gg_"),
16
16
  /*__reshadow_css_end__*/
17
17
  {
18
- "__SWidgetEmpty": "___SWidgetEmpty_kdmvo_gg_",
19
- "__SImage": "___SImage_kdmvo_gg_",
20
- "__STitle": "___STitle_kdmvo_gg_",
21
- "__SDescription": "___SDescription_kdmvo_gg_"
18
+ "__SWidgetEmpty": "___SWidgetEmpty_14e6x_gg_",
19
+ "__SImage": "___SImage_14e6x_gg_",
20
+ "__STitle": "___STitle_14e6x_gg_",
21
+ "__SDescription": "___SDescription_14e6x_gg_"
22
22
  });
23
23
  const getIconPath = name => (0, _illustration.getIllustrationPath)(name);
24
24
  exports.getIconPath = getIconPath;
@@ -69,6 +69,12 @@ function Description(props) {
69
69
  ...(0, _core.assignProps)({}, _ref3)
70
70
  }));
71
71
  }
72
+
73
+ /**
74
+ * WidgetEmpty
75
+ *
76
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
77
+ */
72
78
  var _default = exports.default = (0, _core.createComponent)(WidgetEmpty, {
73
79
  Title,
74
80
  Description
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetEmpty.js","names":["_core","require","_baseComponents","_isNode","_interopRequireDefault","_illustration","_react","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","WidgetEmpty","Component","render","_ref","asProps","_ref4","SWidgetEmpty","Flex","Children","icon","styles","SImage","default","createElement","cn","assignProps","isNode","_defineProperty2","Title","props","_ref2","arguments[0]","_ref5","STitle","Box","Description","_ref3","_ref6","SDescription","_default","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n}\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAF,sBAAA,CAAAH,OAAA;AAA0B;AAAA,MAAAM,KAAA,8BAAAP,KAAA,CAAAQ,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAInB,MAAMC,WAAW,GAAIC,IAAI,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAE/D,MAAMI,WAAW,SAASC,eAAS,CAAC;EAIlCC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,YAAY,GAKMC,oBAAI;IAJ5B,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACN,OAAO;IAC/C,MAAMO,MAAM,GAAG,KAAK;IAEpB,OAAAN,KAAA,GAAO,IAAAX,aAAO,EAACgB,MAAM,CAAC,eACpBlB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACP,YAAY,EAAAD,KAAA,CAAAS,EAAA;MAAA,OAAA5B,KAAA,CAAA6B,WAAA;QAAA,QAAoB;MAAQ,GAAAZ,IAAA;IAAA,IACtC,IAAAa,eAAM,EAACP,IAAI,CAAC,iBACXjB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACF,MAAM,EAAAN,KAAA,CAAAS,EAAA;MAAA,eAAa;IAAM,IACvB,OAAOL,IAAI,KAAK,QAAQ,gBAAGjB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,QAAA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":"WidgetEmpty.js","names":["_core","require","_baseComponents","_isNode","_interopRequireDefault","_illustration","_react","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","WidgetEmpty","Component","render","_ref","asProps","_ref4","SWidgetEmpty","Flex","Children","icon","styles","SImage","default","createElement","cn","assignProps","isNode","_defineProperty2","Title","props","_ref2","arguments[0]","_ref5","STitle","Box","Description","_ref3","_ref6","SDescription","_default","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n}\n\n/**\n * WidgetEmpty\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,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ACM,aAAa;AAAA,IAAAiB,gBAAA,CAAAL,OAAA,EAD9BZ,WAAW,WAEAP,KAAK;AAoBtB,SAASyB,KAAKA,CAACC,KAAK,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACpB,MAAMC,MAAM,GAE2BC,mBAAG;EAD1C,MAAM;IAAEd;EAAO,CAAC,GAAGS,KAAK;EACxB,OAAAG,KAAA,GAAO,IAAA5B,aAAO,EAACgB,MAAM,CAAC,eAAClB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACU,MAAM,EAAAD,KAAA,CAAAR,EAAA;IAAA,OAAA5B,KAAA,CAAA6B,WAAA,MAAAK,KAAA;EAAA,EAAe,CAAC;AAChD;AAEA,SAASK,WAAWA,CAACN,KAAK,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC1B,MAAMC,YAAY,GAE2BJ,mBAAG;EADhD,MAAM;IAAEd;EAAO,CAAC,GAAGS,KAAK;EACxB,OAAAQ,KAAA,GAAO,IAAAjC,aAAO,EAACgB,MAAM,CAAC,eAAClB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACe,YAAY,EAAAD,KAAA,CAAAb,EAAA;IAAA,OAAA5B,KAAA,CAAA6B,WAAA,MAAAW,KAAA;EAAA,EAAe,CAAC;AACtD;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAAG,QAAA,GAAA9B,OAAA,CAAAa,OAAA,GAKe,IAAAkB,qBAAe,EAAC9B,WAAW,EAAE;EAC1CkB,KAAK;EACLO;AACF,CAAC,CAAC","ignoreList":[]}
@@ -9,8 +9,6 @@ SImage {
9
9
  align-items: flex-end;
10
10
  justify-content: center;
11
11
  margin-bottom: var(--intergalactic-spacing-3x, 12px);
12
- width: 80px;
13
- height: 80px;
14
12
  }
15
13
 
16
14
  STitle {
@@ -18,6 +18,12 @@ class Error extends Component {
18
18
  }, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
19
19
  }
20
20
  }
21
+
22
+ /**
23
+ * WidgetEmpty Error
24
+ *
25
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api#error|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
26
+ */
21
27
  _defineProperty(Error, "displayName", 'WidgetError');
22
28
  _defineProperty(Error, "defaultProps", {
23
29
  i18n: localizedMessages,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","Error","render","_ref","asProps","Children","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,KAAK,SAASP,SAAS,CAAC;EAS5BQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACH,OAAO;IAE3D,oBACEP,KAAA,CAAAW,aAAA,CAAcV,WAAW,EAAAW,YAAA;MAAA,QAAQV,WAAW,CAAC,SAAS;IAAC,GAAAI,IAAA,gBACrDN,KAAA,CAAAW,aAAA,CAACV,WAAW,CAACY,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DV,KAAA,CAAAW,aAAA,CAACV,WAAW,CAACa,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BV,KAAA,CAAAW,aAAA,CAACH,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAACO,eAAA,CAtBKX,KAAK,iBACY,aAAa;AAAAW,eAAA,CAD9BX,KAAK,kBAEa;EACpBY,IAAI,EAAEb,iBAAiB;EACvBc,MAAM,EAAE;AACV,CAAC;AAAAF,eAAA,CALGX,KAAK,aAOQ,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAiBnD,eAAeP,eAAe,CAACQ,KAAK,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","Error","render","_ref","asProps","Children","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\n/**\n * WidgetEmpty Error\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api#error|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(Error);\n"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,KAAK,SAASP,SAAS,CAAC;EAS5BQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACH,OAAO;IAE3D,oBACEP,KAAA,CAAAW,aAAA,CAAcV,WAAW,EAAAW,YAAA;MAAA,QAAQV,WAAW,CAAC,SAAS;IAAC,GAAAI,IAAA,gBACrDN,KAAA,CAAAW,aAAA,CAACV,WAAW,CAACY,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DV,KAAA,CAAAW,aAAA,CAACV,WAAW,CAACa,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BV,KAAA,CAAAW,aAAA,CAACH,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAO,eAAA,CAxBMX,KAAK,iBACY,aAAa;AAAAW,eAAA,CAD9BX,KAAK,kBAEa;EACpBY,IAAI,EAAEb,iBAAiB;EACvBc,MAAM,EAAE;AACV,CAAC;AAAAF,eAAA,CALGX,KAAK,aAOQ,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAsBnD,eAAeP,eAAe,CAACQ,KAAK,CAAC","ignoreList":[]}
@@ -19,6 +19,12 @@ class NoData extends Component {
19
19
  }, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
20
20
  }
21
21
  }
22
+
23
+ /**
24
+ * WidgetEmpty NoData
25
+ *
26
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
27
+ */
22
28
  _defineProperty(NoData, "displayName", 'WidgetNoData');
23
29
  _defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
24
30
  _defineProperty(NoData, "defaultProps", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","NoData","render","_ref","asProps","Children","type","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,MAAM,SAASP,SAAS,CAAC;EAS7BQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACJ,OAAO;IAEjE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,WAAW,EAAAY,YAAA;MAAA,QAAQX,WAAW,CAACO,IAAI;IAAC,GAAAH,IAAA,gBAChDN,KAAA,CAAAY,aAAA,CAACX,WAAW,CAACa,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DX,KAAA,CAAAY,aAAA,CAACX,WAAW,CAACc,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BX,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAACQ,eAAA,CAtBKZ,MAAM,iBACW,cAAc;AAAAY,eAAA,CAD/BZ,MAAM,aAEO,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAF7CZ,MAAM,kBAGY;EACpBa,IAAI,EAAEd,iBAAiB;EACvBe,MAAM,EAAE,IAAI;EACZT,IAAI,EAAE;AACR,CAAC;AAiBH,eAAeb,eAAe,CAACQ,MAAM,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","NoData","render","_ref","asProps","Children","type","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\n/**\n * WidgetEmpty NoData\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(NoData);\n"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,MAAM,SAASP,SAAS,CAAC;EAS7BQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACJ,OAAO;IAEjE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,WAAW,EAAAY,YAAA;MAAA,QAAQX,WAAW,CAACO,IAAI;IAAC,GAAAH,IAAA,gBAChDN,KAAA,CAAAY,aAAA,CAACX,WAAW,CAACa,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DX,KAAA,CAAAY,aAAA,CAACX,WAAW,CAACc,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BX,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAQ,eAAA,CAxBMZ,MAAM,iBACW,cAAc;AAAAY,eAAA,CAD/BZ,MAAM,aAEO,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAF7CZ,MAAM,kBAGY;EACpBa,IAAI,EAAEd,iBAAiB;EACvBe,MAAM,EAAE,IAAI;EACZT,IAAI,EAAE;AACR,CAAC;AAsBH,eAAeb,eAAe,CAACQ,MAAM,CAAC","ignoreList":[]}
@@ -9,13 +9,13 @@ import isNode from '@semcore/core/lib/utils/isNode';
9
9
  import { getIllustrationPath } from '@semcore/illustration';
10
10
  import React from 'react';
11
11
  /*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
12
- const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_kdmvo_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_kdmvo_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_kdmvo_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_kdmvo_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"kdmvo_gg_"),
12
+ const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_14e6x_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_14e6x_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_14e6x_gg_{text-align:center;color:var(--intergalactic-text-secondary,#00030095);font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);font-weight:var(--intergalactic-bold,700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___SDescription_14e6x_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%);color:var(--intergalactic-text-secondary,#00030095);max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___STitle_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}", /*__inner_css_end__*/"14e6x_gg_"),
13
13
  /*__reshadow_css_end__*/
14
14
  {
15
- "__SWidgetEmpty": "___SWidgetEmpty_kdmvo_gg_",
16
- "__SImage": "___SImage_kdmvo_gg_",
17
- "__STitle": "___STitle_kdmvo_gg_",
18
- "__SDescription": "___SDescription_kdmvo_gg_"
15
+ "__SWidgetEmpty": "___SWidgetEmpty_14e6x_gg_",
16
+ "__SImage": "___SImage_14e6x_gg_",
17
+ "__STitle": "___STitle_14e6x_gg_",
18
+ "__SDescription": "___SDescription_14e6x_gg_"
19
19
  });
20
20
  export const getIconPath = name => getIllustrationPath(name);
21
21
  class WidgetEmpty extends Component {
@@ -65,6 +65,12 @@ function Description(props) {
65
65
  ..._assignProps3({}, _ref3)
66
66
  }));
67
67
  }
68
+
69
+ /**
70
+ * WidgetEmpty
71
+ *
72
+ * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}
73
+ */
68
74
  export default createComponent(WidgetEmpty, {
69
75
  Title,
70
76
  Description
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetEmpty.js","names":["Box","Flex","createComponent","Component","sstyled","Root","isNode","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","WidgetEmpty","render","_ref","asProps","_ref4","SWidgetEmpty","Children","icon","styles","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref5","STitle","_assignProps2","Description","_ref3","_ref6","SDescription","_assignProps3"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n}\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AACpD,SAASC,eAAe,EAAEC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,OAAO,MAAMC,WAAW,GAAIC,IAAI,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAE9D,MAAMC,WAAW,SAASX,SAAS,CAAC;EAIlCY,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,YAAY,GAKMlB,IAAI;IAJ5B,MAAM;MAAEmB,QAAQ;MAAEC,IA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AAA,GAAOjC,OAAO,CAACkB,MAAM,CAAC,eAACd,KAAA,CAAAgB,aAAA,CAACc,YAAY,EAAAD,KAAA,CAAAZ,EAAA;IAAA,GAAAc,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AACtD;AAEA,eAAelC,eAAe,CAACY,WAAW,EAAE;EAC1Cc,KAAK;EACLO;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"WidgetEmpty.js","names":["Box","Flex","createComponent","Component","sstyled","Root","isNode","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","WidgetEmpty","render","_ref","asProps","_ref4","SWidgetEmpty","Children","icon","styles","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref5","STitle","_assignProps2","Description","_ref3","_ref6","SDescription","_assignProps3"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n}\n\n/**\n * WidgetEmpty\n *\n * {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-api/|API} | {@link https://developer.semrush.com/intergalactic/components/widget-empty/widget-empty-code/|Examples}\n */\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AACpD,SAASC,eAAe,EAAEC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,OAAO,MAAMC,WAAW,GAAIC,IAAI,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAE9D,MAAMC,WAAW,SAASX,SAAS,CAAC;EAIlCY,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,YAAY,GAKMlB,IAAI;IAJ5B,MAAM;MAAEmB,QAAQ;MAAEC,IAAI;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACL,OAAO;IAC/C,MAAMM,MAAM,GAAG,KAAK;IAEpB,OAAAL,KAAA,GAAOd,OAAO,CAACkB,MAAM,CAAC,eACpBd,KAAA,CAAAgB,aAAA,CAACL,YAAY,EAAAD,KAAA,CAAAO,EAAA;MAAA,GAAAC,YAAA;QAAA,QAAoB;MAAQ,GAAAV,IAAA;IAAA,IACtCV,MAAM,CAACe,IAAI,CAAC,iBACXb,KAAA,CAAAgB,aAAA,CAACD,MAAM,EAAAL,KAAA,CAAAO,EAAA;MAAA,eAAa;IAAM,IACvB,OAAOJ,IAAI,KAAK,QAAQ,gBAAGb,KAAA,CAAAgB,aAAA,QAAAN,KAAA,CAAAO,EAAA;MAAA,OAAUJ,IAAI;MAAA,OAAM;IAAE,EAAE,CAAC,GAAGA,IAClD,CACT,eACDb,KAAA,CAAAgB,aAAA,CAACJ,QAAQ,EAAAF,KAAA,CAAAO,EAAA,gBAAE,CACC,CAAC;EAEnB;AACF;AAACE,eAAA,CApBKb,WAAW,iBACM,aAAa;AAAAa,eAAA,CAD9Bb,WAAW,WAEAL,KAAK;AAoBtB,SAASmB,KAAKA,CAACC,KAAK,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACpB,MAAMC,MAAM,GAE2BjC,GAAG;EAD1C,MAAM;IAAEsB;EAAO,CAAC,GAAGO,KAAK;EACxB,OAAAG,KAAA,GAAO5B,OAAO,CAACkB,MAAM,CAAC,eAACd,KAAA,CAAAgB,aAAA,CAACS,MAAM,EAAAD,KAAA,CAAAP,EAAA;IAAA,GAAAS,aAAA,KAAAJ,KAAA;EAAA,EAAe,CAAC;AAChD;AAEA,SAASK,WAAWA,CAACN,KAAK,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC1B,MAAMC,YAAY,GAE2BtC,GAAG;EADhD,MAAM;IAAEsB;EAAO,CAAC,GAAGO,KAAK;EACxB,OAAAQ,KAAA,GAAOjC,OAAO,CAACkB,MAAM,CAAC,eAACd,KAAA,CAAAgB,aAAA,CAACc,YAAY,EAAAD,KAAA,CAAAZ,EAAA;IAAA,GAAAc,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAelC,eAAe,CAACY,WAAW,EAAE;EAC1Cc,KAAK;EACLO;AACF,CAAC,CAAC","ignoreList":[]}
@@ -9,8 +9,6 @@ SImage {
9
9
  align-items: flex-end;
10
10
  justify-content: center;
11
11
  margin-bottom: var(--intergalactic-spacing-3x, 12px);
12
- width: 80px;
13
- height: 80px;
14
12
  }
15
13
 
16
14
  STitle {
@@ -1,4 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { Component, assignProps, createComponent } from "@semcore/core";
3
3
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
4
4
  import React from "react";
@@ -1,4 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { Component, assignProps, createComponent } from "@semcore/core";
3
3
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
4
4
  import React from "react";
@@ -1,4 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
3
3
  import { Flex, Box } from "@semcore/base-components";
4
4
  import isNode from "@semcore/core/lib/utils/isNode";
@@ -9,15 +9,15 @@ const style = (
9
9
  /*__reshadow_css_start__*/
10
10
  (sstyled.insert(
11
11
  /*__inner_css_start__*/
12
- ".___SWidgetEmpty_kdmvo_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_kdmvo_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_kdmvo_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_kdmvo_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_kdmvo_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_kdmvo_gg_+.___SDescription_kdmvo_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
12
+ ".___SWidgetEmpty_14e6x_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_14e6x_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_14e6x_gg_{text-align:center;color:var(--intergalactic-text-secondary,#00030095);font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);font-weight:var(--intergalactic-bold,700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___STitle_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___SDescription_14e6x_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%);color:var(--intergalactic-text-secondary,#00030095);max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___SDescription_14e6x_gg_{color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___STitle_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_14e6x_gg_+.___SDescription_14e6x_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}",
13
13
  /*__inner_css_end__*/
14
- "kdmvo_gg_"
14
+ "14e6x_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
17
- "__SWidgetEmpty": "___SWidgetEmpty_kdmvo_gg_",
18
- "__SImage": "___SImage_kdmvo_gg_",
19
- "__STitle": "___STitle_kdmvo_gg_",
20
- "__SDescription": "___SDescription_kdmvo_gg_"
17
+ "__SWidgetEmpty": "___SWidgetEmpty_14e6x_gg_",
18
+ "__SImage": "___SImage_14e6x_gg_",
19
+ "__STitle": "___STitle_14e6x_gg_",
20
+ "__SDescription": "___SDescription_14e6x_gg_"
21
21
  })
22
22
  );
23
23
  const getIconPath = (name) => getIllustrationPath(name);
@@ -9,8 +9,6 @@ SImage {
9
9
  align-items: flex-end;
10
10
  justify-content: center;
11
11
  margin-bottom: var(--intergalactic-spacing-3x, 12px);
12
- width: 80px;
13
- height: 80px;
14
12
  }
15
13
 
16
14
  STitle {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/widget-empty",
3
3
  "description": "Semrush WidgetEmpty Component",
4
- "version": "17.1.0-prerelease.3",
4
+ "version": "17.2.0-prerelease.3",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "@semcore/illustration": "^17.0.1"
18
18
  },
19
19
  "peerDependencies": {
20
- "@semcore/base-components": "^17.0.2"
20
+ "@semcore/base-components": "^17.2.0"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -25,9 +25,9 @@
25
25
  "directory": "semcore/widget-empty"
26
26
  },
27
27
  "devDependencies": {
28
- "@semcore/testing-utils": "1.0.0",
29
- "@semcore/core": "17.1.0-prerelease.3",
30
- "@semcore/base-components": "17.0.2-prerelease.3"
28
+ "@semcore/core": "17.2.0-prerelease.3",
29
+ "@semcore/base-components": "17.2.0-prerelease.3",
30
+ "@semcore/testing-utils": "1.0.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "pnpm semcore-builder --source=js && pnpm vite build"