easemob-chat-uikit 1.0.0-beta

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 (132) hide show
  1. package/ChatUI.esm.js +33277 -0
  2. package/ChatUI.iife.js +33298 -0
  3. package/ChatUI.umd.js +33299 -0
  4. package/README.md +484 -0
  5. package/button/style/mixin.scss +224 -0
  6. package/button/style/style.scss +28 -0
  7. package/chat.png +0 -0
  8. package/manifest.json +25 -0
  9. package/package.json +29 -0
  10. package/robots.txt +3 -0
  11. package/style/color/color.scss +75 -0
  12. package/style/core/base.scss +10 -0
  13. package/style/core/index.scss +3 -0
  14. package/style/core/motion/fade.scss +35 -0
  15. package/style/core/motion/zoom.scss +179 -0
  16. package/style/core/motion.scss +17 -0
  17. package/style/index.scss +3 -0
  18. package/style/mixin/index.scss +1 -0
  19. package/style/mixin/motion.scss +31 -0
  20. package/style/themes/dark.scss +93 -0
  21. package/style/themes/default.scss +286 -0
  22. package/style.css +16102 -0
  23. package/style.scss +2 -0
  24. package/types/ChatUI.d.ts +2 -0
  25. package/types/module/audioMessage/AudioMessage.d.ts +12 -0
  26. package/types/module/audioMessage/AudioPlayer.d.ts +12 -0
  27. package/types/module/audioMessage/index.d.ts +3 -0
  28. package/types/module/baseMessage/BaseMessage.d.ts +18 -0
  29. package/types/module/baseMessage/index.d.ts +3 -0
  30. package/types/module/button/Button.d.ts +19 -0
  31. package/types/module/button/index.d.ts +2 -0
  32. package/types/module/chat/Chat.d.ts +25 -0
  33. package/types/module/chat/MessageList.d.ts +10 -0
  34. package/types/module/chat/index.d.ts +3 -0
  35. package/types/module/contactList/ContactGroup.d.ts +12 -0
  36. package/types/module/contactList/ContactItem.d.ts +15 -0
  37. package/types/module/contactList/ContactList.d.ts +22 -0
  38. package/types/module/contactList/index.d.ts +3 -0
  39. package/types/module/conversation/ConversationItem.d.ts +17 -0
  40. package/types/module/conversation/ConversationList.d.ts +34 -0
  41. package/types/module/conversation/index.d.ts +3 -0
  42. package/types/module/empty/Empty.d.ts +9 -0
  43. package/types/module/empty/index.d.ts +3 -0
  44. package/types/module/fileMessage/FileMessage.d.ts +13 -0
  45. package/types/module/fileMessage/index.d.ts +2 -0
  46. package/types/module/header/Header.d.ts +22 -0
  47. package/types/module/header/index.d.ts +3 -0
  48. package/types/module/hooks/chat.d.ts +2 -0
  49. package/types/module/hooks/dom.d.ts +9 -0
  50. package/types/module/hooks/useAddress.d.ts +14 -0
  51. package/types/module/hooks/useClient.d.ts +2 -0
  52. package/types/module/hooks/useConversation.d.ts +3 -0
  53. package/types/module/hooks/useHistoryMsg.d.ts +6 -0
  54. package/types/module/imageMessage/ImageMessage.d.ts +18 -0
  55. package/types/module/imageMessage/index.d.ts +4 -0
  56. package/types/module/index.d.ts +22 -0
  57. package/types/module/messageEditor/MessageEditor.d.ts +17 -0
  58. package/types/module/messageEditor/emoji/Emoji.d.ts +14 -0
  59. package/types/module/messageEditor/emoji/emojiConfig.d.ts +54 -0
  60. package/types/module/messageEditor/emoji/index.d.ts +3 -0
  61. package/types/module/messageEditor/index.d.ts +3 -0
  62. package/types/module/messageEditor/moreAction/MoreAction.d.ts +13 -0
  63. package/types/module/messageEditor/moreAction/index.d.ts +2 -0
  64. package/types/module/messageEditor/recorder/Recorder.d.ts +11 -0
  65. package/types/module/messageEditor/recorder/index.d.ts +2 -0
  66. package/types/module/messageEditor/recorder/recorderFun.d.ts +9 -0
  67. package/types/module/messageEditor/textarea/Textarea.d.ts +9 -0
  68. package/types/module/messageEditor/textarea/index.d.ts +2 -0
  69. package/types/module/messageEditor/textarea/util.d.ts +1 -0
  70. package/types/module/messageStatus/MessageStatus.d.ts +9 -0
  71. package/types/module/noticeMessage/NoticeMessage.d.ts +13 -0
  72. package/types/module/noticeMessage/index.d.ts +3 -0
  73. package/types/module/react-app-env.d.ts +62 -0
  74. package/types/module/store/AddressStore.d.ts +13 -0
  75. package/types/module/store/ConversationStore.d.ts +35 -0
  76. package/types/module/store/MessageStore.d.ts +28 -0
  77. package/types/module/store/Provider.d.ts +22 -0
  78. package/types/module/store/agoraChatConfig.d.ts +3 -0
  79. package/types/module/store/index.d.ts +24 -0
  80. package/types/module/store/rootContext.d.ts +15 -0
  81. package/types/module/textMessage/TextMessage.d.ts +28 -0
  82. package/types/module/textMessage/index.d.ts +2 -0
  83. package/types/module/types/messageType.d.ts +164 -0
  84. package/types/module/utils/download.d.ts +2 -0
  85. package/types/module/utils/index.d.ts +6 -0
  86. package/types/module/videoMessage/VideoMessage.d.ts +10 -0
  87. package/types/module/videoMessage/index.d.ts +3 -0
  88. package/types/src/_utils/motion.d.ts +2 -0
  89. package/types/src/_utils/placements.d.ts +17 -0
  90. package/types/src/_utils/reactNode.d.ts +8 -0
  91. package/types/src/_utils/ref.d.ts +3 -0
  92. package/types/src/_utils/styleChecker.d.ts +2 -0
  93. package/types/src/_utils/type.d.ts +1 -0
  94. package/types/src/_utils/warning.d.ts +5 -0
  95. package/types/src/avatar/Avatar.d.ts +20 -0
  96. package/types/src/avatar/Group.d.ts +11 -0
  97. package/types/src/avatar/index.d.ts +2 -0
  98. package/types/src/badge/Badge.d.ts +21 -0
  99. package/types/src/badge/ScrollNumber.d.ts +18 -0
  100. package/types/src/badge/SingleNumber.d.ts +13 -0
  101. package/types/src/badge/index.d.ts +2 -0
  102. package/types/src/button/Button.d.ts +19 -0
  103. package/types/src/button/index.d.ts +2 -0
  104. package/types/src/checkbox/Checkbox.d.ts +11 -0
  105. package/types/src/checkbox/index.d.ts +2 -0
  106. package/types/src/config/index.d.ts +8 -0
  107. package/types/src/dropdown/Dropdown.d.ts +9 -0
  108. package/types/src/dropdown/MenuItem.d.ts +9 -0
  109. package/types/src/dropdown/MenuWrap.d.ts +9 -0
  110. package/types/src/dropdown/index.d.ts +2 -0
  111. package/types/src/entry.d.ts +13 -0
  112. package/types/src/icon/Icon.d.ts +14 -0
  113. package/types/src/icon/const.d.ts +27 -0
  114. package/types/src/icon/index.d.ts +3 -0
  115. package/types/src/input/Input.d.ts +2 -0
  116. package/types/src/input/Search.d.ts +11 -0
  117. package/types/src/list/List.d.ts +23 -0
  118. package/types/src/list/index.d.ts +2 -0
  119. package/types/src/modal/Content.d.ts +36 -0
  120. package/types/src/modal/Dialog.d.ts +43 -0
  121. package/types/src/modal/Mast.d.ts +9 -0
  122. package/types/src/modal/MemoChildren.d.ts +7 -0
  123. package/types/src/modal/Modal.d.ts +57 -0
  124. package/types/src/modal/index.d.ts +2 -0
  125. package/types/src/modal/util.d.ts +5 -0
  126. package/types/src/popover/Popover.d.ts +7 -0
  127. package/types/src/popover/index.d.ts +2 -0
  128. package/types/src/svg.d.ts +6 -0
  129. package/types/src/switch/Switch.d.ts +9 -0
  130. package/types/src/switch/index.d.ts +2 -0
  131. package/types/src/tooltip/Tooltip.d.ts +49 -0
  132. package/uikit.png +0 -0
@@ -0,0 +1,28 @@
1
+ @import './mixin.scss';
2
+
3
+ $btn-prefix-cls: #{$cui-prefix}-button;
4
+
5
+ .#{$btn-prefix-cls} {
6
+ @include btn();
7
+ @include btn-default();
8
+
9
+ &-primary {
10
+ @include btn-primary()
11
+ }
12
+
13
+ &-ghost {
14
+ @include btn-ghost();
15
+ }
16
+
17
+ &-text {
18
+ @include btn-text();
19
+ }
20
+
21
+ &-round {
22
+ @include btn-round($btn-prefix-cls);
23
+ }
24
+
25
+ &-circle {
26
+ @include btn-circle($btn-prefix-cls);
27
+ }
28
+ }
package/chat.png ADDED
Binary file
package/manifest.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "short_name": "React App",
3
+ "name": "Create React App Sample",
4
+ "icons": [
5
+ {
6
+ "src": "favicon.ico",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ },
10
+ {
11
+ "src": "logo192.png",
12
+ "type": "image/png",
13
+ "sizes": "192x192"
14
+ },
15
+ {
16
+ "src": "logo512.png",
17
+ "type": "image/png",
18
+ "sizes": "512x512"
19
+ }
20
+ ],
21
+ "start_url": ".",
22
+ "display": "standalone",
23
+ "theme_color": "#000000",
24
+ "background_color": "#ffffff"
25
+ }
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "easemob-chat-uikit",
3
+ "version": "1.0.0-beta",
4
+ "description": "easemob uikit",
5
+ "main": "ChatUI.umd.js",
6
+ "type": "commonjs",
7
+ "module": "ChatUI.esm.js",
8
+ "types": "types/ChatUI.d.ts",
9
+ "scripts": {},
10
+ "formats": [
11
+ "es",
12
+ "umd",
13
+ "iife"
14
+ ],
15
+ "keywords": [
16
+ "easemob",
17
+ "chat",
18
+ "UIkit",
19
+ "IM"
20
+ ],
21
+ "author": "",
22
+ "license": "ISC",
23
+ "devDependencies": {},
24
+ "dependencies": {},
25
+ "peerDependencies": {
26
+ "react": ">=16.0.0",
27
+ "react-dom": ">=16.0.0"
28
+ }
29
+ }
package/robots.txt ADDED
@@ -0,0 +1,3 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Disallow:
@@ -0,0 +1,75 @@
1
+ @function adjusted-color($base-color, $percentage) {
2
+ $hue: hue($base-color);
3
+ $saturation: saturation($base-color);
4
+ $lightness: lightness($base-color) + $percentage;
5
+ $alpha: alpha($base-color);
6
+
7
+ @return hsla($hue, $saturation, $lightness, $alpha);
8
+ }
9
+
10
+ $blue-base: hsla(203, 100%, 60%, 1);
11
+ $blue-1: adjusted-color($blue-base, -50%);
12
+ $blue-2: adjusted-color($blue-base, -40%);
13
+ $blue-3: adjusted-color($blue-base, -30%);
14
+ $blue-4: adjusted-color($blue-base, -20%);
15
+ $blue-5: adjusted-color($blue-base, -10%);
16
+ $blue-6: $blue-base;
17
+ $blue-7: adjusted-color($blue-base, 10%);
18
+ $blue-8: adjusted-color($blue-base, 20%);
19
+ $blue-9: adjusted-color($blue-base, 30%);
20
+ $blue-95: adjusted-color($blue-base, 35%);
21
+ $blue-98: adjusted-color($blue-base, 38%);
22
+ $blue-10: adjusted-color($blue-base, 40%);
23
+
24
+
25
+ $green-base: hsla(155, 100%, 60%, 1);
26
+ $green-1: adjusted-color($green-base, -50);
27
+ $green-2: adjusted-color($green-base, -40);
28
+ $green-3: adjusted-color($green-base, -30);
29
+ $green-4: adjusted-color($green-base, -20);
30
+ $green-5: adjusted-color($green-base, -10);
31
+ $green-6: $green-base;
32
+ $green-5: adjusted-color($green-base, 10);
33
+ $green-5: adjusted-color($green-base, 20);
34
+ $green-5: adjusted-color($green-base, 30);
35
+ $green-5: adjusted-color($green-base, 40);
36
+
37
+
38
+ $red-base: hsla(350, 100%, 60%, 1);
39
+ $red-1: adjusted-color($red-base, -50);
40
+ $red-2: adjusted-color($red-base, -40);
41
+ $red-3: adjusted-color($red-base, -30);
42
+ $red-4: adjusted-color($red-base, -20);
43
+ $red-5: adjusted-color($red-base, -10);
44
+ $red-6: $red-base;
45
+ $red-7: adjusted-color($red-base, 10);
46
+ $red-8: adjusted-color($red-base, 20);
47
+ $red-9: adjusted-color($red-base, 30);
48
+ $red-10: adjusted-color($red-base, 40);
49
+
50
+
51
+ $gray-base: hsla(203, 8%, 60%, 1);
52
+ $gray-1: adjusted-color($gray-base, -50);
53
+ $gray-2: adjusted-color($gray-base, -40);
54
+ $gray-3: adjusted-color($gray-base, -30);
55
+ $gray-4: adjusted-color($gray-base, -20);
56
+ $gray-5: adjusted-color($gray-base, -10);
57
+ $gray-6: $gray-base;
58
+ $gray-7: adjusted-color($gray-base, 10);
59
+ $gray-8: adjusted-color($gray-base, 20);
60
+ $gray-9: adjusted-color($gray-base, 30);
61
+ $gray-95: adjusted-color($gray-base, 35);
62
+ $gray-98: adjusted-color($gray-base, 38);
63
+ $gray-10: adjusted-color($gray-base, 40);
64
+
65
+ $special-base: hsla(220, 36%, 60%, 1);
66
+ $special-1: adjusted-color($special-base, -50);
67
+ $special-2: adjusted-color($special-base, -40);
68
+ $special-3: adjusted-color($special-base, -30);
69
+ $special-4: adjusted-color($special-base, -20);
70
+ $special-5: adjusted-color($special-base, -10);
71
+ $special-6: $special-base;
72
+ $special-7: adjusted-color($special-base, 10);
73
+ $special-8: adjusted-color($special-base, -20);
74
+ $special-9: adjusted-color($special-base, -30);
75
+ $special-10: adjusted-color($special-base, -40);
@@ -0,0 +1,10 @@
1
+ // Config global less under cui
2
+ [class^=#{$cui-prefix}-],
3
+ [class*=' #{$cui-prefix}-'] {
4
+ // remove the clear button of a text input control in IE10+
5
+ &::-ms-clear,
6
+ input::-ms-clear,
7
+ input::-ms-reveal {
8
+ display: none;
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ @import '../mixin/index';
2
+ @import 'base';
3
+ @import 'motion';
@@ -0,0 +1,35 @@
1
+ @mixin fade-motion($className, $keyframeName) {
2
+ $name: #{$cui-prefix}-#{$className};
3
+ @include make-motion($name, $keyframeName);
4
+ .#{$name}-enter,
5
+ .#{$name}-appear {
6
+ opacity: 0;
7
+ animation-timing-function: linear;
8
+ }
9
+ .#{$name}-leave {
10
+ animation-timing-function: linear;
11
+ }
12
+ }
13
+
14
+ @include fade-motion(fade, cuiFade);
15
+
16
+ @keyframes cuiFadeIn {
17
+ 0% {
18
+ opacity: 0;
19
+ }
20
+
21
+ 100% {
22
+ opacity: 1;
23
+ }
24
+ }
25
+
26
+ @keyframes cuiFadeOut {
27
+ 0% {
28
+ opacity: 1;
29
+ }
30
+
31
+ 100% {
32
+ opacity: 0;
33
+ }
34
+ }
35
+
@@ -0,0 +1,179 @@
1
+ @mixin zoom-motion($className, $keyframeName, $duration: $animation-duration-base) {
2
+ $name: #{$cui-prefix}-#{$className};
3
+ @include make-motion($name, $keyframeName, $duration);
4
+ .#{$name}-enter,
5
+ .#{$name}-appear {
6
+ transform: scale(0);
7
+ opacity: 0;
8
+ animation-timing-function: $ease-out-circ;
9
+ &-prepare {
10
+ transform: none;
11
+ }
12
+ }
13
+ .#{$name}-leave {
14
+ animation-timing-function: $ease-in-out-circ;
15
+ }
16
+ }
17
+
18
+ // For Modal, Select choosen item
19
+ @include zoom-motion(zoom, cuiZoom);
20
+ // For Popover, Popconfirm, Dropdown
21
+ @include zoom-motion(zoom-big, cuiZoomBig);
22
+ // For Tooltip
23
+ @include zoom-motion(zoom-big-fast, cuiZoomBig, $animation-duration-fast);
24
+
25
+ @include zoom-motion(zoom-up, cuiZoomUp);
26
+ @include zoom-motion(zoom-down, cuiZoomDown);
27
+ @include zoom-motion(zoom-left, cuiZoomLeft);
28
+ @include zoom-motion(zoom-right, cuiZoomRight);
29
+
30
+ @keyframes cuiZoomIn {
31
+ 0% {
32
+ transform: scale(0.2);
33
+ opacity: 0;
34
+ }
35
+
36
+ 100% {
37
+ transform: scale(1);
38
+ opacity: 1;
39
+ }
40
+ }
41
+
42
+ @keyframes cuiZoomOut {
43
+ 0% {
44
+ transform: scale(1);
45
+ }
46
+
47
+ 100% {
48
+ transform: scale(0.2);
49
+ opacity: 0;
50
+ }
51
+ }
52
+
53
+ @keyframes cuiZoomBigIn {
54
+ 0% {
55
+ transform: scale(0.8);
56
+ opacity: 0;
57
+ }
58
+
59
+ 100% {
60
+ transform: scale(1);
61
+ opacity: 1;
62
+ }
63
+ }
64
+
65
+ @keyframes cuiZoomBigOut {
66
+ 0% {
67
+ transform: scale(1);
68
+ }
69
+
70
+ 100% {
71
+ transform: scale(0.8);
72
+ opacity: 0;
73
+ }
74
+ }
75
+
76
+ @keyframes cuiZoomUpIn {
77
+ 0% {
78
+ transform: scale(0.8);
79
+ transform-origin: 50% 0%;
80
+ opacity: 0;
81
+ }
82
+
83
+ 100% {
84
+ transform: scale(1);
85
+ transform-origin: 50% 0%;
86
+ }
87
+ }
88
+
89
+ @keyframes cuiZoomUpOut {
90
+ 0% {
91
+ transform: scale(1);
92
+ transform-origin: 50% 0%;
93
+ }
94
+
95
+ 100% {
96
+ transform: scale(0.8);
97
+ transform-origin: 50% 0%;
98
+ opacity: 0;
99
+ }
100
+ }
101
+
102
+ @keyframes cuiZoomLeftIn {
103
+ 0% {
104
+ transform: scale(0.8);
105
+ transform-origin: 0% 50%;
106
+ opacity: 0;
107
+ }
108
+
109
+ 100% {
110
+ transform: scale(1);
111
+ transform-origin: 0% 50%;
112
+ }
113
+ }
114
+
115
+ @keyframes cuiZoomLeftOut {
116
+ 0% {
117
+ transform: scale(1);
118
+ transform-origin: 0% 50%;
119
+ }
120
+
121
+ 100% {
122
+ transform: scale(0.8);
123
+ transform-origin: 0% 50%;
124
+ opacity: 0;
125
+ }
126
+ }
127
+
128
+ @keyframes cuiZoomRightIn {
129
+ 0% {
130
+ transform: scale(0.8);
131
+ transform-origin: 100% 50%;
132
+ opacity: 0;
133
+ }
134
+
135
+ 100% {
136
+ transform: scale(1);
137
+ transform-origin: 100% 50%;
138
+ }
139
+ }
140
+
141
+ @keyframes cuiZoomRightOut {
142
+ 0% {
143
+ transform: scale(1);
144
+ transform-origin: 100% 50%;
145
+ }
146
+
147
+ 100% {
148
+ transform: scale(0.8);
149
+ transform-origin: 100% 50%;
150
+ opacity: 0;
151
+ }
152
+ }
153
+
154
+ @keyframes cuiZoomDownIn {
155
+ 0% {
156
+ transform: scale(0.8);
157
+ transform-origin: 50% 100%;
158
+ opacity: 0;
159
+ }
160
+
161
+ 100% {
162
+ transform: scale(1);
163
+ transform-origin: 50% 100%;
164
+ }
165
+ }
166
+
167
+ @keyframes cuiZoomDownOut {
168
+ 0% {
169
+ transform: scale(1);
170
+ transform-origin: 50% 100%;
171
+ }
172
+
173
+ 100% {
174
+ transform: scale(0.8);
175
+ transform-origin: 50% 100%;
176
+ opacity: 0;
177
+ }
178
+ }
179
+
@@ -0,0 +1,17 @@
1
+ @import 'motion/fade';
2
+ @import 'motion/zoom';
3
+ // For common/openAnimation
4
+ .ant-motion-collapse-legacy {
5
+ overflow: hidden;
6
+
7
+ &-active {
8
+ transition: height $animation-duration-base $ease-in-out,
9
+ opacity $animation-duration-base $ease-in-out !important;
10
+ }
11
+ }
12
+
13
+ .ant-motion-collapse {
14
+ overflow: hidden;
15
+ transition: height $animation-duration-base $ease-in-out,
16
+ opacity $animation-duration-base $ease-in-out !important;
17
+ }
@@ -0,0 +1,3 @@
1
+ @import './themes/default.scss';
2
+ // @import './themes/dark.scss';
3
+ @import './core/index';
@@ -0,0 +1 @@
1
+ @import 'motion';
@@ -0,0 +1,31 @@
1
+ @mixin motion-common($duration: $animation-duration-base) {
2
+ animation-duration: $duration;
3
+ animation-fill-mode: both;
4
+ }
5
+
6
+ @mixin motion-common-leave($duration: $animation-duration-base) {
7
+ animation-duration: $duration;
8
+ animation-fill-mode: both;
9
+ }
10
+
11
+ @mixin make-motion($className, $keyframeName, $duration: $animation-duration-base) {
12
+ .#{$className}-enter,
13
+ .#{$className}-appear {
14
+ @include motion-common($duration);
15
+ animation-play-state: paused;
16
+ }
17
+ .#{$className}-leave {
18
+ @include motion-common-leave($duration);
19
+ animation-play-state: paused;
20
+ }
21
+ .#{$className}-enter.#{$className}-enter-active,
22
+ .#{$className}-appear.#{$className}-appear-active {
23
+ animation-name: #{$keyframeName}In;
24
+ animation-play-state: running;
25
+ }
26
+ .#{$className}-leave.#{$className}-leave-active {
27
+ animation-name: #{$keyframeName}Out;
28
+ animation-play-state: running;
29
+ pointer-events: none;
30
+ }
31
+ }
@@ -0,0 +1,93 @@
1
+ @import '../color/color.scss';
2
+
3
+ $theme: dark;
4
+ // The prefix to use on all css classes from Chat UI.
5
+ $cui-prefix: cui;
6
+
7
+ $white: #fff;
8
+ $black: #000;
9
+ // Base background color for most components
10
+ $component-background: #fff;
11
+
12
+ // height rules
13
+ $height-base: 36px;
14
+ $height-lg: 48px;
15
+ $height-sm: 28px;
16
+
17
+ // vertical margins
18
+ $margin-lg: 24px; // containers
19
+ $margin-md: 16px; // small containers and buttons
20
+ $margin-sm: 12px; // Form controls and items
21
+ $margin-xs: 8px; // small items
22
+ $margin-xss: 4px; // more small
23
+
24
+ // vertical paddings
25
+ $padding-lg: 24px; // containers
26
+ $padding-md: 20px; // small containers and buttons
27
+ $padding-sm: 16px; // Form controls and items
28
+ $padding-s: 12px; // small items
29
+ $padding-xs: 8px; // small items
30
+ $padding-xss: 4px; // more small
31
+ // font
32
+ $font-size-base: 14px;
33
+ $font-size-lg: $font-size-base + 2px;
34
+ $font-size-sm: 12px;
35
+
36
+ $line-height-base: 1.5715;
37
+
38
+ $text-color: fade($black, 85%);
39
+
40
+ // -------- Colors -----------
41
+ // >>> Primary
42
+ $primary-color: $blue-6;
43
+ // $primary-color-hover: color(~`colorPalette('@{primary-color}', 5) `);
44
+ // $primary-color-active: color(~`colorPalette('@{primary-color}', 7) `);
45
+ // $primary-color-outline: fade(@primary-color, @outline-fade);
46
+
47
+
48
+
49
+ // Animation
50
+ $ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
51
+ $ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
52
+ $ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
53
+ $ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
54
+ $ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
55
+ $ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
56
+ $ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
57
+ $ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
58
+ $ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
59
+ $ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
60
+ $ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
61
+ $ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
62
+ $ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
63
+ $ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
64
+
65
+ /** Border */
66
+ $border-width-base: 1px; // width of the border for a component
67
+ $border-style-base: solid; // style of a components border
68
+ $border-radius-base: 2px;
69
+ $border-color-base: hsv(0, 0, 85%); // base border outline a component
70
+ $border-color-split: hsv(0, 0, 94%); // split border inside a component
71
+ $border-color-inverse: $white;
72
+
73
+ $background-color-light: hsv(0, 0, 98%); // background of header and selected item
74
+ $background-color-base: hsv(0, 0, 96%); // Default grey background color
75
+
76
+ // Disabled states
77
+ $disabled-color: $gray-7;
78
+ $disabled-bg: $gray-95;
79
+ $disabled-active-bg: $gray-95;
80
+ $disabled-color-dark: fade(#fff, 35%);
81
+
82
+ /** Button */
83
+ $btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
84
+ $btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
85
+ $btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
86
+ $btn-default-bg: transparent;
87
+ $btn-default-ghost-color: $text-color;
88
+ $btn-default-ghost-border: fade($white, 25%);
89
+ $btn-text-hover-bg: rgba(255, 255, 255, 0.03);
90
+
91
+ $btn-default-color: $gray-98;
92
+ $btn-default-bg: $black;
93
+ $btn-default-border: $gray-4;