revdev-components 0.38.0 → 0.40.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,8 @@
1
+ import React from "react";
2
+ import { CheckboxProps } from "antd";
3
+ import { FormLineProps } from "../line";
4
+ interface Props extends FormLineProps, Omit<CheckboxProps, "name"> {
5
+ oneMonth?: boolean;
6
+ }
7
+ export declare const CheckboxField: React.FC<Props>;
8
+ export {};
@@ -10,7 +10,7 @@ export type ApiResponse<TResponse, TRequest, TError = any> = {
10
10
  isSuccess: boolean;
11
11
  isError: boolean;
12
12
  originalArgs?: TRequest;
13
- error: TError;
13
+ error?: TError;
14
14
  };
15
15
  export type ApiRequestMethod<TRequest> = (request: TRequest) => void;
16
16
  export interface ApiMutationResponse<TResponse, TRequest> {
package/build/index.js CHANGED
@@ -4681,9 +4681,9 @@ var InputNumberField = function (props) {
4681
4681
  };
4682
4682
 
4683
4683
  var RadioButtonField = function (props) {
4684
- var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], _c = _b.buttonStyle, buttonStyle = _c === void 0 ? "solid" : _c, controlProps = __rest(_b, ["buttonStyle"]);
4684
+ var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], _c = _b.buttonStyle, buttonStyle = _c === void 0 ? "solid" : _c, _d = _b.optionType, optionType = _d === void 0 ? "button" : _d, controlProps = __rest(_b, ["buttonStyle", "optionType"]);
4685
4685
  return (React.createElement(FormLine, __assign({}, lineProps),
4686
- React.createElement(antd.Radio.Group, __assign({ buttonStyle: buttonStyle }, controlProps))));
4686
+ React.createElement(antd.Radio.Group, __assign({ buttonStyle: buttonStyle, optionType: optionType }, controlProps))));
4687
4687
  };
4688
4688
 
4689
4689
  var s$e = {"popup":"index-module_popup__5L587"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.38.0",
3
+ "version": "0.40.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {