shineout 3.7.9-beta.7 → 3.7.9-fix.1

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.9-beta.7'
525
+ version: '3.7.9-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.9-beta.7');
12237
+ /* harmony default export */ var version = ('3.7.9-fix.1');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -22951,7 +22951,7 @@ var radioStyle = {
22951
22951
  color: src.radioIconColor,
22952
22952
  backgroundColor: src.radioIconBackgroundColor,
22953
22953
  border: '1px solid currentColor',
22954
- '$wrapperChecked &': {
22954
+ '$wrapperChecked > $indicatorWrapper > &': {
22955
22955
  backgroundColor: src.radioIconCheckedBackgroundColor,
22956
22956
  color: src.radioIconCheckedColor,
22957
22957
  '&::after': {
@@ -35852,19 +35852,18 @@ function useInputAble(props) {
35852
35852
  var render = useRender(syncValue);
35853
35853
  var shouldUseState = delay || !control;
35854
35854
  var value = shouldUseState ? stateValue : valuePo;
35855
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35856
- if (context.timer) {
35857
- clearTimeout(context.timer);
35858
- context.timer = null;
35859
- }
35855
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
35860
35856
  if (delay && control && props.value !== stateValue) {
35861
35857
  changeStateValue(props.value);
35858
+ } else if (context.timer) {
35859
+ clearTimeout(context.timer);
35860
+ context.timer = null;
35862
35861
  }
35863
35862
  }, [props.value, delay, control]);
35864
35863
  var forceDelayChange = use_persist_fn(function () {
35865
- if (context.timer && context.delayChange) {
35864
+ if (context.delayChange) context.delayChange();
35865
+ if (context.timer) {
35866
35866
  clearTimeout(context.timer);
35867
- context.delayChange();
35868
35867
  context.timer = null;
35869
35868
  context.delayChange = null;
35870
35869
  }
@@ -56145,7 +56144,8 @@ var Radio = function Radio(props) {
56145
56144
  var inputProps = getInputProps();
56146
56145
  var rootProps = getRootProps({
56147
56146
  className: rootClass,
56148
- style: style
56147
+ style: style,
56148
+ needStopPropagation: true
56149
56149
  });
56150
56150
  var indicatorProps = getIndicatorProps();
56151
56151
  var simpleRadio = /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
@@ -59756,6 +59756,7 @@ ProgressComp.displayName = 'ShineoutProgress';
59756
59756
 
59757
59757
 
59758
59758
  var radio_group_context_groupContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)({});
59759
+ radio_group_context_groupContext.displayName = 'RadioGroupContext';
59759
59760
  /* harmony default export */ var radio_group_context = (radio_group_context_groupContext);
59760
59761
  ;// CONCATENATED MODULE: ../base/src/radio/radio.tsx
59761
59762
 
@@ -59859,7 +59860,6 @@ var useListSelectSingle = function useListSelectSingle(props) {
59859
59860
 
59860
59861
 
59861
59862
 
59862
-
59863
59863
  var radio_group_defaultFormat = function defaultFormat(d) {
59864
59864
  return d;
59865
59865
  };
@@ -59961,7 +59961,11 @@ var radio_group_Group = function Group(props0) {
59961
59961
  var Radios = props.data === undefined ? /*#__PURE__*/(0,jsx_runtime.jsx)(radio_group_context.Provider, {
59962
59962
  value: providerValue,
59963
59963
  children: children
59964
- }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
59964
+ }) :
59965
+ /*#__PURE__*/
59966
+ // 传一个空的providerValue目的是为了避免父级Radio向下传递的GroupContext.Consumer影响
59967
+ (0,jsx_runtime.jsxs)(radio_group_context.Provider, {
59968
+ value: {},
59965
59969
  children: [props.data.map(function (d, i) {
59966
59970
  return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_radio_radio, {
59967
59971
  jssStyle: jssStyle,
@@ -71923,7 +71927,7 @@ var upload_interface = __webpack_require__(8821);
71923
71927
 
71924
71928
 
71925
71929
  /* harmony default export */ var src_0 = ({
71926
- version: '3.7.9-beta.7'
71930
+ version: '3.7.9-fix.1'
71927
71931
  });
71928
71932
  }();
71929
71933
  /******/ return __webpack_exports__;