sti-antd-package 0.0.35 → 0.0.36
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,4 +1,5 @@
|
|
|
1
1
|
import { CardProps } from "antd";
|
|
2
|
+
import { CardMetaProps } from "antd/es/card";
|
|
2
3
|
import { CardSize } from "antd/es/card/Card";
|
|
3
4
|
export interface CardComponentProps {
|
|
4
5
|
size?: CardSize;
|
|
@@ -6,7 +7,11 @@ export interface CardComponentProps {
|
|
|
6
7
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
7
8
|
classNames?: string[];
|
|
8
9
|
className?: CardProps['classNames'];
|
|
10
|
+
actions?: React.ReactNode[];
|
|
9
11
|
style?: React.CSSProperties;
|
|
10
12
|
styles?: CardProps['styles'];
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}
|
|
15
|
+
export type CardComponentType = React.FC<CardComponentProps> & {
|
|
16
|
+
Meta: React.FC<CardMetaProps>;
|
|
17
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { TooltipPlacement } from 'antd/es/tooltip';
|
|
|
4
4
|
import React$1, { Ref, JSXElementConstructor } from 'react';
|
|
5
5
|
import { CardProps, CheckboxChangeEvent, CheckboxOptionType, DatePickerProps as DatePickerProps$1, DatePicker, DropDownProps, RadioChangeEvent, SelectProps, ThemeConfig, TablePaginationConfig as TablePaginationConfig$1, FormInstance, TagProps } from 'antd';
|
|
6
6
|
export { Form } from 'antd';
|
|
7
|
+
import { CardMetaProps } from 'antd/es/card';
|
|
7
8
|
import { CardSize } from 'antd/es/card/Card';
|
|
8
9
|
import { Variant } from 'antd/es/config-provider';
|
|
9
10
|
import { ValidateStatus } from 'antd/es/form/FormItem';
|
|
@@ -153,12 +154,16 @@ interface CardComponentProps {
|
|
|
153
154
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
154
155
|
classNames?: string[];
|
|
155
156
|
className?: CardProps['classNames'];
|
|
157
|
+
actions?: React.ReactNode[];
|
|
156
158
|
style?: React.CSSProperties;
|
|
157
159
|
styles?: CardProps['styles'];
|
|
158
160
|
children?: React.ReactNode;
|
|
159
161
|
}
|
|
162
|
+
type CardComponentType = React.FC<CardComponentProps> & {
|
|
163
|
+
Meta: React.FC<CardMetaProps>;
|
|
164
|
+
};
|
|
160
165
|
|
|
161
|
-
declare const CardComponent:
|
|
166
|
+
declare const CardComponent: CardComponentType;
|
|
162
167
|
|
|
163
168
|
interface CascaderComponentRef<OptionType extends DefaultOptionType, ValueField extends keyof OptionType> {
|
|
164
169
|
value: () => CascaderProps<OptionType, ValueField>['value'];
|
package/dist/index.esm.js
CHANGED
|
@@ -3880,9 +3880,10 @@ const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit
|
|
|
3880
3880
|
};
|
|
3881
3881
|
var Component$6 = React__default.memo(ButtonGroupEditComponent);
|
|
3882
3882
|
|
|
3883
|
-
const CardComponent = ({ size, title, onClick, classNames, className, style, styles, children, }) => {
|
|
3884
|
-
return (jsxRuntimeExports.jsx(Card, { size: size, title: title, onClick: onClick, className: classNames === null || classNames === void 0 ? void 0 : classNames.join(' '), classNames: className, style: style, styles: styles, children: children }));
|
|
3883
|
+
const CardComponent = ({ size, title, onClick, classNames, className, actions, style, styles, children, }) => {
|
|
3884
|
+
return (jsxRuntimeExports.jsx(Card, { size: size, title: title, onClick: onClick, className: classNames === null || classNames === void 0 ? void 0 : classNames.join(' '), classNames: className, actions: actions, style: style, styles: styles, children: children }));
|
|
3885
3885
|
};
|
|
3886
|
+
CardComponent.Meta = Card.Meta;
|
|
3886
3887
|
|
|
3887
3888
|
const { Item: Item$1 } = Form$2;
|
|
3888
3889
|
const FormItemComponent = ({ noItem, formColLayout, name, label, trigger, normalize, required, rules, ruleType, ruleMessage, ruleTransform, ruleMin, ruleMax, valuePropName, getValueFromEvent, validateStatus, help, shouldUpdate, children, }) => {
|
package/dist/index.js
CHANGED
|
@@ -3899,9 +3899,10 @@ const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit
|
|
|
3899
3899
|
};
|
|
3900
3900
|
var Component$6 = React.memo(ButtonGroupEditComponent);
|
|
3901
3901
|
|
|
3902
|
-
const CardComponent = ({ size, title, onClick, classNames, className, style, styles, children, }) => {
|
|
3903
|
-
return (jsxRuntimeExports.jsx(antd.Card, { size: size, title: title, onClick: onClick, className: classNames === null || classNames === void 0 ? void 0 : classNames.join(' '), classNames: className, style: style, styles: styles, children: children }));
|
|
3902
|
+
const CardComponent = ({ size, title, onClick, classNames, className, actions, style, styles, children, }) => {
|
|
3903
|
+
return (jsxRuntimeExports.jsx(antd.Card, { size: size, title: title, onClick: onClick, className: classNames === null || classNames === void 0 ? void 0 : classNames.join(' '), classNames: className, actions: actions, style: style, styles: styles, children: children }));
|
|
3904
3904
|
};
|
|
3905
|
+
CardComponent.Meta = antd.Card.Meta;
|
|
3905
3906
|
|
|
3906
3907
|
const { Item: Item$1 } = antd.Form;
|
|
3907
3908
|
const FormItemComponent = ({ noItem, formColLayout, name, label, trigger, normalize, required, rules, ruleType, ruleMessage, ruleTransform, ruleMin, ruleMax, valuePropName, getValueFromEvent, validateStatus, help, shouldUpdate, children, }) => {
|