Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@nulogy/components
Advanced tools
Component library for the Nulogy Design System - http://nulogy.design
Built with React, compononents make it easy to create interfaces that conform to the principles of the Nulogy Design System. Components are styled-components written using styled-system. This makes it possible to write CSS directly in JS and pass props based on our design constraints.
npm install @nulogy/components --save
Wrap your application in our ThemeProvider to access Nulogy's theme values and add typographic defaults.
import React from 'react'
import { ThemeProvider } from '@nulogy/components'
class App extends React.Component {
render() {
return (
<ThemeProvider>
// your application
</ThemeProvider>
)
}
}
import { Button } from '@nulogy/components'
const someView = {
<Button>Click me</Button>
}
Please see the documentation for instructions on how best to use each component.
11.0.0 (2024-11-07)
icon
and iconSize
props from the input
in-favor of iconLeft
, iconRight
, iconRightSize
, iconLeftSize
Migration:
icon
prop with iconRight
iconSize
prop with iconRightSize
size
prop to variant
.The size
prop was originally used sparingly in some components like the
Button and the Icon to resize those components.
It was later extended to make all interactive components large enough to
be used on a touch screen, through changing the size
prop directly or
by passing a size
prop to the NDSProvider globally.
With this change, we retain the use of the size
prop for select
components, and introduce a variant
prop that can be passed either to
individual components or the NDSProvider globally with the value of
either desktop
or touch
.
NDS is introducing context-specific default themes. Directly importing themes from NDS may result in using the wrong theme, causing conflicts between custom app themes, desktop, and touch variants.
Instead of importing the theme from NDS like so:
import { theme } from "@nulogy/components"
,
you can use and access the theme in one of the following ways:
const Example = styled.div(({ theme }) => ({
marginLeft: theme.space.x3,
marginBottom: theme.space.x1,
color: theme.colors.darkBlue,
}));
function Component(props: Props) {
return (
<Box ml="x3" mb="x1" color="darkBlue">
{props.children}
</Box>
)
}
import { useTheme } from "styled-components"
function getPaddingBasedOnSomeProp(foo, theme) { ... }
function Component(props: Props) {
const theme = useTheme()
const horizontalPadding = getPaddingBasedOnSomeProp(props.foo, theme)
return (
<Box px={horizontalPadding}>
{props.children}
</Box>
)
}
FAQs
Component library for the Nulogy Design System - http://nulogy.design
The npm package @nulogy/components receives a total of 879 weekly downloads. As such, @nulogy/components popularity was classified as not popular.
We found that @nulogy/components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.