revdev-components 0.86.0 → 0.87.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,7 @@
1
+ import React from "react";
2
+ import { SwitchProps } from "antd";
3
+ interface Props extends Omit<SwitchProps, "name"> {
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const SwitchFieldControl: React.FC<Props>;
7
+ export {};
package/build/index.js CHANGED
@@ -4782,14 +4782,19 @@ var CheckboxField = function (props) {
4782
4782
  React.createElement(antd.Checkbox, __assign({}, controlProps))));
4783
4783
  };
4784
4784
 
4785
- var s$o = {"root":"index-module_root__3Y1jZ"};
4785
+ var s$o = {"root":"index-module_root__GGl-p"};
4786
+
4787
+ var SwitchFieldControl = function (_a) {
4788
+ var children = _a.children, props = __rest(_a, ["children"]);
4789
+ return (React.createElement("div", { className: s$o.root },
4790
+ React.createElement(antd.Switch, __assign({}, props)),
4791
+ children && React.createElement("div", { className: s$o.content }, children)));
4792
+ };
4786
4793
 
4787
4794
  var SwitchField = function (props) {
4788
- var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], children = _b.children, controlProps = __rest(_b, ["children"]);
4795
+ var _a = useLineProps(props), lineProps = _a[0], controlProps = _a[1];
4789
4796
  return (React.createElement(FormLine, __assign({}, lineProps, { valuePropName: "checked" }),
4790
- React.createElement("div", { className: s$o.root },
4791
- React.createElement(antd.Switch, __assign({}, controlProps)),
4792
- children && React.createElement("div", { className: s$o.content }, children))));
4797
+ React.createElement(SwitchFieldControl, __assign({}, controlProps))));
4793
4798
  };
4794
4799
 
4795
4800
  // export function useDebounceCallback<T extends (...args: any[]) => any>(delay: number, callback: T, deps: DependencyList = []): DebouncedFunc<T> {
package/build/styles.css CHANGED
@@ -105,7 +105,7 @@ body {
105
105
  .index-module_popup__Im5Y-.ant-picker-panel:nth-child(1) button {
106
106
  visibility: visible !important;
107
107
  }
108
- .index-module_root__3Y1jZ {
108
+ .index-module_root__GGl-p {
109
109
  display: flex;
110
110
  flex-direction: row;
111
111
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {