@alifd/chat 0.1.13-beta.0 → 0.1.13-beta.2
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.
- package/es/icon/index.d.ts +13 -0
- package/es/icon/index.js +20 -0
- package/es/icon/main.scss +1 -0
- package/es/icon/style.d.ts +2 -0
- package/es/icon/style.js +2 -0
- package/es/icon/types.d.ts +0 -0
- package/es/icon/types.js +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/message/style.d.ts +1 -0
- package/es/message/style.js +1 -0
- package/lib/icon/index.d.ts +13 -0
- package/lib/icon/index.js +22 -0
- package/lib/icon/main.scss +1 -0
- package/lib/icon/style.d.ts +2 -0
- package/lib/icon/style.js +4 -0
- package/lib/icon/types.d.ts +0 -0
- package/lib/icon/types.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -2
- package/lib/message/style.d.ts +1 -0
- package/lib/message/style.js +1 -0
- package/package.json +13 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component 标签
|
|
3
|
+
* @en Icon
|
|
4
|
+
* @type 通用 - General
|
|
5
|
+
* @remarks 同 Next Icon - Same as Next.Icon
|
|
6
|
+
* @when Icon
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Icon as NextIcon } from '@alifd/next';
|
|
10
|
+
import type { IconProps } from '@alifd/next/types/icon';
|
|
11
|
+
export type { IconProps } from '@alifd/next/types/icon';
|
|
12
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<IconProps & React.RefAttributes<NextIcon>, "key" | keyof IconProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, NextIcon, {}>;
|
|
13
|
+
export default _default;
|
package/es/icon/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component 标签
|
|
3
|
+
* @en Icon
|
|
4
|
+
* @type 通用 - General
|
|
5
|
+
* @remarks 同 Next Icon - Same as Next.Icon
|
|
6
|
+
* @when Icon
|
|
7
|
+
*/
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
import React, { forwardRef } from 'react';
|
|
10
|
+
import { Icon as NextIcon, ConfigProvider } from '@alifd/next';
|
|
11
|
+
import cs from 'classnames';
|
|
12
|
+
import { PREFIX_DEFAULT, assignSubComponent } from '../utils';
|
|
13
|
+
const Icon = forwardRef((_a, ref) => {
|
|
14
|
+
var { className, size = 'small' } = _a, props = __rest(_a, ["className", "size"]);
|
|
15
|
+
return (React.createElement(NextIcon, Object.assign({}, props, { ref: ref, className: cs(`${PREFIX_DEFAULT}icon`, className), size: size })));
|
|
16
|
+
});
|
|
17
|
+
const IconWithSub = assignSubComponent(Icon, {
|
|
18
|
+
displayName: 'Icon',
|
|
19
|
+
});
|
|
20
|
+
export default ConfigProvider.config(IconWithSub);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "../core/variables.scss";
|
package/es/icon/style.js
ADDED
|
File without changes
|
package/es/icon/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -6,4 +6,5 @@ export { default as Text } from './text';
|
|
|
6
6
|
export { default as Tag } from './tag';
|
|
7
7
|
export { default as Tab } from './tab';
|
|
8
8
|
export { default as Message } from './message';
|
|
9
|
-
export
|
|
9
|
+
export { default as Icon } from './icon';
|
|
10
|
+
export const version = '0.1.13-beta.2';
|
package/es/message/style.d.ts
CHANGED
package/es/message/style.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component 标签
|
|
3
|
+
* @en Icon
|
|
4
|
+
* @type 通用 - General
|
|
5
|
+
* @remarks 同 Next Icon - Same as Next.Icon
|
|
6
|
+
* @when Icon
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Icon as NextIcon } from '@alifd/next';
|
|
10
|
+
import type { IconProps } from '@alifd/next/types/icon';
|
|
11
|
+
export type { IconProps } from '@alifd/next/types/icon';
|
|
12
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<IconProps & React.RefAttributes<NextIcon>, "key" | keyof IconProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, NextIcon, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @component 标签
|
|
4
|
+
* @en Icon
|
|
5
|
+
* @type 通用 - General
|
|
6
|
+
* @remarks 同 Next Icon - Same as Next.Icon
|
|
7
|
+
* @when Icon
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
12
|
+
const next_1 = require("@alifd/next");
|
|
13
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
14
|
+
const utils_1 = require("../utils");
|
|
15
|
+
const Icon = (0, react_1.forwardRef)((_a, ref) => {
|
|
16
|
+
var { className, size = 'small' } = _a, props = tslib_1.__rest(_a, ["className", "size"]);
|
|
17
|
+
return (react_1.default.createElement(next_1.Icon, Object.assign({}, props, { ref: ref, className: (0, classnames_1.default)(`${utils_1.PREFIX_DEFAULT}icon`, className), size: size })));
|
|
18
|
+
});
|
|
19
|
+
const IconWithSub = (0, utils_1.assignSubComponent)(Icon, {
|
|
20
|
+
displayName: 'Icon',
|
|
21
|
+
});
|
|
22
|
+
exports.default = next_1.ConfigProvider.config(IconWithSub);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "../core/variables.scss";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.version = exports.Message = exports.Tab = exports.Tag = exports.Text = exports.FloatButton = exports.Feedback = exports.Card = exports.Button = void 0;
|
|
6
|
+
exports.version = exports.Icon = exports.Message = exports.Tab = exports.Tag = exports.Text = exports.FloatButton = exports.Feedback = exports.Card = exports.Button = void 0;
|
|
7
7
|
var button_1 = require("./button");
|
|
8
8
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
|
|
9
9
|
var card_1 = require("./card");
|
|
@@ -20,4 +20,6 @@ var tab_1 = require("./tab");
|
|
|
20
20
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return __importDefault(tab_1).default; } });
|
|
21
21
|
var message_1 = require("./message");
|
|
22
22
|
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return __importDefault(message_1).default; } });
|
|
23
|
-
|
|
23
|
+
var icon_1 = require("./icon");
|
|
24
|
+
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return __importDefault(icon_1).default; } });
|
|
25
|
+
exports.version = '0.1.13-beta.2';
|
package/lib/message/style.d.ts
CHANGED
package/lib/message/style.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alifd/chat",
|
|
3
|
-
"version": "0.1.13-beta.
|
|
3
|
+
"version": "0.1.13-beta.2",
|
|
4
4
|
"description": "A configurable component library for chat built on React.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -133,6 +133,18 @@
|
|
|
133
133
|
"./message/style.js": {
|
|
134
134
|
"import": "./es/message/style.js",
|
|
135
135
|
"require": "./lib/message/style.js"
|
|
136
|
+
},
|
|
137
|
+
"./icon": {
|
|
138
|
+
"import": "./es/icon/index.js",
|
|
139
|
+
"require": "./lib/icon/index.js"
|
|
140
|
+
},
|
|
141
|
+
"./icon/style": {
|
|
142
|
+
"import": "./es/icon/style.js",
|
|
143
|
+
"require": "./lib/icon/style.js"
|
|
144
|
+
},
|
|
145
|
+
"./icon/style.js": {
|
|
146
|
+
"import": "./es/icon/style.js",
|
|
147
|
+
"require": "./lib/icon/style.js"
|
|
136
148
|
}
|
|
137
149
|
},
|
|
138
150
|
"files": [
|