@pnkx-lib/ui 1.9.52 → 1.9.53

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,4 +1,4 @@
1
- import { j as jsxRuntimeExports, c as Icon, _ as _extends, d as _typeof, P as PnkxField, C as CheckboxField, u as useForm, e as classNames, I as Input, f as _arrayLikeToArray, h as _unsupportedIterableToArray, w as warningOnce, i as _createClass, k as _classCallCheck, l as _defineProperty, m as _slicedToArray, n as warning$1, o as canUseDom, p as _objectSpread2, q as updateCSS, r as removeCSS, s as _arrayWithHoles, t as _nonIterableRest, v as resetWarned$1, F as FastColor, x as generate, y as presetPrimaryColors, z as presetPalettes, A as _inherits, B as _createSuper, G as _assertThisInitialized, H as _objectWithoutProperties, J as IconContext } from './Switch-jt4L5Z_9.js';
1
+ import { j as jsxRuntimeExports, d as get$1, s as set$1, e as appendErrors, f as Icon, _ as _extends, h as _typeof, P as PnkxField, C as CheckboxField, u as useForm, c as classNames, l as lodashExports, I as Input, i as _arrayLikeToArray, k as _unsupportedIterableToArray, w as warningOnce, m as _createClass, n as _classCallCheck, o as _defineProperty, p as _slicedToArray, q as warning$1, r as canUseDom, t as _objectSpread2, v as updateCSS, x as removeCSS, y as _arrayWithHoles, z as _nonIterableRest, A as resetWarned$1, F as FastColor, B as generate, G as presetPrimaryColors, H as presetPalettes, J as _inherits, K as _createSuper, M as _assertThisInitialized, N as _objectWithoutProperties, O as IconContext } from './Upload-D0erjks6.js';
2
2
  import { Button as Button$1, Cascader, Space as Space$1, Card, Skeleton as Skeleton$1, Modal as Modal$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Tooltip as Tooltip$1, Divider as Divider$2, Popconfirm as Popconfirm$1, Typography, Table as Table$1, Tabs as Tabs$1, Popover as Popover$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Splitter as Splitter$1, Menu as Menu$1, Pagination as Pagination$1, Steps as Steps$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse, ColorPicker, Empty as Empty$2, Image as Image$1 } from 'antd';
3
3
  import * as React from 'react';
4
4
  import React__default, { version as version$1, isValidElement, useLayoutEffect as useLayoutEffect$1, useEffect, useRef, useMemo as useMemo$1, useCallback, useState, createContext, memo, useReducer, useContext, Component } from 'react';
@@ -27,6 +27,10 @@ const CascaderField = (props) => {
27
27
  ) });
28
28
  };
29
29
 
30
+ const r=(t,r,o)=>{if(t&&"reportValidity"in t){const s=get$1(o,r);t.setCustomValidity(s&&s.message||""),t.reportValidity();}},o$1=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&"reportValidity"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e));}},s=(r,s)=>{s.shouldUseNativeValidation&&o$1(r,s);const n={};for(const o in r){const f=get$1(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},get$1(n,o));set$1(r,"root",c),set$1(n,o,r);}else set$1(n,o,c);}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\.\\d+`))};function n(e){return e.replace(/\]|\[/g,"")}
31
+
32
+ function o(o,n,s$1){return void 0===s$1&&(s$1={}),function(a,i,c){try{return Promise.resolve(function(t,r){try{var u=(null!=n&&n.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(o["sync"===s$1.mode?"validateSync":"validate"](a,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t){return c.shouldUseNativeValidation&&o$1({},c),{values:s$1.raw?Object.assign({},a):t,errors:{}}}));}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){if(!e.inner)throw e;return {values:{},errors:s((o=e,n=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(o.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,s=o&&o[t.type];e[t.path]=appendErrors(t.path,n,e,t.type,s?[].concat(s,t.message):t.message);}return e},{})),c)};var o,n;}))}catch(e){return Promise.reject(e)}}}
33
+
30
34
  /*
31
35
 
32
36
  Based off glamor's StyleSheet, thanks Sunil ❤️
@@ -10103,7 +10107,7 @@ var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
10103
10107
  })(CATEGORY_LIST_ENUM || {});
10104
10108
 
10105
10109
  const BulkAction = ({
10106
- quantity,
10110
+ quantity = 0,
10107
10111
  handleRestore,
10108
10112
  handleSendApproval,
10109
10113
  handleCancelSendApproval,
@@ -10298,12 +10302,13 @@ const Table = ({
10298
10302
  renderHeadingSearch,
10299
10303
  rightHeadingContent,
10300
10304
  status,
10305
+ schema,
10301
10306
  ...rest
10302
10307
  }) => {
10303
10308
  //! State
10304
10309
  const paginationConfig = {
10305
10310
  current: filters.PageIndex,
10306
- pageSize: filters.PageSize,
10311
+ pageSize: filters?.PageSize,
10307
10312
  total: totalItems,
10308
10313
  showSizeChanger: true,
10309
10314
  showQuickJumper: true,
@@ -10317,16 +10322,21 @@ const Table = ({
10317
10322
  const rowSelection = {
10318
10323
  selectedRowKeys: rowsSelected,
10319
10324
  onChange: onSelect,
10320
- getCheckboxProps: (record) => ({
10321
- disabled: filters?.status
10322
- // Ví dụ: disable nếu tuổi > 40
10325
+ getCheckboxProps: () => ({
10326
+ disabled: !filters?.status
10323
10327
  })
10324
10328
  };
10325
- const { control, handleSubmit, reset } = useForm();
10329
+ const { control, handleSubmit, reset } = useForm(
10330
+ schema ? { resolver: o(schema) } : void 0
10331
+ );
10326
10332
  const [data, setData] = useState([]);
10327
10333
  const [editingKey, setEditingKey] = useState("");
10328
- const getRowKeyValue = (record) => typeof rowKey === "function" ? rowKey(record) : record[rowKey];
10329
10334
  const isEditing = (record) => getRowKeyValue(record) === editingKey;
10335
+ //! Function
10336
+ useEffect(() => {
10337
+ setData(Array.isArray(dataSource) ? dataSource : []);
10338
+ }, [JSON.stringify(dataSource)]);
10339
+ const getRowKeyValue = (record) => typeof rowKey === "function" ? rowKey(record) : record[rowKey];
10330
10340
  const edit = (record) => {
10331
10341
  reset(record);
10332
10342
  setEditingKey(getRowKeyValue(record));
@@ -10347,10 +10357,6 @@ const Table = ({
10347
10357
  const cancel = () => {
10348
10358
  setEditingKey("");
10349
10359
  };
10350
- //! Function
10351
- useEffect(() => {
10352
- setData(Array.isArray(dataSource) ? dataSource : []);
10353
- }, [JSON.stringify(dataSource)]);
10354
10360
  const columnsEditable = [
10355
10361
  ...columns,
10356
10362
  {
@@ -10464,6 +10470,7 @@ const Table = ({
10464
10470
  components: editable ? {
10465
10471
  body: { cell: EditableCell }
10466
10472
  } : void 0,
10473
+ scroll: { y: 90 * 8 },
10467
10474
  ...rest
10468
10475
  }
10469
10476
  ),
@@ -10478,7 +10485,7 @@ const Table = ({
10478
10485
  setDefaultSettingColumnItems: setColumns
10479
10486
  }
10480
10487
  ),
10481
- rowsSelected?.length && rowsSelected?.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "fixed bottom-1/100 left-1/2 -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(BulkAction, { quantity: rowsSelected?.length || 0, status }) })
10488
+ rowsSelected && !lodashExports.isEmpty(rowsSelected) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "fixed bottom-1/100 left-1/2 -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(BulkAction, { quantity: rowsSelected?.length, status }) })
10482
10489
  ] });
10483
10490
  const renderTableContent = () => {
10484
10491
  if (editable) {
@@ -14238,7 +14245,7 @@ function genStyleUtils(config) {
14238
14245
  };
14239
14246
  }
14240
14247
 
14241
- const version = '5.25.1';
14248
+ const version = '5.25.0';
14242
14249
 
14243
14250
  function isStableColor(color) {
14244
14251
  return color >= 0 && color <= 255;
@@ -1,2 +1,2 @@
1
- export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/Switch-jt4L5Z_9.js';
2
- export { R as RadioGroup, S as Select } from '../chunks/Radio-CZubVPdR.js';
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 SwitchField } from '../chunks/Switch-CDqr-O_3.js';
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { Z as ActionRowTable, 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, Y as CategoryStatus, 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/index-BBP53H2w.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 TINY_API, b as TinyMCE, T as Typography } from './chunks/Switch-jt4L5Z_9.js';
1
+ export { Z as ActionRowTable, 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, Y as CategoryStatus, 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/index-Di9hmOdF.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 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 } from './chunks/Radio-CZubVPdR.js';
5
+ export { R as RadioGroup, S as Select, a as SwitchField } from './chunks/Switch-CDqr-O_3.js';
6
6
  export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-C5Y4aFUQ.js';
package/es/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Z as ActionRowTable, 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, Y as CategoryStatus, 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/index-BBP53H2w.js';
2
- export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Switch-jt4L5Z_9.js';
1
+ export { Z as ActionRowTable, 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, Y as CategoryStatus, 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/index-Di9hmOdF.js';
2
+ export { E as ErrorMessage, L as Label, a as TINY_API, 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 } from '../chunks/table-B28OPA57.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.52",
4
+ "version": "1.9.53",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/fields.d.ts CHANGED
@@ -6,8 +6,8 @@ import { Dayjs } from 'dayjs';
6
6
  import { default as default_2 } from 'react';
7
7
  import { IAllProps } from '@tinymce/tinymce-react';
8
8
  import { InputProps as InputProps_2 } from 'antd';
9
- import { JSX as JSX_2 } from 'react/jsx-runtime';
10
- import { JSX as JSX_3 } from 'react';
9
+ import { JSX } from 'react/jsx-runtime';
10
+ import { JSX as JSX_2 } from 'react';
11
11
  import { RadioGroupProps } from 'antd';
12
12
  import { RangePickerProps } from 'antd/es/date-picker';
13
13
  import * as React_2 from 'react';
@@ -20,7 +20,7 @@ import { UploadProps } from 'antd';
20
20
  import { UseFormSetValue } from 'react-hook-form';
21
21
  import { UseFormStateReturn } from 'react-hook-form';
22
22
 
23
- export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
23
+ export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
24
24
 
25
25
  export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
26
26
  field?: ControllerRenderProps<any, any>;
@@ -53,9 +53,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
53
53
  size?: TSize;
54
54
  }
55
55
 
56
- export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
56
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
57
57
 
58
- export declare const Input: (props: InputProps) => JSX_2.Element;
58
+ export declare const Input: (props: InputProps) => JSX.Element;
59
59
 
60
60
  export declare interface InputProps extends InputProps_2 {
61
61
  field?: ControllerRenderProps<any, any>;
@@ -73,7 +73,7 @@ export declare interface InputProps extends InputProps_2 {
73
73
  }
74
74
 
75
75
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
76
- render(): JSX_2.Element;
76
+ render(): JSX.Element;
77
77
  }
78
78
 
79
79
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -91,10 +91,10 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
91
91
  type?: TInputNumberType;
92
92
  prefix?: string;
93
93
  suffix?: string;
94
- helperText?: () => JSX_3.Element | null;
94
+ helperText?: () => JSX_2.Element | null;
95
95
  }
96
96
 
97
- export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
97
+ export declare const RadioGroup: (props: RadioProps) => JSX.Element;
98
98
 
99
99
  export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
100
100
  field?: ControllerRenderProps<any, any>;
@@ -107,7 +107,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
107
107
  position?: TPositionRadio;
108
108
  }
109
109
 
110
- export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
110
+ export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
111
111
 
112
112
  export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
113
113
  field?: ControllerRenderProps<any, any>;
@@ -119,7 +119,7 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
119
119
  customStyleDatePicker?: string;
120
120
  }
121
121
 
122
- export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
122
+ export declare const Select: (props: SelectFieldProps) => JSX.Element;
123
123
 
124
124
  export declare interface SelectFieldProps extends SelectProps {
125
125
  field?: ControllerRenderProps<any, any>;
@@ -131,6 +131,8 @@ export declare interface SelectFieldProps extends SelectProps {
131
131
  customStyleContainer?: string;
132
132
  }
133
133
 
134
+ export declare const SwitchField: (props: SwitchFieldProps) => JSX.Element;
135
+
134
136
  export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" | "checked"> {
135
137
  field?: ControllerRenderProps<any, any>;
136
138
  formState?: UseFormStateReturn<any>;
@@ -153,7 +155,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
153
155
  declare type TInputNumberType = "number" | "money";
154
156
 
155
157
  export declare const TinyMCE: {
156
- (props: TinyProps): JSX_2.Element;
158
+ (props: TinyProps): JSX.Element;
157
159
  displayName: string;
158
160
  };
159
161
 
package/types/index.d.ts CHANGED
@@ -42,15 +42,15 @@ import { ForwardRefExoticComponent } from 'react';
42
42
  import { IAllProps } from '@tinymce/tinymce-react';
43
43
  import { ImageProps } from 'antd';
44
44
  import { InputProps as InputProps_2 } from 'antd';
45
- import { JSX as JSX_2 } from 'react/jsx-runtime';
46
- import { JSX as JSX_3 } from 'react';
45
+ import { JSX } from 'react/jsx-runtime';
46
+ import { JSX as JSX_2 } from 'react';
47
47
  import { MenuDividerProps } from 'antd/es/menu';
48
48
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
49
49
  import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
50
50
  import { MenuProps as MenuProps_2 } from 'antd/es/menu';
51
51
  import { ModalProps as ModalProps_2 } from 'antd';
52
52
  import { Pagination as Pagination_2 } from 'antd';
53
- import { PaginationFilters as PaginationFilters_2 } from '../../../../../../../../../../src/components/hooks';
53
+ import { PaginationFilters as PaginationFilters_2 } from '../../../../../../../../../../../src/components/hooks';
54
54
  import { PaginationLocale } from 'rc-pagination';
55
55
  import { PaginationProps as PaginationProps_2 } from 'antd';
56
56
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
@@ -93,7 +93,7 @@ import { TitleProps } from 'antd/es/typography/Title';
93
93
  import { TooltipProps as TooltipProps_2 } from 'antd';
94
94
  import { TourProps as TourProps_2 } from 'antd';
95
95
  import { TreeProps as TreeProps_2 } from 'antd';
96
- import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../src/constants/table';
96
+ import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../src/constants/table';
97
97
  import { UploadFile } from 'antd';
98
98
  import { UploadProps } from 'antd';
99
99
  import { UseFormReset } from 'react-hook-form';
@@ -101,8 +101,9 @@ import { UseFormReturn } from 'react-hook-form';
101
101
  import { UseFormSetValue } from 'react-hook-form';
102
102
  import { UseFormStateReturn } from 'react-hook-form';
103
103
  import { WatermarkProps } from 'antd';
104
+ import * as yup from 'yup';
104
105
 
105
- export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
106
+ export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
106
107
 
107
108
  export declare interface ActionRowTableProps {
108
109
  type: TypeActionRowTable_2;
@@ -122,7 +123,7 @@ export declare const Anchor: typeof Anchor_2 & {
122
123
 
123
124
  export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
124
125
 
125
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
126
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
126
127
 
127
128
  export declare interface AppfixProps extends AffixProps {
128
129
  children: default_2.ReactNode;
@@ -132,7 +133,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
132
133
 
133
134
  export declare type AutoCompleteProps = AutoCompleteProps_2;
134
135
 
135
- export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
136
+ export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
136
137
 
137
138
  export declare interface BadgeProps extends BadgeProps_2 {
138
139
  type?: "error" | "info" | "success" | "warning";
@@ -202,7 +203,7 @@ declare type BaseProps_9 = {
202
203
  spaceClassName?: string;
203
204
  };
204
205
 
205
- export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
206
+ export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
206
207
 
207
208
  export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
208
209
  children?: Omit<BreadcrumbItemType, "children">[];
@@ -214,10 +215,10 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
214
215
 
215
216
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
216
217
 
217
- export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
218
+ export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
218
219
 
219
220
  export declare interface BulkActionProps {
220
- quantity: number;
221
+ quantity?: number;
221
222
  handleRestore?: () => void;
222
223
  handleSendApproval?: () => void;
223
224
  handleCancelSendApproval?: () => void;
@@ -234,17 +235,17 @@ export declare const Button: default_2.FC<ButtonProps>;
234
235
 
235
236
  export declare type ButtonProps = ButtonProps_2;
236
237
 
237
- export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
238
+ export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
238
239
 
239
240
  export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
240
241
 
241
- export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
242
+ export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
242
243
 
243
244
  export declare interface CategoryStatusProps {
244
245
  status: number;
245
246
  }
246
247
 
247
- export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
248
+ export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
248
249
 
249
250
  export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
250
251
  field?: ControllerRenderProps<any, any>;
@@ -256,7 +257,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
256
257
  customStyleCheckbox?: string;
257
258
  }
258
259
 
259
- export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
260
+ export declare const Col: (props: ColPropsUnion) => JSX.Element;
260
261
 
261
262
  export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
262
263
  }
@@ -276,7 +277,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
276
277
  ItemGroup: typeof ItemGroup;
277
278
  };
278
279
 
279
- export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
280
+ export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
280
281
 
281
282
  export declare interface ConfirmModalProps extends ModalProps {
282
283
  title: string;
@@ -317,9 +318,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
317
318
  size?: TSize;
318
319
  }
319
320
 
320
- export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
321
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
321
322
 
322
- export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
323
+ export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
323
324
 
324
325
  declare const Divider_2: FC<MenuDividerProps>;
325
326
 
@@ -327,14 +328,14 @@ export declare interface DividerProps extends DividerProps_2 {
327
328
  children?: ReactNode | string;
328
329
  }
329
330
 
330
- export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
331
+ export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
331
332
 
332
333
  export declare interface DrawerProps extends DrawerProps_2 {
333
334
  children?: ReactNode;
334
335
  onSubmit?: (values: any) => void;
335
336
  }
336
337
 
337
- export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
338
+ export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
338
339
 
339
340
  export declare type DropdownButtonProps = DropdownButtonProps_2;
340
341
 
@@ -368,7 +369,7 @@ export declare interface ErrorBoundaryState {
368
369
  errorInfo: ErrorInfo | null;
369
370
  }
370
371
 
371
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
372
+ export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
372
373
 
373
374
  export declare interface ErrorMessageProps {
374
375
  errorMessage?: string;
@@ -381,13 +382,13 @@ declare type ExtraProps = {
381
382
  menuClassName?: string;
382
383
  };
383
384
 
384
- export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
385
+ export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
385
386
 
386
387
  export declare type FlexProps = FlexProps_2;
387
388
 
388
389
  export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
389
390
 
390
- export declare const Heading: (props: HeadingProps) => JSX_2.Element;
391
+ export declare const Heading: (props: HeadingProps) => JSX.Element;
391
392
 
392
393
  export declare interface HeadingProps {
393
394
  rightContent?: ReactNode;
@@ -402,7 +403,7 @@ export { Image_2 as Image }
402
403
 
403
404
  export declare type InitialFiltersSearch<T> = T & PaginationFilters;
404
405
 
405
- export declare const Input: (props: InputProps) => JSX_2.Element;
406
+ export declare const Input: (props: InputProps) => JSX.Element;
406
407
 
407
408
  export declare interface InputProps extends InputProps_2 {
408
409
  field?: ControllerRenderProps<any, any>;
@@ -425,7 +426,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
425
426
 
426
427
  export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
427
428
 
428
- export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
429
+ export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
429
430
 
430
431
  export declare interface LabelProps {
431
432
  label: string;
@@ -452,7 +453,7 @@ export declare type MenuItemProps = MenuItemProps_2;
452
453
 
453
454
  export declare type MenuProps = MenuProps_2;
454
455
 
455
- export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
456
+ export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
456
457
 
457
458
  export declare interface ModalProps extends ModalProps_2 {
458
459
  children?: ReactNode;
@@ -499,7 +500,7 @@ export declare type PnkxCollapseProps = CollapseProps;
499
500
  export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
500
501
 
501
502
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
502
- render(): JSX_2.Element;
503
+ render(): JSX.Element;
503
504
  }
504
505
 
505
506
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -512,13 +513,13 @@ export declare interface PnkxSpinProps extends SpinProps {
512
513
  children?: ReactNode;
513
514
  }
514
515
 
515
- export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
516
+ export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
516
517
 
517
518
  export declare interface PopconfirmProps extends PopconfirmProps_2 {
518
519
  children?: ReactNode;
519
520
  }
520
521
 
521
- export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
522
+ export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
522
523
 
523
524
  export declare type PopoverProps = PopoverProps_2;
524
525
 
@@ -533,14 +534,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
533
534
  type?: TInputNumberType;
534
535
  prefix?: string;
535
536
  suffix?: string;
536
- helperText?: () => JSX_3.Element | null;
537
+ helperText?: () => JSX_2.Element | null;
537
538
  }
538
539
 
539
540
  export declare const QRCode: React.FC<QRCodeProps>;
540
541
 
541
542
  export declare type QRCodeProps = QRCodeProps_2;
542
543
 
543
- export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
544
+ export declare const RadioGroup: (props: RadioProps) => JSX.Element;
544
545
 
545
546
  export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
546
547
  field?: ControllerRenderProps<any, any>;
@@ -553,7 +554,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
553
554
  position?: TPositionRadio;
554
555
  }
555
556
 
556
- export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
557
+ export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
557
558
 
558
559
  export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
559
560
  field?: ControllerRenderProps<any, any>;
@@ -567,13 +568,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
567
568
 
568
569
  export declare const Rate: React.FC<RateProps>;
569
570
 
570
- export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
571
+ export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
571
572
 
572
573
  export declare interface ResultProps extends ResultProps_2 {
573
574
  children?: ReactNode | string;
574
575
  }
575
576
 
576
- export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
577
+ export declare const Row: (props: RowPropsUnion) => JSX.Element;
577
578
 
578
579
  declare interface RowCommon {
579
580
  [x: string]: any;
@@ -581,7 +582,7 @@ declare interface RowCommon {
581
582
 
582
583
  export declare type RowPropsUnion = BaseProps_4 & RowProps;
583
584
 
584
- export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
585
+ export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
585
586
 
586
587
  export declare interface SearchFiltersFormProps<T extends FieldValues> {
587
588
  renderFilterFields?: (options: {
@@ -603,7 +604,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
603
604
 
604
605
  export declare type SegmentedProps = SegmentedProps_2;
605
606
 
606
- export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
607
+ export declare const Select: (props: SelectFieldProps) => JSX.Element;
607
608
 
608
609
  export declare interface SelectFieldProps extends SelectProps {
609
610
  field?: ControllerRenderProps<any, any>;
@@ -615,7 +616,7 @@ export declare interface SelectFieldProps extends SelectProps {
615
616
  customStyleContainer?: string;
616
617
  }
617
618
 
618
- export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
619
+ export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
619
620
 
620
621
  export declare interface SidebarProps {
621
622
  children?: React.ReactNode;
@@ -636,7 +637,7 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
636
637
  multiple?: false;
637
638
  };
638
639
 
639
- export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
640
+ export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
640
641
 
641
642
  export declare interface SkeletonProps extends SkeletonProps_2 {
642
643
  type?: "table" | "form";
@@ -651,7 +652,7 @@ export declare const Space: typeof Space_2;
651
652
 
652
653
  export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
653
654
 
654
- export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
655
+ export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
655
656
 
656
657
  export declare const Splitter: typeof Splitter_2;
657
658
 
@@ -679,6 +680,8 @@ declare const SubMenu: FC<SubMenuProps>;
679
680
 
680
681
  export declare type SubMenuProps = SubMenuProps_2;
681
682
 
683
+ export declare const SwitchField: (props: SwitchFieldProps) => JSX.Element;
684
+
682
685
  export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" | "checked"> {
683
686
  field?: ControllerRenderProps<any, any>;
684
687
  formState?: UseFormStateReturn<any>;
@@ -696,7 +699,7 @@ declare type TabItem = {
696
699
  disabled?: boolean;
697
700
  };
698
701
 
699
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, ...rest }: TableCommonProps<T>) => JSX_2.Element;
702
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, ...rest }: TableCommonProps<T>) => JSX.Element;
700
703
 
701
704
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
702
705
 
@@ -709,7 +712,9 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
709
712
  columns: TableColumnsType<T>;
710
713
  loading?: boolean;
711
714
  totalItems: number;
712
- filters: PaginationFilters_2;
715
+ filters: PaginationFilters_2 & {
716
+ status?: number;
717
+ };
713
718
  onChangePage: (page: number) => void;
714
719
  onChangePageSize: (size: number) => void;
715
720
  onSort?: (sortField: string | number | symbol) => void;
@@ -726,6 +731,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
726
731
  renderHeadingSearch: () => ReactNode;
727
732
  rightHeadingContent: ReactNode;
728
733
  status?: number;
734
+ schema?: yup.AnyObjectSchema;
729
735
  }
730
736
 
731
737
  export declare const Tabs: default_2.FC<TabsProps>;
@@ -761,7 +767,7 @@ declare type TInputNumberType = "number" | "money";
761
767
  export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
762
768
 
763
769
  export declare const TinyMCE: {
764
- (props: TinyProps): JSX_2.Element;
770
+ (props: TinyProps): JSX.Element;
765
771
  displayName: string;
766
772
  };
767
773
 
@@ -814,9 +820,9 @@ export declare enum TypeActionRowTable {
814
820
  export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
815
821
 
816
822
  export declare const Typography: {
817
- Title: (props: TitleProps) => JSX_2.Element;
818
- Paragraph: (props: ParagraphProps) => JSX_2.Element;
819
- Text: (props: TextProps) => JSX_2.Element;
823
+ Title: (props: TitleProps) => JSX.Element;
824
+ Paragraph: (props: ParagraphProps) => JSX.Element;
825
+ Text: (props: TextProps) => JSX.Element;
820
826
  };
821
827
 
822
828
  export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
@@ -862,6 +868,6 @@ export declare const useToggle: () => {
862
868
  shouldRender: boolean;
863
869
  };
864
870
 
865
- export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
871
+ export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
866
872
 
867
873
  export { }