@capillarytech/blaze-ui 5.11.0 → 5.11.4
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/.npmrc +2 -0
- package/CapErrorBoundary/index.js +22 -52
- package/CapErrorBoundary/index.js.map +1 -1
- package/CapErrorStateIllustration/README.md +222 -0
- package/CapErrorStateIllustration/USE_CASES.md +33 -0
- package/CapErrorStateIllustration/index.d.ts +11 -0
- package/CapErrorStateIllustration/index.d.ts.map +1 -0
- package/CapErrorStateIllustration/index.js +22 -52
- package/CapErrorStateIllustration/index.js.map +1 -1
- package/CapErrorStateIllustration/types.d.ts +20 -0
- package/CapErrorStateIllustration/types.d.ts.map +1 -0
- package/CapInput/README.md +4 -0
- package/README.md +6 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +180 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/CapVirtualMultiSelect/index.js +0 -18432
- package/CapVirtualMultiSelect/index.js.map +0 -1
package/.npmrc
ADDED
|
@@ -4767,9 +4767,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
4767
4767
|
exports.__esModule = true;
|
|
4768
4768
|
exports["default"] = void 0;
|
|
4769
4769
|
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
4770
|
-
var _propTypes = _interopRequireDefault(__webpack_require__(43363));
|
|
4771
4770
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
4772
|
-
var _styledComponents = _interopRequireDefault(__webpack_require__(76480));
|
|
4773
4771
|
var _expiryErrorStateIllustration = _interopRequireDefault(__webpack_require__(67277));
|
|
4774
4772
|
var _refreshErrorStateIllustration = _interopRequireDefault(__webpack_require__(57291));
|
|
4775
4773
|
var _CapButton = _interopRequireDefault(__webpack_require__(80739));
|
|
@@ -4777,11 +4775,9 @@ var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
|
4777
4775
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
4778
4776
|
var _CapImage = _interopRequireDefault(__webpack_require__(84446));
|
|
4779
4777
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
4780
|
-
var
|
|
4781
|
-
__webpack_require__(72890);
|
|
4778
|
+
var _styles = _interopRequireDefault(__webpack_require__(72890));
|
|
4782
4779
|
var _jsxRuntime = __webpack_require__(74848);
|
|
4783
4780
|
const _excluded = ["showImage", "className", "refreshText", "expiryTitle", "refreshTitle", "onRefreshClick", "isRefreshExpired", "expiryDescription"];
|
|
4784
|
-
var _templateObject, _templateObject2;
|
|
4785
4781
|
/**
|
|
4786
4782
|
*
|
|
4787
4783
|
* CapErrorStateIllustration
|
|
@@ -4790,28 +4786,26 @@ var _templateObject, _templateObject2;
|
|
|
4790
4786
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
4791
4787
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4792
4788
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4793
|
-
function _taggedTemplateLiteralLoose(e, t) { return t || (t = e.slice(0)), e.raw = t, e; }
|
|
4794
|
-
const ErrorStateIllustrationContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n"])));
|
|
4795
|
-
const RefreshButtonTextContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n color: ", ";\n"])), _variables.CAP_SPACE_04, _variables.CAP_SPACE_04, _variables.CAP_SECONDARY.base);
|
|
4796
4789
|
const CapErrorStateIllustration = _ref => {
|
|
4797
4790
|
let {
|
|
4798
|
-
showImage,
|
|
4799
|
-
className,
|
|
4800
|
-
refreshText,
|
|
4801
|
-
expiryTitle,
|
|
4802
|
-
refreshTitle,
|
|
4803
|
-
onRefreshClick,
|
|
4804
|
-
isRefreshExpired,
|
|
4805
|
-
expiryDescription
|
|
4791
|
+
showImage = true,
|
|
4792
|
+
className = '',
|
|
4793
|
+
refreshText = '',
|
|
4794
|
+
expiryTitle = '',
|
|
4795
|
+
refreshTitle = '',
|
|
4796
|
+
onRefreshClick = () => {},
|
|
4797
|
+
isRefreshExpired = false,
|
|
4798
|
+
expiryDescription = ''
|
|
4806
4799
|
} = _ref,
|
|
4807
4800
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
4808
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
4809
|
-
className: (0, _classnames.default)('cap-error-state-illustration', className)
|
|
4801
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _extends({
|
|
4802
|
+
className: (0, _classnames.default)(_styles.default['cap-error-state-illustration'], className)
|
|
4810
4803
|
}, rest, {
|
|
4811
4804
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
4805
|
+
className: _styles.default['error-state-illustration-content'],
|
|
4812
4806
|
children: [showImage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapImage.default, {
|
|
4813
4807
|
src: isRefreshExpired ? _expiryErrorStateIllustration.default : _refreshErrorStateIllustration.default,
|
|
4814
|
-
className:
|
|
4808
|
+
className: _styles.default['error-state-image']
|
|
4815
4809
|
}), !isRefreshExpired ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
4816
4810
|
children: [refreshTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
4817
4811
|
type: "h4",
|
|
@@ -4819,11 +4813,12 @@ const CapErrorStateIllustration = _ref => {
|
|
|
4819
4813
|
}), refreshText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapButton.default, {
|
|
4820
4814
|
type: "link",
|
|
4821
4815
|
onClick: onRefreshClick,
|
|
4822
|
-
className:
|
|
4823
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
4816
|
+
className: _styles.default['error-state-refresh-button'],
|
|
4817
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
4818
|
+
className: _styles.default['refresh-button-text-container'],
|
|
4824
4819
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
4825
4820
|
type: "refresh",
|
|
4826
|
-
className:
|
|
4821
|
+
className: _styles.default['error-state-refresh-icon']
|
|
4827
4822
|
}), refreshText]
|
|
4828
4823
|
})
|
|
4829
4824
|
})]
|
|
@@ -4839,26 +4834,7 @@ const CapErrorStateIllustration = _ref => {
|
|
|
4839
4834
|
})
|
|
4840
4835
|
}));
|
|
4841
4836
|
};
|
|
4842
|
-
CapErrorStateIllustration.
|
|
4843
|
-
className: '',
|
|
4844
|
-
refreshText: '',
|
|
4845
|
-
expiryTitle: '',
|
|
4846
|
-
showImage: true,
|
|
4847
|
-
refreshTitle: '',
|
|
4848
|
-
expiryDescription: '',
|
|
4849
|
-
isRefreshExpired: false,
|
|
4850
|
-
onRefreshClick: () => {}
|
|
4851
|
-
};
|
|
4852
|
-
CapErrorStateIllustration.propTypes = {
|
|
4853
|
-
showImage: _propTypes.default.bool,
|
|
4854
|
-
className: _propTypes.default.string,
|
|
4855
|
-
onRefreshClick: _propTypes.default.func,
|
|
4856
|
-
isRefreshExpired: _propTypes.default.bool,
|
|
4857
|
-
refreshText: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
4858
|
-
expiryTitle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
4859
|
-
refreshTitle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
4860
|
-
expiryDescription: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
4861
|
-
};
|
|
4837
|
+
CapErrorStateIllustration.displayName = 'CapErrorStateIllustration';
|
|
4862
4838
|
var _default = exports["default"] = CapErrorStateIllustration;
|
|
4863
4839
|
|
|
4864
4840
|
/***/ }),
|
|
@@ -11100,13 +11076,15 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
11100
11076
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
11101
11077
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
11102
11078
|
// Module
|
|
11103
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-error-state-illustration .error-state-image{padding-bottom:1.428rem}.cap-error-state-illustration .error-state-refresh-button{margin:.285rem}.cap-error-state-illustration .error-state-refresh-icon{font-size:1.143rem}`, ""]);
|
|
11079
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-error-state-illustration{width:100%;height:100%;display:flex;text-align:center;align-items:center;justify-content:center}.cap-error-state-illustration .error-state-image{padding-bottom:1.428rem}.cap-error-state-illustration .error-state-refresh-button{margin:.285rem}.cap-error-state-illustration .error-state-refresh-icon{font-size:1.143rem}.cap-error-state-illustration .error-state-illustration-content{display:flex;flex-direction:column;align-items:center;justify-content:center}.cap-error-state-illustration .refresh-button-text-container{display:flex;align-items:center;gap:.285rem;padding:.285rem;color:#2466ea}`, ""]);
|
|
11104
11080
|
// Exports
|
|
11105
11081
|
___CSS_LOADER_EXPORT___.locals = {
|
|
11106
11082
|
"cap-error-state-illustration": `cap-error-state-illustration`,
|
|
11107
11083
|
"error-state-image": `error-state-image`,
|
|
11108
11084
|
"error-state-refresh-button": `error-state-refresh-button`,
|
|
11109
|
-
"error-state-refresh-icon": `error-state-refresh-icon
|
|
11085
|
+
"error-state-refresh-icon": `error-state-refresh-icon`,
|
|
11086
|
+
"error-state-illustration-content": `error-state-illustration-content`,
|
|
11087
|
+
"refresh-button-text-container": `refresh-button-text-container`
|
|
11110
11088
|
};
|
|
11111
11089
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
11112
11090
|
|
|
@@ -13746,14 +13724,6 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
13746
13724
|
/* 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);
|
|
13747
13725
|
|
|
13748
13726
|
|
|
13749
|
-
/***/ }),
|
|
13750
|
-
|
|
13751
|
-
/***/ 76480:
|
|
13752
|
-
/***/ ((module) => {
|
|
13753
|
-
|
|
13754
|
-
"use strict";
|
|
13755
|
-
module.exports = require("styled-components");
|
|
13756
|
-
|
|
13757
13727
|
/***/ }),
|
|
13758
13728
|
|
|
13759
13729
|
/***/ 76903:
|