revdev-components 0.39.0 → 0.41.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 {};
@@ -7,3 +7,4 @@ export * from "./radio-button";
7
7
  export * from "./range-picker";
8
8
  export * from "./select";
9
9
  export * from "./text-area";
10
+ export * from "./checkbox";
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"};
@@ -4708,6 +4708,12 @@ var TextAreaField = function (props) {
4708
4708
  React.createElement(TextArea, __assign({}, controlProps))));
4709
4709
  };
4710
4710
 
4711
+ var CheckboxField = function (props) {
4712
+ var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], controlProps = __rest(_b, []);
4713
+ return (React.createElement(FormLine, __assign({}, lineProps),
4714
+ React.createElement(antd.Checkbox, __assign({}, controlProps))));
4715
+ };
4716
+
4711
4717
  // export function useDebounceCallback<T extends (...args: any[]) => any>(delay: number, callback: T, deps: DependencyList = []): DebouncedFunc<T> {
4712
4718
  // return useCallback(debounce(callback, delay), deps);
4713
4719
  // }
@@ -5063,6 +5069,7 @@ exports.AppLink = AppLink;
5063
5069
  exports.AppLinkButton = AppLinkButton;
5064
5070
  exports.BackLayout = BackLayout;
5065
5071
  exports.BackSidebar = BackSidebar;
5072
+ exports.CheckboxField = CheckboxField;
5066
5073
  exports.DatePickerField = DatePickerField;
5067
5074
  exports.DivisionRow = DivisionRow;
5068
5075
  exports.FlagIcon = FlagIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {