@capillarytech/blaze-ui 2.1.1-beta.0 → 2.2.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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface SvgIconProps {
3
+ [key: string]: unknown;
4
+ }
5
+ declare const BackIcon: React.FC<SvgIconProps>;
6
+ export default BackIcon;
7
+ //# sourceMappingURL=Back.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Back.d.ts","sourceRoot":"","sources":["../../../components/assets/Icons/Back.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,YAAY;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAOpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as BackIcon } from './Back';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/assets/Icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -6782,7 +6782,17 @@ const CapSlideBox = _ref => {
6782
6782
  }, [showShadow]);
6783
6783
  const throttleScrollRef = (0, _react.useRef)((0, _lodash.throttle)(onScroll, 300));
6784
6784
  (0, _react.useEffect)(() => {
6785
+ var _throttleScrollRef$cu;
6786
+ const isCancelable = (_throttleScrollRef$cu = throttleScrollRef.current) == null ? void 0 : _throttleScrollRef$cu.cancel;
6787
+ if (isCancelable) {
6788
+ isCancelable();
6789
+ }
6785
6790
  throttleScrollRef.current = (0, _lodash.throttle)(onScroll, 300);
6791
+ return () => {
6792
+ if (isCancelable) {
6793
+ isCancelable();
6794
+ }
6795
+ };
6786
6796
  }, [onScroll]);
6787
6797
  (0, _react.useEffect)(() => {
6788
6798
  if (show) {
@@ -7152,7 +7162,7 @@ exports.__esModule = true;
7152
7162
  exports["default"] = void 0;
7153
7163
  var _classnames = _interopRequireDefault(__webpack_require__(6942));
7154
7164
  var _react = _interopRequireDefault(__webpack_require__(9206));
7155
- __webpack_require__(5158);
7165
+ var _styles = _interopRequireDefault(__webpack_require__(5158));
7156
7166
  var _jsxRuntime = __webpack_require__(4848);
7157
7167
  const _excluded = ["className", "src", "alt"];
7158
7168
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7171,7 +7181,7 @@ const CapImage = _ref => {
7171
7181
  return null;
7172
7182
  }
7173
7183
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", _extends({
7174
- className: (0, _classnames.default)(clsPrefix, className),
7184
+ className: (0, _classnames.default)(_styles.default[clsPrefix], className),
7175
7185
  src: src,
7176
7186
  alt: alt
7177
7187
  }, rest));
@@ -25955,6 +25965,33 @@ var _default = exports["default"] = CapLabelWithStatic;
25955
25965
 
25956
25966
  /***/ }),
25957
25967
 
25968
+ /***/ 2680:
25969
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
25970
+
25971
+ "use strict";
25972
+
25973
+
25974
+ exports.__esModule = true;
25975
+ exports["default"] = void 0;
25976
+ var _react = _interopRequireDefault(__webpack_require__(9206));
25977
+ var _jsxRuntime = __webpack_require__(4848);
25978
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
25979
+ 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); }
25980
+ const BackIcon = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _extends({
25981
+ width: "1em",
25982
+ height: "1em",
25983
+ viewBox: "0 0 24 24",
25984
+ fill: "currentColor"
25985
+ }, props, {
25986
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25987
+ d: "M20 12a1 1 0 0 1-1 1H8l4.79 4.79a1.004 1.004 0 1 1-1.42 1.42l-6.503-6.503a1 1 0 0 1 0-1.414L11.37 4.79a1.004 1.004 0 1 1 1.42 1.42L8 11h11a1 1 0 0 1 1 1z",
25988
+ id: "Back_svg__a"
25989
+ })
25990
+ }));
25991
+ var _default = exports["default"] = BackIcon;
25992
+
25993
+ /***/ }),
25994
+
25958
25995
  /***/ 2691:
25959
25996
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
25960
25997
 
@@ -36209,7 +36246,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
36209
36246
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
36210
36247
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
36211
36248
  // Module
36212
- ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-header-icon-right,.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-header-icon-left{-webkit-box-shadow:0px 0px 4px 2px rgba(0,0,0,.12);-moz-box-shadow:0px 0px 4px 2px rgba(0,0,0,.12);box-shadow:0px 0px 4px 2px rgba(0,0,0,.12)}.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-footer{-webkit-box-shadow:0px 0px 4px 2px rgba(0,0,0,.12);-moz-box-shadow:0px 0px 4px 2px rgba(0,0,0,.12);box-shadow:0px 0px 4px 2px rgba(0,0,0,.12)}.blaze-ui-cap-slide-box-v2{width:100vw;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.56);z-index:100}.blaze-ui-cap-slide-box-v2.blaze-ui-hide-slidebox{visibility:hidden;opacity:0;transition-delay:0s}.blaze-ui-cap-slide-box-v2.blaze-ui-show-slidebox{visibility:visible;opacity:1;transition:visibility 1s linear .33s,opacity .33s linear}.blaze-ui-cap-slide-box-v2-container{position:absolute;height:100vh;background:#fff;overflow-y:auto}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-right{padding:0 3.428rem;justify-content:space-between;align-items:center;display:flex;height:6.571rem;position:relative;z-index:1}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-left{padding:0 3.428rem;align-items:center;display:flex;height:6.571rem;position:relative;z-index:1}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-left .blaze-ui-header-position-right{margin-left:.857rem}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-footer{padding:0 3.428rem;position:absolute;bottom:0;width:100%;display:flex;align-items:center;height:6.286rem}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-content-container{padding:0 3.428rem;overflow-y:auto;height:calc(100vh - 6.571rem)}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-content-container.blaze-ui-has-footer{height:calc(100vh - 6.571rem - 6.286rem)}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-r{min-width:47.143rem;max-width:57.143rem;width:50vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s{min-width:26.571rem;max-width:28.571rem;width:25vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-header{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-footer{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-content-container{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-l{min-width:67.714rem;max-width:81.429rem;width:75vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-left{left:0}.blaze-ui-cap-slide-box-v2-container.blaze-ui-right{right:0}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-xl{min-width:84.286rem;max-width:91.429rem;width:84.286rem}.blaze-ui-cap-slide-box-v2-close-icon{cursor:pointer}`, ""]);
36249
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-header-icon-right,.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-header-icon-left{-webkit-box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12);-moz-box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12);box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12)}.blaze-ui-cap-slide-box-v2.blaze-ui-show-shadow .blaze-ui-slidebox-footer{-webkit-box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12);-moz-box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12);box-shadow:0 0 .285rem .142rem rgba(0,0,0,.12)}.blaze-ui-cap-slide-box-v2{width:100vw;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.56);z-index:100}.blaze-ui-cap-slide-box-v2.blaze-ui-hide-slidebox{visibility:hidden;opacity:0;transition-delay:0s}.blaze-ui-cap-slide-box-v2.blaze-ui-show-slidebox{visibility:visible;opacity:1;transition:visibility 1s linear .33s,opacity .33s linear}.blaze-ui-cap-slide-box-v2-container{position:absolute;height:100vh;background:#fff;overflow-y:auto}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-right{padding:0 3.428rem;justify-content:space-between;align-items:center;display:flex;height:6.571rem;position:relative;z-index:1}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-left{padding:0 3.428rem;align-items:center;display:flex;height:6.571rem;position:relative;z-index:1}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-header-icon-left .blaze-ui-header-position-right{margin-left:.857rem}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-footer{padding:0 3.428rem;position:absolute;bottom:0;width:100%;display:flex;align-items:center;height:6.286rem}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-content-container{padding:0 3.428rem;overflow-y:auto;height:calc(100vh - 6.571rem)}.blaze-ui-cap-slide-box-v2-container .blaze-ui-slidebox-content-container.blaze-ui-has-footer{height:calc(100vh - 6.571rem - 6.286rem)}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-r{min-width:47.143rem;max-width:57.143rem;width:50vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s{min-width:26.571rem;max-width:28.571rem;width:25vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-header{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-footer{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-s .blaze-ui-slidebox-content-container{padding:0 1.714rem}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-l{min-width:67.714rem;max-width:81.429rem;width:75vw}.blaze-ui-cap-slide-box-v2-container.blaze-ui-left{left:0}.blaze-ui-cap-slide-box-v2-container.blaze-ui-right{right:0}.blaze-ui-cap-slide-box-v2-container.blaze-ui-size-xl{min-width:84.286rem;max-width:91.429rem;width:84.286rem}.blaze-ui-cap-slide-box-v2-close-icon{cursor:pointer}`, ""]);
36213
36250
  // Exports
36214
36251
  ___CSS_LOADER_EXPORT___.locals = {
36215
36252
  "cap-slide-box-v2": `blaze-ui-cap-slide-box-v2`,
@@ -36420,6 +36457,7 @@ exports["default"] = void 0;
36420
36457
  var AntdIcons = _interopRequireWildcard(__webpack_require__(4627));
36421
36458
  var _classnames = _interopRequireDefault(__webpack_require__(6942));
36422
36459
  var _react = _interopRequireDefault(__webpack_require__(9206));
36460
+ var _Icons = __webpack_require__(9319);
36423
36461
  var _styles = _interopRequireDefault(__webpack_require__(6426));
36424
36462
  var _jsxRuntime = __webpack_require__(4848);
36425
36463
  const _excluded = ["type", "size", "style", "className", "disabled", "spin", "rotate", "withBackground", "backgroundProps", "onClick", "textLabel", "component", "svgProps", "allowSvg", "color"],
@@ -36430,15 +36468,14 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
36430
36468
  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); }
36431
36469
  // Special mappings for common icon names
36432
36470
  const iconMapping = {
36433
- add: 'plus',
36434
- back: 'arrow-left'
36471
+ add: 'plus'
36435
36472
  };
36436
36473
  const getSvgIcon = function (type, svgProps) {
36437
36474
  if (svgProps === void 0) {
36438
36475
  svgProps = {};
36439
36476
  }
36440
36477
  const icons = {
36441
- // Add your SVG icons here if needed
36478
+ back: _Icons.BackIcon
36442
36479
  };
36443
36480
  const IconComponent = type ? icons[type] : null;
36444
36481
  return IconComponent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, _extends({}, svgProps)) : null;
@@ -57286,6 +57323,20 @@ exports.DropdownHeader = DropdownHeader;
57286
57323
 
57287
57324
  /***/ }),
57288
57325
 
57326
+ /***/ 9319:
57327
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
57328
+
57329
+ "use strict";
57330
+
57331
+
57332
+ exports.__esModule = true;
57333
+ exports.BackIcon = void 0;
57334
+ var _Back = _interopRequireDefault(__webpack_require__(2680));
57335
+ exports.BackIcon = _Back.default;
57336
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
57337
+
57338
+ /***/ }),
57339
+
57289
57340
  /***/ 9336:
57290
57341
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
57291
57342