
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@promaster-sdk/react-property-selectors
Advanced tools
User interface for selecting single property values
A common task in product selection tools is to have an UI that allows the user to make a valid property value selection. This package contains a react components for showing different UI for selection of a single property, such as a dropdown, textbox etc.
npm install --save @promaster-sdk/react-property-selectors
The library is compiled to ES5 and no polyfills are required.
<ComboboxPropertySelector
propertyName="..."
valueItems={...}
propertyValueSet={...}
locked={false}
showCodes={true}
sortValidFirst={true}
onValueChange={pv => console.log("onValueChange")}
filterPrettyPrint={filterPrettyPrint}
readOnly={false}
/>
<TextboxPropertySelector
propertyName="..."
propertyValueSet={...}
onValueChange={pv => console.log("onValueChange")}
readOnly={false}
debounceTime={600}
/>
<CheckboxPropertySelector
propertyName="..."
valueItems={...}
propertyValueSet={...}
locked={false}
showCodes={true}
onValueChange={pv => console.log("onValueChange")}
filterPrettyPrint={() => ""}
readOnly={false}
/>
<AmountPropertySelector
fieldName="..."
propertyName="..."
propertyValueSet={...}
inputUnit={...}
inputDecimalCount={...}
onValueChange={pv => console.log("onValueChange)}
filterPrettyPrint={...}
validationFilter={...}
readOnly={false}
isRequiredMessage="Is required"
notNumericMessage="Not numeric"
onFormatChanged={(selectedUnit, selectedDecimalCount) => console.log("onFormatChanged")}
onFormatCleared={() => console.log("onFormatCleared")}
unitsFormat={UnitsFormat}
units={Units}
/>
<AmountInputBox
value={...}
inputUnit={...}
inputDecimalCount={...}
onValueChange={amount => console.log("changed")}
readOnly={false}
errorMessage=""
isRequiredMessage="Is required"
notNumericMessage="Not numeric"
debounceTime={350}
/>
<AmountFormatSelector
selectedUnit={...}
selectedDecimalCount={...}
onFormatChanged={(
selectedUnit: Unit.Unit<any>,
selectedDecimalCount: number
) => console.log(selectedUnit, selectedDecimalCount))}
onFormatCleared={() => console.log("onFormatCleared")}
onFormatSelectorActiveChanged={console.log("Toggle format selector")}
unitsFormat={...}
units={...}
/>
FAQs
Hooks for building UI for selection of property values
The npm package @promaster-sdk/react-property-selectors receives a total of 83 weekly downloads. As such, @promaster-sdk/react-property-selectors popularity was classified as not popular.
We found that @promaster-sdk/react-property-selectors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.