@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
@@ -1,8 +1,7 @@
1
1
  import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
2
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
3
3
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
- import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
5
- import React, { useContext } from "react";
4
+ import React, { useCallback, useContext, useMemo } from "react";
6
5
  import classNames from "classnames";
7
6
  import { View } from "@tarojs/components";
8
7
  import { DataContext } from "../steps/context";
@@ -14,54 +13,90 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
14
13
  icon: null
15
14
  });
16
15
  export var Step = function(props) {
17
- var _ref = _object_spread({}, defaultProps, props), children = _ref.children, title = _ref.title, description = _ref.description, value = _ref.value, icon = _ref.icon, className = _ref.className, restProps = _object_without_properties(_ref, [
18
- "children",
19
- "title",
20
- "description",
21
- "value",
22
- "icon",
23
- "className"
24
- ]);
16
+ var _$_object_spread = _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;
25
17
  var parent = useContext(DataContext);
26
- var dot = parent.propSteps.dot;
27
- var getCurrentStatus = function() {
28
- var index = value;
29
- if (index < +parent.propSteps.value) return 'finish';
30
- return index === +parent.propSteps.value ? 'process' : 'wait';
31
- };
32
- var handleClickStep = function() {
33
- var _parent_propSteps, _parent_propSteps1;
34
- ((_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));
35
- };
36
- var classPrefix = "nut-step";
37
- var classes = classNames(classPrefix, _define_property({}, "".concat(classPrefix, "-").concat(getCurrentStatus()), true), className);
38
- var renderIconClass = function() {
39
- if (icon) {
40
- return "".concat(classPrefix, "-icon is-icon");
18
+ 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;
19
+ var currentStatus = useMemo(function() {
20
+ if ([
21
+ 'default',
22
+ 'business'
23
+ ].includes(status)) {
24
+ return status;
41
25
  }
42
- if (!dot && !icon) {
43
- return "".concat(classPrefix, "-icon is-text");
26
+ if (value < +parentValue) return 'finish';
27
+ return value === +parentValue ? 'process' : 'wait';
28
+ }, [
29
+ value,
30
+ parentValue,
31
+ status
32
+ ]);
33
+ var handleClickStep = useCallback(function() {
34
+ onStepClick === null || onStepClick === void 0 ? void 0 : onStepClick(value);
35
+ }, [
36
+ onStepClick,
37
+ value
38
+ ]);
39
+ var classPrefix = "nut-step";
40
+ // className计算
41
+ var classes = useMemo(function() {
42
+ var _obj;
43
+ return classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-").concat(currentStatus), true), _define_property(_obj, "".concat(classPrefix, "-").concat(type || parentType), true), _define_property(_obj, "".concat(classPrefix, "-special"), description), _obj), className);
44
+ }, [
45
+ currentStatus,
46
+ type,
47
+ className,
48
+ description,
49
+ classPrefix
50
+ ]);
51
+ // 头部渲染
52
+ var renderHeadType = useMemo(function() {
53
+ switch(type || parentType){
54
+ case 'text':
55
+ return /*#__PURE__*/ React.createElement(View, {
56
+ className: "".concat(classPrefix, "-head-text")
57
+ }, value);
58
+ case 'dot':
59
+ return /*#__PURE__*/ React.createElement(View, {
60
+ className: "".concat(classPrefix, "-head-dot")
61
+ });
62
+ case 'icon':
63
+ return /*#__PURE__*/ React.createElement(View, {
64
+ className: "".concat(classPrefix, "-head-icon")
65
+ }, icon || parentIcon);
66
+ default:
67
+ return null;
44
68
  }
45
- return "".concat(classPrefix, "-icon");
46
- };
47
- return /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({
48
- className: classes
49
- }, restProps), {
69
+ }, [
70
+ type,
71
+ value,
72
+ icon
73
+ ]);
74
+ // 内容渲染
75
+ var renderContent = useMemo(function() {
76
+ if (!title && !description) return null;
77
+ return /*#__PURE__*/ React.createElement("div", {
78
+ className: "".concat(classPrefix, "-main")
79
+ }, title && /*#__PURE__*/ React.createElement(View, {
80
+ className: "".concat(classPrefix, "-title")
81
+ }, title), description && /*#__PURE__*/ React.createElement(View, {
82
+ className: "".concat(classPrefix, "-description")
83
+ }, description));
84
+ }, [
85
+ title,
86
+ description
87
+ ]);
88
+ return /*#__PURE__*/ React.createElement("div", {
89
+ className: classes,
90
+ style: style,
50
91
  onClick: handleClickStep
51
- }), /*#__PURE__*/ React.createElement(View, {
52
- className: "nut-step-head"
53
92
  }, /*#__PURE__*/ React.createElement(View, {
54
- className: "nut-step-line"
55
- }), /*#__PURE__*/ React.createElement(View, {
56
- className: renderIconClass()
57
- }, icon || !dot && /*#__PURE__*/ React.createElement("span", {
58
- className: "nut-step-inner"
59
- }, value))), (title || description) && /*#__PURE__*/ React.createElement(View, {
60
- className: "nut-step-main"
61
- }, /*#__PURE__*/ React.createElement("span", {
62
- className: "nut-step-title"
63
- }, title), description && /*#__PURE__*/ React.createElement("span", {
64
- className: "nut-step-description"
65
- }, description)));
93
+ className: "".concat(classPrefix, "-head")
94
+ }, /*#__PURE__*/ React.createElement(View, {
95
+ className: "".concat(classPrefix, "-head-").concat(type || parentType, "-wrap")
96
+ }, renderHeadType)), /*#__PURE__*/ React.createElement(View, {
97
+ className: "".concat(classPrefix, "-line")
98
+ }, /*#__PURE__*/ React.createElement(View, {
99
+ className: "".concat(classPrefix, "-line-inner")
100
+ })), renderContent);
66
101
  };
67
102
  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
- }