@pnkx-lib/ui 1.8.3 → 1.8.7

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
- import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-C3IZzn6L.js';
2
- import { Select as Select$1, Radio, Checkbox } from 'antd';
1
+ import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-za5Skgtp.js';
2
+ import { Select as Select$1, Radio } from 'antd';
3
3
 
4
4
  const Select = (props) => {
5
5
  //! State
@@ -100,53 +100,4 @@ const RadioGroup = (props) => {
100
100
  ] });
101
101
  };
102
102
 
103
- const CheckboxField = (props) => {
104
- //! State
105
- const {
106
- field,
107
- formState,
108
- label,
109
- afterOnChange,
110
- customStyleContainer,
111
- customStyleCheckbox,
112
- ...restProps
113
- } = props;
114
- const { name, value, onChange, onBlur } = field || {};
115
- const { touchedFields, errors, isSubmitted } = formState || {};
116
- const isTouched = get(touchedFields, name);
117
- const errorMessage = get(errors, name)?.message;
118
- //! Function
119
- const handleChange = (e) => {
120
- const checked = e.target.checked;
121
- onChange?.(checked);
122
- afterOnChange?.(checked);
123
- };
124
- const renderErrorMessage = () => {
125
- if (!errorMessage) return null;
126
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
127
- ErrorMessage,
128
- {
129
- errorMessage,
130
- isTouched,
131
- isSubmitted
132
- }
133
- );
134
- };
135
- //! Render
136
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: customStyleContainer, children: [
137
- /* @__PURE__ */ jsxRuntimeExports.jsx(
138
- Checkbox,
139
- {
140
- onBlur,
141
- checked: !!value,
142
- onChange: handleChange,
143
- className: customStyleCheckbox,
144
- ...restProps,
145
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { children: label })
146
- }
147
- ),
148
- renderErrorMessage()
149
- ] });
150
- };
151
-
152
- export { CheckboxField as C, RadioGroup as R, Select as S };
103
+ export { RadioGroup as R, Select as S };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useRef, useState, useEffect, useLayoutEffect, useMemo, forwardRef, useCallback, createElement, Component, createRef, createContext, useContext } from 'react';
3
- import { Typography as Typography$1, Input as Input$1, DatePicker, Upload, Image, Switch } from 'antd';
3
+ import { Typography as Typography$1, Input as Input$1, Checkbox, DatePicker, Upload, Image, Switch } from 'antd';
4
4
  import { g as require_baseGetTag, h as requireIsObjectLike, k as requireIsArray, d as require_MapCache, o as require_Symbol, p as getDefaultExportFromCjs, q as commonjsGlobal, T as TINY_API } from './common-b3FKGF0Y.js';
5
5
  import * as ReactDOM from 'react-dom';
6
6
  import ReactDOM__default, { findDOMNode } from 'react-dom';
@@ -3495,6 +3495,8 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
3495
3495
  return result;
3496
3496
  };
3497
3497
 
3498
+ const useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
3499
+
3498
3500
  /**
3499
3501
  * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.
3500
3502
  *
@@ -3539,10 +3541,8 @@ function useFormState(props) {
3539
3541
  isValid: false,
3540
3542
  errors: false,
3541
3543
  });
3542
- const _name = React__default.useRef(name);
3543
- _name.current = name;
3544
- React__default.useEffect(() => control._subscribe({
3545
- name: _name.current,
3544
+ useIsomorphicLayoutEffect$1(() => control._subscribe({
3545
+ name: name,
3546
3546
  formState: _localProxyFormState.current,
3547
3547
  exact,
3548
3548
  callback: (formState) => {
@@ -3552,7 +3552,7 @@ function useFormState(props) {
3552
3552
  ...formState,
3553
3553
  });
3554
3554
  },
3555
- }), [control, disabled, exact]);
3555
+ }), [name, disabled, exact]);
3556
3556
  React__default.useEffect(() => {
3557
3557
  _localProxyFormState.current.isValid && control._setValid(true);
3558
3558
  }, [control]);
@@ -3592,19 +3592,17 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
3592
3592
  function useWatch(props) {
3593
3593
  const methods = useFormContext();
3594
3594
  const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};
3595
- const _name = React__default.useRef(name);
3596
3595
  const _defaultValue = React__default.useRef(defaultValue);
3597
- _name.current = name;
3598
- React__default.useEffect(() => control._subscribe({
3599
- name: _name.current,
3596
+ const [value, updateValue] = React__default.useState(control._getWatch(name, _defaultValue.current));
3597
+ useIsomorphicLayoutEffect$1(() => control._subscribe({
3598
+ name: name,
3600
3599
  formState: {
3601
3600
  values: true,
3602
3601
  },
3603
3602
  exact,
3604
3603
  callback: (formState) => !disabled &&
3605
- updateValue(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, _defaultValue.current)),
3606
- }), [control, disabled, exact]);
3607
- const [value, updateValue] = React__default.useState(control._getWatch(name, defaultValue));
3604
+ updateValue(generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current)),
3605
+ }), [name, control, disabled, exact]);
3608
3606
  React__default.useEffect(() => control._removeUnmounted());
3609
3607
  return value;
3610
3608
  }
@@ -4420,6 +4418,7 @@ function createFormControl(props = {}) {
4420
4418
  let _formState = {
4421
4419
  submitCount: 0,
4422
4420
  isDirty: false,
4421
+ isReady: false,
4423
4422
  isLoading: isFunction$1(_options.defaultValues),
4424
4423
  isValidating: false,
4425
4424
  isSubmitted: false,
@@ -4434,7 +4433,7 @@ function createFormControl(props = {}) {
4434
4433
  };
4435
4434
  const _fields = {};
4436
4435
  let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)
4437
- ? cloneObject(_options.values || _options.defaultValues) || {}
4436
+ ? cloneObject(_options.defaultValues || _options.values) || {}
4438
4437
  : {};
4439
4438
  let _formValues = _options.shouldUnregister
4440
4439
  ? {}
@@ -5485,6 +5484,7 @@ function useForm(props = {}) {
5485
5484
  validatingFields: {},
5486
5485
  errors: props.errors || {},
5487
5486
  disabled: props.disabled || false,
5487
+ isReady: false,
5488
5488
  defaultValues: isFunction$1(props.defaultValues)
5489
5489
  ? undefined
5490
5490
  : props.defaultValues,
@@ -5502,12 +5502,37 @@ function useForm(props = {}) {
5502
5502
  }
5503
5503
  const control = _formControl.current.control;
5504
5504
  control._options = props;
5505
- React__default.useLayoutEffect(() => control._subscribe({
5506
- formState: control._proxyFormState,
5507
- callback: () => updateFormState({ ...control._formState }),
5508
- reRenderRoot: true,
5509
- }), [control]);
5505
+ useIsomorphicLayoutEffect$1(() => {
5506
+ const sub = control._subscribe({
5507
+ formState: control._proxyFormState,
5508
+ callback: () => updateFormState({ ...control._formState }),
5509
+ reRenderRoot: true,
5510
+ });
5511
+ updateFormState((data) => ({
5512
+ ...data,
5513
+ isReady: true,
5514
+ }));
5515
+ control._formState.isReady = true;
5516
+ return sub;
5517
+ }, [control]);
5510
5518
  React__default.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
5519
+ React__default.useEffect(() => {
5520
+ if (props.mode) {
5521
+ control._options.mode = props.mode;
5522
+ }
5523
+ if (props.reValidateMode) {
5524
+ control._options.reValidateMode = props.reValidateMode;
5525
+ }
5526
+ if (props.errors && !isEmptyObject(props.errors)) {
5527
+ control._setErrors(props.errors);
5528
+ }
5529
+ }, [control, props.errors, props.mode, props.reValidateMode]);
5530
+ React__default.useEffect(() => {
5531
+ props.shouldUnregister &&
5532
+ control._subjects.state.next({
5533
+ values: control._getWatch(),
5534
+ });
5535
+ }, [control, props.shouldUnregister]);
5511
5536
  React__default.useEffect(() => {
5512
5537
  if (control._proxyFormState.isDirty) {
5513
5538
  const isDirty = control._getDirty();
@@ -5527,12 +5552,7 @@ function useForm(props = {}) {
5527
5552
  else {
5528
5553
  control._resetDefaultValues();
5529
5554
  }
5530
- }, [props.values, control]);
5531
- React__default.useEffect(() => {
5532
- if (props.errors && !isEmptyObject(props.errors)) {
5533
- control._setErrors(props.errors);
5534
- }
5535
- }, [props.errors, control]);
5555
+ }, [control, props.values]);
5536
5556
  React__default.useEffect(() => {
5537
5557
  if (!control._state.mount) {
5538
5558
  control._setValid();
@@ -5544,12 +5564,6 @@ function useForm(props = {}) {
5544
5564
  }
5545
5565
  control._removeUnmounted();
5546
5566
  });
5547
- React__default.useEffect(() => {
5548
- props.shouldUnregister &&
5549
- control._subjects.state.next({
5550
- values: control._getWatch(),
5551
- });
5552
- }, [props.shouldUnregister, control]);
5553
5567
  _formControl.current.formState = getProxyFormState(formState, control);
5554
5568
  return _formControl.current;
5555
5569
  }
@@ -24779,6 +24793,55 @@ const Textarea = forwardRef(
24779
24793
  );
24780
24794
  React__default.memo(Textarea);
24781
24795
 
24796
+ const CheckboxField = (props) => {
24797
+ //! State
24798
+ const {
24799
+ field,
24800
+ formState,
24801
+ label,
24802
+ afterOnChange,
24803
+ customStyleContainer,
24804
+ customStyleCheckbox,
24805
+ ...restProps
24806
+ } = props;
24807
+ const { name, value, onChange, onBlur } = field || {};
24808
+ const { touchedFields, errors, isSubmitted } = formState || {};
24809
+ const isTouched = get$1(touchedFields, name);
24810
+ const errorMessage = get$1(errors, name)?.message;
24811
+ //! Function
24812
+ const handleChange = (e) => {
24813
+ const checked = e.target.checked;
24814
+ onChange?.(checked);
24815
+ afterOnChange?.(checked);
24816
+ };
24817
+ const renderErrorMessage = () => {
24818
+ if (!errorMessage) return null;
24819
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
24820
+ ErrorMessage,
24821
+ {
24822
+ errorMessage,
24823
+ isTouched,
24824
+ isSubmitted
24825
+ }
24826
+ );
24827
+ };
24828
+ //! Render
24829
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: customStyleContainer, children: [
24830
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
24831
+ Checkbox,
24832
+ {
24833
+ onBlur,
24834
+ checked: !!value,
24835
+ onChange: handleChange,
24836
+ className: customStyleCheckbox,
24837
+ ...restProps,
24838
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { children: label })
24839
+ }
24840
+ ),
24841
+ renderErrorMessage()
24842
+ ] });
24843
+ };
24844
+
24782
24845
  function _typeof(o) {
24783
24846
  "@babel/helpers - typeof";
24784
24847
 
@@ -39321,4 +39384,4 @@ const SwitchField = (props) => {
39321
39384
  };
39322
39385
  React__default.memo(SwitchField);
39323
39386
 
39324
- export { _createSuper as A, _assertThisInitialized$1 as B, _objectWithoutProperties as C, DatePickerField as D, ErrorMessage as E, FastColor as F, IconContext as G, Input as I, Label as L, PnkxField as P, RangePickerField as R, Typography as T, _extends as _, TinyMCE as a, Icon as b, _typeof as c, classNames as d, _arrayLikeToArray as e, _unsupportedIterableToArray as f, get$1 as g, _createClass as h, _classCallCheck as i, jsxRuntimeExports as j, _defineProperty as k, _slicedToArray as l, warning$1 as m, canUseDom as n, _objectSpread2 as o, updateCSS as p, _arrayWithHoles as q, removeCSS as r, _nonIterableRest as s, resetWarned as t, useForm as u, generate$1 as v, warningOnce as w, presetPrimaryColors as x, presetPalettes as y, _inherits as z };
39387
+ export { _createSuper as A, _assertThisInitialized$1 as B, CheckboxField as C, DatePickerField as D, ErrorMessage as E, FastColor as F, _objectWithoutProperties as G, IconContext as H, Input as I, Label as L, PnkxField as P, RangePickerField as R, Typography as T, _extends as _, TinyMCE as a, Icon as b, _typeof as c, classNames as d, _arrayLikeToArray as e, _unsupportedIterableToArray as f, get$1 as g, _createClass as h, _classCallCheck as i, jsxRuntimeExports as j, _defineProperty as k, _slicedToArray as l, warning$1 as m, canUseDom as n, _objectSpread2 as o, updateCSS as p, _arrayWithHoles as q, removeCSS as r, _nonIterableRest as s, resetWarned as t, useForm as u, generate$1 as v, warningOnce as w, presetPrimaryColors as x, presetPalettes as y, _inherits as z };
@@ -1,2 +1,2 @@
1
- export { D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, a as TinyMCE } from '../chunks/Switch-C3IZzn6L.js';
2
- export { C as CheckboxField, R as RadioGroup, S as Select } from '../chunks/Checkbox-2LoiNtBe.js';
1
+ export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, a as TinyMCE } from '../chunks/Switch-za5Skgtp.js';
2
+ export { R as RadioGroup, S as Select } from '../chunks/Radio-D2me1zZ-.js';
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-Ja4PIPaU.js';
2
- export { D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TinyMCE, T as Typography } from './chunks/Switch-C3IZzn6L.js';
3
- export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-2LoiNtBe.js';
1
+ export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-CXESHSc6.js';
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 TinyMCE, T as Typography } from './chunks/Switch-za5Skgtp.js';
3
+ export { R as RadioGroup, S as Select } from './chunks/Radio-D2me1zZ-.js';
4
4
  export { u as useToast } from './chunks/cloneDeep-BLYi2V0G.js';
5
5
  export { u as useFiltersHandler, a as useMessage } from './chunks/useMessage-D_-VT5B4.js';
package/es/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-Ja4PIPaU.js';
2
- export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-C3IZzn6L.js';
1
+ export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-CXESHSc6.js';
2
+ export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-za5Skgtp.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.8.3",
4
+ "version": "1.8.7",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -90,6 +90,10 @@
90
90
  },
91
91
  "dependencies": {
92
92
  "@ant-design/icons": "^5.6.1",
93
+ "@dnd-kit/core": "^6.3.1",
94
+ "@dnd-kit/modifiers": "^9.0.0",
95
+ "@dnd-kit/sortable": "^10.0.0",
96
+ "@dnd-kit/utilities": "^3.2.2",
93
97
  "@emotion/css": "^11.13.5",
94
98
  "@headlessui/react": "^2.2.2",
95
99
  "@heroicons/react": "^2.2.0",
@@ -107,4 +111,4 @@
107
111
  "yup": "^1.6.1",
108
112
  "zustand": "^5.0.3"
109
113
  }
110
- }
114
+ }
package/types/index.d.ts CHANGED
@@ -202,20 +202,19 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
202
202
 
203
203
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
204
204
 
205
- export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
205
+ export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
206
206
 
207
207
  export declare interface BulkActionProps {
208
208
  quantity: number;
209
- handleRestore?: () => void;
210
- handleSendApproval?: () => void;
211
- handleCancelSendApproval?: () => void;
212
- handleRefuseApproval?: () => void;
213
- handleApproval?: () => void;
214
- handleCancelApproval?: () => void;
209
+ handleRefresh?: () => void;
210
+ handleSend?: () => void;
211
+ handleSlash?: () => void;
212
+ handleProhibit?: () => void;
213
+ handleCheck?: () => void;
214
+ handleClose?: () => void;
215
215
  handleDelete?: () => void;
216
- handleActivate?: () => void;
217
- handleInActivate?: () => void;
218
- status?: number;
216
+ handleUnLock?: () => void;
217
+ handleLock?: () => void;
219
218
  }
220
219
 
221
220
  export declare const Button: default_3.FC<ButtonProps>;
@@ -265,13 +264,11 @@ export declare interface ConfirmModalProps extends ModalProps {
265
264
  content: string;
266
265
  titleCancelBtn?: string;
267
266
  titleSubmitBtn?: string;
268
- typeIcon: ConfirmModalType;
267
+ typeIcon: "success" | "error" | "warning" | "info";
269
268
  handleCancel?: () => void;
270
269
  handleSubmit?: () => void;
271
270
  }
272
271
 
273
- export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
274
-
275
272
  export declare const Container: default_3.FC<ContainerProps>;
276
273
 
277
274
  export declare interface ContainerProps {
package/types/ui.d.ts CHANGED
@@ -183,20 +183,19 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
183
183
 
184
184
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
185
185
 
186
- export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
186
+ export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
187
187
 
188
188
  export declare interface BulkActionProps {
189
189
  quantity: number;
190
- handleRestore?: () => void;
191
- handleSendApproval?: () => void;
192
- handleCancelSendApproval?: () => void;
193
- handleRefuseApproval?: () => void;
194
- handleApproval?: () => void;
195
- handleCancelApproval?: () => void;
190
+ handleRefresh?: () => void;
191
+ handleSend?: () => void;
192
+ handleSlash?: () => void;
193
+ handleProhibit?: () => void;
194
+ handleCheck?: () => void;
195
+ handleClose?: () => void;
196
196
  handleDelete?: () => void;
197
- handleActivate?: () => void;
198
- handleInActivate?: () => void;
199
- status?: number;
197
+ handleUnLock?: () => void;
198
+ handleLock?: () => void;
200
199
  }
201
200
 
202
201
  export declare const Button: default_3.FC<ButtonProps>;
@@ -232,13 +231,11 @@ export declare interface ConfirmModalProps extends ModalProps {
232
231
  content: string;
233
232
  titleCancelBtn?: string;
234
233
  titleSubmitBtn?: string;
235
- typeIcon: ConfirmModalType;
234
+ typeIcon: "success" | "error" | "warning" | "info";
236
235
  handleCancel?: () => void;
237
236
  handleSubmit?: () => void;
238
237
  }
239
238
 
240
- export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
241
-
242
239
  export declare const Container: default_3.FC<ContainerProps>;
243
240
 
244
241
  export declare interface ContainerProps {