@pnkx-lib/ui 1.9.60 → 1.9.62
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,5 +1,5 @@
|
|
1
1
|
import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography, c as classNames } from './Upload-D0erjks6.js';
|
2
|
-
import { Select as Select$1, Radio, Switch } from 'antd';
|
2
|
+
import { Select as Select$1, Radio, Switch as Switch$1 } from 'antd';
|
3
3
|
|
4
4
|
const Select = (props) => {
|
5
5
|
//! State
|
@@ -100,7 +100,7 @@ const RadioGroup = (props) => {
|
|
100
100
|
] });
|
101
101
|
};
|
102
102
|
|
103
|
-
const
|
103
|
+
const Switch = (props) => {
|
104
104
|
//! State
|
105
105
|
const {
|
106
106
|
field,
|
@@ -137,7 +137,7 @@ const SwitchField = (props) => {
|
|
137
137
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: customStyleContainer, children: [
|
138
138
|
label && /* @__PURE__ */ jsxRuntimeExports.jsx(Label, { label, required }),
|
139
139
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
140
|
-
Switch,
|
140
|
+
Switch$1,
|
141
141
|
{
|
142
142
|
checked: !!value,
|
143
143
|
onChange: handleChange,
|
@@ -150,4 +150,4 @@ const SwitchField = (props) => {
|
|
150
150
|
] });
|
151
151
|
};
|
152
152
|
|
153
|
-
export { RadioGroup as R, Select as S,
|
153
|
+
export { RadioGroup as R, Select as S, Switch as a };
|
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/Upload-D0erjks6.js';
|
2
|
-
export { R as RadioGroup, S as Select, a as
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch } from '../chunks/Switch-DQhQEc3A.js';
|
package/es/index.js
CHANGED
@@ -2,5 +2,5 @@ export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoCom
|
|
2
2
|
export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/Upload-D0erjks6.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable, u as useToast } from './chunks/table-B28OPA57.js';
|
5
|
-
export { R as RadioGroup, S as Select, a as
|
5
|
+
export { R as RadioGroup, S as Select, a as Switch } from './chunks/Switch-DQhQEc3A.js';
|
6
6
|
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-C5Y4aFUQ.js';
|
package/package.json
CHANGED
package/types/fields.d.ts
CHANGED
@@ -13,7 +13,7 @@ import { RangePickerProps } from 'antd/es/date-picker';
|
|
13
13
|
import * as React_2 from 'react';
|
14
14
|
import { ReactDatePickerProps } from 'react-datepicker';
|
15
15
|
import { SelectProps } from 'antd';
|
16
|
-
import { SwitchProps } from 'antd';
|
16
|
+
import { SwitchProps as SwitchProps_2 } from 'antd';
|
17
17
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
18
18
|
import { UploadFile } from 'antd';
|
19
19
|
import { UploadProps } from 'antd';
|
@@ -131,9 +131,9 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
131
131
|
customStyleContainer?: string;
|
132
132
|
}
|
133
133
|
|
134
|
-
export declare const
|
134
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
135
135
|
|
136
|
-
export declare interface
|
136
|
+
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
137
137
|
field?: ControllerRenderProps<any, any>;
|
138
138
|
formState?: UseFormStateReturn<any>;
|
139
139
|
label?: string;
|
package/types/index.d.ts
CHANGED
@@ -81,7 +81,7 @@ import { StepProps as StepProps_2 } from 'antd';
|
|
81
81
|
import { Steps as Steps_2 } from 'antd';
|
82
82
|
import { StepsProps as StepsProps_2 } from 'antd';
|
83
83
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
84
|
-
import { SwitchProps } from 'antd';
|
84
|
+
import { SwitchProps as SwitchProps_2 } from 'antd';
|
85
85
|
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
86
86
|
import { TableProps } from 'antd/lib/table';
|
87
87
|
import { TabsProps as TabsProps_2 } from 'antd';
|
@@ -680,9 +680,9 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
680
680
|
|
681
681
|
export declare type SubMenuProps = SubMenuProps_2;
|
682
682
|
|
683
|
-
export declare const
|
683
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
684
684
|
|
685
|
-
export declare interface
|
685
|
+
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
686
686
|
field?: ControllerRenderProps<any, any>;
|
687
687
|
formState?: UseFormStateReturn<any>;
|
688
688
|
label?: string;
|