@antscorp/antsomi-ui 2.0.2 → 2.0.4

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 (69) hide show
  1. package/es/components/icons/ArticleIcon.d.ts +3 -0
  2. package/es/components/icons/ArticleIcon.js +10 -0
  3. package/es/components/icons/CustomerInformationIcon.d.ts +3 -0
  4. package/es/components/icons/CustomerInformationIcon.js +13 -0
  5. package/es/components/icons/EditFilledIcon.d.ts +3 -0
  6. package/es/components/icons/EditFilledIcon.js +8 -0
  7. package/es/components/icons/ItemRecommendationIcon.d.ts +3 -0
  8. package/es/components/icons/ItemRecommendationIcon.js +10 -0
  9. package/es/components/icons/LazyIcon/LazyIcon.d.ts +6 -0
  10. package/es/components/icons/LazyIcon/LazyIcon.js +6 -0
  11. package/es/components/icons/LongerIcon.d.ts +3 -0
  12. package/es/components/icons/LongerIcon.js +7 -0
  13. package/es/components/icons/UserActivityIcon.d.ts +3 -0
  14. package/es/components/icons/UserActivityIcon.js +16 -0
  15. package/es/components/icons/index.d.ts +6 -0
  16. package/es/components/icons/index.js +6 -0
  17. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +23 -0
  18. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +50 -26
  19. package/es/components/molecules/EditableName/EditableName.d.ts +1 -0
  20. package/es/components/molecules/EditableName/EditableName.js +5 -6
  21. package/es/components/molecules/EditorTab/EditorTab.js +46 -39
  22. package/es/components/molecules/EditorTab/styled.js +23 -14
  23. package/es/components/molecules/EmptyData/styled.js +2 -1
  24. package/es/components/molecules/MatchAnySelect/MatchesAnySelect.d.ts +2 -2
  25. package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +155 -112
  26. package/es/components/molecules/MatchAnySelect/constants.d.ts +19 -0
  27. package/es/components/molecules/MatchAnySelect/constants.js +81 -20
  28. package/es/components/molecules/MatchAnySelect/mock.d.ts +21 -0
  29. package/es/components/molecules/MatchAnySelect/mock.js +3309 -0
  30. package/es/components/molecules/MatchAnySelect/styled.d.ts +12 -0
  31. package/es/components/molecules/MatchAnySelect/styled.js +69 -4
  32. package/es/components/molecules/MatchAnySelect/types.d.ts +44 -22
  33. package/es/components/molecules/MatchAnySelect/utils.d.ts +2 -0
  34. package/es/components/molecules/MatchAnySelect/utils.js +42 -0
  35. package/es/components/molecules/SearchPopover/SearchPopover.js +1 -1
  36. package/es/components/molecules/SearchPopover/components/PopoverAddField/PopoverAddField.js +10 -7
  37. package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.js +22 -18
  38. package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.d.ts +2 -2
  39. package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +2 -3
  40. package/es/components/molecules/SearchPopover/types.d.ts +1 -1
  41. package/es/components/molecules/Tabs/index.d.ts +1 -0
  42. package/es/components/molecules/Tree/Tree.d.ts +18 -2
  43. package/es/components/molecules/Tree/Tree.js +29 -1
  44. package/es/components/molecules/Tree/index.d.ts +1 -0
  45. package/es/components/molecules/Tree/index.js +1 -0
  46. package/es/components/molecules/Tree/styled.d.ts +16 -0
  47. package/es/components/molecules/Tree/styled.js +43 -0
  48. package/es/components/molecules/Tree/utils.d.ts +10 -0
  49. package/es/components/molecules/Tree/utils.js +17 -0
  50. package/es/components/molecules/UploadImage/index.js +1 -1
  51. package/es/components/molecules/index.d.ts +1 -1
  52. package/es/components/molecules/index.js +1 -1
  53. package/es/components/organism/AlgorithmsSetting/styled.d.ts +1 -1
  54. package/es/components/organism/DataTable/hooks/useAddFilterButton.d.ts +1 -1
  55. package/es/components/organism/Help/Help.js +27 -33
  56. package/es/components/organism/Help/styled.d.ts +0 -5
  57. package/es/components/organism/Help/styled.js +27 -38
  58. package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/index.js +3 -3
  59. package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/index.js +4 -2
  60. package/es/components/template/TemplateListing/index.js +5 -3
  61. package/es/constants/theme.js +16 -12
  62. package/es/index.d.ts +3 -1
  63. package/es/index.js +2 -1
  64. package/es/providers/ConfigProvider/GlobalStyle.js +18 -2
  65. package/es/test.js +5 -6
  66. package/es/tests/MatchesAnySelect.js +70 -4
  67. package/es/utils/common.d.ts +11 -0
  68. package/es/utils/common.js +29 -1
  69. package/package.json +2 -1
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const ArticleIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,10 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const ArticleIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("rect", { x: "7", y: "2", width: "16", height: "16", rx: "2", stroke: "#595959", strokeWidth: "2" }),
7
+ React.createElement("rect", { x: "10", y: "5", width: "10", height: "2", fill: "#EF3340" }),
8
+ React.createElement("rect", { x: "10", y: "9", width: "10", height: "2", fill: "#005EB8" }),
9
+ React.createElement("rect", { x: "10", y: "13", width: "7", height: "2", fill: "#7F7F7F" })));
10
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const CustomerInformationIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,13 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const CustomerInformationIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("path", { d: "M1 15V13.75C1 13.75 2.188 11.25 6 11.25C9.812 11.25 11 13.75 11 13.75V15H1ZM3.5 7.5C3.5 7.00555 3.64662 6.52221 3.92133 6.11109C4.19603 5.69996 4.58646 5.37953 5.04327 5.19031C5.50009 5.00109 6.00278 4.95157 6.48773 5.04804C6.97268 5.1445 7.41813 5.38261 7.76776 5.73224C8.11739 6.08187 8.3555 6.52732 8.45197 7.01227C8.54843 7.49722 8.49891 7.99991 8.30969 8.45673C8.12047 8.91354 7.80004 9.30397 7.38892 9.57868C6.97779 9.85338 6.49445 10 6 10C5.33696 10 4.70108 9.7366 4.23224 9.26776C3.7634 8.79892 3.5 8.16304 3.5 7.5Z", fill: "#595959" }),
7
+ React.createElement("rect", { x: "14", y: "5", width: "5", height: "2", fill: "#005EB8" }),
8
+ React.createElement("rect", { x: "21", y: "5", width: "7", height: "2", fill: "#595959" }),
9
+ React.createElement("rect", { x: "14", y: "9", width: "5", height: "2", fill: "#005EB8" }),
10
+ React.createElement("rect", { x: "21", y: "9", width: "8", height: "2", fill: "#595959" }),
11
+ React.createElement("rect", { x: "14", y: "13", width: "5", height: "2", fill: "#005EB8" }),
12
+ React.createElement("rect", { x: "21", y: "13", width: "6", height: "2", fill: "#595959" })));
13
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const EditFilledIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,8 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const EditFilledIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
7
+ React.createElement("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" })));
8
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const ItemRecommendationIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,10 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const ItemRecommendationIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 30 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("path", { d: "M19 10.5C19.7188 10.5 20.3438 11.0938 20.3438 11.8438V19.8438C20.3438 20.5625 19.7188 21.1562 19 21.1562H11C10.2812 21.1562 9.65625 20.5625 9.65625 19.8438V11.8438C9.65625 11.0938 10.2812 10.5 11 10.5H12.3438C12.3438 9.03125 13.5312 7.84375 15 7.84375C16.4688 7.84375 17.6562 9.03125 17.6562 10.5H19ZM15 9.15625C14.2812 9.15625 13.6562 9.78125 13.6562 10.5H16.3438C16.3438 9.78125 15.7188 9.15625 15 9.15625ZM19 19.8438V11.8438H17.6562V13.1562C17.6562 13.5312 17.375 13.8438 17 13.8438C16.625 13.8438 16.3438 13.5312 16.3438 13.1562V11.8438H13.6562V13.1562C13.6562 13.5312 13.375 13.8438 13 13.8438C12.625 13.8438 12.3438 13.5312 12.3438 13.1562V11.8438H11V19.8438H19Z", fill: "#595959" }),
7
+ React.createElement("path", { d: "M8 8.25L5.9375 9.5L6.48438 7.15625L4.67188 5.57812L7.0625 5.375L8 3.17188L8.9375 5.375L11.3281 5.57812L9.51562 7.15625L10.0625 9.5L8 8.25Z", fill: "#005EB8" }),
8
+ React.createElement("path", { d: "M15 5.25L12.9375 6.5L13.4844 4.15625L11.6719 2.57812L14.0625 2.375L15 0.171875L15.9375 2.375L18.3281 2.57812L16.5156 4.15625L17.0625 6.5L15 5.25Z", fill: "#005EB8" }),
9
+ React.createElement("path", { d: "M22 8.25L19.9375 9.5L20.4844 7.15625L18.6719 5.57812L21.0625 5.375L22 3.17188L22.9375 5.375L25.3281 5.57812L23.5156 7.15625L24.0625 9.5L22 8.25Z", fill: "#005EB8" })));
10
+ });
@@ -22,6 +22,7 @@ export declare const LazyIcon: {
22
22
  AnlyticModelsIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
23
23
  ArrowGrowIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
24
24
  ArrowLineIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
25
+ ArticleIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
25
26
  AssignmentIndIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
26
27
  AttachmentIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
27
28
  AudioRecordIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -84,6 +85,7 @@ export declare const LazyIcon: {
84
85
  CursorIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
85
86
  CurvedConnectorIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
86
87
  CustomerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
88
+ CustomerInformationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
87
89
  CustomerJourney30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
88
90
  CustomerJourneyIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
89
91
  Customers30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -120,6 +122,7 @@ export declare const LazyIcon: {
120
122
  DynamicFormIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
121
123
  DynamicImageIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
122
124
  DynamicTextIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
125
+ EditFilledIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
123
126
  EditIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
124
127
  ElbowConnectorIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
125
128
  EmailTemplate30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -191,6 +194,7 @@ export declare const LazyIcon: {
191
194
  InvisibleIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
192
195
  InvitePeopleIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
193
196
  IssueBugIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
197
+ ItemRecommendationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
194
198
  JourneyTactic30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
195
199
  JourneyTacticIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
196
200
  LayerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -204,6 +208,7 @@ export declare const LazyIcon: {
204
208
  backgroundColor?: string | undefined;
205
209
  } & import("react").RefAttributes<SVGSVGElement>>>;
206
210
  LocalMallIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
211
+ LongerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
207
212
  MapIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
208
213
  MarkAsReadIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
209
214
  MarketingHub30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -333,6 +338,7 @@ export declare const LazyIcon: {
333
338
  Unknown30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
334
339
  UploadIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
335
340
  UploadMenuIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
341
+ UserActivityIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
336
342
  UserAttributesIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
337
343
  UserIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
338
344
  ValidateFormatIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
@@ -22,6 +22,7 @@ export const LazyIcon = {
22
22
  AnlyticModelsIcon: lazy(() => import('../AnlyticModelsIcon').then(m => ({ default: m.AnlyticModelsIcon }))),
23
23
  ArrowGrowIcon: lazy(() => import('../ArrowGrowIcon').then(m => ({ default: m.ArrowGrowIcon }))),
24
24
  ArrowLineIcon: lazy(() => import('../ArrowLineIcon').then(m => ({ default: m.ArrowLineIcon }))),
25
+ ArticleIcon: lazy(() => import('../ArticleIcon').then(m => ({ default: m.ArticleIcon }))),
25
26
  AssignmentIndIcon: lazy(() => import('../AssignmentIndIcon').then(m => ({ default: m.AssignmentIndIcon }))),
26
27
  AttachmentIcon: lazy(() => import('../AttachmentIcon').then(m => ({ default: m.AttachmentIcon }))),
27
28
  AudioRecordIcon: lazy(() => import('../AudioRecordIcon').then(m => ({ default: m.AudioRecordIcon }))),
@@ -90,6 +91,7 @@ export const LazyIcon = {
90
91
  CursorIcon: lazy(() => import('../CursorIcon').then(m => ({ default: m.CursorIcon }))),
91
92
  CurvedConnectorIcon: lazy(() => import('../CurvedConnectorIcon').then(m => ({ default: m.CurvedConnectorIcon }))),
92
93
  CustomerIcon: lazy(() => import('../CustomerIcon').then(m => ({ default: m.CustomerIcon }))),
94
+ CustomerInformationIcon: lazy(() => import('../CustomerInformationIcon').then(m => ({ default: m.CustomerInformationIcon }))),
93
95
  CustomerJourney30Icon: lazy(() => import('../CustomerJourney30Icon').then(m => ({ default: m.CustomerJourney30Icon }))),
94
96
  CustomerJourneyIcon: lazy(() => import('../CustomerJourneyIcon').then(m => ({ default: m.CustomerJourneyIcon }))),
95
97
  Customers30Icon: lazy(() => import('../Customers30Icon').then(m => ({ default: m.Customers30Icon }))),
@@ -126,6 +128,7 @@ export const LazyIcon = {
126
128
  DynamicFormIcon: lazy(() => import('../DynamicFormIcon').then(m => ({ default: m.DynamicFormIcon }))),
127
129
  DynamicImageIcon: lazy(() => import('../DynamicImageIcon').then(m => ({ default: m.DynamicImageIcon }))),
128
130
  DynamicTextIcon: lazy(() => import('../DynamicTextIcon').then(m => ({ default: m.DynamicTextIcon }))),
131
+ EditFilledIcon: lazy(() => import('../EditFilledIcon').then(m => ({ default: m.EditFilledIcon }))),
129
132
  EditIcon: lazy(() => import('../EditIcon').then(m => ({ default: m.EditIcon }))),
130
133
  ElbowConnectorIcon: lazy(() => import('../ElbowConnectorIcon').then(m => ({ default: m.ElbowConnectorIcon }))),
131
134
  EmailTemplate30Icon: lazy(() => import('../EmailTemplate30Icon').then(m => ({ default: m.EmailTemplate30Icon }))),
@@ -197,6 +200,7 @@ export const LazyIcon = {
197
200
  InvisibleIcon: lazy(() => import('../InvisibleIcon').then(m => ({ default: m.InvisibleIcon }))),
198
201
  InvitePeopleIcon: lazy(() => import('../InvitePeopleIcon').then(m => ({ default: m.InvitePeopleIcon }))),
199
202
  IssueBugIcon: lazy(() => import('../IssueBugIcon').then(m => ({ default: m.IssueBugIcon }))),
203
+ ItemRecommendationIcon: lazy(() => import('../ItemRecommendationIcon').then(m => ({ default: m.ItemRecommendationIcon }))),
200
204
  JourneyTactic30Icon: lazy(() => import('../JourneyTactic30Icon').then(m => ({ default: m.JourneyTactic30Icon }))),
201
205
  JourneyTacticIcon: lazy(() => import('../JourneyTacticIcon').then(m => ({ default: m.JourneyTacticIcon }))),
202
206
  LayerIcon: lazy(() => import('../LayerIcon').then(m => ({ default: m.LayerIcon }))),
@@ -208,6 +212,7 @@ export const LazyIcon = {
208
212
  ListIcon: lazy(() => import('../ListIcon').then(m => ({ default: m.ListIcon }))),
209
213
  LoadingIcon: lazy(() => import('../LoadingIcon').then(m => ({ default: m.LoadingIcon }))),
210
214
  LocalMallIcon: lazy(() => import('../LocalMallIcon').then(m => ({ default: m.LocalMallIcon }))),
215
+ LongerIcon: lazy(() => import('../LongerIcon').then(m => ({ default: m.LongerIcon }))),
211
216
  MapIcon: lazy(() => import('../MapIcon').then(m => ({ default: m.MapIcon }))),
212
217
  MarkAsReadIcon: lazy(() => import('../MarkAsReadIcon').then(m => ({ default: m.MarkAsReadIcon }))),
213
218
  MarketingHub30Icon: lazy(() => import('../MarketingHub30Icon').then(m => ({ default: m.MarketingHub30Icon }))),
@@ -339,6 +344,7 @@ export const LazyIcon = {
339
344
  Unknown30Icon: lazy(() => import('../Unknown30Icon').then(m => ({ default: m.Unknown30Icon }))),
340
345
  UploadIcon: lazy(() => import('../UploadIcon').then(m => ({ default: m.UploadIcon }))),
341
346
  UploadMenuIcon: lazy(() => import('../UploadMenuIcon').then(m => ({ default: m.UploadMenuIcon }))),
347
+ UserActivityIcon: lazy(() => import('../UserActivityIcon').then(m => ({ default: m.UserActivityIcon }))),
342
348
  UserAttributesIcon: lazy(() => import('../UserAttributesIcon').then(m => ({ default: m.UserAttributesIcon }))),
343
349
  UserIcon: lazy(() => import('../UserIcon').then(m => ({ default: m.UserIcon }))),
344
350
  ValidateFormatIcon: lazy(() => import('../ValidateFormatIcon').then(m => ({ default: m.ValidateFormatIcon }))),
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const LongerIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const LongerIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("path", { d: "M14.0156 17.0156V18.9844H3.98438V17.0156H14.0156ZM20.0156 9V11.0156H3.98438V9H20.0156ZM3.98438 15V12.9844H20.0156V15H3.98438ZM3.98438 5.01562H20.0156V6.98438H3.98438V5.01562Z", fill: "currentColor" })));
7
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const UserActivityIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,16 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const UserActivityIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
6
+ React.createElement("circle", { cx: "22", cy: "17", r: "3", fill: "#EF3340" }),
7
+ React.createElement("circle", { cx: "15", cy: "3", r: "3", fill: "#EF3340" }),
8
+ React.createElement("circle", { cx: "22", cy: "3", r: "2", fill: "#595959" }),
9
+ React.createElement("circle", { cx: "8", cy: "10", r: "2", fill: "#595959" }),
10
+ React.createElement("circle", { cx: "8", cy: "10", r: "3", fill: "#EF3340" }),
11
+ React.createElement("circle", { cx: "15", cy: "17", r: "2", fill: "#005EB8" }),
12
+ React.createElement("circle", { cx: "15", cy: "10", r: "2", fill: "#005EB8" }),
13
+ React.createElement("circle", { cx: "8", cy: "17", r: "1", fill: "#595959" }),
14
+ React.createElement("circle", { cx: "8", cy: "3", r: "1", fill: "#595959" }),
15
+ React.createElement("circle", { cx: "22", cy: "10", r: "2", fill: "#005EB8" })));
16
+ });
@@ -20,6 +20,7 @@ export { AnlysisIcon } from './AnlysisIcon';
20
20
  export { AnlyticModelsIcon } from './AnlyticModelsIcon';
21
21
  export { ArrowGrowIcon } from './ArrowGrowIcon';
22
22
  export { ArrowLineIcon } from './ArrowLineIcon';
23
+ export { ArticleIcon } from './ArticleIcon';
23
24
  export { AssignmentIndIcon } from './AssignmentIndIcon';
24
25
  export { AttachmentIcon } from './AttachmentIcon';
25
26
  export { AudioRecordIcon } from './AudioRecordIcon';
@@ -82,6 +83,7 @@ export { CropIcon } from './CropIcon';
82
83
  export { CursorIcon } from './CursorIcon';
83
84
  export { CurvedConnectorIcon } from './CurvedConnectorIcon';
84
85
  export { CustomerIcon } from './CustomerIcon';
86
+ export { CustomerInformationIcon } from './CustomerInformationIcon';
85
87
  export { CustomerJourney30Icon } from './CustomerJourney30Icon';
86
88
  export { CustomerJourneyIcon } from './CustomerJourneyIcon';
87
89
  export { Customers30Icon } from './Customers30Icon';
@@ -118,6 +120,7 @@ export { DuplicateIcon } from './DuplicateIcon';
118
120
  export { DynamicFormIcon } from './DynamicFormIcon';
119
121
  export { DynamicImageIcon } from './DynamicImageIcon';
120
122
  export { DynamicTextIcon } from './DynamicTextIcon';
123
+ export { EditFilledIcon } from './EditFilledIcon';
121
124
  export { EditIcon } from './EditIcon';
122
125
  export { ElbowConnectorIcon } from './ElbowConnectorIcon';
123
126
  export { EmailTemplate30Icon } from './EmailTemplate30Icon';
@@ -189,6 +192,7 @@ export { InteractiveIcon } from './InteractiveIcon';
189
192
  export { InvisibleIcon } from './InvisibleIcon';
190
193
  export { InvitePeopleIcon } from './InvitePeopleIcon';
191
194
  export { IssueBugIcon } from './IssueBugIcon';
195
+ export { ItemRecommendationIcon } from './ItemRecommendationIcon';
192
196
  export { JourneyTactic30Icon } from './JourneyTactic30Icon';
193
197
  export { JourneyTacticIcon } from './JourneyTacticIcon';
194
198
  export { LayerIcon } from './LayerIcon';
@@ -200,6 +204,7 @@ export { LinkManagementIcon } from './LinkManagementIcon';
200
204
  export { ListIcon } from './ListIcon';
201
205
  export { LoadingIcon } from './LoadingIcon';
202
206
  export { LocalMallIcon } from './LocalMallIcon';
207
+ export { LongerIcon } from './LongerIcon';
203
208
  export { MapIcon } from './MapIcon';
204
209
  export { MarkAsReadIcon } from './MarkAsReadIcon';
205
210
  export { MarketingHub30Icon } from './MarketingHub30Icon';
@@ -329,6 +334,7 @@ export { UndoIcon } from './UndoIcon';
329
334
  export { Unknown30Icon } from './Unknown30Icon';
330
335
  export { UploadIcon } from './UploadIcon';
331
336
  export { UploadMenuIcon } from './UploadMenuIcon';
337
+ export { UserActivityIcon } from './UserActivityIcon';
332
338
  export { UserAttributesIcon } from './UserAttributesIcon';
333
339
  export { UserIcon } from './UserIcon';
334
340
  export { ValidateFormatIcon } from './ValidateFormatIcon';
@@ -20,6 +20,7 @@ export { AnlysisIcon } from './AnlysisIcon';
20
20
  export { AnlyticModelsIcon } from './AnlyticModelsIcon';
21
21
  export { ArrowGrowIcon } from './ArrowGrowIcon';
22
22
  export { ArrowLineIcon } from './ArrowLineIcon';
23
+ export { ArticleIcon } from './ArticleIcon';
23
24
  export { AssignmentIndIcon } from './AssignmentIndIcon';
24
25
  export { AttachmentIcon } from './AttachmentIcon';
25
26
  export { AudioRecordIcon } from './AudioRecordIcon';
@@ -82,6 +83,7 @@ export { CropIcon } from './CropIcon';
82
83
  export { CursorIcon } from './CursorIcon';
83
84
  export { CurvedConnectorIcon } from './CurvedConnectorIcon';
84
85
  export { CustomerIcon } from './CustomerIcon';
86
+ export { CustomerInformationIcon } from './CustomerInformationIcon';
85
87
  export { CustomerJourney30Icon } from './CustomerJourney30Icon';
86
88
  export { CustomerJourneyIcon } from './CustomerJourneyIcon';
87
89
  export { Customers30Icon } from './Customers30Icon';
@@ -118,6 +120,7 @@ export { DuplicateIcon } from './DuplicateIcon';
118
120
  export { DynamicFormIcon } from './DynamicFormIcon';
119
121
  export { DynamicImageIcon } from './DynamicImageIcon';
120
122
  export { DynamicTextIcon } from './DynamicTextIcon';
123
+ export { EditFilledIcon } from './EditFilledIcon';
121
124
  export { EditIcon } from './EditIcon';
122
125
  export { ElbowConnectorIcon } from './ElbowConnectorIcon';
123
126
  export { EmailTemplate30Icon } from './EmailTemplate30Icon';
@@ -189,6 +192,7 @@ export { InteractiveIcon } from './InteractiveIcon';
189
192
  export { InvisibleIcon } from './InvisibleIcon';
190
193
  export { InvitePeopleIcon } from './InvitePeopleIcon';
191
194
  export { IssueBugIcon } from './IssueBugIcon';
195
+ export { ItemRecommendationIcon } from './ItemRecommendationIcon';
192
196
  export { JourneyTactic30Icon } from './JourneyTactic30Icon';
193
197
  export { JourneyTacticIcon } from './JourneyTacticIcon';
194
198
  export { LayerIcon } from './LayerIcon';
@@ -200,6 +204,7 @@ export { LinkManagementIcon } from './LinkManagementIcon';
200
204
  export { ListIcon } from './ListIcon';
201
205
  export { LoadingIcon } from './LoadingIcon';
202
206
  export { LocalMallIcon } from './LocalMallIcon';
207
+ export { LongerIcon } from './LongerIcon';
203
208
  export { MapIcon } from './MapIcon';
204
209
  export { MarkAsReadIcon } from './MarkAsReadIcon';
205
210
  export { MarketingHub30Icon } from './MarketingHub30Icon';
@@ -329,6 +334,7 @@ export { UndoIcon } from './UndoIcon';
329
334
  export { Unknown30Icon } from './Unknown30Icon';
330
335
  export { UploadIcon } from './UploadIcon';
331
336
  export { UploadMenuIcon } from './UploadMenuIcon';
337
+ export { UserActivityIcon } from './UserActivityIcon';
332
338
  export { UserAttributesIcon } from './UserAttributesIcon';
333
339
  export { UserIcon } from './UserIcon';
334
340
  export { ValidateFormatIcon } from './ValidateFormatIcon';
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { Dayjs } from 'dayjs';
2
3
  import { TAdvancedType, TCalculationType, TOperatorKey, TOption, TShowCalculationTypeCondition, ValueTypes } from './types';
3
4
  export interface AdvancedPickerProps {
4
5
  label?: string;
@@ -22,6 +23,28 @@ export interface AdvancedPickerProps {
22
23
  showTime?: boolean;
23
24
  timezone?: string;
24
25
  isViewMode?: boolean;
26
+ /**
27
+ *
28
+ * @example const disabledTime = (date?: Dayjs) => {
29
+ if (date?.get('date') !== 31)
30
+ return {
31
+ disabledHours: () => [],
32
+ disabledMinutes: () => [],
33
+ disabledSeconds: () => [],
34
+ };
35
+
36
+ return {
37
+ disabledHours: () => range(0, 24).splice(4, 20),
38
+ disabledMinutes: () => range(30, 60),
39
+ disabledSeconds: () => [55, 56],
40
+ };
41
+ };
42
+ */
43
+ disabledTime?: (date?: Dayjs) => {
44
+ disabledHours: () => number[];
45
+ disabledMinutes: () => number[];
46
+ disabledSeconds: () => number[];
47
+ };
25
48
  /**
26
49
  * Only show fixed calendar (hide dynamic and )
27
50
  */
@@ -22,15 +22,29 @@ import { calculationDateAdvanced, getCellRender, getFormatDisplay, getPickerRend
22
22
  import { DatePickerCustomInput, DatePickerHeader, DropdownContent, DropdownHeader, DatePickerFooter, DropdownFooter, CalendarIconWrapper, InputStyled, TimeLabel, } from './styled';
23
23
  // Constants
24
24
  import { CALCULATION_DATES, CALCULATION_TYPES, DATE_TYPES, DEFAULT_DATE_FORMAT, VALUE_TYPES, ADVANCED_PICKER_TYPE, WEEK_ARR, QUARTER_PLACEHOLDER, WEEK_PLACEHOLDER, DAY_LABEL_SHORT, MONTH_LABEL_FULL, DAY_OF_MONTH, ANCHOR_LEAP_YEAR, GRANULARITY_MAPPING, } from './constants';
25
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
25
+ import { globalToken, THEME } from '@antscorp/antsomi-ui/es/constants';
26
26
  import { useOutsideClick } from '@antscorp/antsomi-ui/es/hooks/useOutsideClick';
27
+ const isDisabledSpecificTime = (current, info, disabledTime, date) => {
28
+ if (typeof current !== 'number' || !disabledTime)
29
+ return false;
30
+ switch (info.subType) {
31
+ case 'hour':
32
+ return disabledTime(date).disabledHours().includes(current);
33
+ case 'minute':
34
+ return disabledTime(date).disabledMinutes().includes(current);
35
+ case 'second':
36
+ return disabledTime(date).disabledSeconds().includes(current);
37
+ default:
38
+ return false;
39
+ }
40
+ };
27
41
  const PATH = '@antscorp/antsomi-ui/es/components/molecules/DatePicker/components/Advanced/DatePickerAdvanced.tsx';
28
42
  const { useToken } = theme;
29
43
  const { Text } = Typography;
30
44
  export const AdvancedPicker = props => {
31
45
  var _a, _b;
32
46
  // Props
33
- const { label, inputStyle, popupStyle, dateTypeKeysShow, calculationTypeKeysShow, showCalculationTypeCondition, defaultDateTypeKey, valueType, option: propsOption, operatorKey, type, date: propsDate, format, formatInputDisplay, errorMessage, disableAfterDate, disableBeforeDate, showTime, disabled, timezone, isViewMode, onlyShowFixed, onUpdatedNewDate, onApply, } = props;
47
+ const { label, inputStyle, popupStyle, dateTypeKeysShow, calculationTypeKeysShow, showCalculationTypeCondition, defaultDateTypeKey, valueType, option: propsOption, operatorKey, type, date: propsDate, format, formatInputDisplay, errorMessage, disableAfterDate, disableBeforeDate, showTime, disabled, timezone, isViewMode, onlyShowFixed, disabledTime, onUpdatedNewDate, onApply, } = props;
34
48
  // Memo
35
49
  const newDateTypes = useMemo(() => {
36
50
  if (dateTypeKeysShow && dateTypeKeysShow.length) {
@@ -64,6 +78,8 @@ export const AdvancedPicker = props => {
64
78
  },
65
79
  date: dayjs().tz(timezone).format(format),
66
80
  dateDisplay: dayjs().tz(timezone).format(format),
81
+ // date: dayjs(propsDate).tz(timezone).format(format),
82
+ // dateDisplay: dayjs(propsDate).tz(timezone).format(format),
67
83
  });
68
84
  const { isOpen, option, date, dateDisplay } = state;
69
85
  const isShowFixed = option.dateType.value === 'fixed' || onlyShowFixed;
@@ -146,9 +162,17 @@ export const AdvancedPicker = props => {
146
162
  }
147
163
  }, [option, format, timezone]);
148
164
  useDeepCompareEffect(() => {
165
+ const DEFAULT_OPTION = onlyShowFixed
166
+ ? {
167
+ dateType: 'fixed',
168
+ calculationDate: 'days',
169
+ calculationType: 'minus',
170
+ value: 0,
171
+ }
172
+ : {};
149
173
  try {
150
- if (propsOption) {
151
- const { dateType, calculationType, calculationDate, value = 0 } = propsOption || {};
174
+ if (propsOption || onlyShowFixed) {
175
+ const { dateType, calculationType, calculationDate, value = 0, } = propsOption || DEFAULT_OPTION;
152
176
  const newDateTypes = DATE_TYPES;
153
177
  const newDateType = newDateTypes.find(dType => dType.value === dateType);
154
178
  const newCalculationType = CALCULATION_TYPES.find(calType => calType.value === calculationType);
@@ -333,19 +357,20 @@ export const AdvancedPicker = props => {
333
357
  renderDropdownFooter()));
334
358
  };
335
359
  const cellRender = useCallback((current, info) => {
336
- const onChangeDatePicker = (value) => {
337
- try {
338
- setState(state => (Object.assign(Object.assign({}, state), { date: dayjs(value).format(format) })));
339
- }
340
- catch (error) {
341
- handleError(error, {
342
- path: PATH,
343
- name: 'onChangeDatePicker',
344
- args: { value },
345
- });
346
- }
347
- };
348
- return (React.createElement("div", { className: "antsomi-picker-cell-inner", style: { pointerEvents: 'all', width: '100%' }, onClick: e => {
360
+ const isDisabledTime = isDisabledSpecificTime(current, info, disabledTime, dayjs(date));
361
+ return (React.createElement("div", { className: "antsomi-picker-cell-inner", style: Object.assign({ pointerEvents: 'all', width: '100%' }, (isDisabledTime
362
+ ? {
363
+ color: globalToken === null || globalToken === void 0 ? void 0 : globalToken.colorTextDisabled,
364
+ opacity: 0.5,
365
+ background: globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw2,
366
+ cursor: 'default',
367
+ }
368
+ : {})), onClick: e => {
369
+ if (isDisabledTime) {
370
+ e.preventDefault();
371
+ e.stopPropagation();
372
+ return;
373
+ }
349
374
  if (info.type === 'time' && typeof current === 'number') {
350
375
  e.preventDefault();
351
376
  e.stopPropagation();
@@ -363,8 +388,10 @@ export const AdvancedPicker = props => {
363
388
  default:
364
389
  break;
365
390
  }
366
- if (newDate)
367
- onChangeDatePicker(newDate);
391
+ if (newDate) {
392
+ setState(state => (Object.assign(Object.assign({}, state), { date: dayjs(newDate).format(format) })));
393
+ }
394
+ // if (newDate) onChangeDatePicker(newDate);
368
395
  return;
369
396
  }
370
397
  if (info.type === 'decade' ||
@@ -373,9 +400,10 @@ export const AdvancedPicker = props => {
373
400
  return;
374
401
  e.preventDefault();
375
402
  e.stopPropagation();
376
- onChangeDatePicker(current);
403
+ setState(state => (Object.assign(Object.assign({}, state), { date: dayjs(current).format(format) })));
404
+ // onChangeDatePicker(current);
377
405
  } }, getCellRender(current, valueType, info)));
378
- }, [valueType, format, date]);
406
+ }, [valueType, format, date, disabledTime]);
379
407
  if (isViewMode)
380
408
  return (React.createElement(Space, { direction: "vertical", size: 5, className: "antsomi-advanced-picker-container", ref: ref },
381
409
  !!label && typeof label === 'string' ? (React.createElement(Text, { style: { color: '#666666' } }, label)) : (label),
@@ -383,11 +411,7 @@ export const AdvancedPicker = props => {
383
411
  return (React.createElement(Space, { direction: "vertical", size: 5, className: "antsomi-advanced-picker-container", ref: onlyShowFixed ? undefined : ref },
384
412
  !!label && typeof label === 'string' ? (React.createElement(Text, { style: { color: '#666666' } }, label)) : (label),
385
413
  isShowFixed && !['WEEK', 'DAY_OF_WEEK', 'MONTH_DAY', 'DAY'].includes(valueType) ? (React.createElement(Tooltip, { title: selectedDateTitle },
386
- React.createElement(DatePicker, { disabled: disabled, open: !disabled && isOpen, popupStyle: popupStyle, allowClear: false, inputReadOnly: true, style: Object.assign({ textOverflow: 'ellipsis' }, inputStyle), status: errorMessage ? 'error' : '', inputRender: () => (React.createElement(DatePickerCustomInput, { readOnly: true, placeholder: "Select Date", value: selectedDateTitle, onClick: () => toggleOpenDropdown() })), value: currDate,
387
- // style={{
388
- // width: 120,
389
- // }}
390
- disabledDate: disableDate, format: formatDisplay, showToday: false, popupClassName: clsx('antsomi-picker-dropdown__advanced', {
414
+ React.createElement(DatePicker, { disabled: disabled, open: !disabled && isOpen, popupStyle: popupStyle, allowClear: false, inputReadOnly: true, style: Object.assign({ textOverflow: 'ellipsis' }, inputStyle), status: errorMessage ? 'error' : '', inputRender: () => (React.createElement(DatePickerCustomInput, { readOnly: true, placeholder: "Select Date", value: selectedDateTitle, onClick: () => toggleOpenDropdown() })), value: currDate, disabledDate: disableDate, format: formatDisplay, showToday: false, popupClassName: clsx('antsomi-picker-dropdown__advanced', {
391
415
  '--error': errorMessage,
392
416
  'hide-picker-header': ['QUARTER', 'MONTH'].includes(valueType),
393
417
  'only-show-time-picker': ['HOUR', 'MINUTE'].includes(valueType),
@@ -12,6 +12,7 @@ interface EditableNameProps {
12
12
  style?: React.CSSProperties;
13
13
  readonly?: boolean;
14
14
  maxLength?: number;
15
+ editIcon?: React.ReactNode;
15
16
  onBlur?: React.FocusEventHandler<HTMLInputElement>;
16
17
  onChange?: (value: string) => void;
17
18
  }
@@ -8,7 +8,7 @@ import { Spin } from '../../atoms';
8
8
  import { EditIcon } from '../../icons';
9
9
  export const EditableName = React.forwardRef((props, ref) => {
10
10
  var _a;
11
- const { className, isLoading, required, error, value, style, readonly, maxLength = 255, onBlur, onChange, } = props;
11
+ const { className, isLoading, required, error, value, style, readonly, maxLength = 255, editIcon, onBlur, onChange, } = props;
12
12
  const defaultValue = useRef(props.defaultValue);
13
13
  const [inputWidth, setInputWidth] = useState(1);
14
14
  const [internalValue, setInternalValue] = useState(value || defaultValue.current || '');
@@ -70,10 +70,9 @@ export const EditableName = React.forwardRef((props, ref) => {
70
70
  isLoading ? (React.createElement(Spin, { indicatorSize: 20, style: { paddingLeft: '5px', marginLeft: '10px', alignSelf: 'center' } })) : null,
71
71
  (error || requiredError) && !isLoading ? (React.createElement("div", { className: "suffix-icon-error" },
72
72
  React.createElement(Tooltip, { title: error || requiredError },
73
- React.createElement(Icon, { type: "icon-ants-warning-circle", style: { color: '#F44336', fontSize: '19.2px' } })))) : readonly ? null : (React.createElement("div", { className: "suffix-icon" },
74
- React.createElement(EditIcon, { style: { color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.blue7 }, onClick: () => {
75
- var _a;
76
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
77
- } }))),
73
+ React.createElement(Icon, { type: "icon-ants-warning-circle", style: { color: '#F44336', fontSize: '19.2px' } })))) : readonly ? null : (React.createElement("div", { className: "suffix-icon" }, editIcon || (React.createElement(EditIcon, { style: { color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.blue7 }, onClick: () => {
74
+ var _a;
75
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
76
+ } })))),
78
77
  React.createElement("span", { ref: spanRef, className: "hidden-span" })));
79
78
  });