superdesk-ui-framework 3.0.1-beta.6 → 3.0.1-beta.8

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 (71) 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/styles/_icon-font.scss +7 -0
  6. package/app/styles/_sd-tag-input.scss +1 -0
  7. package/app/styles/components/_sd-grid-item.scss +30 -16
  8. package/app/styles/components/_sd-searchbar.scss +7 -0
  9. package/app/styles/design-tokens/_design-tokens-general.scss +1 -1
  10. package/app/styles/form-elements/_forms-general.scss +64 -5
  11. package/app/styles/form-elements/_inputs.scss +10 -0
  12. package/app/styles/grids/_grid-layout.scss +25 -1
  13. package/app/styles/layout/_basic-layout.scss +2 -2
  14. package/app/styles/layout/_editor.scss +4 -4
  15. package/app/styles/primereact/_pr-dropdown.scss +17 -1
  16. package/app-typescript/components/DurationInput.tsx +37 -4
  17. package/app-typescript/components/EmptyState.tsx +2 -1
  18. package/app-typescript/components/Form/FormRowNew.tsx +41 -0
  19. package/app-typescript/components/Form/index.tsx +1 -0
  20. package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
  21. package/app-typescript/components/LeftMenu.tsx +127 -122
  22. package/app-typescript/components/Lists/TableList.tsx +146 -142
  23. package/app-typescript/components/SearchBar.tsx +28 -9
  24. package/app-typescript/components/TimePicker.tsx +2 -0
  25. package/app-typescript/index.ts +1 -0
  26. package/dist/examples.bundle.css +273 -0
  27. package/dist/examples.bundle.js +28927 -28750
  28. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +1 -1
  29. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  30. package/dist/playgrounds/react-playgrounds/TestGround.tsx +120 -14
  31. package/dist/react/LeftNavigations.tsx +71 -44
  32. package/dist/react/MultiSelect.tsx +1 -1
  33. package/dist/react/TableList.tsx +84 -82
  34. package/dist/react/TimePicker.tsx +6 -4
  35. package/dist/react/TreeSelect.tsx +1 -1
  36. package/dist/sd_icons.eot +0 -0
  37. package/dist/sd_icons.svg +14 -7
  38. package/dist/sd_icons.ttf +0 -0
  39. package/dist/sd_icons.woff +0 -0
  40. package/dist/superdesk-ui.bundle.css +976 -29
  41. package/dist/superdesk-ui.bundle.js +13975 -2089
  42. package/dist/vendor.bundle.js +23 -23
  43. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +1 -1
  44. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  45. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +120 -14
  46. package/examples/pages/react/LeftNavigations.tsx +71 -44
  47. package/examples/pages/react/MultiSelect.tsx +1 -1
  48. package/examples/pages/react/TableList.tsx +84 -82
  49. package/examples/pages/react/TimePicker.tsx +6 -4
  50. package/examples/pages/react/TreeSelect.tsx +1 -1
  51. package/package.json +2 -1
  52. package/react/components/DurationInput.d.ts +2 -1
  53. package/react/components/DurationInput.js +36 -4
  54. package/react/components/EmptyState.d.ts +1 -0
  55. package/react/components/EmptyState.js +1 -1
  56. package/react/components/Form/FormRowNew.d.ts +12 -0
  57. package/react/components/Form/FormRowNew.js +67 -0
  58. package/react/components/Form/index.d.ts +1 -0
  59. package/react/components/Form/index.js +3 -1
  60. package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
  61. package/react/components/Layouts/AuthoringContainer.js +1 -1
  62. package/react/components/LeftMenu.d.ts +3 -1
  63. package/react/components/LeftMenu.js +8 -1
  64. package/react/components/Lists/TableList.d.ts +42 -0
  65. package/react/components/Lists/TableList.js +145 -0
  66. package/react/components/SearchBar.d.ts +2 -1
  67. package/react/components/SearchBar.js +18 -2
  68. package/react/components/TimePicker.d.ts +1 -0
  69. package/react/components/TimePicker.js +1 -1
  70. package/react/index.d.ts +1 -0
  71. package/react/index.js +4 -1
@@ -70,7 +70,7 @@ return /******/ (function(modules) { // webpackBootstrap
70
70
  /******/ __webpack_require__.p = "";
71
71
  /******/
72
72
  /******/ // Load entry module and return exports
73
- /******/ return __webpack_require__(__webpack_require__.s = 488);
73
+ /******/ return __webpack_require__(__webpack_require__.s = 514);
74
74
  /******/ })
75
75
  /************************************************************************/
76
76
  /******/ ({
@@ -82,7 +82,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
82
82
 
83
83
  /***/ }),
84
84
 
85
- /***/ 33:
85
+ /***/ 34:
86
86
  /***/ (function(module, exports, __webpack_require__) {
87
87
 
88
88
  /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -17296,11 +17296,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
17296
17296
  }
17297
17297
  }.call(this));
17298
17298
 
17299
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(39), __webpack_require__(47)(module)))
17299
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(40), __webpack_require__(49)(module)))
17300
17300
 
17301
17301
  /***/ }),
17302
17302
 
17303
- /***/ 39:
17303
+ /***/ 40:
17304
17304
  /***/ (function(module, exports) {
17305
17305
 
17306
17306
  var g;
@@ -17328,7 +17328,7 @@ module.exports = g;
17328
17328
 
17329
17329
  /***/ }),
17330
17330
 
17331
- /***/ 40:
17331
+ /***/ 41:
17332
17332
  /***/ (function(module, exports, __webpack_require__) {
17333
17333
 
17334
17334
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -28217,7 +28217,7 @@ return jQuery;
28217
28217
 
28218
28218
  /***/ }),
28219
28219
 
28220
- /***/ 47:
28220
+ /***/ 49:
28221
28221
  /***/ (function(module, exports) {
28222
28222
 
28223
28223
  module.exports = function(module) {
@@ -28246,21 +28246,21 @@ module.exports = function(module) {
28246
28246
 
28247
28247
  /***/ }),
28248
28248
 
28249
- /***/ 488:
28249
+ /***/ 514:
28250
28250
  /***/ (function(module, exports, __webpack_require__) {
28251
28251
 
28252
28252
  "use strict";
28253
28253
 
28254
28254
 
28255
- __webpack_require__(33);
28255
+ __webpack_require__(34);
28256
28256
 
28257
- __webpack_require__(40);
28257
+ __webpack_require__(41);
28258
28258
 
28259
- __webpack_require__(489);
28259
+ __webpack_require__(515);
28260
28260
 
28261
- __webpack_require__(491);
28261
+ __webpack_require__(517);
28262
28262
 
28263
- __webpack_require__(493);
28263
+ __webpack_require__(519);
28264
28264
 
28265
28265
  __webpack_require__(0);
28266
28266
 
@@ -28268,7 +28268,7 @@ __webpack_require__(9);
28268
28268
 
28269
28269
  /***/ }),
28270
28270
 
28271
- /***/ 489:
28271
+ /***/ 515:
28272
28272
  /***/ (function(module, exports, __webpack_require__) {
28273
28273
 
28274
28274
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -28292,7 +28292,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28292
28292
  if ( true ) {
28293
28293
 
28294
28294
  // AMD. Register as an anonymous module.
28295
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(40), __webpack_require__(490) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
28295
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(41), __webpack_require__(516) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
28296
28296
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
28297
28297
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
28298
28298
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -29030,7 +29030,7 @@ return $.widget;
29030
29030
 
29031
29031
  /***/ }),
29032
29032
 
29033
- /***/ 490:
29033
+ /***/ 516:
29034
29034
  /***/ (function(module, exports, __webpack_require__) {
29035
29035
 
29036
29036
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;( function( factory ) {
@@ -29039,7 +29039,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
29039
29039
  if ( true ) {
29040
29040
 
29041
29041
  // AMD. Register as an anonymous module.
29042
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(40) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
29042
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(41) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
29043
29043
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
29044
29044
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
29045
29045
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -29060,16 +29060,16 @@ return $.ui.version = "1.13.0";
29060
29060
 
29061
29061
  /***/ }),
29062
29062
 
29063
- /***/ 491:
29063
+ /***/ 517:
29064
29064
  /***/ (function(module, exports, __webpack_require__) {
29065
29065
 
29066
- __webpack_require__(492);
29066
+ __webpack_require__(518);
29067
29067
  module.exports = angular;
29068
29068
 
29069
29069
 
29070
29070
  /***/ }),
29071
29071
 
29072
- /***/ 492:
29072
+ /***/ 518:
29073
29073
  /***/ (function(module, exports, __webpack_require__) {
29074
29074
 
29075
29075
  /* WEBPACK VAR INJECTION */(function(__webpack_provided_window_dot_jQuery) {/**
@@ -65672,20 +65672,20 @@ $provide.value("$locale", {
65672
65672
  })(window);
65673
65673
 
65674
65674
  !window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(window.angular.element('<style>').text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));
65675
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(40)))
65675
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41)))
65676
65676
 
65677
65677
  /***/ }),
65678
65678
 
65679
- /***/ 493:
65679
+ /***/ 519:
65680
65680
  /***/ (function(module, exports, __webpack_require__) {
65681
65681
 
65682
- __webpack_require__(494);
65682
+ __webpack_require__(520);
65683
65683
  module.exports = 'ngAnimate';
65684
65684
 
65685
65685
 
65686
65686
  /***/ }),
65687
65687
 
65688
- /***/ 494:
65688
+ /***/ 520:
65689
65689
  /***/ (function(module, exports) {
65690
65690
 
65691
65691
  /**
@@ -337,7 +337,7 @@ export class RundownEditor extends React.Component<IProps, IState> {
337
337
  </Layout.MainPanel>
338
338
 
339
339
  <Layout.RightPanel open={this.state.rightPanelOpen}>
340
- <Layout.Panel size='x-large' side='right'>
340
+ <Layout.Panel size='full' side='right'>
341
341
  <Layout.PanelContent>
342
342
  <Layout.AuthoringFrame
343
343
  main={
@@ -141,7 +141,10 @@ export class SamsPlayground extends React.Component<IProps, IState> {
141
141
  <Components.PanelContentBlock>
142
142
  <div className="form__group">
143
143
  <div className="form__item">
144
- <Input label='Title'
144
+ <Input
145
+ label='Title'
146
+ type='text'
147
+ value=''
145
148
  error='This is error message'
146
149
  inlineLabel={false}
147
150
  disabled={false}
@@ -167,7 +170,10 @@ export class SamsPlayground extends React.Component<IProps, IState> {
167
170
 
168
171
  <div className="form__group">
169
172
  <div className="form__item">
170
- <Input label='Keyword'
173
+ <Input
174
+ label='Keyword'
175
+ type='text'
176
+ value=''
171
177
  error='This is error message'
172
178
  inlineLabel={false}
173
179
  disabled={false}
@@ -232,8 +238,11 @@ export class SamsPlayground extends React.Component<IProps, IState> {
232
238
  <Badge text={item.urgency} color={item.urgencyColor} />
233
239
  <Badge text={item.priority} shape='square' color={item.priorityColor} />
234
240
  </GridElements.GridItemFooterBlock>
241
+ <GridElements.GridItemFooterBlock align='right'>
242
+ <Label type='success' style='translucent' text='In progress' />
243
+ </GridElements.GridItemFooterBlock>
235
244
  <GridElements.GridItemFooterActions>
236
- <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> this.changeStatus(item, 'archived')} />
245
+ <IconButton size='small' icon='dots-vertical' ariaValue='More actions' onClick={()=> this.changeStatus(item, 'archived')} />
237
246
  </GridElements.GridItemFooterActions>
238
247
  </GridElements.GridItemFooter>
239
248
  </GridElements.GridItem>
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as Components from './components/Index';
3
- import { Checkbox, RadioGroup, CheckboxButton, RadioButtonGroup, Button, NavButton, SubNav, Dropdown, CheckButtonGroup, Input, Select, Option, Label, Icon, IconButton, CheckGroup, GridList, Badge, ThemeSelector, Container, IconLabel, Tooltip, Spinner, Divider, InputWrapper, DatePicker, TimePicker, InputNew, InputBase } from '../../../../app-typescript/index';
3
+ import { Checkbox, RadioGroup, CheckboxButton, RadioButtonGroup, Button, NavButton, SubNav, Dropdown, CheckButtonGroup, Input, Select, Option, Label, Icon, IconButton, CheckGroup, GridList, Badge, ThemeSelector, Container, IconLabel, Tooltip, Spinner, Divider, InputWrapper, DatePicker, TimePicker, InputNew, InputBase, Text, FormRowNew } from '../../../../app-typescript/index';
4
4
  import { Carousel } from '../../../../app-typescript/index';
5
5
  import * as GridElements from '../../../../app-typescript/components/GridItem';
6
6
 
@@ -63,24 +63,33 @@ export class TestGround extends React.Component<IProps, IState> {
63
63
  <Components.LayoutContainer>
64
64
  <Components.MainPanel>
65
65
  <InputNew
66
- label='testt'
66
+ label='test'
67
67
  value=''
68
68
  onChange={(value) => false}
69
- //placeholder='test'
69
+ placeholder='test'
70
70
  required={true}
71
71
  info='Nullam Sollicitudin'
72
72
  maxLength={20}
73
- //invalid={true}
74
- //disabled={true}
75
73
  error='Error message'
76
- //inlineLabel={true}
77
- //labelHidden={true}
74
+ inlineLabel={true}
75
+ labelHidden={true}
78
76
  type='text' />
79
77
 
80
78
  <hr />
81
79
  <div className='form__group-new'>
82
- <Input value='' onChange={(value) => {}} type='text' label='Text input' placeholder='Enter text' disabled={true} />
83
- <Input value='' onChange={(value) => {}} type='text' label='Text input' placeholder='Enter text' disabled={true} />
80
+ <Input
81
+ value=''
82
+ onChange={(value) => {}}
83
+ type='text'
84
+ label='Text input'
85
+ placeholder='Enter text'
86
+ disabled={true} />
87
+ <Input value=''
88
+ onChange={(value) => {}}
89
+ type='text'
90
+ label='Text input'
91
+ placeholder='Enter text'
92
+ disabled={true} />
84
93
  <DatePicker
85
94
  value={this.state.date}
86
95
  onChange={(date) => {
@@ -91,8 +100,7 @@ export class TestGround extends React.Component<IProps, IState> {
91
100
  label='Date'
92
101
  info='Nullam Sollicitudin'
93
102
  error='Error message'
94
- inlineLabel={true}
95
-
103
+ inlineLabel={false}
96
104
  shortcuts={[
97
105
  {label: 'tomorrow', days: 1},
98
106
  {label: 'yesterday', days: -1},
@@ -107,12 +115,110 @@ export class TestGround extends React.Component<IProps, IState> {
107
115
  this.setState({time});
108
116
  }}
109
117
  />
110
- <Button text="Exit" type='primary' onClick={()=> false} />
111
-
118
+ <Button text="Clear" onClick={()=> false} />
112
119
  <Button text="Cancel" onClick={()=> false} />
113
-
114
120
  <Button text="Save" type='primary' onClick={()=> false} />
115
121
  </div>
122
+ <hr />
123
+
124
+ <FormRowNew rowLabel='My group label' inlineLabels={true}>
125
+ <Input
126
+ value=''
127
+ onChange={(value) => {}}
128
+ type='text'
129
+ label='Text input'
130
+ placeholder='Enter text'
131
+ inlineLabel={true}
132
+ labelHidden={true}
133
+ disabled={false} />
134
+ <Text size='small' align='center'>To:</Text>
135
+ <Input
136
+ value=''
137
+ onChange={(value) => {}}
138
+ type='text'
139
+ label='Text input'
140
+ placeholder='Enter text'
141
+ inlineLabel={true}
142
+ labelHidden={true}
143
+ disabled={false} />
144
+ <DatePicker
145
+ value={this.state.date}
146
+ onChange={(date) => {
147
+ this.setState({date});
148
+ }}
149
+ // disabled={true}
150
+ dateFormat="DD-MM-YYYY"
151
+ label='Date'
152
+ info='Nullam Sollicitudin'
153
+ error='Error message'
154
+ inlineLabel={true}
155
+ labelHidden={true}
156
+ shortcuts={[
157
+ {label: 'tomorrow', days: 1},
158
+ {label: 'yesterday', days: -1},
159
+ ]}
160
+ />
161
+ <TimePicker
162
+ value={this.state.time}
163
+ // disabled={true}
164
+ required={true}
165
+ inlineLabel={true}
166
+ labelHidden={true}
167
+ label='Time'
168
+ onChange={(time) => {
169
+ this.setState({time});
170
+ }}
171
+ />
172
+ <Button text="Save" type='primary' onClick={()=> false} />
173
+ </FormRowNew>
174
+
175
+ <hr />
176
+
177
+ <FormRowNew>
178
+ <Input
179
+ value=''
180
+ onChange={(value) => {}}
181
+ type='text'
182
+ label='Text input'
183
+ placeholder='Enter text'
184
+ disabled={false} />
185
+ <Text size='small' align='center'>To:</Text>
186
+ <Input
187
+ value=''
188
+ onChange={(value) => {}}
189
+ type='text'
190
+ label='Text input'
191
+ placeholder='Enter text'
192
+ labelHidden={true}
193
+ disabled={false} />
194
+ <DatePicker
195
+ value={this.state.date}
196
+ onChange={(date) => {
197
+ this.setState({date});
198
+ }}
199
+ // disabled={true}
200
+ dateFormat="DD-MM-YYYY"
201
+ label='Date'
202
+ info='Nullam Sollicitudin'
203
+ error='Error message'
204
+ inlineLabel={false}
205
+ shortcuts={[
206
+ {label: 'tomorrow', days: 1},
207
+ {label: 'yesterday', days: -1},
208
+ ]}
209
+ />
210
+ <TimePicker
211
+ value={this.state.time}
212
+ // disabled={true}
213
+ required={true}
214
+ label='Time'
215
+ onChange={(time) => {
216
+ this.setState({time});
217
+ }}
218
+ />
219
+ <Button text="Save" type='primary' onClick={()=> false} />
220
+ </FormRowNew>
221
+
116
222
  <hr />
117
223
  <h3 className="docs-page__h3 sd-margin-y--0">Table list</h3>
118
224
  <hr />
@@ -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
  }
@@ -184,7 +184,7 @@ export class MultiselectDocs extends React.Component<{}, IState> {
184
184
  <Prop name='filter' isRequired={false} type='boolean' default='false' description='When specified, displays an input field to filter the items on keyup.'/>
185
185
  <Prop name='filterPlaceholder' isRequired={false} type='string' default='/' description='Placeholder text to show when filter input is empty.'/>
186
186
  <Prop name='emptyFilterMessage' isRequired={false} type='string' default='No results found' description='Template to display when filtering does not return any results.'/>
187
- <Prop name='maxSelectedLabels' isRequired={false} type='number' default='/' description='Decides how many selected item labels to show at most.'/>
187
+ <Prop name='maxSelectedLabels' isRequired={false} type='number' default='/' description='Decides how many selected item labels to show at most. Its necessary to use selectedItemTemplate.'/>
188
188
  <Prop name='selectedItemsLabel' isRequired={false} type='string' default='{0} items selected' description='Label to display after exceeding max selected labels.'/>
189
189
  <Prop name='ariaLabelledBy' isRequired={false} type='string' default='/' description='Establishes relationships between the component and label(s) where its value should be one or more element IDs.'/>
190
190
  <Prop name='tabIndex' isRequired={false} type='string' default="'0'" description='Index of the element in tabbing order.'/>