rc-cascader
Advanced tools
Comparing version 3.7.2 to 3.7.3
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select'; | ||
import type { Placement } from 'rc-select/lib/BaseSelect'; | ||
import type { BuildInPlacements } from 'rc-trigger/lib/interface'; | ||
import * as React from 'react'; | ||
@@ -60,2 +61,3 @@ import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil'; | ||
placement?: Placement; | ||
builtinPlacements?: BuildInPlacements; | ||
/** @deprecated Use `onDropdownVisibleChange` instead */ | ||
@@ -62,0 +64,0 @@ onPopupVisibleChange?: (open: boolean) => void; |
@@ -9,2 +9,2 @@ import * as React from 'react'; | ||
} | ||
export default function Checkbox({ prefixCls, checked, halfChecked, disabled, onClick, }: CheckboxProps): JSX.Element; | ||
export default function Checkbox({ prefixCls, checked, halfChecked, disabled, onClick, }: CheckboxProps): React.JSX.Element; |
@@ -20,2 +20,2 @@ import * as React from 'react'; | ||
} | ||
export default function Column({ prefixCls, multiple, options, activeValue, prevValuePath, onToggleOpen, onSelect, onActive, checkedSet, halfCheckedSet, loadingKeys, isSelectable, }: ColumnProps): JSX.Element; | ||
export default function Column({ prefixCls, multiple, options, activeValue, prevValuePath, onToggleOpen, onSelect, onActive, checkedSet, halfCheckedSet, loadingKeys, isSelectable, }: ColumnProps): React.JSX.Element; |
@@ -0,5 +1,5 @@ | ||
import type { RefOptionListProps } from 'rc-select/lib/OptionList'; | ||
import * as React from 'react'; | ||
import type { RefOptionListProps } from 'rc-select/lib/OptionList'; | ||
import type { DefaultOptionType, InternalFieldNames, SingleValueType } from '../Cascader'; | ||
declare const _default: (ref: React.Ref<RefOptionListProps>, options: DefaultOptionType[], fieldNames: InternalFieldNames, activeValueCells: React.Key[], setActiveValueCells: (activeValueCells: React.Key[]) => void, onKeyBoardSelect: (valueCells: SingleValueType, option: DefaultOptionType) => void) => void; | ||
export default _default; |
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import * as React from 'react'; | ||
import { useBaseProps } from 'rc-select'; | ||
import KeyCode from "rc-util/es/KeyCode"; | ||
import * as React from 'react'; | ||
import { SEARCH_MARK } from '../hooks/useSearchOptions'; | ||
@@ -114,2 +114,5 @@ export default (function (ref, options, fieldNames, activeValueCells, setActiveValueCells, onKeyBoardSelect) { | ||
{ | ||
if (searchValue) { | ||
break; | ||
} | ||
if (rtl) { | ||
@@ -124,2 +127,5 @@ nextColumn(); | ||
{ | ||
if (searchValue) { | ||
break; | ||
} | ||
if (rtl) { | ||
@@ -126,0 +132,0 @@ prevColumn(); |
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select'; | ||
import type { Placement } from 'rc-select/lib/BaseSelect'; | ||
import type { BuildInPlacements } from 'rc-trigger/lib/interface'; | ||
import * as React from 'react'; | ||
@@ -60,2 +61,3 @@ import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil'; | ||
placement?: Placement; | ||
builtinPlacements?: BuildInPlacements; | ||
/** @deprecated Use `onDropdownVisibleChange` instead */ | ||
@@ -62,0 +64,0 @@ onPopupVisibleChange?: (open: boolean) => void; |
@@ -9,2 +9,2 @@ import * as React from 'react'; | ||
} | ||
export default function Checkbox({ prefixCls, checked, halfChecked, disabled, onClick, }: CheckboxProps): JSX.Element; | ||
export default function Checkbox({ prefixCls, checked, halfChecked, disabled, onClick, }: CheckboxProps): React.JSX.Element; |
@@ -20,2 +20,2 @@ import * as React from 'react'; | ||
} | ||
export default function Column({ prefixCls, multiple, options, activeValue, prevValuePath, onToggleOpen, onSelect, onActive, checkedSet, halfCheckedSet, loadingKeys, isSelectable, }: ColumnProps): JSX.Element; | ||
export default function Column({ prefixCls, multiple, options, activeValue, prevValuePath, onToggleOpen, onSelect, onActive, checkedSet, halfCheckedSet, loadingKeys, isSelectable, }: ColumnProps): React.JSX.Element; |
@@ -0,5 +1,5 @@ | ||
import type { RefOptionListProps } from 'rc-select/lib/OptionList'; | ||
import * as React from 'react'; | ||
import type { RefOptionListProps } from 'rc-select/lib/OptionList'; | ||
import type { DefaultOptionType, InternalFieldNames, SingleValueType } from '../Cascader'; | ||
declare const _default: (ref: React.Ref<RefOptionListProps>, options: DefaultOptionType[], fieldNames: InternalFieldNames, activeValueCells: React.Key[], setActiveValueCells: (activeValueCells: React.Key[]) => void, onKeyBoardSelect: (valueCells: SingleValueType, option: DefaultOptionType) => void) => void; | ||
export default _default; |
@@ -11,5 +11,5 @@ "use strict"; | ||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
var React = _interopRequireWildcard(require("react")); | ||
var _rcSelect = require("rc-select"); | ||
var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode")); | ||
var React = _interopRequireWildcard(require("react")); | ||
var _useSearchOptions = require("../hooks/useSearchOptions"); | ||
@@ -125,2 +125,5 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
{ | ||
if (searchValue) { | ||
break; | ||
} | ||
if (rtl) { | ||
@@ -135,2 +138,5 @@ nextColumn(); | ||
{ | ||
if (searchValue) { | ||
break; | ||
} | ||
if (rtl) { | ||
@@ -137,0 +143,0 @@ prevColumn(); |
{ | ||
"name": "rc-cascader", | ||
"version": "3.7.2", | ||
"version": "3.7.3", | ||
"description": "cascade select ui component for react", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
"cross-env": "^7.0.0", | ||
"dumi": "^1.1.12", | ||
"dumi": "^2.1.10", | ||
"enzyme": "^3.3.0", | ||
@@ -65,3 +65,4 @@ "enzyme-adapter-react-16": "^1.0.2", | ||
"react-dom": "^16.0.0", | ||
"typescript": "^4.4.2" | ||
"typescript": "^4.4.2", | ||
"less": "^3.13.1" | ||
}, | ||
@@ -68,0 +69,0 @@ "dependencies": { |
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
159091
3021
3
22