@povio/ui 3.3.0-rc.4 → 3.3.1
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/README.md +16 -2
- package/dist/browser-tests/checkbox/CheckboxGroupHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/CheckboxHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/checkbox-group.spec.d.ts +1 -0
- package/dist/browser-tests/checkbox/checkbox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/DateTimeHarnesses.d.ts +43 -0
- package/dist/browser-tests/datetime-picker/assertions.d.ts +9 -0
- package/dist/browser-tests/datetime-picker/date-input-focus.firefox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-range-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload/FileUploadHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload/file-upload.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload-container/FileUploadContainerHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload-container/file-upload-container.spec.d.ts +1 -0
- package/dist/browser-tests/input-upload/InputUploadHarness.d.ts +9 -0
- package/dist/browser-tests/input-upload/input-upload.spec.d.ts +1 -0
- package/dist/browser-tests/modal/ModalHarness.d.ts +5 -0
- package/dist/browser-tests/modal/modal.spec.d.ts +1 -0
- package/dist/browser-tests/number-input/NumberInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-input/number-input.spec.d.ts +1 -0
- package/dist/browser-tests/number-range-input/NumberRangeInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-range-input/number-range-input.spec.d.ts +1 -0
- package/dist/browser-tests/password-input/PasswordInputHarness.d.ts +6 -0
- package/dist/browser-tests/password-input/password-input.spec.d.ts +1 -0
- package/dist/browser-tests/radio-group/RadioGroupHarness.d.ts +15 -0
- package/dist/browser-tests/radio-group/radio-group.spec.d.ts +1 -0
- package/dist/browser-tests/selection/SelectionHarnesses.d.ts +61 -0
- package/dist/browser-tests/selection/autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/interactions.d.ts +2 -0
- package/dist/browser-tests/selection/query-autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/query-select.spec.d.ts +1 -0
- package/dist/browser-tests/selection/select.spec.d.ts +1 -0
- package/dist/browser-tests/slider/SliderHarness.d.ts +11 -0
- package/dist/browser-tests/slider/slider.spec.d.ts +1 -0
- package/dist/browser-tests/text-area/TextAreaHarness.d.ts +10 -0
- package/dist/browser-tests/text-area/text-area.spec.d.ts +1 -0
- package/dist/browser-tests/text-input/TextInputHarness.d.ts +10 -0
- package/dist/browser-tests/text-input/text-input.spec.d.ts +1 -0
- package/dist/browser-tests/toggle/ToggleHarness.d.ts +10 -0
- package/dist/browser-tests/toggle/toggle.spec.d.ts +1 -0
- package/dist/browser-tests/utils/blur.d.ts +22 -0
- package/dist/browser-tests/utils/events.d.ts +4 -0
- package/dist/browser-tests/utils/input.d.ts +10 -0
- package/dist/components/buttons/Button/button.cva.d.ts +1 -1
- package/dist/components/buttons/Button/button.cva.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.js +4 -4
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +19 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +28 -20
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +19 -4
- package/dist/components/inputs/FormField/FormField.js +34 -47
- package/dist/components/inputs/Selection/Select/Select.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +154 -156
- package/dist/components/inputs/shared/InputClear.js +24 -40
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/Modal/Modal.d.ts +3 -2
- package/dist/components/overlays/Modal/Modal.js +3 -1
- package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
- package/dist/components/table/Table.d.ts +2 -8
- package/dist/components/table/Table.js +33 -55
- package/dist/config/uiOverrides.context.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/vitest.setup.browser.d.ts +6 -0
- package/package.json +2 -2
- package/dist/components/inputs/FormField/formField.cva.d.ts +0 -11
- package/dist/components/inputs/FormField/formField.cva.js +0 -16
- package/dist/components/table/TableColumnFilterInput.d.ts +0 -9
- package/dist/components/table/TableColumnFilterInput.js +0 -108
- package/dist/components/table/TableColumnFilterPlaceholder.d.ts +0 -5
- package/dist/components/table/TableColumnFilterPlaceholder.js +0 -41
- package/dist/components/table/TableColumnFilterRow.d.ts +0 -16
- package/dist/components/table/TableColumnFilterRow.js +0 -68
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
|
-
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
4
|
-
import { buttonIconSizeDefinition } from "../../buttons/Button/button.cva.js";
|
|
5
3
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
6
4
|
import "../../../config/i18n.js";
|
|
7
5
|
import { c } from "react/compiler-runtime";
|
|
@@ -10,70 +8,56 @@ import { clsx } from "clsx";
|
|
|
10
8
|
import { useTranslation } from "react-i18next";
|
|
11
9
|
//#region src/components/inputs/shared/InputClear.tsx
|
|
12
10
|
var InputClear = (t0) => {
|
|
13
|
-
const $ = c(
|
|
11
|
+
const $ = c(12);
|
|
14
12
|
const { onClear, className, style, show, renderStatic } = t0;
|
|
15
|
-
const
|
|
16
|
-
const buttonIconSizeCva = UIOverrides.useCva("button.iconSize", buttonIconSizeDefinition);
|
|
17
|
-
const alwaysShowClear = ui.input.alwaysShowClear;
|
|
13
|
+
const alwaysShowClear = UIConfig.useConfig().input.alwaysShowClear;
|
|
18
14
|
let clearClassName;
|
|
19
15
|
let t1;
|
|
20
|
-
if ($[0] !== alwaysShowClear || $[1] !==
|
|
16
|
+
if ($[0] !== alwaysShowClear || $[1] !== className || $[2] !== renderStatic || $[3] !== show || $[4] !== style) {
|
|
21
17
|
t1 = Symbol.for("react.early_return_sentinel");
|
|
22
18
|
bb0: {
|
|
23
19
|
clearClassName = clsx("relative z-raised flex items-center", !alwaysShowClear && "md:invisible group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", "border-0!", !show && "invisible!", className);
|
|
24
20
|
if (renderStatic) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
className: "shrink-0"
|
|
31
|
-
});
|
|
32
|
-
$[8] = buttonIconSizeCva;
|
|
33
|
-
$[9] = t3;
|
|
34
|
-
} else t3 = $[9];
|
|
35
|
-
let t4;
|
|
36
|
-
if ($[10] !== t3) {
|
|
37
|
-
t4 = /* @__PURE__ */ jsx(CloseIcon, { className: t3 });
|
|
38
|
-
$[10] = t3;
|
|
39
|
-
$[11] = t4;
|
|
40
|
-
} else t4 = $[11];
|
|
21
|
+
let t2;
|
|
22
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23
|
+
t2 = /* @__PURE__ */ jsx(CloseIcon, { className: "h-6 w-6 shrink-0" });
|
|
24
|
+
$[7] = t2;
|
|
25
|
+
} else t2 = $[7];
|
|
41
26
|
t1 = /* @__PURE__ */ jsx("button", {
|
|
42
27
|
type: "button",
|
|
43
28
|
"aria-hidden": "true",
|
|
44
29
|
tabIndex: -1,
|
|
45
|
-
className:
|
|
30
|
+
className: clsx("group inline-flex items-center justify-center border border-solid border-support-transparent-outline", "rounded-button-rounding-s p-0 text-interactive-text-secondary-idle", clearClassName),
|
|
46
31
|
style,
|
|
47
|
-
children:
|
|
32
|
+
children: t2
|
|
48
33
|
});
|
|
49
34
|
break bb0;
|
|
50
35
|
}
|
|
51
36
|
}
|
|
52
37
|
$[0] = alwaysShowClear;
|
|
53
|
-
$[1] =
|
|
54
|
-
$[2] =
|
|
55
|
-
$[3] =
|
|
56
|
-
$[4] =
|
|
57
|
-
$[5] =
|
|
58
|
-
$[6] =
|
|
59
|
-
$[7] = t1;
|
|
38
|
+
$[1] = className;
|
|
39
|
+
$[2] = renderStatic;
|
|
40
|
+
$[3] = show;
|
|
41
|
+
$[4] = style;
|
|
42
|
+
$[5] = clearClassName;
|
|
43
|
+
$[6] = t1;
|
|
60
44
|
} else {
|
|
61
|
-
clearClassName = $[
|
|
62
|
-
t1 = $[
|
|
45
|
+
clearClassName = $[5];
|
|
46
|
+
t1 = $[6];
|
|
63
47
|
}
|
|
64
48
|
if (t1 !== Symbol.for("react.early_return_sentinel")) return t1;
|
|
65
49
|
let t2;
|
|
66
|
-
if ($[
|
|
50
|
+
if ($[8] !== clearClassName || $[9] !== onClear || $[10] !== style) {
|
|
67
51
|
t2 = /* @__PURE__ */ jsx(InputClearButton, {
|
|
68
52
|
onClear,
|
|
69
53
|
className: clearClassName,
|
|
70
54
|
style
|
|
71
55
|
});
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
} else t2 = $[
|
|
56
|
+
$[8] = clearClassName;
|
|
57
|
+
$[9] = onClear;
|
|
58
|
+
$[10] = style;
|
|
59
|
+
$[11] = t2;
|
|
60
|
+
} else t2 = $[11];
|
|
77
61
|
return t2;
|
|
78
62
|
};
|
|
79
63
|
var InputClearButton = (t0) => {
|
|
@@ -100,7 +100,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
100
100
|
isOpen: true,
|
|
101
101
|
UNSTABLE_portalContainer: portalContainerRef?.current,
|
|
102
102
|
className: clsx("fixed top-0 left-0 z-bottom-sheet w-screen h-dvh", containerClassName),
|
|
103
|
-
style: { "--bottom-sheet-keyboard-inset":
|
|
103
|
+
style: { "--bottom-sheet-keyboard-inset": `var(--bottom-sheet-host-inset, ${keyboardInset}px)` },
|
|
104
104
|
onOpenChange,
|
|
105
105
|
isDismissable,
|
|
106
106
|
ref: overlayRef,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren, RefObject } from 'react';
|
|
2
|
+
import { DialogProps as AriaDialogProps } from 'react-aria-components';
|
|
2
3
|
import { ModalVariantProps } from './modal.cva';
|
|
3
|
-
export interface ModalProps extends ModalVariantProps {
|
|
4
|
+
export interface ModalProps extends ModalVariantProps, Pick<AriaDialogProps, "aria-label" | "aria-labelledby"> {
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
portalContainerRef?: RefObject<HTMLElement>;
|
|
6
7
|
onClose: () => void;
|
|
@@ -12,4 +13,4 @@ export interface ModalProps extends ModalVariantProps {
|
|
|
12
13
|
isKeyboardDismissable?: boolean;
|
|
13
14
|
shouldCloseOnInteractOutside?: () => boolean;
|
|
14
15
|
}
|
|
15
|
-
export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, isKeyboardDismissable, shouldCloseOnInteractOutside, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, isKeyboardDismissable, shouldCloseOnInteractOutside, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ import { clsx } from "clsx";
|
|
|
8
8
|
import { Dialog, Modal, ModalOverlay } from "react-aria-components";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
10
|
//#region src/components/overlays/Modal/Modal.tsx
|
|
11
|
-
var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside }) => {
|
|
11
|
+
var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }) => {
|
|
12
12
|
const { t } = useTranslation("ui");
|
|
13
13
|
const modalMainCva = UIOverrides.useCva("modal.mainCva", modalMainDefinition);
|
|
14
14
|
const modalContentCva = UIOverrides.useCva("modal.contentCva", modalContentDefinition);
|
|
@@ -35,6 +35,8 @@ var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClas
|
|
|
35
35
|
children: /* @__PURE__ */ jsx(Modal, {
|
|
36
36
|
className: modalMainCva({ aside }),
|
|
37
37
|
children: /* @__PURE__ */ jsxs(Dialog, {
|
|
38
|
+
"aria-label": ariaLabel,
|
|
39
|
+
"aria-labelledby": ariaLabelledBy,
|
|
38
40
|
className: modalContentCva({
|
|
39
41
|
aside,
|
|
40
42
|
className: modalClassName
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { DragEndEvent, UniqueIdentifier } from '@dnd-kit/core';
|
|
2
2
|
import { ColumnDef, ColumnOrderState, OnChangeFn, Table as ReactTable, Row, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
3
3
|
import { TFunction } from 'i18next';
|
|
4
|
-
import { ComponentType, Dispatch,
|
|
5
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
6
|
-
import { InputDef } from '../inputs/Inputs/InputItem';
|
|
4
|
+
import { ComponentType, Dispatch, SetStateAction } from 'react';
|
|
7
5
|
import { TableRowVariantProps } from './table.cva';
|
|
8
6
|
export type BulkSelectionActionsComponent<T> = ComponentType<{
|
|
9
7
|
table: ReactTable<T>;
|
|
@@ -32,12 +30,8 @@ export interface TableProps<T> extends TableRowVariantProps {
|
|
|
32
30
|
enableMultiRowSelection?: boolean | ((row: Row<T>) => boolean);
|
|
33
31
|
defaultSelectedRows?: RowSelectionState;
|
|
34
32
|
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
|
|
35
|
-
filterForm?: UseFormReturn<Record<string, any>>;
|
|
36
|
-
filterDefs?: InputDef<any>[];
|
|
37
|
-
headerFilterCellClassName?: string;
|
|
38
|
-
emptyContent?: ReactNode;
|
|
39
33
|
}
|
|
40
34
|
export declare const RowDragHandleCell: ({ rowId }: {
|
|
41
35
|
rowId: string;
|
|
42
36
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export declare const Table: <T>({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection, defaultSelectedRows, onRowSelectionChange,
|
|
37
|
+
export declare const Table: <T>({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection, defaultSelectedRows, onRowSelectionChange, ...props }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,6 @@ import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, t
|
|
|
8
8
|
import { CellText } from "./CellText.js";
|
|
9
9
|
import { DragIndicatorIcon } from "../../assets/icons/DragIndicator.js";
|
|
10
10
|
import { HeaderText } from "./HeaderText.js";
|
|
11
|
-
import { TableColumnFilterRow } from "./TableColumnFilterRow.js";
|
|
12
11
|
import { useTableNav } from "../../hooks/useTableNav.js";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
13
|
import { clsx } from "clsx";
|
|
@@ -75,7 +74,7 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
|
|
|
75
74
|
})
|
|
76
75
|
});
|
|
77
76
|
};
|
|
78
|
-
var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange,
|
|
77
|
+
var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
|
|
79
78
|
const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
|
|
80
79
|
const theadCva = UIOverrides.useCva("table.theadCva", theadDefinition);
|
|
81
80
|
const tableHeadRowCva = UIOverrides.useCva("table.headRowCva", tableHeadRowDefinition);
|
|
@@ -173,71 +172,50 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
|
|
|
173
172
|
const selectedRows = table.getSelectedRowModel().rows;
|
|
174
173
|
const columnCount = table.getHeaderGroups()[0].headers.length;
|
|
175
174
|
const isAnyRowSelected = selectedRows.length > 0 && !!ActionHeader;
|
|
176
|
-
const showFilterRow = !!filterForm && !!filterDefs?.length && !isAnyRowSelected;
|
|
177
175
|
const hasOnClick = !!onRowClick || !!onDoubleClick;
|
|
178
176
|
const tableElement = /* @__PURE__ */ jsxs("table", {
|
|
179
|
-
className: clsx("w-full",
|
|
177
|
+
className: clsx("w-full", className),
|
|
180
178
|
...listeners,
|
|
181
179
|
children: [/* @__PURE__ */ jsxs("thead", {
|
|
182
180
|
className: clsx(theadCva({})),
|
|
183
181
|
"data-is-sticky": isSticky || void 0,
|
|
184
|
-
children: [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
return /* @__PURE__ */ jsx("
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}),
|
|
212
|
-
desc: /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
213
|
-
width: 18,
|
|
214
|
-
height: 18
|
|
215
|
-
})
|
|
216
|
-
}[header_0.column.getIsSorted()] ?? null]
|
|
182
|
+
children: [/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("th", {
|
|
183
|
+
ref: stickyRef,
|
|
184
|
+
className: "-mt-px block"
|
|
185
|
+
}) }), table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("tr", {
|
|
186
|
+
className: clsx(tableHeadRowCva({})),
|
|
187
|
+
children: headerGroup.headers.filter((header) => {
|
|
188
|
+
if (isAnyRowSelected && header.index > 0) return false;
|
|
189
|
+
return header.column.getIsVisible();
|
|
190
|
+
}).map((header_0, index) => {
|
|
191
|
+
const columnMeta = header_0.column.columnDef.meta ?? {};
|
|
192
|
+
return /* @__PURE__ */ jsx("th", {
|
|
193
|
+
colSpan: isAnyRowSelected ? columnCount : header_0.colSpan,
|
|
194
|
+
tabIndex: -1,
|
|
195
|
+
className: clsx(tableHeadDataCva({ hasRightBorder: index > 0 && showCellBorder }), columnMeta.headerClass, columnMeta.width),
|
|
196
|
+
children: isAnyRowSelected ? /* @__PURE__ */ jsx(ActionHeader, { table }) : /* @__PURE__ */ jsxs("button", {
|
|
197
|
+
type: "button",
|
|
198
|
+
"aria-label": "Sort column",
|
|
199
|
+
className: clsx("flex select-none items-center gap-1 text-text-default-1", header_0.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
|
|
200
|
+
onClick: header_0.column.getToggleSortingHandler(),
|
|
201
|
+
children: [typeof header_0.column.columnDef.header === "function" ? flexRender(header_0.column.columnDef.header, header_0.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header_0.column.columnDef.header }), {
|
|
202
|
+
asc: /* @__PURE__ */ jsx(ChevronUpIcon, {
|
|
203
|
+
width: 18,
|
|
204
|
+
height: 18
|
|
205
|
+
}),
|
|
206
|
+
desc: /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
207
|
+
width: 18,
|
|
208
|
+
height: 18
|
|
217
209
|
})
|
|
218
|
-
}
|
|
210
|
+
}[header_0.column.getIsSorted()] ?? null]
|
|
219
211
|
})
|
|
220
|
-
},
|
|
221
|
-
}),
|
|
222
|
-
showFilterRow && table.getHeaderGroups().map((headerGroup_0) => {
|
|
223
|
-
return /* @__PURE__ */ jsx(TableColumnFilterRow, {
|
|
224
|
-
headers: headerGroup_0.headers.filter((header_1) => header_1.column.getIsVisible()),
|
|
225
|
-
filterForm,
|
|
226
|
-
filterDefs,
|
|
227
|
-
tableHeadDataCva,
|
|
228
|
-
rowClassName: clsx(tableHeadRowCva({})),
|
|
229
|
-
cellClassName: headerFilterCellClassName,
|
|
230
|
-
showCellBorder
|
|
231
|
-
}, `${headerGroup_0.id}-filters`);
|
|
212
|
+
}, header_0.id);
|
|
232
213
|
})
|
|
233
|
-
]
|
|
214
|
+
}, headerGroup.id))]
|
|
234
215
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
235
216
|
ref,
|
|
236
217
|
className: "relative",
|
|
237
|
-
children:
|
|
238
|
-
colSpan: columnCount,
|
|
239
|
-
children: emptyContent
|
|
240
|
-
}) }) : enableDragDrop ? /* @__PURE__ */ jsx(SortableContext, {
|
|
218
|
+
children: enableDragDrop ? /* @__PURE__ */ jsx(SortableContext, {
|
|
241
219
|
items: dataIds,
|
|
242
220
|
strategy: verticalListSortingStrategy,
|
|
243
221
|
children: table.getRowModel().rows.map((row_0) => /* @__PURE__ */ jsx(DraggableRow, {
|
package/dist/index.d.ts
CHANGED
|
@@ -193,7 +193,6 @@ export { inputUploadButtonDefinition, inputUploadDropZoneDefinition, } from './c
|
|
|
193
193
|
export { progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition, } from './components/inputs/File/shared/progressBar.cva';
|
|
194
194
|
export type { ProgressBarConfig, ProgressBarTrackConfig, ProgressBarVariantProps, } from './components/inputs/File/shared/progressBar.cva';
|
|
195
195
|
export { formFieldHeaderDefinition } from './components/inputs/FormField/formFieldHeader.cva';
|
|
196
|
-
export { formFieldDefinition } from './components/inputs/FormField/formField.cva';
|
|
197
196
|
export { formFieldErrorDefinition } from './components/inputs/FormField/formFieldError.cva';
|
|
198
197
|
export { formFieldHelperDefinition } from './components/inputs/FormField/formFieldHelper.cva';
|
|
199
198
|
export { textAreaWrapperDefinition } from './components/inputs/Input/TextArea/TextArea.cva';
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,6 @@ import { Checkbox } from "./components/inputs/Checkbox/Checkbox.js";
|
|
|
77
77
|
import { formFieldHeaderDefinition } from "./components/inputs/FormField/formFieldHeader.cva.js";
|
|
78
78
|
import { labelDefinition } from "./components/inputs/shared/label.cva.js";
|
|
79
79
|
import { formFieldHelperDefinition } from "./components/inputs/FormField/formFieldHelper.cva.js";
|
|
80
|
-
import { formFieldDefinition } from "./components/inputs/FormField/formField.cva.js";
|
|
81
80
|
import { FormField } from "./components/inputs/FormField/FormField.js";
|
|
82
81
|
import { inputBaseDefinition, inputClearClassDefinition, inputContentWrapperDefinition, inputSideDefinition, inputSizeDefinition } from "./components/inputs/shared/input.cva.js";
|
|
83
82
|
import { CheckboxGroup } from "./components/inputs/Checkbox/CheckboxGroup.js";
|
|
@@ -178,4 +177,4 @@ import { useSorting } from "./hooks/useSorting.js";
|
|
|
178
177
|
import { useTableColumnConfig } from "./hooks/useTableColumnConfig.js";
|
|
179
178
|
import { ArrayUtils } from "./utils/array.utils.js";
|
|
180
179
|
import { QueriesUtils } from "./utils/queries.utils.js";
|
|
181
|
-
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxGroup, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, IntlUtils, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput, NumberRangeInput, NumberedListIcon, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, Pill, PillButton, PointerHorizontalIcon, PointerVerticalIcon, ProgressBar, QueriesUtils, QueryAutocomplete, QuerySelect, RadioGroup, ResponsivePopover, RestUtils, RoutingUtils, Segment, Select, SendIcon, Slider, SplitButton, Stepper, StrikethroughIcon, StringUtils, Table, Tag, TextArea, TextButton, TextColorIcon, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig, UIOverrides, UIRouter, UnderlinedIcon, VisibilityIcon, VisibilityOffIcon, ZodUtils, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, alertDefinition, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition, buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxDefinition, checkboxGroupLabelDefinition, checkboxIconDefinition, compoundMapper, createKeyInteractionsHandler, datePickerInputContentRowDefinition, dynamicColumns, dynamicInputs, fileUploadDropZoneDefinition,
|
|
180
|
+
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxGroup, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, IntlUtils, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput, NumberRangeInput, NumberedListIcon, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, Pill, PillButton, PointerHorizontalIcon, PointerVerticalIcon, ProgressBar, QueriesUtils, QueryAutocomplete, QuerySelect, RadioGroup, ResponsivePopover, RestUtils, RoutingUtils, Segment, Select, SendIcon, Slider, SplitButton, Stepper, StrikethroughIcon, StringUtils, Table, Tag, TextArea, TextButton, TextColorIcon, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig, UIOverrides, UIRouter, UnderlinedIcon, VisibilityIcon, VisibilityOffIcon, ZodUtils, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, alertDefinition, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition, buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxDefinition, checkboxGroupLabelDefinition, checkboxIconDefinition, compoundMapper, createKeyInteractionsHandler, datePickerInputContentRowDefinition, dynamicColumns, dynamicInputs, fileUploadDropZoneDefinition, formFieldErrorDefinition, formFieldHeaderDefinition, formFieldHelperDefinition, getKeyInteractionAction, inputBaseDefinition, inputClearClassDefinition, inputContentWrapperDefinition, inputSideDefinition, inputSizeDefinition, inputUploadButtonDefinition, inputUploadDropZoneDefinition, isEqual, labelDefinition, linkDefinition, loaderDefinition, loaderWrapperDefinition, logger, menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition, modalContentDefinition, modalMainDefinition, modalOverlayDefinition, ns, pillButtonContentDefinition, pillButtonDefinition, popoverDefinition, progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition, radioContentRowDefinition, radioContentWrapperDefinition, radioDefinition, resources, segmentDefinition, segmentItemDefinition, selectInputTagsContentWrapperDefinition, selectListBoxItemDefinition, selectPopoverDefinition, statusIconDefinition, statusSeparatorDefinition, stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition, tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition, tagDefinition, textAreaWrapperDefinition, toastDefinition, statusIconDefinition$1 as toastStatusIconDefinition, statusSeparatorDefinition$1 as toastStatusSeparatorDefinition, toggleDefinition, tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition, tooltipWrapperTriggerDefinition, typographyDefinition, uiOutlineClass, useAutosave, useBreakpoint, useDebounceCallback, useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo, useFilters, useForm, useFormAutosave, useIntersectionObserver, useKeyInteractions, useLocalStorage, useLongPressRepeat, usePagination, useScrollableListBox, useSorting, useStateAndRef, useTableColumnConfig, useTableNav, useToast, useTranslationMemo };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@povio/ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@react-stately/calendar": "^3.9.2",
|
|
31
31
|
"@react-stately/datepicker": "^3.16.0",
|
|
32
32
|
"@react-types/shared": "^3.33.0",
|
|
33
|
-
"@tanstack/react-query": "~5.90.21",
|
|
34
33
|
"@tanstack/react-table": "^8.21.3",
|
|
35
34
|
"axios": "^1.13.2",
|
|
36
35
|
"class-variance-authority": "^0.7.1",
|
|
@@ -52,6 +51,7 @@
|
|
|
52
51
|
"peerDependencies": {
|
|
53
52
|
"@casl/ability": "^6.7.3",
|
|
54
53
|
"@casl/react": "^5.0.0",
|
|
54
|
+
"@tanstack/react-query": "^5.89.0",
|
|
55
55
|
"@tiptap/core": "^3.19.0",
|
|
56
56
|
"@tiptap/extension-color": "^3.19.0",
|
|
57
57
|
"@tiptap/extension-heading": "^3.19.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const formFieldDefinition: {
|
|
2
|
-
base: string[];
|
|
3
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
4
|
-
readonly as: {
|
|
5
|
-
readonly default: "";
|
|
6
|
-
readonly filter: "";
|
|
7
|
-
readonly floating: "";
|
|
8
|
-
readonly inline: "";
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
-
//#region src/components/inputs/FormField/formField.cva.ts
|
|
3
|
-
var formFieldDefinition = UIOverrides.defineConfig({
|
|
4
|
-
base: [""],
|
|
5
|
-
config: {
|
|
6
|
-
variants: { as: {
|
|
7
|
-
default: "",
|
|
8
|
-
filter: "",
|
|
9
|
-
floating: "",
|
|
10
|
-
inline: ""
|
|
11
|
-
} },
|
|
12
|
-
defaultVariants: { as: "default" }
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { formFieldDefinition };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InputDef } from '../inputs/Inputs/InputItem';
|
|
2
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
interface TableColumnFilterInputProps<TFilterData extends Record<string, any>> {
|
|
4
|
-
form: UseFormReturn<TFilterData>;
|
|
5
|
-
inputDef: InputDef<TFilterData>;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const TableColumnFilterInput: <TFilterData extends Record<string, any>>({ form, inputDef, className, }: TableColumnFilterInputProps<TFilterData>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Inputs } from "../inputs/Inputs/Inputs.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
//#region src/components/table/TableColumnFilterInput.tsx
|
|
6
|
-
var TableColumnFilterInput = (t0) => {
|
|
7
|
-
const $ = c(28);
|
|
8
|
-
const { form, inputDef, className } = t0;
|
|
9
|
-
const filterKey = String(inputDef.name);
|
|
10
|
-
const inputProps = inputDef.props;
|
|
11
|
-
const t1 = inputProps?.className;
|
|
12
|
-
let t2;
|
|
13
|
-
if ($[0] !== t1) {
|
|
14
|
-
t2 = clsx("w-full min-w-0 max-w-full", t1, "[&_label]:sr-only");
|
|
15
|
-
$[0] = t1;
|
|
16
|
-
$[1] = t2;
|
|
17
|
-
} else t2 = $[1];
|
|
18
|
-
const t3 = inputProps?.containerClassName;
|
|
19
|
-
let t4;
|
|
20
|
-
if ($[2] !== t3) {
|
|
21
|
-
t4 = clsx("w-full min-w-0 max-w-full", t3);
|
|
22
|
-
$[2] = t3;
|
|
23
|
-
$[3] = t4;
|
|
24
|
-
} else t4 = $[3];
|
|
25
|
-
const t5 = inputProps?.inputClassName;
|
|
26
|
-
let t6;
|
|
27
|
-
if ($[4] !== t5) {
|
|
28
|
-
t6 = clsx("min-w-0 max-w-full truncate", t5);
|
|
29
|
-
$[4] = t5;
|
|
30
|
-
$[5] = t6;
|
|
31
|
-
} else t6 = $[5];
|
|
32
|
-
let t7;
|
|
33
|
-
if ($[6] !== inputProps || $[7] !== t2 || $[8] !== t4 || $[9] !== t6) {
|
|
34
|
-
t7 = {
|
|
35
|
-
...inputProps,
|
|
36
|
-
as: "filter",
|
|
37
|
-
className: t2,
|
|
38
|
-
containerClassName: t4,
|
|
39
|
-
inputClassName: t6,
|
|
40
|
-
hideLabel: true,
|
|
41
|
-
isClearable: true,
|
|
42
|
-
placeholder: "",
|
|
43
|
-
size: "extra-small"
|
|
44
|
-
};
|
|
45
|
-
$[6] = inputProps;
|
|
46
|
-
$[7] = t2;
|
|
47
|
-
$[8] = t4;
|
|
48
|
-
$[9] = t6;
|
|
49
|
-
$[10] = t7;
|
|
50
|
-
} else t7 = $[10];
|
|
51
|
-
const props = t7;
|
|
52
|
-
let t8;
|
|
53
|
-
if ($[11] !== filterKey || $[12] !== inputDef.label) {
|
|
54
|
-
t8 = typeof inputDef.label === "string" && inputDef.label.trim() ? inputDef.label : filterKey;
|
|
55
|
-
$[11] = filterKey;
|
|
56
|
-
$[12] = inputDef.label;
|
|
57
|
-
$[13] = t8;
|
|
58
|
-
} else t8 = $[13];
|
|
59
|
-
let t9;
|
|
60
|
-
if ($[14] !== inputDef || $[15] !== props || $[16] !== t8) {
|
|
61
|
-
t9 = {
|
|
62
|
-
...inputDef,
|
|
63
|
-
label: t8,
|
|
64
|
-
placeholder: "",
|
|
65
|
-
props
|
|
66
|
-
};
|
|
67
|
-
$[14] = inputDef;
|
|
68
|
-
$[15] = props;
|
|
69
|
-
$[16] = t8;
|
|
70
|
-
$[17] = t9;
|
|
71
|
-
} else t9 = $[17];
|
|
72
|
-
const inlineInputDef = t9;
|
|
73
|
-
let t10;
|
|
74
|
-
if ($[18] !== className) {
|
|
75
|
-
t10 = clsx("w-full min-w-0 max-w-full [&>*]:w-full [&_*]:min-w-0", className);
|
|
76
|
-
$[18] = className;
|
|
77
|
-
$[19] = t10;
|
|
78
|
-
} else t10 = $[19];
|
|
79
|
-
let t11;
|
|
80
|
-
if ($[20] !== inlineInputDef) {
|
|
81
|
-
t11 = [inlineInputDef];
|
|
82
|
-
$[20] = inlineInputDef;
|
|
83
|
-
$[21] = t11;
|
|
84
|
-
} else t11 = $[21];
|
|
85
|
-
let t12;
|
|
86
|
-
if ($[22] !== form || $[23] !== t11) {
|
|
87
|
-
t12 = /* @__PURE__ */ jsx(Inputs, {
|
|
88
|
-
form,
|
|
89
|
-
inputDefs: t11
|
|
90
|
-
});
|
|
91
|
-
$[22] = form;
|
|
92
|
-
$[23] = t11;
|
|
93
|
-
$[24] = t12;
|
|
94
|
-
} else t12 = $[24];
|
|
95
|
-
let t13;
|
|
96
|
-
if ($[25] !== t10 || $[26] !== t12) {
|
|
97
|
-
t13 = /* @__PURE__ */ jsx("div", {
|
|
98
|
-
className: t10,
|
|
99
|
-
children: t12
|
|
100
|
-
});
|
|
101
|
-
$[25] = t10;
|
|
102
|
-
$[26] = t12;
|
|
103
|
-
$[27] = t13;
|
|
104
|
-
} else t13 = $[27];
|
|
105
|
-
return t13;
|
|
106
|
-
};
|
|
107
|
-
//#endregion
|
|
108
|
-
export { TableColumnFilterInput };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
//#region src/components/table/TableColumnFilterPlaceholder.tsx
|
|
5
|
-
var columnFilterPlaceholderClassName = clsx("h-[calc(var(--spacing-input-height-xs)*2+var(--text-label-2)*var(--text-label-2--line-height)+2px)]", "flex w-full min-w-0 items-center overflow-hidden", "rounded-input-rounding-default border border-solid border-input-outlined-outline-disabled/50", "bg-input-filled-idle px-input-side-xs text-label-2");
|
|
6
|
-
var TableColumnFilterPlaceholder = (t0) => {
|
|
7
|
-
const $ = c(8);
|
|
8
|
-
const { label } = t0;
|
|
9
|
-
const t1 = label ? void 0 : true;
|
|
10
|
-
const t2 = label && "text-text-default-2";
|
|
11
|
-
let t3;
|
|
12
|
-
if ($[0] !== t2) {
|
|
13
|
-
t3 = clsx(columnFilterPlaceholderClassName, t2);
|
|
14
|
-
$[0] = t2;
|
|
15
|
-
$[1] = t3;
|
|
16
|
-
} else t3 = $[1];
|
|
17
|
-
let t4;
|
|
18
|
-
if ($[2] !== label) {
|
|
19
|
-
t4 = label ? /* @__PURE__ */ jsx("span", {
|
|
20
|
-
className: "min-w-0 truncate",
|
|
21
|
-
children: label
|
|
22
|
-
}) : null;
|
|
23
|
-
$[2] = label;
|
|
24
|
-
$[3] = t4;
|
|
25
|
-
} else t4 = $[3];
|
|
26
|
-
let t5;
|
|
27
|
-
if ($[4] !== t1 || $[5] !== t3 || $[6] !== t4) {
|
|
28
|
-
t5 = /* @__PURE__ */ jsx("div", {
|
|
29
|
-
"aria-hidden": t1,
|
|
30
|
-
className: t3,
|
|
31
|
-
children: t4
|
|
32
|
-
});
|
|
33
|
-
$[4] = t1;
|
|
34
|
-
$[5] = t3;
|
|
35
|
-
$[6] = t4;
|
|
36
|
-
$[7] = t5;
|
|
37
|
-
} else t5 = $[7];
|
|
38
|
-
return t5;
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { TableColumnFilterPlaceholder };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Header } from '@tanstack/react-table';
|
|
2
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { InputDef } from '../inputs/Inputs/InputItem';
|
|
4
|
-
import { UIOverrides } from '../../config/uiOverrides.context';
|
|
5
|
-
import { TableHeadDataVariantProps } from './table.cva';
|
|
6
|
-
interface TableColumnFilterRowProps<T> {
|
|
7
|
-
headers: Header<T, unknown>[];
|
|
8
|
-
filterForm: UseFormReturn<Record<string, any>>;
|
|
9
|
-
filterDefs: InputDef<any>[];
|
|
10
|
-
tableHeadDataCva: UIOverrides.Cva<TableHeadDataVariantProps>;
|
|
11
|
-
rowClassName?: string;
|
|
12
|
-
cellClassName?: string;
|
|
13
|
-
showCellBorder?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const TableColumnFilterRow: <T>({ headers, filterForm, filterDefs, tableHeadDataCva, rowClassName, cellClassName, showCellBorder, }: TableColumnFilterRowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|