@alifd/chat 0.3.0-beta.8 → 0.3.0

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 (85) hide show
  1. package/es/button/index.js +1 -1
  2. package/es/button/main.scss +1 -1
  3. package/es/button/style.d.ts +1 -1
  4. package/es/button/style.js +1 -1
  5. package/es/core/variables.scss +33 -11
  6. package/es/date-picker/style.d.ts +1 -1
  7. package/es/date-picker/style.js +1 -1
  8. package/es/drawer/index.d.ts +60 -0
  9. package/es/drawer/index.js +27 -0
  10. package/es/drawer/main.scss +22 -0
  11. package/es/drawer/style.d.ts +2 -0
  12. package/es/drawer/style.js +2 -0
  13. package/es/drawer/types.d.ts +10 -0
  14. package/es/drawer/types.js +1 -0
  15. package/es/float-button/hooks/useNestleEdge.js +1 -0
  16. package/es/float-button/index.d.ts +1 -0
  17. package/es/float-button/index.js +2 -1
  18. package/es/float-button/main.scss +23 -0
  19. package/es/float-button/style.d.ts +2 -2
  20. package/es/float-button/style.js +2 -2
  21. package/es/float-button/types.d.ts +23 -0
  22. package/es/float-button/util.js +2 -0
  23. package/es/float-button/view/addon-after.d.ts +4 -0
  24. package/es/float-button/view/addon-after.js +10 -0
  25. package/es/float-button/view/backtop.js +3 -1
  26. package/es/html-render/index.js +2 -2
  27. package/es/html-render/main.scss +16 -11
  28. package/es/index.d.ts +1 -0
  29. package/es/index.js +2 -1
  30. package/es/input/style.d.ts +1 -1
  31. package/es/input/style.js +1 -1
  32. package/es/markdown/index.js +7 -2
  33. package/es/markdown/main.scss +103 -108
  34. package/es/person-picker/style.d.ts +1 -1
  35. package/es/person-picker/style.js +1 -1
  36. package/es/tab/style.d.ts +1 -1
  37. package/es/tab/style.js +1 -1
  38. package/es/tag/style.d.ts +1 -1
  39. package/es/tag/style.js +1 -1
  40. package/es/time-picker/style.d.ts +1 -1
  41. package/es/time-picker/style.js +1 -1
  42. package/lib/button/index.js +1 -1
  43. package/lib/button/main.scss +1 -1
  44. package/lib/button/style.d.ts +1 -1
  45. package/lib/button/style.js +1 -1
  46. package/lib/core/variables.scss +33 -11
  47. package/lib/date-picker/style.d.ts +1 -1
  48. package/lib/date-picker/style.js +1 -1
  49. package/lib/drawer/index.d.ts +60 -0
  50. package/lib/drawer/index.js +29 -0
  51. package/lib/drawer/main.scss +22 -0
  52. package/lib/drawer/style.d.ts +2 -0
  53. package/lib/drawer/style.js +4 -0
  54. package/lib/drawer/types.d.ts +10 -0
  55. package/lib/drawer/types.js +2 -0
  56. package/lib/float-button/hooks/useNestleEdge.js +1 -0
  57. package/lib/float-button/index.d.ts +1 -0
  58. package/lib/float-button/index.js +2 -1
  59. package/lib/float-button/main.scss +23 -0
  60. package/lib/float-button/style.d.ts +2 -2
  61. package/lib/float-button/style.js +2 -2
  62. package/lib/float-button/types.d.ts +23 -0
  63. package/lib/float-button/util.js +2 -0
  64. package/lib/float-button/view/addon-after.d.ts +4 -0
  65. package/lib/float-button/view/addon-after.js +13 -0
  66. package/lib/float-button/view/backtop.js +3 -1
  67. package/lib/html-render/index.js +1 -1
  68. package/lib/html-render/main.scss +16 -11
  69. package/lib/index.d.ts +1 -0
  70. package/lib/index.js +4 -2
  71. package/lib/input/style.d.ts +1 -1
  72. package/lib/input/style.js +1 -1
  73. package/lib/markdown/index.js +6 -1
  74. package/lib/markdown/main.scss +103 -108
  75. package/lib/person-picker/style.d.ts +1 -1
  76. package/lib/person-picker/style.js +1 -1
  77. package/lib/tab/style.d.ts +1 -1
  78. package/lib/tab/style.js +1 -1
  79. package/lib/tag/style.d.ts +1 -1
  80. package/lib/tag/style.js +1 -1
  81. package/lib/time-picker/style.d.ts +1 -1
  82. package/lib/time-picker/style.js +1 -1
  83. package/package.json +13 -1
  84. package/es/html-render/index.less +0 -192
  85. package/lib/html-render/index.less +0 -192
@@ -257,3 +257,26 @@ export interface FloatButtonDrawerProps extends FloatButtonProps {
257
257
  beforeClose?: () => void;
258
258
  afterClose?: () => void;
259
259
  }
260
+ /**
261
+ * 底部额外区域 ref 对象
262
+ * @api
263
+ * @order 4
264
+ */
265
+ export interface AddonAfterRef {
266
+ }
267
+ /**
268
+ * 底部额外区域
269
+ * @api FloatButton.AddonAfter
270
+ * @order 3
271
+ */
272
+ export interface AddonAfterProps extends CommonProps {
273
+ /**
274
+ * 内容
275
+ */
276
+ children: React.ReactNode;
277
+ /**
278
+ * 是否hover trigger 元素才出现
279
+ * @defaultValue 10
280
+ */
281
+ showWithHover?: boolean;
282
+ }
@@ -10,6 +10,7 @@ function getScreenSize() {
10
10
  height: document.documentElement.clientHeight,
11
11
  };
12
12
  }
13
+ // 返回距离最近的边:top, right, left, bottom
13
14
  function getNearlyEdge(el, interactiveEdges, rect = el.getBoundingClientRect()) {
14
15
  if (!(interactiveEdges === null || interactiveEdges === void 0 ? void 0 : interactiveEdges.length)) {
15
16
  return [];
@@ -51,6 +52,7 @@ function isInScreen(dom) {
51
52
  const bottom = height - rect.top - rect.height;
52
53
  return [left, top, right, bottom].every(n => n >= 0);
53
54
  }
55
+ // 返回当前位置在安全区域内的安全位置
54
56
  function adjustBySafeAreaMargin(position, rect, safeAreaMargin) {
55
57
  if (!position || !rect || !safeAreaMargin) {
56
58
  return undefined;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { AddonAfterRef, AddonAfterProps } from '../types';
3
+ declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<AddonAfterProps & React.RefAttributes<AddonAfterRef>, "key" | keyof AddonAfterProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, AddonAfterRef, {}>;
4
+ export default _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importStar(require("react"));
5
+ const next_1 = require("@alifd/next");
6
+ const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
+ const utils_1 = require("../../utils");
8
+ const AddonAfter = (0, react_1.forwardRef)(({ showWithHover = false, children }, ref) => {
9
+ // 页面没滚动的时候默认隐藏,如果要显示会由onScroll触发
10
+ const cls = `${utils_1.PREFIX_DEFAULT}float-button-addon-after`;
11
+ return (react_1.default.createElement("button", { className: (0, classnames_1.default)(cls, { [`${cls}--show-with-hover`]: showWithHover }) }, children));
12
+ });
13
+ exports.default = next_1.ConfigProvider.config(AddonAfter);
@@ -15,7 +15,8 @@ function getScroller(scroller) {
15
15
  return scroller;
16
16
  }
17
17
  const Backtop = (0, react_1.forwardRef)(({ autoHide = true, scroller, offset = 10, smooth = true, children }, ref) => {
18
- const [visible, setVisible] = (0, react_1.useState)(true);
18
+ // 页面没滚动的时候默认隐藏,如果要显示会由onScroll触发
19
+ const [visible, setVisible] = (0, react_1.useState)(false);
19
20
  const cls = `${utils_1.PREFIX_DEFAULT}float-button-backtop`;
20
21
  const visibleRef = (0, react_1.useRef)(visible);
21
22
  visibleRef.current = visible;
@@ -58,6 +59,7 @@ const Backtop = (0, react_1.forwardRef)(({ autoHide = true, scroller, offset = 1
58
59
  if (!target) {
59
60
  return;
60
61
  }
62
+ // 滚动时候的显隐控制
61
63
  const onScroll = (0, utils_1.debounce)(() => {
62
64
  if (isAtTop(target)) {
63
65
  visibleRef.current && setVisible(false);
@@ -128,7 +128,7 @@ const HTMLRenderer = (0, react_1.memo)(function HTMLRenderer({ className, childr
128
128
  const element = (0, react_1.useMemo)(() => {
129
129
  return (0, html_react_parser_1.default)((0, sanitize_html_1.default)(children || '', sanitizeHtmlOptions), parserOptions);
130
130
  }, [children]);
131
- return (react_1.default.createElement("div", { className: (0, classnames_1.default)('box', className, {
131
+ return (react_1.default.createElement("div", { className: (0, classnames_1.default)(`${utils_1.PREFIX_DEFAULT}html`, className, {
132
132
  'loose': loose,
133
133
  }) }, imagePreview ?
134
134
  react_1.default.createElement(react_photo_view_1.PhotoProvider, null, element)
@@ -1,8 +1,11 @@
1
- .box {
1
+ @import "../core/variables.scss";
2
+
3
+ .#{$prefix}html {
2
4
  font-size: 14px;
3
5
  // color: hsla(230, 10%, 11%, 0.9);
4
6
  word-break: break-word;
5
7
  font-family: inherit;
8
+ color: $color-text1-4;
6
9
 
7
10
  &.loose {
8
11
  font-size: 16px;
@@ -26,7 +29,7 @@
26
29
 
27
30
  img {
28
31
  body.global-dark & {
29
- background: #fff;
32
+ background: $color-bg-1;
30
33
  }
31
34
  body.global-dark-dim & {
32
35
  filter: hue-rotate(180deg) brightness(.75) invert(1);
@@ -48,6 +51,7 @@
48
51
 
49
52
  h1, h2, h3, h4, h5, h6 {
50
53
  font-weight: bold;
54
+ color: $color-text1-4;
51
55
  }
52
56
 
53
57
  h1 {
@@ -108,7 +112,7 @@
108
112
  padding: .12em .25em;
109
113
  border-radius: 3px;
110
114
  font-size: 86%;
111
- background: rgba(27, 31, 35, .05);
115
+ background: $color-fill1-2;
112
116
  }
113
117
 
114
118
  pre {
@@ -127,15 +131,16 @@
127
131
  font-size: inherit;
128
132
  background: none;
129
133
  border-radius: 0;
134
+ text-shadow: none;
135
+ color: $color-text1-3;
130
136
  }
131
137
  }
132
138
 
133
139
  table, td, th {
134
- border: 1px solid #caccce;
140
+ border: 1px solid $color-line1-1;
135
141
 
136
142
  body.global-dark & {
137
- border-color: #babcbd;
138
- // border-color: #c9cace;
143
+ border-color: $color-line1-2
139
144
  }
140
145
 
141
146
  border-collapse: collapse;
@@ -156,7 +161,7 @@
156
161
  }
157
162
 
158
163
  td, th {
159
- border: 1px solid #e3e3e3;
164
+ border: 1px solid $color-line1-1;
160
165
  padding: 10px 12px;
161
166
  line-height: 1.3;
162
167
 
@@ -166,11 +171,11 @@
166
171
  }
167
172
 
168
173
  th {
169
- background: hsla(230, 90%, 11%, .03);
174
+ background: $color-fill1-2;
170
175
  }
171
176
 
172
177
  a, a:visited {
173
- color: #0080FF;
178
+ color: $color-link-3;
174
179
  text-decoration: none;
175
180
 
176
181
  &:hover {
@@ -219,7 +224,7 @@
219
224
  margin-left: -16px;
220
225
  top: 0;
221
226
  bottom: 0;
222
- background: hsla(230, 90%, 11%, .2);
227
+ background: $color-fill1-2;
223
228
  }
224
229
  }
225
230
 
@@ -227,7 +232,7 @@
227
232
  height: 0;
228
233
  border: none;
229
234
  height: 1px;
230
- background: hsla(230, 90%, 11%, .1);
235
+ background: $color-fill1-2;
231
236
  margin: 10px 0;
232
237
  }
233
238
  }
package/lib/index.d.ts CHANGED
@@ -19,4 +19,5 @@ export { default as Markdown } from './markdown';
19
19
  export { default as CardLoading } from './card-loading';
20
20
  export { default as Origin } from './origin';
21
21
  export { default as Loading } from './loading';
22
+ export { default as Drawer } from './drawer';
22
23
  export declare const version: string;
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.version = exports.Loading = exports.Origin = exports.CardLoading = exports.Markdown = exports.HtmlRender = exports.ImagePreview = exports.List = exports.Balloon = exports.Icon = exports.Message = exports.PersonPicker = exports.TimePicker = exports.DatePicker = exports.Input = exports.Tab = exports.Tag = exports.Text = exports.FloatButton = exports.Feedback = exports.Card = exports.Button = void 0;
3
+ exports.version = exports.Drawer = exports.Loading = exports.Origin = exports.CardLoading = exports.Markdown = exports.HtmlRender = exports.ImagePreview = exports.List = exports.Balloon = exports.Icon = exports.Message = exports.PersonPicker = exports.TimePicker = exports.DatePicker = exports.Input = exports.Tab = exports.Tag = exports.Text = exports.FloatButton = exports.Feedback = exports.Card = exports.Button = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var button_1 = require("./button");
6
6
  Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return tslib_1.__importDefault(button_1).default; } });
@@ -44,4 +44,6 @@ var origin_1 = require("./origin");
44
44
  Object.defineProperty(exports, "Origin", { enumerable: true, get: function () { return tslib_1.__importDefault(origin_1).default; } });
45
45
  var loading_1 = require("./loading");
46
46
  Object.defineProperty(exports, "Loading", { enumerable: true, get: function () { return tslib_1.__importDefault(loading_1).default; } });
47
- exports.version = '0.3.0-beta.8';
47
+ var drawer_1 = require("./drawer");
48
+ Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return tslib_1.__importDefault(drawer_1).default; } });
49
+ exports.version = '0.3.0';
@@ -1 +1 @@
1
- import '@alifd/next/lib/input/style';
1
+ import '@alifd/next/lib/input/style2';
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@alifd/next/lib/input/style");
3
+ require("@alifd/next/lib/input/style2");
@@ -45,12 +45,17 @@ const Markdown = (0, react_1.forwardRef)(({ className, onReady, content }, ref)
45
45
  // 提取属性
46
46
  const sizeTokenMatch = attributes.match(/sizeToken=([\w_]+)/);
47
47
  const colorTokenV2Match = attributes.match(/colorTokenV2=([\w_]+)/);
48
+ const colorTokenV1Match = attributes.match(/color=([\w_]+)/);
48
49
  if (sizeTokenMatch) {
49
50
  sizeToken = sizeTokenMatch[1].replace(/-/g, '_');
50
51
  }
51
52
  if (colorTokenV2Match) {
52
53
  colorTokenV2 = colorTokenV2Match[1].replace(/-/g, '_');
53
54
  }
55
+ // 兼容老的钉钉变量
56
+ if (!colorTokenV2 && colorTokenV1Match) {
57
+ colorTokenV2 = colorTokenV1Match[1].replace(/-/g, '_');
58
+ }
54
59
  // 生成样式
55
60
  const styleParts = [];
56
61
  if (sizeToken) {
@@ -168,7 +173,7 @@ const Markdown = (0, react_1.forwardRef)(({ className, onReady, content }, ref)
168
173
  });
169
174
  }
170
175
  }, [html]);
171
- return (react_1.default.createElement("div", { ref: containerRef, className: (0, classnames_1.default)(className) },
176
+ return (react_1.default.createElement("div", { ref: containerRef, className: (0, classnames_1.default)(`${utils_1.PREFIX_DEFAULT}markdown`, className) },
172
177
  react_1.default.createElement(html_render_1.default, { imagePreview: true }, html)));
173
178
  });
174
179
  const MarkdownWithSub = (0, utils_1.assignSubComponent)(Markdown, {
@@ -3,8 +3,6 @@
3
3
  $primaryColor: $color-brand1-6;
4
4
  $alternativePrimaryColor: $primaryColor;
5
5
  $mistPrimaryColor: $color-brand1-1;
6
- $mediumTextColor: $color-text1-3;
7
- $subTextColor: $color-text1-2;
8
6
 
9
7
  @mixin f-single-line() {
10
8
  overflow: hidden;
@@ -12,18 +10,20 @@ $subTextColor: $color-text1-2;
12
10
  text-overflow: ellipsis;
13
11
  }
14
12
 
15
- .box {
16
- max-width: 100%;
17
- }
18
-
19
- .box img:only-child, .box video:only-child, .box .image:only-child {
13
+ .#{$prefix}markdown {
14
+ img:only-child,
15
+ video:only-child,
16
+ .image:only-child
17
+ {
20
18
  display: inline-block;
21
19
  margin: 0;
22
20
  font-size: inherit;
23
21
  vertical-align: inherit;
24
- }
25
22
 
26
- .emoji {
23
+ }
24
+
25
+ max-width: 100%;
26
+ .emoji {
27
27
  width: 1em;
28
28
  height: 1em;
29
29
  vertical-align: text-top;
@@ -31,124 +31,119 @@ $subTextColor: $color-text1-2;
31
31
  pointer-events: none;
32
32
  }
33
33
 
34
- .title {
35
- font-size: 16px;
36
- font-weight: bolder;
37
- margin-bottom: 12px;
38
- }
39
-
40
- .text > div {
41
- color:$subTextColor;
42
- }
43
-
44
- .reference {
45
- margin-top: 6px;
46
- font-size: 12px;
47
-
48
- &-tip {
49
- display: flex;
50
- margin: 0 -16px 6px 0;
51
- justify-content: flex-end;
52
-
53
- &-inner {
54
- @include f-single-line();
55
- background: linear-gradient(to right, transparent, $mistPrimaryColor);
56
- padding: 0 16px 0 32px;
57
- color: $mediumTextColor;
58
- min-width: 0;
59
- flex: 0 1 auto;
60
- font-size: 12px;
61
- line-height: 20px;
34
+ .title {
35
+ font-size: 16px;
36
+ font-weight: bolder;
37
+ margin-bottom: 12px;
38
+ }
39
+
40
+ .text > div {
41
+ color:$color-text1-2;
42
+ }
43
+
44
+ .reference {
45
+ margin-top: 6px;
46
+ font-size: 12px;
47
+
48
+ &-tip {
49
+ display: flex;
50
+ margin: 0 -16px 6px 0;
51
+ justify-content: flex-end;
52
+
53
+ &-inner {
54
+ @include f-single-line();
55
+ background: linear-gradient(to right, transparent, $mistPrimaryColor);
56
+ padding: 0 16px 0 32px;
57
+ color: $color-text1-3;
58
+ min-width: 0;
59
+ flex: 0 1 auto;
60
+ font-size: 12px;
61
+ line-height: 20px;
62
+ }
62
63
  }
63
64
  }
64
- }
65
-
66
- .trustworthyRiskAlert {
67
- font-size: 12px;
68
- line-height: 18px;
69
- color: $subTextColor;
70
- margin-bottom: 8px;
71
- }
72
- .code-block-header {
73
- display: flex;
74
- height:24px;
75
- // margin-top: 8px;
76
- justify-content: space-between;
77
- align-items: center;
78
- background-color: #EAECED;
79
- padding: 5px 10px;
80
- border-top-left-radius: 4px;
81
- border-top-right-radius: 4px;
82
- border-bottom: 1px solid #ddd;
65
+
66
+ .trustworthyRiskAlert {
67
+ font-size: 12px;
68
+ line-height: 18px;
69
+ color: $color-text1-2;
70
+ margin-bottom: 8px;
83
71
  }
84
-
72
+ .code-block-header {
73
+ display: flex;
74
+ height:24px;
75
+ // margin-top: 8px;
76
+ justify-content: space-between;
77
+ align-items: center;
78
+ background-color: $color-fill1-2;
79
+ padding: 5px 10px;
80
+ border-top-left-radius: 4px;
81
+ border-top-right-radius: 4px;
82
+ border-bottom: 1px solid $color-line1-2;
83
+ }
84
+
85
85
  .code-block-language {
86
86
  font-weight: bold;
87
87
  }
88
-
88
+
89
89
  .code-block-copy {
90
- color: var(--common_level3_base_color);
90
+ color: $color-text1-2;
91
+ background-color: transparent;
91
92
  border: none;
92
93
  border-radius: 4px;
93
94
  height: 20px;
94
95
  cursor: pointer;
96
+ font-size: 12px;
95
97
  }
96
-
98
+
97
99
  pre {
98
- background-color: #f8f8f8;
100
+ background-color: $color-fill1-2;
99
101
  border-bottom-left-radius: 14px;
100
102
  border-bottom-right-radius: 14px;
103
+ border-top-left-radius: 0;
104
+ border-top-right-radius: 0px;
101
105
  padding: 10px;
102
106
  margin-bottom: 10px;
103
107
  }
104
108
 
105
109
  .code-block-copy:hover {
106
- background-color: #d2d2d2;
110
+ color: $color-line1-4;
107
111
  }
108
-
109
112
  //https://done.alibaba-inc.com/dsm/16247/theme/style/font?type=theme&themeid=126576
110
- :root {
111
- --common_hypertitle_text_style__font_size: #{$font-size-display-3};
112
- --common_largetitle_text_style__font_size: #{$font-size-display-2};
113
-
114
- --common_h1_text_style__font_size: #{$font-size-headline};
115
- --common_h2_text_style__font_size: #{$font-size-title};
116
- --common_h3_text_style__font_size: 18px;
117
- --common_h4_text_style__font_size: #{$font-size-subhead};
118
- --common_h5_text_style__font_size: 15px;
119
- --common_body_text_style__font_size: #{$font-size-body-2};
120
- --common_footnote_text_style__font_size: #{$font-size-body-1};
121
-
122
- // --common_h1_text_style__font_size: #{$s-6;
123
- // --common_h2_text_style__font_size: 20px;
124
- // --common_h3_text_style__font_size: 18px;
125
- // --common_h4_text_style__font_size: 16px;
126
- // --common_h5_text_style__font_size: 15px;
127
- // --common_body_text_style__font_size: 14px;
128
- // --common_footnote_text_style__font_size: 12px;
129
-
130
- --common_yellow1_color: #{$color-data1-6}; // #F4C800
131
- --common_orange1_color: #{$color-data1-5}; // #FF9200
132
- --common_red1_color: #{$color-data1-4}; // #FF5219
133
- --common_pink1_color: #da5388; //
134
- --common_purple1_color: #{$color-data1-3}; // #B963D3
135
- --common_blue1_color: #{$color-data1-2}; // #007FFF
136
-
137
- --common_water1_color: #{$color-data1-8}; //浅蓝 #5AC8FA
138
- --common_olive1_color: #77912b; // #6F9200 通用草绿色
139
- --common_green1_color: #4fae51; // #00B042 通用绿色
140
-
141
- --common_level1_base_color: #{$color-text1-4};
142
- --common_level2_base_color: #{$color-text1-3};
143
- --common_level3_base_color: #{$color-text1-2};
144
- --common_level4_base_color: #{$color-text1-1};
145
-
146
- --common_gray1_color: #{$color-line1-1};
147
- --common_gray2_color: #{$color-line1-2};
148
- --common_gray3_color: #{$color-line1-3};
149
- --common_gray4_color: #{$color-line1-4};
150
-
151
- --common_gray5_color: #{$color-fill1-2};
152
- --common_gray6_color: #{$color-fill1-1};
153
- }
154
-
113
+
114
+ // 暂时先把钉卡片用到的主题变量放在markdown组件内部进行覆盖
115
+ --common_hypertitle_text_style__font_size: #{$font-size-display-3};
116
+ --common_largetitle_text_style__font_size: #{$font-size-display-2};
117
+ --common_h1_text_style__font_size: #{$font-size-headline};
118
+ --common_h2_text_style__font_size: #{$font-size-title};
119
+ --common_h3_text_style__font_size: 18px;
120
+ --common_h4_text_style__font_size: #{$font-size-subhead};
121
+ --common_h5_text_style__font_size: 15px;
122
+ --common_body_text_style__font_size: #{$font-size-body-2};
123
+ --common_footnote_text_style__font_size: #{$font-size-body-1};
124
+
125
+ --common_yellow1_color: #{$color-data1-6}; // #F4C800
126
+ --common_orange1_color: #{$color-data1-5}; // #FF9200
127
+ --common_red1_color: #{$color-data1-4}; // #FF5219
128
+ // TODO 需要扩充主题
129
+ --common_pink1_color: #{$color-data1-9};; //
130
+ --common_purple1_color: #{$color-data1-3}; // #B963D3
131
+ --common_blue1_color: #{$color-data1-2}; // #007FFF
132
+
133
+ --common_water1_color: #{$color-data1-8}; //浅蓝 #5AC8FA
134
+ --common_olive1_color: #{$color-data1-10}; // #6F9200 通用草绿色
135
+ --common_green1_color: #{$color-data1-7}; // #00B042 通用绿色
136
+
137
+ --common_level1_base_color: #{$color-text1-4};
138
+ --common_level2_base_color: #{$color-text1-3};
139
+ --common_level3_base_color: #{$color-text1-2};
140
+ --common_level4_base_color: #{$color-text1-1};
141
+
142
+ --common_gray1_color: #{$color-line1-1};
143
+ --common_gray2_color: #{$color-line1-2};
144
+ --common_gray3_color: #{$color-line1-3};
145
+ --common_gray4_color: #{$color-line1-4};
146
+
147
+ --common_gray5_color: #{$color-fill1-2};
148
+ --common_gray6_color: #{$color-fill1-1};
149
+ }
@@ -1,2 +1,2 @@
1
- import '@alifd/next/lib/select/style';
1
+ import '@alifd/next/lib/select/style2';
2
2
  import './main.scss';
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@alifd/next/lib/select/style");
3
+ require("@alifd/next/lib/select/style2");
4
4
  require("./main.scss");
@@ -1,2 +1,2 @@
1
- import '@alifd/next/lib/tab/style';
1
+ import '@alifd/next/lib/tab/style2';
2
2
  import './main.scss';
package/lib/tab/style.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@alifd/next/lib/tab/style");
3
+ require("@alifd/next/lib/tab/style2");
4
4
  require("./main.scss");
@@ -1,2 +1,2 @@
1
- import '@alifd/next/lib/tag/style';
1
+ import '@alifd/next/lib/tag/style2';
2
2
  import './main.scss';
package/lib/tag/style.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@alifd/next/lib/tag/style");
3
+ require("@alifd/next/lib/tag/style2");
4
4
  require("./main.scss");
@@ -1 +1 @@
1
- import '@alifd/next/lib/time-picker2/style';
1
+ import '@alifd/next/lib/time-picker2/style2';
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@alifd/next/lib/time-picker2/style");
3
+ require("@alifd/next/lib/time-picker2/style2");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alifd/chat",
3
- "version": "0.3.0-beta.8",
3
+ "version": "0.3.0",
4
4
  "description": "A configurable component library for chat built on React.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -313,6 +313,18 @@
313
313
  "./loading/style.js": {
314
314
  "import": "./es/loading/style.js",
315
315
  "require": "./lib/loading/style.js"
316
+ },
317
+ "./drawer": {
318
+ "import": "./es/drawer/index.js",
319
+ "require": "./lib/drawer/index.js"
320
+ },
321
+ "./drawer/style": {
322
+ "import": "./es/drawer/style.js",
323
+ "require": "./lib/drawer/style.js"
324
+ },
325
+ "./drawer/style.js": {
326
+ "import": "./es/drawer/style.js",
327
+ "require": "./lib/drawer/style.js"
316
328
  }
317
329
  },
318
330
  "files": [