@antscorp/antsomi-ui 1.3.5-beta.174 → 1.3.5-beta.176
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/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +2 -1
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +2 -2
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +1 -1
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +1 -1
- package/es/components/organism/PreviewTemplateModal/index.js +2 -1
- package/es/components/template/TemplateListing/components/CategoryListing/index.js +1 -1
- package/es/providers/index.d.ts +1 -0
- package/es/providers/index.js +1 -0
- package/package.json +1 -1
- package/es/components/organism/PreviewTemplateModal/providers/index.d.ts +0 -1
- package/es/components/organism/PreviewTemplateModal/providers/index.js +0 -1
- /package/es/{components/organism/PreviewTemplateModal/providers → providers}/AntdConfigProviderV2.d.ts +0 -0
- /package/es/{components/organism/PreviewTemplateModal/providers → providers}/AntdConfigProviderV2.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
// Images
|
|
3
3
|
import skeletonBackground from '../../../../../assets/images/background/skeleton-background.png';
|
|
4
|
-
|
|
4
|
+
// Providers
|
|
5
|
+
import { globalToken } from '@antscorp/antsomi-ui/es/providers';
|
|
5
6
|
const THUMBNAIL_CARD_RADIUS = 5;
|
|
6
7
|
export const BannerWrapper = styled.div `
|
|
7
8
|
width: 100%;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
// Components
|
|
4
4
|
import { Button, Flex } from '../../../../atoms';
|
|
5
|
-
|
|
5
|
+
// Providers
|
|
6
|
+
import { globalToken } from '@antscorp/antsomi-ui/es/providers';
|
|
6
7
|
export const InformationWrapper = styled(Flex) `
|
|
7
8
|
width: 300px;
|
|
8
9
|
flex-shrink: 0;
|
|
@@ -46,7 +47,6 @@ export const InformationWrapper = styled(Flex) `
|
|
|
46
47
|
`;
|
|
47
48
|
export const CheckboxButton = styled(Button) `
|
|
48
49
|
color: ${globalToken.colorText} !important;
|
|
49
|
-
font-weight: 400 !important;
|
|
50
50
|
|
|
51
51
|
${p => p.$active &&
|
|
52
52
|
css `
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
// Components
|
|
4
4
|
import { Flex } from '../../../../atoms';
|
|
5
5
|
// Providers
|
|
6
|
-
import { globalToken } from '
|
|
6
|
+
import { globalToken } from '@antscorp/antsomi-ui/es/providers';
|
|
7
7
|
export const SimilarTemplateWrapper = styled(Flex) `
|
|
8
8
|
margin-top: 15px;
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
3
|
+
import { globalToken } from '@antscorp/antsomi-ui/es/providers';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { SwiperSlide } from 'swiper/react';
|
|
5
|
-
import { globalToken } from '../../providers';
|
|
6
6
|
export const ThumbnailSliderWrapper = styled.div `
|
|
7
7
|
width: 100%;
|
|
8
8
|
display: flex;
|
|
@@ -18,7 +18,8 @@ import { Banner, Information, SimilarTemplate, ThumbnailSlider } from './compone
|
|
|
18
18
|
import { ModalContainer, ModalWrapper } from './styled';
|
|
19
19
|
// Constants
|
|
20
20
|
import { DEVICE_TYPE, SIMILAR_TEMPLATE_DEFAULT, THUMBNAIL_DEFAULT } from './constants';
|
|
21
|
-
|
|
21
|
+
// Providers
|
|
22
|
+
import { AntdConfigProviderV2 } from '@antscorp/antsomi-ui/es/providers';
|
|
22
23
|
export const PreviewTemplateModal = memo(props => {
|
|
23
24
|
const { bannerProps, thumbnailProps = THUMBNAIL_DEFAULT, similarTemplateProps = SIMILAR_TEMPLATE_DEFAULT, informationProps, loading = false } = props, restOfProps = __rest(props, ["bannerProps", "thumbnailProps", "similarTemplateProps", "informationProps", "loading"]);
|
|
24
25
|
// States
|
|
@@ -120,7 +120,7 @@ export const CategoryListing = memo(props => {
|
|
|
120
120
|
});
|
|
121
121
|
return menuItems;
|
|
122
122
|
}, [getItem, items]);
|
|
123
|
-
return (show && !isEmpty(menuItems)) || header ? (React.createElement(MenuWrapper, { "$width": width },
|
|
123
|
+
return (show && !isEmpty(menuItems)) || header || loading ? (React.createElement(MenuWrapper, { "$width": width },
|
|
124
124
|
header,
|
|
125
125
|
React.createElement("div", { className: "category__listing" },
|
|
126
126
|
React.createElement(Spin, { spinning: loading, wrapperClassName: "template-listing__loading" },
|
package/es/providers/index.d.ts
CHANGED
package/es/providers/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AntdConfigProviderV2';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AntdConfigProviderV2';
|
|
File without changes
|
/package/es/{components/organism/PreviewTemplateModal/providers → providers}/AntdConfigProviderV2.js
RENAMED
|
File without changes
|