shineout 3.1.28 → 3.1.30

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.1.28'
479
+ version: '3.1.30'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11952,7 +11952,7 @@ var handleStyle = function handleStyle(style) {
11952
11952
  };
11953
11953
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11954
11954
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11955
- /* harmony default export */ var version = ('3.1.28');
11955
+ /* harmony default export */ var version = ('3.1.30');
11956
11956
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11957
11957
 
11958
11958
 
@@ -12114,7 +12114,7 @@ function replaceNonAlphanumeric(str) {
12114
12114
  return result;
12115
12115
  }
12116
12116
  function camelCaseToDash(str) {
12117
- return str.replace(/([A-Z])/g, '-$1').toLowerCase();
12117
+ return str.replace(/([A-Z])/g, '-$1').toLowerCase().replace(/^-/, '');
12118
12118
  }
12119
12119
  var cssvar = function cssvar(str, value, key, _size) {
12120
12120
  var _getConfig = getConfig(),
@@ -15172,12 +15172,17 @@ var textBeforeLine = function textBeforeLine() {
15172
15172
  }
15173
15173
  };
15174
15174
  };
15175
- var loading = function loading(type, styles) {
15176
- var buttonStyle = button_button_button(type, styles);
15177
- return {
15178
- '&$loading': objectSpread2_default()({}, buttonStyle['&$disabled'])
15179
- };
15180
- };
15175
+
15176
+ // const loading = (type: ButtonTypeWithoutLink, styles: ButtonStyleType) => {
15177
+ // const buttonStyle = button(type, styles);
15178
+
15179
+ // return {
15180
+ // '&$loading': {
15181
+ // ...buttonStyle['&$disabled'],
15182
+ // },
15183
+ // };
15184
+ // };
15185
+
15181
15186
  var ButtonStyle = {
15182
15187
  button: {
15183
15188
  outline: 'none',
@@ -15298,13 +15303,26 @@ var ButtonStyle = {
15298
15303
  cursor: 'not-allowed'
15299
15304
  },
15300
15305
  loading: {
15301
- cursor: 'not-allowed',
15302
- '&$default': objectSpread2_default()({}, loading('Secondary', '')),
15303
- '&$primary': objectSpread2_default()({}, loading('Primary', '')),
15304
- '&$success': objectSpread2_default()({}, loading('Success', '')),
15305
- '&$danger': objectSpread2_default()({}, loading('Danger', '')),
15306
- '&$warning': objectSpread2_default()({}, loading('Warning', '')),
15307
- '&$secondary': objectSpread2_default()({}, loading('Secondary', ''))
15306
+ cursor: 'not-allowed'
15307
+
15308
+ // '&$default': {
15309
+ // ...loading('Secondary', ''),
15310
+ // },
15311
+ // '&$primary': {
15312
+ // ...loading('Primary', ''),
15313
+ // },
15314
+ // '&$success': {
15315
+ // ...loading('Success', ''),
15316
+ // },
15317
+ // '&$danger': {
15318
+ // ...loading('Danger', ''),
15319
+ // },
15320
+ // '&$warning': {
15321
+ // ...loading('Warning', ''),
15322
+ // },
15323
+ // '&$secondary': {
15324
+ // ...loading('Secondary', ''),
15325
+ // },
15308
15326
  },
15309
15327
  groupItem: {},
15310
15328
  group: {
@@ -24852,7 +24870,6 @@ var TagStyle = {
24852
24870
  wrapper: {
24853
24871
  lineHeight: src.lineHeightDynamic
24854
24872
  },
24855
- container: {},
24856
24873
  inline: {
24857
24874
  display: 'inline-block',
24858
24875
  flex: 1,
@@ -24874,9 +24891,6 @@ var TagStyle = {
24874
24891
  small: {
24875
24892
  lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
24876
24893
  padding: "0 ".concat(src.tagSmallPaddingX),
24877
- '& $container': {
24878
- lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
24879
- },
24880
24894
  '& $wrapper': {
24881
24895
  lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
24882
24896
  },
@@ -29058,7 +29072,7 @@ var useButton = function useButton() {
29058
29072
  return mergedEventHandlers;
29059
29073
  };
29060
29074
  return {
29061
- disabled: disabled,
29075
+ disabled: disabled || loading,
29062
29076
  getAnchorProps: getAnchorProps,
29063
29077
  getButtonProps: getButtonProps,
29064
29078
  getSpaceChildren: getSpaceChildren
@@ -35580,10 +35594,7 @@ var Tag = function Tag(props) {
35580
35594
  if (onClose) {
35581
35595
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35582
35596
  className: classnames_default()(tagStyle.wrapper, inlineStyle && tagStyle.inline),
35583
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35584
- className: tagStyle.container,
35585
- children: wrapSpan(children)
35586
- })
35597
+ children: wrapSpan(children)
35587
35598
  });
35588
35599
  }
35589
35600
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -44886,7 +44897,7 @@ var Gap = function Gap(props) {
44886
44897
  marginBottom: -Number(row),
44887
44898
  marginRight: -Number(column)
44888
44899
  };
44889
- var itemStyle = supportFlexGap ? undefined : objectSpread2_default()(objectSpread2_default()({}, itemStyleProps), {}, {
44900
+ var itemStyle = supportFlexGap ? itemStyleProps : objectSpread2_default()(objectSpread2_default()({}, itemStyleProps), {}, {
44890
44901
  marginBottom: row,
44891
44902
  marginRight: column
44892
44903
  });
@@ -46802,9 +46813,8 @@ var Scroll = function Scroll(props) {
46802
46813
  position: 'sticky'
46803
46814
  }, isRtl ? 'right' : 'left', 0), "top", 0);
46804
46815
  var placeStyle = {
46805
- marginTop: (height > 0 && scrollHeight > 0 ? Math.max(0, Math.floor(scrollHeight - height)) : 0) - 1,
46816
+ paddingTop: height > 0 && scrollHeight > 0 ? Math.max(0, Math.floor(scrollHeight - height)) : 0,
46806
46817
  width: scrollWidth,
46807
- height: 1,
46808
46818
  overflow: 'hidden'
46809
46819
  };
46810
46820
  var handleScroll = usePersistFn(function (e) {
@@ -62423,7 +62433,7 @@ var upload_interface = __webpack_require__(4412);
62423
62433
 
62424
62434
 
62425
62435
  /* harmony default export */ var src_0 = ({
62426
- version: '3.1.28'
62436
+ version: '3.1.30'
62427
62437
  });
62428
62438
  }();
62429
62439
  /******/ return __webpack_exports__;