@desynova-digital/components 8.7.2 → 8.9.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.
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
8
8
 
9
- var _templateObject = _taggedTemplateLiteral(['\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: bottom;\n justify-content: ', ';\n\n margin-bottom: 20px;\n\n > * {\n flex: ', ';\n align-self: center;\n margin-right: ', ';\n }\n > *:last-child {\n margin-right: 0;\n }\n'], ['\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: bottom;\n justify-content: ', ';\n\n margin-bottom: 20px;\n\n > * {\n flex: ', ';\n align-self: center;\n margin-right: ', ';\n }\n > *:last-child {\n margin-right: 0;\n }\n']),
9
+ var _templateObject = _taggedTemplateLiteral(['\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: bottom;\n justify-content: ', ';\n overflow: auto;\n margin-bottom: 20px;\n\n > * {\n flex: ', ';\n align-self: center;\n margin-right: ', ';\n }\n > *:last-child {\n margin-right: 0;\n }\n'], ['\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: bottom;\n justify-content: ', ';\n overflow: auto;\n margin-bottom: 20px;\n\n > * {\n flex: ', ';\n align-self: center;\n margin-right: ', ';\n }\n > *:last-child {\n margin-right: 0;\n }\n']),
10
10
  _templateObject2 = _taggedTemplateLiteral(['\n flex-basis: ', '%;\n display: flex;\n justify-content: center;\n width: 100%;\n'], ['\n flex-basis: ', '%;\n display: flex;\n justify-content: center;\n width: 100%;\n']);
11
11
 
12
12
  var _react = require('react');
@@ -9,7 +9,7 @@ var _templateObject = _taggedTemplateLiteral(["\n ", "\n"], ["\n ", "\n"]),
9
9
  _templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n margin: ", ";\n padding: ", ";\n display: ", ";\n justify-content: ", ";\n align-items: ", ";\n font-size: ", ";\n color: ", ";\n position: ", ";\n border: ", ";\n z-index: ", ";\n cursor: ", ";\n border-radius: ", ";\n height: ", ";\n width: ", ";\n "], ["\n background-color: ", ";\n margin: ", ";\n padding: ", ";\n display: ", ";\n justify-content: ", ";\n align-items: ", ";\n font-size: ", ";\n color: ", ";\n position: ", ";\n border: ", ";\n z-index: ", ";\n cursor: ", ";\n border-radius: ", ";\n height: ", ";\n width: ", ";\n "]),
10
10
  _templateObject3 = _taggedTemplateLiteral(["\n ", ";\n"], ["\n ", ";\n"]),
11
11
  _templateObject4 = _taggedTemplateLiteral(["\n font-family: SFUIText-Regular;\n ", ";\n"], ["\n font-family: SFUIText-Regular;\n ", ";\n"]),
12
- _templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n background-color: ", ";\n border-radius: 2px;\n"], ["\n position: relative;\n background-color: ", ";\n border-radius: 2px;\n"]);
12
+ _templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n border-radius: 2px;\n"], ["\n position: relative;\n border-radius: 2px;\n"]);
13
13
 
14
14
  var _react = require("react");
15
15
 
@@ -31,6 +31,10 @@ var _content = require("./content");
31
31
 
32
32
  var _content2 = _interopRequireDefault(_content);
33
33
 
34
+ var _timeline = require("./timeline");
35
+
36
+ var _timeline2 = _interopRequireDefault(_timeline);
37
+
34
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
39
 
36
40
  function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -63,20 +67,18 @@ var BaseParaStyles = exports.BaseParaStyles = _styledComponents2.default.p(_temp
63
67
 
64
68
  var BaseButtonStyles = exports.BaseButtonStyles = _styledComponents2.default.button(_templateObject4, CommonStyles);
65
69
 
66
- var CardStyles = _styledComponents2.default.div(_templateObject5, function (_ref2) {
67
- var bgColor = _ref2.bgColor,
68
- type = _ref2.type;
69
- return type === "search" ? "transparent" : bgColor === "secondary" && type !== "search" ? "#0C141D" : "#15212F";
70
- });
70
+ var CardStyles = _styledComponents2.default.div(_templateObject5);
71
71
 
72
72
  var CardV2 = function CardV2(props) {
73
- var width = props.width;
73
+ var width = props.width,
74
+ type = props.type;
74
75
 
75
76
 
76
77
  var content = (0, _react.useCallback)(function () {
77
78
  return _react2.default.createElement(
78
79
  _react.Fragment,
79
80
  null,
81
+ type === 'timeline' && _react2.default.createElement(_timeline2.default, props) || null,
80
82
  _react2.default.createElement(_thumbnail2.default, props),
81
83
  _react2.default.createElement(_content2.default, props)
82
84
  );
@@ -34,6 +34,23 @@ var COMMON_SEARCH_PROPS = _extends({}, COMMON_PROPS, {
34
34
  return _react2.default.createElement(
35
35
  _storyHelpers.Example,
36
36
  { title: "Dark Mode", background: "dark" },
37
+ _react2.default.createElement(
38
+ "h1",
39
+ { style: { marginBottom: "10px" } },
40
+ "Timeline Cards"
41
+ ),
42
+ _react2.default.createElement(
43
+ _storyHelpers.Stack,
44
+ null,
45
+ _react2.default.createElement(_components.CardV2, _extends({}, COMMON_PROPS, {
46
+ h1: "Wicked Tuna: North vs South, East vs West, All Sides",
47
+ h2: "S1 E1",
48
+ startTime: 1640968200000,
49
+ endTime: 1640970000000,
50
+ overlapping: [],
51
+ type: "timeline"
52
+ }))
53
+ ),
37
54
  _react2.default.createElement(
38
55
  "h1",
39
56
  { style: { marginBottom: "10px" } },
@@ -12,7 +12,7 @@ var _templateObject = _taggedTemplateLiteral(["\n display: -webkit-box;\n -web
12
12
  _templateObject2 = _taggedTemplateLiteral(["\n font-family: SFUIText-Regular;\n top: ", ";\n word-break: break-all;\n\n &:after {\n content: \"\";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: transparent transparent #000;\n }\n"], ["\n font-family: SFUIText-Regular;\n top: ", ";\n word-break: break-all;\n\n &:after {\n content: \"\";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: transparent transparent #000;\n }\n"]),
13
13
  _templateObject3 = _taggedTemplateLiteral(["\n ", ";\n padding: 0;\n margin-right: 10px;\n font-size: 10px;\n color: #afb2ba;\n -webkit-line-clamp: 1;\n height: 10px;\n"], ["\n ", ";\n padding: 0;\n margin-right: 10px;\n font-size: 10px;\n color: #afb2ba;\n -webkit-line-clamp: 1;\n height: 10px;\n"]),
14
14
  _templateObject4 = _taggedTemplateLiteral(["\n ", ";\n font-family: SFUIText-Medium;\n -webkit-line-clamp: 2;\n height: 27px;\n cursor: ", ";\n"], ["\n ", ";\n font-family: SFUIText-Medium;\n -webkit-line-clamp: 2;\n height: 27px;\n cursor: ", ";\n"]),
15
- _templateObject5 = _taggedTemplateLiteral(["\n height: 74px;\n width: ", ";\n padding: ", ";\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: \" \";\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: rgb(0, 206, 198);\n border-radius: 50%;\n }\n }\n"], ["\n height: 74px;\n width: ", ";\n padding: ", ";\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: \" \";\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: rgb(0, 206, 198);\n border-radius: 50%;\n }\n }\n"]);
15
+ _templateObject5 = _taggedTemplateLiteral(["\n height: 74px;\n width: ", ";\n padding: ", ";\n background-color: ", ";\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: \" \";\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: rgb(0, 206, 198);\n border-radius: 50%;\n }\n }\n .overlapping-container {\n justify-content: center;\n align-items: center;\n height: 11px;\n p {\n font-size: 12px;\n margin-left: 5px;\n height: 12px\n }\n }\n"], ["\n height: 74px;\n width: ", ";\n padding: ", ";\n background-color: ", ";\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: \" \";\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: rgb(0, 206, 198);\n border-radius: 50%;\n }\n }\n .overlapping-container {\n justify-content: center;\n align-items: center;\n height: 11px;\n p {\n font-size: 12px;\n margin-left: 5px;\n height: 12px\n }\n }\n"]);
16
16
 
17
17
  var _react = require("react");
18
18
 
@@ -28,6 +28,10 @@ var _styledComponents2 = _interopRequireDefault(_styledComponents);
28
28
 
29
29
  var _cardV = require("./cardV2");
30
30
 
31
+ var _icon = require("../../atoms/icon");
32
+
33
+ var _icon2 = _interopRequireDefault(_icon);
34
+
31
35
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
36
 
33
37
  function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -63,6 +67,10 @@ var ContentStyles = _styledComponents2.default.div(_templateObject5, function (_
63
67
  } else if (type === "search" && width !== "sm") {
64
68
  return "13px 0px";
65
69
  } else return "13px 15px";
70
+ }, function (_ref4) {
71
+ var bgColor = _ref4.bgColor,
72
+ type = _ref4.type;
73
+ return type === "search" ? "transparent" : bgColor === "secondary" && type !== "search" ? "#0C141D" : "#15212F";
66
74
  });
67
75
 
68
76
  var Content = function Content(props) {
@@ -75,7 +83,8 @@ var Content = function Content(props) {
75
83
  type = props.type,
76
84
  width = props.width,
77
85
  titleClick = props.titleClick,
78
- show_page_id = props.show_page_id;
86
+ show_page_id = props.show_page_id,
87
+ overlapping = props.overlapping;
79
88
 
80
89
  var _useState = (0, _react.useState)(''),
81
90
  _useState2 = _slicedToArray(_useState, 2),
@@ -187,6 +196,16 @@ var Content = function Content(props) {
187
196
  h5
188
197
  )
189
198
  ),
199
+ overlapping && overlapping.length && _react2.default.createElement(
200
+ _cardV.DivStyles,
201
+ { display: "flex", className: "overlapping-container" },
202
+ _react2.default.createElement(_icon2.default, { name: "overlapping" }),
203
+ overlapping.length > 1 && _react2.default.createElement(
204
+ ParaStyles,
205
+ { margin: "0" },
206
+ overlapping.length
207
+ )
208
+ ) || null,
190
209
  tooltipVisibleSection == "bottom" && _react2.default.createElement(
191
210
  ToolTipStyles,
192
211
  {
@@ -48,7 +48,7 @@ var OverlayBackgroundStyles = (0, _styledComponents.css)(_templateObject);
48
48
 
49
49
  var ThumbnailStyles = _styledComponents2.default.div(_templateObject2, function (_ref) {
50
50
  var thumbnail = _ref.thumbnail;
51
- return "url(" + thumbnail + ") no-repeat 100%";
51
+ return "url(" + thumbnail + ") no-repeat 50%";
52
52
  }, function (_ref2) {
53
53
  var width = _ref2.width;
54
54
  return width === "sm" ? "90px" : width === "md" ? "125px" : "222px";
@@ -210,7 +210,7 @@ var Thumbnail = function Thumbnail(props) {
210
210
  );
211
211
  })
212
212
  ),
213
- _react2.default.createElement(
213
+ iframeurl && _react2.default.createElement(
214
214
  "div",
215
215
  {
216
216
  onMouseMove: handleMouseMove,
@@ -219,7 +219,7 @@ var Thumbnail = function Thumbnail(props) {
219
219
  },
220
220
  _react2.default.createElement("div", { className: "hover-pointer", ref: hoverPointerRef }),
221
221
  _react2.default.createElement("img", { ref: iframeImageRef, className: "iframe-image", src: iframeurl })
222
- )
222
+ ) || null
223
223
  );
224
224
  };
225
225
 
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _templateObject = _taggedTemplateLiteral(["\n position: relative;\n height: 50px;\n .start-time {\n position: absolute;\n top: 0px;\n .hours {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Medium';\n }\n .seperator {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n }\n .minutes {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n align-self: 1;\n }\n }\n .image-block {\n position: absolute;\n bottom: 0;\n }\n .end-time {\n position: absolute;\n right: 0;\n top: 8px;\n font-size: 10px;\n font-family: 'SFUIText-Light';\n color: #AFB2BA;\n .am-pm {\n margin-left: 4px;\n }\n }\n .am-pm {\n font-size: 10px;\n align-self: end;\n font-family: 'SFUIText-Light';\n color: #AFB2BA;\n margin-left: 3px;\n }\n"], ["\n position: relative;\n height: 50px;\n .start-time {\n position: absolute;\n top: 0px;\n .hours {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Medium';\n }\n .seperator {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n }\n .minutes {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n align-self: 1;\n }\n }\n .image-block {\n position: absolute;\n bottom: 0;\n }\n .end-time {\n position: absolute;\n right: 0;\n top: 8px;\n font-size: 10px;\n font-family: 'SFUIText-Light';\n color: #AFB2BA;\n .am-pm {\n margin-left: 4px;\n }\n }\n .am-pm {\n font-size: 10px;\n align-self: end;\n font-family: 'SFUIText-Light';\n color: #AFB2BA;\n margin-left: 3px;\n }\n"]);
8
+
9
+ var _react = require("react");
10
+
11
+ var _react2 = _interopRequireDefault(_react);
12
+
13
+ var _styledComponents = require("styled-components");
14
+
15
+ var _styledComponents2 = _interopRequireDefault(_styledComponents);
16
+
17
+ var _propTypes = require("prop-types");
18
+
19
+ var _propTypes2 = _interopRequireDefault(_propTypes);
20
+
21
+ var _dateTime = require("../dateTime");
22
+
23
+ var _dateTime2 = _interopRequireDefault(_dateTime);
24
+
25
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
+
27
+ function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
+
29
+ var TimelineBlock = _styledComponents2.default.div(_templateObject);
30
+
31
+ var Timeline = function Timeline(props) {
32
+ var startTime = props.startTime,
33
+ endTime = props.endTime;
34
+
35
+
36
+ var getTimeString = function getTimeString(date, type) {
37
+ var string = '';
38
+ if (date) {
39
+ var timeString = _dateTime2.default.toTimeString(date, "HH:MM AP");
40
+
41
+ if (type === 'hours') {
42
+ string = timeString.split(':')[0];
43
+ } else if (type === 'minutes') {
44
+ string = timeString.split(':')[1].split(' ')[0];
45
+ } else if (type === 'ampm') {
46
+ string = timeString.split(' ')[1];
47
+ }
48
+ }
49
+ return string;
50
+ };
51
+
52
+ return _react2.default.createElement(
53
+ TimelineBlock,
54
+ null,
55
+ _react2.default.createElement(
56
+ "div",
57
+ { className: "start-time" },
58
+ _react2.default.createElement(
59
+ "span",
60
+ { className: "hours" },
61
+ getTimeString(startTime, 'hours')
62
+ ),
63
+ _react2.default.createElement(
64
+ "span",
65
+ { className: "seperator" },
66
+ ":"
67
+ ),
68
+ _react2.default.createElement(
69
+ "span",
70
+ { className: "minutes" },
71
+ getTimeString(startTime, 'minutes')
72
+ ),
73
+ _react2.default.createElement(
74
+ "span",
75
+ { className: "am-pm" },
76
+ getTimeString(startTime, 'ampm')
77
+ )
78
+ ),
79
+ _react2.default.createElement(
80
+ "div",
81
+ { className: "image-block" },
82
+ _react2.default.createElement(
83
+ "svg",
84
+ { width: "222", height: "23", viewBox: "0 0 222 23", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
85
+ _react2.default.createElement("rect", { width: "2", height: "23", rx: "1", fill: "#00CEC6" }),
86
+ _react2.default.createElement("rect", { x: "15", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
87
+ _react2.default.createElement("rect", { x: "29", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
88
+ _react2.default.createElement("rect", { x: "42", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
89
+ _react2.default.createElement("rect", { x: "56", y: "8", width: "1", height: "15", rx: "0.5", fill: "#303F51" }),
90
+ _react2.default.createElement("rect", { x: "70", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
91
+ _react2.default.createElement("rect", { x: "84", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
92
+ _react2.default.createElement("rect", { x: "97", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
93
+ _react2.default.createElement("rect", { x: "111", y: "8", width: "1", height: "15", rx: "0.5", fill: "#303F51" }),
94
+ _react2.default.createElement("rect", { x: "125", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
95
+ _react2.default.createElement("rect", { x: "139", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
96
+ _react2.default.createElement("rect", { x: "152", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
97
+ _react2.default.createElement("rect", { x: "166", y: "8", width: "1", height: "15", rx: "0.5", fill: "#303F51" }),
98
+ _react2.default.createElement("rect", { x: "180", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
99
+ _react2.default.createElement("rect", { x: "194", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
100
+ _react2.default.createElement("rect", { x: "207", y: "19", width: "1", height: "4", rx: "0.5", fill: "#1B2B3F" }),
101
+ _react2.default.createElement("rect", { x: "221", y: "8", width: "1", height: "15", rx: "0.5", fill: "#FF6C56" })
102
+ )
103
+ ),
104
+ _react2.default.createElement(
105
+ "div",
106
+ { className: "end-time" },
107
+ _react2.default.createElement(
108
+ "span",
109
+ { className: "hours" },
110
+ getTimeString(endTime, 'hours')
111
+ ),
112
+ _react2.default.createElement(
113
+ "span",
114
+ { className: "seperator" },
115
+ ":"
116
+ ),
117
+ _react2.default.createElement(
118
+ "span",
119
+ { className: "minutes" },
120
+ getTimeString(endTime, 'minutes')
121
+ ),
122
+ _react2.default.createElement(
123
+ "span",
124
+ { className: "am-pm" },
125
+ getTimeString(endTime, 'ampm')
126
+ )
127
+ )
128
+ );
129
+ };
130
+
131
+ Timeline.propTypes = {
132
+ startTime: _propTypes2.default.string,
133
+ endTime: _propTypes2.default.string
134
+ };
135
+
136
+ exports.default = Timeline;
@@ -51,7 +51,8 @@ var Icon = function Icon(props) {
51
51
  fill: props.color,
52
52
  stroke: props.stroke,
53
53
  strokeWidth: icon.strokeWidth,
54
- fillRule: icon.fillRule
54
+ fillRule: icon.fillRule,
55
+ clipRule: icon.clipRule
55
56
  });
56
57
  })
57
58
  )
@@ -10,9 +10,33 @@ var _storyHelpers = require("../../_helpers/story-helpers");
10
10
 
11
11
  var _components = require("../../components");
12
12
 
13
+ var _icons = require("./icons.json");
14
+
13
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
 
17
+ var iconsArr = Object.keys(_icons.icons).map(function (icon) {
18
+ var iconObj = {
19
+ name: icon,
20
+ width: _icons.icons[icon].width,
21
+ height: _icons.icons[icon].height
22
+ };
23
+ return iconObj;
24
+ });
25
+ console.log(iconsArr);
15
26
  (0, _react3.storiesOf)("Icon").add("default", function () {
27
+ return _react2.default.createElement(
28
+ _storyHelpers.Example,
29
+ { title: "Icons", background: "dark" },
30
+ _react2.default.createElement(
31
+ _storyHelpers.Stack,
32
+ null,
33
+ iconsArr.map(function (icon) {
34
+ return _react2.default.createElement(_components.Icon, { name: icon.name, width: icon.width, height: icon.height, color: "#fff" });
35
+ })
36
+ )
37
+ );
38
+ });
39
+ (0, _react3.storiesOf)("Icon").add("default 1", function () {
16
40
  return _react2.default.createElement(
17
41
  _storyHelpers.Example,
18
42
  { title: "Icons", background: "dark" },
@@ -83,6 +107,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
83
107
  _react2.default.createElement(
84
108
  _storyHelpers.Stack,
85
109
  null,
110
+ _react2.default.createElement(_components.Icon, { name: "dialogue-miss", width: 24, height: 24 }),
111
+ _react2.default.createElement(_components.Icon, { name: "voice-mismatch", width: 20, height: 20 }),
112
+ _react2.default.createElement(_components.Icon, { name: "me-issue", width: 24, height: 24 }),
113
+ _react2.default.createElement(_components.Icon, { name: "av-cut", width: 20, height: 20 }),
114
+ _react2.default.createElement(_components.Icon, { name: "short-replacement", width: 24, height: 24 }),
115
+ _react2.default.createElement(_components.Icon, { name: "meaning-error", width: 20, height: 20 }),
116
+ _react2.default.createElement(_components.Icon, { name: "pronunciation", width: 24, height: 24 }),
86
117
  _react2.default.createElement(_components.Icon, { name: "volume", width: 18, height: 18 }),
87
118
  _react2.default.createElement(_components.Icon, { name: "share", width: 18, height: 18 }),
88
119
  _react2.default.createElement(_components.Icon, { name: "settings", width: 16, height: 16 }),
@@ -1159,6 +1159,97 @@
1159
1159
  "width": 24,
1160
1160
  "height": 20,
1161
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
1198
+ },
1199
+ "program-schedular": {
1200
+ "paths": [
1201
+ "M12.4444 8H3.55556V9.77778H12.4444V8ZM14.2222 1.77778H13.3333V0H11.5556V1.77778H4.44444V0H2.66667V1.77778H1.77778C0.791111 1.77778 0.00888888 2.57778 0.00888888 3.55556L0 16C0 16.9778 0.791111 17.7778 1.77778 17.7778H14.2222C15.2 17.7778 16 16.9778 16 16V3.55556C16 2.57778 15.2 1.77778 14.2222 1.77778ZM14.2222 16H1.77778V6.22222H14.2222V16ZM9.77778 11.5556H3.55556V13.3333H9.77778V11.5556Z"
1202
+ ],
1203
+ "width": 16,
1204
+ "height": 18
1205
+ },
1206
+ "bulk-schedular": {
1207
+ "paths": [
1208
+ "M5.33333 8H3.55556V9.77778H5.33333V8ZM8.88889 8H7.11111V9.77778H8.88889V8ZM12.4444 8H10.6667V9.77778H12.4444V8ZM14.2222 1.77778H13.3333V0H11.5556V1.77778H4.44444V0H2.66667V1.77778H1.77778C0.791111 1.77778 0.00888888 2.57778 0.00888888 3.55556L0 16C0 16.9778 0.791111 17.7778 1.77778 17.7778H14.2222C15.2 17.7778 16 16.9778 16 16V3.55556C16 2.57778 15.2 1.77778 14.2222 1.77778ZM14.2222 16H1.77778V6.22222H14.2222V16Z"
1209
+ ],
1210
+ "width": 16,
1211
+ "height": 18
1212
+ },
1213
+ "asset-pending": {
1214
+ "paths": [
1215
+ "M5.60889 14.2222L7.77778 12.0533L9.94667 14.2222L10.8889 13.28L8.72 11.1111L10.8889 8.94222L9.94667 8L7.77778 10.1689L5.60889 8L4.66667 8.94222L6.83556 11.1111L4.66667 13.28L5.60889 14.2222ZM14.2222 1.77778H13.3333V0H11.5556V1.77778H4.44444V0H2.66667V1.77778H1.77778C0.791111 1.77778 0.00888888 2.57778 0.00888888 3.55556L0 16C0 16.9778 0.791111 17.7778 1.77778 17.7778H14.2222C15.2 17.7778 16 16.9778 16 16V3.55556C16 2.57778 15.2 1.77778 14.2222 1.77778ZM14.2222 16H1.77778V6.22222H14.2222V16Z"
1216
+ ],
1217
+ "width": 16,
1218
+ "height": 18
1219
+ },
1220
+ "asset-overlapping": {
1221
+ "paths": [
1222
+ "M12.4444 9.77778H8V14.2222H12.4444V9.77778ZM11.5556 0V1.77778H4.44444V0H2.66667V1.77778H1.77778C0.791111 1.77778 0.00888888 2.57778 0.00888888 3.55556L0 16C0 16.9778 0.791111 17.7778 1.77778 17.7778H14.2222C15.2 17.7778 16 16.9778 16 16V3.55556C16 2.57778 15.2 1.77778 14.2222 1.77778H13.3333V0H11.5556ZM14.2222 16H1.77778V6.22222H14.2222V16Z"
1223
+ ],
1224
+ "width": 16,
1225
+ "height": 18
1226
+ },
1227
+ "asset-ingested": {
1228
+ "paths": [
1229
+ "M12.0267 8.94222L11.0844 8L6.74667 12.3378L4.86222 10.4533L3.92 11.3956L6.74667 14.2222L12.0267 8.94222ZM14.2222 1.77778H13.3333V0H11.5556V1.77778H4.44444V0H2.66667V1.77778H1.77778C0.791111 1.77778 0.00888888 2.57778 0.00888888 3.55556L0 16C0 16.9778 0.791111 17.7778 1.77778 17.7778H14.2222C15.2 17.7778 16 16.9778 16 16V3.55556C16 2.57778 15.2 1.77778 14.2222 1.77778ZM14.2222 16H1.77778V6.22222H14.2222V16Z"
1230
+ ],
1231
+ "width": 16,
1232
+ "height": 18
1233
+ },
1234
+ "overlapping": {
1235
+ "paths": [
1236
+ "M0 8.57143V10H12.8571V8.57143H0ZM0 5.71429H12.8571V7.14286H0V5.71429ZM0 0H12.8571V4.28571H0V0Z"
1237
+ ],
1238
+ "width": 13,
1239
+ "height": 10,
1240
+ "fillRule": "evenodd",
1241
+ "clipRule": "evenodd"
1242
+ },
1243
+ "curate": {
1244
+ "paths": ["M0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8ZM14.5455 8C14.5455 11.615 11.615 14.5455 8 14.5455C4.38505 14.5455 1.45455 11.615 1.45455 8C1.45455 4.38505 4.38505 1.45455 8 1.45455C11.615 1.45455 14.5455 4.38505 14.5455 8ZM10.1818 5.09091C10.5835 5.09091 10.9091 5.41652 10.9091 5.81818V10.1818C10.9091 10.5835 10.5835 10.9091 10.1818 10.9091H5.81818C5.41652 10.9091 5.09091 10.5835 5.09091 10.1818V5.81818C5.09091 5.41652 5.41652 5.09091 5.81818 5.09091H10.1818ZM6.54545 9.45455V6.54545H9.45455V9.45455H6.54545Z"],
1245
+ "width": 16,
1246
+ "height": 16,
1247
+ "fillRule": "evenodd"
1248
+ },
1249
+ "camera": {
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
+ "width": 18,
1252
+ "height": 16
1162
1253
  }
1163
1254
  }
1164
1255
  }
@@ -207,7 +207,7 @@ InputText.defaultProps = {
207
207
  error: null,
208
208
  onChange: null,
209
209
  type: 'text',
210
- maxlength: 50,
210
+ // maxlength: 50,
211
211
  theme: 'light',
212
212
  value: '',
213
213
  showLengthCount: false
@@ -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.2",
3
+ "version": "8.9.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.2",
10
+ "@desynova-digital/tokens": "8.9.0",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },