@desynova-digital/components 9.3.13 → 9.3.15

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.
@@ -18,7 +18,7 @@ var _content = _interopRequireDefault(require("./content"));
18
18
  var _timeline = _interopRequireDefault(require("./timeline"));
19
19
  var _contentV = _interopRequireDefault(require("./contentV2"));
20
20
  var _thumbnailV = _interopRequireDefault(require("./thumbnailV2"));
21
- var _excluded = ["selectionAvailable", "selected", "onSelectionChange"];
21
+ var _excluded = ["selectionAvailable", "selected", "indeterminate", "onSelectionChange"];
22
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9; // components
23
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
24
24
  /**
@@ -80,6 +80,7 @@ var CardV2 = function CardV2(_ref7) {
80
80
  var _colors$props$theme, _colors$props$theme$l;
81
81
  var selectionAvailable = _ref7.selectionAvailable,
82
82
  selected = _ref7.selected,
83
+ indeterminate = _ref7.indeterminate,
83
84
  onSelectionChange = _ref7.onSelectionChange,
84
85
  props = (0, _objectWithoutProperties2["default"])(_ref7, _excluded);
85
86
  var width = props.width,
@@ -111,11 +112,15 @@ var CardV2 = function CardV2(_ref7) {
111
112
  }
112
113
  return /*#__PURE__*/_react["default"].createElement(CardStyles, (0, _extends2["default"])({}, props, {
113
114
  title: undefined,
114
- "data-selected": Boolean(selectionAvailable && selected)
115
+ "data-selected": Boolean(selected || indeterminate)
115
116
  }), selectionAvailable && /*#__PURE__*/_react["default"].createElement(CardSelectionCheckbox, {
116
117
  accentColor: (_colors$props$theme = _tokens.colors[props.theme]) === null || _colors$props$theme === void 0 ? void 0 : (_colors$props$theme$l = _colors$props$theme.label) === null || _colors$props$theme$l === void 0 ? void 0 : _colors$props$theme$l.text,
117
118
  "aria-label": "Select ".concat(props.h1 || props.title || 'collateral'),
118
119
  checked: selected,
120
+ "aria-checked": indeterminate ? 'mixed' : selected,
121
+ ref: function ref(input) {
122
+ if (input) input.indeterminate = Boolean(indeterminate);
123
+ },
119
124
  disabled: !onSelectionChange,
120
125
  onClick: function onClick(event) {
121
126
  return event.stopPropagation();
@@ -128,6 +133,7 @@ var CardV2 = function CardV2(_ref7) {
128
133
  CardV2.propTypes = {
129
134
  selectionAvailable: _propTypes["default"].bool,
130
135
  selected: _propTypes["default"].bool,
136
+ indeterminate: _propTypes["default"].bool,
131
137
  onSelectionChange: _propTypes["default"].func,
132
138
  h1: _propTypes["default"].string.isRequired,
133
139
  h2: _propTypes["default"].string,
@@ -163,6 +169,7 @@ CardV2.propTypes = {
163
169
  CardV2.defaultProps = {
164
170
  selectionAvailable: false,
165
171
  selected: false,
172
+ indeterminate: false,
166
173
  isSegment: false,
167
174
  theme: 'dark',
168
175
  width: 'lg',
@@ -2069,6 +2069,67 @@
2069
2069
  ],
2070
2070
  "width": 16,
2071
2071
  "height": 20
2072
+ },
2073
+ "tessact-pending": {
2074
+ "paths": [
2075
+ "M5.994 0A5.997 5.997 0 0 0 0 6c0 3.312 2.682 6 5.994 6A6.003 6.003 0 0 0 12 6c0-3.312-2.688-6-6.006-6zM6 10.8A4.799 4.799 0 0 1 1.2 6c0-2.652 2.148-4.8 4.8-4.8 2.652 0 4.8 2.148 4.8 4.8 0 2.652-2.148 4.8-4.8 4.8z",
2076
+ "M6.3 3h-.9v3.6l3.15 1.89.45-.738L6.3 6.15z"
2077
+ ],
2078
+ "width": 12,
2079
+ "height": 12
2080
+ },
2081
+ "tessact-in-queue": {
2082
+ "paths": ["M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h12v2H3v-2z"],
2083
+ "width": 24,
2084
+ "height": 24
2085
+ },
2086
+ "tessact-success": {
2087
+ "paths": [
2088
+ "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 8Z",
2089
+ "M5.56904 8.09763C5.43886 7.96746 5.22781 7.96746 5.09763 8.09763C4.96746 8.22781 4.96746 8.43886 5.09763 8.56904L6.7643 10.2357C6.89447 10.3659 7.10553 10.3659 7.2357 10.2357L10.9024 6.56904C11.0325 6.43886 11.0325 6.22781 10.9024 6.09763C10.7722 5.96746 10.5611 5.96746 10.431 6.09763L7 9.5286L5.56904 8.09763Z"
2090
+ ],
2091
+ "width": 16,
2092
+ "height": 16,
2093
+ "fillRule": "evenodd",
2094
+ "clipRule": "evenodd"
2095
+ },
2096
+ "tessact-analysis-failed": {
2097
+ "paths": [
2098
+ "M6.4275 8.8275C6.5425 8.7125 6.6 8.57 6.6 8.4C6.6 8.23 6.5425 8.0875 6.4275 7.9725C6.3125 7.8575 6.17 7.8 6 7.8C5.83 7.8 5.6875 7.8575 5.5725 7.9725C5.4575 8.0875 5.4 8.23 5.4 8.4C5.4 8.57 5.4575 8.7125 5.5725 8.8275C5.6875 8.9425 5.83 9 6 9C6.17 9 6.3125 8.9425 6.4275 8.8275ZM5.4 6.6H6.6V3H5.4V6.6ZM6 12C5.17 12 4.39 11.8425 3.66 11.5275C2.93 11.2125 2.295 10.785 1.755 10.245C1.215 9.705 0.7875 9.07 0.4725 8.34C0.1575 7.61 0 6.83 0 6C0 5.17 0.1575 4.39 0.4725 3.66C0.7875 2.93 1.215 2.295 1.755 1.755C2.295 1.215 2.93 0.7875 3.66 0.4725C4.39 0.1575 5.17 0 6 0C6.83 0 7.61 0.1575 8.34 0.4725C9.07 0.7875 9.705 1.215 10.245 1.755C10.785 2.295 11.2125 2.93 11.5275 3.66C11.8425 4.39 12 5.17 12 6C12 6.83 11.8425 7.61 11.5275 8.34C11.2125 9.07 10.785 9.705 10.245 10.245C9.705 10.785 9.07 11.2125 8.34 11.5275C7.61 11.8425 6.83 12 6 12ZM6 10.8C7.34 10.8 8.475 10.335 9.405 9.405C10.335 8.475 10.8 7.34 10.8 6C10.8 4.66 10.335 3.525 9.405 2.595C8.475 1.665 7.34 1.2 6 1.2C4.66 1.2 3.525 1.665 2.595 2.595C1.665 3.525 1.2 4.66 1.2 6C1.2 7.34 1.665 8.475 2.595 9.405C3.525 10.335 4.66 10.8 6 10.8Z"
2099
+ ],
2100
+ "width": 12,
2101
+ "height": 12
2102
+ },
2103
+ "tessact-upload-failed": {
2104
+ "paths": [
2105
+ "M3.288 10.706h4.933V5.765h3.288L5.754 0 0 5.765h3.288v4.94z",
2106
+ "M0 12.353h11.509V14H0v-1.647z"
2107
+ ],
2108
+ "width": 12,
2109
+ "height": 14
2110
+ },
2111
+ "tessact-uploading": {
2112
+ "paths": [
2113
+ "M3.288 10.706h4.933V5.765h3.288L5.754 0 0 5.765h3.288v4.94z",
2114
+ "M0 12.353h11.509V14H0v-1.647z"
2115
+ ],
2116
+ "width": 12,
2117
+ "height": 14
2118
+ },
2119
+ "tessact-copy": {
2120
+ "paths": [
2121
+ "M8.105 0H1.158C.52 0 0 .521 0 1.158v8.105h1.158V1.158h6.947V0zm-.579 2.316H3.474c-.637 0-1.152.52-1.152 1.158l-.006 8.105c0 .637.515 1.158 1.152 1.158h6.374c.637 0 1.158-.521 1.158-1.158v-5.79L7.526 2.316zm-4.052 9.263V3.474h3.473v2.894h2.895v5.21H3.474z"
2122
+ ],
2123
+ "width": 11,
2124
+ "height": 13,
2125
+ "fillRule": "nonzero"
2126
+ },
2127
+ "tessact-refresh": {
2128
+ "paths": [
2129
+ "M11.935 2.056A6.963 6.963 0 0 0 6.991 0 6.99 6.99 0 0 0 0 7c0 3.867 3.124 7 6.991 7 3.264 0 5.985-2.231 6.764-5.25h-1.82a5.242 5.242 0 0 1-4.944 3.5A5.254 5.254 0 0 1 1.741 7a5.254 5.254 0 0 1 5.25-5.25c1.453 0 2.748.604 3.693 1.558L7.866 6.125h6.125V0l-2.056 2.056z"
2130
+ ],
2131
+ "width": 14,
2132
+ "height": 14
2072
2133
  }
2073
2134
  }
2074
- }
2135
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.3.13",
3
+ "version": "9.3.15",
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": "9.3.13",
10
+ "@desynova-digital/tokens": "9.3.15",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },