@antscorp/antsomi-ui 2.0.107 → 2.0.109

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 (299) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +78 -78
  3. package/es/__mocks__/1000_city.json +802 -802
  4. package/es/__mocks__/sql-query.json +56 -56
  5. package/es/assets/css/main.scss +6 -6
  6. package/es/assets/images/feedback.svg +3 -3
  7. package/es/assets/svg/mobile-frame.svg +3 -3
  8. package/es/assets/svg/warning-icon.svg +5 -5
  9. package/es/components/atoms/Alert/Alert.js +28 -28
  10. package/es/components/atoms/ContentEditable/styled.js +16 -16
  11. package/es/components/atoms/DividerPure/styled.js +35 -35
  12. package/es/components/atoms/Icon/index.js +19 -19
  13. package/es/components/atoms/Iframe/Iframe.js +18 -18
  14. package/es/components/atoms/Input/styled.js +104 -104
  15. package/es/components/atoms/InputDynamic/styled.js +284 -284
  16. package/es/components/atoms/MobileBrandingBar/styled.js +21 -21
  17. package/es/components/atoms/MobileFrame/styled.js +30 -30
  18. package/es/components/atoms/MobileFrameV2/styled.js +42 -42
  19. package/es/components/atoms/MobileFrameV3/styled.js +31 -31
  20. package/es/components/atoms/NotificationStatus/styled.js +10 -10
  21. package/es/components/atoms/PreviewTabs/styled.js +69 -69
  22. package/es/components/atoms/Radio/index.js +16 -16
  23. package/es/components/atoms/ReactIframe/ReactIframe.js +5 -5
  24. package/es/components/atoms/ReactIframe/styled.js +9 -9
  25. package/es/components/atoms/RequiredLabel/styled.js +3 -3
  26. package/es/components/atoms/ScrollBox/index.js +5 -5
  27. package/es/components/atoms/Scrollbars/styled.js +21 -21
  28. package/es/components/atoms/SlideBar/styled.js +194 -194
  29. package/es/components/atoms/Slider/styled.js +31 -31
  30. package/es/components/atoms/Space/Space.js +4 -4
  31. package/es/components/atoms/Spin/styled.js +11 -11
  32. package/es/components/atoms/Steps/styled.js +244 -244
  33. package/es/components/atoms/Switch/styled.js +56 -56
  34. package/es/components/atoms/Tag/Tag.js +10 -10
  35. package/es/components/atoms/Text/styled.js +34 -34
  36. package/es/components/icons/DomainManagementIcon.js +1 -1
  37. package/es/components/icons/LoadingIcon.js +33 -33
  38. package/es/components/icons/document/styled.js +43 -43
  39. package/es/components/index.scss +1 -1
  40. package/es/components/molecules/AccessDenied/styled.js +28 -28
  41. package/es/components/molecules/AccountSelection/styled.js +110 -110
  42. package/es/components/molecules/AddDynamicContent/styled.js +23 -23
  43. package/es/components/molecules/AlignSetting/styled.js +4 -4
  44. package/es/components/molecules/ApplyPopupContent/styled.js +32 -32
  45. package/es/components/molecules/CalendarSelection/components/AutoUpdateTo/styled.js +8 -8
  46. package/es/components/molecules/CalendarSelection/components/CustomPicker/styled.js +79 -79
  47. package/es/components/molecules/CalendarSelection/components/Footer/styled.js +4 -4
  48. package/es/components/molecules/CalendarSelection/components/RangePicker/styled.js +21 -21
  49. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +26 -26
  50. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.js +30 -30
  51. package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/styled.js +26 -26
  52. package/es/components/molecules/CalendarSelection/styled.js +8 -8
  53. package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +119 -119
  54. package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +67 -67
  55. package/es/components/molecules/CaptureScreen/styled.js +240 -240
  56. package/es/components/molecules/ChartTab/components/styled.js +24 -24
  57. package/es/components/molecules/ChartTab/styled.js +20 -20
  58. package/es/components/molecules/ChatBox/AntsomiAI.js +8 -8
  59. package/es/components/molecules/ChatBox/ChatBoxInsight/QuestionItem.js +9 -9
  60. package/es/components/molecules/ChatBox/ChatBoxInsight/styled.js +365 -365
  61. package/es/components/molecules/ChatBox/styled.js +324 -324
  62. package/es/components/molecules/CodeStructure/styled.js +5 -5
  63. package/es/components/molecules/ColorPicker/ChromePicker/styled.js +10 -10
  64. package/es/components/molecules/ColorPicker/CustomPicker/styled.js +89 -89
  65. package/es/components/molecules/ColorPicker/SketchPicker/styled.js +5 -5
  66. package/es/components/molecules/ColorPicker/styled.js +7 -7
  67. package/es/components/molecules/ColorSetting/styled.js +39 -39
  68. package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +110 -110
  69. package/es/components/molecules/DatePickerV2/styled.js +6 -6
  70. package/es/components/molecules/DisplayFormat/styled.js +12 -12
  71. package/es/components/molecules/DrawerDetail/components/ToggleDrawerSizeButton.js +24 -24
  72. package/es/components/molecules/DrawerDetail/styled.js +109 -109
  73. package/es/components/molecules/Dropdown/style.scss +11 -11
  74. package/es/components/molecules/Dropdown/styled.js +28 -28
  75. package/es/components/molecules/EdgeSetting/styled.js +10 -10
  76. package/es/components/molecules/EditableName/styled.js +70 -70
  77. package/es/components/molecules/EditingList/styled.js +29 -29
  78. package/es/components/molecules/EditingListV2/components/List/List.d.ts +1 -1
  79. package/es/components/molecules/EditingListV2/components/List/List.js +16 -7
  80. package/es/components/molecules/EditorTab/styled.js +156 -156
  81. package/es/components/molecules/EmojiCollections/styled.js +22 -22
  82. package/es/components/molecules/EmojiPopover/styled.js +4 -4
  83. package/es/components/molecules/EmptyData/styled.js +53 -53
  84. package/es/components/molecules/FontSizeInput/index.scss +15 -15
  85. package/es/components/molecules/GradientSetting/styled.js +57 -57
  86. package/es/components/molecules/HeaderV2/styled.js +70 -70
  87. package/es/components/molecules/IconSelection/styled.js +69 -69
  88. package/es/components/molecules/ImageEditor/components/ModalShortcut.js +21 -21
  89. package/es/components/molecules/ImageEditor/styled.js +5 -5
  90. package/es/components/molecules/ImagePreview/styled.js +3 -3
  91. package/es/components/molecules/InputNumberWithUnit/styled.js +14 -14
  92. package/es/components/molecules/InputSearch/styled.js +41 -41
  93. package/es/components/molecules/ItemNotFound/styled.js +26 -26
  94. package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +8 -8
  95. package/es/components/molecules/MatchAnySelect/styled.js +247 -247
  96. package/es/components/molecules/Modal/styled.js +63 -63
  97. package/es/components/molecules/ModalSelect/styled.js +152 -152
  98. package/es/components/molecules/ModalV2/styled.js +27 -27
  99. package/es/components/molecules/PopupDraggable/styled.js +57 -57
  100. package/es/components/molecules/PreviewModal/styled.js +26 -26
  101. package/es/components/molecules/ProcessLoading/styled.js +2 -2
  102. package/es/components/molecules/QuillEditor/CustomToolbar.js +3165 -3165
  103. package/es/components/molecules/QuillEditor/EditorToolbar.js +7 -7
  104. package/es/components/molecules/QuillEditor/styled.js +25 -25
  105. package/es/components/molecules/RadioGroup/styled.js +9 -9
  106. package/es/components/molecules/RequestAccess/styled.js +38 -38
  107. package/es/components/molecules/ResizeGrid/components/Cell/styled.js +77 -77
  108. package/es/components/molecules/ResizeGrid/styled.js +50 -50
  109. package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +118 -118
  110. package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +13 -13
  111. package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +40 -40
  112. package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +27 -27
  113. package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +2 -2
  114. package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +38 -38
  115. package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +36 -36
  116. package/es/components/molecules/SearchPopover/components/PopoverSelect/styles.scss +7 -7
  117. package/es/components/molecules/SearchPopover/styled.js +32 -32
  118. package/es/components/molecules/Select/styled.js +32 -32
  119. package/es/components/molecules/SelectAccount/styled.js +147 -147
  120. package/es/components/molecules/SelectEventAttribute/styled.js +8 -8
  121. package/es/components/molecules/SelectMulti/styled.js +62 -62
  122. package/es/components/molecules/SelectV2/styled.js +124 -124
  123. package/es/components/molecules/SettingWrapper/styled.js +12 -12
  124. package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +56 -56
  125. package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +5 -5
  126. package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +15 -15
  127. package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +63 -63
  128. package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +31 -31
  129. package/es/components/molecules/SliderWithInputNumber/styled.js +2 -2
  130. package/es/components/molecules/Tabs/Tabs.js +11 -11
  131. package/es/components/molecules/TagifyInput/TagifyInput.js +65 -54
  132. package/es/components/molecules/TagifyInput/constants.d.ts +7 -3
  133. package/es/components/molecules/TagifyInput/constants.js +7 -2
  134. package/es/components/molecules/TagifyInput/patternHandlers.js +34 -1
  135. package/es/components/molecules/TagifyInput/styled.js +37 -37
  136. package/es/components/molecules/TagifyInput/types.d.ts +13 -3
  137. package/es/components/molecules/TagifyInput/utils.d.ts +1 -0
  138. package/es/components/molecules/TagifyInput/utils.js +15 -14
  139. package/es/components/molecules/TagifyInput/utils.style.js +218 -218
  140. package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +5 -5
  141. package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.js +276 -276
  142. package/es/components/molecules/TemplateSaveAs/styled.js +134 -134
  143. package/es/components/molecules/ThumbnailCard/styled.js +92 -92
  144. package/es/components/molecules/Tree/styled.js +38 -38
  145. package/es/components/molecules/UnsubscribePreferences/constants.d.ts +27 -0
  146. package/es/components/molecules/UnsubscribePreferences/constants.js +28 -0
  147. package/es/components/molecules/UnsubscribePreferences/index.d.ts +17 -0
  148. package/es/components/molecules/UnsubscribePreferences/index.js +203 -0
  149. package/es/components/molecules/UnsubscribePreferences/styled.d.ts +2 -0
  150. package/es/components/molecules/UnsubscribePreferences/styled.js +11 -0
  151. package/es/components/molecules/UnsubscribePreferences/utils.d.ts +15 -0
  152. package/es/components/molecules/UnsubscribePreferences/utils.js +56 -0
  153. package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.d.ts +12 -0
  154. package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.js +159 -0
  155. package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.d.ts +13 -0
  156. package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.js +28 -0
  157. package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.d.ts +9 -0
  158. package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.js +18 -0
  159. package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.d.ts +13 -0
  160. package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.js +85 -0
  161. package/es/components/molecules/UnsubscribePreview/components/index.d.ts +3 -0
  162. package/es/components/molecules/UnsubscribePreview/components/index.js +3 -0
  163. package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +13 -0
  164. package/es/components/molecules/UnsubscribePreview/components/styled.js +65 -0
  165. package/es/components/molecules/UnsubscribePreview/index.d.ts +10 -0
  166. package/es/components/molecules/UnsubscribePreview/index.js +66 -0
  167. package/es/components/molecules/UnsubscribePreview/styled.d.ts +9 -0
  168. package/es/components/molecules/UnsubscribePreview/styled.js +51 -0
  169. package/es/components/molecules/UnsubscribePreview/type.d.ts +5 -0
  170. package/es/components/molecules/UnsubscribePreview/type.js +1 -0
  171. package/es/components/molecules/UnsubscribePreview/utils.d.ts +9 -0
  172. package/es/components/molecules/UnsubscribePreview/utils.js +27 -0
  173. package/es/components/molecules/UploadImage/index.d.ts +4 -0
  174. package/es/components/molecules/UploadImage/index.js +2 -2
  175. package/es/components/molecules/UploadImage/styled.js +114 -114
  176. package/es/components/molecules/VirtualizedMenu/styled.js +82 -82
  177. package/es/components/molecules/index.d.ts +4 -0
  178. package/es/components/molecules/index.js +2 -0
  179. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.js +98 -98
  180. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +18 -18
  181. package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +543 -543
  182. package/es/components/organism/AccountProfile/components/AccountSetting/styles.scss +39 -39
  183. package/es/components/organism/AccountSharing/styled.js +336 -336
  184. package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +1290 -1290
  185. package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +3059 -3059
  186. package/es/components/organism/ActivityTimeline/components/ActionHistory/styled.js +28 -28
  187. package/es/components/organism/ActivityTimeline/components/CardMember/styled.js +60 -60
  188. package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/styled.js +4 -4
  189. package/es/components/organism/ActivityTimeline/components/List/styled.js +77 -77
  190. package/es/components/organism/ActivityTimeline/components/ListItem/styled.js +37 -37
  191. package/es/components/organism/ActivityTimeline/components/ProductCard/styled.js +92 -92
  192. package/es/components/organism/ActivityTimeline/components/Redeem/styled.js +7 -7
  193. package/es/components/organism/ActivityTimeline/components/Slide/styled.js +20 -20
  194. package/es/components/organism/ActivityTimeline/components/TimeLineTitle/styled.js +7 -7
  195. package/es/components/organism/ActivityTimeline/components/TimelineSection/styled.js +69 -69
  196. package/es/components/organism/ActivityTimeline/styled.js +39 -39
  197. package/es/components/organism/AlgorithmsSetting/styled.js +35 -35
  198. package/es/components/organism/BasicLogin/components/ChooseMethod/styled.js +19 -19
  199. package/es/components/organism/BasicLogin/components/LoginWithEmail/styled.js +3 -3
  200. package/es/components/organism/BasicLogin/components/LoginWithGG/styled.js +3 -3
  201. package/es/components/organism/BasicLogin/components/SignIn/styled.js +8 -8
  202. package/es/components/organism/BasicLogin/components/WidgetLayout/styled.js +18 -18
  203. package/es/components/organism/BasicLogin/styled.js +107 -107
  204. package/es/components/organism/ContentSources/styled.js +50 -50
  205. package/es/components/organism/DataTable/components/AddButton/index.js +8 -8
  206. package/es/components/organism/DataTable/components/ModifyColumn/styled.js +18 -18
  207. package/es/components/organism/DataTable/components/Pagination/styled.js +26 -26
  208. package/es/components/organism/DataTable/components/Table/styled.js +135 -135
  209. package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +17 -17
  210. package/es/components/organism/DataTable/components/Toolbar/styled.js +70 -70
  211. package/es/components/organism/DataTable/styled/index.js +84 -84
  212. package/es/components/organism/Filter/components/FilterCondition/styled.js +34 -34
  213. package/es/components/organism/Filter/styled.js +109 -109
  214. package/es/components/organism/FilterSetting/components/common/InputArray/styled.js +5 -5
  215. package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +63 -63
  216. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.js +31 -31
  217. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.js +22 -22
  218. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +55 -55
  219. package/es/components/organism/FilterSetting/styled.js +19 -19
  220. package/es/components/organism/Help/styled.js +267 -267
  221. package/es/components/organism/LeftMenu/components/HomeMenu/styled.js +39 -39
  222. package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +16 -16
  223. package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +156 -156
  224. package/es/components/organism/LeftMenu/styled.js +214 -214
  225. package/es/components/organism/Login/components/ChooseMethod/styled.js +19 -19
  226. package/es/components/organism/Login/components/ForgotPassword/styled.js +8 -8
  227. package/es/components/organism/Login/components/LoginSelectPortal/Item/styled.js +31 -31
  228. package/es/components/organism/Login/components/LoginSelectPortal/styled.js +3 -3
  229. package/es/components/organism/Login/components/LoginWithEmail/styled.js +3 -3
  230. package/es/components/organism/Login/components/LoginWithGG/styled.js +3 -3
  231. package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +7 -7
  232. package/es/components/organism/Login/components/SignIn/styled.js +8 -8
  233. package/es/components/organism/Login/components/VerifyAccount/styled.js +13 -13
  234. package/es/components/organism/Login/components/WidgetLayout/styled.js +18 -18
  235. package/es/components/organism/Login/styled.js +115 -115
  236. package/es/components/organism/Menu/styled.js +6 -6
  237. package/es/components/organism/ModifyColumnModal/styled.js +132 -132
  238. package/es/components/organism/Notification/styled.js +155 -155
  239. package/es/components/organism/PreviewCollections/Messages/SkeletonMessage/styled.js +14 -14
  240. package/es/components/organism/PreviewCollections/WhatsappMessage/CarouselMessage/styled.js +63 -63
  241. package/es/components/organism/PreviewCollections/WhatsappMessage/FooterMessage/index.js +3 -1
  242. package/es/components/organism/PreviewCollections/constants.js +50 -50
  243. package/es/components/organism/PreviewCollections/styled.js +16 -16
  244. package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +78 -78
  245. package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +52 -52
  246. package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +18 -18
  247. package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +77 -77
  248. package/es/components/organism/PreviewTemplateModal/styled.js +21 -21
  249. package/es/components/organism/SQLGeneration/components/styled.js +354 -354
  250. package/es/components/organism/SQLGeneration/index.scss +1 -1
  251. package/es/components/organism/SQLGeneration/integrations/AceEditor/index.scss +4 -4
  252. package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +11 -11
  253. package/es/components/organism/Table/CrossTabTable/styled.js +11 -11
  254. package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +17 -17
  255. package/es/components/organism/Table/ExplorePivotTable/styled.js +11 -11
  256. package/es/components/organism/TicketEditor/styled.js +850 -850
  257. package/es/components/organism/TicketEditorV2/styled.js +839 -839
  258. package/es/components/organism/index.scss +1 -1
  259. package/es/components/template/Layout/Layout.js +10 -10
  260. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/styled.js +73 -73
  261. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +39 -39
  262. package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.js +61 -61
  263. package/es/components/template/Layout/components/RecommendationWorkspace/styled.js +16 -16
  264. package/es/components/template/Layout/styled.js +84 -84
  265. package/es/components/template/TemplateListing/components/BlankTemplate/styled.js +21 -21
  266. package/es/components/template/TemplateListing/components/CategoryListing/styled.js +123 -123
  267. package/es/components/template/TemplateListing/components/Empty/styled.js +20 -20
  268. package/es/components/template/TemplateListing/stories/demo/styled.js +4 -4
  269. package/es/components/template/TemplateListing/styled/index.js +40 -40
  270. package/es/constants/index.d.ts +1 -0
  271. package/es/constants/index.js +1 -0
  272. package/es/constants/queries.d.ts +5 -0
  273. package/es/constants/queries.js +6 -0
  274. package/es/constants/unsubscribe.d.ts +56 -0
  275. package/es/constants/unsubscribe.js +77 -0
  276. package/es/providers/ConfigProvider/GlobalStyle.js +1249 -1249
  277. package/es/queries/Unsubscribe/index.d.ts +5 -0
  278. package/es/queries/Unsubscribe/index.js +5 -0
  279. package/es/queries/Unsubscribe/useGetUnsubscribeList.d.ts +8 -0
  280. package/es/queries/Unsubscribe/useGetUnsubscribeList.js +18 -0
  281. package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.d.ts +8 -0
  282. package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.js +11 -0
  283. package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.d.ts +8 -0
  284. package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.js +17 -0
  285. package/es/queries/Unsubscribe/useGetUnsubscribePreferences.d.ts +23 -0
  286. package/es/queries/Unsubscribe/useGetUnsubscribePreferences.js +26 -0
  287. package/es/services/MediaTemplateDesign/UploadFile/index.js +4 -4
  288. package/es/services/Unsubscribe/index.d.ts +41 -0
  289. package/es/services/Unsubscribe/index.js +78 -0
  290. package/es/styled/common.js +51 -51
  291. package/es/tests/styled.js +4 -4
  292. package/es/types/index.d.ts +1 -0
  293. package/es/types/index.js +1 -0
  294. package/es/types/unsubscribe.d.ts +25 -0
  295. package/es/types/unsubscribe.js +1 -0
  296. package/es/utils/common.d.ts +1 -0
  297. package/es/utils/common.js +3 -0
  298. package/es/utils/variables.js +7 -7
  299. package/package.json +266 -266
@@ -2,161 +2,161 @@ import styled from 'styled-components';
2
2
  import { Button } from '@antscorp/antsomi-ui/es/components/atoms/Button';
3
3
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
4
4
  import { Badge } from 'antd';
5
- export const DivShowNotiStyled = styled.div `
6
- background-color: #fff;
7
- width: 348px;
8
- max-height: 695px;
9
- font-size: 12px;
10
-
11
- box-sizing: border-box;
12
- div,
13
- p {
14
- box-sizing: border-box;
15
- margin: 0;
16
- }
17
-
18
- .div-loading {
19
- position: absolute;
20
- width: 100%;
21
- height: 100%;
22
- display: flex;
23
- align-items: center;
24
- justify-content: center;
25
- }
26
- .div-show-header {
27
- display: flex;
28
- align-items: center;
29
- justify-content: space-between;
30
- padding: 16px;
31
- .title-noti {
32
- color: #333333;
33
- font-size: 16px;
34
- }
35
- }
36
-
37
- .div-loading ~ .div-show-content {
38
- opacity: 0.2;
39
- }
40
- .div-show-content {
41
- position: relative;
42
- max-height: 545px;
43
- overflow-y: auto;
44
-
45
- .div-left-icon-dot {
46
- position: absolute;
47
- top: 20px;
48
- left: 18px;
49
- width: 8px;
50
- height: 8px;
51
- background-color: #2e60a7;
52
- border-radius: 999px;
53
- }
54
- .noti-card:last-child {
55
- border: none;
56
- }
57
- .noti-card:hover,
58
- .noti-card:has(button.antsomi-dropdown-open) {
59
- background-color: ${THEME.token?.blue0};
60
- }
61
-
62
- .noti-card {
63
- position: relative;
64
- padding: 15px 10px 15px 45px;
65
- border-bottom: 1px solid ${THEME.token?.blue0};
66
-
67
- .div-title {
68
- display: flex;
69
- align-items: center;
70
- width: 290px;
71
- .div-title-text {
72
- flex: 1;
73
- color: #333333;
74
- font-weight: bold;
75
- }
76
-
77
- margin-bottom: 7px;
78
- }
79
-
80
- .item-link {
81
- margin-bottom: 12px;
82
- width: 270px;
83
- }
84
-
85
- .item-desc {
86
- margin-bottom: 10px;
87
- color: #333333;
88
- width: 250px;
89
- padding: 0 10px 4px;
90
-
91
- border-left: 1px solid #889199;
92
- }
93
-
94
- .item-desc + p {
95
- font-size: 11px;
96
- }
97
- }
98
- }
99
-
100
- .text-link {
101
- color: #1f5fac;
102
- cursor: pointer;
103
- }
104
- .text-grey {
105
- color: #999999;
106
- }
107
- .text-block-center {
108
- height: 40px;
109
- padding: 12px 0;
110
- text-align: center;
111
- }
112
- .text-ellipsis {
113
- display: -webkit-box;
114
- -webkit-line-clamp: 2;
115
- -webkit-box-orient: vertical;
116
- overflow: hidden;
117
- text-overflow: ellipsis;
118
- }
5
+ export const DivShowNotiStyled = styled.div `
6
+ background-color: #fff;
7
+ width: 348px;
8
+ max-height: 695px;
9
+ font-size: 12px;
10
+
11
+ box-sizing: border-box;
12
+ div,
13
+ p {
14
+ box-sizing: border-box;
15
+ margin: 0;
16
+ }
17
+
18
+ .div-loading {
19
+ position: absolute;
20
+ width: 100%;
21
+ height: 100%;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ }
26
+ .div-show-header {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ padding: 16px;
31
+ .title-noti {
32
+ color: #333333;
33
+ font-size: 16px;
34
+ }
35
+ }
36
+
37
+ .div-loading ~ .div-show-content {
38
+ opacity: 0.2;
39
+ }
40
+ .div-show-content {
41
+ position: relative;
42
+ max-height: 545px;
43
+ overflow-y: auto;
44
+
45
+ .div-left-icon-dot {
46
+ position: absolute;
47
+ top: 20px;
48
+ left: 18px;
49
+ width: 8px;
50
+ height: 8px;
51
+ background-color: #2e60a7;
52
+ border-radius: 999px;
53
+ }
54
+ .noti-card:last-child {
55
+ border: none;
56
+ }
57
+ .noti-card:hover,
58
+ .noti-card:has(button.antsomi-dropdown-open) {
59
+ background-color: ${THEME.token?.blue0};
60
+ }
61
+
62
+ .noti-card {
63
+ position: relative;
64
+ padding: 15px 10px 15px 45px;
65
+ border-bottom: 1px solid ${THEME.token?.blue0};
66
+
67
+ .div-title {
68
+ display: flex;
69
+ align-items: center;
70
+ width: 290px;
71
+ .div-title-text {
72
+ flex: 1;
73
+ color: #333333;
74
+ font-weight: bold;
75
+ }
76
+
77
+ margin-bottom: 7px;
78
+ }
79
+
80
+ .item-link {
81
+ margin-bottom: 12px;
82
+ width: 270px;
83
+ }
84
+
85
+ .item-desc {
86
+ margin-bottom: 10px;
87
+ color: #333333;
88
+ width: 250px;
89
+ padding: 0 10px 4px;
90
+
91
+ border-left: 1px solid #889199;
92
+ }
93
+
94
+ .item-desc + p {
95
+ font-size: 11px;
96
+ }
97
+ }
98
+ }
99
+
100
+ .text-link {
101
+ color: #1f5fac;
102
+ cursor: pointer;
103
+ }
104
+ .text-grey {
105
+ color: #999999;
106
+ }
107
+ .text-block-center {
108
+ height: 40px;
109
+ padding: 12px 0;
110
+ text-align: center;
111
+ }
112
+ .text-ellipsis {
113
+ display: -webkit-box;
114
+ -webkit-line-clamp: 2;
115
+ -webkit-box-orient: vertical;
116
+ overflow: hidden;
117
+ text-overflow: ellipsis;
118
+ }
119
119
  `;
120
- export const ActionButton = styled(Button) `
121
- /* border: none !important; */
122
- background-color: transparent !important;
123
- color: #666666 !important;
124
- box-shadow: none !important;
125
- border-radius: 10px !important;
126
- height: 36px !important;
127
- width: 36px !important;
128
-
129
- &.notify-action {
130
- border: none !important;
131
- color: ${THEME.token?.blue7} !important;
132
- border-radius: 5px !important;
133
- }
134
-
135
- &.antsomi-dropdown-open,
136
- &.antsomi-popover-open {
137
- color: ${THEME.token?.blue7} !important;
138
- background-color: ${THEME.token?.blue1_1} !important;
139
- border: 1px solid ${THEME.token?.blue7} !important;
140
- &.notify-action {
141
- border: none !important;
142
- color: ${THEME.token?.blue7} !important;
143
- border-radius: 5px !important;
144
- }
145
- }
120
+ export const ActionButton = styled(Button) `
121
+ /* border: none !important; */
122
+ background-color: transparent !important;
123
+ color: #666666 !important;
124
+ box-shadow: none !important;
125
+ border-radius: 10px !important;
126
+ height: 36px !important;
127
+ width: 36px !important;
128
+
129
+ &.notify-action {
130
+ border: none !important;
131
+ color: ${THEME.token?.blue7} !important;
132
+ border-radius: 5px !important;
133
+ }
134
+
135
+ &.antsomi-dropdown-open,
136
+ &.antsomi-popover-open {
137
+ color: ${THEME.token?.blue7} !important;
138
+ background-color: ${THEME.token?.blue1_1} !important;
139
+ border: 1px solid ${THEME.token?.blue7} !important;
140
+ &.notify-action {
141
+ border: none !important;
142
+ color: ${THEME.token?.blue7} !important;
143
+ border-radius: 5px !important;
144
+ }
145
+ }
146
146
  `;
147
- export const BadgeStyled = styled(Badge) `
148
- button {
149
- background-color: transparent !important;
150
- color: #666666 !important;
151
- box-shadow: none !important;
152
- }
153
-
154
- &.antsomi-dropdown-open,
155
- &.antsomi-popover-open {
156
- button {
157
- color: ${THEME.token?.blue7} !important;
158
- background-color: ${THEME.token?.blue1_1} !important;
159
- border: 1px solid ${THEME.token?.blue7} !important;
160
- }
161
- }
147
+ export const BadgeStyled = styled(Badge) `
148
+ button {
149
+ background-color: transparent !important;
150
+ color: #666666 !important;
151
+ box-shadow: none !important;
152
+ }
153
+
154
+ &.antsomi-dropdown-open,
155
+ &.antsomi-popover-open {
156
+ button {
157
+ color: ${THEME.token?.blue7} !important;
158
+ background-color: ${THEME.token?.blue1_1} !important;
159
+ border: 1px solid ${THEME.token?.blue7} !important;
160
+ }
161
+ }
162
162
  `;
@@ -5,18 +5,18 @@ import { BASE } from '../../constants';
5
5
  import { globalToken } from '@antscorp/antsomi-ui/es/constants';
6
6
  const { MEDIA } = BASE;
7
7
  const { MAX_HEIGHT } = MEDIA;
8
- export const MediaSection = styled.section `
9
- position: relative;
10
- max-height: ${MAX_HEIGHT}px;
11
-
12
- &::after {
13
- content: '';
14
- display: inline-block;
15
- width: calc(100% + ${BASE.OFFSET.PADDING * 2}px);
16
- height: 1px;
17
- background-color: ${globalToken?.bw2};
18
- position: absolute;
19
- top: 100%;
20
- left: -10px;
21
- }
8
+ export const MediaSection = styled.section `
9
+ position: relative;
10
+ max-height: ${MAX_HEIGHT}px;
11
+
12
+ &::after {
13
+ content: '';
14
+ display: inline-block;
15
+ width: calc(100% + ${BASE.OFFSET.PADDING * 2}px);
16
+ height: 1px;
17
+ background-color: ${globalToken?.bw2};
18
+ position: absolute;
19
+ top: 100%;
20
+ left: -10px;
21
+ }
22
22
  `;
@@ -5,68 +5,68 @@ import { SwiperSlide } from 'swiper/react';
5
5
  // Constants
6
6
  import { globalToken } from '@antscorp/antsomi-ui/es/constants';
7
7
  import { BASE } from '../../constants';
8
- export const CarouselMessageContainer = styled.div `
9
- position: relative;
10
- width: 100%;
11
- height: 100%;
12
- padding: 0px 10px;
13
-
14
- .carousel-message-swiper {
15
- padding-top: ${BASE.OFFSET.PADDING_MESSAGE}px;
16
- padding-bottom: ${BASE.OFFSET.PADDING_MESSAGE}px;
17
- margin-top: ${-BASE.OFFSET.PADDING_MESSAGE}px;
18
- margin-bottom: ${-BASE.OFFSET.PADDING_MESSAGE}px;
19
- }
20
-
21
- .carousel-button-prev,
22
- .carousel-button-next {
23
- z-index: 10;
24
- position: absolute;
25
- top: 10px;
26
- width: 30px;
27
- height: calc(100% - ${BASE.OFFSET.PADDING_MESSAGE * 2}px);
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- background-color: rgba(0, 0, 0, 0.2);
32
- cursor: pointer;
33
- transition: 0.8s all linear;
34
-
35
- &:hover {
36
- background-color: rgba(0, 0, 0, 0.4);
37
- }
38
-
39
- > i[class^='ants-icon-ants-'] {
40
- font-size: 20px;
41
- font-weight: bold;
42
- color: ${globalToken?.bw0};
43
- }
44
- }
45
-
46
- .carousel-button-prev {
47
- left: 0px;
48
- border-top-right-radius: ${globalToken?.borderRadius}px;
49
- border-bottom-right-radius: ${globalToken?.borderRadius}px;
50
-
51
- > i[class^='ants-icon-ants-'] {
52
- transform: rotate(90deg);
53
- }
54
- }
55
-
56
- .carousel-button-next {
57
- right: 0px;
58
- border-top-left-radius: ${globalToken?.borderRadius}px;
59
- border-bottom-left-radius: ${globalToken?.borderRadius}px;
60
-
61
- > i[class^='ants-icon-ants-'] {
62
- transform: rotate(-90deg);
63
- }
64
- }
8
+ export const CarouselMessageContainer = styled.div `
9
+ position: relative;
10
+ width: 100%;
11
+ height: 100%;
12
+ padding: 0px 10px;
13
+
14
+ .carousel-message-swiper {
15
+ padding-top: ${BASE.OFFSET.PADDING_MESSAGE}px;
16
+ padding-bottom: ${BASE.OFFSET.PADDING_MESSAGE}px;
17
+ margin-top: ${-BASE.OFFSET.PADDING_MESSAGE}px;
18
+ margin-bottom: ${-BASE.OFFSET.PADDING_MESSAGE}px;
19
+ }
20
+
21
+ .carousel-button-prev,
22
+ .carousel-button-next {
23
+ z-index: 10;
24
+ position: absolute;
25
+ top: 10px;
26
+ width: 30px;
27
+ height: calc(100% - ${BASE.OFFSET.PADDING_MESSAGE * 2}px);
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ background-color: rgba(0, 0, 0, 0.2);
32
+ cursor: pointer;
33
+ transition: 0.8s all linear;
34
+
35
+ &:hover {
36
+ background-color: rgba(0, 0, 0, 0.4);
37
+ }
38
+
39
+ > i[class^='ants-icon-ants-'] {
40
+ font-size: 20px;
41
+ font-weight: bold;
42
+ color: ${globalToken?.bw0};
43
+ }
44
+ }
45
+
46
+ .carousel-button-prev {
47
+ left: 0px;
48
+ border-top-right-radius: ${globalToken?.borderRadius}px;
49
+ border-bottom-right-radius: ${globalToken?.borderRadius}px;
50
+
51
+ > i[class^='ants-icon-ants-'] {
52
+ transform: rotate(90deg);
53
+ }
54
+ }
55
+
56
+ .carousel-button-next {
57
+ right: 0px;
58
+ border-top-left-radius: ${globalToken?.borderRadius}px;
59
+ border-bottom-left-radius: ${globalToken?.borderRadius}px;
60
+
61
+ > i[class^='ants-icon-ants-'] {
62
+ transform: rotate(-90deg);
63
+ }
64
+ }
65
65
  `;
66
- export const SwiperSlideItem = styled(SwiperSlide) `
67
- &.swiper-slide {
68
- display: flex;
69
- justify-content: center;
70
- align-items: center;
71
- }
66
+ export const SwiperSlideItem = styled(SwiperSlide) `
67
+ &.swiper-slide {
68
+ display: flex;
69
+ justify-content: center;
70
+ align-items: center;
71
+ }
72
72
  `;
@@ -43,6 +43,8 @@ export default memo((props) => {
43
43
  break;
44
44
  }
45
45
  }
46
- return (_jsx(Button, { icon: icon, type: "link", href: isURL ? btn.url : undefined, target: "_blank", style: { gap: 5 }, children: _jsx(Typography.Text, { ellipsis: { tooltip: true }, style: { color: '#1670A8' }, children: btn.text }) }, btnIdx));
46
+ return (_jsx(Button, { icon: icon, type: "link",
47
+ // href={isURL ? btn.url : undefined}
48
+ target: "_blank", style: { gap: 5 }, children: _jsx(Typography.Text, { ellipsis: { tooltip: true }, style: { color: '#1670A8' }, children: btn.text }) }, btnIdx));
47
49
  }) })] })) : null] }));
48
50
  });
@@ -26,9 +26,9 @@ export const SAMPLE_PREVIEW = {
26
26
  format: 'IMAGE',
27
27
  },
28
28
  body: {
29
- text: `Hi {{1}}, the item {{2}} you were wondering about is BACK IN STOCK! 🎉
30
-
31
- Click the button to get it!
29
+ text: `Hi {{1}}, the item {{2}} you were wondering about is BACK IN STOCK! 🎉
30
+
31
+ Click the button to get it!
32
32
  `,
33
33
  },
34
34
  buttons: [{ type: 'URL', text: 'Grab the offer', url: 'https://test.com.vn' }],
@@ -39,9 +39,9 @@ export const SAMPLE_PREVIEW = {
39
39
  format: 'IMAGE',
40
40
  },
41
41
  body: {
42
- text: `Hi {{1}}, the item {{2}} you were wondering about is BACK IN STOCK! 🎉
43
-
44
- Click the button to get it!
42
+ text: `Hi {{1}}, the item {{2}} you were wondering about is BACK IN STOCK! 🎉
43
+
44
+ Click the button to get it!
45
45
  `,
46
46
  },
47
47
  limitedTimeOffer: {
@@ -59,11 +59,11 @@ export const SAMPLE_PREVIEW = {
59
59
  videoURL: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
60
60
  },
61
61
  body: {
62
- text: `Hey {{1}}, we have an exclusive deal waiting for you! 🎉
63
-
64
- Get {{2}}% OFF on your next purchase when you shop before {{3}}. Don't miss out on this special offer!
65
-
66
- Use code: {{4}} at checkout.
62
+ text: `Hey {{1}}, we have an exclusive deal waiting for you! 🎉
63
+
64
+ Get {{2}}% OFF on your next purchase when you shop before {{3}}. Don't miss out on this special offer!
65
+
66
+ Use code: {{4}} at checkout.
67
67
  `,
68
68
  },
69
69
  buttons: [{ type: 'URL', text: 'Shop now', url: 'https://test.com.vn' }],
@@ -75,11 +75,11 @@ export const SAMPLE_PREVIEW = {
75
75
  text: '🔔 Limited-Time Offer Just for {{1}}!',
76
76
  },
77
77
  body: {
78
- text: `Hey {{1}}, we have an exclusive deal waiting for you! 🎉
79
-
80
- Get {{2}}% OFF on your next purchase when you shop before {{3}}. Don't miss out on this special offer!
81
-
82
- Use code: {{4}} at checkout.
78
+ text: `Hey {{1}}, we have an exclusive deal waiting for you! 🎉
79
+
80
+ Get {{2}}% OFF on your next purchase when you shop before {{3}}. Don't miss out on this special offer!
81
+
82
+ Use code: {{4}} at checkout.
83
83
  `,
84
84
  },
85
85
  buttons: [{ type: 'URL', text: 'Shop now', url: 'https://test.com.vn' }],
@@ -90,9 +90,9 @@ export const SAMPLE_PREVIEW = {
90
90
  format: 'DOCUMENT',
91
91
  },
92
92
  body: {
93
- text: `🚀 Want to boost your sales with data-driven marketing? We’ve crafted a step-by-step guide to help you maximize customer engagement.
94
-
95
- 📥 Download your free copy now and start scaling your business!
93
+ text: `🚀 Want to boost your sales with data-driven marketing? We’ve crafted a step-by-step guide to help you maximize customer engagement.
94
+
95
+ 📥 Download your free copy now and start scaling your business!
96
96
  `,
97
97
  },
98
98
  buttons: [{ type: 'URL', text: 'Download Now', url: 'https://test.com.vn' }],
@@ -103,12 +103,12 @@ export const SAMPLE_PREVIEW = {
103
103
  format: 'LOCATION',
104
104
  },
105
105
  body: {
106
- text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
107
-
108
- 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
109
-
110
- 📌 Location: Antsomi HQ, Singapore
111
-
106
+ text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
107
+
108
+ 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
109
+
110
+ 📌 Location: Antsomi HQ, Singapore
111
+
112
112
  💬 Book a free consultation today and take your marketing to the next level!`,
113
113
  },
114
114
  footer: {
@@ -128,12 +128,12 @@ export const SAMPLE_PREVIEW = {
128
128
  format: 'LOCATION',
129
129
  },
130
130
  body: {
131
- text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
132
-
133
- 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
134
-
135
- 📌 Location: Antsomi HQ, Singapore
136
-
131
+ text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
132
+
133
+ 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
134
+
135
+ 📌 Location: Antsomi HQ, Singapore
136
+
137
137
  💬 Book a free consultation today and take your marketing to the next level!`,
138
138
  },
139
139
  buttons: [],
@@ -143,9 +143,9 @@ export const SAMPLE_PREVIEW = {
143
143
  format: 'DOCUMENT',
144
144
  },
145
145
  body: {
146
- text: `🚀 Want to boost your sales with data-driven marketing? We’ve crafted a step-by-step guide to help you maximize customer engagement.
147
-
148
- 📥 Download your free copy now and start scaling your business!
146
+ text: `🚀 Want to boost your sales with data-driven marketing? We’ve crafted a step-by-step guide to help you maximize customer engagement.
147
+
148
+ 📥 Download your free copy now and start scaling your business!
149
149
  `,
150
150
  },
151
151
  buttons: [{ type: 'URL', text: 'Download Now', url: 'https://test.com.vn' }],
@@ -155,12 +155,12 @@ export const SAMPLE_PREVIEW = {
155
155
  format: 'LOCATION',
156
156
  },
157
157
  body: {
158
- text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
159
-
160
- 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
161
-
162
- 📌 Location: Antsomi HQ, Singapore
163
-
158
+ text: `📍 Antsomi Office - Your Next Marketing Transformation Hub!
159
+
160
+ 🚀 Hi {{1}}! Ready to supercharge your customer engagement? Visit us and discover how our CDP solutions can revolutionize your business.
161
+
162
+ 📌 Location: Antsomi HQ, Singapore
163
+
164
164
  💬 Book a free consultation today and take your marketing to the next level!`,
165
165
  },
166
166
  buttons: [],
@@ -186,9 +186,9 @@ export const SAMPLE_PREVIEW = {
186
186
  format: 'IMAGE',
187
187
  },
188
188
  body: {
189
- text: `Hi Zoey, the item Super Nice T-Shirt you were wondering about is BACK IN STOCK! 🎉
190
-
191
- Click the button to get it!
189
+ text: `Hi Zoey, the item Super Nice T-Shirt you were wondering about is BACK IN STOCK! 🎉
190
+
191
+ Click the button to get it!
192
192
  `,
193
193
  },
194
194
  footer: { text: 'Limited Only' },
@@ -215,13 +215,13 @@ export const SAMPLE_PREVIEW = {
215
215
  format: 'IMAGE',
216
216
  },
217
217
  body: {
218
- text: `Don't miss out on this awesome deal!
219
- Hey *{{1}}*, we noticed you left some goodies in your cart. They're feeling a bit lonely without you!
220
-
221
- Complete your purchase now and grab your favorites before they're gone.
222
-
223
- Plus, here's a 10% off coupon just for you: {{2}}
224
- Can't wait to see you back! Send STOP to unsubscribe!
218
+ text: `Don't miss out on this awesome deal!
219
+ Hey *{{1}}*, we noticed you left some goodies in your cart. They're feeling a bit lonely without you!
220
+
221
+ Complete your purchase now and grab your favorites before they're gone.
222
+
223
+ Plus, here's a 10% off coupon just for you: {{2}}
224
+ Can't wait to see you back! Send STOP to unsubscribe!
225
225
  `,
226
226
  },
227
227
  footer: {