@desynova-digital/components 8.9.1 → 8.9.5

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.
@@ -82,7 +82,7 @@ var CardV2 = function CardV2(props) {
82
82
  _react2.default.createElement(_thumbnail2.default, props),
83
83
  _react2.default.createElement(_content2.default, props)
84
84
  );
85
- }, []);
85
+ }, [props]);
86
86
 
87
87
  /**
88
88
  * based on width will render the card
@@ -98,7 +98,7 @@ var CardV2 = function CardV2(props) {
98
98
  content()
99
99
  );
100
100
  } else return content();
101
- }, []);
101
+ }, [props]);
102
102
 
103
103
  return _react2.default.createElement(
104
104
  CardStyles,
@@ -111,7 +111,7 @@ var Thumbnail = function Thumbnail(props) {
111
111
  * @const
112
112
  */
113
113
  var index = _tokens.CARD_ASSET_STATUS.findIndex(function (label) {
114
- return label.code.includes(upload_status || card_status ? (upload_status || card_status).toLowerCase().split(" ").join("_") : []);
114
+ return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(" ").join("_") : []);
115
115
  });
116
116
  setStatusIndex(index);
117
117
  }, [upload_status, card_status]);
@@ -169,7 +169,7 @@ var Thumbnail = function Thumbnail(props) {
169
169
  position: "relative",
170
170
  zIndex: "2"
171
171
  },
172
- (upload_status || card_status) && statusIndex && _react2.default.createElement(
172
+ (card_status || upload_status) && statusIndex && _react2.default.createElement(
173
173
  StatusBoxStyles,
174
174
  {
175
175
  hex: _tokens.CARD_ASSET_STATUS[statusIndex] ? _tokens.CARD_ASSET_STATUS[statusIndex].hex : { background: "#AFB2BA" }
@@ -183,7 +183,7 @@ var Thumbnail = function Thumbnail(props) {
183
183
  fontSize: "10px",
184
184
  color: "#FFF"
185
185
  },
186
- upload_status || card_status
186
+ card_status || upload_status
187
187
  )
188
188
  ),
189
189
  actions && actions.length > 0 && actions.map(function (item, i) {
@@ -114,7 +114,7 @@ var Checkbox = function Checkbox(props) {
114
114
  {
115
115
  theme: props.theme,
116
116
  selected: props.defaultChecked,
117
- className: props.isDisabled ? "disabled" : ""
117
+ className: props.isDisabled && props.access !== 'read' ? "disabled" : ""
118
118
  },
119
119
  props.children
120
120
  ) : null,
@@ -166,7 +166,8 @@ var CheckboxGroup = function CheckboxGroup(props) {
166
166
  onChange: child.props.isDisabled ? props.onChange : function () {},
167
167
  theme: props.theme,
168
168
  type: props.type,
169
- fillRule: props.fillRule || ''
169
+ fillRule: props.fillRule || '',
170
+ access: child.props.access
170
171
  }) : null;
171
172
  })
172
173
  );
@@ -184,7 +185,8 @@ Checkbox.propTypes = {
184
185
  /** Callback function which is called when the user selects an option */
185
186
  onChange: _propTypes2.default.func,
186
187
  type: _propTypes2.default.oneOf(["default", "label", "switch"]),
187
- fillRule: _propTypes2.default.string
188
+ fillRule: _propTypes2.default.string,
189
+ access: _propTypes2.default.string
188
190
  };
189
191
 
190
192
  Checkbox.defaultProps = {
@@ -43,6 +43,9 @@ console.log(iconsArr);
43
43
  _react2.default.createElement(
44
44
  _storyHelpers.Stack,
45
45
  null,
46
+ _react2.default.createElement(_components.Icon, { name: "stitching", width: 24, height: 24 }),
47
+ _react2.default.createElement(_components.Icon, { name: "publishing", width: 24, height: 24 }),
48
+ _react2.default.createElement(_components.Icon, { name: "hes", width: 24, height: 24 }),
46
49
  _react2.default.createElement(_components.Icon, { name: "add", width: 14, height: 14 }),
47
50
  _react2.default.createElement(_components.Icon, { name: "add-circle", width: 18, height: 18 }),
48
51
  _react2.default.createElement(_components.Icon, { name: "arrow-left", width: 14, height: 14 }),
@@ -1250,6 +1250,21 @@
1250
1250
  "paths": ["M6.22222 0L4.59556 1.77778H1.77778C0.8 1.77778 0 2.57778 0 3.55556V14.2222C0 15.2 0.8 16 1.77778 16H16C16.9778 16 17.7778 15.2 17.7778 14.2222V3.55556C17.7778 2.57778 16.9778 1.77778 16 1.77778H13.1822L11.5556 0H6.22222ZM8.88889 13.3333C6.43556 13.3333 4.44444 11.3422 4.44444 8.88889C4.44444 6.43556 6.43556 4.44444 8.88889 4.44444C11.3422 4.44444 13.3333 6.43556 13.3333 8.88889C13.3333 11.3422 11.3422 13.3333 8.88889 13.3333ZM8.88889 11.7333C10.4598 11.7333 11.7333 10.4598 11.7333 8.88889C11.7333 7.31795 10.4598 6.04444 8.88889 6.04444C7.31795 6.04444 6.04444 7.31795 6.04444 8.88889C6.04444 10.4598 7.31795 11.7333 8.88889 11.7333Z"],
1251
1251
  "width": 18,
1252
1252
  "height": 16
1253
+ },
1254
+ "stitching": {
1255
+ "paths" :["M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"],
1256
+ "width": 24,
1257
+ "height": 24
1258
+ },
1259
+ "publishing": {
1260
+ "paths" :["M15.5 5H11l5 7-5 7h4.5l5-7z", "M8.5 5H4l5 7-5 7h4.5l5-7z"],
1261
+ "width": 24,
1262
+ "height": 24
1263
+ },
1264
+ "hes": {
1265
+ "paths" :["M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"],
1266
+ "width": 24,
1267
+ "height": 24
1253
1268
  }
1254
1269
  }
1255
1270
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "8.9.1",
3
+ "version": "8.9.5",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "8.9.1",
10
+ "@desynova-digital/tokens": "8.9.5",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },