@alifd/chat 0.1.15-beta.11 → 0.1.15-beta.13

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.
@@ -8,6 +8,6 @@
8
8
  import React from 'react';
9
9
  import { Icon as NextIcon } from '@alifd/next';
10
10
  import type { IconProps } from '@alifd/next/types/icon';
11
- export type { IconProps } from '@alifd/next/types/icon';
11
+ export * from './types';
12
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
13
  export default _default;
package/es/icon/index.js CHANGED
@@ -17,4 +17,5 @@ const Icon = forwardRef((_a, ref) => {
17
17
  const IconWithSub = assignSubComponent(Icon, {
18
18
  displayName: 'Icon',
19
19
  });
20
+ export * from './types';
20
21
  export default ConfigProvider.config(IconWithSub);
@@ -0,0 +1,43 @@
1
+ import type * as React from 'react';
2
+ import { type CommonProps } from '@alifd/next';
3
+ export interface IconSvgProps extends React.SVGAttributes<SVGSVGElement>, CommonProps {
4
+ /**
5
+ * 指定显示哪种图标
6
+ * @en Type of icon
7
+ */
8
+ type?: string;
9
+ /**
10
+ * 指定图标大小
11
+ * @en Size of icon
12
+ * @defaultValue 'medium'
13
+ */
14
+ size?: number | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
15
+ }
16
+ /**
17
+ * @api Icon
18
+ */
19
+ export interface IconProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
20
+ /**
21
+ * 指定显示哪种图标
22
+ * @en Type of icon
23
+ */
24
+ type?: string;
25
+ /**
26
+ * 指定图标大小
27
+ * @en Size of icon
28
+ * @defaultValue 'medium'
29
+ */
30
+ size?: number | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
31
+ }
32
+ export interface IconOptions {
33
+ /**
34
+ * 如果页面上已经有同 id 的标签,那么不会再加载这个图标库
35
+ * @en If there is already a tag with the same ID on the page, the icon library will not be loaded again
36
+ */
37
+ scriptUrl: string;
38
+ /**
39
+ * extra common props of icon-font
40
+ * @skip
41
+ */
42
+ extraCommonProps?: React.SVGAttributes<SVGSVGElement>;
43
+ }
package/es/icon/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";
1
+ export {};
package/es/index.js CHANGED
@@ -11,4 +11,4 @@ export { default as TimePicker } from './time-picker';
11
11
  export { default as PersonPicker } from './person-picker';
12
12
  export { default as Message } from './message';
13
13
  export { default as Icon } from './icon';
14
- export const version = '0.1.15-beta.11';
14
+ export const version = '0.1.15-beta.13';
@@ -1,3 +1,2 @@
1
1
  import '@alifd/next/lib/message/style';
2
- import '@alifd/next/lib/icon/style';
3
2
  import './main.scss';
@@ -1,3 +1,2 @@
1
1
  import '@alifd/next/lib/message/style';
2
- import '@alifd/next/lib/icon/style';
3
2
  import './main.scss';
@@ -8,6 +8,6 @@
8
8
  import React from 'react';
9
9
  import { Icon as NextIcon } from '@alifd/next';
10
10
  import type { IconProps } from '@alifd/next/types/icon';
11
- export type { IconProps } from '@alifd/next/types/icon';
11
+ export * from './types';
12
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
13
  export default _default;
package/lib/icon/index.js CHANGED
@@ -19,4 +19,5 @@ const Icon = (0, react_1.forwardRef)((_a, ref) => {
19
19
  const IconWithSub = (0, utils_1.assignSubComponent)(Icon, {
20
20
  displayName: 'Icon',
21
21
  });
22
+ tslib_1.__exportStar(require("./types"), exports);
22
23
  exports.default = next_1.ConfigProvider.config(IconWithSub);
@@ -0,0 +1,43 @@
1
+ import type * as React from 'react';
2
+ import { type CommonProps } from '@alifd/next';
3
+ export interface IconSvgProps extends React.SVGAttributes<SVGSVGElement>, CommonProps {
4
+ /**
5
+ * 指定显示哪种图标
6
+ * @en Type of icon
7
+ */
8
+ type?: string;
9
+ /**
10
+ * 指定图标大小
11
+ * @en Size of icon
12
+ * @defaultValue 'medium'
13
+ */
14
+ size?: number | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
15
+ }
16
+ /**
17
+ * @api Icon
18
+ */
19
+ export interface IconProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
20
+ /**
21
+ * 指定显示哪种图标
22
+ * @en Type of icon
23
+ */
24
+ type?: string;
25
+ /**
26
+ * 指定图标大小
27
+ * @en Size of icon
28
+ * @defaultValue 'medium'
29
+ */
30
+ size?: number | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
31
+ }
32
+ export interface IconOptions {
33
+ /**
34
+ * 如果页面上已经有同 id 的标签,那么不会再加载这个图标库
35
+ * @en If there is already a tag with the same ID on the page, the icon library will not be loaded again
36
+ */
37
+ scriptUrl: string;
38
+ /**
39
+ * extra common props of icon-font
40
+ * @skip
41
+ */
42
+ extraCommonProps?: React.SVGAttributes<SVGSVGElement>;
43
+ }
package/lib/icon/types.js CHANGED
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.js CHANGED
@@ -30,4 +30,4 @@ var message_1 = require("./message");
30
30
  Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return __importDefault(message_1).default; } });
31
31
  var icon_1 = require("./icon");
32
32
  Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return __importDefault(icon_1).default; } });
33
- exports.version = '0.1.15-beta.11';
33
+ exports.version = '0.1.15-beta.13';
@@ -1,3 +1,2 @@
1
1
  import '@alifd/next/lib/message/style';
2
- import '@alifd/next/lib/icon/style';
3
2
  import './main.scss';
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  require("@alifd/next/lib/message/style");
4
- require("@alifd/next/lib/icon/style");
5
4
  require("./main.scss");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alifd/chat",
3
- "version": "0.1.15-beta.11",
3
+ "version": "0.1.15-beta.13",
4
4
  "description": "A configurable component library for chat built on React.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",