revdev-components 0.42.0 → 0.44.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.
@@ -2,7 +2,6 @@ import React from "react";
2
2
  import { CheckboxProps } from "antd";
3
3
  import { FormLineProps } from "../line";
4
4
  interface Props extends FormLineProps, Omit<CheckboxProps, "name"> {
5
- oneMonth?: boolean;
6
5
  }
7
6
  export declare const CheckboxField: React.FC<Props>;
8
7
  export {};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { SwitchProps } from "antd";
3
+ import { FormLineProps } from "../line";
4
+ interface Props extends FormLineProps, Omit<SwitchProps, "name"> {
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const SwitchField: React.FC<Props>;
8
+ export {};
package/build/index.js CHANGED
@@ -4710,7 +4710,7 @@ var TextAreaField = function (props) {
4710
4710
 
4711
4711
  var CheckboxField = function (props) {
4712
4712
  var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], controlProps = __rest(_b, []);
4713
- return (React.createElement(FormLine, __assign({}, lineProps),
4713
+ return (React.createElement(FormLine, __assign({}, lineProps, { valuePropName: "checked" }),
4714
4714
  React.createElement(antd.Checkbox, __assign({}, controlProps))));
4715
4715
  };
4716
4716
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {
7
7
  "dev": "next dev",
8
8
  "build:next": "next build",
9
9
  "start:next": "next start",
10
- "start": "storybook dev -p 6006",
10
+ "start": "storybook dev -p 4300",
11
11
  "s": "npm run storybook",
12
12
  "build-storybook": "storybook build",
13
13
  "lint": "eslint . && stylelint \"**/*.scss\"",