shineout 3.5.8-beta.8 → 3.5.8-beta.9

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 CHANGED
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.8-beta.8'
510
+ version: '3.5.8-beta.9'
511
511
  };
package/dist/shineout.js CHANGED
@@ -6722,12 +6722,12 @@ var clock = ['M12 23C5.925 23 1 18.075 1 12C1 5.925 5.925 1 12 1C18.075 1 23 5.9
6722
6722
  var recoverCircle = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6723
6723
  d: "M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z",
6724
6724
  fill: "currentColor"
6725
- }, "1"), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6725
+ }, '1'), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6726
6726
  fillRule: "evenodd",
6727
6727
  clipRule: "evenodd",
6728
6728
  d: "M10.1967 6.28261C10.5929 6.66737 10.6022 7.30046 10.2174 7.69667L9.39504 8.54349H13.3752C15.8901 8.54349 18 10.51 18 13.0217C18 15.5335 15.8901 17.5 13.3752 17.5H8.84425C8.29196 17.5 7.84425 17.0523 7.84425 16.5C7.84425 15.9477 8.29196 15.5 8.84425 15.5H13.3752C14.8641 15.5 16 14.352 16 13.0217C16 11.6915 14.8641 10.5435 13.3752 10.5435H9.43488L10.1964 11.2823C10.5927 11.6669 10.6023 12.3 10.2177 12.6964C9.83312 13.0927 9.20003 13.1023 8.80365 12.7177L6.30365 10.2921C6.11325 10.1073 6.00406 9.85452 6.00011 9.58925C5.99616 9.32399 6.09779 9.06803 6.28261 8.87771L8.78261 6.30333C9.16737 5.90713 9.80046 5.89785 10.1967 6.28261Z",
6729
6729
  fill: "white"
6730
- }, "2")
6730
+ }, '2')
6731
6731
  // <path
6732
6732
  // key={'1'}
6733
6733
  // d='M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z'
@@ -6789,14 +6789,28 @@ var calendar1 = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6789
6789
  d: "M17 1C17.5523 1 18 1.44772 18 2V3H21C22.1046 3 23 3.89543 23 5V20C23 21.1046 22.1046 22 21 22H3C1.89543 22 1 21.1046 1 20V5C1 3.89543 1.89543 3 3 3H6V2C6 1.44772 6.44772 1 7 1C7.55228 1 8 1.44772 8 2V3H16V2C16 1.44772 16.4477 1 17 1ZM21 10H3V20H21V10ZM7 16C7.82843 16 8.5 16.6716 8.5 17.5C8.5 18.3284 7.82843 19 7 19C6.17157 19 5.5 18.3284 5.5 17.5C5.5 16.6716 6.17157 16 7 16ZM12 16C12.8284 16 13.5 16.6716 13.5 17.5C13.5 18.3284 12.8284 19 12 19C11.1716 19 10.5 18.3284 10.5 17.5C10.5 16.6716 11.1716 16 12 16ZM17 16C17.8284 16 18.5 16.6716 18.5 17.5C18.5 18.3284 17.8284 19 17 19C16.1716 19 15.5 18.3284 15.5 17.5C15.5 16.6716 16.1716 16 17 16ZM7 11C7.82843 11 8.5 11.6716 8.5 12.5C8.5 13.3284 7.82843 14 7 14C6.17157 14 5.5 13.3284 5.5 12.5C5.5 11.6716 6.17157 11 7 11ZM12 11C12.8284 11 13.5 11.6716 13.5 12.5C13.5 13.3284 12.8284 14 12 14C11.1716 14 10.5 13.3284 10.5 12.5C10.5 11.6716 11.1716 11 12 11ZM17 11C17.8284 11 18.5 11.6716 18.5 12.5C18.5 13.3284 17.8284 14 17 14C16.1716 14 15.5 13.3284 15.5 12.5C15.5 11.6716 16.1716 11 17 11ZM6 5H3V8H21V5H18C18 5.55228 17.5523 6 17 6C16.4477 6 16 5.55228 16 5H8C8 5.55228 7.55228 6 7 6C6.44772 6 6 5.55228 6 5Z"
6790
6790
  }, 'calendar')];
6791
6791
  var icons_close = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
6792
- viewBox: "0 0 24 24",
6792
+ viewBox: "0 0 16 16",
6793
6793
  focusable: "false",
6794
6794
  fill: "currentColor",
6795
6795
  "aria-hidden": "true",
6796
6796
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6797
- d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM9.7845 8.38125C9.39221 8.07623 8.82498 8.10396 8.46449 8.46444C8.07397 8.85497 8.07397 9.48813 8.46449 9.87866L10.5846 11.9995L8.46449 14.1213L8.3813 14.2155C8.07628 14.6078 8.10401 15.175 8.46449 15.5355C8.85502 15.926 9.48818 15.926 9.87871 15.5355L11.9996 13.4136L14.1213 15.5355L14.2156 15.6187C14.6078 15.9237 15.1751 15.896 15.5356 15.5355C15.9261 15.145 15.9261 14.5118 15.5356 14.1213L13.4136 11.9995L15.5356 9.87866L15.6187 9.78445C15.9238 9.39216 15.896 8.82493 15.5356 8.46444C15.145 8.07392 14.5119 8.07392 14.1213 8.46444L11.9996 10.5845L9.87871 8.46444L9.7845 8.38125Z"
6797
+ d: "M3.73895 2.81241L3.80175 2.86787L8 7.05665L12.2379 2.81922C12.4983 2.55888 12.9204 2.55888 13.1808 2.81922C13.4211 3.05955 13.4396 3.4377 13.2362 3.69923L13.1808 3.76203L8.94334 7.99998L13.1376 12.1948C13.398 12.4552 13.398 12.8773 13.1376 13.1376C12.8973 13.3779 12.5192 13.3964 12.2576 13.1931L12.1948 13.1376L8 8.94332L3.78745 13.1553C3.5271 13.4156 3.10499 13.4156 2.84464 13.1553C2.60432 12.9149 2.58583 12.5368 2.78918 12.2753L2.84464 12.2124L7.05667 7.99998L2.85894 3.81068C2.59859 3.55033 2.59859 3.12822 2.85894 2.86787C3.09927 2.62755 3.47742 2.60906 3.73895 2.81241Z",
6798
+ fill: "currentColor"
6798
6799
  })
6799
6800
  });
6801
+ var closeFill = /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
6802
+ viewBox: "0 0 24 24",
6803
+ focusable: "false",
6804
+ fill: "currentColor",
6805
+ "aria-hidden": "true",
6806
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6807
+ d: "M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z",
6808
+ fill: "currentColor"
6809
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6810
+ d: "M9.6129 8.2097C9.22061 7.90468 8.65338 7.93241 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.413 11.828L8.29289 13.9497L8.2097 14.044C7.90468 14.4362 7.93241 15.0035 8.29289 15.364C8.68342 15.7545 9.31658 15.7545 9.70711 15.364L11.828 13.242L13.9497 15.364L14.044 15.4471C14.4362 15.7522 15.0035 15.7244 15.364 15.364C15.7545 14.9734 15.7545 14.3403 15.364 13.9497L13.242 11.828L15.364 9.70711L15.4471 9.6129C15.7522 9.22061 15.7244 8.65338 15.364 8.29289C14.9734 7.90237 14.3403 7.90237 13.9497 8.29289L11.828 10.413L9.70711 8.29289L9.6129 8.2097Z",
6811
+ fill: "white"
6812
+ })]
6813
+ });
6800
6814
  var file = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6801
6815
  d: "M16 2L22 7.5V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4C2 2.89543 2.89543 2 4 2H16ZM15.2 4H5C4.48716 4 4.06449 4.38604 4.00673 4.88338L4 5V19C4 19.5128 4.38604 19.9355 4.88338 19.9933L5 20H19C19.5128 20 19.9355 19.614 19.9933 19.1166L20 19V8.4L15.2 4ZM13.1111 15C13.602 15 14 15.4477 14 16C14 16.5128 13.6569 16.9355 13.2148 16.9933L13.1111 17H6.88889C6.39797 17 6 16.5523 6 16C6 15.4872 6.34315 15.0645 6.78523 15.0067L6.88889 15H13.1111ZM17.0769 10C17.5867 10 18 10.4477 18 11C18 11.5128 17.6437 11.9355 17.1846 11.9933L17.0769 12H6.92308C6.41328 12 6 11.5523 6 11C6 10.4872 6.35635 10.0645 6.81543 10.0067L6.92308 10H17.0769Z"
6802
6816
  }, 'file')];
@@ -6891,6 +6905,7 @@ var Icons = {
6891
6905
  Warning: icon(warningSimple),
6892
6906
  Check: icon(check),
6893
6907
  Close: icons_close,
6908
+ CloseFill: closeFill,
6894
6909
  ImageCount: icon(imageCount),
6895
6910
  ImageError: icon(imageError),
6896
6911
  Download: icon(imageDownload),
@@ -6934,14 +6949,14 @@ var config = {
6934
6949
  cascader: {
6935
6950
  More: icons.ArrowDown,
6936
6951
  DropdownArrow: icons.ArrowDown,
6937
- Close: icons.Close,
6952
+ Close: icons.CloseFill,
6938
6953
  CollapseArrow: icons.ArrowRight
6939
6954
  },
6940
6955
  collapse: {
6941
6956
  collapseArrow: icons.ArrowRight
6942
6957
  },
6943
6958
  datepicker: {
6944
- Close: icons.Close,
6959
+ Close: icons.CloseFill,
6945
6960
  Time: icons.Time,
6946
6961
  Calendar: icons.Calendar,
6947
6962
  ArrowDoubleLeft: icons.ArrowLeftDouble,
@@ -6953,10 +6968,10 @@ var config = {
6953
6968
  DropdownArrow: icons.ArrowDown
6954
6969
  },
6955
6970
  editableArea: {
6956
- Close: icons.Close
6971
+ Close: icons.CloseFill
6957
6972
  },
6958
6973
  image: {
6959
- Close: icons.Close,
6974
+ Close: icons.CloseFill,
6960
6975
  Pics: icons.ImageCount,
6961
6976
  Download: icons.Download,
6962
6977
  Preview: icons.Preview,
@@ -6967,7 +6982,7 @@ var config = {
6967
6982
  ArrowLeft: icons.ArrowLeft,
6968
6983
  Hide: icons.Hide,
6969
6984
  Show: icons.Display,
6970
- Close: icons.Close
6985
+ Close: icons.CloseFill
6971
6986
  },
6972
6987
  link: {
6973
6988
  prefixIcon: icons.Link
@@ -7004,7 +7019,7 @@ var config = {
7004
7019
  Check: icons.Check,
7005
7020
  More: icons.More,
7006
7021
  DropdownArrow: icons.ArrowDown,
7007
- Close: icons.Close
7022
+ Close: icons.CloseFill
7008
7023
  },
7009
7024
  steps: {
7010
7025
  Finish: icons.Check,
@@ -7036,7 +7051,7 @@ var config = {
7036
7051
  treeSelect: {
7037
7052
  More: icons.More,
7038
7053
  DropdownArrow: icons.ArrowDown,
7039
- Close: icons.Close
7054
+ Close: icons.CloseFill
7040
7055
  },
7041
7056
  upload: {
7042
7057
  File: icons.File,
@@ -7044,7 +7059,7 @@ var config = {
7044
7059
  Warning: icons.WarningCircleFill,
7045
7060
  Recover: icons.Return,
7046
7061
  Delete: icons.Delete,
7047
- DeleteImage: icons.Close,
7062
+ DeleteImage: icons.CloseFill,
7048
7063
  RecoverImage: icons.RecoverCircle,
7049
7064
  PreviewImage: icons.Preview,
7050
7065
  AddImage: icons.Add
@@ -12083,7 +12098,7 @@ var handleStyle = function handleStyle(style) {
12083
12098
  };
12084
12099
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12085
12100
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12086
- /* harmony default export */ var version = ('3.5.8-beta.8');
12101
+ /* harmony default export */ var version = ('3.5.8-beta.9');
12087
12102
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12088
12103
 
12089
12104
 
@@ -19466,6 +19481,9 @@ var ImageStyle = objectSpread2_default()(objectSpread2_default()({
19466
19481
  borderStyle: 'none'
19467
19482
  }
19468
19483
  },
19484
+ magnifyZoomOut: {
19485
+ cursor: 'zoom-out'
19486
+ },
19469
19487
  close: {
19470
19488
  position: 'absolute',
19471
19489
  top: -15,
@@ -50113,12 +50131,14 @@ var useImageMagnify = function useImageMagnify(props) {
50113
50131
  ;// CONCATENATED MODULE: ../base/src/image/image-magnify.tsx
50114
50132
 
50115
50133
 
50116
- var image_magnify_excluded = ["className"];
50134
+ var image_magnify_excluded = ["jssStyle"];
50135
+
50117
50136
 
50118
50137
 
50119
50138
 
50120
50139
  var ImageMagnify = function ImageMagnify(props) {
50121
- var className = props.className,
50140
+ var _jssStyle$image;
50141
+ var jssStyle = props.jssStyle,
50122
50142
  rest = objectWithoutProperties_default()(props, image_magnify_excluded);
50123
50143
  var _useImageMagnify = use_image_magnify(rest),
50124
50144
  loading = _useImageMagnify.loading,
@@ -50128,6 +50148,7 @@ var ImageMagnify = function ImageMagnify(props) {
50128
50148
  maxHeight = _useImageMagnify.maxHeight,
50129
50149
  getRootProps = _useImageMagnify.getRootProps;
50130
50150
  var rootProps = getRootProps();
50151
+ var galleryStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$image = jssStyle.image) === null || _jssStyle$image === void 0 ? void 0 : _jssStyle$image.call(jssStyle);
50131
50152
  var renderLoading = function renderLoading() {
50132
50153
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {});
50133
50154
  };
@@ -50141,7 +50162,7 @@ var ImageMagnify = function ImageMagnify(props) {
50141
50162
  maxHeight: status === 1 ? undefined : maxHeight
50142
50163
  };
50143
50164
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
50144
- className: className,
50165
+ className: classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnify, status === 1 && (galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnifyZoomOut)),
50145
50166
  style: rootStyle
50146
50167
  }, rootProps), {}, {
50147
50168
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
@@ -50183,7 +50204,6 @@ var ImageModal = function ImageModal(props) {
50183
50204
  getCloseIconProps = _useImageGallery.getCloseIconProps;
50184
50205
  var galleryStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$image = jssStyle.image) === null || _jssStyle$image === void 0 ? void 0 : _jssStyle$image.call(jssStyle)) || {};
50185
50206
  var overlayClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.overlay);
50186
- var magnifyClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnify);
50187
50207
  var closeClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.close);
50188
50208
  var closeIconProps = getCloseIconProps();
50189
50209
  var renderColseIcon = function renderColseIcon() {
@@ -50201,7 +50221,7 @@ var ImageModal = function ImageModal(props) {
50201
50221
  className: classnames_default()(galleryClass)
50202
50222
  });
50203
50223
  var magnifyProps = getMaginfyProps(position, {
50204
- className: magnifyClass,
50224
+ jssStyle: jssStyle,
50205
50225
  src: image.src
50206
50226
  });
50207
50227
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, galleryProps), {}, {
@@ -67566,7 +67586,7 @@ var upload_interface = __webpack_require__(8821);
67566
67586
 
67567
67587
 
67568
67588
  /* harmony default export */ var src_0 = ({
67569
- version: '3.5.8-beta.8'
67589
+ version: '3.5.8-beta.9'
67570
67590
  });
67571
67591
  }();
67572
67592
  /******/ return __webpack_exports__;