Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nebula-galaxy

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nebula-galaxy - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

2

dist/components/table/table-toolbar.d.ts

@@ -8,3 +8,3 @@ import type { ReactNode } from 'react';

limit: number;
term: string;
term?: string;
}) => void;

@@ -11,0 +11,0 @@ toolbarActions?: ReactNode;

@@ -19,5 +19,5 @@ var __assign = (this && this.__assign) || function () {

var target = _a.target;
return loadData({ page: 1, limit: limit, term: target.value });
return loadData(__assign({ page: 1, limit: limit }, (target.value ? { term: target.value } : {})));
} }), toolbarActions && (_jsx("div", __assign({ className: styles.toolbarActions }, { children: toolbarActions })))] })));
};
export default TableToolbar;

@@ -88,3 +88,6 @@ var __assign = (this && this.__assign) || function () {

_b[styles.thWithFilter] = !!filter,
_b)) }, { children: filter ? (_jsx(Popper, __assign({ className: styles.tableFilter, trigger: _jsxs("button", __assign({ className: styles.tableFilterButton }, { children: [_jsx("span", __assign({ className: "cap1 medium" }, { children: header })), _jsx(Icon, { size: "SM", name: "ChevronDown" })] })), popperPosition: "Bottom" }, { children: _jsx(DropdownMenu, { className: styles.tableFilterMenu, value: filterValue, name: filter.name, options: filter.options, onChange: handleColumnFilter, isMultiSelect: true, isSelectAllVisible: false, isSearchable: true, searchPlaceholder: "Search names or emails", actions: (filter === null || filter === void 0 ? void 0 : filter.isClearFilterActive) && (_jsx(Button, __assign({ className: styles.tableFilterAction, variant: "Secondary", size: "SM", disabled: !(filterValue === null || filterValue === void 0 ? void 0 : filterValue.length), onClick: function () {
_b)) }, { children: filter ? (_jsx(Popper, __assign({ className: styles.tableFilter, trigger: _jsxs("button", __assign({ className: styles.tableFilterButton }, { children: [_jsx("span", __assign({ className: "cap1 medium" }, { children: header })), _jsx(Icon, { size: "SM", name: "ChevronDown" })] })), popperPosition: "Bottom" }, { children: _jsx(DropdownMenu, { className: styles.tableFilterMenu, value: filterValue, name: filter.name, options: filter.options, onChange: handleColumnFilter, isMultiSelect: true, isSelectAllVisible: false,
// isSearchable
// searchPlaceholder="Search names or emails"
actions: (filter === null || filter === void 0 ? void 0 : filter.isClearFilterActive) && (_jsx(Button, __assign({ className: styles.tableFilterAction, variant: "Secondary", size: "SM", disabled: !(filterValue === null || filterValue === void 0 ? void 0 : filterValue.length), onClick: function () {
return handleColumnFilter({

@@ -104,3 +107,3 @@ target: {

_a[styles.trDisabled] = disableRow === null || disableRow === void 0 ? void 0 : disableRow(row),
_a)) }, { children: [isMultiSelect && (_jsx("td", __assign({ className: styles.tableCheckbox }, { children: _jsx(Checkbox, { value: row._id, checked: isRowSelected, onChange: handleSelect, disabled: !!(disableRow === null || disableRow === void 0 ? void 0 : disableRow(row)) }) }))), columns.map(function (column) { return (_jsx("td", __assign({ className: "p5" }, { children: column.renderer
_a)) }, { children: [isMultiSelect && (_jsx("td", __assign({ className: styles.tableCheckbox, onClick: function (e) { return e.stopPropagation(); } }, { children: _jsx(Checkbox, { value: row._id, checked: isRowSelected, onChange: handleSelect, disabled: !!(disableRow === null || disableRow === void 0 ? void 0 : disableRow(row)) }) }))), columns.map(function (column) { return (_jsx("td", __assign({ className: "p5" }, { children: column.renderer
? column.renderer(row)

@@ -107,0 +110,0 @@ : row[column.key] }), "td-".concat(row._id, "-").concat(column.key))); }), !!rowActions && (_jsx("div", __assign({ className: styles.tableRowActions }, { children: rowActions(row) })))] }), "tr-".concat(row._id)));

@@ -56,3 +56,4 @@ var __assign = (this && this.__assign) || function () {

if (trimmedValue) {
var newChips = __spreadArray(__spreadArray([], chips, true), [trimmedValue], false);
var splitValue = trimmedValue.split(','); // for copy and paste actions
var newChips = __spreadArray(__spreadArray([], chips, true), splitValue, true);
setChips(newChips);

@@ -59,0 +60,0 @@ setInputValue('');

{
"name": "nebula-galaxy",
"version": "0.8.3",
"version": "0.8.4",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc