Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@react-querybuilder/bulma
Advanced tools
Official Bulma components for react-querybuilder.
To see them in action, check out the react-querybuilder
demo and choose "Bulma" from the Style drop-down.
npm i --save react-querybuilder @react-querybuilder/bulma bulma react-bulma-components
# OR
yarn add react-querybuilder @react-querybuilder/bulma bulma react-bulma-components
import QueryBuilder, { RuleGroupType } from 'react-querybuilder';
import {
BulmaActionElement,
BulmaNotToggle,
BulmaValueEditor,
BulmaValueSelector,
} from '@react-querybuilder/bulma';
import 'bulma/bulma.sass';
const fields = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
const App = () => {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<QueryBuilder
fields={fields}
query={query}
onQueryChange={q => setQuery(q)}
controlElements={{
addGroupAction: BulmaActionElement,
addRuleAction: BulmaActionElement,
cloneGroupAction: BulmaActionElement,
cloneRuleAction: BulmaActionElement,
combinatorSelector: BulmaValueSelector,
fieldSelector: BulmaValueSelector,
notToggle: BulmaNotToggle,
operatorSelector: BulmaValueSelector,
removeGroupAction: BulmaActionElement,
removeRuleAction: BulmaActionElement,
valueEditor: BulmaValueEditor,
}}
/>
);
};
Some additional styling may be necessary, e.g.:
.input {
width: auto;
}
[v4.1.0] - 2022-01-09
react-querybuilder
v4.0.0.ValueSelector
-based components, including field selectors, operator selectors, combinator selectors, and value editors where the type
is "select" now support option groups. Pass { label: string; options: NameLabelPair[] }[]
instead of NameLabelPair[]
.FAQs
Custom Bulma components for react-querybuilder
The npm package @react-querybuilder/bulma receives a total of 251 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 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.