shineout 3.6.0-beta.12 → 3.6.0-beta.13

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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.0-beta.12'
517
+ version: '3.6.0-beta.13'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12130,7 +12130,7 @@ var handleStyle = function handleStyle(style) {
12130
12130
  };
12131
12131
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12132
12132
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12133
- /* harmony default export */ var version = ('3.6.0-beta.12');
12133
+ /* harmony default export */ var version = ('3.6.0-beta.13');
12134
12134
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12135
12135
 
12136
12136
 
@@ -13220,6 +13220,8 @@ var carouselTokens = {
13220
13220
  carouselIndicatorLineWidth: 'Size-6',
13221
13221
  carouselIndicatorLineHeight: 'Size-2',
13222
13222
  carouselIndicatorLineGap: 'Spacing-4',
13223
+ carouselIndicatorBarWidth: 'Size-12',
13224
+ carouselIndicatorBarHeight: 'Size-2',
13223
13225
  carouselIndicatorArrowSize: 'Size-8',
13224
13226
  carouselIndicatorArrowColor: 'Neutral-fill-4',
13225
13227
  carouselIndicatorArrowHoverColor: 'Neutral-fill-1',
@@ -13827,6 +13829,7 @@ var inputTokens = {
13827
13829
  inputInnerPaddingY: 'Spacing-1',
13828
13830
  inputInnerFontSize: 'Font-14',
13829
13831
  inputInnerFontColor: 'Neutral-text-4',
13832
+ inputInnerPlaceFontColor: 'Neutral-text-4',
13830
13833
  inputInnerSmallPaddingX: 'Spacing-8',
13831
13834
  inputInnerSmallPaddingY: 'Spacing-1',
13832
13835
  inputInnerSmallFontSize: 'Font-12',
@@ -14521,7 +14524,7 @@ var tableTokens = {
14521
14524
  tableTfootFontColor: 'Neutral-text-5',
14522
14525
  tableTfootFontWeight: 'Weight-regular',
14523
14526
  tableExpandIconSize: 'Size-7',
14524
- tableExpandIconColor: 'Neutral-text-3',
14527
+ tableExpandIconColor: 'Neutral-text-2',
14525
14528
  tableExpandIconHoverBackgroundColor: 'Neutral-fill-3',
14526
14529
  tableExpandBackgroundColor: 'Neutral-fill-2',
14527
14530
  tableSorterColor: 'Neutral-text-3',
@@ -14565,12 +14568,12 @@ var tabsTokens = {
14565
14568
  tabsLineFontColor: 'Neutral-text-5',
14566
14569
  tabsLineFontWeight: 'Weight-regular',
14567
14570
  tabsLineFontSize: 'Font-14',
14568
- tabsLineBackgroundColor: 'Neutral-fill-1',
14571
+ tabsLineBackgroundColor: 'transparent',
14569
14572
  tabsLineActiveBackgroundColor: 'Neutral-fill-3',
14570
14573
  tabsLineCheckedFontColor: 'Brand-6',
14571
14574
  tabsLineCheckedFontSize: 'Font-14',
14572
14575
  tabsLineCheckedFontWeight: 'Weight-medium',
14573
- tabsLineCheckedBackgroundColor: 'Neutral-fill-1',
14576
+ tabsLineCheckedBackgroundColor: 'transparent',
14574
14577
  tabsLineHoverFontSize: 'Font-14',
14575
14578
  tabsLineHoverBackgroundColor: 'Neutral-fill-2',
14576
14579
  tabsLineDisabledFontColor: 'Neutral-text-2',
@@ -16772,7 +16775,48 @@ var carouselStyle = objectSpread2_default()(objectSpread2_default()({
16772
16775
  }
16773
16776
  }
16774
16777
  },
16775
- indicatorTypeSlider: {},
16778
+ indicatorTypeBar: {
16779
+ '& $indicator': {
16780
+ position: 'relative',
16781
+ borderRadius: '100px',
16782
+ '&:first-child': {
16783
+ '&:before': {
16784
+ borderRadius: '100px 0 0 100px'
16785
+ }
16786
+ },
16787
+ '&:last-child': {
16788
+ '&:before': {
16789
+ borderRadius: '0 100px 100px 0'
16790
+ }
16791
+ },
16792
+ width: src.carouselIndicatorBarWidth,
16793
+ height: src.carouselIndicatorBarHeight
16794
+ },
16795
+ '& $indicator:before': {
16796
+ content: '""',
16797
+ position: 'absolute',
16798
+ zIndex: -1,
16799
+ top: 0,
16800
+ left: 0,
16801
+ width: '100%',
16802
+ height: '100%',
16803
+ background: src.carouselIndicatorBackgroundColor
16804
+ },
16805
+ '$indicatorLeft& $indicator, $indicatorRight& $indicator': {
16806
+ width: src.carouselIndicatorBarHeight,
16807
+ height: src.carouselIndicatorBarWidth,
16808
+ '&:first-child': {
16809
+ '&:before': {
16810
+ borderRadius: '100px 100px 0 0'
16811
+ }
16812
+ },
16813
+ '&:last-child': {
16814
+ '&:before': {
16815
+ borderRadius: '0 0 100px 100px'
16816
+ }
16817
+ }
16818
+ }
16819
+ },
16776
16820
  indicatorArrow: {
16777
16821
  width: src.carouselIndicatorArrowSize,
16778
16822
  height: src.carouselIndicatorArrowSize,
@@ -18617,6 +18661,7 @@ var descriptionsStyle = {
18617
18661
  valueInline: {
18618
18662
  paddingRight: src.descriptionsLabelPaddingRight,
18619
18663
  textAlign: 'left',
18664
+ wordBreak: 'break-all',
18620
18665
  boxSizing: 'border-box',
18621
18666
  color: src.descriptionsValueColor
18622
18667
  },
@@ -18632,11 +18677,10 @@ var descriptionsStyle = {
18632
18677
  },
18633
18678
  inlineHorizontal: {
18634
18679
  '& $item': {
18635
- display: 'flex',
18636
- alignItems: 'center'
18680
+ display: 'flex'
18637
18681
  },
18638
18682
  '& $cell': {
18639
- verticalAlign: 'middle'
18683
+ verticalAlign: 'top'
18640
18684
  },
18641
18685
  '& $row': {
18642
18686
  '&>td': {
@@ -19970,7 +20014,8 @@ var innerTitle = objectSpread2_default()(objectSpread2_default()({
19970
20014
  pointerEvents: 'none',
19971
20015
  '& $title': {
19972
20016
  position: 'relative',
19973
- top: 0
20017
+ top: 0,
20018
+ color: src.inputInnerPlaceFontColor
19974
20019
  },
19975
20020
  '$animation$wrapperOpen & $title': {
19976
20021
  animation: "$movein ".concat(moveTime, " ease-in")
@@ -23333,12 +23378,17 @@ var sliderStyle = {
23333
23378
  cursor: 'pointer',
23334
23379
  borderRadius: '100px',
23335
23380
  height: src.sliderTrackSize,
23336
- boxSizing: 'border-box',
23381
+ borderTop: "".concat(src.sliderScaleMarginY, " solid transparent"),
23382
+ borderBottom: "".concat(src.sliderScaleMarginY, " solid transparent"),
23383
+ boxSizing: 'content-box',
23337
23384
  backgroundColor: src.sliderTrackBackgroundColor,
23338
23385
  position: 'relative',
23386
+ backgroundClip: 'content-box',
23339
23387
  '$vertical &': {
23340
23388
  width: src.sliderTrackSize,
23341
- height: '100%'
23389
+ height: '100%',
23390
+ borderLeft: "".concat(src.sliderScaleMarginY, " solid transparent"),
23391
+ borderRight: "".concat(src.sliderScaleMarginY, " solid transparent")
23342
23392
  },
23343
23393
  '$disabled &': {
23344
23394
  cursor: 'not-allowed'
@@ -23558,7 +23608,7 @@ var sliderStyle = {
23558
23608
  backgroundColor: src.sliderScaleLineBackgroundColor
23559
23609
  },
23560
23610
  '$wrapper:not($vertical) &': {
23561
- marginTop: src.sliderScaleMarginY,
23611
+ // marginTop: token.sliderScaleMarginY,
23562
23612
  width: 0,
23563
23613
  '&::before': {
23564
23614
  width: '1px',
@@ -23572,7 +23622,7 @@ var sliderStyle = {
23572
23622
  // '&:last-child $label[dir=rtl]': { transform: 'translate(100%)' },
23573
23623
  },
23574
23624
  '$vertical &': {
23575
- marginLeft: src.sliderScaleMarginY,
23625
+ // marginLeft: token.sliderScaleMarginY,
23576
23626
  height: 0,
23577
23627
  '&::before': {
23578
23628
  height: '1px',
@@ -25363,6 +25413,7 @@ var resizeIndex = 8;
25363
25413
  var fixedFixedIndex = 10;
25364
25414
  var headerIndex = 12;
25365
25415
  var loadingIndex = 16;
25416
+ var shadowWidth = 12;
25366
25417
  var globalStyle = {
25367
25418
  '@global': {
25368
25419
  'body[data-soui-table-selection] *::selection': {
@@ -25404,7 +25455,6 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
25404
25455
  zIndex: cellBaseIndex,
25405
25456
  top: 0,
25406
25457
  bottom: 0,
25407
- background: src.tableCellBorderColor,
25408
25458
  borderLeft: "1px solid ".concat(src.tableCellBorderColor)
25409
25459
  },
25410
25460
  '[dir=ltr]&::after': {
@@ -25626,16 +25676,16 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
25626
25676
  position: 'absolute',
25627
25677
  top: 0,
25628
25678
  bottom: -1,
25629
- width: '5px',
25630
- pointerEvents: 'none'
25679
+ width: "".concat(shadowWidth, "px"),
25680
+ pointerEvents: 'none',
25681
+ boxShadow: 'inset 8px 0 10px -6px rgba(2,11,24,.1)'
25682
+ // border: 'none',
25631
25683
  },
25632
25684
  '&[dir=ltr]::after': {
25633
- right: '-5px',
25634
- background: "linear-gradient(90deg, ".concat(src.tableFixedShadow, ", transparent)")
25685
+ right: "-".concat(shadowWidth, "px")
25635
25686
  },
25636
25687
  '&[dir=rtl]::after': {
25637
- left: '-5px',
25638
- background: "linear-gradient(270deg, ".concat(src.tableFixedShadow, ",transparent)")
25688
+ left: "-".concat(shadowWidth, "px")
25639
25689
  }
25640
25690
  },
25641
25691
  '& table': {
@@ -25659,16 +25709,15 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
25659
25709
  position: 'absolute',
25660
25710
  top: 0,
25661
25711
  bottom: 0,
25662
- width: '5px',
25663
- pointerEvents: 'none'
25712
+ width: "".concat(shadowWidth, "px"),
25713
+ pointerEvents: 'none',
25714
+ boxShadow: 'inset -8px 0 10px -6px rgba(2,11,24,.1)'
25664
25715
  },
25665
25716
  '&[dir=rtl]::before': {
25666
- right: '-5px',
25667
- background: "linear-gradient(90deg, ".concat(src.tableFixedShadow, ", transparent)")
25717
+ right: "-".concat(shadowWidth, "px")
25668
25718
  },
25669
25719
  '&[dir=ltr]::before': {
25670
- left: '-5px',
25671
- background: "linear-gradient(270deg, ".concat(src.tableFixedShadow, ",transparent)")
25720
+ left: "-".concat(shadowWidth, "px")
25672
25721
  }
25673
25722
  },
25674
25723
  '& table': {
@@ -28367,7 +28416,6 @@ var uploadStyle = {
28367
28416
  },
28368
28417
  result: {
28369
28418
  display: 'flex',
28370
- alignItems: 'center',
28371
28419
  gap: '8px',
28372
28420
  borderRadius: src.uploadResultBorderRadius,
28373
28421
  padding: "".concat(src.uploadResultPaddingY, " ").concat(src.uploadResultPaddingX),
@@ -28380,7 +28428,7 @@ var uploadStyle = {
28380
28428
  },
28381
28429
  icon: {
28382
28430
  width: src.uploadResultIconSize,
28383
- height: src.uploadResultIconSize,
28431
+ height: src.lineHeightDynamic,
28384
28432
  color: src.uploadResultIconColor,
28385
28433
  display: 'flex',
28386
28434
  alignItems: 'center',
@@ -28409,16 +28457,14 @@ var uploadStyle = {
28409
28457
  },
28410
28458
  resultTextFooter: {
28411
28459
  display: 'flex',
28412
- alignItems: 'center',
28413
28460
  gap: src.uploadResultGap,
28414
28461
  color: src.uploadResultUploadingIconColor
28415
28462
  },
28416
28463
  resultText: {
28417
28464
  display: 'flex',
28418
- alignItems: 'center',
28419
- minWidth: '0',
28420
- wordBreak: 'break-all',
28421
28465
  flex: 1,
28466
+ minWidth: 0,
28467
+ wordBreak: 'break-all',
28422
28468
  gap: src.uploadResultGap,
28423
28469
  fontSize: src.uploadResultFontSize,
28424
28470
  color: src.uploadResultFontColor,
@@ -35365,6 +35411,7 @@ var useInputCommon = function useInputCommon(props0) {
35365
35411
  inputAbleProps.forceDelayChange();
35366
35412
  });
35367
35413
  return objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, rest), {}, {
35414
+ formName: undefined,
35368
35415
  value: inputAbleProps.value,
35369
35416
  className: classnames_default()(props.className, innerTitle && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperInnerTitle)),
35370
35417
  onChange: inputAbleProps.onChange,
@@ -35404,9 +35451,7 @@ var input_Input = function Input(props) {
35404
35451
  digits: commonProps.digits,
35405
35452
  integerLimit: commonProps.integerLimit,
35406
35453
  numType: commonProps.numType,
35407
- trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false,
35408
- // 移除 formName,避免渲染到原生 input 上
35409
- formName: undefined
35454
+ trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false
35410
35455
  };
35411
35456
  var inputFormatProps = use_input_format(objectSpread2_default()({
35412
35457
  value: commonProps.value,
@@ -35841,7 +35886,7 @@ var Carousel = function Carousel(props) {
35841
35886
  });
35842
35887
  }
35843
35888
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
35844
- className: classnames_default()(carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorWrapper, indicatorPosition === 'center' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorCenter), indicatorPosition === 'left' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorLeft), indicatorPosition === 'right' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorRight), indicatorPosition === 'outer' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorOuter), indicatorType === 'circle' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeCircle), indicatorType === 'number' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeNumber), indicatorType === 'line' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeLine), indicatorType === 'slider' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeSlider)),
35889
+ className: classnames_default()(carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorWrapper, indicatorPosition === 'center' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorCenter), indicatorPosition === 'left' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorLeft), indicatorPosition === 'right' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorRight), indicatorPosition === 'outer' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorOuter), indicatorType === 'circle' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeCircle), indicatorType === 'number' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeNumber), indicatorType === 'line' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeLine), indicatorType === 'bar' && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.indicatorTypeBar)),
35845
35890
  children: content
35846
35891
  });
35847
35892
  };
@@ -46531,7 +46576,7 @@ var useDescriptions = function useDescriptions(props) {
46531
46576
 
46532
46577
 
46533
46578
  var Descriptions = function Descriptions(props) {
46534
- var _jssStyleProps$descri;
46579
+ var _jssStyleProps$descri, _renderItem$;
46535
46580
  var className = props.className,
46536
46581
  jssStyleProps = props.jssStyle,
46537
46582
  style = props.style,
@@ -46650,15 +46695,23 @@ var Descriptions = function Descriptions(props) {
46650
46695
  style: style,
46651
46696
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Header, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
46652
46697
  className: bodyClassName,
46653
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
46698
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
46654
46699
  className: jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.table,
46655
46700
  cellPadding: 0,
46656
46701
  cellSpacing: 0,
46657
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
46702
+ children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("colgroup", {
46703
+ children: (_renderItem$ = renderItem[0]) === null || _renderItem$ === void 0 ? void 0 : _renderItem$.map(function (_, index, arr) {
46704
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
46705
+ style: {
46706
+ width: "".concat(1 / arr.length * 100, "%")
46707
+ }
46708
+ }, index);
46709
+ })
46710
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
46658
46711
  children: renderItem.map(function (d, i) {
46659
46712
  return renderHandle(d, i);
46660
46713
  })
46661
- })
46714
+ })]
46662
46715
  })
46663
46716
  })]
46664
46717
  });
@@ -63213,7 +63266,7 @@ var TabsHeader = function TabsHeader(props) {
63213
63266
  _useState4 = slicedToArray_default()(_useState3, 2),
63214
63267
  currentTabRect = _useState4[0],
63215
63268
  setCurrentTabRect = _useState4[1];
63216
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
63269
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
63217
63270
  var _currentTab$getBoundi;
63218
63271
  if (shape !== 'line' && shape !== 'dash') return;
63219
63272
  var currentTab = tabRef.current[active];
@@ -68876,7 +68929,7 @@ var upload_interface = __webpack_require__(8821);
68876
68929
 
68877
68930
 
68878
68931
  /* harmony default export */ var src_0 = ({
68879
- version: '3.6.0-beta.12'
68932
+ version: '3.6.0-beta.13'
68880
68933
  });
68881
68934
  }();
68882
68935
  /******/ return __webpack_exports__;