shineout 3.4.3-beta.1 → 3.4.3-beta.2
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/cjs/index.js +1 -1
- package/dist/shineout.js +28 -8
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.3-beta.
|
|
495
|
+
version: '3.4.3-beta.2'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11991,7 +11991,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11991
11991
|
};
|
|
11992
11992
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11993
11993
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11994
|
-
/* harmony default export */ var version = ('3.4.3-beta.
|
|
11994
|
+
/* harmony default export */ var version = ('3.4.3-beta.2');
|
|
11995
11995
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11996
11996
|
|
|
11997
11997
|
|
|
@@ -41581,11 +41581,9 @@ var useTime = function useTime(props) {
|
|
|
41581
41581
|
|
|
41582
41582
|
|
|
41583
41583
|
|
|
41584
|
-
var link_excluded = ["jssStyle", "className", "type", "underline", "disabled", "size", "icon", "href", "
|
|
41585
|
-
// import { } from '@sheinx/hooks';
|
|
41584
|
+
var link_excluded = ["jssStyle", "className", "type", "underline", "disabled", "size", "icon", "href", "children"];
|
|
41586
41585
|
|
|
41587
41586
|
|
|
41588
|
-
// import from icons
|
|
41589
41587
|
|
|
41590
41588
|
|
|
41591
41589
|
|
|
@@ -41600,16 +41598,38 @@ var Link = function Link(props) {
|
|
|
41600
41598
|
size = props.size,
|
|
41601
41599
|
icon = props.icon,
|
|
41602
41600
|
href = props.href,
|
|
41603
|
-
target = props.target,
|
|
41604
41601
|
children = props.children,
|
|
41605
41602
|
restProps = objectWithoutProperties_default()(props, link_excluded);
|
|
41606
41603
|
var linkClasses = (jssStyle === null || jssStyle === void 0 || (_jssStyle$link = jssStyle.link) === null || _jssStyle$link === void 0 ? void 0 : _jssStyle$link.call(jssStyle)) || {};
|
|
41607
41604
|
var rootClass = classnames_default()(className, linkClasses.wrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, linkClasses.underline, underline === true), linkClasses.underlineHover, underline === 'hover'), linkClasses.disabled, disabled), linkClasses.sizeSmall, size === 'small'), linkClasses.sizeLarge, size === 'large'), linkClasses.primary, type === 'primary'), linkClasses.secondary, type === 'secondary'), linkClasses.danger, type === 'danger'), linkClasses.warning, type === 'warning'), linkClasses.success, type === 'success'));
|
|
41605
|
+
var handleClick = function handleClick(e) {
|
|
41606
|
+
if (disabled) {
|
|
41607
|
+
e.preventDefault();
|
|
41608
|
+
e.stopPropagation();
|
|
41609
|
+
} else {
|
|
41610
|
+
var _props$onClick;
|
|
41611
|
+
(_props$onClick = props.onClick) === null || _props$onClick === void 0 || _props$onClick.call(props, e);
|
|
41612
|
+
}
|
|
41613
|
+
};
|
|
41614
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
41615
|
+
if (e.key === 'Enter' && !disabled) {
|
|
41616
|
+
var _props$onClick2;
|
|
41617
|
+
(_props$onClick2 = props.onClick) === null || _props$onClick2 === void 0 || _props$onClick2.call(props, e);
|
|
41618
|
+
} else if (disabled) {
|
|
41619
|
+
e.preventDefault();
|
|
41620
|
+
e.stopPropagation();
|
|
41621
|
+
} else {
|
|
41622
|
+
var _props$onKeyDown;
|
|
41623
|
+
(_props$onKeyDown = props.onKeyDown) === null || _props$onKeyDown === void 0 || _props$onKeyDown.call(props, e);
|
|
41624
|
+
}
|
|
41625
|
+
};
|
|
41608
41626
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", objectSpread2_default()(objectSpread2_default()({
|
|
41609
41627
|
href: disabled ? undefined : href,
|
|
41610
|
-
|
|
41611
|
-
|
|
41628
|
+
className: rootClass,
|
|
41629
|
+
"aria-disabled": disabled
|
|
41612
41630
|
}, restProps), {}, {
|
|
41631
|
+
onClick: handleClick,
|
|
41632
|
+
onKeyDown: handleKeyDown,
|
|
41613
41633
|
children: [typeof icon === 'boolean' && icon && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
41614
41634
|
className: linkClasses.icon,
|
|
41615
41635
|
children: icons_config.link.prefixIcon
|
|
@@ -65124,7 +65144,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
65124
65144
|
|
|
65125
65145
|
|
|
65126
65146
|
/* harmony default export */ var src_0 = ({
|
|
65127
|
-
version: '3.4.3-beta.
|
|
65147
|
+
version: '3.4.3-beta.2'
|
|
65128
65148
|
});
|
|
65129
65149
|
}();
|
|
65130
65150
|
/******/ return __webpack_exports__;
|