@antscorp/antsomi-ui 1.3.5-beta.131 → 1.3.5-beta.134
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.
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Tabs as AntdTabs } from 'antd';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const Tabs = styled(AntdTabs) `
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 1;
|
|
6
|
+
|
|
4
7
|
> .antsomi-tabs-nav {
|
|
5
8
|
${({ shadow }) => (shadow ? 'box-shadow: 0px 3px 3px 0px #002E591A;' : '')}
|
|
6
9
|
}
|
|
@@ -28,5 +28,8 @@ export const SimilarTemplate = memo(props => {
|
|
|
28
28
|
return show ? (React.createElement(SimilarTemplateWrapper, { gap: 15, vertical: true },
|
|
29
29
|
React.createElement("div", { className: "title" }, "Similar templates"),
|
|
30
30
|
isEmpty(similarTemplates) ? (React.createElement(Flex, { justify: "center", align: "center", style: { height } },
|
|
31
|
-
React.createElement(Empty, null))) : (React.createElement(TemplateListWrapper, { templateQuantity: MAX_QUANTITY_TEMPLATES }, (_a = similarTemplates.slice(0, MAX_QUANTITY_TEMPLATES)) === null || _a === void 0 ? void 0 : _a.map((
|
|
31
|
+
React.createElement(Empty, null))) : (React.createElement(TemplateListWrapper, { templateQuantity: MAX_QUANTITY_TEMPLATES }, (_a = similarTemplates.slice(0, MAX_QUANTITY_TEMPLATES)) === null || _a === void 0 ? void 0 : _a.map((item, idx) => {
|
|
32
|
+
const { id, name, thumbnail } = item || {};
|
|
33
|
+
return (React.createElement(ThumbnailCard, Object.assign({ key: id, id: id || idx, name: name, width: width, height: height, thumbnail: thumbnail, actionAvailable: false }, restOfSimilarCardProps)));
|
|
34
|
+
}))))) : null;
|
|
32
35
|
});
|
|
@@ -23,7 +23,7 @@ export type ThumbnailProps = Omit<ThumbnailCardProps, 'id' | 'name' | 'thumbnail
|
|
|
23
23
|
};
|
|
24
24
|
export interface SimilarTemplateProps {
|
|
25
25
|
show?: boolean;
|
|
26
|
-
similarTemplates?: TTemplateItem[];
|
|
26
|
+
similarTemplates?: (TTemplateItem | undefined)[];
|
|
27
27
|
similarCardProps?: Omit<ThumbnailCardProps, 'id' | 'name' | 'thumbnail'>;
|
|
28
28
|
}
|
|
29
29
|
export interface InformationProps {
|