@antscorp/antsomi-ui 2.0.101 → 2.0.103

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 (331) hide show
  1. package/README.md +78 -78
  2. package/es/__mocks__/1000_city.json +802 -802
  3. package/es/assets/css/main.scss +6 -6
  4. package/es/assets/images/components/Login/AuthenSuccess.png +0 -0
  5. package/es/assets/images/feedback.svg +3 -3
  6. package/es/assets/svg/mobile-frame.svg +3 -3
  7. package/es/assets/svg/warning-icon.svg +5 -5
  8. package/es/components/atoms/Alert/Alert.js +28 -28
  9. package/es/components/atoms/ContentEditable/styled.js +16 -16
  10. package/es/components/atoms/DividerPure/styled.js +35 -35
  11. package/es/components/atoms/Icon/index.js +19 -19
  12. package/es/components/atoms/Iframe/Iframe.js +18 -18
  13. package/es/components/atoms/Input/styled.js +104 -104
  14. package/es/components/atoms/InputDynamic/styled.js +284 -284
  15. package/es/components/atoms/MobileBrandingBar/styled.js +21 -21
  16. package/es/components/atoms/MobileFrame/styled.js +30 -30
  17. package/es/components/atoms/MobileFrameV2/styled.js +42 -42
  18. package/es/components/atoms/MobileFrameV3/styled.js +31 -31
  19. package/es/components/atoms/NotificationStatus/NotificationStatus.d.ts +12 -0
  20. package/es/components/atoms/NotificationStatus/NotificationStatus.js +27 -0
  21. package/es/components/atoms/NotificationStatus/constants/index.d.ts +15 -0
  22. package/es/components/atoms/NotificationStatus/constants/index.js +15 -0
  23. package/es/components/atoms/NotificationStatus/index.d.ts +1 -0
  24. package/es/components/atoms/NotificationStatus/index.js +1 -0
  25. package/es/components/atoms/NotificationStatus/styled.d.ts +3 -0
  26. package/es/components/atoms/NotificationStatus/styled.js +14 -0
  27. package/es/components/atoms/PreviewTabs/styled.js +69 -69
  28. package/es/components/atoms/Radio/index.js +16 -16
  29. package/es/components/atoms/ReactIframe/ReactIframe.js +5 -5
  30. package/es/components/atoms/ReactIframe/styled.js +9 -9
  31. package/es/components/atoms/RequiredLabel/styled.js +3 -3
  32. package/es/components/atoms/ScrollBox/index.js +5 -5
  33. package/es/components/atoms/Scrollbars/styled.js +21 -21
  34. package/es/components/atoms/SlideBar/styled.js +194 -194
  35. package/es/components/atoms/Slider/styled.js +31 -31
  36. package/es/components/atoms/Space/Space.js +4 -4
  37. package/es/components/atoms/Spin/styled.js +11 -11
  38. package/es/components/atoms/Steps/styled.js +244 -244
  39. package/es/components/atoms/Switch/styled.js +56 -56
  40. package/es/components/atoms/Tag/Tag.js +10 -10
  41. package/es/components/atoms/Text/styled.js +34 -34
  42. package/es/components/atoms/index.d.ts +1 -0
  43. package/es/components/atoms/index.js +1 -0
  44. package/es/components/icons/DomainManagementIcon.js +1 -1
  45. package/es/components/icons/KeyValueIcon.d.ts +3 -0
  46. package/es/components/icons/KeyValueIcon.js +7 -0
  47. package/es/components/icons/LazyIcon/LazyIcon.d.ts +11 -10
  48. package/es/components/icons/LazyIcon/LazyIcon.js +11 -10
  49. package/es/components/icons/LoadingIcon.js +33 -33
  50. package/es/components/icons/document/styled.js +43 -43
  51. package/es/components/icons/index.d.ts +11 -10
  52. package/es/components/icons/index.js +11 -10
  53. package/es/components/molecules/AccessDenied/styled.js +28 -28
  54. package/es/components/molecules/AccountSelection/styled.js +110 -110
  55. package/es/components/molecules/AddDynamicContent/styled.js +23 -23
  56. package/es/components/molecules/AlignSetting/styled.js +4 -4
  57. package/es/components/molecules/ApplyPopupContent/styled.js +32 -32
  58. package/es/components/molecules/CalendarSelection/components/AutoUpdateTo/styled.js +8 -8
  59. package/es/components/molecules/CalendarSelection/components/CustomPicker/styled.js +79 -79
  60. package/es/components/molecules/CalendarSelection/components/Footer/styled.js +4 -4
  61. package/es/components/molecules/CalendarSelection/components/RangePicker/styled.js +21 -21
  62. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +26 -26
  63. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.js +30 -30
  64. package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/styled.js +26 -26
  65. package/es/components/molecules/CalendarSelection/styled.js +8 -8
  66. package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +119 -119
  67. package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +67 -67
  68. package/es/components/molecules/CaptureScreen/styled.js +240 -240
  69. package/es/components/molecules/ChartTab/components/styled.js +24 -24
  70. package/es/components/molecules/ChartTab/styled.js +20 -20
  71. package/es/components/molecules/ChatBox/AntsomiAI.js +8 -8
  72. package/es/components/molecules/ChatBox/ChatBoxInsight/QuestionItem.js +9 -9
  73. package/es/components/molecules/ChatBox/ChatBoxInsight/styled.js +365 -365
  74. package/es/components/molecules/ChatBox/styled.js +324 -324
  75. package/es/components/molecules/CodeStructure/styled.js +5 -5
  76. package/es/components/molecules/ColorPicker/ChromePicker/styled.js +10 -10
  77. package/es/components/molecules/ColorPicker/CustomPicker/styled.js +89 -89
  78. package/es/components/molecules/ColorPicker/SketchPicker/styled.js +5 -5
  79. package/es/components/molecules/ColorPicker/styled.js +7 -7
  80. package/es/components/molecules/ColorSetting/styled.js +39 -39
  81. package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +110 -110
  82. package/es/components/molecules/DatePickerV2/styled.js +6 -6
  83. package/es/components/molecules/DisplayFormat/styled.js +12 -12
  84. package/es/components/molecules/DrawerDetail/components/ToggleDrawerSizeButton.js +24 -24
  85. package/es/components/molecules/DrawerDetail/styled.js +109 -109
  86. package/es/components/molecules/Dropdown/style.scss +11 -11
  87. package/es/components/molecules/Dropdown/styled.js +28 -28
  88. package/es/components/molecules/EdgeSetting/styled.js +10 -10
  89. package/es/components/molecules/EditableName/styled.js +70 -70
  90. package/es/components/molecules/EditingList/styled.js +29 -29
  91. package/es/components/molecules/EditorTab/styled.js +156 -156
  92. package/es/components/molecules/EmojiCollections/styled.js +22 -22
  93. package/es/components/molecules/EmojiPopover/styled.js +4 -4
  94. package/es/components/molecules/EmptyData/styled.js +53 -53
  95. package/es/components/molecules/GradientSetting/styled.js +57 -57
  96. package/es/components/molecules/HeaderV2/styled.js +70 -70
  97. package/es/components/molecules/IconSelection/styled.js +69 -69
  98. package/es/components/molecules/ImageEditor/components/ModalShortcut.js +21 -21
  99. package/es/components/molecules/ImageEditor/styled.js +5 -5
  100. package/es/components/molecules/ImagePreview/styled.js +3 -3
  101. package/es/components/molecules/InputNumberWithUnit/styled.js +14 -14
  102. package/es/components/molecules/InputSearch/styled.js +41 -41
  103. package/es/components/molecules/ItemNotFound/styled.js +26 -26
  104. package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +8 -8
  105. package/es/components/molecules/MatchAnySelect/styled.js +247 -247
  106. package/es/components/molecules/Modal/styled.js +63 -63
  107. package/es/components/molecules/ModalSelect/styled.js +152 -152
  108. package/es/components/molecules/ModalV2/styled.js +27 -27
  109. package/es/components/molecules/PopupDraggable/styled.js +57 -57
  110. package/es/components/molecules/PreviewModal/styled.js +26 -26
  111. package/es/components/molecules/ProcessLoading/styled.js +2 -2
  112. package/es/components/molecules/QuillEditor/CustomToolbar.js +3165 -3165
  113. package/es/components/molecules/QuillEditor/EditorToolbar.js +7 -7
  114. package/es/components/molecules/QuillEditor/styled.js +25 -25
  115. package/es/components/molecules/RadioGroup/styled.js +9 -9
  116. package/es/components/molecules/RequestAccess/styled.js +38 -38
  117. package/es/components/molecules/ResizeGrid/components/Cell/styled.js +77 -77
  118. package/es/components/molecules/ResizeGrid/styled.js +50 -50
  119. package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +118 -118
  120. package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +13 -13
  121. package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +40 -40
  122. package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +27 -27
  123. package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +2 -2
  124. package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +38 -38
  125. package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +36 -36
  126. package/es/components/molecules/SearchPopover/components/PopoverSelect/styles.scss +7 -7
  127. package/es/components/molecules/SearchPopover/styled.js +32 -32
  128. package/es/components/molecules/Select/styled.js +32 -32
  129. package/es/components/molecules/SelectAccount/styled.js +147 -147
  130. package/es/components/molecules/SelectEventAttribute/styled.js +8 -8
  131. package/es/components/molecules/SelectMulti/styled.js +62 -62
  132. package/es/components/molecules/SelectV2/styled.js +124 -124
  133. package/es/components/molecules/SettingWrapper/styled.js +12 -12
  134. package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +56 -56
  135. package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +5 -5
  136. package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +15 -15
  137. package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +63 -63
  138. package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +31 -31
  139. package/es/components/molecules/SliderWithInputNumber/styled.js +2 -2
  140. package/es/components/molecules/Tabs/Tabs.js +11 -11
  141. package/es/components/molecules/TagifyInput/TagifyInput.js +50 -50
  142. package/es/components/molecules/TagifyInput/styled.js +37 -37
  143. package/es/components/molecules/TagifyInput/utils.js +13 -13
  144. package/es/components/molecules/TagifyInput/utils.style.js +217 -217
  145. package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +5 -5
  146. package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.js +276 -276
  147. package/es/components/molecules/TemplateSaveAs/styled.js +134 -134
  148. package/es/components/molecules/ThumbnailCard/styled.js +92 -92
  149. package/es/components/molecules/Tree/styled.js +38 -38
  150. package/es/components/molecules/UploadImage/styled.js +114 -114
  151. package/es/components/molecules/VirtualizedMenu/styled.js +82 -82
  152. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.js +98 -98
  153. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +18 -18
  154. package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +543 -543
  155. package/es/components/organism/AccountProfile/components/AccountSetting/styles.scss +39 -39
  156. package/es/components/organism/AccountSharing/styled.js +336 -336
  157. package/es/components/organism/ActivityTimeline/components/ActionHistory/styled.js +28 -28
  158. package/es/components/organism/ActivityTimeline/components/CardMember/styled.js +60 -60
  159. package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/styled.js +4 -4
  160. package/es/components/organism/ActivityTimeline/components/List/styled.js +77 -77
  161. package/es/components/organism/ActivityTimeline/components/ListItem/styled.js +37 -37
  162. package/es/components/organism/ActivityTimeline/components/ProductCard/styled.js +92 -92
  163. package/es/components/organism/ActivityTimeline/components/Redeem/styled.js +7 -7
  164. package/es/components/organism/ActivityTimeline/components/Slide/styled.js +20 -20
  165. package/es/components/organism/ActivityTimeline/components/TimeLineTitle/styled.js +7 -7
  166. package/es/components/organism/ActivityTimeline/components/TimelineSection/styled.js +69 -69
  167. package/es/components/organism/ActivityTimeline/styled.js +39 -39
  168. package/es/components/organism/AlgorithmsSetting/styled.js +35 -35
  169. package/es/components/organism/BasicLogin/BasicLogin.d.ts +3 -0
  170. package/es/components/organism/BasicLogin/BasicLogin.js +147 -0
  171. package/es/components/organism/BasicLogin/__tests__/index.spec.d.ts +0 -0
  172. package/es/components/organism/BasicLogin/__tests__/index.spec.js +46 -0
  173. package/es/components/organism/BasicLogin/components/AuthenticateResult/AuthenticateResult.d.ts +8 -0
  174. package/es/components/organism/BasicLogin/components/AuthenticateResult/AuthenticateResult.js +23 -0
  175. package/es/components/organism/BasicLogin/components/AuthenticateResult/index.d.ts +1 -0
  176. package/es/components/organism/BasicLogin/components/AuthenticateResult/index.js +1 -0
  177. package/es/components/organism/BasicLogin/components/ChooseMethod/ChooseMethod.d.ts +9 -0
  178. package/es/components/organism/BasicLogin/components/ChooseMethod/ChooseMethod.js +54 -0
  179. package/es/components/organism/BasicLogin/components/ChooseMethod/Method.d.ts +10 -0
  180. package/es/components/organism/BasicLogin/components/ChooseMethod/Method.js +13 -0
  181. package/es/components/organism/BasicLogin/components/ChooseMethod/index.d.ts +2 -0
  182. package/es/components/organism/BasicLogin/components/ChooseMethod/index.js +2 -0
  183. package/es/components/organism/BasicLogin/components/ChooseMethod/styled.d.ts +10 -0
  184. package/es/components/organism/BasicLogin/components/ChooseMethod/styled.js +24 -0
  185. package/es/components/organism/BasicLogin/components/ChooseMethod/utils.d.ts +1 -0
  186. package/es/components/organism/BasicLogin/components/ChooseMethod/utils.js +1 -0
  187. package/es/components/organism/BasicLogin/components/LoginWithEmail/LoginWithEmail.d.ts +14 -0
  188. package/es/components/organism/BasicLogin/components/LoginWithEmail/LoginWithEmail.js +192 -0
  189. package/es/components/organism/BasicLogin/components/LoginWithEmail/index.d.ts +1 -0
  190. package/es/components/organism/BasicLogin/components/LoginWithEmail/index.js +1 -0
  191. package/es/components/organism/{Login/components/LoginStep2 → BasicLogin/components/LoginWithEmail}/styled.js +3 -3
  192. package/es/components/organism/BasicLogin/components/LoginWithGG/LoginWithGG.d.ts +12 -0
  193. package/es/components/organism/BasicLogin/components/LoginWithGG/LoginWithGG.js +107 -0
  194. package/es/components/organism/BasicLogin/components/LoginWithGG/index.d.ts +1 -0
  195. package/es/components/organism/BasicLogin/components/LoginWithGG/index.js +1 -0
  196. package/es/components/organism/BasicLogin/components/LoginWithGG/styled.d.ts +3 -0
  197. package/es/components/organism/BasicLogin/components/LoginWithGG/styled.js +5 -0
  198. package/es/components/organism/BasicLogin/components/SignIn/SignIn.d.ts +14 -0
  199. package/es/components/organism/BasicLogin/components/SignIn/SignIn.js +66 -0
  200. package/es/components/organism/BasicLogin/components/SignIn/index.d.ts +1 -0
  201. package/es/components/organism/BasicLogin/components/SignIn/index.js +1 -0
  202. package/es/components/organism/BasicLogin/components/SignIn/styled.d.ts +3 -0
  203. package/es/components/organism/BasicLogin/components/SignIn/styled.js +10 -0
  204. package/es/components/organism/BasicLogin/components/WidgetLayout/WidgetLayout.d.ts +13 -0
  205. package/es/components/organism/BasicLogin/components/WidgetLayout/WidgetLayout.js +18 -0
  206. package/es/components/organism/BasicLogin/components/WidgetLayout/index.d.ts +1 -0
  207. package/es/components/organism/BasicLogin/components/WidgetLayout/index.js +1 -0
  208. package/es/components/organism/BasicLogin/components/WidgetLayout/styled.d.ts +5 -0
  209. package/es/components/organism/BasicLogin/components/WidgetLayout/styled.js +22 -0
  210. package/es/components/organism/BasicLogin/components/index.d.ts +5 -0
  211. package/es/components/organism/BasicLogin/components/index.js +5 -0
  212. package/es/components/organism/BasicLogin/constants/index.d.ts +26 -0
  213. package/es/components/organism/BasicLogin/constants/index.js +26 -0
  214. package/es/components/organism/BasicLogin/index.d.ts +2 -0
  215. package/es/components/organism/BasicLogin/index.js +2 -0
  216. package/es/components/organism/BasicLogin/styled.d.ts +50 -0
  217. package/es/components/organism/BasicLogin/styled.js +120 -0
  218. package/es/components/organism/BasicLogin/types/index.d.ts +36 -0
  219. package/es/components/organism/BasicLogin/types/index.js +1 -0
  220. package/es/components/organism/BasicLogin/utils.d.ts +8 -0
  221. package/es/components/organism/BasicLogin/utils.js +18 -0
  222. package/es/components/organism/ContentSources/styled.js +50 -50
  223. package/es/components/organism/DataTable/components/AddButton/index.js +8 -8
  224. package/es/components/organism/DataTable/components/ModifyColumn/styled.js +18 -18
  225. package/es/components/organism/DataTable/components/Pagination/styled.js +26 -26
  226. package/es/components/organism/DataTable/components/Table/styled.js +135 -135
  227. package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +17 -17
  228. package/es/components/organism/DataTable/components/Toolbar/styled.js +70 -70
  229. package/es/components/organism/DataTable/styled/index.js +84 -84
  230. package/es/components/organism/Filter/components/FilterCondition/styled.js +34 -34
  231. package/es/components/organism/Filter/styled.js +109 -109
  232. package/es/components/organism/FilterSetting/components/common/InputArray/styled.js +5 -5
  233. package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +63 -63
  234. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.js +31 -31
  235. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.js +22 -22
  236. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +55 -55
  237. package/es/components/organism/FilterSetting/styled.js +19 -19
  238. package/es/components/organism/Help/styled.js +267 -267
  239. package/es/components/organism/LeftMenu/components/HomeMenu/styled.js +39 -39
  240. package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +16 -16
  241. package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +156 -156
  242. package/es/components/organism/LeftMenu/hooks/usePermission.js +1 -1
  243. package/es/components/organism/LeftMenu/styled.js +214 -214
  244. package/es/components/organism/Login/Login.js +71 -17
  245. package/es/components/organism/Login/components/ChooseMethod/ChooseMethod.d.ts +9 -0
  246. package/es/components/organism/Login/components/ChooseMethod/ChooseMethod.js +54 -0
  247. package/es/components/organism/Login/components/ChooseMethod/Method.d.ts +10 -0
  248. package/es/components/organism/Login/components/ChooseMethod/Method.js +13 -0
  249. package/es/components/organism/Login/components/ChooseMethod/index.d.ts +1 -0
  250. package/es/components/organism/Login/components/ChooseMethod/index.js +1 -0
  251. package/es/components/organism/Login/components/ChooseMethod/styled.d.ts +10 -0
  252. package/es/components/organism/Login/components/ChooseMethod/styled.js +24 -0
  253. package/es/components/organism/Login/components/ChooseMethod/utils.d.ts +1 -0
  254. package/es/components/organism/Login/components/ChooseMethod/utils.js +1 -0
  255. package/es/components/organism/Login/components/ForgotPassword/styled.js +8 -8
  256. package/es/components/organism/Login/components/LoginSelectPortal/Item/styled.js +31 -31
  257. package/es/components/organism/Login/components/LoginSelectPortal/styled.js +3 -3
  258. package/es/components/organism/Login/components/LoginWithEmail/LoginWithEmail.d.ts +15 -0
  259. package/es/components/organism/Login/components/LoginWithEmail/LoginWithEmail.js +211 -0
  260. package/es/components/organism/Login/components/LoginWithEmail/index.d.ts +1 -0
  261. package/es/components/organism/Login/components/LoginWithEmail/index.js +1 -0
  262. package/es/components/organism/Login/components/LoginWithEmail/styled.d.ts +3 -0
  263. package/es/components/organism/Login/components/LoginWithEmail/styled.js +5 -0
  264. package/es/components/organism/Login/components/{LoginStep2/LoginStep2.d.ts → LoginWithGG/LoginWithGG.d.ts} +1 -1
  265. package/es/components/organism/Login/components/{LoginStep2/LoginStep2.js → LoginWithGG/LoginWithGG.js} +6 -20
  266. package/es/components/organism/Login/components/LoginWithGG/index.d.ts +1 -0
  267. package/es/components/organism/Login/components/LoginWithGG/index.js +1 -0
  268. package/es/components/organism/Login/components/LoginWithGG/styled.d.ts +3 -0
  269. package/es/components/organism/Login/components/LoginWithGG/styled.js +5 -0
  270. package/es/components/organism/Login/components/SetupGGAuthenticator/SetupGGAuthenticator.js +1 -1
  271. package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +7 -7
  272. package/es/components/organism/Login/components/SignIn/styled.js +8 -8
  273. package/es/components/organism/Login/components/VerifyAccount/styled.js +13 -13
  274. package/es/components/organism/Login/components/WidgetLayout/WidgetLayout.js +3 -3
  275. package/es/components/organism/Login/components/WidgetLayout/styled.js +18 -18
  276. package/es/components/organism/Login/components/index.d.ts +3 -1
  277. package/es/components/organism/Login/components/index.js +3 -1
  278. package/es/components/organism/Login/constants/index.d.ts +25 -1
  279. package/es/components/organism/Login/constants/index.js +25 -1
  280. package/es/components/organism/Login/styled.d.ts +2 -1
  281. package/es/components/organism/Login/styled.js +115 -114
  282. package/es/components/organism/Login/types/index.d.ts +7 -0
  283. package/es/components/organism/Login/utils/index.d.ts +1 -0
  284. package/es/components/organism/Login/utils/index.js +8 -0
  285. package/es/components/organism/Menu/styled.js +6 -6
  286. package/es/components/organism/ModifyColumnModal/styled.js +132 -132
  287. package/es/components/organism/Notification/styled.js +155 -155
  288. package/es/components/organism/PreviewCollections/Messages/SkeletonMessage/styled.js +14 -14
  289. package/es/components/organism/PreviewCollections/WhatsappMessage/CarouselMessage/styled.js +63 -63
  290. package/es/components/organism/PreviewCollections/constants.js +50 -50
  291. package/es/components/organism/PreviewCollections/styled.js +16 -16
  292. package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +78 -78
  293. package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +52 -52
  294. package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +18 -18
  295. package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +75 -75
  296. package/es/components/organism/PreviewTemplateModal/styled.js +21 -21
  297. package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +11 -11
  298. package/es/components/organism/Table/CrossTabTable/styled.js +11 -11
  299. package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +17 -17
  300. package/es/components/organism/Table/ExplorePivotTable/styled.js +11 -11
  301. package/es/components/organism/TicketEditor/styled.js +850 -850
  302. package/es/components/organism/TicketEditorV2/styled.js +839 -839
  303. package/es/components/organism/index.d.ts +1 -0
  304. package/es/components/organism/index.js +1 -0
  305. package/es/components/template/Layout/Layout.js +10 -10
  306. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/index.js +2 -2
  307. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/styled.js +73 -73
  308. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +39 -39
  309. package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.js +61 -61
  310. package/es/components/template/Layout/components/RecommendationWorkspace/styled.js +16 -16
  311. package/es/components/template/Layout/styled.js +84 -84
  312. package/es/components/template/TemplateListing/components/BlankTemplate/styled.js +21 -21
  313. package/es/components/template/TemplateListing/components/CategoryListing/styled.js +123 -123
  314. package/es/components/template/TemplateListing/components/Empty/styled.js +20 -20
  315. package/es/components/template/TemplateListing/stories/demo/styled.js +4 -4
  316. package/es/components/template/TemplateListing/styled/index.js +40 -40
  317. package/es/hooks/index.d.ts +1 -0
  318. package/es/hooks/index.js +1 -0
  319. package/es/hooks/useCountdown.d.ts +49 -0
  320. package/es/hooks/useCountdown.js +122 -0
  321. package/es/providers/ConfigProvider/GlobalStyle.js +1142 -1119
  322. package/es/styled/common.js +51 -51
  323. package/es/tests/styled.js +4 -4
  324. package/es/utils/variables.js +7 -7
  325. package/package.json +261 -261
  326. package/CHANGELOG.md +0 -63
  327. package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +0 -1290
  328. package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +0 -3059
  329. package/es/components/organism/Login/components/LoginStep2/index.d.ts +0 -1
  330. package/es/components/organism/Login/components/LoginStep2/index.js +0 -1
  331. /package/es/components/organism/{Login/components/LoginStep2 → BasicLogin/components/LoginWithEmail}/styled.d.ts +0 -0
@@ -9,1123 +9,1146 @@ import { far } from '@fortawesome/free-regular-svg-icons';
9
9
  import { fab } from '@fortawesome/free-brands-svg-icons';
10
10
  library.add(fas, far, fab);
11
11
  const { accent7, gray5, scrollBarSize, bw3, bw4, bw5 } = THEME.token || {};
12
- export const GlobalStyle = () => (_jsx(Global, { styles: css `
13
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
14
-
15
- :root {
16
- --divider-1: ${bw3};
17
- --divider-2: ${bw4};
18
- --divider-3: ${bw5};
19
- }
20
-
21
- *,
22
- *:before,
23
- *:after {
24
- -webkit-box-sizing: border-box;
25
- -moz-box-sizing: border-box;
26
- box-sizing: border-box;
27
- }
28
-
29
- hr {
30
- border-color: var(--divider-1);
31
- }
32
-
33
- .rc-virtual-list-scrollbar {
34
- width: 4px !important;
35
- height: 4px !important;
36
- }
37
-
38
- /* Custom */
39
- .antsomi-scrollbar-hidden {
40
- -ms-overflow-style: none; /* for Internet Explorer, Edge */
41
- scrollbar-width: none; /* for Firefox */
42
-
43
- &::-webkit-scrollbar {
44
- display: none;
45
- }
46
- }
47
-
48
- /* width */
49
- ::-webkit-scrollbar {
50
- background: transparent !important;
51
- width: ${scrollBarSize} !important;
52
- height: ${scrollBarSize} !important;
53
- }
54
-
55
- /* Track */
56
- ::-webkit-scrollbar-track {
57
- background: transparent !important;
58
- }
59
-
60
- /* Handle */
61
- ::-webkit-scrollbar-thumb {
62
- background-color: transparent;
63
- border-radius: 4px;
64
- }
65
-
66
- *:hover {
67
- &::-webkit-scrollbar-thumb {
68
- background-color: ${gray5} !important;
69
- }
70
- }
71
-
72
- .rc-virtual-list {
73
- .rc-virtual-list-scrollbar-vertical {
74
- width: ${scrollBarSize} !important;
75
- }
76
-
77
- .rc-virtual-list-scrollbar-thumb {
78
- background: ${accent7} !important;
79
- }
80
- }
81
-
82
- .custom-scrollbars {
83
- &:hover {
84
- .scrollbar-track {
85
- opacity: 1 !important;
86
- }
87
- }
88
- }
89
-
90
- .antsomi-scroll-box {
91
- overflow-y: auto;
92
- scrollbar-gutter: stable !important;
93
- margin-right: -${scrollBarSize} !important;
94
-
95
- &.on-scroll {
96
- ::-webkit-scrollbar-thumb {
97
- display: block !important;
98
- }
99
- }
100
-
101
- .scroll-content {
102
- margin-right: -${scrollBarSize} !important;
103
- }
104
-
105
- ::-webkit-scrollbar {
106
- width: ${scrollBarSize} !important;
107
- height: ${scrollBarSize} !important;
108
- background-color: transparent !important;
109
- }
110
-
111
- ::-webkit-scrollbar-track {
112
- background-color: transparent !important;
113
- }
114
-
115
- ::-webkit-scrollbar-thumb {
116
- background-color: ${gray5} !important;
117
- border-radius: 15px !important;
118
- display: none !important;
119
-
120
- &:hover {
121
- display: block !important;
122
- }
123
- }
124
- }
125
-
126
- /* Tooltip */
127
- .antsomi-tooltip {
128
- .antsomi-tooltip-content {
129
- .antsomi-tooltip-inner {
130
- a {
131
- color: inherit;
132
- font-weight: bold;
133
- }
134
- }
135
- }
136
- }
137
-
138
- /* Button */
139
- .antsomi-btn {
140
- font-weight: 700 !important;
141
- display: inline-flex !important;
142
- align-items: center !important;
143
- justify-content: center !important;
144
- gap: 8px;
145
-
146
- i {
147
- font-size: 20px;
148
- }
149
- }
150
-
151
- .antsomi-btn-default {
152
- &:not(:disabled):hover {
153
- border-color: ${THEME.token?.blue3} !important;
154
- background-color: ${THEME.token?.blue} !important;
155
- }
156
- &:not(:disabled).antsomi-btn-default-active {
157
- border-color: ${THEME.token?.colorPrimary} !important;
158
- background-color: ${THEME.token?.blue1_1} !important;
159
- }
160
-
161
- &.antsomi-btn-dangerous {
162
- border-color: ${THEME.token?.red2} !important;
163
-
164
- &:not(:disabled):hover {
165
- border-color: ${THEME.token?.red3} !important;
166
- background-color: ${THEME.token?.red} !important;
167
- }
168
- }
169
-
170
- &.antsomi-btn-icon-only {
171
- width: 36px !important;
172
- height: 36px !important;
173
- }
174
-
175
- &.antsomi-btn-icon-only.antsomi-btn-sm {
176
- /* Important to override the above code before */
177
- width: 24px !important;
178
- height: 24px !important;
179
- }
180
- }
181
-
182
- .antsomi-btn-text:disabled,
183
- .antsomi-btn-link:disabled {
184
- color: ${THEME.token?.bw6} !important;
185
- }
186
-
187
- /* .antsomi-btn-primary:disabled, */
188
- .antsomi-btn-default:disabled,
189
- .antsomi-btn-dashed:disabled,
190
- .antsomi-btn-disabled,
191
- .antsomi-btn-default.antsomi-btn-dangerous:disabled,
192
- .antsomi-btn-primary.antsomi-btn-dangerous:disabled {
193
- border-color: ${THEME.token?.bw4} !important;
194
- }
195
-
196
- .antsomi-btn-default:disabled,
197
- .antsomi-btn-dashed:disabled,
198
- .antsomi-btn-disabled,
199
- .antsomi-btn-default.antsomi-btn-dangerous:disabled {
200
- color: ${THEME.token?.bw6} !important;
201
- background-color: ${THEME.token?.bw2} !important;
202
- }
203
-
204
- // NOTE: Just hot fix for easy looking
205
- .antsomi-btn-primary.antsomi-btn-compact-item.antsomi-btn-compact-first-item {
206
- padding-right: 6px !important;
207
- }
208
- .antsomi-btn-compact-item.antsomi-btn-primary.antsomi-btn-compact-last-item {
209
- width: fit-content;
210
- //padding: 0px !important;
211
- padding: 0px 4px !important;
212
- &::before {
213
- content: '';
214
- position: absolute;
215
- left: 0px;
216
- background-color: ${globalToken?.blue5} !important;
217
- top: auto !important;
218
- height: 80% !important;
219
- width: 1px !important;
220
- }
221
-
222
- &:disabled {
223
- &::before {
224
- background-color: ${globalToken?.bw4} !important;
225
- }
226
- }
227
-
228
- &:not(:disabled) {
229
- &:hover {
230
- &::before {
231
- opacity: 0;
232
- }
233
- }
234
- }
235
- }
236
-
237
- /* Input */
238
- .antsomi-input,
239
- .antsomi-input-affix-wrapper {
240
- border-width: 0 0 1px 0 !important;
241
- box-shadow: none !important;
242
-
243
- &:hover {
244
- background-color: ${THEME.token?.blue};
245
- }
246
- }
247
-
248
- .antsomi-input-disabled {
249
- border-color: ${THEME.token?.bw3} !important;
250
- background-color: ${THEME.token?.bw0} !important;
251
- }
252
-
253
- .antsomi-input {
254
- &:focus {
255
- background-color: ${THEME.token?.bw0};
256
- }
257
- }
258
-
259
- .antsomi-input-affix-wrapper {
260
- &:hover {
261
- > input.antsomi-input {
262
- background-color: ${THEME.token?.blue};
263
- }
264
- }
265
-
266
- &.antsomi-input-affix-wrapper-focused {
267
- background-color: ${THEME.token?.bw0};
268
-
269
- > input.antsomi-input {
270
- background-color: ${THEME.token?.bw0};
271
- }
272
- }
273
- }
274
-
275
- .antsomi-input-affix-wrapper-disabled {
276
- background-color: ${THEME.token?.bw0} !important;
277
- color: ${THEME.token?.bw8} !important;
278
- border-color: ${THEME.token?.bw3} !important;
279
- }
280
-
281
- .antsomi-input-status-error:not(.antsomi-input-disabled):not(
282
- .antsomi-input-borderless
283
- ).antsomi-input {
284
- &:hover {
285
- background-color: ${THEME.token?.red};
286
- }
287
- }
288
-
289
- .antsomi-input-status-warning:not(.antsomi-input-disabled):not(
290
- .antsomi-input-borderless
291
- ).antsomi-input {
292
- &:hover {
293
- background-color: ${THEME.token?.gold1};
294
- }
295
- }
296
-
297
- .antsomi-input-affix-wrapper-status-error:not(.antsomi-input-affix-wrapper-disabled):not(
298
- .antsomi-input-affix-wrapper-borderless
299
- ).antsomi-input-affix-wrapper {
300
- &:hover,
301
- &:hover > input.antsomi-input {
302
- background-color: ${THEME.token?.red};
303
- }
304
- }
305
-
306
- .antsomi-input-affix-wrapper-status-warning:not(.antsomi-input-affix-wrapper-disabled):not(
307
- .antsomi-input-affix-wrapper-borderless
308
- ).antsomi-input-affix-wrapper {
309
- &:hover,
310
- &:hover > input.antsomi-input {
311
- background-color: ${THEME.token?.gold1};
312
- }
313
- }
314
-
315
- /* For custom search input */
316
- .antsomi-input-affix-wrapper.antsomi-search-input:hover > input.antsomi-input {
317
- background-color: transparent;
318
- }
319
-
320
- // Select
321
- .antsomi-select .antsomi-select-arrow {
322
- right: 5px !important;
323
- }
324
-
325
- .antsomi-select:not(.antsomi-select-disabled):not(.antsomi-select-customize-input):not(
326
- .antsomi-pagination-size-changer
327
- ):hover
328
- .antsomi-select-selector {
329
- border-color: ${THEME.token?.blue1} !important;
330
- background-color: ${THEME.token?.blue} !important;
331
- }
332
-
333
- .antsomi-select-disabled.antsomi-select:not(.antsomi-select-customize-input)
334
- .antsomi-select-selector {
335
- border-color: ${THEME.token?.bw4};
336
- }
337
-
338
- .antsomi-select-disabled.antsomi-select:not(.antsomi-select-customize-input) .antsomi-tag {
339
- background-color: ${THEME.token?.bw4} !important;
340
- }
341
-
342
- .antsomi-select-selector {
343
- border-width: 0 0 1px 0 !important;
344
- box-shadow: none !important;
345
- }
346
-
347
- .antsomi-select-auto-complete {
348
- .antsomi-select-selector {
349
- border: none !important;
350
- }
351
- }
352
-
353
- .antsomi-select-dropdown {
354
- padding: 8px 0 !important;
355
- z-index: 3002 !important;
356
- }
357
-
358
- .antsomi-select-selection-overflow {
359
- gap: 5px;
360
- }
361
-
362
- // Dropdown
363
- .antsomi-dropdown-menu {
364
- padding: 8px 0 !important;
365
- }
366
-
367
- // Input Number
368
- .antsomi-input-number,
369
- .antsomi-input-number-affix-wrapper {
370
- border-width: 0 0 1px 0 !important;
371
- box-shadow: none !important;
372
-
373
- &.--show-handler {
374
- .antsomi-input-number-handler-wrap {
375
- opacity: 1;
376
- }
377
- }
378
- }
379
-
380
- .antsomi-input-number-group-addon {
381
- border-width: 0 0 1px 0 !important;
382
- background-color: ${THEME.token?.bw0} !important;
383
- box-shadow: none !important;
384
- }
385
-
386
- .antsomi-input-number:hover {
387
- background-color: ${THEME.token?.blue};
388
-
389
- .antsomi-input-number-handler {
390
- background-color: ${THEME.token?.blue};
391
- }
392
- }
393
-
394
- .antsomi-input-number:focus,
395
- .antsomi-input-number-focused {
396
- border-color: ${THEME.token?.colorPrimary} !important;
397
- }
398
-
399
- .antsomi-input-number-handler {
400
- border: none !important;
401
-
402
- &:hover i {
403
- color: ${THEME.token?.colorPrimary};
404
- }
405
- }
406
-
407
- // DatePicker
408
- .antsomi-picker {
409
- border-width: 0 0 1px 0 !important;
410
- box-shadow: none !important;
411
- }
412
-
413
- .antsomi-picker:hover,
414
- .antsomi-picker-focused {
415
- background-color: ${THEME.token?.blue};
416
- }
417
-
418
- .antsomi-picker:not(.antsomi-picker-status-error) .antsomi-picker-suffix {
419
- color: ${THEME.token?.bw10};
420
- }
421
-
422
- .antsomi-picker:not(.antsomi-picker-disabled).antsomi-picker-status-error:not(
423
- [disabled]
424
- ):hover {
425
- background-color: ${THEME.token?.red} !important;
426
- }
427
-
428
- // Custom
429
- .date-time-picker__popup-content {
430
- width: 230px !important;
431
- }
432
-
433
- .antsomi-picker-dropdown__advanced {
434
- &.antsomi-picker-dropdown > .antsomi-picker-panel-container {
435
- border-radius: 10px;
436
- }
437
-
438
- > .antsomi-picker-panel-container > .antsomi-picker-panel-layout > .antsomi-picker-panel {
439
- flex-direction: column-reverse;
440
- padding-bottom: 60px;
441
-
442
- .antsomi-picker-date-panel,
443
- .antsomi-picker-quarter-panel {
444
- width: 280px !important;
445
-
446
- .antsomi-picker-cell {
447
- pointer-events: none !important;
448
- }
449
- }
450
-
451
- /* .antsomi-picker-date-panel {
452
- position: relative;
453
- } */
454
-
455
- /* .antsomi-picker-date-panel::before {
456
- content: 'Hours';
457
- position: absolute;
458
- top: 0;
459
- right: 0;
460
- transform: translateX(100%);
461
- width: 61px;
462
- font-weight: bold;
463
- border-right: 1px solid rgba(5, 5, 5, 0.06);
464
- height: 38px;
465
- display: flex;
466
- align-items: center;
467
- justify-content: center;
468
- } */
469
-
470
- .antsomi-picker-time-panel {
471
- .antsomi-picker-time-panel-column:after {
472
- height: 8px;
473
- }
474
-
475
- .antsomi-picker-time-panel-cell-selected {
476
- background-color: ${THEME.token?.colorPrimary};
477
- color: #fff;
478
- }
479
- .antsomi-picker-time-panel-cell-selected:hover {
480
- background-color: ${THEME.token?.colorPrimary};
481
- }
482
-
483
- .antsomi-picker-cell-inner {
484
- text-align: center;
485
- cursor: pointer;
486
- }
487
- .antsomi-picker-cell-inner:hover {
488
- background: rgba(34, 34, 34, 0.04);
489
- }
490
-
491
- .antsomi-picker-header {
492
- display: none;
493
- }
494
-
495
- .antsomi-picker-time-panel-column {
496
- width: 60px;
497
- margin-top: 38px;
498
- /* margin-top: 0; */
499
- scrollbar-width: unset;
500
- scrollbar-color: unset;
501
-
502
- &::-webkit-scrollbar {
503
- width: 6px;
504
- background: transparent;
505
- }
506
- &::-webkit-scrollbar-track {
507
- /* margin-top: 38px; */
508
- border-radius: 10px;
509
- }
510
- }
511
-
512
- /* ul.antsomi-picker-time-panel-column::before {
513
- content: '';
514
- position: absolute;
515
- background: red;
516
- top: 0;
517
- right: 0;
518
- width: 1px;
519
- bottom: 0;
520
- } */
521
-
522
- /* .antsomi-picker-time-panel-column::before {
523
- content: 'Hours';
524
- position: sticky;
525
- display: block;
526
- top: 0;
527
- height: 38px;
528
- line-height: 38px;
529
- text-align: center;
530
- font-weight: bold;
531
- background-color: #fff;
532
- }
533
-
534
- .antsomi-picker-time-panel-column:nth-child(1)::before {
535
- content: 'Hours';
536
- }
537
- .antsomi-picker-time-panel-column:nth-child(2)::before {
538
- content: 'Minutes';
539
- }
540
- .antsomi-picker-time-panel-column:nth-child(3)::before {
541
- content: 'Seconds';
542
- } */
543
-
544
- /* .antsomi-picker-content {
545
- position: relative;
546
-
547
- .antsomi-picker-time-panel-column {
548
- margin-top: 38px;
549
- width: 60px;
550
- }
551
- } */
552
-
553
- .antsomi-picker-content {
554
- position: relative;
555
- }
556
-
557
- /* .antsomi-picker-content::after,
558
- .antsomi-picker-content::before {
559
- content: 'Minutes';
560
- position: absolute;
561
- top: 0;
562
- left: 61px;
563
- width: 60px;
564
- height: 38px;
565
- display: flex;
566
- align-items: center;
567
- justify-content: center;
568
- font-weight: bold;
569
- } */
570
-
571
- /* .antsomi-picker-content::before {
572
- border-right: 1px solid rgba(5, 5, 5, 0.06);
573
- } */
574
- /* .antsomi-picker-content::after {
575
- content: 'Seconds';
576
- left: 120px;
577
- } */
578
- }
579
-
580
- /* Custom css scrollbar */
581
- ul {
582
- padding-left: 6px;
583
- scrollbar-gutter: stable;
584
- }
585
- }
586
-
587
- &.hide-picker-header {
588
- .antsomi-picker-month-panel,
589
- .antsomi-picker-quarter-panel {
590
- .antsomi-picker-header {
591
- display: none;
592
- }
593
- }
594
- }
595
-
596
- &.only-show-time-picker {
597
- .antsomi-picker-date-panel {
598
- display: none;
599
- }
600
- .antsomi-picker-time-panel {
601
- border: none;
602
- /* NOTE: production prod show unexpected border */
603
- border-inline-start: none !important;
604
- }
605
- > .antsomi-picker-panel-container > .antsomi-picker-panel-layout > .antsomi-picker-panel {
606
- width: 250px;
607
- .antsomi-picker-datetime-panel {
608
- justify-content: center;
609
- }
610
-
611
- ul {
612
- ::-webkit-scrollbar {
613
- width: 0;
614
- }
615
- padding: 0;
616
- }
617
-
618
- .antsomi-picker-content::after {
619
- display: none;
620
- }
621
- .antsomi-picker-content::before {
622
- content: 'Hours';
623
- border: none;
624
- left: 0;
625
-
626
- position: absolute;
627
- top: 0;
628
- /* left: 61px; */
629
- width: 60px;
630
- height: 38px;
631
- display: flex;
632
- align-items: center;
633
- justify-content: center;
634
- font-weight: bold;
635
- }
636
- }
637
- &.is-minutes-picker {
638
- > .antsomi-picker-panel-container
639
- > .antsomi-picker-panel-layout
640
- > .antsomi-picker-panel {
641
- .antsomi-picker-content::before {
642
- content: 'Minutes';
643
- }
644
- }
645
- }
646
- }
647
-
648
- &.--error
649
- > .antsomi-picker-panel-container
650
- > .antsomi-picker-panel-layout
651
- > .antsomi-picker-panel {
652
- padding-bottom: 80px;
653
- }
654
-
655
- &.antsomi-picker-dropdown {
656
- .antsomi-picker-footer-extra {
657
- padding: 0 !important;
658
- }
659
-
660
- /*
661
- * NOTE: UI broken when add showTime props to <DatePicker />
662
- * Unexpected header control (comment code below to see bug)
663
- * Temporary solution: hide the verbose element
664
- */
665
- .antsomi-picker-ranges {
666
- display: none;
667
- }
668
- }
669
- }
670
-
671
- .antsomi-advanced-picker-container .input__wrapper {
672
- display: inline-block;
673
- }
674
-
675
- // Slider
676
- .antsomi-slider {
677
- margin: 0 !important;
678
-
679
- &.antsomi-slider-horizontal {
680
- .antsomi-slider-rail,
681
- .antsomi-slider-step {
682
- height: 4px;
683
- width: 100%;
684
- }
685
-
686
- .antsomi-slider-rail {
687
- height: 4px;
688
- }
689
- }
690
-
691
- .antsomi-slider-rail,
692
- .antsomi-slider-step {
693
- position: absolute !important;
694
- }
695
-
696
- .antsomi-slider-rail {
697
- border-radius: 2px !important;
698
- transition: background-color 0.3s !important;
699
- background-color: ${THEME.token?.accent1} !important;
700
- }
701
-
702
- .antsomi-slider-track {
703
- position: absolute !important;
704
- border-radius: 2px !important;
705
- transition: background-color 0.3s !important;
706
- background-color: ${THEME.token?.colorPrimary} !important;
707
- }
708
-
709
- .antsomi-slider-step {
710
- background: 0 0 !important;
711
- pointer-events: none !important;
712
- }
713
-
714
- .antsomi-slider-handle {
715
- position: absolute !important;
716
- width: 14px !important;
717
- height: 14px !important;
718
- margin-top: -2px;
719
- background-color: #fff;
720
- border-radius: 50%;
721
- box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 2px 0px;
722
- cursor: pointer;
723
- transition:
724
- border-color 0.3s,
725
- box-shadow 0.6s,
726
- transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
727
- }
728
-
729
- .antsomi-slider-handle::before,
730
- .antsomi-slider-handle::after,
731
- .antsomi-slider-handle:hover::after,
732
- .antsomi-slider-handle:focus::before,
733
- .antsomi-slider-handle:focus::after {
734
- width: 14px !important;
735
- height: 14px !important;
736
- box-shadow: none !important;
737
- inset-block-start: 0 !important;
738
- inset-inline-start: 0 !important;
739
- }
740
-
741
- .antsomi-slider-handle::after {
742
- background-color: ${THEME.token?.colorPrimary} !important;
743
- }
744
-
745
- &:hover {
746
- .antsomi-slider-track {
747
- background-color: ${THEME.token?.colorPrimary} !important;
748
- }
749
-
750
- .antsomi-slider-rail {
751
- background-color: ${THEME.token?.accent1} !important;
752
- }
753
-
754
- .antsomi-slider-handle::after {
755
- box-shadow: none !important;
756
- }
757
-
758
- .antsomi-slider-handle {
759
- border-color: ${THEME.token?.colorPrimary} !important;
760
- }
761
- }
762
-
763
- &.antsomi-slider-with-marks {
764
- margin-bottom: 0 !important;
765
- }
766
-
767
- &.antsomi-slider-disabled {
768
- .antsomi-slider-handle {
769
- background-color: ${THEME.token?.accent2} !important;
770
- border-color: ${THEME.token?.accent2} !important;
771
- }
772
- }
773
- }
774
-
775
- /* Radio */
776
- .antsomi-radio-group-outline {
777
- .antsomi-radio-button-wrapper {
778
- display: inline-flex;
779
- align-items: center;
780
- height: 30px;
781
- padding-left: 20px;
782
- padding-right: 20px;
783
- font-family: 'Roboto';
784
- color: ${THEME.token?.colorTextBase};
785
- font-size: ${THEME.token?.fontSize}px;
786
-
787
- &:focus-within {
788
- --tw-shadow: 0 0 #0000;
789
- --tw-shadow-colored: 0 0 #0000;
790
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
791
- var(--tw-shadow);
792
- }
793
-
794
- &:first-child {
795
- border-top-left-radius: ${THEME.token?.borderRadius}px;
796
- border-bottom-left-radius: ${THEME.token?.borderRadius}px;
797
- }
798
-
799
- &:last-child {
800
- border-top-right-radius: ${THEME.token?.borderRadius}px;
801
- border-bottom-right-radius: ${THEME.token?.borderRadius}px;
802
- }
803
-
804
- &.antsomi-radio-button-wrapper-checked {
805
- border-color: ${THEME.token?.accent1};
806
- background-color: ${THEME.token?.colorTextActive};
807
- color: ${THEME.token?.colorPrimary};
808
- font-weight: 700;
809
-
810
- &::before {
811
- background-color: ${THEME.token?.accent1};
812
- }
813
- }
814
- }
815
-
816
- .antsomi-radio-wrapper {
817
- font-family: 'Roboto';
818
- font-size: ${THEME.token?.fontSize}px;
819
- margin-right: 0;
820
-
821
- .antsomi-radio-disabled {
822
- &:hover {
823
- ::after {
824
- border-color: ${THEME.token?.gray5} !important;
825
- }
826
- }
827
-
828
- .antsomi-radio-inner {
829
- border-color: ${THEME.token?.gray5} !important;
830
-
831
- &::after {
832
- background-color: ${THEME.token?.colorTextDisabled} !important;
833
- }
834
- }
835
- }
836
-
837
- .antsomi-radio-inner {
838
- display: flex;
839
- justify-content: center;
840
- align-items: center;
841
- }
842
-
843
- .antsomi-radio-checked .antsomi-radio-inner::after {
844
- transform: scale(0.6);
845
- }
846
-
847
- .antsomi-radio-inner::after {
848
- flex-shrink: 0;
849
- position: unset !important;
850
- transition: none !important;
851
- transform: scale(0.6);
852
- margin-block-start: 0px;
853
- margin-inline-start: 0px;
854
- }
855
-
856
- .antsomi-radio {
857
- .antsomi-radio-inner {
858
- width: 16px;
859
- height: 16px;
860
- border-color: ${THEME.token?.colorPrimary};
861
- border-width: 2px;
862
- background-color: ${THEME.token?.bw0};
863
-
864
- &::after {
865
- background-color: ${THEME.token?.colorPrimary};
866
- }
867
- }
868
- }
869
-
870
- &:not(:last-child) {
871
- margin-right: 30px;
872
- }
873
- }
874
- }
875
-
876
- /* Checkbox */
877
- .antsomi-checkbox-wrapper {
878
- .antsomi-checkbox-indeterminate {
879
- .antsomi-checkbox-inner::after {
880
- width: 10px !important;
881
- height: 2px !important;
882
- }
883
- }
884
-
885
- .antsomi-checkbox-indeterminate:not(.antsomi-checkbox-disabled) {
886
- .antsomi-checkbox-inner {
887
- background-color: ${THEME.token?.colorPrimary} !important;
888
- &::after {
889
- background-color: ${THEME.token?.bw0} !important;
890
- }
891
- }
892
- }
893
- }
894
-
895
- /* Modal Close */
896
- .antsomi-modal-root .antsomi-modal-wrap {
897
- z-index: 3001;
898
- }
899
-
900
- .antsomi-modal .antsomi-modal-close {
901
- width: unset !important;
902
- height: unset !important;
903
- top: 0px !important;
904
- right: 0 !important;
905
-
906
- .antsomi-modal-close-x {
907
- padding: 20px;
908
- }
909
- }
910
- .antsomi-modal-content {
911
- .antsomi-modal-header {
912
- .antsomi-modal-title {
913
- font-weight: 500;
914
- font-size: 16px;
915
- line-height: 22px;
916
- word-wrap: break-word;
917
- }
918
- }
919
-
920
- .antsomi-modal-body {
921
- p {
922
- margin: 0;
923
- }
924
- .antsomi-modal-confirm-body-wrapper {
925
- padding: 20px;
926
-
927
- .antsomi-modal-confirm-body {
928
- display: flex;
929
-
930
- /* Style for icon */
931
- > i {
932
- color: ${THEME.token?.colorPrimary};
933
- margin-right: 13px;
934
- }
935
- }
936
-
937
- .antsomi-modal-confirm-body:has(i) ~ .antsomi-modal-confirm-btns {
938
- padding-left: 30px;
939
- }
940
-
941
- .antsomi-modal-confirm-btns {
942
- display: flex;
943
- flex-direction: row-reverse;
944
- justify-content: start;
945
- gap: 8px;
946
-
947
- .antsomi-btn {
948
- margin: 0px;
949
- }
950
- }
951
- }
952
- }
953
- .antsomi-modal-footer {
954
- margin-top: 0px;
955
- padding: 15px !important;
956
- text-align: right;
957
- background: transparent;
958
- border-top: 1px solid #f0f0f0 !important;
959
- border-radius: 0 0 2px 2px;
960
- }
961
- }
962
- /* Override style for Modal confirm in Editor Tab */
963
- .editor-tab__modal-confirm .antsomi-modal-content .antsomi-modal-body {
964
- .antsomi-modal-confirm-body-wrapper {
965
- padding: 0;
966
-
967
- .antsomi-modal-confirm-body {
968
- padding: 20px 20px 0 20px;
969
- }
970
- .antsomi-modal-confirm-btns {
971
- padding: 12px 20px 20px;
972
- border-top: 1px solid ${THEME.token?.bw4};
973
- }
974
- }
975
- }
976
-
977
- /* Message Notification */
978
- .ant-message {
979
- z-index: 999999 !important;
980
- }
981
-
982
- /* Collapse */
983
- .antsomi-collapse-header {
984
- font-size: 14px;
985
- }
986
-
987
- .antsomi-collapse {
988
- &.antsomi-collapse-borderless {
989
- border-bottom: 1px solid ${THEME.token?.gray5};
990
- }
991
-
992
- > .antsomi-collapse-item > .antsomi-collapse-header .antsomi-collapse-arrow {
993
- transition: all 200ms;
994
- }
995
- }
996
-
997
- /* Tabs */
998
- .antsomi-tabs {
999
- .antsomi-tabs-tab {
1000
- font-weight: bold;
1001
-
1002
- &:not(.antsomi-tabs-tab-active):hover {
1003
- background-color: ${THEME.token?.blue};
1004
- }
1005
- }
1006
- .antsomi-tabs-tab-active {
1007
- z-index: 2;
1008
- }
1009
- .antsomi-tabs-nav::before {
1010
- z-index: 1;
1011
- }
1012
- }
1013
-
1014
- /* Form */
1015
- .antsomi-form {
1016
- .antsomi-form-item {
1017
- .antsomi-form-item-label {
1018
- > label.antsomi-form-item-required:not(.antsomi-form-item-required-mark-optional) {
1019
- &::before {
1020
- position: absolute;
1021
- right: 0px;
1022
- font-family: Roboto;
1023
- }
1024
- }
1025
- }
1026
- }
1027
- }
1028
-
1029
- /* Popover */
1030
- .antsomi-popover {
1031
- &.no-padding-content {
1032
- .antsomi-popover-inner {
1033
- padding: 0 !important;
1034
- }
1035
- }
1036
- .antsomi-popover-inner {
1037
- overflow: hidden;
1038
- }
1039
-
1040
- &.antsomi-emoji-popover .antsomi-popover-inner {
1041
- padding: 15px;
1042
- width: 530px;
1043
- height: 275px;
1044
- }
1045
- }
1046
-
1047
- /* Menu */
1048
- .antsomi-menu {
1049
- .antsomi-menu-submenu.antsomi-menu-submenu-selected {
1050
- .antsomi-menu-item.antsomi-menu-item-selected {
1051
- background-color: ${THEME.token?.blue};
1052
- }
1053
- }
1054
- }
1055
-
1056
- .antsomi-typography {
1057
- &.antsomi-typography-danger,
1058
- &.antsomi-typography-warning {
1059
- font-size: 11px;
1060
- }
1061
- }
1062
-
1063
- /* Tree */
1064
- .antsomi-tree-list {
1065
- .antsomi-tree-treenode {
1066
- align-items: center !important;
1067
-
1068
- .antsomi-tree-checkbox {
1069
- margin: 3px 0px;
1070
- }
1071
- }
1072
-
1073
- > .antsomi-tree-list-scrollbar-vertical {
1074
- width: ${scrollBarSize} !important;
1075
-
1076
- > .antsomi-tree-list-scrollbar-thumb {
1077
- background: ${accent7} !important;
1078
- }
1079
- }
1080
- }
1081
-
1082
- /* Checkbox */
1083
- .antsomi-checkbox,
1084
- .antsomi-tree-checkbox {
1085
- &.antsomi-checkbox-disabled,
1086
- &.antsomi-tree-checkbox-disabled {
1087
- .antsomi-checkbox-inner,
1088
- .antsomi-tree-checkbox-inner {
1089
- background-color: ${globalToken?.bw0};
1090
- border-color: ${globalToken?.bw5} !important;
1091
- }
1092
-
1093
- &.antsomi-checkbox-checked,
1094
- &.antsomi-tree-checkbox-checked {
1095
- .antsomi-checkbox-inner,
1096
- .antsomi-tree-checkbox-inner {
1097
- background-color: ${globalToken?.bw5};
1098
-
1099
- &::after {
1100
- border-color: ${globalToken?.bw0};
1101
- }
1102
- }
1103
- }
1104
- }
1105
- }
1106
-
1107
- /* Tags */
1108
- .antsomi-tag {
1109
- padding-inline: 10px !important;
1110
- align-items: center;
1111
- display: flex !important;
1112
- line-height: 1;
1113
- min-height: 24px;
1114
- overflow: hidden;
1115
- text-overflow: ellipsis;
1116
-
1117
- .antsomi-tag-close-icon {
1118
- position: absolute;
1119
- top: 50%;
1120
- transform: translateY(-50%);
1121
- right: 4px;
1122
- opacity: 0;
1123
- }
1124
-
1125
- &:hover {
1126
- .antsomi-tag-close-icon {
1127
- opacity: 1;
1128
- }
1129
- }
1130
- }
12
+ export const GlobalStyle = () => (_jsx(Global, { styles: css `
13
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
14
+
15
+ :root {
16
+ --divider-1: ${bw3};
17
+ --divider-2: ${bw4};
18
+ --divider-3: ${bw5};
19
+ }
20
+
21
+ *,
22
+ *:before,
23
+ *:after {
24
+ -webkit-box-sizing: border-box;
25
+ -moz-box-sizing: border-box;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ hr {
30
+ border-color: var(--divider-1);
31
+ }
32
+
33
+ .rc-virtual-list-scrollbar {
34
+ width: 4px !important;
35
+ height: 4px !important;
36
+ }
37
+
38
+ /* Custom */
39
+ .antsomi-scrollbar-hidden {
40
+ -ms-overflow-style: none; /* for Internet Explorer, Edge */
41
+ scrollbar-width: none; /* for Firefox */
42
+
43
+ &::-webkit-scrollbar {
44
+ display: none;
45
+ }
46
+ }
47
+
48
+ /* width */
49
+ ::-webkit-scrollbar {
50
+ background: transparent !important;
51
+ width: ${scrollBarSize} !important;
52
+ height: ${scrollBarSize} !important;
53
+ }
54
+
55
+ /* Track */
56
+ ::-webkit-scrollbar-track {
57
+ background: transparent !important;
58
+ }
59
+
60
+ /* Handle */
61
+ ::-webkit-scrollbar-thumb {
62
+ background-color: transparent;
63
+ border-radius: 4px;
64
+ }
65
+
66
+ *:hover {
67
+ &::-webkit-scrollbar-thumb {
68
+ background-color: ${gray5} !important;
69
+ }
70
+ }
71
+
72
+ .rc-virtual-list {
73
+ .rc-virtual-list-scrollbar-vertical {
74
+ width: ${scrollBarSize} !important;
75
+ }
76
+
77
+ .rc-virtual-list-scrollbar-thumb {
78
+ background: ${accent7} !important;
79
+ }
80
+ }
81
+
82
+ .custom-scrollbars {
83
+ &:hover {
84
+ .scrollbar-track {
85
+ opacity: 1 !important;
86
+ }
87
+ }
88
+ }
89
+
90
+ .antsomi-scroll-box {
91
+ overflow-y: auto;
92
+ scrollbar-gutter: stable !important;
93
+ margin-right: -${scrollBarSize} !important;
94
+
95
+ &.on-scroll {
96
+ ::-webkit-scrollbar-thumb {
97
+ display: block !important;
98
+ }
99
+ }
100
+
101
+ .scroll-content {
102
+ margin-right: -${scrollBarSize} !important;
103
+ }
104
+
105
+ ::-webkit-scrollbar {
106
+ width: ${scrollBarSize} !important;
107
+ height: ${scrollBarSize} !important;
108
+ background-color: transparent !important;
109
+ }
110
+
111
+ ::-webkit-scrollbar-track {
112
+ background-color: transparent !important;
113
+ }
114
+
115
+ ::-webkit-scrollbar-thumb {
116
+ background-color: ${gray5} !important;
117
+ border-radius: 15px !important;
118
+ display: none !important;
119
+
120
+ &:hover {
121
+ display: block !important;
122
+ }
123
+ }
124
+ }
125
+
126
+ /* Tooltip */
127
+ .antsomi-tooltip {
128
+ .antsomi-tooltip-content {
129
+ .antsomi-tooltip-inner {
130
+ a {
131
+ color: inherit;
132
+ font-weight: bold;
133
+ }
134
+ }
135
+ }
136
+ }
137
+
138
+ /* Button */
139
+ .antsomi-btn {
140
+ font-weight: 700 !important;
141
+ display: inline-flex !important;
142
+ align-items: center !important;
143
+ justify-content: center !important;
144
+ gap: 8px;
145
+
146
+ i {
147
+ font-size: 20px;
148
+ }
149
+ }
150
+
151
+ .antsomi-btn-default {
152
+ &:not(:disabled):hover {
153
+ border-color: ${THEME.token?.blue3} !important;
154
+ background-color: ${THEME.token?.blue} !important;
155
+ }
156
+ &:not(:disabled).antsomi-btn-default-active {
157
+ border-color: ${THEME.token?.colorPrimary} !important;
158
+ background-color: ${THEME.token?.blue1_1} !important;
159
+ }
160
+
161
+ &.antsomi-btn-dangerous {
162
+ border-color: ${THEME.token?.red2} !important;
163
+
164
+ &:not(:disabled):hover {
165
+ border-color: ${THEME.token?.red3} !important;
166
+ background-color: ${THEME.token?.red} !important;
167
+ }
168
+ }
169
+
170
+ &.antsomi-btn-icon-only {
171
+ width: 36px !important;
172
+ height: 36px !important;
173
+ }
174
+
175
+ &.antsomi-btn-icon-only.antsomi-btn-sm {
176
+ /* Important to override the above code before */
177
+ width: 24px !important;
178
+ height: 24px !important;
179
+ }
180
+ }
181
+
182
+ .antsomi-btn-text:disabled,
183
+ .antsomi-btn-link:disabled {
184
+ color: ${THEME.token?.bw6} !important;
185
+ }
186
+
187
+ /* .antsomi-btn-primary:disabled, */
188
+ .antsomi-btn-default:disabled,
189
+ .antsomi-btn-dashed:disabled,
190
+ .antsomi-btn-disabled,
191
+ .antsomi-btn-default.antsomi-btn-dangerous:disabled,
192
+ .antsomi-btn-primary.antsomi-btn-dangerous:disabled {
193
+ border-color: ${THEME.token?.bw4} !important;
194
+ }
195
+
196
+ .antsomi-btn-default:disabled,
197
+ .antsomi-btn-dashed:disabled,
198
+ .antsomi-btn-disabled,
199
+ .antsomi-btn-default.antsomi-btn-dangerous:disabled {
200
+ color: ${THEME.token?.bw6} !important;
201
+ background-color: ${THEME.token?.bw2} !important;
202
+ }
203
+
204
+ // NOTE: Just hot fix for easy looking
205
+ .antsomi-btn-primary.antsomi-btn-compact-item.antsomi-btn-compact-first-item {
206
+ padding-right: 6px !important;
207
+ }
208
+ .antsomi-btn-compact-item.antsomi-btn-primary.antsomi-btn-compact-last-item {
209
+ width: fit-content;
210
+ //padding: 0px !important;
211
+ padding: 0px 4px !important;
212
+ &::before {
213
+ content: '';
214
+ position: absolute;
215
+ left: 0px;
216
+ background-color: ${globalToken?.blue5} !important;
217
+ top: auto !important;
218
+ height: 80% !important;
219
+ width: 1px !important;
220
+ }
221
+
222
+ &:disabled {
223
+ &::before {
224
+ background-color: ${globalToken?.bw4} !important;
225
+ }
226
+ }
227
+
228
+ &:not(:disabled) {
229
+ &:hover {
230
+ &::before {
231
+ opacity: 0;
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ /* Input */
238
+ .antsomi-input,
239
+ .antsomi-input-affix-wrapper {
240
+ border-width: 0 0 1px 0 !important;
241
+ box-shadow: none !important;
242
+
243
+ &:hover {
244
+ background-color: ${THEME.token?.blue};
245
+ }
246
+ }
247
+
248
+ .antsomi-input-disabled {
249
+ border-color: ${THEME.token?.bw3} !important;
250
+ background-color: ${THEME.token?.bw0} !important;
251
+ }
252
+
253
+ .antsomi-input {
254
+ &:focus {
255
+ background-color: ${THEME.token?.bw0};
256
+ }
257
+ }
258
+
259
+ .antsomi-input-affix-wrapper {
260
+ &:hover {
261
+ > input.antsomi-input {
262
+ background-color: ${THEME.token?.blue};
263
+ }
264
+ }
265
+
266
+ &.antsomi-input-affix-wrapper-focused {
267
+ background-color: ${THEME.token?.bw0};
268
+
269
+ > input.antsomi-input {
270
+ background-color: ${THEME.token?.bw0};
271
+ }
272
+ }
273
+ }
274
+
275
+ .antsomi-input-affix-wrapper-disabled {
276
+ background-color: ${THEME.token?.bw0} !important;
277
+ color: ${THEME.token?.bw8} !important;
278
+ border-color: ${THEME.token?.bw3} !important;
279
+ }
280
+
281
+ .antsomi-input-status-error:not(.antsomi-input-disabled):not(
282
+ .antsomi-input-borderless
283
+ ).antsomi-input {
284
+ &:hover {
285
+ background-color: ${THEME.token?.red};
286
+ }
287
+ }
288
+
289
+ .antsomi-input-status-warning:not(.antsomi-input-disabled):not(
290
+ .antsomi-input-borderless
291
+ ).antsomi-input {
292
+ &:hover {
293
+ background-color: ${THEME.token?.gold1};
294
+ }
295
+ }
296
+
297
+ .antsomi-input-affix-wrapper-status-error:not(.antsomi-input-affix-wrapper-disabled):not(
298
+ .antsomi-input-affix-wrapper-borderless
299
+ ).antsomi-input-affix-wrapper {
300
+ &:hover,
301
+ &:hover > input.antsomi-input {
302
+ background-color: ${THEME.token?.red};
303
+ }
304
+ }
305
+
306
+ .antsomi-input-affix-wrapper-status-warning:not(.antsomi-input-affix-wrapper-disabled):not(
307
+ .antsomi-input-affix-wrapper-borderless
308
+ ).antsomi-input-affix-wrapper {
309
+ &:hover,
310
+ &:hover > input.antsomi-input {
311
+ background-color: ${THEME.token?.gold1};
312
+ }
313
+ }
314
+
315
+ /* For custom search input */
316
+ .antsomi-input-affix-wrapper.antsomi-search-input:hover > input.antsomi-input {
317
+ background-color: transparent;
318
+ }
319
+
320
+ // Select
321
+ .antsomi-select .antsomi-select-arrow {
322
+ right: 5px !important;
323
+ }
324
+
325
+ .antsomi-select:not(.antsomi-select-disabled):not(.antsomi-select-customize-input):not(
326
+ .antsomi-pagination-size-changer
327
+ ):hover
328
+ .antsomi-select-selector {
329
+ border-color: ${THEME.token?.blue1} !important;
330
+ background-color: ${THEME.token?.blue} !important;
331
+ }
332
+
333
+ .antsomi-select-disabled.antsomi-select:not(.antsomi-select-customize-input)
334
+ .antsomi-select-selector {
335
+ border-color: ${THEME.token?.bw4};
336
+ }
337
+
338
+ .antsomi-select-disabled.antsomi-select:not(.antsomi-select-customize-input) .antsomi-tag {
339
+ background-color: ${THEME.token?.bw4} !important;
340
+ }
341
+
342
+ .antsomi-select-selector {
343
+ border-width: 0 0 1px 0 !important;
344
+ box-shadow: none !important;
345
+ }
346
+
347
+ .antsomi-select-auto-complete {
348
+ .antsomi-select-selector {
349
+ border: none !important;
350
+ }
351
+ }
352
+
353
+ .antsomi-select-dropdown {
354
+ padding: 8px 0 !important;
355
+ z-index: 3002 !important;
356
+ }
357
+
358
+ .antsomi-select-selection-overflow {
359
+ gap: 5px;
360
+ }
361
+
362
+ // Dropdown
363
+ .antsomi-dropdown-menu {
364
+ padding: 8px 0 !important;
365
+ }
366
+
367
+ // Input Number
368
+ .antsomi-input-number,
369
+ .antsomi-input-number-affix-wrapper {
370
+ border-width: 0 0 1px 0 !important;
371
+ box-shadow: none !important;
372
+
373
+ &.--show-handler {
374
+ .antsomi-input-number-handler-wrap {
375
+ opacity: 1;
376
+ }
377
+ }
378
+ }
379
+
380
+ .antsomi-input-number-group-addon {
381
+ border-width: 0 0 1px 0 !important;
382
+ background-color: ${THEME.token?.bw0} !important;
383
+ box-shadow: none !important;
384
+ }
385
+
386
+ .antsomi-input-number:hover {
387
+ background-color: ${THEME.token?.blue};
388
+
389
+ .antsomi-input-number-handler {
390
+ background-color: ${THEME.token?.blue};
391
+ }
392
+ }
393
+
394
+ .antsomi-input-number:focus,
395
+ .antsomi-input-number-focused {
396
+ border-color: ${THEME.token?.colorPrimary} !important;
397
+ }
398
+
399
+ .antsomi-input-number-handler {
400
+ border: none !important;
401
+
402
+ &:hover i {
403
+ color: ${THEME.token?.colorPrimary};
404
+ }
405
+ }
406
+
407
+ // DatePicker
408
+ .antsomi-picker {
409
+ border-width: 0 0 1px 0 !important;
410
+ box-shadow: none !important;
411
+ }
412
+
413
+ .antsomi-picker:hover,
414
+ .antsomi-picker-focused {
415
+ background-color: ${THEME.token?.blue};
416
+ }
417
+
418
+ .antsomi-picker:not(.antsomi-picker-status-error) .antsomi-picker-suffix {
419
+ color: ${THEME.token?.bw10};
420
+ }
421
+
422
+ .antsomi-picker:not(.antsomi-picker-disabled).antsomi-picker-status-error:not(
423
+ [disabled]
424
+ ):hover {
425
+ background-color: ${THEME.token?.red} !important;
426
+ }
427
+
428
+ // Custom
429
+ .date-time-picker__popup-content {
430
+ width: 230px !important;
431
+ }
432
+
433
+ .antsomi-picker-dropdown__advanced {
434
+ &.antsomi-picker-dropdown > .antsomi-picker-panel-container {
435
+ border-radius: 10px;
436
+ }
437
+
438
+ > .antsomi-picker-panel-container > .antsomi-picker-panel-layout > .antsomi-picker-panel {
439
+ flex-direction: column-reverse;
440
+ padding-bottom: 60px;
441
+
442
+ .antsomi-picker-date-panel,
443
+ .antsomi-picker-quarter-panel {
444
+ width: 280px !important;
445
+
446
+ .antsomi-picker-cell {
447
+ pointer-events: none !important;
448
+ }
449
+ }
450
+
451
+ /* .antsomi-picker-date-panel {
452
+ position: relative;
453
+ } */
454
+
455
+ /* .antsomi-picker-date-panel::before {
456
+ content: 'Hours';
457
+ position: absolute;
458
+ top: 0;
459
+ right: 0;
460
+ transform: translateX(100%);
461
+ width: 61px;
462
+ font-weight: bold;
463
+ border-right: 1px solid rgba(5, 5, 5, 0.06);
464
+ height: 38px;
465
+ display: flex;
466
+ align-items: center;
467
+ justify-content: center;
468
+ } */
469
+
470
+ .antsomi-picker-time-panel {
471
+ .antsomi-picker-time-panel-column:after {
472
+ height: 8px;
473
+ }
474
+
475
+ .antsomi-picker-time-panel-cell-selected {
476
+ background-color: ${THEME.token?.colorPrimary};
477
+ color: #fff;
478
+ }
479
+ .antsomi-picker-time-panel-cell-selected:hover {
480
+ background-color: ${THEME.token?.colorPrimary};
481
+ }
482
+
483
+ .antsomi-picker-cell-inner {
484
+ text-align: center;
485
+ cursor: pointer;
486
+ }
487
+ .antsomi-picker-cell-inner:hover {
488
+ background: rgba(34, 34, 34, 0.04);
489
+ }
490
+
491
+ .antsomi-picker-header {
492
+ display: none;
493
+ }
494
+
495
+ .antsomi-picker-time-panel-column {
496
+ width: 60px;
497
+ margin-top: 38px;
498
+ /* margin-top: 0; */
499
+ scrollbar-width: unset;
500
+ scrollbar-color: unset;
501
+
502
+ &::-webkit-scrollbar {
503
+ width: 6px;
504
+ background: transparent;
505
+ }
506
+ &::-webkit-scrollbar-track {
507
+ /* margin-top: 38px; */
508
+ border-radius: 10px;
509
+ }
510
+ }
511
+
512
+ /* ul.antsomi-picker-time-panel-column::before {
513
+ content: '';
514
+ position: absolute;
515
+ background: red;
516
+ top: 0;
517
+ right: 0;
518
+ width: 1px;
519
+ bottom: 0;
520
+ } */
521
+
522
+ /* .antsomi-picker-time-panel-column::before {
523
+ content: 'Hours';
524
+ position: sticky;
525
+ display: block;
526
+ top: 0;
527
+ height: 38px;
528
+ line-height: 38px;
529
+ text-align: center;
530
+ font-weight: bold;
531
+ background-color: #fff;
532
+ }
533
+
534
+ .antsomi-picker-time-panel-column:nth-child(1)::before {
535
+ content: 'Hours';
536
+ }
537
+ .antsomi-picker-time-panel-column:nth-child(2)::before {
538
+ content: 'Minutes';
539
+ }
540
+ .antsomi-picker-time-panel-column:nth-child(3)::before {
541
+ content: 'Seconds';
542
+ } */
543
+
544
+ /* .antsomi-picker-content {
545
+ position: relative;
546
+
547
+ .antsomi-picker-time-panel-column {
548
+ margin-top: 38px;
549
+ width: 60px;
550
+ }
551
+ } */
552
+
553
+ .antsomi-picker-content {
554
+ position: relative;
555
+ }
556
+
557
+ /* .antsomi-picker-content::after,
558
+ .antsomi-picker-content::before {
559
+ content: 'Minutes';
560
+ position: absolute;
561
+ top: 0;
562
+ left: 61px;
563
+ width: 60px;
564
+ height: 38px;
565
+ display: flex;
566
+ align-items: center;
567
+ justify-content: center;
568
+ font-weight: bold;
569
+ } */
570
+
571
+ /* .antsomi-picker-content::before {
572
+ border-right: 1px solid rgba(5, 5, 5, 0.06);
573
+ } */
574
+ /* .antsomi-picker-content::after {
575
+ content: 'Seconds';
576
+ left: 120px;
577
+ } */
578
+ }
579
+
580
+ /* Custom css scrollbar */
581
+ ul {
582
+ padding-left: 6px;
583
+ scrollbar-gutter: stable;
584
+ }
585
+ }
586
+
587
+ &.hide-picker-header {
588
+ .antsomi-picker-month-panel,
589
+ .antsomi-picker-quarter-panel {
590
+ .antsomi-picker-header {
591
+ display: none;
592
+ }
593
+ }
594
+ }
595
+
596
+ &.only-show-time-picker {
597
+ .antsomi-picker-date-panel {
598
+ display: none;
599
+ }
600
+ .antsomi-picker-time-panel {
601
+ border: none;
602
+ /* NOTE: production prod show unexpected border */
603
+ border-inline-start: none !important;
604
+ }
605
+ > .antsomi-picker-panel-container > .antsomi-picker-panel-layout > .antsomi-picker-panel {
606
+ width: 250px;
607
+ .antsomi-picker-datetime-panel {
608
+ justify-content: center;
609
+ }
610
+
611
+ ul {
612
+ ::-webkit-scrollbar {
613
+ width: 0;
614
+ }
615
+ padding: 0;
616
+ }
617
+
618
+ .antsomi-picker-content::after {
619
+ display: none;
620
+ }
621
+ .antsomi-picker-content::before {
622
+ content: 'Hours';
623
+ border: none;
624
+ left: 0;
625
+
626
+ position: absolute;
627
+ top: 0;
628
+ /* left: 61px; */
629
+ width: 60px;
630
+ height: 38px;
631
+ display: flex;
632
+ align-items: center;
633
+ justify-content: center;
634
+ font-weight: bold;
635
+ }
636
+ }
637
+ &.is-minutes-picker {
638
+ > .antsomi-picker-panel-container
639
+ > .antsomi-picker-panel-layout
640
+ > .antsomi-picker-panel {
641
+ .antsomi-picker-content::before {
642
+ content: 'Minutes';
643
+ }
644
+ }
645
+ }
646
+ }
647
+
648
+ &.--error
649
+ > .antsomi-picker-panel-container
650
+ > .antsomi-picker-panel-layout
651
+ > .antsomi-picker-panel {
652
+ padding-bottom: 80px;
653
+ }
654
+
655
+ &.antsomi-picker-dropdown {
656
+ .antsomi-picker-footer-extra {
657
+ padding: 0 !important;
658
+ }
659
+
660
+ /*
661
+ * NOTE: UI broken when add showTime props to <DatePicker />
662
+ * Unexpected header control (comment code below to see bug)
663
+ * Temporary solution: hide the verbose element
664
+ */
665
+ .antsomi-picker-ranges {
666
+ display: none;
667
+ }
668
+ }
669
+ }
670
+
671
+ .antsomi-advanced-picker-container .input__wrapper {
672
+ display: inline-block;
673
+ }
674
+
675
+ // Slider
676
+ .antsomi-slider {
677
+ margin: 0 !important;
678
+
679
+ &.antsomi-slider-horizontal {
680
+ .antsomi-slider-rail,
681
+ .antsomi-slider-step {
682
+ height: 4px;
683
+ width: 100%;
684
+ }
685
+
686
+ .antsomi-slider-rail {
687
+ height: 4px;
688
+ }
689
+ }
690
+
691
+ .antsomi-slider-rail,
692
+ .antsomi-slider-step {
693
+ position: absolute !important;
694
+ }
695
+
696
+ .antsomi-slider-rail {
697
+ border-radius: 2px !important;
698
+ transition: background-color 0.3s !important;
699
+ background-color: ${THEME.token?.accent1} !important;
700
+ }
701
+
702
+ .antsomi-slider-track {
703
+ position: absolute !important;
704
+ border-radius: 2px !important;
705
+ transition: background-color 0.3s !important;
706
+ background-color: ${THEME.token?.colorPrimary} !important;
707
+ }
708
+
709
+ .antsomi-slider-step {
710
+ background: 0 0 !important;
711
+ pointer-events: none !important;
712
+ }
713
+
714
+ .antsomi-slider-handle {
715
+ position: absolute !important;
716
+ width: 14px !important;
717
+ height: 14px !important;
718
+ margin-top: -2px;
719
+ background-color: #fff;
720
+ border-radius: 50%;
721
+ box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 2px 0px;
722
+ cursor: pointer;
723
+ transition:
724
+ border-color 0.3s,
725
+ box-shadow 0.6s,
726
+ transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
727
+ }
728
+
729
+ .antsomi-slider-handle::before,
730
+ .antsomi-slider-handle::after,
731
+ .antsomi-slider-handle:hover::after,
732
+ .antsomi-slider-handle:focus::before,
733
+ .antsomi-slider-handle:focus::after {
734
+ width: 14px !important;
735
+ height: 14px !important;
736
+ box-shadow: none !important;
737
+ inset-block-start: 0 !important;
738
+ inset-inline-start: 0 !important;
739
+ }
740
+
741
+ .antsomi-slider-handle::after {
742
+ background-color: ${THEME.token?.colorPrimary} !important;
743
+ }
744
+
745
+ &:hover {
746
+ .antsomi-slider-track {
747
+ background-color: ${THEME.token?.colorPrimary} !important;
748
+ }
749
+
750
+ .antsomi-slider-rail {
751
+ background-color: ${THEME.token?.accent1} !important;
752
+ }
753
+
754
+ .antsomi-slider-handle::after {
755
+ box-shadow: none !important;
756
+ }
757
+
758
+ .antsomi-slider-handle {
759
+ border-color: ${THEME.token?.colorPrimary} !important;
760
+ }
761
+ }
762
+
763
+ &.antsomi-slider-with-marks {
764
+ margin-bottom: 0 !important;
765
+ }
766
+
767
+ &.antsomi-slider-disabled {
768
+ .antsomi-slider-handle {
769
+ background-color: ${THEME.token?.accent2} !important;
770
+ border-color: ${THEME.token?.accent2} !important;
771
+ }
772
+ }
773
+ }
774
+
775
+ /* Radio */
776
+ .antsomi-radio-group-outline {
777
+ .antsomi-radio-button-wrapper {
778
+ display: inline-flex;
779
+ align-items: center;
780
+ height: 30px;
781
+ padding-left: 20px;
782
+ padding-right: 20px;
783
+ font-family: 'Roboto';
784
+ color: ${THEME.token?.colorTextBase};
785
+ font-size: ${THEME.token?.fontSize}px;
786
+
787
+ &:focus-within {
788
+ --tw-shadow: 0 0 #0000;
789
+ --tw-shadow-colored: 0 0 #0000;
790
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
791
+ var(--tw-shadow);
792
+ }
793
+
794
+ &:first-child {
795
+ border-top-left-radius: ${THEME.token?.borderRadius}px;
796
+ border-bottom-left-radius: ${THEME.token?.borderRadius}px;
797
+ }
798
+
799
+ &:last-child {
800
+ border-top-right-radius: ${THEME.token?.borderRadius}px;
801
+ border-bottom-right-radius: ${THEME.token?.borderRadius}px;
802
+ }
803
+
804
+ &.antsomi-radio-button-wrapper-checked {
805
+ border-color: ${THEME.token?.accent1};
806
+ background-color: ${THEME.token?.colorTextActive};
807
+ color: ${THEME.token?.colorPrimary};
808
+ font-weight: 700;
809
+
810
+ &::before {
811
+ background-color: ${THEME.token?.accent1};
812
+ }
813
+ }
814
+ }
815
+
816
+ .antsomi-radio-wrapper {
817
+ font-family: 'Roboto';
818
+ font-size: ${THEME.token?.fontSize}px;
819
+ margin-right: 0;
820
+
821
+ .antsomi-radio-disabled {
822
+ &:hover {
823
+ ::after {
824
+ border-color: ${THEME.token?.gray5} !important;
825
+ }
826
+ }
827
+
828
+ .antsomi-radio-inner {
829
+ border-color: ${THEME.token?.gray5} !important;
830
+
831
+ &::after {
832
+ background-color: ${THEME.token?.colorTextDisabled} !important;
833
+ }
834
+ }
835
+ }
836
+
837
+ .antsomi-radio-inner {
838
+ display: flex;
839
+ justify-content: center;
840
+ align-items: center;
841
+ }
842
+
843
+ .antsomi-radio-checked .antsomi-radio-inner::after {
844
+ transform: scale(0.6);
845
+ }
846
+
847
+ .antsomi-radio-inner::after {
848
+ flex-shrink: 0;
849
+ position: unset !important;
850
+ transition: none !important;
851
+ transform: scale(0.6);
852
+ margin-block-start: 0px;
853
+ margin-inline-start: 0px;
854
+ }
855
+
856
+ .antsomi-radio {
857
+ .antsomi-radio-inner {
858
+ width: 16px;
859
+ height: 16px;
860
+ border-color: ${THEME.token?.colorPrimary};
861
+ border-width: 2px;
862
+ background-color: ${THEME.token?.bw0};
863
+
864
+ &::after {
865
+ background-color: ${THEME.token?.colorPrimary};
866
+ }
867
+ }
868
+ }
869
+
870
+ &:not(:last-child) {
871
+ margin-right: 30px;
872
+ }
873
+ }
874
+ }
875
+
876
+ /* Checkbox */
877
+ .antsomi-checkbox-wrapper {
878
+ .antsomi-checkbox-indeterminate {
879
+ .antsomi-checkbox-inner::after {
880
+ width: 10px !important;
881
+ height: 2px !important;
882
+ }
883
+ }
884
+
885
+ .antsomi-checkbox-indeterminate:not(.antsomi-checkbox-disabled) {
886
+ .antsomi-checkbox-inner {
887
+ background-color: ${THEME.token?.colorPrimary} !important;
888
+ &::after {
889
+ background-color: ${THEME.token?.bw0} !important;
890
+ }
891
+ }
892
+ }
893
+ }
894
+
895
+ /* Modal Close */
896
+ .antsomi-modal-root .antsomi-modal-wrap {
897
+ z-index: 3001;
898
+ }
899
+
900
+ .antsomi-modal .antsomi-modal-close {
901
+ width: unset !important;
902
+ height: unset !important;
903
+ top: 0px !important;
904
+ right: 0 !important;
905
+
906
+ .antsomi-modal-close-x {
907
+ padding: 20px;
908
+ }
909
+ }
910
+ .antsomi-modal-content {
911
+ .antsomi-modal-header {
912
+ .antsomi-modal-title {
913
+ font-weight: 500;
914
+ font-size: 16px;
915
+ line-height: 22px;
916
+ word-wrap: break-word;
917
+ }
918
+ }
919
+
920
+ .antsomi-modal-body {
921
+ p {
922
+ margin: 0;
923
+ }
924
+ .antsomi-modal-confirm-body-wrapper {
925
+ padding: 20px;
926
+
927
+ .antsomi-modal-confirm-body {
928
+ display: flex;
929
+
930
+ /* Style for icon */
931
+ > i {
932
+ color: ${THEME.token?.colorPrimary};
933
+ margin-right: 13px;
934
+ }
935
+ }
936
+
937
+ .antsomi-modal-confirm-body:has(i) ~ .antsomi-modal-confirm-btns {
938
+ padding-left: 30px;
939
+ }
940
+
941
+ .antsomi-modal-confirm-btns {
942
+ display: flex;
943
+ flex-direction: row-reverse;
944
+ justify-content: start;
945
+ gap: 8px;
946
+
947
+ .antsomi-btn {
948
+ margin: 0px;
949
+ }
950
+ }
951
+ }
952
+ }
953
+ .antsomi-modal-footer {
954
+ margin-top: 0px;
955
+ padding: 15px !important;
956
+ text-align: right;
957
+ background: transparent;
958
+ border-top: 1px solid #f0f0f0 !important;
959
+ border-radius: 0 0 2px 2px;
960
+ }
961
+ }
962
+ /* Override style for Modal confirm in Editor Tab */
963
+ .editor-tab__modal-confirm .antsomi-modal-content .antsomi-modal-body {
964
+ .antsomi-modal-confirm-body-wrapper {
965
+ padding: 0;
966
+
967
+ .antsomi-modal-confirm-body {
968
+ padding: 20px 20px 0 20px;
969
+ }
970
+ .antsomi-modal-confirm-btns {
971
+ padding: 12px 20px 20px;
972
+ border-top: 1px solid ${THEME.token?.bw4};
973
+ }
974
+ }
975
+ }
976
+
977
+ /* Message Notification */
978
+ .ant-message {
979
+ z-index: 999999 !important;
980
+ }
981
+
982
+ /* Collapse */
983
+ .antsomi-collapse-header {
984
+ font-size: 14px;
985
+ }
986
+
987
+ .antsomi-collapse {
988
+ &.antsomi-collapse-borderless {
989
+ border-bottom: 1px solid ${THEME.token?.gray5};
990
+ }
991
+
992
+ > .antsomi-collapse-item > .antsomi-collapse-header .antsomi-collapse-arrow {
993
+ transition: all 200ms;
994
+ }
995
+ }
996
+
997
+ /* Tabs */
998
+ .antsomi-tabs {
999
+ .antsomi-tabs-tab {
1000
+ font-weight: bold;
1001
+
1002
+ &:not(.antsomi-tabs-tab-active):hover {
1003
+ background-color: ${THEME.token?.blue};
1004
+ }
1005
+ }
1006
+ .antsomi-tabs-tab-active {
1007
+ z-index: 2;
1008
+ }
1009
+ .antsomi-tabs-nav::before {
1010
+ z-index: 1;
1011
+ }
1012
+ }
1013
+
1014
+ /* Form */
1015
+ .antsomi-form {
1016
+ .antsomi-form-item {
1017
+ .antsomi-form-item-label {
1018
+ > label.antsomi-form-item-required:not(.antsomi-form-item-required-mark-optional) {
1019
+ &::before {
1020
+ position: absolute;
1021
+ right: 0px;
1022
+ font-family: Roboto;
1023
+ }
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+
1029
+ /* Popover */
1030
+ .antsomi-popover {
1031
+ &.no-padding-content {
1032
+ .antsomi-popover-inner {
1033
+ padding: 0 !important;
1034
+ }
1035
+ }
1036
+ .antsomi-popover-inner {
1037
+ overflow: hidden;
1038
+ }
1039
+
1040
+ &.antsomi-emoji-popover .antsomi-popover-inner {
1041
+ padding: 15px;
1042
+ width: 530px;
1043
+ height: 275px;
1044
+ }
1045
+ }
1046
+
1047
+ /* Menu */
1048
+ .antsomi-menu {
1049
+ .antsomi-menu-submenu.antsomi-menu-submenu-selected {
1050
+ .antsomi-menu-item.antsomi-menu-item-selected {
1051
+ background-color: ${THEME.token?.blue};
1052
+ }
1053
+ }
1054
+ }
1055
+
1056
+ .antsomi-typography {
1057
+ &.antsomi-typography-danger,
1058
+ &.antsomi-typography-warning {
1059
+ font-size: 11px;
1060
+ }
1061
+ }
1062
+
1063
+ /* Tree */
1064
+ .antsomi-tree-list {
1065
+ .antsomi-tree-treenode {
1066
+ align-items: center !important;
1067
+
1068
+ .antsomi-tree-checkbox {
1069
+ margin: 3px 0px;
1070
+ }
1071
+ }
1072
+
1073
+ > .antsomi-tree-list-scrollbar-vertical {
1074
+ width: ${scrollBarSize} !important;
1075
+
1076
+ > .antsomi-tree-list-scrollbar-thumb {
1077
+ background: ${accent7} !important;
1078
+ }
1079
+ }
1080
+ }
1081
+
1082
+ /* Checkbox */
1083
+ .antsomi-checkbox,
1084
+ .antsomi-tree-checkbox {
1085
+ &.antsomi-checkbox-disabled,
1086
+ &.antsomi-tree-checkbox-disabled {
1087
+ .antsomi-checkbox-inner,
1088
+ .antsomi-tree-checkbox-inner {
1089
+ background-color: ${globalToken?.bw0};
1090
+ border-color: ${globalToken?.bw5} !important;
1091
+ }
1092
+
1093
+ &.antsomi-checkbox-checked,
1094
+ &.antsomi-tree-checkbox-checked {
1095
+ .antsomi-checkbox-inner,
1096
+ .antsomi-tree-checkbox-inner {
1097
+ background-color: ${globalToken?.bw5};
1098
+
1099
+ &::after {
1100
+ border-color: ${globalToken?.bw0};
1101
+ }
1102
+ }
1103
+ }
1104
+ }
1105
+ }
1106
+
1107
+ /* Tags */
1108
+ .antsomi-tag {
1109
+ padding-inline: 10px !important;
1110
+ align-items: center;
1111
+ display: flex !important;
1112
+ line-height: 1;
1113
+ min-height: 24px;
1114
+ overflow: hidden;
1115
+ text-overflow: ellipsis;
1116
+
1117
+ .antsomi-tag-close-icon {
1118
+ position: absolute;
1119
+ top: 50%;
1120
+ transform: translateY(-50%);
1121
+ right: 4px;
1122
+ opacity: 0;
1123
+ }
1124
+
1125
+ &:hover {
1126
+ .antsomi-tag-close-icon {
1127
+ opacity: 1;
1128
+ }
1129
+ }
1130
+ }
1131
+
1132
+ /* Notification */
1133
+ .antsomi-notification-notice {
1134
+ display: flex;
1135
+ max-width: 340px !important;
1136
+
1137
+ .antsomi-notification-notice-content {
1138
+ display: flex;
1139
+ flex: 1;
1140
+ }
1141
+
1142
+ .antsomi-notification-notice-with-icon {
1143
+ display: flex;
1144
+ flex-direction: column;
1145
+ justify-content: center;
1146
+ }
1147
+
1148
+ .antsomi-notification-notice-close {
1149
+ position: relative !important;
1150
+ top: 0 !important;
1151
+ inset-inline-end: 0 !important;
1152
+ }
1153
+ }
1131
1154
  ` }));