@antscorp/antsomi-ui 2.0.103 → 2.0.104

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 (168) hide show
  1. package/es/__mocks__/sql-query.json +56 -0
  2. package/es/assets/css/main.scss +2 -2
  3. package/es/components/atoms/App/App.d.ts +7 -0
  4. package/es/components/atoms/App/App.js +5 -0
  5. package/es/components/atoms/App/index.d.ts +1 -0
  6. package/es/components/atoms/App/index.js +1 -0
  7. package/es/components/atoms/Input/Input.d.ts +11 -17
  8. package/es/components/atoms/Input/Input.js +11 -12
  9. package/es/components/atoms/List/List.d.ts +1 -0
  10. package/es/components/atoms/List/List.js +1 -0
  11. package/es/components/atoms/List/index.d.ts +1 -0
  12. package/es/components/atoms/List/index.js +1 -0
  13. package/es/components/atoms/Scrollbars/Scrollbars.d.ts +3 -4
  14. package/es/components/atoms/Scrollbars/Scrollbars.js +2 -1
  15. package/es/components/atoms/SlideBar/SlideBar.js +1 -1
  16. package/es/components/atoms/Tag/Tag.js +1 -1
  17. package/es/components/atoms/index.d.ts +3 -0
  18. package/es/components/atoms/index.js +2 -0
  19. package/es/components/icons/FeedbackOutlinedIcon.d.ts +3 -0
  20. package/es/components/icons/FeedbackOutlinedIcon.js +7 -0
  21. package/es/components/icons/LazyIcon/LazyIcon.d.ts +5 -0
  22. package/es/components/icons/LazyIcon/LazyIcon.js +5 -0
  23. package/es/components/icons/NavigateBeforeIcon.d.ts +3 -0
  24. package/es/components/icons/NavigateBeforeIcon.js +7 -0
  25. package/es/components/icons/NavigateNextIcon.d.ts +3 -0
  26. package/es/components/icons/NavigateNextIcon.js +7 -0
  27. package/es/components/icons/PenSparkIcon.d.ts +3 -0
  28. package/es/components/icons/PenSparkIcon.js +7 -0
  29. package/es/components/icons/StatusSuccessIcon.d.ts +3 -0
  30. package/es/components/icons/StatusSuccessIcon.js +7 -0
  31. package/es/components/icons/SummarizeIconIcon.d.ts +3 -0
  32. package/es/components/icons/SummarizeIconIcon.js +7 -0
  33. package/es/components/icons/index.d.ts +5 -0
  34. package/es/components/icons/index.js +5 -0
  35. package/es/components/index.scss +1 -0
  36. package/es/components/molecules/AddDynamicContent/AddDynamicContent.d.ts +1 -2
  37. package/es/components/molecules/CalendarSelection/constants.d.ts +1 -1
  38. package/es/components/molecules/CalendarSelection/constants.js +1 -1
  39. package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +8 -2
  40. package/es/components/molecules/CaptureScreen/CaptureScreen.js +2 -2
  41. package/es/components/molecules/DrawerDetail/DrawerDetail.js +19 -7
  42. package/es/components/molecules/DrawerDetail/types.d.ts +5 -0
  43. package/es/components/molecules/EditingListV2/components/Loadable.d.ts +1 -1
  44. package/es/components/molecules/EditorScript/EditorScript.d.ts +1 -2
  45. package/es/components/molecules/EditorScript/EditorScript.js +5 -1
  46. package/es/components/molecules/FontSizeInput/index.scss +15 -0
  47. package/es/components/molecules/Select/styled.js +1 -1
  48. package/es/components/molecules/SelectAccount/type.d.ts +1 -1
  49. package/es/components/molecules/TagifyInput/utils.style.js +1 -0
  50. package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.d.ts +1 -1
  51. package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +2 -1
  52. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.d.ts +1 -1
  53. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +1 -1
  54. package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +1290 -0
  55. package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +3059 -0
  56. package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +5 -4
  57. package/es/components/organism/Login/components/LoginWithEmail/styled.js +1 -1
  58. package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +1 -1
  59. package/es/components/organism/Login/components/SignIn/styled.js +1 -1
  60. package/es/components/organism/Login/components/WidgetLayout/styled.js +1 -1
  61. package/es/components/organism/Login/styled.d.ts +3 -3
  62. package/es/components/organism/Login/styled.js +11 -11
  63. package/es/components/organism/ModifyColumnModal/styled.d.ts +2 -2
  64. package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.d.ts +1 -2
  65. package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +3 -1
  66. package/es/components/organism/SQLGeneration/SQLGeneration.d.ts +3 -0
  67. package/es/components/organism/SQLGeneration/SQLGeneration.js +26 -0
  68. package/es/components/organism/SQLGeneration/components/CheckboxShowDiff.d.ts +2 -0
  69. package/es/components/organism/SQLGeneration/components/CheckboxShowDiff.js +16 -0
  70. package/es/components/organism/SQLGeneration/components/EditTableSourcesDrawer.d.ts +2 -0
  71. package/es/components/organism/SQLGeneration/components/EditTableSourcesDrawer.js +56 -0
  72. package/es/components/organism/SQLGeneration/components/ErrorDisplay.d.ts +21 -0
  73. package/es/components/organism/SQLGeneration/components/ErrorDisplay.js +69 -0
  74. package/es/components/organism/SQLGeneration/components/SQLGenerationActions.d.ts +4 -0
  75. package/es/components/organism/SQLGeneration/components/SQLGenerationActions.js +23 -0
  76. package/es/components/organism/SQLGeneration/components/SQLGenerationCodeBlock.d.ts +2 -0
  77. package/es/components/organism/SQLGeneration/components/SQLGenerationCodeBlock.js +22 -0
  78. package/es/components/organism/SQLGeneration/components/SQLGenerationEditPrompt.d.ts +2 -0
  79. package/es/components/organism/SQLGeneration/components/SQLGenerationEditPrompt.js +66 -0
  80. package/es/components/organism/SQLGeneration/components/SQLGenerationHeader.d.ts +2 -0
  81. package/es/components/organism/SQLGeneration/components/SQLGenerationHeader.js +10 -0
  82. package/es/components/organism/SQLGeneration/components/SQLGenerationModal.d.ts +2 -0
  83. package/es/components/organism/SQLGeneration/components/SQLGenerationModal.js +35 -0
  84. package/es/components/organism/SQLGeneration/components/SQLGenerationPagination.d.ts +4 -0
  85. package/es/components/organism/SQLGeneration/components/SQLGenerationPagination.js +13 -0
  86. package/es/components/organism/SQLGeneration/components/SQLGenerationPrompt.d.ts +2 -0
  87. package/es/components/organism/SQLGeneration/components/SQLGenerationPrompt.js +31 -0
  88. package/es/components/organism/SQLGeneration/components/SQLGenerationPromptDisplay.d.ts +2 -0
  89. package/es/components/organism/SQLGeneration/components/SQLGenerationPromptDisplay.js +15 -0
  90. package/es/components/organism/SQLGeneration/components/SQLGenerationQuerySummary.d.ts +2 -0
  91. package/es/components/organism/SQLGeneration/components/SQLGenerationQuerySummary.js +17 -0
  92. package/es/components/organism/SQLGeneration/components/SQLGenerationRefine.d.ts +1 -0
  93. package/es/components/organism/SQLGeneration/components/SQLGenerationRefine.js +55 -0
  94. package/es/components/organism/SQLGeneration/components/SQLGenerationResult.d.ts +5 -0
  95. package/es/components/organism/SQLGeneration/components/SQLGenerationResult.js +29 -0
  96. package/es/components/organism/SQLGeneration/components/index.d.ts +9 -0
  97. package/es/components/organism/SQLGeneration/components/index.js +9 -0
  98. package/es/components/organism/SQLGeneration/components/styled.d.ts +52 -0
  99. package/es/components/organism/SQLGeneration/components/styled.js +382 -0
  100. package/es/components/organism/SQLGeneration/constants.d.ts +48 -0
  101. package/es/components/organism/SQLGeneration/constants.js +48 -0
  102. package/es/components/organism/SQLGeneration/hooks/index.d.ts +1 -0
  103. package/es/components/organism/SQLGeneration/hooks/index.js +1 -0
  104. package/es/components/organism/SQLGeneration/hooks/useKeyboardNavigation.d.ts +14 -0
  105. package/es/components/organism/SQLGeneration/hooks/useKeyboardNavigation.js +123 -0
  106. package/es/components/organism/SQLGeneration/index.d.ts +10 -0
  107. package/es/components/organism/SQLGeneration/index.js +6 -0
  108. package/es/components/organism/SQLGeneration/index.scss +1 -0
  109. package/es/components/organism/SQLGeneration/integrations/AceEditor/index.d.ts +1 -0
  110. package/es/components/organism/SQLGeneration/integrations/AceEditor/index.js +1 -0
  111. package/es/components/organism/SQLGeneration/integrations/AceEditor/index.scss +4 -0
  112. package/es/components/organism/SQLGeneration/integrations/AceEditor/useAceEditor.d.ts +9 -0
  113. package/es/components/organism/SQLGeneration/integrations/AceEditor/useAceEditor.js +24 -0
  114. package/es/components/organism/SQLGeneration/integrations/AceEditor/useEnhancePlaceholder.d.ts +10 -0
  115. package/es/components/organism/SQLGeneration/integrations/AceEditor/useEnhancePlaceholder.js +172 -0
  116. package/es/components/organism/SQLGeneration/integrations/AceEditor/useInsertQuery.d.ts +8 -0
  117. package/es/components/organism/SQLGeneration/integrations/AceEditor/useInsertQuery.js +21 -0
  118. package/es/components/organism/SQLGeneration/integrations/AntsomiAI/index.d.ts +1 -0
  119. package/es/components/organism/SQLGeneration/integrations/AntsomiAI/index.js +1 -0
  120. package/es/components/organism/SQLGeneration/integrations/AntsomiAI/useAntsomiAI.d.ts +1 -0
  121. package/es/components/organism/SQLGeneration/integrations/AntsomiAI/useAntsomiAI.js +35 -0
  122. package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/index.d.ts +1 -0
  123. package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/index.js +1 -0
  124. package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/useAntsomiSqlWS.d.ts +7 -0
  125. package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/useAntsomiSqlWS.js +10 -0
  126. package/es/components/organism/SQLGeneration/selectors.d.ts +857 -0
  127. package/es/components/organism/SQLGeneration/selectors.js +61 -0
  128. package/es/components/organism/SQLGeneration/store/index.d.ts +2 -0
  129. package/es/components/organism/SQLGeneration/store/index.js +1 -0
  130. package/es/components/organism/SQLGeneration/store/provider.d.ts +7 -0
  131. package/es/components/organism/SQLGeneration/store/provider.js +40 -0
  132. package/es/components/organism/SQLGeneration/store/store.d.ts +383 -0
  133. package/es/components/organism/SQLGeneration/store/store.js +309 -0
  134. package/es/components/organism/SQLGeneration/store/types.d.ts +97 -0
  135. package/es/components/organism/SQLGeneration/store/types.js +1 -0
  136. package/es/components/organism/SQLGeneration/types.d.ts +29 -0
  137. package/es/components/organism/SQLGeneration/types.js +1 -0
  138. package/es/components/organism/index.d.ts +1 -0
  139. package/es/components/organism/index.js +1 -0
  140. package/es/components/organism/index.scss +1 -0
  141. package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +3 -4
  142. package/es/hooks/index.d.ts +1 -0
  143. package/es/hooks/index.js +1 -0
  144. package/es/hooks/useFocusManagement.d.ts +14 -0
  145. package/es/hooks/useFocusManagement.js +124 -0
  146. package/es/locales/ja/google-sheet.json +2 -2
  147. package/es/providers/ConfigProvider/ConfigProvider.js +4 -1
  148. package/es/providers/ConfigProvider/GlobalStyle.js +153 -46
  149. package/es/queries/AI/index.d.ts +23 -0
  150. package/es/queries/AI/index.js +4 -0
  151. package/es/queries/AI/useSqlGeneration.d.ts +25 -0
  152. package/es/queries/AI/useSqlGeneration.js +13 -0
  153. package/es/queries/TemplateListing/index.d.ts +2 -2
  154. package/es/queries/index.d.ts +1 -0
  155. package/es/queries/index.js +1 -0
  156. package/es/services/AI/index.d.ts +15 -0
  157. package/es/services/AI/index.js +15 -0
  158. package/es/types/auth.d.ts +25 -0
  159. package/es/types/auth.js +1 -0
  160. package/es/types/index.d.ts +1 -0
  161. package/es/types/index.js +1 -0
  162. package/es/utils/common.d.ts +1 -0
  163. package/es/utils/common.js +16 -1
  164. package/es/utils/web.d.ts +16 -3
  165. package/es/utils/web.js +36 -3
  166. package/es/utils/zustand.d.ts +10 -0
  167. package/es/utils/zustand.js +8 -0
  168. package/package.json +15 -10
@@ -16,7 +16,8 @@ import { safeParseJson } from '@antscorp/antsomi-ui/es/utils';
16
16
  import { POST_MESSAGE_TYPES } from '@antscorp/antsomi-ui/es/constants';
17
17
  export const DrawerDetail = props => {
18
18
  // Props
19
- const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, closable = false, ...restProps } = props;
19
+ const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, classNames = {}, collapsed: propCollapsed, onToggleCollapse, closable = false, ...restProps } = props;
20
+ const { btnToogleSize, ...restClassNames } = classNames;
20
21
  const { show: showMenu = true, showExpandButton = true, showClose = true, items, selectedKeys, footer, onClick = () => { }, } = menuProps || {};
21
22
  const { children: headerChildren, ...restOfHeaderProps } = headerProps || {};
22
23
  const { onClose = () => { } } = props;
@@ -47,25 +48,29 @@ export const DrawerDetail = props => {
47
48
  useEffect(() => {
48
49
  if (matchesSmallScreen) {
49
50
  toggleCollapseDrawer(false);
51
+ onToggleCollapse?.(false);
50
52
  }
51
53
  switch (defaultSize) {
52
54
  case 'max':
53
55
  toggleCollapseDrawer(false);
56
+ onToggleCollapse?.(false);
54
57
  break;
55
58
  case 'min':
56
59
  default:
57
60
  toggleCollapseDrawer(true);
61
+ onToggleCollapse?.(true);
58
62
  break;
59
63
  }
60
- }, [matchesSmallScreen, defaultSize, toggleCollapseDrawer]);
64
+ }, [matchesSmallScreen, defaultSize, toggleCollapseDrawer, onToggleCollapse]);
61
65
  // Get cache collapse from local storage
62
66
  useEffect(() => {
63
67
  const localStorageValues = safeParseJson(localStorage.getItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY), {});
64
68
  const cachedCollapse = localStorageValues[name || ''];
65
69
  if (!isNil(cachedCollapse)) {
66
70
  toggleCollapseDrawer(cachedCollapse);
71
+ onToggleCollapse?.(cachedCollapse);
67
72
  }
68
- }, [name, toggleCollapseDrawer]);
73
+ }, [name, toggleCollapseDrawer, onToggleCollapse]);
69
74
  // Memo
70
75
  const drawerWidth = useMemo(() => {
71
76
  if (fullScreen)
@@ -95,16 +100,22 @@ export const DrawerDetail = props => {
95
100
  }
96
101
  }
97
102
  }, [collapseDrawer, fullScreen, matchesSmallScreen, maxWidth, minWidth, width]);
98
- const handleToggleDrawerSize = () => {
103
+ const handleToggleDrawerSize = useCallback((updatedCollapsed) => {
99
104
  const localStorageValues = safeParseJson(localStorage.getItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY), {});
100
- toggleCollapseDrawer(!collapseDrawer);
105
+ toggleCollapseDrawer(updatedCollapsed ?? !collapseDrawer);
106
+ onToggleCollapse?.(updatedCollapsed ?? !collapseDrawer);
101
107
  /**
102
108
  * Set local storage last collapsed
103
109
  */
104
110
  if (name) {
105
111
  localStorage.setItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY, JSON.stringify({ ...localStorageValues, [name || '']: !collapseDrawer }));
106
112
  }
107
- };
113
+ }, [collapseDrawer, name, onToggleCollapse, toggleCollapseDrawer]);
114
+ useEffect(() => {
115
+ if (propCollapsed !== undefined) {
116
+ handleToggleDrawerSize(propCollapsed);
117
+ }
118
+ }, [propCollapsed, handleToggleDrawerSize]);
108
119
  return (_jsxs(StyledDrawer, { push: false, closable: closable, width: drawerWidth, motion: {
109
120
  visible: false,
110
121
  motionAppear: false,
@@ -117,6 +128,7 @@ export const DrawerDetail = props => {
117
128
  motionLeave: false,
118
129
  }, classNames: {
119
130
  body: 'drawer-detail-body',
131
+ ...restClassNames,
120
132
  }, contentWrapperStyle: {
121
133
  transition: 'none',
122
134
  }, maskStyle: {
@@ -124,7 +136,7 @@ export const DrawerDetail = props => {
124
136
  }, destroyOnClose: destroyOnClose, ...restProps, children: [showCloseIcon && (_jsx("div", { className: "close-btn", ...restOfCloseIcon, onClick: e => {
125
137
  onCloseIconClick(e);
126
138
  onClose(e);
127
- }, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), showExpandButton && !fullScreen && (_jsx(ToggleDrawerSizeButton, { style: {
139
+ }, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), showExpandButton && !fullScreen && (_jsx(ToggleDrawerSizeButton, { className: btnToogleSize, style: {
128
140
  ...(!showMenu && { background: '#ffffff' }),
129
141
  }, onClick: () => handleToggleDrawerSize(), collapse: collapseDrawer })), showMenu && (_jsxs(LeftMenu, { "data-test": "left-menu", className: "animate__animated animate__fadeIn", children: [_jsxs("div", { children: [showClose && (_jsx(CloseBtn, { "data-test": "close-btn", ...restOfCloseIcon, onClick: onClose, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), _jsx(Flex, { vertical: true, gap: 10, align: "center", justify: "center", children: items?.map((item) => (_jsx(Tooltip, { title: item?.label, mouseEnterDelay: 0.3, placement: "right", children: _jsx(MenuItem, { className: selectedKeys?.includes(item.key) ? 'active' : '', onClick: () => onClick && onClick(item), children: item.icon }, item?.key) }, item?.key))) })] }), _jsx(MenuFooter, { children: footer })] })), _jsxs(Content, { className: "drawer-detail-content", children: [headerProps?.children && (_jsx(DrawerHeader, { align: "center", ...restOfHeaderProps, children: headerChildren })), children] })] }));
130
142
  };
@@ -11,6 +11,11 @@ export interface DrawerDetailProps extends Omit<DrawerProps, 'closeIcon' | 'titl
11
11
  headerProps?: DrawerHeaderProps;
12
12
  menuProps?: DrawerDetailMenuProps;
13
13
  closeIconProps?: DrawerDetailCloseIconProps;
14
+ classNames?: DrawerProps['classNames'] & {
15
+ btnToogleSize?: string;
16
+ };
17
+ collapsed?: boolean;
18
+ onToggleCollapse?: (collapsed: boolean) => void;
14
19
  }
15
20
  export interface DrawerDetailCloseIconProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
16
21
  show?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Popover: import("react").LazyExoticComponent<(props: {
3
- placement?: "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "left" | "right" | "bottom" | "top" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
3
+ placement?: "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "left" | "right" | "bottom" | "top" | "bottomLeft" | "topLeft" | "topRight" | "bottomRight" | undefined;
4
4
  options: import("../types").Option[];
5
5
  selected: string[];
6
6
  addButtonLabel: import("react").ReactNode;
@@ -5,10 +5,9 @@ import 'ace-builds/src-noconflict/mode-javascript';
5
5
  import 'ace-builds/src-noconflict/mode-css';
6
6
  import 'ace-builds/src-noconflict/theme-tomorrow';
7
7
  import 'ace-builds/src-noconflict/ext-language_tools';
8
- interface EditorScriptProps extends IAceEditorProps {
8
+ export interface EditorScriptProps extends IAceEditorProps {
9
9
  label?: string | ReactNode;
10
10
  expandModalLabel?: string | ReactNode;
11
11
  hideExpand?: boolean | ReactNode;
12
12
  }
13
13
  export declare const EditorScript: React.FC<EditorScriptProps>;
14
- export {};
@@ -36,7 +36,11 @@ export const EditorScript = props => {
36
36
  showLineNumbers: true,
37
37
  tabSize: 2,
38
38
  ...setOptions,
39
- }, ...restOf, style: { width: '100%', height: aceHeight } }));
39
+ }, ...restOf, style: {
40
+ width: '100%',
41
+ height: aceHeight,
42
+ ...restOf.style,
43
+ }, onLoad: e => { } }));
40
44
  }
41
45
  catch (error) {
42
46
  handleError(error, {
@@ -0,0 +1,15 @@
1
+ .antsomi-font-size-input-popover {
2
+ &.antsomi-popover {
3
+ .antsomi-popover-inner {
4
+ padding: 0;
5
+
6
+ .antsomi-popover-inner-content {
7
+ overflow: auto;
8
+
9
+ > ul {
10
+ max-height: 240px;
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,7 +1,7 @@
1
1
  // Libraries
2
2
  import styled from 'styled-components';
3
3
  // Components
4
- import { Tag } from '@antscorp/antsomi-ui/es/components/atoms/Tag';
4
+ import { Tag } from '../../atoms/Tag';
5
5
  // Constants
6
6
  import { THEME } from '../../../constants';
7
7
  export const StyledTag = styled(Tag) `
@@ -11,7 +11,7 @@ type GroupAccountProps = {
11
11
  accountText?: string;
12
12
  };
13
13
  export type SelectAccountWithUsers = {
14
- users?: Record<any, string>[];
14
+ users?: Record<string, any>[];
15
15
  };
16
16
  export type SelectAccountWithApi = {
17
17
  dataAccountsKey?: string;
@@ -189,6 +189,7 @@ export const getTagifyTagStyled = (_wrapperProps) => css `
189
189
  }
190
190
  `}
191
191
  }
192
+
192
193
  &[${NO_VIEW_TAG}='true'] {
193
194
  ${({ $tagInvalidIcon }) => $tagInvalidIcon &&
194
195
  css `
@@ -66,7 +66,7 @@ export declare const useTemplateSave: (options: TemplateListingOptions) => {
66
66
  form: import("antd").FormInstance<FormValue>;
67
67
  errors: any[] | undefined;
68
68
  refetchCategoryList: <TPageData>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<TemplateCategory[], any>>;
69
- refetchTemplateList: <TPageData_1>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData_1>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@antscorp/antsomi-ui/es/types").ResponseListing<import("../../../../models/ObjectTemplate").ObjectTemplate>>, any>>;
69
+ refetchTemplateList: <TPageData_1>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData_1>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<any>, any>>;
70
70
  onLoadMore: () => void;
71
71
  onChange: (newValue: Partial<TemplateValueOptions>) => void;
72
72
  };
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable jsx-a11y/label-has-associated-control */
2
3
  // Libraries
3
4
  import axios from 'axios';
4
5
  import clsx from 'clsx';
@@ -402,7 +403,7 @@ export const AccountSetting = memo(forwardRef((props, ref) => {
402
403
  return _jsx("textarea", { ...inputProps });
403
404
  case 'date':
404
405
  // {...inputProps} isShowLabel={false} error={errorMsg}
405
- return (_jsx(StyledDatePicker, { value: inputProps.value, onChange: inputProps.onChange, popupClassName: "antsomi-custom-calendar-picker", showToday: false, prevIcon: _jsx(Icon, { type: "icon-ants-angle-left", size: "11" }), nextIcon: _jsx(Icon, { type: "icon-ants-angle-right1", size: "11" }), allowClear: false, suffixIcon: _jsx(Icon, { type: "icon-ants-calendar-picker", size: "24", color: "rgba(0, 0, 0, 0.54)" }) }));
406
+ return (_jsx(StyledDatePicker, { value: inputProps.value, onChange: inputProps.onChange, popupClassName: "antsomi-custom-calendar-picker", showToday: false, prevIcon: _jsx(Icon, { type: "icon-ants-angle-left", size: 11 }), nextIcon: _jsx(Icon, { type: "icon-ants-angle-right1", size: 11 }), allowClear: false, suffixIcon: _jsx(Icon, { type: "icon-ants-calendar-picker", size: 24, color: "rgba(0, 0, 0, 0.54)" }) }));
406
407
  case 'radio':
407
408
  // return <RadioButtonGroup {...inputProps} />;
408
409
  return (_jsx(StyledRadioGroup, { value: +inputProps.value, onChange: inputProps.onChange, name: inputProps.fieldName, disabled: inputProps.disabled, children: inputProps.arrRadios.map(item => (_jsx(Radio, { value: item.value, children: item.label }, item.value))) }));
@@ -8,4 +8,4 @@ export declare const StyledSelect: import("styled-components").StyledComponent<(
8
8
  OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
9
9
  _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
10
10
  } & import("react").FC<import("@antscorp/antsomi-ui/es/components/molecules/Select").SelectProps>, any, {}, never>;
11
- export declare const StyledSelectOption: import("styled-components").StyledComponent<import("antd").TypographyProps, any, {}, never>;
11
+ export declare const StyledSelectOption: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
@@ -14,7 +14,7 @@ export const StyledSelect = styled(Select) `
14
14
  background: url('~Assets/images/langs/vietnam.png') no-repeat;
15
15
  }
16
16
  `;
17
- export const StyledSelectOption = styled(Typography) `
17
+ export const StyledSelectOption = styled(Typography.Text) `
18
18
  display: flex !important;
19
19
  justify-content: flex-start;
20
20
  align-items: center;