Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-slider-captcha

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-slider-captcha - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

127

dist/index.cjs.js

@@ -10,7 +10,2 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function styleInject(css, ref) {

@@ -47,39 +42,39 @@ if ( ref === void 0 ) ref = {};

var IconArrowRight = function (props) {
return (React__default["default"].createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React__default["default"].createElement("path", { d: "M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z" }),
React__default["default"].createElement("path", { d: "M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z" })));
return (React.createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React.createElement("path", { d: "M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z" }),
React.createElement("path", { d: "M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z" })));
};
var IconCheck = function (props) {
return (React__default["default"].createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React__default["default"].createElement("path", { d: "M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z" })));
return (React.createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React.createElement("path", { d: "M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z" })));
};
var IconLoading = function (props) {
return (React__default["default"].createElement("svg", tslib.__assign({ viewBox: "0 0 120 120", width: "1em", height: "1em" }, props),
React__default["default"].createElement("defs", null,
React__default["default"].createElement("line", { id: "l", x1: "60", x2: "60", y1: "7", y2: "27", stroke: "currentColor", strokeWidth: "11", strokeLinecap: "round" })),
React__default["default"].createElement("g", null,
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(30 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(60 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(90 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(120 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(150 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".37", transform: "rotate(180 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".46", transform: "rotate(210 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".56", transform: "rotate(240 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".66", transform: "rotate(270 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".75", transform: "rotate(300 60,60)" }),
React__default["default"].createElement("use", { xlinkHref: "#l", opacity: ".85", transform: "rotate(330 60,60)" }))));
return (React.createElement("svg", tslib.__assign({ viewBox: "0 0 120 120", width: "1em", height: "1em" }, props),
React.createElement("defs", null,
React.createElement("line", { id: "l", x1: "60", x2: "60", y1: "7", y2: "27", stroke: "currentColor", strokeWidth: "11", strokeLinecap: "round" })),
React.createElement("g", null,
React.createElement("use", { xlinkHref: "#l", opacity: ".27" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(30 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(60 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(90 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(120 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".27", transform: "rotate(150 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".37", transform: "rotate(180 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".46", transform: "rotate(210 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".56", transform: "rotate(240 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".66", transform: "rotate(270 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".75", transform: "rotate(300 60,60)" }),
React.createElement("use", { xlinkHref: "#l", opacity: ".85", transform: "rotate(330 60,60)" }))));
};
var IconRefresh = function (props) {
return (React__default["default"].createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React__default["default"].createElement("path", { d: "M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z" })));
return (React.createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React.createElement("path", { d: "M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z" })));
};
var IconX = function (props) {
return (React__default["default"].createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React__default["default"].createElement("path", { d: "M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z" })));
return (React.createElement("svg", tslib.__assign({ viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor" }, props),
React.createElement("path", { d: "M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z" })));
};

@@ -134,15 +129,15 @@

var className = _a.className, spin = _a.spin, restProps = tslib.__rest(_a, ["className", "spin"]);
return (React__default["default"].createElement("span", tslib.__assign({ className: classnames__default["default"](currentPrefixCls$2, (_b = {}, _b["".concat(currentPrefixCls$2, "-spin")] = spin, _b), className) }, restProps)));
return (React.createElement("span", tslib.__assign({ className: classnames(currentPrefixCls$2, (_b = {}, _b["".concat(currentPrefixCls$2, "-spin")] = spin, _b), className) }, restProps)));
};
var iconMap = {
arrowRight: React__default["default"].createElement(IconArrowRight, null),
check: React__default["default"].createElement(IconCheck, null),
loading: React__default["default"].createElement(IconLoading, null),
refresh: React__default["default"].createElement(IconRefresh, null),
x: React__default["default"].createElement(IconX, null)
arrowRight: React.createElement(IconArrowRight, null),
check: React.createElement(IconCheck, null),
loading: React.createElement(IconLoading, null),
refresh: React.createElement(IconRefresh, null),
x: React.createElement(IconX, null)
};
var SliderIcon = function (_a) {
var type = _a.type, restProps = tslib.__rest(_a, ["type"]);
return React__default["default"].createElement(SliderIconBase, tslib.__assign({}, restProps), iconMap[type]);
return React.createElement(SliderIconBase, tslib.__assign({}, restProps), iconMap[type]);
};

@@ -152,13 +147,13 @@

var LoadingBox = function (_a) {
var _b = _a.icon, icon = _b === void 0 ? React__default["default"].createElement(SliderIcon, { type: "loading", spin: true }) : _b, _c = _a.text, text = _c === void 0 ? '加载中...' : _c, className = _a.className, restProps = tslib.__rest(_a, ["icon", "text", "className"]);
return (React__default["default"].createElement("div", tslib.__assign({ className: classnames__default["default"](currentPrefixCls$1, className) }, restProps),
React__default["default"].createElement("div", { className: "".concat(currentPrefixCls$1, "-icon") }, icon),
React__default["default"].createElement("div", { className: "".concat(currentPrefixCls$1, "-text") }, text)));
var _b = _a.icon, icon = _b === void 0 ? React.createElement(SliderIcon, { type: "loading", spin: true }) : _b, _c = _a.text, text = _c === void 0 ? '加载中...' : _c, className = _a.className, restProps = tslib.__rest(_a, ["icon", "text", "className"]);
return (React.createElement("div", tslib.__assign({ className: classnames(currentPrefixCls$1, className) }, restProps),
React.createElement("div", { className: "".concat(currentPrefixCls$1, "-icon") }, icon),
React.createElement("div", { className: "".concat(currentPrefixCls$1, "-text") }, text)));
};
var currentPrefixCls = "".concat(prefixCls, "-button");
var SliderButton = React__default["default"].forwardRef(function (_a, ref) {
var SliderButton = React.forwardRef(function (_a, ref) {
var _b;
var className = _a.className, disabled = _a.disabled, active = _a.active, success = _a.success, error = _a.error, verify = _a.verify, mobile = _a.mobile, restProps = tslib.__rest(_a, ["className", "disabled", "active", "success", "error", "verify", "mobile"]);
return (React__default["default"].createElement("span", tslib.__assign({ className: classnames__default["default"](currentPrefixCls, className, (_b = {},
return (React.createElement("span", tslib.__assign({ className: classnames(currentPrefixCls, className, (_b = {},
_b["".concat(currentPrefixCls, "-disabled")] = disabled,

@@ -206,12 +201,13 @@ _b["".concat(currentPrefixCls, "-active")] = active,

loading: '加载中...',
errors: (React__default["default"].createElement(React__default["default"].Fragment, null,
React__default["default"].createElement(SliderIcon, { type: "x", style: { fontSize: 20 } }),
moving: null,
errors: (React.createElement(React.Fragment, null,
React.createElement(SliderIcon, { type: "x", style: { fontSize: 20 } }),
" \u5931\u8D25\u8FC7\u591A\uFF0C\u70B9\u51FB\u91CD\u8BD5"))
},
tipIcon: {
default: React__default["default"].createElement(SliderIcon, { type: "arrowRight" }),
loading: React__default["default"].createElement(SliderIcon, { type: "loading", spin: true }),
error: React__default["default"].createElement(SliderIcon, { type: "x" }),
success: React__default["default"].createElement(SliderIcon, { type: "check" }),
refresh: React__default["default"].createElement(SliderIcon, { type: "refresh" })
default: React.createElement(SliderIcon, { type: "arrowRight" }),
loading: React.createElement(SliderIcon, { type: "loading", spin: true }),
error: React.createElement(SliderIcon, { type: "x" }),
success: React.createElement(SliderIcon, { type: "check" }),
refresh: React.createElement(SliderIcon, { type: "refresh" })
}

@@ -535,2 +531,5 @@ };

}
if (status === exports.Status.Moving) {
return tipText.moving;
}
if (isLimitErrors) {

@@ -555,3 +554,3 @@ return tipText.errors;

// 提供给外部
React__default["default"].useImperativeHandle(actionRef, function () { return ({
React.useImperativeHandle(actionRef, function () { return ({
refresh: refresh,

@@ -562,16 +561,16 @@ get status() {

}); });
return (React__default["default"].createElement("div", { className: classnames__default["default"](prefixCls, className, "".concat(prefixCls, "-").concat(mode), (_b = {},
return (React.createElement("div", { className: classnames(prefixCls, className, "".concat(prefixCls, "-").concat(mode), (_b = {},
_b["".concat(prefixCls, "-").concat(mode, "-").concat(placement)] = mode === 'float',
_b)), style: tslib.__assign({ width: bgSize.width }, style), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
React__default["default"].createElement("div", { className: "".concat(prefixCls, "-panel"), ref: panelRef },
React__default["default"].createElement("div", { className: "".concat(prefixCls, "-panel-inner"), style: { height: bgSize.height } },
React__default["default"].createElement("div", { className: classnames__default["default"](jigsawPrefixCls, (_c = {}, _c["".concat(jigsawPrefixCls, "-stop")] = isStop, _c)), style: tslib.__assign(tslib.__assign({}, bgSize), (loading || !(jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.bgUrl) ? { display: 'none' } : {})) },
React__default["default"].createElement("img", { className: "".concat(jigsawPrefixCls, "-bg"), style: bgSize, src: jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.bgUrl, alt: "" }),
React__default["default"].createElement("img", { className: "".concat(jigsawPrefixCls, "-puzzle"), style: puzzleSize, src: jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.puzzleUrl, alt: "", "data-id": exports.CurrentTargetType.Puzzle, ref: puzzleRef }),
showRefreshIcon && status !== exports.Status.Success && tipIcon.refresh && (React__default["default"].createElement("div", { className: classnames__default["default"]("".concat(jigsawPrefixCls, "-refresh"), (_d = {},
React.createElement("div", { className: "".concat(prefixCls, "-panel"), ref: panelRef },
React.createElement("div", { className: "".concat(prefixCls, "-panel-inner"), style: { height: bgSize.height } },
React.createElement("div", { className: classnames(jigsawPrefixCls, (_c = {}, _c["".concat(jigsawPrefixCls, "-stop")] = isStop, _c)), style: tslib.__assign(tslib.__assign({}, bgSize), (loading || !(jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.bgUrl) ? { display: 'none' } : {})) },
React.createElement("img", { className: "".concat(jigsawPrefixCls, "-bg"), style: bgSize, src: jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.bgUrl, alt: "" }),
React.createElement("img", { className: "".concat(jigsawPrefixCls, "-puzzle"), style: puzzleSize, src: jigsawImgs === null || jigsawImgs === void 0 ? void 0 : jigsawImgs.puzzleUrl, alt: "", "data-id": exports.CurrentTargetType.Puzzle, ref: puzzleRef }),
showRefreshIcon && status !== exports.Status.Success && tipIcon.refresh && (React.createElement("div", { className: classnames("".concat(jigsawPrefixCls, "-refresh"), (_d = {},
_d["".concat(jigsawPrefixCls, "-refresh-disabled")] = status === exports.Status.Verify || isLimitErrors,
_d)), onClick: handleClickRefreshIcon }, tipIcon.refresh)),
jigsawContent),
React__default["default"].createElement(LoadingBox, tslib.__assign({}, loadingBoxProps, { style: tslib.__assign(tslib.__assign(tslib.__assign({}, loadingBoxProps === null || loadingBoxProps === void 0 ? void 0 : loadingBoxProps.style), bgSize), (loading ? {} : { display: 'none' })) })))),
React__default["default"].createElement("div", { className: classnames__default["default"](controlPrefixCls, (_e = {},
React.createElement(LoadingBox, tslib.__assign({}, loadingBoxProps, { style: tslib.__assign(tslib.__assign(tslib.__assign({}, loadingBoxProps === null || loadingBoxProps === void 0 ? void 0 : loadingBoxProps.style), bgSize), (loading ? {} : { display: 'none' })) })))),
React.createElement("div", { className: classnames(controlPrefixCls, (_e = {},
_e["".concat(controlPrefixCls, "-loading")] = loading,

@@ -584,7 +583,7 @@ _e["".concat(controlPrefixCls, "-moving")] = status === exports.Status.Moving,

_e)), onClick: handleClickControl },
React__default["default"].createElement("div", { className: classnames__default["default"]("".concat(controlPrefixCls, "-indicator")), ref: indicatorRef }),
React__default["default"].createElement(SliderButton, tslib.__assign({}, sliderButtonProps, { className: classnames__default["default"]("".concat(controlPrefixCls, "-button"), sliderButtonProps === null || sliderButtonProps === void 0 ? void 0 : sliderButtonProps.className), disabled: loading, active: status === exports.Status.Moving, verify: status === exports.Status.Verify, success: status === exports.Status.Success, error: status === exports.Status.Error, "data-id": exports.CurrentTargetType.Button, mobile: isSupportTouch, ref: sliderButtonRef }), currentTipIcon),
currentTipText && (React__default["default"].createElement("div", { className: classnames__default["default"]("".concat(controlPrefixCls, "-tips")) }, currentTipText)))));
React.createElement("div", { className: classnames("".concat(controlPrefixCls, "-indicator")), ref: indicatorRef }),
React.createElement(SliderButton, tslib.__assign({}, sliderButtonProps, { className: classnames("".concat(controlPrefixCls, "-button"), sliderButtonProps === null || sliderButtonProps === void 0 ? void 0 : sliderButtonProps.className), disabled: loading, active: status === exports.Status.Moving, verify: status === exports.Status.Verify, success: status === exports.Status.Success, error: status === exports.Status.Error, "data-id": exports.CurrentTargetType.Button, mobile: isSupportTouch, ref: sliderButtonRef }), currentTipIcon),
currentTipText && (React.createElement("div", { className: classnames("".concat(controlPrefixCls, "-tips")) }, currentTipText)))));
};
exports["default"] = SliderCaptcha;
exports.default = SliderCaptcha;

@@ -193,2 +193,3 @@ import { __assign, __rest, __awaiter, __generator } from 'tslib';

loading: '加载中...',
moving: null,
errors: (React.createElement(React.Fragment, null,

@@ -522,2 +523,5 @@ React.createElement(SliderIcon, { type: "x", style: { fontSize: 20 } }),

}
if (status === Status.Moving) {
return tipText.moving;
}
if (isLimitErrors) {

@@ -524,0 +528,0 @@ return tipText.errors;

{
"name": "rc-slider-captcha",
"version": "1.1.9",
"version": "1.1.10",
"description": "React slider captcha component.",

@@ -60,3 +60,3 @@ "keywords": [

"rc-hooks": "^3.0.1",
"tslib": "^2.5.3"
"tslib": "^2.6.0"
},

@@ -68,31 +68,31 @@ "devDependencies": {

"@babel/preset-typescript": "^7.22.5",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-typescript": "^8.5.0",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-typescript": "^11.1.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.0.0",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"antd": "^4.23.1",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"antd": "^4.24.10",
"autoprefixer": "^10.4.14",
"babel-jest": "^29.0.3",
"babel-plugin-import": "^1.13.5",
"create-puzzle": "^1.0.2",
"babel-jest": "^29.5.0",
"babel-plugin-import": "^1.13.6",
"create-puzzle": "^1.0.3",
"cz-conventional-changelog": "^3.3.0",
"doly-icons": "^1.4.1",
"dumi": "^1.1.47",
"dumi": "^1.1.50",
"element-remove": "^1.0.4",
"eslint": "^8.23.1",
"eslint-plugin-react": "^7.31.8",
"eslint": "^8.43.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.0.3",
"jest-environment-jsdom": "^29.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"less": "^4.1.3",
"lint-staged": "^13.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.24",

@@ -105,14 +105,13 @@ "postcss-css-variables": "^0.19.0",

"react-test-renderer": "^18.2.0",
"rollup": "^2.79.0",
"rollup": "^3.25.3",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^14.11.0",
"stylelint-config-css-modules": "^4.1.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^28.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.5.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-no-unsupported-browser-features": "^5.0.4",
"typescript": "^5.1.3",
"util-helpers": "^4.18.0",
"util-helpers": "^4.19.1",
"yorkie": "^2.0.0"

@@ -119,0 +118,0 @@ },

@@ -76,3 +76,3 @@ # rc-slider-captcha

| puzzleSize | 拼图尺寸和偏移调整,默认宽度 `60`,高度为背景图高度。 | `{ width: number; height: number; left: number; top: number; }` | `{ width: 60 }` |
| tipText | 提示文本配置 | `{ default: ReactNode; loading: ReactNode; errors: ReactNode; }` | - |
| tipText | 提示文本配置 | `{ default: ReactNode; loading: ReactNode; moving: ReactNode; errors: ReactNode; }` | - |
| tipIcon | 提示图标配置 | `{ default: ReactNode; loading: ReactNode; error: ReactNode; success: ReactNode; refresh: ReactNode; }` | - |

@@ -79,0 +79,0 @@ | actionRef | 常用操作 | `React.MutableRefObject<ActionType \| undefined>;` | - |

@@ -8,2 +8,3 @@ import React, { ReactNode } from 'react';

loading: ReactNode;
moving: ReactNode;
errors: ReactNode;

@@ -10,0 +11,0 @@ };

@@ -5,7 +5,7 @@ import React from 'react';

declare const iconMap: {
arrowRight: JSX.Element;
check: JSX.Element;
loading: JSX.Element;
refresh: JSX.Element;
x: JSX.Element;
arrowRight: React.JSX.Element;
check: React.JSX.Element;
loading: React.JSX.Element;
refresh: React.JSX.Element;
x: React.JSX.Element;
};

@@ -12,0 +12,0 @@ export interface SliderIconProps extends SliderIconBaseProps {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc