shineout 3.4.4-beta.1 → 3.4.4-beta.3

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.d.ts CHANGED
@@ -48,6 +48,7 @@ export { default as Tree } from './tree';
48
48
  export { default as TreeSelect } from './tree-select';
49
49
  export { default as Upload } from './upload';
50
50
  export { setConfig, config, setLocale, setIcons } from '@sheinx/base';
51
+ export type { ConfigOption } from '@sheinx/base';
51
52
  export { setToken, useToken } from '@sheinx/theme';
52
53
  export { JssProvider, SheetsRegistry, setJssConfig } from '@sheinx/shineout-style';
53
54
  export * as utls from './utils';
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.4-beta.1'
495
+ version: '3.4.4-beta.3'
496
496
  };
package/dist/shineout.js CHANGED
@@ -2485,7 +2485,7 @@ if (true) {
2485
2485
 
2486
2486
  /***/ }),
2487
2487
 
2488
- /***/ 5661:
2488
+ /***/ 308:
2489
2489
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2490
2490
 
2491
2491
  "use strict";
@@ -2536,14 +2536,14 @@ exports.jsxs = q;
2536
2536
 
2537
2537
  /***/ }),
2538
2538
 
2539
- /***/ 7990:
2539
+ /***/ 3428:
2540
2540
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2541
2541
 
2542
2542
  "use strict";
2543
2543
 
2544
2544
 
2545
2545
  if (true) {
2546
- module.exports = __webpack_require__(5661);
2546
+ module.exports = __webpack_require__(308);
2547
2547
  } else {}
2548
2548
 
2549
2549
  /***/ }),
@@ -2975,7 +2975,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof =
2975
2975
 
2976
2976
  /***/ }),
2977
2977
 
2978
- /***/ 34:
2978
+ /***/ 3397:
2979
2979
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2980
2980
 
2981
2981
  "use strict";
@@ -3047,7 +3047,7 @@ exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExte
3047
3047
 
3048
3048
  /***/ }),
3049
3049
 
3050
- /***/ 2171:
3050
+ /***/ 597:
3051
3051
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3052
3052
 
3053
3053
  "use strict";
@@ -3063,7 +3063,7 @@ exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExte
3063
3063
 
3064
3064
 
3065
3065
  var h = __webpack_require__(9787),
3066
- n = __webpack_require__(8753);
3066
+ n = __webpack_require__(5420);
3067
3067
  function p(a, b) {
3068
3068
  return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
3069
3069
  }
@@ -3122,26 +3122,26 @@ exports.useSyncExternalStoreWithSelector = function (a, b, e, l, g) {
3122
3122
 
3123
3123
  /***/ }),
3124
3124
 
3125
- /***/ 8753:
3125
+ /***/ 5420:
3126
3126
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3127
3127
 
3128
3128
  "use strict";
3129
3129
 
3130
3130
 
3131
3131
  if (true) {
3132
- module.exports = __webpack_require__(34);
3132
+ module.exports = __webpack_require__(3397);
3133
3133
  } else {}
3134
3134
 
3135
3135
  /***/ }),
3136
3136
 
3137
- /***/ 3107:
3137
+ /***/ 96:
3138
3138
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3139
3139
 
3140
3140
  "use strict";
3141
3141
 
3142
3142
 
3143
3143
  if (true) {
3144
- module.exports = __webpack_require__(2171);
3144
+ module.exports = __webpack_require__(597);
3145
3145
  } else {}
3146
3146
 
3147
3147
  /***/ }),
@@ -6664,8 +6664,8 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
6664
6664
  // EXTERNAL MODULE: ../../node_modules/.pnpm/@babel+runtime@7.23.6/node_modules/@babel/runtime/helpers/typeof.js
6665
6665
  var helpers_typeof = __webpack_require__(2674);
6666
6666
  var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
6667
- // EXTERNAL MODULE: ../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js
6668
- var jsx_runtime = __webpack_require__(7990);
6667
+ // EXTERNAL MODULE: ../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js
6668
+ var jsx_runtime = __webpack_require__(3428);
6669
6669
  ;// CONCATENATED MODULE: ../base/src/icons/icons.tsx
6670
6670
 
6671
6671
 
@@ -7198,7 +7198,7 @@ var hoist_non_react_statics_cjs = __webpack_require__(8082);
7198
7198
  var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
7199
7199
  // EXTERNAL MODULE: ../../node_modules/.pnpm/react-display-name@0.2.5/node_modules/react-display-name/lib/getDisplayName.js
7200
7200
  var getDisplayName = __webpack_require__(1469);
7201
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/theming@3.3.0_react@18.2.0/node_modules/theming/dist/theming.esm.js
7201
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/theming@3.3.0_react@18.3.1/node_modules/theming/dist/theming.esm.js
7202
7202
 
7203
7203
 
7204
7204
 
@@ -11331,7 +11331,7 @@ var createCss = function createCss(jss) {
11331
11331
  var css_jss_esm_css = createCss();
11332
11332
  /* harmony default export */ var css_jss_esm = (css_jss_esm_css);
11333
11333
 
11334
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/react-jss@10.9.2_react@18.2.0/node_modules/react-jss/dist/react-jss.esm.js
11334
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/react-jss@10.9.2_react@18.3.1/node_modules/react-jss/dist/react-jss.esm.js
11335
11335
 
11336
11336
 
11337
11337
 
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
11984
11984
  };
11985
11985
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11986
11986
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11987
- /* harmony default export */ var version = ('3.4.4-beta.1');
11987
+ /* harmony default export */ var version = ('3.4.4-beta.3');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -29311,7 +29311,7 @@ var usePositionStyle = function usePositionStyle(config) {
29311
29311
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
29312
29312
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
29313
29313
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
29314
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/chunk-IP2WBRUX.js
29314
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.3.1/node_modules/@shined/reactive/dist/chunk-IP2WBRUX.js
29315
29315
 
29316
29316
  // src/vanilla/ref.ts
29317
29317
  function _array_like_to_array(arr, len) {
@@ -29762,9 +29762,9 @@ function produce(obj, draftHandler) {
29762
29762
  return snapshot;
29763
29763
  }
29764
29764
 
29765
- // EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.2.2_react@18.2.0/node_modules/use-sync-external-store/shim/with-selector.js
29766
- var with_selector = __webpack_require__(3107);
29767
- ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.2.0/node_modules/@shined/reactive/dist/index.js
29765
+ // EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.2.2_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js
29766
+ var with_selector = __webpack_require__(96);
29767
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.1.3-alpha.0_react@18.3.1/node_modules/@shined/reactive/dist/index.js
29768
29768
 
29769
29769
  // src/react/use-snapshot.ts
29770
29770
 
@@ -37802,9 +37802,6 @@ var result_Result = function Result(props) {
37802
37802
 
37803
37803
 
37804
37804
 
37805
- var preventDefault = function preventDefault(e) {
37806
- e.preventDefault();
37807
- };
37808
37805
  var Cascader = function Cascader(props0) {
37809
37806
  var _jssStyle$cascader;
37810
37807
  var props = use_with_form_config(props0);
@@ -38405,11 +38402,6 @@ var Cascader = function Cascader(props0) {
38405
38402
  onFocus: handleFocus,
38406
38403
  onKeyDown: handleKeyDown,
38407
38404
  ref: targetRef,
38408
- onMouseDown: function onMouseDown(e) {
38409
- if (focused && e.target !== inputRef.current) {
38410
- e.preventDefault();
38411
- }
38412
- },
38413
38405
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
38414
38406
  adjust: adjust,
38415
38407
  focus: open,
@@ -38429,7 +38421,6 @@ var Cascader = function Cascader(props0) {
38429
38421
  type: "scale-y",
38430
38422
  duration: 'fast',
38431
38423
  style: pickerWrapperStyle,
38432
- onMouseDown: preventDefault,
38433
38424
  children: renderPanel()
38434
38425
  })
38435
38426
  })]
@@ -43260,7 +43251,6 @@ var Picker = function Picker(props) {
43260
43251
  var index = position === 'end' ? 1 : 0;
43261
43252
  var mode = props.mode[index];
43262
43253
  var commonProps = {
43263
- key: position,
43264
43254
  options: options,
43265
43255
  value: dateArr[index],
43266
43256
  current: currentArr[index],
@@ -43298,13 +43288,13 @@ var Picker = function Picker(props) {
43298
43288
  secondStep: props.secondStep
43299
43289
  };
43300
43290
  if (mode === 'quarter') {
43301
- return /*#__PURE__*/(0,jsx_runtime.jsx)(quarter, objectSpread2_default()({}, commonProps));
43291
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(quarter, objectSpread2_default()({}, commonProps), position);
43302
43292
  }
43303
43293
  if (mode === 'year') {
43304
- return /*#__PURE__*/(0,jsx_runtime.jsx)(year, objectSpread2_default()({}, commonProps));
43294
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(year, objectSpread2_default()({}, commonProps), position);
43305
43295
  }
43306
43296
  if (mode === 'month') {
43307
- return /*#__PURE__*/(0,jsx_runtime.jsx)(month, objectSpread2_default()({}, commonProps));
43297
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(month, objectSpread2_default()({}, commonProps), position);
43308
43298
  }
43309
43299
  if (mode === 'day') {
43310
43300
  return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), {}, {
@@ -43326,12 +43316,12 @@ var Picker = function Picker(props) {
43326
43316
  }
43327
43317
  }
43328
43318
  }
43329
- }));
43319
+ }), position);
43330
43320
  }
43331
43321
  if (mode === 'time') {
43332
- return /*#__PURE__*/(0,jsx_runtime.jsx)(time, objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps));
43322
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(time, objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), position);
43333
43323
  }
43334
- return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps));
43324
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), position);
43335
43325
  };
43336
43326
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
43337
43327
  className: styles === null || styles === void 0 ? void 0 : styles.pickerBox,
@@ -43385,7 +43375,7 @@ var Picker = function Picker(props) {
43385
43375
 
43386
43376
  var date_picker_verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
43387
43377
  var date_picker_horizontalPosition = ['left-top', 'left-bottom', 'right-top', 'right-bottom'];
43388
- var date_picker_preventDefault = function preventDefault(e) {
43378
+ var preventDefault = function preventDefault(e) {
43389
43379
  e.preventDefault();
43390
43380
  };
43391
43381
  var DatePicker = function DatePicker(props0) {
@@ -43628,7 +43618,7 @@ var DatePicker = function DatePicker(props0) {
43628
43618
  type: 'fade',
43629
43619
  duration: 'fast',
43630
43620
  show: open,
43631
- onMouseDown: date_picker_preventDefault,
43621
+ onMouseDown: preventDefault,
43632
43622
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(picker, {
43633
43623
  setTargetArr: func.setTargetArr,
43634
43624
  dateArr: dateArr,
@@ -51264,9 +51254,6 @@ var ColumnsList = function ColumnsList(props) {
51264
51254
 
51265
51255
 
51266
51256
 
51267
- var select_preventDefault = function preventDefault(e) {
51268
- e.preventDefault();
51269
- };
51270
51257
  function Select(props0) {
51271
51258
  var _jssStyle$select;
51272
51259
  var props = use_with_form_config(props0);
@@ -51907,11 +51894,6 @@ function Select(props0) {
51907
51894
  onKeyUp: handleKeyUp,
51908
51895
  onBlur: handleBlur,
51909
51896
  onFocus: handleFocus,
51910
- onMouseDown: function onMouseDown(e) {
51911
- if (focused && e.target !== inputRef.current) {
51912
- e.preventDefault();
51913
- }
51914
- },
51915
51897
  onMouseEnter: onMouseEnter,
51916
51898
  onMouseLeave: onMouseLeave,
51917
51899
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
@@ -51930,7 +51912,6 @@ function Select(props0) {
51930
51912
  show: open,
51931
51913
  className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper, size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.pickerSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.pickerLarge)),
51932
51914
  onAnimationAfterEnter: onAnimationAfterEnter,
51933
- onMouseDown: select_preventDefault,
51934
51915
  display: 'block',
51935
51916
  type: "scale-y"
51936
51917
  // type='fade'
@@ -58625,6 +58606,22 @@ var emptyRef = {
58625
58606
  var mirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
58626
58607
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
58627
58608
  var browserScrollbarWidth = useScrollbarWidth();
58609
+ var getSpinConfig = function getSpinConfig() {
58610
+ if (typeof_default()(config.spin) === 'object') {
58611
+ return objectSpread2_default()({
58612
+ size: 24
58613
+ }, config.spin);
58614
+ }
58615
+ if (typeof config.spin === 'string') {
58616
+ return {
58617
+ name: config.spin,
58618
+ size: 24
58619
+ };
58620
+ }
58621
+ return {
58622
+ size: 24
58623
+ };
58624
+ };
58628
58625
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
58629
58626
  emptyHeight: 0
58630
58627
  }),
@@ -59003,10 +59000,9 @@ var emptyRef = {
59003
59000
  if (!props.loading) return null;
59004
59001
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
59005
59002
  className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.loading),
59006
- children: props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
59007
- jssStyle: props.jssStyle,
59008
- size: 24
59009
- }) : props.loading
59003
+ children: props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, objectSpread2_default()({
59004
+ jssStyle: props.jssStyle
59005
+ }, getSpinConfig())) : props.loading
59010
59006
  });
59011
59007
  };
59012
59008
  var renderPagination = function renderPagination() {
@@ -61105,9 +61101,6 @@ var useTreeSelect = function useTreeSelect(props) {
61105
61101
 
61106
61102
 
61107
61103
 
61108
- var tree_select_preventDefault = function preventDefault(e) {
61109
- e.preventDefault();
61110
- };
61111
61104
  var TreeSelect = function TreeSelect(props0) {
61112
61105
  var _jssStyle$treeSelect;
61113
61106
  var props = use_with_form_config(props0);
@@ -61664,11 +61657,6 @@ var TreeSelect = function TreeSelect(props0) {
61664
61657
  onBlur: handleBlur,
61665
61658
  onFocus: handleFocus,
61666
61659
  onKeyDown: handleKeyDown,
61667
- onMouseDown: function onMouseDown(e) {
61668
- if (focused && e.target !== inputRef.current) {
61669
- e.preventDefault();
61670
- }
61671
- },
61672
61660
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
61673
61661
  adjust: adjust,
61674
61662
  focus: open,
@@ -61682,7 +61670,6 @@ var TreeSelect = function TreeSelect(props0) {
61682
61670
  parentElRef: targetRef,
61683
61671
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
61684
61672
  onRef: popupRef,
61685
- onMouseDown: tree_select_preventDefault,
61686
61673
  show: open,
61687
61674
  className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper),
61688
61675
  display: 'block',
@@ -65278,7 +65265,7 @@ var upload_interface = __webpack_require__(8821);
65278
65265
 
65279
65266
 
65280
65267
  /* harmony default export */ var src_0 = ({
65281
- version: '3.4.4-beta.1'
65268
+ version: '3.4.4-beta.3'
65282
65269
  });
65283
65270
  }();
65284
65271
  /******/ return __webpack_exports__;