superdesk-ui-framework 3.0.1-beta.1 → 3.0.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/app/fonts/sd_big-icons.eot +0 -0
  2. package/app/fonts/sd_big-icons.svg +55 -53
  3. package/app/fonts/sd_big-icons.ttf +0 -0
  4. package/app/fonts/sd_big-icons.woff +0 -0
  5. package/app/fonts/sd_icons.eot +0 -0
  6. package/app/fonts/sd_icons.svg +1 -0
  7. package/app/fonts/sd_icons.ttf +0 -0
  8. package/app/fonts/sd_icons.woff +0 -0
  9. package/app/img/dots.svg +3 -0
  10. package/app/styles/_accessibility.scss +3 -3
  11. package/app/styles/_big-icon-font.scss +60 -23
  12. package/app/styles/_boxed-list.scss +26 -3
  13. package/app/styles/_buttons.scss +4 -0
  14. package/app/styles/_helpers.scss +4 -3
  15. package/app/styles/_icon-font.scss +341 -307
  16. package/app/styles/_icon-labels.scss +66 -10
  17. package/app/styles/_table-list.scss +244 -0
  18. package/app/styles/app.scss +1 -0
  19. package/app/styles/components/_list-item.scss +24 -20
  20. package/app/styles/components/_sd-dropzone.scss +52 -16
  21. package/app/styles/components/_subnav.scss +87 -80
  22. package/app/styles/design-tokens/_design-tokens-general.scss +7 -0
  23. package/app/styles/design-tokens/_new-colors.scss +4 -2
  24. package/app/styles/form-elements/_inputs.scss +4 -0
  25. package/app/styles/grids/_grid-layout.scss +21 -7
  26. package/app/styles/layout/_container.scss +3 -0
  27. package/app/styles/layout/_editor.scss +108 -16
  28. package/app/styles/menus/_sd-sidebar-menu.scss +6 -0
  29. package/app/styles/primereact/_pr-dialog.scss +39 -7
  30. package/app-typescript/components/CreateButton.tsx +38 -0
  31. package/app-typescript/components/DropZone.tsx +4 -4
  32. package/app-typescript/components/Icon.tsx +3 -1
  33. package/app-typescript/components/IconLabel.tsx +8 -1
  34. package/app-typescript/components/Input.tsx +2 -0
  35. package/app-typescript/components/Layouts/AuthoringContainer.tsx +27 -0
  36. package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +2 -0
  37. package/app-typescript/components/Layouts/AuthoringMain.tsx +11 -7
  38. package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +7 -1
  39. package/app-typescript/components/Layouts/Container.tsx +1 -1
  40. package/app-typescript/components/Layouts/ContentSplitter.tsx +23 -0
  41. package/app-typescript/components/Layouts/Layout.tsx +33 -0
  42. package/app-typescript/components/Layouts/LayoutContainer.tsx +1 -4
  43. package/app-typescript/components/Layouts/MainPanel.tsx +10 -5
  44. package/app-typescript/components/Layouts/OverlayPanel.tsx +19 -0
  45. package/app-typescript/components/Layouts/Panel.tsx +1 -0
  46. package/app-typescript/components/Layouts/index.tsx +8 -2
  47. package/app-typescript/components/Lists/BoxedList.tsx +6 -2
  48. package/app-typescript/components/Lists/ContentList.tsx +100 -0
  49. package/app-typescript/components/Lists/TableList.tsx +208 -0
  50. package/app-typescript/components/Modal.tsx +27 -17
  51. package/app-typescript/components/Navigation/SideBarTabs.tsx +10 -0
  52. package/app-typescript/components/SearchBar.tsx +79 -0
  53. package/app-typescript/components/Select.tsx +2 -0
  54. package/app-typescript/components/SidebarMenu.tsx +68 -0
  55. package/app-typescript/components/Spinner.tsx +1 -1
  56. package/app-typescript/components/SwitchGroup.tsx +2 -1
  57. package/app-typescript/index.ts +3 -0
  58. package/dist/dots.svg +3 -0
  59. package/dist/examples.bundle.css +7871 -379
  60. package/dist/examples.bundle.js +29461 -15740
  61. package/dist/playgrounds/react-playgrounds/EditorTest.tsx +9 -4
  62. package/dist/playgrounds/react-playgrounds/Index.tsx +3 -1
  63. package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +13 -0
  64. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
  65. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
  66. package/dist/playgrounds/react-playgrounds/TestGround.tsx +190 -182
  67. package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +4 -0
  68. package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
  69. package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
  70. package/dist/playgrounds/react-playgrounds/components/Index.tsx +6 -1
  71. package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
  72. package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
  73. package/dist/react/Container.tsx +1 -1
  74. package/dist/react/ContentList.tsx +280 -0
  75. package/dist/react/CreateButton.tsx +71 -0
  76. package/dist/react/DropZone.tsx +14 -6
  77. package/dist/react/IconButtons.tsx +6 -6
  78. package/dist/react/IconLabels.tsx +24 -2
  79. package/dist/react/Index.tsx +15 -0
  80. package/dist/react/Inputs.tsx +32 -3
  81. package/dist/react/Modal.tsx +1 -0
  82. package/dist/react/TableList.tsx +268 -0
  83. package/dist/sd_big-icons.eot +0 -0
  84. package/dist/sd_big-icons.svg +55 -53
  85. package/dist/sd_big-icons.ttf +0 -0
  86. package/dist/sd_big-icons.woff +0 -0
  87. package/dist/sd_icons.eot +0 -0
  88. package/dist/sd_icons.svg +1 -0
  89. package/dist/sd_icons.ttf +0 -0
  90. package/dist/sd_icons.woff +0 -0
  91. package/dist/superdesk-ui.bundle.css +44994 -24931
  92. package/dist/superdesk-ui.bundle.js +2437 -1949
  93. package/dist/vendor.bundle.js +27 -27
  94. package/examples/css/docs-page.css +2 -3
  95. package/examples/index.js +8 -0
  96. package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +9 -4
  97. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +3 -1
  98. package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +13 -0
  99. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
  100. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
  101. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +190 -182
  102. package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +4 -0
  103. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
  104. package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
  105. package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +6 -1
  106. package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
  107. package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
  108. package/examples/pages/react/Container.tsx +1 -1
  109. package/examples/pages/react/ContentList.tsx +280 -0
  110. package/examples/pages/react/CreateButton.tsx +71 -0
  111. package/examples/pages/react/DropZone.tsx +14 -6
  112. package/examples/pages/react/IconButtons.tsx +6 -6
  113. package/examples/pages/react/IconLabels.tsx +24 -2
  114. package/examples/pages/react/Index.tsx +15 -0
  115. package/examples/pages/react/Inputs.tsx +32 -3
  116. package/examples/pages/react/Modal.tsx +1 -0
  117. package/examples/pages/react/TableList.tsx +268 -0
  118. package/package.json +2 -1
  119. package/react/components/CreateButton.d.ts +17 -0
  120. package/react/components/CreateButton.js +66 -0
  121. package/react/components/DropZone.d.ts +2 -2
  122. package/react/components/DropZone.js +2 -2
  123. package/react/components/Icon.d.ts +1 -0
  124. package/react/components/Icon.js +2 -1
  125. package/react/components/IconLabel.d.ts +2 -0
  126. package/react/components/IconLabel.js +6 -3
  127. package/react/components/Input.d.ts +1 -0
  128. package/react/components/Input.js +1 -0
  129. package/react/components/Layouts/AuthoringContainer.d.ts +11 -0
  130. package/react/components/Layouts/AuthoringContainer.js +58 -0
  131. package/react/components/Layouts/AuthoringInnerHeader.d.ts +1 -0
  132. package/react/components/Layouts/AuthoringInnerHeader.js +6 -3
  133. package/react/components/Layouts/AuthoringMain.d.ts +3 -1
  134. package/react/components/Layouts/AuthoringMain.js +2 -2
  135. package/react/components/Layouts/AuthoringMainToolBar.d.ts +1 -0
  136. package/react/components/Layouts/AuthoringMainToolBar.js +8 -1
  137. package/react/components/Layouts/Container.d.ts +1 -1
  138. package/react/components/Layouts/ContentSplitter.d.ts +10 -0
  139. package/react/components/Layouts/ContentSplitter.js +56 -0
  140. package/react/components/Layouts/Layout.d.ts +8 -0
  141. package/react/components/Layouts/Layout.js +35 -0
  142. package/react/components/Layouts/LayoutContainer.js +1 -1
  143. package/react/components/Layouts/MainPanel.d.ts +1 -0
  144. package/react/components/Layouts/MainPanel.js +11 -4
  145. package/react/components/Layouts/OverlayPanel.d.ts +8 -0
  146. package/react/components/Layouts/OverlayPanel.js +49 -0
  147. package/react/components/Layouts/Panel.d.ts +1 -0
  148. package/react/components/Layouts/index.d.ts +6 -2
  149. package/react/components/Layouts/index.js +12 -4
  150. package/react/components/Lists/BoxedList.d.ts +2 -0
  151. package/react/components/Lists/BoxedList.js +6 -4
  152. package/react/components/Modal.d.ts +2 -0
  153. package/react/components/Modal.js +11 -3
  154. package/react/components/Navigation/SideBarTabs.d.ts +1 -0
  155. package/react/components/Navigation/SideBarTabs.js +4 -0
  156. package/react/components/SearchBar.d.ts +23 -0
  157. package/react/components/SearchBar.js +87 -0
  158. package/react/components/Select.d.ts +1 -0
  159. package/react/components/Select.js +1 -0
  160. package/react/components/Spinner.js +1 -1
  161. package/react/components/SwitchGroup.d.ts +1 -0
  162. package/react/components/SwitchGroup.js +1 -1
  163. package/react/index.d.ts +2 -0
  164. package/react/index.js +5 -0
  165. package/sd_icons.eot +0 -0
  166. package/sd_icons.svg +189 -0
  167. package/sd_icons.ttf +0 -0
  168. package/sd_icons.woff +0 -0
@@ -0,0 +1,268 @@
1
+ import * as React from 'react';
2
+ import * as Markup from '../../js/react';
3
+ import { BoxedList, BoxedListItem, BoxedListContentRow, Prop, PropsList, Icon, IconButton, AvatarWrapper, AvatarContentText, ButtonGroup, Button, Heading, Text, Label, Container, IconLabel, SelectGrid, Dropdown } from '../../../app-typescript';
4
+ import { TableList, TableListItem } from '../../../app-typescript/components/Lists/TableList';
5
+
6
+ interface IState {
7
+ array: any;
8
+ }
9
+
10
+ interface IProps {
11
+ array: any;
12
+ }
13
+
14
+ export default class TableListDoc extends React.Component<IProps, IState> {
15
+ constructor(props: IState) {
16
+ super(props);
17
+ this.state={
18
+ array: [
19
+ {
20
+ start: <>
21
+ <Label style='translucent' text='aacc' />
22
+ <Label style='translucent' type='primary' text='prlg' />
23
+ </>,
24
+ center: <span>Item 1</span>,
25
+ end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
26
+ action: <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />,
27
+ onClick: () => {
28
+ return false;
29
+ }
30
+ },
31
+ {
32
+ start: <>
33
+ <Label style='translucent' text='aacc' />
34
+ <Label style='translucent' type='primary' text='prlg' />
35
+ </>,
36
+ center: <span>Item 2</span>,
37
+ end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
38
+ action: <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />,
39
+ onClick: () => {
40
+ return false;
41
+ }
42
+ },
43
+ {
44
+ start: <>
45
+ <Label style='translucent' text='aacc' />
46
+ <Label style='translucent' type='primary' text='prlg' />
47
+ </>,
48
+ center: <span>Item 3</span>,
49
+ end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
50
+ action: <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />,
51
+ onClick: () => {
52
+ return false;
53
+ }
54
+ },
55
+ ]
56
+ }
57
+
58
+ }
59
+
60
+ render() {
61
+ return (
62
+ <section className='docs-page__container'>
63
+ <h2 className='docs-page__h2'>TableList</h2>
64
+
65
+ <Markup.ReactMarkupCodePreview>{`
66
+ <TableList
67
+ dragAndDrop
68
+ addItem
69
+ array={this.state.array}
70
+ itemsDropdown={[
71
+ { label: 'Action 1', onSelect: () => 1 },
72
+ { label: 'Action 2', onSelect: () => 1 },
73
+ { label: 'Action 3', onSelect: () => 1 },
74
+ ]} />
75
+ `}
76
+ </Markup.ReactMarkupCodePreview>
77
+
78
+ <p className="docs-page__paragraph">Basic:</p>
79
+
80
+ <Markup.ReactMarkup>
81
+ <Markup.ReactMarkupPreview>
82
+
83
+ <TableList>
84
+ <TableListItem
85
+ addItem
86
+ itemsDropdown={[
87
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
88
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
89
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
90
+ ]}
91
+ start={
92
+ <>
93
+ <Label style='translucent' text='aacc' />
94
+ <Label style='translucent' type='primary' text='prlg' />
95
+ </>
96
+ }
97
+ center={
98
+ <span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
99
+ }
100
+ end={
101
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
102
+ }
103
+ action={
104
+ <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
105
+ } />
106
+ <TableListItem
107
+ addItem
108
+ itemsDropdown={[
109
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
110
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
111
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
112
+ ]}
113
+ start={
114
+ <>
115
+ <Label style='hollow' text='aacc' />
116
+ <Label style='filled' type='primary' text='prlg' />
117
+ </>
118
+ }
119
+ center={
120
+ <span>Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
121
+ }
122
+ end={
123
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
124
+ } />
125
+ <TableListItem
126
+ addItem
127
+ itemsDropdown={[
128
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
129
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
130
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
131
+ ]}
132
+ start={
133
+ <>
134
+ <Label style='translucent' text='aacc' />
135
+ <Label style='translucent' type='primary' text='prlg' />
136
+ </>
137
+ }
138
+ center={
139
+ <span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
140
+ }
141
+ end={
142
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
143
+ }
144
+ action={
145
+ <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
146
+ } />
147
+ </TableList>
148
+
149
+ </Markup.ReactMarkupPreview>
150
+ <Markup.ReactMarkupCode>{`
151
+ <TableList>
152
+ <TableListItem
153
+ addItem
154
+ itemsDropdown={[
155
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
156
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
157
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
158
+ ]}
159
+ start={
160
+ <>
161
+ <Label style='translucent' text='aacc' />
162
+ <Label style='translucent' type='primary' text='prlg' />
163
+ </>
164
+ }
165
+ center={
166
+ <span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
167
+ }
168
+ end={
169
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
170
+ }
171
+ action={
172
+ <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
173
+ } />
174
+ <TableListItem
175
+ addItem
176
+ itemsDropdown={[
177
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
178
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
179
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
180
+ ]}
181
+ start={
182
+ <>
183
+ <Label style='hollow' text='aacc' />
184
+ <Label style='filled' type='primary' text='prlg' />
185
+ </>
186
+ }
187
+ center={
188
+ <span>Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
189
+ }
190
+ end={
191
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
192
+ } />
193
+ <TableListItem
194
+ addItem
195
+ itemsDropdown={[
196
+ { label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
197
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
198
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
199
+ ]}
200
+ start={
201
+ <>
202
+ <Label style='translucent' text='aacc' />
203
+ <Label style='translucent' type='primary' text='prlg' />
204
+ </>
205
+ }
206
+ center={
207
+ <span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
208
+ }
209
+ end={
210
+ <IconLabel style='translucent' text='Label success' type='success' icon='time' />
211
+ }
212
+ action={
213
+ <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
214
+ } />
215
+ </TableList>
216
+ `}
217
+ </Markup.ReactMarkupCode>
218
+ </Markup.ReactMarkup>
219
+ <p className="docs-page__paragraph">With drag and drop functionality:</p>
220
+ <Markup.ReactMarkup>
221
+ <Markup.ReactMarkupPreview>
222
+
223
+ <TableList
224
+ dragAndDrop
225
+ addItem
226
+ array={this.state.array}
227
+ itemsDropdown={[
228
+ { label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => 1 },
229
+ { label: <Label style='translucent' text='prlg' />, onSelect: () => 1 },
230
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
231
+ ]}
232
+ onClick={() => false}
233
+ />
234
+
235
+ </Markup.ReactMarkupPreview>
236
+ <Markup.ReactMarkupCode>{`
237
+ <TableList
238
+ dragAndDrop
239
+ addItem
240
+ array={this.state.array}
241
+ itemsDropdown={[
242
+ { label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => 1 },
243
+ { label: <Label style='translucent' text='prlg' />, onSelect: () => 1 },
244
+ { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
245
+ ]}
246
+ onClick={() => false}
247
+ />
248
+ `}
249
+ </Markup.ReactMarkupCode>
250
+ </Markup.ReactMarkup>
251
+
252
+ <h3 className="docs-page__h3">Props</h3>
253
+ <p className="docs-page__paragraph">BoxedList</p>
254
+ <PropsList>
255
+ <Prop name='density' isRequired={false} type='compact | comfortable' default='compact' description='Increase the gap beetween list items.'/>
256
+ </PropsList>
257
+ <p className="docs-page__paragraph">BoxedListItem</p>
258
+ <PropsList>
259
+ <Prop name='clickable' isRequired={false} type='boolean' default='false' description='Adds hover effect and changes the cursor to poiter.'/>
260
+ <Prop name='selected' isRequired={false} type='boolean' default='false' description='Changes the state to selected and adds apropriate styling for it.'/>
261
+ <Prop name='slideInActions' isRequired={false} type='boolean' default='false' description='If set to true, the action buttons will be hidden and slide in from the right on hover.'/>
262
+ <Prop name='type' isRequired={false} type='default | primary | success | warning | alert | highlight' default='/' description='Adds a clour coded border on the right, based on the selected type.'/>
263
+ </PropsList>
264
+
265
+ </section>
266
+ )
267
+ }
268
+ }
Binary file