superdesk-ui-framework 3.0.1-beta.26 → 3.0.1-beta.27

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 (84) hide show
  1. package/.vscode/settings.json +5 -0
  2. package/app/styles/_sd-tag-input.scss +1 -36
  3. package/app/styles/_table-list.scss +0 -1
  4. package/app/styles/primereact/_pr-dialog.scss +0 -4
  5. package/app-typescript/components/Label.tsx +6 -10
  6. package/app-typescript/components/Layouts/AuthoringFrame.tsx +1 -2
  7. package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +2 -21
  8. package/app-typescript/components/Lists/TableList.tsx +2 -62
  9. package/app-typescript/components/Spacer.tsx +1 -1
  10. package/app-typescript/components/TreeSelect.tsx +33 -85
  11. package/app-typescript/dist/components/Alert.d.ts +16 -0
  12. package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
  13. package/app-typescript/dist/components/Avatar.d.ts +33 -0
  14. package/app-typescript/dist/components/Badge.d.ts +13 -0
  15. package/app-typescript/dist/components/Button.d.ts +23 -0
  16. package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
  17. package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
  18. package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
  19. package/app-typescript/dist/components/Checkbox.d.ts +19 -0
  20. package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
  21. package/app-typescript/dist/components/DatePicker.d.ts +37 -0
  22. package/app-typescript/dist/components/Divider.d.ts +9 -0
  23. package/app-typescript/dist/components/DonutChart.d.ts +12 -0
  24. package/app-typescript/dist/components/Dropdown.d.ts +28 -0
  25. package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
  26. package/app-typescript/dist/components/EmptyState.d.ts +11 -0
  27. package/app-typescript/dist/components/FormLabel.d.ts +9 -0
  28. package/app-typescript/dist/components/Genie.d.ts +13 -0
  29. package/app-typescript/dist/components/GridItem.d.ts +69 -0
  30. package/app-typescript/dist/components/GridList.d.ts +14 -0
  31. package/app-typescript/dist/components/HeadingText.d.ts +10 -0
  32. package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
  33. package/app-typescript/dist/components/Icon.d.ts +12 -0
  34. package/app-typescript/dist/components/IconButton.d.ts +12 -0
  35. package/app-typescript/dist/components/IconLabel.d.ts +11 -0
  36. package/app-typescript/dist/components/Input.d.ts +24 -0
  37. package/app-typescript/dist/components/Label.d.ts +15 -0
  38. package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
  39. package/app-typescript/dist/components/Loader.d.ts +8 -0
  40. package/app-typescript/dist/components/NavButton.d.ts +15 -0
  41. package/app-typescript/dist/components/Popover.d.ts +13 -0
  42. package/app-typescript/dist/components/PropsList.d.ts +15 -0
  43. package/app-typescript/dist/components/Radio.d.ts +19 -0
  44. package/app-typescript/dist/components/RadioButton.d.ts +20 -0
  45. package/app-typescript/dist/components/Select.d.ts +29 -0
  46. package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
  47. package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
  48. package/app-typescript/dist/components/StrechBar.d.ts +4 -0
  49. package/app-typescript/dist/components/SubNav.d.ts +10 -0
  50. package/app-typescript/dist/components/Switch.d.ts +12 -0
  51. package/app-typescript/dist/components/TabCustom.d.ts +25 -0
  52. package/app-typescript/dist/components/TabList.d.ts +22 -0
  53. package/app-typescript/dist/components/Tag.d.ts +9 -0
  54. package/app-typescript/dist/components/TagInput.d.ts +7 -0
  55. package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
  56. package/app-typescript/dist/components/TimePicker.d.ts +11 -0
  57. package/app-typescript/dist/components/Tooltip.d.ts +11 -0
  58. package/app-typescript/dist/components/_Positioner.d.ts +27 -0
  59. package/app-typescript/dist/index.d.ts +56 -0
  60. package/dist/examples.bundle.js +1183 -1548
  61. package/dist/playgrounds/react-playgrounds/Index.tsx +0 -1
  62. package/dist/react/TableList.tsx +0 -2
  63. package/dist/react/TreeSelect.tsx +78 -100
  64. package/dist/superdesk-ui.bundle.css +2 -34
  65. package/dist/superdesk-ui.bundle.js +1058 -1131
  66. package/dist/vendor.bundle.js +4 -4
  67. package/examples/index.js +0 -4
  68. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -1
  69. package/examples/pages/react/TableList.tsx +0 -2
  70. package/examples/pages/react/TreeSelect.tsx +78 -100
  71. package/package.json +1 -1
  72. package/react/components/Label.d.ts +1 -1
  73. package/react/components/Label.js +5 -10
  74. package/react/components/Layouts/AuthoringFrame.d.ts +0 -1
  75. package/react/components/Layouts/AuthoringFrame.js +1 -1
  76. package/react/components/Layouts/AuthoringFrameRightBar.d.ts +2 -9
  77. package/react/components/Layouts/AuthoringFrameRightBar.js +3 -14
  78. package/react/components/Lists/TableList.d.ts +0 -1
  79. package/react/components/Lists/TableList.js +6 -34
  80. package/react/components/TreeSelect.d.ts +1 -3
  81. package/react/components/TreeSelect.js +23 -50
  82. package/yarn-error.log +111 -0
  83. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -321
  84. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -321
@@ -55,7 +55,6 @@ var debounce_1 = __importDefault(require("lodash/debounce"));
55
55
  var Form_1 = require("./Form");
56
56
  var core_1 = require("@popperjs/core");
57
57
  var lodash_1 = require("lodash");
58
- var Label_1 = require("./Label");
59
58
  var TreeSelect = /** @class */ (function (_super) {
60
59
  __extends(TreeSelect, _super);
61
60
  function TreeSelect(props) {
@@ -323,15 +322,10 @@ var TreeSelect = /** @class */ (function (_super) {
323
322
  event.stopPropagation();
324
323
  _this.handleTree(event, option);
325
324
  } },
326
- _this.props.getBorderColor
327
- && React.createElement("div", { className: "item-border", style: { backgroundColor: _this.props.getBorderColor(option.value) } }),
328
- React.createElement("span", { style: _this.props.getBackgroundColor
329
- ? { backgroundColor: _this.props.getBackgroundColor(option.value),
330
- color: (0, Label_1.getTextColor)(_this.props.getBackgroundColor(option.value)) }
331
- : undefined, className: 'suggestion-item--bgcolor'
332
- + (selectedItem ? ' suggestion-item--disabled' : '') }, _this.props.optionTemplate
325
+ _this.props.optionTemplate
333
326
  ? _this.props.optionTemplate(option.value)
334
- : _this.props.getLabel(option.value)),
327
+ : React.createElement("span", { className: selectedItem
328
+ ? 'suggestion-item--disabled' : undefined }, _this.props.getLabel(option.value)),
335
329
  option.children && React.createElement("span", { className: "suggestion-item__icon" },
336
330
  React.createElement(Icon_1.Icon, { name: "chevron-right-thin" })));
337
331
  });
@@ -396,29 +390,20 @@ var TreeSelect = /** @class */ (function (_super) {
396
390
  || React.createElement("button", { ref: this.openDropdownRef, className: "tags-input__add-button", onClick: function () { return _this.setState({ openDropdown: !_this.state.openDropdown }); } },
397
391
  React.createElement("i", { className: "icon-plus-large" })),
398
392
  React.createElement("ul", { className: "tags-input__tag-list" }, this.state.value.map(function (item, i) {
399
- var Wrapper = function (_a) {
400
- var backgroundColor = _a.backgroundColor, children = _a.children;
401
- return (React.createElement("li", { className: "tags-input__tag-item tags-input__tag-item--multi-select"
402
- + (_this.props.readOnly ? ' tags-input__tag-item--readonly' : ''), onClick: function () { return !_this.props.readOnly && _this.removeClick(i); }, style: _this.props.valueTemplate
403
- ? { backgroundColor: backgroundColor }
404
- : _this.props.getBackgroundColor
405
- && { backgroundColor: _this.props.getBackgroundColor(item) } },
406
- React.createElement("span", { style: { color: backgroundColor
407
- ? (0, Label_1.getTextColor)(backgroundColor)
408
- : _this.props.getBackgroundColor
409
- && (0, Label_1.getTextColor)(_this.props.getBackgroundColor(item)) }, className: "tags-input__helper-box" },
410
- children,
411
- !_this.props.readOnly && React.createElement("span", { className: "tags-input__remove-button" },
412
- React.createElement(Icon_1.Icon, { name: "close-small" })))));
413
- };
414
- return (React.createElement(React.Fragment, { key: i }, _this.props.valueTemplate
415
- ? _this.props.valueTemplate(item, Wrapper)
416
- : React.createElement(Wrapper, null,
417
- React.createElement("span", null, _this.props.getLabel(item)))));
393
+ return React.createElement(React.Fragment, { key: i },
394
+ React.createElement("li", { className: "tags-input__tag-item tags-input__tag-item--multi-select"
395
+ + (_this.props.readOnly ? ' tags-input__tag-item--readonly' : ''), onClick: function () { return _this.props.readOnly || _this.removeClick(i); } },
396
+ React.createElement("span", { className: "tags-input__helper-box" },
397
+ _this.props.valueTemplate
398
+ ? _this.props.valueTemplate(item)
399
+ : React.createElement("span", null, _this.props.getLabel(item)),
400
+ _this.props.readOnly
401
+ || React.createElement("span", { className: "tags-input__remove-button" },
402
+ React.createElement(Icon_1.Icon, { name: "close-small" })))));
418
403
  })),
419
404
  this.state.value.length > 0
420
405
  ? this.props.readOnly
421
- || React.createElement("button", { className: "tags-input__remove-value", style: { position: 'relative', bottom: '2px' }, onClick: function () { return _this.setState({ value: [] }); } },
406
+ || React.createElement("button", { className: "tags-input__remove-value", onClick: function () { return _this.setState({ value: [] }); } },
422
407
  React.createElement(Icon_1.Icon, { name: 'remove-sign' })) : null)
423
408
  : React.createElement("div", { className: "tags-input__tags" },
424
409
  this.props.readOnly
@@ -427,24 +412,16 @@ var TreeSelect = /** @class */ (function (_super) {
427
412
  + (this.props.readOnly ? ' tags-input__tag-item--readonly' : '') },
428
413
  React.createElement("span", { className: "tags-input__placeholder" }, this.props.placeholder)),
429
414
  this.state.value.map(function (item, i) {
430
- var Wrapper = function (_a) {
431
- var backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, children = _a.children;
432
- return (React.createElement("span", { className: 'tags-input__single-item'
415
+ return React.createElement(React.Fragment, { key: i },
416
+ React.createElement("span", { className: 'tags-input__single-item'
433
417
  + (_this.props.readOnly ? ' tags-input__tag-item--readonly' : ''), onClick: function () { return _this.props.readOnly || _this.removeClick(i); } },
434
- _this.props.getBorderColor
435
- && React.createElement("div", { className: "item-border item-border-selected", style: borderColor
436
- ? { backgroundColor: borderColor }
437
- : { backgroundColor: _this.props.getBorderColor(item) } }),
438
- React.createElement("span", { style: { color: backgroundColor && (0, Label_1.getTextColor)(backgroundColor) }, className: "tags-input__helper-box" },
439
- React.createElement("span", { className: backgroundColor && "tags-input__tag-item", style: { backgroundColor: backgroundColor, margin: 0 } }, children),
418
+ React.createElement("span", { className: "tags-input__helper-box" },
419
+ _this.props.valueTemplate
420
+ ? _this.props.valueTemplate(item)
421
+ : React.createElement("span", null, _this.props.getLabel(item)),
440
422
  _this.props.readOnly
441
423
  || React.createElement("span", { className: "tags-input__remove-button" },
442
424
  React.createElement(Icon_1.Icon, { name: 'remove-sign' })))));
443
- };
444
- return React.createElement(React.Fragment, { key: i }, _this.props.valueTemplate
445
- ? _this.props.valueTemplate(item, Wrapper)
446
- : React.createElement(Wrapper, null,
447
- React.createElement("span", null, _this.props.getLabel(item))));
448
425
  })),
449
426
  this.state.openDropdown
450
427
  && React.createElement("div", { className: "autocomplete autocomplete--multi-select" + (this.props.width === 'medium' ? ' autocomplete--fixed-width' : ''), ref: this.dropdownRef },
@@ -502,14 +479,10 @@ var TreeSelect = /** @class */ (function (_super) {
502
479
  event.stopPropagation();
503
480
  _this.handleTree(event, option);
504
481
  } },
505
- (_this.props.getBorderColor && !_this.props.allowMultiple) && React.createElement("div", { className: "item-border", style: { backgroundColor: _this.props.getBorderColor(option.value) } }),
506
- React.createElement("span", { style: (_this.props.getBackgroundColor && option.value)
507
- ? { backgroundColor: _this.props.getBackgroundColor(option.value),
508
- color: (0, Label_1.getTextColor)(_this.props.getBackgroundColor(option.value)) }
509
- : undefined, className: 'suggestion-item--bgcolor'
510
- + (selectedItem ? ' suggestion-item--disabled' : '') }, _this.props.optionTemplate
482
+ _this.props.optionTemplate
511
483
  ? _this.props.optionTemplate(option.value)
512
- : _this.props.getLabel(option.value)),
484
+ : React.createElement("span", { className: selectedItem
485
+ ? 'suggestion-item--disabled' : undefined }, _this.props.getLabel(option.value)),
513
486
  option.children && React.createElement("span", { className: "suggestion-item__icon" },
514
487
  React.createElement(Icon_1.Icon, { name: "chevron-right-thin" }))));
515
488
  })) : null
package/yarn-error.log ADDED
@@ -0,0 +1,111 @@
1
+ Arguments:
2
+ /usr/local/bin/node /usr/local/bin/yarn install
3
+
4
+ PATH:
5
+ /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
6
+
7
+ Yarn version:
8
+ 1.21.1
9
+
10
+ Node version:
11
+ 12.14.1
12
+
13
+ Platform:
14
+ linux x64
15
+
16
+ Trace:
17
+ Error: getaddrinfo EAI_AGAIN registry.yarnpkg.com
18
+ at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
19
+
20
+ npm manifest:
21
+ {
22
+ "name": "superdesk-ui-framework",
23
+ "version": "2.1.11",
24
+ "license": "AGPL-3.0",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/superdesk/superdesk-ui-framework.git"
28
+ },
29
+ "main": "dist/superdesk-ui.bundle.js",
30
+ "types": "app-typescript/dist/index.d.ts",
31
+ "contributors": [
32
+ "Nemanja Pavlovic",
33
+ "Vladimir Stefanovic",
34
+ "Darko Tomic",
35
+ "Aleksandar Jelicic",
36
+ "Tomas Kikutis"
37
+ ],
38
+ "scripts": {
39
+ "start": "webpack-dev-server --config tasks/webpack.dev.js",
40
+ "server": "webpack --watch",
41
+ "build": "webpack && npm run lint && tsc",
42
+ "lint": "eslint app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}'",
43
+ "prepublishOnly": "npm run build",
44
+ "prepublish": "patch-package"
45
+ },
46
+ "devDependencies": {
47
+ "@types/classnames": "^2.2.9",
48
+ "@types/lodash": "4.14.149",
49
+ "@types/react": "16.8.23",
50
+ "@types/react-dom": "16.8.0",
51
+ "@types/react-router-dom": "^5.1.2",
52
+ "angular": "^1.7.9",
53
+ "angular-animate": "^1.7.9",
54
+ "angular-route": "^1.7.9",
55
+ "babel-core": "^6.26.0",
56
+ "babel-loader": "^7.1.2",
57
+ "babel-plugin-transform-object-rest-spread": "^6.26.0",
58
+ "babel-preset-es2015": "^6.24.1",
59
+ "babel-preset-react": "^6.24.1",
60
+ "classnames": "^2.2.5",
61
+ "clean-webpack-plugin": "^1.0.0",
62
+ "code-prettify": "^0.1.0",
63
+ "copy-webpack-plugin": "^4.6.0",
64
+ "css-loader": "^2.1.1",
65
+ "eslint": "^4.6.1",
66
+ "eslint-loader": "^1.9.0",
67
+ "eslint-plugin-angular": "^3.1.1",
68
+ "eslint-plugin-react": "^7.3.0",
69
+ "extract-text-webpack-plugin": "^3.0.2",
70
+ "file-loader": "^0.11.2",
71
+ "html-loader": "^0.5.1",
72
+ "html-webpack-plugin": "^2.30.1",
73
+ "jquery": "^3.1.1",
74
+ "jquery-ui": "^1.12.1",
75
+ "lodash": "4.17.15",
76
+ "node-sass": "^4.5.3",
77
+ "patch-package": "6.2.0",
78
+ "prismjs": "^1.17.1",
79
+ "prop-types": "^15.6.0",
80
+ "react": "16.8.6",
81
+ "react-bootstrap": "^0.31.2",
82
+ "react-dom": "16.8.6",
83
+ "react-redux": "^5.0.6",
84
+ "react-router-dom": "^5.1.2",
85
+ "redux": "^3.7.2",
86
+ "redux-form": "^7.0.4",
87
+ "sass-loader": "^6.0.6",
88
+ "style-loader": "^0.18.2",
89
+ "superdesk-code-style": "^1.1.2",
90
+ "ts-loader": "^6.0.2",
91
+ "tslint": "^5.18.0",
92
+ "typescript": "^3.5.1",
93
+ "url-loader": "^1.1.2",
94
+ "webpack": "^3.5.5",
95
+ "webpack-cli": "3.3.10",
96
+ "webpack-dev-server": "2.11.1",
97
+ "webpack-merge": "^4.2.1"
98
+ },
99
+ "dependencies": {
100
+ "date-fns": "2.7.0",
101
+ "popper.js": "1.14.4",
102
+ "primeicons": "2.0.0",
103
+ "primereact": "3.3.2"
104
+ }
105
+ }
106
+
107
+ yarn manifest:
108
+ No manifest
109
+
110
+ Lockfile:
111
+ No lockfile
@@ -1,321 +0,0 @@
1
- import * as React from 'react';
2
- import * as Components from './components/Index';
3
- import { ButtonGroup, Button, NavButton, SubNav, Dropdown, Input, IconButton, Divider, Tooltip, Select, Option, Switch, Icon, AvatarWrapper, AvatarContentImage, AvatarContentText, Text, EmptyState, Alert, SlidingToolbar, TabLabel, Tabs, Heading, Modal } from '../../../../app-typescript/index';
4
- import * as Layout from '../../../../app-typescript/components/Layouts';
5
- import * as Form from '../../../../app-typescript/components/Form';
6
- import * as Nav from '../../../../app-typescript/components/Navigation';
7
- import { BoxedList, BoxedListItem, BoxedListContentRow } from '../../../../app-typescript/components/Lists';
8
- import { Spacer } from '../../../../app-typescript/components/Spacer';
9
-
10
- interface IProps {
11
- children?: React.ReactNode;
12
- }
13
-
14
- interface IState {
15
- theme: 'dark' | 'light' | string;
16
- itemType: string;
17
- dropDownState: string;
18
- itemSelected1: boolean;
19
- itemSelected2: boolean;
20
- itemSelected3: boolean;
21
- value1: boolean;
22
- value2: boolean;
23
- value3: boolean;
24
- leftPanelOpen: boolean;
25
- rightPanelOpen: boolean;
26
- rightPanelPinned: boolean;
27
- sideOverlayOpen: boolean;
28
- sideBarOpen: boolean;
29
- arr: any;
30
- }
31
-
32
- export class Multiedit extends React.Component<IProps, IState> {
33
- constructor(props: IProps) {
34
- super(props);
35
- this.state = {
36
- theme: 'light',
37
- itemType: 'itemtype01',
38
- dropDownState: '',
39
- itemSelected1: false,
40
- itemSelected2: false,
41
- itemSelected3: false,
42
- value1: false,
43
- value2: false,
44
- value3: false,
45
- leftPanelOpen: false,
46
- rightPanelOpen: false,
47
- rightPanelPinned: false,
48
- sideOverlayOpen: false,
49
- sideBarOpen: false,
50
- arr: [<Editor />, <Editor />]
51
-
52
- }
53
- this.handleTheme = this.handleTheme.bind(this);
54
- }
55
-
56
- handleTheme(newTheme: string) {
57
- this.setState({
58
- theme: newTheme
59
- })
60
- }
61
-
62
- changeStatus(item: any, status: string) {
63
- if (item.status.includes(status)) {
64
- item.status.splice(item.status.indexOf(status), 1);
65
- } else {
66
- item.status.push(status);
67
- }
68
- }
69
-
70
- render() {
71
- return (
72
- <Modal
73
- className='p-dialog-flex'
74
- onHide={() => false}
75
- maximized={true} contentPadding={"none"}
76
- headerTemplate="Multiedit"
77
- visible={true} >
78
- <Spacer children={this.state.arr} gap={'0'}></Spacer>
79
- <div style={{
80
- padding: '0 20px',
81
- display: 'flex',
82
- alignItems: 'center'
83
- }}>
84
- <Dropdown
85
- append
86
- items={[
87
- { label: 'Action 1', onSelect: () => this.setState({arr: [...this.state.arr, <Editor />]}) },
88
- ]}>
89
- <Button type="primary" icon="plus-large" text="Add article" style="filled" size="large" shape="round" iconOnly={true} onClick={()=> false} />
90
- </Dropdown>
91
- </div>
92
- </Modal>
93
- );
94
- }
95
- }
96
-
97
- interface IEditor {
98
- sideBarOpen?: boolean;
99
- }
100
-
101
- export class Editor extends React.Component<IEditor, IEditor> {
102
- constructor(props: IEditor) {
103
- super(props);
104
- this.state = {
105
- sideBarOpen: false,
106
-
107
- }
108
- }
109
-
110
- render() {
111
- return <div style={{borderRight: '4px solid grey'}}>
112
- <Layout.AuthoringFrame
113
- header={(
114
- <SubNav zIndex={2}>
115
- <ButtonGroup align='end'>
116
- <ButtonGroup subgroup={true} spaces="no-space">
117
- <Tooltip text='More actions' flow='left'>
118
- <NavButton type='default' icon='dots-vertical' text='More actions' onClick={()=> false} />
119
- </Tooltip>
120
- <Tooltip text='Send to / Publish' flow='left'>
121
- <NavButton type='highlight' icon='send-to' iconSize='big' text='Send to / Publish' onClick={()=> false} />
122
- </Tooltip>
123
- <Tooltip text='Send to / Publish' flow='left'>
124
- <NavButton type='darker' icon={this.state.sideBarOpen ? 'forward-thin' : 'backward-thin'} text='More actions' onClick={()=> this.setState({sideBarOpen: !this.state.sideBarOpen})} />
125
- </Tooltip>
126
- </ButtonGroup>
127
- </ButtonGroup>
128
- </SubNav>
129
- )}
130
- main={(
131
- <Layout.AuthoringMain
132
- headerPadding='medium'
133
- toolBar={(
134
- <React.Fragment>
135
- <div className="sd-editor-toolbar__content">
136
- <dl>
137
- <dt>Created</dt>
138
- <dd><time title="July 29, 2021 3:58 PM">07/29</time></dd>
139
- <dt>by</dt>
140
- <dt>Nareg Asmarian</dt>
141
- </dl>
142
- <dl>
143
- <dt>Modified</dt>
144
- <dd><time title="July 29, 2021 3:58 PM">07/29</time></dd>
145
- </dl>
146
- </div>
147
- <ButtonGroup align='end'>
148
- <IconButton icon="preview-mode" toolTipAppend={true} ariaValue="Print preview" onClick={()=> false} />
149
- <IconButton icon="adjust" ariaValue="Toogle theme" onClick={()=> false} />
150
- <IconButton icon="switches" ariaValue="Theme settings" onClick={()=> false} />
151
- </ButtonGroup>
152
- </React.Fragment>
153
- )}
154
- authoringHeader ={(
155
- <React.Fragment>
156
- <Form.FormGroup inlineLabel={true}>
157
- <Form.FormItem>
158
- <Input
159
- type='text'
160
- label='Slugline'
161
- value='This is some value'
162
- maxLength={30}
163
- error='This is error message'
164
- info='This is some hint message'
165
- required={false}
166
- disabled={false}
167
- invalid={false}
168
- onChange={(value) => {}} />
169
- </Form.FormItem>
170
- <Form.FormItem>
171
- <Input
172
- type='text'
173
- label='Slugline'
174
- value='This is some value'
175
- maxLength={30}
176
- error='This is error message'
177
- info='This is some hint message'
178
- required={false}
179
- disabled={false}
180
- invalid={false}
181
- onChange={(value) => {}} />
182
- </Form.FormItem>
183
- </Form.FormGroup>
184
- <Form.FormGroup inlineLabel={true}>
185
- <Form.FormItem>
186
- <Input
187
- type='text'
188
- label='Genre'
189
- value='This is some value'
190
- maxLength={30}
191
- error='This is error message'
192
- info='This is some hint message'
193
- required={false}
194
- disabled={false}
195
- invalid={false}
196
- onChange={(value) => {}} />
197
- </Form.FormItem>
198
- </Form.FormGroup>
199
- <Form.FormGroup marginBottom='0' inlineLabel={true}>
200
- <Form.FormItem>
201
- <Input
202
- type='text'
203
- label='Subject'
204
- value='This is some value'
205
- maxLength={30}
206
- error='This is error message'
207
- info='This is some hint message'
208
- required={true}
209
- disabled={false}
210
- invalid={false}
211
- onChange={(value) => {}} />
212
- </Form.FormItem>
213
- <Form.FormItem autoWidth={true}>
214
- <Form.FormText>Just testing:</Form.FormText>
215
- </Form.FormItem>
216
- <Form.FormItem>
217
- <Select
218
- label='Categories'
219
- labelHidden={true}
220
- value='This is some value'
221
- error='This is error message'
222
- info='This is some hint message'
223
- required={true}
224
- disabled={false}
225
- invalid={false}
226
- onChange={(value) => {}}>
227
- <Option>Option 1</Option>
228
- <Option>Option 2</Option>
229
- </Select>
230
- </Form.FormItem>
231
- <Form.FormItem autoWidth={true}>
232
- <ButtonGroup>
233
- <IconButton ariaValue="Submit" icon="picture" onClick={()=> false} />
234
- <Button text="Cancel" onClick={()=> false} type="default" style="hollow" />
235
- <Button text="Submit" onClick={()=> false} type="primary" />
236
- </ButtonGroup>
237
- </Form.FormItem>
238
- </Form.FormGroup>
239
- </React.Fragment>
240
- )}>
241
- </Layout.AuthoringMain>
242
- )}
243
- sidePanel={(
244
- <Layout.Panel side='right' background='grey' open={false} size='x-small'>
245
- <Layout.PanelHeader title='Pinned content' onClose={() => false}>
246
- </Layout.PanelHeader>
247
- <Layout.PanelContent>
248
- <Layout.PanelContentBlock>
249
- <BoxedList density='comfortable'>
250
- <BoxedListItem
251
- type="success"
252
- clickable={true}
253
- media={(
254
- <Icon name='slideshow' />
255
- )}
256
- actions={(
257
- <IconButton icon="dots-vertical" ariaValue="More actions" onClick={()=> false} />
258
- )}
259
- >
260
- <BoxedListContentRow>
261
- Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper.
262
- </BoxedListContentRow>
263
- <BoxedListContentRow>
264
- Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
265
- </BoxedListContentRow>
266
- </BoxedListItem>
267
- <BoxedListItem
268
- type="warning"
269
- media={(
270
- <AvatarWrapper
271
- size="medium"
272
- >
273
- <AvatarContentText text="JL" tooltipText="Jeffrey Lebowski" />
274
- </AvatarWrapper>
275
- )}
276
- footer={(
277
- <ButtonGroup align="end">
278
- <Button text="cancel" size="small" style="hollow" onClick={()=> false} />
279
- <Button text="yes" size="small" style="hollow" type="primary" onClick={()=> false} />
280
- </ButtonGroup>
281
- )}
282
- actions={(
283
- <IconButton icon="dots-vertical" ariaValue="More actions" onClick={()=> false} />
284
- )}
285
- >
286
- <BoxedListContentRow>
287
- Maecenas sed diam eget risus varius blandit sit amet magna.
288
- </BoxedListContentRow>
289
- </BoxedListItem>
290
- <BoxedListItem
291
- selected={true}
292
- actions={(
293
- <IconButton icon="dots-vertical" ariaValue="More actions" onClick={()=> false} />
294
- )}
295
- >
296
- <BoxedListContentRow>
297
- Maecenas sed diam eget risus varius blandit sit amet magna. Vestibulum id ligula porta felis euismod semper.
298
- </BoxedListContentRow>
299
- </BoxedListItem>
300
- </BoxedList>
301
- </Layout.PanelContentBlock>
302
- </Layout.PanelContent>
303
- </Layout.Panel>
304
- )}
305
-
306
- sideBarClosed={this.state.sideBarOpen}
307
- sideBar={(
308
- <Nav.SideBarTabs
309
- items={[
310
- { icon: 'info', size: 'big', tooltip: 'Info', onClick: () => false },
311
- { icon: 'chat', size: 'big', tooltip: 'Comments', onClick: () => false },
312
- { icon: 'history', size: 'big', tooltip: 'History', onClick: () => false },
313
- { icon: 'package', size: 'big', tooltip: 'Packages', onClick: () => false },
314
- { icon: 'attachment', size: 'big', tooltip: 'Attachments', onClick: () => false },
315
- { icon: 'comments', size: 'big', tooltip: 'Inline Comments', onClick: () => false },
316
- { icon: 'suggestion', size: 'big', tooltip: 'Suggestions', onClick: () => false }]} />
317
- )}
318
- />
319
- </div>
320
- }
321
- }