@king-design/react 3.0.0-beta.0 → 3.0.0-beta.2

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 (223) hide show
  1. package/__tests__/__snapshots__/Dialog.md +1 -1
  2. package/__tests__/__snapshots__/React Demos.md +468 -309
  3. package/__tests__/components/cascader.spec.tsx +53 -0
  4. package/__tests__/components/drawer.spec.tsx +67 -5
  5. package/components/button/index.d.ts +1 -1
  6. package/components/button/index.js +1 -1
  7. package/components/button/styles.d.ts +1 -1
  8. package/components/button/styles.js +3 -5
  9. package/components/carousel/index.vdt.js +2 -2
  10. package/components/cascader/index.d.ts +22 -11
  11. package/components/cascader/index.js +9 -12
  12. package/components/cascader/index.spec.js +81 -0
  13. package/components/cascader/index.vdt.js +11 -9
  14. package/components/cascader/styles.js +1 -1
  15. package/components/cascader/useFields.d.ts +2 -0
  16. package/components/cascader/useFields.js +18 -0
  17. package/components/cascader/useFilterable.d.ts +2 -1
  18. package/components/cascader/useFilterable.js +17 -6
  19. package/components/cascader/useLabel.d.ts +2 -1
  20. package/components/cascader/useLabel.js +4 -4
  21. package/components/cascader/useLoad.d.ts +2 -1
  22. package/components/cascader/useLoad.js +9 -7
  23. package/components/collapse/item.vdt.js +1 -1
  24. package/components/colorpicker/index.d.ts +2 -0
  25. package/components/colorpicker/index.js +7 -2
  26. package/components/colorpicker/index.vdt.js +3 -6
  27. package/components/copy/index.d.ts +17 -0
  28. package/components/copy/index.js +43 -0
  29. package/components/copy/index.spec.d.ts +1 -0
  30. package/components/copy/index.spec.js +52 -0
  31. package/components/copy/index.vdt.js +45 -0
  32. package/components/copy/styles.d.ts +2 -0
  33. package/components/copy/styles.js +14 -0
  34. package/components/copy/useCopy.d.ts +4 -0
  35. package/components/copy/useCopy.js +90 -0
  36. package/components/datepicker/calendar.vdt.js +6 -6
  37. package/components/datepicker/index.spec.js +171 -153
  38. package/components/datepicker/index.vdt.js +1 -1
  39. package/components/datepicker/styles.js +1 -1
  40. package/components/datepicker/useValue.d.ts +3 -3
  41. package/components/datepicker/useValue.js +38 -9
  42. package/components/diagram/shapes/callout.d.ts +1 -1
  43. package/components/diagram/shapes/circle.d.ts +1 -1
  44. package/components/diagram/shapes/document.d.ts +1 -1
  45. package/components/diagram/shapes/ellipse.d.ts +1 -1
  46. package/components/diagram/shapes/hexagon.d.ts +1 -1
  47. package/components/diagram/shapes/image.d.ts +1 -1
  48. package/components/diagram/shapes/parallelogram.d.ts +1 -1
  49. package/components/diagram/shapes/rectangle.d.ts +1 -1
  50. package/components/diagram/shapes/square.d.ts +1 -1
  51. package/components/diagram/shapes/text.d.ts +1 -1
  52. package/components/dialog/alert.vdt.js +6 -5
  53. package/components/dialog/index.spec.js +6 -6
  54. package/components/dialog/styles.js +1 -1
  55. package/components/dropdown/dropdown.d.ts +6 -6
  56. package/components/dropdown/dropdown.js +58 -75
  57. package/components/dropdown/index.spec.js +96 -17
  58. package/components/dropdown/item.d.ts +1 -1
  59. package/components/dropdown/item.js +19 -7
  60. package/components/dropdown/menu.js +1 -1
  61. package/components/dropdown/usePosition.js +11 -2
  62. package/components/editable/index.d.ts +1 -0
  63. package/components/editable/index.js +20 -6
  64. package/components/editable/index.vdt.js +2 -1
  65. package/components/form/index.spec.js +4 -2
  66. package/components/form/item.vdt.js +2 -1
  67. package/components/form/styles.js +4 -4
  68. package/components/grid/useGutter.js +8 -8
  69. package/components/icon/styles.js +1 -1
  70. package/components/input/index.d.ts +13 -2
  71. package/components/input/index.js +16 -13
  72. package/components/input/index.spec.js +169 -1
  73. package/components/input/index.vdt.js +44 -12
  74. package/components/input/search.vdt.js +2 -4
  75. package/components/input/styles.js +30 -6
  76. package/components/input/useAutoRows.d.ts +2 -0
  77. package/components/input/useAutoRows.js +79 -0
  78. package/components/input/useAutoWidth.js +13 -3
  79. package/components/input/useFocus.d.ts +4 -0
  80. package/components/input/useFocus.js +21 -0
  81. package/components/input/useShowPassword.d.ts +7 -0
  82. package/components/input/useShowPassword.js +31 -0
  83. package/components/menu/index.spec.js +26 -15
  84. package/components/menu/item.d.ts +2 -0
  85. package/components/menu/item.js +5 -0
  86. package/components/menu/item.vdt.js +4 -1
  87. package/components/pagination/index.d.ts +1 -1
  88. package/components/pagination/index.js +3 -2
  89. package/components/pagination/index.spec.js +49 -0
  90. package/components/pagination/index.vdt.js +10 -12
  91. package/components/pagination/styles.js +1 -1
  92. package/components/popover/content.d.ts +19 -0
  93. package/components/popover/content.js +31 -0
  94. package/components/popover/content.vdt.js +68 -0
  95. package/components/popover/index.d.ts +16 -0
  96. package/components/popover/index.js +44 -0
  97. package/components/popover/index.spec.d.ts +1 -0
  98. package/components/popover/index.spec.js +195 -0
  99. package/components/popover/styles.d.ts +1 -0
  100. package/components/popover/styles.js +22 -0
  101. package/components/portal.d.ts +6 -2
  102. package/components/portal.js +4 -3
  103. package/components/position.js +2 -1
  104. package/components/progress/index.js +1 -1
  105. package/components/progress/index.vdt.js +46 -8
  106. package/components/progress/styles.js +19 -13
  107. package/components/rate/styles.js +1 -1
  108. package/components/select/base.d.ts +7 -3
  109. package/components/select/base.js +9 -3
  110. package/components/select/base.vdt.js +75 -47
  111. package/components/select/index.spec.js +25 -13
  112. package/components/select/menu.vdt.js +6 -6
  113. package/components/select/option.vdt.js +2 -1
  114. package/components/select/styles.js +11 -5
  115. package/components/select/useDraggble.d.ts +2 -0
  116. package/components/select/useDraggble.js +11 -0
  117. package/components/slider/index.spec.js +48 -9
  118. package/components/slider/index.vdt.js +23 -12
  119. package/components/slider/styles.js +23 -14
  120. package/components/slider/useValue.d.ts +3 -1
  121. package/components/slider/useValue.js +12 -0
  122. package/components/spinner/index.d.ts +0 -1
  123. package/components/spinner/index.js +1 -19
  124. package/components/spinner/index.vdt.js +13 -8
  125. package/components/spinner/styles.js +2 -2
  126. package/components/spinner/useChange.d.ts +1 -1
  127. package/components/spinner/useChange.js +2 -2
  128. package/components/spinner/useValue.d.ts +1 -0
  129. package/components/spinner/useValue.js +16 -1
  130. package/components/split/index.vdt.js +32 -20
  131. package/components/split/memo.d.ts +9 -0
  132. package/components/split/memo.js +26 -0
  133. package/components/steps/index.d.ts +1 -0
  134. package/components/steps/index.js +2 -1
  135. package/components/steps/index.spec.js +1 -1
  136. package/components/steps/index.vdt.js +7 -4
  137. package/components/steps/step.vdt.js +2 -3
  138. package/components/steps/styles.d.ts +1 -0
  139. package/components/steps/styles.js +50 -17
  140. package/components/switch/index.spec.js +82 -65
  141. package/components/table/cell.js +1 -6
  142. package/components/table/cell.vdt.js +1 -1
  143. package/components/table/column.vdt.js +40 -24
  144. package/components/table/index.spec.js +162 -20
  145. package/components/table/row.d.ts +1 -1
  146. package/components/table/row.js +2 -1
  147. package/components/table/styles.js +16 -9
  148. package/components/table/table.d.ts +15 -0
  149. package/components/table/table.js +16 -7
  150. package/components/table/table.vdt.js +20 -6
  151. package/components/table/useChecked.d.ts +3 -2
  152. package/components/table/useChecked.js +23 -12
  153. package/components/table/useDisableRow.d.ts +2 -1
  154. package/components/table/useDisableRow.js +4 -4
  155. package/components/table/useDraggable.d.ts +3 -2
  156. package/components/table/useDraggable.js +11 -15
  157. package/components/table/useGroup.d.ts +9 -3
  158. package/components/table/useGroup.js +48 -37
  159. package/components/table/useMerge.d.ts +2 -1
  160. package/components/table/useMerge.js +5 -4
  161. package/components/table/usePagination.d.ts +8 -0
  162. package/components/table/usePagination.js +81 -0
  163. package/components/table/useStickyScrollbar.js +2 -2
  164. package/components/table/useTree.d.ts +2 -1
  165. package/components/table/useTree.js +3 -4
  166. package/components/table/useWidth.js +2 -2
  167. package/components/tabs/index.d.ts +1 -1
  168. package/components/tabs/index.js +1 -1
  169. package/components/tabs/index.spec.js +67 -0
  170. package/components/tabs/index.vdt.js +9 -4
  171. package/components/tabs/styles.js +32 -34
  172. package/components/tabs/useScroll.d.ts +1 -1
  173. package/components/tabs/useScroll.js +75 -48
  174. package/components/tag/base.d.ts +1 -0
  175. package/components/tag/base.js +1 -1
  176. package/components/tag/index.d.ts +1 -0
  177. package/components/tag/index.js +2 -1
  178. package/components/tag/index.spec.js +147 -4
  179. package/components/tag/styles.d.ts +67 -0
  180. package/components/tag/styles.js +33 -8
  181. package/components/tag/tags.d.ts +27 -0
  182. package/components/tag/tags.js +51 -0
  183. package/components/tag/tags.vdt.js +91 -0
  184. package/components/tag/useChildren.d.ts +2 -0
  185. package/components/tag/useChildren.js +39 -0
  186. package/components/tag/useDraggable.d.ts +3 -0
  187. package/components/tag/useDraggable.js +89 -0
  188. package/components/tag/useNowrap.d.ts +7 -0
  189. package/components/tag/useNowrap.js +115 -0
  190. package/components/timepicker/index.spec.js +1 -1
  191. package/components/tooltip/content.d.ts +3 -2
  192. package/components/tooltip/content.js +18 -1
  193. package/components/tooltip/content.vdt.js +22 -10
  194. package/components/tooltip/index.spec.js +147 -92
  195. package/components/tooltip/styles.d.ts +23 -0
  196. package/components/tooltip/styles.js +2 -2
  197. package/components/tooltip/tooltip.d.ts +1 -1
  198. package/components/tooltip/tooltip.js +11 -11
  199. package/components/transfer/index.vdt.js +14 -3
  200. package/components/types.d.ts +1 -0
  201. package/components/upload/index.spec.js +5 -6
  202. package/components/upload/index.vdt.js +7 -5
  203. package/components/utils.d.ts +2 -0
  204. package/components/utils.js +24 -3
  205. package/components/virtual.d.ts +8 -0
  206. package/components/virtual.js +126 -0
  207. package/hooks/useResizeObserver.d.ts +1 -1
  208. package/hooks/useResizeObserver.js +19 -6
  209. package/i18n/en-US.d.ts +4 -1
  210. package/i18n/en-US.js +6 -2
  211. package/index.d.ts +5 -3
  212. package/index.js +5 -3
  213. package/package.json +2 -2
  214. package/styles/fonts/iconfont.eot +0 -0
  215. package/styles/fonts/iconfont.js +2 -2
  216. package/styles/fonts/iconfont.svg +35 -35
  217. package/styles/fonts/iconfont.ttf +0 -0
  218. package/styles/fonts/iconfont.woff +0 -0
  219. package/styles/fonts/ionicons.js +3 -3
  220. package/styles/global.js +1 -1
  221. package/yarn-error.log +41 -43
  222. package/components/table/useResizeObserver.d.ts +0 -2
  223. package/components/table/useResizeObserver.js +0 -20
@@ -80,6 +80,16 @@ export function useValue(getStep, getDragging) {
80
80
  });
81
81
  }
82
82
 
83
+ function onLeftSpinnerChange(v) {
84
+ var secondValue = showValue.value[1];
85
+ onSpinnerChange([v, Math.max(v, secondValue)]);
86
+ }
87
+
88
+ function onRightSpinnerChange(v) {
89
+ var firstValue = showValue.value[0];
90
+ onSpinnerChange([Math.min(v, firstValue), v]);
91
+ }
92
+
83
93
  function triggerChangeEvent(oldValue) {
84
94
  var _instance$get3 = instance.get(),
85
95
  value = _instance$get3.value;
@@ -91,6 +101,8 @@ export function useValue(getStep, getDragging) {
91
101
  return {
92
102
  showValue: showValue,
93
103
  onSpinnerChange: onSpinnerChange,
104
+ onLeftSpinnerChange: onLeftSpinnerChange,
105
+ onRightSpinnerChange: onRightSpinnerChange,
94
106
  setValue: setValue,
95
107
  triggerChangeEvent: triggerChangeEvent,
96
108
  fixValue: fixValue
@@ -39,6 +39,5 @@ export declare class Spinner extends Component<SpinnerProps, SpinnerEvents> {
39
39
  private change;
40
40
  private isDisabledDecrease;
41
41
  private isDisabledIncrease;
42
- private onInput;
43
42
  }
44
43
  export {};
@@ -1,10 +1,7 @@
1
1
  import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
2
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
- import _trimInstanceProperty from "@babel/runtime-corejs3/core-js/instance/trim";
4
- import { __decorate } from "tslib";
5
3
  import { Component } from 'intact-react';
6
4
  import template from './index.vdt';
7
- import { bind } from '../utils';
8
5
  import { sizes } from '../../styles/utils';
9
6
  import { useStep } from './useStep';
10
7
  import { useFormatter } from './useFormatter';
@@ -79,19 +76,6 @@ export var Spinner = /*#__PURE__*/function (_Component) {
79
76
  disabled = _this$get2.disabled;
80
77
 
81
78
  return disabled || value >= max;
82
- } // we need change value as long as the input is valid, #213
83
- ;
84
-
85
- _proto.onInput = function onInput(e) {
86
- var val = e.target.value;
87
-
88
- var _this$value$getFixedV = this.value.getFixedValue(_trimInstanceProperty(val).call(val), this.get('value')),
89
- value = _this$value$getFixedV.value;
90
-
91
- this.value.showValue.set(val);
92
- this.set({
93
- value: value
94
- });
95
79
  };
96
80
 
97
81
  return Spinner;
@@ -99,6 +83,4 @@ export var Spinner = /*#__PURE__*/function (_Component) {
99
83
  Spinner.template = template;
100
84
  Spinner.typeDefs = typeDefs;
101
85
  Spinner.defaults = defaults;
102
- Spinner.events = events;
103
-
104
- __decorate([bind], Spinner.prototype, "onInput", null);
86
+ Spinner.events = events;
@@ -6,16 +6,16 @@ import { Input } from '../input';
6
6
  import { getRestProps } from '../utils';
7
7
  import { makeStyles } from './styles';
8
8
  var _$tmp0 = {
9
- 'className': 'k-spinner-icon k-icon-minus-small'
9
+ 'className': 'k-spinner-icon k-icon-minus'
10
10
  };
11
11
  var _$tmp1 = {
12
- 'className': 'k-spinner-icon k-icon-arrow-down'
12
+ 'className': 'k-spinner-icon k-icon-down'
13
13
  };
14
14
  var _$tmp2 = {
15
- 'className': 'k-spinner-icon k-icon-add-small'
15
+ 'className': 'k-spinner-icon k-icon-add'
16
16
  };
17
17
  var _$tmp3 = {
18
- 'className': 'k-spinner-icon k-icon-arrow-up'
18
+ 'className': 'k-spinner-icon k-icon-up'
19
19
  };
20
20
  export default function ($props, $blocks, $__proto__) {
21
21
  var _classNameObj;
@@ -39,8 +39,11 @@ export default function ($props, $blocks, $__proto__) {
39
39
  var _this$change = this.change,
40
40
  decrease = _this$change.decrease,
41
41
  increase = _this$change.increase,
42
- changeValue = _this$change.changeValue,
42
+ onChangeValue = _this$change.onChangeValue,
43
43
  onFocusin = _this$change.onFocusin;
44
+ var _this$value = this.value,
45
+ showValue = _this$value.showValue,
46
+ onInput = _this$value.onInput;
44
47
  return _$cv('div', _extends({
45
48
  'className': _$cn(classNameObj)
46
49
  }, getRestProps(this)), [_$cc(Button, {
@@ -50,14 +53,15 @@ export default function ($props, $blocks, $__proto__) {
50
53
  'className': 'k-spinner-btn k-left',
51
54
  'size': size,
52
55
  'type': 'none',
56
+ 'tabindex': '-1',
53
57
  'children': !vertical ? _$cc(Icon, _$tmp0) : _$cc(Icon, _$tmp1)
54
58
  }), _$cc(Input, {
55
59
  'className': 'k-spinner-input',
56
60
  'disabled': disabled,
57
- 'ev-change': changeValue,
61
+ 'ev-change': onChangeValue,
58
62
  'ev-focusin': onFocusin,
59
- 'value': this.value.showValue.value,
60
- 'ev-input': this.onInput,
63
+ 'value': showValue.value,
64
+ 'ev-input': onInput,
61
65
  'size': size,
62
66
  'width': width
63
67
  }), _$cc(Button, {
@@ -67,6 +71,7 @@ export default function ($props, $blocks, $__proto__) {
67
71
  'className': 'k-spinner-btn k-right',
68
72
  'size': size,
69
73
  'type': 'none',
74
+ 'tabindex': '-1',
70
75
  'children': !vertical ? _$cc(Icon, _$tmp2) : _$cc(Icon, _$tmp3)
71
76
  })]);
72
77
  }
@@ -70,7 +70,7 @@ setDefault(function () {
70
70
  }).spinner;
71
71
  });
72
72
  export function makeStyles() {
73
- return /*#__PURE__*/css("display:inline-block;vertical-align:middle;border:", spinner.border, ";border-radius:", spinner.borderRadius, ";&:hover{border-color:", spinner.hoverBorderColor, ";.k-spinner-btn{background:", spinner.hoverBtnBg, ";}.k-left{border-radius:", spinner.borderRadius, " 0 0 ", spinner.borderRadius, ";}.k-right{border-radius:0 ", spinner.borderRadius, " ", spinner.borderRadius, " 0;}}.k-spinner-input{width:", spinner.default.inputWidth, ";.k-input-inner{text-align:center;border:none;border-radius:0;&:hover,&:focus{border:none;}}}.k-spinner-icon{font-size:", spinner.default.iconFontSize, ";}&.k-vertical{position:relative;font-size:0;", _mapInstanceProperty(sizes).call(sizes, function (size) {
73
+ return /*#__PURE__*/css("display:inline-block;vertical-align:middle;border:", spinner.border, ";border-radius:", spinner.borderRadius, ";&:hover{border-color:", spinner.hoverBorderColor, ";.k-spinner-btn{background:", spinner.hoverBtnBg, ";}.k-left{border-radius:", spinner.borderRadius, " 0 0 ", spinner.borderRadius, ";}.k-right{border-radius:0 ", spinner.borderRadius, " ", spinner.borderRadius, " 0;}}.k-spinner-input{width:", spinner.default.inputWidth, ";.k-input-wrapper{border:none;border-radius:0;&:hover{border:none;}}&.k-focus .k-input-wrapper{border:none;}.k-input-inner{text-align:center;}}.k-spinner-icon{font-size:", spinner.default.iconFontSize, ";}&.k-vertical{position:relative;font-size:0;", _mapInstanceProperty(sizes).call(sizes, function (size) {
74
74
  var generate = function generate() {
75
75
  return "\n .k-spinner-input {\n padding-right: " + theme[size].height + ";\n width: " + spinner.vertical[size].width + ";\n }\n ";
76
76
  };
@@ -80,7 +80,7 @@ export function makeStyles() {
80
80
  } else {
81
81
  return "\n &.k-" + size + " {\n " + generate() + "\n }\n ";
82
82
  }
83
- }), ";.k-spinner-btn{position:absolute;right:0;margin:0;height:calc(50% - 2px);line-height:50%;}.k-spinner-icon{font-size:inherit!important;}.k-spinner-btn.k-left{bottom:1px;border-radius:0 0 ", spinner.borderRadius, " 0;}.k-spinner-btn.k-right{top:1px;border-radius:0 ", spinner.borderRadius, " 0 0;}.k-spinner-input{font-size:0;.k-input-inner{border-radius:", spinner.borderRadius, " 0 0 ", spinner.borderRadius, ";}}}&.k-disabled{border-color:", spinner.disabledBorderColor, ";background:", spinner.disabledBg, ";}", _mapInstanceProperty(sizes).call(sizes, function (size) {
83
+ }), ";.k-spinner-btn{position:absolute;right:0;margin:0;height:calc(50% - 2px);line-height:50%;}.k-spinner-icon{font-size:inherit!important;}.k-spinner-btn.k-left{bottom:1px;border-radius:0 0 ", spinner.borderRadius, " 0;}.k-spinner-btn.k-right{top:1px;border-radius:0 ", spinner.borderRadius, " 0 0;}.k-spinner-input{.k-input-wrapper{border-radius:", spinner.borderRadius, " 0 0 ", spinner.borderRadius, ";}}}&.k-disabled{border-color:", spinner.disabledBorderColor, ";background:", spinner.disabledBg, ";}", _mapInstanceProperty(sizes).call(sizes, function (size) {
84
84
  var styles = spinner[size];
85
85
 
86
86
  var generate = function generate() {
@@ -3,6 +3,6 @@ import type { useValue } from './useValue';
3
3
  export declare function useChange(getStep: NormalizedGetStep, fixValue: ReturnType<typeof useValue>['fixValue']): {
4
4
  increase: () => void;
5
5
  decrease: () => void;
6
- changeValue: (e: Event) => void;
6
+ onChangeValue: (e: Event) => void;
7
7
  onFocusin: () => void;
8
8
  };
@@ -26,7 +26,7 @@ export function useChange(getStep, fixValue) {
26
26
  fixAndTriggerChange(Number((value - step).toFixed(10)), 0);
27
27
  }
28
28
 
29
- function changeValue(e) {
29
+ function onChangeValue(e) {
30
30
  var _context;
31
31
 
32
32
  fixAndTriggerChange(_trimInstanceProperty(_context = e.target.value).call(_context), instance.get('value'));
@@ -47,7 +47,7 @@ export function useChange(getStep, fixValue) {
47
47
  return {
48
48
  increase: increase,
49
49
  decrease: decrease,
50
- changeValue: changeValue,
50
+ onChangeValue: onChangeValue,
51
51
  onFocusin: onFocusin
52
52
  };
53
53
  }
@@ -7,6 +7,7 @@ export declare function useValue(getStep: NormalizedGetStep, formatter: ReturnTy
7
7
  valueString: string;
8
8
  value: number;
9
9
  };
10
+ onInput: (e: InputEvent) => void;
10
11
  };
11
12
  /**
12
13
  * return max min or multiple by step
@@ -1,4 +1,5 @@
1
1
  import _Number$isNaN from "@babel/runtime-corejs3/core-js/number/is-nan";
2
+ import _trimInstanceProperty from "@babel/runtime-corejs3/core-js/instance/trim";
2
3
  import { useInstance } from 'intact-react';
3
4
  import { useReceive } from '../../hooks/useReceive';
4
5
  import { error, isNullOrUndefined, isString } from 'intact-shared';
@@ -63,12 +64,26 @@ export function useValue(getStep, formatter) {
63
64
  valueString: valueString,
64
65
  value: value
65
66
  };
67
+ } // we need change value as long as the input is valid, #213
68
+
69
+
70
+ function onInput(e) {
71
+ var val = e.target.value;
72
+
73
+ var _getFixedValue2 = getFixedValue(_trimInstanceProperty(val).call(val), instance.get('value')),
74
+ value = _getFixedValue2.value;
75
+
76
+ showValue.set(val);
77
+ instance.set({
78
+ value: value
79
+ });
66
80
  }
67
81
 
68
82
  return {
69
83
  showValue: showValue,
70
84
  fixValue: fixValue,
71
- getFixedValue: getFixedValue
85
+ getFixedValue: getFixedValue,
86
+ onInput: onInput
72
87
  };
73
88
  }
74
89
  /**
@@ -1,6 +1,9 @@
1
- import { createElementVNode as _$ce, noop as _$no, className as _$cn } from 'intact-react';
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import { createVNode as _$cv, className as _$cn, createElementVNode as _$ce, createUnknownComponentVNode as _$cc, noop as _$no } from 'intact-react';
2
3
  import { makeStyles } from './style';
3
4
  import { kls } from './style';
5
+ import { MemoBlock } from './memo';
6
+ import { getRestProps } from '../utils';
4
7
  export default function ($props, $blocks, $__proto__) {
5
8
  var _classNameObj, _style, _style2;
6
9
 
@@ -26,17 +29,23 @@ export default function ($props, $blocks, $__proto__) {
26
29
  'k-split': true
27
30
  }, _classNameObj["k-" + mode] = true, _classNameObj[makeStyles()] = true, _classNameObj['k-first-auto'] = firstSize.value === 'auto', _classNameObj['k-last-auto'] = lastSize.value === 'auto', _classNameObj['k-resizing'] = dragging.value, _classNameObj);
28
31
  var stylePropName = mode === 'horizontal' ? 'width' : 'height';
29
- return _$ce(2, 'div', [_$ce(2, 'div', (_$blocks['first'] = function ($super) {
30
- return null;
31
- }, __$blocks['first'] = function ($super, data) {
32
- var block = $blocks['first'];
32
+ return _$cv('div', _extends({
33
+ 'className': _$cn(classNameObj),
34
+ 'ref': elementRef
35
+ }, getRestProps(this)), [_$ce(2, 'div', _$cc(MemoBlock, {
36
+ 'block': $blocks.first,
37
+ 'children': (_$blocks['first'] = function ($super) {
38
+ return null;
39
+ }, __$blocks['first'] = function ($super, data) {
40
+ var block = $blocks['first'];
33
41
 
34
- var callBlock = function callBlock() {
35
- return _$blocks['first'].call($this, $super, data);
36
- };
42
+ var callBlock = function callBlock() {
43
+ return _$blocks['first'].call($this, $super, data);
44
+ };
37
45
 
38
- return block ? block.call($this, callBlock, data) : callBlock();
39
- }, __$blocks['first'](_$no)), 0, _$cn(kls('first')), {
46
+ return block ? block.call($this, callBlock, data) : callBlock();
47
+ }, __$blocks['first'](_$no))
48
+ }), 2, _$cn(kls('first')), {
40
49
  'style': (_style = {}, _style[stylePropName] = firstSize.value, _style)
41
50
  }, null, firstRef), _$ce(2, 'div', (_$blocks['drag'] = function ($super) {
42
51
  return _$ce(2, 'div', _$ce(2, 'div', null, 1, _$cn(kls('drag-lines'))), 2, _$cn(kls('line')));
@@ -50,18 +59,21 @@ export default function ($props, $blocks, $__proto__) {
50
59
  return block ? block.call($this, callBlock, data) : callBlock();
51
60
  }, __$blocks['drag'](_$no)), 0, _$cn(kls('line-wrapper')), {
52
61
  'ev-mousedown': start
53
- }), _$ce(2, 'div', (_$blocks['last'] = function ($super) {
54
- return null;
55
- }, __$blocks['last'] = function ($super, data) {
56
- var block = $blocks['last'];
62
+ }), _$ce(2, 'div', _$cc(MemoBlock, {
63
+ 'block': $blocks.last,
64
+ 'children': (_$blocks['last'] = function ($super) {
65
+ return null;
66
+ }, __$blocks['last'] = function ($super, data) {
67
+ var block = $blocks['last'];
57
68
 
58
- var callBlock = function callBlock() {
59
- return _$blocks['last'].call($this, $super, data);
60
- };
69
+ var callBlock = function callBlock() {
70
+ return _$blocks['last'].call($this, $super, data);
71
+ };
61
72
 
62
- return block ? block.call($this, callBlock, data) : callBlock();
63
- }, __$blocks['last'](_$no)), 0, _$cn(kls('last')), {
73
+ return block ? block.call($this, callBlock, data) : callBlock();
74
+ }, __$blocks['last'](_$no))
75
+ }), 2, _$cn(kls('last')), {
64
76
  'style': (_style2 = {}, _style2[stylePropName] = lastSize.value, _style2)
65
- }, null, lastRef)], 4, _$cn(classNameObj), null, null, elementRef);
77
+ }, null, lastRef)]);
66
78
  }
67
79
  ;
@@ -0,0 +1,9 @@
1
+ import { Component, VNodeComponentClass, IntactDom } from 'intact-react';
2
+ interface MemoBlockProps {
3
+ block: Function;
4
+ }
5
+ export declare class MemoBlock extends Component<MemoBlockProps> {
6
+ static template: (this: MemoBlock) => import("intact").Children;
7
+ $update(lastVNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this>, parentDom: Element, anchor: IntactDom | null, mountedQueue: Function[], force: boolean): void;
8
+ }
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
+ import { Component } from 'intact-react';
3
+ export var MemoBlock = /*#__PURE__*/function (_Component) {
4
+ _inheritsLoose(MemoBlock, _Component);
5
+
6
+ function MemoBlock() {
7
+ return _Component.apply(this, arguments) || this;
8
+ }
9
+
10
+ var _proto = MemoBlock.prototype;
11
+
12
+ _proto.$update = function $update(lastVNode, nextVNode, parentDom, anchor, mountedQueue, force) {
13
+ var lastProps = lastVNode.props;
14
+ var nextProps = nextVNode.props;
15
+ if (lastProps.block === nextProps.block) return;
16
+
17
+ _Component.prototype.$update.call(this, lastVNode, nextVNode, parentDom, anchor, mountedQueue, force);
18
+ };
19
+
20
+ return MemoBlock;
21
+ }(Component);
22
+
23
+ MemoBlock.template = function () {
24
+ var props = this.$props;
25
+ return props.children;
26
+ };
@@ -5,6 +5,7 @@ export interface StepsProps {
5
5
  status?: 'normal' | 'error' | 'done';
6
6
  type?: 'default' | 'line' | 'simple' | 'line-compact' | 'dot';
7
7
  clickable?: boolean;
8
+ vertical?: boolean;
8
9
  }
9
10
  export declare class Steps extends Component<StepsProps> {
10
11
  static template: string | import("intact").Template<any>;
@@ -8,7 +8,8 @@ var typeDefs = {
8
8
  value: Number,
9
9
  status: ['normal', 'error', 'done'],
10
10
  type: ['default', 'line', 'simple', 'line-compact', 'dot'],
11
- clickable: Boolean
11
+ clickable: Boolean,
12
+ vertical: Boolean
12
13
  };
13
14
 
14
15
  var defaults = function defaults() {
@@ -21,7 +21,7 @@ describe('Steps', function () {
21
21
 
22
22
  case 5:
23
23
  expect(element.innerHTML).to.matchSnapshot();
24
- _element$querySelecto2 = element.querySelectorAll('.k-step'), step1 = _element$querySelecto2[0], step2 = _element$querySelecto2[1];
24
+ _element$querySelecto2 = element.querySelectorAll('.k-step-wrapper'), step1 = _element$querySelecto2[0], step2 = _element$querySelecto2[1];
25
25
  step1.click();
26
26
  _context.next = 10;
27
27
  return wait();
@@ -17,11 +17,12 @@ export default function ($props, $blocks, $__proto__) {
17
17
  value = _this$get.value,
18
18
  status = _this$get.status,
19
19
  type = _this$get.type,
20
- clickable = _this$get.clickable;
20
+ clickable = _this$get.clickable,
21
+ vertical = _this$get.vertical;
21
22
 
22
23
  var classNameObj = (_classNameObj = {
23
24
  'k-steps': true
24
- }, _classNameObj[className] = className, _classNameObj["k-" + type] = true, _classNameObj['k-clickable'] = clickable, _classNameObj[makeStepsStyles()] = true, _classNameObj);
25
+ }, _classNameObj[className] = className, _classNameObj["k-" + type] = true, _classNameObj['k-clickable'] = clickable, _classNameObj['k-vertical'] = vertical, _classNameObj[makeStepsStyles()] = true, _classNameObj);
25
26
  var stepIndex = 0;
26
27
  var steps = [];
27
28
  eachChildren(children, function (vNode) {
@@ -34,12 +35,14 @@ export default function ($props, $blocks, $__proto__) {
34
35
  }
35
36
  }); // add width
36
37
 
37
- var width = 100 / stepIndex + '%';
38
+ /* const width = (100 / stepIndex) + '%'; */
39
+
38
40
  return _$cc(StepsContext.Provider, {
39
41
  'value': {
40
42
  value: value,
41
43
  status: status,
42
- width: width,
44
+
45
+ /* width, */
43
46
  type: type,
44
47
  onChange: this.changeIndex
45
48
  },
@@ -5,11 +5,11 @@ import { getRestProps, addStyle } from '../utils';
5
5
  import { context as StepsContext } from './context';
6
6
  import { Icon } from '../icon';
7
7
  var _$tmp0 = {
8
- 'className': 'k-icon-close-big',
8
+ 'className': 'k-icon-close-bold',
9
9
  'color': 'danger'
10
10
  };
11
11
  var _$tmp1 = {
12
- 'className': 'k-icon-check',
12
+ 'className': 'k-icon-check-bold',
13
13
  'color': 'primary'
14
14
  };
15
15
  export default function ($props, $blocks, $__proto__) {
@@ -32,7 +32,6 @@ export default function ($props, $blocks, $__proto__) {
32
32
 
33
33
  var value = _ref.value,
34
34
  status = _ref.status,
35
- width = _ref.width,
36
35
  onChange = _ref.onChange,
37
36
  type = _ref.type;
38
37
  var selected = value === index;
@@ -1,3 +1,4 @@
1
1
  import '../../styles/global';
2
2
  export declare function makeStepsStyles(): string;
3
3
  export declare function makeCommonStyles(): string;
4
+ export declare function makeVerticalStyles(): string;
@@ -1,7 +1,7 @@
1
1
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
2
2
  import { css } from '@emotion/css';
3
3
  import { theme, setDefault } from '../../styles/theme';
4
- import { deepDefaults } from '../../styles/utils';
4
+ import { deepDefaults, palette } from '../../styles/utils';
5
5
  import '../../styles/global';
6
6
  var defaults = {
7
7
  gap: '10px',
@@ -18,10 +18,6 @@ var defaults = {
18
18
  return theme.color.placeholder;
19
19
  },
20
20
 
21
- get markborder() {
22
- return "1px solid " + theme.color.placeholder;
23
- },
24
-
25
21
  markBgColor: '#fff',
26
22
  default: {
27
23
  get height() {
@@ -32,7 +28,12 @@ var defaults = {
32
28
  return theme.color.bg;
33
29
  },
34
30
 
35
- markWidth: '16px'
31
+ get markborder() {
32
+ return "1px solid " + theme.color.placeholder;
33
+ },
34
+
35
+ markWidth: '16px',
36
+ padding: '16px'
36
37
  },
37
38
  // done
38
39
  done: {
@@ -44,6 +45,10 @@ var defaults = {
44
45
  return theme.color.primary;
45
46
  },
46
47
 
48
+ get markHoverBgColor() {
49
+ return palette(theme.color.primary, -4);
50
+ },
51
+
47
52
  markBgColor: '#fff',
48
53
 
49
54
  get mainColor() {
@@ -87,16 +92,21 @@ var defaults = {
87
92
  },
88
93
  // line
89
94
  line: {
95
+ get markborder() {
96
+ return "2px solid " + theme.color.placeholder;
97
+ },
98
+
90
99
  markWidth: '32px',
91
- markFontSize: '24px',
100
+ markFontSize: '18px',
92
101
 
93
102
  get lineColor() {
94
103
  return theme.color.border;
95
104
  },
96
105
 
106
+ lineWidth: '2px',
97
107
  titleGap: '16px',
98
108
  descGap: '4px',
99
- contentMaxWidth: '200px'
109
+ contentWidth: '200px'
100
110
  },
101
111
  // simple
102
112
  simple: {
@@ -114,6 +124,16 @@ var defaults = {
114
124
  return theme.color.danger;
115
125
  }
116
126
 
127
+ },
128
+ // vertical
129
+ vertical: {
130
+ line: {
131
+ minHeight: '100px',
132
+ padding: '16px'
133
+ },
134
+ simple: {
135
+ titleGap: '8px'
136
+ }
117
137
  }
118
138
  };
119
139
  var steps;
@@ -124,27 +144,36 @@ setDefault(function () {
124
144
  });
125
145
  var stepStatus = ['done', 'active', 'error'];
126
146
  export function makeStepsStyles() {
127
- return /*#__PURE__*/css("display:flex;", makeCommonStyles(), ";&.k-default{", makeDefaultStyles(), ";}&.k-line,&.k-line-compact,&.k-simple{", makeLineStyles(), ";}&.k-line-compact{", makeLineCompactStyles(), ";}&.k-simple{", makeSimpleStyles(), ";}&.k-clickable{.k-done{cursor:pointer;}}");
147
+ return /*#__PURE__*/css("display:flex;", makeCommonStyles(), ";&.k-default{", makeDefaultStyles(), ";}&.k-line,&.k-line-compact,&.k-simple{", makeLineStyles(), ";}&.k-line-compact{", makeLineCompactStyles(), ";}&.k-simple{", makeSimpleStyles(), ";}&.k-clickable{.k-done{cursor:pointer;.k-step-wrapper:hover .k-step-mark{background:", steps.done.markHoverBgColor, ";}}}", makeVerticalStyles(), ";");
128
148
  }
129
149
 
130
150
  function makeDefaultStyles() {
131
151
  var defaults = steps.default;
132
- return /*#__PURE__*/css("text-align:center;height:", defaults.height, ";background:", defaults.bgColor, ";.k-step-wrapper{", center(), ";height:100%;}.k-step-mark{width:", defaults.markWidth, ";height:", defaults.markWidth, ";margin-right:", steps.gap, ";}.k-step-main{display:flex;overflow:hidden;white-space:nowrap;}.k-step-title{padding-right:", steps.gap, ";}.k-step:last-of-type{.k-step-tail{display:none;}}.k-step-tail{position:absolute;top:0;right:calc(-1 * (", defaults.height, " / 2 + ", steps.gap, "));width:calc(", defaults.height, " / 2 + ", steps.gap, ");height:", defaults.height, ";overflow:hidden;z-index:1;&:after,&:before{content:'';border-width:calc(", defaults.height, " / 2 + ", steps.gap, ");border-style:solid;border-color:transparent;position:absolute;top:calc(-1 * ", steps.gap, ");}&:after{border-left-color:", defaults.bgColor, ";left:calc(-1 * ", steps.gap, ");}&:before{border-left-color:#fff;left:0;}}.k-step:not(:first-of-type){padding-left:calc(", defaults.height, " / 2 + ", steps.gap, ");}");
152
+ return /*#__PURE__*/css("text-align:center;height:", defaults.height, ";background:", defaults.bgColor, ";.k-step-wrapper{", center(), ";height:100%;padding:0 ", defaults.padding, ";}.k-step-mark{width:", defaults.markWidth, ";height:", defaults.markWidth, ";margin-right:", steps.gap, ";}.k-step-main{display:flex;overflow:hidden;white-space:nowrap;}.k-step-title{padding-right:", steps.gap, ";}.k-step:last-of-type{.k-step-tail{display:none;}}&:not(.k-vertical){", makeArrow(false), ";}");
153
+ }
154
+
155
+ function makeArrow(isVertical) {
156
+ var defaults = steps.default;
157
+ var offset = "calc(-1 * (" + defaults.height + " / 2 + " + steps.gap + "))";
158
+ var size = "calc(" + defaults.height + " / 2 + " + steps.gap + ")";
159
+ return /*#__PURE__*/css(".k-step-tail{position:absolute;", !isVertical ? "\n top: 0;\n right: " + offset + ";\n width: " + size + ";\n height: " + defaults.height + ";\n " : "\n left: 0;\n bottom: " + offset + ";\n height: " + size + ";\n width: " + defaults.height + ";\n ", " overflow:hidden;z-index:1;&:after,&:before{content:'';border-width:calc(", defaults.height, " / 2 + ", steps.gap, ");border-style:solid;border-color:transparent;position:absolute;", isVertical ? 'left' : 'top', ":calc(-1 * ", steps.gap, ");}&:after{border-", isVertical ? 'top' : 'left', "-color:", defaults.bgColor, ";", isVertical ? 'top' : 'left', ":calc(-1 * ", steps.gap, ");}&:before{border-", isVertical ? 'top' : 'left', "-color:#fff;", isVertical ? 'top' : 'left', ":0;}}.k-step:not(:first-of-type){padding-", isVertical ? 'top' : 'left', ":calc(", defaults.height, " / 2 + ", steps.gap, ");}");
133
160
  }
134
161
 
135
162
  function makeLineStyles() {
136
- var line = defaults.line;
137
- return /*#__PURE__*/css(".k-step{display:flex;}.k-step-wrapper{display:inline-block;text-align:center;position:relative;}.k-step:last-of-type{flex:0 0 auto;}.k-step-mark{width:", line.markWidth, ";height:", line.markWidth, ";position:relative;z-index:1;&,.k-icon{font-size:", line.markFontSize, ";}}.k-step-main{padding-top:", line.titleGap, ";}.k-step-title{font-size:14px;color:", theme.color.text, ";}.k-step-content{margin-top:", line.descGap, ";color:", theme.color.placeholder, ";max-width:", line.contentMaxWidth, ";}.k-step-wrapper{&:before,&:after{content:'';display:block;height:1px;background:", line.lineColor, ";width:50%;position:absolute;top:calc(", line.markWidth, " / 2);}&:after{right:0;}}.k-step{&:first-of-type .k-step-wrapper:before,&:last-of-type .k-step-wrapper:after{background:transparent;}}.k-step-tail{flex:1;height:1px;background:", line.lineColor, ";margin-top:calc(", line.markWidth, " / 2);}.k-step{&.k-done{.k-step-tail,&:not(:last-of-type) .k-step-wrapper:after,&:not(:first-of-type) .k-step-wrapper:before{background:", theme.color.primary, ";}}&:not(:first-of-type).k-active{.k-step-wrapper:before{background:", theme.color.primary, ";}}&.k-active .k-step-title{color:", theme.color.primary, ";}&.k-error .k-step-title{color:", theme.color.danger, ";}}");
163
+ var line = steps.line;
164
+ var top = "calc(" + line.markWidth + " / 2 - " + line.lineWidth + " / 2)";
165
+ return /*#__PURE__*/css(".k-step{display:flex;}.k-step-wrapper{display:inline-block;text-align:center;position:relative;width:", line.contentWidth, ";}.k-step:last-of-type{flex:0 0 auto;}.k-step-mark{border:", line.markborder, ";width:", line.markWidth, ";height:", line.markWidth, ";position:relative;z-index:1;&,.k-icon{font-size:", line.markFontSize, ";}}.k-step-main{padding-top:", line.titleGap, ";}.k-step-title{font-size:14px;color:", theme.color.text, ";}.k-step-content{margin-top:", line.descGap, ";color:", theme.color.placeholder, ";}.k-step-wrapper{&:before,&:after{content:'';display:block;height:", line.lineWidth, ";background:", line.lineColor, ";width:50%;position:absolute;top:", top, ";}&:after{right:0;}}.k-step{&:first-of-type .k-step-wrapper:before,&:last-of-type .k-step-wrapper:after{background:transparent;}}.k-step-tail{flex:1;height:", line.lineWidth, ";background:", line.lineColor, ";margin-top:", top, ";}.k-step{&.k-done{.k-step-tail,&:not(:last-of-type) .k-step-wrapper:after,&:not(:first-of-type) .k-step-wrapper:before{background:", theme.color.primary, ";}}&:not(:first-of-type).k-active{.k-step-wrapper:before{background:", theme.color.primary, ";}}&.k-active .k-step-title{color:", theme.color.primary, ";}&.k-error .k-step-title{color:", theme.color.danger, ";}}");
138
166
  }
139
167
 
140
168
  function makeLineCompactStyles() {
141
- var line = defaults.line;
142
- return /*#__PURE__*/css(".k-step-wrapper{display:inline-flex;text-align:left;&:before,&:after{display:none;}}.k-step-main{flex:1;padding:0 0 0 ", line.titleGap, ";}.k-step-content{margin:0;}.k-step-tail{margin-right:", line.titleGap, ";}.k-step-title{display:flex;align-items:center;height:", line.markWidth, ";&:after{content:'';display:block;flex:1;height:1px;background:", line.lineColor, ";margin-left:", line.titleGap, ";}}.k-step:last-of-type .k-step-title:after{display:none;}.k-step{&.k-done{.k-step-title:after{background:", theme.color.primary, ";}}}");
169
+ var line = steps.line;
170
+ return /*#__PURE__*/css(".k-step-wrapper{display:inline-flex;text-align:left;width:auto;&:before,&:after{display:none;}}.k-step-main{flex:1;padding:0 0 0 ", line.titleGap, ";}.k-step-content{margin:0;}.k-step-tail{margin-right:", line.titleGap, ";}.k-step-title{display:flex;align-items:center;height:", line.markWidth, ";&:after{content:'';display:block;flex:1;height:", line.lineWidth, ";background:", line.lineColor, ";margin-left:", line.titleGap, ";}}.k-step:last-of-type .k-step-title:after{display:none;}.k-step{&.k-done{.k-step-title:after{background:", theme.color.primary, ";}}}");
143
171
  }
144
172
 
145
173
  function makeSimpleStyles() {
146
- var simple = defaults.simple;
147
- return /*#__PURE__*/css(".k-step-mark{width:", simple.markWidth, ";height:", simple.markWidth, ";background:", simple.markBgColor, ";}.k-step-wrapper{font-size:0;&:before,&:after{top:calc(", simple.markWidth, " / 2);}}.k-step-main{font-size:", theme.default.fontSize, ";}.k-step-tail{margin-top:calc(", simple.markWidth, " / 2);}.k-step{&.k-done{.k-step-mark{background:", simple.doneMarkBgColor, ";}}&.k-error{.k-step-mark{background:", simple.errorMarkBgColor, ";}}}");
174
+ var simple = steps.simple;
175
+ var top = "calc(" + simple.markWidth + " / 2 - " + steps.line.lineWidth + " / 2)";
176
+ return /*#__PURE__*/css(".k-step-mark{width:", simple.markWidth, ";height:", simple.markWidth, ";background:", simple.markBgColor, ";}.k-step-wrapper{font-size:0;&:before,&:after{top:", top, ";}}.k-step-main{font-size:", theme.default.fontSize, ";}.k-step-tail{margin-top:", top, ";}.k-step{&.k-done{.k-step-mark{background:", simple.doneMarkBgColor, ";}}&.k-error{.k-step-mark{background:", simple.errorMarkBgColor, ";}}}");
148
177
  }
149
178
 
150
179
  function center(flex) {
@@ -159,5 +188,9 @@ export function makeCommonStyles() {
159
188
  return /*#__PURE__*/css(".k-step{position:relative;flex:1;", _mapInstanceProperty(stepStatus).call(stepStatus, function (status) {
160
189
  var styles = steps[status];
161
190
  return /*#__PURE__*/css("&.k-", status, "{.k-step-mark{color:", styles.markColor, ";border-color:", styles.markBorderColor, ";background:", styles.markBgColor, ";}.k-step-main{color:", styles.mainColor, ";}}");
162
- }), ";}.k-step-mark{", center('inline-flex'), ";border:", steps.markborder, ";border-radius:50%;vertical-align:top;color:", steps.markColor, ";background:", steps.markBgColor, ";}");
191
+ }), ";}.k-step-mark{", center('inline-flex'), ";border:", steps.default.markborder, ";border-radius:50%;vertical-align:top;color:", steps.markColor, ";background:", steps.markBgColor, ";}");
192
+ }
193
+ export function makeVerticalStyles() {
194
+ var verticalLine = steps.vertical.line;
195
+ return /*#__PURE__*/css("&.k-vertical{&.k-default{height:auto;width:", steps.default.height, ";writing-mode:vertical-rl;letter-spacing:1px;", makeArrow(true), ";.k-step-wrapper{width:100%;padding:", steps.default.padding, " 0;}.k-step-mark{margin-right:0;margin-bottom:", steps.gap, ";}.k-step-title{padding-right:0;padding-bottom:", steps.gap, ";}}&.k-line,&.k-line-compact,&.k-simple{flex-direction:column;.k-step{flex:none;min-height:", verticalLine.minHeight, ";}.k-step-wrapper{display:flex;width:auto;text-align:left;}.k-step-main{flex:1;padding:0 0 ", verticalLine.padding, " ", verticalLine.padding, ";}.k-step-title{display:flex;align-items:center;height:", steps.line.markWidth, ";&:after{display:none;}}.k-step-wrapper{&:before,&:after{display:none;}}.k-step-tail{position:absolute;left:calc(", steps.line.markWidth, " / 2 - ", steps.line.lineWidth, " / 2);height:100%;width:", steps.line.lineWidth, ";background:", steps.line.lineColor, ";}.k-step:last-of-type{.k-step-tail{display:none;}}}&.k-simple{.k-step-tail{left:calc(", steps.simple.markWidth, " / 2 - ", steps.line.lineWidth, " / 2);}.k-step-title{height:", steps.simple.markWidth, ";margin-bottom:", steps.vertical.simple.titleGap, ";}}}");
163
196
  }