diginet-core-ui 1.3.79-beta.3 → 1.3.79-beta.4

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.
@@ -329,7 +329,7 @@ ButtonIcon.propTypes = {
329
329
  * * large (button 48px, icon 32px)
330
330
  * * giant (button 56px, icon 40px)
331
331
  * */
332
- size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'giant']),
332
+ size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'giant', 'extraGiant']),
333
333
  /** Style inline of component. */
334
334
  style: PropTypes.object,
335
335
  /** If `true`, icon has view box. */
@@ -55,7 +55,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
55
55
  return currentRef;
56
56
  });
57
57
  const renderOptions = () => {
58
- return options.map(item => {
58
+ return options.map((item, idx) => {
59
59
  if ( /*#__PURE__*/isValidElement(item)) return item;else {
60
60
  const icon = item === null || item === void 0 ? void 0 : item.icon;
61
61
  const label = item === null || item === void 0 ? void 0 : item.label;
@@ -65,7 +65,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
65
65
  };
66
66
  if (icon && !iconState) setIconState(true);
67
67
  return isOptionFull ? jsx("button", {
68
- key: item,
68
+ key: idx,
69
69
  css: OptionFullCSS,
70
70
  className: 'DGN-UI-ButtonMore-Option',
71
71
  onClick: action
@@ -80,7 +80,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
80
80
  className: 'DGN-UI-ButtonMore-Label',
81
81
  ...labelProp
82
82
  }, label)) : jsx(ButtonIcon, {
83
- key: item,
83
+ key: idx,
84
84
  className: 'DGN-UI-ButtonMore-Option',
85
85
  circular: true,
86
86
  name: icon,
@@ -1,78 +1,78 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
- import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
3
+ import { css, jsx } from '@emotion/core';
4
4
  import PropTypes from 'prop-types';
5
- import { jsx, css } from '@emotion/core';
6
- import { noBorder } from "../../styles/general";
7
- import { color as colors } from "../../styles/colors";
5
+ import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
6
+ import { noBorder, parseWidthHeight } from "../../styles/general";
7
+ import { useColor as colors, useTheme } from "../../theme";
8
+ import { classNames } from "../../utils";
8
9
  const {
9
- system: {
10
- disabled: systemDisabled
10
+ colors: {
11
+ system: {
12
+ disabled: systemDisabled
13
+ }
11
14
  }
12
- } = colors;
15
+ } = useTheme();
13
16
  const Divider = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
14
- width,
15
- height,
16
- direction,
17
- color,
17
+ action = {},
18
18
  className,
19
+ color,
20
+ direction,
21
+ height,
22
+ id,
19
23
  style,
20
- ...props
21
- }, ref) => {
22
- if (!ref) {
23
- ref = useRef(null);
24
- }
25
- if (typeof width === 'number') width = `${width}px`;
26
- if (typeof height === 'number') height = `${height}px`;
27
- const DividerRoot = css`
28
- ${noBorder}
29
- flex-shrink: 0;
30
- margin: 0;
31
- background-color: ${colors.semantic[color] || color};
32
- &.vertical {
33
- width: ${width || '1px'};
34
- height: ${height || '100%'};
35
- /* margin: auto 5px; */
36
- }
37
- &.horizontal {
38
- width: ${width || '100%'};
39
- height: ${height || '1px'};
40
- /* margin: 5px auto; */
41
- }
42
- `;
43
- useEffect(() => {
44
- if (direction === 'vertical' && !height && ref.current && ref.current.parentNode) {
45
- ref.current.style.height = ref.current.parentNode.offsetHeight + 'px';
46
- }
47
- }, []);
24
+ width
25
+ }, reference) => {
26
+ const ref = useRef(null);
27
+ const _DividerRoot = DividerRoot(color, width, height);
28
+ useImperativeHandle(reference, () => {
29
+ const currentRef = ref.current || {};
30
+ currentRef.element = ref.current;
31
+ const _instance = {
32
+ ...action
33
+ }; // methods
34
+ _instance.__proto__ = {}; // hidden methods
35
+ currentRef.instance = _instance;
36
+ return currentRef;
37
+ });
48
38
  return useMemo(() => jsx("hr", {
49
- css: DividerRoot,
39
+ css: _DividerRoot,
50
40
  ref: ref,
41
+ id: id,
51
42
  style: style,
52
- className: ['DGN-UI-Divider', direction, className].join(' ').trim(),
53
- ...props
54
- }), [width, height, color, style, className]);
43
+ className: classNames('DGN-UI-Divider', direction, className)
44
+ }), [className, color, direction, height, id, style, width]);
55
45
  }));
46
+ const DividerRoot = (color, width, height) => css`
47
+ ${noBorder}
48
+ flex-shrink: 0;
49
+ margin: 0;
50
+ background-color: ${colors[color] || color};
51
+ &.vertical {
52
+ ${parseWidthHeight(width || '1px', height || 'auto')};
53
+ }
54
+ &.horizontal {
55
+ ${parseWidthHeight(width || '100%', height || '1px')};
56
+ }
57
+ `;
56
58
  Divider.defaultProps = {
59
+ className: '',
57
60
  color: systemDisabled,
58
61
  direction: 'horizontal',
59
- style: {},
60
- className: ''
62
+ style: {}
61
63
  };
62
64
  Divider.propTypes = {
63
- /** width of divider */
64
- width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
65
- /** color of divider */
66
- height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
67
- /** color of divider */
65
+ /** Class for component. */
66
+ className: PropTypes.string,
67
+ /** The color of the component. */
68
68
  color: PropTypes.string,
69
69
  /** direction of divider */
70
70
  direction: PropTypes.oneOf(['vertical', 'horizontal']),
71
- /** style inline of divider */
71
+ /** Height oof the component. */
72
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
73
+ /** Style inline of component. */
72
74
  style: PropTypes.object,
73
- /** className of divider */
74
- className: PropTypes.string,
75
- /** any props else */
76
- props: PropTypes.object
75
+ /** Width of the component. */
76
+ width: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
77
77
  };
78
78
  export default Divider;
@@ -7,7 +7,7 @@ import ReactDOM from 'react-dom';
7
7
  import { ButtonIcon, HelperText, LinearProgress, List, ListItem, ListItemText, ModalSample, Notify, Popover, Popup, ScrollBar, Slider, SliderItem, Typography } from "../../";
8
8
  import { getGlobal } from "../../../global";
9
9
  import { Another, Compressed, Image, Pdf, Presentation, Sheet, Word } from "../../../icons";
10
- import { alignCenter, border, borderBox, borderRadius4px, borderRadius50, breakWord, cursorPointer, displayBlock, displayInlineBlock, displayNone, ellipsis, flexCol, flexRow, flexWrap, justifyBetween, justifyCenter, justifyStart, parseHeight, parseMaxWidthHeight, parseMinHeight, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative, textCenter, userSelectNone } from "../../../styles/general";
10
+ import { alignCenter, border, borderBox, borderRadius4px, borderRadius50, breakWord, cursorPointer, displayBlock, displayInlineBlock, displayNone, ellipsis, flexCol, flexRow, flexWrap, justifyBetween, justifyCenter, justifyStart, parseHeight, parseMaxHeight, parseMaxWidth, parseMaxWidthHeight, parseMinHeight, parseMinWidth, parseWidth, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative, textCenter, userSelectNone } from "../../../styles/general";
11
11
  import { makeStyles, useTheme } from "../../../theme";
12
12
  import { classNames, date as moment, getFileType } from "../../../utils";
13
13
  import Label from "../label";
@@ -102,7 +102,6 @@ const oldAttached = [];
102
102
  const allNewAttached = new FormData();
103
103
  const attached = [];
104
104
  const chosenItems = [];
105
- let timer = null;
106
105
  let prevent = false;
107
106
  let existClickOutOfItem = false;
108
107
  let maxSize = Infinity;
@@ -202,15 +201,16 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
202
201
  const isDeleteAll = useRef(false);
203
202
  const PushNotify = useRef(null);
204
203
  const removedAttachedRef = useRef([]);
205
- const [open, setOpen] = useState(false);
206
- const [popup, setPopup] = useState(false);
207
- const [popover, setPopover] = useState(false);
204
+ const timer = useRef(null);
205
+ const [showModal, setShowModal] = useState(false);
206
+ const [showPopup, setShowPopup] = useState(false);
207
+ const [showPopover, setShowPopover] = useState(false);
208
208
  const [viewTypeState, setViewTypeState] = useState(viewType);
209
209
  const [isEmpty, setIsEmpty] = useState(null);
210
210
 
211
211
  // Start handler
212
212
  const onShowSortPopover = () => {
213
- setPopover(true);
213
+ setShowPopover(true);
214
214
  };
215
215
  const onSortElement = (e, type) => {
216
216
  let multi = 1;
@@ -271,7 +271,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
271
271
  attachedList.forEach(el => {
272
272
  attachedRef.current.appendChild(el);
273
273
  });
274
- setPopover(false);
274
+ setShowPopover(false);
275
275
  };
276
276
  const afterChangeFile = (length = 0) => {
277
277
  setIsEmpty(!length);
@@ -467,10 +467,10 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
467
467
  return totalSize + ' ' + unitSizeName;
468
468
  };
469
469
  const onShowPopup = () => {
470
- setPopup(true);
470
+ setShowPopup(true);
471
471
  };
472
472
  const onClosePopup = () => {
473
- setPopup(false);
473
+ setShowPopup(false);
474
474
  if (isDeleteAll.current) {
475
475
  isDeleteAll.current = false;
476
476
  chosenItems.length = 0;
@@ -535,9 +535,9 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
535
535
  onView(node, AttachmentID);
536
536
  };
537
537
  const onView = (node, AttachmentID) => {
538
- if (timer) {
538
+ if (timer.current) {
539
539
  prevent = true;
540
- clearTimeout(timer);
540
+ clearTimeout(timer.current);
541
541
  // if (existClickOutOfItem) {
542
542
  // removeAllChosenItems();
543
543
  // attachedRef.current.querySelectorAll('.chosen').forEach(itemEl => {
@@ -548,7 +548,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
548
548
 
549
549
  const index = Array.from(attachedRef.current.children).indexOf(node);
550
550
  if (onViewProp) onViewProp(AttachmentID, index);else {
551
- setOpen(true);
551
+ setShowModal(true);
552
552
  }
553
553
  setTimeout(() => {
554
554
  prevent = false;
@@ -656,7 +656,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
656
656
  const ctrlKey = e.ctrlKey;
657
657
  const shiftKey = e.shiftKey;
658
658
  const itemEl = e.currentTarget;
659
- timer = setTimeout(() => {
659
+ timer.current = setTimeout(() => {
660
660
  if (!prevent) {
661
661
  const index = Array.from(attachedRef.current.children).indexOf(itemEl.parentNode);
662
662
  if (shiftKey && !ctrlKey) {
@@ -1058,14 +1058,14 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1058
1058
  className: 'download',
1059
1059
  name: 'download',
1060
1060
  onClick: onDownloadMultiple
1061
- }), !readOnly && jsx(ButtonIcon, {
1061
+ }), !readOnly ? jsx(ButtonIcon, {
1062
1062
  viewType: 'ghost',
1063
1063
  className: 'delete',
1064
1064
  name: 'delete',
1065
1065
  onClick: onShowPopup
1066
- })), jsx("div", {
1066
+ }) : null), jsx("div", {
1067
1067
  css: isEmpty ? AttachmentImageEmptyCSS : AttachmentImageCSS
1068
- }, !(readOnly || disabled) && jsx("div", {
1068
+ }, !(readOnly || disabled) ? jsx("div", {
1069
1069
  css: AttachmentImageCenterCSS
1070
1070
  }, jsx(ButtonIcon, {
1071
1071
  css: isEmpty && ButtonAttachmentCSS,
@@ -1078,7 +1078,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1078
1078
  css: userSelectNone,
1079
1079
  type: 'p3',
1080
1080
  color: systemRest
1081
- }, hintText) : null)), allowSort && !isEmpty ? jsx(ButtonIcon, {
1081
+ }, hintText) : null) : null), allowSort && !isEmpty ? jsx(ButtonIcon, {
1082
1082
  viewType: 'ghost',
1083
1083
  name: 'Sort',
1084
1084
  ref: sortIconRef,
@@ -1086,11 +1086,11 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1086
1086
  marginRight: 8
1087
1087
  },
1088
1088
  onClick: onShowSortPopover
1089
- }) : null, jsx(ButtonIcon, {
1089
+ }) : null, !isEmpty ? jsx(ButtonIcon, {
1090
1090
  viewType: 'ghost',
1091
1091
  name: viewTypeState === 'detail' ? 'IconView' : 'ListView',
1092
1092
  onClick: () => setViewTypeState(viewTypeState === 'icon' ? 'detail' : 'icon')
1093
- }))), [error, allowSort, disabled, readOnly, label, required, hintText, domain, viewTypeState, isEmpty]);
1093
+ }) : null)), [error, allowSort, disabled, readOnly, label, required, hintText, domain, viewTypeState, isEmpty]);
1094
1094
  const AttachmentInputView = useMemo(() => jsx("div", {
1095
1095
  css: AttachmentInputCSS,
1096
1096
  className: 'DGN-UI-Attachment-Input'
@@ -1103,14 +1103,8 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1103
1103
  ...inputProps
1104
1104
  })), [inputProps]);
1105
1105
  const AttachedView = useMemo(() => jsx(ScrollBar, {
1106
- className: 'DGN-UI-Attachment-List',
1107
- style: {
1108
- marginRight: 5,
1109
- paddingTop: 0,
1110
- paddingBottom: 0,
1111
- paddingRight: 7,
1112
- overflowY: 'overlay'
1113
- }
1106
+ css: AttachmentListCSS,
1107
+ className: 'DGN-UI-Attachment-List'
1114
1108
  }, jsx("div", {
1115
1109
  css: AttachedCSS,
1116
1110
  ref: attachedRef,
@@ -1118,7 +1112,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1118
1112
  })), [viewTypeState]);
1119
1113
  const PopoverView = useMemo(() => {
1120
1114
  return jsx(Popover, {
1121
- open: popover,
1115
+ open: showPopover,
1122
1116
  ref: popoverRef,
1123
1117
  anchor: sortIconRef,
1124
1118
  width: 'max-content',
@@ -1131,7 +1125,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1131
1125
  vertical: 'top',
1132
1126
  horizontal: 'right'
1133
1127
  },
1134
- onClose: () => setPopover(false)
1128
+ onClose: () => setShowPopover(false)
1135
1129
  }, jsx(List, null, jsx(ListItem, {
1136
1130
  className: classes.listItem,
1137
1131
  button: true,
@@ -1153,9 +1147,9 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1153
1147
  button: true,
1154
1148
  onClick: e => onSortElement(e, 'username')
1155
1149
  }, jsx(ListItemText, null, "By owner"))));
1156
- }, [popover]);
1150
+ }, [showPopover]);
1157
1151
  const PopupView = useMemo(() => jsx(Popup, {
1158
- open: popup,
1152
+ open: showPopup,
1159
1153
  ref: popupRef,
1160
1154
  type: 'yes-no',
1161
1155
  variant: 'warning',
@@ -1166,20 +1160,20 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1166
1160
  onClose: onClosePopup,
1167
1161
  onConfirm: onRemoveMultiple,
1168
1162
  onCancel: onClosePopup
1169
- }), [deleteNotifyText, onChange, onRemoveProp, popup]);
1163
+ }), [deleteNotifyText, onChange, onRemoveProp, showPopup]);
1170
1164
  const ModalView = useMemo(() => {
1171
- if (!chosenItems.length) return setOpen(false);
1165
+ if (!chosenItems.length) return setShowModal(false);
1172
1166
  const index = chosenItems[0];
1173
1167
  const data = mountDomain(attached[index]);
1174
1168
  // let data = oldAttached[index] || allNewAttached.getAll('files')[index-oldAttached.length];
1175
1169
  return jsx(ModalSample, {
1176
- open: open,
1170
+ open: showModal,
1177
1171
  title: data.FileName,
1178
- onClose: () => setOpen(false)
1172
+ onClose: () => setShowModal(false)
1179
1173
  }, jsx(Slider, null, jsx(SliderItem, {
1180
1174
  url: data.URL
1181
1175
  })));
1182
- }, [domain, open]);
1176
+ }, [domain, showModal]);
1183
1177
  // End view
1184
1178
 
1185
1179
  useImperativeHandle(reference, () => {
@@ -1234,6 +1228,7 @@ const AttachmentHeaderCSS = css`
1234
1228
  ${alignCenter};
1235
1229
  ${justifyBetween};
1236
1230
  ${borderBox};
1231
+ ${parseWidth('100%')};
1237
1232
  padding: ${spacing([4, 4])};
1238
1233
  `;
1239
1234
  const AttachmentInfoCSS = css`
@@ -1250,7 +1245,6 @@ const AttachmentInputCSS = css`
1250
1245
  ${parseWidthHeight('100%', '100%')};
1251
1246
  top: 0;
1252
1247
  left: 0;
1253
- z-index: 4;
1254
1248
  input {
1255
1249
  ${positionRelative};
1256
1250
  ${parseWidthHeight('100%', 'calc(100% + 20px)')};
@@ -1283,13 +1277,12 @@ const AttachedItemInfoCSS = css`
1283
1277
  ${alignCenter};
1284
1278
  ${borderRadius4px};
1285
1279
  ${userSelectNone};
1280
+ ${parseMinWidth('calc(50% - 10px)')};
1286
1281
  margin-right: ${spacing([2])};
1287
- min-width: calc(50% - 10px);
1288
1282
  `;
1289
1283
  const AttachedItemInfoIconCSS = css`
1290
1284
  ${flexRow};
1291
1285
  ${positionRelative};
1292
- ${cursorPointer};
1293
1286
  ${parseMaxWidthHeight(14, 16)};
1294
1287
  padding: ${spacing([1, 1.25])};
1295
1288
  box-sizing: content-box;
@@ -1297,7 +1290,7 @@ const AttachedItemInfoIconCSS = css`
1297
1290
  content: '';
1298
1291
  ${positionAbsolute};
1299
1292
  ${borderRadius50};
1300
- ${parseWidthHeight(4, 4)}
1293
+ ${parseWidthHeight(4, 4)};
1301
1294
  top: 4.5px;
1302
1295
  left: -2px;
1303
1296
  background: ${semanticSuccess};
@@ -1305,7 +1298,6 @@ const AttachedItemInfoIconCSS = css`
1305
1298
  `;
1306
1299
  const AttachedItemInfoNameCSS = css`
1307
1300
  ${paragraph1};
1308
- ${cursorPointer};
1309
1301
  ${ellipsis};
1310
1302
  color: ${systemDark};
1311
1303
  margin-left: ${spacing([3])};
@@ -1317,9 +1309,8 @@ const AttachedItemOwnerCSS = css`
1317
1309
  ${flexRow};
1318
1310
  ${positionRelative};
1319
1311
  ${alignCenter};
1320
- ${cursorPointer};
1321
1312
  ${userSelectNone};
1322
- height: 100%;
1313
+ ${parseHeight('100%')};
1323
1314
  color: ${textSub};
1324
1315
  .detail-info {
1325
1316
  ${flexRow};
@@ -1353,17 +1344,17 @@ const AttachedLinearCSS = css`
1353
1344
  const AttachedItemCSS = css`
1354
1345
  ${flexRow};
1355
1346
  ${justifyBetween};
1356
- ${alignCenter};
1357
1347
  ${positionRelative};
1358
1348
  ${borderRadius4px};
1349
+ ${cursorPointer};
1359
1350
  ${parseHeight(24)};
1360
1351
  padding: ${spacing([0, 2])};
1361
1352
  transition: padding 0.5s ease;
1362
1353
  `;
1363
1354
  const AttachedCSS = css`
1364
1355
  ${positionRelative};
1365
- height: 100%;
1366
- max-height: 152px;
1356
+ ${parseHeight('100%')};
1357
+ ${parseMaxHeight(152)};
1367
1358
  margin-left: ${spacing([2])};
1368
1359
  margin-right: ${spacing([2])};
1369
1360
  z-index: 1;
@@ -1383,10 +1374,10 @@ const AttachedCSS = css`
1383
1374
  content: '';
1384
1375
  flex: auto;
1385
1376
  }
1386
- max-height: 200px;
1377
+ ${parseMaxHeight(200)};
1378
+ ${parseWidth('max-content')};
1379
+ ${parseMaxWidth('calc(100% - 26px)')};
1387
1380
  margin-left: 0;
1388
- width: max-content;
1389
- max-width: calc(100% - 26px);
1390
1381
  .attachment-row {
1391
1382
  ${positionRelative};
1392
1383
  margin-left: ${spacing([4])};
@@ -1402,17 +1393,16 @@ const AttachedCSS = css`
1402
1393
  ${positionRelative};
1403
1394
  ${textCenter};
1404
1395
  ${ellipsis};
1405
- width: max-content;
1406
- max-width: 80px;
1396
+ ${parseWidth('max-content')};
1397
+ ${parseMaxWidth(80)};
1398
+ ${parseMinWidth(70)};
1407
1399
  margin-left: auto;
1408
1400
  margin-right: auto;
1409
- min-width: 70px;
1410
1401
  .css-${AttachedItemInfoIconCSS.name} {
1411
1402
  ${displayBlock};
1412
1403
  ${parseWidthHeight(40, 40)};
1413
- max-height: 40px;
1414
- max-width: 40px;
1415
- margin: 4px auto 2px;
1404
+ ${parseMaxWidthHeight(40, 40)};
1405
+ margin: ${spacing([1, 'auto', 0.5])};
1416
1406
  padding: 0;
1417
1407
  &.new-file:after {
1418
1408
  ${parseWidthHeight(8, 8)};
@@ -1424,9 +1414,9 @@ const AttachedCSS = css`
1424
1414
  ${paragraph3};
1425
1415
  ${textCenter};
1426
1416
  ${breakWord};
1417
+ ${parseMaxWidth('100%')};
1427
1418
  margin: ${spacing([0, 2])};
1428
1419
  display: -webkit-box;
1429
- max-width: 100%;
1430
1420
  white-space: pre-wrap;
1431
1421
  -webkit-line-clamp: 2;
1432
1422
  -webkit-box-orient: vertical;
@@ -1452,6 +1442,12 @@ const AttachedCSS = css`
1452
1442
  min-width: 684px;
1453
1443
  }
1454
1444
  `;
1445
+ const AttachmentListCSS = css`
1446
+ ${borderBox};
1447
+ margin-right: ${spacing([1.25])};
1448
+ padding: ${spacing([0, 1.75, 0])};
1449
+ overflow-y: overlay;
1450
+ `;
1455
1451
  const AttachmentRootCSS = css`
1456
1452
  ${flexCol};
1457
1453
  ${flexWrap};
@@ -1493,10 +1489,10 @@ const AttachmentRootCSS = css`
1493
1489
  }
1494
1490
  @media (max-width: 716px) {
1495
1491
  .css-${AttachedCSS.name}:not(.icon-view) {
1496
- min-width: 575px;
1492
+ ${parseMinWidth(575)};
1497
1493
  }
1498
1494
  .css-${AttachedItemInfoCSS.name} {
1499
- max-width: calc(40% - 10px);
1495
+ ${parseMaxWidth('calc(40% - 10px)')};
1500
1496
  }
1501
1497
  }
1502
1498
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.79-beta.3",
3
+ "version": "1.3.79-beta.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",
@@ -1,12 +0,0 @@
1
- export default ((width, height) => ({
2
- vertical: `
3
- width: ${isNaN(width) ? width : width + 'px'};
4
- height: 100%;
5
- margin: auto 5px;
6
- `,
7
- horizontal: `
8
- width: 100%;
9
- height: ${isNaN(height) ? height : height + 'px'};
10
- margin: 5px auto;
11
- `
12
- }));