@semcore/widget-empty 17.2.0-prerelease.7 → 17.2.1-prerelease.0
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 +8 -0
- package/lib/cjs/Error/{index.js → Error.js} +1 -1
- package/lib/cjs/Error/Error.js.map +1 -0
- package/lib/cjs/Error/Error.type.js +2 -0
- package/lib/cjs/Error/Error.type.js.map +1 -0
- package/lib/cjs/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/NoData/{index.js → NoData.js} +1 -1
- package/lib/cjs/NoData/NoData.js.map +1 -0
- package/lib/cjs/NoData/NoData.type.js +2 -0
- package/lib/cjs/NoData/NoData.type.js.map +1 -0
- package/lib/cjs/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/WidgetEmpty.js +5 -5
- package/lib/cjs/WidgetEmpty.js.map +1 -1
- package/lib/cjs/WidgetEmpty.type.js +2 -0
- package/lib/cjs/WidgetEmpty.type.js.map +1 -0
- package/lib/cjs/index.js +37 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/Error/{index.js → Error.js} +1 -1
- package/lib/es6/Error/Error.js.map +1 -0
- package/lib/es6/Error/Error.type.js +2 -0
- package/lib/es6/Error/Error.type.js.map +1 -0
- package/lib/es6/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/NoData/{index.js → NoData.js} +1 -1
- package/lib/es6/NoData/NoData.js.map +1 -0
- package/lib/es6/NoData/NoData.type.js +2 -0
- package/lib/es6/NoData/NoData.type.js.map +1 -0
- package/lib/es6/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/WidgetEmpty.js +5 -5
- package/lib/es6/WidgetEmpty.js.map +1 -1
- package/lib/es6/WidgetEmpty.type.js +2 -0
- package/lib/es6/WidgetEmpty.type.js.map +1 -0
- package/lib/es6/index.js +6 -4
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/Error/{index.mjs → Error.mjs} +2 -2
- package/lib/esm/Error/Error.type.mjs +1 -0
- package/lib/esm/NoData/{index.mjs → NoData.mjs} +2 -2
- package/lib/esm/NoData/NoData.type.mjs +1 -0
- package/lib/esm/WidgetEmpty.mjs +6 -6
- package/lib/esm/WidgetEmpty.type.mjs +1 -0
- package/lib/esm/index.mjs +5 -2
- package/lib/types/Error/Error.d.ts +8 -0
- package/lib/types/Error/Error.type.d.ts +18 -0
- package/lib/types/Error/translations/__intergalactic-dynamic-locales.d.ts +63 -0
- package/lib/types/NoData/NoData.d.ts +8 -0
- package/lib/types/NoData/NoData.type.d.ts +24 -0
- package/lib/types/NoData/translations/__intergalactic-dynamic-locales.d.ts +63 -0
- package/lib/types/WidgetEmpty.d.ts +10 -0
- package/lib/types/WidgetEmpty.type.d.ts +23 -0
- package/lib/types/index.d.ts +6 -38
- package/package.json +5 -5
- package/vite.config.ts +1 -1
- package/vitest.config.mts +17 -0
- package/lib/cjs/Error/index.js.map +0 -1
- package/lib/cjs/NoData/index.js.map +0 -1
- package/lib/cjs/index.d.js +0 -2
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/es6/Error/index.js.map +0 -1
- package/lib/es6/NoData/index.js.map +0 -1
- package/lib/es6/index.d.js +0 -2
- package/lib/es6/index.d.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [17.2.1] - 2026-06-25
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Incorrect processing of oklch values.
|
|
10
|
+
- Rewrite component to TS. Deprecate atomic types. Atomic types are part
|
|
11
|
+
of `NSWidgetEmpty/NSWidgetEmptyNoData/NSWidgetEmptyError` namespaces.
|
|
12
|
+
|
|
5
13
|
## [17.2.0] - 2026-06-05
|
|
6
14
|
|
|
7
15
|
### Changed
|
|
@@ -38,4 +38,4 @@ class Error extends _core.Component {
|
|
|
38
38
|
});
|
|
39
39
|
(0, _defineProperty2.default)(Error, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
|
|
40
40
|
var _default = exports.default = (0, _core.createComponent)(Error);
|
|
41
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=Error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Error.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/Error.tsx"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport type { NSWidgetEmptyError } from './Error.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmptyError.Component>,\n typeof Error.enhance,\n {},\n WithI18nEnhanceProps,\n {},\n NSWidgetEmptyError.DefaultProps\n> {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n } as const;\n\n static enhance = [i18nEnhance(localizedMessages)] as const;\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<NSWidgetEmptyError.Component, typeof Error>(Error);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,KAAK,SAASC,eAAS,CAO3B;EASAC,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,EA/BMR,KAAK,iBAQY,aAAa;AAAA,IAAAe,gBAAA,CAAAP,OAAA,EAR9BR,KAAK,kBASa;EACpBgB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,CAAAP,OAAA,EAZGR,KAAK,aAcQ,CAAC,IAAAmB,oBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAsBpC,IAAAc,qBAAe,EAA6CtB,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Error.type.js","names":[],"sources":["../../../src/Error/Error.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSWidgetEmpty } from '../WidgetEmpty.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSWidgetEmptyError {\n type Props = NSWidgetEmpty.Props &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetErrorProps = NSWidgetEmptyError.Props;\n\nexport type { NSWidgetEmptyError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoData.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/NoData.tsx"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport type { NSWidgetEmptyNoData } from './NoData.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmptyNoData.Component>,\n typeof NoData.enhance,\n {},\n WithI18nEnhanceProps,\n {},\n NSWidgetEmptyNoData.DefaultProps\n> {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n } as const;\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<NSWidgetEmptyNoData.Component, typeof NoData>(NoData);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,MAAM,SAASC,eAAS,CAO5B;EASAC,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;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAAW,gBAAA,CAAAP,OAAA,EA/BMT,MAAM,iBAQW,cAAc;AAAA,IAAAgB,gBAAA,CAAAP,OAAA,EAR/BT,MAAM,aASO,CAAC,IAAAiB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAP,OAAA,EAT7CT,MAAM,kBAUY;EACpBmB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZd,IAAI,EAAE;AACR,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAsBY,IAAAc,qBAAe,EAA+CvB,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoData.type.js","names":[],"sources":["../../../src/NoData/NoData.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nimport type { NSWidgetEmpty } from '../WidgetEmpty.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSWidgetEmptyNoData {\n type Props = NSWidgetEmpty.Props & WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: TIllustrationNamesWidgetEmpty;\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n type: 'other-data';\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetNoDataProps = NSWidgetEmptyNoData.Props;\n/** @deprecated It will be removed in v18. */\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport type { NSWidgetEmptyNoData };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -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__*/".
|
|
15
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_1bc8q_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_1bc8q_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_1bc8q_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)}@media (color-gamut:p3){.___STitle_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___SDescription_1bc8q_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}@media (color-gamut:p3){.___SDescription_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___STitle_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}", /*__inner_css_end__*/"1bc8q_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SWidgetEmpty": "
|
|
19
|
-
"__SImage": "
|
|
20
|
-
"__STitle": "
|
|
21
|
-
"__SDescription": "
|
|
18
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1bc8q_gg_",
|
|
19
|
+
"__SImage": "___SImage_1bc8q_gg_",
|
|
20
|
+
"__STitle": "___STitle_1bc8q_gg_",
|
|
21
|
+
"__SDescription": "___SDescription_1bc8q_gg_"
|
|
22
22
|
});
|
|
23
23
|
const getIconPath = name => (0, _illustration.getIllustrationPath)(name);
|
|
24
24
|
exports.getIconPath = getIconPath;
|
|
@@ -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.
|
|
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.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\nimport type { NSWidgetEmpty } from './WidgetEmpty.type';\n\nexport const getIconPath = (name: TIllustrationNamesWidgetEmpty) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Component>\n> {\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: Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Title.Component>) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Description.Component>) {\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<NSWidgetEmpty.Component, typeof WidgetEmpty>(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,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;AAKnB,MAAMC,WAAW,GAAIC,IAAmC,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAE9F,MAAMI,WAAW,SAASC,eAAS,CAEjC;EAIAC,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,QAAAR,KAAA,CAAAS,EAAA;MAAA,OAAUL,IAAI;MAAA,OAAM;IAAE,EAAE,CAAC,GAAGA,IAClD,CACT,eACDjB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACL,QAAQ,EAAAH,KAAA,CAAAS,EAAA,gBAAE,CACC,CAAC;EAEnB;AACF;AAAC,IAAAG,gBAAA,CAAAL,OAAA,EAtBKZ,WAAW,iBAGM,aAAa;AAAA,IAAAiB,gBAAA,CAAAL,OAAA,EAH9BZ,WAAW,WAIAP,KAAK;AAoBtB,SAASyB,KAAKA,CAACC,KAAuF,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACtG,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,KAA6F,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAClH,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,EAA8C9B,WAAW,EAAE;EACvFkB,KAAK;EACLO;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.type.js","names":[],"sources":["../../src/WidgetEmpty.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSWidgetEmpty {\n type Props = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n };\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props> & {\n Title: Title.Component;\n Description: Description.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetEmptyProps = NSWidgetEmpty.Props;\n\nexport type { NSWidgetEmpty };\n"],"mappings":"","ignoreList":[]}
|
package/lib/cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
var _exportNames = {
|
|
9
|
+
getIconPath: true,
|
|
9
10
|
NoData: true,
|
|
10
11
|
Error: true
|
|
11
12
|
};
|
|
@@ -27,18 +28,49 @@ Object.defineProperty(exports, "default", {
|
|
|
27
28
|
return _WidgetEmpty.default;
|
|
28
29
|
}
|
|
29
30
|
});
|
|
31
|
+
Object.defineProperty(exports, "getIconPath", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _WidgetEmpty.getIconPath;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
30
37
|
var _WidgetEmpty = _interopRequireWildcard(require("./WidgetEmpty"));
|
|
31
|
-
|
|
38
|
+
var _NoData = _interopRequireDefault(require("./NoData/NoData"));
|
|
39
|
+
var _Error = _interopRequireDefault(require("./Error/Error"));
|
|
40
|
+
var _WidgetEmpty2 = require("./WidgetEmpty.type");
|
|
41
|
+
Object.keys(_WidgetEmpty2).forEach(function (key) {
|
|
42
|
+
if (key === "default" || key === "__esModule") return;
|
|
43
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
44
|
+
if (key in exports && exports[key] === _WidgetEmpty2[key]) return;
|
|
45
|
+
Object.defineProperty(exports, key, {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return _WidgetEmpty2[key];
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
var _NoData2 = require("./NoData/NoData.type");
|
|
53
|
+
Object.keys(_NoData2).forEach(function (key) {
|
|
54
|
+
if (key === "default" || key === "__esModule") return;
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
56
|
+
if (key in exports && exports[key] === _NoData2[key]) return;
|
|
57
|
+
Object.defineProperty(exports, key, {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () {
|
|
60
|
+
return _NoData2[key];
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
var _Error2 = require("./Error/Error.type");
|
|
65
|
+
Object.keys(_Error2).forEach(function (key) {
|
|
32
66
|
if (key === "default" || key === "__esModule") return;
|
|
33
67
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
34
|
-
if (key in exports && exports[key] ===
|
|
68
|
+
if (key in exports && exports[key] === _Error2[key]) return;
|
|
35
69
|
Object.defineProperty(exports, key, {
|
|
36
70
|
enumerable: true,
|
|
37
71
|
get: function () {
|
|
38
|
-
return
|
|
72
|
+
return _Error2[key];
|
|
39
73
|
}
|
|
40
74
|
});
|
|
41
75
|
});
|
|
42
|
-
var _NoData = _interopRequireDefault(require("./NoData"));
|
|
43
|
-
var _Error = _interopRequireDefault(require("./Error"));
|
|
44
76
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_WidgetEmpty","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_WidgetEmpty","_interopRequireWildcard","require","_NoData","_interopRequireDefault","_Error","_WidgetEmpty2","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_NoData2","_Error2"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, getIconPath } from './WidgetEmpty';\nexport { default as NoData } from './NoData/NoData';\nexport { default as Error } from './Error/Error';\n\nexport * from './WidgetEmpty.type';\nexport * from './NoData/NoData.type';\nexport * from './Error/Error.type';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,aAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,aAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,aAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,QAAA,GAAAjB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAW,QAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,QAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,OAAA,GAAAlB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAY,OAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAU,OAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,OAAA,CAAAV,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Error.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/Error.tsx"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport type { NSWidgetEmptyError } from './Error.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmptyError.Component>,\n typeof Error.enhance,\n {},\n WithI18nEnhanceProps,\n {},\n NSWidgetEmptyError.DefaultProps\n> {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n } as const;\n\n static enhance = [i18nEnhance(localizedMessages)] as const;\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<NSWidgetEmptyError.Component, typeof Error>(Error);\n"],"mappings":";;AACA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAEhE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AAEzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,KAAK,SAASP,SAAS,CAO3B;EASAQ,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,CA/BMX,KAAK,iBAQY,aAAa;AAAAW,eAAA,CAR9BX,KAAK,kBASa;EACpBY,IAAI,EAAEb,iBAAiB;EACvBc,MAAM,EAAE;AACV,CAAC;AAAAF,eAAA,CAZGX,KAAK,aAcQ,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAsBnD,eAAeP,eAAe,CAA6CQ,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Error.type.js","names":[],"sources":["../../../src/Error/Error.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSWidgetEmpty } from '../WidgetEmpty.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSWidgetEmptyError {\n type Props = NSWidgetEmpty.Props &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetErrorProps = NSWidgetEmptyError.Props;\n\nexport type { NSWidgetEmptyError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoData.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/NoData.tsx"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport type { NSWidgetEmptyNoData } from './NoData.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmptyNoData.Component>,\n typeof NoData.enhance,\n {},\n WithI18nEnhanceProps,\n {},\n NSWidgetEmptyNoData.DefaultProps\n> {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n } as const;\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<NSWidgetEmptyNoData.Component, typeof NoData>(NoData);\n"],"mappings":";;AACA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAEhE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AAEzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,MAAM,SAASP,SAAS,CAO5B;EASAQ,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,CA/BMZ,MAAM,iBAQW,cAAc;AAAAY,eAAA,CAR/BZ,MAAM,aASO,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAT7CZ,MAAM,kBAUY;EACpBa,IAAI,EAAEd,iBAAiB;EACvBe,MAAM,EAAE,IAAI;EACZT,IAAI,EAAE;AACR,CAAC;AAsBH,eAAeb,eAAe,CAA+CQ,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoData.type.js","names":[],"sources":["../../../src/NoData/NoData.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nimport type { NSWidgetEmpty } from '../WidgetEmpty.type';\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSWidgetEmptyNoData {\n type Props = NSWidgetEmpty.Props & WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: TIllustrationNamesWidgetEmpty;\n };\n type DefaultProps = {\n i18n: LocalizedMessages;\n locale: 'en';\n type: 'other-data';\n };\n\n type Component = Intergalactic.Component<'div', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetNoDataProps = NSWidgetEmptyNoData.Props;\n/** @deprecated It will be removed in v18. */\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport type { NSWidgetEmptyNoData };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n\nexport type LocalizedMessages = typeof localizedMessages;\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bf,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFN,EAAE;EACFG;AACF,CAAC","ignoreList":[]}
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -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__*/".
|
|
12
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_1bc8q_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_1bc8q_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_1bc8q_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)}@media (color-gamut:p3){.___STitle_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___SDescription_1bc8q_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}@media (color-gamut:p3){.___SDescription_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___STitle_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}", /*__inner_css_end__*/"1bc8q_gg_"),
|
|
13
13
|
/*__reshadow_css_end__*/
|
|
14
14
|
{
|
|
15
|
-
"__SWidgetEmpty": "
|
|
16
|
-
"__SImage": "
|
|
17
|
-
"__STitle": "
|
|
18
|
-
"__SDescription": "
|
|
15
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1bc8q_gg_",
|
|
16
|
+
"__SImage": "___SImage_1bc8q_gg_",
|
|
17
|
+
"__STitle": "___STitle_1bc8q_gg_",
|
|
18
|
+
"__SDescription": "___SDescription_1bc8q_gg_"
|
|
19
19
|
});
|
|
20
20
|
export const getIconPath = name => getIllustrationPath(name);
|
|
21
21
|
class WidgetEmpty extends Component {
|
|
@@ -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.
|
|
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.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/widget-empty.shadow.css';\nimport type { NSWidgetEmpty } from './WidgetEmpty.type';\n\nexport const getIconPath = (name: TIllustrationNamesWidgetEmpty) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Component>\n> {\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: Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Title.Component>) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSWidgetEmpty.Description.Component>) {\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<NSWidgetEmpty.Component, typeof WidgetEmpty>(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AAEpD,SAASC,eAAe,EAAEC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,gCAAgC;AAEnD,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAK1B,OAAO,MAAMC,WAAW,GAAIC,IAAmC,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAE7F,MAAMC,WAAW,SAASX,SAAS,CAEjC;EAIAY,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,CAtBKb,WAAW,iBAGM,aAAa;AAAAa,eAAA,CAH9Bb,WAAW,WAIAL,KAAK;AAoBtB,SAASmB,KAAKA,CAACC,KAAuF,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACtG,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,KAA6F,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAClH,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,CAA8CY,WAAW,EAAE;EACvFc,KAAK;EACLO;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.type.js","names":[],"sources":["../../src/WidgetEmpty.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSWidgetEmpty {\n type Props = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n };\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props> & {\n Title: Title.Component;\n Description: Description.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type WidgetEmptyProps = NSWidgetEmpty.Props;\n\nexport type { NSWidgetEmpty };\n"],"mappings":"","ignoreList":[]}
|
package/lib/es6/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { default } from './WidgetEmpty';
|
|
2
|
-
export
|
|
3
|
-
export { default as
|
|
4
|
-
export
|
|
1
|
+
export { default, getIconPath } from './WidgetEmpty';
|
|
2
|
+
export { default as NoData } from './NoData/NoData';
|
|
3
|
+
export { default as Error } from './Error/Error';
|
|
4
|
+
export * from './WidgetEmpty.type';
|
|
5
|
+
export * from './NoData/NoData.type';
|
|
6
|
+
export * from './Error/Error.type';
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","NoData","Error"],"sources":["../../src/index.
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","getIconPath","NoData","Error"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, getIconPath } from './WidgetEmpty';\nexport { default as NoData } from './NoData/NoData';\nexport { default as Error } from './Error/Error';\n\nexport * from './WidgetEmpty.type';\nexport * from './NoData/NoData.type';\nexport * from './Error/Error.type';\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,eAAe;AACpD,SAASD,OAAO,IAAIE,MAAM,QAAQ,iBAAiB;AACnD,SAASF,OAAO,IAAIG,KAAK,QAAQ,eAAe;AAEhD,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AACpC,cAAc,oBAAoB","ignoreList":[]}
|
|
@@ -23,7 +23,7 @@ _defineProperty(Error, "defaultProps", {
|
|
|
23
23
|
locale: "en"
|
|
24
24
|
});
|
|
25
25
|
_defineProperty(Error, "enhance", [i18nEnhance(localizedMessages)]);
|
|
26
|
-
const
|
|
26
|
+
const Error_default = createComponent(Error);
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
Error_default as default
|
|
29
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/esm/WidgetEmpty.mjs
CHANGED
|
@@ -9,15 +9,15 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
".
|
|
12
|
+
".___SWidgetEmpty_1bc8q_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_1bc8q_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x,12px)}.___STitle_1bc8q_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)}@media (color-gamut:p3){.___STitle_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___SDescription_1bc8q_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}@media (color-gamut:p3){.___SDescription_1bc8q_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___STitle_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SDescription_1bc8q_gg_+.___SDescription_1bc8q_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}",
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"1bc8q_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SWidgetEmpty": "
|
|
18
|
-
"__SImage": "
|
|
19
|
-
"__STitle": "
|
|
20
|
-
"__SDescription": "
|
|
17
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1bc8q_gg_",
|
|
18
|
+
"__SImage": "___SImage_1bc8q_gg_",
|
|
19
|
+
"__STitle": "___STitle_1bc8q_gg_",
|
|
20
|
+
"__SDescription": "___SDescription_1bc8q_gg_"
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
23
|
const getIconPath = (name) => getIllustrationPath(name);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as default2, getIconPath } from "./WidgetEmpty.mjs";
|
|
2
|
-
import { default as default3 } from "./NoData/
|
|
3
|
-
import { default as default4 } from "./Error/
|
|
2
|
+
import { default as default3 } from "./NoData/NoData.mjs";
|
|
3
|
+
import { default as default4 } from "./Error/Error.mjs";
|
|
4
|
+
import "./WidgetEmpty.type.mjs";
|
|
5
|
+
import "./NoData/NoData.type.mjs";
|
|
6
|
+
import "./Error/Error.type.mjs";
|
|
4
7
|
export {
|
|
5
8
|
default4 as Error,
|
|
6
9
|
default3 as NoData,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NSWidgetEmptyError } from './Error.type';
|
|
2
|
+
/**
|
|
3
|
+
* WidgetEmpty Error
|
|
4
|
+
*
|
|
5
|
+
* {@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}
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: NSWidgetEmptyError.Component;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSWidgetEmpty } from '../WidgetEmpty.type';
|
|
4
|
+
import type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
5
|
+
declare namespace NSWidgetEmptyError {
|
|
6
|
+
type Props = NSWidgetEmpty.Props & WithI18nEnhanceProps & {
|
|
7
|
+
/** Error description. If it is absent, use the local default one */
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type DefaultProps = {
|
|
11
|
+
i18n: LocalizedMessages;
|
|
12
|
+
locale: 'en';
|
|
13
|
+
};
|
|
14
|
+
type Component = Intergalactic.Component<'div', Props>;
|
|
15
|
+
}
|
|
16
|
+
/** @deprecated It will be removed in v18. */
|
|
17
|
+
export type WidgetErrorProps = NSWidgetEmptyError.Props;
|
|
18
|
+
export type { NSWidgetEmptyError };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
en: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
es: {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
fr: {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
it: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
ja: {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
ko: {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
nl: {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
pt: {
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
ru: {
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
tr: {
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
vi: {
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
zh: {
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
pl: {
|
|
55
|
+
title: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
sv: {
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type LocalizedMessages = typeof localizedMessages;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NSWidgetEmptyNoData } from './NoData.type';
|
|
2
|
+
/**
|
|
3
|
+
* WidgetEmpty NoData
|
|
4
|
+
*
|
|
5
|
+
* {@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}
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: NSWidgetEmptyNoData.Component;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
4
|
+
import type { NSWidgetEmpty } from '../WidgetEmpty.type';
|
|
5
|
+
import type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
6
|
+
declare namespace NSWidgetEmptyNoData {
|
|
7
|
+
type Props = NSWidgetEmpty.Props & WithI18nEnhanceProps & {
|
|
8
|
+
/** Error description. If it is absent, use the local default one */
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
/** Data types */
|
|
11
|
+
type?: TIllustrationNamesWidgetEmpty;
|
|
12
|
+
};
|
|
13
|
+
type DefaultProps = {
|
|
14
|
+
i18n: LocalizedMessages;
|
|
15
|
+
locale: 'en';
|
|
16
|
+
type: 'other-data';
|
|
17
|
+
};
|
|
18
|
+
type Component = Intergalactic.Component<'div', Props>;
|
|
19
|
+
}
|
|
20
|
+
/** @deprecated It will be removed in v18. */
|
|
21
|
+
export type WidgetNoDataProps = NSWidgetEmptyNoData.Props;
|
|
22
|
+
/** @deprecated It will be removed in v18. */
|
|
23
|
+
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
24
|
+
export type { NSWidgetEmptyNoData };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
en: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
es: {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
fr: {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
it: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
ja: {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
ko: {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
nl: {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
pt: {
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
ru: {
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
tr: {
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
vi: {
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
zh: {
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
pl: {
|
|
55
|
+
title: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
sv: {
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type LocalizedMessages = typeof localizedMessages;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
2
|
+
import type { NSWidgetEmpty } from './WidgetEmpty.type';
|
|
3
|
+
export declare const getIconPath: (name: TIllustrationNamesWidgetEmpty) => string;
|
|
4
|
+
/**
|
|
5
|
+
* WidgetEmpty
|
|
6
|
+
*
|
|
7
|
+
* {@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}
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: NSWidgetEmpty.Component;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Box, FlexProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
declare namespace NSWidgetEmpty {
|
|
4
|
+
type Props = FlexProps & {
|
|
5
|
+
/**
|
|
6
|
+
* URL before the icon or the whole component
|
|
7
|
+
*/
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
namespace Title {
|
|
11
|
+
type Component = typeof Box;
|
|
12
|
+
}
|
|
13
|
+
namespace Description {
|
|
14
|
+
type Component = typeof Box;
|
|
15
|
+
}
|
|
16
|
+
type Component = Intergalactic.Component<'div', Props> & {
|
|
17
|
+
Title: Title.Component;
|
|
18
|
+
Description: Description.Component;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** @deprecated It will be removed in v18. */
|
|
22
|
+
export type WidgetEmptyProps = NSWidgetEmpty.Props;
|
|
23
|
+
export type { NSWidgetEmpty };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
export type WidgetEmptyProps = FlexProps & {
|
|
9
|
-
/**
|
|
10
|
-
* URL before the icon or the whole component
|
|
11
|
-
*/
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type WidgetErrorProps = WidgetEmptyProps &
|
|
16
|
-
WithI18nEnhanceProps & {
|
|
17
|
-
/** Error description. If it is absent, use the local default one */
|
|
18
|
-
description?: React.ReactNode;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type WidgetNoDataProps = WidgetEmptyProps &
|
|
22
|
-
WithI18nEnhanceProps & {
|
|
23
|
-
/** Error description. If it is absent, use the local default one */
|
|
24
|
-
description?: React.ReactNode;
|
|
25
|
-
/** Data types */
|
|
26
|
-
type?: iconNamesWidgetEmpty;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
declare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {
|
|
30
|
-
Title: typeof Box;
|
|
31
|
-
Description: typeof Box;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;
|
|
35
|
-
export declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;
|
|
36
|
-
export declare const getIconPath: (name: string) => string;
|
|
37
|
-
|
|
38
|
-
export default WidgetEmpty;
|
|
1
|
+
export { default, getIconPath } from './WidgetEmpty';
|
|
2
|
+
export { default as NoData } from './NoData/NoData';
|
|
3
|
+
export { default as Error } from './Error/Error';
|
|
4
|
+
export * from './WidgetEmpty.type';
|
|
5
|
+
export * from './NoData/NoData.type';
|
|
6
|
+
export * from './Error/Error.type';
|
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.2.
|
|
4
|
+
"version": "17.2.1-prerelease.0",
|
|
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.2.
|
|
20
|
+
"@semcore/base-components": "^17.2.1"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"directory": "semcore/widget-empty"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@semcore/core": "17.2.
|
|
29
|
-
"@semcore/base-components": "17.2.
|
|
28
|
+
"@semcore/core": "17.2.1-prerelease.0",
|
|
29
|
+
"@semcore/base-components": "17.2.1-prerelease.0",
|
|
30
30
|
"@semcore/testing-utils": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "pnpm semcore-builder
|
|
33
|
+
"build": "pnpm semcore-builder && pnpm vite build"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/vite.config.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { resolve as resolvePath } from 'node:path';
|
|
2
|
+
|
|
3
|
+
import { defineConfig } from 'vitest/config';
|
|
4
|
+
|
|
5
|
+
import { vitestPlugins, vitestResolve } from '../../vitest.config.mts';
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: vitestPlugins,
|
|
9
|
+
resolve: vitestResolve,
|
|
10
|
+
test: {
|
|
11
|
+
include: [
|
|
12
|
+
'__tests__/**/*.test.tsx',
|
|
13
|
+
],
|
|
14
|
+
environment: 'jsdom',
|
|
15
|
+
setupFiles: [resolvePath(__dirname, '../../tools/testing-utils/setupTests')],
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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,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;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAAW,gBAAA,CAAAP,OAAA,EAxBMT,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,GAsBY,IAAAc,qBAAe,EAACvB,MAAM,CAAC","ignoreList":[]}
|
package/lib/cjs/index.d.js
DELETED
package/lib/cjs/index.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\nexport type WidgetNoDataProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: iconNamesWidgetEmpty;\n };\n\ndeclare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {\n Title: typeof Box;\n Description: typeof Box;\n};\n\nexport declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;\nexport declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/lib/es6/index.d.js
DELETED
package/lib/es6/index.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\nexport type WidgetNoDataProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: iconNamesWidgetEmpty;\n };\n\ndeclare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {\n Title: typeof Box;\n Description: typeof Box;\n};\n\nexport declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;\nexport declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":"","ignoreList":[]}
|