@popmenu/common-ui 0.49.0 → 0.50.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.
- package/build/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -0
- package/build/components/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -0
- package/build/components/BrowserSilhouette/index.d.ts +1 -0
- package/build/components/index.d.ts +1 -0
- package/build/index.es.js +69 -36
- package/build/index.es.js.map +1 -1
- package/build/index.js +68 -34
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -157,26 +157,26 @@ function __rest(s, e) {
|
|
|
157
157
|
return t;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
var _g$
|
|
160
|
+
var _g$1e, _defs$J;
|
|
161
161
|
|
|
162
|
-
function _extends$
|
|
162
|
+
function _extends$29() { _extends$29 = 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; }; return _extends$29.apply(this, arguments); }
|
|
163
163
|
|
|
164
164
|
function SvgCheckCircle(props) {
|
|
165
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
165
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$29({
|
|
166
166
|
viewBox: "0 0 16 16",
|
|
167
167
|
fill: "none",
|
|
168
168
|
strokeLinecap: "round",
|
|
169
169
|
strokeLinejoin: "round",
|
|
170
170
|
width: "1em",
|
|
171
171
|
height: "1em"
|
|
172
|
-
}, props), _g$
|
|
172
|
+
}, props), _g$1e || (_g$1e = /*#__PURE__*/React__namespace.createElement("g", {
|
|
173
173
|
clipPath: "url(#check-circle_svg__clip0_8_5831)",
|
|
174
174
|
stroke: "currentColor"
|
|
175
175
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
176
176
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
177
177
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
178
178
|
d: "M14.667 2.667L8 9.34l-2-2"
|
|
179
|
-
}))), _defs$
|
|
179
|
+
}))), _defs$J || (_defs$J = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
180
180
|
id: "check-circle_svg__clip0_8_5831"
|
|
181
181
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
182
182
|
fill: "currentColor",
|
|
@@ -184,24 +184,24 @@ function SvgCheckCircle(props) {
|
|
|
184
184
|
})))));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
var _g$
|
|
187
|
+
var _g$1c, _defs$H;
|
|
188
188
|
|
|
189
|
-
function _extends$
|
|
189
|
+
function _extends$26() { _extends$26 = 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; }; return _extends$26.apply(this, arguments); }
|
|
190
190
|
|
|
191
191
|
function SvgXCircle(props) {
|
|
192
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
192
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$26({
|
|
193
193
|
viewBox: "0 0 16 16",
|
|
194
194
|
fill: "none",
|
|
195
195
|
strokeLinecap: "round",
|
|
196
196
|
strokeLinejoin: "round",
|
|
197
197
|
width: "1em",
|
|
198
198
|
height: "1em"
|
|
199
|
-
}, props), _g$
|
|
199
|
+
}, props), _g$1c || (_g$1c = /*#__PURE__*/React__namespace.createElement("g", {
|
|
200
200
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
201
201
|
stroke: "currentColor"
|
|
202
202
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
203
203
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
204
|
-
}))), _defs$
|
|
204
|
+
}))), _defs$H || (_defs$H = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
205
205
|
id: "x-circle_svg__clip0_8_6136"
|
|
206
206
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
207
207
|
fill: "currentColor",
|
|
@@ -209,24 +209,24 @@ function SvgXCircle(props) {
|
|
|
209
209
|
})))));
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
var _g$
|
|
212
|
+
var _g$14, _defs$B;
|
|
213
213
|
|
|
214
|
-
function _extends$
|
|
214
|
+
function _extends$1X() { _extends$1X = 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; }; return _extends$1X.apply(this, arguments); }
|
|
215
215
|
|
|
216
216
|
function SvgInfo(props) {
|
|
217
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
217
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1X({
|
|
218
218
|
viewBox: "0 0 16 16",
|
|
219
219
|
fill: "none",
|
|
220
220
|
strokeLinecap: "round",
|
|
221
221
|
strokeLinejoin: "round",
|
|
222
222
|
width: "1em",
|
|
223
223
|
height: "1em"
|
|
224
|
-
}, props), _g$
|
|
224
|
+
}, props), _g$14 || (_g$14 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
225
225
|
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
226
226
|
stroke: "currentColor"
|
|
227
227
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
228
228
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
229
|
-
}))), _defs$
|
|
229
|
+
}))), _defs$B || (_defs$B = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
230
230
|
id: "info_svg__clip0_8_5377"
|
|
231
231
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
232
232
|
fill: "currentColor",
|
|
@@ -234,24 +234,24 @@ function SvgInfo(props) {
|
|
|
234
234
|
})))));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
var _g
|
|
237
|
+
var _g$10, _defs$A;
|
|
238
238
|
|
|
239
|
-
function _extends$
|
|
239
|
+
function _extends$1N() { _extends$1N = 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; }; return _extends$1N.apply(this, arguments); }
|
|
240
240
|
|
|
241
241
|
function SvgMinusCircle(props) {
|
|
242
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
242
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1N({
|
|
243
243
|
viewBox: "0 0 16 16",
|
|
244
244
|
fill: "none",
|
|
245
245
|
strokeLinecap: "round",
|
|
246
246
|
strokeLinejoin: "round",
|
|
247
247
|
width: "1em",
|
|
248
248
|
height: "1em"
|
|
249
|
-
}, props), _g
|
|
249
|
+
}, props), _g$10 || (_g$10 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
250
250
|
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
251
251
|
stroke: "currentColor"
|
|
252
252
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
253
253
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
254
|
-
}))), _defs$
|
|
254
|
+
}))), _defs$A || (_defs$A = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
255
255
|
id: "minus-circle_svg__clip0_8_5970"
|
|
256
256
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
257
257
|
fill: "currentColor",
|
|
@@ -259,24 +259,24 @@ function SvgMinusCircle(props) {
|
|
|
259
259
|
})))));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
var _g
|
|
262
|
+
var _g$$, _defs$z;
|
|
263
263
|
|
|
264
|
-
function _extends$
|
|
264
|
+
function _extends$1J() { _extends$1J = 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; }; return _extends$1J.apply(this, arguments); }
|
|
265
265
|
|
|
266
266
|
function SvgPlusCircle(props) {
|
|
267
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
267
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1J({
|
|
268
268
|
viewBox: "0 0 16 16",
|
|
269
269
|
fill: "none",
|
|
270
270
|
strokeLinecap: "round",
|
|
271
271
|
strokeLinejoin: "round",
|
|
272
272
|
width: "1em",
|
|
273
273
|
height: "1em"
|
|
274
|
-
}, props), _g
|
|
274
|
+
}, props), _g$$ || (_g$$ = /*#__PURE__*/React__namespace.createElement("g", {
|
|
275
275
|
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
276
276
|
stroke: "currentColor"
|
|
277
277
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
278
278
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
|
|
279
|
-
}))), _defs$
|
|
279
|
+
}))), _defs$z || (_defs$z = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
280
280
|
id: "plus-circle_svg__clip0_8_5870"
|
|
281
281
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
282
282
|
fill: "currentColor",
|
|
@@ -286,10 +286,10 @@ function SvgPlusCircle(props) {
|
|
|
286
286
|
|
|
287
287
|
var _path$E;
|
|
288
288
|
|
|
289
|
-
function _extends$
|
|
289
|
+
function _extends$1w() { _extends$1w = 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; }; return _extends$1w.apply(this, arguments); }
|
|
290
290
|
|
|
291
291
|
function SvgUser(props) {
|
|
292
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
292
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1w({
|
|
293
293
|
viewBox: "0 0 16 16",
|
|
294
294
|
fill: "none",
|
|
295
295
|
strokeLinecap: "round",
|
|
@@ -302,24 +302,24 @@ function SvgUser(props) {
|
|
|
302
302
|
})));
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
var _g$
|
|
305
|
+
var _g$R, _defs$s;
|
|
306
306
|
|
|
307
|
-
function _extends$
|
|
307
|
+
function _extends$1s() { _extends$1s = 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; }; return _extends$1s.apply(this, arguments); }
|
|
308
308
|
|
|
309
309
|
function SvgError(props) {
|
|
310
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
310
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1s({
|
|
311
311
|
viewBox: "0 0 16 16",
|
|
312
312
|
fill: "none",
|
|
313
313
|
strokeLinecap: "round",
|
|
314
314
|
strokeLinejoin: "round",
|
|
315
315
|
width: "1em",
|
|
316
316
|
height: "1em"
|
|
317
|
-
}, props), _g$
|
|
317
|
+
}, props), _g$R || (_g$R = /*#__PURE__*/React__namespace.createElement("g", {
|
|
318
318
|
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
319
319
|
stroke: "currentColor"
|
|
320
320
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
321
321
|
d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
|
|
322
|
-
}))), _defs$
|
|
322
|
+
}))), _defs$s || (_defs$s = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
323
323
|
id: "error_svg__clip0_8_5411"
|
|
324
324
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
325
325
|
fill: "currentColor",
|
|
@@ -329,10 +329,10 @@ function SvgError(props) {
|
|
|
329
329
|
|
|
330
330
|
var _path$B;
|
|
331
331
|
|
|
332
|
-
function _extends$
|
|
332
|
+
function _extends$1r() { _extends$1r = 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; }; return _extends$1r.apply(this, arguments); }
|
|
333
333
|
|
|
334
334
|
function SvgWarning(props) {
|
|
335
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
335
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1r({
|
|
336
336
|
viewBox: "0 0 16 16",
|
|
337
337
|
fill: "none",
|
|
338
338
|
strokeLinecap: "round",
|
|
@@ -540,6 +540,39 @@ Avatar.defaultProps = {
|
|
|
540
540
|
};
|
|
541
541
|
Avatar.displayName = 'Avatar';
|
|
542
542
|
|
|
543
|
+
var useBrowserSilhouetteStyles = styles.makeStyles(function (theme) { return ({
|
|
544
|
+
circle: {
|
|
545
|
+
backgroundColor: theme.palette.grey[300],
|
|
546
|
+
borderRadius: '50%',
|
|
547
|
+
height: theme.spacing(0.65),
|
|
548
|
+
width: theme.spacing(0.65),
|
|
549
|
+
margin: theme.spacing(1) + "px 0 " + theme.spacing(1) + "px " + theme.spacing(1) + "px",
|
|
550
|
+
},
|
|
551
|
+
container: {
|
|
552
|
+
border: "1px solid " + theme.palette.secondary.light,
|
|
553
|
+
borderRadius: theme.spacing(0.5),
|
|
554
|
+
flexGrow: 1,
|
|
555
|
+
},
|
|
556
|
+
titleBar: {
|
|
557
|
+
display: 'flex',
|
|
558
|
+
flexDirection: 'row',
|
|
559
|
+
borderBottom: "1px solid " + theme.palette.secondary.light,
|
|
560
|
+
width: '100%',
|
|
561
|
+
},
|
|
562
|
+
}); });
|
|
563
|
+
|
|
564
|
+
var BrowserSilhouette = function (_a) {
|
|
565
|
+
var children = _a.children;
|
|
566
|
+
var classes = useBrowserSilhouetteStyles();
|
|
567
|
+
return (React__default['default'].createElement(core.Box, { display: "flex" },
|
|
568
|
+
React__default['default'].createElement("div", { className: classes.container },
|
|
569
|
+
React__default['default'].createElement("div", { className: classes.titleBar },
|
|
570
|
+
React__default['default'].createElement("div", { className: classes.circle }),
|
|
571
|
+
React__default['default'].createElement("div", { className: classes.circle }),
|
|
572
|
+
React__default['default'].createElement("div", { className: classes.circle })),
|
|
573
|
+
children)));
|
|
574
|
+
};
|
|
575
|
+
|
|
543
576
|
var useButtonStyles = styles.makeStyles(function () { return ({
|
|
544
577
|
root: {
|
|
545
578
|
minWidth: 'unset',
|
|
@@ -1526,6 +1559,7 @@ Object.defineProperty(exports, 'Tabs', {
|
|
|
1526
1559
|
}
|
|
1527
1560
|
});
|
|
1528
1561
|
exports.Avatar = Avatar;
|
|
1562
|
+
exports.BrowserSilhouette = BrowserSilhouette;
|
|
1529
1563
|
exports.Button = Button;
|
|
1530
1564
|
exports.Checkbox = Checkbox;
|
|
1531
1565
|
exports.Chip = Chip;
|