@capillarytech/blaze-ui 4.0.0 → 4.0.1-beta.2
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/dist/CapEventCalendar/index.js +180 -1
- package/dist/CapEventCalendar/index.js.map +1 -1
- package/dist/CapIllustration/index.js +180 -1
- package/dist/CapIllustration/index.js.map +1 -1
- package/dist/CapStatisticCard/README.md +138 -0
- package/dist/CapStatisticCard/index.d.ts +6 -0
- package/dist/CapStatisticCard/index.d.ts.map +1 -0
- package/dist/CapStatisticCard/index.js +34 -253
- package/dist/CapStatisticCard/index.js.map +1 -1
- package/dist/CapStatisticCard/types.d.ts +12 -0
- package/dist/CapStatisticCard/types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +180 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6473,6 +6473,107 @@ var _default = exports["default"] = CapHeadingWithStatic;
|
|
|
6473
6473
|
|
|
6474
6474
|
/***/ }),
|
|
6475
6475
|
|
|
6476
|
+
/***/ 7393:
|
|
6477
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6478
|
+
|
|
6479
|
+
"use strict";
|
|
6480
|
+
|
|
6481
|
+
|
|
6482
|
+
exports.__esModule = true;
|
|
6483
|
+
exports.renderCustomDivider = exports["default"] = void 0;
|
|
6484
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
6485
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
6486
|
+
var _CapDivider = _interopRequireDefault(__webpack_require__(23406));
|
|
6487
|
+
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
6488
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
6489
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
6490
|
+
var _styles = _interopRequireDefault(__webpack_require__(43953));
|
|
6491
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
6492
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6493
|
+
const renderCustomDivider = function (type) {
|
|
6494
|
+
if (type === void 0) {
|
|
6495
|
+
type = '';
|
|
6496
|
+
}
|
|
6497
|
+
return type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
|
|
6498
|
+
style: {
|
|
6499
|
+
marginTop: '0.857rem',
|
|
6500
|
+
marginBottom: '0.857rem'
|
|
6501
|
+
}
|
|
6502
|
+
}) : null;
|
|
6503
|
+
};
|
|
6504
|
+
exports.renderCustomDivider = renderCustomDivider;
|
|
6505
|
+
const CapStatisticCard = _ref => {
|
|
6506
|
+
let {
|
|
6507
|
+
statsItems,
|
|
6508
|
+
width,
|
|
6509
|
+
type,
|
|
6510
|
+
showHeader
|
|
6511
|
+
} = _ref;
|
|
6512
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
6513
|
+
className: _styles.default['stats-card'],
|
|
6514
|
+
children: [statsItems.length > 0 && type && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
6515
|
+
style: {
|
|
6516
|
+
width: '16%',
|
|
6517
|
+
display: showHeader ? 'inline-grid' : 'inline-table'
|
|
6518
|
+
},
|
|
6519
|
+
children: [showHeader && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
6520
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
6521
|
+
style: {
|
|
6522
|
+
marginBottom: '-0.286rem'
|
|
6523
|
+
}
|
|
6524
|
+
}), renderCustomDivider(type)]
|
|
6525
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
6526
|
+
className: _styles.default['stats-val'],
|
|
6527
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
6528
|
+
type: "label1",
|
|
6529
|
+
children: type
|
|
6530
|
+
})
|
|
6531
|
+
}), renderCustomDivider(type)]
|
|
6532
|
+
}, "stats-heading"), statsItems.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
6533
|
+
style: {
|
|
6534
|
+
width: width || '20%'
|
|
6535
|
+
},
|
|
6536
|
+
className: _styles.default['stats-item'],
|
|
6537
|
+
children: [showHeader && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
6538
|
+
children: [type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
6539
|
+
type: "label1",
|
|
6540
|
+
className: (0, _classnames.default)(_styles.default['truncate-text'], _styles.default['stats-text']),
|
|
6541
|
+
title: item.text,
|
|
6542
|
+
style: {
|
|
6543
|
+
textAlign: 'right'
|
|
6544
|
+
},
|
|
6545
|
+
children: item.text
|
|
6546
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
6547
|
+
type: "h6",
|
|
6548
|
+
className: _styles.default['stats-text'],
|
|
6549
|
+
children: item.text
|
|
6550
|
+
}), renderCustomDivider(type)]
|
|
6551
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
6552
|
+
className: _styles.default['stats-val'],
|
|
6553
|
+
children: type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
6554
|
+
type: "label1",
|
|
6555
|
+
style: {
|
|
6556
|
+
float: 'right'
|
|
6557
|
+
},
|
|
6558
|
+
children: item.value
|
|
6559
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
6560
|
+
type: "h3",
|
|
6561
|
+
children: item.value
|
|
6562
|
+
})
|
|
6563
|
+
}), item.subText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
6564
|
+
className: _styles.default['stats-sub-text'],
|
|
6565
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
6566
|
+
type: type ? 'label1' : 'label7',
|
|
6567
|
+
children: item.subText
|
|
6568
|
+
})
|
|
6569
|
+
}), renderCustomDivider(type)]
|
|
6570
|
+
}, "stats-" + item.text + "-" + index))]
|
|
6571
|
+
});
|
|
6572
|
+
};
|
|
6573
|
+
var _default = exports["default"] = CapStatisticCard;
|
|
6574
|
+
|
|
6575
|
+
/***/ }),
|
|
6576
|
+
|
|
6476
6577
|
/***/ 7667:
|
|
6477
6578
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6478
6579
|
|
|
@@ -19256,6 +19357,58 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19256
19357
|
|
|
19257
19358
|
|
|
19258
19359
|
|
|
19360
|
+
var options = {};
|
|
19361
|
+
|
|
19362
|
+
;
|
|
19363
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
19364
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
19365
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
19366
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
19367
|
+
|
|
19368
|
+
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
19369
|
+
|
|
19370
|
+
|
|
19371
|
+
|
|
19372
|
+
|
|
19373
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
19374
|
+
|
|
19375
|
+
|
|
19376
|
+
/***/ }),
|
|
19377
|
+
|
|
19378
|
+
/***/ 43953:
|
|
19379
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
19380
|
+
|
|
19381
|
+
"use strict";
|
|
19382
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19383
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19384
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19385
|
+
/* harmony export */ });
|
|
19386
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
19387
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
19388
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
19389
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
19390
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
19391
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
19392
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
19393
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
19394
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
19395
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
19396
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54982);
|
|
19397
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
19398
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
19399
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
19400
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
19401
|
+
|
|
19402
|
+
|
|
19403
|
+
|
|
19404
|
+
|
|
19405
|
+
|
|
19406
|
+
|
|
19407
|
+
|
|
19408
|
+
|
|
19409
|
+
|
|
19410
|
+
|
|
19411
|
+
|
|
19259
19412
|
var options = {};
|
|
19260
19413
|
|
|
19261
19414
|
;
|
|
@@ -21442,6 +21595,29 @@ MonthHeader.propTypes = {
|
|
|
21442
21595
|
};
|
|
21443
21596
|
var _default = exports["default"] = MonthHeader;
|
|
21444
21597
|
|
|
21598
|
+
/***/ }),
|
|
21599
|
+
|
|
21600
|
+
/***/ 54982:
|
|
21601
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
21602
|
+
|
|
21603
|
+
// Imports
|
|
21604
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
21605
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
21606
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
21607
|
+
// Module
|
|
21608
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-stats-card .blaze-ui-stats-item{display:inline-block}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-text{margin-bottom:.285rem;padding-right:.714rem}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-val{padding-right:.714rem}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-sub-text{margin-top:.571rem}.blaze-ui-truncate-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`, ""]);
|
|
21609
|
+
// Exports
|
|
21610
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
21611
|
+
"stats-card": `blaze-ui-stats-card`,
|
|
21612
|
+
"stats-item": `blaze-ui-stats-item`,
|
|
21613
|
+
"stats-text": `blaze-ui-stats-text`,
|
|
21614
|
+
"stats-val": `blaze-ui-stats-val`,
|
|
21615
|
+
"stats-sub-text": `blaze-ui-stats-sub-text`,
|
|
21616
|
+
"truncate-text": `blaze-ui-truncate-text`
|
|
21617
|
+
};
|
|
21618
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
21619
|
+
|
|
21620
|
+
|
|
21445
21621
|
/***/ }),
|
|
21446
21622
|
|
|
21447
21623
|
/***/ 55056:
|
|
@@ -35790,6 +35966,7 @@ var _exportNames = {
|
|
|
35790
35966
|
CapSkeleton: true,
|
|
35791
35967
|
CapSomethingWentWrong: true,
|
|
35792
35968
|
CapSpin: true,
|
|
35969
|
+
CapStatisticCard: true,
|
|
35793
35970
|
CapSwitch: true,
|
|
35794
35971
|
CapTab: true,
|
|
35795
35972
|
CapTable: true,
|
|
@@ -35804,7 +35981,7 @@ var _exportNames = {
|
|
|
35804
35981
|
getCapUIFontLinks: true,
|
|
35805
35982
|
styledVars: true
|
|
35806
35983
|
};
|
|
35807
|
-
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSlideBox = exports.CapSkeleton = exports.CapSelectFilter = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLanguageProvider = exports.CapLabel = exports.CapInput = exports.CapImportMFEComponent = exports.CapImage = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapAppNotEnabled = exports.CapAlert = void 0;
|
|
35984
|
+
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapStatisticCard = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSlideBox = exports.CapSkeleton = exports.CapSelectFilter = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLanguageProvider = exports.CapLabel = exports.CapInput = exports.CapImportMFEComponent = exports.CapImage = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapAppNotEnabled = exports.CapAlert = void 0;
|
|
35808
35985
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
35809
35986
|
exports.CapAlert = _CapAlert.default;
|
|
35810
35987
|
var _CapAppNotEnabled = _interopRequireDefault(__webpack_require__(9822));
|
|
@@ -35853,6 +36030,8 @@ var _CapSomethingWentWrong = _interopRequireDefault(__webpack_require__(27506));
|
|
|
35853
36030
|
exports.CapSomethingWentWrong = _CapSomethingWentWrong.default;
|
|
35854
36031
|
var _CapSpin = _interopRequireDefault(__webpack_require__(56543));
|
|
35855
36032
|
exports.CapSpin = _CapSpin.default;
|
|
36033
|
+
var _CapStatisticCard = _interopRequireDefault(__webpack_require__(7393));
|
|
36034
|
+
exports.CapStatisticCard = _CapStatisticCard.default;
|
|
35856
36035
|
var _CapSwitch = _interopRequireDefault(__webpack_require__(92475));
|
|
35857
36036
|
exports.CapSwitch = _CapSwitch.default;
|
|
35858
36037
|
var _CapTab = _interopRequireDefault(__webpack_require__(60556));
|