UNPKG

wix-style-react

Version:
43 lines (34 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _constants = require("./constants"); var tableActionCellDriverFactory = function tableActionCellDriverFactory(component) { var getByHook = function getByHook(dataHook) { return component.$("[data-hook=\"".concat(dataHook, "\"]")); }; return { element: function element() { return component; }, /** Get the primary action placeholder element */ getPrimaryActionPlaceholder: function getPrimaryActionPlaceholder() { return getByHook(_constants.dataHooks.placeholder); }, /** Get the primary action button element */ getPrimaryActionButton: function getPrimaryActionButton() { return getByHook(_constants.dataHooks.primaryAction); }, /** Get the visible secondary actions wrapper element */ getVisibleActionsWrapper: function getVisibleActionsWrapper() { return getByHook(_constants.dataHooks.visibleActionsWrapper); }, /** Get the secondary actions popover menu element */ getHiddenActionsPopoverMenu: function getHiddenActionsPopoverMenu() { return getByHook(_constants.dataHooks.popoverMenu); } }; }; var _default = tableActionCellDriverFactory; exports["default"] = _default;