@popmenu/common-ui 0.48.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 +73 -40
- package/build/index.es.js.map +1 -1
- package/build/index.js +72 -38
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBrowserSilhouetteStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BrowserSilhouette as default } from './BrowserSilhouette';
|
|
@@ -7,6 +7,7 @@ export { default as AppBar, AppBarProps } from './AppBar';
|
|
|
7
7
|
export { default as Avatar, AvatarProps } from './Avatar';
|
|
8
8
|
export { default as Badge, BadgeProps } from './Badge';
|
|
9
9
|
export { default as Box, BoxProps } from './Box';
|
|
10
|
+
export { default as BrowserSilhouette } from './BrowserSilhouette';
|
|
10
11
|
export { default as Breadcrumbs, BreadcrumbsProps } from './Breadcrumbs';
|
|
11
12
|
export { default as Button, ButtonProps } from './Button';
|
|
12
13
|
export { default as ButtonBase, ButtonBaseProps } from './ButtonBase';
|
package/build/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Alert } from '@material-ui/lab/Alert';
|
|
2
|
-
import { makeStyles, Typography as Typography$1, useTheme as useTheme$1,
|
|
2
|
+
import { makeStyles, Box, Typography as Typography$1, useTheme as useTheme$1, Link as Link$1, Paper as Paper$1, TextField as TextField$1 } from '@material-ui/core';
|
|
3
3
|
export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Box, Breadcrumbs, ButtonBase, ClickAwayListener, Fab, GridList, Hidden, Modal, Popover, Popper, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, ThemeProvider, Toolbar, alpha, createTheme, darken, decomposeColor, getLuminance, hexToRgb, lighten, makeStyles, recomposeColor, rgbToHex } from '@material-ui/core';
|
|
4
4
|
export { default as AppBar } from '@material-ui/core/AppBar';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -90,26 +90,26 @@ function __rest(s, e) {
|
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
var _g$
|
|
93
|
+
var _g$1e, _defs$J;
|
|
94
94
|
|
|
95
|
-
function _extends$
|
|
95
|
+
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); }
|
|
96
96
|
|
|
97
97
|
function SvgCheckCircle(props) {
|
|
98
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
98
|
+
return /*#__PURE__*/React.createElement("svg", _extends$29({
|
|
99
99
|
viewBox: "0 0 16 16",
|
|
100
100
|
fill: "none",
|
|
101
101
|
strokeLinecap: "round",
|
|
102
102
|
strokeLinejoin: "round",
|
|
103
103
|
width: "1em",
|
|
104
104
|
height: "1em"
|
|
105
|
-
}, props), _g$
|
|
105
|
+
}, props), _g$1e || (_g$1e = /*#__PURE__*/React.createElement("g", {
|
|
106
106
|
clipPath: "url(#check-circle_svg__clip0_8_5831)",
|
|
107
107
|
stroke: "currentColor"
|
|
108
108
|
}, /*#__PURE__*/React.createElement("path", {
|
|
109
109
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
110
110
|
}), /*#__PURE__*/React.createElement("path", {
|
|
111
111
|
d: "M14.667 2.667L8 9.34l-2-2"
|
|
112
|
-
}))), _defs$
|
|
112
|
+
}))), _defs$J || (_defs$J = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
113
113
|
id: "check-circle_svg__clip0_8_5831"
|
|
114
114
|
}, /*#__PURE__*/React.createElement("path", {
|
|
115
115
|
fill: "currentColor",
|
|
@@ -117,24 +117,24 @@ function SvgCheckCircle(props) {
|
|
|
117
117
|
})))));
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
var _g$
|
|
120
|
+
var _g$1c, _defs$H;
|
|
121
121
|
|
|
122
|
-
function _extends$
|
|
122
|
+
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); }
|
|
123
123
|
|
|
124
124
|
function SvgXCircle(props) {
|
|
125
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
125
|
+
return /*#__PURE__*/React.createElement("svg", _extends$26({
|
|
126
126
|
viewBox: "0 0 16 16",
|
|
127
127
|
fill: "none",
|
|
128
128
|
strokeLinecap: "round",
|
|
129
129
|
strokeLinejoin: "round",
|
|
130
130
|
width: "1em",
|
|
131
131
|
height: "1em"
|
|
132
|
-
}, props), _g$
|
|
132
|
+
}, props), _g$1c || (_g$1c = /*#__PURE__*/React.createElement("g", {
|
|
133
133
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
134
134
|
stroke: "currentColor"
|
|
135
135
|
}, /*#__PURE__*/React.createElement("path", {
|
|
136
136
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
137
|
-
}))), _defs$
|
|
137
|
+
}))), _defs$H || (_defs$H = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
138
138
|
id: "x-circle_svg__clip0_8_6136"
|
|
139
139
|
}, /*#__PURE__*/React.createElement("path", {
|
|
140
140
|
fill: "currentColor",
|
|
@@ -142,24 +142,24 @@ function SvgXCircle(props) {
|
|
|
142
142
|
})))));
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
var _g$
|
|
145
|
+
var _g$14, _defs$B;
|
|
146
146
|
|
|
147
|
-
function _extends$
|
|
147
|
+
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); }
|
|
148
148
|
|
|
149
149
|
function SvgInfo(props) {
|
|
150
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
150
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1X({
|
|
151
151
|
viewBox: "0 0 16 16",
|
|
152
152
|
fill: "none",
|
|
153
153
|
strokeLinecap: "round",
|
|
154
154
|
strokeLinejoin: "round",
|
|
155
155
|
width: "1em",
|
|
156
156
|
height: "1em"
|
|
157
|
-
}, props), _g$
|
|
157
|
+
}, props), _g$14 || (_g$14 = /*#__PURE__*/React.createElement("g", {
|
|
158
158
|
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
159
159
|
stroke: "currentColor"
|
|
160
160
|
}, /*#__PURE__*/React.createElement("path", {
|
|
161
161
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
162
|
-
}))), _defs$
|
|
162
|
+
}))), _defs$B || (_defs$B = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
163
163
|
id: "info_svg__clip0_8_5377"
|
|
164
164
|
}, /*#__PURE__*/React.createElement("path", {
|
|
165
165
|
fill: "currentColor",
|
|
@@ -167,24 +167,24 @@ function SvgInfo(props) {
|
|
|
167
167
|
})))));
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
var _g
|
|
170
|
+
var _g$10, _defs$A;
|
|
171
171
|
|
|
172
|
-
function _extends$
|
|
172
|
+
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); }
|
|
173
173
|
|
|
174
174
|
function SvgMinusCircle(props) {
|
|
175
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
175
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1N({
|
|
176
176
|
viewBox: "0 0 16 16",
|
|
177
177
|
fill: "none",
|
|
178
178
|
strokeLinecap: "round",
|
|
179
179
|
strokeLinejoin: "round",
|
|
180
180
|
width: "1em",
|
|
181
181
|
height: "1em"
|
|
182
|
-
}, props), _g
|
|
182
|
+
}, props), _g$10 || (_g$10 = /*#__PURE__*/React.createElement("g", {
|
|
183
183
|
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
184
184
|
stroke: "currentColor"
|
|
185
185
|
}, /*#__PURE__*/React.createElement("path", {
|
|
186
186
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
187
|
-
}))), _defs$
|
|
187
|
+
}))), _defs$A || (_defs$A = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
188
188
|
id: "minus-circle_svg__clip0_8_5970"
|
|
189
189
|
}, /*#__PURE__*/React.createElement("path", {
|
|
190
190
|
fill: "currentColor",
|
|
@@ -192,24 +192,24 @@ function SvgMinusCircle(props) {
|
|
|
192
192
|
})))));
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
var _g
|
|
195
|
+
var _g$$, _defs$z;
|
|
196
196
|
|
|
197
|
-
function _extends$
|
|
197
|
+
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); }
|
|
198
198
|
|
|
199
199
|
function SvgPlusCircle(props) {
|
|
200
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
200
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1J({
|
|
201
201
|
viewBox: "0 0 16 16",
|
|
202
202
|
fill: "none",
|
|
203
203
|
strokeLinecap: "round",
|
|
204
204
|
strokeLinejoin: "round",
|
|
205
205
|
width: "1em",
|
|
206
206
|
height: "1em"
|
|
207
|
-
}, props), _g
|
|
207
|
+
}, props), _g$$ || (_g$$ = /*#__PURE__*/React.createElement("g", {
|
|
208
208
|
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
209
209
|
stroke: "currentColor"
|
|
210
210
|
}, /*#__PURE__*/React.createElement("path", {
|
|
211
211
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
|
|
212
|
-
}))), _defs$
|
|
212
|
+
}))), _defs$z || (_defs$z = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
213
213
|
id: "plus-circle_svg__clip0_8_5870"
|
|
214
214
|
}, /*#__PURE__*/React.createElement("path", {
|
|
215
215
|
fill: "currentColor",
|
|
@@ -217,42 +217,42 @@ function SvgPlusCircle(props) {
|
|
|
217
217
|
})))));
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
var _path$
|
|
220
|
+
var _path$E;
|
|
221
221
|
|
|
222
|
-
function _extends$
|
|
222
|
+
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); }
|
|
223
223
|
|
|
224
224
|
function SvgUser(props) {
|
|
225
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
225
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1w({
|
|
226
226
|
viewBox: "0 0 16 16",
|
|
227
227
|
fill: "none",
|
|
228
228
|
strokeLinecap: "round",
|
|
229
229
|
strokeLinejoin: "round",
|
|
230
230
|
width: "1em",
|
|
231
231
|
height: "1em"
|
|
232
|
-
}, props), _path$
|
|
232
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
233
233
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
|
|
234
234
|
stroke: "currentColor"
|
|
235
235
|
})));
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
var _g$
|
|
238
|
+
var _g$R, _defs$s;
|
|
239
239
|
|
|
240
|
-
function _extends$
|
|
240
|
+
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); }
|
|
241
241
|
|
|
242
242
|
function SvgError(props) {
|
|
243
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
243
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1s({
|
|
244
244
|
viewBox: "0 0 16 16",
|
|
245
245
|
fill: "none",
|
|
246
246
|
strokeLinecap: "round",
|
|
247
247
|
strokeLinejoin: "round",
|
|
248
248
|
width: "1em",
|
|
249
249
|
height: "1em"
|
|
250
|
-
}, props), _g$
|
|
250
|
+
}, props), _g$R || (_g$R = /*#__PURE__*/React.createElement("g", {
|
|
251
251
|
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
252
252
|
stroke: "currentColor"
|
|
253
253
|
}, /*#__PURE__*/React.createElement("path", {
|
|
254
254
|
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"
|
|
255
|
-
}))), _defs$
|
|
255
|
+
}))), _defs$s || (_defs$s = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
256
256
|
id: "error_svg__clip0_8_5411"
|
|
257
257
|
}, /*#__PURE__*/React.createElement("path", {
|
|
258
258
|
fill: "currentColor",
|
|
@@ -260,19 +260,19 @@ function SvgError(props) {
|
|
|
260
260
|
})))));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
var _path$
|
|
263
|
+
var _path$B;
|
|
264
264
|
|
|
265
|
-
function _extends$
|
|
265
|
+
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); }
|
|
266
266
|
|
|
267
267
|
function SvgWarning(props) {
|
|
268
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
268
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1r({
|
|
269
269
|
viewBox: "0 0 16 16",
|
|
270
270
|
fill: "none",
|
|
271
271
|
strokeLinecap: "round",
|
|
272
272
|
strokeLinejoin: "round",
|
|
273
273
|
width: "1em",
|
|
274
274
|
height: "1em"
|
|
275
|
-
}, props), _path$
|
|
275
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
276
276
|
d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
|
|
277
277
|
stroke: "currentColor"
|
|
278
278
|
})));
|
|
@@ -473,6 +473,39 @@ Avatar.defaultProps = {
|
|
|
473
473
|
};
|
|
474
474
|
Avatar.displayName = 'Avatar';
|
|
475
475
|
|
|
476
|
+
var useBrowserSilhouetteStyles = makeStyles$1(function (theme) { return ({
|
|
477
|
+
circle: {
|
|
478
|
+
backgroundColor: theme.palette.grey[300],
|
|
479
|
+
borderRadius: '50%',
|
|
480
|
+
height: theme.spacing(0.65),
|
|
481
|
+
width: theme.spacing(0.65),
|
|
482
|
+
margin: theme.spacing(1) + "px 0 " + theme.spacing(1) + "px " + theme.spacing(1) + "px",
|
|
483
|
+
},
|
|
484
|
+
container: {
|
|
485
|
+
border: "1px solid " + theme.palette.secondary.light,
|
|
486
|
+
borderRadius: theme.spacing(0.5),
|
|
487
|
+
flexGrow: 1,
|
|
488
|
+
},
|
|
489
|
+
titleBar: {
|
|
490
|
+
display: 'flex',
|
|
491
|
+
flexDirection: 'row',
|
|
492
|
+
borderBottom: "1px solid " + theme.palette.secondary.light,
|
|
493
|
+
width: '100%',
|
|
494
|
+
},
|
|
495
|
+
}); });
|
|
496
|
+
|
|
497
|
+
var BrowserSilhouette = function (_a) {
|
|
498
|
+
var children = _a.children;
|
|
499
|
+
var classes = useBrowserSilhouetteStyles();
|
|
500
|
+
return (React__default.createElement(Box, { display: "flex" },
|
|
501
|
+
React__default.createElement("div", { className: classes.container },
|
|
502
|
+
React__default.createElement("div", { className: classes.titleBar },
|
|
503
|
+
React__default.createElement("div", { className: classes.circle }),
|
|
504
|
+
React__default.createElement("div", { className: classes.circle }),
|
|
505
|
+
React__default.createElement("div", { className: classes.circle })),
|
|
506
|
+
children)));
|
|
507
|
+
};
|
|
508
|
+
|
|
476
509
|
var useButtonStyles = makeStyles$1(function () { return ({
|
|
477
510
|
root: {
|
|
478
511
|
minWidth: 'unset',
|
|
@@ -1056,5 +1089,5 @@ var useTabs = function (options) {
|
|
|
1056
1089
|
};
|
|
1057
1090
|
};
|
|
1058
1091
|
|
|
1059
|
-
export { Avatar, Button, Checkbox, Chip, CollapsibleText, Divider, Icon, IconButton, Link, NumberField, Paper, PaperContent, Radio, SplitInput, Switch, TabPanel, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useCollapsibleText, useTabs };
|
|
1092
|
+
export { Avatar, BrowserSilhouette, Button, Checkbox, Chip, CollapsibleText, Divider, Icon, IconButton, Link, NumberField, Paper, PaperContent, Radio, SplitInput, Switch, TabPanel, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useCollapsibleText, useTabs };
|
|
1060
1093
|
//# sourceMappingURL=index.es.js.map
|