shineout 3.10.0-beta.5 → 3.10.0-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
@@ -537,5 +537,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
537
537
  // 此文件由脚本自动生成,请勿直接修改。
538
538
  // This file was generated automatically by a script. Please do not modify it directly.
539
539
  var _default = exports.default = {
540
- version: '3.10.0-beta.5'
540
+ version: '3.10.0-beta.6'
541
541
  };
package/dist/shineout.js CHANGED
@@ -12336,7 +12336,7 @@ var handleStyle = function handleStyle(style) {
12336
12336
  };
12337
12337
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12338
12338
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12339
- /* harmony default export */ var version = ('3.10.0-beta.5');
12339
+ /* harmony default export */ var version = ('3.10.0-beta.6');
12340
12340
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12341
12341
 
12342
12342
 
@@ -25861,7 +25861,7 @@ var stepsStyle = {
25861
25861
  left: -12
25862
25862
  },
25863
25863
  '& $step:not(:last-child)': {
25864
- '&$widthDescription': {
25864
+ '&$withDescription': {
25865
25865
  '&:after': {
25866
25866
  borderLeftWidth: 22,
25867
25867
  borderTopWidth: 28,
@@ -25906,7 +25906,7 @@ var stepsStyle = {
25906
25906
  }
25907
25907
  },
25908
25908
  '& $step:last-child': {
25909
- '&$widthDescription': {
25909
+ '&$withDescription': {
25910
25910
  '&:before': {
25911
25911
  borderLeftWidth: 22,
25912
25912
  borderTopWidth: 28,
@@ -26009,7 +26009,7 @@ var stepsStyle = {
26009
26009
  large: {
26010
26010
  '&$arrow': {
26011
26011
  '& $step:not(:last-child)': {
26012
- '&$widthDescription': {
26012
+ '&$withDescription': {
26013
26013
  '&:after': {
26014
26014
  top: 0,
26015
26015
  width: 30,
@@ -26057,7 +26057,7 @@ var stepsStyle = {
26057
26057
  }
26058
26058
  },
26059
26059
  '& $step:last-child': {
26060
- '&$widthDescription': {
26060
+ '&$withDescription': {
26061
26061
  '&:before': {
26062
26062
  borderLeftWidth: 30,
26063
26063
  borderTopWidth: 36,
@@ -26435,88 +26435,74 @@ var stepsStyle = {
26435
26435
  '& $title': {}
26436
26436
  }
26437
26437
  },
26438
- arrow: {
26439
- position: 'relative',
26440
- zIndex: 0,
26441
- '&$steps': {
26442
- overflow: 'hidden'
26438
+ arrowIcon: {
26439
+ position: 'absolute',
26440
+ top: 0,
26441
+ right: 0.25,
26442
+ bottom: 0,
26443
+ transform: 'translateX(100%)',
26444
+ zIndex: 1,
26445
+ '@media (min-resolution: 2dppx)': {
26446
+ right: 0
26443
26447
  },
26444
- '& $step': {
26445
- marginRight: 4,
26446
- paddingLeft: src.stepsArrowPaddingX,
26447
- // before
26448
- '&:before': {
26449
- content: '""',
26450
- position: 'absolute',
26451
- width: 0,
26452
- height: 0,
26453
- top: 0,
26454
- borderLeftWidth: 16,
26455
- borderTopWidth: 20,
26456
- borderBottomWidth: 20,
26457
- borderLeftColor: '#ffffff'
26448
+ '$withDescription &': {
26449
+ transform: 'translateX(calc(100% - 0.5px))',
26450
+ '@media (min-resolution: 2dppx)': {
26451
+ transform: 'translateX(100%)'
26452
+ }
26453
+ },
26454
+ '& > svg': {
26455
+ display: 'block',
26456
+ height: '100%',
26457
+ color: src.stepsFinishBackgroundColor,
26458
+ '$process &': {
26459
+ color: src.stepsProcessBackgroundColor
26458
26460
  },
26459
- '&[dir=ltr]:before': {
26460
- left: 0
26461
+ '$wait &': {
26462
+ color: src.stepsWaitBackgroundColor
26461
26463
  },
26462
- '&[dir=rtl]:before': {
26463
- right: 0
26464
+ '&:last-child': {
26465
+ position: 'relative'
26464
26466
  },
26465
- // after
26466
- '&:after': {
26467
- content: '""',
26467
+ '&:first-child': {
26468
26468
  position: 'absolute',
26469
- width: 0,
26470
- height: 0,
26471
26469
  top: 0,
26472
- zIndex: 1,
26473
- borderLeftWidth: 16,
26474
- borderTopWidth: 20,
26475
- borderBottomWidth: 20
26476
- },
26477
- '&[dir=ltr]:after': {
26478
- right: -16
26479
- },
26480
- '&[dir=rtl]:after': {
26481
- left: -16
26470
+ left: 4,
26471
+ color: 'white',
26472
+ '$arrow[dir=rtl] &': {
26473
+ right: 4,
26474
+ left: 'auto'
26475
+ }
26482
26476
  }
26483
26477
  },
26478
+ '$step:last-child &': {
26479
+ display: 'none'
26480
+ },
26481
+ '$arrow[dir=rtl] &': {
26482
+ left: '0.25px',
26483
+ right: 'auto',
26484
+ transform: 'translateX(-100%)',
26485
+ '& > svg': {
26486
+ transform: "rotate(180deg)"
26487
+ }
26488
+ }
26489
+ },
26490
+ arrow: {
26491
+ position: 'relative',
26492
+ '& $step': {
26493
+ marginRight: 4,
26494
+ paddingLeft: src.stepsArrowPaddingX
26495
+ },
26484
26496
  '&$horizontal': {
26485
26497
  '& $horizontalLabel $title:after': {
26486
26498
  display: 'none'
26487
26499
  }
26488
26500
  },
26489
26501
  '& $step:first-child': {
26490
- padding: 0,
26491
- '&:before': {
26492
- display: 'none'
26493
- },
26494
- '&$widthDescription': {
26495
- '&:after': {
26496
- borderLeftWidth: 26,
26497
- borderTopWidth: 32,
26498
- borderBottomWidth: 32
26499
- },
26500
- '&[dir=ltr]:after': {
26501
- right: -26
26502
- },
26503
- '&[dir=rtl]:after': {
26504
- left: -26
26505
- }
26506
- }
26502
+ padding: 0
26507
26503
  },
26508
26504
  '& $step:last-child': {
26509
- paddingRight: 0,
26510
- '&:after': {
26511
- display: 'none'
26512
- },
26513
- '&$widthDescription': {
26514
- '&:before': {
26515
- borderLeftWidth: 26,
26516
- borderTopWidth: 32,
26517
- borderBottomWidth: 32
26518
- }
26519
- }
26505
+ paddingRight: 0
26520
26506
  },
26521
26507
  '& $description': {
26522
26508
  paddingRight: 0,
@@ -26531,84 +26517,30 @@ var stepsStyle = {
26531
26517
  width: '100%'
26532
26518
  },
26533
26519
  '& $finish': {
26534
- backgroundColor: src.stepsFinishBackgroundColor,
26535
- '&:after': {
26536
- borderLeft: "16px solid ".concat(src.stepsFinishBackgroundColor),
26537
- borderTop: "20px solid transparent",
26538
- borderBottom: "20px solid transparent"
26539
- },
26540
- '&:before': {
26541
- // borderLeft: `16px solid #ffffff`,
26542
- // borderTop: `20px solid transparent`,
26543
- // borderBottom: `20px solid transparent`,
26544
- }
26520
+ backgroundColor: src.stepsFinishBackgroundColor
26545
26521
  },
26546
26522
  '& $process': {
26547
26523
  color: src.stepsProcessFontColor,
26548
26524
  backgroundColor: src.stepsProcessBackgroundColor,
26549
26525
  '& $description': {
26550
26526
  color: src.stepsProcessFontColor
26551
- },
26552
- '&:after': {
26553
- borderLeft: "16px solid ".concat(src.stepsProcessBackgroundColor),
26554
- borderTop: "20px solid transparent",
26555
- borderBottom: "20px solid transparent"
26556
- },
26557
- '&[dir=ltr]:after': {
26558
- right: -16
26559
- },
26560
- '&[dir=rtl]:after': {
26561
- left: -16
26562
- },
26563
- '&:before': {
26564
- borderLeft: "16px solid #ffffff",
26565
- borderTop: "20px solid transparent",
26566
- borderBottom: "20px solid transparent"
26567
26527
  }
26568
26528
  },
26569
26529
  '& $wait': {
26570
26530
  color: src.stepsWaitFontColor,
26571
26531
  // backgroundColor: Token.stepsWaitBackgroundColor,
26572
- backgroundColor: src.stepsWaitBackgroundColor,
26573
- '&:after': {
26574
- borderLeft: "16px solid ".concat(src.stepsWaitBackgroundColor),
26575
- borderTop: "20px solid transparent",
26576
- borderBottom: "20px solid transparent"
26577
- },
26578
- '&:before': {
26579
- borderLeft: "16px solid #ffffff",
26580
- borderTop: "20px solid transparent",
26581
- borderBottom: "20px solid transparent"
26582
- }
26532
+ backgroundColor: src.stepsWaitBackgroundColor
26583
26533
  },
26584
- '& $widthDescription': {
26534
+ '& $withDescription': {
26585
26535
  '& $content,$description': {
26586
26536
  textAlign: 'left'
26587
26537
  },
26588
26538
  '& $title': {
26589
26539
  marginBottom: src.stepsDescriptionTitleMarginX
26590
- },
26591
- '&$process,$finish,$wait': {
26592
- '&:after': {
26593
- borderLeftWidth: 26,
26594
- borderTopWidth: 32,
26595
- borderBottomWidth: 32
26596
- },
26597
- '&[dir=ltr]:after': {
26598
- right: -26
26599
- },
26600
- '&[dir=rtl]:after': {
26601
- left: -26
26602
- },
26603
- '&:before': {
26604
- borderLeftWidth: 26,
26605
- borderTopWidth: 32,
26606
- borderBottomWidth: 32
26607
- }
26608
26540
  }
26609
26541
  }
26610
26542
  },
26611
- widthDescription: {},
26543
+ withDescription: {},
26612
26544
  default: {
26613
26545
  lineHeight: 0,
26614
26546
  '&$vertical': {
@@ -64287,7 +64219,15 @@ var DotStep = function DotStep(props) {
64287
64219
 
64288
64220
 
64289
64221
 
64290
-
64222
+ var Arrow = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
64223
+ viewBox: "0 0 40 100",
64224
+ xmlns: "http://www.w3.org/2000/svg",
64225
+ preserveAspectRatio: "none",
64226
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
64227
+ d: "M 0 0 L 40 50 L 0 100",
64228
+ fill: "currentColor"
64229
+ })
64230
+ });
64291
64231
  var ArrowStep = function ArrowStep(props) {
64292
64232
  var _jssStyle$steps;
64293
64233
  var jssStyle = props.jssStyle,
@@ -64297,7 +64237,6 @@ var ArrowStep = function ArrowStep(props) {
64297
64237
  index = props.index,
64298
64238
  status = props.status;
64299
64239
  var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
64300
- var rootClass = classnames_default()(styles.arrow);
64301
64240
  var config = useConfig();
64302
64241
  var renderTitle = function renderTitle() {
64303
64242
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -64318,11 +64257,17 @@ var ArrowStep = function ArrowStep(props) {
64318
64257
  children: [renderTitle(), description && renderDescription()]
64319
64258
  });
64320
64259
  };
64321
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
64322
- className: rootClass,
64260
+ var renderArrow = function renderArrow() {
64261
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
64262
+ className: styles.arrowIcon,
64263
+ children: [Arrow, Arrow]
64264
+ });
64265
+ };
64266
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
64267
+ className: styles.arrow,
64323
64268
  onClick: onChange,
64324
64269
  dir: config.direction,
64325
- children: renderContent()
64270
+ children: [renderContent(), renderArrow()]
64326
64271
  });
64327
64272
  };
64328
64273
  /* harmony default export */ var step_arrow = (ArrowStep);
@@ -64380,7 +64325,7 @@ var Step = function Step(props) {
64380
64325
  };
64381
64326
  var status = getStatus();
64382
64327
  var labelPlacement = getLabelPlacement();
64383
- var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, isDisabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
64328
+ var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, isDisabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.withDescription, !!description));
64384
64329
  var handleChange = function handleChange(e) {
64385
64330
  if (isDisabled) return;
64386
64331
  onClick === null || onClick === void 0 || onClick(e, index, id);
@@ -77913,7 +77858,7 @@ var watermark_interface = __webpack_require__(6640);
77913
77858
 
77914
77859
 
77915
77860
  /* harmony default export */ var src_0 = ({
77916
- version: '3.10.0-beta.5'
77861
+ version: '3.10.0-beta.6'
77917
77862
  });
77918
77863
  }();
77919
77864
  /******/ return __webpack_exports__;