@desynova-digital/components 8.7.0 → 8.8.0

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.
@@ -147,8 +147,6 @@ var Checkbox = function Checkbox(props) {
147
147
  props.type === 'icon' && _react2.default.createElement(_icon2.default, {
148
148
  name: props.value,
149
149
  value: props.value,
150
- width: props.width,
151
- height: props.height,
152
150
  fillRule: props.fillRule,
153
151
  color: props.checked ? "#00CEC6" : "#AFB2BA" })
154
152
  );
@@ -168,8 +166,6 @@ var CheckboxGroup = function CheckboxGroup(props) {
168
166
  onChange: child.props.isDisabled ? props.onChange : function () {},
169
167
  theme: props.theme,
170
168
  type: props.type,
171
- width: props.width || 16,
172
- height: props.height || 24,
173
169
  fillRule: props.fillRule || ''
174
170
  }) : null;
175
171
  })
@@ -188,8 +184,6 @@ Checkbox.propTypes = {
188
184
  /** Callback function which is called when the user selects an option */
189
185
  onChange: _propTypes2.default.func,
190
186
  type: _propTypes2.default.oneOf(["default", "label", "switch"]),
191
- width: _propTypes2.default.number,
192
- height: _propTypes2.default.number,
193
187
  fillRule: _propTypes2.default.string
194
188
  };
195
189
 
@@ -40,7 +40,7 @@ var Icon = function Icon(props) {
40
40
  {
41
41
  width: props.width || icon.width,
42
42
  height: props.height || icon.height,
43
- viewBox: '0 0 ' + (props.width || icon.width) + ' ' + (props.height || icon.height),
43
+ viewBox: '0 0 ' + icon.width + ' ' + icon.height,
44
44
  color: props.color
45
45
  },
46
46
  icon.paths.map(function (path, index) {
@@ -51,7 +51,7 @@ var Icon = function Icon(props) {
51
51
  fill: props.color,
52
52
  stroke: props.stroke,
53
53
  strokeWidth: icon.strokeWidth,
54
- fillRule: props.fillRule
54
+ fillRule: icon.fillRule
55
55
  });
56
56
  })
57
57
  )
@@ -83,6 +83,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
83
83
  _react2.default.createElement(
84
84
  _storyHelpers.Stack,
85
85
  null,
86
+ _react2.default.createElement(_components.Icon, { name: "dialogue-miss", width: 24, height: 24 }),
87
+ _react2.default.createElement(_components.Icon, { name: "voice-mismatch", width: 20, height: 20 }),
88
+ _react2.default.createElement(_components.Icon, { name: "me-issue", width: 24, height: 24 }),
89
+ _react2.default.createElement(_components.Icon, { name: "av-cut", width: 20, height: 20 }),
90
+ _react2.default.createElement(_components.Icon, { name: "short-replacement", width: 24, height: 24 }),
91
+ _react2.default.createElement(_components.Icon, { name: "meaning-error", width: 20, height: 20 }),
92
+ _react2.default.createElement(_components.Icon, { name: "pronunciation", width: 24, height: 24 }),
86
93
  _react2.default.createElement(_components.Icon, { name: "volume", width: 18, height: 18 }),
87
94
  _react2.default.createElement(_components.Icon, { name: "share", width: 18, height: 18 }),
88
95
  _react2.default.createElement(_components.Icon, { name: "settings", width: 16, height: 16 }),
@@ -514,8 +514,8 @@
514
514
  "paths": [
515
515
  "M12.444 0H1.556C.692 0 0 .7 0 1.556v9.333c0 .855.692 1.555 1.556 1.555h10.888c.856 0 1.556-.7 1.556-1.555V1.556C14 .7 13.3 0 12.444 0zM6.222 5.444H5.056v-.388H3.5v2.333h1.556V7h1.166v.778a.78.78 0 0 1-.778.778H3.111a.78.78 0 0 1-.778-.778V4.667a.78.78 0 0 1 .778-.778h2.333a.78.78 0 0 1 .778.778v.777zm5.445 0H10.5v-.388H8.944v2.333H10.5V7h1.167v.778a.78.78 0 0 1-.778.778H8.556a.78.78 0 0 1-.778-.778V4.667a.78.78 0 0 1 .778-.778h2.333a.78.78 0 0 1 .778.778v.777z"
516
516
  ],
517
- "width": 14,
518
- "height": 13
517
+ "width": 12,
518
+ "height": 12
519
519
  },
520
520
  "audio-track": {
521
521
  "paths": [
@@ -563,8 +563,17 @@
563
563
  "paths": [
564
564
  "M10.8 0H1.2C0.54 0 0 0.54 0 1.2V8.4C0 9.06 0.54 9.6 1.2 9.6H10.8C11.46 9.6 12 9.06 12 8.4V1.2C12 0.54 11.46 0 10.8 0ZM1.2 4.8H3.6V6H1.2V4.8ZM1.2 8.4H7.2V7.2H1.2V8.4ZM10.8 8.4H8.4V7.2H10.8V8.4ZM4.8 6H10.8V4.8H4.8V6Z"
565
565
  ],
566
- "width": 20,
567
- "height": 16
566
+ "width": 12,
567
+ "height": 12,
568
+ "fillRule": "evenodd"
569
+ },
570
+ "subtitle_assign": {
571
+ "paths": [
572
+ "M10.8 0H1.2C0.54 0 0 0.54 0 1.2V8.4C0 9.06 0.54 9.6 1.2 9.6H10.8C11.46 9.6 12 9.06 12 8.4V1.2C12 0.54 11.46 0 10.8 0ZM1.2 4.8H3.6V6H1.2V4.8ZM1.2 8.4H7.2V7.2H1.2V8.4ZM10.8 8.4H8.4V7.2H10.8V8.4ZM4.8 6H10.8V4.8H4.8V6Z"
573
+ ],
574
+ "width": 12,
575
+ "height": 12,
576
+ "fillRule": "evenodd"
568
577
  },
569
578
  "align_bottom": {
570
579
  "paths": ["M.5.5h23v15H.5z", "M4 10v1.778h16V10z"],
@@ -1135,18 +1144,57 @@
1135
1144
  },
1136
1145
  "text_position_top": {
1137
1146
  "paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 5.77778V4H20V5.77778H4Z"],
1138
- "width": 16,
1139
- "height": 16
1147
+ "width": 24,
1148
+ "height": 20,
1149
+ "fillRule": "evenodd"
1140
1150
  },
1141
1151
  "text_position_center": {
1142
1152
  "paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 8.77778V7H20V8.77778H4Z"],
1143
- "width": 16,
1144
- "height": 16
1153
+ "width": 24,
1154
+ "height": 20,
1155
+ "fillRule": "evenodd"
1145
1156
  },
1146
1157
  "text_position_bottom": {
1147
1158
  "paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 11.7778V10H20V11.7778H4Z"],
1148
- "width": 16,
1149
- "height": 16
1159
+ "width": 24,
1160
+ "height": 20,
1161
+ "fillRule": "evenodd"
1162
+ },
1163
+ "dialogue-miss": {
1164
+ "paths":["M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2-.66 0-1.2-.54-1.2-1.2V4.9zm6.5 6.1c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"],
1165
+ "width": 24,
1166
+ "height": 24
1167
+ },
1168
+ "voice-mismatch": {
1169
+ "paths": ["M12,10c1.66,0,3-1.34,3-3s-1.34-3-3-3S9,5.34,9,7S10.34,10,12,10z M16.87,13.38c-0.62,0-1.12-0.5-1.12-1.12v-1.88 c0-0.62,0.5-1.12,1.13-1.12c0.62,0,1.12,0.5,1.12,1.12v1.88C18,12.87,17.5,13.38,16.87,13.38z M16.5,16h0.75c0,0,0-1.15,0-1.15 c1.27-0.18,2.25-1.28,2.25-2.6h-0.75c0,1.03-0.84,1.88-1.88,1.88S15,13.28,15,12.25h-0.75c0,1.32,0.98,2.42,2.25,2.6 C16.5,14.85,16.5,16,16.5,16z M8.38,9.67C7.83,8.92,7.5,8,7.5,7c0-1,0.33-1.92,0.88-2.67C7.96,4.12,7.5,4,7,4C5.34,4,4,5.34,4,7 s1.34,3,3,3C7.5,10,7.96,9.88,8.38,9.67z M4.5,16H1v-1.91c0-0.7,0.36-1.36,0.97-1.72c1.29-0.76,2.76-1.23,4.33-1.35 C5.89,11.22,4.5,12.2,4.5,14.09V16z M6,16v-1.91c0-0.7,0.36-1.36,0.97-1.72C8.44,11.5,10.16,11,12,11c0.49,0,0.97,0.04,1.45,0.1 c-0.82,1.84-0.03,4.01,1.79,4.9H6z"],
1170
+ "width": 20,
1171
+ "height": 20
1172
+ },
1173
+ "me-issue": {
1174
+ "paths": ["M21,3H3C1.89,3,1,3.89,1,5v12c0,1.1,0.89,2,2,2h5v2h8v-2h5c1.1,0,1.99-0.9,1.99-2L23,5C23,3.89,22.1,3,21,3z M21,17H3V5 h18V17z M16,10v2H8v-2H16z"],
1175
+ "width": 24,
1176
+ "height": 24
1177
+ },
1178
+ "av-cut": {
1179
+ "paths": ["M17.78,17.78L2.22,2.22L1.16,3.28L2.38,4.5C2.14,4.77,2,5.12,2,5.5v9C2,15.33,2.67,16,3.5,16h10.38l2.84,2.84L17.78,17.78z M3.5,14.5V7h1.38l7.5,7.5H3.5z M6.12,4H16.5C17.33,4,18,4.67,18,5.5v9c0,0.38-0.14,0.73-0.38,1l-1.12-1.12V7H9.12L6.12,4z"],
1180
+ "height": 20,
1181
+ "width": 20
1182
+ },
1183
+ "short-replacement": {
1184
+ "paths": ["M21 1H3c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zM7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"],
1185
+ "heigth": 24,
1186
+ "width": 24,
1187
+ "fillRule": "evenodd"
1188
+ },
1189
+ "meaning-error": {
1190
+ "paths": ["M18,5h-4v6.21C13.69,11.08,13.36,11,13,11c-1.38,0-2.5,1.12-2.5,2.5c0,1.38,1.12,2.5,2.5,2.5s2.5-1.12,2.5-2.5v-7H18V5z"],
1191
+ "width": 20,
1192
+ "heigth": 20
1193
+ },
1194
+ "pronunciation": {
1195
+ "paths": ["M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 5 5h2c0-3.93-3.07-7-7-7S7 5.07 7 9c0 1.26.38 2.65 1.07 3.9.91 1.65 1.98 2.48 2.85 3.15.81.62 1.39 1.07 1.71 2.05.6 1.82 1.37 2.84 2.73 3.55.51.23 1.07.35 1.64.35 2.21 0 4-1.79 4-4h-2c0 1.1-.9 2-2 2zM7.64 2.64L6.22 1.22C4.23 3.21 3 5.96 3 9s1.23 5.79 3.22 7.78l1.41-1.41C6.01 13.74 5 11.49 5 9s1.01-4.74 2.64-6.36zM11.5 9c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5-1.12-2.5-2.5-2.5-2.5 1.12-2.5 2.5z"],
1196
+ "height": 24,
1197
+ "width": 24
1150
1198
  }
1151
1199
  }
1152
1200
  }
@@ -31,13 +31,13 @@ var LabelStyles = _styledComponents2.default.div(_templateObject, function (_ref
31
31
  });
32
32
 
33
33
  var LABEL_STYLES = [{
34
- code: ["cancelled", "error", "failed", "upload_cancelled_by_user"],
34
+ code: ["cancelled", "error", "failed", "upload_cancelled_by_user", "rejected"],
35
35
  hex: {
36
36
  background: "#FF6C56",
37
37
  color: "#FFF"
38
38
  }
39
39
  }, {
40
- code: ["in_queue", "running", "verifying"],
40
+ code: ["in_queue", "running", "verifying", "approval_pending"],
41
41
  hex: {
42
42
  background: "#F9E900"
43
43
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "8.7.0",
3
+ "version": "8.8.0",
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.7.0",
10
+ "@desynova-digital/tokens": "8.8.0",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },