superdesk-ui-framework 4.0.24 → 4.0.25
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/.github/CODEOWNERS +1 -0
- package/app/index.js +1 -0
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_boxed-list.scss +60 -24
- package/app/styles/_design-tokens.scss +3 -0
- package/app/styles/_labels.scss +82 -71
- package/app/styles/app.scss +1 -0
- package/app/styles/components/_calendar-week-day.scss +97 -0
- package/app/styles/design-tokens/_brand-colors.scss +32 -0
- package/app/styles/design-tokens/_new-colors.scss +18 -0
- package/app/styles/design-tokens/_primitives.scss +161 -0
- package/app/styles/design-tokens/_semantic-colors.scss +145 -0
- package/app/styles/form-elements/_checkbox.scss +15 -0
- package/app-typescript/components/Lists/BoxedList.tsx +2 -0
- package/app-typescript/components/Lists/CalendarWeekDayItem.tsx +36 -0
- package/app-typescript/components/RadioButtonGroup.tsx +1 -1
- package/app-typescript/components/avatar/avatar-image.tsx +8 -1
- package/app-typescript/index.ts +1 -0
- package/dist/components/BoxedList.tsx +27 -2
- package/dist/components/RadioGroup.tsx +26 -3
- package/dist/examples.bundle.js +1339 -1175
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +117 -0
- package/dist/superdesk-ui.bundle.css +516 -222
- package/dist/superdesk-ui.bundle.js +980 -897
- package/dist/vendor.bundle.js +14 -14
- package/examples/pages/components/BoxedList.tsx +27 -2
- package/examples/pages/components/RadioGroup.tsx +26 -3
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +117 -0
- package/package.json +1 -1
- package/react/components/Lists/BoxedList.d.ts +1 -0
- package/react/components/Lists/BoxedList.js +1 -0
- package/react/components/Lists/CalendarWeekDayItem.d.ts +15 -0
- package/react/components/Lists/CalendarWeekDayItem.js +67 -0
- package/react/components/RadioButtonGroup.js +1 -1
- package/react/components/avatar/avatar-image.js +1 -1
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -1
package/dist/vendor.bundle.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("react"), require("react-dom"), require("angular")) : factory(root["react"], root["react-dom"], root["angular"]);
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
9
|
}
|
10
|
-
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_9__,
|
10
|
+
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_806__) {
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
12
12
|
/******/ // The module cache
|
13
13
|
/******/ var installedModules = {};
|
@@ -70,7 +70,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
70
70
|
/******/ __webpack_require__.p = "";
|
71
71
|
/******/
|
72
72
|
/******/ // Load entry module and return exports
|
73
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
73
|
+
/******/ return __webpack_require__(__webpack_require__.s = 803);
|
74
74
|
/******/ })
|
75
75
|
/************************************************************************/
|
76
76
|
/******/ ({
|
@@ -28246,7 +28246,7 @@ return jQuery;
|
|
28246
28246
|
|
28247
28247
|
/***/ }),
|
28248
28248
|
|
28249
|
-
/***/
|
28249
|
+
/***/ 803:
|
28250
28250
|
/***/ (function(module, exports, __webpack_require__) {
|
28251
28251
|
|
28252
28252
|
"use strict";
|
@@ -28256,19 +28256,19 @@ __webpack_require__(18);
|
|
28256
28256
|
|
28257
28257
|
__webpack_require__(74);
|
28258
28258
|
|
28259
|
-
__webpack_require__(
|
28260
|
-
|
28261
|
-
__webpack_require__(805);
|
28259
|
+
__webpack_require__(804);
|
28262
28260
|
|
28263
28261
|
__webpack_require__(806);
|
28264
28262
|
|
28263
|
+
__webpack_require__(807);
|
28264
|
+
|
28265
28265
|
__webpack_require__(0);
|
28266
28266
|
|
28267
28267
|
__webpack_require__(9);
|
28268
28268
|
|
28269
28269
|
/***/ }),
|
28270
28270
|
|
28271
|
-
/***/
|
28271
|
+
/***/ 804:
|
28272
28272
|
/***/ (function(module, exports, __webpack_require__) {
|
28273
28273
|
|
28274
28274
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
@@ -28292,7 +28292,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
28292
28292
|
if ( true ) {
|
28293
28293
|
|
28294
28294
|
// AMD. Register as an anonymous module.
|
28295
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(74), __webpack_require__(
|
28295
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(74), __webpack_require__(805) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
28296
28296
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
28297
28297
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
28298
28298
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
@@ -29030,7 +29030,7 @@ return $.widget;
|
|
29030
29030
|
|
29031
29031
|
/***/ }),
|
29032
29032
|
|
29033
|
-
/***/
|
29033
|
+
/***/ 805:
|
29034
29034
|
/***/ (function(module, exports, __webpack_require__) {
|
29035
29035
|
|
29036
29036
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;( function( factory ) {
|
@@ -29060,23 +29060,23 @@ return $.ui.version = "1.13.0";
|
|
29060
29060
|
|
29061
29061
|
/***/ }),
|
29062
29062
|
|
29063
|
-
/***/
|
29063
|
+
/***/ 806:
|
29064
29064
|
/***/ (function(module, exports) {
|
29065
29065
|
|
29066
|
-
module.exports =
|
29066
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_806__;
|
29067
29067
|
|
29068
29068
|
/***/ }),
|
29069
29069
|
|
29070
|
-
/***/
|
29070
|
+
/***/ 807:
|
29071
29071
|
/***/ (function(module, exports, __webpack_require__) {
|
29072
29072
|
|
29073
|
-
__webpack_require__(
|
29073
|
+
__webpack_require__(808);
|
29074
29074
|
module.exports = 'ngAnimate';
|
29075
29075
|
|
29076
29076
|
|
29077
29077
|
/***/ }),
|
29078
29078
|
|
29079
|
-
/***/
|
29079
|
+
/***/ 808:
|
29080
29080
|
/***/ (function(module, exports) {
|
29081
29081
|
|
29082
29082
|
/**
|
@@ -30,6 +30,15 @@ export default class BoxedListDoc extends React.Component {
|
|
30
30
|
<BoxedListItem type='highlight'>Highlight type, cras mattis consectetur purus sit amet fermentum.</BoxedListItem>
|
31
31
|
</BoxedList>
|
32
32
|
|
33
|
+
<p className="docs-page__paragraph">// with colored background (affects only success, warning, alert and highlight types)</p>
|
34
|
+
|
35
|
+
<BoxedList>
|
36
|
+
<BoxedListItem coloredBg type='success'>Succes, donec sed odio dui.</BoxedListItem>
|
37
|
+
<BoxedListItem coloredBg type='warning'>Warning, maecenas sed diam eget risus varius.</BoxedListItem>
|
38
|
+
<BoxedListItem coloredBg type='alert'>Alert. Nullam quis risus eget urna mollis ornare vel eu leo.</BoxedListItem>
|
39
|
+
<BoxedListItem coloredBg type='highlight'>Highlight type, cras mattis consectetur purus sit amet fermentum.</BoxedListItem>
|
40
|
+
</BoxedList>
|
41
|
+
|
33
42
|
<p className="docs-page__paragraph">// clickable, with media and actions</p>
|
34
43
|
|
35
44
|
<BoxedList>
|
@@ -200,6 +209,15 @@ export default class BoxedListDoc extends React.Component {
|
|
200
209
|
<BoxedListItem type='highlight'>Highlight type, cras mattis consectetur purus sit amet fermentum.</BoxedListItem>
|
201
210
|
</BoxedList>
|
202
211
|
|
212
|
+
// with colored background (affects only success, warning, alert and highlight types)</p>
|
213
|
+
|
214
|
+
<BoxedList>
|
215
|
+
<BoxedListItem coloredBg type='success'>Succes, donec sed odio dui.</BoxedListItem>
|
216
|
+
<BoxedListItem coloredBg type='warning'>Warning, maecenas sed diam eget risus varius.</BoxedListItem>
|
217
|
+
<BoxedListItem coloredBg type='alert'>Alert. Nullam quis risus eget urna mollis ornare vel eu leo.</BoxedListItem>
|
218
|
+
<BoxedListItem coloredBg type='highlight'>Highlight type, cras mattis consectetur purus sit amet fermentum.</BoxedListItem>
|
219
|
+
</BoxedList>
|
220
|
+
|
203
221
|
// clickable, with media and actions
|
204
222
|
|
205
223
|
<BoxedList>
|
@@ -350,12 +368,19 @@ export default class BoxedListDoc extends React.Component {
|
|
350
368
|
</PropsList>
|
351
369
|
<p className="docs-page__paragraph">BoxedListItem</p>
|
352
370
|
<PropsList>
|
371
|
+
<Prop name='density' isRequired={false} type='compact | comfortable | loose' default='comfortable' description='Changes the outside padding of the list item.'/>
|
372
|
+
<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.'/>
|
353
373
|
<Prop name='clickable' isRequired={false} type='boolean' default='false' description='Adds hover effect and changes the cursor to poiter.'/>
|
354
374
|
<Prop name='selected' isRequired={false} type='boolean' default='false' description='Changes the state to selected and adds apropriate styling for it.'/>
|
375
|
+
<Prop name='unread' isRequired={false} type='boolean' default='false' description='Changes the state to unread and adds apropriate styling for it.'/>
|
376
|
+
<Prop name='alignVertical' isRequired={false} type='start | center' default='/' description='Changes the verticla alignment of the content inside list items.'/>
|
355
377
|
<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.'/>
|
356
|
-
<Prop name='
|
378
|
+
<Prop name='coloredBg' isRequired={false} type='boolean' default='false' description='Adds a colored background to the list item (affects only success, warning, alert and highlight types).'/>
|
379
|
+
<Prop name='onClick' isRequired={false} type='function' default='/' description='Callback fired when pressed (combine with clickable prop).'/>
|
380
|
+
<Prop name='media' isRequired={false} type='React.ReactNode' default='/' description='Adds a media element (icon, avatar, etc.) to the list item.'/>
|
381
|
+
<Prop name='footer' isRequired={false} type='React.ReactNode' default='/' description='Adds a footer to the list item.'/>
|
382
|
+
<Prop name='actions' isRequired={false} type='React.ReactNode' default='/' description='Adds a actions to the list item.'/>
|
357
383
|
</PropsList>
|
358
|
-
|
359
384
|
</section>
|
360
385
|
)
|
361
386
|
}
|
@@ -13,6 +13,9 @@ interface IState {
|
|
13
13
|
value6?: string;
|
14
14
|
value7?: string;
|
15
15
|
value8?: string;
|
16
|
+
value9?: string;
|
17
|
+
value10?: string;
|
18
|
+
value11?: string;
|
16
19
|
}
|
17
20
|
|
18
21
|
export default class RadioGroupDoc extends React.Component<{}, IState> {
|
@@ -28,6 +31,9 @@ export default class RadioGroupDoc extends React.Component<{}, IState> {
|
|
28
31
|
value6: undefined,
|
29
32
|
value7: undefined,
|
30
33
|
value8: undefined,
|
34
|
+
value9: undefined,
|
35
|
+
value10: undefined,
|
36
|
+
value11: undefined,
|
31
37
|
};
|
32
38
|
}
|
33
39
|
render() {
|
@@ -158,6 +164,16 @@ export default class RadioGroupDoc extends React.Component<{}, IState> {
|
|
158
164
|
{value:'test12', label:'Yeah, me too!', icon:'kanban-view'},
|
159
165
|
]} value={this.state.value4} onChange={(value) => this.setState(() => ({ value4: value }))} />
|
160
166
|
</div>
|
167
|
+
|
168
|
+
<p className="docs-page__paragraph docs-page__paragraph--topMarginL">// With icon & vertical</p>
|
169
|
+
<div className='form__group'style={{width: 240}}>
|
170
|
+
<RadioButtonGroup group={{orientation: 'vertical'}} options={[
|
171
|
+
{value:'test10', label:'Radio button with icon', icon:'list-view'},
|
172
|
+
{value:'test11', label:'I have an icon!', icon:'grid-view'},
|
173
|
+
{value:'test12', label:'Yeah, me too!', icon:'kanban-view'},
|
174
|
+
]} value={this.state.value4} onChange={(value) => this.setState(() => ({ value4: value }))} />
|
175
|
+
</div>
|
176
|
+
|
161
177
|
<p className="docs-page__paragraph docs-page__paragraph--topMarginL">// With icon only (text label is hidden but still accessible to screenreaders)</p>
|
162
178
|
<div className='form__group'>
|
163
179
|
<RadioButtonGroup options={[
|
@@ -185,14 +201,21 @@ export default class RadioGroupDoc extends React.Component<{}, IState> {
|
|
185
201
|
{value:'test9', label:'Button style disabled', disabled:true},
|
186
202
|
]} value={this.state.value3} onChange={(value) => this.setState(() => ({ value3: value }))} />
|
187
203
|
|
188
|
-
//
|
204
|
+
// With icon
|
189
205
|
<RadioButtonGroup options={[
|
190
206
|
{value:'test10', label:'Radio button with icon', icon:'list-view'},
|
191
207
|
{value:'test11', label:'I have an icon!', icon:'grid-view'},
|
192
208
|
{value:'test12', label:'Yeah, me too!', icon:'kanban-view'},
|
193
209
|
]} value={this.state.value4} onChange={(value) => this.setState(() => ({ value4: value }))} />
|
194
210
|
|
195
|
-
//
|
211
|
+
// With icon & vertical
|
212
|
+
<RadioButtonGroup group={{orientation: 'vertical'}} options={[
|
213
|
+
{value:'test10', label:'Radio button with icon', icon:'list-view'},
|
214
|
+
{value:'test11', label:'I have an icon!', icon:'grid-view'},
|
215
|
+
{value:'test12', label:'Yeah, me too!', icon:'kanban-view'},
|
216
|
+
]} value={this.state.value4} onChange={(value) => this.setState(() => ({ value4: value }))} />
|
217
|
+
|
218
|
+
// With icon only (text label is hidden but still accessible to screenreaders)
|
196
219
|
<RadioButtonGroup options={[
|
197
220
|
{value:'test10', label:'Radio button with icon', icon:'list-view', labelHidden: true},
|
198
221
|
{value:'test11', label:'I have an icon!', icon:'grid-view', labelHidden: true},
|
@@ -220,7 +243,7 @@ export default class RadioGroupDoc extends React.Component<{}, IState> {
|
|
220
243
|
</div>
|
221
244
|
<p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Right</p>
|
222
245
|
<div className='form__row form__row--flex docs-page__test-helper-2'>
|
223
|
-
<RadioButtonGroup group={{align:'end'
|
246
|
+
<RadioButtonGroup group={{align:'end'}} value={this.state.value4} options={[
|
224
247
|
{value:'test304', label:'Option one'},
|
225
248
|
{value:'test305', label:'Option two'},
|
226
249
|
{value:'test306', label:'Option three'},
|
@@ -4,6 +4,7 @@ import { Checkbox, RadioGroup, CheckboxButton, RadioButtonGroup, Button, Dropdow
|
|
4
4
|
import { IAvatarInGroup } from '../../../../app-typescript/components/avatar/avatar-group';
|
5
5
|
import * as Form from '../../../../app-typescript/components/Form';
|
6
6
|
import { FormLabel } from '../../../../app-typescript/components/Form/FormLabel';
|
7
|
+
import { CalendarWeekDayItem } from '../../../../app-typescript/components//Lists/CalendarWeekDayItem';
|
7
8
|
|
8
9
|
interface IProps {
|
9
10
|
children?: React.ReactNode;
|
@@ -193,6 +194,122 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
193
194
|
<IconButton icon="adjust" ariaValue="Toggle theme" onClick={this.toggleTheme} toolTipFlow='left' />
|
194
195
|
</ButtonGroup>
|
195
196
|
|
197
|
+
<div className='calendar-user-week-row mb-2 p-2'>
|
198
|
+
<div className='calendar-week-day__container'>
|
199
|
+
<CalendarWeekDayItem coloredBg={true}>
|
200
|
+
<Avatar
|
201
|
+
size="medium"
|
202
|
+
imageUrl={null}
|
203
|
+
initials="112"
|
204
|
+
displayName="Ido Borneman"
|
205
|
+
/>
|
206
|
+
<Text size='medium' className='mt-1 mb-0-5 line-height-sm'>Ido Borneman</Text>
|
207
|
+
<Text size='small' color='light'>@COR110</Text>
|
208
|
+
</CalendarWeekDayItem>
|
209
|
+
</div>
|
210
|
+
<div className='calendar-week-day__container'>
|
211
|
+
<CalendarWeekDayItem state='success' coloredBg={true} disabled={true}>
|
212
|
+
<Text size='small'>All day</Text>
|
213
|
+
<div className='d-flex flex-wrap gap-0-5 mt-1'>
|
214
|
+
<Label text='Antwerpen' type='success' style='translucent'/>
|
215
|
+
<Label text='Mechelan' type='success' style='translucent'/>
|
216
|
+
<Label text='Turnhout' type='success' style='translucent'/>
|
217
|
+
</div>
|
218
|
+
</CalendarWeekDayItem>
|
219
|
+
</div>
|
220
|
+
<div className='calendar-week-day__container d-flex flex-col gap-0-5'>
|
221
|
+
<CalendarWeekDayItem state='alert' coloredBg={true}>
|
222
|
+
<Text size='small'>Not available</Text>
|
223
|
+
</CalendarWeekDayItem>
|
224
|
+
</div>
|
225
|
+
<div className='calendar-week-day__container'>
|
226
|
+
<CalendarWeekDayItem state='warning' coloredBg={true} hidden={true}>
|
227
|
+
<Text size='small'>20:00-23:30</Text>
|
228
|
+
<div className='d-flex flex-wrap gap-0-5 mt-1'>
|
229
|
+
<Label text='Antwerpen' type='warning' style='translucent'/>
|
230
|
+
<Label text='Mechelan' type='warning' style='translucent'/>
|
231
|
+
<Label text='Turnhout' type='warning' style='translucent'/>
|
232
|
+
</div>
|
233
|
+
</CalendarWeekDayItem>
|
234
|
+
<CalendarWeekDayItem state='warning' coloredBg={true}>
|
235
|
+
<Text size='small'>20:00-23:30</Text>
|
236
|
+
<div className='d-flex flex-wrap gap-0-5 mt-1'>
|
237
|
+
<Label text='Antwerpen' type='warning' style='translucent'/>
|
238
|
+
<Label text='Mechelan' type='warning' style='translucent'/>
|
239
|
+
<Label text='Turnhout' type='warning' style='translucent'/>
|
240
|
+
</div>
|
241
|
+
</CalendarWeekDayItem>
|
242
|
+
</div>
|
243
|
+
<div className='calendar-week-day__container'>
|
244
|
+
<CalendarWeekDayItem state='success' coloredBg={true}>
|
245
|
+
<Text size='small'>All day</Text>
|
246
|
+
<div className='d-flex flex-wrap gap-0-5 mt-1'>
|
247
|
+
<Label text='Antwerpen' type='success' style='translucent'/>
|
248
|
+
<Label text='Mechelan' type='success' style='translucent'/>
|
249
|
+
<Label text='Turnhout' type='success' style='translucent'/>
|
250
|
+
</div>
|
251
|
+
</CalendarWeekDayItem>
|
252
|
+
</div>
|
253
|
+
<div className='calendar-week-day__container d-flex flex-col gap-0-5'>
|
254
|
+
<CalendarWeekDayItem state='success' coloredBg={true}>
|
255
|
+
<Text size='small'>All day</Text>
|
256
|
+
<div className='d-flex flex-wrap gap-0-5 mt-1'>
|
257
|
+
<Label text='Antwerpen' type='success' style='translucent'/>
|
258
|
+
<Label text='Mechelan' type='success' style='translucent'/>
|
259
|
+
<Label text='Turnhout' type='success' style='translucent'/>
|
260
|
+
</div>
|
261
|
+
</CalendarWeekDayItem>
|
262
|
+
</div>
|
263
|
+
<div className='calendar-week-day__container'>
|
264
|
+
<CalendarWeekDayItem state='alert' coloredBg={true}>
|
265
|
+
<Text size='small'>Not available</Text>
|
266
|
+
</CalendarWeekDayItem>
|
267
|
+
</div>
|
268
|
+
<div className='calendar-week-day__container'>
|
269
|
+
<CalendarWeekDayItem state='alert' coloredBg={true}>
|
270
|
+
<Text size='small'>Not available</Text>
|
271
|
+
</CalendarWeekDayItem>
|
272
|
+
</div>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<BoxedList>
|
276
|
+
<BoxedListItem type='success' density="compact" coloredBg>
|
277
|
+
<div className='d-flex items-center gap-1'>
|
278
|
+
<Avatar
|
279
|
+
size="small"
|
280
|
+
imageUrl={null}
|
281
|
+
initials="JL"
|
282
|
+
displayName="Jeffrey Lebowski"
|
283
|
+
/>
|
284
|
+
<div>12</div>
|
285
|
+
</div>
|
286
|
+
</BoxedListItem>
|
287
|
+
<BoxedListItem type='warning' density="compact" coloredBg>
|
288
|
+
<div className='d-flex items-center gap-1'>
|
289
|
+
<Avatar
|
290
|
+
size="small"
|
291
|
+
imageUrl={null}
|
292
|
+
initials="JL"
|
293
|
+
displayName="Jeffrey Lebowski"
|
294
|
+
/>
|
295
|
+
<div>11</div>
|
296
|
+
</div>
|
297
|
+
</BoxedListItem>
|
298
|
+
<BoxedListItem type='alert' density="compact" coloredBg>
|
299
|
+
<div className='d-flex items-center gap-1'>
|
300
|
+
<Avatar
|
301
|
+
size="small"
|
302
|
+
imageUrl={null}
|
303
|
+
initials="JL"
|
304
|
+
displayName="Jeffrey Lebowski"
|
305
|
+
/>
|
306
|
+
<div>11</div>
|
307
|
+
</div>
|
308
|
+
</BoxedListItem>
|
309
|
+
</BoxedList>
|
310
|
+
|
311
|
+
|
312
|
+
|
196
313
|
<div style={{maxWidth: '600px'}} className={`sd-shadow--z1 new-collapse-box ${this.state.openCollapsibleFour ? 'new-collapse-box--open' : ''}`}>
|
197
314
|
{/* Header */}
|
198
315
|
<div className='new-collapse-box__header'>
|
package/package.json
CHANGED
@@ -131,6 +131,7 @@ var BoxedListItem = /** @class */ (function (_super) {
|
|
131
131
|
_a['boxed-list__item--clickable'] = this.props.clickable === true,
|
132
132
|
_a['boxed-list__item--selected'] = this.props.selected,
|
133
133
|
_a['boxed-list__item--unread'] = this.props.unread,
|
134
|
+
_a['boxed-list__item--colored-bg'] = this.props.coloredBg,
|
134
135
|
_a["boxed-list__item--".concat(this.props.type)] = this.props.type || this.props.type !== undefined,
|
135
136
|
_a["boxed-list__item--align-".concat(this.props.alignVertical)] = this.props.alignVertical,
|
136
137
|
_a));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IPropsItem {
|
3
|
+
children?: React.ReactNode;
|
4
|
+
state?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight';
|
5
|
+
clickable?: boolean;
|
6
|
+
coloredBg?: boolean;
|
7
|
+
selected?: boolean;
|
8
|
+
disabled?: boolean;
|
9
|
+
hidden?: boolean;
|
10
|
+
onClick?(): void;
|
11
|
+
}
|
12
|
+
declare class CalendarWeekDayItem extends React.PureComponent<IPropsItem> {
|
13
|
+
render(): JSX.Element;
|
14
|
+
}
|
15
|
+
export { CalendarWeekDayItem };
|
@@ -0,0 +1,67 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18
|
+
if (k2 === undefined) k2 = k;
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
22
|
+
}
|
23
|
+
Object.defineProperty(o, k2, desc);
|
24
|
+
}) : (function(o, m, k, k2) {
|
25
|
+
if (k2 === undefined) k2 = k;
|
26
|
+
o[k2] = m[k];
|
27
|
+
}));
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
30
|
+
}) : function(o, v) {
|
31
|
+
o["default"] = v;
|
32
|
+
});
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
34
|
+
if (mod && mod.__esModule) return mod;
|
35
|
+
var result = {};
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
37
|
+
__setModuleDefault(result, mod);
|
38
|
+
return result;
|
39
|
+
};
|
40
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
|
+
};
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
44
|
+
exports.CalendarWeekDayItem = void 0;
|
45
|
+
var React = __importStar(require("react"));
|
46
|
+
var classnames_1 = __importDefault(require("classnames"));
|
47
|
+
var CalendarWeekDayItem = /** @class */ (function (_super) {
|
48
|
+
__extends(CalendarWeekDayItem, _super);
|
49
|
+
function CalendarWeekDayItem() {
|
50
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
51
|
+
}
|
52
|
+
CalendarWeekDayItem.prototype.render = function () {
|
53
|
+
var _a;
|
54
|
+
var classes = (0, classnames_1.default)('calendar-week-day__item', (_a = {
|
55
|
+
'calendar-week-day__item--clickable': this.props.clickable === true,
|
56
|
+
'calendar-week-day__item--selected': this.props.selected,
|
57
|
+
'calendar-week-day__item--colored-bg': this.props.coloredBg,
|
58
|
+
'calendar-week-day__item--disabled': this.props.disabled,
|
59
|
+
'calendar-week-day__item--hidden': this.props.hidden
|
60
|
+
},
|
61
|
+
_a["calendar-week-day__item--".concat(this.props.state)] = this.props.state || this.props.state !== undefined,
|
62
|
+
_a));
|
63
|
+
return (React.createElement("div", { className: classes }, this.props.children));
|
64
|
+
};
|
65
|
+
return CalendarWeekDayItem;
|
66
|
+
}(React.PureComponent));
|
67
|
+
exports.CalendarWeekDayItem = CalendarWeekDayItem;
|
@@ -66,7 +66,7 @@ var RadioButtonGroup = /** @class */ (function (_super) {
|
|
66
66
|
var classes = (0, classnames_1.default)('sd-check-button__group', (_a = {},
|
67
67
|
_a["sd-check-button__group--".concat((_b = this.props.group) === null || _b === void 0 ? void 0 : _b.align)] = (_c = this.props.group) === null || _c === void 0 ? void 0 : _c.align,
|
68
68
|
_a["sd-check-button__group--start"] = !((_d = this.props.group) === null || _d === void 0 ? void 0 : _d.grid) && ((_e = this.props.group) === null || _e === void 0 ? void 0 : _e.align) === undefined,
|
69
|
-
_a["
|
69
|
+
_a["sd-check-button__group--vertical"] = ((_f = this.props.group) === null || _f === void 0 ? void 0 : _f.orientation) === 'vertical',
|
70
70
|
_a["sd-check-button__group--grid"] = (_g = this.props.group) === null || _g === void 0 ? void 0 : _g.grid,
|
71
71
|
_a["sd-check-button__group--padded"] = ((_h = this.props.group) === null || _h === void 0 ? void 0 : _h.padded) === true,
|
72
72
|
_a));
|
@@ -64,7 +64,7 @@ var AvatarContentImage = /** @class */ (function (_super) {
|
|
64
64
|
};
|
65
65
|
if (imageUrl == null) {
|
66
66
|
return (React.createElement("span", __assign({}, maybeButtonProps, { className: "sd-avatar-content sd-avatar-content--dummy-img", title: tooltipText }),
|
67
|
-
React.createElement("svg", { width: "200", height: "200", viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
67
|
+
React.createElement("svg", { width: "200", height: "200", viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { display: 'block', width: '100%', height: '100%' } },
|
68
68
|
React.createElement("circle", { cx: "100", cy: "100", r: "100", fill: "white", fillOpacity: "0" }),
|
69
69
|
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M40 153V145.384C40 141.557 41.16 137.981 43.16 135C49.14 126.057 66.24 119.711 77.14 118C82.74 117.115 90.16 116.538 100 116.538C109.84 116.538 117.26 117.115 122.86 118C133.76 119.711 150.86 126.057 156.84 135C158.84 137.981 160 141.557 160 145.384V153C150 165 130 180 100 180C70 180 50 165 40 153ZM100 30C122.08 30 140 47.2307 140 68.4614C140 89.6922 122.08 106.923 100 106.923C77.92 106.923 60 89.6922 60 68.4614C60 47.2307 77.92 30 100 30Z", fill: "var(--sd-colour-avatar-dummy)", fillOpacity: "1" }))));
|
70
70
|
}
|
package/react/index.d.ts
CHANGED
@@ -98,5 +98,6 @@ export { Spacer, SpacerBlock } from '@superdesk/common';
|
|
98
98
|
export { ResizeObserverComponent } from './components/ResizeObserverComponent';
|
99
99
|
export { DragHandleDots } from './components/DragHandleDots';
|
100
100
|
export { DragHandle } from './components/DragHandle';
|
101
|
+
export { CalendarWeekDayItem } from './components/Lists/CalendarWeekDayItem';
|
101
102
|
export declare const ToggleBoxNext: any;
|
102
103
|
export declare const reactToAngular1: any;
|
package/react/index.js
CHANGED
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
19
19
|
exports.Icon = exports.Prop = exports.PropsList = exports.StrechBar = exports.SlidingToolbar = exports.SubNavDivider = exports.SubNav = exports.LeftMenu = exports.TabList = exports.Tab = exports.NavButton = exports.CheckButtonGroup = exports.CheckGroup = exports.CheckboxButton = exports.RadioButtonGroup = exports.Checkbox = exports.RadioGroup = exports.Loader = exports.ButtonGroup = exports.SwitchGroup = exports.Switch = exports.FormLabel = exports.TimePickerV2 = exports.TimePicker = exports.DatePickerISO = exports.DateTimePicker = exports.DatePicker = exports.getDurationString = exports.DurationInput = exports.Tooltip = exports.IconLabel = exports.IconButton = exports.Rotate = exports.AvatarPlaceholder = exports.Avatar = exports.AvatarGroup = exports.AvatarContentImage = exports.AvatarContentText = exports.AvatarWrapper = exports.Alert = exports.Badge = exports.Label = exports.Popover = exports.WithPagination = exports.SelectWithTemplate = exports.Option = exports.Select = exports.Input = exports.Button = exports.HelloWorld = void 0;
|
20
20
|
exports.Text = exports.LoadingOverlay = exports.Spinner = exports.ListItemLoader = exports.Skeleton = exports.IllustrationButton = exports.SvgIconIllustration = exports.WithSizeObserver = exports.SearchBar = exports.CreateButton = exports.DropZone = exports.ThemeSelector = exports.IconPicker = exports.SelectGrid = exports.ToggleBox = exports.Menu = exports.toasted = exports.GridItemCheckWrapper = exports.GridItemTopActions = exports.GridItemFooterActions = exports.GridItemFooterBlock = exports.GridItemSlug = exports.GridItemText = exports.GridItemTitle = exports.GridItemTime = exports.GridItemContentBlock = exports.GridItemFooter = exports.GridItemMedia = exports.GridItemContent = exports.GridItem = exports.GridList = exports.Modal = exports.Carousel = exports.DonutChart = exports.Autocomplete = exports.EmptyState = exports.Tabs = exports.TabContent = exports.TabPanel = exports.TabLabel = exports.TagInput = exports.Tag = exports.Dropdown = exports.DropdownDivider = exports.DropdownLabel = exports.DropdownItem = exports.DropdownFirst = exports.HeadingText = exports.ContentDivider = exports.Divider = void 0;
|
21
|
-
exports.DragHandle = exports.DragHandleDots = exports.ResizeObserverComponent = exports.SpacerBlock = exports.Spacer = exports.showPopup = exports.PopupPositioner = exports.WithPopover = exports.ResizablePanels = exports.MultiSelect = exports.ContentListItem = exports.TableListItem = exports.TableList = exports.TreeMenu = exports.TreeSelect = exports.BottomNav = exports.Heading = exports.Time = void 0;
|
21
|
+
exports.CalendarWeekDayItem = exports.DragHandle = exports.DragHandleDots = exports.ResizeObserverComponent = exports.SpacerBlock = exports.Spacer = exports.showPopup = exports.PopupPositioner = exports.WithPopover = exports.ResizablePanels = exports.MultiSelect = exports.ContentListItem = exports.TableListItem = exports.TableList = exports.TreeMenu = exports.TreeSelect = exports.BottomNav = exports.Heading = exports.Time = void 0;
|
22
22
|
var HelloWorld_1 = require("./components/HelloWorld");
|
23
23
|
Object.defineProperty(exports, "HelloWorld", { enumerable: true, get: function () { return HelloWorld_1.HelloWorld; } });
|
24
24
|
var Button_1 = require("./components/Button");
|
@@ -236,3 +236,5 @@ var DragHandleDots_1 = require("./components/DragHandleDots");
|
|
236
236
|
Object.defineProperty(exports, "DragHandleDots", { enumerable: true, get: function () { return DragHandleDots_1.DragHandleDots; } });
|
237
237
|
var DragHandle_1 = require("./components/DragHandle");
|
238
238
|
Object.defineProperty(exports, "DragHandle", { enumerable: true, get: function () { return DragHandle_1.DragHandle; } });
|
239
|
+
var CalendarWeekDayItem_1 = require("./components/Lists/CalendarWeekDayItem");
|
240
|
+
Object.defineProperty(exports, "CalendarWeekDayItem", { enumerable: true, get: function () { return CalendarWeekDayItem_1.CalendarWeekDayItem; } });
|