@progress/kendo-themes-html 7.2.0 → 7.2.1-dev.0

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 (178) hide show
  1. package/dist/cjs/autocomplete/tests/autocomplete-prefix-suffix.js +1416 -910
  2. package/dist/cjs/combobox/tests/combobox-prefix-suffix.js +1416 -910
  3. package/dist/cjs/filemanager/file-info.js +1238 -1239
  4. package/dist/cjs/filemanager/filemanager-toolbar.spec.js +1 -1
  5. package/dist/cjs/filemanager/filemanager.spec.js +3481 -2163
  6. package/dist/cjs/filemanager/templates/filemanager-grid-preview.js +1238 -1239
  7. package/dist/cjs/filemanager/templates/filemanager-grid.js +1238 -1239
  8. package/dist/cjs/filemanager/templates/filemanager-normal.js +1238 -1239
  9. package/dist/cjs/filemanager/templates/filemanager-preview.js +1238 -1239
  10. package/dist/cjs/filemanager/tests/filemanager-contextmenu.js +1238 -1239
  11. package/dist/cjs/filemanager/tests/filemanager-drag-hint.js +1238 -1239
  12. package/dist/cjs/filemanager/tests/filemanager-gridview-preview.js +2540 -2034
  13. package/dist/cjs/filemanager/tests/filemanager-gridview.js +1238 -1239
  14. package/dist/cjs/filemanager/tests/filemanager-listview-preview.js +2494 -1988
  15. package/dist/cjs/filemanager/tests/filemanager-listview.js +1238 -1239
  16. package/dist/cjs/form/tests/form-field-dropdowns.js +1373 -909
  17. package/dist/cjs/grid/tests/grid-editing-custom-editor.js +1504 -998
  18. package/dist/cjs/index.js +3002 -2407
  19. package/dist/cjs/multiselect/templates/multiselect-prefix.js +1391 -885
  20. package/dist/cjs/multiselect/templates/multiselect-suffix.js +1391 -885
  21. package/dist/cjs/multiselect/tests/multiselect-adaptive.js +1397 -891
  22. package/dist/cjs/multiselect/tests/multiselect-flat.js +1421 -915
  23. package/dist/cjs/multiselect/tests/multiselect-grouping.js +1397 -891
  24. package/dist/cjs/multiselect/tests/multiselect-opened.js +1399 -893
  25. package/dist/cjs/multiselect/tests/multiselect-outline.js +1421 -915
  26. package/dist/cjs/multiselect/tests/multiselect-prefix-suffix.js +1428 -922
  27. package/dist/cjs/multiselect/tests/multiselect-size-rounded.js +1400 -894
  28. package/dist/cjs/multiselect/tests/multiselect-solid.js +1421 -915
  29. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +1388 -924
  30. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +1402 -938
  31. package/dist/cjs/stepper/index.js +4669 -0
  32. package/dist/cjs/stepper/step-list.js +68 -0
  33. package/dist/cjs/stepper/step.js +4426 -0
  34. package/dist/cjs/stepper/stepper.spec.js +62 -0
  35. package/dist/cjs/stepper/templates/stepper-normal.js +4650 -0
  36. package/dist/cjs/stepper/templates/stepper-vertical.js +4650 -0
  37. package/dist/cjs/stepper/tests/stepper-horizontal-rtl.js +262 -150
  38. package/dist/cjs/stepper/tests/stepper-states.js +247 -228
  39. package/dist/cjs/stepper/tests/stepper-vertical-rtl.js +255 -122
  40. package/dist/cjs/stepper/tests/stepper-vertical.js +369 -238
  41. package/dist/cjs/stepper/tests/stepper.js +275 -187
  42. package/dist/cjs/taskboard/taskboard-card.js +4675 -0
  43. package/dist/cjs/taskboard/taskboard-column.js +4524 -0
  44. package/dist/cjs/taskboard/taskboard-pane.js +17117 -0
  45. package/dist/cjs/taskboard/taskboard-toolbar.js +7892 -0
  46. package/dist/cjs/taskboard/taskboard.spec.js +17117 -0
  47. package/dist/cjs/taskboard/templates/taskboard-normal.js +17168 -0
  48. package/dist/cjs/taskboard/tests/taskboard-card.js +12075 -3113
  49. package/dist/cjs/taskboard/tests/taskboard-column.js +12575 -742
  50. package/dist/cjs/taskboard/tests/taskboard-pane.js +10350 -1770
  51. package/dist/cjs/taskboard/tests/taskboard-resources.js +12673 -323
  52. package/dist/cjs/taskboard/tests/taskboard-rtl.js +10165 -1191
  53. package/dist/cjs/taskboard/tests/taskboard.js +10165 -1182
  54. package/dist/cjs/wizard/templates/wizard-normal.js +4899 -0
  55. package/dist/cjs/wizard/templates/wizard-vertical.js +4900 -0
  56. package/dist/cjs/wizard/tests/wizard-horizontal.js +394 -321
  57. package/dist/cjs/wizard/tests/wizard-vertical.js +413 -445
  58. package/dist/cjs/wizard/wizard-step.js +4524 -0
  59. package/dist/cjs/wizard/wizard-steps.js +56 -0
  60. package/dist/cjs/wizard/wizard.spec.js +110 -0
  61. package/dist/esm/autocomplete/tests/autocomplete-prefix-suffix.js +1416 -910
  62. package/dist/esm/combobox/tests/combobox-prefix-suffix.js +1416 -910
  63. package/dist/esm/filemanager/file-info.js +1240 -1241
  64. package/dist/esm/filemanager/filemanager-toolbar.spec.js +1 -1
  65. package/dist/esm/filemanager/filemanager.spec.js +2923 -1605
  66. package/dist/esm/filemanager/templates/filemanager-grid-preview.js +1240 -1241
  67. package/dist/esm/filemanager/templates/filemanager-grid.js +1240 -1241
  68. package/dist/esm/filemanager/templates/filemanager-normal.js +1240 -1241
  69. package/dist/esm/filemanager/templates/filemanager-preview.js +1240 -1241
  70. package/dist/esm/filemanager/tests/filemanager-contextmenu.js +1240 -1241
  71. package/dist/esm/filemanager/tests/filemanager-drag-hint.js +1240 -1241
  72. package/dist/esm/filemanager/tests/filemanager-gridview-preview.js +2560 -2054
  73. package/dist/esm/filemanager/tests/filemanager-gridview.js +1240 -1241
  74. package/dist/esm/filemanager/tests/filemanager-listview-preview.js +2514 -2008
  75. package/dist/esm/filemanager/tests/filemanager-listview.js +1240 -1241
  76. package/dist/esm/form/tests/form-field-dropdowns.js +1373 -909
  77. package/dist/esm/grid/tests/grid-editing-custom-editor.js +1504 -998
  78. package/dist/esm/index.js +2988 -2393
  79. package/dist/esm/multiselect/templates/multiselect-prefix.js +1391 -885
  80. package/dist/esm/multiselect/templates/multiselect-suffix.js +1391 -885
  81. package/dist/esm/multiselect/tests/multiselect-adaptive.js +1397 -891
  82. package/dist/esm/multiselect/tests/multiselect-flat.js +1421 -915
  83. package/dist/esm/multiselect/tests/multiselect-grouping.js +1397 -891
  84. package/dist/esm/multiselect/tests/multiselect-opened.js +1399 -893
  85. package/dist/esm/multiselect/tests/multiselect-outline.js +1421 -915
  86. package/dist/esm/multiselect/tests/multiselect-prefix-suffix.js +1428 -922
  87. package/dist/esm/multiselect/tests/multiselect-size-rounded.js +1400 -894
  88. package/dist/esm/multiselect/tests/multiselect-solid.js +1421 -915
  89. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +1388 -924
  90. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +1402 -938
  91. package/dist/esm/stepper/index.js +4653 -0
  92. package/dist/esm/stepper/step-list.js +46 -0
  93. package/dist/esm/stepper/step.js +4410 -0
  94. package/dist/esm/stepper/stepper.spec.js +40 -0
  95. package/dist/esm/stepper/templates/stepper-normal.js +4634 -0
  96. package/dist/esm/stepper/templates/stepper-vertical.js +4634 -0
  97. package/dist/esm/stepper/tests/stepper-horizontal-rtl.js +262 -150
  98. package/dist/esm/stepper/tests/stepper-states.js +247 -228
  99. package/dist/esm/stepper/tests/stepper-vertical-rtl.js +255 -122
  100. package/dist/esm/stepper/tests/stepper-vertical.js +366 -235
  101. package/dist/esm/stepper/tests/stepper.js +275 -187
  102. package/dist/esm/taskboard/taskboard-card.js +4659 -0
  103. package/dist/esm/taskboard/taskboard-column.js +4508 -0
  104. package/dist/esm/taskboard/taskboard-pane.js +17091 -0
  105. package/dist/esm/taskboard/taskboard-toolbar.js +7876 -0
  106. package/dist/esm/taskboard/taskboard.spec.js +17091 -0
  107. package/dist/esm/taskboard/templates/taskboard-normal.js +17142 -0
  108. package/dist/esm/taskboard/tests/taskboard-card.js +11799 -2847
  109. package/dist/esm/taskboard/tests/taskboard-column.js +12548 -725
  110. package/dist/esm/taskboard/tests/taskboard-pane.js +10334 -1764
  111. package/dist/esm/taskboard/tests/taskboard-resources.js +12665 -325
  112. package/dist/esm/taskboard/tests/taskboard-rtl.js +10170 -1206
  113. package/dist/esm/taskboard/tests/taskboard.js +10170 -1197
  114. package/dist/esm/wizard/templates/wizard-normal.js +4883 -0
  115. package/dist/esm/wizard/templates/wizard-vertical.js +4884 -0
  116. package/dist/esm/wizard/tests/wizard-horizontal.js +392 -319
  117. package/dist/esm/wizard/tests/wizard-vertical.js +411 -443
  118. package/dist/esm/wizard/wizard-step.js +4508 -0
  119. package/dist/esm/wizard/wizard-steps.js +34 -0
  120. package/dist/esm/wizard/wizard.spec.js +88 -0
  121. package/dist/types/filemanager/index.d.ts +1 -1
  122. package/dist/types/index.d.ts +3 -0
  123. package/dist/types/stepper/index.d.ts +5 -0
  124. package/dist/types/stepper/step-list.d.ts +15 -0
  125. package/dist/types/stepper/step.d.ts +25 -0
  126. package/dist/types/stepper/stepper.spec.d.ts +13 -0
  127. package/dist/types/stepper/templates/stepper-normal.d.ts +1 -0
  128. package/dist/types/stepper/templates/stepper-vertical.d.ts +1 -0
  129. package/dist/types/taskboard/index.d.ts +6 -0
  130. package/dist/types/taskboard/taskboard-card.d.ts +13 -0
  131. package/dist/types/taskboard/taskboard-column.d.ts +20 -0
  132. package/dist/types/taskboard/taskboard-pane.d.ts +19 -0
  133. package/dist/types/taskboard/taskboard-toolbar.d.ts +10 -0
  134. package/dist/types/taskboard/taskboard.spec.d.ts +23 -0
  135. package/dist/types/taskboard/templates/taskboard-normal.d.ts +1 -0
  136. package/dist/types/wizard/index.d.ts +5 -0
  137. package/dist/types/wizard/templates/wizard-normal.d.ts +1 -0
  138. package/dist/types/wizard/templates/wizard-vertical.d.ts +1 -0
  139. package/dist/types/wizard/wizard-step.d.ts +19 -0
  140. package/dist/types/wizard/wizard-steps.d.ts +9 -0
  141. package/dist/types/wizard/wizard.spec.d.ts +20 -0
  142. package/package.json +2 -2
  143. package/src/filemanager/filemanager-toolbar.spec.tsx +1 -1
  144. package/src/filemanager/filemanager.spec.tsx +2 -2
  145. package/src/filemanager/index.ts +1 -1
  146. package/src/index.ts +3 -3
  147. package/src/stepper/index.tsx +5 -0
  148. package/src/stepper/step-list.tsx +49 -0
  149. package/src/stepper/step.tsx +129 -0
  150. package/src/stepper/stepper.spec.tsx +42 -0
  151. package/src/stepper/templates/stepper-normal.tsx +19 -0
  152. package/src/stepper/templates/stepper-vertical.tsx +19 -0
  153. package/src/stepper/tests/stepper-horizontal-rtl.tsx +30 -156
  154. package/src/stepper/tests/stepper-states.tsx +31 -411
  155. package/src/stepper/tests/stepper-vertical-rtl.tsx +28 -120
  156. package/src/stepper/tests/stepper-vertical.tsx +41 -157
  157. package/src/stepper/tests/stepper.tsx +42 -241
  158. package/src/taskboard/index.ts +6 -0
  159. package/src/taskboard/taskboard-card.tsx +48 -0
  160. package/src/taskboard/taskboard-column.tsx +70 -0
  161. package/src/taskboard/taskboard-pane.tsx +68 -0
  162. package/src/taskboard/taskboard-toolbar.tsx +39 -0
  163. package/src/taskboard/taskboard.spec.tsx +94 -0
  164. package/src/taskboard/templates/taskboard-normal.tsx +70 -0
  165. package/src/taskboard/tests/taskboard-card.tsx +55 -130
  166. package/src/taskboard/tests/taskboard-column.tsx +93 -164
  167. package/src/taskboard/tests/taskboard-pane.tsx +3 -235
  168. package/src/taskboard/tests/taskboard-resources.tsx +22 -42
  169. package/src/taskboard/tests/taskboard-rtl.tsx +3 -126
  170. package/src/taskboard/tests/taskboard.tsx +2 -116
  171. package/src/wizard/index.ts +5 -0
  172. package/src/wizard/templates/wizard-normal.tsx +19 -0
  173. package/src/wizard/templates/wizard-vertical.tsx +20 -0
  174. package/src/wizard/tests/wizard-horizontal.tsx +20 -304
  175. package/src/wizard/tests/wizard-vertical.tsx +38 -472
  176. package/src/wizard/wizard-step.tsx +69 -0
  177. package/src/wizard/wizard-steps.tsx +29 -0
  178. package/src/wizard/wizard.spec.tsx +55 -0
@@ -1,7 +1,5 @@
1
- /* eslint-disable react/no-unescaped-entities */
2
- import { Icon } from '../../icon';
3
- import { Button } from '../../button';
4
- import { ProgressBarNormal } from '../../progressbar';
1
+ import { WizardVertical, WizardStep, WizardSteps } from '..';
2
+ import { StepperVertical } from '../../stepper';
5
3
 
6
4
 
7
5
  const style = `
@@ -21,16 +19,6 @@ const style = `
21
19
  }
22
20
  `;
23
21
 
24
- const stepperStyle = {
25
- display: "grid",
26
- gridTemplateRows: "repeat(3, 1fr)"
27
- };
28
-
29
- const stepListStyle = {
30
- gridRowStart: "1",
31
- gridRowEnd: "-1",
32
- };
33
-
34
22
  export default () =>(
35
23
  <>
36
24
  <style>{style}</style>
@@ -38,494 +26,72 @@ export default () =>(
38
26
  <section>
39
27
  <div className="wrapper">
40
28
  <p>Vertical wizard; Content is placed to the right (Default)</p>
41
- <div id="wizard" className="k-widget k-wizard k-wizard-vertical k-wizard-right">
42
- <nav className="k-stepper k-widget" style={stepperStyle}>
43
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
44
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
45
- <a href="#" className="k-step-link">
46
- <span className="k-step-indicator">
47
- <span className="k-step-indicator-text">1</span>
48
- </span>
49
- <span className="k-step-label">
50
- <span className="k-step-text">Account Info with too long text</span>
51
- <Icon icon="check"></Icon>
52
- </span>
53
- </a>
54
- </li>
55
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
56
- <a href="#" className="k-step-link">
57
- <span className="k-step-indicator">
58
- <span className="k-step-indicator-text">2</span>
59
- </span>
60
- <span className="k-step-label">
61
- <span className="k-step-text">Personal Info</span>
62
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
63
- </span>
64
- </a>
65
- </li>
66
- <li className="k-step k-step-last k-step-optional">
67
- <a href="#" className="k-step-link" style={{ maxHeight: "33.333%" }}>
68
- <span className="k-step-indicator">
69
- <span className="k-step-indicator-text">3</span>
70
- </span>
71
- <span className="k-step-label">
72
- <span className="k-step-text">Payment Details</span>
73
- <span className="k-step-label-optional">(Optional)</span>
74
- </span>
75
- </a>
76
- </li>
77
- </ol>
78
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
79
- </nav>
80
- <div className="k-wizard-steps">
81
- <div className="k-wizard-step k-focus">
82
- <div className="k-wizard-content">
83
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
84
- </div>
85
- <div className="k-wizard-buttons">
86
- <span className="k-wizard-buttons-left">
87
- <Button>Reset</Button>
88
- <span className="k-wizard-pager">Step 1 of 2</span>
89
- </span>
90
- <span className="k-wizard-buttons-right">
91
- <Button>Previous</Button>
92
- <Button themeColor="primary">Next</Button>
93
- </span>
94
- </div>
95
- </div>
96
- </div>
97
- </div>
29
+ <WizardVertical>
30
+ <StepperVertical />
31
+ <WizardSteps>
32
+ <WizardStep focus>
33
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
34
+ </WizardStep>
35
+ </WizardSteps>
36
+ </WizardVertical>
98
37
  </div>
99
38
 
100
39
  <div className="wrapper">
101
40
  <p>Small height set</p>
102
- <div id="wizard" style={{ height: "350px" }} className="k-widget k-wizard k-wizard-vertical k-wizard-right">
103
- <nav className="k-stepper k-widget" style={stepperStyle}>
104
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
105
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
106
- <a href="#" className="k-step-link">
107
- <span className="k-step-indicator">
108
- <span className="k-step-indicator-text">1</span>
109
- </span>
110
- <span className="k-step-label">
111
- <span className="k-step-text">Account Info with too long text</span>
112
- <Icon icon="check"></Icon>
113
- </span>
114
- </a>
115
- </li>
116
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
117
- <a href="#" className="k-step-link">
118
- <span className="k-step-indicator">
119
- <span className="k-step-indicator-text">2</span>
120
- </span>
121
- <span className="k-step-label">
122
- <span className="k-step-text">Personal Info</span>
123
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
124
- </span>
125
- </a>
126
- </li>
127
- <li className="k-step k-step-last k-step-optional">
128
- <a href="#" className="k-step-link" style={{ maxHeight: "33.333%" }}>
129
- <span className="k-step-indicator">
130
- <span className="k-step-indicator-text">3</span>
131
- </span>
132
- <span className="k-step-label">
133
- <span className="k-step-text">Payment Details</span>
134
- <span className="k-step-label-optional">(Optional)</span>
135
- </span>
136
- </a>
137
- </li>
138
- </ol>
139
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
140
- </nav>
141
- <div className="k-wizard-steps">
142
- <div className="k-wizard-step">
143
- <div className="k-wizard-content">
144
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
145
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
146
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
147
- </div>
148
- <div className="k-wizard-buttons">
149
- <span className="k-wizard-buttons-left">
150
- <Button>Reset</Button>
151
- <span className="k-wizard-pager">Step 1 of 2</span>
152
- </span>
153
- <span className="k-wizard-buttons-right">
154
- <Button>Previous</Button>
155
- <Button themeColor="primary">Next</Button>
156
- </span>
157
- </div>
158
- </div>
159
- </div>
160
- </div>
41
+ <WizardVertical style={{ height: "200px" }}>
42
+ <StepperVertical />
43
+ <WizardSteps>
44
+ <WizardStep>
45
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
46
+ </WizardStep>
47
+ </WizardSteps>
48
+ </WizardVertical>
161
49
  </div>
162
50
 
163
51
  <div className="wrapper">
164
52
  <p>Short content</p>
165
- <div id="wizard" className="k-widget k-wizard k-wizard-vertical k-wizard-right">
166
- <nav className="k-stepper k-widget" style={stepperStyle}>
167
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
168
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
169
- <a href="#" className="k-step-link">
170
- <span className="k-step-indicator">
171
- <span className="k-step-indicator-text">1</span>
172
- </span>
173
- <span className="k-step-label">
174
- <span className="k-step-text">Account Info with too long text</span>
175
- <Icon icon="check"></Icon>
176
- </span>
177
- </a>
178
- </li>
179
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
180
- <a href="#" className="k-step-link">
181
- <span className="k-step-indicator">
182
- <span className="k-step-indicator-text">2</span>
183
- </span>
184
- <span className="k-step-label">
185
- <span className="k-step-text">Personal Info</span>
186
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
187
- </span>
188
- </a>
189
- </li>
190
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
191
- <a href="#" className="k-step-link" >
192
- <span className="k-step-indicator">
193
- <span className="k-step-indicator-text">3</span>
194
- </span>
195
- <span className="k-step-label">
196
- <span className="k-step-text">Payment Details</span>
197
- <span className="k-step-label-optional">(Optional)</span>
198
- </span>
199
- </a>
200
- </li>
201
- </ol>
202
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
203
- </nav>
204
- <div className="k-wizard-steps">
205
- <div className="k-wizard-step">
206
- <div className="k-wizard-content">
207
- Short content
208
- </div>
209
- <div className="k-wizard-buttons">
210
- <span className="k-wizard-buttons-left">
211
- <Button>Reset</Button>
212
- <span className="k-wizard-pager">Step 1 of 2</span>
213
- </span>
214
- <span className="k-wizard-buttons-right">
215
- <Button>Previous</Button>
216
- <Button themeColor="primary">Next</Button>
217
- </span>
218
- </div>
219
- </div>
220
- </div>
221
- </div>
53
+ <WizardVertical />
222
54
  </div>
223
55
 
224
56
  <div className="wrapper">
225
57
  <p>Short content; Big height set</p>
226
- <div id="wizard" style={{ height: "300px" }} className="k-widget k-wizard k-wizard-vertical k-wizard-right">
227
- <nav className="k-stepper k-widget" style={stepperStyle}>
228
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
229
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
230
- <a href="#" className="k-step-link">
231
- <span className="k-step-indicator">
232
- <span className="k-step-indicator-text">1</span>
233
- </span>
234
- <span className="k-step-label">
235
- <span className="k-step-text">Account Info with too long text</span>
236
- <Icon icon="check"></Icon>
237
- </span>
238
- </a>
239
- </li>
240
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
241
- <a href="#" className="k-step-link">
242
- <span className="k-step-indicator">
243
- <span className="k-step-indicator-text">2</span>
244
- </span>
245
- <span className="k-step-label">
246
- <span className="k-step-text">Personal Info</span>
247
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
248
- </span>
249
- </a>
250
- </li>
251
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
252
- <a href="#" className="k-step-link" >
253
- <span className="k-step-indicator">
254
- <span className="k-step-indicator-text">3</span>
255
- </span>
256
- <span className="k-step-label">
257
- <span className="k-step-text">Payment Details</span>
258
- <span className="k-step-label-optional">(Optional)</span>
259
- </span>
260
- </a>
261
- </li>
262
- </ol>
263
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
264
- </nav>
265
- <div className="k-wizard-steps">
266
- <div className="k-wizard-step">
267
- <div className="k-wizard-content">
268
- Short content
269
- </div>
270
- <div className="k-wizard-buttons">
271
- <span className="k-wizard-buttons-left">
272
- <Button>Reset</Button>
273
- <span className="k-wizard-pager">Step 1 of 2</span>
274
- </span>
275
- <span className="k-wizard-buttons-right">
276
- <Button>Previous</Button>
277
- <Button themeColor="primary">Next</Button>
278
- </span>
279
- </div>
280
- </div>
281
- </div>
282
- </div>
58
+ <WizardVertical style={{ height: "280px" }} />
283
59
  </div>
284
60
  </section>
285
61
 
286
62
  <section>
287
63
  <div className="wrapper">
288
64
  <p>Vertical wizard; Content is placed to the left</p>
289
- <div id="wizard" className="k-widget k-wizard k-wizard-vertical k-wizard-left">
290
- <nav className="k-stepper k-widget" style={stepperStyle}>
291
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
292
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
293
- <a href="#" className="k-step-link">
294
- <span className="k-step-indicator">
295
- <span className="k-step-indicator-text">1</span>
296
- </span>
297
- <span className="k-step-label">
298
- <span className="k-step-text">Account Info with too long text</span>
299
- <Icon icon="check"></Icon>
300
- </span>
301
- </a>
302
- </li>
303
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
304
- <a href="#" className="k-step-link">
305
- <span className="k-step-indicator">
306
- <span className="k-step-indicator-text">2</span>
307
- </span>
308
- <span className="k-step-label">
309
- <span className="k-step-text">Personal Info</span>
310
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
311
- </span>
312
- </a>
313
- </li>
314
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
315
- <a href="#" className="k-step-link" >
316
- <span className="k-step-indicator">
317
- <span className="k-step-indicator-text">3</span>
318
- </span>
319
- <span className="k-step-label">
320
- <span className="k-step-text">Payment Details</span>
321
- <span className="k-step-label-optional">(Optional)</span>
322
- </span>
323
- </a>
324
- </li>
325
- </ol>
326
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
327
- </nav>
328
- <div className="k-wizard-steps">
329
- <div className="k-wizard-step">
330
- <div className="k-wizard-content">
331
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
332
- </div>
333
- <div className="k-wizard-buttons">
334
- <span className="k-wizard-buttons-left">
335
- <Button>Reset</Button>
336
- <span className="k-wizard-pager">Step 1 of 2</span>
337
- </span>
338
- <span className="k-wizard-buttons-right">
339
- <Button>Previous</Button>
340
- <Button themeColor="primary">Next</Button>
341
- </span>
342
- </div>
343
- </div>
344
- </div>
345
- </div>
65
+ <WizardVertical contentPosition="left">
66
+ <StepperVertical />
67
+ <WizardSteps>
68
+ <WizardStep focus>
69
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
70
+ </WizardStep>
71
+ </WizardSteps>
72
+ </WizardVertical>
346
73
  </div>
347
74
 
348
75
  <div className="wrapper">
349
76
  <p>Small height set</p>
350
- <div id="wizard" style={{ height: "350px" }} className="k-widget k-wizard k-wizard-vertical k-wizard-left">
351
- <nav className="k-stepper k-widget" style={stepperStyle}>
352
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
353
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
354
- <a href="#" className="k-step-link">
355
- <span className="k-step-indicator">
356
- <span className="k-step-indicator-text">1</span>
357
- </span>
358
- <span className="k-step-label">
359
- <span className="k-step-text">Account Info with too long text</span>
360
- <Icon icon="check"></Icon>
361
- </span>
362
- </a>
363
- </li>
364
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
365
- <a href="#" className="k-step-link">
366
- <span className="k-step-indicator">
367
- <span className="k-step-indicator-text">2</span>
368
- </span>
369
- <span className="k-step-label">
370
- <span className="k-step-text">Personal Info</span>
371
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
372
- </span>
373
- </a>
374
- </li>
375
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
376
- <a href="#" className="k-step-link" >
377
- <span className="k-step-indicator">
378
- <span className="k-step-indicator-text">3</span>
379
- </span>
380
- <span className="k-step-label">
381
- <span className="k-step-text">Payment Details</span>
382
- <span className="k-step-label-optional">(Optional)</span>
383
- </span>
384
- </a>
385
- </li>
386
- </ol>
387
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
388
- </nav>
389
- <div className="k-wizard-steps">
390
- <div className="k-wizard-step">
391
- <div className="k-wizard-content">
392
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
393
- </div>
394
- <div className="k-wizard-buttons">
395
- <span className="k-wizard-buttons-left">
396
- <Button>Reset</Button>
397
- <span className="k-wizard-pager">Step 1 of 2</span>
398
- </span>
399
- <span className="k-wizard-buttons-right">
400
- <Button>Previous</Button>
401
- <Button themeColor="primary">Next</Button>
402
- </span>
403
- </div>
404
- </div>
405
- </div>
406
- </div>
77
+ <WizardVertical contentPosition="left" style={{ height: "200px" }}>
78
+ <StepperVertical />
79
+ <WizardSteps>
80
+ <WizardStep>
81
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
82
+ </WizardStep>
83
+ </WizardSteps>
84
+ </WizardVertical>
407
85
  </div>
408
86
 
409
87
  <div className="wrapper">
410
88
  <p>Short content</p>
411
- <div id="wizard" className="k-widget k-wizard k-wizard-vertical k-wizard-left">
412
- <nav className="k-stepper k-widget" style={stepperStyle}>
413
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
414
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
415
- <a href="#" className="k-step-link">
416
- <span className="k-step-indicator">
417
- <span className="k-step-indicator-text">1</span>
418
- </span>
419
- <span className="k-step-label">
420
- <span className="k-step-text">Account Info with too long text</span>
421
- <Icon icon="check"></Icon>
422
- </span>
423
- </a>
424
- </li>
425
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
426
- <a href="#" className="k-step-link">
427
- <span className="k-step-indicator">
428
- <span className="k-step-indicator-text">2</span>
429
- </span>
430
- <span className="k-step-label">
431
- <span className="k-step-text">Personal Info</span>
432
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
433
- </span>
434
- </a>
435
- </li>
436
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
437
- <a href="#" className="k-step-link" >
438
- <span className="k-step-indicator">
439
- <span className="k-step-indicator-text">3</span>
440
- </span>
441
- <span className="k-step-label">
442
- <span className="k-step-text">Payment Details</span>
443
- <span className="k-step-label-optional">(Optional)</span>
444
- </span>
445
- </a>
446
- </li>
447
- </ol>
448
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
449
- </nav>
450
- <div className="k-wizard-steps">
451
- <div className="k-wizard-step">
452
- <div className="k-wizard-content">
453
- Short content
454
- </div>
455
- <div className="k-wizard-buttons">
456
- <span className="k-wizard-buttons-left">
457
- <Button>Reset</Button>
458
- <span className="k-wizard-pager">Step 1 of 2</span>
459
- </span>
460
- <span className="k-wizard-buttons-right">
461
- <Button>Previous</Button>
462
- <Button themeColor="primary">Next</Button>
463
- </span>
464
- </div>
465
- </div>
466
- </div>
467
- </div>
89
+ <WizardVertical contentPosition="left" />
468
90
  </div>
469
91
 
470
92
  <div className="wrapper">
471
93
  <p>Short content; Big height set</p>
472
- <div id="wizard" style={{ height: "300px" }} className="k-widget k-wizard k-wizard-vertical k-wizard-left">
473
- <nav className="k-stepper k-widget" style={stepperStyle}>
474
- <ol className="k-step-list k-step-list-vertical" style={stepListStyle}>
475
- <li className="k-step k-step-first k-step-done k-step-success" style={{ maxHeight: "33.333%" }}>
476
- <a href="#" className="k-step-link">
477
- <span className="k-step-indicator">
478
- <span className="k-step-indicator-text">1</span>
479
- </span>
480
- <span className="k-step-label">
481
- <span className="k-step-text">Account Info with too long text</span>
482
- <Icon icon="check"></Icon>
483
- </span>
484
- </a>
485
- </li>
486
- <li className="k-step k-step-current k-focus k-step-error" style={{ maxHeight: "33.333%" }}>
487
- <a href="#" className="k-step-link">
488
- <span className="k-step-indicator">
489
- <span className="k-step-indicator-text">2</span>
490
- </span>
491
- <span className="k-step-label">
492
- <span className="k-step-text">Personal Info</span>
493
- <Icon className="k-validation-icon" icon="exclamation-circle"></Icon>
494
- </span>
495
- </a>
496
- </li>
497
- <li className="k-step k-step-last k-step-optional" style={{ maxHeight: "33.333%" }}>
498
- <a href="#" className="k-step-link" >
499
- <span className="k-step-indicator">
500
- <span className="k-step-indicator-text">3</span>
501
- </span>
502
- <span className="k-step-label">
503
- <span className="k-step-text">Payment Details</span>
504
- <span className="k-step-label-optional">(Optional)</span>
505
- </span>
506
- </a>
507
- </li>
508
- </ol>
509
- <ProgressBarNormal orientation="vertical" label={false} reverse={true} value="50" />
510
- </nav>
511
- <div className="k-wizard-steps">
512
- <div className="k-wizard-step">
513
- <div className="k-wizard-content">
514
- Short content
515
- </div>
516
- <div className="k-wizard-buttons">
517
- <span className="k-wizard-buttons-left">
518
- <Button>Reset</Button>
519
- <span className="k-wizard-pager">Step 1 of 2</span>
520
- </span>
521
- <span className="k-wizard-buttons-right">
522
- <Button>Previous</Button>
523
- <Button themeColor="primary">Next</Button>
524
- </span>
525
- </div>
526
- </div>
527
- </div>
528
- </div>
94
+ <WizardVertical contentPosition="left" style={{ height: "280px" }} />
529
95
  </div>
530
96
  </section>
531
97
 
@@ -0,0 +1,69 @@
1
+ import { Button } from '../button';
2
+ import { classNames, stateClassNames, States } from '../misc';
3
+
4
+ export const WIZZARDSTEP_CLASSNAME = `k-wizard-step`;
5
+
6
+ const states = [
7
+ States.focus,
8
+ ];
9
+
10
+ const options = {};
11
+
12
+ export type KendoWizardStepProps = {
13
+ buttons?: JSX.Element;
14
+ };
15
+
16
+ export type KendoWizardStepState = { [K in (typeof states)[number]]?: boolean };
17
+
18
+ const defaultProps = {
19
+ buttons: (
20
+ <>
21
+ <span className="k-wizard-buttons-left">
22
+ <Button>Reset</Button>
23
+ <span className="k-wizard-pager">Step 1 of 2</span>
24
+ </span>
25
+ <span className="k-wizard-buttons-right">
26
+ <Button>Previous</Button>
27
+ <Button themeColor="primary">Next</Button>
28
+ </span>
29
+ </>
30
+ ),
31
+ };
32
+
33
+ export const WizardStep = (
34
+ props: KendoWizardStepProps & KendoWizardStepState & React.HTMLAttributes<HTMLDivElement>
35
+ ) => {
36
+ const {
37
+ focus,
38
+ buttons,
39
+ ...other
40
+ } = props;
41
+
42
+ return (
43
+ <div
44
+ {...other}
45
+ className={classNames(
46
+ props.className,
47
+ WIZZARDSTEP_CLASSNAME,
48
+ stateClassNames(WIZZARDSTEP_CLASSNAME, { focus }),
49
+ )}>
50
+
51
+ <div className="k-wizard-content">
52
+ {props.children}
53
+ </div>
54
+
55
+ {buttons &&
56
+ <div className="k-wizard-buttons">
57
+ {buttons}
58
+ </div>
59
+ }
60
+ </div>
61
+ );
62
+ };
63
+
64
+ WizardStep.states = states;
65
+ WizardStep.options = options;
66
+ WizardStep.className = WIZZARDSTEP_CLASSNAME;
67
+ WizardStep.defaultProps = defaultProps;
68
+
69
+ export default WizardStep;