shineout 3.5.2-beta.4 → 3.5.2-beta.6

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
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
500
500
  // 此文件由脚本自动生成,请勿直接修改。
501
501
  // This file was generated automatically by a script. Please do not modify it directly.
502
502
  var _default = exports.default = {
503
- version: '3.5.2-beta.4'
503
+ version: '3.5.2-beta.6'
504
504
  };
package/dist/shineout.js CHANGED
@@ -12002,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
12002
12002
  };
12003
12003
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12004
12004
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12005
- /* harmony default export */ var version = ('3.5.2-beta.4');
12005
+ /* harmony default export */ var version = ('3.5.2-beta.6');
12006
12006
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12007
12007
 
12008
12008
 
@@ -12599,11 +12599,11 @@ var badgeTokens = {
12599
12599
  badgeBadgeFontColor: 'Neutral-text-1',
12600
12600
  badgeBadgeBackgroundColor: 'Danger-6',
12601
12601
  badgeBadgeBorderRadius: 'Radius-full',
12602
- badgeCountPaddingX: 'spacing-6',
12602
+ badgeCountPaddingX: 'Spacing-6',
12603
12603
  badgeCountHeight: 'Size-10',
12604
12604
  badgeSmallCountHeight: 'Size-8',
12605
12605
  badgeDotWidth: 'Size-3',
12606
- badgeTextMarginLeft: 'spacing-8',
12606
+ badgeTextMarginLeft: 'Spacing-8',
12607
12607
  badgeTextFontColor: 'Neutral-text-5',
12608
12608
  badgeDefaultBackgroundColor: 'Neutral-fill-5',
12609
12609
  badgeWarningBackgroundColor: 'Warning-6',
@@ -22139,26 +22139,21 @@ var useRadioStyle = styled(src_radio_radio, 'radio');
22139
22139
  /* harmony default export */ var shineout_style_src_radio = ((/* unused pure expression or super */ null && (useRadioStyle)));
22140
22140
  ;// CONCATENATED MODULE: ../shineout-style/src/rate/rate.ts
22141
22141
 
22142
- // const animation = {
22143
- // '@keyframes scale': {
22144
- // '0%': {
22145
- // transform: 'scale(1)',
22146
- // },
22147
- // '80%': {
22148
- // transform: 'scale(1.4)',
22149
- // opacity: 0.8,
22150
- // },
22151
- // '81%': {
22152
- // transform: 'scale(1.2)',
22153
- // },
22154
- // '100%': {
22155
- // transform: 'scale3d(1.2)',
22156
- // },
22157
- // },
22158
- // }
22159
22142
 
22160
- var rateStyle = {
22161
- // ...animation,
22143
+ var rate_animation = {
22144
+ '@keyframes scale': {
22145
+ '0%': {
22146
+ transform: 'scale(1)'
22147
+ },
22148
+ '50%': {
22149
+ transform: 'scale(1.2)'
22150
+ },
22151
+ '100%': {
22152
+ transform: 'scale(1)'
22153
+ }
22154
+ }
22155
+ };
22156
+ var rateStyle = objectSpread2_default()(objectSpread2_default()({}, rate_animation), {}, {
22162
22157
  wrapper: {
22163
22158
  display: 'inline-block',
22164
22159
  '[data-soui-role="form-control"] > &': {
@@ -22251,9 +22246,9 @@ var rateStyle = {
22251
22246
  },
22252
22247
  itemDisabled: {},
22253
22248
  itemAnimation: {
22254
- // animation: '$scale 0.2s ease-out',
22249
+ animation: '$scale 0.4s cubic-bezier(0.34, 0.69, 0.1, 1)'
22255
22250
  }
22256
- };
22251
+ });
22257
22252
  /* harmony default export */ var rate_rate = (rateStyle);
22258
22253
  ;// CONCATENATED MODULE: ../shineout-style/src/rate/index.ts
22259
22254
 
@@ -55830,10 +55825,6 @@ var Rate = function Rate(props0) {
55830
55825
  var backItem = Array.isArray(back) ? back[index] : back;
55831
55826
  var isHalfChecked = props.allowHalf && showValue % 1 > 0 && index === currentIndex;
55832
55827
  var isChecked = !isHalfChecked && index <= currentIndex;
55833
- var itemStyle = {
55834
- fontSize: size,
55835
- width: size
55836
- };
55837
55828
  var handleChange = function handleChange(val) {
55838
55829
  if (clearable && value === val) {
55839
55830
  onChange(0);
@@ -55843,12 +55834,17 @@ var Rate = function Rate(props0) {
55843
55834
  onChange(val);
55844
55835
  }
55845
55836
  };
55837
+ var showAnimation = animationIndex && index < currentIndex;
55846
55838
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
55847
- className: classnames_default()(rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.item, isHalfChecked && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemCheckedHalf), isChecked && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemChecked), props.disabled && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemDisabled), animationIndex === index && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemAnimation)),
55839
+ className: classnames_default()(rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.item, isHalfChecked && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemCheckedHalf), isChecked && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemChecked), props.disabled && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemDisabled), showAnimation && (rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemAnimation)),
55840
+ style: {
55841
+ fontSize: size,
55842
+ width: size,
55843
+ animationDelay: showAnimation ? "".concat(50 * index, "ms") : undefined
55844
+ },
55848
55845
  onAnimationEnd: function onAnimationEnd() {
55849
55846
  setAnimationIndex(null);
55850
55847
  },
55851
- style: itemStyle,
55852
55848
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
55853
55849
  className: rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.itemBg,
55854
55850
  children: backItem
@@ -66429,7 +66425,7 @@ var upload_interface = __webpack_require__(8821);
66429
66425
 
66430
66426
 
66431
66427
  /* harmony default export */ var src_0 = ({
66432
- version: '3.5.2-beta.4'
66428
+ version: '3.5.2-beta.6'
66433
66429
  });
66434
66430
  }();
66435
66431
  /******/ return __webpack_exports__;