@alifd/chat 0.1.13 → 0.1.15-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.
- package/es/button/index.d.ts +1 -9
- package/es/calendar/index.d.ts +23 -0
- package/es/calendar/index.js +33 -0
- package/es/calendar/style.d.ts +2 -0
- package/es/calendar/style.js +2 -0
- package/es/calendar/types.d.ts +123 -0
- package/es/calendar/types.js +1 -0
- package/es/card/index.d.ts +1 -5
- package/es/card/view/card.d.ts +1 -4
- package/es/date-picker/index.d.ts +24 -0
- package/es/date-picker/index.js +33 -0
- package/es/date-picker/style.d.ts +3 -0
- package/es/date-picker/style.js +3 -0
- package/es/date-picker/types.d.ts +123 -0
- package/es/date-picker/types.js +1 -0
- package/es/feedback/index.d.ts +1 -6
- package/es/float-button/index.d.ts +4 -26
- package/es/float-button/view/backtop.d.ts +1 -9
- package/es/float-button/view/drawer.d.ts +1 -4
- package/es/float-button/view/float-button.d.ts +1 -9
- package/es/float-button/view/inner-drawer.d.ts +1 -4
- package/es/index.d.ts +5 -0
- package/es/index.js +6 -1
- package/es/input/index.d.ts +24 -0
- package/es/input/index.js +33 -0
- package/es/input/style.d.ts +2 -0
- package/es/input/style.js +2 -0
- package/es/input/types.d.ts +518 -0
- package/es/input/types.js +1 -0
- package/es/person-picker/index.d.ts +24 -0
- package/es/person-picker/index.js +66 -0
- package/es/person-picker/style.d.ts +2 -0
- package/es/person-picker/style.js +2 -0
- package/es/person-picker/types.d.ts +20 -0
- package/es/person-picker/types.js +1 -0
- package/es/tab/index.d.ts +1 -8
- package/es/tag/index.d.ts +1 -9
- package/es/text/index.d.ts +1 -7
- package/es/time-picker/index.d.ts +23 -0
- package/es/time-picker/index.js +79 -0
- package/es/time-picker/style.d.ts +2 -0
- package/es/time-picker/style.js +2 -0
- package/es/time-picker/types.d.ts +20 -0
- package/es/time-picker/types.js +1 -0
- package/es/utils/dingtalk.d.ts +4 -0
- package/es/utils/dingtalk.js +53 -0
- package/lib/button/index.d.ts +1 -9
- package/lib/calendar/index.d.ts +23 -0
- package/lib/calendar/index.js +35 -0
- package/{es/button → lib/calendar}/main.scss +1 -1
- package/lib/calendar/style.d.ts +2 -0
- package/lib/calendar/style.js +4 -0
- package/lib/calendar/types.d.ts +123 -0
- package/lib/calendar/types.js +2 -0
- package/lib/card/index.d.ts +1 -5
- package/lib/card/view/card.d.ts +1 -4
- package/lib/date-picker/index.d.ts +24 -0
- package/lib/date-picker/index.js +35 -0
- package/lib/date-picker/main.scss +6 -0
- package/lib/date-picker/style.d.ts +3 -0
- package/lib/date-picker/style.js +5 -0
- package/lib/date-picker/types.d.ts +123 -0
- package/lib/date-picker/types.js +2 -0
- package/lib/feedback/index.d.ts +1 -6
- package/lib/float-button/index.d.ts +4 -26
- package/lib/float-button/view/backtop.d.ts +1 -9
- package/lib/float-button/view/drawer.d.ts +1 -4
- package/lib/float-button/view/float-button.d.ts +1 -9
- package/lib/float-button/view/inner-drawer.d.ts +1 -4
- package/lib/index.d.ts +4 -0
- package/lib/index.js +10 -2
- package/lib/input/index.d.ts +24 -0
- package/lib/input/index.js +35 -0
- package/lib/input/main.scss +5 -0
- package/lib/input/style.d.ts +2 -0
- package/lib/input/style.js +4 -0
- package/lib/input/types.d.ts +518 -0
- package/lib/input/types.js +2 -0
- package/lib/tab/index.d.ts +1 -8
- package/lib/tag/index.d.ts +1 -9
- package/lib/text/index.d.ts +1 -7
- package/lib/time-picker/index.d.ts +23 -0
- package/lib/time-picker/index.js +81 -0
- package/lib/time-picker/main.scss +6 -0
- package/lib/time-picker/style.d.ts +2 -0
- package/lib/time-picker/style.js +4 -0
- package/lib/time-picker/types.d.ts +20 -0
- package/lib/time-picker/types.js +2 -0
- package/lib/utils/dingtalk.d.ts +4 -0
- package/lib/utils/dingtalk.js +60 -0
- package/package.json +39 -1
- package/es/card/main.scss +0 -141
- package/es/core/variables.scss +0 -35
- package/es/feedback/main.scss +0 -45
- package/es/float-button/main.scss +0 -97
- package/es/tab/main.scss +0 -10
- package/es/tag/main.scss +0 -9
- package/es/text/main.scss +0 -19
package/lib/feedback/index.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { FeedbackProps } from './types';
|
|
3
2
|
import Good from './view/good';
|
|
4
3
|
export * from './types';
|
|
5
|
-
declare const _default: {
|
|
6
|
-
new (props: FeedbackProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<FeedbackProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, unknown>;
|
|
7
|
-
contextType?: React.Context<any> | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
displayName: string;
|
|
4
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<FeedbackProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, undefined, {}> & {
|
|
10
5
|
Good: typeof Good;
|
|
11
6
|
};
|
|
12
7
|
export default _default;
|
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const FloatButtonWithSub: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
displayName: string | undefined;
|
|
7
|
-
defaultProps: Partial<import("./types").FloatButtonProps & import("react").RefAttributes<import("./types").FloatButtonRef>> | undefined;
|
|
8
|
-
propTypes: import("react").WeakValidationMap<import("./types").FloatButtonProps & import("react").RefAttributes<import("./types").FloatButtonRef>> | undefined;
|
|
9
|
-
$$typeof: symbol;
|
|
10
|
-
} & {
|
|
11
|
-
Backtop: {
|
|
12
|
-
new (props: import("./types").BacktopProps & import("react").RefAttributes<import("./types").BacktopRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("./types").BacktopProps & import("react").RefAttributes<import("./types").BacktopRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("./types").BacktopRef>;
|
|
13
|
-
contextType?: import("react").Context<any> | undefined;
|
|
14
|
-
} & {
|
|
15
|
-
displayName: string | undefined;
|
|
16
|
-
defaultProps: Partial<import("./types").BacktopProps & import("react").RefAttributes<import("./types").BacktopRef>> | undefined;
|
|
17
|
-
propTypes: import("react").WeakValidationMap<import("./types").BacktopProps & import("react").RefAttributes<import("./types").BacktopRef>> | undefined;
|
|
18
|
-
$$typeof: symbol;
|
|
19
|
-
};
|
|
20
|
-
Drawer: {
|
|
21
|
-
new (props: import("./types").FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("./types").FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, unknown>;
|
|
22
|
-
contextType?: import("react").Context<any> | undefined;
|
|
23
|
-
} & {};
|
|
24
|
-
InnerDrawer: {
|
|
25
|
-
new (props: import("./types").FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("./types").FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, unknown>;
|
|
26
|
-
contextType?: import("react").Context<any> | undefined;
|
|
27
|
-
} & {};
|
|
2
|
+
declare const FloatButtonWithSub: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<import("./types").FloatButtonProps & import("react").RefAttributes<import("./types").FloatButtonRef>, "key" | keyof import("./types").FloatButtonProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("./types").FloatButtonRef, {}> & {
|
|
3
|
+
Backtop: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<import("./types").BacktopProps & import("react").RefAttributes<import("./types").BacktopRef>, "key" | keyof import("./types").BacktopProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("./types").BacktopRef, {}>;
|
|
4
|
+
Drawer: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("./types").FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, undefined, {}>;
|
|
5
|
+
InnerDrawer: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("./types").FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, undefined, {}>;
|
|
28
6
|
};
|
|
29
7
|
export type { BacktopRef, BacktopProps, FloatButtonRef, FloatButtonProps, FloatButtonDrawerProps, FloatButtonInnerDrawerProps, Edge, Margin, Position, RequiredParts, ScreenRatioPosition, Size, TriggerType, } from './types';
|
|
30
8
|
export default FloatButtonWithSub;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BacktopProps, BacktopRef } from '../types';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
new (props: BacktopProps & React.RefAttributes<BacktopRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<BacktopProps & React.RefAttributes<BacktopRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, BacktopRef>;
|
|
5
|
-
contextType?: React.Context<any> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
displayName: string | undefined;
|
|
8
|
-
defaultProps: Partial<BacktopProps & React.RefAttributes<BacktopRef>> | undefined;
|
|
9
|
-
propTypes: React.WeakValidationMap<BacktopProps & React.RefAttributes<BacktopRef>> | undefined;
|
|
10
|
-
$$typeof: symbol;
|
|
11
|
-
};
|
|
3
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<BacktopProps & React.RefAttributes<BacktopRef>, "key" | keyof BacktopProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, BacktopRef, {}>;
|
|
12
4
|
export default _default;
|
|
@@ -6,8 +6,5 @@ export interface DrawerProps extends Omit<NextDrawerProps, 'triggerType' | 'cont
|
|
|
6
6
|
triggerType?: TriggerType | TriggerType[];
|
|
7
7
|
}
|
|
8
8
|
export declare function Drawer({ prefix, children, trigger, triggerType, visible, onVisibleChange, ...rests }: DrawerProps): React.JSX.Element;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
new (props: FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, unknown>;
|
|
11
|
-
contextType?: React.Context<any> | undefined;
|
|
12
|
-
} & {};
|
|
9
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<FloatButtonDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, undefined, {}>;
|
|
13
10
|
export default _default;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FloatButtonProps, FloatButtonRef } from '../types';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
new (props: FloatButtonProps & React.RefAttributes<FloatButtonRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<FloatButtonProps & React.RefAttributes<FloatButtonRef> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, FloatButtonRef>;
|
|
5
|
-
contextType?: React.Context<any> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
displayName: string | undefined;
|
|
8
|
-
defaultProps: Partial<FloatButtonProps & React.RefAttributes<FloatButtonRef>> | undefined;
|
|
9
|
-
propTypes: React.WeakValidationMap<FloatButtonProps & React.RefAttributes<FloatButtonRef>> | undefined;
|
|
10
|
-
$$typeof: symbol;
|
|
11
|
-
};
|
|
3
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<FloatButtonProps & React.RefAttributes<FloatButtonRef>, "key" | keyof FloatButtonProps> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, FloatButtonRef, {}>;
|
|
12
4
|
export default _default;
|
|
@@ -19,8 +19,5 @@ export interface InnerDrawerProps {
|
|
|
19
19
|
afterClose?: () => void;
|
|
20
20
|
}
|
|
21
21
|
export declare function InnerDrawer({ className, prefix, target, children, trigger, triggerType, visible, onVisibleChange, closable, title, cache, width, beforeOpen, beforeClose, afterOpen, afterClose, }: InnerDrawerProps): React.JSX.Element;
|
|
22
|
-
declare const _default: {
|
|
23
|
-
new (props: FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, context?: unknown): import("@alifd/next/types/config-provider/types").ConfiguredComponent<FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, unknown>;
|
|
24
|
-
contextType?: React.Context<any> | undefined;
|
|
25
|
-
} & {};
|
|
22
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<FloatButtonInnerDrawerProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, undefined, {}>;
|
|
26
23
|
export default _default;
|
package/lib/index.d.ts
CHANGED
|
@@ -5,4 +5,8 @@ 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 Calendar } from './calendar';
|
|
8
12
|
export declare const version: string;
|
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.Tab = exports.Tag = exports.Text = exports.FloatButton = exports.Feedback = exports.Card = exports.Button = void 0;
|
|
6
|
+
exports.version = exports.Calendar = exports.TimePicker = exports.DatePicker = exports.Input = 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");
|
|
@@ -18,4 +18,12 @@ var tag_1 = require("./tag");
|
|
|
18
18
|
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return __importDefault(tag_1).default; } });
|
|
19
19
|
var tab_1 = require("./tab");
|
|
20
20
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return __importDefault(tab_1).default; } });
|
|
21
|
-
|
|
21
|
+
var input_1 = require("./input");
|
|
22
|
+
Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
|
|
23
|
+
var date_picker_1 = require("./date-picker");
|
|
24
|
+
Object.defineProperty(exports, "DatePicker", { enumerable: true, get: function () { return __importDefault(date_picker_1).default; } });
|
|
25
|
+
var time_picker_1 = require("./time-picker");
|
|
26
|
+
Object.defineProperty(exports, "TimePicker", { enumerable: true, get: function () { return __importDefault(time_picker_1).default; } });
|
|
27
|
+
var calendar_1 = require("./calendar");
|
|
28
|
+
Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return __importDefault(calendar_1).default; } });
|
|
29
|
+
exports.version = '0.1.11';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component 输入框
|
|
3
|
+
* @en Input
|
|
4
|
+
* @type 通用 - General
|
|
5
|
+
* @remarks 同 Next Input,按钮用于开始一个即时操作。- Same as Next.Input, Input used to trigger an action.
|
|
6
|
+
* @when 标记一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。- Inputs are used for emphasizing important functions on your page.
|
|
7
|
+
* @others
|
|
8
|
+
* ## 无障碍键盘操作指南
|
|
9
|
+
* | 按键 | 说明 |
|
|
10
|
+
* | :---- | :---------- |
|
|
11
|
+
* | Enter | 触发 onClick 事件 |
|
|
12
|
+
* | SPACE | 触发 onClick 事件 |
|
|
13
|
+
* @othersEn
|
|
14
|
+
* ## ARIA and KeyBoard
|
|
15
|
+
* | KeyBoard | Description |
|
|
16
|
+
* | :---------- | :------------------------------ |
|
|
17
|
+
* | Enter | Trigger the onClick event |
|
|
18
|
+
* | SPACE | Trigger the onClick event |
|
|
19
|
+
*/
|
|
20
|
+
import React from 'react';
|
|
21
|
+
import { Input as NextInput } from '@alifd/next';
|
|
22
|
+
export * from './types';
|
|
23
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<NextInput>, string | number | symbol> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, NextInput, {}>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @component 输入框
|
|
4
|
+
* @en Input
|
|
5
|
+
* @type 通用 - General
|
|
6
|
+
* @remarks 同 Next Input,按钮用于开始一个即时操作。- Same as Next.Input, Input used to trigger an action.
|
|
7
|
+
* @when 标记一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。- Inputs are used for emphasizing important functions on your page.
|
|
8
|
+
* @others
|
|
9
|
+
* ## 无障碍键盘操作指南
|
|
10
|
+
* | 按键 | 说明 |
|
|
11
|
+
* | :---- | :---------- |
|
|
12
|
+
* | Enter | 触发 onClick 事件 |
|
|
13
|
+
* | SPACE | 触发 onClick 事件 |
|
|
14
|
+
* @othersEn
|
|
15
|
+
* ## ARIA and KeyBoard
|
|
16
|
+
* | KeyBoard | Description |
|
|
17
|
+
* | :---------- | :------------------------------ |
|
|
18
|
+
* | Enter | Trigger the onClick event |
|
|
19
|
+
* | SPACE | Trigger the onClick event |
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const tslib_1 = require("tslib");
|
|
23
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
24
|
+
const next_1 = require("@alifd/next");
|
|
25
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
26
|
+
const utils_1 = require("../utils");
|
|
27
|
+
const Input = (0, react_1.forwardRef)((_a, ref) => {
|
|
28
|
+
var { className, size = 'small' } = _a, props = tslib_1.__rest(_a, ["className", "size"]);
|
|
29
|
+
return (react_1.default.createElement(next_1.Input, Object.assign({}, props, { className: (0, classnames_1.default)(`${utils_1.PREFIX_DEFAULT}input`, className), size: size, ref: ref })));
|
|
30
|
+
});
|
|
31
|
+
const InputWithSub = (0, utils_1.assignSubComponent)(Input, {
|
|
32
|
+
displayName: 'Input',
|
|
33
|
+
});
|
|
34
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
35
|
+
exports.default = next_1.ConfigProvider.config(InputWithSub);
|