@alifd/next
Advanced tools
Comparing version 1.27.18 to 1.27.19
@@ -207,4 +207,5 @@ import { __assign, __extends, __rest } from "tslib"; | ||
}; | ||
Calendar.displayName = 'Calendar'; | ||
return Calendar; | ||
}(Component)); | ||
export default polyfill(Calendar); |
@@ -80,3 +80,4 @@ import { __assign, __read, __rest, __spreadArray } from "tslib"; | ||
if (scrollWidth) { | ||
style_1.paddingRight = "".concat(dom.getStyle(document.body, 'paddingRight') + dom.scrollbar().width, "px"); | ||
style_1.paddingRight = "".concat(dom.getStyle(document.body, 'paddingRight') + | ||
dom.scrollbar().width, "px"); | ||
} | ||
@@ -244,2 +245,3 @@ } | ||
}; | ||
Dialog.displayName = 'Dialog'; | ||
export default Dialog; |
@@ -245,4 +245,5 @@ import { __assign, __extends, __read, __rest } from "tslib"; | ||
}; | ||
Dialog.displayName = 'Dialog'; | ||
return Dialog; | ||
}(Component)); | ||
export default Dialog; |
@@ -242,2 +242,3 @@ import { __assign, __read, __rest, __spreadArray } from "tslib"; | ||
}; | ||
Drawer.displayName = 'Drawer'; | ||
export default Drawer; |
@@ -70,4 +70,5 @@ import { __assign, __extends, __rest } from "tslib"; | ||
}; | ||
List.displayName = 'List'; | ||
return List; | ||
}(Component)); | ||
export default ConfigProvider.config(polyfill(List)); |
@@ -88,2 +88,3 @@ import { __assign, __extends, __read, __spreadArray } from "tslib"; | ||
}; | ||
Message.displayName = 'Message'; | ||
Message.defaultProps = { | ||
@@ -90,0 +91,0 @@ prefix: 'next-', |
@@ -336,4 +336,5 @@ import { __assign, __extends } from "tslib"; | ||
}; | ||
Rating.displayName = 'Rating'; | ||
return Rating; | ||
}(Component)); | ||
export default polyfill(Rating); |
@@ -17,3 +17,3 @@ import { __assign, __extends, __read, __rest, __spreadArray } from "tslib"; | ||
* Search | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用AutoComplete 的 api | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用 AutoComplete 的 api | ||
*/ | ||
@@ -43,3 +43,3 @@ var Search = /** @class */ (function (_super) { | ||
_this.highlightKey = ''; | ||
// 若有匹配项,执行onSearch | ||
// 若有匹配项,执行 onSearch | ||
if (highlightKey) { | ||
@@ -51,3 +51,3 @@ _this.props.onSearch(value, _this.state.filterValue); | ||
_this.onPressEnter = function () { | ||
// 有匹配项情况,enter会触发 onChange,由那里执行onSearch | ||
// 有匹配项情况,enter 会触发 onChange,由那里执行 onSearch | ||
if (_this.highlightKey) { | ||
@@ -248,4 +248,5 @@ return; | ||
}; | ||
Search.displayName = 'Search'; | ||
return Search; | ||
}(React.Component)); | ||
export default polyfill(Search); |
@@ -161,4 +161,5 @@ import { __assign, __extends, __rest } from "tslib"; | ||
}; | ||
Tag.displayName = 'Tag'; | ||
return Tag; | ||
}(Component)); | ||
export default ConfigProvider.config(Tag); |
@@ -205,4 +205,5 @@ import { __assign, __extends, __rest } from "tslib"; | ||
}; | ||
TimePicker.displayName = 'TimePicker'; | ||
return TimePicker; | ||
}(Component)); | ||
export default polyfill(TimePicker); |
@@ -445,4 +445,5 @@ import { __assign, __extends } from "tslib"; | ||
}; | ||
Transfer.displayName = 'Transfer'; | ||
return Transfer; | ||
}(Component)); | ||
export default config(polyfill(Transfer)); |
@@ -732,4 +732,5 @@ import { __assign, __extends, __read, __rest, __spreadArray } from "tslib"; | ||
}; | ||
TreeSelect.displayName = 'TreeSelect'; | ||
return TreeSelect; | ||
}(Component)); | ||
export default polyfill(TreeSelect); |
var next = require('./lib/index.js'); | ||
next.version = '1.27.18'; | ||
next.version = '1.27.19'; | ||
module.exports = next; |
@@ -42,2 +42,3 @@ import React, { Component, type MouseEvent } from 'react'; | ||
static defaultProps: CalendarProps; | ||
static displayName: string; | ||
MODES: CalendarMode[]; | ||
@@ -44,0 +45,0 @@ today: Moment; |
@@ -209,4 +209,5 @@ "use strict"; | ||
}; | ||
Calendar.displayName = 'Calendar'; | ||
return Calendar; | ||
}(react_1.Component)); | ||
exports.default = (0, react_lifecycles_compat_1.polyfill)(Calendar); |
import React from 'react'; | ||
import type { DialogV2Props } from './types'; | ||
declare const Dialog: (props: DialogV2Props) => React.JSX.Element | null; | ||
declare const Dialog: { | ||
(props: DialogV2Props): React.JSX.Element | null; | ||
displayName: string; | ||
}; | ||
export default Dialog; |
@@ -82,3 +82,4 @@ "use strict"; | ||
if (scrollWidth) { | ||
style_1.paddingRight = "".concat(util_1.dom.getStyle(document.body, 'paddingRight') + util_1.dom.scrollbar().width, "px"); | ||
style_1.paddingRight = "".concat(util_1.dom.getStyle(document.body, 'paddingRight') + | ||
util_1.dom.scrollbar().width, "px"); | ||
} | ||
@@ -246,2 +247,3 @@ } | ||
}; | ||
Dialog.displayName = 'Dialog'; | ||
exports.default = Dialog; |
@@ -87,2 +87,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
overlay: InstanceType<typeof Overlay> | null; | ||
@@ -89,0 +90,0 @@ private _lastDialogHeight; |
@@ -247,4 +247,5 @@ "use strict"; | ||
}; | ||
Dialog.displayName = 'Dialog'; | ||
return Dialog; | ||
}(react_1.Component)); | ||
exports.default = Dialog; |
import React from 'react'; | ||
import type { DrawerV2Props } from './types'; | ||
declare const Drawer: (props: DrawerV2Props) => React.JSX.Element | null; | ||
declare const Drawer: { | ||
(props: DrawerV2Props): React.JSX.Element | null; | ||
displayName: string; | ||
}; | ||
export default Drawer; |
@@ -244,2 +244,3 @@ "use strict"; | ||
}; | ||
Drawer.displayName = 'Drawer'; | ||
exports.default = Drawer; |
@@ -37,2 +37,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
render(): React.JSX.Element; | ||
@@ -39,0 +40,0 @@ } |
@@ -72,4 +72,5 @@ "use strict"; | ||
}; | ||
List.displayName = 'List'; | ||
return List; | ||
}(react_1.Component)); | ||
exports.default = config_provider_1.default.config((0, react_lifecycles_compat_1.polyfill)(List)); |
@@ -30,2 +30,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
static config: (config: toast2.MessageConfig) => void; | ||
@@ -32,0 +33,0 @@ static open: Toast2['open']; |
@@ -90,2 +90,3 @@ "use strict"; | ||
}; | ||
Message.displayName = 'Message'; | ||
Message.defaultProps = { | ||
@@ -92,0 +93,0 @@ prefix: 'next-', |
@@ -56,2 +56,3 @@ import React, { Component, type KeyboardEvent, type MouseEvent } from 'react'; | ||
}; | ||
static displayName: string; | ||
static currentValue(min: number, max: number, hoverValue: number, stateValue: number): number; | ||
@@ -58,0 +59,0 @@ static getDerivedStateFromProps(nextProps: RatingProps): Partial<RatingState>; |
@@ -338,4 +338,5 @@ "use strict"; | ||
}; | ||
Rating.displayName = 'Rating'; | ||
return Rating; | ||
}(react_1.Component)); | ||
exports.default = (0, react_lifecycles_compat_1.polyfill)(Rating); |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { SearchProps } from './types'; | ||
import { InputProps } from '../input'; | ||
import { type SearchProps } from './types'; | ||
import { type AutoCompleteProps } from '../select'; | ||
@@ -33,3 +32,3 @@ declare const AutoComplete: import("../config-provider/types").ConfiguredComponentClass<AutoCompleteProps & import("../config-provider/types").ComponentCommonProps, { | ||
isAutoComplete: boolean; | ||
inputRef: import("../input/input").default<InputProps>; | ||
inputRef: import("../input/input").default<import("../input").InputProps>; | ||
valueDataSource: { | ||
@@ -57,3 +56,3 @@ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined; | ||
saveSelectRef: (ref: HTMLElement | null) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<InputProps>> & Pick<import("../input/input").default<InputProps>, "focus" | "getInputNode">) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<import("../input").InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<import("../input").InputProps>> & Pick<import("../input/input").default<import("../input").InputProps>, "focus" | "getInputNode">) => void; | ||
focusInput(): void; | ||
@@ -92,3 +91,3 @@ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean): void; | ||
* Search | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用AutoComplete 的 api | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用 AutoComplete 的 api | ||
*/ | ||
@@ -151,2 +150,3 @@ declare class Search extends React.Component<SearchProps, SearchState> { | ||
}; | ||
static displayName: string; | ||
static getDerivedStateFromProps(nextProps: SearchProps, prevState: SearchState): Partial<SearchState> | null; | ||
@@ -189,3 +189,3 @@ highlightKey: unknown; | ||
isAutoComplete: boolean; | ||
inputRef: import("../input/input").default<InputProps>; | ||
inputRef: import("../input/input").default<import("../input").InputProps>; | ||
valueDataSource: { | ||
@@ -213,3 +213,3 @@ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined; | ||
saveSelectRef: (ref: HTMLElement | null) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<InputProps>> & Pick<import("../input/input").default<InputProps>, "focus" | "getInputNode">) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<import("../input").InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<import("../input").InputProps>> & Pick<import("../input/input").default<import("../input").InputProps>, "focus" | "getInputNode">) => void; | ||
focusInput(): void; | ||
@@ -216,0 +216,0 @@ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean): void; |
@@ -19,3 +19,3 @@ "use strict"; | ||
* Search | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用AutoComplete 的 api | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用 AutoComplete 的 api | ||
*/ | ||
@@ -45,3 +45,3 @@ var Search = /** @class */ (function (_super) { | ||
_this.highlightKey = ''; | ||
// 若有匹配项,执行onSearch | ||
// 若有匹配项,执行 onSearch | ||
if (highlightKey) { | ||
@@ -53,3 +53,3 @@ _this.props.onSearch(value, _this.state.filterValue); | ||
_this.onPressEnter = function () { | ||
// 有匹配项情况,enter会触发 onChange,由那里执行onSearch | ||
// 有匹配项情况,enter 会触发 onChange,由那里执行 onSearch | ||
if (_this.highlightKey) { | ||
@@ -250,4 +250,5 @@ return; | ||
}; | ||
Search.displayName = 'Search'; | ||
return Search; | ||
}(react_1.default.Component)); | ||
exports.default = (0, react_lifecycles_compat_1.polyfill)(Search); |
@@ -163,4 +163,5 @@ "use strict"; | ||
}; | ||
Tag.displayName = 'Tag'; | ||
return Tag; | ||
}(react_1.Component)); | ||
exports.default = config_provider_1.default.config(Tag); |
@@ -79,2 +79,3 @@ import React, { Component, type HTMLAttributes, type SyntheticEvent, type KeyboardEvent } from 'react'; | ||
}; | ||
static displayName: string; | ||
inputAsString: boolean; | ||
@@ -81,0 +82,0 @@ readonly props: InnerTimePickerProps; |
@@ -207,4 +207,5 @@ "use strict"; | ||
}; | ||
TimePicker.displayName = 'TimePicker'; | ||
return TimePicker; | ||
}(react_1.Component)); | ||
exports.default = (0, react_lifecycles_compat_1.polyfill)(TimePicker); |
@@ -173,2 +173,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
static normalizeValue(value?: string | Array<string>): string[]; | ||
@@ -175,0 +176,0 @@ static getDerivedStateFromProps(nextProps: TransferProps, prevState: TransferState): Partial<TransferState>; |
@@ -447,4 +447,5 @@ "use strict"; | ||
}; | ||
Transfer.displayName = 'Transfer'; | ||
return Transfer; | ||
}(react_1.Component)); | ||
exports.default = config((0, react_lifecycles_compat_1.polyfill)(Transfer)); |
@@ -104,2 +104,3 @@ import React, { type ReactNode, Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
tree: InstanceType<typeof Tree>; | ||
@@ -106,0 +107,0 @@ select: InstanceType<typeof Select>; |
@@ -734,4 +734,5 @@ "use strict"; | ||
}; | ||
TreeSelect.displayName = 'TreeSelect'; | ||
return TreeSelect; | ||
}(react_1.Component)); | ||
exports.default = (0, react_lifecycles_compat_1.polyfill)(TreeSelect); |
{ | ||
"name": "@alifd/next", | ||
"version": "1.27.18", | ||
"version": "1.27.19", | ||
"description": "A configurable component library for web built on React.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,2 +42,3 @@ import React, { Component, type MouseEvent } from 'react'; | ||
static defaultProps: CalendarProps; | ||
static displayName: string; | ||
MODES: CalendarMode[]; | ||
@@ -44,0 +45,0 @@ today: Moment; |
import React from 'react'; | ||
import type { DialogV2Props } from './types'; | ||
declare const Dialog: (props: DialogV2Props) => React.JSX.Element | null; | ||
declare const Dialog: { | ||
(props: DialogV2Props): React.JSX.Element | null; | ||
displayName: string; | ||
}; | ||
export default Dialog; |
@@ -87,2 +87,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
overlay: InstanceType<typeof Overlay> | null; | ||
@@ -89,0 +90,0 @@ private _lastDialogHeight; |
import React from 'react'; | ||
import type { DrawerV2Props } from './types'; | ||
declare const Drawer: (props: DrawerV2Props) => React.JSX.Element | null; | ||
declare const Drawer: { | ||
(props: DrawerV2Props): React.JSX.Element | null; | ||
displayName: string; | ||
}; | ||
export default Drawer; |
@@ -37,2 +37,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
render(): React.JSX.Element; | ||
@@ -39,0 +40,0 @@ } |
@@ -30,2 +30,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
static config: (config: toast2.MessageConfig) => void; | ||
@@ -32,0 +33,0 @@ static open: Toast2['open']; |
@@ -56,2 +56,3 @@ import React, { Component, type KeyboardEvent, type MouseEvent } from 'react'; | ||
}; | ||
static displayName: string; | ||
static currentValue(min: number, max: number, hoverValue: number, stateValue: number): number; | ||
@@ -58,0 +59,0 @@ static getDerivedStateFromProps(nextProps: RatingProps): Partial<RatingState>; |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { SearchProps } from './types'; | ||
import { InputProps } from '../input'; | ||
import { type SearchProps } from './types'; | ||
import { type AutoCompleteProps } from '../select'; | ||
@@ -33,3 +32,3 @@ declare const AutoComplete: import("../config-provider/types").ConfiguredComponentClass<AutoCompleteProps & import("../config-provider/types").ComponentCommonProps, { | ||
isAutoComplete: boolean; | ||
inputRef: import("../input/input").default<InputProps>; | ||
inputRef: import("../input/input").default<import("../input").InputProps>; | ||
valueDataSource: { | ||
@@ -57,3 +56,3 @@ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined; | ||
saveSelectRef: (ref: HTMLElement | null) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<InputProps>> & Pick<import("../input/input").default<InputProps>, "focus" | "getInputNode">) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<import("../input").InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<import("../input").InputProps>> & Pick<import("../input/input").default<import("../input").InputProps>, "focus" | "getInputNode">) => void; | ||
focusInput(): void; | ||
@@ -92,3 +91,3 @@ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean): void; | ||
* Search | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用AutoComplete 的 api | ||
* 输入框部分继承 Select.AutoComplete 的能力,可以直接用 AutoComplete 的 api | ||
*/ | ||
@@ -151,2 +150,3 @@ declare class Search extends React.Component<SearchProps, SearchState> { | ||
}; | ||
static displayName: string; | ||
static getDerivedStateFromProps(nextProps: SearchProps, prevState: SearchState): Partial<SearchState> | null; | ||
@@ -189,3 +189,3 @@ highlightKey: unknown; | ||
isAutoComplete: boolean; | ||
inputRef: import("../input/input").default<InputProps>; | ||
inputRef: import("../input/input").default<import("../input").InputProps>; | ||
valueDataSource: { | ||
@@ -213,3 +213,3 @@ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined; | ||
saveSelectRef: (ref: HTMLElement | null) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<InputProps>> & Pick<import("../input/input").default<InputProps>, "focus" | "getInputNode">) => void; | ||
saveInputRef: (ref: import("../config-provider/types").ConfiguredComponent<import("../input").InputProps & import("../config-provider/types").ComponentCommonProps, import("../input/input").default<import("../input").InputProps>> & Pick<import("../input/input").default<import("../input").InputProps>, "focus" | "getInputNode">) => void; | ||
focusInput(): void; | ||
@@ -216,0 +216,0 @@ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean): void; |
@@ -79,2 +79,3 @@ import React, { Component, type HTMLAttributes, type SyntheticEvent, type KeyboardEvent } from 'react'; | ||
}; | ||
static displayName: string; | ||
inputAsString: boolean; | ||
@@ -81,0 +82,0 @@ readonly props: InnerTimePickerProps; |
@@ -173,2 +173,3 @@ import React, { Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
static normalizeValue(value?: string | Array<string>): string[]; | ||
@@ -175,0 +176,0 @@ static getDerivedStateFromProps(nextProps: TransferProps, prevState: TransferState): Partial<TransferState>; |
@@ -104,2 +104,3 @@ import React, { type ReactNode, Component } from 'react'; | ||
}; | ||
static displayName: string; | ||
tree: InstanceType<typeof Tree>; | ||
@@ -106,0 +107,0 @@ select: InstanceType<typeof Select>; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37438399
707552