@nutui/nutui-react-taro 3.0.11-patch.0 → 3.0.12

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.
Files changed (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  3. package/dist/cjs/packages/progress/progress.js +69 -33
  4. package/dist/cjs/packages/progress/style/progress.scss +5 -21
  5. package/dist/cjs/packages/progress/style/style.css +5 -19
  6. package/dist/cjs/packages/progress/style/style.harmony.css +5 -19
  7. package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
  8. package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
  9. package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
  10. package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
  11. package/dist/cjs/packages/range/range.js +163 -175
  12. package/dist/cjs/packages/range/style/range.scss +6 -2
  13. package/dist/cjs/packages/range/style/style.css +3 -1
  14. package/dist/cjs/packages/range/style/style.harmony.css +3 -1
  15. package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
  16. package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
  17. package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
  18. package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
  19. package/dist/cjs/packages/range/utils.d.ts +3 -0
  20. package/dist/cjs/packages/searchbar/searchbar.js +181 -77
  21. package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
  22. package/dist/cjs/packages/searchbar/style/style.css +102 -38
  23. package/dist/cjs/packages/searchbar/style/style.harmony.css +127 -68
  24. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  25. package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
  26. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  27. package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
  28. package/dist/cjs/packages/step/step.d.ts +2 -2
  29. package/dist/cjs/packages/step/step.js +80 -45
  30. package/dist/cjs/packages/step/style/step.scss +104 -195
  31. package/dist/cjs/packages/step/style/style.css +85 -159
  32. package/dist/cjs/packages/step/style/style.harmony.css +103 -159
  33. package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
  34. package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
  35. package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
  36. package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
  37. package/dist/cjs/packages/steps/steps.js +23 -8
  38. package/dist/cjs/packages/steps/style/steps.scss +328 -4
  39. package/dist/cjs/packages/steps/style/style.css +219 -2
  40. package/dist/cjs/packages/steps/style/style.harmony.css +256 -2
  41. package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
  42. package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
  43. package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
  44. package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
  45. package/dist/cjs/packages/uploader/uploader.js +21 -27
  46. package/dist/cjs/types/spec/progress/base.d.ts +6 -0
  47. package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
  48. package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
  49. package/dist/cjs/types/spec/steps/base.d.ts +11 -2
  50. package/dist/es/packages/configprovider/types.d.ts +1 -1
  51. package/dist/es/packages/progress/progress.js +70 -34
  52. package/dist/es/packages/progress/style/progress.scss +5 -21
  53. package/dist/es/packages/progress/style/style.css +5 -19
  54. package/dist/es/packages/progress/style/style.harmony.css +5 -19
  55. package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
  56. package/dist/es/packages/progress/style-jmapp/style.css +4 -18
  57. package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
  58. package/dist/es/packages/progress/style-jrkf/style.css +4 -18
  59. package/dist/es/packages/range/range.js +163 -175
  60. package/dist/es/packages/range/style/range.scss +6 -2
  61. package/dist/es/packages/range/style/style.css +3 -1
  62. package/dist/es/packages/range/style/style.harmony.css +3 -1
  63. package/dist/es/packages/range/style-jmapp/range.scss +6 -2
  64. package/dist/es/packages/range/style-jmapp/style.css +3 -1
  65. package/dist/es/packages/range/style-jrkf/range.scss +6 -2
  66. package/dist/es/packages/range/style-jrkf/style.css +3 -1
  67. package/dist/es/packages/range/utils.d.ts +3 -0
  68. package/dist/es/packages/searchbar/searchbar.js +183 -79
  69. package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
  70. package/dist/es/packages/searchbar/style/style.css +102 -38
  71. package/dist/es/packages/searchbar/style/style.harmony.css +127 -68
  72. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  73. package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
  74. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  75. package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
  76. package/dist/es/packages/step/step.d.ts +2 -2
  77. package/dist/es/packages/step/step.js +81 -46
  78. package/dist/es/packages/step/style/step.scss +104 -195
  79. package/dist/es/packages/step/style/style.css +85 -159
  80. package/dist/es/packages/step/style/style.harmony.css +103 -159
  81. package/dist/es/packages/step/style-jmapp/step.scss +104 -195
  82. package/dist/es/packages/step/style-jmapp/style.css +88 -162
  83. package/dist/es/packages/step/style-jrkf/step.scss +104 -195
  84. package/dist/es/packages/step/style-jrkf/style.css +88 -162
  85. package/dist/es/packages/steps/steps.js +23 -8
  86. package/dist/es/packages/steps/style/steps.scss +328 -4
  87. package/dist/es/packages/steps/style/style.css +219 -2
  88. package/dist/es/packages/steps/style/style.harmony.css +256 -2
  89. package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
  90. package/dist/es/packages/steps/style-jmapp/style.css +219 -2
  91. package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
  92. package/dist/es/packages/steps/style-jrkf/style.css +219 -2
  93. package/dist/es/packages/uploader/uploader.js +21 -27
  94. package/dist/es/types/spec/progress/base.d.ts +24 -0
  95. package/dist/es/types/spec/progress/taro.d.ts +4 -0
  96. package/dist/es/types/spec/searchbar/base.d.ts +10 -1
  97. package/dist/es/types/spec/steps/base.d.ts +26 -5
  98. package/dist/nutui.react.umd.js +530 -391
  99. package/dist/style-jmapp.css +1 -1
  100. package/dist/style-jmapp.scss +42 -42
  101. package/dist/style-jrkf.css +1 -1
  102. package/dist/style-jrkf.scss +41 -41
  103. package/dist/style.css +1 -1
  104. package/dist/style.scss +37 -37
  105. package/dist/styles/variables-jmapp.scss +133 -79
  106. package/dist/styles/variables-jrkf.scss +134 -80
  107. package/dist/styles/variables.scss +148 -89
  108. package/package.json +1 -1
@@ -13,7 +13,6 @@ var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcar
13
13
  var _define_property = require("@swc/helpers/_/_define_property");
14
14
  var _object_spread = require("@swc/helpers/_/_object_spread");
15
15
  var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
16
- var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
17
16
  var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
18
17
  var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
19
18
  var _components = require("@tarojs/components");
@@ -26,54 +25,90 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
26
25
  icon: null
27
26
  });
28
27
  var Step = function Step(props) {
29
- var _ref = (0, _object_spread._)({}, defaultProps, props), children = _ref.children, title = _ref.title, description = _ref.description, value = _ref.value, icon = _ref.icon, className = _ref.className, restProps = (0, _object_without_properties._)(_ref, [
30
- "children",
31
- "title",
32
- "description",
33
- "value",
34
- "icon",
35
- "className"
36
- ]);
28
+ var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), type = _$_object_spread.type, title = _$_object_spread.title, description = _$_object_spread.description, value = _$_object_spread.value, icon = _$_object_spread.icon, className = _$_object_spread.className, style = _$_object_spread.style;
37
29
  var parent = (0, _react.useContext)(_context.DataContext);
38
- var dot = parent.propSteps.dot;
39
- var getCurrentStatus = function getCurrentStatus() {
40
- var index = value;
41
- if (index < +parent.propSteps.value) return 'finish';
42
- return index === +parent.propSteps.value ? 'process' : 'wait';
43
- };
44
- var handleClickStep = function handleClickStep() {
45
- var _parent_propSteps, _parent_propSteps1;
46
- ((_parent_propSteps = parent.propSteps) === null || _parent_propSteps === void 0 ? void 0 : _parent_propSteps.onStepClick) && ((_parent_propSteps1 = parent.propSteps) === null || _parent_propSteps1 === void 0 ? void 0 : _parent_propSteps1.onStepClick(value));
47
- };
48
- var classPrefix = "nut-step";
49
- var classes = (0, _classnames.default)(classPrefix, (0, _define_property._)({}, "".concat(classPrefix, "-").concat(getCurrentStatus()), true), className);
50
- var renderIconClass = function renderIconClass() {
51
- if (icon) {
52
- return "".concat(classPrefix, "-icon is-icon");
30
+ var _parent_propSteps = parent.propSteps, parentType = _parent_propSteps.type, parentValue = _parent_propSteps.value, status = _parent_propSteps.status, parentIcon = _parent_propSteps.icon, onStepClick = _parent_propSteps.onStepClick;
31
+ var currentStatus = (0, _react.useMemo)(function() {
32
+ if ([
33
+ 'default',
34
+ 'business'
35
+ ].includes(status)) {
36
+ return status;
53
37
  }
54
- if (!dot && !icon) {
55
- return "".concat(classPrefix, "-icon is-text");
38
+ if (value < +parentValue) return 'finish';
39
+ return value === +parentValue ? 'process' : 'wait';
40
+ }, [
41
+ value,
42
+ parentValue,
43
+ status
44
+ ]);
45
+ var handleClickStep = (0, _react.useCallback)(function() {
46
+ onStepClick === null || onStepClick === void 0 ? void 0 : onStepClick(value);
47
+ }, [
48
+ onStepClick,
49
+ value
50
+ ]);
51
+ var classPrefix = "nut-step";
52
+ // className计算
53
+ var classes = (0, _react.useMemo)(function() {
54
+ var _obj;
55
+ return (0, _classnames.default)(classPrefix, (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-").concat(currentStatus), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-").concat(type || parentType), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-special"), description), _obj), className);
56
+ }, [
57
+ currentStatus,
58
+ type,
59
+ className,
60
+ description,
61
+ classPrefix
62
+ ]);
63
+ // 头部渲染
64
+ var renderHeadType = (0, _react.useMemo)(function() {
65
+ switch(type || parentType){
66
+ case 'text':
67
+ return /*#__PURE__*/ _react.default.createElement(_components.View, {
68
+ className: "".concat(classPrefix, "-head-text")
69
+ }, value);
70
+ case 'dot':
71
+ return /*#__PURE__*/ _react.default.createElement(_components.View, {
72
+ className: "".concat(classPrefix, "-head-dot")
73
+ });
74
+ case 'icon':
75
+ return /*#__PURE__*/ _react.default.createElement(_components.View, {
76
+ className: "".concat(classPrefix, "-head-icon")
77
+ }, icon || parentIcon);
78
+ default:
79
+ return null;
56
80
  }
57
- return "".concat(classPrefix, "-icon");
58
- };
59
- return /*#__PURE__*/ _react.default.createElement("div", (0, _object_spread_props._)((0, _object_spread._)({
60
- className: classes
61
- }, restProps), {
81
+ }, [
82
+ type,
83
+ value,
84
+ icon
85
+ ]);
86
+ // 内容渲染
87
+ var renderContent = (0, _react.useMemo)(function() {
88
+ if (!title && !description) return null;
89
+ return /*#__PURE__*/ _react.default.createElement("div", {
90
+ className: "".concat(classPrefix, "-main")
91
+ }, title && /*#__PURE__*/ _react.default.createElement(_components.View, {
92
+ className: "".concat(classPrefix, "-title")
93
+ }, title), description && /*#__PURE__*/ _react.default.createElement(_components.View, {
94
+ className: "".concat(classPrefix, "-description")
95
+ }, description));
96
+ }, [
97
+ title,
98
+ description
99
+ ]);
100
+ return /*#__PURE__*/ _react.default.createElement("div", {
101
+ className: classes,
102
+ style: style,
62
103
  onClick: handleClickStep
63
- }), /*#__PURE__*/ _react.default.createElement(_components.View, {
64
- className: "nut-step-head"
65
104
  }, /*#__PURE__*/ _react.default.createElement(_components.View, {
66
- className: "nut-step-line"
67
- }), /*#__PURE__*/ _react.default.createElement(_components.View, {
68
- className: renderIconClass()
69
- }, icon || !dot && /*#__PURE__*/ _react.default.createElement("span", {
70
- className: "nut-step-inner"
71
- }, value))), (title || description) && /*#__PURE__*/ _react.default.createElement(_components.View, {
72
- className: "nut-step-main"
73
- }, /*#__PURE__*/ _react.default.createElement("span", {
74
- className: "nut-step-title"
75
- }, title), description && /*#__PURE__*/ _react.default.createElement("span", {
76
- className: "nut-step-description"
77
- }, description)));
105
+ className: "".concat(classPrefix, "-head")
106
+ }, /*#__PURE__*/ _react.default.createElement(_components.View, {
107
+ className: "".concat(classPrefix, "-head-").concat(type || parentType, "-wrap")
108
+ }, renderHeadType)), /*#__PURE__*/ _react.default.createElement(_components.View, {
109
+ className: "".concat(classPrefix, "-line")
110
+ }, /*#__PURE__*/ _react.default.createElement(_components.View, {
111
+ className: "".concat(classPrefix, "-line-inner")
112
+ })), renderContent);
78
113
  };
79
114
  Step.displayName = 'NutStep';
@@ -1,257 +1,166 @@
1
1
  .nut-step {
2
- flex-grow: 0;
3
- flex-shrink: 0;
4
- flex: 1;
5
- text-align: center;
6
- font-size: 0;
2
+ position: relative;
3
+ display: flex;
7
4
 
8
- &-head {
9
- position: relative;
10
- display: flex;
11
- justify-content: center;
12
- margin-bottom: $steps-base-icon-margin-bottom;
13
- }
14
-
15
- // 计算方法:left = calc(50% + (100% - $steps-base-line-width) / 2)
16
- // 如 width=70%时,left=65%; width=100%,left=50%;
17
- &-line {
18
- position: absolute;
19
- top: calc($steps-base-icon-height / 2);
20
- left: calc(50% + (100% - $steps-base-line-width) / 2);
21
- height: $steps-base-line-height;
22
- width: $steps-base-line-width;
23
- background: $steps-base-line-background;
5
+ &-last {
6
+ .nut-step-line {
7
+ display: none;
8
+ }
24
9
  }
25
10
 
26
- &-icon {
11
+ &-head {
27
12
  position: relative;
28
13
  display: flex;
29
14
  align-items: center;
30
- justify-content: center;
31
- width: $steps-base-icon-width;
32
- height: $steps-base-icon-height;
33
- line-height: $steps-base-icon-line-height;
34
- font-size: $steps-base-icon-font-size;
35
- background-color: $steps-wait-icon-bg-color;
36
- border-color: $steps-wait-icon-bg-color;
37
- color: $steps-wait-icon-color;
15
+ height: $steps-base-head-height;
16
+ position: relative;
38
17
  z-index: 1;
39
18
 
40
- .nut-icon {
41
- width: 100%;
42
- height: 100%;
19
+ &-text {
20
+ height: $steps-base-head-text-size;
21
+ width: $steps-base-head-text-size;
22
+ background-color: $steps-base-head-background-color;
23
+ color: $steps-base-head-color;
24
+ font-size: $steps-base-head-size;
43
25
  }
44
26
 
45
- &.is-text {
46
- border-radius: 50%;
47
- border-width: 1px;
48
- border-style: solid;
27
+ &-icon {
28
+ height: $steps-base-head-icon-size;
29
+ width: $steps-base-head-icon-size;
30
+ background-color: $steps-base-head-background-color;
31
+
32
+ .nut-icon {
33
+ color: white;
34
+ }
35
+ }
36
+
37
+ &-dot {
38
+ height: $steps-base-head-dot-size;
39
+ width: $steps-base-head-dot-size;
40
+ background-color: $steps-base-head-dot-background-color;
49
41
  }
50
42
 
51
- &.is-icon {
43
+ &-dot,
44
+ &-icon,
45
+ &-text {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
52
49
  border-radius: 50%;
53
- border-width: 1px;
54
- border-style: solid;
50
+ box-sizing: border-box;
51
+ border: $steps-base-head-border;
52
+ }
53
+ }
54
+
55
+ &-line {
56
+ position: absolute;
57
+ z-index: 0;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+
62
+ &-inner {
63
+ display: flex;
64
+ flex: 1;
65
+ height: $steps-base-line-height;
66
+ background: $steps-base-line-background;
55
67
  }
56
68
  }
57
69
 
58
70
  &-main {
59
- padding: 0 10%;
71
+ position: relative;
60
72
  display: flex;
61
73
  flex-direction: column;
62
74
  justify-content: center;
63
- align-items: center;
75
+ min-height: $steps-base-head-height;
76
+ }
77
+
78
+ &-line,
79
+ &-title {
80
+ background-color: #ffffff;
81
+ }
82
+
83
+ &-title {
84
+ position: relative;
85
+ z-index: 1;
64
86
  }
65
87
 
66
88
  &-title {
67
- display: block;
68
- margin-bottom: $steps-base-title-margin-bottom;
89
+ height: 14px;
90
+ line-height: 14px;
69
91
  font-size: $steps-base-title-font-size;
70
92
  color: $steps-base-title-color;
93
+ overflow: hidden;
94
+ white-space: nowrap;
71
95
  }
72
96
 
73
97
  &-description {
74
- display: block;
98
+ height: 16px;
99
+ line-height: 16px;
100
+ margin-top: $steps-base-description-margin-top;
75
101
  font-size: $steps-base-description-font-size;
76
102
  color: $steps-base-description-color;
103
+ overflow: hidden;
77
104
  }
78
105
 
79
- &:last-child {
80
- .nut-step-line {
81
- display: none;
82
- }
83
- }
84
-
106
+ // 流程状态-当前
85
107
  &.nut-step-process {
86
- .nut-step-icon {
87
- background-color: $steps-process-icon-bg-color;
88
- border-color: $steps-process-icon-bg-color;
89
- color: $steps-process-icon-color;
90
- }
91
-
92
- .nut-step-title {
93
- color: $steps-process-title-color;
94
- font-size: $steps-process-title-font-size;
95
- font-weight: $steps-process-title-font-weight;
108
+ .nut-step-head-icon,
109
+ .nut-step-head-text,
110
+ .nut-step-head-dot {
111
+ background-color: $steps-process-head-background-color;
96
112
  }
97
113
 
98
- .nut-step-description {
99
- color: $steps-process-description-color;
114
+ .nut-step-head-text {
115
+ color: $steps-process-color;
100
116
  }
101
117
  }
102
118
 
119
+ // 流程状态-等待
103
120
  &.nut-step-wait {
104
- .nut-step-title {
105
- color: $steps-wait-title-color;
106
- }
107
-
108
- .nut-step-description {
109
- color: $steps-wait-description-color;
121
+ .nut-step-head-icon {
122
+ .nut-icon {
123
+ color: $steps-wait-icon-color;
124
+ }
110
125
  }
111
126
  }
112
127
 
128
+ // 流程状态-完成
113
129
  &.nut-step-finish {
114
- .nut-step-icon {
115
- background-color: $steps-finish-icon-bg-color;
116
- border-color: $steps-finish-icon-border-color;
117
- color: $steps-finish-icon-color;
130
+ .nut-step-head-icon {
131
+ .nut-icon {
132
+ color: $steps-finish-icon-color;
133
+ }
118
134
  }
135
+ }
119
136
 
120
- .nut-step-line {
121
- background: $steps-finish-line-background;
137
+ // 强化业务属性展示
138
+ &.nut-step-business {
139
+ .nut-step-head-text {
140
+ color: $steps-business-head-text-color;
122
141
  }
123
142
 
124
143
  .nut-step-title {
125
- color: $steps-finish-title-color;
144
+ color: $steps-business-title-color;
126
145
  }
127
146
 
128
147
  .nut-step-description {
129
- color: $steps-finish-description-color;
148
+ color: $steps-business-description-color;
130
149
  }
131
- }
132
- }
133
-
134
- .nut-steps-dot {
135
- .nut-step-head {
136
- margin: $steps-dot-head-margin;
137
- }
138
-
139
- .nut-step-line {
140
- top: 7px;
141
- }
142
-
143
- .nut-step-icon {
144
- width: $steps-dot-icon-width;
145
- height: $steps-dot-icon-height;
146
- border: $steps-dot-icon-border;
147
- border-radius: 50%;
148
- box-sizing: content-box;
149
- }
150
150
 
151
- .nut-step-wait {
152
- .nut-step-icon {
153
- background-color: $steps-dot-wait-icon-bg-color;
151
+ .nut-step-head-dot {
152
+ background-color: $steps-business-head-dot-background-color;
154
153
  }
155
- }
156
154
 
157
- .nut-step-finish {
158
- .nut-step-icon {
159
- background-color: $steps-dot-finish-icon-bg-color;
160
- border-color: $steps-dot-finish-icon-border-color;
155
+ .nut-step-head-icon,
156
+ .nut-step-head-text {
157
+ background-color: $steps-business-head-background-color;
161
158
  }
162
- }
163
-
164
- .nut-step-process {
165
- .nut-step-icon {
166
- position: relative;
167
159
 
168
- &:before {
169
- content: '';
170
- display: inline-block;
171
- position: absolute;
172
- left: 50%;
173
- top: 50%;
174
- margin-left: -7px;
175
- margin-top: -7px;
176
- width: 14px;
177
- height: 14px;
178
- background-color: $steps-process-icon-before-bg-color;
179
- border-radius: 50%;
180
- opacity: 0.23;
160
+ .nut-step-head-icon {
161
+ .nut-icon {
162
+ color: $steps-business-head-icon-color;
181
163
  }
182
164
  }
183
165
  }
184
166
  }
185
-
186
- .nut-steps-horizontal {
187
- &.nut-steps-dot {
188
- .nut-step-line {
189
- top: 50%;
190
- bottom: -50%;
191
- }
192
- }
193
- }
194
-
195
- .nut-steps-vertical {
196
- .nut-step {
197
- display: flex;
198
- height: 33.34%;
199
- }
200
-
201
- .nut-step-line {
202
- position: absolute;
203
- display: inline-block;
204
- width: 1px;
205
- height: $steps-base-line-width;
206
- background: $steps-base-line-background;
207
- top: calc(
208
- $steps-base-icon-height +
209
- (100% - $steps-base-line-width - $steps-base-icon-margin-bottom) / 2
210
- );
211
- left: calc(50% - 1px);
212
- }
213
-
214
- &.nut-steps-dot {
215
- .nut-step-line {
216
- top: calc($steps-dot-icon-height + (100% - $steps-base-line-width) / 2);
217
- }
218
- }
219
-
220
- .nut-step-main {
221
- display: inline-block;
222
- padding-left: 6%;
223
- text-align: start;
224
- }
225
- }
226
- [dir='rtl'] .nut-step,
227
- .nut-rtl .nut-step {
228
- &-line {
229
- left: auto;
230
- right: calc(50% + (100% - $steps-base-line-width) / 2);
231
- }
232
- }
233
- [dir='rtl'] .nut-steps-dot,
234
- .nut-rtl .nut-steps-dot {
235
- .nut-step-process {
236
- .nut-step-icon {
237
- &:before {
238
- left: auto;
239
- right: 50%;
240
- margin-left: 0;
241
- margin-right: -7px;
242
- }
243
- }
244
- }
245
- }
246
- [dir='rtl'] .nut-steps-vertical,
247
- .nut-rtl .nut-steps-vertical {
248
- .nut-step-line {
249
- left: auto;
250
- right: calc(50% - 1px);
251
- }
252
-
253
- .nut-step-main {
254
- padding-left: 0;
255
- padding-right: 6%;
256
- }
257
- }