@semcore/widget-empty 3.8.1 → 3.8.2
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
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -48,15 +48,15 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SWidgetEmpty_9apqk_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x,16px)}.___SImage_9apqk_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_9apqk_gg_{color:var(--intergalactic-text-secondary,#6c6e79)}.___STitle_9apqk_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);font-weight:var(--intergalactic-bold,700)}.___SDescription_9apqk_gg_{text-align:center;font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%);color:var(--intergalactic-text-secondary,#6c6e79);max-width:400px}.___STitle_9apqk_gg_+.___SDescription_9apqk_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_9apqk_gg_+.___SDescription_9apqk_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "9apqk_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SWidgetEmpty": "
|
|
57
|
-
"__SImage": "
|
|
58
|
-
"__STitle": "
|
|
59
|
-
"__SDescription": "
|
|
56
|
+
"__SWidgetEmpty": "___SWidgetEmpty_9apqk_gg_",
|
|
57
|
+
"__SImage": "___SImage_9apqk_gg_",
|
|
58
|
+
"__STitle": "___STitle_9apqk_gg_",
|
|
59
|
+
"__SDescription": "___SDescription_9apqk_gg_"
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
var getIconPath = function getIconPath(name) {
|
|
@@ -91,9 +91,7 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
91
91
|
"aria-hidden": "true"
|
|
92
92
|
}), typeof icon === 'string' ? /*#__PURE__*/_react["default"].createElement("img", _ref4.cn("img", {
|
|
93
93
|
"src": icon,
|
|
94
|
-
"alt": "widget empty icon"
|
|
95
|
-
"width": 100,
|
|
96
|
-
"height": 72
|
|
94
|
+
"alt": "widget empty icon"
|
|
97
95
|
})) : icon), /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {})));
|
|
98
96
|
}
|
|
99
97
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["getIconPath","name","getIllustrationPath","WidgetEmpty","SWidgetEmpty","Flex","asProps","Children","icon","styles","SImage","sstyled","isNode","Component","style","Title","props","STitle","Box","Description","SDescription","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\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}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ?
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["getIconPath","name","getIllustrationPath","WidgetEmpty","SWidgetEmpty","Flex","asProps","Children","icon","styles","SImage","sstyled","isNode","Component","style","Title","props","STitle","Box","Description","SDescription","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\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}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst 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;;AADA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAU,IAAAC,iCAAA,EAAoBD,IAApB,CAAV;AAAA,CAApB;;;;IAEDE,W;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,YAAY,GAKMC,aALxB;MACA,oBAAmC,KAAKC,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,MAAxB,iBAAwBA,MAAxB;MACA,IAAMC,MAAM,GAAG,KAAf;MAEA,eAAO,IAAAC,aAAA,EAAQF,MAAR,CAAP,eACE,gCAAC,YAAD,iFACG,IAAAG,kBAAA,EAAOJ,IAAP,kBACC,gCAAC,MAAD;QAAA,eAAoB;MAApB,IACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B;QAAA,OAAUA,IAAV;QAAA,OAAoB;MAApB,GAA3B,GAAwEA,IAD3E,CAFJ,eAME,gCAAC,QAAD,2BANF,CADF;IAUD;;;EAnBuBK,e;;iCAApBV,W,iBACiB,a;iCADjBA,W,WAEWW,K;;AAoBjB,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;EAAA;;EACvB,IAAMC,MAAM,GAE2BC,YAFvC;EACA,IAAQT,MAAR,GAAmBO,KAAnB,CAAQP,MAAR;EACA,eAAO,IAAAE,aAAA,EAAQF,MAAR,CAAP,eAAuB,gCAAC,MAAD,2EAAvB;AACD,CAJD;;AAMA,IAAMU,WAAW,GAAG,SAAdA,WAAc,CAACH,KAAD,EAAW;EAAA;EAAA;;EAC7B,IAAMI,YAAY,GAE2BF,YAF7C;EACA,IAAQT,MAAR,GAAmBO,KAAnB,CAAQP,MAAR;EACA,eAAO,IAAAE,aAAA,EAAQF,MAAR,CAAP,eAAuB,gCAAC,YAAD,iFAAvB;AACD,CAJD;;eAMe,IAAAY,gBAAA,EAAgBlB,WAAhB,EAA6B;EAC1CY,KAAK,EAALA,KAD0C;EAE1CI,WAAW,EAAXA;AAF0C,CAA7B,C"}
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -28,15 +28,15 @@ var style = (
|
|
|
28
28
|
/*__reshadow_css_start__*/
|
|
29
29
|
_sstyled.insert(
|
|
30
30
|
/*__inner_css_start__*/
|
|
31
|
-
".
|
|
31
|
+
".___SWidgetEmpty_9apqk_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x,16px)}.___SImage_9apqk_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_9apqk_gg_{color:var(--intergalactic-text-secondary,#6c6e79)}.___STitle_9apqk_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%);font-weight:var(--intergalactic-bold,700)}.___SDescription_9apqk_gg_{text-align:center;font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%);color:var(--intergalactic-text-secondary,#6c6e79);max-width:400px}.___STitle_9apqk_gg_+.___SDescription_9apqk_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_9apqk_gg_+.___SDescription_9apqk_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}"
|
|
32
32
|
/*__inner_css_end__*/
|
|
33
|
-
, "
|
|
33
|
+
, "9apqk_gg_")
|
|
34
34
|
/*__reshadow_css_end__*/
|
|
35
35
|
, {
|
|
36
|
-
"__SWidgetEmpty": "
|
|
37
|
-
"__SImage": "
|
|
38
|
-
"__STitle": "
|
|
39
|
-
"__SDescription": "
|
|
36
|
+
"__SWidgetEmpty": "___SWidgetEmpty_9apqk_gg_",
|
|
37
|
+
"__SImage": "___SImage_9apqk_gg_",
|
|
38
|
+
"__STitle": "___STitle_9apqk_gg_",
|
|
39
|
+
"__SDescription": "___SDescription_9apqk_gg_"
|
|
40
40
|
});
|
|
41
41
|
export var getIconPath = function getIconPath(name) {
|
|
42
42
|
return getIllustrationPath(name);
|
|
@@ -69,9 +69,7 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
69
69
|
"aria-hidden": "true"
|
|
70
70
|
}), typeof icon === 'string' ? /*#__PURE__*/React.createElement("img", _ref4.cn("img", {
|
|
71
71
|
"src": icon,
|
|
72
|
-
"alt": "widget empty icon"
|
|
73
|
-
"width": 100,
|
|
74
|
-
"height": 72
|
|
72
|
+
"alt": "widget empty icon"
|
|
75
73
|
})) : icon), /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {})));
|
|
76
74
|
}
|
|
77
75
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["React","createComponent","Component","sstyled","Root","getIllustrationPath","Box","Flex","isNode","getIconPath","name","WidgetEmpty","SWidgetEmpty","asProps","Children","icon","styles","SImage","style","Title","props","STitle","Description","SDescription"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\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}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ?
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["React","createComponent","Component","sstyled","Root","getIllustrationPath","Box","Flex","isNode","getIconPath","name","WidgetEmpty","SWidgetEmpty","asProps","Children","icon","styles","SImage","style","Title","props","STitle","Description","SDescription"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\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}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst 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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,OAArC,EAA8CC,IAA9C,QAA0D,eAA1D;AACA,SAASC,mBAAT,QAAoC,uBAApC;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,MAAP,MAAmB,2BAAnB;;;;;;;;;;;;;;;;;AAIA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAUL,mBAAmB,CAACK,IAAD,CAA7B;AAAA,CAApB;;IAEDC,W;;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,YAAY,GAKML,IALxB;MACA,oBAAmC,KAAKM,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,MAAxB,iBAAwBA,MAAxB;MACA,IAAMC,MAAM,GAAG,KAAf;MAEA,eAAOd,OAAO,CAACa,MAAD,CAAd,eACE,oBAAC,YAAD,uEACGR,MAAM,CAACO,IAAD,CAAN,iBACC,oBAAC,MAAD;QAAA,eAAoB;MAApB,IACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B;QAAA,OAAUA,IAAV;QAAA,OAAoB;MAApB,GAA3B,GAAwEA,IAD3E,CAFJ,eAME,oBAAC,QAAD,2BANF,CADF;IAUD;;;;EAnBuBb,S;;gBAApBS,W,iBACiB,a;;gBADjBA,W,WAEWO,K;;AAoBjB,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;EAAA;;EACvB,IAAMC,MAAM,GAE2Bf,GAFvC;EACA,IAAQU,MAAR,GAAmBI,KAAnB,CAAQJ,MAAR;EACA,eAAOb,OAAO,CAACa,MAAD,CAAd,eAAuB,oBAAC,MAAD,kEAAvB;AACD,CAJD;;AAMA,IAAMM,WAAW,GAAG,SAAdA,WAAc,CAACF,KAAD,EAAW;EAAA;EAAA;;EAC7B,IAAMG,YAAY,GAE2BjB,GAF7C;EACA,IAAQU,MAAR,GAAmBI,KAAnB,CAAQJ,MAAR;EACA,eAAOb,OAAO,CAACa,MAAD,CAAd,eAAuB,oBAAC,YAAD,wEAAvB;AACD,CAJD;;AAMA,eAAef,eAAe,CAACU,WAAD,EAAc;EAC1CQ,KAAK,EAALA,KAD0C;EAE1CG,WAAW,EAAXA;AAF0C,CAAd,CAA9B"}
|