@rocket.chat/fuselage 0.45.0 → 0.46.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/CHANGELOG.md +6 -0
- package/dist/components/Bubble/Bubble.d.ts +7 -5
- package/dist/components/Bubble/Bubble.d.ts.map +1 -1
- package/dist/components/Bubble/BubbleButton.d.ts +11 -0
- package/dist/components/Bubble/BubbleButton.d.ts.map +1 -0
- package/dist/components/Bubble/BubbleItem.d.ts +10 -0
- package/dist/components/Bubble/BubbleItem.d.ts.map +1 -0
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +108 -8
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +1 -1
|
@@ -2253,19 +2253,119 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
2253
2253
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2254
2254
|
exports.Bubble = void 0;
|
|
2255
2255
|
var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
2256
|
-
var
|
|
2256
|
+
var BubbleButton_1 = __webpack_require__(/*! ./BubbleButton */ "./src/components/Bubble/BubbleButton.tsx");
|
|
2257
|
+
var BubbleItem_1 = __webpack_require__(/*! ./BubbleItem */ "./src/components/Bubble/BubbleItem.tsx");
|
|
2257
2258
|
var Bubble = function (_a) {
|
|
2258
|
-
var children = _a.children, onClick = _a.onClick, icon = _a.icon, onDismiss = _a.onDismiss, contentProps = _a.contentProps, dismissProps = _a.dismissProps, props = __rest(_a, ["children", "onClick", "icon", "onDismiss", "contentProps", "dismissProps"]);
|
|
2259
|
-
return (react_1.default.createElement("div", __assign({ className:
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2259
|
+
var secondary = _a.secondary, children = _a.children, onClick = _a.onClick, icon = _a.icon, onDismiss = _a.onDismiss, small = _a.small, contentProps = _a.contentProps, dismissProps = _a.dismissProps, props = __rest(_a, ["secondary", "children", "onClick", "icon", "onDismiss", "small", "contentProps", "dismissProps"]);
|
|
2260
|
+
return (react_1.default.createElement("div", __assign({ className: [
|
|
2261
|
+
'rcx-bubble',
|
|
2262
|
+
'rcx-box',
|
|
2263
|
+
'rcx-box--full',
|
|
2264
|
+
onDismiss && 'rcx-bubble__group',
|
|
2265
|
+
small && 'rcx-bubble--small',
|
|
2266
|
+
].join(' ') }, props),
|
|
2267
|
+
onClick ? (react_1.default.createElement(BubbleButton_1.BubbleButton, __assign({ onClick: onClick, secondary: secondary, icon: icon, label: children }, contentProps))) : (react_1.default.createElement(BubbleItem_1.BubbleItem, __assign({ secondary: secondary, icon: icon, label: children }, contentProps))),
|
|
2268
|
+
onDismiss && (react_1.default.createElement(BubbleButton_1.BubbleButton, __assign({ onClick: onDismiss, secondary: secondary, icon: 'cross-small' }, __assign({ 'aria-label': "Dismiss ".concat(children) }, dismissProps))))));
|
|
2265
2269
|
};
|
|
2266
2270
|
exports.Bubble = Bubble;
|
|
2267
2271
|
|
|
2268
2272
|
|
|
2273
|
+
/***/ }),
|
|
2274
|
+
|
|
2275
|
+
/***/ "./src/components/Bubble/BubbleButton.tsx":
|
|
2276
|
+
/*!************************************************!*\
|
|
2277
|
+
!*** ./src/components/Bubble/BubbleButton.tsx ***!
|
|
2278
|
+
\************************************************/
|
|
2279
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
var __assign = (this && this.__assign) || function () {
|
|
2283
|
+
__assign = Object.assign || function(t) {
|
|
2284
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2285
|
+
s = arguments[i];
|
|
2286
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2287
|
+
t[p] = s[p];
|
|
2288
|
+
}
|
|
2289
|
+
return t;
|
|
2290
|
+
};
|
|
2291
|
+
return __assign.apply(this, arguments);
|
|
2292
|
+
};
|
|
2293
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2294
|
+
var t = {};
|
|
2295
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2296
|
+
t[p] = s[p];
|
|
2297
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2298
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2299
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2300
|
+
t[p[i]] = s[p[i]];
|
|
2301
|
+
}
|
|
2302
|
+
return t;
|
|
2303
|
+
};
|
|
2304
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2305
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2306
|
+
};
|
|
2307
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2308
|
+
exports.BubbleButton = void 0;
|
|
2309
|
+
var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
2310
|
+
var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2311
|
+
var BubbleButton = function (_a) {
|
|
2312
|
+
var secondary = _a.secondary, label = _a.label, onClick = _a.onClick, icon = _a.icon, props = __rest(_a, ["secondary", "label", "onClick", "icon"]);
|
|
2313
|
+
return (react_1.default.createElement("button", __assign({ className: "rcx-bubble__button ".concat(secondary
|
|
2314
|
+
? 'rcx-bubble__button--secondary'
|
|
2315
|
+
: 'rcx-bubble__button--primary'), onClick: onClick }, props),
|
|
2316
|
+
icon && react_1.default.createElement(Icon_1.Icon, { name: icon, size: 'x16', mie: 8 }),
|
|
2317
|
+
label && react_1.default.createElement("span", null, label)));
|
|
2318
|
+
};
|
|
2319
|
+
exports.BubbleButton = BubbleButton;
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
/***/ }),
|
|
2323
|
+
|
|
2324
|
+
/***/ "./src/components/Bubble/BubbleItem.tsx":
|
|
2325
|
+
/*!**********************************************!*\
|
|
2326
|
+
!*** ./src/components/Bubble/BubbleItem.tsx ***!
|
|
2327
|
+
\**********************************************/
|
|
2328
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
var __assign = (this && this.__assign) || function () {
|
|
2332
|
+
__assign = Object.assign || function(t) {
|
|
2333
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2334
|
+
s = arguments[i];
|
|
2335
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2336
|
+
t[p] = s[p];
|
|
2337
|
+
}
|
|
2338
|
+
return t;
|
|
2339
|
+
};
|
|
2340
|
+
return __assign.apply(this, arguments);
|
|
2341
|
+
};
|
|
2342
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2343
|
+
var t = {};
|
|
2344
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2345
|
+
t[p] = s[p];
|
|
2346
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2347
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2348
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2349
|
+
t[p[i]] = s[p[i]];
|
|
2350
|
+
}
|
|
2351
|
+
return t;
|
|
2352
|
+
};
|
|
2353
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2354
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2355
|
+
};
|
|
2356
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2357
|
+
exports.BubbleItem = void 0;
|
|
2358
|
+
var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
2359
|
+
var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2360
|
+
var BubbleItem = function (_a) {
|
|
2361
|
+
var secondary = _a.secondary, label = _a.label, icon = _a.icon, props = __rest(_a, ["secondary", "label", "icon"]);
|
|
2362
|
+
return (react_1.default.createElement("span", __assign({ className: "rcx-bubble__item ".concat(secondary ? 'rcx-bubble__item--secondary' : 'rcx-bubble__item--primary') }, props),
|
|
2363
|
+
icon && react_1.default.createElement(Icon_1.Icon, { name: icon, size: 'x16', mie: 8 }),
|
|
2364
|
+
label && react_1.default.createElement("span", null, label)));
|
|
2365
|
+
};
|
|
2366
|
+
exports.BubbleItem = BubbleItem;
|
|
2367
|
+
|
|
2368
|
+
|
|
2269
2369
|
/***/ }),
|
|
2270
2370
|
|
|
2271
2371
|
/***/ "./src/components/Bubble/index.ts":
|