@antscorp/antsomi-ui 2.0.120 → 2.0.121

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