Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@bloom-housing/ui-components
Advanced tools
Shared user interface components for Bloom affordable housing system
This package is the home of the core UI components for the Bloom affordable housing system, meant to be imported from one or more applications that provide the end-user interface.
Bloom components have been design with the principles of Atomic Design in mind, and some of the directory structure and naming conventions are based on that.
There are also Page Components as a distinct class, which represent larger combinations of components (atomic: organisms) that are meant to be directly imported into specific pages in the system (e.g. a home page).
src/locales
contains JSON files with translated keys and copy used within all of our packages.
The UI components package includes Storybook for easy browsing of the component tree, and is the best way to get started understand what's available (we publish our Storybook). When creating a new component write a default story for the base component and include stories for each state.
To spin up Storybook locally, from within ui-components
run:
yarn start
To run the unit test suite which is built with Jest and RTL, from within ui-components
run:
yarn test
or
yarn test:coverage
which generates local coverage reports, useful as you are writing tests to ensure you have encompassed all the states.
To run our accessibility suite which leverages Storybook, from within ui-components
run:
yarn test:a11y
We are using the Tailwind framework to make use of their low-level utility library that styles components based on custom settings. We configure the settings in tailwind.config
. Some styles live in a global folder, but for the most part our components are styled with isolated SCSS files.
Use Tailwind where possible before creating custom style sheets or custom classes for consistency.
Vendor Plugins
Our recommendation for class naming methodology is a modified version of BEM. It still uses blocks, sections within blocks and modifiers, but with a subclass syntax for modifiers.
Avoid using Sass nesting to build class names
Modify with adjectives
Component naming
Avoid including any backend business logic in ui-components so that they may be consumed regardless of the backend implementation
FAQs
Shared user interface components for Bloom affordable housing system
The npm package @bloom-housing/ui-components receives a total of 598 weekly downloads. As such, @bloom-housing/ui-components popularity was classified as not popular.
We found that @bloom-housing/ui-components 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.
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.