superdesk-ui-framework 3.0.1-beta.9 → 3.0.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.
- package/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +1 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +11 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +5 -4
- package/app/styles/_modals.scss +7 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +56 -2
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +3 -0
- package/app/styles/components/_list-item.scss +23 -16
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-comment-box.scss +8 -4
- package/app/styles/components/_sd-editor-popup.scss +4 -4
- package/app/styles/components/_sd-media-carousel.scss +37 -2
- package/app/styles/components/_sd-pagination.scss +41 -0
- package/app/styles/components/_sd-photo-preview.scss +2 -2
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_new-colors.scss +29 -12
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +230 -61
- package/app/styles/grids/_grid-layout.scss +13 -14
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_editor.scss +6 -0
- package/app/styles/menus/_sd-sidebar-menu.scss +1 -1
- package/app/styles/primereact/_pr-datepicker.scss +16 -2
- package/app/styles/primereact/_pr-dialog.scss +9 -0
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +47 -47
- package/app/template/search-handler.html +2 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +8 -9
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +39 -14
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/InputBase.tsx +12 -2
- package/app-typescript/components/Input.tsx +4 -4
- package/app-typescript/components/Label.tsx +17 -1
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/CoreLayout.tsx +3 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +10 -1
- package/app-typescript/components/Lists/ContentList.tsx +64 -30
- package/app-typescript/components/Lists/TableList.tsx +255 -53
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/Modal.tsx +6 -2
- package/app-typescript/components/MultiSelect.tsx +2 -2
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/SideBarMenu.tsx +30 -4
- package/app-typescript/components/SearchBar.tsx +11 -3
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +2 -13
- package/app-typescript/components/TreeSelect.tsx +286 -180
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.css +110 -71
- package/dist/examples.bundle.js +24358 -22168
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +188 -12
- package/dist/react/DatePicker.tsx +50 -2
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/Inputs.tsx +1 -7
- package/dist/react/Modal.tsx +154 -22
- package/dist/react/MultiSelect.tsx +5 -5
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/TableList.tsx +52 -139
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +167 -176
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +1100 -407
- package/dist/superdesk-ui.bundle.js +6594 -4035
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +4 -4
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +188 -12
- package/examples/pages/react/DatePicker.tsx +50 -2
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/Inputs.tsx +1 -7
- package/examples/pages/react/Modal.tsx +154 -22
- package/examples/pages/react/MultiSelect.tsx +5 -5
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/TableList.tsx +52 -139
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +167 -176
- package/package.json +3 -5
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +2 -2
- package/react/components/DatePicker.js +3 -3
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +46 -17
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/InputBase.d.ts +0 -1
- package/react/components/Form/InputBase.js +15 -1
- package/react/components/Input.d.ts +3 -3
- package/react/components/Input.js +2 -1
- package/react/components/Label.d.ts +1 -0
- package/react/components/Label.js +17 -2
- package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
- package/react/components/Layouts/AuthoringFrame.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Layouts/CoreLayout.d.ts +2 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +2 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Lists/ContentList.d.ts +6 -0
- package/react/components/Lists/ContentList.js +42 -16
- package/react/components/Lists/TableList.d.ts +30 -8
- package/react/components/Lists/TableList.js +127 -24
- package/react/components/Menu.js +1 -1
- package/react/components/Modal.d.ts +2 -0
- package/react/components/Modal.js +3 -3
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +73 -0
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/Navigation/SideBarMenu.d.ts +6 -0
- package/react/components/Navigation/SideBarMenu.js +19 -2
- package/react/components/SearchBar.d.ts +1 -1
- package/react/components/SearchBar.js +15 -7
- package/react/components/TimePicker.d.ts +1 -5
- package/react/components/TimePicker.js +3 -7
- package/react/components/TreeSelect.d.ts +12 -5
- package/react/components/TreeSelect.js +189 -116
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -0
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -66
@@ -1,8 +1,9 @@
|
|
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, Text, FormRowNew
|
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
|
-
import
|
5
|
+
import { FormLabel } from '../../../../app-typescript/components/Form/FormLabel';
|
6
|
+
|
6
7
|
|
7
8
|
import dummy_items from '../dummy-data/items';
|
8
9
|
|
@@ -62,6 +63,63 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
62
63
|
<Components.Layout header='Testing Ground'>
|
63
64
|
<Components.LayoutContainer>
|
64
65
|
<Components.MainPanel>
|
66
|
+
|
67
|
+
<h3 className="docs-page__h3 sd-margin-y--0">Pagination</h3>
|
68
|
+
<hr />
|
69
|
+
<div className='sd-pagination'>
|
70
|
+
<button className='sd-pagination__item sd-pagination__item--start' disabled>
|
71
|
+
<Icon name='backward-thin' />
|
72
|
+
</button>
|
73
|
+
<button className='sd-pagination__item sd-pagination__item--back' disabled>
|
74
|
+
<Icon name='chevron-left-thin' />
|
75
|
+
</button>
|
76
|
+
|
77
|
+
<button className='sd-pagination__item'>1</button>
|
78
|
+
<button className='sd-pagination__item sd-pagination__item--active'>2</button>
|
79
|
+
<button className='sd-pagination__item'>3</button>
|
80
|
+
<button className='sd-pagination__item'>4</button>
|
81
|
+
|
82
|
+
<span className='sd-pagination__item sd-pagination__item--more'>...</span>
|
83
|
+
|
84
|
+
<button className='sd-pagination__item'>12</button>
|
85
|
+
|
86
|
+
<button className='sd-pagination__item sd-pagination__item--forward'>
|
87
|
+
<Icon name='chevron-right-thin' />
|
88
|
+
</button>
|
89
|
+
<button className='sd-pagination__item sd-pagination__item--end'>
|
90
|
+
<Icon name='forward-thin' />
|
91
|
+
</button>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
<hr />
|
95
|
+
|
96
|
+
<h3 className="docs-page__h3 sd-margin-y--0">Form test</h3>
|
97
|
+
<hr />
|
98
|
+
<div className="input-wrap">
|
99
|
+
<FormLabel invalid required={true} state='focused' text="Form Label" forId="input1" />
|
100
|
+
<IconButton size='small' icon="settings" ariaValue="Screen-reader text" onClick={()=> false} />
|
101
|
+
<InputBase placeholder='Test placeholder' boxedStyle invalid type='text' id="input1" value='' onChange={(value) => {}} />
|
102
|
+
<div className="input-wrap__message-box">
|
103
|
+
<div className="sd-input__hint">Error message</div>
|
104
|
+
</div>
|
105
|
+
<span className="sd-input__char-count">0 / 40</span>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
<hr />
|
109
|
+
|
110
|
+
<div className="input-wrap input-wrap--boxed">
|
111
|
+
<FormLabel style='boxed' text="Form Label" required={true} forId="input2" />
|
112
|
+
<IconButton size='small' icon="settings" ariaValue="Screen-reader text" onClick={()=> false} />
|
113
|
+
<InputBase disabled size='medium' placeholder='Test placeholder' boxedStyle type='text' id="input2" value='' onChange={(value) => {}} />
|
114
|
+
<div className="input-wrap__message-box">
|
115
|
+
<div className="sd-input__hint">Error message</div>
|
116
|
+
</div>
|
117
|
+
<span className="sd-input__char-count">0 / 40</span>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<hr />
|
121
|
+
<hr />
|
122
|
+
|
65
123
|
<InputNew
|
66
124
|
label='test'
|
67
125
|
value=''
|
@@ -220,17 +278,96 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
220
278
|
</FormRowNew>
|
221
279
|
|
222
280
|
<hr />
|
223
|
-
<h3 className="docs-page__h3 sd-margin-y--0">Table list</h3>
|
281
|
+
<h3 className="docs-page__h3 sd-margin-y--0">Table list (draggable)</h3>
|
224
282
|
<hr />
|
225
|
-
<
|
226
|
-
|
283
|
+
<h4 className="docs-page__h4 sd-margin-y--1">Handles visible</h4>
|
284
|
+
<ul className='table-list table-list--gap-s'>
|
285
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-always'>
|
286
|
+
<div className='table-list__item-border'></div>
|
287
|
+
<div className='table-list__item-content'>
|
288
|
+
<div className='table-list__item-content-block'>
|
289
|
+
<Label text='Uvod' />
|
290
|
+
<Label type='primary' text='prlg' />
|
291
|
+
</div>
|
292
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
293
|
+
<span>Handle visible. Nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
294
|
+
</div>
|
295
|
+
<div className='table-list__item-content-block'>
|
296
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
<div className='table-list__slide-in-actions'>
|
300
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
301
|
+
</div>
|
302
|
+
</li>
|
303
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-always'>
|
304
|
+
<div className='table-list__item-border'></div>
|
305
|
+
<div className='table-list__item-content'>
|
306
|
+
<div className='table-list__item-content-block'>
|
307
|
+
<Label text='Gost' />
|
308
|
+
<Label type='primary' text='prlg' />
|
309
|
+
</div>
|
310
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
311
|
+
<span>Handle visible. Duis mollis, est non commodo luctus, nisi erat porttitor ligula..</span>
|
312
|
+
</div>
|
313
|
+
<div className='table-list__item-content-block'>
|
314
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
315
|
+
</div>
|
316
|
+
</div>
|
317
|
+
<div className='table-list__slide-in-actions'>
|
318
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
319
|
+
</div>
|
320
|
+
</li>
|
321
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-always'>
|
322
|
+
<div style={{background:'#83cf7e',}} className='table-list__item-border'></div>
|
323
|
+
<div className='table-list__item-content'>
|
324
|
+
<div className='table-list__item-content-block'>
|
325
|
+
<Label text='Podatak' />
|
326
|
+
<Label type='primary' text='Gost' />
|
327
|
+
</div>
|
328
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
329
|
+
<span>Handle visible. Mollis est non commodo luctus, nisi erat porttitor ligula.</span>
|
330
|
+
</div>
|
331
|
+
<div className='table-list__item-content-block'>
|
332
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
333
|
+
</div>
|
334
|
+
</div>
|
335
|
+
<div className='table-list__slide-in-actions'>
|
336
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
337
|
+
</div>
|
338
|
+
</li>
|
339
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-always table-list__item--selected'>
|
340
|
+
<div className='table-list__item-border'></div>
|
341
|
+
<div className='table-list__item-content'>
|
342
|
+
<div className='table-list__item-content-block'>
|
343
|
+
<Label text='Odjava' />
|
344
|
+
<Label type='warning' text='Slika' />
|
345
|
+
</div>
|
346
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
347
|
+
<span>Handle visible. Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
348
|
+
</div>
|
349
|
+
<div className='table-list__item-content-block'>
|
350
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
351
|
+
</div>
|
352
|
+
</div>
|
353
|
+
<div className='table-list__slide-in-actions'>
|
354
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
355
|
+
</div>
|
356
|
+
</li>
|
357
|
+
</ul>
|
358
|
+
|
359
|
+
<hr />
|
360
|
+
<h4 className="docs-page__h4 sd-margin-y--1">Handles hidden</h4>
|
361
|
+
<ul className='table-list table-list--gap-s'>
|
362
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-none'>
|
363
|
+
<div className='table-list__item-border'></div>
|
227
364
|
<div className='table-list__item-content'>
|
228
365
|
<div className='table-list__item-content-block'>
|
229
|
-
<Label
|
230
|
-
<Label
|
366
|
+
<Label text='Uvod' />
|
367
|
+
<Label type='primary' text='prlg' />
|
231
368
|
</div>
|
232
369
|
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
233
|
-
<span>
|
370
|
+
<span>Handle hidden. Nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
234
371
|
</div>
|
235
372
|
<div className='table-list__item-content-block'>
|
236
373
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
@@ -240,14 +377,74 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
240
377
|
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
241
378
|
</div>
|
242
379
|
</li>
|
380
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-none'>
|
381
|
+
<div className='table-list__item-border'></div>
|
382
|
+
<div className='table-list__item-content'>
|
383
|
+
<div className='table-list__item-content-block'>
|
384
|
+
<Label text='Gost' />
|
385
|
+
<Label type='primary' text='prlg' />
|
386
|
+
</div>
|
387
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
388
|
+
<span>Handle hidden. Duis mollis, est non commodo luctus, nisi erat porttitor ligula..</span>
|
389
|
+
</div>
|
390
|
+
<div className='table-list__item-content-block'>
|
391
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
392
|
+
</div>
|
393
|
+
</div>
|
394
|
+
<div className='table-list__slide-in-actions'>
|
395
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
396
|
+
</div>
|
397
|
+
</li>
|
398
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-none'>
|
399
|
+
<div style={{background:'#83cf7e',}} className='table-list__item-border'></div>
|
400
|
+
<div className='table-list__item-content'>
|
401
|
+
<div className='table-list__item-content-block'>
|
402
|
+
<Label text='Podatak' />
|
403
|
+
<Label type='primary' text='Gost' />
|
404
|
+
</div>
|
405
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
406
|
+
<span>Handle hidden. Mollis est non commodo luctus, nisi erat porttitor ligula.</span>
|
407
|
+
</div>
|
408
|
+
<div className='table-list__item-content-block'>
|
409
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
410
|
+
</div>
|
411
|
+
</div>
|
412
|
+
<div className='table-list__slide-in-actions'>
|
413
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
414
|
+
</div>
|
415
|
+
</li>
|
416
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--drag-handles-none table-list__item--selected'>
|
417
|
+
<div className='table-list__item-border'></div>
|
418
|
+
<div className='table-list__item-content'>
|
419
|
+
<div className='table-list__item-content-block'>
|
420
|
+
<Label text='Odjava' />
|
421
|
+
<Label type='warning' text='Slika' />
|
422
|
+
</div>
|
423
|
+
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
424
|
+
<span>Handle hidden. Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
425
|
+
</div>
|
426
|
+
<div className='table-list__item-content-block'>
|
427
|
+
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
428
|
+
</div>
|
429
|
+
</div>
|
430
|
+
<div className='table-list__slide-in-actions'>
|
431
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
432
|
+
</div>
|
433
|
+
</li>
|
434
|
+
</ul>
|
435
|
+
|
436
|
+
<hr />
|
437
|
+
<h4 className="docs-page__h4 sd-margin-y--1">Handles on hover</h4>
|
438
|
+
<ul className='table-list table-list--gap-s'>
|
243
439
|
<li className='table-list__item table-list__item--clickable table-list__item--draggable'>
|
440
|
+
<div className='table-list__item-border'></div>
|
244
441
|
<div className='table-list__item-content'>
|
245
442
|
<div className='table-list__item-content-block'>
|
246
|
-
<Label
|
247
|
-
<Label
|
443
|
+
<Label text='Uvod' />
|
444
|
+
<Label type='primary' text='prlg' />
|
248
445
|
</div>
|
249
446
|
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
250
|
-
<span>
|
447
|
+
<span>Handle on hover. Nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
251
448
|
</div>
|
252
449
|
<div className='table-list__item-content-block'>
|
253
450
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
@@ -257,32 +454,33 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
257
454
|
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
258
455
|
</div>
|
259
456
|
</li>
|
260
|
-
<li className='table-list__item table-list__item--clickable'>
|
457
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable'>
|
458
|
+
<div className='table-list__item-border'></div>
|
261
459
|
<div className='table-list__item-content'>
|
262
460
|
<div className='table-list__item-content-block'>
|
263
|
-
<Label
|
264
|
-
<Label
|
461
|
+
<Label text='Gost' />
|
462
|
+
<Label type='primary' text='prlg' />
|
265
463
|
</div>
|
266
464
|
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
267
|
-
<span>
|
465
|
+
<span>Handle on hover. Duis mollis, est non commodo luctus, nisi erat porttitor ligula..</span>
|
268
466
|
</div>
|
269
467
|
<div className='table-list__item-content-block'>
|
270
468
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
271
469
|
</div>
|
272
470
|
</div>
|
273
471
|
<div className='table-list__slide-in-actions'>
|
274
|
-
<IconButton icon='
|
275
|
-
<IconButton icon='trash' size='small' ariaValue='More actions' onClick={()=> false} />
|
472
|
+
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
276
473
|
</div>
|
277
474
|
</li>
|
278
|
-
<li className='table-list__item table-list__item--clickable table-list__item--
|
475
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable'>
|
476
|
+
<div style={{background:'#83cf7e',}} className='table-list__item-border'></div>
|
279
477
|
<div className='table-list__item-content'>
|
280
478
|
<div className='table-list__item-content-block'>
|
281
|
-
<Label
|
282
|
-
<Label
|
479
|
+
<Label text='Podatak' />
|
480
|
+
<Label type='primary' text='Gost' />
|
283
481
|
</div>
|
284
482
|
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
285
|
-
<span>
|
483
|
+
<span>Handle on hover. Mollis est non commodo luctus, nisi erat porttitor ligula.</span>
|
286
484
|
</div>
|
287
485
|
<div className='table-list__item-content-block'>
|
288
486
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
@@ -292,14 +490,15 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
292
490
|
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
293
491
|
</div>
|
294
492
|
</li>
|
295
|
-
<li className='table-list__item table-list__item--clickable'>
|
493
|
+
<li className='table-list__item table-list__item--clickable table-list__item--draggable table-list__item--selected'>
|
494
|
+
<div className='table-list__item-border'></div>
|
296
495
|
<div className='table-list__item-content'>
|
297
496
|
<div className='table-list__item-content-block'>
|
298
|
-
<Label
|
299
|
-
<Label
|
497
|
+
<Label text='Odjava' />
|
498
|
+
<Label type='warning' text='Slika' />
|
300
499
|
</div>
|
301
500
|
<div className='table-list__item-content-block table-list__item-content-block--center'>
|
302
|
-
<span>Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
501
|
+
<span>Handle on hover. Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
303
502
|
</div>
|
304
503
|
<div className='table-list__item-content-block'>
|
305
504
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
@@ -310,6 +509,8 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
310
509
|
</div>
|
311
510
|
</li>
|
312
511
|
</ul>
|
512
|
+
<hr />
|
513
|
+
<hr />
|
313
514
|
|
314
515
|
<h3 className="docs-page__h3 sd-margin-y--0 sd-margin-t--3">Table list with items between</h3>
|
315
516
|
<hr />
|
@@ -32,11 +32,12 @@ export default class ContentDividerDoc extends React.Component {
|
|
32
32
|
consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo.
|
33
33
|
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur
|
34
34
|
purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue.</p>
|
35
|
-
<ContentDivider type="dotted" />
|
35
|
+
<ContentDivider type="dotted" margin='x-small' />
|
36
36
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus
|
37
37
|
ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet
|
38
38
|
risus. Donec id elit non mi porta gravida at eget metus. Cras justo odio, dapibus ac
|
39
39
|
facilisis in, egestas eget quam.</p>
|
40
|
+
<ContentDivider type="dotted" margin='x-small' />
|
40
41
|
</div>
|
41
42
|
</Markup.ReactMarkupPreview>
|
42
43
|
<Markup.ReactMarkupCode>{`
|
@@ -50,9 +51,11 @@ export default class ContentDividerDoc extends React.Component {
|
|
50
51
|
|
51
52
|
<p>Donec ullamcorper nulla non metus auctor fringilla...</p>
|
52
53
|
|
53
|
-
<ContentDivider type="dotted" />
|
54
|
+
<ContentDivider type="dotted" margin='x-small' />
|
54
55
|
|
55
56
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
|
57
|
+
|
58
|
+
<ContentDivider type="dotted" margin='x-small' />
|
56
59
|
`}
|
57
60
|
</Markup.ReactMarkupCode>
|
58
61
|
</Markup.ReactMarkup>
|
@@ -69,15 +72,15 @@ export default class ContentDividerDoc extends React.Component {
|
|
69
72
|
Maecenas faucibus mollis interdum. Donec ullamcorper nulla non metus
|
70
73
|
auctor fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia
|
71
74
|
quam venenatis vestibulum.</p>
|
72
|
-
<ContentDivider align="left">
|
73
|
-
Left aligned
|
75
|
+
<ContentDivider margin='small' align="left">
|
76
|
+
Left aligned, small margin
|
74
77
|
</ContentDivider>
|
75
78
|
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.
|
76
79
|
Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur
|
77
80
|
purus sit amet fermentum. Etiam porta sem malesuada magna mollis euismod.
|
78
81
|
Cras mattis consectetur purus sit amet fermentum.</p>
|
79
82
|
<ContentDivider align="right" type="dotted">
|
80
|
-
Right aligned
|
83
|
+
Right aligned, dotted
|
81
84
|
</ContentDivider>
|
82
85
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
|
83
86
|
Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna,
|
@@ -93,14 +96,14 @@ export default class ContentDividerDoc extends React.Component {
|
|
93
96
|
|
94
97
|
<p>Maecenas sed diam eget...</p>
|
95
98
|
|
96
|
-
<ContentDivider align="left">
|
97
|
-
Left aligned
|
99
|
+
<ContentDivider margin='small' align="left">
|
100
|
+
Left aligned, small margin
|
98
101
|
</ContentDivider>
|
99
102
|
|
100
103
|
<p>Maecenas sed diam eget risus...</p>
|
101
104
|
|
102
105
|
<ContentDivider align="right" type="dotted">
|
103
|
-
Right aligned
|
106
|
+
Right aligned, dotted
|
104
107
|
</ContentDivider>
|
105
108
|
|
106
109
|
<p>Praesent commodo cursus magna...</p>
|
@@ -115,9 +118,9 @@ export default class ContentDividerDoc extends React.Component {
|
|
115
118
|
<p className="docs-page__paragraph">// Basic</p>
|
116
119
|
<div className='docs-page__content-row'>
|
117
120
|
<span>Option one</span>
|
118
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
121
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
119
122
|
<span>Option two</span>
|
120
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
123
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
121
124
|
<span>Option three</span>
|
122
125
|
</div>
|
123
126
|
<p className="docs-page__paragraph ">// With text</p>
|
@@ -129,7 +132,7 @@ export default class ContentDividerDoc extends React.Component {
|
|
129
132
|
sit amet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla
|
130
133
|
sed consectetur. Vivamus sagittis lacus vel augue.
|
131
134
|
</div>
|
132
|
-
<ContentDivider orientation="vertical">
|
135
|
+
<ContentDivider orientation="vertical" margin='large'>
|
133
136
|
or
|
134
137
|
</ContentDivider>
|
135
138
|
<div style={{width:'100%'}}>
|
@@ -143,9 +146,9 @@ export default class ContentDividerDoc extends React.Component {
|
|
143
146
|
// Basic
|
144
147
|
|
145
148
|
<span>Option one</span>
|
146
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
149
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
147
150
|
<span>Option two</span>
|
148
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
151
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
149
152
|
<span>Option three</span>
|
150
153
|
|
151
154
|
// With text
|
@@ -154,7 +157,7 @@ export default class ContentDividerDoc extends React.Component {
|
|
154
157
|
Cras justo odio, dapibus ac facilisis in, egestas eget quam...
|
155
158
|
</div>
|
156
159
|
|
157
|
-
<ContentDivider orientation="vertical">
|
160
|
+
<ContentDivider orientation="vertical" margin='large'>
|
158
161
|
or
|
159
162
|
</ContentDivider>
|
160
163
|
|
@@ -167,10 +170,11 @@ export default class ContentDividerDoc extends React.Component {
|
|
167
170
|
|
168
171
|
<h3 className="docs-page__h3">Props</h3>
|
169
172
|
<PropsList>
|
170
|
-
<Prop name='type'
|
171
|
-
<Prop name='orientation'
|
172
|
-
<Prop name='align'
|
173
|
-
<Prop name='border'
|
173
|
+
<Prop name='type' isRequired={false} type='dashed | dotted | solid' default='solid' description='Border style of the divider.'/>
|
174
|
+
<Prop name='orientation' isRequired={false} type='horizontal | vertical' default='horizontal' description='Defines if the divider is horizontal or vertical. Default is horizontal.'/>
|
175
|
+
<Prop name='align' isRequired={false} type='center | left | right' default='right' description='Text alignment inside the divider. Should not be used without any text inside the divider. The vertical divider has no alignment options.'/>
|
176
|
+
<Prop name='border' isRequired={false} type='boolean' default='true' description='Removes the border if set to true. Should be generally avoided especially if there is textual content. It can be used to add space between elements if there is no other option.'/>
|
177
|
+
<Prop name='margin' isRequired={false} type='x-small | small | medium | large | none' default='medium' description='Vertical or horizontal margins (depending on the orientation) of the ContentDivider. Default to medium if not set.'/>
|
174
178
|
</PropsList>
|
175
179
|
</section>
|
176
180
|
)
|