superdesk-ui-framework 3.0.62 → 3.0.64
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/styles/_accessibility.scss +1 -1
- package/app/styles/_alerts.scss +6 -6
- package/app/styles/_avatar.scss +4 -4
- package/app/styles/_badge.scss +4 -4
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_boxed-list.scss +8 -8
- package/app/styles/_buttons.scss +17 -17
- package/app/styles/_carousel.scss +20 -20
- package/app/styles/_content-divider.scss +20 -20
- package/app/styles/_empty-states.scss +8 -8
- package/app/styles/_hamburger.scss +8 -8
- package/app/styles/_helpers.scss +509 -122
- package/app/styles/_loaders.scss +8 -8
- package/app/styles/_master-desk.scss +14 -14
- package/app/styles/_mixins.scss +4 -4
- package/app/styles/_modals.scss +18 -18
- package/app/styles/_normalize.scss +3 -3
- package/app/styles/_popover.scss +2 -2
- package/app/styles/_publisher-styles.scss +13 -13
- package/app/styles/_sd-tag-input.scss +18 -18
- package/app/styles/_simple-list.scss +6 -6
- package/app/styles/_table-list.scss +2 -2
- package/app/styles/_tables.scss +10 -10
- package/app/styles/_tabs-vertical.scss +3 -3
- package/app/styles/_tabs.scss +4 -4
- package/app/styles/_tag-labels.scss +4 -4
- package/app/styles/_thumb-carousel.scss +14 -14
- package/app/styles/_toggle-box.scss +8 -8
- package/app/styles/_toggle-button.scss +1 -1
- package/app/styles/_tooltips.scss +37 -37
- package/app/styles/components/_card-item.scss +25 -25
- package/app/styles/components/_list-item.scss +32 -32
- package/app/styles/components/_sd-circular-progress.scss +6 -6
- package/app/styles/components/_sd-collapse-box.scss +16 -16
- package/app/styles/components/_sd-comment-box.scss +4 -4
- package/app/styles/components/_sd-dropzone.scss +1 -1
- package/app/styles/components/_sd-editor-popup.scss +7 -7
- package/app/styles/components/_sd-grid-item.scss +22 -22
- package/app/styles/components/_sd-loader.scss +4 -4
- package/app/styles/components/_sd-media-carousel.scss +7 -7
- package/app/styles/components/_sd-notification-panel.scss +1 -1
- package/app/styles/components/_sd-photo-preview.scss +34 -34
- package/app/styles/components/_sd-searchbar.scss +8 -8
- package/app/styles/components/_sd-toaster.scss +20 -20
- package/app/styles/components/_subnav.scss +38 -38
- package/app/styles/components/sd-slider.scss +11 -11
- package/app/styles/design-tokens/_design-tokens-general.scss +12 -0
- package/app/styles/dropdowns/_basic-dropdown.scss +30 -30
- package/app/styles/dropdowns/_input-dropdown.scss +4 -4
- package/app/styles/dropdowns/_navigation_dropdown.scss +8 -8
- package/app/styles/dropdowns/_other_dropdown.scss +5 -5
- package/app/styles/editor/_editor-buttons.scss +2 -2
- package/app/styles/editor/_editor-themes.scss +6 -6
- package/app/styles/form-elements/_autocomplete.scss +4 -4
- package/app/styles/form-elements/_checkbox.scss +5 -5
- package/app/styles/form-elements/_forms-general.scss +44 -44
- package/app/styles/form-elements/_input-preview.scss +1 -1
- package/app/styles/form-elements/_input-wrap.scss +3 -3
- package/app/styles/form-elements/_inputs.scss +33 -33
- package/app/styles/form-elements/_radio.scss +3 -3
- package/app/styles/form-elements/_select-grid.scss +3 -3
- package/app/styles/form-elements/_switch.scss +3 -3
- package/app/styles/grids/_basic-grid.scss +2 -2
- package/app/styles/grids/_grid-layout.scss +42 -42
- package/app/styles/grids/_layout-grid.scss +11 -11
- package/app/styles/grids/_sd-kanban-list.scss +7 -7
- package/app/styles/interface-elements/_side-panel.scss +38 -38
- package/app/styles/layout/_basic-layout.scss +20 -20
- package/app/styles/layout/_editor.scss +7 -7
- package/app/styles/layout/_general.scss +16 -16
- package/app/styles/menus/_sd-bottom-tabs.scss +1 -1
- package/app/styles/menus/_sd-left-navigation.scss +8 -8
- package/app/styles/menus/_sd-sidebar-menu.scss +33 -33
- package/app/styles/menus/_sd-top-menu.scss +7 -7
- package/app/styles/primereact/_pr-autocomplete.scss +1 -1
- package/app/styles/primereact/_pr-datepicker.scss +11 -11
- package/app/styles/primereact/_pr-dialog.scss +7 -7
- package/app/styles/primereact/_pr-dropdown.scss +1 -1
- package/app/styles/primereact/_pr-general.scss +1 -1
- package/app/styles/primereact/_pr-menu.scss +3 -3
- package/app/styles/primereact/_pr-skeleton.scss +3 -3
- package/app/styles/primereact/_pr-tag-input.scss +2 -2
- package/app/styles/variables/_dimensions.scss +1 -1
- package/dist/examples.bundle.css +13 -13
- package/dist/examples.bundle.js +17 -14
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +22 -13
- package/dist/superdesk-ui.bundle.css +1326 -1227
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +22 -13
- package/package.json +1 -1
package/dist/examples.bundle.css
CHANGED
@@ -15426,35 +15426,35 @@ doc-react-playground {
|
|
15426
15426
|
.big-icon--desk:before {
|
15427
15427
|
content: ""; }
|
15428
15428
|
|
15429
|
-
.big-icon--chevron-
|
15429
|
+
.big-icon--chevron-inset-inline-start {
|
15430
15430
|
content: ""; }
|
15431
|
-
.big-icon--chevron-
|
15431
|
+
.big-icon--chevron-inset-inline-start.color--default {
|
15432
15432
|
color: #2c323a; }
|
15433
|
-
.big-icon--chevron-
|
15433
|
+
.big-icon--chevron-inset-inline-start.color--primary {
|
15434
15434
|
color: var(--sd-colour-primary) !important; }
|
15435
|
-
.big-icon--chevron-
|
15435
|
+
.big-icon--chevron-inset-inline-start.color--success {
|
15436
15436
|
color: var(--sd-colour-success) !important; }
|
15437
|
-
.big-icon--chevron-
|
15437
|
+
.big-icon--chevron-inset-inline-start.color--warning {
|
15438
15438
|
color: var(--sd-colour-warning) !important; }
|
15439
|
-
.big-icon--chevron-
|
15439
|
+
.big-icon--chevron-inset-inline-start.color--alert {
|
15440
15440
|
color: var(--sd-colour-alert) !important; }
|
15441
|
-
.big-icon--chevron-
|
15441
|
+
.big-icon--chevron-inset-inline-start.color--highlight {
|
15442
15442
|
color: var(--sd-colour-highlight) !important; }
|
15443
|
-
.big-icon--chevron-
|
15443
|
+
.big-icon--chevron-inset-inline-start.color--light {
|
15444
15444
|
color: var(--color-text-lighter) !important; }
|
15445
|
-
.big-icon--chevron-
|
15445
|
+
.big-icon--chevron-inset-inline-start.color--white {
|
15446
15446
|
color: #e2e5e9 !important; }
|
15447
|
-
.big-icon--chevron-
|
15447
|
+
.big-icon--chevron-inset-inline-start.scale--2x {
|
15448
15448
|
--big-icon-size: 52px
|
15449
15449
|
; }
|
15450
|
-
.big-icon--chevron-
|
15450
|
+
.big-icon--chevron-inset-inline-start.scale--3x {
|
15451
15451
|
--big-icon-size: 78px
|
15452
15452
|
; }
|
15453
|
-
.big-icon--chevron-
|
15453
|
+
.big-icon--chevron-inset-inline-start.scale--4x {
|
15454
15454
|
--big-icon-size: 104px
|
15455
15455
|
; }
|
15456
15456
|
|
15457
|
-
.big-icon--chevron-
|
15457
|
+
.big-icon--chevron-inset-inline-start:before {
|
15458
15458
|
content: ""; }
|
15459
15459
|
|
15460
15460
|
.big-icon--chevron-right {
|
package/dist/examples.bundle.js
CHANGED
@@ -135442,7 +135442,7 @@ exports.default = BigIconFontDoc;
|
|
135442
135442
|
/***/ (function(module, exports) {
|
135443
135443
|
|
135444
135444
|
// removed by extract-text-webpack-plugin
|
135445
|
-
module.exports = {"icon":"dashboard, view, tasks, calendar, marked-star, archive, spike, unspike, personal, global-search, analytics, web, cog, send-to, info, find-replace, comments, history, package, create-package, add-to-package, fetch, fetch-as, macro, related, minimize, settings, multiedit, export, create-list, add-to-list, text, desk, chevron-
|
135445
|
+
module.exports = {"icon":"dashboard, view, tasks, calendar, marked-star, archive, spike, unspike, personal, global-search, analytics, web, cog, send-to, info, find-replace, comments, history, package, create-package, add-to-package, fetch, fetch-as, macro, related, minimize, settings, multiedit, export, create-list, add-to-list, text, desk, chevron-inset-inline-start, chevron-right, dashboard-alt, master, attachment, upload-alt, document-default, document-pdf, document-doc, semantics, picture, manage-package, live, live-alt, meta-search, chat, annotation, suggestion, publisher, tag, rundown, checkmark-circle"};
|
135446
135446
|
|
135447
135447
|
/***/ }),
|
135448
135448
|
/* 644 */
|
@@ -139749,8 +139749,20 @@ var TestGround = /** @class */ (function (_super) {
|
|
139749
139749
|
React.createElement("button", { className: 'sd-pagination__item sd-pagination__item--end' },
|
139750
139750
|
React.createElement(index_1.Icon, { name: 'forward-thin' }))),
|
139751
139751
|
React.createElement("hr", null),
|
139752
|
+
React.createElement(index_1.Container, { gap: "large", direction: 'column', className: 'sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus my-5' },
|
139753
|
+
React.createElement(index_1.Heading, { type: 'h3' }, "Curabitur blandit tempus porttitor."),
|
139754
|
+
React.createElement(index_1.Text, { color: 'light' }, "Praesent commodo cursus magna, vel scelerisque nisl consectetur et..."),
|
139755
|
+
React.createElement(index_1.ButtonGroup, { align: "end" },
|
139756
|
+
React.createElement(index_1.Button, { text: "Cancel", onClick: function () { return false; }, type: "default", style: "hollow" }),
|
139757
|
+
React.createElement(index_1.Button, { text: "Submit", onClick: function () { return false; }, type: "primary" }))),
|
139752
139758
|
React.createElement("h3", { className: "docs-page__h3 sd-margin-y--0" }, "Form test"),
|
139753
139759
|
React.createElement("hr", null),
|
139760
|
+
React.createElement("img", { src: "/path/toimage", alt: "my image", onError: function (_a) {
|
139761
|
+
var currentTarget = _a.currentTarget;
|
139762
|
+
currentTarget.onerror = null; // prevents looping
|
139763
|
+
currentTarget.src = "/illustration--playground.svg";
|
139764
|
+
currentTarget.classList.add('broken-img');
|
139765
|
+
} }),
|
139754
139766
|
React.createElement("div", { className: "input-wrap" },
|
139755
139767
|
React.createElement(FormLabel_1.FormLabel, { invalid: true, required: true, state: 'focused', text: "Form Label", forId: "input1" }),
|
139756
139768
|
React.createElement(index_1.IconButton, { size: 'small', icon: "settings", ariaValue: "Screen-reader text", onClick: function () { return false; } }),
|
@@ -139775,10 +139787,7 @@ var TestGround = /** @class */ (function (_super) {
|
|
139775
139787
|
React.createElement(index_1.Input, { value: '', onChange: function (value) { }, type: 'text', label: 'Text input', placeholder: 'Enter text', disabled: true }),
|
139776
139788
|
React.createElement(index_1.DatePicker, { value: this.state.date, onChange: function (date) {
|
139777
139789
|
_this.setState({ date: date });
|
139778
|
-
}, disabled: true, dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: false,
|
139779
|
-
{ label: 'tomorrow', days: 1 },
|
139780
|
-
{ label: 'yesterday', days: -1 },
|
139781
|
-
] }),
|
139790
|
+
}, disabled: true, dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: false }),
|
139782
139791
|
React.createElement(index_1.TimePicker, { value: this.state.time, disabled: true, required: true, label: 'Time', onChange: function (time) {
|
139783
139792
|
_this.setState({ time: time });
|
139784
139793
|
} }),
|
@@ -139794,10 +139803,7 @@ var TestGround = /** @class */ (function (_super) {
|
|
139794
139803
|
_this.setState({ date: date });
|
139795
139804
|
},
|
139796
139805
|
// disabled={true}
|
139797
|
-
dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: true, labelHidden: true,
|
139798
|
-
{ label: 'tomorrow', days: 1 },
|
139799
|
-
{ label: 'yesterday', days: -1 },
|
139800
|
-
] }),
|
139806
|
+
dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: true, labelHidden: true }),
|
139801
139807
|
React.createElement(index_1.TimePicker, { value: this.state.time,
|
139802
139808
|
// disabled={true}
|
139803
139809
|
required: true, inlineLabel: true, labelHidden: true, label: 'Time', onChange: function (time) {
|
@@ -139813,10 +139819,7 @@ var TestGround = /** @class */ (function (_super) {
|
|
139813
139819
|
_this.setState({ date: date });
|
139814
139820
|
},
|
139815
139821
|
// disabled={true}
|
139816
|
-
dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: false,
|
139817
|
-
{ label: 'tomorrow', days: 1 },
|
139818
|
-
{ label: 'yesterday', days: -1 },
|
139819
|
-
] }),
|
139822
|
+
dateFormat: "DD-MM-YYYY", label: 'Date', info: 'Nullam Sollicitudin', error: 'Error message', inlineLabel: false }),
|
139820
139823
|
React.createElement(index_1.TimePicker, { value: this.state.time,
|
139821
139824
|
// disabled={true}
|
139822
139825
|
required: true, label: 'Time', onChange: function (time) {
|
@@ -144104,7 +144107,7 @@ exports.ResizablePanelsDoc = ResizablePanelsDoc;
|
|
144104
144107
|
/* 692 */
|
144105
144108
|
/***/ (function(module, exports) {
|
144106
144109
|
|
144107
|
-
module.exports = {"name":"superdesk-ui-framework","version":"3.0.
|
144110
|
+
module.exports = {"name":"superdesk-ui-framework","version":"3.0.64","license":"AGPL-3.0","repository":{"type":"git","url":"https://github.com/superdesk/superdesk-ui-framework.git"},"main":"dist/superdesk-ui.bundle.js","types":"react/index.d.ts","contributors":["Nemanja Pavlovic","Vladimir Stefanovic","Darko Tomic","Aleksandar Jelicic","Tomas Kikutis","Dragana Zivkovic"],"scripts":{"start":"webpack-dev-server --config tasks/webpack.dev.js","server":"webpack --watch --config tasks/webpack.prod.js && tsc-watch","build":"webpack --config tasks/webpack.prod.js && tsc","build-ui":"webpack && tsc && npm run lint","lint":"eslint --parser=@typescript-eslint/parser app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}'","lint-fix":"tsc -p tsconfig.json --noEmit && tslint --fix -c tslint.json 'app-typescript/**/*.{ts,tsx}'","prepublishOnly":"npm run build","unit-test":"mocha","debug-unit-tests":"mocha --inspect-brk"},"devDependencies":{"@types/assert":"^1.5.6","@types/chart.js":"^2.9.24","@types/classnames":"^2.2.9","@types/enzyme":"^3.10.12","@types/lodash":"^4.14.161","@types/mocha":"^9.1.1","@types/react":"16.8.23","@types/react-beautiful-dnd":"^13.1.2","@types/react-dom":"16.8.0","@types/react-router-dom":"^5.1.2","@types/react-scrollspy":"^3.3.5","@typescript-eslint/parser":"^5.58.0","angular":"^1.7.9","angular-animate":"^1.7.9","angular-route":"^1.7.9","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","classnames":"^2.2.5","clean-webpack-plugin":"^1.0.0","code-prettify":"^0.1.0","copy-webpack-plugin":"^4.6.0","css-loader":"^2.1.1","eslint":"^4.6.1","eslint-loader":"^1.9.0","eslint-plugin-angular":"^3.1.1","eslint-plugin-react":"^7.3.0","extract-text-webpack-plugin":"^3.0.2","file-loader":"^0.11.2","html-loader":"^0.5.1","html-webpack-plugin":"^2.30.1","jquery":"^3.1.1","jquery-ui":"^1.12.1","jsdom":"20.0.3","jsdom-global":"3.0.2","lodash":"4.17.21","mocha":"^8.4.0","node-sass":"6.0","prismjs":"^1.28.0","prop-types":"^15.6.0","react":"16.8.6","react-bootstrap":"^0.31.2","react-dom":"16.8.6","react-redux":"^5.0.6","react-router-dom":"^5.1.2","redux":"^3.7.2","redux-form":"^7.0.4","sass-loader":"^6.0.6","style-loader":"^0.18.2","superdesk-code-style":"^1.1.2","ts-loader":"^6.0.2","ts-node":"^10.9.1","tslint":"^5.18.0","typescript":"4.9.5","url-loader":"^1.1.2","webpack":"^3.5.5","webpack-cli":"3.3.10","webpack-dev-server":"2.11.1","webpack-merge":"^4.2.1"},"dependencies":{"@material-ui/lab":"^4.0.0-alpha.56","@popperjs/core":"^2.4.0","@superdesk/primereact":"^5.0.2-12","@superdesk/react-resizable-panels":"0.0.39","@types/enzyme-adapter-react-16":"^1.0.6","@types/node":"^14.10.2","chart.js":"^2.9.3","date-fns":"2.7.0","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.7","moment":"^2.29.3","popper-max-size-modifier":"^0.2.0","popper.js":"1.14.4","primeicons":"2.0.0","react-beautiful-dnd":"^13.0.0","react-id-generator":"^3.0.0","react-popper":"^2.2.3","react-scrollspy":"^3.4.3"}}
|
144108
144111
|
|
144109
144112
|
/***/ }),
|
144110
144113
|
/* 693 */
|
@@ -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, Text, FormRowNew} 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, ButtonGroup, Heading} from '../../../../app-typescript/index';
|
4
4
|
import { Carousel } from '../../../../app-typescript/index';
|
5
5
|
import { FormLabel } from '../../../../app-typescript/components/Form/FormLabel';
|
6
6
|
|
@@ -91,10 +91,31 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
91
91
|
</button>
|
92
92
|
|
93
93
|
</div>
|
94
|
+
|
94
95
|
<hr />
|
95
96
|
|
97
|
+
<Container gap="large" direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus my-5'>
|
98
|
+
<Heading type='h3'>Curabitur blandit tempus porttitor.</Heading>
|
99
|
+
<Text color='light'>
|
100
|
+
Praesent commodo cursus magna, vel scelerisque nisl consectetur et...
|
101
|
+
</Text>
|
102
|
+
<ButtonGroup align="end">
|
103
|
+
<Button text="Cancel" onClick={()=> false} type="default" style="hollow" />
|
104
|
+
<Button text="Submit" onClick={()=> false} type="primary" />
|
105
|
+
</ButtonGroup>
|
106
|
+
</Container>
|
107
|
+
|
96
108
|
<h3 className="docs-page__h3 sd-margin-y--0">Form test</h3>
|
109
|
+
|
97
110
|
<hr />
|
111
|
+
|
112
|
+
<img src="/path/toimage" alt="my image"
|
113
|
+
onError={({ currentTarget }) => {
|
114
|
+
currentTarget.onerror = null; // prevents looping
|
115
|
+
currentTarget.src="/illustration--playground.svg";
|
116
|
+
currentTarget.classList.add('broken-img')
|
117
|
+
}} />
|
118
|
+
|
98
119
|
<div className="input-wrap">
|
99
120
|
<FormLabel invalid required={true} state='focused' text="Form Label" forId="input1" />
|
100
121
|
<IconButton size='small' icon="settings" ariaValue="Screen-reader text" onClick={()=> false} />
|
@@ -159,10 +180,6 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
159
180
|
info='Nullam Sollicitudin'
|
160
181
|
error='Error message'
|
161
182
|
inlineLabel={false}
|
162
|
-
shortcuts={[
|
163
|
-
{label: 'tomorrow', days: 1},
|
164
|
-
{label: 'yesterday', days: -1},
|
165
|
-
]}
|
166
183
|
/>
|
167
184
|
<TimePicker
|
168
185
|
value={this.state.time}
|
@@ -211,10 +228,6 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
211
228
|
error='Error message'
|
212
229
|
inlineLabel={true}
|
213
230
|
labelHidden={true}
|
214
|
-
shortcuts={[
|
215
|
-
{label: 'tomorrow', days: 1},
|
216
|
-
{label: 'yesterday', days: -1},
|
217
|
-
]}
|
218
231
|
/>
|
219
232
|
<TimePicker
|
220
233
|
value={this.state.time}
|
@@ -260,10 +273,6 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
260
273
|
info='Nullam Sollicitudin'
|
261
274
|
error='Error message'
|
262
275
|
inlineLabel={false}
|
263
|
-
shortcuts={[
|
264
|
-
{label: 'tomorrow', days: 1},
|
265
|
-
{label: 'yesterday', days: -1},
|
266
|
-
]}
|
267
276
|
/>
|
268
277
|
<TimePicker
|
269
278
|
value={this.state.time}
|