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.
@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
tailwind.config.js
.Some styles live in a global folder, but for the most part our components are styled with isolated SCSS files located alongside React component TS files.
We are currently in the process of migrating components to a second-generation styling convention which relies on CSS variables for design tokens and generally removes @apply
Tailwind statements.
Bloom design tokens include colors, typography settings, sizes, borders, and so forth. They're located in the src/global/tokens
folder.
More information on this process can be found in Styling2ndGen.md.
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 381 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.
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.