superdesk-ui-framework 3.0.1-beta.3 → 3.0.1-beta.30

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 (262) hide show
  1. package/app/fonts/sd_icons.eot +0 -0
  2. package/app/fonts/sd_icons.svg +14 -7
  3. package/app/fonts/sd_icons.ttf +0 -0
  4. package/app/fonts/sd_icons.woff +0 -0
  5. package/app/scripts/toggleBoxNext.js +1 -1
  6. package/app/styles/_big-icon-font.scss +1 -1
  7. package/app/styles/_buttons.scss +11 -6
  8. package/app/styles/_content-divider.scss +63 -8
  9. package/app/styles/_helpers.scss +24 -1
  10. package/app/styles/_icon-font.scss +17 -10
  11. package/app/styles/_labels.scss +0 -1
  12. package/app/styles/_master-desk.scss +3 -2
  13. package/app/styles/_modals.scss +6 -3
  14. package/app/styles/_normalize.scss +4 -0
  15. package/app/styles/_sd-tag-input.scss +256 -296
  16. package/app/styles/_simple-list.scss +0 -2
  17. package/app/styles/_table-list.scss +116 -12
  18. package/app/styles/app.scss +1 -0
  19. package/app/styles/components/_list-item.scss +36 -17
  20. package/app/styles/components/_sd-collapse-box.scss +6 -6
  21. package/app/styles/components/_sd-comment-box.scss +8 -4
  22. package/app/styles/components/_sd-editor-popup.scss +4 -4
  23. package/app/styles/components/_sd-grid-item.scss +30 -16
  24. package/app/styles/components/_sd-media-carousel.scss +37 -2
  25. package/app/styles/components/_sd-photo-preview.scss +3 -3
  26. package/app/styles/components/_sd-searchbar.scss +7 -0
  27. package/app/styles/components/_subnav.scss +470 -470
  28. package/app/styles/design-tokens/_design-tokens-general.scss +1 -1
  29. package/app/styles/design-tokens/_new-colors.scss +30 -13
  30. package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
  31. package/app/styles/form-elements/_forms-general.scss +81 -7
  32. package/app/styles/form-elements/_input-wrap.scss +138 -0
  33. package/app/styles/form-elements/_inputs.scss +368 -110
  34. package/app/styles/grids/_grid-layout.scss +34 -1
  35. package/app/styles/interface-elements/_side-panel.scss +1 -1
  36. package/app/styles/layout/_basic-layout.scss +2 -2
  37. package/app/styles/layout/_editor.scss +10 -4
  38. package/app/styles/primereact/_pr-datepicker.scss +4 -2
  39. package/app/styles/primereact/_pr-dialog.scss +5 -0
  40. package/app/styles/primereact/_pr-dropdown.scss +17 -1
  41. package/app/styles/primereact/_pr-menu.scss +6 -5
  42. package/app/styles/variables/_colors.scss +21 -21
  43. package/app-typescript/components/Badge.tsx +3 -2
  44. package/app-typescript/components/ContentDivider.tsx +3 -0
  45. package/app-typescript/components/DatePicker.tsx +40 -52
  46. package/app-typescript/components/Dropdown.tsx +127 -82
  47. package/app-typescript/components/DurationInput.tsx +400 -0
  48. package/app-typescript/components/EmptyState.tsx +2 -1
  49. package/app-typescript/components/Form/FormLabel.tsx +8 -1
  50. package/app-typescript/components/Form/FormRowNew.tsx +41 -0
  51. package/app-typescript/components/Form/InputBase.tsx +95 -0
  52. package/app-typescript/components/Form/InputNew.tsx +107 -0
  53. package/app-typescript/components/Form/InputWrapper.tsx +79 -0
  54. package/app-typescript/components/Form/index.tsx +4 -0
  55. package/app-typescript/components/Input.tsx +28 -45
  56. package/app-typescript/components/Label.tsx +65 -10
  57. package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
  58. package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
  59. package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
  60. package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
  61. package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
  62. package/app-typescript/components/Layouts/CoreLayout.tsx +2 -1
  63. package/app-typescript/components/Layouts/CoreLayoutMain.tsx +7 -1
  64. package/app-typescript/components/Layouts/Layout.tsx +1 -1
  65. package/app-typescript/components/LeftMenu.tsx +127 -122
  66. package/app-typescript/components/Lists/ContentList.tsx +66 -33
  67. package/app-typescript/components/Lists/TableList.tsx +348 -151
  68. package/app-typescript/components/Menu.tsx +2 -2
  69. package/app-typescript/components/MultiSelect.tsx +37 -50
  70. package/app-typescript/components/NavButton.tsx +2 -1
  71. package/app-typescript/components/Navigation/BottomNav.tsx +3 -2
  72. package/app-typescript/components/SearchBar.tsx +39 -12
  73. package/app-typescript/components/Select.tsx +23 -41
  74. package/app-typescript/components/SelectWithTemplate.tsx +32 -7
  75. package/app-typescript/components/Spacer.tsx +87 -0
  76. package/app-typescript/components/TimePicker.tsx +38 -15
  77. package/app-typescript/components/TreeSelect.tsx +546 -212
  78. package/app-typescript/index.ts +6 -1
  79. package/dist/examples.bundle.css +344 -71
  80. package/dist/examples.bundle.js +48203 -45174
  81. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
  82. package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
  83. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
  84. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
  85. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  86. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  87. package/dist/playgrounds/react-playgrounds/TestGround.tsx +379 -25
  88. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
  89. package/dist/react/Badges.tsx +18 -0
  90. package/dist/react/ContentDivider.tsx +22 -18
  91. package/dist/react/ContentList.tsx +200 -18
  92. package/dist/react/DatePicker.tsx +21 -1
  93. package/dist/react/Dropdowns.tsx +580 -48
  94. package/dist/react/DurationInput.tsx +108 -0
  95. package/dist/react/Index.tsx +5 -0
  96. package/dist/react/Inputs.tsx +147 -2
  97. package/dist/react/Labels.tsx +51 -1
  98. package/dist/react/LeftNavigations.tsx +71 -44
  99. package/dist/react/MultiSelect.tsx +10 -7
  100. package/dist/react/NavButtons.tsx +31 -1
  101. package/dist/react/SelectWithTemplate.tsx +6 -1
  102. package/dist/react/TableList.tsx +79 -186
  103. package/dist/react/TimePicker.tsx +22 -12
  104. package/dist/react/Togglebox.tsx +1 -1
  105. package/dist/react/TreeSelect.tsx +295 -51
  106. package/dist/react/tree-select/TreeSelect.tsx +273 -0
  107. package/dist/react/tree-select/example-1.tsx +71 -0
  108. package/dist/react/tree-select/example-2.tsx +59 -0
  109. package/dist/sd_icons.eot +0 -0
  110. package/dist/sd_icons.svg +14 -7
  111. package/dist/sd_icons.ttf +0 -0
  112. package/dist/sd_icons.woff +0 -0
  113. package/dist/superdesk-ui.bundle.css +2282 -782
  114. package/dist/superdesk-ui.bundle.js +37312 -21800
  115. package/dist/vendor.bundle.js +27 -27
  116. package/examples/css/docs-page.css +4 -4
  117. package/examples/index.js +4 -0
  118. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
  119. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
  120. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
  121. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
  122. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  123. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  124. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +379 -25
  125. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
  126. package/examples/pages/react/Badges.tsx +18 -0
  127. package/examples/pages/react/ContentDivider.tsx +22 -18
  128. package/examples/pages/react/ContentList.tsx +200 -18
  129. package/examples/pages/react/DatePicker.tsx +21 -1
  130. package/examples/pages/react/Dropdowns.tsx +580 -48
  131. package/examples/pages/react/DurationInput.tsx +108 -0
  132. package/examples/pages/react/Index.tsx +5 -0
  133. package/examples/pages/react/Inputs.tsx +147 -2
  134. package/examples/pages/react/Labels.tsx +51 -1
  135. package/examples/pages/react/LeftNavigations.tsx +71 -44
  136. package/examples/pages/react/MultiSelect.tsx +10 -7
  137. package/examples/pages/react/NavButtons.tsx +31 -1
  138. package/examples/pages/react/SelectWithTemplate.tsx +6 -1
  139. package/examples/pages/react/TableList.tsx +79 -186
  140. package/examples/pages/react/TimePicker.tsx +22 -12
  141. package/examples/pages/react/Togglebox.tsx +1 -1
  142. package/examples/pages/react/TreeSelect.tsx +295 -51
  143. package/examples/pages/react/tree-select/TreeSelect.tsx +273 -0
  144. package/examples/pages/react/tree-select/example-1.tsx +71 -0
  145. package/examples/pages/react/tree-select/example-2.tsx +59 -0
  146. package/package.json +5 -5
  147. package/react/components/Badge.d.ts +1 -0
  148. package/react/components/Badge.js +2 -2
  149. package/react/components/ContentDivider.d.ts +1 -0
  150. package/react/components/ContentDivider.js +2 -0
  151. package/react/components/DatePicker.d.ts +1 -0
  152. package/react/components/DatePicker.js +6 -22
  153. package/react/components/Dropdown.d.ts +6 -5
  154. package/react/components/Dropdown.js +57 -30
  155. package/react/components/DurationInput.d.ts +42 -0
  156. package/react/components/DurationInput.js +364 -0
  157. package/react/components/EmptyState.d.ts +1 -0
  158. package/react/components/EmptyState.js +1 -1
  159. package/react/components/Form/FormLabel.d.ts +4 -1
  160. package/react/components/Form/FormLabel.js +9 -3
  161. package/react/components/Form/FormRowNew.d.ts +12 -0
  162. package/react/components/Form/FormRowNew.js +67 -0
  163. package/react/components/Form/InputBase.d.ts +41 -0
  164. package/react/components/Form/InputBase.js +86 -0
  165. package/react/components/Form/InputNew.d.ts +45 -0
  166. package/react/components/Form/InputNew.js +75 -0
  167. package/react/components/Form/InputWrapper.d.ts +28 -0
  168. package/react/components/Form/InputWrapper.js +91 -0
  169. package/react/components/Form/index.d.ts +4 -0
  170. package/react/components/Form/index.js +9 -1
  171. package/react/components/Input.js +5 -34
  172. package/react/components/Label.d.ts +2 -0
  173. package/react/components/Label.js +34 -3
  174. package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
  175. package/react/components/Layouts/AuthoringContainer.js +1 -1
  176. package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
  177. package/react/components/Layouts/AuthoringFrame.js +1 -1
  178. package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
  179. package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
  180. package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
  181. package/react/components/Layouts/AuthoringMain.js +1 -1
  182. package/react/components/Layouts/CoreLayout.d.ts +1 -0
  183. package/react/components/Layouts/CoreLayout.js +1 -1
  184. package/react/components/Layouts/CoreLayoutMain.d.ts +1 -0
  185. package/react/components/Layouts/CoreLayoutMain.js +8 -1
  186. package/react/components/Layouts/Layout.js +1 -1
  187. package/react/components/LeftMenu.d.ts +3 -1
  188. package/react/components/LeftMenu.js +8 -1
  189. package/react/components/Lists/ContentList.d.ts +51 -0
  190. package/react/components/Lists/ContentList.js +110 -0
  191. package/react/components/Lists/TableList.d.ts +64 -0
  192. package/react/components/Lists/TableList.js +240 -0
  193. package/react/components/Menu.js +1 -1
  194. package/react/components/MultiSelect.d.ts +40 -0
  195. package/react/components/MultiSelect.js +70 -0
  196. package/react/components/NavButton.d.ts +1 -1
  197. package/react/components/Navigation/BottomNav.d.ts +1 -0
  198. package/react/components/Navigation/BottomNav.js +2 -2
  199. package/react/components/SearchBar.d.ts +3 -2
  200. package/react/components/SearchBar.js +28 -4
  201. package/react/components/Select.d.ts +1 -1
  202. package/react/components/Select.js +4 -26
  203. package/react/components/SelectWithTemplate.d.ts +11 -1
  204. package/react/components/SelectWithTemplate.js +19 -10
  205. package/react/components/TimePicker.d.ts +11 -1
  206. package/react/components/TimePicker.js +10 -3
  207. package/react/components/TreeSelect.d.ts +82 -0
  208. package/react/components/TreeSelect.js +521 -0
  209. package/react/index.d.ts +6 -0
  210. package/react/index.js +16 -3
  211. package/.vscode/settings.json +0 -5
  212. package/app-typescript/dist/components/Alert.d.ts +0 -16
  213. package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
  214. package/app-typescript/dist/components/Avatar.d.ts +0 -33
  215. package/app-typescript/dist/components/Badge.d.ts +0 -13
  216. package/app-typescript/dist/components/Button.d.ts +0 -23
  217. package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
  218. package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
  219. package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
  220. package/app-typescript/dist/components/Checkbox.d.ts +0 -19
  221. package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
  222. package/app-typescript/dist/components/DatePicker.d.ts +0 -37
  223. package/app-typescript/dist/components/Divider.d.ts +0 -9
  224. package/app-typescript/dist/components/DonutChart.d.ts +0 -12
  225. package/app-typescript/dist/components/Dropdown.d.ts +0 -28
  226. package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
  227. package/app-typescript/dist/components/EmptyState.d.ts +0 -11
  228. package/app-typescript/dist/components/FormLabel.d.ts +0 -9
  229. package/app-typescript/dist/components/Genie.d.ts +0 -13
  230. package/app-typescript/dist/components/GridItem.d.ts +0 -69
  231. package/app-typescript/dist/components/GridList.d.ts +0 -14
  232. package/app-typescript/dist/components/HeadingText.d.ts +0 -10
  233. package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
  234. package/app-typescript/dist/components/Icon.d.ts +0 -12
  235. package/app-typescript/dist/components/IconButton.d.ts +0 -12
  236. package/app-typescript/dist/components/IconLabel.d.ts +0 -11
  237. package/app-typescript/dist/components/Input.d.ts +0 -24
  238. package/app-typescript/dist/components/Label.d.ts +0 -15
  239. package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
  240. package/app-typescript/dist/components/Loader.d.ts +0 -8
  241. package/app-typescript/dist/components/NavButton.d.ts +0 -15
  242. package/app-typescript/dist/components/Popover.d.ts +0 -13
  243. package/app-typescript/dist/components/PropsList.d.ts +0 -15
  244. package/app-typescript/dist/components/Radio.d.ts +0 -19
  245. package/app-typescript/dist/components/RadioButton.d.ts +0 -20
  246. package/app-typescript/dist/components/Select.d.ts +0 -29
  247. package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
  248. package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
  249. package/app-typescript/dist/components/StrechBar.d.ts +0 -4
  250. package/app-typescript/dist/components/SubNav.d.ts +0 -10
  251. package/app-typescript/dist/components/Switch.d.ts +0 -12
  252. package/app-typescript/dist/components/TabCustom.d.ts +0 -25
  253. package/app-typescript/dist/components/TabList.d.ts +0 -22
  254. package/app-typescript/dist/components/Tag.d.ts +0 -9
  255. package/app-typescript/dist/components/TagInput.d.ts +0 -7
  256. package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
  257. package/app-typescript/dist/components/TimePicker.d.ts +0 -11
  258. package/app-typescript/dist/components/Tooltip.d.ts +0 -11
  259. package/app-typescript/dist/components/_Positioner.d.ts +0 -27
  260. package/app-typescript/dist/index.d.ts +0 -56
  261. package/patches/@superdesk+primereact+5.0.2-4.patch +0 -57
  262. package/yarn-error.log +0 -111
@@ -0,0 +1,108 @@
1
+ import * as React from 'react';
2
+ import * as Markup from '../../js/react';
3
+ import { Input, Select, CheckGroup, Checkbox, PropsList, Prop } from '../../../app-typescript';
4
+ import { DurationInput } from '../../../app-typescript/components/DurationInput';
5
+ import { getDurationString } from '../../../app-typescript/components/DurationInput';
6
+
7
+ interface IState {
8
+ inlineLabel: boolean;
9
+ required: boolean;
10
+ disabled: boolean;
11
+ invalid: boolean;
12
+ value: any
13
+ }
14
+
15
+ export default class DurationInputDoc extends React.Component<{}, IState> {
16
+ constructor(props) {
17
+ super(props);
18
+ this.state = {
19
+ inlineLabel: false,
20
+ required: true,
21
+ disabled: false,
22
+ invalid: false,
23
+ value: 3661,
24
+ }
25
+ }
26
+
27
+ render() {
28
+
29
+ return (
30
+ <section className='docs-page__container'>
31
+ <h2 className='docs-page__h2'>Duration Input</h2>
32
+ <Markup.ReactMarkupCodePreview>{`
33
+ <DurationInput
34
+ label='Label'
35
+ info='info message'
36
+ disabled={this.state.disabled}
37
+ required={this.state.required}
38
+ invalid={this.state.invalid}
39
+ inlineLabel={this.state.inlineLabel}
40
+ onChange={(e) => {
41
+ console.log(e)
42
+ }}
43
+ />
44
+ `}
45
+ </Markup.ReactMarkupCodePreview>
46
+ <p className='docs-page__paragraph'></p>
47
+ <Markup.ReactMarkup>
48
+ <Markup.ReactMarkupPreview>
49
+ <div className='docs-page__content-row docs-page__content-row--no-margin'>
50
+ <div className='form__row'>
51
+ <CheckGroup>
52
+ <Checkbox checked={this.state.required} label={{text:'Required input'}} onChange={(value) => {this.setState({required: value})}} />
53
+ <Checkbox checked={this.state.disabled} label={{text:'Disabled input'}} onChange={(value) => {this.setState({disabled: value})}} />
54
+ <Checkbox checked={this.state.invalid} label={{text:'Invalid input'}} onChange={(value) => {this.setState({invalid: value})}} />
55
+ <Checkbox checked={this.state.inlineLabel} label={{text:'Label positioned inline'}} onChange={(value) => {this.setState({inlineLabel: value})}} />
56
+ </CheckGroup>
57
+ </div>
58
+
59
+ <div className='form__row'>
60
+ <DurationInput
61
+ label='Label'
62
+ info='info message'
63
+ disabled={this.state.disabled}
64
+ required={this.state.required}
65
+ invalid={this.state.invalid}
66
+ inlineLabel={this.state.inlineLabel}
67
+ seconds={this.state.value}
68
+ onChange={(e) => {
69
+ this.setState({value: e})
70
+ console.log(e);
71
+ }}
72
+ />
73
+ </div>
74
+ </div>
75
+
76
+ </Markup.ReactMarkupPreview>
77
+ <Markup.ReactMarkupCode>{`
78
+ <DurationInput
79
+ label='Label'
80
+ info='info message'
81
+ disabled={this.state.disabled}
82
+ required={this.state.required}
83
+ invalid={this.state.invalid}
84
+ inlineLabel={this.state.inlineLabel}
85
+ onChange={(e) => {
86
+ console.log(e)
87
+ }}
88
+ />
89
+ `}</Markup.ReactMarkupCode>
90
+ </Markup.ReactMarkup>
91
+
92
+ <h3 className='docs-page__h3'>Props</h3>
93
+ <PropsList>
94
+ <Prop name='hours' isRequired={false} type='number' default='00' description='Hours value'/>
95
+ <Prop name='minutes' isRequired={false} type='number' default='00' description='Minutes value'/>
96
+ <Prop name='seconds' isRequired={false} type='number' default='00' description='Seconds value'/>
97
+ <Prop name='label' isRequired={false} type='string' default='/' description='Input label'/>
98
+ <Prop name='info' isRequired={false} type='string' default='/' description='Hint text'/>
99
+ <Prop name='error' isRequired={false} type='string' default='/' description='Error text'/>
100
+ <Prop name='inlineLabel' isRequired={false} type='boolean' default='false' description='Position labels as inline'/>
101
+ <Prop name='required' isRequired={false} type='boolean' default='false' description='Mark field as required'/>
102
+ <Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled'/>
103
+ <Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid'/>
104
+ </PropsList>
105
+ </section>
106
+ )
107
+ }
108
+ }
@@ -61,6 +61,7 @@ import * as Playgrounds from '../playgrounds/react-playgrounds/Index';
61
61
  import { SelectWithTemplateDocs } from './SelectWithTemplate';
62
62
  import { MultiselectDocs } from './MultiSelect';
63
63
  import { TreeSelectDocs } from './TreeSelect';
64
+ import DurationInputDoc from './DurationInput';
64
65
  import { PopoverDoc } from './Popover';
65
66
  import { MenuDocs } from './Menu';
66
67
  import {WithSizeObserverDocs} from './WithSizeObserver';
@@ -240,6 +241,9 @@ const pages = {
240
241
  'icon-picker': {
241
242
  name: 'Icon Picker',
242
243
  },
244
+ 'duration-input': {
245
+ name: 'Duration Input',
246
+ },
243
247
  'switch': {
244
248
  name: 'Switch'
245
249
  },
@@ -337,6 +341,7 @@ class ReactDoc extends React.Component<IProps, IState> {
337
341
  <Route path="/react/with-size-observer" component={WithSizeObserverDocs} />
338
342
  <Route path="/react/multiselect" component={MultiselectDocs} />
339
343
  <Route path="/react/treeselect" component={TreeSelectDocs} />
344
+ <Route path="/react/duration-input" component={DurationInputDoc} />
340
345
  <Route path="/react/popover" component={PopoverDoc} />
341
346
  <Route path="/react/date-picker" component={DatePickerDoc} />
342
347
  <Route path="/react/time-picker" component={TimePickerDoc} />
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
-
3
2
  import * as Markup from '../../js/react';
3
+ import { Input, CheckGroup, Checkbox, PropsList, Prop, InputNew } from '../../../app-typescript';
4
+ import { DurationInput } from '../../../app-typescript/components/DurationInput';
4
5
 
5
- import { Input, Select, CheckGroup, Checkbox, PropsList, Prop } from '../../../app-typescript';
6
6
 
7
7
  interface IState {
8
8
  inlineLabel: boolean;
@@ -46,6 +46,23 @@ export default class InputsDoc extends React.Component<{}, IState> {
46
46
  <Checkbox checked={this.state.inlineLabel} label={{text:'Label positioned inline'}} onChange={(value) => {this.setState({inlineLabel: value})}} />
47
47
  </CheckGroup>
48
48
  </div>
49
+ <div className='form__row'>
50
+ <InputNew
51
+ label='Label'
52
+ value=''
53
+ onChange={(value) => false
54
+ }
55
+
56
+ required={true}
57
+ info='Nullam Sollicitudin'
58
+ maxLength={20}
59
+ //invalid={true}
60
+ //disabled={true}
61
+ error='Error message'
62
+ //inlineLabel={true}
63
+ //labelHidden={true}
64
+ type='text' />
65
+ </div>
49
66
 
50
67
  <div className='form__row'>
51
68
  <Input label='Input label'
@@ -91,6 +108,7 @@ export default class InputsDoc extends React.Component<{}, IState> {
91
108
  tabindex={0}
92
109
  onChange={(value) => this.setState({value2: value})} />
93
110
  </div>
111
+
94
112
  <p className="docs-page__paragraph">// Boxed with hidden label</p>
95
113
  <div className='form__row'>
96
114
  <Input label='Input label'
@@ -205,6 +223,128 @@ export default class InputsDoc extends React.Component<{}, IState> {
205
223
  disabled={false}
206
224
  invalid={false}
207
225
  onChange={(value) => {}} />
226
+
227
+ <Input label='Number Input'
228
+ value={this.state.value}
229
+ type='number'
230
+ error='This is error message'
231
+ info='Morbi leo risus porta ac consectetur ac.'
232
+ inlineLabel={this.state.inlineLabel}
233
+ required={this.state.required}
234
+ disabled={this.state.disabled}
235
+ invalid={this.state.invalid}
236
+ tabindex={0}
237
+ onChange={(value) => {}} />
238
+
239
+ // Hidden label
240
+ <Input label='Input label'
241
+ value={''}
242
+ maxLength={25}
243
+ type='text'
244
+ placeholder='Placeholder'
245
+ error='This is error message'
246
+ info='Donec id elit non mi porta gravida at eget metus.'
247
+ inlineLabel={true}
248
+ labelHidden={true}
249
+ required={this.state.required}
250
+ disabled={this.state.disabled}
251
+ invalid={this.state.invalid}
252
+ tabindex={0}
253
+ onChange={(value) => {}} />
254
+
255
+ // Boxed with hidden label
256
+ <Input label='Input label'
257
+ value={''}
258
+ boxedStyle={true}
259
+ maxLength={25}
260
+ type='text'
261
+ placeholder='Default boxed input'
262
+ error='This is error message'
263
+ inlineLabel={true}
264
+ labelHidden={true}
265
+ required={this.state.required}
266
+ disabled={this.state.disabled}
267
+ invalid={this.state.invalid}
268
+ tabindex={0}
269
+ onChange={(value) => {}} />
270
+
271
+ <Input label='Input label'
272
+ value={''}
273
+ boxedStyle={true}
274
+ size='large'
275
+ maxLength={25}
276
+ type='text'
277
+ placeholder='Large boxed input'
278
+ error='This is error message'
279
+ inlineLabel={true}
280
+ labelHidden={true}
281
+ required={this.state.required}
282
+ disabled={this.state.disabled}
283
+ invalid={this.state.invalid}
284
+ tabindex={0}
285
+ onChange={(value) => {}} />
286
+
287
+ <Input label='Input label'
288
+ value={''}
289
+ boxedStyle={true}
290
+ size='x-large'
291
+ maxLength={25}
292
+ type='text'
293
+ placeholder='Extra large boxed input'
294
+ error='This is error message'
295
+ inlineLabel={true}
296
+ labelHidden={true}
297
+ required={this.state.required}
298
+ disabled={this.state.disabled}
299
+ invalid={this.state.invalid}
300
+ tabindex={0}
301
+ onChange={(value) => {}} />
302
+
303
+ // Boxed with default label
304
+ <Input label='Input label'
305
+ value={''}
306
+ boxedStyle={true}
307
+ size='large'
308
+ maxLength={25}
309
+ placeholder='Placeholder'
310
+ type='text'
311
+ error='This is error message'
312
+ required={this.state.required}
313
+ disabled={this.state.disabled}
314
+ invalid={this.state.invalid}
315
+ tabindex={0}
316
+ onChange={(value) => {}} />
317
+
318
+ // Boxed with boxed label
319
+ <Input label='Input label'
320
+ value={''}
321
+ boxedStyle={true}
322
+ boxedLable={true}
323
+ size='large'
324
+ maxLength={25}
325
+ placeholder='Placeholder'
326
+ type='text'
327
+ error='This is error message'
328
+ required={this.state.required}
329
+ disabled={this.state.disabled}
330
+ invalid={this.state.invalid}
331
+ tabindex={0}
332
+ onChange={(value) => {}} />
333
+
334
+ <Input label='Input label'
335
+ value={''}
336
+ boxedStyle={true}
337
+ boxedLable={true}
338
+ size='large'
339
+ placeholder='Hide my label'
340
+ labelHidden={true}
341
+ type='text'
342
+ error='This is error message'
343
+ required={this.state.required}
344
+ disabled={this.state.disabled}
345
+ invalid={this.state.invalid}
346
+ tabindex={0}
347
+ onChange={(value) => {}} />
208
348
  `}</Markup.ReactMarkupCode>
209
349
  </Markup.ReactMarkup>
210
350
 
@@ -221,6 +361,11 @@ export default class InputsDoc extends React.Component<{}, IState> {
221
361
  <Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled'/>
222
362
  <Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid'/>
223
363
  <Prop name='tabindex' isRequired={false} type='number' default='/' description='Indicates an element can be focused on, and determines how that focus is handled.'/>
364
+ <Prop name='placeholder' isRequired={false} type='string' default='/' description='Defines the text for the placeholder pseudo-element.'/>
365
+ <Prop name='fullWidth' isRequired={false} type='boolean' default='false' description='Forces the input to take 100% of the container width.'/>
366
+ <Prop name='boxedStyle' isRequired={false} type='boolean' default='false' description='Applies a boxed style to the input. This style should be used only in the authoring enviroment and similar.'/>
367
+ <Prop name='boxedLable' isRequired={false} type='boolean' default='false' description='Applies a boxed style to the input label. This label style should be used only in combination with the boxedStyle input inside the authoring enviroment.'/>
368
+ <Prop name='size' isRequired={false} type='medium | large | x-large' default='medium' description='Specifies the size of the input. Defaults to medium and should be changed only in special cases (e.g. titles, headlines etc.).'/>
224
369
  </PropsList>
225
370
  </section>
226
371
  )
@@ -67,6 +67,12 @@ export default class LabelsDoc extends React.Component {
67
67
  <Label text='deep-orange--700' color='deep-orange--700'/>
68
68
  <Label text='lime--700' color='lime--700'/>
69
69
  </div>
70
+ <p className="docs-page__paragraph">// Custom Hex colors</p>
71
+ <div className='docs-page__content-row'>
72
+ <Label text='Hex: #008773' hexColor='#008773'/>
73
+ <Label text='Hex: #000FB5' hexColor='#000FB5'/>
74
+ <Label text='Hex: #696B00' hexColor='#696B00'/>
75
+ </div>
70
76
  </Markup.ReactMarkupPreview>
71
77
  <Markup.ReactMarkupCode>{`
72
78
  <Label text='default label'/>
@@ -82,7 +88,11 @@ export default class LabelsDoc extends React.Component {
82
88
  <Label text='cyan--600' color='cyan--600'/>
83
89
  <Label text='light-green--700' color='light-green--700'/>
84
90
  <Label text='deep-orange--700' color='deep-orange--700'/>
85
- <Label text='lime--700' color='lime--700'/>
91
+ <Label text='lime--700' color='lime--700'/>
92
+ // Custom Hex colors
93
+ <Label text='Hex: #008773' hexColor='#008773'/>
94
+ <Label text='Hex: #000FB5' hexColor='#000FB5'/>
95
+ <Label text='Hex: #696B00' hexColor='#696B00'/>
86
96
  `}
87
97
  </Markup.ReactMarkupCode>
88
98
  </Markup.ReactMarkup>
@@ -113,6 +123,12 @@ export default class LabelsDoc extends React.Component {
113
123
  <Label text='light-green--700 label' style='hollow' color='light-green--700'/>
114
124
  <Label text='deep-purple--600 label' style='hollow' color='deep-purple--600'/>
115
125
  </div>
126
+ <p className="docs-page__paragraph">// Custom Hex colours</p>
127
+ <div className='docs-page__content-row'>
128
+ <Label text='Hex: #008773' style='hollow' hexColor='#008773'/>
129
+ <Label text='Hex: #000FB5' style='hollow' hexColor='#000FB5'/>
130
+ <Label text='Hex: #696B00' style='hollow' hexColor='#696B00'/>
131
+ </div>
116
132
  </Markup.ReactMarkupPreview>
117
133
  <Markup.ReactMarkupCode>{`
118
134
  <Label text='default label' style='hollow'/>
@@ -133,6 +149,11 @@ export default class LabelsDoc extends React.Component {
133
149
  <Label text='blue-grey--600 label' style='hollow' color='blue-grey--600'/>
134
150
  <Label text='light-green--700 label' style='hollow' color='light-green--700'/>
135
151
  <Label text='deep-purple--600 label' style='hollow' color='deep-purple--600'/>
152
+
153
+ // Custom Hex colours
154
+ <Label text='Hex: #008773' style='hollow' hexColor='#008773'/>
155
+ <Label text='Hex: #000FB5' style='hollow' hexColor='#000FB5'/>
156
+ <Label text='Hex: #696B00' style='hollow' hexColor='#696B00'/>
136
157
  `}
137
158
  </Markup.ReactMarkupCode>
138
159
  </Markup.ReactMarkup>
@@ -156,6 +177,12 @@ export default class LabelsDoc extends React.Component {
156
177
  <Label text='Translucent large' size='large' type='primary' style='translucent'/>
157
178
  <Label text='Translucent, large & no text transformation' type='highlight' size='large' style='translucent' noTransform={true}/>
158
179
  </div>
180
+ <p className="docs-page__paragraph">// Custom Hex colours</p>
181
+ <div className='docs-page__content-row'>
182
+ <Label text='Hex: #008773' style='translucent' hexColor='#008773'/>
183
+ <Label text='Hex: #000FB5' style='translucent' hexColor='#000FB5'/>
184
+ <Label text='Hex: #696B00' style='translucent' hexColor='#696B00'/>
185
+ </div>
159
186
  </Markup.ReactMarkupPreview>
160
187
  <Markup.ReactMarkupCode>{`
161
188
  <Label text='default label' style='hollow'/>
@@ -169,6 +196,11 @@ export default class LabelsDoc extends React.Component {
169
196
  <Label text='Translucent large' size='large' style='translucent'/>
170
197
  <Label text='Translucent large' size='large' type='primary' style='translucent'/>
171
198
  <Label text='Translucent, large & no text transformation' type='highlight' size='large' style='translucent' noTransform={true}/>
199
+
200
+ // Custom Hex colours
201
+ <Label text='Hex: #008773' style='translucent' hexColor='#008773'/>
202
+ <Label text='Hex: #000FB5' style='translucent' hexColor='#000FB5'/>
203
+ <Label text='Hex: #696B00' style='translucent' hexColor='#696B00'/>
172
204
  `}
173
205
  </Markup.ReactMarkupCode>
174
206
  </Markup.ReactMarkup>
@@ -195,6 +227,15 @@ export default class LabelsDoc extends React.Component {
195
227
  <Label text='success label' type='success' style='translucent' onClick={()=> false}/>
196
228
  <Label text='alert label' type='alert' style='translucent' onClick={()=> false}/>
197
229
  </div>
230
+ <p className="docs-page__paragraph">// Custom Hex colours</p>
231
+ <div className='docs-page__content-row'>
232
+ <Label text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
233
+ <Label text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
234
+ <Label style='hollow' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
235
+ <Label style='hollow' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
236
+ <Label style='translucent' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
237
+ <Label style='translucent' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
238
+ </div>
198
239
  </Markup.ReactMarkupPreview>
199
240
  <Markup.ReactMarkupCode>{`
200
241
  <Label text='default label' onClick={()=> false}/>
@@ -211,6 +252,14 @@ export default class LabelsDoc extends React.Component {
211
252
  <Label text='primary label' type='primary' style='translucent' onClick={()=> false}/>
212
253
  <Label text='success label' type='success' style='translucent' onClick={()=> false}/>
213
254
  <Label text='alert label' type='alert' style='translucent' onClick={()=> false}/>
255
+
256
+ // Custom Hex colours
257
+ <Label text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
258
+ <Label text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
259
+ <Label style='hollow' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
260
+ <Label style='hollow' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
261
+ <Label style='translucent' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
262
+ <Label style='translucent' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
214
263
  `}
215
264
  </Markup.ReactMarkupCode>
216
265
  </Markup.ReactMarkup>
@@ -223,6 +272,7 @@ export default class LabelsDoc extends React.Component {
223
272
  <Prop name='size' isRequired={false} type='small | normal | large' default='normal' description='Specifies a small, normal or large label.'/>
224
273
  <Prop name='noTransform' isRequired={false} type='boolean' default='false' description='Transforms text to uppercase.'/>
225
274
  <Prop name='style' isRequired={false} type='filled | hollow | translucent' default='filled' description='Label may have one of these styles - filled (default), hollow or translucent.'/>
275
+ <Prop name='hexColor' isRequired={false} type='string' default='/' description='Define a custom Hex colour for the label.'/>
226
276
  </PropsList>
227
277
  </section>
228
278
  )
@@ -13,11 +13,17 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
13
13
  <LeftMenu
14
14
  activeItemId='1'
15
15
  groups={[
16
- { label: 'SYSTEM SETTINGS', items: [{id: '1', label: 'General'}, {id: '2', label: 'Email settings'}, {id: '3', label: 'Spell checking'}]},
17
- { label: 'WORKFLOW', items: [{ id: '4', label: 'Desk' }, { id: '5', label: 'User Roles & Privileges'}]},
18
- { label: 'CONTENT CONFIG', items: [{id: '6', label: 'Image renditions'}, {id: '7', label: 'Controlled Vocabularies'}]}
16
+ { label: 'SYSTEM SETTINGS', items: [
17
+ {id: '1', label: 'General'},
18
+ {id: '2', label: 'Email settings'},
19
+ ]},
20
+ { label: 'WORKFLOW', items: [
21
+ { id: '4', label: 'Desk' },
22
+ { id: '5', label: 'User Roles & Privileges'},
23
+ ]}
19
24
  ]}
20
- onSelect={() => false} />
25
+ onSelect={() => false}
26
+ />
21
27
  `}
22
28
  </Markup.ReactMarkupCodePreview>
23
29
 
@@ -32,25 +38,41 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
32
38
  <p className="sd-top-menu__header">Top menu</p>
33
39
  </div>
34
40
  </div>
35
- <LeftMenu ariaLabel={'Left navigation'} className={'docs-page__grid-page-example__side'} activeItemId='1'
36
- groups={[
37
- {label: 'SYSTEM SETTINGS', items: [{id: '1', label: 'General'}, {id: '2', label: 'Email settings'}, {id: '3', label: 'Spell checking'}]},
38
- {label: 'WORKFLOW', items: [{id: '4', label: 'Desk'}, {id: '5', label: 'User Roles & Privileges'}]},
39
- {label: 'CONTENT CONFIG', items: [{id: '6', label: 'Image renditions'}, {id: '7', label: 'Controlled Vocabularies'}]}
40
- ]}
41
- onSelect={() => false} />
41
+ <LeftMenu ariaLabel={'Left navigation'}
42
+ className={'docs-page__grid-page-example__side'}
43
+ activeItemId='3'
44
+ groups={[
45
+ {label: 'SYSTEM SETTINGS', items: [{id: '1', label: 'General'}, {id: '2', label: 'Email settings'}, {id: '3', label: 'Spell checking'}]},
46
+ {label: 'WORKFLOW', items: [{id: '4', label: 'Desk'}, {id: '5', label: 'User Roles & Privileges'}]},
47
+ {label: 'CONTENT CONFIG', items: [{id: '6', label: 'Image renditions'}, {id: '7', label: 'Controlled Vocabularies'}]}
48
+ ]}
49
+ onSelect={() => false} />
42
50
  <div className='docs-page__grid-page-example__main'></div>
43
51
  </div>
44
52
  </div>
45
53
  </Markup.ReactMarkupPreview>
46
54
  <Markup.ReactMarkupCode>{`
47
- <LeftMenu ariaLabel={'Left navigation'} className={'docs-page__grid-page-example__side'} activeItemId='1'
55
+ <LeftMenu
56
+ ariaLabel={'Left navigation'}
57
+ className={'docs-page__grid-page-example__side'}
58
+ activeItemId='1'
48
59
  groups={[
49
- {label: 'SYSTEM SETTINGS', items: [{id: '1', label: 'General'}, {id: '2', label: 'Email settings'}, {id: '3', label: 'Spell checking'}]},
50
- {label: 'WORKFLOW', items: [{id: '4', label: 'Desk'}, {id: '5', label: 'User Roles & Privileges'}]},
51
- {label: 'CONTENT CONFIG', items: [{id: '6', label: 'Image renditions'}, {id: '7', label: 'Controlled Vocabularies'}]}
60
+ {label: 'SYSTEM SETTINGS', items: [
61
+ {id: '1', label: 'General'},
62
+ {id: '2', label: 'Email settings'},
63
+ {id: '3', label: 'Spell checking'},
64
+ ]},
65
+ {label: 'WORKFLOW', items: [
66
+ {id: '4', label: 'Desk'},
67
+ {id: '5', label: 'User Roles & Privileges'},
68
+ ]},
69
+ {label: 'CONTENT CONFIG', items: [
70
+ {id: '6', label: 'Image renditions'},
71
+ {id: '7', label: 'Controlled Vocabularies'},
52
72
  ]}
53
- onSelect={() => false} />
73
+ ]}
74
+ onSelect={() => false}
75
+ />
54
76
  `}
55
77
  </Markup.ReactMarkupCode>
56
78
  </Markup.ReactMarkup>
@@ -67,26 +89,26 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
67
89
  </div>
68
90
  </div>
69
91
  <LeftMenu ariaLabel={'Left navigation'}
70
- className={'docs-page__grid-page-example__side'}
71
- scrollSpy='#scrollContainer'
72
- offset={-300}
73
- activeItemId='1'
74
- groups={[
75
- { label: 'MAIN SECTIONS', items: [
76
- { id: '1', label: 'Section 1', ref:'section1'},
77
- { id: '2', label: 'Section 2', ref: 'section2' },
78
- { id: '3', label: 'Section 3', ref: 'section3' },
79
-
80
- ]},
81
- { label:'OTHER SECTIONS', items: [
82
- { id: '4', label: 'Section 4', ref: 'section4' },
83
- { id: '5', label: 'Section 5', ref: 'section5' }
84
- ]},
85
- { label:'OTHER SECTIONS', items: [
86
- { id: '6', label: 'Section 6', ref: 'section6' },
87
- { id: '7', label: 'Section 7', ref: 'section7' }
88
- ]}
92
+ className={'docs-page__grid-page-example__side'}
93
+ scrollSpy='#scrollContainer'
94
+ offset={-300}
95
+ //scrollTo={'section4'}
96
+ groups={[
97
+ { label: 'MAIN SECTIONS', items: [
98
+ { id: '1', label: 'Section 1', ref:'section1'},
99
+ { id: '2', label: 'Section 2', ref: 'section2' },
100
+ { id: '3', label: 'Section 3', ref: 'section3' },
101
+
102
+ ]},
103
+ { label:'OTHER SECTIONS', items: [
104
+ { id: '4', label: 'Section 4', ref: 'section4' },
105
+ { id: '5', label: 'Section 5', ref: 'section5' }
106
+ ]},
107
+ { label:'OTHER SECTIONS', items: [
108
+ { id: '6', label: 'Section 6', ref: 'section6' },
109
+ { id: '7', label: 'Section 7', ref: 'section7' }
89
110
  ]}
111
+ ]}
90
112
  onSelect={() => false} />
91
113
  <div className='docs-page__grid-page-example__main sd-padding--4' id='scrollContainer' style={{height:600}}>
92
114
  <SimpleList density='comfortable'>
@@ -160,16 +182,17 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
160
182
  </Markup.ReactMarkupPreview>
161
183
  <Markup.ReactMarkupCode>
162
184
  {`
163
- <LeftMenu ariaLabel={'Left navigation'}
185
+ <LeftMenu
186
+ ariaLabel={'Left navigation'}
164
187
  className={'docs-page__grid-page-example__side'}
165
188
  scrollSpy='#scrollContainer'
189
+ offset={-300}
166
190
  activeItemId='1'
167
191
  groups={[
168
192
  { label: 'MAIN SECTIONS', items: [
169
193
  { id: '1', label: 'Section 1', ref:'section1'},
170
194
  { id: '2', label: 'Section 2', ref: 'section2' },
171
- { id: '3', label: 'Section 3', ref: 'section3' },
172
-
195
+ { id: '3', label: 'Section 3', ref: 'section3' }
173
196
  ]},
174
197
  {label:'OTHER SECTIONS', items: [
175
198
  { id: '4', label: 'Section 4', ref: 'section4' },
@@ -180,7 +203,8 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
180
203
  { id: '5', label: 'Section 7', ref: 'section7' }
181
204
  ]}
182
205
  ]}
183
- onSelect={() => false} />
206
+ onSelect={() => false}
207
+ />
184
208
 
185
209
  <div id='#scrollContainer'>...</div>
186
210
  `}
@@ -189,16 +213,19 @@ export default class LeftNavigationsDoc extends React.Component<{}> {
189
213
 
190
214
  <h3 className="docs-page__h3">Props</h3>
191
215
  <PropsList>
192
- <Prop name='groups' isRequired={true} type='Array<menugroup>' default='/' description='Array of groups'/>
193
- <Prop name='activeItemId' isRequired={true} type='string' default='/' description='Id of active item'/>
216
+ <Prop name='groups' isRequired={true} type='Array<menugroup>' default='/' description='Array of groups.'/>
194
217
  <Prop name='menugroup label' isRequired={true} type='string' default='/' description='Menugroup label text value.'/>
195
- <Prop name='menugroup items' isRequired={true} type='Array<menuitem>' default='/' description='Array of items'/>
196
- <Prop name='menuitem id' isRequired={true} type='string' default='/' description='Menugroup id value'/>
218
+ <Prop name='menugroup items' isRequired={true} type='Array<menuitem>' default='/' description='Array of items.'/>
219
+ <Prop name='menuitem id' isRequired={true} type='string' default='/' description='Menugroup id value.'/>
197
220
  <Prop name='menuitem label' isRequired={true} type='string' default='/' description='Menugroup label text value.'/>
221
+ <Prop name='menuitem ref' isRequired={false} type='string' default='/' description='Menugroup ref.'/>
222
+ <Prop name='menuitem route' isRequired={false} type='string' default='/' description='Menugroup route value.'/>
223
+ <Prop name='menuitem onCLick' isRequired={true} type='string' default='/' description='On click function.'/>
198
224
  <Prop name='scrollSpy' isRequired={false} type='string' default='HTML' description='Name of the element of scrollable container.'/>
199
225
  <Prop name='offset' isRequired={false} type='number' default='-300' description='Offset value that adjusts to determine the elements are in the viewport.'/>
226
+ <Prop name='activeItemId' isRequired={false} type='string' default='/' description='Id of active item'/>
227
+ <Prop name='scrollTo' isRequired={false} type='string' default='/' description='Ref of active item.'/>
200
228
  </PropsList>
201
-
202
229
  </section>
203
230
  )
204
231
  }