@antscorp/antsomi-ui 1.3.5-beta.329 → 1.3.5-beta.330

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.
Files changed (29) hide show
  1. package/es/components/atoms/Spin/Spin.d.ts +2 -0
  2. package/es/components/atoms/Spin/Spin.js +8 -7
  3. package/es/components/atoms/Spin/styled.js +9 -0
  4. package/es/components/icons/LoadingIcon.d.ts +5 -0
  5. package/es/components/icons/LoadingIcon.js +18 -0
  6. package/es/components/icons/index.d.ts +1 -0
  7. package/es/components/icons/index.js +1 -0
  8. package/es/components/molecules/Dropdown/Dropdown.d.ts +3 -0
  9. package/es/components/molecules/Dropdown/Dropdown.js +41 -0
  10. package/es/components/molecules/Dropdown/index.d.ts +2 -1
  11. package/es/components/molecules/Dropdown/index.js +1 -1
  12. package/es/components/molecules/Dropdown/styled.d.ts +6 -0
  13. package/es/components/molecules/Dropdown/styled.js +33 -0
  14. package/es/components/molecules/Dropdown/types.d.ts +4 -0
  15. package/es/components/molecules/Dropdown/types.js +1 -0
  16. package/es/components/molecules/ProcessLoading/ProcessLoading.d.ts +13 -0
  17. package/es/components/molecules/ProcessLoading/ProcessLoading.js +75 -0
  18. package/es/components/molecules/ProcessLoading/index.d.ts +2 -0
  19. package/es/components/molecules/ProcessLoading/index.js +1 -0
  20. package/es/components/molecules/ProcessLoading/styled.d.ts +2 -0
  21. package/es/components/molecules/ProcessLoading/styled.js +5 -0
  22. package/es/components/molecules/ThumbnailCard/ThumbnailCard.js +11 -5
  23. package/es/components/molecules/ThumbnailCard/types.d.ts +9 -7
  24. package/es/components/molecules/index.d.ts +4 -3
  25. package/es/components/molecules/index.js +3 -2
  26. package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +1 -1
  27. package/es/components/template/TemplateListing/types/TemplateListing.d.ts +1 -1
  28. package/es/constants/theme.js +1 -0
  29. package/package.json +1 -1
@@ -3,6 +3,8 @@ import { SpinProps as AntdSpinProps } from 'antd';
3
3
  export interface TSpinProps extends AntdSpinProps {
4
4
  indicatorSize?: number;
5
5
  children?: any;
6
+ showIndicatorBackground?: boolean;
7
+ indicatorBackground?: string;
6
8
  }
7
9
  export declare const Spin: {
8
10
  (props: TSpinProps): React.JSX.Element;
@@ -11,18 +11,19 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  // Libraries
13
13
  import React from 'react';
14
- // Antd Icons
15
- import { LoadingOutlined } from '@ant-design/icons';
14
+ // Icons
15
+ import { LoadingIcon } from '../../icons';
16
16
  // Styled
17
17
  import { StyledSpin } from './styled';
18
18
  // Constants
19
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
19
+ import { THEME, globalToken } from '@antscorp/antsomi-ui/es/constants';
20
20
  export const Spin = (props) => {
21
21
  var _a;
22
- const { indicatorSize, children } = props, restOf = __rest(props, ["indicatorSize", "children"]);
23
- return (React.createElement(StyledSpin, Object.assign({ indicator: (React.createElement(LoadingOutlined, { style: {
24
- fontSize: indicatorSize || 30,
22
+ const { indicatorSize, indicatorBackground, showIndicatorBackground, children } = props, restOf = __rest(props, ["indicatorSize", "indicatorBackground", "showIndicatorBackground", "children"]);
23
+ return (React.createElement(StyledSpin, Object.assign({ indicator: (React.createElement(LoadingIcon, { style: {
24
+ fontSize: indicatorSize || 40,
25
25
  color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorPrimary,
26
- }, spin: true })) }, restOf), children));
26
+ animation: `loadingCircle 1s infinite linear`,
27
+ }, backgroundColor: showIndicatorBackground ? indicatorBackground || (globalToken === null || globalToken === void 0 ? void 0 : globalToken.blue1_1) : 'transparent' })) }, restOf), children));
27
28
  };
28
29
  Spin.defaultProps = {};
@@ -4,4 +4,13 @@ import styled from 'styled-components';
4
4
  import { Spin } from 'antd';
5
5
  export const StyledSpin = styled(Spin) `
6
6
  max-height: unset !important;
7
+
8
+ @keyframes loadingCircle {
9
+ 0% {
10
+ transform: rotate(0deg);
11
+ }
12
+ 100% {
13
+ transform: rotate(360deg);
14
+ }
15
+ }
7
16
  `;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { IconProps } from './type';
3
+ export declare const LoadingIcon: React.ForwardRefExoticComponent<IconProps & {
4
+ backgroundColor?: string | undefined;
5
+ } & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { forwardRef } from 'react';
13
+ export const LoadingIcon = forwardRef((_a, ref) => {
14
+ var { backgroundColor } = _a, restOfProps = __rest(_a, ["backgroundColor"]);
15
+ return (React.createElement("svg", Object.assign({ width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restOfProps, { ref: ref }),
16
+ React.createElement("path", { d: "M40.5 20.5C40.5 31.5457 31.5457 40.5 20.5 40.5C9.4543 40.5 0.5 31.5457 0.5 20.5C0.5 9.4543 9.4543 0.5 20.5 0.5C31.5457 0.5 40.5 9.4543 40.5 20.5ZM2.5 20.5C2.5 30.4411 10.5589 38.5 20.5 38.5C30.4411 38.5 38.5 30.4411 38.5 20.5C38.5 10.5589 30.4411 2.5 20.5 2.5C10.5589 2.5 2.5 10.5589 2.5 20.5Z", fill: backgroundColor || 'transparent' }),
17
+ React.createElement("path", { d: "M37.9236 28.0774C38.4301 28.2977 39.0217 28.0665 39.2164 27.5496C40.3036 24.6631 40.7101 21.5595 40.3979 18.4817C40.052 15.0718 38.8357 11.808 36.8655 9.00346C34.8953 6.1989 32.2375 3.94771 29.147 2.46587C26.0565 0.984039 22.637 0.321291 19.2167 0.541216C15.7963 0.761142 12.4899 1.85636 9.61461 3.72179C6.73932 5.58722 4.39168 8.16027 2.79691 11.194C1.20215 14.2278 0.413791 17.6205 0.507472 21.0467C0.592029 24.1391 1.3926 27.165 2.84058 29.8886C3.09984 30.3762 3.71622 30.5298 4.1903 30.2465C4.66438 29.9632 4.81636 29.3503 4.55981 28.8613C3.28613 26.4331 2.58191 23.7417 2.50673 20.992C2.42241 17.9085 3.13194 14.855 4.56722 12.1246C6.00251 9.39424 8.11539 7.0785 10.7031 5.39961C13.2909 3.72073 16.2667 2.73503 19.345 2.53709C22.4233 2.33916 25.5008 2.93564 28.2823 4.26929C31.0637 5.60294 33.4558 7.62901 35.2289 10.1531C37.0021 12.6772 38.0968 15.6146 38.4081 18.6836C38.6857 21.4203 38.332 24.1797 37.3797 26.751C37.1879 27.2689 37.4172 27.8572 37.9236 28.0774Z", fill: "currentColor" })));
18
+ });
@@ -53,3 +53,4 @@ export { Preview } from './Preview';
53
53
  export { Interactive } from './Interactive';
54
54
  export { Web } from './Web';
55
55
  export { LocalMallIcon } from './LocalMallIcon';
56
+ export { LoadingIcon } from './LoadingIcon';
@@ -53,3 +53,4 @@ export { Preview } from './Preview';
53
53
  export { Interactive } from './Interactive';
54
54
  export { Web } from './Web';
55
55
  export { LocalMallIcon } from './LocalMallIcon';
56
+ export { LoadingIcon } from './LoadingIcon';
@@ -1 +1,4 @@
1
+ import React from 'react';
2
+ import { InputDropdownProps } from './types';
1
3
  export { Dropdown } from 'antd';
4
+ export declare const InputDropdown: (props: InputDropdownProps) => React.JSX.Element;
@@ -1 +1,42 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { useCallback, useState } from 'react';
13
+ import { Space, Typography } from 'antd';
14
+ import Icon from '@antscorp/icons';
15
+ import { StyledInputDropdownRoot } from './styled';
16
+ import clsx from 'clsx';
1
17
  export { Dropdown } from 'antd';
18
+ export const InputDropdown = (props) => {
19
+ const { children, disabled = false, className, trigger = ['click'], menu = { items: [] }, width = '100%', onOpenChange = () => { } } = props, rest = __rest(props, ["children", "disabled", "className", "trigger", "menu", "width", "onOpenChange"]);
20
+ const [enableTooltip, setEnableTooltip] = useState(true);
21
+ const renderChildren = useCallback(() => {
22
+ if (typeof children === 'string') {
23
+ return (React.createElement(Typography.Text, { ellipsis: enableTooltip
24
+ ? {
25
+ tooltip: {
26
+ arrow: false,
27
+ },
28
+ }
29
+ : true }, children));
30
+ }
31
+ return children;
32
+ }, [children, enableTooltip]);
33
+ const handleOpen = (...args) => {
34
+ const [open] = args;
35
+ setEnableTooltip(!open);
36
+ onOpenChange(...args);
37
+ };
38
+ return (React.createElement(StyledInputDropdownRoot, Object.assign({ menu: menu, trigger: trigger, disabled: disabled }, rest, { className: clsx({ disabled }, className), onOpenChange: handleOpen }),
39
+ React.createElement(Space, { style: { width } },
40
+ renderChildren(),
41
+ React.createElement(Icon, { type: "icon-ants-expand-more" }))));
42
+ };
@@ -1 +1,2 @@
1
- export { Dropdown } from './Dropdown';
1
+ export { Dropdown, InputDropdown } from './Dropdown';
2
+ export type { InputDropdownProps } from './types';
@@ -1 +1 @@
1
- export { Dropdown } from './Dropdown';
1
+ export { Dropdown, InputDropdown } from './Dropdown';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledInputDropdownRoot: import("styled-components").StyledComponent<import("react").FC<import("antd").DropDownProps> & {
3
+ _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd").DropDownProps>;
4
+ } & {
5
+ Button: import("react").FC<import("antd/es/dropdown").DropdownButtonProps>;
6
+ }, any, {}, never>;
@@ -0,0 +1,33 @@
1
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2
+ import styled from 'styled-components';
3
+ import { Dropdown } from 'antd';
4
+ import { THEME, globalToken } from '@antscorp/antsomi-ui/es/constants';
5
+ export const StyledInputDropdownRoot = styled(Dropdown) `
6
+ color: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorText};
7
+ min-height: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.controlHeight}px;
8
+ border-bottom: 1px solid ${(_d = (_c = THEME.components) === null || _c === void 0 ? void 0 : _c.Input) === null || _d === void 0 ? void 0 : _d.colorBorder};
9
+ cursor: pointer;
10
+ padding: 0 5px;
11
+
12
+ .antsomi-space-item:nth-child(1) {
13
+ overflow: hidden;
14
+ flex: 1;
15
+ }
16
+
17
+ .antsomi-space-item:nth-child(2) {
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ > i {
22
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8};
23
+ font-size: 20px;
24
+ }
25
+ }
26
+
27
+ &.disabled {
28
+ cursor: not-allowed;
29
+ border-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw4};
30
+ background-color: ${(_f = (_e = THEME.components) === null || _e === void 0 ? void 0 : _e.Input) === null || _f === void 0 ? void 0 : _f.colorBgContainerDisabled};
31
+ color: ${(_h = (_g = THEME.components) === null || _g === void 0 ? void 0 : _g.Input) === null || _h === void 0 ? void 0 : _h.colorTextDisabled};
32
+ }
33
+ `;
@@ -0,0 +1,4 @@
1
+ import { DropdownProps } from 'antd';
2
+ export type InputDropdownProps = DropdownProps & {
3
+ width?: number;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ModalProps } from '@antscorp/antsomi-ui/es/components/molecules';
3
+ interface TimeOut {
4
+ show?: boolean;
5
+ message?: ReactNode;
6
+ second?: number;
7
+ }
8
+ export interface ProcessLoadingProps extends ModalProps {
9
+ message?: ReactNode;
10
+ timeout?: TimeOut;
11
+ }
12
+ export declare const ProcessLoading: React.FC<ProcessLoadingProps>;
13
+ export {};
@@ -0,0 +1,75 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ // Libraries
13
+ import React, { useEffect, useRef, useState } from 'react';
14
+ // Atoms
15
+ import { Spin, Typography } from '@antscorp/antsomi-ui/es/components/atoms';
16
+ // Molecules
17
+ import { ModalV2 } from '@antscorp/antsomi-ui/es/components/molecules';
18
+ import { ProcessLoadingContent } from './styled';
19
+ export const ProcessLoading = (_a) => {
20
+ var restProps = __rest(_a, []);
21
+ // Props
22
+ const { open, message = 'Loading ...', timeout } = restProps;
23
+ // State
24
+ const [isShowTimeoutMessage, setShowAlert] = useState(false);
25
+ // Ref
26
+ const timeoutShowAlert = useRef(null);
27
+ // Variables
28
+ const { second = 7, message: timeOutMessage = (React.createElement("div", null,
29
+ "This might take a little longer than usual. ",
30
+ React.createElement("br", null),
31
+ "Thank you for waiting!")), show: showTimeOutMessage = true, } = timeout || {};
32
+ // Effects
33
+ /* Base timeout second to show timeout message */
34
+ useEffect(() => {
35
+ if (open) {
36
+ timeoutShowAlert.current = setTimeout(() => {
37
+ setShowAlert(true);
38
+ }, 1000 * second);
39
+ }
40
+ return () => {
41
+ clearTimeout(timeoutShowAlert.current);
42
+ setShowAlert(false);
43
+ };
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45
+ }, [open]);
46
+ // Handlers
47
+ const renderMessage = () => {
48
+ let draftMessage = null;
49
+ if (isShowTimeoutMessage && showTimeOutMessage) {
50
+ draftMessage = timeOutMessage;
51
+ }
52
+ else if (message) {
53
+ draftMessage = message;
54
+ }
55
+ if (draftMessage) {
56
+ return (React.createElement(Typography.Text
57
+ /* Key to force update for refresh animation when timeout */
58
+ , {
59
+ /* Key to force update for refresh animation when timeout */
60
+ key: !showTimeOutMessage ? '1' : `${isShowTimeoutMessage}`, className: "animate__animated animate__fadeIn", style: { lineHeight: '14.06px' } }, draftMessage));
61
+ }
62
+ return null;
63
+ };
64
+ return (React.createElement(ModalV2, Object.assign({ closable: false, destroyOnClose: true }, restProps, { footer: null, centered: true, width: "300px", styles: {
65
+ body: {
66
+ padding: 20,
67
+ },
68
+ mask: {
69
+ background: `rgba(255, 255, 255, 0.5)`,
70
+ },
71
+ } }),
72
+ React.createElement(ProcessLoadingContent, { vertical: true, align: "center", justify: "center", gap: 16 },
73
+ React.createElement(Spin, { spinning: true, showIndicatorBackground: true }),
74
+ renderMessage())));
75
+ };
@@ -0,0 +1,2 @@
1
+ export { ProcessLoading } from './ProcessLoading';
2
+ export type { ProcessLoadingProps } from './ProcessLoading';
@@ -0,0 +1 @@
1
+ export { ProcessLoading } from './ProcessLoading';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ProcessLoadingContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { Flex } from '@antscorp/antsomi-ui/es/components/atoms';
3
+ export const ProcessLoadingContent = styled(Flex) `
4
+ text-align: center;
5
+ `;
@@ -20,13 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  };
21
21
  // Libraries
22
22
  import React from 'react';
23
- import { Icon } from '@antscorp/antsomi-ui/es/components/atoms';
24
23
  import { Modal } from 'antd';
25
24
  import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
26
25
  // Styled
27
26
  import { ThumbnailCardWrapper } from './styled';
28
27
  // Components
29
- import { Button, Flex, Typography, Spin, Tooltip } from '../../atoms';
28
+ import { Button, Flex, Typography, Spin, Tooltip, Icon } from '../../atoms';
30
29
  // Constants
31
30
  import { THUMBNAIL_CARD_ACTION_OPTIONS, THUMBNAIL_CARD_DEFAULT_HEIGHT, THUMBNAIL_CARD_DEFAULT_WIDTH, } from './constants';
32
31
  import { getUrlNoCache, checkShowSkeletonBaseUrl } from '@antscorp/antsomi-ui/es/utils';
@@ -255,11 +254,18 @@ export const ThumbnailCard = (props) => {
255
254
  const option = THUMBNAIL_CARD_ACTION_OPTIONS[key];
256
255
  const actionSettings = actionButtons[key];
257
256
  if (actionSettings) {
258
- const { buttonProps, key, customRender } = actionSettings;
257
+ const { buttonProps, key, customRender, onClick } = actionSettings;
259
258
  const icon = actionSettings.icon || (option === null || option === void 0 ? void 0 : option.icon) || '';
260
259
  const label = actionSettings.label || (option === null || option === void 0 ? void 0 : option.label) || '';
261
- const ButtonComponent = (React.createElement(Tooltip, { title: label },
262
- React.createElement(Button, Object.assign({ key: key || (option === null || option === void 0 ? void 0 : option.key), type: "primary", icon: React.createElement(Icon, { type: icon, style: { fontSize: 24, color: '#FFFFFF' } }) }, buttonProps))));
260
+ const ButtonComponent = (React.createElement(Tooltip, { key: key || (option === null || option === void 0 ? void 0 : option.key), title: label },
261
+ React.createElement(Button, Object.assign({ type: "primary", icon: React.createElement(Icon, { type: icon, style: { fontSize: 24, color: '#FFFFFF' } }) }, buttonProps, { onClick: e => {
262
+ if (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick) {
263
+ buttonProps.onClick(e);
264
+ }
265
+ if (onClick) {
266
+ onClick(id);
267
+ }
268
+ } }))));
263
269
  /**
264
270
  * Handle custom render for action button
265
271
  * If customRender is a function, return the function callback the ButtonComponent
@@ -9,6 +9,14 @@ export type TThumbnailButton = Omit<ButtonProps, 'onClick'> & {
9
9
  text?: string;
10
10
  onClick?: (id: TThumbnailCardId) => void;
11
11
  };
12
+ export type TThumbnailActionButtons<TActionKey extends string[] = []> = Partial<Record<TActionButtonKey<TActionKey>, {
13
+ buttonProps?: ButtonProps;
14
+ key?: string;
15
+ label?: string;
16
+ icon?: string;
17
+ customRender?: (node: ReactNode) => ReactNode;
18
+ onClick?: (id: TThumbnailCardId) => void;
19
+ }>>;
12
20
  export interface ThumbnailCardProps<TActionKey extends string[] = []> extends Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
13
21
  id: TThumbnailCardId;
14
22
  name?: string;
@@ -23,13 +31,7 @@ export interface ThumbnailCardProps<TActionKey extends string[] = []> extends Om
23
31
  actionAvailable?: boolean;
24
32
  removeModalProps?: TRemoveModalProps;
25
33
  thumbnailFit?: React.CSSProperties['objectFit'];
26
- actionButtons?: Partial<Record<TActionButtonKey<TActionKey>, {
27
- buttonProps?: ButtonProps;
28
- key?: string;
29
- label?: string;
30
- icon?: string;
31
- customRender?: (node: ReactNode) => ReactNode;
32
- }>>;
34
+ actionButtons?: TThumbnailActionButtons<TActionKey>;
33
35
  thumbnailCacheValue?: string | number;
34
36
  onClickWrapper?: (id: TThumbnailCardId) => void;
35
37
  }
@@ -1,6 +1,6 @@
1
1
  export { AccountSelection, AccountListing, useAccountSelection } from './AccountSelection';
2
2
  export { Cascader } from './Cascader';
3
- export { Dropdown } from './Dropdown';
3
+ export { Dropdown, InputDropdown } from './Dropdown';
4
4
  export { Modal } from './Modal';
5
5
  export { Select } from './Select';
6
6
  export { SelectV2 } from './SelectV2';
@@ -35,7 +35,6 @@ export { FontFamilySelect } from './FontFamilySelect';
35
35
  export { TextDecorationSelect } from './TextDecorationSelect';
36
36
  export { TextTransformSelect } from './TextTransformSelect';
37
37
  export { FontSetting, FontSettingEdit } from './FontSetting';
38
- export { ThumbnailCard } from './ThumbnailCard';
39
38
  export { Form } from './Form';
40
39
  export { ResizeGrid } from './ResizeGrid';
41
40
  export * from './RichMenu';
@@ -53,6 +52,8 @@ export * from './EmptyData';
53
52
  export * from './PreviewModal';
54
53
  export * from './Drawer';
55
54
  export * from './DrawerDetail';
55
+ export * from './ThumbnailCard';
56
+ export * from './ProcessLoading';
56
57
  export { EditorScript } from './EditorScript';
57
58
  export { CalendarSelection, CalendarSelectionConstants } from './CalendarSelection';
58
59
  export { EditorTab } from './EditorTab';
@@ -62,7 +63,6 @@ export type { AlignEditProps, AlignSettingProps } from './AlignSetting';
62
63
  export type { TFontSettingProps, TFontSettingEditProps } from './FontSetting';
63
64
  export type { IResizeGridProps, TCell, TGrid } from './ResizeGrid';
64
65
  export type { ModalProps } from './ModalV2';
65
- export type { ThumbnailCardProps } from './ThumbnailCard';
66
66
  export type { TemplateValueOptions } from './TemplateSaveAs';
67
67
  export type { SelectProps as SelectV2Props } from './SelectV2';
68
68
  export type { InputNumberProps as InputNumberWithLabelProps } from './InputNumber';
@@ -72,3 +72,4 @@ export type { EditableNameHandle } from './EditableName';
72
72
  export type { AccountListingHandle, AccountSelectionProps } from './AccountSelection';
73
73
  export type { VirtualizedMenuProps } from './VirtualizedMenu';
74
74
  export type { SearchPopoverProps, PopoverAddFieldProps } from './SearchPopover';
75
+ export type { InputDropdownProps } from './Dropdown';
@@ -1,6 +1,6 @@
1
1
  export { AccountSelection, AccountListing, useAccountSelection } from './AccountSelection';
2
2
  export { Cascader } from './Cascader';
3
- export { Dropdown } from './Dropdown';
3
+ export { Dropdown, InputDropdown } from './Dropdown';
4
4
  export { Modal } from './Modal';
5
5
  export { Select } from './Select';
6
6
  export { SelectV2 } from './SelectV2';
@@ -35,7 +35,6 @@ export { FontFamilySelect } from './FontFamilySelect';
35
35
  export { TextDecorationSelect } from './TextDecorationSelect';
36
36
  export { TextTransformSelect } from './TextTransformSelect';
37
37
  export { FontSetting, FontSettingEdit } from './FontSetting';
38
- export { ThumbnailCard } from './ThumbnailCard';
39
38
  export { Form } from './Form';
40
39
  export { ResizeGrid } from './ResizeGrid';
41
40
  export * from './RichMenu';
@@ -53,6 +52,8 @@ export * from './EmptyData';
53
52
  export * from './PreviewModal';
54
53
  export * from './Drawer';
55
54
  export * from './DrawerDetail';
55
+ export * from './ThumbnailCard';
56
+ export * from './ProcessLoading';
56
57
  export { EditorScript } from './EditorScript';
57
58
  export { CalendarSelection, CalendarSelectionConstants } from './CalendarSelection';
58
59
  export { EditorTab } from './EditorTab';
@@ -62,7 +62,7 @@ export declare const useTemplateListing: <T = undefined>(options: TemplateListin
62
62
  similarTemplates: (TTemplateItem | undefined)[];
63
63
  templateDetail: import("@antscorp/antsomi-ui/es/models/ObjectTemplate").ObjectTemplate | undefined;
64
64
  checkedCategories: TCheckedCategories;
65
- selectTemplateAction: TSelectTemplateAction | T | undefined;
65
+ selectTemplateAction: string | T | undefined;
66
66
  previewTemplateCategories: TCategoryItem[];
67
67
  isLoadingCategoryList: boolean;
68
68
  isLoadingTemplateList: boolean;
@@ -29,4 +29,4 @@ export interface TTemplateItem {
29
29
  thumbnail?: ThumbnailCardProps['thumbnail'];
30
30
  [key: string]: any;
31
31
  }
32
- export type TSelectTemplateAction = 'edit' | 'preview' | 'use';
32
+ export type TSelectTemplateAction = 'edit' | 'preview' | 'use' | string;
@@ -207,6 +207,7 @@ THEME.components = {
207
207
  },
208
208
  Tooltip: {
209
209
  colorBgSpotlight: (_1 = THEME.token) === null || _1 === void 0 ? void 0 : _1.bw8,
210
+ fontSize: 11,
210
211
  },
211
212
  Menu: {
212
213
  itemHoverBg: '#F2F9FF',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.329",
3
+ "version": "1.3.5-beta.330",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",