@antscorp/antsomi-ui 2.0.109 → 2.0.110

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