@antscorp/antsomi-ui 1.3.5-beta.556 → 1.3.5-beta.557

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.
@@ -13,9 +13,9 @@ var __rest = (this && this.__rest) || function (s, e) {
13
13
  // Libraries
14
14
  import React, { memo, useMemo, useState } from 'react';
15
15
  // Components
16
- import { CategoryListing, BlankTemplate, Empty } from './components';
16
+ import { CategoryListing, BlankTemplate } from './components';
17
17
  import { Scrollbars, Spin } from '@antscorp/antsomi-ui/es/components/atoms';
18
- import { ThumbnailCard } from '@antscorp/antsomi-ui/es/components/molecules';
18
+ import { EmptyData, ThumbnailCard } from '@antscorp/antsomi-ui/es/components/molecules';
19
19
  import { PreviewTemplateModal } from '../../organism/PreviewTemplateModal';
20
20
  // Constants
21
21
  import { BLANK_TEMPLATE_DEFAULT, TEMPLATE_ITEM_DEFAULT,
@@ -82,7 +82,7 @@ export const TemplateListing = memo(props => {
82
82
  index === items.length - 2 && React.createElement(LoadMoreBlock, { ref: loadMoreRef }),
83
83
  React.createElement(ThumbnailCard, Object.assign({ id: id || 0, name: name || 'Untitled', loading: loading, width: width * ratio, height: height * ratio, thumbnail: thumbnail, className: `${templateItemProps.className}`, thumbnailCacheValue: thumbnailCacheValue, previewBtnProps: Object.assign(Object.assign({}, previewBtnProps), { onClick: handleClickThumbnailPreview }) }, restOfTemplateItemProps))));
84
84
  }))),
85
- !loading && !blankTemplateProps.show && !isHasData && React.createElement(Empty, Object.assign({}, emptyProps)))),
85
+ !loading && !blankTemplateProps.show && !isHasData && (React.createElement(EmptyData, { icon: emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.icon, title: emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.description })))),
86
86
  footer),
87
87
  React.createElement(PreviewTemplateModal, Object.assign({ open: openPreviewModal, onOk: handleOkPreviewModal, onCancel: handleCancelPreviewModal }, restOfPreviewModalProps))));
88
88
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.556",
3
+ "version": "1.3.5-beta.557",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",