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

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.
@@ -275,7 +275,11 @@ export const MatchesAnySelect = props => {
275
275
  onChange(selectedItems);
276
276
  setState(prev => (Object.assign(Object.assign({}, prev), { isOpenPopover: false })));
277
277
  };
278
- return (React.createElement(Popover, { open: isOpenPopover, arrow: false, placement: "bottomLeft", content: React.createElement(MatchesAny, { className: popupClassName, items: items, selectedItems: selectedItems, loading: loading, objectName: objectName, onApply: onApplyMatchesAny, onCancel: () => setState(prev => (Object.assign(Object.assign({}, prev), { isOpenPopover: false }))), onLoadMore: onLoadMore }), overlayStyle: { width: 700 }, overlayInnerStyle: {
278
+ return (React.createElement(Popover, { open: isOpenPopover, arrow: false, placement: "bottomLeft", content: React.createElement(MatchesAny, { className: popupClassName, items: items, selectedItems: selectedItems, loading: loading, objectName: objectName, onApply: onApplyMatchesAny, onCancel: () => setState(prev => (Object.assign(Object.assign({}, prev), { isOpenPopover: false }))), onLoadMore: onLoadMore }), align: {
279
+ overflow: {
280
+ shiftY: 0,
281
+ },
282
+ }, overlayStyle: { width: 700 }, overlayInnerStyle: {
279
283
  padding: 0,
280
284
  }, trigger: ['click'], destroyTooltipOnHide: true, onOpenChange: () => setState(prev => (Object.assign(Object.assign({}, prev), { isOpenPopover: !isOpenPopover }))) },
281
285
  React.createElement(Tooltip, { mouseEnterDelay: 0.5, title: `${selectedItems ? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map(item => item.title).join(', ') : ''}` },
@@ -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.558",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",