@alifd/chat 0.1.12-beta.0 → 0.1.13-beta.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 (89) hide show
  1. package/{lib/calendar → es/button}/main.scss +1 -1
  2. package/es/card/main.scss +141 -0
  3. package/es/card/view/collapsable.d.ts +1 -1
  4. package/es/core/variables.scss +35 -0
  5. package/es/feedback/main.scss +45 -0
  6. package/es/float-button/main.scss +97 -0
  7. package/es/index.d.ts +1 -5
  8. package/es/index.js +2 -6
  9. package/es/message/index.d.ts +22 -0
  10. package/es/message/index.js +30 -0
  11. package/{lib/date-picker → es/message}/main.scss +0 -4
  12. package/es/message/style.d.ts +2 -0
  13. package/es/message/style.js +2 -0
  14. package/es/message/types.d.ts +195 -0
  15. package/es/tab/main.scss +10 -0
  16. package/es/tag/index.d.ts +1769 -2
  17. package/es/tag/index.js +2 -2
  18. package/es/tag/main.scss +9 -0
  19. package/es/text/main.scss +19 -0
  20. package/lib/card/view/collapsable.d.ts +1 -1
  21. package/lib/index.d.ts +1 -4
  22. package/lib/index.js +4 -10
  23. package/lib/message/index.d.ts +22 -0
  24. package/lib/message/index.js +32 -0
  25. package/lib/{time-picker → message}/main.scss +0 -4
  26. package/lib/message/style.d.ts +2 -0
  27. package/lib/{input → message}/style.js +1 -1
  28. package/lib/message/types.d.ts +195 -0
  29. package/lib/tag/index.d.ts +1769 -2
  30. package/lib/tag/index.js +2 -2
  31. package/package.json +13 -39
  32. package/es/calendar/index.d.ts +0 -23
  33. package/es/calendar/index.js +0 -33
  34. package/es/calendar/style.d.ts +0 -2
  35. package/es/calendar/style.js +0 -2
  36. package/es/calendar/types.d.ts +0 -123
  37. package/es/date-picker/index.d.ts +0 -24
  38. package/es/date-picker/index.js +0 -33
  39. package/es/date-picker/style.d.ts +0 -3
  40. package/es/date-picker/style.js +0 -3
  41. package/es/date-picker/types.d.ts +0 -123
  42. package/es/date-picker/types.js +0 -1
  43. package/es/input/index.d.ts +0 -24
  44. package/es/input/index.js +0 -33
  45. package/es/input/style.d.ts +0 -2
  46. package/es/input/style.js +0 -2
  47. package/es/input/types.d.ts +0 -518
  48. package/es/input/types.js +0 -1
  49. package/es/person-picker/index.d.ts +0 -24
  50. package/es/person-picker/index.js +0 -66
  51. package/es/person-picker/style.d.ts +0 -2
  52. package/es/person-picker/style.js +0 -2
  53. package/es/person-picker/types.d.ts +0 -20
  54. package/es/person-picker/types.js +0 -1
  55. package/es/time-picker/index.d.ts +0 -23
  56. package/es/time-picker/index.js +0 -79
  57. package/es/time-picker/style.d.ts +0 -2
  58. package/es/time-picker/style.js +0 -2
  59. package/es/time-picker/types.d.ts +0 -20
  60. package/es/time-picker/types.js +0 -1
  61. package/es/utils/dingtalk.d.ts +0 -4
  62. package/es/utils/dingtalk.js +0 -53
  63. package/lib/calendar/index.d.ts +0 -23
  64. package/lib/calendar/index.js +0 -35
  65. package/lib/calendar/style.d.ts +0 -2
  66. package/lib/calendar/style.js +0 -4
  67. package/lib/calendar/types.d.ts +0 -123
  68. package/lib/date-picker/index.d.ts +0 -24
  69. package/lib/date-picker/index.js +0 -35
  70. package/lib/date-picker/style.d.ts +0 -3
  71. package/lib/date-picker/style.js +0 -5
  72. package/lib/date-picker/types.d.ts +0 -123
  73. package/lib/date-picker/types.js +0 -2
  74. package/lib/input/index.d.ts +0 -24
  75. package/lib/input/index.js +0 -35
  76. package/lib/input/main.scss +0 -5
  77. package/lib/input/style.d.ts +0 -2
  78. package/lib/input/types.d.ts +0 -518
  79. package/lib/input/types.js +0 -2
  80. package/lib/time-picker/index.d.ts +0 -23
  81. package/lib/time-picker/index.js +0 -81
  82. package/lib/time-picker/style.d.ts +0 -2
  83. package/lib/time-picker/style.js +0 -4
  84. package/lib/time-picker/types.d.ts +0 -20
  85. package/lib/time-picker/types.js +0 -2
  86. package/lib/utils/dingtalk.d.ts +0 -4
  87. package/lib/utils/dingtalk.js +0 -60
  88. /package/es/{calendar → message}/types.js +0 -0
  89. /package/lib/{calendar → message}/types.js +0 -0
@@ -1,5 +1,5 @@
1
1
  @import "../core/variables.scss";
2
2
 
3
- .#{$prefix}calendar {
3
+ .#{$prefix}button {
4
4
 
5
5
  }
@@ -0,0 +1,141 @@
1
+ @import '../core/variables.scss';
2
+
3
+ @mixin size($shadow, $corner, $padding, $fontSize, $headFontSize) {
4
+ $verPadding: $padding * 0.5;
5
+ box-shadow: $shadow;
6
+ border-radius: $corner;
7
+ font-size: $fontSize;
8
+ overflow: hidden;
9
+
10
+ .#{$prefix}card {
11
+ &-header {
12
+ font-size: $headFontSize;
13
+ &-title {
14
+ padding: $verPadding $padding;
15
+ }
16
+ &-extras {
17
+ padding: $verPadding $padding $verPadding 0;
18
+ }
19
+ }
20
+ &-content {
21
+ padding: 0 $padding;
22
+
23
+ &--gap-top {
24
+ margin-top: $verPadding;
25
+ }
26
+ &--gap-bottom {
27
+ margin-bottom: $verPadding;
28
+ }
29
+ }
30
+ &-footer {
31
+ padding: $verPadding $padding;
32
+ }
33
+ }
34
+ }
35
+
36
+ .#{$prefix}card {
37
+ color: $color-text1-3;
38
+
39
+ &-inner {
40
+ display: flex;
41
+ flex-direction: column;
42
+ background-color: #fff;
43
+ @include size(
44
+ $shadow-2,
45
+ $size-base * 3,
46
+ $size-base * 4,
47
+ $font-size-body-1,
48
+ $font-size-subhead
49
+ );
50
+ }
51
+ &-header {
52
+ flex: none;
53
+ display: flex;
54
+
55
+ &-title {
56
+ font-weight: 500;
57
+ flex: 1;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ white-space: nowrap;
61
+ word-break: break-all;
62
+ }
63
+ &-extras {
64
+ flex: none;
65
+ }
66
+ &--line {
67
+ border-bottom: 1px solid $color-line1-0;
68
+ }
69
+ }
70
+ &-footer {
71
+ flex: none;
72
+
73
+ &--line {
74
+ border-top: 1px solid $color-line1-0;
75
+ }
76
+ }
77
+
78
+ &--medium {
79
+ .#{$prefix}card-inner {
80
+ @include size(
81
+ $shadow-2,
82
+ $size-base * 3,
83
+ $size-base * 4,
84
+ $font-size-body-1,
85
+ $font-size-subhead
86
+ );
87
+ }
88
+ }
89
+ &.#{$prefix}card--no-padding {
90
+ .#{$prefix}card {
91
+ &-header,
92
+ &-content,
93
+ &-footer {
94
+ padding: 0;
95
+ margin: 0;
96
+ }
97
+ }
98
+ }
99
+
100
+ @keyframes fade-in {
101
+ 0% {
102
+ opacity: 0;
103
+ }
104
+ 100% {
105
+ opacity: 1;
106
+ }
107
+ }
108
+
109
+ &-collapsable {
110
+ &-inner {
111
+ }
112
+ &-inner--popup {
113
+ position: absolute;
114
+ left: 0;
115
+ top: 0;
116
+ width: 100%;
117
+ height: auto;
118
+ z-index: 999;
119
+ opacity: 0;
120
+ animation-timing-function: ease-out;
121
+ animation-duration: 0.3s;
122
+ animation-name: fade-in;
123
+ animation-iteration-count: 1;
124
+ animation-fill-mode: forwards;
125
+ }
126
+ &--visible {
127
+ position: relative;
128
+ .#{$prefix}card-collapsable-inner {
129
+ transition: opacity 0.5s ease-in;
130
+ opacity: 0;
131
+ pointer-events: none;
132
+
133
+ &--popup {
134
+ transition: none;
135
+ opacity: 1;
136
+ pointer-events: all;
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { CollapsableCardProps } from '../types';
3
- declare function CollapsableCard({ components, visible, defaultVisible, onVisibleChange, triggerType, mode, renderContent, ...props }: CollapsableCardProps): React.JSX.Element;
3
+ declare function CollapsableCard({ components, visible: _v, defaultVisible: _dv, onVisibleChange: _onVC, triggerType, mode, renderContent, ...props }: CollapsableCardProps): React.JSX.Element;
4
4
  declare namespace CollapsableCard {
5
5
  var displayName: string;
6
6
  }
@@ -0,0 +1,35 @@
1
+ $prefix: 'ct-' !default;
2
+
3
+ $color-brand1-6: var(--color-brand1-6, #5584ff) !default;
4
+ $size-base: 4px !default;
5
+ $shadow-1: 1px 1px 4px 0px rgba(0, 0, 0, 0.16) !default;
6
+ $shadow-2: 2px 4px 16px 0px rgba(0, 0, 0, 0.12) !default;
7
+
8
+ $font-size-headline: var(--font-size-headline, 24px) !default;
9
+ $font-size-title: var(--font-size-title, 20px) !default;
10
+ $font-size-subhead: var(--font-size-subhead, 16px) !default;
11
+ $font-size-body-2: var(--font-size-body-2, 14px) !default;
12
+ $font-size-body-1: var(--font-size-body-1, 14px) !default;
13
+ $font-size-caption: var(--font-size-caption, 12px) !default;
14
+
15
+ /// 禁用
16
+ $color-text1-1: var(--color-text1-1, #cccccc) !default;
17
+ /// 水印/提示
18
+ $color-text1-2: var(--color-text1-2, #999999) !default;
19
+ /// 正文/标题
20
+ $color-text1-3: var(--color-text1-3, #666666) !default;
21
+ /// 正文/标题
22
+ $color-text1-4: var(--color-text1-4, #333333) !default;
23
+
24
+ /// 很浅
25
+ $color-line1-0: var(--color-line1-0, #f1f3f6) !default;
26
+ /// 浅
27
+ $color-line1-1: var(--color-line1-1, #e6e7eb) !default;
28
+ /// 常规
29
+ $color-line1-2: var(--color-line1-2, #dcdee3) !default;
30
+ /// 深
31
+ $color-line1-3: var(--color-line1-3, #c4c6cf) !default;
32
+ /// 重
33
+ $color-line1-4: var(--color-line1-4, #a0a2ad) !default;
34
+
35
+
@@ -0,0 +1,45 @@
1
+ @import '../core/variables.scss';
2
+
3
+ .#{$prefix}feedback {
4
+ display: inline-block;
5
+
6
+ &-inner {
7
+ padding: 0 4px;
8
+ display: flex;
9
+ flex-direction: row;
10
+ button:first-child {
11
+ margin-right: 16px;
12
+ }
13
+ }
14
+ &-item {
15
+ background-color: transparent;
16
+ outline: 0;
17
+ border: 0;
18
+ display: inline-flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ cursor: pointer;
22
+ color: $color-line1-3;
23
+ font-size: inherit;
24
+ padding: 0px;
25
+ transition:
26
+ color 0.15s,
27
+ opacity 0.15s;
28
+
29
+ &--active {
30
+ color: $color-brand1-6;
31
+ }
32
+
33
+ &:hover {
34
+ opacity: 0.8;
35
+ }
36
+
37
+ &-icon {
38
+ line-height: 1;
39
+
40
+ &--bad {
41
+ transform: rotateX(180deg);
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,97 @@
1
+ @import '../core/variables.scss';
2
+
3
+ .#{$prefix}float-button {
4
+ position: fixed;
5
+ z-index: 1001;
6
+
7
+ &-backtop {
8
+ transition:
9
+ opacity 0.2s,
10
+ transform 0.2s;
11
+ cursor: pointer;
12
+
13
+ &--hidden {
14
+ opacity: 0;
15
+ transform: scale(0);
16
+ }
17
+ }
18
+
19
+ &-inner-drawer {
20
+ flex: 1;
21
+ overflow: hidden;
22
+ box-shadow: $shadow-2;
23
+ border-radius: $size-base * 2;
24
+
25
+ &-outer {
26
+ display: flex;
27
+ }
28
+ &-inner-start {
29
+ flex: 1;
30
+ }
31
+ &-inner-end {
32
+ flex: none;
33
+ transition:
34
+ width 0.3s,
35
+ opacity 0.3s;
36
+ display: flex;
37
+ width: 0;
38
+ opacity: 0;
39
+ }
40
+ &-inner {
41
+ width: 100%;
42
+ height: 100%;
43
+ display: flex;
44
+ flex-direction: column;
45
+ position: relative;
46
+
47
+ &--has-title {
48
+ .#{$prefix}float-button-inner-drawer {
49
+ &-header {
50
+ margin: $size-base * 2 $size-base * 3;
51
+ }
52
+ &-body {
53
+ margin-top: 0;
54
+ }
55
+ }
56
+ }
57
+ &--has-close {
58
+ .#{$prefix}float-button-inner-drawer {
59
+ &-header-title {
60
+ margin-right: $size-base * 2;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ &-header {
66
+ flex: none;
67
+ &-title {
68
+ font-size: $font-size-subhead;
69
+ line-height: 1.5;
70
+ }
71
+ &-close {
72
+ position: absolute;
73
+ right: $size-base * 2;
74
+ top: $size-base * 2;
75
+ color: $color-text1-2;
76
+ cursor: pointer;
77
+ transition: color 0.15s;
78
+ outline: 0;
79
+ border: 0;
80
+ padding: 0;
81
+ align-self: flex-start;
82
+ background-color: transparent;
83
+
84
+ &:hover {
85
+ color: $color-text1-4;
86
+ }
87
+ }
88
+ }
89
+ &-body {
90
+ flex: 1;
91
+ margin: $size-base * 2 $size-base * 3;
92
+ }
93
+ &-footer {
94
+ flex: none;
95
+ }
96
+ }
97
+ }
package/es/index.d.ts CHANGED
@@ -5,9 +5,5 @@ export { default as FloatButton } from './float-button';
5
5
  export { default as Text } from './text';
6
6
  export { default as Tag } from './tag';
7
7
  export { default as Tab } from './tab';
8
- export { default as Input } from './input';
9
- export { default as DatePicker } from './date-picker';
10
- export { default as TimePicker } from './time-picker';
11
- export { default as PersonPicker } from './person-picker';
12
- export { default as Calendar } from './calendar';
8
+ export { default as Message } from './message';
13
9
  export declare const version: string;
package/es/index.js CHANGED
@@ -5,9 +5,5 @@ export { default as FloatButton } from './float-button';
5
5
  export { default as Text } from './text';
6
6
  export { default as Tag } from './tag';
7
7
  export { default as Tab } from './tab';
8
- export { default as Input } from './input';
9
- export { default as DatePicker } from './date-picker';
10
- export { default as TimePicker } from './time-picker';
11
- export { default as PersonPicker } from './person-picker';
12
- export { default as Calendar } from './calendar';
13
- export const version = __CHAT_VERSION__;
8
+ export { default as Message } from './message';
9
+ export const version = '0.1.12';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @component 标签
3
+ * @en Message
4
+ * @type 通用 - General
5
+ * @remarks 同 Next Message - Same as Next.Message
6
+ * @when Message
7
+ */
8
+ import React from 'react';
9
+ import { Message as NextMessage } from '@alifd/next';
10
+ import type { MessageProps } from './types';
11
+ export * from './types';
12
+ declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<MessageProps & React.RefAttributes<NextMessage>, "key" | keyof MessageProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, NextMessage, {}> & {
13
+ loading: typeof NextMessage.loading;
14
+ warning: typeof NextMessage.warning;
15
+ error: typeof NextMessage.error;
16
+ help: typeof NextMessage.help;
17
+ hide: typeof NextMessage.hide;
18
+ show: typeof NextMessage.show;
19
+ success: typeof NextMessage.success;
20
+ notice: typeof NextMessage.notice;
21
+ };
22
+ export default _default;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @component 标签
3
+ * @en Message
4
+ * @type 通用 - General
5
+ * @remarks 同 Next Message - Same as Next.Message
6
+ * @when Message
7
+ */
8
+ import { __rest } from "tslib";
9
+ import React, { forwardRef } from 'react';
10
+ import { Message as NextMessage, ConfigProvider } from '@alifd/next';
11
+ import cs from 'classnames';
12
+ import { PREFIX_DEFAULT, assignSubComponent } from '../utils';
13
+ const Message = forwardRef((_a, ref) => {
14
+ var { className } = _a, props = __rest(_a, ["className"]);
15
+ return (React.createElement(NextMessage, Object.assign({}, props, { ref: ref, className: cs(`${PREFIX_DEFAULT}message`, className) })));
16
+ });
17
+ const MessageWithSub = assignSubComponent(Message, {
18
+ show: NextMessage.show,
19
+ success: NextMessage.success,
20
+ warning: NextMessage.warning,
21
+ error: NextMessage.error,
22
+ notice: NextMessage.notice,
23
+ help: NextMessage.help,
24
+ loading: NextMessage.loading,
25
+ hide: NextMessage.hide,
26
+ });
27
+ export * from './types';
28
+ export default ConfigProvider.config(MessageWithSub, {
29
+ componentName: 'Message',
30
+ });
@@ -1,6 +1,2 @@
1
1
  @import '@alifd/next/variables.scss';
2
2
  @import "../core/variables.scss";
3
-
4
- .#{$prefix}date-picker {
5
-
6
- }
@@ -0,0 +1,2 @@
1
+ import '@alifd/next/lib/message/style';
2
+ import './main.scss';
@@ -0,0 +1,2 @@
1
+ import '@alifd/next/lib/message/style';
2
+ import './main.scss';
@@ -0,0 +1,195 @@
1
+ import type React from 'react';
2
+ import type { OverlayProps } from '@alifd/next/types/overlay';
3
+ import type { ConsumerState } from '@alifd/next/types/config-provider/consumer';
4
+ type HTMLAttributesWeak = Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
5
+ /**
6
+ * @api Message
7
+ */
8
+ export interface MessageProps extends HTMLAttributesWeak {
9
+ /**
10
+ * 反馈类型
11
+ * @en type of message
12
+ * @defaultValue 'success'
13
+ */
14
+ type?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
15
+ /**
16
+ * 反馈外观
17
+ * @en shape of message
18
+ * @defaultValue 'inline'
19
+ */
20
+ shape?: 'inline' | 'addon' | 'toast';
21
+ /**
22
+ * 反馈大小
23
+ * @en size of message
24
+ * @defaultValue 'medium'
25
+ */
26
+ size?: 'medium' | 'large';
27
+ /**
28
+ * 标题
29
+ * @en title of message
30
+ */
31
+ title?: React.ReactNode;
32
+ /**
33
+ * 内容,非函数式调用下使用
34
+ * @en content of message
35
+ */
36
+ children?: React.ReactNode;
37
+ /**
38
+ * 默认是否显示
39
+ * @en whether the message is visible in default
40
+ * @defaultValue false
41
+ */
42
+ defaultVisible?: boolean;
43
+ /**
44
+ * 当前是否显示
45
+ * @en whether the message is visible currently
46
+ */
47
+ visible?: boolean;
48
+ /**
49
+ * 显示的图标类型,会覆盖内部设置的IconType,传false不显示图标
50
+ * @en type of icon, overriding the internally type of icon
51
+ */
52
+ iconType?: string | false;
53
+ /**
54
+ * 显示关闭按钮
55
+ * @en whether to show the close button
56
+ * @defaultValue false
57
+ */
58
+ closeable?: boolean;
59
+ /**
60
+ * 关闭按钮的回调
61
+ * @en callback function triggered when close
62
+ * @defaultValue () =\> \{\}
63
+ */
64
+ onClose?: () => void;
65
+ /**
66
+ * 关闭之后调用的函数
67
+ * @en callback function triggered after closed
68
+ * @defaultValue () =\> \{\}
69
+ */
70
+ afterClose?: () => void;
71
+ /**
72
+ * 是否开启展开收起动画
73
+ * @en whether to enable expand and collapse animation
74
+ * @defaultValue true
75
+ */
76
+ animation?: boolean;
77
+ }
78
+ /**
79
+ * @api Message.show
80
+ * @remarks Message.show(props) 提供一个单例的调用方式,配置参数如下(继承 Overlay 的配置):
81
+ *
82
+ * ```js
83
+ * Message.show({
84
+ * type: 'error',
85
+ * title: '错误',
86
+ * content: '请联系相关人员反馈!',
87
+ * hasMask: true
88
+ * });
89
+ * ```
90
+ * -
91
+ * `Message.show(props)` provides a singleton call with the following configuration parameters (inheriting `Overlay` configuration):
92
+ * ```js
93
+ * Message.show({
94
+ * type: 'error',
95
+ * title: 'Error',
96
+ * content: 'Please contact admin feedback!',
97
+ * hasMask: true
98
+ * });
99
+ * ```
100
+ */
101
+ export interface MessageQuickProps extends Omit<HTMLAttributesWeak, 'content'> {
102
+ /**
103
+ * 反馈类型
104
+ * @en type of message
105
+ * @defaultValue 'success'
106
+ */
107
+ type?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
108
+ /**
109
+ * 反馈大小
110
+ * @en size of message
111
+ * @defaultValue 'medium'
112
+ */
113
+ size?: 'medium' | 'large';
114
+ /**
115
+ * 标题
116
+ * @en title of message
117
+ */
118
+ title?: React.ReactNode;
119
+ /**
120
+ * 内容,函数式调用下使用
121
+ * @en content of message
122
+ */
123
+ content?: React.ReactNode;
124
+ /**
125
+ * 弹层对齐方式,详情见 Overlay align
126
+ * @en alignment reference Overlay
127
+ * @defaultValue 'tc tc'
128
+ */
129
+ align?: string | boolean;
130
+ /**
131
+ * 弹层相对于参照元素定位的微调
132
+ * @en offset after positioned
133
+ * @defaultValue [0, 0]
134
+ */
135
+ offset?: Array<number>;
136
+ /**
137
+ * 是否显示遮罩
138
+ * @en whether to have a mask
139
+ * @defaultValue false
140
+ */
141
+ hasMask?: boolean;
142
+ /**
143
+ * 显示持续时间,0表示一直存在,以毫秒为单位
144
+ * @en show duration, 0 means always present, in milliseconds
145
+ * @defaultValue 3000
146
+ */
147
+ duration?: number;
148
+ /**
149
+ * @skip
150
+ */
151
+ timeoutId?: string;
152
+ /**
153
+ * 显示关闭按钮
154
+ * @en whether to show the close button
155
+ * @defaultValue false
156
+ */
157
+ closeable?: boolean;
158
+ /**
159
+ * 关闭按钮的回调
160
+ * @en callback function triggered when close
161
+ * @defaultValue () =\> \{\}
162
+ */
163
+ onClose?: () => void;
164
+ /**
165
+ * 关闭之后调用的函数
166
+ * @en callback function triggered after closed
167
+ * @defaultValue () =\> \{\}
168
+ */
169
+ afterClose?: () => void;
170
+ /**
171
+ * 是否开启展开收起动画
172
+ * @en whether to enable expand and collapse animation
173
+ * @defaultValue true
174
+ */
175
+ animation?: boolean;
176
+ /**
177
+ * 透传到弹层组件的属性对象
178
+ * @en props of Overlay
179
+ */
180
+ overlayProps?: OverlayProps;
181
+ /**
182
+ * @skip
183
+ */
184
+ contextConfig?: ConsumerState;
185
+ }
186
+ export type OpenProps = string | React.ReactElement | MessageQuickProps;
187
+ export interface MessageWrapperItem extends MessageQuickProps {
188
+ timer?: ReturnType<typeof setTimeout>;
189
+ key: string;
190
+ }
191
+ export interface MessageWrapperProps {
192
+ prefix?: MessageQuickProps['prefix'];
193
+ dataSource: Array<MessageWrapperItem>;
194
+ }
195
+ export {};
@@ -0,0 +1,10 @@
1
+ @import "@alifd/next/variables.scss";
2
+ @import "../core/variables.scss";
3
+
4
+ .#{$prefix}tabs {
5
+ &.#{$css-prefix}tabs-pure {
6
+ .#{$css-prefix}tabs-bar {
7
+ border-color: transparent;
8
+ }
9
+ }
10
+ }