Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@react-querybuilder/bulma
Advanced tools
Official react-querybuilder compatibility package for Bulma.
npm i react-querybuilder @react-querybuilder/bulma bulma
# OR yarn add / pnpm add / bun add
To configure the query builder to use Bulma-compatible components, place QueryBuilderBulma
above QueryBuilder
in the component hierarchy.
import { QueryBuilderBulma } from '@react-querybuilder/bulma';
import { useState } from 'react';
import { type Field, QueryBuilder, type RuleGroupType } from 'react-querybuilder';
const fields: Field[] = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
export function App() {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<QueryBuilderBulma>
<QueryBuilder fields={fields} defaultQuery={query} onQueryChange={setQuery} />
</QueryBuilderBulma>
);
}
[!NOTE]
Some additional styling may be necessary. We recommend the following:
.queryBuilder .input { width: auto; }
QueryBuilderBulma
is a React context provider that assigns the following props to all descendant QueryBuilder
elements. The props can be overridden on the QueryBuilder
or used directly without the context provider.
Export | QueryBuilder prop |
---|---|
bulmaControlClassnames | controlClassnames |
bulmaControlElements | controlElements |
BulmaNotToggle | controlElements.notToggle |
BulmaValueEditor | controlElements.valueEditor |
BulmaValueSelector | controlElements.valueSelector |
[v8.1.0] - 2025-01-09
@react-querybuilder/datetime
package with enhanced functionality for managing date/time data. Includes rule/value processors for formatQuery
tailored to different database platforms and date/time libraries.formatQuery
will assume a format of "sql" if no format is provided as long as preset
matches one of the supported values.formatQuery
option wrapValueWith
, an array of two strings to act as a prefix and suffix for values (outside of any quotes).formatQuery
value processors now accept an optional context
parameter, which can be used to pass additional information to the processor.JSON.stringify
d version. The "mongodb" format is deprecated, but will not be removed.query-builder.scss
now uses @use
instead of the deprecated @import
.FAQs
Custom Bulma components for react-querybuilder
The npm package @react-querybuilder/bulma receives a total of 349 weekly downloads. As such, @react-querybuilder/bulma popularity was classified as not popular.
We found that @react-querybuilder/bulma demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.