@snack-uikit/table 0.20.3 → 0.20.4-preview-8e3bfc37.0
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.
|
@@ -25,7 +25,7 @@ function RowActionsCell({ row, actions }) {
|
|
|
25
25
|
const patchedItems = useMemo(() => actions.map(item => patchItem(item, () => setDropListOpen(false))), [actions, patchItem, setDropListOpen]);
|
|
26
26
|
return (
|
|
27
27
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
28
|
-
_jsx("div", { onClick: stopPropagationClick, className: styles.rowActionsCellWrap, "data-open": dropListOpened || undefined, children: !disabled && Boolean(actions.length) && (_jsx(Droplist, { trigger: '
|
|
28
|
+
_jsx("div", { onClick: stopPropagationClick, className: styles.rowActionsCellWrap, "data-open": dropListOpened || undefined, children: !disabled && Boolean(actions.length) && (_jsx(Droplist, { trigger: 'click', open: dropListOpened, onOpenChange: setDropListOpen, placement: 'bottom-end', size: 'm', "data-test-id": TEST_IDS.rowActions.droplist, items: patchedItems, children: _jsx(ButtonFunction, { icon: _jsx(MoreSVG, { size: 24 }), "data-test-id": TEST_IDS.rowActions.droplistTrigger }) })) }));
|
|
29
29
|
}
|
|
30
30
|
/** Вспомогательная функция для создания ячейки с дополнительными действиями у строки */
|
|
31
31
|
export function getRowActionsColumnDef({ actionsGenerator, pinned, }) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Table",
|
|
7
|
-
"version": "0.20.
|
|
7
|
+
"version": "0.20.4-preview-8e3bfc37.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@snack-uikit/locale": "*"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "55a4539a6168d1350f295250383602ff8eb90ac2"
|
|
61
61
|
}
|
|
@@ -48,7 +48,7 @@ function RowActionsCell<TData>({ row, actions }: RowActionsCellProps<TData>) {
|
|
|
48
48
|
<div onClick={stopPropagationClick} className={styles.rowActionsCellWrap} data-open={dropListOpened || undefined}>
|
|
49
49
|
{!disabled && Boolean(actions.length) && (
|
|
50
50
|
<Droplist
|
|
51
|
-
trigger='
|
|
51
|
+
trigger='click'
|
|
52
52
|
open={dropListOpened}
|
|
53
53
|
onOpenChange={setDropListOpen}
|
|
54
54
|
placement='bottom-end'
|