@pnkx-lib/ui 1.9.154 → 1.9.156
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.
- package/es/chunks/{PageNotFound-Blorg-2a.js → PageNotFound-BdABLmlN.js} +6 -6
- package/es/chunks/{Switch-5QJd7xTE.js → Switch-BlJg7gUg.js} +1 -1
- package/es/chunks/{index-BKcnCLrf.js → index-VYhgtDmq.js} +1 -2
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/components/fields/Textarea.d.ts +1 -2
- package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +1 -1
- package/types/components/ui/Table/index.d.ts +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as jsxRuntimeExports,
|
1
|
+
import { j as jsxRuntimeExports, i as Icon, _ as _extends, P as PnkxField, C as Checkbox, u as useSortable, k as CSS, t as twMerge, l as useForm, m as DndContext, n as closestCenter, o as SortableContext, v as verticalListSortingStrategy, p as arrayMove, q as className, a as Tooltip, r as lodashExports, s as distExports, w as useTabStore, x as distExports$1, I as Input, T as Typography$1 } from './index-VYhgtDmq.js';
|
2
2
|
import { Button as Button$1, Cascader, Modal as Modal$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Divider as Divider$1, Table as Table$1, Tabs as Tabs$1, Space, Card as Card$1, Skeleton as Skeleton$1, Popover as Popover$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Pagination as Pagination$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, Popconfirm as Popconfirm$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, Typography, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse as Collapse$1, ColorPicker as ColorPicker$1, Empty as Empty$1, Image as Image$1, ConfigProvider as ConfigProvider$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useState, useEffect, Component } from 'react';
|
@@ -451,7 +451,7 @@ const Badge = ({ type, children, customColor, ...rest }) => {
|
|
451
451
|
const ButtonBadge = (props) => {
|
452
452
|
const { buttonItem, active, setFilters, filters } = props;
|
453
453
|
const handleClick = () => {
|
454
|
-
setFilters({ ...filters,
|
454
|
+
setFilters({ ...filters, status: buttonItem?.status });
|
455
455
|
};
|
456
456
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
457
457
|
Button,
|
@@ -466,13 +466,13 @@ const ButtonBadge = (props) => {
|
|
466
466
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
467
467
|
Badge,
|
468
468
|
{
|
469
|
+
showZero: true,
|
469
470
|
count: buttonItem?.quantity || 0,
|
470
471
|
color: `${active ? "#BDE3FF]" : "#EEEEF0"}`,
|
471
472
|
className: twMerge(
|
472
473
|
"!text-[#4D4D57] !rounded-[8px]",
|
473
474
|
active ? "customBadgeActive" : "customBadge"
|
474
|
-
)
|
475
|
-
showZero: true
|
475
|
+
)
|
476
476
|
}
|
477
477
|
)
|
478
478
|
]
|
@@ -485,7 +485,7 @@ const GroupHeadingButton = (props) => {
|
|
485
485
|
ButtonBadge,
|
486
486
|
{
|
487
487
|
buttonItem: i,
|
488
|
-
active: i?.
|
488
|
+
active: i?.status === filters?.status,
|
489
489
|
setFilters,
|
490
490
|
filters
|
491
491
|
},
|
@@ -1043,7 +1043,7 @@ const Table = ({
|
|
1043
1043
|
bulkActionHandlers,
|
1044
1044
|
...rest
|
1045
1045
|
}) => {
|
1046
|
-
const status = filters?.
|
1046
|
+
const status = filters?.status;
|
1047
1047
|
//! State
|
1048
1048
|
const [data, setData] = useState([]);
|
1049
1049
|
const [openSetting, setOpenStting] = useState(false);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, i as Icon, _ as _extends } from './index-VYhgtDmq.js';
|
2
2
|
import { Select as Select$1, Radio, Upload, Image, Switch as Switch$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useState } from 'react';
|
@@ -28938,7 +28938,6 @@ const Textarea = forwardRef(
|
|
28938
28938
|
] });
|
28939
28939
|
}
|
28940
28940
|
);
|
28941
|
-
React__default.memo(Textarea);
|
28942
28941
|
|
28943
28942
|
const Checkbox = (props) => {
|
28944
28943
|
//! State
|
@@ -54291,4 +54290,4 @@ React keys must be passed directly to JSX without using spread:
|
|
54291
54290
|
|
54292
54291
|
var distExports = requireDist();
|
54293
54292
|
|
54294
|
-
export { Checkbox as C, DatePicker as D, ErrorMessage as E, Input as I, Label as L, Menu as M, PnkxField as P, RangePicker as R, Space as S, Typography as T, _extends as _, Tooltip as a, Layout as b, Splitter as c, Steps as d, TINY_API as e, TinyMCE as f,
|
54293
|
+
export { Checkbox as C, DatePicker as D, ErrorMessage as E, Input as I, Label as L, Menu as M, PnkxField as P, RangePicker as R, Space as S, Typography as T, _extends as _, Tooltip as a, Layout as b, Splitter as c, Steps as d, TINY_API as e, TinyMCE as f, Textarea as g, get$1 as h, Icon as i, jsxRuntimeExports as j, CSS as k, useForm as l, DndContext as m, closestCenter as n, SortableContext as o, arrayMove as p, className as q, lodashExports as r, distExports$1 as s, twMerge as t, useSortable as u, verticalListSortingStrategy as v, useTabStore as w, distExports as x };
|
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, f as TinyMCE } from '../chunks/index-
|
2
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-
|
1
|
+
export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, g as Textarea, f as TinyMCE } from '../chunks/index-VYhgtDmq.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-BlJg7gUg.js';
|
package/es/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-
|
2
|
-
export { C as Checkbox, D as DatePicker, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, S as Space, c as Splitter, d as Steps, e as TINY_API, f as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-
|
3
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-
|
1
|
+
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-BdABLmlN.js';
|
2
|
+
export { C as Checkbox, D as DatePicker, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, S as Space, c as Splitter, d as Steps, e as TINY_API, g as Textarea, f as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-VYhgtDmq.js';
|
3
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-BlJg7gUg.js';
|
4
4
|
export { a as useMessage, u as useToast } from './chunks/useMessage-CUPcOtIS.js';
|
package/es/ui/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-
|
2
|
-
export { E as ErrorMessage, L as Label, b as Layout, M as Menu, S as Space, c as Splitter, d as Steps, e as TINY_API, a as Tooltip, T as Typography } from '../chunks/index-
|
1
|
+
export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, $ as TypeActionRowTable, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-BdABLmlN.js';
|
2
|
+
export { E as ErrorMessage, L as Label, b as Layout, M as Menu, S as Space, c as Splitter, d as Steps, e as TINY_API, a as Tooltip, T as Typography } from '../chunks/index-VYhgtDmq.js';
|
package/package.json
CHANGED
@@ -9,5 +9,4 @@ export interface TextAreaProps extends TextAreaPropsAntd {
|
|
9
9
|
afterOnChange?: (value: string) => void;
|
10
10
|
required?: boolean;
|
11
11
|
}
|
12
|
-
declare const
|
13
|
-
export default _default;
|
12
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
@@ -3,7 +3,7 @@ import { TFilters, TypeStatusTable } from '../../../../../../../../../../../../s
|
|
3
3
|
export interface GroupHeadingButtonItem {
|
4
4
|
label: string;
|
5
5
|
quantity: number;
|
6
|
-
|
6
|
+
status: TypeStatusTable;
|
7
7
|
}
|
8
8
|
export interface GroupHeadingButtonProps {
|
9
9
|
groupHeadingButtonItems?: GroupHeadingButtonItem[];
|
@@ -12,7 +12,7 @@ type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
|
|
12
12
|
export type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
|
13
13
|
export type TableColumnsType<T> = TableColumnsTypeAntd<T> & TableColumnsTypeEditable<T>;
|
14
14
|
export type TFilters = {
|
15
|
-
|
15
|
+
status?: TypeStatusTable;
|
16
16
|
};
|
17
17
|
export interface BulkActionHandlers {
|
18
18
|
handleRestore?: () => void;
|