@capillarytech/blaze-ui 5.13.1 → 5.14.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/.DS_Store ADDED
Binary file
@@ -0,0 +1,7 @@
1
+ # CapListLayout
2
+
3
+ A layout component that combines CapActionBar and CapTable for creating list views with action bars and data tables.
4
+
5
+ ### Breaking Changes
6
+
7
+ None - This component is a simple wrapper that doesn't use Antd components directly.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { CapListLayoutProps } from './types';
3
+ declare const CapListLayout: React.FC<CapListLayoutProps>;
4
+ export default CapListLayout;
5
+ export type { CapListLayoutProps } from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapListLayout/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAO/C,CAAC;AAEF,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -22035,9 +22035,11 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
22035
22035
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
22036
22036
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
22037
22037
  // Module
22038
- ___CSS_LOADER_EXPORT___.push([module.id, ``, ""]);
22038
+ ___CSS_LOADER_EXPORT___.push([module.id, `.cap-list-view-layout-v2{display:flex;flex-direction:column;gap:1.714rem}`, ""]);
22039
22039
  // Exports
22040
- ___CSS_LOADER_EXPORT___.locals = {};
22040
+ ___CSS_LOADER_EXPORT___.locals = {
22041
+ "cap-list-view-layout-v2": `cap-list-view-layout-v2`
22042
+ };
22041
22043
  module.exports = ___CSS_LOADER_EXPORT___;
22042
22044
 
22043
22045
 
@@ -23440,32 +23442,31 @@ var exports = __webpack_exports__;
23440
23442
 
23441
23443
  exports.__esModule = true;
23442
23444
  exports["default"] = void 0;
23443
- var _propTypes = _interopRequireDefault(__webpack_require__(43363));
23445
+ var _classnames = _interopRequireDefault(__webpack_require__(46942));
23444
23446
  var _react = _interopRequireDefault(__webpack_require__(9206));
23445
23447
  var _CapActionBar = _interopRequireDefault(__webpack_require__(9464));
23446
23448
  var _CapTable = _interopRequireDefault(__webpack_require__(43337));
23447
- __webpack_require__(40027);
23449
+ var _styles = _interopRequireDefault(__webpack_require__(40027));
23448
23450
  var _jsxRuntime = __webpack_require__(74848);
23449
23451
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23450
23452
  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); } /**
23451
23453
  * CapListLayout
23452
- */ // import CapRow from "../CapRow";
23453
- class CapListLayout extends _react.default.Component {
23454
- render() {
23455
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23456
- className: this.props.className ? "cap-list-view-layout-v2 " + this.props.className : 'cap-list-view-layout-v2',
23457
- children: [this.props.capActionBar && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapActionBar.default, _extends({}, this.props.capActionBar)), this.props.capTable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTable.default, _extends({
23458
- className: "cap-table-v2"
23459
- }, this.props.capTable))]
23460
- });
23461
- }
23462
- }
23463
- exports["default"] = CapListLayout;
23464
- CapListLayout.propTypes = {
23465
- className: _propTypes.default.string,
23466
- capActionBar: _propTypes.default.object,
23467
- capTable: _propTypes.default.object
23454
+ */
23455
+ const clsPrefix = 'cap-list-view-layout-v2';
23456
+ const CapListLayout = _ref => {
23457
+ let {
23458
+ className,
23459
+ capActionBar,
23460
+ capTable
23461
+ } = _ref;
23462
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23463
+ className: (0, _classnames.default)(_styles.default[clsPrefix], className),
23464
+ children: [capActionBar && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapActionBar.default, _extends({}, capActionBar)), capTable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTable.default, _extends({
23465
+ className: "cap-table-v2"
23466
+ }, capTable))]
23467
+ });
23468
23468
  };
23469
+ var _default = exports["default"] = CapListLayout;
23469
23470
  })();
23470
23471
 
23471
23472
  module.exports = __webpack_exports__;