yootd 0.0.75 → 0.0.76
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.
@@ -1,3 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import type { DescriptionsProps as AntDescriptionsProps } from 'antd';
|
2
|
+
import { FC } from 'react';
|
3
|
+
import './index.scss';
|
4
|
+
export type DescriptionsProps = AntDescriptionsProps;
|
5
|
+
export declare const Descriptions: FC<DescriptionsProps>;
|
@@ -1,2 +1,16 @@
|
|
1
|
+
var _excluded = ["className"];
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
1
5
|
import { Descriptions as AntDescriptions } from 'antd';
|
2
|
-
|
6
|
+
import React from 'react';
|
7
|
+
import { useBem } from "../hooks/useBem";
|
8
|
+
import "./index.scss";
|
9
|
+
export var Descriptions = function Descriptions(_ref) {
|
10
|
+
var className = _ref.className,
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
12
|
+
var mb = useBem('descriptions');
|
13
|
+
return /*#__PURE__*/React.createElement(AntDescriptions, _extends({
|
14
|
+
className: "".concat(mb.b('content'), " ").concat(className)
|
15
|
+
}, rest));
|
16
|
+
};
|